PageSourceSearch

https://www.holoin.ai/assets/grid-DevY8ceg.js

js holoin.ai collected 2026-10-05 14:35:47 UTC 1,143,922 bytes, 982 lines download raw bytes

vendor: 6,321 bytes, lines 1-18
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AccelerationIcon-DmBWkY9e.js","assets/index-C_tBd6HG.js","assets/AccelerometerIcon-DTHaA-7-.js","assets/index-FTYBDen_.js","assets/ACCurrentIcon-DZQgyB9O.js","assets/AppIcon-DToDX7mR.js","assets/index-BY-TnCbA.js","assets/index-Bz-LZj32.css","assets/BarChartIcon-C8_FMdSD.js","assets/BaseStationIcon-DtuWesuw.js","assets/index-CrKfgtDv.js","assets/BatteryIcon-0lC27PUA.js","assets/BeaconIcon-GwRVF1-S.js","assets/BedIcon-DpI37m6C.js","assets/BellIcon-NS5RPZiM.js","assets/BluetoothIcon-CqQQ1WN5.js","assets/BuildingIcon-iMgH5ap-.js","assets/CameraIcon-D3JCwU78.js","assets/CarIcon-CwTQnQx5.js","assets/index-CTbhIahj.js","assets/ChatIcon-kaEdw2nL.js","assets/CheckIcon-Bg74xlLi.js","assets/ClockIcon-BsX5zfYf.js","assets/CodeIcon-jWxSZXXe.js","assets/CogIcon-CTWFUSXa.js","assets/index-DSRrWLKT.js","assets/ColdIcon-DmFQlwOU.js","assets/index-Dx0RBRMW.js","assets/ContainerIcon-C_76wGjd.js","assets/CubeIcon--3n6mjz9.js","assets/Dashboard-DskOBjN0.js","assets/DocumentIcon-riXflzqJ.js","assets/DonutChartIcon-DvBPQZEy.js","assets/DownloadIcon-BF5WNaOg.js","assets/EnterIcon-89mCuG-v.js","assets/ExitIcon-DEXt91VH.js","assets/FanIcon-Kksp5kqi.js","assets/FireIcon-C9KG3AUV.js","assets/ForkLiftIcon-CCnxqRgU.js","assets/FrequencyIcon-C1Eiw6Rc.js","assets/GaugeIcon-zcAg_YtW.js","assets/GravityIcon-CvwX2AYa.js","assets/HourGlassIcon-DubqgFBj.js","assets/HouseIcon-CW2-yIJ6.js","assets/HumidityIcon-DZ9Mb47q.js","assets/LeakIcon-CJQHB8pG.js","assets/LineChartIcon-to63xZfI.js","assets/MotionIcon-Bo3uNe1y.js","assets/TemperatureIcon-Do6bcGai.js","assets/ThreeDotIcon-DHHsBHBL.js","assets/ToggleIcon-C8_MjLl-.js","assets/VoltageIcon-C_wN48Fx.js","assets/TemperatureDevice-CPdhgM_e.js","assets/LottieDynamicImport-Bf1whVOo.js","assets/SignalStrength-B28HYgQ1.js","assets/WaterLeak-eWV-vpwu.js","assets/MotionSensor-nIxens0W.js","assets/GatewayStatus-gUbFd-58.js","assets/SmokeDetector-DrjJSi6c.js","assets/GasLeak-SYoiDRKr.js","assets/FireAlarm-CbN8pyQj.js","assets/DoorStatus-px4zjtc_.js","assets/Current-BbRNcv3Q.js","assets/FingerPrint-DWIc_Pqy.js","assets/Humidity-D0pfa0A6.js","assets/WidgetInitialDiv-TVlMk4-r.js","assets/MixChart-CdP8vYQz.js"])))=>i.map(i=>d[i]);
2var z3=Object.defineProperty;var yE=t=>{throw TypeError(t)};var $3=(t,e,n)=>e in t?z3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var sf=(t,e,n)=>$3(t,typeof e!="symbol"?e+"":e,n),T0=(t,e,n)=>e.has(t)||yE("Cannot "+n);var re=(t,e,n)=>(T0(t,e,"read from private field"),n?n.call(t):e.get(t)),pt=(t,e,n)=>e.has(t)?yE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Ke=(t,e,n,r)=>(T0(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Tt=(t,e,n)=>(T0(t,e,"access private method"),n);var Vp=(t,e,n,r)=>({set _(i){Ke(t,e,i,n)},get _(){return re(t,e,r)}});function H3(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var gee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Iu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vee(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var O0={exports:{}},af={};/**
3 * @license React
4 * react-jsx-runtime.production.js
5 *
6 * Copyright (c) Meta Platforms, Inc. and affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var bE;function B3(){if(bE)return af;bE=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:l,ref:i!==void 0?i:null,props:a}}return af.Fragment=e,af.jsx=n,af.jsxs=n,af}var xE;function F3(){return xE||(xE=1,O0.exports=B3()),O0.exports}var C=F3(),A0={exports:{}},xt={};/**
11 * @license React
12 * react.production.js
13 *
14 * Copyright (c) Meta Platforms, Inc. and affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var wE;function U3(){if(wE)return xt;wE=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function g(X){return X===null||typeof X!="object"?null:(X=m&&X[m]||X["@@iterator"],typeof X=="function"?X:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,y={};function x(X,ee,ve){this.props=X,this.context=ee,this.refs=y,this.updater=ve||b}x.prototype.isReactComponent={},x.prototype.setState=function(X,ee){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,ee,"setState")},x.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function S(){}S.prototype=x.prototype;function R(X,ee,ve){this.props=X,this.context=ee,this.refs=y,this.updater=ve||b}var O=R.prototype=new S;O.constructor=R,E(O,x.prototype),O.isPureReactComponent=!0;var M=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;
vendor: 3,805 bytes, line 18
18function j(X,ee,ve,le,se,he){return ve=he.ref,{$$typeof:t,type:X,key:ee,ref:ve!==void 0?ve:null,props:he}}function H(X,ee){return j(X.type,ee,void 0,void 0,void 0,X.props)}function I(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function A(X){var ee={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ve){return ee[ve]})}var $=/\/+/g;function L(X,ee){return typeof X=="object"&&X!==null&&X.key!=null?A(""+X.key):ee.toString(36)}function U(){}function V(X){switch(X.status){case"fulfilled":return X.value;case"rejected":throw X.reason;default:switch(typeof X.status=="string"?X.then(U,U):(X.status="pending",X.then(function(ee){X.status==="pending"&&(X.status="fulfilled",X.value=ee)},function(ee){X.status==="pending"&&(X.status="rejected",X.reason=ee)})),X.status){case"fulfilled":return X.value;case"rejected":throw X.reason}}throw X}function Q(X,ee,ve,le,se){var he=typeof X;(he==="undefined"||he==="boolean")&&(X=null);var ie=!1;if(X===null)ie=!0;else switch(he){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(X.$$typeof){case t:case e:ie=!0;break;case p:return ie=X._init,Q(ie(X._payload),ee,ve,le,se)}}if(ie)return se=se(X),ie=le===""?"."+L(X,0):le,M(se)?(ve="",ie!=null&&(ve=ie.replace($,"$&/")+"/"),Q(se,ee,ve,"",function(ke){return ke})):se!=null&&(I(se)&&(se=H(se,ve+(se.key==null||X&&X.key===se.key?"":(""+se.key).replace($,"$&/")+"/")+ie)),ee.push(se)),1;ie=0;var be=le===""?".":le+":";if(M(X))for(var xe=0;xe<X.length;xe++)le=X[xe],he=be+L(le,xe),ie+=Q(le,ee,ve,he,se);else if(xe=g(X),typeof xe=="function")for(X=xe.call(X),xe=0;!(le=X.next()).done;)le=le.value,he=be+L(le,xe++),ie+=Q(le,ee,ve,he,se);else if(he==="object"){if(typeof X.then=="function")return Q(V(X),ee,ve,le,se);throw ee=String(X),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return ie}function F(X,ee,ve){if(X==null)return X;var le=[],se=0;return Q(X,le,"","",function(he){return ee.call(ve,he,se++)}),le}function J(X){if(X._status===-1){var ee=X._result;ee=ee(),ee.then(function(ve){(X._status===0||X._status===-1)&&(X._status=1,X._result=ve)},function(ve){(X._status===0||X._status===-1)&&(X._status=2,X._result=ve)}),X._status===-1&&(X._status=0,X._result=ee)}if(X._status===1)return X._result.default;throw X._result}var ae=typeof reportError=="function"?reportError:function(X){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof X=="object"&&X!==null&&typeof X.message=="string"?String(X.message):String(X),error:X});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",X);return}console.error(X)};function ye(){}return xt.Children={map:F,forEach:function(X,ee,ve){F(X,function(){ee.apply(this,arguments)},ve)},count:function(X){var ee=0;return F(X,function(){ee++}),ee},toArray:function(X){return F(X,function(ee){return ee})||[]},only:function(X){if(!I(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},xt.Component=x,xt.Fragment=n,xt.Profiler=i,xt.PureComponent=R,xt.StrictMode=r,xt.Suspense=d,xt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,xt.__COMPILER_RUNTIME={__proto__:null,c:function(X){return k.H.useMemoCache(X)}},xt.cache=function(X){return function(){return X.apply(null,arguments)}},xt.cloneElement=function(X,ee,ve){if(X==null)throw Error("The argument must be a React element, but you passed "+X+".");var le=E({},X.props),se=X.key,he=void 0;if(ee!=null)for(ie in ee.ref!==void 0&&(he=void 0),ee.key!==void 0&&(se=""+ee.key),ee)!P.call(ee,ie)||ie==="
18key"||ie==="__self"||ie==="__source"||ie==="ref"&&ee.ref===void 0||(le[ie]=ee[ie]);var ie=arguments.length-2;if(ie===1)le.children=ve;else if(1<ie){for(var be=Array(ie),xe=0;xe<ie;xe++)be[xe]=arguments[xe+2];le.children=be}return j(X.type,se,void 0,void 0,he,le)},xt.createContext=function(X){return X={$$typeof:l,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null},X.Provider=X,X.Consumer={$$typeof:a,_context:X},X},xt.createElement=function(X,ee,ve){var le,se={},he=null;if(ee!=null)for(le in ee.key!==void 0&&(he=""+ee.key),ee)P.call(ee,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(se[le]=ee[le]);var ie=arguments.length-2;if(ie===1)se.children=ve;else if(1<ie){for(var be=Array(ie),xe=0;xe<ie;xe++)be[xe]=arguments[xe+2];se.children=be}if(X&&X.defaultProps)for(le in ie=X.defaultProps,ie)se[le]===void 0&&(se[le]=ie[le]);return j(X,he,void 0,void 0,null,se)},xt.createRef=function(){return{current:null}},xt.forwardRef=function(X){return{$$typeof:u,render:X}},xt.isValidElement=I,xt.lazy=function(X){return{$$typeof:p,_payload:{_status:-1,_result:X},_init:J}},xt.memo=function(X,ee){return{$$typeof:h,type:X,compare:ee===void 0?null:ee}},xt.startTransition=function(X){var ee=k.T,ve={};k.T=ve;try{var le=X(),se=k.S;se!==null&&se(ve,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(ye,ae)}catch(he){ae(he)}finally{k.T=ee}},xt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},xt.use=function(X){return k.H.use(X)},xt.useActionState=function(X,ee,ve){return k.H.useActionState(X,ee,ve)},xt.useCallback=function(X,ee){return k.H.useCallback(X,ee)},xt.useContext=function(X){return k.H.useContext(X)},xt.useDebugValue=function(){},xt.useDeferredValue=function(X,ee){return k.H.useDeferredValue(X,ee)},xt.useEffect=function(X,ee,ve){var le=k.H;if(typeof ve=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return le.useEffect(X,ee)},xt.useId=function(){return k.H.useId()},xt.useImperativeHandle=function(X,ee,ve){return k.H.useImperativeHandle(X,ee,ve)},xt.useInsertionEffect=function(X,ee){return k.H.useInsertionEffect(X,ee)},xt.useLayoutEffect=function(X,ee){return k.H.useLayoutEffect(X,ee)},xt.useMemo=function(X,ee){return k.H.useMemo(X,ee)},xt.useOptimistic=function(X,ee){return k.H.useOptimistic(X,ee)},xt.useReducer=function(X,ee,ve){return k.H.useReducer(X,ee,ve)},xt.useRef=function(X){return k.H.useRef(X)},xt.useState=function(X){return k.H.useState(X)},xt.useSyncExternalStore=function(X,ee,ve){return k.H.useSyncExternalStore(X,ee,ve)},xt.useTransition=function(){return k.H.useTransition()},xt.version="19.1.0",xt}var SE;function Nx(){return SE||(SE=1,A0.exports=U3()),A0.exports}var w=Nx();const ze=Iu(w),Bo=H3({__proto__:null,default:ze},[w]);var k0={exports:{}},of={},M0={exports:{}},N0={};/**
19 * @license React
20 * scheduler.production.js
21 *
22 * Copyright (c) Meta Platforms, Inc. and affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var _E;function I3(){return _E||(_E=1,function(t){function e(F,J){var ae=F.length;F.push(J);e:for(;0<ae;){var ye=ae-1>>>1,X=F[ye];if(0<i(X,J))F[ye]=J,F[ae]=X,ae=ye;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var J=F[0],ae=F.pop();if(ae!==J){F[0]=ae;e:for(var ye=0,X=F.length,ee=X>>>1;ye<ee;){var ve=2*(ye+1)-1,le=F[ve],se=ve+1,he=F[se];if(0>i(le,ae))se<X&&0>i(he,le)?(F[ye]=he,F[se]=ae,ye=se):(F[ye]=le,F[ve]=ae,ye=ve);else if(se<X&&0>i(he,ae))F[ye]=he,F[se]=ae,ye=se;else break e}}return J}function i(F,J){var ae=F.sortIndex-J.sortIndex;
vendor: 4,605 bytes, lines 26-34
26return ae!==0?ae:F.id-J.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var d=[],h=[],p=1,m=null,g=3,b=!1,E=!1,y=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function M(F){for(var J=n(h);J!==null;){if(J.callback===null)r(h);else if(J.startTime<=F)r(h),J.sortIndex=J.expirationTime,e(d,J);else break;J=n(h)}}function k(F){if(y=!1,M(F),!E)if(n(d)!==null)E=!0,P||(P=!0,L());else{var J=n(h);J!==null&&Q(k,J.startTime-F)}}var P=!1,j=-1,H=5,I=-1;function A(){return x?!0:!(t.unstable_now()-I<H)}function $(){if(x=!1,P){var F=t.unstable_now();I=F;var J=!0;try{e:{E=!1,y&&(y=!1,R(j),j=-1),b=!0;var ae=g;try{t:{for(M(F),m=n(d);m!==null&&!(m.expirationTime>F&&A());){var ye=m.callback;if(typeof ye=="function"){m.callback=null,g=m.priorityLevel;var X=ye(m.expirationTime<=F);if(F=t.unstable_now(),typeof X=="function"){m.callback=X,M(F),J=!0;break t}m===n(d)&&r(d),M(F)}else r(d);m=n(d)}if(m!==null)J=!0;else{var ee=n(h);ee!==null&&Q(k,ee.startTime-F),J=!1}}break e}finally{m=null,g=ae,b=!1}J=void 0}}finally{J?L():P=!1}}}var L;if(typeof O=="function")L=function(){O($)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,V=U.port2;U.port1.onmessage=$,L=function(){V.postMessage(null)}}else L=function(){S($,0)};function Q(F,J){j=S(function(){F(t.unstable_now())},J)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(F){F.callback=null},t.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<F?Math.floor(1e3/F):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_next=function(F){switch(g){case 1:case 2:case 3:var J=3;break;default:J=g}var ae=g;g=J;try{return F()}finally{g=ae}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(F,J){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ae=g;g=F;try{return J()}finally{g=ae}},t.unstable_scheduleCallback=function(F,J,ae){var ye=t.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ye+ae:ye):ae=ye,F){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=ae+X,F={id:p++,callback:J,priorityLevel:F,startTime:ae,expirationTime:X,sortIndex:-1},ae>ye?(F.sortIndex=ae,e(h,F),n(d)===null&&F===n(h)&&(y?(R(j),j=-1):y=!0,Q(k,ae-ye))):(F.sortIndex=X,e(d,F),E||b||(E=!0,P||(P=!0,L()))),F},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(F){var J=g;return function(){var ae=g;g=J;try{return F.apply(this,arguments)}finally{g=ae}}}}(N0)),N0}var EE;function V3(){return EE||(EE=1,M0.exports=I3()),M0.exports}var D0={exports:{}},Tr={};/**
27 * @license React
28 * react-dom.production.js
29 *
30 * Copyright (c) Meta Platforms, Inc. and affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var CE;function q3(){if(CE)return Tr;CE=1;var t=Nx();function e(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(d,h,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:d,containerInfo:h,implementation:p}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Tr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tr.createPortal=function(d,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return a(d,h,null,p)},Tr.flushSync=function(d){var h=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=h,r.p=p,r.d.f()}}
vendor: 20,573 bytes, lines 34-49
34,Tr.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},Tr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Tr.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var p=h.as,m=u(p,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:b}):p==="script"&&r.d.X(d,{crossOrigin:m,integrity:g,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Tr.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=u(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},Tr.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,m=u(p,h.crossOrigin);r.d.L(d,p,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Tr.preloadModule=function(d,h){if(typeof d=="string")if(h){var p=u(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},Tr.requestFormReset=function(d){r.d.r(d)},Tr.unstable_batchedUpdates=function(d,h){return d(h)},Tr.useFormState=function(d,h,p){return l.H.useFormState(d,h,p)},Tr.useFormStatus=function(){return l.H.useHostTransitionStatus()},Tr.version="19.1.0",Tr}var RE;function DO(){if(RE)return D0.exports;RE=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),D0.exports=q3(),D0.exports}/**
35 * @license React
36 * react-dom-client.production.js
37 *
38 * Copyright (c) Meta Platforms, Inc. and affiliates.
39 *
40 * This source code is licensed under the MIT license found in the
41 * LICENSE file in the root directory of this source tree.
42 */var TE;function G3(){if(TE)return of;TE=1;var t=V3(),e=Nx(),n=DO();function r(s){var o="https://react.dev/errors/"+s;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function a(s){var o=s,c=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(c=o.return),s=o.return;while(s)}return o.tag===3?c:null}function l(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function u(s){if(a(s)!==s)throw Error(r(188))}function d(s){var o=s.alternate;if(!o){if(o=a(s),o===null)throw Error(r(188));return o!==s?null:s}for(var c=s,f=o;;){var v=c.return;if(v===null)break;var _=v.alternate;if(_===null){if(f=v.return,f!==null){c=f;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===c)return u(v),s;if(_===f)return u(v),o;_=_.sibling}throw Error(r(188))}if(c.return!==f.return)c=v,f=_;else{for(var z=!1,B=v.child;B;){if(B===c){z=!0,c=v,f=_;break}if(B===f){z=!0,f=v,c=_;break}B=B.sibling}if(!z){for(B=_.child;B;){if(B===c){z=!0,c=_,f=v;break}if(B===f){z=!0,f=_,c=v;break}B=B.sibling}if(!z)throw Error(r(189))}}if(c.alternate!==f)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?s:o}function h(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s;for(s=s.child;s!==null;){if(o=h(s),o!==null)return o;s=s.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),O=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function L(s){return s===null||typeof s!="object"?null:(s=$&&s[$]||s["@@iterator"],typeof s=="function"?s:null)}var U=Symbol.for("react.client.reference");function V(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===U?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case E:return"Fragment";case x:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case P:return"SuspenseList";case I:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case b:return"Portal";case O:return(s.displayName||"Context")+".Provider";case R:return(s._context.displayName||"Context")+".Consumer";case M:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case j:return o=s.displayName||null,o!==null?o:V(s.type)||"Memo";case H:o=s._payload,s=s._init;try{return V(s(o))}catch{}}return null}var Q=Array.isArray,F=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ye=[],X=-1;function ee(s){return{current:s}}function ve(s){0>X||(s.current=ye[X],ye[X]=null,X--)}function le(s,o){X++,ye[X]=s.current,s.current=o}var se=ee(null),he=ee(null),ie=ee(null),be=ee(null);function xe(s,o){switch(le(ie,o),le(he,s),le(se,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?G_(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=G_(o),s=X_(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ve(se),le(se,s)}function ke(){ve(se),ve(he),ve(ie)}function Me(s){s.memoizedState!==null&&le(be,s);var o=se.current,c=X_(o,s.type);o!==c&&(le(he,s),le(se,c))}function Ne(s){he.current===s&&(ve(se),ve(he)),be.current===s&&(ve(be),Jd._currentValue=ae)}var Te=Object.prototype.hasOwnProperty,Be=t.unstable_scheduleCallback,nt=t.unstable_cancelCallback,yt=t.unstable_shouldYield,_e=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,$e=t.unstable_ImmediatePriority,Y=t.unstable_UserBlockingPriority,G=t.unstable_NormalPriority,K=t.unstable_LowPriority,ue=t.unstable_IdlePriority,we=t.log,pe=t.unstable_setDisableYieldValue,De=null,Ue=null;function Je(s){if(typeof we=="function"&&pe(s),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(De,s)}catch{}}var ot=Math.clz32?Math.clz32:Zn,un=Math.log,qt=Math.LN2;function Zn(s){return s>>>=0,s===0?32:31-(un(s)/qt|0)|0}var at=256,ft=4194304;function Et(s){var o=s&42;if(o!==0)return o;switch(s&-s){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:return 64;case 128:return 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 s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ht(s,o,c){var f=s.pendingLanes;if(f===0)return 0;var v=0,_=s.suspendedLanes,z=s.pingedLanes;s=s.warmLanes;var B=f&134217727;return B!==0?(f=B&~_,f!==0?v=Et(f):(z&=B,z!==0?v=Et(z):c||(c=B&~s,c!==0&&(v=Et(c))))):(B=f&~_,B!==0?v=Et(B):z!==0?v=Et(z):c||(c=f&~s,c!==0&&(v=Et(c)))),v===0?0:o!==0&&o!==v&&(o&_)===0&&(_=v&-v,c=o&-o,_>=c||_===32&&(c&4194048)!==0)?o:v}function Nn(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function Er(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nn(){var s=at;return at<<=1,(at&4194048)===0&&(at=256),s}function _n(){var s=ft;return ft<<=1,(ft&62914560)===0&&(ft=4194304),s}function ji(s){for(var o=[],c=0;31>c;c++)o.push(s);return o}function Dn(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Yr(s,o,c,f,v,_){var z=s.pendingLanes;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=c,s.entangledLanes&=c,s.errorRecoveryDisabledLanes&=c,s.shellSuspendCounter=0;var B=s.entanglements,Z=s.expirationTimes,de=s.hiddenUpdates;for(c=z&~c;0<c;){var Ce=31-ot(c),Oe=1<<Ce;B[Ce]=0,Z[Ce]=-1;var me=de[Ce];if(me!==null)for(de[Ce]=null,Ce=0;Ce<me.length;Ce++){var ge=me[Ce];ge!==null&&(ge.lane&=-536870913)}c&=~Oe}f!==0&&Li(s,f,0),_!==0&&v===0&&s.tag!==0&&(s.suspendedLanes|=_&~(z&~o))}function Li(s,o,c){s.pendingLanes|=o,s.suspendedLanes&=~o;var f=31-ot(o);s.entangledLanes|=o,s.entanglements[f]=s.entanglements[f]|1073741824|c&4194090}function Lr(s,o){var c=s.entangledLanes|=o;for(s=s.entanglements;c;){var f=31-ot(c),v=1<<f;v&o|s[f]&o&&(s[f]|=o),c&=~v}}function Cr(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function pi(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function os(){var s=J.p;return s!==0?s:(s=window.event,s===void 0?32:fE(s.type))}function zi(s,o){var c=J.p;try{return J.p=s,o()}finally{J.p=c}}var Pn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Pn,yn="__reactProps$"+Pn,Bt="__reactContainer$"+Pn,Ds="__reactEvents$"+Pn,ca="__reactListeners$"+Pn,dn="__reactHandles$"+Pn,pn="__reactResources$"+Pn,jn="__reactMarker$"+Pn;function In(s){delete s[Wt],delete s[yn],delete s[Ds],delete s[ca],delete s[dn]}function hr(s){var o=s[Wt];if(o)return o;for(var c=s.parentNode;c;){if(o=c[Bt]||c[Wt]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(s=W_(s);s!==null;){if(c=s[Wt])return c;s=W_(s)}return o}s=c,c=s.parentNode}return null}function Jn(s){if(s=s[Wt]||s[Bt]){var o=s.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return s}return null}function mi(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s.stateNode;throw Error(r(33))}function Kr(s){var o=s[pn];return o||(o=s[pn]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function fn(s){s[jn]=!0}var Ps=new Set,Qr={};function En(s,o){Ze(s,o),Ze(s+"Capture",o)}function Ze(s,o){for(Qr[s]=o,s=0;s<o.length;s++)Ps.add(o[s])}var We=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),bt={},Pt={};function Ln(s){return Te.call(Pt,s)?!0:Te.call(bt,s)?!1:We.test(s)?Pt[s]=!0:(bt[s]=!0,!1)}function ls(s,o,c){if(Ln(o))if(c===null)s.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":s.removeAttribute(o);return;case"boolean":var f=o.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){s.removeAttribute(o);return}}s.setAttribute(o,""+c)}}function Wr(s,o,c){if(c===null)s.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttribute(o,""+c)}}function zr(s,o,c,f){if(f===null)s.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttributeNS(o,c,""+f)}}var Wo,$r;function gi(s){if(Wo===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);Wo=o&&o[1]||"",$r=-1<c.stack.indexOf(`
43    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
44`+Wo+s+$r}var cs=!1;function Zo(s,o){if(!s||cs)return"";cs=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(o){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(ge){var me=ge}Reflect.construct(s,[],Oe)}else{try{Oe.call()}catch(ge){me=ge}s.call(Oe.prototype)}}else{try{throw Error()}catch(ge){me=ge}(Oe=s())&&typeof Oe.catch=="function"&&Oe.catch(function(){})}}catch(ge){if(ge&&me&&typeof ge.stack=="string")return[ge.stack,me.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=f.DetermineComponentFrameRoot(),z=_[0],B=_[1];if(z&&B){var Z=z.split(`
45`),de=B.split(`
46`);for(v=f=0;f<Z.length&&!Z[f].includes("DetermineComponentFrameRoot");)f++;for(;v<de.length&&!de[v].includes("DetermineComponentFrameRoot");)v++;if(f===Z.length||v===de.length)for(f=Z.length-1,v=de.length-1;1<=f&&0<=v&&Z[f]!==de[v];)v--;for(;1<=f&&0<=v;f--,v--)if(Z[f]!==de[v]){if(f!==1||v!==1)do if(f--,v--,0>v||Z[f]!==de[v]){var Ce=`
47`+Z[f].replace(" at new "," at ");return s.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",s.displayName)),Ce}while(1<=f&&0<=v);break}}}finally{cs=!1,Error.prepareStackTrace=c}return(c=s?s.displayName||s.name:"")?gi(c):""}function vv(s){switch(s.tag){case 26:case 27:case 5:return gi(s.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 15:return Zo(s.type,!1);case 11:return Zo(s.type.render,!1);case 1:return Zo(s.type,!0);case 31:return gi("Activity");default:return""}}function Th(s){try{var o="";do o+=vv(s),s=s.return;while(s);return o}catch(c){return`
48Error generating stack: `+c.message+`
49`+c.stack}}function Zr(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Oh(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function nd(s){var o=Oh(s)?"checked":"value",c=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),f=""+s[o];if(!s.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,_=c.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return v.call(this)},set:function(z){f=""+z,_.call(this,z)}}),Object.defineProperty(s,o,{enumerable:c.enumerable}),{getValue:function(){return f},setValue:function(z){f=""+z},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function ic(s){s._valueTracker||(s._valueTracker=nd(s))}function Ah(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var c=o.getValue(),f="";return s&&(f=Oh(s)?s.checked?"true":"false":s.value),s=f,s!==c?(o.setValue(s),!0):!1}function Jo(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var sc=/[\n"\\]/g;function sr(s){return s.replace(sc,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function rd(s,o,c,f,v,_,z,B){s.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?s.type=z:s.removeAttribute("type"),o!=null?z==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+Zr(o)):s.value!==""+Zr(o)&&(s.value=""+Zr(o)):z!=="submit"&&z!=="reset"||s.removeAttribute("value"),o!=null?id(s,z,Zr(o)):c!=null?id(s,z,Zr(c)):f!=null&&s.removeAttribute("value"),v==null&&_!=null&&(s.defaultChecked=!!_),v!=null&&(s.checked=v&&typeof v!="function"&&typeof v!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?s.name=""+Zr(B):s.removeAttribute("name")}function Ia(s,o,c,f,v,_,z,B){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(s.type=_),o!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||o!=null))return;c=c!=null?""+Zr(c):"",o=o!=null?""+Zr(o):c,B||o===s.value||(s.value=o),s.defaultValue=o}f=f??v,f=typeof f!="function"&&typeof f!="symbol"&&!!f,s.checked=B?s.checked:!!f,s.defaultChecked=!!f,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(s.name=z)}function id(s,o,c){o==="number"&&Jo(s.ownerDocument)===s||s.defaultValue===""+c||(s.defaultValue=""+c)}function Va(s,o,c,f){if(s=s.options,o){o={};for(var v=0;v<c.length;v++)o["$"+c[v]]=!0;for(c=0;c<s.length;c++)v=o.hasOwnProperty("$"+s[c].value),s[c].selected!==v&&(s[c].selected=v),v&&f&&(s[c].defaultSelected=!0)}else{for(c=""+Zr(c),o=null,v=0;v<s.length;v++){if(s[v].value===c){s[v].selected=!0,f&&(s[v].defaultSelected=!0);return}o!==null||s[v].disabled||(o=s[v])}o!==null&&(o.selected=!0)}}function kh(s,o,c){if(o!=null&&(o=""+Zr(o),o!==s.value&&(s.value=o),c==null)){s.defaultValue!==o&&(s.defaultValue=o);return}s.defaultValue=c!=null?""+Zr(c):""}function Mh(s,o,c,f){if(o==null){if(f!=null){if(c!=null)throw Error(r(92));if(Q(f)){if(1<f.length)throw Error(r(93));f=f[0]}c=f}c==null&&(c=""),o=c}c=Zr(o),s.defaultValue=c,f=s.textContent,f===c&&f!==""&&f!==null&&(s.value=f)}function qa(s,o){if(o){var c=s.firstChild;if(c&&c===s.lastChild&&c.nodeType===3){c.nodeValue=o;return}}s.textContent=o}var yv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nh(s,o,c){var f=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?f?s.setProperty(o,""):o==="float"?s.cssFloat="":s[o]="":f?s.setProperty(o,c):typeof c!="number"||c===0||yv.has(o)?o==="float"?s.cssFloat=c:s[o]=(""+c).trim():s[o]=c+"px"}function ac(s,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(s=s.style,c!=null){for(var f in c)!c.hasOwnProperty(f)||o!=null&&o.hasOwnProperty(f)||(f.indexOf("--")===0?s.setProperty(f,""):f==="float"?s.cssFloat="":s[f]="");for(var v in o)f=o[v],o.hasOwnProperty(v)&&c[v]!==f&&Nh(s,v,f)}else for(var _ in o)o.hasOwnProperty(_)&&Nh(s,_,o[_])}function us(s){if(s.indexOf("-")===-1)return!1;switch(s){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 bv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
49dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),xv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function oc(s){return xv.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var sd=null;function lc(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Ga=null,ua=null;function Dh(s){var o=Jn(s);if(o&&(s=o.stateNode)){var c=s[yn]||null;e:switch(s=o.stateNode,o.type){case"input":if(rd(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=s;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+sr(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var f=c[o];if(f!==s&&f.form===s.form){var v=f[yn]||null;if(!v)throw Error(r(90));rd(f,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<c.length;o++)f=c[o],f.form===s.form&&Ah(f)}break e;case"textarea":kh(s,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Va(s,!!c.multiple,o,!1)}}}var ad=!1;function Ph(s,o,c){if(ad)return s(o,c);ad=!0;try{var f=s(o);return f}finally{if(ad=!1,(Ga!==null||ua!==null)&&(_p(),Ga&&(o=Ga,s=ua,ua=Ga=null,Dh(o),s)))for(o=0;o<s.length;o++)Dh(s[o])}}function el(s,o){var c=s.stateNode;if(c===null)return null;var f=c[yn]||null;if(f===null)return null;c=f[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(s=s.type,f=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!f;break e;default:s=!1}if(s)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var ds=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),od=!1;if(ds)try{var tl={};Object.defineProperty(tl,"passive",{get:function(){od=!0}}),window.addEventListener("test",tl,tl),window.removeEventListener("test",tl,tl)}catch{od=!1}var js=null,ld=null,nl=null;function jh(){if(nl)return nl;var s,o=ld,c=o.length,f,v="value"in js?js.value:js.textContent,_=v.length;for(s=0;s<c&&o[s]===v[s];s++);var z=c-s;for(f=1;f<=z&&o[c-f]===v[_-f];f++);return nl=v.slice(s,1<f?1-f:void 0)}function cc(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function gt(){return!0}function uc(){return!1}function er(s){function o(c,f,v,_,z){this._reactName=c,this._targetInst=v,this.type=f,this.nativeEvent=_,this.target=z,this.currentTarget=null;for(var B in s)s.hasOwnProperty(B)&&(c=s[B],this[B]=c?c(_):_[B]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?gt:uc,this.isPropagationStopped=uc,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=gt)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=gt)},persist:function(){},isPersistent:gt}),o}var da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dc=er(da),Xa=p({},da,{view:0,detail:0}),wv=er(Xa),cd,ud,rl,fc=p({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fd,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==rl&&(rl&&s.type==="mousemove"?(cd=s.screenX-rl.screenX,ud=s.screenY-rl.screenY):ud=cd=0,rl=s),cd)},movementY:function(s){return"movementY"in s?s.movementY:ud}}),Sv=er(fc),_v=p({},fc,{dataTransfer:0}),Ev=er(_v),fS=p({},Xa,{relatedTarget:0}),dd=er(fS),Cv=p({},da,{animationName:0,elapsedTime:0,pseudoElement:0}),Rv=er(Cv),Tv=p({},da,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Ov=er(Tv),Av=p({},da,{data:0}),Lh=er(Av),kv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mv={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"},Nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dv(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=Nv[s])?!!o[s]:!1}function fd(){return Dv}var Pv=p({},Xa,{key:function(s){if(s.key){var o=kv[s.key]||s.key;if(o!=="Unidentified")return o}
vendor: 5,178 bytes, line 49
49return s.type==="keypress"?(s=cc(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Mv[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fd,charCode:function(s){return s.type==="keypress"?cc(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?cc(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),jv=er(Pv),Lv=p({},fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vn=er(Lv),hd=p({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fd}),zv=er(hd),D=p({},da,{propertyName:0,elapsedTime:0,pseudoElement:0}),T=er(D),N=p({},fc,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),q=er(N),W=p({},da,{newState:0,oldState:0}),Ee=er(W),Le=[9,13,27,32],Xe=ds&&"CompositionEvent"in window,ut=null;ds&&"documentMode"in document&&(ut=document.documentMode);var At=ds&&"TextEvent"in window&&!ut,Mt=ds&&(!Xe||ut&&8<ut&&11>=ut),bn=" ",il=!1;function zh(s,o){switch(s){case"keyup":return Le.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pd(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ya=!1;function $h(s,o){switch(s){case"compositionend":return pd(o);case"keypress":return o.which!==32?null:(il=!0,bn);case"textInput":return s=o.data,s===bn&&il?null:s;default:return null}}function $v(s,o){if(Ya)return s==="compositionend"||!Xe&&zh(s,o)?(s=jh(),nl=ld=js=null,Ya=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Mt&&o.locale!=="ko"?null:o.data;default:return null}}var Hh={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 Bh(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!Hh[s.type]:o==="textarea"}function Fh(s,o,c,f){Ga?ua?ua.push(f):ua=[f]:Ga=f,o=Ap(o,"onChange"),0<o.length&&(c=new dc("onChange","change",null,c,f),s.push({event:c,listeners:o}))}var Ka=null,Qa=null;function Uh(s){F_(s,0)}function Wa(s){var o=mi(s);if(Ah(o))return s}function hc(s,o){if(s==="change")return o}var md=!1;if(ds){var gd;if(ds){var vd="oninput"in document;if(!vd){var Ih=document.createElement("div");Ih.setAttribute("oninput","return;"),vd=typeof Ih.oninput=="function"}gd=vd}else gd=!1;md=gd&&(!document.documentMode||9<document.documentMode)}function Vh(){Ka&&(Ka.detachEvent("onpropertychange",yd),Qa=Ka=null)}function yd(s){if(s.propertyName==="value"&&Wa(Qa)){var o=[];Fh(o,Qa,s,lc(s)),Ph(Uh,o)}}function hN(s,o,c){s==="focusin"?(Vh(),Ka=o,Qa=c,Ka.attachEvent("onpropertychange",yd)):s==="focusout"&&Vh()}function pN(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Wa(Qa)}function mN(s,o){if(s==="click")return Wa(o)}function gN(s,o){if(s==="input"||s==="change")return Wa(o)}function vN(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var vi=typeof Object.is=="function"?Object.is:vN;function bd(s,o){if(vi(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var c=Object.keys(s),f=Object.keys(o);if(c.length!==f.length)return!1;for(f=0;f<c.length;f++){var v=c[f];if(!Te.call(o,v)||!vi(s[v],o[v]))return!1}return!0}function hS(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function pS(s,o){var c=hS(s);s=0;for(var f;c;){if(c.nodeType===3){if(f=s+c.textContent.length,s<=o&&f>=o)return{node:c,offset:o-s};s=f}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=hS(c)}}function mS(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?mS(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function gS(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=Jo(s.document);o instanceof s.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)s=o.contentWindow;else break;o=Jo(s.document)}return o}function Hv(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var yN=ds&&"documentMode"in document&&11>=document.documentMode,pc=null,Bv=null,xd=null,Fv=!1;function vS(s,o,c){var f=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Fv||pc==null||pc!==Jo(f)||(f=pc,"selectionStart"in f&&Hv(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focu
vendor: 75,546 bytes, line 49
49sNode:f.focusNode,focusOffset:f.focusOffset}),xd&&bd(xd,f)||(xd=f,f=Ap(Bv,"onSelect"),0<f.length&&(o=new dc("onSelect","select",null,o,c),s.push({event:o,listeners:f}),o.target=pc)))}function sl(s,o){var c={};return c[s.toLowerCase()]=o.toLowerCase(),c["Webkit"+s]="webkit"+o,c["Moz"+s]="moz"+o,c}var mc={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},Uv={},yS={};ds&&(yS=document.createElement("div").style,"AnimationEvent"in window||(delete mc.animationend.animation,delete mc.animationiteration.animation,delete mc.animationstart.animation),"TransitionEvent"in window||delete mc.transitionend.transition);function al(s){if(Uv[s])return Uv[s];if(!mc[s])return s;var o=mc[s],c;for(c in o)if(o.hasOwnProperty(c)&&c in yS)return Uv[s]=o[c];return s}var bS=al("animationend"),xS=al("animationiteration"),wS=al("animationstart"),bN=al("transitionrun"),xN=al("transitionstart"),wN=al("transitioncancel"),SS=al("transitionend"),_S=new Map,Iv="abort auxClick beforeToggle 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(" ");Iv.push("scrollEnd");function fs(s,o){_S.set(s,o),En(o,[s])}var ES=new WeakMap;function $i(s,o){if(typeof s=="object"&&s!==null){var c=ES.get(s);return c!==void 0?c:(o={value:s,source:o,stack:Th(o)},ES.set(s,o),o)}return{value:s,source:o,stack:Th(o)}}var Hi=[],gc=0,Vv=0;function qh(){for(var s=gc,o=Vv=gc=0;o<s;){var c=Hi[o];Hi[o++]=null;var f=Hi[o];Hi[o++]=null;var v=Hi[o];Hi[o++]=null;var _=Hi[o];if(Hi[o++]=null,f!==null&&v!==null){var z=f.pending;z===null?v.next=v:(v.next=z.next,z.next=v),f.pending=v}_!==0&&CS(c,v,_)}}function Gh(s,o,c,f){Hi[gc++]=s,Hi[gc++]=o,Hi[gc++]=c,Hi[gc++]=f,Vv|=f,s.lanes|=f,s=s.alternate,s!==null&&(s.lanes|=f)}function qv(s,o,c,f){return Gh(s,o,c,f),Xh(s)}function vc(s,o){return Gh(s,null,null,o),Xh(s)}function CS(s,o,c){s.lanes|=c;var f=s.alternate;f!==null&&(f.lanes|=c);for(var v=!1,_=s.return;_!==null;)_.childLanes|=c,f=_.alternate,f!==null&&(f.childLanes|=c),_.tag===22&&(s=_.stateNode,s===null||s._visibility&1||(v=!0)),s=_,_=_.return;return s.tag===3?(_=s.stateNode,v&&o!==null&&(v=31-ot(c),s=_.hiddenUpdates,f=s[v],f===null?s[v]=[o]:f.push(o),o.lane=c|536870912),_):null}function Xh(s){if(50<qd)throw qd=0,Wy=null,Error(r(185));for(var o=s.return;o!==null;)s=o,o=s.return;return s.tag===3?s.stateNode:null}var yc={};function SN(s,o,c,f){this.tag=s,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yi(s,o,c,f){return new SN(s,o,c,f)}function Gv(s){return s=s.prototype,!(!s||!s.isReactComponent)}function fa(s,o){var c=s.alternate;return c===null?(c=yi(s.tag,o,s.key,s.mode),c.elementType=s.elementType,c.type=s.type,c.stateNode=s.stateNode,c.alternate=s,s.alternate=c):(c.pendingProps=o,c.type=s.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=s.flags&65011712,c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,o=s.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=s.sibling,c.index=s.index,c.ref=s.ref,c.refCleanup=s.refCleanup,c}function RS(s,o){s.flags&=65011714;var c=s.alternate;return c===null?(s.childLanes=0,s.lanes=o,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,o=c.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),s}function Yh(s,o,c,f,v,_){var z=0;if(f=s,typeof s=="function")Gv(s)&&(z=1);else if(typeof s=="string")z=E3(s,c,se.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case I:return s=yi(31,c,o,v),s.elementType=I,s.lanes=_,s;case E:return ol(c.children,v,_,o);case y:z=8,v|=24;break;case x:return s=yi(12,c,o,v|2),s.elementType=x,s.lanes=_,s;case k:return s=yi(13,c,o,v),s.elementType=k,s.lanes=_,s;case P:return s=yi(19,c,o,v),s.elementType=P,s.lanes=_,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case S:case O:z=10;break e;case R:z=9;break e;case M:z=11;break e;case j:z=14;break e;case H:z=16,f=null;break e}z=29,c=Error(r(130,s===null?"null":typeof s,"")),f=null}return o=yi(z,c,o,v),o.elementType=s,o.type=f,o.lanes=_,o}function ol(s,o,c,f){return s=yi(7,s,f,o),s.lanes=c,s}function Xv(s,o,c){return s=yi(6,s,null,o),s.lanes=c,s}function Yv(s,o,c){return o=yi(4,s.children!==null?s.children:[],s.key,o),o.lanes=c,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}var bc=[],xc=0,Kh=null,Qh=0,Bi=[],Fi=0,ll=null,ha=1,pa="";function cl(s,o){bc[xc++]=Qh,bc[xc++]=Kh,Kh=s,Qh=o}function TS(s,o,c){Bi[Fi++]=ha,Bi[Fi++]=pa,Bi[Fi++]=ll,ll=s;var f=ha;s=pa;var v=32-ot(f)-1;f&=~(1<<v),c+=1;var _=32-ot(o)+v;if(30<_){var z=v-v%5;_=(f&(1<<z)-1).toString(32),f>>=z,v-=z,ha=1<<32-ot(o)+v|c<<v|f,pa=_+s}else ha=1<<_|c<<v|f,pa=s}function Kv(s){s.return!==null&&(cl(s,1),TS(s,1,0))}function Qv(s){for(;s===Kh;)Kh=bc[--xc],bc[xc]=null,Qh=bc[--xc],bc[xc]=null;for(;s===ll;)ll=Bi[--Fi],Bi[Fi]=null,pa=Bi[--Fi],Bi[Fi]=null,ha=Bi[--Fi],Bi[Fi]=null}var Hr=null,Cn=null,jt=!1,ul=null,Ls=!1,Wv=Error(r(519));function dl(s){var o=Error(r(418,""));throw _d($i(o,s)),Wv}function OS(s){var o=s.stateNode,c=s.type,f=s.memoizedProps;switch(o[Wt]=s,o[yn]=f,c){case"dialog":Rt("cancel",o),Rt("close",o);break;case"iframe":case"object":case"embed":Rt("load",o);break;case"video":case"audio":for(c=0;c<Xd.length;c++)Rt(Xd[c],o);break;case"source":Rt("error",o);break;case"img":case"image":case"link":Rt("error",o),Rt("load",o);break;case"details":Rt("toggle",o);break;case"input":Rt("invalid",o),Ia(o,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),ic(o);break;case"select":Rt("invalid",o);break;case"textarea":Rt("invalid",o),Mh(o,f.value,f.defaultValue,f.children),ic(o)}c=f.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||f.suppressHydrationWarning===!0||q_(o.textContent,c)?(f.popover!=null&&(Rt("beforetoggle",o),Rt("toggle",o)),f.onScroll!=null&&Rt("scroll",o),f.onScrollEnd!=null&&Rt("scrollend",o),f.onClick!=null&&(o.onclick=kp),o=!0):o=!1,o||dl(s)}function AS(s){for(Hr=s.return;Hr;)switch(Hr.tag){case 5:case 13:Ls=!1;return;case 27:case 3:Ls=!0;return;default:Hr=Hr.return}}function wd(s){if(s!==Hr)return!1;if(!jt)return AS(s),jt=!0,!1;var o=s.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=s.type,c=!(c!=="form"&&c!=="button")||h0(s.type,s.memoizedProps)),c=!c),c&&Cn&&dl(s),AS(s),o===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8)if(c=s.data,c==="/$"){if(o===0){Cn=ps(s.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;s=s.nextSibling}Cn=null}}else o===27?(o=Cn,po(s.type)?(s=v0,v0=null,Cn=s):Cn=o):Cn=Hr?ps(s.stateNode.nextSibling):null;return!0}function Sd(){Cn=Hr=null,jt=!1}function kS(){var s=ul;return s!==null&&(ti===null?ti=s:ti.push.apply(ti,s),ul=null),s}function _d(s){ul===null?ul=[s]:ul.push(s)}var Zv=ee(null),fl=null,ma=null;function Za(s,o,c){le(Zv,o._currentValue),o._currentValue=c}function ga(s){s._currentValue=Zv.current,ve(Zv)}function Jv(s,o,c){for(;s!==null;){var f=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,f!==null&&(f.childLanes|=o)):f!==null&&(f.childLanes&o)!==o&&(f.childLanes|=o),s===c)break;s=s.return}}function ey(s,o,c,f){var v=s.child;for(v!==null&&(v.return=s);v!==null;){var _=v.dependencies;if(_!==null){var z=v.child;_=_.firstContext;e:for(;_!==null;){var B=_;_=v;for(var Z=0;Z<o.length;Z++)if(B.context===o[Z]){_.lanes|=c,B=_.alternate,B!==null&&(B.lanes|=c),Jv(_.return,c,s),f||(z=null);break e}_=B.next}}else if(v.tag===18){if(z=v.return,z===null)throw Error(r(341));z.lanes|=c,_=z.alternate,_!==null&&(_.lanes|=c),Jv(z,c,s),z=null}else z=v.child;if(z!==null)z.return=v;else for(z=v;z!==null;){if(z===s){z=null;break}if(v=z.sibling,v!==null){v.return=z.return,z=v;break}z=z.return}v=z}}function Ed(s,o,c,f){s=null;for(var v=o,_=!1;v!==null;){if(!_){if((v.flags&524288)!==0)_=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var z=v.alternate;if(z===null)throw Error(r(387));if(z=z.memoizedProps,z!==null){var B=v.type;vi(v.pendingProps.value,z.value)||(s!==null?s.push(B):s=[B])}}else if(v===be.current){if(z=v.alternate,z===null)throw Error(r(387));z.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(s!==null?s.push(Jd):s=[Jd])}v=v.return}s!==null&&ey(o,s,c,f),o.flags|=262144}function Wh(s){for(s=s.firstContext;s!==null;){if(!vi(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function hl(s){fl=s,ma=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Rr(s){return MS(fl,s)}function Zh(s,o){return fl===null&&hl(s),MS(s,o)}function MS(s,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},ma===null){if(s===null)throw Error(r(308));ma=o,s.dependencies={lanes:0,firstContext:o},s.flags|=524288}else ma=ma.next=o;return c}var _N=typeof AbortController<"u"?AbortController:function(){var s=[],o=this.signal={aborted:!1,addEventListener:function(c,f){s.push(f)}};this.abort=function(){o.aborted=!0,s.forEach(function(c){return c()})}},EN=t.unstable_scheduleCallback,CN=t.unstable_NormalPriority,tr={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ty(){return{controller:new _N,data:new Map,refCount:0}}function Cd(s){s.refCount--,s.refCount===0&&EN(CN,function(){s.controller.abort()})}var Rd=null,ny=0,wc=0,Sc=null;function RN(s,o){if(Rd===null){var c=Rd=[];ny=0,wc=i0(),Sc={status:"pending",value:void 0,then:function(f){c.push(f)}}}return ny++,o.then(NS,NS),o}function NS(){if(--ny===0&&Rd!==null){Sc!==null&&(Sc.status="fulfilled");var s=Rd;Rd=null,wc=0,Sc=null;for(var o=0;o<s.length;o++)(0,s[o])()}}function TN(s,o){var c=[],f={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return s.then(function(){f.status="fulfilled",f.value=o;for(var v=0;v<c.length;v++)(0,c[v])(o)},function(v){for(f.status="rejected",f.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),f}var DS=F.S;F.S=function(s,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&RN(s,o),DS!==null&&DS(s,o)};var pl=ee(null);function ry(){var s=pl.current;return s!==null?s:ln.pooledCache}function Jh(s,o){o===null?le(pl,pl.current):le(pl,o.pool)}function PS(){var s=ry();return s===null?null:{parent:tr._currentValue,pool:s}}var Td=Error(r(460)),jS=Error(r(474)),ep=Error(r(542)),iy={then:function(){}};function LS(s){return s=s.status,s==="fulfilled"||s==="rejected"}function tp(){}function zS(s,o,c){switch(c=s[c],c===void 0?s.push(o):c!==o&&(o.then(tp,tp),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,HS(s),s;default:if(typeof o.status=="string")o.then(tp,tp);else{if(s=ln,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=o,s.status="pending",s.then(function(f){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=f}},function(f){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=f}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,HS(s),s}throw Od=o,Td}}var Od=null;function $S(){if(Od===null)throw Error(r(459));var s=Od;return Od=null,s}function HS(s){if(s===Td||s===ep)throw Error(r(483))}var Ja=!1;function sy(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ay(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function eo(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function to(s,o,c){var f=s.updateQueue;if(f===null)return null;if(f=f.shared,(Gt&2)!==0){var v=f.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),f.pending=o,o=Xh(s),CS(s,null,c),o}return Gh(s,f,o,c),Xh(s)}function Ad(s,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,Lr(s,c)}}function oy(s,o){var c=s.updateQueue,f=s.alternate;if(f!==null&&(f=f.updateQueue,c===f)){var v=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var z={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?v=_=z:_=_.next=z,c=c.next}while(c!==null);_===null?v=_=o:_=_.next=o}else v=_=o;c={baseState:f.baseState,firstBaseUpdate:v,lastBaseUpdate:_,shared:f.shared,callbacks:f.callbacks},s.updateQueue=c;return}s=c.lastBaseUpdate,s===null?c.firstBaseUpdate=o:s.next=o,c.lastBaseUpdate=o}var ly=!1;function kd(){if(ly){var s=Sc;if(s!==null)throw s}}function Md(s,o,c,f){ly=!1;var v=s.updateQueue;Ja=!1;var _=v.firstBaseUpdate,z=v.lastBaseUpdate,B=v.shared.pending;if(B!==null){v.shared.pending=null;var Z=B,de=Z.next;Z.next=null,z===null?_=de:z.next=de,z=Z;var Ce=s.alternate;Ce!==null&&(Ce=Ce.updateQueue,B=Ce.lastBaseUpdate,B!==z&&(B===null?Ce.firstBaseUpdate=de:B.next=de,Ce.lastBaseUpdate=Z))}if(_!==null){var Oe=v.baseState;z=0,Ce=de=Z=null,B=_;do{var me=B.lane&-536870913,ge=me!==B.lane;if(ge?(kt&me)===me:(f&me)===me){me!==0&&me===wc&&(ly=!0),Ce!==null&&(Ce=Ce.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var ht=s,lt=B;me=o;var en=c;switch(lt.tag){case 1:if(ht=lt.payload,typeof ht=="function"){Oe=ht.call(en,Oe,me);break e}Oe=ht;break e;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=lt.payload,me=typeof ht=="function"?ht.call(en,Oe,me):ht,me==null)break e;Oe=p({},Oe,me);break e;case 2:Ja=!0}}me=B.callback,me!==null&&(s.flags|=64,ge&&(s.flags|=8192),ge=v.callbacks,ge===null?v.callbacks=[me]:ge.push(me))}else ge={lane:me,tag:B.tag,payload:B.payload,callback:B.callback,next:null},Ce===null?(de=Ce=ge,Z=Oe):Ce=Ce.next=ge,z|=me;if(B=B.next,B===null){if(B=v.shared.pending,B===null)break;ge=B,B=ge.next,ge.next=null,v.lastBaseUpdate=ge,v.shared.pending=null}}while(!0);Ce===null&&(Z=Oe),v.baseState=Z,v.firstBaseUpdate=de,v.lastBaseUpdate=Ce,_===null&&(v.shared.lanes=0),co|=z,s.lanes=z,s.memoizedState=Oe}}function BS(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function FS(s,o){var c=s.callbacks;if(c!==null)for(s.callbacks=null,s=0;s<c.length;s++)BS(c[s],o)}var _c=ee(null),np=ee(0);function US(s,o){s=_a,le(np,s),le(_c,o),_a=s|o.baseLanes}function cy(){le(np,_a),le(_c,_c.current)}function uy(){_a=np.current,ve(_c),ve(np)}var no=0,wt=null,Zt=null,qn=null,rp=!1,Ec=!1,ml=!1,ip=0,Nd=0,Cc=null,ON=0;function zn(){throw Error(r(321))}function dy(s,o){if(o===null)return!1;for(var c=0;c<o.length&&c<s.length;c++)if(!vi(s[c],o[c]))return!1;return!0}function fy(s,o,c,f,v,_){return no=_,wt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,F.H=s===null||s.memoizedState===null?C2:R2,ml=!1,_=c(f,v),ml=!1,Ec&&(_=VS(o,c,f,v)),IS(s),_}function IS(s){F.H=up;var o=Zt!==null&&Zt.next!==null;if(no=0,qn=Zt=wt=null,rp=!1,Nd=0,Cc=null,o)throw Error(r(300));s===null||ar||(s=s.dependencies,s!==null&&Wh(s)&&(ar=!0))}function VS(s,o,c,f){wt=s;var v=0;do{if(Ec&&(Cc=null),Nd=0,Ec=!1,25<=v)throw Error(r(301));if(v+=1,qn=Zt=null,s.updateQueue!=null){var _=s.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}F.H=jN,_=o(c,f)}while(Ec);return _}function AN(){var s=F.H,o=s.useState()[0];return o=typeof o.then=="function"?Dd(o):o,s=s.useState()[0],(Zt!==null?Zt.memoizedState:null)!==s&&(wt.flags|=1024),o}function hy(){var s=ip!==0;return ip=0,s}function py(s,o,c){o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~c}function my(s){if(rp){for(s=s.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}rp=!1}no=0,qn=Zt=wt=null,Ec=!1,Nd=ip=0,Cc=null}function Jr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?wt.memoizedState=qn=s:qn=qn.next=s,qn}function Gn(){if(Zt===null){var s=wt.alternate;s=s!==null?s.memoizedState:null}else s=Zt.next;var o=qn===null?wt.memoizedState:qn.next;if(o!==null)qn=o,Zt=s;else{if(s===null)throw wt.alternate===null?Error(r(467)):Error(r(310));Zt=s,s={memoizedState:Zt.memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},qn===null?wt.memoizedState=qn=s:qn=qn.next=s}return qn}function gy(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dd(s){var o=Nd;return Nd+=1,Cc===null&&(Cc=[]),s=zS(Cc,s,o),o=wt,(qn===null?o.memoizedState:qn.next)===null&&(o=o.alternate,F.H=o===null||o.memoizedState===null?C2:R2),s}function sp(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Dd(s);if(s.$$typeof===O)return Rr(s)}throw Error(r(438,String(s)))}function vy(s){var o=null,c=wt.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var f=wt.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(o={data:f.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=gy(),wt.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(s),f=0;f<s;f++)c[f]=A;return o.index++,c}function va(s,o){return typeof o=="function"?o(s):o}function ap(s){var o=Gn();return yy(o,Zt,s)}function yy(s,o,c){var f=s.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=c;var v=s.baseQueue,_=f.pending;if(_!==null){if(v!==null){var z=v.next;v.next=_.next,_.next=z}o.baseQueue=v=_,f.pending=null}if(_=s.baseState,v===null)s.memoizedState=_;else{o=v.next;var B=z=null,Z=null,de=o,Ce=!1;do{var Oe=de.lane&-536870913;if(Oe!==de.lane?(kt&Oe)===Oe:(no&Oe)===Oe){var me=de.revertLane;if(me===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Oe===wc&&(Ce=!0);else if((no&me)===me){de=de.next,me===wc&&(Ce=!0);continue}else Oe={lane:0,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Z===null?(B=Z=Oe,z=_):Z=Z.next=Oe,wt.lanes|=me,co|=me;Oe=de.action,ml&&c(_,Oe),_=de.hasEagerState?de.eagerState:c(_,Oe)}else me={lane:Oe,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Z===null?(B=Z=me,z=_):Z=Z.next=me,wt.lanes|=Oe,co|=Oe;de=de.next}while(de!==null&&de!==o);if(Z===null?z=_:Z.next=B,!vi(_,s.memoizedState)&&(ar=!0,Ce&&(c=Sc,c!==null)))throw c;s.memoizedState=_,s.baseState=z,s.baseQueue=Z,f.lastRenderedState=_}return v===null&&(f.lanes=0),[s.memoizedState,f.dispatch]}function by(s){var o=Gn(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=s;var f=c.dispatch,v=c.pending,_=o.memoizedState;if(v!==null){c.pending=null;var z=v=v.next;do _=s(_,z.action),z=z.next;while(z!==v);vi(_,o.memoizedState)||(ar=!0),o.memoizedState=_,o.baseQueue===null&&(o.baseState=_),c.lastRenderedState=_}return[_,f]}function qS(s,o,c){var f=wt,v=Gn(),_=jt;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=o();var z=!vi((Zt||v).memoizedState,c);z&&(v.memoizedState=c,ar=!0),v=v.queue;var B=YS.bind(null,f,v,s);if(Pd(2048,8,B,[s]),v.getSnapshot!==o||z||qn!==null&&qn.memoizedState.tag&1){if(f.flags|=2048,Rc(9,op(),XS.bind(null,f,v,c,o),null),ln===null)throw Error(r(349));_||(no&124)!==0||GS(f,o,c)}return c}function GS(s,o,c){s.flags|=16384,s={getSnapshot:o,value:c},o=wt.updateQueue,o===null?(o=gy(),wt.updateQueue=o,o.stores=[s]):(c=o.stores,c===null?o.stores=[s]:c.push(s))}function XS(s,o,c,f){o.value=c,o.getSnapshot=f,KS(o)&&QS(s)}function YS(s,o,c){return c(function(){KS(o)&&QS(s)})}function KS(s){var o=s.getSnapshot;s=s.value;try{var c=o();return!vi(s,c)}catch{return!0}}function QS(s){var o=vc(s,2);o!==null&&_i(o,s,2)}function xy(s){var o=Jr();if(typeof s=="function"){var c=s;if(s=c(),ml){Je(!0);try{c()}finally{Je(!1)}}}return o.memoizedState=o.baseState=s,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:s},o}function WS(s,o,c,f){return s.baseState=c,yy(s,Zt,typeof f=="function"?f:va)}function kN(s,o,c,f,v){if(cp(s))throw Error(r(485));if(s=o.action,s!==null){var _={payload:v,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){_.listeners.push(z)}};F.T!==null?c(!0):_.isTransition=!1,f(_),c=o.pending,c===null?(_.next=o.pending=_,ZS(o,_)):(_.next=c.next,o.pending=c.next=_)}}function ZS(s,o){var c=o.action,f=o.payload,v=s.state;if(o.isTransition){var _=F.T,z={};F.T=z;try{var B=c(v,f),Z=F.S;Z!==null&&Z(z,B),JS(s,o,B)}catch(de){wy(s,o,de)}finally{F.T=_}}else try{_=c(v,f),JS(s,o,_)}catch(de){wy(s,o,de)}}function JS(s,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(f){e2(s,o,f)},function(f){return wy(s,o,f)}):e2(s,o,c)}function e2(s,o,c){o.status="fulfilled",o.value=c,t2(o),s.state=c,o=s.pending,o!==null&&(c=o.next,c===o?s.pending=null:(c=c.next,o.next=c,ZS(s,c)))}function wy(s,o,c){var f=s.pending;if(s.pending=null,f!==null){f=f.next;do o.status="rejected",o.reason=c,t2(o),o=o.next;while(o!==f)}s.action=null}function t2(s){s=s.listeners;for(var o=0;o<s.length;o++)(0,s[o])()}function n2(s,o){return o}function r2(s,o){if(jt){var c=ln.formState;if(c!==null){e:{var f=wt;if(jt){if(Cn){t:{for(var v=Cn,_=Ls;v.nodeType!==8;){if(!_){v=null;break t}if(v=ps(v.nextSibling),v===null){v=null;break t}}_=v.data,v=_==="F!"||_==="F"?v:null}if(v){Cn=ps(v.nextSibling),f=v.data==="F!";break e}}dl(f)}f=!1}f&&(o=c[0])}}return c=Jr(),c.memoizedState=c.baseState=o,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n2,lastRenderedState:o},c.queue=f,c=S2.bind(null,wt,f),f.dispatch=c,f=xy(!1),_=Ry.bind(null,wt,!1,f.queue),f=Jr(),v={state:o,dispatch:null,action:s,pending:null},f.queue=v,c=kN.bind(null,wt,v,_,c),v.dispatch=c,f.memoizedState=s,[o,c,!1]}function i2(s){var o=Gn();return s2(o,Zt,s)}function s2(s,o,c){if(o=yy(s,o,n2)[0],s=ap(va)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var f=Dd(o)}catch(z){throw z===Td?ep:z}else f=o;o=Gn();var v=o.queue,_=v.dispatch;return c!==o.memoizedState&&(wt.flags|=2048,Rc(9,op(),MN.bind(null,v,c),null)),[f,_,s]}function MN(s,o){s.action=o}function a2(s){var o=Gn(),c=Zt;if(c!==null)return s2(o,c,s);Gn(),o=o.memoizedState,c=Gn();var f=c.queue.dispatch;return c.memoizedState=s,[o,f,!1]}function Rc(s,o,c,f){return s={tag:s,create:c,deps:f,inst:o,next:null},o=wt.updateQueue,o===null&&(o=gy(),wt.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=s.next=s:(f=c.next,c.next=s,s.next=f,o.lastEffect=s),s}function op(){return{destroy:void 0,resource:void 0}}function o2(){return Gn().memoizedState}function lp(s,o,c,f){var v=Jr();f=f===void 0?null:f,wt.flags|=s,v.memoizedState=Rc(1|o,op(),c,f)}function Pd(s,o,c,f){var v=Gn();f=f===void 0?null:f;var _=v.memoizedState.inst;Zt!==null&&f!==null&&dy(f,Zt.memoizedState.deps)?v.memoizedState=Rc(o,_,c,f):(wt.flags|=s,v.memoizedState=Rc(1|o,_,c,f))}function l2(s,o){lp(8390656,8,s,o)}function c2(s,o){Pd(2048,8,s,o)}function u2(s,o){return Pd(4,2,s,o)}function d2(s,o){return Pd(4,4,s,o)}function f2(s,o){if(typeof o=="function"){s=s();var c=o(s);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function h2(s,o,c){c=c!=null?c.concat([s]):null,Pd(4,4,f2.bind(null,o,s),c)}function Sy(){}function p2(s,o){var c=Gn();o=o===void 0?null:o;var f=c.memoizedState;return o!==null&&dy(o,f[1])?f[0]:(c.memoizedState=[s,o],s)}function m2(s,o){var c=Gn();o=o===void 0?null:o;var f=c.memoizedState;if(o!==null&&dy(o,f[1]))return f[0];if(f=s(),ml){Je(!0);try{s()}finally{Je(!1)}}return c.memoizedState=[f,o],f}function _y(s,o,c){return c===void 0||(no&1073741824)!==0?s.memoizedState=o:(s.memoizedState=c,s=y_(),wt.lanes|=s,co|=s,c)}function g2(s,o,c,f){return vi(c,o)?c:_c.current!==null?(s=_y(s,c,f),vi(s,o)||(ar=!0),s):(no&42)===0?(ar=!0,s.memoizedState=c):(s=y_(),wt.lanes|=s,co|=s,o)}function v2(s,o,c,f,v){var _=J.p;J.p=_!==0&&8>_?_:8;var z=F.T,B={};F.T=B,Ry(s,!1,o,c);try{var Z=v(),de=F.S;if(de!==null&&de(B,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var Ce=TN(Z,f);jd(s,o,Ce,Si(s))}else jd(s,o,f,Si(s))}catch(Oe){jd(s,o,{then:function(){},status:"rejected",reason:Oe},Si())}finally{J.p=_,F.T=z}}function NN(){}function Ey(s,o,c,f){if(s.tag!==5)throw Error(r(476));var v=y2(s).queue;v2(s,v,o,ae,c===null?NN:function(){return b2(s),c(f)})}function y2(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:ae},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:c},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function b2(s){var o=y2(s).next.queue;jd(s,o,{},Si())}function Cy(){return Rr(Jd)}function x2(){return Gn().memoizedState}function w2(){return Gn().memoizedState}function DN(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var c=Si();s=eo(c);var f=to(o,s,c);f!==null&&(_i(f,o,c),Ad(f,o,c)),o={cache:ty()},s.payload=o;return}o=o.return}}function PN(s,o,c){var f=Si();c={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},cp(s)?_2(o,c):(c=qv(s,o,c,f),c!==null&&(_i(c,s,f),E2(c,o,f)))}function S2(s,o,c){var f=Si();jd(s,o,c,f)}function jd(s,o,c,f){var v={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(cp(s))_2(o,v);else{var _=s.alternate;if(s.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var z=o.lastRenderedState,B=_(z,c);if(v.hasEagerState=!0,v.eagerState=B,vi(B,z))return Gh(s,o,v,0),ln===null&&qh(),!1}catch{}finally{}if(c=qv(s,o,v,f),c!==null)return _i(c,s,f),E2(c,o,f),!0}return!1}function Ry(s,o,c,f){if(f={lane:2,revertLane:i0(),action:f,hasEagerState:!1,eagerState:null,next:null},cp(s)){if(o)throw Error(r(479))}else o=qv(s,c,f,2),o!==null&&_i(o,s,2)}function cp(s){var o=s.alternate;return s===wt||o!==null&&o===wt}function _2(s,o){Ec=rp=!0;var c=s.pending;c===null?o.next=o:(o.next=c.next,c.next=o),s.pending=o}function E2(s,o,c){if((c&4194048)!==0){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,Lr(s,c)}}var up={readContext:Rr,use:sp,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useLayoutEffect:zn,useInsertionEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useSyncExternalStore:zn,useId:zn,useHostTransitionStatus:zn,useFormState:zn,useActionState:zn,useOptimistic:zn,useMemoCache:zn,useCacheRefresh:zn},C2={readContext:Rr,use:sp,useCallback:function(s,o){return Jr().memoizedState=[s,o===void 0?null:o],s},useContext:Rr,useEffect:l2,useImperativeHandle:function(s,o,c){c=c!=null?c.concat([s]):null,lp(4194308,4,f2.bind(null,o,s),c)},useLayoutEffect:function(s,o){return lp(4194308,4,s,o)},useInsertionEffect:function(s,o){lp(4,2,s,o)},useMemo:function(s,o){var c=Jr();o=o===void 0?null:o;var f=s();if(ml){Je(!0);try{s()}finally{Je(!1)}}return c.memoizedState=[f,o],f},useReducer:function(s,o,c){var f=Jr();if(c!==void 0){var v=c(o);if(ml){Je(!0);try{c(o)}finally{Je(!1)}}}else v=o;return f.memoizedState=f.baseState=v,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:v},f.queue=s,s=s.dispatch=PN.bind(null,wt,s),[f.memoizedState,s]},useRef:function(s){var o=Jr();return s={current:s},o.memoizedState=s},useState:function(s){s=xy(s);var o=s.queue,c=S2.bind(null,wt,o);return o.dispatch=c,[s.memoizedState,c]},useDebugValue:Sy,useDeferredValue:function(s,o){var c=Jr();return _y(c,s,o)},useTransition:function(){var s=xy(!1);return s=v2.bind(null,wt,s.queue,!0,!1),Jr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,c){var f=wt,v=Jr();if(jt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),ln===null)throw Error(r(349));(kt&124)!==0||GS(f,o,c)}v.memoizedState=c;var _={value:c,getSnapshot:o};return v.queue=_,l2(YS.bind(null,f,_,s),[s]),f.flags|=2048,Rc(9,op(),XS.bind(null,f,_,c,o),null),c},useId:function(){var s=Jr(),o=ln.identifierPrefix;if(jt){var c=pa,f=ha;c=(f&~(1<<32-ot(f)-1)).toString(32)+c,o="«"+o+"R"+c,c=ip++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=ON++,o="«"+o+"r"+c.toString(32)+"»";return s.memoizedState=o},useHostTransitionStatus:Cy,useFormState:r2,useActionState:r2,useOptimistic:function(s){var o=Jr();o.memoizedState=o.baseState=s;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=Ry.bind(null,wt,!0,c),c.dispatch=o,[s,o]},useMemoCache:vy,useCacheRefresh:function(){return Jr().memoizedState=DN.bind(null,wt)}},R2={readContext:Rr,use:sp,useCallback:p2,useContext:Rr,useEffect:c2,useImperativeHandle:h2,useInsertionEffect:u2,useLayoutEffect:d2,useMemo:m2,useReducer:ap,useRef:o2,useState:function(){return ap(va)},useDebugValue:Sy,useDeferredValue:function(s,o){var c=Gn();return g2(c,Zt.memoizedState,s,o)},useTransition:function(){var s=ap(va)[0],o=Gn().memoizedState;return[typeof s=="boolean"?s:Dd(s),o]},useSyncExternalStore:qS,useId:x2,useHostTransitionStatus:Cy,useFormState:i2,useActionState:i2,useOptimistic:function(s,o){var c=Gn();return WS(c,Zt,s,o)},useMemoCache:vy,useCacheRefresh:w2},jN={readContext:Rr,use:sp,useCallback:p2,useContext:Rr,useEffect:c2,useImperativeHandle:h2,useInsertionEffect:u2,useLayoutEffect:d2,useMemo:m2,useReducer:by,useRef:o2,useState:function(){return by(va)},useDebugValue:Sy,useDeferredValue:function(s,o){var c=Gn();return Zt===null?_y(c,s,o):g2(c,Zt.memoizedState,s,o)},useTransition:function(){var s=by(va)[0],o=Gn().memoizedState;return[typeof s=="boolean"?s:Dd(s),o]},useSyncExternalStore:qS,useId:x2,useHostTransitionStatus:Cy,useFormState:a2,useActionState:a2,useOptimistic:function(s,o){var c=Gn();return Zt!==null?WS(c,Zt,s,o):(c.baseState=s,[s,c.queue.dispatch])},useMemoCache:vy,useCacheRefresh:w2},Tc=null,Ld=0;function dp(s){var o=Ld;return Ld+=1,Tc===null&&(Tc=[]),zS(Tc,s,o)}function zd(s,o){o=o.props.ref,s.ref=o!==void 0?o:null}function fp(s,o){throw o.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(o),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s)))}function T2(s){var o=s._init;return o(s._payload)}function O2(s){function o(oe,te){if(s){var ce=oe.deletions;ce===null?(oe.deletions=[te],oe.flags|=16):ce.push(te)}}function c(oe,te){if(!s)return null;for(;te!==null;)o(oe,te),te=te.sibling;return null}function f(oe){for(var te=new Map;oe!==null;)oe.key!==null?te.set(oe.key,oe):te.set(oe.index,oe),oe=oe.sibling;return te}function v(oe,te){return oe=fa(oe,te),oe.index=0,oe.sibling=null,oe}function _(oe,te,ce){return oe.index=ce,s?(ce=oe.alternate,ce!==null?(ce=ce.index,ce<te?(oe.flags|=67108866,te):ce):(oe.flags|=67108866,te)):(oe.flags|=1048576,te)}function z(oe){return s&&oe.alternate===null&&(oe.flags|=67108866),oe}function B(oe,te,ce,Re){return te===null||te.tag!==6?(te=Xv(ce,oe.mode,Re),te.return=oe,te):(te=v(te,ce),te.return=oe,te)}function Z(oe,te,ce,Re){var Ye=ce.type;return Ye===E?Ce(oe,te,ce.props.children,Re,ce.key):te!==null&&(te.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===H&&T2(Ye)===te.type)?(te=v(te,ce.props),zd(te,ce),te.return=oe,te):(te=Yh(ce.type,ce.key,ce.props,null,oe.mode,Re),zd(te,ce),te.return=oe,te)}function de(oe,te,ce,Re){return te===null||te.tag!==4||te.stateNode.containerInfo!==ce.containerInfo||te.stateNode.implementation!==ce.implementation?(te=Yv(ce,oe.mode,Re),te.return=oe,te):(te=v(te,ce.children||[]),te.return=oe,te)}function Ce(oe,te,ce,Re,Ye){return te===null||te.tag!==7?(te=ol(ce,oe.mode,Re,Ye),te.return=oe,te):(te=v(te,ce),te.return=oe,te)}function Oe(oe,te,ce){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=Xv(""+te,oe.mode,ce),te.return=oe,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case g:return ce=Yh(te.type,te.key,te.props,null,oe.mode,ce),zd(ce,te),ce.return=oe,ce;case b:return te=Yv(te,oe.mode,ce),te.return=oe,te;case H:var Re=te._init;return te=Re(te._payload),Oe(oe,te,ce)}if(Q(te)||L(te))return te=ol(te,oe.mode,ce,null),te.return=oe,te;if(typeof te.then=="function")return Oe(oe,dp(te),ce);if(te.$$typeof===O)return Oe(oe,Zh(oe,te),ce);fp(oe,te)}return null}function me(oe,te,ce,Re){var Ye=te!==null?te.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return Ye!==null?null:B(oe,te,""+ce,Re);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case g:return ce.key===Ye?Z(oe,te,ce,Re):null;case b:return ce.key===Ye?de(oe,te,ce,Re):null;case H:return Ye=ce._init,ce=Ye(ce._payload),me(oe,te,ce,Re)}if(Q(ce)||L(ce))return Ye!==null?null:Ce(oe,te,ce,Re,null);if(typeof ce.then=="function")return me(oe,te,dp(ce),Re);if(ce.$$typeof===O)return me(oe,te,Zh(oe,ce),Re);fp(oe,ce)}return null}function ge(oe,te,ce,Re,Ye){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return oe=oe.get(ce)||null,B(te,oe,""+Re,Ye);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case g:return oe=oe.get(Re.key===null?ce:Re.key)||null,Z(te,oe,Re,Ye);case b:return oe=oe.get(Re.key===null?ce:Re.key)||null,de(te,oe,Re,Ye);case H:var St=Re._init;return Re=St(Re._payload),ge(oe,te,ce,Re,Ye)}if(Q(Re)||L(Re))return oe=oe.get(ce)||null,Ce(te,oe,Re,Ye,null);if(typeof Re.then=="function")return ge(oe,te,ce,dp(Re),Ye);if(Re.$$typeof===O)return ge(oe,te,ce,Zh(te,Re),Ye);fp(te,Re)}return null}function ht(oe,te,ce,Re){for(var Ye=null,St=null,et=te,ct=te=0,lr=null;et!==null&&ct<ce.length;ct++){et.index>ct?(lr=et,et=null):lr=et.sibling;var Nt=me(oe,et,ce[ct],Re);if(Nt===null){et===null&&(et=lr);break}s&&et&&Nt.alternate===null&&o(oe,et),te=_(Nt,te,ct),St===null?Ye=Nt:St.sibling=Nt,St=Nt,et=lr}if(ct===ce.length)return c(oe,et),jt&&cl(oe,ct),Ye;if(et===null){for(;ct<ce.length;ct++)et=Oe(oe,ce[ct],Re),et!==null&&(te=_(et,te,ct),St===null?Ye=et:St.sibling=et,St=et);return jt&&cl(oe,ct),Ye}for(et=f(et);ct<ce.length;ct++)lr=ge(et,oe,ct,ce[ct],Re),lr!==null&&(s&&lr.alternate!==null&&et.delete(lr.key===null?ct:lr.key),te=_(lr,te,ct),St===null?Ye=lr:St.sibling=lr,St=lr);return s&&et.forEach(function(bo){return o(oe,bo)}),jt&&cl(oe,ct),Ye}function lt(oe,te,ce,Re){if(ce==null)throw Error(r(151));for(var Ye=null,St=null,et=te,ct=te=0,lr=null,Nt=ce.next();et!==null&&!Nt.done;ct++,Nt=ce.next()){et.index>ct?(lr=et,et=null):lr=et.sibling;var bo=me(oe,et,Nt.value,Re);if(bo===null){et===null&&(et=lr);break}s&&et&&bo.alternate===null&&o(oe,et),te=_(bo,te,ct),St===null?Ye=bo:St.sibling=bo,St=bo,et=lr}if(Nt.done)return c(oe,et),jt&&cl(oe,ct),Ye;if(et===null){for(;!Nt.done;ct++,Nt=ce.next())Nt=Oe(oe,Nt.value,Re),Nt!==null&&(te=_(Nt,te,ct),St===null?Ye=Nt:St.sibling=Nt,St=Nt);return jt&&cl(oe,ct),Ye}for(et=f(et);!Nt.done;ct++,Nt=ce.next())Nt=ge(et,oe,ct,Nt.value,Re),Nt!==null&&(s&&Nt.alternate!==null&&et.delete(Nt.key===null?ct:Nt.key),te=_(Nt,te,ct),St===null?Ye=Nt:St.sibling=Nt,St=Nt);return s&&et.forEach(function(L3){return o(oe,L3)}),jt&&cl(oe,ct),Ye}function en(oe,te,ce,Re){if(typeof ce=="object"&&ce!==null&&ce.type===E&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case g:e:{for(var Ye=ce.key;te!==null;){if(te.key===Ye){if(Ye=ce.type,Ye===E){if(te.tag===7){c(oe,te.sibling),Re=v(te,ce.props.children),Re.return=oe,oe=Re;break e}}else if(te.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===H&&T2(Ye)===te.type){c(oe,te.sibling),Re=v(te,ce.props),zd(Re,ce),Re.return=oe,oe=Re;break e}c(oe,te);break}else o(oe,te);te=te.sibling}ce.type===E?(Re=ol(ce.props.children,oe.mode,Re,ce.key),Re.return=oe,oe=Re):(Re=Yh(ce.type,ce.key,ce.props,null,oe.mode,Re),zd(Re,ce),Re.return=oe,oe=Re)}return z(oe);case b:e:{for(Ye=ce.key;te!==null;){if(te.key===Ye)if(te.tag===4&&te.stateNode.containerInfo===ce.containerInfo&&te.stateNode.implementation===ce.implementation){c(oe,te.sibling),Re=v(te,ce.children||[]),Re.return=oe,oe=Re;break e}else{c(oe,te);break}else o(oe,te);te=te.sibling}Re=Yv(ce,oe.mode,Re),Re.return=oe,oe=Re}return z(oe);case H:return Ye=ce._init,ce=Ye(ce._payload),en(oe,te,ce,Re)}if(Q(ce))return ht(oe,te,ce,Re);if(L(ce)){if(Ye=L(ce),typeof Ye!="function")throw Error(r(150));return ce=Ye.call(ce),lt(oe,te,ce,Re)}if(typeof ce.then=="function")return en(oe,te,dp(ce),Re);if(ce.$$typeof===O)return en(oe,te,Zh(oe,ce),Re);fp(oe,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint"?(ce=""+ce,te!==null&&te.tag===6?(c(oe,te.sibling),Re=v(te,ce),Re.return=oe,oe=Re):(c(oe,te),Re=Xv(ce,oe.mode,Re),Re.return=oe,oe=Re),z(oe)):c(oe,te)}return function(oe,te,ce,Re){try{Ld=0;var Ye=en(oe,te,ce,Re);return Tc=null,Ye}catch(et){if(et===Td||et===ep)throw et;var St=yi(29,et,null,oe.mode);return St.lanes=Re,St.return=oe,St}finally{}}}var Oc=O2(!0),A2=O2(!1),Ui=ee(null),zs=null;function ro(s){var o=s.alternate;le(nr,nr.current&1),le(Ui,s),zs===null&&(o===null||_c.current!==null||o.memoizedState!==null)&&(zs=s)}function k2(s){if(s.tag===22){if(le(nr,nr.current),le(Ui,s),zs===null){var o=s.alternate;o!==null&&o.memoizedState!==null&&(zs=s)}}else io()}function io(){le(nr,nr.current),le(Ui,Ui.current)}function ya(s){ve(Ui),zs===s&&(zs=null),ve(nr)}var nr=ee(0);function hp(s){for(var o=s;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||g0(c)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function Ty(s,o,c,f){o=s.memoizedState,c=c(f,o),c=c==null?o:p({},o,c),s.memoizedState=c,s.lanes===0&&(s.updateQueue.baseState=c)}var Oy={enqueueSetState:function(s,o,c){s=s._reactInternals;var f=Si(),v=eo(f);v.payload=o,c!=null&&(v.callback=c),o=to(s,v,f),o!==null&&(_i(o,s,f),Ad(o,s,f))},enqueueReplaceState:function(s,o,c){s=s._reactInternals;var f=Si(),v=eo(f);v.tag=1,v.payload=o,c!=null&&(v.callback=c),o=to(s,v,f),o!==null&&(_i(o,s,f),Ad(o,s,f))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var c=Si(),f=eo(c);f.tag=2,o!=null&&(f.callback=o),o=to(s,f,c),o!==null&&(_i(o,s,c),Ad(o,s,c))}};function M2(s,o,c,f,v,_,z){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(f,_,z):o.prototype&&o.prototype.isPureReactComponent?!bd(c,f)||!bd(v,_):!0}function N2(s,o,c,f){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,f),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,f),o.state!==s&&Oy.enqueueReplaceState(o,o.state,null)}function gl(s,o){var c=o;if("ref"in o){c={};for(var f in o)f!=="ref"&&(c[f]=o[f])}if(s=s.defaultProps){c===o&&(c=p({},c));for(var v in s)c[v]===void 0&&(c[v]=s[v])}return c}var pp=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function D2(s){pp(s)}function P2(s){console.error(s)}function j2(s){pp(s)}function mp(s,o){try{var c=s.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(f){setTimeout(function(){throw f})}}function L2(s,o,c){try{var f=s.onCaughtError;f(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Ay(s,o,c){return c=eo(c),c.tag=3,c.payload={element:null},c.callback=function(){mp(s,o)},c}function z2(s){return s=eo(s),s.tag=3,s}function $2(s,o,c,f){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var _=f.value;s.payload=function(){return v(_)},s.callback=function(){L2(o,c,f)}}var z=c.stateNode;z!==null&&typeof z.componentDidCatch=="function"&&(s.callback=function(){L2(o,c,f),typeof v!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var B=f.stack;this.componentDidCatch(f.value,{componentStack:B!==null?B:""})})}function LN(s,o,c,f,v){if(c.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(o=c.alternate,o!==null&&Ed(o,c,v,!0),c=Ui.current,c!==null){switch(c.tag){case 13:return zs===null?Jy():c.alternate===null&&Rn===0&&(Rn=3),c.flags&=-257,c.flags|=65536,c.lanes=v,f===iy?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([f]):o.add(f),t0(s,f,v)),!1;case 22:return c.flags|=65536,f===iy?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([f])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([f]):c.add(f)),t0(s,f,v)),!1}throw Error(r(435,c.tag))}return t0(s,f,v),Jy(),!1}if(jt)return o=Ui.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,f!==Wv&&(s=Error(r(422),{cause:f}),_d($i(s,c)))):(f!==Wv&&(o=Error(r(423),{cause:f}),_d($i(o,c))),s=s.current.alternate,s.flags|=65536,v&=-v,s.lanes|=v,f=$i(f,c),v=Ay(s.stateNode,f,v),oy(s,v),Rn!==4&&(Rn=2)),!1;var _=Error(r(520),{cause:f});if(_=$i(_,c),Vd===null?Vd=[_]:Vd.push(_),Rn!==4&&(Rn=2),o===null)return!0;f=$i(f,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,s=v&-v,c.lanes|=s,s=Ay(c.stateNode,f,s),oy(c,s),!1;case 1:if(o=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(uo===null||!uo.has(_))))return c.flags|=65536,v&=-v,c.lanes|=v,v=z2(v),$2(v,s,c,f),oy(c,v),!1}c=c.return}while(c!==null);return!1}var H2=Error(r(461)),ar=!1;function pr(s,o,c,f){o.child=s===null?A2(o,null,c,f):Oc(o,s.child,c,f)}function B2(s,o,c,f,v){c=c.render;var _=o.ref;if("ref"in f){var z={};for(var B in f)B!=="ref"&&(z[B]=f[B])}else z=f;return hl(o),f=fy(s,o,c,z,_,v),B=hy(),s!==null&&!ar?(py(s,o,v),ba(s,o,v)):(jt&&B&&Kv(o),o.flags|=1,pr(s,o,f,v),o.child)}function F2(s,o,c,f,v){if(s===null){var _=c.type;return typeof _=="function"&&!Gv(_)&&_.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=_,U2(s,o,_,f,v)):(s=Yh(c.type,null,f,o,o.mode,v),s.ref=o.ref,s.return=o,o.child=s)}if(_=s.child,!zy(s,v)){var z=_.memoizedProps;if(c=c.compare,c=c!==null?c:bd,c(z,f)&&s.ref===o.ref)return ba(s,o,v)}return o.flags|=1,s=fa(_,f),s.ref=o.ref,s.return=o,o.child=s}function U2(s,o,c,f,v){if(s!==null){var _=s.memoizedProps;if(bd(_,f)&&s.ref===o.ref)if(ar=!1,o.pendingProps=f=_,zy(s,v))(s.flags&131072)!==0&&(ar=!0);else return o.lanes=s.lanes,ba(s,o,v)}return ky(s,o,c,f,v)}function I2(s,o,c){var f=o.pendingProps,v=f.children,_=s!==null?s.memoizedState:null;if(f.mode==="hidden"){if((o.flags&128)!==0){if(f=_!==null?_.baseLanes|c:c,s!==null){for(v=o.child=s.child,_=0;v!==null;)_=_|v.lanes|v.childLanes,v=v.sibling;o.childLanes=_&~f}else o.childLanes=0,o.child=null;return V2(s,o,f,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},s!==null&&Jh(o,_!==null?_.cachePool:null),_!==null?US(o,_):cy(),k2(o);else return o.lanes=o.childLanes=536870912,V2(s,o,_!==null?_.baseLanes|c:c,c)}else _!==null?(Jh(o,_.cachePool),US(o,_),io(),o.memoizedState=null):(s!==null&&Jh(o,null),cy(),io());return pr(s,o,v,c),o.child}function V2(s,o,c,f){var v=ry();return v=v===null?null:{parent:tr._currentValue,pool:v},o.memoizedState={baseLanes:c,cachePool:v},s!==null&&Jh(o,null),cy(),k2(o),s!==null&&Ed(s,o,f,!0),null}function gp(s,o){var c=o.ref;if(c===null)s!==null&&s.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(s===null||s.ref!==c)&&(o.flags|=4194816)}}function ky(s,o,c,f,v){return hl(o),c=fy(s,o,c,f,void 0,v),f=hy(),s!==null&&!ar?(py(s,o,v),ba(s,o,v)):(jt&&f&&Kv(o),o.flags|=1,pr(s,o,c,v),o.child)}function q2(s,o,c,f,v,_){return hl(o),o.updateQueue=null,c=VS(o,f,c,v),IS(s),f=hy(),s!==null&&!ar?(py(s,o,_),ba(s,o,_)):(jt&&f&&Kv(o),o.flags|=1,pr(s,o,c,_),o.child)}function G2(s,o,c,f,v){if(hl(o),o.stateNode===null){var _=yc,z=c.contextType;typeof z=="object"&&z!==null&&(_=Rr(z)),_=new c(f,_),o.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=Oy,o.stateNode=_,_._reactInternals=o,_=o.stateNode,_.props=f,_.state=o.memoizedState,_.refs={},sy(o),z=c.contextType,_.context=typeof z=="object"&&z!==null?Rr(z):yc,_.state=o.memoizedState,z=c.getDerivedStateFromProps,typeof z=="function"&&(Ty(o,c,z,f),_.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(z=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),z!==_.state&&Oy.enqueueReplaceState(_,_.state,null),Md(o,f,_,v),kd(),_.state=o.memoizedState),typeof _.componentDidMount=="function"&&(o.flags|=4194308),f=!0}else if(s===null){_=o.stateNode;var B=o.memoizedProps,Z=gl(c,B);_.props=Z;var de=_.context,Ce=c.contextType;z=yc,typeof Ce=="object"&&Ce!==null&&(z=Rr(Ce));var Oe=c.getDerivedStateFromProps;Ce=typeof Oe=="function"||typeof _.getSnapshotBeforeUpdate=="function",B=o.pendingProps!==B,Ce||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(B||de!==z)&&N2(o,_,f,z),Ja=!1;var me=o.memoizedState;_.state=me,Md(o,f,_,v),kd(),de=o.memoizedState,B||me!==de||Ja?(typeof Oe=="function"&&(Ty(o,c,Oe,f),de=o.memoizedState),(Z=Ja||M2(o,c,Z,f,me,de,z))?(Ce||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=f,o.memoizedState=de),_.props=f,_.state=de,_.context=z,f=Z):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),f=!1)}else{_=o.stateNode,ay(s,o),z=o.memoizedProps,Ce=gl(c,z),_.props=Ce,Oe=o.pendingProps,me=_.context,de=c.contextType,Z=yc,typeof de=="object"&&de!==null&&(Z=Rr(de)),B=c.getDerivedStateFromProps,(de=typeof B=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(z!==Oe||me!==Z)&&N2(o,_,f,Z),Ja=!1,me=o.memoizedState,_.state=me,Md(o,f,_,v),kd();var ge=o.memoizedState;z!==Oe||me!==ge||Ja||s!==null&&s.dependencies!==null&&Wh(s.dependencies)?(typeof B=="function"&&(Ty(o,c,B,f),ge=o.memoizedState),(Ce=Ja||M2(o,c,Ce,f,me,ge,Z)||s!==null&&s.dependencies!==null&&Wh(s.dependencies))?(de||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(f,ge,Z),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(f,ge,Z)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||z===s.memoizedProps&&me===s.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||z===s.memoizedProps&&me===s.memoizedState||(o.flags|=1024),o.memoizedProps=f,o.memoizedState=ge),_.props=f,_.state=ge,_.context=Z,f=Ce):(typeof _.componentDidUpdate!="function"||z===s.memoizedProps&&me===s.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||z===s.memoizedProps&&me===s.memoizedState||(o.flags|=1024),f=!1)}return _=f,gp(s,o),f=(o.flags&128)!==0,_||f?(_=o.stateNode,c=f&&typeof c.getDerivedStateFromError!="function"?null:_.render(),o.flags|=1,s!==null&&f?(o.child=Oc(o,s.child,null,v),o.child=Oc(o,null,c,v)):pr(s,o,c,v),o.memoizedState=_.state,s=o.child):s=ba(s,o,v),s}function X2(s,o,c,f){return Sd(),o.flags|=256,pr(s,o,c,f),o.child}var My={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ny(s){return{baseLanes:s,cachePool:PS()}}function Dy(s,o,c){return s=s!==null?s.childLanes&~c:0,o&&(s|=Ii),s}function Y2(s,o,c){var f=o.pendingProps,v=!1,_=(o.flags&128)!==0,z;if((z=_)||(z=s!==null&&s.memoizedState===null?!1:(nr.current&2)!==0),z&&(v=!0,o.flags&=-129),z=(o.flags&32)!==0,o.flags&=-33,s===null){if(jt){if(v?ro(o):io(),jt){var B=Cn,Z;if(Z=B){e:{for(Z=B,B=Ls;Z.nodeType!==8;){if(!B){B=null;break e}if(Z=ps(Z.nextSibling),Z===null){B=null;break e}}B=Z}B!==null?(o.memoizedState={dehydrated:B,treeContext:ll!==null?{id:ha,overflow:pa}:null,retryLane:536870912,hydrationErrors:null},Z=yi(18,null,null,0),Z.stateNode=B,Z.return=o,o.child=Z,Hr=o,Cn=null,Z=!0):Z=!1}Z||dl(o)}if(B=o.memoizedState,B!==null&&(B=B.dehydrated,B!==null))return g0(B)?o.lanes=32:o.lanes=536870912,null;ya(o)}return B=f.children,f=f.fallback,v?(io(),v=o.mode,B=vp({mode:"hidden",children:B},v),f=ol(f,v,c,null),B.return=o,f.return=o,B.sibling=f,o.child=B,v=o.child,v.memoizedState=Ny(c),v.childLanes=Dy(s,z,c),o.memoizedState=My,f):(ro(o),Py(o,B))}if(Z=s.memoizedState,Z!==null&&(B=Z.dehydrated,B!==null)){if(_)o.flags&256?(ro(o),o.flags&=-257,o=jy(s,o,c)):o.memoizedState!==null?(io(),o.child=s.child,o.flags|=128,o=null):(io(),v=f.fallback,B=o.mode,f=vp({mode:"visible",children:f.children},B),v=ol(v,B,c,null),v.flags|=2,f.return=o,v.return=o,f.sibling=v,o.child=f,Oc(o,s.child,null,c),f=o.child,f.memoizedState=Ny(c),f.childLanes=Dy(s,z,c),o.memoizedState=My,o=v);else if(ro(o),g0(B)){if(z=B.nextSibling&&B.nextSibling.dataset,z)var de=z.dgst;z=de,f=Error(r(419)),f.stack="",f.digest=z,_d({value:f,source:null,stack:null}),o=jy(s,o,c)}else if(ar||Ed(s,o,c,!1),z=(c&s.childLanes)!==0,ar||z){if(z=ln,z!==null&&(f=c&-c,f=(f&42)!==0?1:Cr(f),f=(f&(z.suspendedLanes|c))!==0?0:f,f!==0&&f!==Z.retryLane))throw Z.retryLane=f,vc(s,f),_i(z,s,f),H2;B.data==="$?"||Jy(),o=jy(s,o,c)}else B.data==="$?"?(o.flags|=192,o.child=s.child,o=null):(s=Z.treeContext,Cn=ps(B.nextSibling),Hr=o,jt=!0,ul=null,Ls=!1,s!==null&&(Bi[Fi++]=ha,Bi[Fi++]=pa,Bi[Fi++]=ll,ha=s.id,pa=s.overflow,ll=o),o=Py(o,f.children),o.flags|=4096);return o}return v?(io(),v=f.fallback,B=o.mode,Z=s.child,de=Z.sibling,f=fa(Z,{mode:"hidden",children:f.children}),f.subtreeFlags=Z.subtreeFlags&65011712,de!==null?v=fa(de,v):(v=ol(v,B,c,null),v.flags|=2),v.return=o,f.return=o,f.sibling=v,o.child=f,f=v,v=o.child,B=s.child.memoizedState,B===null?B=Ny(c):(Z=B.cachePool,Z!==null?(de=tr._currentValue,Z=Z.parent!==de?{parent:de,pool:de}:Z):Z=PS(),B={baseLanes:B.baseLanes|c,cachePool:Z}),v.memoizedState=B,v.childLanes=Dy(s,z,c),o.memoizedState=My,f):(ro(o),c=s.child,s=c.sibling,c=fa(c,{mode:"visible",children:f.children}),c.return=o,c.sibling=null,s!==null&&(z=o.deletions,z===null?(o.deletions=[s],o.flags|=16):z.push(s)),o.child=c,o.memoizedState=null,c)}function Py(s,o){return o=vp({mode:"visible",children:o},s.mode),o.return=s,s.child=o}function vp(s,o){return s=yi(22,s,null,o),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function jy(s,o,c){return Oc(o,s.child,null,c),s=Py(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function K2(s,o,c){s.lanes|=o;var f=s.alternate;f!==null&&(f.lanes|=o),Jv(s.return,o,c)}function Ly(s,o,c,f,v){var _=s.memoizedState;_===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:f,tail:c,tailMode:v}:(_.isBackwards=o,_.rendering=null,_.renderingStartTime=0,_.last=f,_.tail=c,_.tailMode=v)}function Q2(s,o,c){var f=o.pendingProps,v=f.revealOrder,_=f.tail;if(pr(s,o,f.children,c),f=nr.current,(f&2)!==0)f=f&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&K2(s,c,o);else if(s.tag===19)K2(s,c,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}f&=1}switch(le(nr,f),v){case"forwards":for(c=o.child,v=null;c!==null;)s=c.alternate,s!==null&&hp(s)===null&&(v=c),c=c.sibling;c=v,c===null?(v=o.child,o.child=null):(v=c.sibling,c.sibling=null),Ly(o,!1,v,c,_);break;case"backwards":for(c=null,v=o.child,o.child=null;v!==null;){if(s=v.alternate,s!==null&&hp(s)===null){o.child=v;break}s=v.sibling,v.sibling=c,c=v,v=s}Ly(o,!0,c,null,_);break;case"together":Ly(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ba(s,o,c){if(s!==null&&(o.dependencies=s.dependencies),co|=o.lanes,(c&o.childLanes)===0)if(s!==null){if(Ed(s,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(s!==null&&o.child!==s.child)throw Error(r(153));if(o.child!==null){for(s=o.child,c=fa(s,s.pendingProps),o.child=c,c.return=o;s.sibling!==null;)s=s.sibling,c=c.sibling=fa(s,s.pendingProps),c.return=o;c.sibling=null}return o.child}function zy(s,o){return(s.lanes&o)!==0?!0:(s=s.dependencies,!!(s!==null&&Wh(s)))}function zN(s,o,c){switch(o.tag){case 3:xe(o,o.stateNode.containerInfo),Za(o,tr,s.memoizedState.cache),Sd();break;case 27:case 5:Me(o);break;case 4:xe(o,o.stateNode.containerInfo);break;case 10:Za(o,o.type,o.memoizedProps.value);break;case 13:var f=o.memoizedState;if(f!==null)return f.dehydrated!==null?(ro(o),o.flags|=128,null):(c&o.child.childLanes)!==0?Y2(s,o,c):(ro(o),s=ba(s,o,c),s!==null?s.sibling:null);ro(o);break;case 19:var v=(s.flags&128)!==0;if(f=(c&o.childLanes)!==0,f||(Ed(s,o,c,!1),f=(c&o.childLanes)!==0),v){if(f)return Q2(s,o,c);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),le(nr,nr.current),f)break;return null;case 22:case 23:return o.lanes=0,I2(s,o,c);case 24:Za(o,tr,s.memoizedState.cache)}return ba(s,o,c)}function W2(s,o,c){if(s!==null)if(s.memoizedProps!==o.pendingProps)ar=!0;else{if(!zy(s,c)&&(o.flags&128)===0)return ar=!1,zN(s,o,c);ar=(s.flags&131072)!==0}else ar=!1,jt&&(o.flags&1048576)!==0&&TS(o,Qh,o.index);switch(o.lanes=0,o.tag){case 16:e:{s=o.pendingProps;var f=o.elementType,v=f._init;if(f=v(f._payload),o.type=f,typeof f=="function")Gv(f)?(s=gl(f,s),o.tag=1,o=G2(null,o,f,s,c)):(o.tag=0,o=ky(null,o,f,s,c));else{if(f!=null){if(v=f.$$typeof,v===M){o.tag=11,o=B2(null,o,f,s,c);break e}else if(v===j){o.tag=14,o=F2(null,o,f,s,c);break e}}throw o=V(f)||f,Error(r(306,o,""))}}return o;case 0:return ky(s,o,o.type,o.pendingProps,c);case 1:return f=o.type,v=gl(f,o.pendingProps),G2(s,o,f,v,c);case 3:e:{if(xe(o,o.stateNode.containerInfo),s===null)throw Error(r(387));f=o.pendingProps;var _=o.memoizedState;v=_.element,ay(s,o),Md(o,f,null,c);var z=o.memoizedState;if(f=z.cache,Za(o,tr,f),f!==_.cache&&ey(o,[tr],c,!0),kd(),f=z.element,_.isDehydrated)if(_={element:f,isDehydrated:!1,cache:z.cache},o.updateQueue.baseState=_,o.memoizedState=_,o.flags&256){o=X2(s,o,f,c);break e}else if(f!==v){v=$i(Error(r(424)),o),_d(v),o=X2(s,o,f,c);break e}else{switch(s=o.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Cn=ps(s.firstChild),Hr=o,jt=!0,ul=null,Ls=!0,c=A2(o,null,f,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Sd(),f===v){o=ba(s,o,c);break e}pr(s,o,f,c)}o=o.child}return o;case 26:return gp(s,o),s===null?(c=tE(o.type,null,o.pendingProps,null))?o.memoizedState=c:jt||(c=o.type,s=o.pendingProps,f=Mp(ie.current).createElement(c),f[Wt]=o,f[yn]=s,gr(f,c,s),fn(f),o.stateNode=f):o.memoizedState=tE(o.type,s.memoizedProps,o.pendingProps,s.memoizedState),null;case 27:return Me(o),s===null&&jt&&(f=o.stateNode=Z_(o.type,o.pendingProps,ie.current),Hr=o,Ls=!0,v=Cn,po(o.type)?(v0=v,Cn=ps(f.firstChild)):Cn=v),pr(s,o,o.pendingProps.children,c),gp(s,o),s===null&&(o.flags|=4194304),o.child;case 5:return s===null&&jt&&((v=f=Cn)&&(f=d3(f,o.type,o.pendingProps,Ls),f!==null?(o.stateNode=f,Hr=o,Cn=ps(f.firstChild),Ls=!1,v=!0):v=!1),v||dl(o)),Me(o),v=o.type,_=o.pendingProps,z=s!==null?s.memoizedProps:null,f=_.children,h0(v,_)?f=null:z!==null&&h0(v,z)&&(o.flags|=32),o.memoizedState!==null&&(v=fy(s,o,AN,null,null,c),Jd._currentValue=v),gp(s,o),pr(s,o,f,c),o.child;case 6:return s===null&&jt&&((s=c=Cn)&&(c=f3(c,o.pendingProps,Ls),c!==null?(o.stateNode=c,Hr=o,Cn=null,s=!0):s=!1),s||dl(o)),null;case 13:return Y2(s,o,c);case 4:return xe(o,o.stateNode.containerInfo),f=o.pendingProps,s===null?o.child=Oc(o,null,f,c):pr(s,o,f,c),o.child;case 11:return B2(s,o,o.type,o.pendingProps,c);case 7:return pr(s,o,o.pendingProps,c),o.child;case 8:return pr(s,o,o.pendingProps.children,c),o.child;case 12:return pr(s,o,o.pendingProps.children,c),o.child;case 10:return f=o.pendingProps,Za(o,o.type,f.value),pr(s,o,f.children,c),o.child;case 9:return v=o.type._context,f=o.pendingProps.children,hl(o),v=Rr(v),f=f(v),o.flags|=1,pr(s,o,f,c),o.child;case 14:return F2(s,o,o.type,o.pendingProps,c);case 15:return U2(s,o,o.type,o.pendingProps,c);case 19:return Q2(s,o,c);case 31:return f=o.pendingProps,c=o.mode,f={mode:f.mode,children:f.children},s===null?(c=vp(f,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=fa(s.child,f),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return I2(s,o,c);case 24:return hl(o),f=Rr(tr),s===null?(v=ry(),v===null&&(v=ln,_=ty(),v.pooledCache=_,_.refCount++,_!==null&&(v.pooledCacheLanes|=c),v=_),o.memoizedState={parent:f,cache:v},sy(o),Za(o,tr,v)):((s.lanes&c)!==0&&(ay(s,o),Md(o,null,null,c),kd()),v=s.memoizedState,_=o.memoizedState,v.parent!==f?(v={parent:f,cache:f},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),Za(o,tr,f)):(f=_.cache,Za(o,tr,f),f!==v.cache&&ey(o,[tr],c,!0))),pr(s,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function xa(s){s.flags|=4}function Z2(s,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!aE(o)){if(o=Ui.current,o!==null&&((kt&4194048)===kt?zs!==null:(kt&62914560)!==kt&&(kt&536870912)===0||o!==zs))throw Od=iy,jS;s.flags|=8192}}function yp(s,o){o!==null&&(s.flags|=4),s.flags&16384&&(o=s.tag!==22?_n():536870912,s.lanes|=o,Nc|=o)}function $d(s,o){if(!jt)switch(s.tailMode){case"hidden":o=s.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s.tail=null:c.sibling=null;break;case"collapsed":c=s.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:f.sibling=null}}function xn(s){var o=s.alternate!==null&&s.alternate.child===s.child,c=0,f=0;if(o)for(var v=s.child;v!==null;)c|=v.lanes|v.childLanes,f|=v.subtreeFlags&65011712,f|=v.flags&65011712,v.return=s,v=v.sibling;else for(v=s.child;v!==null;)c|=v.lanes|v.childLanes,f|=v.subtreeFlags,f|=v.flags,v.return=s,v=v.sibling;return s.subtreeFlags|=f,s.childLanes=c,o}function $N(s,o,c){var f=o.pendingProps;switch(Qv(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xn(o),null;case 1:return xn(o),null;case 3:return c=o.stateNode,f=null,s!==null&&(f=s.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),ga(tr),ke(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(s===null||s.child===null)&&(wd(o)?xa(o):s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,kS())),xn(o),null;case 26:return c=o.memoizedState,s===null?(xa(o),c!==null?(xn(o),Z2(o,c)):(xn(o),o.flags&=-16777217)):c?c!==s.memoizedState?(xa(o),xn(o),Z2(o,c)):(xn(o),o.flags&=-16777217):(s.memoizedProps!==f&&xa(o),xn(o),o.flags&=-16777217),null;case 27:Ne(o),c=ie.current;var v=o.type;if(s!==null&&o.stateNode!=null)s.memoizedProps!==f&&xa(o);else{if(!f){if(o.stateNode===null)throw Error(r(166));return xn(o),null}s=se.current,wd(o)?OS(o):(s=Z_(v,f,c),o.stateNode=s,xa(o))}return xn(o),null;case 5:if(Ne(o),c=o.type,s!==null&&o.stateNode!=null)s.memoizedProps!==f&&xa(o);else{if(!f){if(o.stateNode===null)throw Error(r(166));return xn(o),null}if(s=se.current,wd(o))OS(o);else{switch(v=Mp(ie.current),s){case 1:s=v.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=v.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=v.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=v.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=v.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof f.is=="string"?v.createElement("select",{is:f.is}):v.createElement("select"),f.multiple?s.multiple=!0:f.size&&(s.size=f.size);break;default:s=typeof f.is=="string"?v.createElement(c,{is:f.is}):v.createElement(c)}}s[Wt]=o,s[yn]=f;e:for(v=o.child;v!==null;){if(v.tag===5||v.tag===6)s.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===o)break e;for(;v.sibling===null;){if(v.return===null||v.return===o)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}o.stateNode=s;e:switch(gr(s,c,f),c){case"button":case"input":case"select":case"textarea":s=!!f.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&xa(o)}}return xn(o),o.flags&=-16777217,null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==f&&xa(o);else{if(typeof f!="string"&&o.stateNode===null)throw Error(r(166));if(s=ie.current,wd(o)){if(s=o.stateNode,c=o.memoizedProps,f=null,v=Hr,v!==null)switch(v.tag){case 27:case 5:f=v.memoizedProps}s[Wt]=o,s=!!(s.nodeValue===c||f!==null&&f.suppressHydrationWarning===!0||q_(s.nodeValue,c)),s||dl(o)}else s=Mp(s).createTextNode(f),s[Wt]=o,o.stateNode=s}return xn(o),null;case 13:if(f=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(v=wd(o),f!==null&&f.dehydrated!==null){if(s===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Wt]=o}else Sd(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;xn(o),v=!1}else v=kS(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(ya(o),o):(ya(o),null)}if(ya(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=f!==null,s=s!==null&&s.memoizedState!==null,c){f=o.child,v=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(v=f.alternate.memoizedState.cachePool.pool);var _=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(_=f.memoizedState.cachePool.pool),_!==v&&(f.flags|=2048)}return c!==s&&c&&(o.child.flags|=8192),yp(o,o.updateQueue),xn(o),null;case 4:return ke(),s===null&&l0(o.stateNode.containerInfo),xn(o),null;case 10:return ga(o.type),xn(o),null;case 19:if(ve(nr),v=o.memoizedState,v===null)return xn(o),null;if(f=(o.flags&128)!==0,_=v.rendering,_===null)if(f)$d(v,!1);else{if(Rn!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(_=hp(s),_!==null){for(o.flags|=128,$d(v,!1),s=_.updateQueue,o.updateQueue=s,yp(o,s),o.subtreeFlags=0,s=c,c=o.child;c!==null;)RS(c,s),c=c.sibling;return le(nr,nr.current&1|2),o.child}s=s.sibling}v.tail!==null&&Ae()>wp&&(o.flags|=128,f=!0,$d(v,!1),o.lanes=4194304)}else{if(!f)if(s=hp(_),s!==null){if(o.flags|=128,f=!0,s=s.updateQueue,o.updateQueue=s,yp(o,s),$d(v,!0),v.tail===null&&v.tailMode==="hidden"&&!_.alternate&&!jt)return xn(o),null}else 2*Ae()-v.renderingStartTime>wp&&c!==536870912&&(o.flags|=128,f=!0,$d(v,!1),o.lanes=4194304);v.isBackwards?(_.sibling=o.child,o.child=_):(s=v.last,s!==null?s.sibling=_:o.child=_,v.last=_)}return v.tail!==null?(o=v.tail,v.rendering=o,v.tail=o.sibling,v.renderingStartTime=Ae(),o.sibling=null,s=nr.current,le(nr,f?s&1|2:s&1),o):(xn(o),null);case 22:case 23:return ya(o),uy(),f=o.memoizedState!==null,s!==null?s.memoizedState!==null!==f&&(o.flags|=8192):f&&(o.flags|=8192),f?(c&536870912)!==0&&(o.flags&128)===0&&(xn(o),o.subtreeFlags&6&&(o.flags|=8192)):xn(o),c=o.updateQueue,c!==null&&yp(o,c.retryQueue),c=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==c&&(o.flags|=2048),s!==null&&ve(pl),null;case 24:return c=null,s!==null&&(c=s.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),ga(tr),xn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function HN(s,o){switch(Qv(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return ga(tr),ke(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return Ne(o),null;case 13:if(ya(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Sd()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ve(nr),null;case 4:return ke(),null;case 10:return ga(o.type),null;case 22:case 23:return ya(o),uy(),s!==null&&ve(pl),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return ga(tr),null;case 25:return null;default:return null}}function J2(s,o){switch(Qv(o),o.tag){case 3:ga(tr),ke();break;case 26:case 27:case 5:Ne(o);break;case 4:ke();break;case 13:ya(o);break;case 19:ve(nr);break;case 10:ga(o.type);break;case 22:case 23:ya(o),uy(),s!==null&&ve(pl);break;case 24:ga(tr)}}function Hd(s,o){try{var c=o.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var v=f.next;c=v;do{if((c.tag&s)===s){f=void 0;var _=c.create,z=c.inst;f=_(),z.destroy=f}c=c.next}while(c!==v)}}catch(B){rn(o,o.return,B)}}function so(s,o,c){try{var f=o.updateQueue,v=f!==null?f.lastEffect:null;if(v!==null){var _=v.next;f=_;do{if((f.tag&s)===s){var z=f.inst,B=z.destroy;if(B!==void 0){z.destroy=void 0,v=o;var Z=c,de=B;try{de()}catch(Ce){rn(v,Z,Ce)}}}f=f.next}while(f!==_)}}catch(Ce){rn(o,o.return,Ce)}}function e_(s){var o=s.updateQueue;if(o!==null){var c=s.stateNode;try{FS(o,c)}catch(f){rn(s,s.return,f)}}}function t_(s,o,c){c.props=gl(s.type,s.memoizedProps),c.state=s.memoizedState;try{c.componentWillUnmount()}catch(f){rn(s,o,f)}}function Bd(s,o){try{var c=s.ref;if(c!==null){switch(s.tag){case 26:case 27:case 5:var f=s.stateNode;break;case 30:f=s.stateNode;break;default:f=s.stateNode}typeof c=="function"?s.refCleanup=c(f):c.current=f}}catch(v){rn(s,o,v)}}function $s(s,o){var c=s.ref,f=s.refCleanup;if(c!==null)if(typeof f=="function")try{f()}catch(v){rn(s,o,v)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(v){rn(s,o,v)}else c.current=null}function n_(s){var o=s.type,c=s.memoizedProps,f=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&f.focus();break e;case"img":c.src?f.src=c.src:c.srcSet&&(f.srcset=c.srcSet)}}catch(v){rn(s,s.return,v)}}function $y(s,o,c){try{var f=s.stateNode;a3(f,s.type,c,o),f[yn]=o}catch(v){rn(s,s.return,v)}}function r_(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&po(s.type)||s.tag===4}function Hy(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||r_(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&po(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function By(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(s,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(s),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=kp));else if(f!==4&&(f===27&&po(s.type)&&(c=s.stateNode,o=null),s=s.child,s!==null))for(By(s,o,c),s=s.sibling;s!==null;)By(s,o,c),s=s.sibling}function bp(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?c.insertBefore(s,o):c.appendChild(s);else if(f!==4&&(f===27&&po(s.type)&&(c=s.stateNode),s=s.child,s!==null))for(bp(s,o,c),s=s.sibling;s!==null;)bp(s,o,c),s=s.sibling}function i_(s){var o=s.stateNode,c=s.memoizedProps;try{for(var f=s.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);gr(o,f,c),o[Wt]=s,o[yn]=c}catch(_){rn(s,s.return,_)}}var wa=!1,$n=!1,Fy=!1,s_=typeof WeakSet=="function"?WeakSet:Set,or=null;function BN(s,o){if(s=s.containerInfo,d0=zp,s=gS(s),Hv(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{c=(c=s.ownerDocument)&&c.defaultView||window;var f=c.getSelection&&c.getSelection();if(f&&f.rangeCount!==0){c=f.anchorNode;var v=f.anchorOffset,_=f.focusNode;f=f.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var z=0,B=-1,Z=-1,de=0,Ce=0,Oe=s,me=null;t:for(;;){for(var ge;Oe!==c||v!==0&&Oe.nodeType!==3||(B=z+v),Oe!==_||f!==0&&Oe.nodeType!==3||(Z=z+f),Oe.nodeType===3&&(z+=Oe.nodeValue.length),(ge=Oe.firstChild)!==null;)me=Oe,Oe=ge;for(;;){if(Oe===s)break t;if(me===c&&++de===v&&(B=z),me===_&&++Ce===f&&(Z=z),(ge=Oe.nextSibling)!==null)break;Oe=me,me=Oe.parentNode}Oe=ge}c=B===-1||Z===-1?null:{start:B,end:Z}}else c=null}c=c||{start:0,end:0}}else c=null;for(f0={focusedElem:s,selectionRange:c},zp=!1,or=o;or!==null;)if(o=or,s=o.child,(o.subtreeFlags&1024)!==0&&s!==null)s.return=o,or=s;else for(;or!==null;){switch(o=or,_=o.alternate,s=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&_!==null){s=void 0,c=o,v=_.memoizedProps,_=_.memoizedState,f=c.stateNode;try{var ht=gl(c.type,v,c.elementType===c.type);s=f.getSnapshotBeforeUpdate(ht,_),f.__reactInternalSnapshotBeforeUpdate=s}catch(lt){rn(c,c.return,lt)}}break;case 3:if((s&1024)!==0){if(s=o.stateNode.containerInfo,c=s.nodeType,c===9)m0(s);else if(c===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":m0(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=o.sibling,s!==null){s.return=o.return,or=s;break}or=o.return}}function a_(s,o,c){var f=c.flags;switch(c.tag){case 0:case 11:case 15:ao(s,c),f&4&&Hd(5,c);break;case 1:if(ao(s,c),f&4)if(s=c.stateNode,o===null)try{s.componentDidMount()}catch(z){rn(c,c.return,z)}else{var v=gl(c.type,o.memoizedProps);o=o.memoizedState;try{s.componentDidUpdate(v,o,s.__reactInternalSnapshotBeforeUpdate)}catch(z){rn(c,c.return,z)}}f&64&&e_(c),f&512&&Bd(c,c.return);break;case 3:if(ao(s,c),f&64&&(s=c.updateQueue,s!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{FS(s,o)}catch(z){rn(c,c.return,z)}}break;case 27:o===null&&f&4&&i_(c);case 26:case 5:ao(s,c),o===null&&f&4&&n_(c),f&512&&Bd(c,c.return);break;case 12:ao(s,c);break;case 13:ao(s,c),f&4&&c_(s,c),f&64&&(s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(c=KN.bind(null,c),h3(s,c))));break;case 22:if(f=c.memoizedState!==null||wa,!f){o=o!==null&&o.memoizedState!==null||$n,v=wa;var _=$n;wa=f,($n=o)&&!_?oo(s,c,(c.subtreeFlags&8772)!==0):ao(s,c),wa=v,$n=_}break;case 30:break;default:ao(s,c)}}function o_(s){var o=s.alternate;o!==null&&(s.alternate=null,o_(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&In(o)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var mn=null,ei=!1;function Sa(s,o,c){for(c=c.child;c!==null;)l_(s,o,c),c=c.sibling}function l_(s,o,c){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(De,c)}catch{}switch(c.tag){case 26:$n||$s(c,o),Sa(s,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:$n||$s(c,o);var f=mn,v=ei;po(c.type)&&(mn=c.stateNode,ei=!1),Sa(s,o,c),Kd(c.stateNode),mn=f,ei=v;break;case 5:$n||$s(c,o);case 6:if(f=mn,v=ei,mn=null,Sa(s,o,c),mn=f,ei=v,mn!==null)if(ei)try{(mn.nodeType===9?mn.body:mn.nodeName==="HTML"?mn.ownerDocument.body:mn).removeChild(c.stateNode)}catch(_){rn(c,o,_)}else try{mn.removeChild(c.stateNode)}catch(_){rn(c,o,_)}break;case 18:mn!==null&&(ei?(s=mn,Q_(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,c.stateNode),rf(s)):Q_(mn,c.stateNode));break;case 4:f=mn,v=ei,mn=c.stateNode.containerInfo,ei=!0,Sa(s,o,c),mn=f,ei=v;break;case 0:case 11:case 14:case 15:$n||so(2,c,o),$n||so(4,c,o),Sa(s,o,c);break;case 1:$n||($s(c,o),f=c.stateNode,typeof f.componentWillUnmount=="function"&&t_(c,o,f)),Sa(s,o,c);break;case 21:Sa(s,o,c);break;case 22:$n=(f=$n)||c.memoizedState!==null,Sa(s,o,c),$n=f;break;default:Sa(s,o,c)}}function c_(s,o){if(o.memoizedState===null&&(s=o.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{rf(s)}catch(c){rn(o,o.return,c)}}function FN(s){switch(s.tag){case 13:case 19:var o=s.stateNode;return o===null&&(o=s.stateNode=new s_),o;case 22:return s=s.stateNode,o=s._retryCache,o===null&&(o=s._retryCache=new s_),o;default:throw Error(r(435,s.tag))}}function Uy(s,o){var c=FN(s);o.forEach(function(f){var v=QN.bind(null,s,f);c.has(f)||(c.add(f),f.then(v,v))})}function bi(s,o){var c=o.deletions;if(c!==null)for(var f=0;f<c.length;f++){var v=c[f],_=s,z=o,B=z;e:for(;B!==null;){switch(B.tag){case 27:if(po(B.type)){mn=B.stateNode,ei=!1;break e}break;case 5:mn=B.stateNode,ei=!1;break e;case 3:case 4:mn=B.stateNode.containerInfo,ei=!0;break e}B=B.return}if(mn===null)throw Error(r(160));l_(_,z,v),mn=null,ei=!1,_=v.alternate,_!==null&&(_.return=null),v.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)u_(o,s),o=o.sibling}var hs=null;function u_(s,o){var c=s.alternate,f=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:bi(o,s),xi(s),f&4&&(so(3,s,s.return),Hd(3,s),so(5,s,s.return));break;case 1:bi(o,s),xi(s),f&512&&($n||c===null||$s(c,c.return)),f&64&&wa&&(s=s.updateQueue,s!==null&&(f=s.callbacks,f!==null&&(c=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=c===null?f:c.concat(f))));break;case 26:var v=hs;if(bi(o,s),xi(s),f&512&&($n||c===null||$s(c,c.return)),f&4){var _=c!==null?c.memoizedState:null;if(f=s.memoizedState,c===null)if(f===null)if(s.stateNode===null){e:{f=s.type,c=s.memoizedProps,v=v.ownerDocument||v;t:switch(f){case"title":_=v.getElementsByTagName("title")[0],(!_||_[jn]||_[Wt]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=v.createElement(f),v.head.insertBefore(_,v.querySelector("head > title"))),gr(_,f,c),_[Wt]=s,fn(_),f=_;break e;case"link":var z=iE("link","href",v).get(f+(c.href||""));if(z){for(var B=0;B<z.length;B++)if(_=z[B],_.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){z.splice(B,1);break t}}_=v.createElement(f),gr(_,f,c),v.head.appendChild(_);break;case"meta":if(z=iE("meta","content",v).get(f+(c.content||""))){for(B=0;B<z.length;B++)if(_=z[B],_.getAttribute("content")===(c.content==null?null:""+c.
vendor: 1,922 bytes, line 49
49content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){z.splice(B,1);break t}}_=v.createElement(f),gr(_,f,c),v.head.appendChild(_);break;default:throw Error(r(468,f))}_[Wt]=s,fn(_),f=_}s.stateNode=f}else sE(v,s.type,s.stateNode);else s.stateNode=rE(v,f,s.memoizedProps);else _!==f?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,f===null?sE(v,s.type,s.stateNode):rE(v,f,s.memoizedProps)):f===null&&s.stateNode!==null&&$y(s,s.memoizedProps,c.memoizedProps)}break;case 27:bi(o,s),xi(s),f&512&&($n||c===null||$s(c,c.return)),c!==null&&f&4&&$y(s,s.memoizedProps,c.memoizedProps);break;case 5:if(bi(o,s),xi(s),f&512&&($n||c===null||$s(c,c.return)),s.flags&32){v=s.stateNode;try{qa(v,"")}catch(ge){rn(s,s.return,ge)}}f&4&&s.stateNode!=null&&(v=s.memoizedProps,$y(s,v,c!==null?c.memoizedProps:v)),f&1024&&(Fy=!0);break;case 6:if(bi(o,s),xi(s),f&4){if(s.stateNode===null)throw Error(r(162));f=s.memoizedProps,c=s.stateNode;try{c.nodeValue=f}catch(ge){rn(s,s.return,ge)}}break;case 3:if(Pp=null,v=hs,hs=Np(o.containerInfo),bi(o,s),hs=v,xi(s),f&4&&c!==null&&c.memoizedState.isDehydrated)try{rf(o.containerInfo)}catch(ge){rn(s,s.return,ge)}Fy&&(Fy=!1,d_(s));break;case 4:f=hs,hs=Np(s.stateNode.containerInfo),bi(o,s),xi(s),hs=f;break;case 12:bi(o,s),xi(s);break;case 13:bi(o,s),xi(s),s.child.flags&8192&&s.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Yy=Ae()),f&4&&(f=s.updateQueue,f!==null&&(s.updateQueue=null,Uy(s,f)));break;case 22:v=s.memoizedState!==null;var Z=c!==null&&c.memoizedState!==null,de=wa,Ce=$n;if(wa=de||v,$n=Ce||Z,bi(o,s),$n=Ce,wa=de,xi(s),f&8192)e:for(o=s.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(c===null||Z||wa||$n||vl(s)),c=null,o=s;;
vendor: 31,539 bytes, lines 49-50
49){if(o.tag===5||o.tag===26){if(c===null){Z=c=o;try{if(_=Z.stateNode,v)z=_.style,typeof z.setProperty=="function"?z.setProperty("display","none","important"):z.display="none";else{B=Z.stateNode;var Oe=Z.memoizedProps.style,me=Oe!=null&&Oe.hasOwnProperty("display")?Oe.display:null;B.style.display=me==null||typeof me=="boolean"?"":(""+me).trim()}}catch(ge){rn(Z,Z.return,ge)}}}else if(o.tag===6){if(c===null){Z=o;try{Z.stateNode.nodeValue=v?"":Z.memoizedProps}catch(ge){rn(Z,Z.return,ge)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===s)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}f&4&&(f=s.updateQueue,f!==null&&(c=f.retryQueue,c!==null&&(f.retryQueue=null,Uy(s,c))));break;case 19:bi(o,s),xi(s),f&4&&(f=s.updateQueue,f!==null&&(s.updateQueue=null,Uy(s,f)));break;case 30:break;case 21:break;default:bi(o,s),xi(s)}}function xi(s){var o=s.flags;if(o&2){try{for(var c,f=s.return;f!==null;){if(r_(f)){c=f;break}f=f.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var v=c.stateNode,_=Hy(s);bp(s,_,v);break;case 5:var z=c.stateNode;c.flags&32&&(qa(z,""),c.flags&=-33);var B=Hy(s);bp(s,B,z);break;case 3:case 4:var Z=c.stateNode.containerInfo,de=Hy(s);By(s,de,Z);break;default:throw Error(r(161))}}catch(Ce){rn(s,s.return,Ce)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function d_(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var o=s;d_(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),s=s.sibling}}function ao(s,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)a_(s,o.alternate,o),o=o.sibling}function vl(s){for(s=s.child;s!==null;){var o=s;switch(o.tag){case 0:case 11:case 14:case 15:so(4,o,o.return),vl(o);break;case 1:$s(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&t_(o,o.return,c),vl(o);break;case 27:Kd(o.stateNode);case 26:case 5:$s(o,o.return),vl(o);break;case 22:o.memoizedState===null&&vl(o);break;case 30:vl(o);break;default:vl(o)}s=s.sibling}}function oo(s,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var f=o.alternate,v=s,_=o,z=_.flags;switch(_.tag){case 0:case 11:case 15:oo(v,_,c),Hd(4,_);break;case 1:if(oo(v,_,c),f=_,v=f.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(de){rn(f,f.return,de)}if(f=_,v=f.updateQueue,v!==null){var B=f.stateNode;try{var Z=v.shared.hiddenCallbacks;if(Z!==null)for(v.shared.hiddenCallbacks=null,v=0;v<Z.length;v++)BS(Z[v],B)}catch(de){rn(f,f.return,de)}}c&&z&64&&e_(_),Bd(_,_.return);break;case 27:i_(_);case 26:case 5:oo(v,_,c),c&&f===null&&z&4&&n_(_),Bd(_,_.return);break;case 12:oo(v,_,c);break;case 13:oo(v,_,c),c&&z&4&&c_(v,_);break;case 22:_.memoizedState===null&&oo(v,_,c),Bd(_,_.return);break;case 30:break;default:oo(v,_,c)}o=o.sibling}}function Iy(s,o){var c=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==c&&(s!=null&&s.refCount++,c!=null&&Cd(c))}function Vy(s,o){s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&Cd(s))}function Hs(s,o,c,f){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)f_(s,o,c,f),o=o.sibling}function f_(s,o,c,f){var v=o.flags;switch(o.tag){case 0:case 11:case 15:Hs(s,o,c,f),v&2048&&Hd(9,o);break;case 1:Hs(s,o,c,f);break;case 3:Hs(s,o,c,f),v&2048&&(s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&Cd(s)));break;case 12:if(v&2048){Hs(s,o,c,f),s=o.stateNode;try{var _=o.memoizedProps,z=_.id,B=_.onPostCommit;typeof B=="function"&&B(z,o.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(Z){rn(o,o.return,Z)}}else Hs(s,o,c,f);break;case 13:Hs(s,o,c,f);break;case 23:break;case 22:_=o.stateNode,z=o.alternate,o.memoizedState!==null?_._visibility&2?Hs(s,o,c,f):Fd(s,o):_._visibility&2?Hs(s,o,c,f):(_._visibility|=2,Ac(s,o,c,f,(o.subtreeFlags&10256)!==0)),v&2048&&Iy(z,o);break;case 24:Hs(s,o,c,f),v&2048&&Vy(o.alternate,o);break;default:Hs(s,o,c,f)}}function Ac(s,o,c,f,v){for(v=v&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var _=s,z=o,B=c,Z=f,de=z.flags;switch(z.tag){case 0:case 11:case 15:Ac(_,z,B,Z,v),Hd(8,z);break;case 23:break;case 22:var Ce=z.stateNode;z.memoizedState!==null?Ce._visibility&2?Ac(_,z,B,Z,v):Fd(_,z):(Ce._visibility|=2,Ac(_,z,B,Z,v)),v&&de&2048&&Iy(z.alternate,z);break;case 24:Ac(_,z,B,Z,v),v&&de&2048&&Vy(z.alternate,z);break;default:Ac(_,z,B,Z,v)}o=o.sibling}}function Fd(s,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=s,f=o,v=f.flags;switch(f.tag){case 22:Fd(c,f),v&2048&&Iy(f.alternate,f);break;case 24:Fd(c,f),v&2048&&Vy(f.alternate,f);break;default:Fd(c,f)}o=o.sibling}}var Ud=8192;function kc(s){if(s.subtreeFlags&Ud)for(s=s.child;s!==null;)h_(s),s=s.sibling}function h_(s){switch(s.tag){case 26:kc(s),s.flags&Ud&&s.memoizedState!==null&&R3(hs,s.memoizedState,s.memoizedProps);break;case 5:kc(s);break;case 3:case 4:var o=hs;hs=Np(s.stateNode.containerInfo),kc(s),hs=o;break;case 22:s.memoizedState===null&&(o=s.alternate,o!==null&&o.memoizedState!==null?(o=Ud,Ud=16777216,kc(s),Ud=o):kc(s));break;default:kc(s)}}function p_(s){var o=s.alternate;if(o!==null&&(s=o.child,s!==null)){o.child=null;do o=s.sibling,s.sibling=null,s=o;while(s!==null)}}function Id(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];or=f,g_(f,s)}p_(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)m_(s),s=s.sibling}function m_(s){switch(s.tag){case 0:case 11:case 15:Id(s),s.flags&2048&&so(9,s,s.return);break;case 3:Id(s);break;case 12:Id(s);break;case 22:var o=s.stateNode;s.memoizedState!==null&&o._visibility&2&&(s.return===null||s.return.tag!==13)?(o._visibility&=-3,xp(s)):Id(s);break;default:Id(s)}}function xp(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];or=f,g_(f,s)}p_(s)}for(s=s.child;s!==null;){switch(o=s,o.tag){case 0:case 11:case 15:so(8,o,o.return),xp(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,xp(o));break;default:xp(o)}s=s.sibling}}function g_(s,o){for(;or!==null;){var c=or;switch(c.tag){case 0:case 11:case 15:so(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var f=c.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Cd(c.memoizedState.cache)}if(f=c.child,f!==null)f.return=c,or=f;else e:for(c=s;or!==null;){f=or;var v=f.sibling,_=f.return;if(o_(f),f===c){or=null;break e}if(v!==null){v.return=_,or=v;break e}or=_}}}var UN={getCacheForType:function(s){var o=Rr(tr),c=o.data.get(s);return c===void 0&&(c=s(),o.data.set(s,c)),c}},IN=typeof WeakMap=="function"?WeakMap:Map,Gt=0,ln=null,Ct=null,kt=0,Xt=0,wi=null,lo=!1,Mc=!1,qy=!1,_a=0,Rn=0,co=0,yl=0,Gy=0,Ii=0,Nc=0,Vd=null,ti=null,Xy=!1,Yy=0,wp=1/0,Sp=null,uo=null,mr=0,fo=null,Dc=null,Pc=0,Ky=0,Qy=null,v_=null,qd=0,Wy=null;function Si(){if((Gt&2)!==0&&kt!==0)return kt&-kt;if(F.T!==null){var s=wc;return s!==0?s:i0()}return os()}function y_(){Ii===0&&(Ii=(kt&536870912)===0||jt?nn():536870912);var s=Ui.current;return s!==null&&(s.flags|=32),Ii}function _i(s,o,c){(s===ln&&(Xt===2||Xt===9)||s.cancelPendingCommit!==null)&&(jc(s,0),ho(s,kt,Ii,!1)),Dn(s,c),((Gt&2)===0||s!==ln)&&(s===ln&&((Gt&2)===0&&(yl|=c),Rn===4&&ho(s,kt,Ii,!1)),Bs(s))}function b_(s,o,c){if((Gt&6)!==0)throw Error(r(327));var f=!c&&(o&124)===0&&(o&s.expiredLanes)===0||Nn(s,o),v=f?GN(s,o):e0(s,o,!0),_=f;do{if(v===0){Mc&&!f&&ho(s,o,0,!1);break}else{if(c=s.current.alternate,_&&!VN(c)){v=e0(s,o,!1),_=!1;continue}if(v===2){if(_=o,s.errorRecoveryDisabledLanes&_)var z=0;else z=s.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){o=z;e:{var B=s;v=Vd;var Z=B.current.memoizedState.isDehydrated;if(Z&&(jc(B,z).flags|=256),z=e0(B,z,!1),z!==2){if(qy&&!Z){B.errorRecoveryDisabledLanes|=_,yl|=_,v=4;break e}_=ti,ti=v,_!==null&&(ti===null?ti=_:ti.push.apply(ti,_))}v=z}if(_=!1,v!==2)continue}}if(v===1){jc(s,0),ho(s,o,0,!0);break}e:{switch(f=s,_=v,_){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ho(f,o,Ii,!lo);break e;case 2:ti=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(v=Yy+300-Ae(),10<v)){if(ho(f,o,Ii,!lo),Ht(f,0,!0)!==0)break e;f.timeoutHandle=Y_(x_.bind(null,f,c,ti,Sp,Xy,o,Ii,yl,Nc,lo,_,2,-0,0),v);break e}x_(f,c,ti,Sp,Xy,o,Ii,yl,Nc,lo,_,0,-0,0)}}break}while(!0);Bs(s)}function x_(s,o,c,f,v,_,z,B,Z,de,Ce,Oe,me,ge){if(s.timeoutHandle=-1,Oe=o.subtreeFlags,(Oe&8192||(Oe&16785408)===16785408)&&(Zd={stylesheets:null,count:0,unsuspend:C3},h_(o),Oe=T3(),Oe!==null)){s.cancelPendingCommit=Oe(T_.bind(null,s,o,_,c,f,v,z,B,Z,Ce,1,me,ge)),ho(s,_,z,!de);return}T_(s,o,_,c,f,v,z,B,Z)}function VN(s){for(var o=s;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var f=0;f<c.length;f++){var v=c[f],_=v.getSnapshot;v=v.value;try{if(!vi(_(),v))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ho(s,o,c,f){o&=~Gy,o&=~yl,s.suspendedLanes|=o,s.pingedLanes&=~o,f&&(s.warmLanes|=o),f=s.expirationTimes;for(var v=o;0<v;){var _=31-ot(v),z=1<<_;f[_]=-1,v&=~z}c!==0&&Li(s,c,o)}function _p(){return(Gt&6)===0?(Gd(0),!1):!0}function Zy(){if(Ct!==null){if(Xt===0)var s=Ct.return;else s=Ct,ma=fl=null,my(s),Tc=null,Ld=0,s=Ct;for(;s!==null;)J2(s.alternate,s),s=s.return;Ct=null}}function jc(s,o){var c=s.timeoutHandle;c!==-1&&(s.timeoutHandle=-1,l3(c)),c=s.cancelPendingCommit,c!==null&&(s.cancelPendingCommit=null,c()),Zy(),ln=s,Ct=c=fa(s.current,null),kt=o,Xt=0,wi=null,lo=!1,Mc=Nn(s,o),qy=!1,Nc=Ii=Gy=yl=co=Rn=0,ti=Vd=null,Xy=!1,(o&8)!==0&&(o|=o&32);var f=s.entangledLanes;if(f!==0)for(s=s.entanglements,f&=o;0<f;){var v=31-ot(f),_=1<<v;o|=s[v],f&=~_}return _a=o,qh(),c}function w_(s,o){wt=null,F.H=up,o===Td||o===ep?(o=$S(),Xt=3):o===jS?(o=$S(),Xt=4):Xt=o===H2?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,wi=o,Ct===null&&(Rn=1,mp(s,$i(o,s.current)))}function S_(){var s=F.H;return F.H=up,s===null?up:s}function __(){var s=F.A;return F.A=UN,s}function Jy(){Rn=4,lo||(kt&4194048)!==kt&&Ui.current!==null||(Mc=!0),(co&134217727)===0&&(yl&134217727)===0||ln===null||ho(ln,kt,Ii,!1)}function e0(s,o,c){var f=Gt;Gt|=2;var v=S_(),_=__();(ln!==s||kt!==o)&&(Sp=null,jc(s,o)),o=!1;var z=Rn;e:do try{if(Xt!==0&&Ct!==null){var B=Ct,Z=wi;switch(Xt){case 8:Zy(),z=6;break e;case 3:case 2:case 9:case 6:Ui.current===null&&(o=!0);var de=Xt;if(Xt=0,wi=null,Lc(s,B,Z,de),c&&Mc){z=0;break e}break;default:de=Xt,Xt=0,wi=null,Lc(s,B,Z,de)}}qN(),z=Rn;break}catch(Ce){w_(s,Ce)}while(!0);return o&&s.shellSuspendCounter++,ma=fl=null,Gt=f,F.H=v,F.A=_,Ct===null&&(ln=null,kt=0,qh()),z}function qN(){for(;Ct!==null;)E_(Ct)}function GN(s,o){var c=Gt;Gt|=2;var f=S_(),v=__();ln!==s||kt!==o?(Sp=null,wp=Ae()+500,jc(s,o)):Mc=Nn(s,o);e:do try{if(Xt!==0&&Ct!==null){o=Ct;var _=wi;t:switch(Xt){case 1:Xt=0,wi=null,Lc(s,o,_,1);break;case 2:case 9:if(LS(_)){Xt=0,wi=null,C_(o);break}o=function(){Xt!==2&&Xt!==9||ln!==s||(Xt=7),Bs(s)},_.then(o,o);break e;case 3:Xt=7;break e;case 4:Xt=5;break e;case 7:LS(_)?(Xt=0,wi=null,C_(o)):(Xt=0,wi=null,Lc(s,o,_,7));break;case 5:var z=null;switch(Ct.tag){case 26:z=Ct.memoizedState;case 5:case 27:var B=Ct;if(!z||aE(z)){Xt=0,wi=null;var Z=B.sibling;if(Z!==null)Ct=Z;else{var de=B.return;de!==null?(Ct=de,Ep(de)):Ct=null}break t}}Xt=0,wi=null,Lc(s,o,_,5);break;case 6:Xt=0,wi=null,Lc(s,o,_,6);break;case 8:Zy(),Rn=6;break e;default:throw Error(r(462))}}XN();break}catch(Ce){w_(s,Ce)}while(!0);return ma=fl=null,F.H=f,F.A=v,Gt=c,Ct!==null?0:(ln=null,kt=0,qh(),Rn)}function XN(){for(;Ct!==null&&!yt();)E_(Ct)}function E_(s){var o=W2(s.alternate,s,_a);s.memoizedProps=s.pendingProps,o===null?Ep(s):Ct=o}function C_(s){var o=s,c=o.alternate;switch(o.tag){case 15:case 0:o=q2(c,o,o.pendingProps,o.type,void 0,kt);break;case 11:o=q2(c,o,o.pendingProps,o.type.render,o.ref,kt);break;case 5:my(o);default:J2(c,o),o=Ct=RS(o,_a),o=W2(c,o,_a)}s.memoizedProps=s.pendingProps,o===null?Ep(s):Ct=o}function Lc(s,o,c,f){ma=fl=null,my(o),Tc=null,Ld=0;var v=o.return;try{if(LN(s,v,o,c,kt)){Rn=1,mp(s,$i(c,s.current)),Ct=null;return}}catch(_){if(v!==null)throw Ct=v,_;Rn=1,mp(s,$i(c,s.current)),Ct=null;return}o.flags&32768?(jt||f===1?s=!0:Mc||(kt&536870912)!==0?s=!1:(lo=s=!0,(f===2||f===9||f===3||f===6)&&(f=Ui.current,f!==null&&f.tag===13&&(f.flags|=16384))),R_(o,s)):Ep(o)}function Ep(s){var o=s;do{if((o.flags&32768)!==0){R_(o,lo);return}s=o.return;var c=$N(o.alternate,o,_a);if(c!==null){Ct=c;return}if(o=o.sibling,o!==null){Ct=o;return}Ct=o=s}while(o!==null);Rn===0&&(Rn=5)}function R_(s,o){do{var c=HN(s.alternate,s);if(c!==null){c.flags&=32767,Ct=c;return}if(c=s.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(s=s.sibling,s!==null)){Ct=s;return}Ct=s=c}while(s!==null);Rn=6,Ct=null}function T_(s,o,c,f,v,_,z,B,Z){s.cancelPendingCommit=null;do Cp();while(mr!==0);if((Gt&6)!==0)throw Error(r(327));if(o!==null){if(o===s.current)throw Error(r(177));if(_=o.lanes|o.childLanes,_|=Vv,Yr(s,c,_,z,B,Z),s===ln&&(Ct=ln=null,kt=0),Dc=o,fo=s,Pc=c,Ky=_,Qy=v,v_=f,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,WN(G,function(){return N_(),null})):(s.callbackNode=null,s.callbackPriority=0),f=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||f){f=F.T,F.T=null,v=J.p,J.p=2,z=Gt,Gt|=4;try{BN(s,o,c)}finally{Gt=z,J.p=v,F.T=f}}mr=1,O_(),A_(),k_()}}function O_(){if(mr===1){mr=0;var s=fo,o=Dc,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=F.T,F.T=null;var f=J.p;J.p=2;var v=Gt;Gt|=4;try{u_(o,s);var _=f0,z=gS(s.containerInfo),B=_.focusedElem,Z=_.selectionRange;if(z!==B&&B&&B.ownerDocument&&mS(B.ownerDocument.documentElement,B)){if(Z!==null&&Hv(B)){var de=Z.start,Ce=Z.end;if(Ce===void 0&&(Ce=de),"selectionStart"in B)B.selectionStart=de,B.selectionEnd=Math.min(Ce,B.value.length);else{var Oe=B.ownerDocument||document,me=Oe&&Oe.defaultView||window;if(me.getSelection){var ge=me.getSelection(),ht=B.textContent.length,lt=Math.min(Z.start,ht),en=Z.end===void 0?lt:Math.min(Z.end,ht);!ge.extend&&lt>en&&(z=en,en=lt,lt=z);var oe=pS(B,lt),te=pS(B,en);if(oe&&te&&(ge.rangeCount!==1||ge.anchorNode!==oe.node||ge.anchorOffset!==oe.offset||ge.focusNode!==te.node||ge.focusOffset!==te.offset)){var ce=Oe.createRange();ce.setStart(oe.node,oe.offset),ge.removeAllRanges(),lt>en?(ge.addRange(ce),ge.extend(te.node,te.offset)):(ce.setEnd(te.node,te.offset),ge.addRange(ce))}}}}for(Oe=[],ge=B;ge=ge.parentNode;)ge.nodeType===1&&Oe.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<Oe.length;B++){var Re=Oe[B];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}zp=!!d0,f0=d0=null}finally{Gt=v,J.p=f,F.T=c}}s.current=o,mr=2}}function A_(){if(mr===2){mr=0;var s=fo,o=Dc,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=F.T,F.T=null;var f=J.p;J.p=2;var v=Gt;Gt|=4;try{a_(s,o.alternate,o)}finally{Gt=v,J.p=f,F.T=c}}mr=3}}function k_(){if(mr===4||mr===3){mr=0,_e();var s=fo,o=Dc,c=Pc,f=v_;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?mr=5:(mr=0,Dc=fo=null,M_(s,s.pendingLanes));var v=s.pendingLanes;if(v===0&&(uo=null),pi(c),o=o.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(De,o,void 0,(o.current.flags&128)===128)}catch{}if(f!==null){o=F.T,v=J.p,J.p=2,F.T=null;try{for(var _=s.onRecoverableError,z=0;z<f.length;z++){var B=f[z];_(B.value,{componentStack:B.stack})}}finally{F.T=o,J.p=v}}(Pc&3)!==0&&Cp(),Bs(s),v=s.pendingLanes,(c&4194090)!==0&&(v&42)!==0?s===Wy?qd++:(qd=0,Wy=s):qd=0,Gd(0)}}function M_(s,o){(s.pooledCacheLanes&=o)===0&&(o=s.pooledCache,o!=null&&(s.pooledCache=null,Cd(o)))}function Cp(s){return O_(),A_(),k_(),N_()}function N_(){if(mr!==5)return!1;var s=fo,o=Ky;Ky=0;var c=pi(Pc),f=F.T,v=J.p;try{J.p=32>c?32:c,F.T=null,c=Qy,Qy=null;var _=fo,z=Pc;if(mr=0,Dc=fo=null,Pc=0,(Gt&6)!==0)throw Error(r(331));var B=Gt;if(Gt|=4,m_(_.current),f_(_,_.current,z,c),Gt=B,Gd(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(De,_)}catch{}return!0}finally{J.p=v,F.T=f,M_(s,o)}}function D_(s,o,c){o=$i(c,o),o=Ay(s.stateNode,o,2),s=to(s,o,2),s!==null&&(Dn(s,2),Bs(s))}function rn(s,o,c){if(s.tag===3)D_(s,s,c);else for(;o!==null;){if(o.tag===3){D_(o,s,c);break}else if(o.tag===1){var f=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(uo===null||!uo.has(f))){s=$i(c,s),c=z2(2),f=to(o,c,2),f!==null&&($2(c,f,o,s),Dn(f,2),Bs(f));break}}o=o.return}}function t0(s,o,c){var f=s.pingCache;if(f===null){f=s.pingCache=new IN;var v=new Set;f.set(o,v)}else v=f.get(o),v===void 0&&(v=new Set,f.set(o,v));v.has(c)||(qy=!0,v.add(c),s=YN.bind(null,s,o,c),o.then(s,s))}function YN(s,o,c){var f=s.pingCache;f!==null&&f.delete(o),s.pingedLanes|=s.suspendedLanes&c,s.warmLanes&=~c,ln===s&&(kt&c)===c&&(Rn===4||Rn===3&&(kt&62914560)===kt&&300>Ae()-Yy?(Gt&2)===0&&jc(s,0):Gy|=c,Nc===kt&&(Nc=0)),Bs(s)}function P_(s,o){o===0&&(o=_n()),s=vc(s,o),s!==null&&(Dn(s,o),Bs(s))}function KN(s){var o=s.memoizedState,c=0;o!==null&&(c=o.retryLane),P_(s,c)}function QN(s,o){var c=0;switch(s.tag){case 13:var f=s.stateNode,v=s.memoizedState;v!==null&&(c=v.retryLane);break;case 19:f=s.stateNode;break;case 22:f=s.stateNode._retryCache;break;default:throw Error(r(314))}f!==null&&f.delete(o),P_(s,c)}function WN(s,o){return Be(s,o)}var Rp=null,zc=null,n0=!1,Tp=!1,r0=!1,bl=0;function Bs(s){s!==zc&&s.next===null&&(zc===null?Rp=zc=s:zc=zc.next=s),Tp=!0,n0||(n0=!0,JN())}function Gd(s,o){if(!r0&&Tp){r0=!0;do for(var c=!1,f=Rp;f!==null;){if(s!==0){var v=f.pendingLanes;if(v===0)var _=0;else{var z=f.suspendedLanes,B=f.pingedLanes;_=(1<<31-ot(42|s)+1)-1,_&=v&~(z&~B),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,$_(f,_))}else _=kt,_=Ht(f,f===ln?_:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(_&3)===0||Nn(f,_)||(c=!0,$_(f,_));f=f.next}while(c);r0=!1}}function ZN(){j_()}function j_(){Tp=n0=!1;var s=0;bl!==0&&(o3()&&(s=bl),bl=0);for(var o=Ae(),c=null,f=Rp;f!==null;){var v=f.next,_=L_(f,o);_===0?(f.next=null,c===null?Rp=v:c.next=v,v===null&&(zc=c)):(c=f,(s!==0||(_&3)!==0)&&(Tp=!0)),f=v}Gd(s)}function L_(s,o){for(var c=s.suspendedLanes,f=s.pingedLanes,v=s.expirationTimes,_=s.pendingLanes&-62914561;0<_;){var z=31-ot(_),B=1<<z,Z=v[z];Z===-1?((B&c)===0||(B&f)!==0)&&(v[z]=Er(B,o)):Z<=o&&(s.expiredLanes|=B),_&=~B}if(o=ln,c=kt,c=Ht(s,s===o?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),f=s.callbackNode,c===0||s===o&&(Xt===2||Xt===9)||s.cancelPendingCommit!==null)return f!==null&&f!==null&&nt(f),s.callbackNode=null,s.callbackPriority=0;if((c&3)===0||Nn(s,c)){if(o=c&-c,o===s.callbackPriority)return o;switch(f!==null&&nt(f),pi(c)){case 2:case 8:c=Y;break;case 32:c=G;break;case 268435456:c=ue;break;default:c=G}return f=z_.bind(null,s),c=Be(c,f),s.callbackPriority=o,s.callbackNode=c,o}return f!==null&&f!==null&&nt(f),s.callbackPriority=2,s.callbackNode=null,2}function z_(s,o){if(mr!==0&&mr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var c=s.callbackNode;if(Cp()&&s.callbackNode!==c)return null;var f=kt;return f=Ht(s,s===ln?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),f===0?null:(b_(s,f,o),L_(s,Ae()),s.callbackNode!=null&&s.callbackNode===c?z_.bind(null,s):null)}function $_(s,o){if(Cp())return null;b_(s,o,!0)}function JN(){c3(function(){(Gt&6)!==0?Be($e,ZN):j_()})}function i0(){return bl===0&&(bl=nn()),bl}function H_(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:oc(""+s)}function B_(s,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,s.id&&c.setAttribute("form",s.id),o.parentNode.insertBefore(c,o),s=new FormData(s),c.parentNode.removeChild(c),s}function e3(s,o,c,f,v){if(o==="submit"&&c&&c.stateNode===v){var _=H_((v[yn]||null).action),z=f.submitter;z&&(o=(o=z[yn]||null)?H_(o.formAction):z.getAttribute("formAction"),o!==null&&(_=o,z=null));var B=new dc("action","action",null,f,v);s.push({event:B,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(bl!==0){var Z=z?B_(v,z):new FormData(v);Ey(c,{pending:!0,data:Z,method:v.method,action:_},null,Z)}}else typeof _=="function"&&(B.preventDefault(),Z=z?B_(v,z):new FormData(v),Ey(c,{pending:!0,data:Z,method:v.method,action:_},_,Z))},currentTarget:v}]})}}for(var s0=0;s0<Iv.length;s0++){var a0=Iv[s0],t3=a0.toLowerCase(),n3=a0[0].toUpperCase()+a0.slice(1);fs(t3,"on"+n3)}fs(bS,"onAnimationEnd"),fs(xS,"onAnimationIteration"),fs(wS,"onAnimationStart"),fs("dblclick","onDoubleClick"),fs("focusin","onFocus"),fs("focusout","onBlur"),fs(bN,"onTransitionRun"),fs(xN,"onTransitionStart"),fs(wN,"onTransitionCancel"),fs(SS,"onTransitionEnd"),Ze("onMouseEnter",["mouseout","mouseover"]),Ze("onMouseLeave",["mouseout","mouseover"]),Ze("onPointerEnter",["pointerout","pointerover"]),Ze("onPointerLeave",["pointerout","pointerover"]),En("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),En("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),En("onBeforeInput",["compositionend","keypress","textInput","paste"]),En("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xd="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(" "),r3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xd));function F_(s,o){o=(o&4)!==0;for(var c=0;c<s.length;c++){var f=s[c],v=f.event;f=f.listeners;e:{var _=void 0;if(o)for(var z=f.length-1;0<=z;z--){var B=f[z],Z=B.instance,de=B.currentTarget;if(B=B.listener,Z!==_&&v.isPropagationStopped())break e;_=B,v.currentTarget=de;try{_(v)}catch(Ce){pp(Ce)}v.currentTarget=null,_=Z}else for(z=0;z<f.length;z++){if(B=f[z],Z=B.instance,de=B.currentTarget,B=B.listener,Z!==_&&v.isPropagationStopped())break e;_=B,v.currentTarget=de;try{_(v)}catch(Ce){pp(Ce)}v.currentTarget=null,_=Z}}}}function Rt(s,o){var c=o[Ds];c===void 0&&(c=o[Ds]=new Set);var f=s+"__bubble";c.has(f)||(U_(o,s,2,!1),c.add(f))}function o0(s,o,c){var f=0;o&&(f|=4),U_(c,s,f,o)}var Op="_reactListening"+Math.random().toString(36).slice(2);function l0(s){if(!s[Op]){s[Op]=!0,Ps.forEach(function(c){c!=="selectionchange"&&(r3.has(c)||o0(c,!1,s),o0(c,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[Op]||(o[Op]=!0,o0("selectionchange",!1,o))}}function U_(s,o,c,f){switch(fE(o)){case 2:var v=k3;break;case 8:v=M3;break;default:v=S0}c=v.bind(null,o,c,s),v=void 0,!od||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),f?v!==void 0?s.addEventListener(o,c,{capture:!0,passive:v}):s.addEventListener(o,c,!0):v!==void 0?s.addEventListener(o,c,{passive:v}):s.addEventListener(o,c,!1)}function c0(s,o,c,f,v){var _=f;if((o&1)===0&&(o&2)===0&&f!==null)e:for(;;){if(f===null)return;var z=f.tag;if(z===3||z===4){var B=f.stateNode.containerInfo;if(B===v)break;if(z===4)for(z=f.return;z!==null;){var Z=z.tag;if((Z===3||Z===4)&&z.stateNode.containerInfo===v)return;z=z.return}for(;B!==null;){if(z=hr(B),z===null)return;if(Z=z.tag,Z===5||Z===6||Z===26||Z===27){f=_=z;continue e}B=B.parentNode}}f=f.return}Ph(function(){var de=_,Ce=lc(c),Oe=[];e:{var me=_S.get(s);if(me!==void 0){var ge=dc,ht=s;switch(s){case"keypress":if(cc(c)===0)break e;case"keydown":case"keyup":ge=jv;break;case"focusin":ht="focus",ge=dd;break;case"focusout":ht="blur",ge=dd;break;case"beforeblur":case"afterblur":ge=dd;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=Sv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=Ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=zv;break;case bS:case xS:case wS:ge=Rv;break;case SS:ge=T;break;case"scroll":case"scrollend":ge=wv;break;case"wheel":ge=q;break;case"copy":case"cut":case"paste":ge=Ov;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=Vn;break;case"toggle":case"beforetoggle":ge=Ee}var lt=(o&4)!==0,en=!lt&&(s==="scroll"||s==="scrollend"),oe=lt?me!==null?me+"Capture":null:me;lt=[];for(var te=de,ce;te!==null;){var Re=te;if(ce=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||ce===null||oe===null||(Re=el(te,oe),Re!=null&&lt.push(Yd(te,Re,ce))),en)break;te=te.return}0<lt.length&&(me=new ge(me,ht,null,c,Ce),Oe.push({event:me,listeners:lt}))}}if((o&7)===0){e:{if(me=s==="mouseover"||s==="pointerover",ge=s==="mouseout"||s==="pointerout",me&&c!==sd&&(ht=c.relatedTarget||c.fromElement)&&(hr(ht)||ht[Bt]))break e;if((ge||me)&&(me=Ce.window===Ce?Ce:(me=Ce.ownerDocument)?me.defaultView||me.parentWindow:window,ge?(ht=c.relatedTarget||c.toElement,ge=de,ht=ht?hr(ht):null,ht!==null&&(en=a(ht),lt=ht.tag,ht!==en||lt!==5&&lt!==27&&lt!==6)&&(ht=null)):(ge=null,ht=de),ge!==ht)){if(lt=Sv,Re="onMouseLeave",oe="onMouseEnter",te="mouse",(s==="pointerout"||s==="pointerover")&&(lt=Vn,Re="onPointerLeave",oe="onPointerEnter",te="pointer"),en=ge==null?me:mi(ge),ce=ht==null?me:mi(ht),me=new lt(Re,te+"leave",ge,c,Ce),me.target=en,me.relatedTarget=ce,Re=null,hr(Ce)===de&&(lt=new lt(oe,te+"enter",ht,c,Ce),lt.target=ce,lt.relatedTarget=en,Re=lt),en=Re,ge&&ht)t:{for(lt=ge,oe=ht,te=0,ce=lt;ce;ce=$c(ce))te++;for(ce=0,Re=oe;Re;Re=$c(Re))ce++;for(;0<te-ce;)lt=$c(lt),te--;for(;0<ce-te;)oe=$c(oe),ce--;for(;te--;){if(lt===oe||oe!==null&&lt===oe.alternate)break t;lt=$c(lt),oe=$c(oe)}lt=null}else lt=null;ge!==null&&I_(Oe,me,ge,lt,!1),ht!==null&&en!==null&&I_(Oe,en,ht,lt,!0)}}e:{if(me=de?mi(de):window,ge=me.nodeName&&me.nodeName.toLowerCase(),ge==="select"||ge==="input"&&me.type==="file")var Ye=hc;else if(Bh(me))if(md)Ye=gN;else{Ye=pN;var St=hN}else ge=me.nodeName,!ge||ge.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?de&&us(de.elementType)&&(Ye=hc):Ye=mN;if(Ye&&(Ye=Ye(s,de))){Fh(Oe,Ye,c,Ce);break e}St&&St(s,me,de),s==="focusout"&&de&&me.type==="number"&&de.memoizedProps.value!=null&&id(me,"number",me.value)}switch(St=de?mi(de):window,s){case"focusin":(Bh(St)||St.contentEditable==="true")&&(pc=St,Bv=de,xd=null);break;case"focusout":xd=Bv=pc=null;break;case"mousedown":Fv=!0;break;case"contextmenu":case"mouseup":case"dragend":Fv=!1,vS(Oe,c,Ce);break;case"selectionchange":if(yN)break;case"keydown":case"keyup":vS(Oe,c,Ce)}var et;if(Xe)e:{switch(s){case"compositionstart":var ct="onCompositionStart";break e;case"compositionend":ct="onCompositionEnd";break e;case"compositionupdate":ct="onCompositionUpdate";break e}ct=void 0}else Ya?zh(s,c)&&(ct="onCompositionEnd"):s==="keydown"&&c.keyCode===229&&(ct="onCompositionStart");ct&&(Mt&&c.locale!=="ko"&&(Ya||ct!=="onCompositionStart"?ct==="onCompositionEnd"&&Ya&&(et=jh()):(js=Ce,ld="value"in js?js.value:js.textContent,Ya=!0)),St=Ap(de,ct),0<St.length&&(ct=new Lh(ct,s,null,c,Ce),Oe.push({event:ct,listeners:St}),et?ct.data=et:(et=pd(c),et!==null&&(ct.data=et)))),(et=At?$h(s,c):$v(s,c))&&(ct=Ap(de,"onBeforeInput"),0<ct.length&&(St=new Lh("onBeforeInput","beforeinput",null,c,Ce),Oe.push({event:St,listeners:ct}),St.data=et)),e3(Oe,s,de,c,Ce)}F_(Oe,o)})}function Yd(s,o,c){return{instance:s,listener:o,currentTarget:c}}function Ap(s,o){for(var c=o+"Capture",f=[];s!==null;){var v=s,_=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||_===null||(v=el(s,c),v!=null&&f.unshift(Yd(s,v,_)),v=el(s,o),v!=null&&f.push(Yd(s,v,_))),s.tag===3)return f;s=s.return}return[]}function $c(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function I_(s,o,c,f,v){for(var _=o._reactName,z=[];c!==null&&c!==f;){var B=c,Z=B.alternate,de=B.stateNode;if(B=B.tag,Z!==null&&Z===f)break;B!==5&&B!==26&&B!==27||de===null||(Z=de,v?(de=el(c,_),de!=null&&z.unshift(Yd(c,de,Z))):v||(de=el(c,_),de!=null&&z.push(Yd(c,de,Z)))),c=c.return}z.length!==0&&s.push({event:o,listeners:z})}var i3=/\r\n?/g,s3=/\u0000|\uFFFD/g;function V_(s){return(typeof s=="string"?s:""+s).replace(i3,`
50`).replace(s3,"")}function q_(s,o){return o=V_(o),V_(s)===o}function kp(){}function Jt(s,o,c,f,v,_){switch(c){case"children":typeof f=="string"?o==="body"||o==="textarea"&&f===""||qa(s,f):(typeof f=="number"||typeof f=="bigint")&&o!=="body"&&qa(s,""+f);break;case"className":Wr(s,"class",f);break;case"tabIndex":Wr(s,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Wr(s,c,f);break;case"style":ac(s,f,_);break;case"data":if(o!=="object"){Wr(s,"data",f);break}case"src":case"href":if(f===""&&(o!=="a"||c!=="href")){s.removeAttribute(c);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){s.removeAttribute(c);break}f=oc(""+f),s.setAttribute(c,f);break;case"action":case"formAction":if(typeof f=="function"){s.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _=="function"&&(c==="formAction"?(o!=="input"&&Jt(s,o,"name",v.name,v,null),Jt(s,o,"formEncType",v.formEncType,v,null),Jt(s,o,"formMethod",v.formMethod,v,null),Jt(s,o,"formTarget",v.formTarget,v,null)):(Jt(s,o,"encType",v.encType,v,null),Jt(s,o,"method",v.method,v,null),Jt(s,o,"target",v.target,v,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){s.removeAttribute(c);break}f=oc(""+f),s.setAttribute(c,f);break;case"onClick":f!=null&&(s.onclick=kp);break;case"onScroll":f!=null&&Rt("scroll",s);break;case"onScrollEnd":f!=null&&Rt("scrollend",s);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(c=f.__html,c!=null){if(v.children!=null)throw Error(r(60));s.innerHTML=c}}break;case"multiple":s.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":s.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){s.removeAttribute("xlink:href");break}c=oc(""+f),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,""+f):s.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
50ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,""):s.removeAttribute(c);break;case"capture":case"download":f===!0?s.setAttribute(c,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,f):s.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?s.setAttribute(c,f):s.removeAttribute(c);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?s.removeAttribute(c):s.setAttribute(c,f);break;case"popover":Rt("beforetoggle",s),Rt("toggle",s),ls(s,"popover",f);break;case"xlinkActuate":zr(s,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":zr(s,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":zr(s,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":zr(s,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":zr(s,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":zr(s,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":zr(s,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":zr(s,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":zr(s,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":ls(s,"is",f);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=bv.get(c)||c,ls(s,c,f))}}function u0(s,o,c,f,v,_){switch(c){case"style":ac(s,f,_);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(c=f.__html,c!=null){if(v.children!=null)throw Error(r(60));s.innerHTML=c}}break;case"children":typeof f=="string"?qa(s,f):(typeof f=="number"||typeof f=="bigint")&&qa(s,""+f);break;case"onScroll":f!=null&&Rt("scroll",s);break;case"onScrollEnd":f!=null&&Rt("scrollend",s);break;case"onClick":f!=null&&(s.onclick=kp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qr.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),o=c.slice(2,v?c.length-7:void 0),_=s[yn]||null,_=_!=null?_[c]:null,typeof _=="function"&&s.removeEventListener(o,_,v),typeof f=="function")){typeof _!="function"&&_!==null&&(c in s?s[c]=null:s.hasAttribute(c)&&s.removeAttribute(c)),s.addEventListener(o,f,v);break e}c in s?s[c]=f:f===!0?s.setAttribute(c,""):ls(s,c,f)}}}function gr(s,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",s),Rt("load",s);var f=!1,v=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var z=c[_];if(z!=null)switch(_){case"src":f=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Jt(s,o,_,z,c,null)}}v&&Jt(s,o,"srcSet",c.srcSet,c,null),f&&Jt(s,o,"src",c.src,c,null);return;case"input":Rt("invalid",s);var B=_=z=v=null,Z=null,de=null;for(f in c)if(c.hasOwnProperty(f)){var Ce=c[f];if(Ce!=null)switch(f){case"name":v=Ce;break;case"type":z=Ce;break;case"checked":Z=Ce;break;case"defaultChecked":de=Ce;break;case"value":_=Ce;break;case"defaultValue":B=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(137,o));break;default:Jt(s,o,f,Ce,c,null)}}Ia(s,_,B,Z,de,z,v,!1),ic(s);return;case"select":Rt("invalid",s),f=z=_=null;for(v in c)if(c.hasOwnProperty(v)&&(B=c[v],B!=null))switch(v){case"value":_=B;break;case"defaultValue":z=B;break;case"multiple":f=B;default:Jt(s,o,v,B,c,null)}o=_,c=z,s.multiple=!!f,o!=null?Va(s,!!f,o,!1):c!=null&&Va(s,!!f,c,!0);return;case"textarea":Rt("invalid",s),_=v=f=null;for(z in c)if(c.hasOwnProperty(z)&&(B=c[z],B!=null))switch(z){case"value":f=B;break;case"defaultValue":v=B;break;case"children":_=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(91));break;default:Jt(s,o,z,B,c,null)}Mh(s,f,v,_),ic(s);return;case"option":for(Z in c)if(c.hasOwnProperty(Z)&&(f=c[Z],f!=null))switch(Z){case"selected":s.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Jt(s,o,Z,f,c,null)}return;case"dialog":Rt("beforetoggle",s),Rt("toggle",s),Rt("cancel",s),Rt("close",s
vendor: 24,940 bytes, line 50
50);break;case"iframe":case"object":Rt("load",s);break;case"video":case"audio":for(f=0;f<Xd.length;f++)Rt(Xd[f],s);break;case"image":Rt("error",s),Rt("load",s);break;case"details":Rt("toggle",s);break;case"embed":case"source":case"link":Rt("error",s),Rt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in c)if(c.hasOwnProperty(de)&&(f=c[de],f!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Jt(s,o,de,f,c,null)}return;default:if(us(o)){for(Ce in c)c.hasOwnProperty(Ce)&&(f=c[Ce],f!==void 0&&u0(s,o,Ce,f,c,void 0));return}}for(B in c)c.hasOwnProperty(B)&&(f=c[B],f!=null&&Jt(s,o,B,f,c,null))}function a3(s,o,c,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,_=null,z=null,B=null,Z=null,de=null,Ce=null;for(ge in c){var Oe=c[ge];if(c.hasOwnProperty(ge)&&Oe!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":Z=Oe;default:f.hasOwnProperty(ge)||Jt(s,o,ge,null,f,Oe)}}for(var me in f){var ge=f[me];if(Oe=c[me],f.hasOwnProperty(me)&&(ge!=null||Oe!=null))switch(me){case"type":_=ge;break;case"name":v=ge;break;case"checked":de=ge;break;case"defaultChecked":Ce=ge;break;case"value":z=ge;break;case"defaultValue":B=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,o));break;default:ge!==Oe&&Jt(s,o,me,ge,f,Oe)}}rd(s,z,B,Z,de,Ce,_,v);return;case"select":ge=z=B=me=null;for(_ in c)if(Z=c[_],c.hasOwnProperty(_)&&Z!=null)switch(_){case"value":break;case"multiple":ge=Z;default:f.hasOwnProperty(_)||Jt(s,o,_,null,f,Z)}for(v in f)if(_=f[v],Z=c[v],f.hasOwnProperty(v)&&(_!=null||Z!=null))switch(v){case"value":me=_;break;case"defaultValue":B=_;break;case"multiple":z=_;default:_!==Z&&Jt(s,o,v,_,f,Z)}o=B,c=z,f=ge,me!=null?Va(s,!!c,me,!1):!!f!=!!c&&(o!=null?Va(s,!!c,o,!0):Va(s,!!c,c?[]:"",!1));return;case"textarea":ge=me=null;for(B in c)if(v=c[B],c.hasOwnProperty(B)&&v!=null&&!f.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:Jt(s,o,B,null,f,v)}for(z in f)if(v=f[z],_=c[z],f.hasOwnProperty(z)&&(v!=null||_!=null))switch(z){case"value":me=v;break;case"defaultValue":ge=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==_&&Jt(s,o,z,v,f,_)}kh(s,me,ge);return;case"option":for(var ht in c)if(me=c[ht],c.hasOwnProperty(ht)&&me!=null&&!f.hasOwnProperty(ht))switch(ht){case"selected":s.selected=!1;break;default:Jt(s,o,ht,null,f,me)}for(Z in f)if(me=f[Z],ge=c[Z],f.hasOwnProperty(Z)&&me!==ge&&(me!=null||ge!=null))switch(Z){case"selected":s.selected=me&&typeof me!="function"&&typeof me!="symbol";break;default:Jt(s,o,Z,me,f,ge)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var lt in c)me=c[lt],c.hasOwnProperty(lt)&&me!=null&&!f.hasOwnProperty(lt)&&Jt(s,o,lt,null,f,me);for(de in f)if(me=f[de],ge=c[de],f.hasOwnProperty(de)&&me!==ge&&(me!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,o));break;default:Jt(s,o,de,me,f,ge)}return;default:if(us(o)){for(var en in c)me=c[en],c.hasOwnProperty(en)&&me!==void 0&&!f.hasOwnProperty(en)&&u0(s,o,en,void 0,f,me);for(Ce in f)me=f[Ce],ge=c[Ce],!f.hasOwnProperty(Ce)||me===ge||me===void 0&&ge===void 0||u0(s,o,Ce,me,f,ge);return}}for(var oe in c)me=c[oe],c.hasOwnProperty(oe)&&me!=null&&!f.hasOwnProperty(oe)&&Jt(s,o,oe,null,f,me);for(Oe in f)me=f[Oe],ge=c[Oe],!f.hasOwnProperty(Oe)||me===ge||me==null&&ge==null||Jt(s,o,Oe,me,f,ge)}var d0=null,f0=null;function Mp(s){return s.nodeType===9?s:s.ownerDocument}function G_(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function X_(s,o){if(s===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&o==="foreignObject"?0:s}function h0(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var p0=null;function o3(){var s=window.event;return s&&s.type==="popstate"?s===p0?!1:(p0=s,!0):(p0=null,!1)}var Y_=typeof setTimeout=="function"?setTimeout:void 0,l3=typeof clearTimeout=="function"?clearTimeout:void 0,K_=typeof Promise=="function"?Promise:void 0,c3=typeof queueMicrotask=="function"?queueMicrotask:typeof K_<"u"?function(s){return K_.resolve(null).then(s).catch(u3)}:Y_;function u3(s){setTimeout(function(){throw s})}function po(s){return s==="head"}function Q_(s,o){var c=o,f=0,v=0;do{var _=c.nextSibling;if(s.removeChild(c),_&&_.nodeType===8)if(c=_.data,c==="/$"){if(0<f&&8>f){c=f;var z=s.ownerDocument;if(c&1&&Kd(z.documentElement),c&2&&Kd(z.body),c&4)for(c=z.head,Kd(c),z=c.firstChild;z;){var B=z.nextSibling,Z=z.nodeName;z[jn]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&z.rel.toLowerCase()==="stylesheet"||c.removeChild(z),z=B}}if(v===0){s.removeChild(_),rf(o);return}v--}else c==="$"||c==="$?"||c==="$!"?v++:f=c.charCodeAt(0)-48;else f=0;c=_}while(c);rf(o)}function m0(s){var o=s.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":m0(c),In(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}s.removeChild(c)}}function d3(s,o,c,f){for(;s.nodeType===1;){var v=c;if(s.nodeName.toLowerCase()!==o.toLowerCase()){if(!f&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(f){if(!s[jn])switch(o){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(_=s.getAttribute("rel"),_==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(_!==v.rel||s.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||s.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||s.getAttribute("title")!==(v.title==null?null:v.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(_=s.getAttribute("src"),(_!==(v.src==null?null:v.src)||s.getAttribute("type")!==(v.type==null?null:v.type)||s.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&_&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(o==="input"&&s.type==="hidden"){var _=v.name==null?null:""+v.name;if(v.type==="hidden"&&s.getAttribute("name")===_)return s}else return s;if(s=ps(s.nextSibling),s===null)break}return null}function f3(s,o,c){if(o==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!c||(s=ps(s.nextSibling),s===null))return null;return s}function g0(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function h3(s,o){var c=s.ownerDocument;if(s.data!=="$?"||c.readyState==="complete")o();else{var f=function(){o(),c.removeEventListener("DOMContentLoaded",f)};c.addEventListener("DOMContentLoaded",f),s._reactRetry=f}}function ps(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return s}var v0=null;function W_(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return s;o--}else c==="/$"&&o++}s=s.previousSibling}return null}function Z_(s,o,c){switch(o=Mp(c),s){case"html":if(s=o.documentElement,!s)throw Error(r(452));return s;case"head":if(s=o.head,!s)throw Error(r(453));return s;case"body":if(s=o.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Kd(s){for(var o=s.attributes;o.length;)s.removeAttributeNode(o[0]);In(s)}var Vi=new Map,J_=new Set;function Np(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Ea=J.d;J.d={f:p3,r:m3,D:g3,C:v3,L:y3,m:b3,X:w3,S:x3,M:S3};function p3(){var s=Ea.f(),o=_p();return s||o}function m3(s){var o=Jn(s);o!==null&&o.tag===5&&o.type==="form"?b2(o):Ea.r(s)}var Hc=typeof document>"u"?null:document;function eE(s,o,c){var f=Hc;if(f&&typeof o=="string"&&o){var v=sr(o);v='link[rel="'+s+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),J_.has(v)||(J_.add(v),s={rel:s,crossOrigin:c,href:o},f.querySelector(v)===null&&(o=f.createElement("link"),gr(o,"link",s),fn(o),f.head.appendChild(o)))}}function g3(s){Ea.D(s),eE("dns-prefetch",s,null)}function v3(s,o){Ea.C(s,o),eE("preconnect",s,o)}function y3(s,o,c){Ea.L(s,o,c);var f=Hc;if(f&&s&&o){var v='link[rel="preload"][as="'+sr(o)+'"]';o==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+sr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+sr(c.imageSizes)+'"]')):v+='[href="'+sr(s)+'"]';var _=v;switch(o){case"style":_=Bc(s);break;case"script":_=Fc(s)}Vi.has(_)||(s=p({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:s,as:o},c),Vi.set(_,s),f.querySelector(v)!==null||o==="style"&&f.querySelector(Qd(_))||o==="script"&&f.querySelector(Wd(_))||(o=f.createElement("link"),gr(o,"link",s),fn(o),f.head.appendChild(o)))}}function b3(s,o){Ea.m(s,o);var c=Hc;if(c&&s){var f=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+sr(f)+'"][href="'+sr(s)+'"]',_=v;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Fc(s)}if(!Vi.has(_)&&(s=p({rel:"modulepreload",href:s},o),Vi.set(_,s),c.querySelector(v)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Wd(_)))return}f=c.createElement("link"),gr(f,"link",s),fn(f),c.head.appendChild(f)}}}function x3(s,o,c){Ea.S(s,o,c);var f=Hc;if(f&&s){var v=Kr(f).hoistableStyles,_=Bc(s);o=o||"default";var z=v.get(_);if(!z){var B={loading:0,preload:null};if(z=f.querySelector(Qd(_)))B.loading=5;else{s=p({rel:"stylesheet",href:s,"data-precedence":o},c),(c=Vi.get(_))&&y0(s,c);var Z=z=f.createElement("link");fn(Z),gr(Z,"link",s),Z._p=new Promise(function(de,Ce){Z.onload=de,Z.onerror=Ce}),Z.addEventListener("load",function(){B.loading|=1}),Z.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Dp(z,o,f)}z={type:"stylesheet",instance:z,count:1,state:B},v.set(_,z)}}}function w3(s,o){Ea.X(s,o);var c=Hc;if(c&&s){var f=Kr(c).hoistableScripts,v=Fc(s),_=f.get(v);_||(_=c.querySelector(Wd(v)),_||(s=p({src:s,async:!0},o),(o=Vi.get(v))&&b0(s,o),_=c.createElement("script"),fn(_),gr(_,"link",s),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},f.set(v,_))}}function S3(s,o){Ea.M(s,o);var c=Hc;if(c&&s){var f=Kr(c).hoistableScripts,v=Fc(s),_=f.get(v);_||(_=c.querySelector(Wd(v)),_||(s=p({src:s,async:!0,type:"module"},o),(o=Vi.get(v))&&b0(s,o),_=c.createElement("script"),fn(_),gr(_,"link",s),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},f.set(v,_))}}function tE(s,o,c,f){var v=(v=ie.current)?Np(v):null;if(!v)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Bc(c.href),c=Kr(v).hoistableStyles,f=c.get(o),f||(f={type:"style",instance:null,count:0,state:null},c.set(o,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){s=Bc(c.href);var _=Kr(v).hoistableStyles,z=_.get(s);if(z||(v=v.ownerDocument||v,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(s,z),(_=v.querySelector(Qd(s)))&&!_._p&&(z.instance=_,z.state.loading=5),Vi.has(s)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Vi.set(s,c),_||_3(v,s,c,z.state))),o&&f===null)throw Error(r(528,""));return z}if(o&&f!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Fc(c),c=Kr(v).hoistableScripts,f=c.get(o),f||(f={type:"script",instance:null,count:0,state:null},c.set(o,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Bc(s){return'href="'+sr(s)+'"'}function Qd(s){return'link[rel="stylesheet"]['+s+"]"}function nE(s){return p({},s,{"data-precedence":s.precedence,precedence:null})}function _3(s,o,c,f){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?f.loading=1:(o=s.createElement("link"),f.preload=o,o.addEventListener("load",function(){return f.loading|=1}),o.addEventListener("error",function(){return f.loading|=2}),gr(o,"link",c),fn(o),s.head.appendChild(o))}function Fc(s){return'[src="'+sr(s)+'"]'}function Wd(s){return"script[async]"+s}function rE(s,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var f=s.querySelector('style[data-href~="'+sr(c.href)+'"]');if(f)return o.instance=f,fn(f),f;var v=p({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return f=(s.ownerDocument||s).createElement("style"),fn(f),gr(f,"style",v),Dp(f,c.precedence,s),o.instance=f;case"stylesheet":v=Bc(c.href);var _=s.querySelector(Qd(v));if(_)return o.state.loading|=4,o.instance=_,fn(_),_;f=nE(c),(v=Vi.get(v))&&y0(f,v),_=(s.ownerDocument||s).createElement("link"),fn(_);var z=_;return z._p=new Promise(function(B,Z){z.onload=B,z.onerror=Z}),gr(_,"link",f),o.state.loading|=4,Dp(_,c.precedence,s),o.instance=_;case"script":return _=Fc(c.src),(v=s.querySelector(Wd(_)))?(o.instance=v,fn(v),v):(f=c,(v=Vi.get(_))&&(f=p({},c),b0(f,v)),s=s.ownerDocument||s,v=s.createElement("script"),fn(v),gr(v,"link",f),s.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(f=o.instance,o.state.loading|=4,Dp(f,c.precedence,s));return o.instance}function Dp(s,o,c){for(var f=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=f.length?f[f.length-1]:null,_=v,z=0;z<f.length;z++){var B=f[z];if(B.dataset.precedence===o)_=B;else if(_!==v)break}_?_.parentNode.insertBefore(s,_.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(s,o.firstChild))}function y0(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.title==null&&(s.title=o.title)}function b0(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.integrity==null&&(s.integrity=o.integrity)}var Pp=null;function iE(s,o,c){if(Pp===null){var f=new Map,v=Pp=new Map;v.set(c,f)}else v=Pp,f=v.get(c),f||(f=new Map,v.set(c,f));if(f.has(s))return f;for(f.set(s,null),c=c.getElementsByTagName(s),v=0;v<c.length;v++){var _=c[v];if(!(_[jn]||_[Wt]||s==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var z=_.getAttribute(o)||"";z=s+z;var B=f.get(z);B?B.push(_):f.set(z,[_])}}return f}function sE(s,o,c){s=s.ownerDocument||s,s.head.insertBefore(c,o==="title"?s.querySelector("head > title"):null)}function E3(s,o,c){if(c===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return s=o.disabled,typeof o.precedence=="string"&&s==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function aE(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Zd=null;function C3(){}function R3(s,o,c){if(Zd===null)throw Error(r(475));var f=Zd;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var v=Bc(c.href),_=s.querySelector(Qd(v));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(f.count++,f=jp.bind(f),s.then(f,f)),o.state.loading|=4,o.instance=_,fn(_);return}_=s.ownerDocument||s,c=nE(c),(v=Vi.get(v))&&y0(c,v),_=_.createElement("link"),fn(_);var z=_;z._p=new Promise(function(B,Z){z.onload=B,z.onerror=Z}),gr(_,"link",c),o.instance=_}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(f.count++,o=jp.bind(f),s.addEventListener("load",o),s.addEventListener("error",o))}}function T3(){if(Zd===null)throw Error(r(475));var s=Zd;return s.stylesheets&&s.count===0&&x0(s,s.stylesheets),0<s.count?function(o){var c=setTimeout(function(){if(s.stylesheets&&x0(s,s.stylesheets),s.unsuspend){var f=s.unsuspend;s.unsuspend=null,f()}},6e4);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(c)}}:null}function jp(){if(this.count--,this.count===0){if(this.stylesheets)x0(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Lp=null;function x0(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Lp=new Map,o.forEach(O3,s),Lp=null,jp.call(s))}function O3(s,o){if(!(o.state.loading&4)){var c=Lp.get(s);if(c)var f=c.get(null);else{c=new Map,Lp.set(s,c);for(var v=s.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<v.length;_++){var z=v[_];(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")&&(c.set(z.dataset.precedence,z),f=z)}f&&c.set(null,f)}v=o.instance,z=v.getAttribute("data-precedence"),_=c.get(z)||f,_===f&&c.set(null,v),c.set(z,v),this.count++,f=jp.bind(this),v.addEventListener("load",f),v.addEventListener("error",f),_?_.parentNode.insertBefore(v,_.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(v,s.firstChild)),o.state.loading|=4}}var Jd={$$typeof:O,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function A3(s,o,c,f,v,_,z,B){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=f,this.onUncaughtError=v,this.onCaughtError=_,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function oE(s,o,c,f,v,_,z,B,Z,de,Ce,Oe){return s=new A3(s,o,c,z,B,Z,de,Oe),o=1,_===!0&&(o|=24),_=yi(3,null,null,o),s.current=_,_.stateNode=s,o=ty(),o.refCount++,s.pooledCache=o,o.refCount++,_.memoizedState={element:f,isDehydrated:c,cache:o},sy(_),s}function lE(s){return s?(s=yc,s):yc}function cE(s,o,c,f,v,_){v=lE(v),f.context===null?f.context=v:f.pendingContext=v,f=eo(o),f.payload={element:c},_=_===void 0?null:_,_!==null&&(f.callback=_),c=to(s,f,o),c!==null&&(_i(c,s,o),Ad(c,s,o))}function uE(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var c=s.retryLane;s.retryLane=c!==0&&c<o?c:o}}function w0(s,o){uE(s,o),(s=s.alternate)&&uE(s,o)}function dE(s){if(s.tag===13){var o=vc(s,67108864);o!==null&&_i(o,s,67108864),w0(s,67108864)}}var zp=!0;function k3(s,o,c,f){var v=F.T;F.T=null;var _=J.p;try{J.p=2,S0(s,o,c,f)}finally{J.p=_,F.T=v}}function M3(s,o,c,f){var v=F.T;F.T=null;var _=J.p;try{J.p=8,S0(s,o,c,f)}finally{J.p=_,F.T=v}}function S0(s,o,c,f){if(zp){var v=_0(f);if(v===null)c0(s,o,f,$p,c),hE(s,f);else if(D3(v,s,o,c,f))f.stopPropagation();else if(hE(s,f),o&4&&-1<N3.indexOf(s)){for(;v!==null;){var _=Jn(v);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var z=Et(_.pendingLanes);if(z!==0){var B=_;for(B.pendingLanes|=2,B.entangledLanes|=2;z;){var Z=1<<31-ot(z);B.entanglements[1]|=Z,z&=~Z}Bs(_),(Gt&6)===0&&(wp=Ae()+500,Gd(0))}}break;case 13:B=vc(_,2),B!==null&&_i(B,_,2),_p(),w0(_,2)}if(_=_0(f),_===null&&c0(s,o,f,$p,c),_===v)break;v=_}v!==null&&f.stopPropagation()}else c0(s,o,f,null,c)}}function _0(s){return s=lc(s),E0(s)}var $p=null;function E0(s){if($p=null,s=hr(s),s!==null){var o=a(s);if(o===null)s=null;else{var c=o.tag;if(c===13){if(s=l(o),s!==null)return s;s=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return $p=s,null}function fE(s){switch(s){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(je()){case $e:return 2;case Y:return 8;case G:case K:return 32;case ue:return 268435456;default:return 32}default:return 32}}var C0=!1,mo=null,go=null,vo=null,ef=new Map,tf=new Map,yo=[],N3="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".split(" ");function hE(s,o){switch(s){case"focusin":case"focusout":mo=null;break;case"dragenter":case"dragleave":go=null;break;case"mouseover":case"mouseout":vo=null;break;case"pointerover":case"pointerout":ef.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":tf.delete(o.pointerId)}}function nf(s,o,c,f,v,_){return s===null||s.nativeEvent!==_?(s={blockedOn:o,domEventName:c,eventSystemFlags:f,nativeEvent:_,targetContainers:[v]},o!==null&&(o=Jn(o),o!==null&&dE(o)),s):(s.eventSystemFlags|=f,o=s.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),s)}function D3(s,o,c,f,v){switch(o){case"focusin":return mo=nf(mo,s,o,c,f,v),!0;case"dragenter":return go=nf(go,s,o,c,f,v),!0;case"mouseover":return vo=nf(vo,s,o,c,f,v),!0;case"pointerover":var _=v.pointerId;return ef.set(_,nf(ef.get(_)||null,s,o,c,f,v)),!0;case"gotpointercapture":return _=v.pointerId,tf.set(_,nf(tf.get(_)||null,s,o,c,f,v)),!0}return!1}function pE(s){var o=hr(s.target);if(o!==null){var c=a(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){s.blockedOn=o,zi(s.priority,function(){if(c.tag===13){var f=Si();f=Cr(f);var v=vc(c,f);v!==null&&_i(v,c,f),w0(c,f)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){s.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Hp(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var c=_0(s.nativeEvent);if(c===null){c=s.nativeEvent;var f=new c.constructor(c.type,c);sd=f,c.target.dispatchEvent(f),sd=null}else return o=Jn(c),o!==null&&dE(o),s.blockedOn=c,!1;o.shift()}return!0}function mE(s,o,c){Hp(s)&&c.delete(o)}function P3(){C0=!1,mo!==null&&Hp(mo)&&(mo=null),go!==null&&Hp(go)&&(go=null),vo!==null&&Hp(vo)&&(vo=null),ef.forEach(mE),tf.forEach(mE)}function Bp(s,o){s.blockedOn===o&&(s.blockedOn=null,C0||(C0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,P3)))}var Fp=null;function gE(s){Fp!==s&&(Fp=s,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===s&&(Fp=null);for(var o=0;o<s.length;o+=3){var c=s[o],f=s[o+1],v=s[o+2];if(typeof f!="function"){if(E0(f||c)===null)continue;break}var _=Jn(c);_!==null&&(s.splice(o,3),o-=3,Ey(_,{pending:!0,data:v,method:c.method,action:f},f,v))}}))}function rf(s){function o(Z){return Bp(Z,s)}mo!==null&&Bp(mo,s),go!==null&&Bp(go,s),vo!==null&&Bp(vo,s),ef.forEach(o),tf.forEach(o);for(var c=0;c<yo.length;c++){var f=yo[c];f.blockedOn===s&&(f.blockedOn=null)}for(;0<yo.length&&(c=yo[0],c.blockedOn===null);)pE(c),c.blockedOn===null&&yo.shift();if(c=(s.ownerDocument||s).$$reactFormReplay,c!=null)for(f=0;f<c.length;f+=3){var v=c[f],_=c[f+1],z=v[yn]||null;if(typeof _=="function")z||gE(c);else if(z){var B=null;if(_&&_.hasAttribute("formAction")){if(v=_,z=_[yn]||null)B=z.formAction;else if(E0(v)!==null)continue}else B=z.action;
50typeof B=="function"?c[f+1]=B:(c.splice(f,3),f-=3),gE(c)}}}function R0(s){this._internalRoot=s}Up.prototype.render=R0.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,f=Si();cE(c,f,s,o,null,null)},Up.prototype.unmount=R0.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;cE(s.current,2,null,s,null,null),_p(),o[Bt]=null}};function Up(s){this._internalRoot=s}Up.prototype.unstable_scheduleHydration=function(s){if(s){var o=os();s={blockedOn:null,target:s,priority:o};for(var c=0;c<yo.length&&o!==0&&o<yo[c].priority;c++);yo.splice(c,0,s),c===0&&pE(s)}};var vE=e.version;if(vE!=="19.1.0")throw Error(r(527,vE,"19.1.0"));J.findDOMNode=function(s){var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=d(o),s=s!==null?h(s):null,s=s===null?null:s.stateNode,s};var j3={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ip=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ip.isDisabled&&Ip.supportsFiber)try{De=Ip.inject(j3),Ue=Ip}catch{}}return of.createRoot=function(s,o){if(!i(s))throw Error(r(299));var c=!1,f="",v=D2,_=P2,z=j2,B=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(z=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(B=o.unstable_transitionCallbacks)),o=oE(s,1,!1,null,null,c,f,v,_,z,B,null),s[Bt]=o.current,l0(s),new R0(o)},of.hydrateRoot=function(s,o,c){if(!i(s))throw Error(r(299));var f=!1,v="",_=D2,z=P2,B=j2,Z=null,de=null;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(z=c.onCaughtError),c.onRecoverableError!==void 0&&(B=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(Z=c.unstable_transitionCallbacks),c.formState!==void 0&&(de=c.formState)),o=oE(s,1,!0,o,c??null,f,v,_,z,B,Z,de),o.context=lE(null),c=o.current,f=Si(),f=Cr(f),v=eo(f),v.callback=null,to(c,v,f),c=f,o.current.lanes=c,Dn(o,c),Bs(o),s[Bt]=o.current,l0(s),new Up(o)},of.version="19.1.0",of}var OE;function X3(){if(OE)return k0.exports;OE=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),k0.exports=G3(),k0.exports}var AE=X3();/**
51 * react-router v7.18.2
52 *
53 * Copyright (c) Remix Software Inc.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE.md file in the root directory of this source tree.
57 *
58 * @license MIT
59 */var Dx=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,PO=/^[\\/]{2}/;function Y3(t,e){return e+t.replace(/\\/g,"/")}var kE="popstate";function ME(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function K3(t={}){function e(r,i){var h;let a=(h=i.state)==null?void 0:h.masked,{pathname:l,search:u,hash:d}=a||r.location;return Ub("",{pathname:l,search:u,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:kf(i)}return W3(e,n,null,t)}function vn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Rs(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Q3(){return Math.random().toString(36).substring(2,10)}function NE(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function Ub(t,e,n=null,r,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Vu(e):e,state:n,key:e&&e.key||r||Q3(),mask:i}}function kf({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Vu(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function W3(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,l=i.history,u="POP",d=null,h=p();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function p(){return(l.state||{idx:null}).idx}function m(){u="POP";let x=p(),S=x==null?null:x-h;h=x,d&&d({action:u,location:y.location,delta:S})}function g(x,S){u="PUSH";let R=ME(x)?x:Ub(y.location,x,S);h=p()+1;let O=NE(R,h),M=y.createHref(R.mask||R);try{l.pushState(O,"",M)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(M)}a&&d&&d({action:u,location:y.location,delta:1})}function b(x,S){u="REPLACE";let R=ME(x)?x:Ub(y.location,x,S);h=p();let O=NE(R,h),M=y.createHref(R.mask||R);l.replaceState(O,"",M),a&&d&&d({action:u,location:y.location,delta:0})}function E(x){return Z3(i,x)}let y={get action(){return u},get location(){return t(i,l)}
59,listen(x){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(kE,m),d=x,()=>{i.removeEventListener(kE,m),d=null}},createHref(x){return e(i,x)},createURL:E,encodeLocation(x){let S=E(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:b,go(x){return l.go(x)}};return y}function Z3(t,e,n=!1){let r="http://localhost";t&&(r=t.location.origin!=="null"?t.location.origin:t.location.href),vn(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:kf(e);return i=i.replace(/ $/,"%20"),!n&&PO.test(i)&&(i=r+i),new URL(i,r)}function jO(t,e,n="/"){return J3(t,e,n,!1)}function J3(t,e,n,r,i){let a=typeof e=="string"?Vu(e):e,l=Pa(a.pathname||"/",n);if(l==null)return null;let u=eD(t),d=null,h=dD(l);for(let p=0;d==null&&p<u.length;++p)d=uD(u[p],h,r);return d}function eD(t){let e=LO(t);return tD(e),e}function LO(t,e=[],n=[],r="",i=!1){let a=(l,u,d=i,h)=>{let p={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&d)return;vn(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let m=_s([r,p.relativePath]),g=n.concat(p);l.children&&l.children.length>0&&(vn(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),LO(l.children,e,g,m,d)),!(l.path==null&&!l.index)&&e.push({path:m,score:lD(m,l.index),routesMeta:g.map((b,E)=>{let[y,x]=HO(b.relativePath,b.caseSensitive,E===g.length-1);return{...b,matcher:y,compiledParams:x}})})};return t.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,u);else for(let h of zO(l.path))a(l,u,!0,h)}),e}function zO(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let l=zO(r.join("/")),u=[];return u.push(...l.map(d=>d===""?a:[a,d].join("/"))),i&&u.push(...l),u.map(d=>t.startsWith("/")&&d===""?"/":d)}function tD(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:cD(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var nD=/^:[\w-]+$/,rD=3,iD=2,sD=1,aD=10,oD=-2,DE=t=>t==="*";function lD(t,e){let n=t.split("/"),r=n.length;return n.some(DE)&&(r+=oD),e&&(r+=iD),n.filter(i=>!DE(i)).reduce((i,a)=>i+(nD.test(a)?rD:a===""?sD:aD),r)}function cD(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function uD(t,e,n=!1){let{routesMeta:r}=t,i={},a="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],h=u===r.length-1,p=a==="/"?e:e.slice(a.length)||"/",m={path:d.relativePath,caseSensitive:d.caseSensitive,end:h},g=d.matcher&&d.compiledParams?$O(m,p,d.matcher,d.compiledParams):Vm(m,p),b=d.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=Vm({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!g)return null;
59Object.assign(i,g.params),l.push({params:i,pathname:_s([a,g.pathname]),pathnameBase:pD(_s([a,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(a=_s([a,g.pathnameBase]))}return l}function Vm(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=HO(t.path,t.caseSensitive,t.end);return $O(t,e,n,r)}function $O(t,e,n,r){let i=e.match(n);if(!i)return null;let a=i[0],l=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((h,{paramName:p,isOptional:m},g)=>{if(p==="*"){let E=u[g]||"";l=a.slice(0,a.length-E.length).replace(/(.)\/+$/,"$1")}const b=u[g];return m&&!b?h[p]=void 0:h[p]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:l,pattern:t}}function HO(t,e=!1,n=!0){Rs(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d,h,p)=>{if(r.push({paramName:u,isOptional:d!=null}),d){let m=p.charAt(h+l.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function dD(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Rs(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Pa(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function fD(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Vu(t):t,a;return n?(n=BO(n),n.startsWith("/")?a=PE(n.substring(1),"/"):a=PE(n,e)):a=e,{pathname:a,search:mD(r),hash:gD(i)}}function PE(t,e){let n=qm(e).split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function P0(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` 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 hD(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Px(t){let e=hD(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function Mg(t,e,n,r=!1){let i;typeof t=="string"?i=Vu(t):(i={...t},vn(!i.pathname||!i.pathname.includes("?"),P0("?","pathname","search",i)),vn(!i.pathname||!i.pathname.includes("#"),P0("#","pathname","hash",i)),vn(!i.search||!i.search.includes("#"),P0("#","search","hash",i)));let a=t===""||i.pathname==="",l=a?"/":i.pathname,u;if(l==null)u=n;else{let m=e.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}u=m>=0?e[m]:"/"}let d=fD(i,u),h=l&&l!=="/"&&l.endsWith("/"),p=(a||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||p)&&(d.pathname+="/"),d}var BO=t=>t.replace(/[\\/]{2,}/g,"/"),_s=t=>BO(t.join("/")),qm=t=>t.replace(/\/+$/,""),pD=t=>qm(t).replace(/^\/*/,"/"),mD=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,gD=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,vD=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function yD(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function bD(t){let e=t.map(n=>n.route.path).filter(Boolean);return _s(e)||"/"}var FO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function UO(t,e){let n=t;if(typeof n!="string"||!Dx.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(FO)try{let a=new URL(window.location.href),l=PO.test(n)?new URL(Y3(n,a.protocol)):new URL(n),u=Pa(l.pathname,e);l.origin===a.origin&&u!=null?n=u+l.search+l.hash:i=!0}catch{Rs(!1,`<Link to="${n}">
59 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var IO=["POST","PUT","PATCH","DELETE"];new Set(IO);var xD=["GET",...IO];new Set(xD);var wD=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function SD(t){try{return wD.includes(new URL(t).protocol)}catch{return!1}}var qu=w.createContext(null);qu.displayName="DataRouter";var Ng=w.createContext(null);Ng.displayName="DataRouterState";var VO=w.createContext(!1);function _D(){return w.useContext(VO)}var qO=w.createContext({isTransitioning:!1});qO.displayName="ViewTransition";var ED=w.createContext(new Map);ED.displayName="Fetchers";var CD=w.createContext(null);CD.displayName="Await";var Pi=w.createContext(null);Pi.displayName="Navigation";var ih=w.createContext(null);ih.displayName="Location";var Ms=w.createContext({outlet:null,matches:[],isDataRoute:!1});Ms.displayName="Route";var jx=w.createContext(null);jx.displayName="RouteError";var GO="REACT_ROUTER_ERROR",RD="REDIRECT",TD="ROUTE_ERROR_RESPONSE";function OD(t){if(t.startsWith(`${GO}:${RD}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function AD(t){if(t.startsWith(`${GO}:${TD}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new vD(e.status,e.statusText,e.data)}catch{}}function kD(t,{relative:e}={}){vn(Gu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(Pi),{hash:i,pathname:a,search:l}=sh(t,{relative:e}),u=a;return n!=="/"&&(u=a==="/"?n:_s([n,a])),r.createHref({pathname:u,search:l,hash:i})}function Gu(){return w.useContext(ih)!=null}function Ns(){return vn(Gu(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(ih).location}var XO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function YO(t){w.useContext(Pi).static||w.useLayoutEffect(t)}function Lx(){let{isDataRoute:t}=w.useContext(Ms);return t?VD():MD()}function MD(){vn(Gu(),"useNavigate() may be used only in the context of a <Router> component.");let t=w.useContext(qu),{basename:e,navigator:n}=w.useContext(Pi),{matches:r}=w.useContext(Ms),{pathname:i}=Ns(),a=JSON.stringify(Px(r)),l=w.useRef(!1);return YO(()=>{l.current=!0}),w.useCallback((d,h={})=>
59{if(Rs(l.current,XO),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=Mg(d,JSON.parse(a),i,h.relative==="path");t==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:_s([e,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[e,n,a,i,t])}w.createContext(null);function ND(){let{matches:t}=w.useContext(Ms),e=t[t.length-1];return(e==null?void 0:e.params)??{}}function sh(t,{relative:e}={}){let{matches:n}=w.useContext(Ms),{pathname:r}=Ns(),i=JSON.stringify(Px(n));return w.useMemo(()=>Mg(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function DD(t,e){return KO(t,e)}function KO(t,e,n){var x;vn(Gu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=w.useContext(Pi),{matches:i}=w.useContext(Ms),a=i[i.length-1],l=a?a.params:{},u=a?a.pathname:"/",d=a?a.pathnameBase:"/",h=a&&a.route;{let S=h&&h.path||"";WO(u,!h||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
61Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let p=Ns(),m;if(e){let S=typeof e=="string"?Vu(e):e;vn(d==="/"||((x=S.pathname)==null?void 0:x.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${S.pathname}" was given in the \`location\` prop.`),m=S}else m=p;let g=m.pathname||"/",b=g;if(d!=="/"){let S=d.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(S.length).join("/")}let E=n&&n.state.matches.length?n.state.matches.map(S=>Object.assign(S,{route:n.manifest[S.route.id]||S.route})):jO(t,{pathname:b});Rs(h||E!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Rs(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=$D(E&&E.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:_s([d,r.encodeLocation?r.encodeLocation(S.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?d:_s([d,r.encodeLocation?r.encodeLocation(S.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),i,n);return e&&y?w.createElement(ih.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...m},navigationType:"POP"}},y):y}function PD(){let t=ID(),e=yD(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",t),l=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:a},"ErrorBoundary")," or"," ",w.createElement("code",{style:a},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),n?w.createElement("pre",{style:i},n):null,l)}var jD=w.createElement(PD,null),QO=class extends w.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=AD(t.digest);n&&(t=n)}let e=t!==void 0?w.createElement(Ms.Provider,{value:this.props.routeContext},w.createElement(jx.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?w.createElement(LD,{error:t},e):e}};QO.contextType=VO;var j0=new WeakMap;function LD({children:t,error:e}){let{basename:n}=w.useContext(Pi);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=OD(e.digest);if(r){let i=j0.get(e);if(i)throw i;let a=UO(r.location,n),l=a.absoluteURL||a.to;if(SD(l))throw new Error("Invalid redirect location");if(FO&&!j0.get(e))if(a.isExternal||r.reloadDocument)window.location.href=l;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw j0.set(e,u),u}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return t}function zD({routeContext:t,match:e,children:n}){let r=w.useContext(qu);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),w.createElement(Ms.Provider,{value:t},n)}function $D(t,e=[],n){let r=n==null?void 0:n.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let i=t,a=r==null?void 0:r.errors;if(a!=null){let p=i.findIndex(m=>m.route.id&&(a==null?void 0:a[m.route.id])!==void 0);vn(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,p+1))}let l=!1,u=-1;if(n&&r){l=r.renderFallback;for(let p=0;p<i.length;p++){let m=i[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=p),m.route.id){let{loaderData:g,errors:b}
61=r,E=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||E){n.isStatic&&(l=!0),u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}}let d=n==null?void 0:n.onError,h=r&&d?(p,m)=>{var g,b;d(p,{location:r.location,params:((b=(g=r.matches)==null?void 0:g[0])==null?void 0:b.params)??{},pattern:bD(r.matches),errorInfo:m})}:void 0;return i.reduceRight((p,m,g)=>{let b,E=!1,y=null,x=null;r&&(b=a&&m.route.id?a[m.route.id]:void 0,y=m.route.errorElement||jD,l&&(u<0&&g===0?(WO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,x=null):u===g&&(E=!0,x=m.route.hydrateFallbackElement||null)));let S=e.concat(i.slice(0,g+1)),R=()=>{let O;return b?O=y:E?O=x:m.route.Component?O=w.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=p,w.createElement(zD,{match:m,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:O})};return r&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?w.createElement(QO,{location:r.location,revalidation:r.revalidation,component:y,error:b,children:R(),routeContext:{outlet:null,matches:S,isDataRoute:!0},onError:h}):R()},null)}function zx(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function HD(t){let e=w.useContext(qu);return vn(e,zx(t)),e}function BD(t){let e=w.useContext(Ng);return vn(e,zx(t)),e}function FD(t){let e=w.useContext(Ms);return vn(e,zx(t)),e}function $x(t){let e=FD(t),n=e.matches[e.matches.length-1];return vn(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function UD(){return $x("useRouteId")}function ID(){var r;let t=w.useContext(jx),e=BD("useRouteError"),n=$x("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function VD(){let{router:t}=HD("useNavigate"),e=$x("useNavigate"),n=w.useRef(!1);return YO(()=>{n.current=!0}),w.useCallback(async(i,a={})=>{Rs(n.current,XO),n.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:e,...a}))},[t,e])}var jE={};function WO(t,e,n){!e&&!jE[t]&&(jE[t]=!0,Rs(!1,n))}w.memo(qD);function qD({routes:t,manifest:e,future:n,state:r,isStatic:i,onError:a}){return KO(t,void 0,{manifest:e,state:r,isStatic:i,onError:a})}function yee({to:t,replace:e,state:n,relative:r}){vn(Gu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=w.useContext(Pi);Rs(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=w.useContext(Ms),{pathname:l}=Ns(),u=Lx(),d=Mg(t,Px(a),l,r==="path"),h=JSON.stringify(d);return w.useEffect(()=>{u(JSON.parse(h),{replace:e,state:n,relative:r})},[u,h,r,e,n]),null}function GD(t){vn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function XD({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,useTransitions:l}){vn(!Gu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=t.replace(/^\/*/,"/"),d=w.useMemo(()=>({basename:u,navigator:i,static:a,useTransitions:l,future:{}}),[u,i,a,l]);typeof n=="string"&&(n=Vu(n));let{pathname:h="/",search:p="",hash:m="",state:g=null,key:b="default",mask:E}=n,y=w.useMemo(()=>{let x=Pa(h,u);return x==null?null:{location:{pathname:x,search:p,hash:m,state:g,key:b,mask:E},navigationType:r}},[u,h,p,m,g,b,r,E]);return Rs(y!=null,`<Router basename="${u}"> is not able to match the URL "${h}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:w.createElement(Pi.Provider,{value:d},w.createElement(ih.Provider,{children:e,value:y}))}function bee({children:t,location:e}){return DD(Ib(t),e)}function Ib(t,e=[]){let n=[];return w.Children.forEach(t,(r,i)=>{if(!w.isValidElement(r))return;let a=[...e,i];if(r.type===w.Fragment){n.push.apply(n,Ib(r.props.children,a));return}vn(r.type===GD,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),vn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,
61shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ib(r.props.children,a)),n.push(l)}),n}var gm="get",vm="application/x-www-form-urlencoded";function Dg(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function YD(t){return Dg(t)&&t.tagName.toLowerCase()==="button"}function KD(t){return Dg(t)&&t.tagName.toLowerCase()==="form"}function QD(t){return Dg(t)&&t.tagName.toLowerCase()==="input"}function WD(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ZD(t,e){return t.button===0&&(!e||e==="_self")&&!WD(t)}var qp=null;function JD(){if(qp===null)try{new FormData(document.createElement("form"),0),qp=!1}catch{qp=!0}return qp}var e6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function L0(t){return t!=null&&!e6.has(t)?(Rs(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vm}"`),null):t}function t6(t,e){let n,r,i,a,l;if(KD(t)){let u=t.getAttribute("action");r=u?Pa(u,e):null,n=t.getAttribute("method")||gm,i=L0(t.getAttribute("enctype"))||vm,a=new FormData(t)}else if(YD(t)||QD(t)&&(t.type==="submit"||t.type==="image")){let u=t.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=t.getAttribute("formaction")||u.getAttribute("action");if(r=d?Pa(d,e):null,n=t.getAttribute("formmethod")||u.getAttribute("method")||gm,i=L0(t.getAttribute("formenctype"))||L0(u.getAttribute("enctype"))||vm,a=new FormData(u,t),!JD()){let{name:h,type:p,value:m}=t;if(p==="image"){let g=h?`${h}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else h&&a.append(h,m)}}else{if(Dg(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=gm,r=null,i=vm,l=t}return a&&i==="text/plain"&&(l=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Hx(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function ZO(t,e,n,r){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:e&&Pa(i.pathname,e)==="/"?i.pathname=`${qm(e)}/_root.${r}`:i.pathname=`${qm(i.pathname)}.${r}`,i}async function n6(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r6(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function i6(t,e,n){let r=await Promise.all(t.map(async i=>{let a=e.routes[i.route.id];if(a){let l=await n6(a,n);return l.links?l.links():[]}return[]}));return l6(r.flat(1).filter(r6).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function LE(t,e,n,r,i,a){let l=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,u=(d,h)=>{var p;return n[h].pathname!==d.pathname||((p=n[h].route.path)==null?void 0:p.endsWith("*"))&&n[h].params["*"]!==d.params["*"]};return a==="assets"?e.filter((d,h)=>l(d,h)||u(d,h)):a==="data"?e.filter((d,h)=>{var m;let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,h)||u(d,h))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(t,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function s6(t,e,{includeHydrateFallback:n}={}){return a6(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(
61a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function a6(t){return[...new Set(t)]}function o6(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function l6(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let a=JSON.stringify(o6(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function Bx(){let t=w.useContext(qu);return Hx(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function c6(){let t=w.useContext(Ng);return Hx(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Fx=w.createContext(void 0);Fx.displayName="FrameworkContext";function Pg(){let t=w.useContext(Fx);return Hx(t,"You must render this element inside a <HydratedRouter> element"),t}function u6(t,e){let n=w.useContext(Fx),[r,i]=w.useState(!1),[a,l]=w.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:h,onMouseLeave:p,onTouchStart:m}=e,g=w.useRef(null);w.useEffect(()=>{if(t==="render"&&l(!0),t==="viewport"){let y=S=>{S.forEach(R=>{l(R.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return g.current&&x.observe(g.current),()=>{x.disconnect()}}},[t]),w.useEffect(()=>{if(r){let y=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(y)}}},[r]);let b=()=>{i(!0)},E=()=>{i(!1),l(!1)};return n?t!=="intent"?[a,g,{}]:[a,g,{onFocus:lf(u,b),onBlur:lf(d,E),onMouseEnter:lf(h,b),onMouseLeave:lf(p,E),onTouchStart:lf(m,b)}]:[!1,g,{}]}function lf(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function d6({page:t,...e}){let n=_D(),{nonce:r}=Pg(),{router:i}=Bx(),a=w.useMemo(()=>jO(i.routes,t,i.basename),[i.routes,t,i.basename]);return a?(e.nonce==null&&r&&(e={...e,nonce:r}),n?w.createElement(h6,{page:t,matches:a,...e}):w.createElement(p6,{page:t,matches:a,...e})):null}function f6(t){let{manifest:e,routeModules:n}=Pg(),[r,i]=w.useState([]);return w.useEffect(()=>{let a=!1;return i6(t,e,n).then(l=>{a||i(l)}),()=>{a=!0}},[t,e,n]),r}function h6({page:t,matches:e,...n}){let r=Ns(),{future:i}=Pg(),{basename:a}=Bx(),l=w.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let u=ZO(t,a,i.v8_trailingSlashAwareDataRequests,"rsc"),d=!1,h=[];for(let p of e)typeof p.route.shouldRevalidate=="function"?d=!0:h.push(p.route.id);return d&&h.length>0&&u.searchParams.set("_routes",h.join(",")),[u.pathname+u.search]},[a,i.v8_trailingSlashAwareDataRequests,t,r,e]);return w.createElement(w.Fragment,null,l.map(u=>w.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...n})))}function p6({page:t,matches:e,...n}){let r=Ns(),{future:i,manifest:a,routeModules:l}=Pg(),{basename:u}=Bx(),{loaderData:d,matches:h}=c6(),p=w.useMemo(()=>LE(t,e,h,a,r,"data"),[t,e,h,a,r]),m=w.useMemo(()=>LE(t,e,h,a,r,"assets"),[t,e,h,a,r]),g=w.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let y=new Set,x=!1;if(e.forEach(R=>{var M;let O=a.routes[R.route.id];!O||!O.hasLoader||(!p.some(k=>k.route.id===R.route.id)&&R.route.id in d&&((M=l[R.route.id])!=null&&M.shouldRevalidate)||O.hasClientLoader?x=!0:y.add(R.route.id))}),y.size===0)return[];let S=ZO(t,u,i.v8_trailingSlashAwareDataRequests,"data");return x&&y.size>0&&S.searchParams.set("_routes",e.filter(R=>y.has(R.route.id)).map(R=>R.route.id).join(",")),[S.pathname+S.search]},[u,i.v8_trailingSlashAwareDataRequests,d,r,a,p,e,t,l]),b=w.useMemo(()=>s6(m,a),[m,a]),E=f6(m);return w.createElement(w.Fragment,null,g.map(y=>w.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),b.map(y=>w.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),E.map(({key:y,link:x})=>w.createElement("link",{key:y,nonce:n.nonce,...x,crossOrigin:x.crossOrigin??n.crossOrigin})))}function m6(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var g6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g6&&(window.__reactRouterVersion="7.18.2")}catch{}function xee({basename:t,children:e,useTransitions:n,window:r}){let i=w.useRef();i.current==null&&(i.current=K3({window:r,v5Compat:!0}));let a=i.current,[l,u]=w.useState({action:a.action,location:a.location}),d=w.useCallback(h=>{n===!1?u(h):w.startTransition(()=>u(h))},[n]);return w.useLayoutEffect(()=>a.listen(d),[a,d]),w.createElement(XD,{basename:t,children:e,location:l.location,navigationType:l.action,navigator:a,useTransitions:n})}var JO=w.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:l,mask:u,state:d,target:h,to:p,preventScrollReset:m,viewTransition:g,defaultShouldRevalidate:b,...E},y){let{basename:x,navigator:S,useTransitions:R}=w.useContext(Pi),O=typeof p=="string"&&Dx.test(p),M=UO(p,x);p=M.to;let k=kD(p,{relative:i}),P=Ns(),j=null;if(u){let Q=Mg(u,[],P.mask?P.mask.pathname:"/",!0);x!=="/"&&(Q.pathname=Q.pathname==="/"?x:_s([x,Q.pathname])),j=S.createHref(Q)}let[H,I,A]=u6(r,E),$=x6(p,{replace:l,mask:u,state:d,target:h,preventScrollReset:m,relative:i,viewTransition:g,defaultShouldRevalidate:b,useTransitions:R});function L(Q){e&&e(Q),Q.defaultPrevented||$(Q)}let U=!(M.isExternal||a),V=w.createElement("a",{...E,...A,href:(U?j:void 0)||M.absoluteURL||k,onClick:U?L:e,ref:m6(y,I),target:h,"data-discover":!O&&n==="render"?"true":void 0});return H&&!O?w.createElement(w.Fragment,null,V,w.createElement(d6,{page:k})):V});JO.displayName="Link";var v6=w.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:l,viewTransition:u,children:d,...h},p){let m=sh(l,{relative:h.relative}),g=Ns(),b=w.useContext(Ng),{navigator:E,basename:y}
61=w.useContext(Pi),x=b!=null&&C6(m)&&u===!0,S=E.encodeLocation?E.encodeLocation(m).pathname:m.pathname,R=g.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(R=R.toLowerCase(),O=O?O.toLowerCase():null,S=S.toLowerCase()),O&&y&&(O=Pa(O,y)||O);const M=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let k=R===S||!i&&R.startsWith(S)&&R.charAt(M)==="/",P=O!=null&&(O===S||!i&&O.startsWith(S)&&O.charAt(S.length)==="/"),j={isActive:k,isPending:P,isTransitioning:x},H=k?e:void 0,I;typeof r=="function"?I=r(j):I=[r,k?"active":null,P?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let A=typeof a=="function"?a(j):a;return w.createElement(JO,{...h,"aria-current":H,className:I,ref:p,style:A,to:l,viewTransition:u},typeof d=="function"?d(j):d)});v6.displayName="NavLink";var y6=w.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:a,method:l=gm,action:u,onSubmit:d,relative:h,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g,...b},E)=>{let{useTransitions:y}=w.useContext(Pi),x=_6(),S=E6(u,{relative:h}),R=l.toLowerCase()==="get"?"get":"post",O=typeof u=="string"&&Dx.test(u),M=k=>{if(d&&d(k),k.defaultPrevented)return;k.preventDefault();let P=k.nativeEvent.submitter,j=(P==null?void 0:P.getAttribute("formmethod"))||l,H=()=>x(P||k.currentTarget,{fetcherKey:e,method:j,navigate:n,replace:i,state:a,relative:h,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g});y&&n!==!1?w.startTransition(()=>H()):H()};return w.createElement("form",{ref:E,method:R,action:S,onSubmit:r?d:M,...b,"data-discover":!O&&t==="render"?"true":void 0})});y6.displayName="Form";function b6(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function eA(t){let e=w.useContext(qu);return vn(e,b6(t)),e}function x6(t,{target:e,replace:n,mask:r,state:i,preventScrollReset:a,relative:l,viewTransition:u,defaultShouldRevalidate:d,useTransitions:h}={}){let p=Lx(),m=Ns(),g=sh(t,{relative:l});return w.useCallback(b=>{if(ZD(b,e)){b.preventDefault();let E=n!==void 0?n:kf(m)===kf(g),y=()=>p(t,{replace:E,mask:r,state:i,preventScrollReset:a,relative:l,viewTransition:u,defaultShouldRevalidate:d});h?w.startTransition(()=>y()):y()}},[m,p,g,n,r,i,e,t,a,l,u,d,h])}var w6=0,S6=()=>`__${String(++w6)}__`;function _6(){let{router:t}=eA("useSubmit"),{basename:e}=w.useContext(Pi),n=UD(),r=t.fetch,i=t.navigate;return w.useCallback(async(a,l={})=>{let{action:u,method:d,encType:h,formData:p,body:m}=t6(a,e);if(l.navigate===!1){let g=l.fetcherKey||S6();await r(g,n,l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:m,formMethod:l.method||d,formEncType:l.encType||h,flushSync:l.flushSync})}else await i(l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:m,formMethod:l.method||d,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,e,n])}function E6(t,{relative:e}={}){let{basename:n}=w.useContext(Pi),r=w.useContext(Ms);vn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...sh(t||".",{relative:e})},l=Ns();if(t==null){a.search=l.search;let u=new URLSearchParams(a.search),d=u.getAll("index");if(d.some(p=>p==="")){u.delete("index"),d.filter(m=>m).forEach(m=>u.append("index",m));let p=u.toString();a.search=p?`?${p}`:""}}return(!t||t===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:_s([n,a.pathname])),kf(a)}function C6(t,{relative:e}={}){let n=w.useContext(qO);vn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=eA("useViewTransitionState"),i=sh(t,{relative:e});if(!n.isTransitioning)return!1;let a=Pa(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Pa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vm(i.pathname,l)!=null||Vm(i.pathname,a)!=null}function tA(t,e){return function(){return t.apply(e,arguments)}}const{toString:R6}=Object.prototype,{getPrototypeOf:Mu}=Object,{iterator:ah,toStringTag:nA}=Symbol,Gm=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Mf=(t,e)=>{let n=t;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Gm(n,e))return!0;n=Mu(n)}return!1},T6=(t,e)=>t!=null&&Mf(t,e)?t[e]:void 0,Ux=(t=>e=>
vendor: 15,884 bytes, lines 61-63
61{const n=R6.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rs=t=>(t=t.toLowerCase(),e=>Ux(e)===t),jg=t=>e=>typeof e===t,{isArray:Vl}=Array,ql=jg("undefined");function Xu(t){return t!==null&&!ql(t)&&t.constructor!==null&&!ql(t.constructor)&&oi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const rA=rs("ArrayBuffer");function O6(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&rA(t.buffer),e}const A6=jg("string"),oi=jg("function"),iA=jg("number"),Yu=t=>t!==null&&typeof t=="object",k6=t=>t===!0||t===!1,ym=t=>{if(!Yu(t))return!1;const e=Mu(t);return(e===null||e===Object.prototype||Mu(e)===null)&&!Mf(t,nA)&&!Mf(t,ah)},M6=t=>{if(!Yu(t)||Xu(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},N6=rs("Date"),D6=rs("File"),P6=t=>!!(t&&typeof t.uri<"u"),j6=t=>t&&typeof t.getParts<"u",L6=rs("Blob"),z6=rs("FileList"),$6=rs("Set"),H6=t=>Yu(t)&&oi(t.pipe);function B6(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const zE=B6(),$E=typeof zE.FormData<"u"?zE.FormData:void 0,F6=t=>{if(!t)return!1;if($E&&t instanceof $E)return!0;const e=Mu(t);if(!e||e===Object.prototype||!oi(t.append))return!1;const n=Ux(t);return n==="formdata"||n==="object"&&oi(t.toString)&&t.toString()==="[object FormData]"},U6=rs("URLSearchParams"),[I6,V6,q6,G6]=["ReadableStream","Request","Response","Headers"].map(rs),X6=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oh(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Vl(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(Xu(t))return;const a=n?Object.getOwnPropertyNames(t):Object.keys(t),l=a.length;let u;for(r=0;r<l;r++)u=a[r],e.call(null,t[u],u,t)}}function sA(t,e){if(Xu(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const El=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,aA=t=>!ql(t)&&t!==El;function Vb(...t){const{caseless:e,skipUndefined:n}=aA(this)&&this||{},r={},i=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=e&&typeof l=="string"&&sA(r,l)||l,d=Gm(r,u)?r[u]:void 0;ym(d)&&ym(a)?r[u]=Vb(d,a):ym(a)?r[u]=Vb({},a):Vl(a)?r[u]=a.slice():(!n||!ql(a))&&(r[u]=a)};for(let a=0,l=t.length;a<l;a++){const u=t[a];if(!u||Xu(u)||(oh(u,i),typeof u!="object"||Vl(u)))continue;const d=Object.getOwnPropertySymbols(u);for(let h=0;h<d.length;h++){const p=d[h];sP.call(u,p)&&i(u[p],p)}}return r}const Y6=(t,e,n,{allOwnKeys:r}={})=>(oh(e,(i,a)=>{n&&oi(i)?Object.defineProperty(t,a,{__proto__:null,value:tA(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),K6=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Q6=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},W6=(t,e,n,r)=>{let i,a,l;const u={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)l=i[a],(!r||r(l,t,e))&&!u[l]&&(e[l]=t[l],u[l]=!0);t=n!==!1&&Mu(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Z6=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},J6=t=>{if(!t)return null;if(Vl(t))return t;let e=t.length;if(!iA(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},eP=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Mu(Uint8Array)),tP=(t,e)=>{const r=(t&&t[ah]).call(t);let i;for(;(i=r.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},nP=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rP=rs("HTMLFormElement"),iP=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:sP}=Object.prototype,aP=rs("RegExp"),oA=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};oh(n,(i,a)=>{let l;(l=e(i,a,t))!==!1&&(r[a]=l||i)}),Object.defineProperties(t,r)},oP=t=>{oA(t,(e,n)=>{if(oi(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(oi(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lP=(t,e)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Vl(t)?r(t):r(String(t).split(e)),n},cP=()=>{},uP=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function dP(t){return!!(t&&oi(t.append)&&t[nA]==="FormData"&&t[ah])}const fP=t=>{const e=new WeakSet,n=r=>{if(Yu(r)){if(e.has(r))return;if(Xu(r))return r;if(!("toJSON"in r)){e.add(r);let i;if($6(r)){i=[];for(const a of r){const l=n(a);!ql(l)&&i.push(l)}}else i=Vl(r)?[]:{},oh(r,(a,l)=>{const u=n(a);!ql(u)&&(i[l]=u)});return e.delete(r),i}}return r};return n(t)},hP=rs("AsyncFunction"),pP=t=>t&&(Yu(t)||oi(t))&&oi(t.then)&&oi(t.catch),lA=((t,e)=>t?setImmediate:e?((n,r)=>(El.addEventListener("message",({source:i,data:a})=>{i===El&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),El.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",oi(El.postMessage)),mP=typeof queueMicrotask<"u"?queueMicrotask.bind(El):typeof process<"u"&&process.nextTick||lA,cA=t=>t!=null&&oi(t[ah]),gP=t=>t!=null&&Mf(t,ah)&&cA(t),ne={isArray:Vl,isArrayBuffer:rA,isBuffer:Xu,isFormData:F6,isArrayBufferView:O6,isString:A6,isNumber:iA,isBoolean:k6,isObject:Yu,isPlainObject:ym,isEmptyObject:M6,isReadableStream:I6,isRequest:V6,isResponse:q6,isHeaders:G6,isUndefined:ql,isDate:N6,isFile:D6,isReactNativeBlob:P6,isReactNative:j6,isBlob:L6,isRegExp:aP,isFunction:oi,isStream:H6,isURLSearchParams:U6,isTypedArray:eP,isFileList:z6,forEach:oh,merge:Vb,extend:Y6,trim:X6,stripBOM:K6,inherits:Q6,toFlatObject:W6,kindOf:Ux,kindOfTest:rs,endsWith:Z6,toArray:J6,forEachEntry:tP,matchAll:nP,isHTMLForm:rP,hasOwnProperty:Gm,hasOwnProp:Gm,hasOwnInPrototypeChain:Mf,getSafeProp:T6,reduceDescriptors:oA,freezeMethods:oP,toObjectSet:lP,toCamelCase:iP,noop:cP,toFiniteNumber:uP,findKey:sA,global:El,isContextDefined:aA,isSpecCompliantForm:dP,toJSONObject:fP,isAsyncFn:hP,isThenable:pP,setImmediate:lA,asap:mP,isIterable:cA,isSafeIterable:gP},vP=ne.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"]),yP=t=>{const e={};let n,r,i;return t&&t.split(`
62`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim();const u=ne.hasOwnProp(e,n);!n||u&&ne.hasOwnProp(vP,n)||(n==="set-cookie"?u?e[n].push(r):e[n]=[r]:e[n]=u?e[n]+", "+r:r)}),e};function bP(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const xP=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),wP=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ix(t,e){return ne.isArray(t)?t.map(n=>Ix(n,e)):bP(String(t).replace(e,""))}const SP=t=>Ix(t,xP),_P=t=>Ix(t,wP);function uA(t){const e=Object.create(null);return ne.forEach(t.toJSON(),(n,r)=>{e[r]=_P(n)}),e}const HE=Symbol("internals");function cf(t){return t&&String(t).trim().toLowerCase()}function bm(t){return t===!1||t==null?t:ne.isArray(t)?t.map(bm):SP(String(t))}function EP(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const CP=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function z0(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}function RP(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let r=1;r<e;r++){const i=t.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=e))return t;n+=t[r]}return n}function TP(t){const e=Object.create(null),n=String(t);let r=0,i=!1,a=!1;function l(u){const d=z0(n.slice(r,u)),h=d.indexOf("=");if(h<1)return;const p=z0(d.slice(0,h));if(!CP.test(p))return;const m=p.toLowerCase();if(m==="__proto__"||m==="constructor"||m==="prototype")return;const g=z0(d.slice(h+1));e[m]=RP(g)}for(let u=0;u<n.length;u++){const d=n.charCodeAt(u);i?a?a=!1:d===92?a=!0:d===34&&(i=!1):d===34?i=!0:(d===44||d===59)&&(l(u),r=u+1)}return l(n.length),e}const OP=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function $0(t,e,n,r,i){if(ne.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!ne.isString(e)){if(ne.isString(r))return e.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(e)}}function AP(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function kP(t,e){const n=ne.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{__proto__:null,value:function(i,a,l){return this[r].call(this,e,i,a,l)},configurable:!0})})}let Dr=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function a(u,d,h){const p=cf(d);if(!p)return;const m=ne.findKey(i,p);(!m||i[m]===void 0||h===!0||h===void 0&&i[m]!==!1)&&(i[m||d]=bm(u))}const l=(u,d)=>ne.forEach(u,(h,p)=>a(h,p,d));if(ne.isPlainObject(e)||e instanceof this.constructor)l(e,n);else if(ne.isString(e)&&(e=e.trim())&&!OP(e))l(yP(e),n);else if(ne.isObject(e)&&ne.isSafeIterable(e)){let u=Object.create(null),d,h;for(const p of e){if(!ne.isArray(p))throw new TypeError("Object iterator must return a key-value pair");h=p[0],ne.hasOwnProp(u,h)?(d=u[h],u[h]=ne.isArray(d)?[...d,p[1]]:[d,p[1]]):u[h]=p[1]}l(u,n)}else e!=null&&a(n,e,r);return this}get(e,n){if(e=cf(e),e){const r=ne.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return EP(i);if(ne.isFunction(n))return n.call(this,i,r);if(ne.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=cf(e),e){const r=ne.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||$0(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function a(l){if(l=cf(l),l){const u=ne.findKey(r,l);u&&(!n||$0(r,r[u],u,n))&&(delete r[u],i=!0)}}return ne.isArray(e)?e.forEach(a):a(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!e||$0(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const n=this,r={};return ne.forEach(this,(i,a)=>{const l=ne.findKey(r,a);if(l){n[l]=bm(i),delete n[a];return}const u=e?AP(a):String(a).trim();u!==a&&delete n[a],n[u]=bm(i),r[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return ne.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
63`)}getSetCookie(){const e=this.get("set-cookie");return ne.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return TP(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[HE]=this[HE]={accessors:{}}).accessors,i=this.prototype;function a(l){const u=cf(l);r[u]||(kP(i,l),r[u]=!0)}return ne.isArray(e)?e.forEach(a):a(e),this}};Dr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Dr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});ne.freezeMethods(Dr);const Xm="[REDACTED ****]";function MP(t){if(ne.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(ne.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function NP(t,e){const n=new Set(e.map(a=>String(a).toLowerCase())),r=[],i=a=>{if(a===null||typeof a!="object"||ne.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof Dr&&(a=a.toJSON()),r.push(a);let l;if(ne.isArray(a))l=[],a.forEach((u,d)=>{const h=i(u);ne.isUndefined(h)||(l[d]=h)});else{if(!ne.isPlainObject(a)&&MP(a))return r.pop(),a;l=Object.create(null);for(const[u,d]of Object.entries(a)){const h=n.has(u.toLowerCase())?Xm:i(d);ne.isUndefined(h)||(l[u]=h)}}return r.pop(),l};return i(t)}function BE(t){try{return String(t)}catch{return""}}function DP(t){return t.errors.map(n=>{try{return n&&n.message?BE(n.message):BE(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}let Ie=class dA extends Error{static from(e,n,r,i,a,l){let u=e.message;!u&&ne.isArray(e.errors)&&e.errors.length&&(u=DP(e));const d=new dA(u,n||e.code,r,i,a);return Object.defineProperty(d,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),l&&Object.assign(d,l),d}constructor(e,n,r,i,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,n=e&&ne.hasOwnProp(e,"redact")?e.redact:void 0,r=ne.isArray(n)&&n.length>0?NP(e,n):ne.toJSONObject(e);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:r,code:this.code,status:this.status}}};Ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ie.ERR_BAD_OPTION="ERR_BAD_OPTION";Ie.ECONNABORTED="ECONNABORTED";Ie.ETIMEDOUT="ETIMEDOUT";Ie.ECONNREFUSED="ECONNREFUSED";Ie.ERR_NETWORK="ERR_NETWORK";Ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ie.ERR_DEPRECATED="ERR_DEPRECATED";Ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ie.ERR_CANCELED="ERR_CANCELED";Ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ie.ERR_INVALID_URL="ERR_INVALID_URL";Ie.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const PP=null,fA=100;function qb(t){return ne.isPlainObject(t)||ne.isArray(t)}function hA(t){return ne.endsWith(t,"[]")?t.slice(0,-2):t}function H0(t,e,n){return t?t.concat(e).map(function(i,a){return i=hA(i),!n&&a?"["+i+"]":i}).join(n?".":""):e}function jP(t){return ne.isArray(t)&&!t.some(qb)}const LP=ne.toFlatObject(ne,{},null,function(e){return/^is[A-Z]/.test(e)});function Lg(t,e,n){if(!ne.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,O){return!ne.isUndefined(O[R])});const r=n.metaTokens,i=n.visitor||E,a=n.dots,l=n.indexes,u=n.Blob||typeof Blob<"u"&&Blob,d=n.maxDepth===void 0?fA:n.maxDepth,h=u&&ne.isSpecCompliantForm(e),p=[];if(!ne.isFunction(i))throw new TypeError("visitor must be a function");function m(S){if(S===null)return"";if(ne.isDate(S))return S.toISOString();if(ne.isBoolean(S))return S.toString();if(!h&&ne.isBlob(S))throw new Ie("Blob is not supported. Use a Buffer instead.");if(ne.isArrayBuffer(S)||ne.isTypedArray(S)){if(h&&typeof u=="function")return new u([S]);throw new Ie("Blob is not supported. Use a Buffer instead.",Ie.ERR_NOT_SUPPORT)}return S}function g(S){if(S>d)throw new Ie("Object is too deeply nested ("+S+" levels). Max depth: "+d,Ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(S,R){if(d===1/0)return JSON.stringify(S);const O=[];return JSON.stringify(S,function(k,P){if(!ne.isObject(P))return P;for(;O.length&&O[O.length-1]!==this;)O.pop();
vendor: 1,735 bytes, line 63
63return O.push(P),g(R+O.length-1),P})}function E(S,R,O){let M=S;if(ne.isReactNative(e)&&ne.isReactNativeBlob(S))return e.append(H0(O,R,a),m(S)),!1;if(S&&!O&&typeof S=="object"){if(ne.endsWith(R,"{}"))R=r?R:R.slice(0,-2),S=b(S,1);else if(ne.isArray(S)&&jP(S)||(ne.isFileList(S)||ne.endsWith(R,"[]"))&&(M=ne.toArray(S)))return R=hA(R),M.forEach(function(P,j){!(ne.isUndefined(P)||P===null)&&e.append(l===!0?H0([R],j,a):l===null?R:R+"[]",m(P))}),!1}return qb(S)?!0:(e.append(H0(O,R,a),m(S)),!1)}const y=Object.assign(LP,{defaultVisitor:E,convertValue:m,isVisitable:qb});function x(S,R,O=0){if(!ne.isUndefined(S)){if(g(O),p.indexOf(S)!==-1)throw new Error("Circular reference detected in "+R.join("."));p.push(S),ne.forEach(S,function(k,P){(!(ne.isUndefined(k)||k===null)&&i.call(e,k,ne.isString(P)?P.trim():P,R,y))===!0&&x(k,R?R.concat(P):[P],O+1)}),p.pop()}}if(!ne.isObject(t))throw new TypeError("data must be an object");return x(t),e}function FE(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function Vx(t,e){this._pairs=[],t&&Lg(t,this,e)}const pA=Vx.prototype;pA.append=function(e,n){this._pairs.push([e,n])};pA.toString=function(e){const n=e?r=>e.call(this,r,FE):FE;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function zP(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mA(t,e,n){if(!e)return t;t=t||"";const r=ne.isFunction(n)?{serialize:n}:n,i=ne.getSafeProp(r,"encode")||zP,a=ne.getSafeProp(r,"serialize");let l;if(a?l=a(e,r):l=ne.isURLSearchParams(e)?e.toString():new Vx(e,r).toString(i),l){const u=t.indexOf("#");
vendor: 3,189 bytes, line 63
63u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class UE{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ne.forEach(this.handlers,function(r){r!==null&&e(r)})}}const qx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},$P=typeof URLSearchParams<"u"?URLSearchParams:Vx,HP=typeof FormData<"u"?FormData:null,BP=typeof Blob<"u"?Blob:null,FP={isBrowser:!0,classes:{URLSearchParams:$P,FormData:HP,Blob:BP},protocols:["http","https","file","blob","url","data"]},Gx=typeof window<"u"&&typeof document<"u",Gb=typeof navigator=="object"&&navigator||void 0,UP=Gx&&(!Gb||["ReactNative","NativeScript","NS"].indexOf(Gb.product)<0),IP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",VP=Gx&&window.location.href||"http://localhost",qP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gx,hasStandardBrowserEnv:UP,hasStandardBrowserWebWorkerEnv:IP,navigator:Gb,origin:VP},Symbol.toStringTag,{value:"Module"})),br={...qP,...FP};function GP(t,e){return Lg(t,new br.classes.URLSearchParams,{visitor:function(n,r,i,a){return br.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}const IE=fA;function gA(t){if(t>IE)throw new Ie("FormData field is too deeply nested ("+t+" levels). Max depth: "+IE,Ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function XP(t){const e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(t))!==null;)gA(e.length),e.push(r[0]==="[]"?"":r[1]||r[0]);return e}function YP(t){const e={},n=Object.keys(t);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],e[a]=t[a];return e}function vA(t){function e(n,r,i,a){gA(a);let l=n[a++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),d=a>=n.length;return l=!l&&ne.isArray(i)?i.length:l,d?(ne.hasOwnProp(i,l)?i[l]=ne.isArray(i[l])?i[l].concat(r):[i[l],r]:i[l]=r,!u):((!ne.hasOwnProp(i,l)||!ne.isObject(i[l]))&&(i[l]=[]),e(n,r,i[l],a)&&ne.isArray(i[l])&&(i[l]=YP(i[l])),!u)}if(ne.isFormData(t)&&ne.isFunction(t.entries)){const n={};return ne.forEachEntry(t,(r,i)=>{e(XP(r),i,n,0)}),n}return null}const Uc=(t,e)=>t!=null&&ne.hasOwnProp(t,e)?t[e]:void 0;function KP(t,e,n){if(ne.isString(t))try{return(e||JSON.parse)(t),ne.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const lh={transitional:qx,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ne.isObject(e);if(a&&ne.isHTMLForm(e)&&(e=new FormData(e)),ne.isFormData(e))return i?JSON.stringify(vA(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e)||ne.isReadableStream(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;
vendor: 22,474 bytes, lines 63-69
63if(a){const d=Uc(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return GP(e,d).toString();if((u=ne.isFileList(e))||r.indexOf("multipart/form-data")>-1){const h=Uc(this,"env"),p=h&&h.FormData;return Lg(u?{"files[]":e}:e,p&&new p,d)}}return a||i?(n.setContentType("application/json",!1),KP(e)):e}],transformResponse:[function(e){const n=Uc(this,"transitional")||lh.transitional,r=n&&n.forcedJSONParsing,i=Uc(this,"responseType"),a=i==="json";if(ne.isResponse(e)||ne.isReadableStream(e))return e;if(e&&ne.isString(e)&&(r&&!i||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e,Uc(this,"parseReviver"))}catch(d){if(u)throw d.name==="SyntaxError"?Ie.from(d,Ie.ERR_BAD_RESPONSE,this,null,Uc(this,"response")):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:br.classes.FormData,Blob:br.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch","query"],t=>{lh.headers[t]={}});function B0(t,e){const n=this||lh,r=e||n,i=Dr.from(r.headers);let a=r.data;return ne.forEach(t,function(u){a=u.call(n,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function yA(t){return!!(t&&t.__CANCEL__)}let ch=class extends Ie{constructor(e,n,r){super(e??"canceled",Ie.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function bA(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Ie("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ie.ERR_BAD_REQUEST:Ie.ERR_BAD_RESPONSE,n.config,n.request,n))}function QP(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function WP(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,a=0,l;return e=e!==void 0?e:1e3,function(d){const h=Date.now(),p=r[a];l||(l=h),n[i]=d,r[i]=h;let m=a,g=0;for(;m!==i;)g+=n[m++],m=m%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),h-l<e)return;const b=p&&h-p;return b?Math.round(g*1e3/b):void 0}}function ZP(t,e){let n=0,r=1e3/e,i,a;const l=(h,p=Date.now())=>{n=p,i=null,a&&(clearTimeout(a),a=null),t(...h)};return[(...h)=>{const p=Date.now(),m=p-n;m>=r?l(h,p):(i=h,a||(a=setTimeout(()=>{a=null,l(i)},r-m)))},()=>i&&l(i)]}const Ym=(t,e,n=3)=>{let r=0;const i=WP(50,250);return ZP(a=>{if(!a||typeof a.loaded!="number")return;const l=a.loaded,u=a.lengthComputable?a.total:void 0,d=Math.max(0,u!=null?Math.min(l,u):l),h=Math.max(0,d-r),p=i(h);r=Math.max(r,d);const m={loaded:d,total:u,progress:u?d/u:void 0,bytes:h,rate:p||void 0,estimated:p&&u?(u-d)/p:void 0,event:a,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(m)},n)},VE=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},qE=(t,e=ne.asap)=>(...n)=>e(()=>t(...n)),JP=br.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,br.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(br.origin),br.navigator&&/(msie|trident)/i.test(br.navigator.userAgent)):()=>!0,ej=br.hasStandardBrowserEnv?{write(t,e,n,r,i,a,l){if(typeof document>"u")return;const u=[`${t}=${encodeURIComponent(e)}`];ne.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),ne.isString(r)&&u.push(`path=${r}`),ne.isString(i)&&u.push(`domain=${i}`),a===!0&&u.push("secure"),ne.isString(l)&&u.push(`SameSite=${l}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===t)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function tj(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function nj(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}const rj=/^https?:(?!\/\/)/i,ij=/[\t\n\r]/g;function sj(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function aj(t){return sj(t).replace(ij,"")}function oj(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,n,r="")=>`${n}${r}${Xm}`)}function lj(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Xm}@`),n=e.indexOf("#"),i=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Xm}`);return n===-1?i:`${i}#${oj(e.slice(n+1))}`}function GE(t,e){if(typeof t=="string"){const n=aj(t);if(rj.test(n))throw new Ie(`Invalid URL ${JSON.stringify(lj(n))}: missing "//" after protocol`,Ie.ERR_INVALID_URL,e)}}function xA(t,e,n,r){GE(e,r);let i=!tj(e);return t&&(i||n===!1)?(GE(t,r),nj(t,e)):e}const XE=t=>t instanceof Dr?{...t}:t,cj=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function Gl(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(p,m,g,b){return ne.isPlainObject(p)&&ne.isPlainObject(m)?ne.merge.call({caseless:b},p,m):ne.isPlainObject(m)?ne.merge({},m):ne.isArray(m)?m.slice():m}function i(p,m,g,b){if(ne.isUndefined(m)){if(!ne.isUndefined(p))return r(void 0,p,g,b)}else return r(p,m,g,b)}function a(p,m){if(!ne.isUndefined(m))return r(void 0,m)}function l(p,m){if(ne.isUndefined(m)){if(!ne.isUndefined(p))return r(void 0,p)}else return r(void 0,m)}function u(p){const m=ne.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!ne.isUndefined(m))if(ne.isPlainObject(m)){if(ne.hasOwnProp(m,p))return m[p]}else return;const g=ne.hasOwnProp(t,"transitional")?t.transitional:void 0;if(ne.isPlainObject(g)&&ne.hasOwnProp(g,p))return g[p]}function d(p,m,g){if(ne.hasOwnProp(e,g))return r(p,m);if(ne.hasOwnProp(t,g))return r(void 0,p)}const h={url:a,method:a,data:a,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,allowedSocketPaths:l,responseEncoding:l,validateStatus:d,headers:(p,m,g)=>i(XE(p),XE(m),g,!0)};return ne.forEach(cj({...t,...e}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const g=ne.hasOwnProp(h,m)?h[m]:i,b=ne.hasOwnProp(t,m)?t[m]:void 0,E=ne.hasOwnProp(e,m)?e[m]:void 0,y=g(b,E,m);ne.isUndefined(y)&&g!==d||(n[m]=y)}),ne.hasOwnProp(e,"validateStatus")&&ne.isUndefined(e.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(ne.hasOwnProp(t,"validateStatus")?n.validateStatus=r(void 0,t.validateStatus):delete n.validateStatus),n}const uj=["content-type","content-length"];function dj(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([r,i])=>{uj.includes(r.toLowerCase())&&t.set(r,i)})}const fj=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function wA(t){const e=Gl({},t),n=g=>ne.hasOwnProp(e,g)?e[g]:void 0,r=n("data");let i=n("withXSRFToken");const a=n("xsrfHeaderName"),l=n("xsrfCookieName");let u=n("headers");const d=n("auth"),h=n("baseURL"),p=n("allowAbsoluteUrls"),m=n("url");if(e.headers=u=Dr.from(u),e.url=mA(xA(h,m,p,e),n("params"),n("paramsSerializer")),d){const g=ne.getSafeProp(d,"username")||"",b=ne.getSafeProp(d,"password")||"";try{u.set("Authorization","Basic "+btoa(g+":"+(b?fj(b):"")))}catch(E){throw Ie.from(E,Ie.ERR_BAD_OPTION_VALUE,t)}}if(ne.isFormData(r)&&(br.hasStandardBrowserEnv||br.hasStandardBrowserWebWorkerEnv||ne.isReactNative(r)?u.setContentType(void 0):ne.isFunction(r.getHeaders)&&dj(u,r.getHeaders(),n("formDataHeaderPolicy"))),br.hasStandardBrowserEnv&&(ne.isFunction(i)&&(i=i(e)),i===!0||i==null&&JP(e.url))){const b=a&&l&&ej.read(l);b&&u.set(a,b)}return e}const hj=typeof XMLHttpRequest<"u",pj=hj&&function(t){return new Promise(function(n,r){const i=wA(t);let a=i.data;const l=Dr.from(i.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:h}=i,p,m,g,b,E;function y(){b&&b(),E&&E(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function S(){if(!x)return;const O=Dr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),k={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:O,config:t,request:x};bA(function(j){n(j),y()},function(j){r(j),y()},k),x=null}"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(S)},x.onabort=function(){x&&(r(new Ie("Request aborted",Ie.ECONNABORTED,t,x)),y(),x=null)},x.onerror=function(M){const k=M&&M.message?M.message:"Network Error",P=new Ie(k,Ie.ERR_NETWORK,t,x);P.event=M||null,r(P),y(),x=null},x.ontimeout=function(){let M=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||qx;i.timeoutErrorMessage&&(M=i.timeoutErrorMessage),r(new Ie(M,k.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,t,x)),y(),x=null},a===void 0&&l.setContentType(null),"setRequestHeader"in x&&ne.forEach(uA(l),function(M,k){x.setRequestHeader(k,M)}),ne.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),u&&u!=="json"&&(x.responseType=i.responseType),h&&([g,E]=Ym(h,!0),x.addEventListener("progress",g)),d&&x.upload&&([m,b]=Ym(d),x.upload.addEventListener("progress",m),x.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(p=O=>{x&&(r(!O||O.type?new ch(null,t,x):O),x.abort(),y(),x=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const R=QP(i.url);if(R&&!br.protocols.includes(R)){r(new Ie("Unsupported protocol "+R+":",Ie.ERR_BAD_REQUEST,t)),y();return}x.send(a||null)})},mj=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let r=!1;const i=function(d){if(!r){r=!0,l();const h=d instanceof Error?d:this.reason;n.abort(h instanceof Ie?h:new ch(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,i(new Ie(`timeout of ${e}ms exceeded`,Ie.ETIMEDOUT))},e);const l=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),t=null)};t.forEach(d=>{if(!r){if(d.aborted){i.call(d);return}d.addEventListener("abort",i,{once:!0})}});const{signal:u}=n;return u.unsubscribe=()=>ne.asap(l),u},gj=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},vj=async function*(t,e){for await(const n of yj(t))yield*gj(n,e)},yj=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},YE=(t,e,n,r)=>{const i=vj(t,e);let a=0,l,u=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:h,value:p}=await i.next();if(h){u(),d.close();return}let m=p.byteLength;if(n){let g=a+=m;n(g)}d.enqueue(new Uint8Array(p))}catch(h){throw u(h),h}},cancel(d){return u(d),i.return()}},{highWaterMark:2})},KE=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,SA=(t,e,n)=>e+2<n&&KE(t.charCodeAt(e+1))&&KE(t.charCodeAt(e+2)),QE=t=>t<=57?t-48:(t&223)-55,bj=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,xj=t=>t===9||t===10||t===12||t===13||t===32,wj=t=>{const e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},Sj=t=>{const e=t.length;let n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},_j=t=>{const e=t.length;let n=0,r=0,i=!1;for(let a=0;a<e;a++){let l=t.charCodeAt(a);if(l===37&&SA(t,a,e)&&(l=QE(t.charCodeAt(a+1))*16+QE(t.charCodeAt(a+2)),a+=2),!xj(l)){if(l===61){r++;continue}if(!bj(l)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?Sj(t):wj(n)},Ej=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const n=t.indexOf(",");if(n<0)return 0;const r=t.slice(5,n),i=t.slice(n+1);if(/;base64/i.test(r))return e(i);let l=0;for(let u=0,d=i.length;u<d;u++){const h=i.charCodeAt(u);if(h===37&&SA(i,u,d))l+=1,u+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&u+1<d){const p=i.charCodeAt(u+1);p>=56320&&p<=57343?(l+=4,u++):l+=3}else l+=3}return l};function Cj(t){const e=typeof t=="string"?t.indexOf("#"):-1;return Ej(e===-1?t:t.slice(0,e),_j)}const Xx="1.19.0",WE=64*1024,{isFunction:Gp}=ne,Rj=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),ZE=t=>{if(!ne.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},JE=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Tj=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},Oj=t=>{const e=ne.global!==void 0&&ne.global!==null?ne.global:globalThis,{ReadableStream:n,TextEncoder:r}=e;t=ne.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:a,Response:l}=t,u=i?Gp(i):typeof fetch=="function",d=Gp(a),h=Gp(l);if(!u)return!1;const p=u&&Gp(n),m=u&&(typeof r=="function"?(S=>R=>S.encode(R))(new r):async S=>new Uint8Array(await new a(S).arrayBuffer())),g=d&&p&&JE(()=>{let S=!1;const R=new a(br.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),O=R.headers.has("Content-Type");return R.body!=null&&R.body.cancel(),S&&!O}),b=h&&p&&JE(()=>ne.isReadableStream(new l("").body)),E={stream:b&&(S=>S.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!E[S]&&(E[S]=(R,O)=>{let M=R&&R[S];if(M)return M.call(R);throw new Ie(`Response type '${S}' is not supported`,Ie.ERR_NOT_SUPPORT,O)})});const y=async S=>{if(S==null)return 0;if(ne.isBlob(S))return S.size;if(ne.isSpecCompliantForm(S))return(await new a(br.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(S)||ne.isArrayBuffer(S))return S.byteLength;if(ne.isURLSearchParams(S)&&(S=S+""),ne.isString(S))return(await m(S)).byteLength},x=async(S,R)=>{const O=ne.toFiniteNumber(S.getContentLength());return O??y(R)};return async S=>{let{url:R,method:O,data:M,signal:k,cancelToken:P,timeout:j,onDownloadProgress:H,onUploadProgress:I,responseType:A,headers:$,withCredentials:L="same-origin",fetchOptions:U,maxContentLength:V,maxBodyLength:Q}=wA(S);const F=ne.isNumber(V)&&V>-1,J=ne.isNumber(Q)&&Q>-1,ae=ie=>ne.hasOwnProp(S,ie)?S[ie]:void 0;let ye=i||fetch;A=A?(A+"").toLowerCase():"text";let X=mj([k,P&&P.toAbortSignal()],j),ee=null;const ve=X&&X.unsubscribe&&(()=>{X.unsubscribe()});let le,se=null;const he=()=>new Ie("Request body larger than maxBodyLength limit",Ie.ERR_BAD_REQUEST,S,ee);try{let ie;const be=ae("auth");if(be){const _e=ne.getSafeProp(be,"username")||"",Ae=ne.getSafeProp(be,"password")||"";ie={username:_e,password:Ae}}if(Tj(R)){const _e=new URL(R,br.origin);if(!ie&&(_e.username||_e.password)){const Ae=ZE(_e.username),je=ZE(_e.password);ie={username:Ae,password:je}}(_e.username||_e.password)&&(_e.username="",_e.password="",R=_e.href)}if(ie&&($.delete("authorization"),$.set("Authorization","Basic "+btoa(Rj((ie.username||"")+":"+(ie.password||""))))),F&&typeof R=="string"&&R.startsWith("data:")&&Cj(R)>V)throw new Ie("maxContentLength size of "+V+" exceeded",Ie.ERR_BAD_RESPONSE,S,ee);if(J&&O!=="get"&&O!=="head"){const _e=await y(M);if(typeof _e=="number"&&isFinite(_e)&&(le=_e,_e>Q))throw he()}const xe=J&&(ne.isReadableStream(M)||ne.isStream(M)),ke=(_e,Ae,je)=>YE(_e,WE,$e=>{if(J&&$e>Q)throw se=he();Ae&&Ae($e)},je);if(g&&O!=="get"&&O!=="head"&&(I||xe)){if(le=le??await x($,M),le!==0||xe){let _e=new a(R,{method:"POST",body:M,duplex:"half"}),Ae;if(ne.isFormData(M)&&(Ae=_e.headers.get("content-type"))&&$.setContentType(Ae),_e.body){const[je,$e]=I&&VE(le,Ym(qE(I)))||[];M=ke(_e.body,je,$e)}}}else if(xe&&!d&&p&&O!=="get"&&O!=="head")M=ke(M);else if(xe&&d&&!g&&O!=="get"&&O!=="head")throw new Ie("Stream request bodies are not supported by the current fetch implementation",Ie.ERR_NOT_SUPPORT,S,ee);ne.isString(L)||(L=L?"include":"omit");const Me=d&&"credentials"in a.prototype;if(ne.isFormData(M)){const _e=$.getContentType();_e&&/^multipart\/form-data/i.test(_e)&&!/boundary=/i.test(_e)&&$.delete("content-type")}$.set("User-Agent","axios/"+Xx,!1);const Ne={...U,signal:X,method:O.toUpperCase(),headers:uA($.normalize()),body:M,duplex:"half",credentials:Me?L:void 0};ee=d&&new a(R,Ne);let Te=await(d?ye(ee,U):ye(R,Ne));const Be=Dr.from(Te.headers);if(F){const _e=ne.toFiniteNumber(Be.getContentLength());if(_e!=null&&_e>V)throw new Ie("maxContentLength size of "+V+" exceeded",Ie.ERR_BAD_RESPONSE,S,ee)}const nt=b&&(A==="stream"||A==="response");if(b&&Te.body&&(H||F||nt&&ve)){const _e={};["status","statusText","headers"].forEach(K=>{_e[K]=Te[K]});const Ae=ne.toFiniteNumber(Be.getContentLength()),[je,$e]=H&&VE(Ae,Ym(qE(H),!0))||[];let Y=0;const G=K=>{if(F&&(Y=K,Y>V))throw new Ie("maxContentLength size of "+V+" exceeded",Ie.ERR_BAD_RESPONSE,S,ee);je&&je(K)};Te=new l(YE(Te.body,WE,G,()=>{$e&&$e(),ve&&ve()}),_e)}A=A||"text";let yt=await E[ne.findKey(E,A)||"text"](Te,S);if(F&&!b&&!nt){let _e;if(yt!=null&&(typeof yt.byteLength=="number"?_e=yt.byteLength:typeof yt.size=="number"?_e=yt.size:typeof yt=="string"&&(_e=typeof r=="function"?new r().encode(yt).byteLength:yt.length)),typeof _e=="number"&&_e>V)throw new Ie("maxContentLength size of "+V+" exceeded",Ie.ERR_BAD_RESPONSE,S,ee)}return!nt&&ve&&ve(),await new Promise((_e,Ae)=>{bA(_e,Ae,{data:yt,headers:Dr.from(Te.headers),status:Te.status,statusText:Te.statusText,config:S,request:ee})})}catch(ie){if(ve&&ve(),X&&X.aborted&&X.reason instanceof Ie){const be=X.reason;throw be.config=S,ee&&(be.request=ee),ie!==be&&Object.defineProperty(be,"cause",{__proto__:null,value:ie,writable:!0,enumerable:!1,configurable:!0}),be}if(se)throw ee&&!se.request&&(se.request=ee),se;if(ie instanceof Ie)throw ee&&!ie.request&&(ie.request=ee),ie;if(ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)){const be=new Ie("Network Error",Ie.ERR_NETWORK,S,ee,ie&&ie.response);throw Object.defineProperty(be,"cause",{__proto__:null,value:ie.cause||ie,writable:!0,enumerable:!1,configurable:!0}),be}throw Ie.from(ie,ie&&ie.code,S,ee,ie&&ie.response)}}},Aj=new Map,_A=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,a=[r,i,n];let l=a.length,u=l,d,h,p=Aj;for(;u--;)d=a[u],h=p.get(d),h===void 0&&p.set(d,h=u?new Map:Oj(e)),p=h;return h};_A();const Yx={http:PP,xhr:pj,fetch:{get:_A}};ne.forEach(Yx,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const eC=t=>`- ${t}`,kj=t=>ne.isFunction(t)||t===null||t===!1;function Mj(t,e){t=ne.isArray(t)?t:[t];const{length:n}=t;let r,i;const a={};for(let l=0;l<n;l++){r=t[l];let u;if(i=r,!kj(r)&&(i=Yx[(u=String(r)).toLowerCase()],i===void 0))throw new Ie(`Unknown adapter '${u}'`);if(i&&(ne.isFunction(i)||(i=i.get(e))))break;a[u||"#"+l]=i}if(!i){const l=Object.entries(a).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since :
64`+l.map(eC).join(`
65`):" "+eC(l[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+u,Ie.ERR_NOT_SUPPORT)}return i}const EA={getAdapter:Mj,adapters:Yx};function F0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ch(null,t)}function U0(t){return F0(t),t.headers=Dr.from(t.headers),t.data=B0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),EA.getAdapter(t.adapter||lh.adapter,t)(t).then(function(r){F0(t),t.response=r;try{r.data=B0.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=Dr.from(r.headers),r},function(r){if(!yA(r)&&(F0(t),r&&r.response)){t.response=r.response;try{r.response.data=B0.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=Dr.from(r.response.headers)}return Promise.reject(r)})}const zg={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{zg[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const tC={};zg.transitional=function(e,n,r){function i(a,l){return"[Axios v"+Xx+"] Transitional option '"+a+"'"+l+(r?". "+r:"")}return(a,l,u)=>{if(e===!1)throw new Ie(i(l," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!tC[l]&&(tC[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,l,u):!0}};zg.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Nj(t,e,n){if(typeof t!="object"||t===null)throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const a=r[i],l=Object.prototype.hasOwnProperty.call(e,a)?e[a]:void 0;if(l){const u=t[a],d=u===void 0||l(u,a,t);if(d!==!0)throw new Ie("option "+a+" must be "+d,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+a,Ie.ERR_BAD_OPTION)}}const xm={assertOptions:Nj,validators:zg},Or=xm.validators;let $l=class{constructor(e){this.defaults=e||{},this.interceptors={request:new UE,response:new UE}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=(()=>{if(!i.stack)return"";const l=i.stack.indexOf(`
66`);return l===-1?"":i.stack.slice(l+1)})();try{if(!r.stack)r.stack=a;else if(a){const l=a.indexOf(`
67`),u=l===-1?-1:a.indexOf(`
68`,l+1),d=u===-1?"":a.slice(u+1);String(r.stack).endsWith(d)||(r.stack+=`
69`+a)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Gl(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&xm.assertOptions(r,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean),legacyInterceptorReqResOrdering:Or.transitional(Or.boolean),advertiseZstdAcceptEncoding:Or.transitional(Or.boolean),validateStatusUndefinedResolves:Or.transitional(Or.boolean)}
vendor: 3,318 bytes, line 69
69,!1),i!=null&&(ne.isFunction(i)?n.paramsSerializer={serialize:i}:xm.assertOptions(i,{encode:Or.function,serialize:Or.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xm.assertOptions(n,{baseUrl:Or.spelling("baseURL"),withXsrfToken:Or.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&ne.merge(a.common,a[n.method]);a&&ne.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete a[E]}),n.headers=Dr.concat(l,a);const u=[];let d=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;d=d&&y.synchronous;const x=n.transitional||qx;x&&x.legacyInterceptorReqResOrdering?u.unshift(y.fulfilled,y.rejected):u.push(y.fulfilled,y.rejected)});const h=[];this.interceptors.response.forEach(function(y){h.push(y.fulfilled,y.rejected)});let p,m=0,g;if(!d){const E=[U0.bind(this),void 0];for(E.unshift(...u),E.push(...h),g=E.length,p=Promise.resolve(n);m<g;)p=p.then(E[m++],E[m++]);return p}g=u.length;let b=n;for(;m<g;){const E=u[m++],y=u[m++];try{b=E?E(b):b}catch(x){if(!y){p=Promise.reject(x);break}try{const S=y.call(this,x);ne.isThenable(S)&&(p=Promise.resolve(S).then(()=>U0.call(this,b)))}catch(S){p=Promise.reject(S)}break}}if(!p)try{p=U0.call(this,b)}catch(E){p=Promise.reject(E)}for(m=0,g=h.length;m<g;)p=p.then(h[m++],h[m++]);return p}getUri(e){e=Gl(this.defaults,e);const n=xA(e.baseURL,e.url,e.allowAbsoluteUrls,e);return mA(n,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(e){$l.prototype[e]=function(n,r){return this.request(Gl(r||{},{method:e,url:n,data:r&&ne.hasOwnProp(r,"data")?r.data:void 0}))}});ne.forEach(["post","put","patch","query"],function(e){function n(r){return function(a,l,u){return this.request(Gl(u||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}$l.prototype[e]=n(),e!=="query"&&($l.prototype[e+"Form"]=n(!0))});let Dj=class CA{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const l=new Promise(u=>{r.subscribe(u),a=u}).then(i);return l.cancel=function(){r.unsubscribe(a)},l},e(function(a,l,u){r.reason||(r.reason=new ch(a,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new CA(function(i){e=i}),cancel:e}}};function Pj(t){return function(n){return t.apply(null,n)}}function jj(t){return ne.isObject(t)&&t.isAxiosError===!0}const Xb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
69alContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xb).forEach(([t,e])=>{Xb[e]=t});function RA(t){const e=new $l(t),n=tA($l.prototype.request,e);return ne.extend(n,$l.prototype,e,{allOwnKeys:!0}),ne.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return RA(Gl(t,i))},n}const Fn=RA(lh);Fn.Axios=$l;Fn.CanceledError=ch;Fn.CancelToken=Dj;Fn.isCancel=yA;Fn.VERSION=Xx;Fn.toFormData=Lg;Fn.AxiosError=Ie;Fn.Cancel=Fn.CanceledError;Fn.all=function(e){return Promise.all(e)};Fn.spread=Pj;Fn.isAxiosError=jj;Fn.mergeConfig=Gl;Fn.AxiosHeaders=Dr;Fn.formToJSON=t=>vA(ne.isHTMLForm(t)?new FormData(t):t);Fn.getAdapter=EA.getAdapter;Fn.HttpStatusCode=Xb;Fn.default=Fn;const{Axios:Eee,AxiosError:Cee,CanceledError:Ree,isCancel:Tee,CancelToken:Oee,VERSION:Aee,all:kee,Cancel:Mee,isAxiosError:Nee,spread:Dee,toFormData:Pee,AxiosHeaders:jee,HttpStatusCode:Lee,formToJSON:zee,getAdapter:$ee,mergeConfig:Hee,create:Bee}=Fn;var Fo=DO();const Cl=Iu(Fo);var I0={exports:{}};/*!
70 * Pusher JavaScript Library v8.4.0
71 * https://pusher.com/
72 *
73 * Copyright 2020, Pusher
74 * Released under the MIT licence.
75 */var nC;function Lj(){return nC||(nC=1,function(t,e){(function(r,i){t.exports=i()})(window,function(){return function(n){var r={};function i(a){if(r[a])return r[a].exports;var l=r[a]={i:a,l:!1,exports:{}};return n[a].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=n,i.c=r,i.d=function(a,l,u){i.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,l){if(l&1&&(a=i(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var d in a)i.d(u,d,(function(h){return a[h]}).bind(null,d));return u},i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,"a",l),l},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.p="",i(i.s=2)}([function(n,r,i){var a=this&&this.__extends||function(){var y=function(x,S){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,O){R.__proto__=O}||function(R,O){for(var M in O)O.hasOwnProperty(M)&&(R[M]=O[M])},y(x,S)};return function(x,S){y(x,S);function R(){this.constructor=x}x.prototype=S===null?Object.create(S):(R.prototype=S.prototype,new R)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=256,u=function(){function y(x){x===void 0&&(x="="),this._paddingCharacter=x}return y.prototype.encodedLength=function(x){return this._paddingCharacter?(x+2)/3*4|0:(x*8+5)/6|0},y.prototype.encode=function(x){for(var S="",R=0;R<x.length-2;R+=3){var O=x[R]<<16|x[R+1]<<8|x[R+2];S+=this._encodeByte(O>>>3*6&63),S+=this._encodeByte(O>>>2*6&63),S+=this._encodeByte(O>>>1*6&63),S+=this._encodeByte(O>>>0*6&63)}var M=x.length-R;if(M>0){var O=x[R]<<16|(M===2?x[R+1]<<8:0);S+=this._encodeByte(O>>>3*6&63),S+=this._encodeByte(O>>>2*6&63),M===2?S+=this._encodeByte(O>>>1*6&63):S+=this._paddingCharacter||"",S+=this._paddingCharacter||""}return S},y.prototype.maxDecodedLength=function(x){return this._paddingCharacter?x/4*3|0:(x*6+7)/8|0},y.prototype.decodedLength=function(x){return this.maxDecodedLength(x.length-this._getPaddingLength(x))},y.prototype.decode=function(x){if(x.length===0)return new Uint8Array(0);for(var S=this._getPaddingLength(x),R=x.length-S,O=new Uint8Array(this.maxDecodedLength(R)),M=0,k=0,P=0,j=0,H=0,I=0,A=0;k<R-4;
75k+=4)j=this._decodeChar(x.charCodeAt(k+0)),H=this._decodeChar(x.charCodeAt(k+1)),I=this._decodeChar(x.charCodeAt(k+2)),A=this._decodeChar(x.charCodeAt(k+3)),O[M++]=j<<2|H>>>4,O[M++]=H<<4|I>>>2,O[M++]=I<<6|A,P|=j&l,P|=H&l,P|=I&l,P|=A&l;if(k<R-1&&(j=this._decodeChar(x.charCodeAt(k)),H=this._decodeChar(x.charCodeAt(k+1)),O[M++]=j<<2|H>>>4,P|=j&l,P|=H&l),k<R-2&&(I=this._decodeChar(x.charCodeAt(k+2)),O[M++]=H<<4|I>>>2,P|=I&l),k<R-3&&(A=this._decodeChar(x.charCodeAt(k+3)),O[M++]=I<<6|A,P|=A&l),P!==0)throw new Error("Base64Coder: incorrect characters for decoding");return O},y.prototype._encodeByte=function(x){var S=x;return S+=65,S+=25-x>>>8&6,S+=51-x>>>8&-75,S+=61-x>>>8&-15,S+=62-x>>>8&3,String.fromCharCode(S)},y.prototype._decodeChar=function(x){var S=l;return S+=(42-x&x-44)>>>8&-l+x-43+62,S+=(46-x&x-48)>>>8&-l+x-47+63,S+=(47-x&x-58)>>>8&-l+x-48+52,S+=(64-x&x-91)>>>8&-l+x-65+0,S+=(96-x&x-123)>>>8&-l+x-97+26,S},y.prototype._getPaddingLength=function(x){var S=0;if(this._paddingCharacter){for(var R=x.length-1;R>=0&&x[R]===this._paddingCharacter;R--)S++;if(x.length<4||S>2)throw new Error("Base64Coder: incorrect padding")}return S},y}();r.Coder=u;var d=new u;function h(y){return d.encode(y)}r.encode=h;function p(y){return d.decode(y)}r.decode=p;var m=function(y){a(x,y);function x(){return y!==null&&y.apply(this,arguments)||this}return x.prototype._encodeByte=function(S){var R=S;return R+=65,R+=25-S>>>8&6,R+=51-S>>>8&-75,R+=61-S>>>8&-13,R+=62-S>>>8&49,String.fromCharCode(R)},x.prototype._decodeChar=function(S){var R=l;return R+=(44-S&S-46)>>>8&-l+S-45+62,R+=(94-S&S-96)>>>8&-l+S-95+63,R+=(47-S&S-58)>>>8&-l+S-48+52,R+=(64-S&S-91)>>>8&-l+S-65+0,R+=(96-S&S-123)>>>8&-l+S-97+26,R},x}(u);r.URLSafeCoder=m;var g=new m;function b(y){return g.encode(y)}r.encodeURLSafe=b;function E(y){return g.decode(y)}r.decodeURLSafe=E,r.encodedLength=function(y){return d.encodedLength(y)},r.maxDecodedLength=function(y){return d.maxDecodedLength(y)},r.decodedLength=function(y){return d.decodedLength(y)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a="utf8: invalid string",l="utf8: invalid source encoding";function u(p){for(var m=new Uint8Array(d(p)),g=0,b=0;b<p.length;b++){var E=p.charCodeAt(b);E<128?m[g++]=E:E<2048?(m[g++]=192|E>>6,m[g++]=128|E&63):E<55296?(m[g++]=224|E>>12,m[g++]=128|E>>6&63,m[g++]=128|E&63):(b++,E=(E&1023)<<10,E|=p.charCodeAt(b)&1023,E+=65536,m[g++]=240|E>>18,m[g++]=128|E>>12&63,m[g++]=128|E>>6&63,m[g++]=128|E&63)}return m}r.encode=u;function d(p){for(var m=0,g=0;g<p.length;g++){var b=p.charCodeAt(g);if(b<128)m+=1;else if(b<2048)m+=2;else if(b<55296)m+=3;else if(b<=57343){if(g>=p.length-1)throw new Error(a);g++,m+=4}else throw new Error(a)}return m}r.encodedLength=d;function h(p){for(var m=[],g=0;g<p.length;g++){var b=p[g];if(b&128){var E=void 0;if(b<224){if(g>=p.length)throw new Error(l);var y=p[++g];if((y&192)!==128)throw new Error(l);b=(b&31)<<6|y&63,E=128}else if(b<240){if(g>=p.length-1)throw new Error(l);var y=p[++g],x=p[++g];if((y&192)!==128||(x&192)!==128)throw new Error(l);b=(b&15)<<12|(y&63)<<6|x&63,E=2048}else if(b<248){if(g>=p.length-2)throw new Error(l);var y=p[++g],x=p[++g],S=p[++g];if((y&192)!==128||(x&192)!==128||(S&192)!==128)throw new Error(l);b=(b&15)<<18|(y&63)<<12|(x&63)<<6|S&63,E=65536}else throw new Error(l);if(b<E||b>=55296&&b<=57343)throw new Error(l);if(b>=65536){if(b>1114111)throw new Error(l);b-=65536,m.push(String.fromCharCode(55296|b>>10)),b=56320|b&1023}}m.push(String.fromCharCode(b))}return m.join("")}r.decode=h},function(n,r,i){n.exports=i(3).default},function(n,r,i){i.r(r);class a{constructor(T,N){this.lastId=0,this.prefix=T,this.name=N}create(T){this.lastId++;var N=this.lastId,q=this.prefix+N,W=this.name+"["+N+"]",Ee=!1,Le=function(){Ee||(T.apply(null,arguments),Ee=!0)};return this[N]=Le,{number:N,id:q,name:W,callback:Le}}remove(T){delete this[T.number]}}var l=new a("_pusher_script_","Pusher.ScriptReceivers"),u={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",depen
75dency_suffix:""},d=u;class h{constructor(T){this.options=T,this.receivers=T.receivers||l,this.loading={}}load(T,N,q){var W=this;if(W.loading[T]&&W.loading[T].length>0)W.loading[T].push(q);else{W.loading[T]=[q];var Ee=gt.createScriptRequest(W.getPath(T,N)),Le=W.receivers.create(function(Xe){if(W.receivers.remove(Le),W.loading[T]){var ut=W.loading[T];delete W.loading[T];for(var At=function(bn){bn||Ee.cleanup()},Mt=0;Mt<ut.length;Mt++)ut[Mt](Xe,At)}});Ee.send(Le)}}getRoot(T){var N,q=gt.getDocument().location.protocol;return T&&T.useTLS||q==="https:"?N=this.options.cdn_https:N=this.options.cdn_http,N.replace(/\/*$/,"")+"/"+this.options.version}getPath(T,N){return this.getRoot(N)+"/"+T+this.options.suffix+".js"}}var p=new a("_pusher_dependencies","Pusher.DependenciesReceivers"),m=new h({cdn_http:d.cdn_http,cdn_https:d.cdn_https,version:d.VERSION,suffix:d.dependency_suffix,receivers:p});const g={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var E={buildLogSuffix:function(D){const T="See:",N=g.urls[D];if(!N)return"";let q;return N.fullUrl?q=N.fullUrl:N.path&&(q=g.baseUrl+N.path),q?`${T} ${q}`:""}},y;(function(D){D.UserAuthentication="user-authentication",D.ChannelAuthorization="channel-authorization"})(y||(y={}));class x extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}class M extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}class j extends Error{constructor(T){super(T),Object.setPrototypeOf(this,new.target.prototype)}}
75class H extends Error{constructor(T,N){super(N),this.status=T,Object.setPrototypeOf(this,new.target.prototype)}}var A=function(D,T,N,q,W){const Ee=gt.createXHR();Ee.open("POST",N.endpoint,!0),Ee.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var Le in N.headers)Ee.setRequestHeader(Le,N.headers[Le]);if(N.headersProvider!=null){let Xe=N.headersProvider();for(var Le in Xe)Ee.setRequestHeader(Le,Xe[Le])}return Ee.onreadystatechange=function(){if(Ee.readyState===4)if(Ee.status===200){let Xe,ut=!1;try{Xe=JSON.parse(Ee.responseText),ut=!0}catch{W(new H(200,`JSON returned from ${q.toString()} endpoint was invalid, yet status code was 200. Data was: ${Ee.responseText}`),null)}ut&&W(null,Xe)}else{let Xe="";switch(q){case y.UserAuthentication:Xe=E.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:Xe=`Clients must be authorized to join private or presence channels. ${E.buildLogSuffix("authorizationEndpoint")}`;break}W(new H(Ee.status,`Unable to retrieve auth string from ${q.toString()} endpoint - received status: ${Ee.status} from ${N.endpoint}. ${Xe}`),null)}},Ee.send(T),Ee};function $(D){return J(Q(D))}var L=String.fromCharCode,U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V=function(D){var T=D.charCodeAt(0);return T<128?D:T<2048?L(192|T>>>6)+L(128|T&63):L(224|T>>>12&15)+L(128|T>>>6&63)+L(128|T&63)},Q=function(D){return D.replace(/[^\x00-\x7F]/g,V)},F=function(D){var T=[0,2,1][D.length%3],N=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),q=[U.charAt(N>>>18),U.charAt(N>>>12&63),T>=2?"=":U.charAt(N>>>6&63),T>=1?"=":U.charAt(N&63)];return q.join("")},J=window.btoa||function(D){return D.replace(/[\s\S]{1,3}/g,F)};class ae{constructor(T,N,q,W){this.clear=N,this.timer=T(()=>{this.timer&&(this.timer=W(this.timer))},q)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var ye=ae;function X(D){window.clearTimeout(D)}function ee(D){window.clearInterval(D)}class ve extends ye{constructor(T,N){super(setTimeout,X,T,function(q){return N(),null})}}class le extends ye{constructor(T,N){super(setInterval,ee,T,function(q){return N(),q})}}var se={now(){return Date.now?Date.now():new Date().valueOf()},defer(D){return new ve(0,D)},method(D,...T){var N=Array.prototype.slice.call(arguments,1);return function(q){return q[D].apply(q,N.concat(arguments))}}},he=se;function ie(D,...T){for(var N=0;N<T.length;N++){var q=T[N];for(var W in q)q[W]&&q[W].constructor&&q[W].constructor===Object?D[W]=ie(D[W]||{},q[W]):D[W]=q[W]}return D}function be(){for(var D=["Pusher"],T=0;T<arguments.length;T++)typeof arguments[T]=="string"?D.push(arguments[T]):D.push(ue(arguments[T]));return D.join(" : ")}function xe(D,T){var N=Array.prototype.indexOf;if(D===null)return-1;if(N&&D.indexOf===N)return D.indexOf(T);for(var q=0,W=D.length;q<W;q++)if(D[q]===T)return q;return-1}function ke(D,T){for(var N in D)Object.prototype.hasOwnProperty.call(D,N)&&T(D[N],N,D)}function Me(D){var T=[];return ke(D,function(N,q){T.push(q)}),T}function Ne(D){var T=[];return ke(D,function(N){T.push(N)}),T}function Te(D,T,N){for(var q=0;q<D.length;q++)T.call(N||window,D[q],q,D)}function Be(D,T){for(var N=[],q=0;q<D.length;q++)N.push(T(D[q],q,D,N));return N}function nt(D,T){var N={};return ke(D,function(q,W){N[W]=T(q)}),N}function yt(D,T){T=T||function(W){return!!W};for(var N=[],q=0;q<D.length;q++)T(D[q],q,D,N)&&N.push(D[q]);return N}function _e(D,T){var N={};return ke(D,function(q,W){(T&&T(q,W,D,N)||q)&&(N[W]=q)}),N}function Ae(D){var T=[];return ke(D,function(N,q){T.push([q,N])}),T}function je(D,T){for(var N=0;N<D.length;N++)if(T(D[N],N,D))return!0;return!1}function $e(D,T){for(var N=0;N<D.length;N++)if(!T(D[N],N,D))return!1;return!0}function Y(D){return nt(D,function(T){return typeof T=="object"&&(T=ue(T)),encodeURIComponent($(T.toString()))})}function G(D){var T=_e(D,function(q){return q!==void 0}),N=Be(Ae(Y(T)),he.method("join","=")).join("&");return N}function K(D){var T=[],N=[];return function q(W,Ee){var Le,Xe,ut;switch(typeof W){case"object":if(!W)return null;for(Le=0;Le<T.length;Le+=1)if(T[Le]===W)return{$ref:N[Le]};if(T.push(W),N.push(Ee),Object.prototype.toString.apply(W)==="[object Array]")for(ut=[],Le=0;Le<W.length;Le+=1)ut[Le]=q(W[Le],Ee+"["+Le+"]");else{ut={};for(Xe in W)Object.prototype.hasOwnProperty.call(W,Xe)&&(ut[Xe]=q(W[Xe],Ee+"["+JSON.stringify(Xe)+"]"))}return ut;case"number":case"string":case"boolean":return W}}(D,"$")}function ue(D){try{return JSON.stringify(D)}catch{return JSON.stringify(K(D))}}class we{constructor(){this.globalLog=T=>{window.console&&window.console.log&&window.console.log(T)}}debug(...T){this.log(this.globalLog,T)}warn(...T){this.log(this.globalLogWarn,T)}error(...T){this.log(this.globalLogError,T)}globalLogWarn(T){window.console&&window.console.warn?window.console.warn(T):this.globalLog(T)}globalLogError(T){window.console&&window.console.error?window.console.error(T):this.globalLogWarn(T)}log(T,...N){var q=be.apply(this,arguments);hd.log?hd.log(q):hd.logToConsole&&T.bind(this)(q)}}var pe=new we,De=function(D,T,N,q,W){(N.headers!==void 0||N.headersProvider!=null)&&pe.warn(`To send headers with the ${q.toString()} request, you must use AJAX, rather than JSONP.`);var Ee=D.nextAuthCallbackID.toString();D.nextAuthCallbackID++;var Le=D.getDocument(),Xe=Le.createElement("script");D.auth_callbacks[Ee]=function(Mt){W(null,Mt)};var ut="Pusher.auth_callbacks['"+Ee+"']";Xe.src=N.endpoint+"?callback="+encodeURIComponent(ut)+"&"+T;var At=Le.getElementsByTagName("head")[0]||Le.documentElement;At.insertBefore(Xe,At.firstChild)},Ue=De;class Je{constructor(T){this.src=T}send(T){var N=this,q="Error loading "+N.src;N.script=document.createElement("script"),N.script.id=T.id,N.script.src=N.src,N.script.type="text/javascript",N.script.charset="UTF-8",N.script.addEventListener?(N.script.onerror=function(){T.callback(q)},N.script.onload=function(){T.callback(null)}):N.script.onreadystatechange=function(){(N.script.readyState==="loaded"||N.script.readyState==="complete")&&T.callback(null)},N.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(N.errorScript=document.createElement("script"),N.errorScript.id=T.id+"_error",N.errorScript.text=T.name+"('"+q+"');",N.script.async=N.errorScript.async=!1):N.script.async=!0;var W=document.getElementsByTagName("head")[0];W.insertBefore(N.script,W.firstChild),N.errorScript&&W.insertBefore(N.errorScript,N.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}
75class ot{constructor(T,N){this.url=T,this.data=N}send(T){if(!this.request){var N=G(this.data),q=this.url+"/"+T.number+"?"+N;this.request=gt.createScriptRequest(q),this.request.send(T)}}cleanup(){this.request&&this.request.cleanup()}}var un=function(D,T){return function(N,q){var W="http"+(T?"s":"")+"://",Ee=W+(D.host||D.options.host)+D.options.path,Le=gt.createJSONPRequest(Ee,N),Xe=gt.ScriptReceivers.create(function(ut,At){l.remove(Xe),Le.cleanup(),At&&At.host&&(D.host=At.host),q&&q(ut,At)});Le.send(Xe)}},qt={name:"jsonp",getAgent:un},Zn=qt;function at(D,T,N){var q=D+(T.useTLS?"s":""),W=T.useTLS?T.hostTLS:T.hostNonTLS;return q+"://"+W+N}function ft(D,T){var N="/app/"+D,q="?protocol="+d.PROTOCOL+"&client=js&version="+d.VERSION+(T?"&"+T:"");return N+q}var Et={getInitial:function(D,T){var N=(T.httpPath||"")+ft(D,"flash=false");return at("ws",T,N)}},Ht={getInitial:function(D,T){var N=(T.httpPath||"/pusher")+ft(D);return at("http",T,N)}},Nn={getInitial:function(D,T){return at("http",T,T.httpPath||"/pusher")},getPath:function(D,T){return ft(D)}};class Er{constructor(){this._callbacks={}}get(T){return this._callbacks[nn(T)]}add(T,N,q){var W=nn(T);this._callbacks[W]=this._callbacks[W]||[],this._callbacks[W].push({fn:N,context:q})}remove(T,N,q){if(!T&&!N&&!q){this._callbacks={};return}var W=T?[nn(T)]:Me(this._callbacks);N||q?this.removeCallback(W,N,q):this.removeAllCallbacks(W)}removeCallback(T,N,q){Te(T,function(W){this._callbacks[W]=yt(this._callbacks[W]||[],function(Ee){return N&&N!==Ee.fn||q&&q!==Ee.context}),this._callbacks[W].length===0&&delete this._callbacks[W]},this)}removeAllCallbacks(T){Te(T,function(N){delete this._callbacks[N]},this)}}function nn(D){return"_"+D}class _n{constructor(T){this.callbacks=new Er,this.global_callbacks=[],this.failThrough=T}bind(T,N,q){return this.callbacks.add(T,N,q),this}bind_global(T){return this.global_callbacks.push(T),this}unbind(T,N,q){return this.callbacks.remove(T,N,q),this}unbind_global(T){return T?(this.global_callbacks=yt(this.global_callbacks||[],N=>N!==T),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(T,N,q){for(var W=0;W<this.global_callbacks.length;
75W++)this.global_callbacks[W](T,N);var Ee=this.callbacks.get(T),Le=[];if(q?Le.push(N,q):N&&Le.push(N),Ee&&Ee.length>0)for(var W=0;W<Ee.length;W++)Ee[W].fn.apply(Ee[W].context||window,Le);else this.failThrough&&this.failThrough(T,N);return this}}class ji extends _n{constructor(T,N,q,W,Ee){super(),this.initialize=gt.transportConnectionInitializer,this.hooks=T,this.name=N,this.priority=q,this.key=W,this.options=Ee,this.state="new",this.timeline=Ee.timeline,this.activityTimeout=Ee.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var T=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(T,this.options)}catch(N){return he.defer(()=>{this.onError(N),this.changeState("closed")}),!1}return this.bindListeners(),pe.debug("Connecting",{transport:this.name,url:T}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(T){return this.state==="open"?(he.defer(()=>{this.socket&&this.socket.send(T)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(T){this.emit("error",{type:"WebSocketError",error:T}),this.timeline.error(this.buildTimelineMessage({error:T.toString()}))}onClose(T){T?this.changeState("closed",{code:T.code,reason:T.reason,wasClean:T.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(T){this.emit("message",T)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=T=>{this.onError(T)},this.socket.onclose=T=>{this.onClose(T)},this.socket.onmessage=T=>{this.onMessage(T)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(T,N){this.state=T,this.timeline.info(this.buildTimelineMessage({state:T,params:N})),this.emit(T,N)}buildTimelineMessage(T){return ie({cid:this.id},T)}}class Dn{constructor(T){this.hooks=T}isSupported(T){return this.hooks.isSupported(T)}createConnection(T,N,q,W){return new ji(this.hooks,T,N,q,W)}}var Yr=new Dn({urls:Et,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!gt.getWebSocketAPI()},isSupported:function(){return!!gt.getWebSocketAPI()},getSocket:function(D){return gt.createWebSocket(D)}}),Li={urls:Ht,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Lr=ie({getSocket:function(D){return gt.HTTPFactory.createStreamingSocket(D)}},Li),Cr=ie({getSocket:function(D){return gt.HTTPFactory.createPollingSocket(D)}},Li),pi={isSupported:function(){return gt.isXHRSupported()}},os=new Dn(ie({},Lr,pi)),zi=new Dn(ie({},Cr,pi)),Pn={ws:Yr,xhr_streaming:os,xhr_polling:zi},Wt=Pn,yn=new Dn({file:"sockjs",urls:Nn,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(D,T){return new window.SockJS(D,null,{js_path:m.getPath("sockjs",{useTLS:T.useTLS}),ignore_null_origin:T.ignoreNullOrigin})},beforeOpen:function(D,T){D.send(JSON.stringify({path:T}))}}),Bt={isSupported:function(D){var T=gt.isXDRSupported(D.useTLS);return T}},Ds=new Dn(ie({},Lr,Bt)),ca=new Dn(ie({},Cr,Bt));Wt.xdr_streaming=Ds,Wt.xdr_polling=ca,Wt.sockjs=yn;var dn=Wt;class pn extends _n{constructor(){super();var T=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){T.emit("online")},!1),window.addEventListener("offline",function(){T.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var jn=new pn;class In{constructor(T,N,q){this.manager=T,this.transport=N,this.minPingDelay=q.minPingDelay,this.maxPingDelay=q.maxPingDelay,this.pingDelay=void 0}createConnection(T,N,q,W){W=ie({},W,{activityTimeout:this.pingDelay});var Ee=this.transport.createConnection(T,N,q,W),Le=null,Xe=function(){Ee.unbind("open",Xe),Ee.bind("closed",ut),Le=he.now()},ut=At=>{if(Ee.unbind("closed",ut),At.code===1002||At.code===1003)this.manager.reportDeath();else if(!At.wasClean&&Le){var Mt=he.now()-Le;Mt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(Mt/2,this.minPingDelay))}};return Ee.bind("open",Xe),Ee}isSupported(T){return this.manager.isAlive()&&this.transport.isSupported(T)}}const hr={decodeMessage:function(D){try{var T=JSON.parse(D.data),N=T.data;if(typeof N=="string")try{N=JSON.parse(T.data)}catch{}var q={event:T.event,channel:T.channel,data:N};return T.user_id&&(q.user_id=T.user_id),q}catch(W){throw{type:"MessageParseError",error:W,data:D.data}}},encodeMessage:function(D){return JSON.stringify(D)},processHandshake:function(D){var T=hr.decodeMessage(D);if(T.event==="pusher:connection_established"){if(!T.data.activity_timeout)throw"No activity timeout specified in handshake";
75return{action:"connected",id:T.data.socket_id,activityTimeout:T.data.activity_timeout*1e3}}else{if(T.event==="pusher:error")return{action:this.getCloseAction(T.data),error:this.getCloseError(T.data)};throw"Invalid handshake"}},getCloseAction:function(D){return D.code<4e3?D.code>=1002&&D.code<=1004?"backoff":null:D.code===4e3?"tls_only":D.code<4100?"refused":D.code<4200?"backoff":D.code<4300?"retry":"refused"},getCloseError:function(D){return D.code!==1e3&&D.code!==1001?{type:"PusherError",data:{code:D.code,message:D.reason||D.message}}:null}};var Jn=hr;class mi extends _n{constructor(T,N){super(),this.id=T,this.transport=N,this.activityTimeout=N.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(T){return this.transport.send(T)}send_event(T,N,q){var W={event:T,data:N};return q&&(W.channel=q),pe.debug("Event sent",W),this.send(Jn.encodeMessage(W))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var T={message:q=>{var W;try{W=Jn.decodeMessage(q)}catch(Ee){this.emit("error",{type:"MessageParseError",error:Ee,data:q.data})}if(W!==void 0){switch(pe.debug("Event recd",W),W.event){case"pusher:error":this.emit
75("error",{type:"PusherError",data:W.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",W)}},activity:()=>{this.emit("activity")},error:q=>{this.emit("error",q)},closed:q=>{N(),q&&q.code&&this.handleCloseEvent(q),this.transport=null,this.emit("closed")}},N=()=>{ke(T,(q,W)=>{this.transport.unbind(W,q)})};ke(T,(q,W)=>{this.transport.bind(W,q)})}handleCloseEvent(T){var N=Jn.getCloseAction(T),q=Jn.getCloseError(T);q&&this.emit("error",q),N&&this.emit(N,{action:N,error:q})}}class Kr{constructor(T,N){this.transport=T,this.callback=N,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=T=>{this.unbindListeners();var N;try{N=Jn.processHandshake(T)}catch(q){this.finish("error",{error:q}),this.transport.close();return}N.action==="connected"?this.finish("connected",{connection:new mi(N.id,this.transport),activityTimeout:N.activityTimeout}):(this.finish(N.action,{error:N.error}),this.transport.close())},this.onClosed=T=>{this.unbindListeners();var N=Jn.getCloseAction(T)||"backoff",q=Jn.getCloseError(T);this.finish(N,{error:q})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(T,N){this.callback(ie({transport:this.transport,action:T},N))}}class fn{constructor(T,N){this.timeline=T,this.options=N||{}}send(T,N){this.timeline.isEmpty()||this.timeline.send(gt.TimelineTransport.getAgent(this,T),N)}}class Ps extends _n{constructor(T,N){super(function(q,W){pe.debug("No callbacks on "+T+" for "+q)}),this.name=T,this.pusher=N,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(T,N){return N(null,{auth:""})}trigger(T,N){if(T.indexOf("client-")!==0)throw new x("Event '"+T+"' does not start with 'client-'");if(!this.subscribed){var q=E.buildLogSuffix("triggeringClientEvents");pe.warn(`Client event triggered before channel 'subscription_succeeded' event . ${q}`)}return this.pusher.send_event(T,N,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(T){var N=T.event,q=T.data;if(N==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(T);else if(N==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(T);else if(N.indexOf("pusher_internal:")!==0){var W={};this.emit(N,q,W)}}handleSubscriptionSucceededEvent(T){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",T.data)}handleSubscriptionCountEvent(T){T.data.subscription_count&&(this.subscriptionCount=T.data.subscription_count),this.emit("pusher:subscription_count",T.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(T,N)=>{T?(this.subscriptionPending=!1,pe.error(T.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:T.message},T instanceof H?{status:T.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:N.auth,channel_data:N.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Qr extends Ps{authorize(T,N){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:T},N)}}class En{constructor(){this.reset()}get(T){return Object.prototype.hasOwnProperty.call(this.members,T)?{id:T,info:this.members[T]}:null}each(T){ke(this.members,(N,q)=>{T(this.get(q))})}setMyID(T){this.myID=T}onSubscription(T){this.members=T.presence.hash,this.count=T.presence.count,this.me=this.get(this.myID)}addMember(T){return this.get(T.user_id)===null&&this.count++,this.members[T.user_id]=T.user_info,this.get(T.user_id)}removeMember(T){var N=this.get(T.user_id);return N&&(delete this.members[T.user_id],this.count--),N}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ze=function(D,T,N,q){function W(Ee){return Ee instanceof N?Ee:new N(function(Le){Le(Ee)})}return new(N||(N=Promise))(function(Ee,Le){function Xe(Mt){try{At(q.next(Mt))}catch(bn){Le(bn)}}function ut(Mt){try{At(q.throw(Mt))}catch(bn){Le(bn)}}function At(Mt){Mt.done?Ee(Mt.value):W(Mt.value).then(Xe,ut)}At((q=q.apply(D,T||[])).next())})};class We extends Qr{constructor(T,N){super(T,N),this.members=new En}authorize(T,N){super.authorize(T,(q,W)=>Ze(this,void 0,void 0,function*(){if(!q)if(W=W,W.channel_data!=null){var Ee=JSON.parse(W.channel_data);this.members.setMyID(Ee.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let Le=E.buildLogSuffix("authorizationEndpoint");pe.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${Le}, or the user should be signed in.`),N("Invalid auth response");return}N(q,W)}))}handleEvent(T){var N=T.event;if(N.indexOf("pusher_internal:")===0)this.handleInternalEvent(T);else{var q=T.data,W={};
75T.user_id&&(W.user_id=T.user_id),this.emit(N,q,W)}}handleInternalEvent(T){var N=T.event,q=T.data;switch(N){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(T);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(T);break;case"pusher_internal:member_added":var W=this.members.addMember(q);this.emit("pusher:member_added",W);break;case"pusher_internal:member_removed":var Ee=this.members.removeMember(q);Ee&&this.emit("pusher:member_removed",Ee);break}}handleSubscriptionSucceededEvent(T){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(T.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var bt=i(1),Pt=i(0);class Ln extends Qr{constructor(T,N,q){super(T,N),this.key=null,this.nacl=q}authorize(T,N){super.authorize(T,(q,W)=>{if(q){N(q,W);return}let Ee=W.shared_secret;if(!Ee){N(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(Pt.decode)(Ee),delete W.shared_secret,N(null,W)})}trigger(T,N){throw new k("Client events are not currently supported for encrypted channels")}handleEvent(T){var N=T.event,q=T.data;if(N.indexOf("pusher_internal:")===0||N.indexOf("pusher:")===0){super.handleEvent(T);return}this.handleEncryptedEvent(N,q)}handleEncryptedEvent(T,N){if(!this.key){pe.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!N.ciphertext||!N.nonce){pe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+N);return}let q=Object(Pt.decode)(N.ciphertext);if(q.length<this.nacl.secretbox.overheadLength){pe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${q.length}`);return}let W=Object(Pt.decode)(N.nonce);if(W.length<this.nacl.secretbox.nonceLength){pe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${W.length}`);return}let Ee=this.nacl.secretbox.open(q,W,this.key);if(Ee===null){pe.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(Le,Xe)=>{if(Le){pe.error(`Failed to make a request to the authEndpoint: ${Xe}. Unable to fetch new key, so dropping encrypted event`);return}if(Ee=this.nacl.secretbox.open(q,W,this.key),Ee===null){pe.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(T,this.getDataToEmit(Ee))});return}this.emit(T,this.getDataToEmit(Ee))}getDataToEmit(T){let N=Object(bt.decode)(T);try{return JSON.parse(N)}catch{return N}}}class ls extends _n{constructor(T,N){super(),this.state="initialized",this.connection=null,this.key=T,this.options=N,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var q=gt.getNetwork();q.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),q.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(T){return this.connection?this.connection.send(T):!1}send_event(T,N,q){return this.connection?this.connection.send_event(T,N,q):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var T=(N,q)=>{N?this.runner=this.strategy.connect(0,T):q.action==="error"?(this.emit("error",{type:"HandshakeError",error:q.error}),this.timeline.error({handshakeError:q.error})):(this.abortConnecting(),this.handshakeCallbacks[q.action](q))};this.runner=this.strategy.connect(0,T)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var T=this.abandonConnection();T.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(T){this.timeline.info({action:"retry",delay:T}),T>
750&&this.emit("connecting_in",Math.round(T/1e3)),this.retryTimer=new ve(T||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new ve(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new ve(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new ve(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(T){return ie({},T,{message:N=>{this.resetActivityCheck(),this.emit("message",N)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:N=>{this.emit("error",N)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(T){return ie({},T,{connected:N=>{this.activityTimeout=Math.min(this.options.activityTimeout,N.activityTimeout,N.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(N.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let T=N=>q=>{q.error&&this.emit("error",{type:"WebSocketError",error:q.error}),N(q)};return{tls_only:T(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:T(()=>{this.disconnect()}),backoff:T(()=>{this.retryIn(1e3)}),retry:T(()=>{this.retryIn(0)})}}setConnection(T){this.connection=T;for(var N in this.connectionCallbacks)this.connection.bind(N,this.connectionCallbacks[N]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var T in this.connectionCallbacks)this.connection.unbind(T,this.connectionCallbacks[T]);var N=this.connection;return this.connection=null,N}}updateState(T,N){var q=this.state;if(this.state=T,q!==T){var W=T;W==="connected"&&(W+=" with new socket ID "+N.socket_id),pe.debug("State changed",q+" -> "+W),this.timeline.info({state:T,params:N}),this.emit("state_change",{previous:q,current:T}),this.emit(T,N)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Wr{constructor(){this.channels={}}add(T,N){return this.channels[T]||(this.channels[T]=zr(T,N)),this.channels[T]}all(){return Ne(this.channels)}find(T){return this.channels[T]}remove(T){var N=this.channels[T];return delete this.channels[T],N}disconnect(){ke(this.channels,function(T){T.disconnect()})}}function zr(D,T){if(D.indexOf("private-encrypted-")===0){if(T.config.nacl)return $r.createEncryptedChannel(D,T,T.config.nacl);let N="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",q=E.buildLogSuffix("encryptedChannelSupport");throw new k(`${N}. ${q}`)}else{if(D.indexOf("private-")===0)return $r.createPrivateChannel(D,T);if(D.indexOf("presence-")===0)return $r.createPresenceChannel(D,T);if(D.indexOf("#")===0)throw new S('Cannot create a channel with name "'+D+'".');return $r.createChannel(D,T)}}var Wo={createChannels(){return new Wr},createConnectionManager(D,T){return new ls(D,T)},createChannel(D,T){return new Ps(D,T)},createPrivateChannel(D,T){return new Qr(D,T)},createPresenceChannel(D,T){return new We(D,T)},createEncryptedChannel(D,T,N){return new Ln(D,T,N)},createTimelineSender(D,T){return new fn(D,T)},createHandshake(D,T){return new Kr(D,T)},createAssistantToTheTransportManager(D,T,N){return new In(D,T,N)}},$r=Wo;class gi{constructor(T){this.options=T||{},this.livesLeft=this.options.lives||1/0}getAssistant(T){return $r.createAssistantToTheTransportManager(this,T,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class cs{constructor(T,N){this.strategies=T,this.loop=!!N.loop,this.failFast=!!N.failFast,this.timeout=N.timeout,this.timeoutLimit=N.timeoutLimit}isSupported(){return je(this.strategies,he.method("isSupported"))}connect(T,N){var q=this.strategies,W=0,Ee=this.timeout,Le=null,Xe=(ut,At)=>{At?N(null,At):(W=W+1,this.loop&&(W=W%q.length),W<q.length?(Ee&&(Ee=Ee*2,this.timeoutLimit&&(Ee=Math.min(Ee,this.timeoutLimit))),Le=this.tryStrategy(q[W],T,{timeout:Ee,failFast:this.failFast},Xe)):N(!0))};return Le=this.tryStrategy(q[W],T,{timeout:Ee,failFast:this.failFast},Xe),{abort:function(){Le.abort()},forceMinPriority:function(ut){T=ut,Le&&Le.forceMinPriority(ut)}}}tryStrategy(T,N,q,W){var Ee=null,Le=null;return q.timeout>0&&(Ee=new ve(q.timeout,function(){Le.abort(),W(!0)})),Le=T.connect(N,function(Xe,ut){Xe&&Ee&&Ee.isRunning()&&!q.failFast||(Ee&&Ee.ensureAborted(),W(Xe,ut))}),{abort:function(){Ee&&Ee.ensureAborted(),Le.abort()},forceMinPriority:function(Xe){Le.forceMinPriority(Xe)}}}}class Zo{constructor(T){this.strategies=T}isSupported(){return je(this.strategies,he.method("isSupported"))}connect(T,N){return vv(this.strategies,T,function(q,W){return function(Ee,Le){if(W[q].error=Ee,Ee){Th(W)&&N(!0);return}Te(W,function(Xe){Xe.forceMinPriority(Le.transport.priority)}
75),N(null,Le)}})}}function vv(D,T,N){var q=Be(D,function(W,Ee,Le,Xe){return W.connect(T,N(Ee,Xe))});return{abort:function(){Te(q,Zr)},forceMinPriority:function(W){Te(q,function(Ee){Ee.forceMinPriority(W)})}}}function Th(D){return $e(D,function(T){return!!T.error})}function Zr(D){!D.error&&!D.aborted&&(D.abort(),D.aborted=!0)}class Oh{constructor(T,N,q){this.strategy=T,this.transports=N,this.ttl=q.ttl||1800*1e3,this.usingTLS=q.useTLS,this.timeline=q.timeline}isSupported(){return this.strategy.isSupported()}connect(T,N){var q=this.usingTLS,W=ic(q),Ee=W&&W.cacheSkipCount?W.cacheSkipCount:0,Le=[this.strategy];if(W&&W.timestamp+this.ttl>=he.now()){var Xe=this.transports[W.transport];Xe&&(["ws","wss"].includes(W.transport)||Ee>3?(this.timeline.info({cached:!0,transport:W.transport,latency:W.latency}),Le.push(new cs([Xe],{timeout:W.latency*2+1e3,failFast:!0}))):Ee++)}var ut=he.now(),At=Le.pop().connect(T,function Mt(bn,il){bn?(Jo(q),Le.length>0?(ut=he.now(),At=Le.pop().connect(T,Mt)):N(bn)):(Ah(q,il.transport.name,he.now()-ut,Ee),N(null,il))});return{abort:function(){At.abort()},forceMinPriority:function(Mt){T=Mt,At&&At.forceMinPriority(Mt)}}}}function nd(D){return"pusherTransport"+(D?"TLS":"NonTLS")}function ic(D){var T=gt.getLocalStorage();if(T)try{var N=T[nd(D)];if(N)return JSON.parse(N)}catch{Jo(D)}return null}function Ah(D,T,N,q){var W=gt.getLocalStorage();if(W)try{W[nd(D)]=ue({timestamp:he.now(),transport:T,latency:N,cacheSkipCount:q})}catch{}}function Jo(D){var T=gt.getLocalStorage();if(T)try{delete T[nd(D)]}catch{}}class sc{constructor(T,{delay:N}){this.strategy=T,this.options={delay:N}}isSupported(){return this.strategy.isSupported()}connect(T,N){var q=this.strategy,W,Ee=new ve(this.options.delay,function(){W=q.connect(T,N)});return{abort:function(){Ee.ensureAborted(),W&&W.abort()},forceMinPriority:function(Le){T=Le,W&&W.forceMinPriority(Le)}}}}class sr{constructor(T,N,q){this.test=T,this.trueBranch=N,this.falseBranch=q}isSupported(){var T=this.test()?this.trueBranch:this.falseBranch;return T.isSupported()}connect(T,N){var q=this.test()?this.trueBranch:this.falseBranch;return q.connect(T,N)}}class rd{constructor(T){this.strategy=T}isSupported(){return this.strategy.isSupported()}connect(T,N){var q=this.strategy.connect(T,function(W,Ee){Ee&&q.abort(),N(W,Ee)});return q}}function Ia(D){return function(){return D.isSupported()}}var id=function(D,T,N){var q={};function W(md,gd,vd,Ih,Vh){var yd=N(D,md,gd,vd,Ih,Vh);return q[md]=yd,yd}var Ee=Object.assign({},T,{hostNonTLS:D.wsHost+":"+D.wsPort,hostTLS:D.wsHost+":"+D.wssPort,httpPath:D.wsPath}),Le=Object.assign({},Ee,{useTLS:!0}),Xe=Object.assign({},T,{hostNonTLS:D.httpHost+":"+D.httpPort,hostTLS:D.httpHost+":"+D.httpsPort,httpPath:D.httpPath}),ut={loop:!0,timeout:15e3,timeoutLimit:6e4},At=new gi({minPingDelay:1e4,maxPingDelay:D.activityTimeout}),Mt=new gi({lives:2,minPingDelay:1e4,maxPingDelay:D.activityTimeout}),bn=W("ws","ws",3,Ee,At),il=W("wss","ws",3,Le,At),zh=W("sockjs","sockjs",1,Xe),pd=W("xhr_streaming","xhr_streaming",1,Xe,Mt),Ya=W("xdr_streaming","xdr_streaming",1,Xe,Mt),$h=W("xhr_polling","xhr_polling",1,Xe),$v=W("xdr_polling","xdr_polling",1,Xe),Hh=new cs([bn],ut),Bh=new cs([il],ut),Fh=new cs([zh],ut),Ka=new cs([new sr(Ia(pd),pd,Ya)],ut),Qa=new cs([new sr(Ia($h),$h,$v)],ut),Uh=new cs([new sr(Ia(Ka),new Zo([Ka,new sc(Qa,{delay:4e3})]),Qa)],ut),Wa=new sr(Ia(Uh),Uh,Fh),hc;return T.useTLS?hc=new Zo([Hh,new sc(Wa,{delay:2e3})]):hc=new Zo([Hh,new sc(Bh,{delay:2e3}),new sc(Wa,{delay:5e3})]),new Oh(new rd(new sr(Ia(bn),hc,Wa)),q,{ttl:18e5,timeline:T.timeline,useTLS:T.useTLS})},Va=id,kh=function(){var D=this;D.timeline.info(D.buildTimelineMessage({transport:D.name+(D.options.useTLS?"s":"")})),D.hooks.isInitialized()?D.changeState("initialized"):D.hooks.file?(D.changeState("initializing"),m.load(D.hooks.file,{useTLS:D.options.useTLS},function(T,N){D.hooks.isInitialized()?(D.changeState("initialized"),N(!0)):(T&&D.onError(T),D.onClose(),N(!1))})):D.onClose()},Mh={getRequest:function(D){var T=new window.XDomainRequest;return T.ontimeout=function(){D.emit("error",new R),D.close()},T.onerror=function(N){D.emit("error",N),D.close()},T.onprogress=function(){T.responseText&&T.responseText.length>0&&D.onChunk(200,T.responseText)},T.onload=function(){T.responseText&&T.responseText.length>0&&D.onChunk(200,T.responseText),D.emit("finished",200),D.close()},T},abortRequest:function(D){D.ontimeout=D.onerror=D.onprogress=D.onload=null,D.abort()}},qa=Mh;const yv=256*1024;class Nh extends _n{constructor(T,N,q){super(),this.hooks=T,this.method=N,this.url=q}
75start(T){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},gt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(T)}close(){this.unloader&&(gt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(T,N){for(;;){var q=this.advanceBuffer(N);if(q)this.emit("chunk",{status:T,data:q});else break}this.isBufferTooLong(N)&&this.emit("buffer_too_long")}advanceBuffer(T){var N=T.slice(this.position),q=N.indexOf(`
76`);return q!==-1?(this.position+=q+1,N.slice(0,q)):null}isBufferTooLong(T){return this.position===T.length&&T.length>yv}}var ac;(function(D){D[D.CONNECTING=0]="CONNECTING",D[D.OPEN=1]="OPEN",D[D.CLOSED=3]="CLOSED"})(ac||(ac={}));var us=ac,bv=1;class xv{constructor(T,N){this.hooks=T,this.session=ua(1e3)+"/"+Dh(8),this.location=oc(N),this.readyState=us.CONNECTING,this.openStream()}send(T){return this.sendRaw(JSON.stringify([T]))}ping(){this.hooks.sendHeartbeat(this)}close(T,N){this.onClose(T,N,!0)}sendRaw(T){if(this.readyState===us.OPEN)try{return gt.createSocketRequest("POST",lc(sd(this.location,this.session))).start(T),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(T,N,q){this.closeStream(),this.readyState=us.CLOSED,this.onclose&&this.onclose({code:T,reason:N,wasClean:q})}onChunk(T){if(T.status===200){this.readyState===us.OPEN&&this.onActivity();var N,q=T.data.slice(0,1);switch(q){case"o":N=JSON.parse(T.data.slice(1)||"{}"),this.onOpen(N);break;case"a":N=JSON.parse(T.data.slice(1)||"[]");for(var W=0;W<N.length;W++)this.onEvent(N[W]);break;case"m":N=JSON.parse(T.data.slice(1)||"null"),this.onEvent(N);break;case"h":this.hooks.onHeartbeat(this);break;case"c":N=JSON.parse(T.data.slice(1)||"[]"),this.onClose(N[0],N[1],!0);break}}}onOpen(T){this.readyState===us.CONNECTING?(T&&T.hostname&&(this.location.base=Ga(this.location.base,T.hostname)),this.readyState=us.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(T){this.readyState===us.OPEN&&this.onmessage&&this.onmessage({data:T})}onActivity(){this.onactivity&&this.onactivity()}onError(T){this.onerror&&this.onerror(T)}openStream(){this.stream=gt.createSocketRequest("POST",lc(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",T=>{this.onChunk(T)}),this.stream.bind("finished",T=>{this.hooks.onFinished(this,T)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(T){he.defer(()=>{this.onError(T),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function oc(D){var T=/([^\?]*)\/*(\??.*)/.exec(D);return{base:T[1],queryString:T[2]}}function sd(D,T){return D.base+"/"+T+"/xhr_send"}function lc(D){var T=D.indexOf("?")===-1?"?":"&";return D+T+"t="+ +new Date+"&n="+bv++}function Ga(D,T){var N=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(D);return N[1]+T+N[3]}function ua(D){return gt.randomInt(D)}function Dh(D){for(var T=[],N=0;N<D;N++)T.push(ua(32).toString(32));return T.join("")}var ad=xv,Ph={getReceiveURL:function(D,T){return D.base+"/"+T+"/xhr_streaming"+D.queryString},onHeartbeat:function(D){D.sendRaw("[]")},sendHeartbeat:function(D){D.sendRaw("[]")},onFinished:function(D,T){D.onClose(1006,"Connection interrupted ("+T+")",!1)}},el=Ph,ds={getReceiveURL:function(D,T){return D.base+"/"+T+"/xhr"+D.queryString},onHeartbeat:function(){},sendHeartbeat:function(D){D.sendRaw("[]")},onFinished:function(D,T){T===200?D.reconnect():D.onClose(1006,"Connection interrupted ("+T+")",!1)}},od=ds,tl={getRequest:function(D){var T=gt.getXHRAPI(),N=new T;return N.onreadystatechange=N.onprogress=function(){switch(N.readyState){case 3:N.responseText&&N.responseText.length>0&&D.onChunk(N.status,N.responseText);break;case 4:N.responseText&&N.responseText.length>0&&D.onChunk(N.status,N.responseText),D.emit("finished",N.status),D.close();break}},N},abortRequest:function(D){D.onreadystatechange=null,D.abort()}},js=tl,ld={createStreamingSocket(D){return this.createSocket(el,D)},createPollingSocket(D){return this.createSocket(od,D)},createSocket(D,T){return new ad(D,T)},createXHR(D,T){return this.createRequest(js,D,T)},createRequest(D,T,N){return new Nh(D,T,N)}},nl=ld;nl.createXDR=function(D,T){return this.createRequest(qa,D,T)};var jh=nl,cc={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:l,DependenciesReceivers:p,getDefaultStrategy:Va,Transports:dn,transportConnectionInitializer:kh,HTTPFactory:jh,TimelineTransport:Zn,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(D){window.Pusher=D;var T=()=>{this.onDocumentBody(D.ready)};window.JSON?T():m.load("json2",{},T)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:A,jsonp:Ue}},onDocumentBody(D){document.body?D():setTimeout(()=>{this.onDocumentBody(D)},0)},createJSONPRequest(D,T){return new ot(D,T)},createScriptRequest(D){return new Je(D)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var D=this.getXHRAPI();return new D},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return jn},createWebSocket(D){var T=this.getWebSocketAPI();return new T(D)}
76,createSocketRequest(D,T){if(this.isXHRSupported())return this.HTTPFactory.createXHR(D,T);if(this.isXDRSupported(T.indexOf("https:")===0))return this.HTTPFactory.createXDR(D,T);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var D=this.getXHRAPI();return!!D&&new D().withCredentials!==void 0},isXDRSupported(D){var T=D?"https:":"http:",N=this.getProtocol();return!!window.XDomainRequest&&N===T},addUnloadListener(D){window.addEventListener!==void 0?window.addEventListener("unload",D,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",D)},removeUnloadListener(D){window.addEventListener!==void 0?window.removeEventListener("unload",D,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",D)},randomInt(D){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*D)}},gt=cc,uc;(function(D){D[D.ERROR=3]="ERROR",D[D.INFO=6]="INFO",D[D.DEBUG=7]="DEBUG"})(uc||(uc={}));var er=uc;class da{constructor(T,N,q){this.key=T,this.session=N,this.events=[],this.options=q||{},this.sent=0,this.uniqueID=0}log(T,N){T<=this.options.level&&(this.events.push(ie({},N,{timestamp:he.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(T){this.log(er.ERROR,T)}info(T){this.log(er.INFO,T)}debug(T){this.log(er.DEBUG,T)}isEmpty(){return this.events.length===0}send(T,N){var q=ie({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],T(q,(W,Ee)=>{W||this.sent++,N&&N(W,Ee)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class dc{constructor(T,N,q,W){this.name=T,this.priority=N,this.transport=q,this.options=W||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(T,N){if(this.isSupported()){if(this.priority<T)return Xa(new O,N)}else return Xa(new j,N);var q=!1,W=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),Ee=null,Le=function(){W.unbind("initialized",Le),W.connect()},Xe=function(){Ee=$r.createHandshake(W,function(bn){q=!0,Mt(),N(null,bn)})},ut=function(bn){Mt(),N(bn)},At=function(){Mt();var bn;bn=ue(W),N(new M(bn))},Mt=function(){W.unbind("initialized",Le),W.unbind("open",Xe),W.unbind("error",ut),W.unbind("closed",At)};return W.bind("initialized",Le),W.bind("open",Xe),W.bind("error",ut),W.bind("closed",At),W.initialize(),{abort:()=>{q||(Mt(),Ee?Ee.close():W.close())},forceMinPriority:bn=>{q||this.priority<bn&&(Ee?Ee.close():W.close())}}}}function Xa(D,T){return he.defer(function(){T(D)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:wv}=gt;var cd=function(D,T,N,q,W,Ee){var Le=wv[N];if(!Le)throw new P(N);var Xe=(!D.enabledTransports||xe(D.enabledTransports,T)!==-1)&&(!D.disabledTransports||xe(D.disabledTransports,T)===-1),ut;return Xe?(W=Object.assign({ignoreNullOrigin:D.ignoreNullOrigin},W),ut=new dc(T,q,Ee?Ee.getAssistant(Le):Le,W)):ut=ud,ut},ud={isSupported:function(){return!1},connect:function(D,T){var N=he.defer(function(){T(new j)});return{abort:function(){N.ensureAborted()},forceMinPriority:function(){}}}};function rl(D){if(D==null)throw"You must pass an options object";if(D.cluster==null)throw"Options object must provide a cluster";"disableStats"in D&&pe.warn("The disableStats option is deprecated in favor of enableStats")}const fc=(D,T)=>{var N="socket_id="+encodeURIComponent(D.socketId);for(var q in T.params)N+="&"+encodeURIComponent(q)+"="+encodeURIComponent(T.params[q]);if(T.paramsProvider!=null){let W=T.paramsProvider();for(var q in W)N+="&"+encodeURIComponent(q)+"="+encodeURIComponent(W[q])}return N};var _v=D=>{if(typeof gt.getAuthorizers()[D.transport]>"u")throw`'${D.transport}' is not a recognized auth transport`;return(T,N)=>{const q=fc(T,D);gt.getAuthorizers()[D.transport](gt,q,D,y.UserAuthentication,N)}};const Ev=(D,T)=>{var N="socket_id="+encodeURIComponent(D.socketId);N+="&channel_name="+encodeURIComponent(D.channelName);for(var q in T.params)N+="&"+encodeURIComponent(q)+"="+encodeURIComponent(T.params[q]);if(T.paramsProvider!=null){let W=T.paramsProvider();for(var q in W)N+="&"+encodeURIComponent(q)+"="+encodeURIComponent(W[q])}return N};var dd=D=>{if(typeof gt.getAuthorizers()[D.transport]>"u")throw`'${D.transport}' is not a recognized auth transport`;return(T,N)=>{const q=Ev(T,D);gt.getAuthorizers()[D.transport](gt,q,D,y.ChannelAuthorization,N)}};const Cv=(D,T,N)=>{const q={authTransport:T.transport,authEndpoint:T.endpoint,auth:{params:T.params,headers:T.headers}};return(W,Ee)=>{const Le=D.channel(W.channelName);N(Le,q).authorize(W.socketId,Ee)}};function Rv(D,T){let N={activityTimeout:D.activityTimeout||d.activityTimeout,cluster:D.cluster,httpPath:D.httpPath||d.httpPath,httpPort:D.httpPort||d.httpPort,httpsPort:D.httpsPort||d.httpsPort,pongTimeout:D.pongTimeout||d.pongTimeout,statsHost:D.statsHost||d.stats_host,unavailableTimeout:D.unavailableTimeout||d.unavailableTimeout,wsPath:D.wsPath||d.wsPath,wsPort:D.wsPort||d.wsPort,wssPort:D.wssPort||d.wssPort,enableStats:kv(D),httpHost:Tv(D),useTLS:Lh(D),wsHost:Ov(D),userAuthenticator:Mv(D),channelAuthorizer:Dv(D,T)};return"disabledTransports"in D&&(N.disabledTransports=D.disabledTransports),"enabledTransports"in D&&(N.enabledTransports=D.enabledTransports),"ignoreNullOrigin"in D&&(N.ignoreNullOrigin=D.ignoreNullOrigin),"timelineParams"in D&&(N.timelineParams=D.timelineParams),"nacl"in D&&(N.nacl=D.nacl),N}function Tv(D){return D.httpHost?D.httpHost:D.cluster?`sockjs-${D.cluster}.pusher.com`:d.httpHost}function Ov(D){return D.wsHost?D.wsHost:Av(D.cluster)}function Av(D){return`ws-${D}.pusher.com`}function Lh(D){return gt.getProtocol()==="https:"?!0:D.forceTLS!==!1}function kv(D){return"enableStats"in D?D.enableStats:"disableStats"in D?!D.disableStats:!1}function Mv(D){const T=Object.assign(Object.assign({},d.userAuthentication),D.userAuthentication);return"customHandler"in T&&T.customHandler!=null?T.customHandler:_v(T)}function Nv(D,T){let N;return"channelAuthorization"in D?N=Object.assign(Object.assign({},d.channelAuthorization),D.channelAuthorization):(N={transport:D.authTransport||d.authTransport,endpoint:D.authEndpoint||d.authEndpoint},"auth"in D&&("params"in D.auth&&(N.params=D.auth.params),"headers"in D.auth&&(N.headers=D.auth.headers)),"authorizer"in D&&(N.customHandler=Cv(T,N,D.authorizer))),N}function Dv(D,T){const N=Nv(D,T);return"customHandler"in N&&N.customHandler!=null?N.customHandler:dd(N)}class fd extends _n{constructor(T){super(function(N,q){pe.debug(`No callbacks on watchlist events for ${N}`)}),this.pusher=T,this.bindWatchlistInternalEvent()}
76handleEvent(T){T.data.events.forEach(N=>{this.emit(N.name,N)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",T=>{var N=T.event;N==="pusher_internal:watchlist_events"&&this.handleEvent(T)})}}function Pv(){let D,T;return{promise:new Promise((q,W)=>{D=q,T=W}),resolve:D,reject:T}}var jv=Pv;class Lv extends _n{constructor(T){super(function(N,q){pe.debug("No callbacks on user for "+N)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(N,q)=>{if(N){pe.warn(`Error during signin: ${N}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:q.auth,user_data:q.user_data})},this.pusher=T,this.pusher.connection.bind("state_change",({previous:N,current:q})=>{N!=="connected"&&q==="connected"&&this._signin(),N==="connected"&&q!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new fd(T),this.pusher.connection.bind("message",N=>{var q=N.event;q==="pusher:signin_success"&&this._onSigninSuccess(N.data),this.serverToUserChannel&&this.serverToUserChannel.name===N.channel&&this.serverToUserChannel.handleEvent(N)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(T){try{this.user_data=JSON.parse(T.user_data)}catch{pe.error(`Failed parsing user data after signin: ${T.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){pe.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const T=N=>{N.subscriptionPending&&N.subscriptionCancelled?N.reinstateSubscription():!N.subscriptionPending&&this.pusher.connection.state==="connected"&&N.subscribe()};this.serverToUserChannel=new Ps(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((N,q)=>{N.indexOf("pusher_internal:")===0||N.indexOf("pusher:")===0||this.emit(N,q)}),T(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:T,resolve:N}=jv();T.done=!1;const q=()=>{T.done=!0};T.then(q).catch(q),this.signinDonePromise=T,this._signinDoneResolve=N}}class Vn{static ready(){Vn.isReady=!0;for(var T=0,N=Vn.instances.length;T<N;T++)Vn.instances[T].connect()}static getClientFeatures(){return Me(_e({ws:gt.Transports.ws},function(T){return T.isSupported({})}))}constructor(T,N){zv(T),rl(N),this.key=T,this.config=Rv(N,this),this.channels=$r.createChannels(),this.global_emitter=new _n,this.sessionID=gt.randomInt(1e9),this.timeline=new da(this.key,this.sessionID,{cluster:this.config.cluster,features:Vn.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:er.INFO,version:d.VERSION}),this.config.enableStats&&(this.timelineSender=$r.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+gt.TimelineTransport.name}));var q=W=>gt.getDefaultStrategy(this.config,W,cd);this.connection=$r.createConnectionManager(this.key,{getStrategy:q,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",W=>{var Ee=W.event,Le=Ee.indexOf("pusher_internal:")===0;if(W.channel){var Xe=this.channel(W.channel);Xe&&Xe.handleEvent(W)}Le||this.global_emitter.emit(W.event,W.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",W=>{pe.warn(W)}),Vn.instances.push(this),this.timeline.info({instances:Vn.instances.length}),this.user=new Lv(this),Vn.isReady&&this.connect()}channel(T){return this.channels.find(T)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var T=this.connection.isUsingTLS(),N=this.timelineSender;this.timelineSenderTimer=new le(6e4,function(){N.send(T)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(T,N,q){return this.global_emitter.bind(T,N,q),this}unbind(T,N,q){return this.global_emitter.unbind(T,N,q),this}bind_global(T){return this.global_emitter.bind_global(T),this}unbind_global(T){return this.global_emitter.unbind_global(T),this}unbind_all(T){return this.global_emitter.unbind_all(),this}subscribeAll(){var T;for(T in this.channels.channels)this.channels.channels.hasOwnProperty(T)&&this.subscribe(T)}subscribe(T){var N=this.channels.add(T,this);return N.subscriptionPending&&N.subscriptionCancelled?N.reinstateSubscription():!N.subscriptionPending&&this.connection.state==="connected"&&N.subscribe(),N}unsubscribe(T){var N=this.channels.find(T);N&&N.subscriptionPending?N.cancelSubscription():(N=this.channels.remove(T),N&&N.subscribed&&N.unsubscribe())}send_event(T,N,q){return this.connection.send_event(T,N,q)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Vn.instances=[],Vn.isReady=!1,Vn.logToConsole=!1,Vn.Runtime=gt,Vn.ScriptReceivers=gt.ScriptReceivers,Vn.DependenciesReceivers=gt.DependenciesReceivers,Vn.auth_callbacks=gt.auth_callbacks;var hd=r.default=Vn;function zv(D){if(D==null)throw"You must pass your app key when you instantiate Pusher."}gt.setup(Vn)}])})}(I0)),I0.exports}var zj=Lj();const $j=Iu(zj);var yO;const rC=((yO=JSON.parse(localStorage.getItem("user")||"{}"))==null?void 0:yO.isDemo)??!1,TA=w.createContext(),Rl={current:null},Gi={current:null},ka=new Set;let wm=!1,tu=[],ru={};function Yb(t){const{eventName:e,data:n}=t.detail;ru[e]&&(console.log(`[MockPusher] Executing client callbacks for event: ${e}`,n),ru[e].forEach(r=>r(n)))}const Fee=({children:t})=>{function e(d){if(Rl.current&&Gi.current)return;if(console.log(`[Pusher] Initializing with userId: ${d} (Demo: ${rC})`),rC){Gi.current={bind:(p,m)=>{ru[p]||(ru[p]=[]),ru[p].push(m)},unbind:p=>{delete ru[p]}},typeof window<"u"&&(window.removeEventListener("MSW_PUSHER_EVENT",Yb),window.addEventListener("MSW_PUSHER_EVENT",Yb)),wm=!0,Rl.current={mock:!0},tu.forEach(({key:p,callback:m})=>{ka.has(p)||(Gi.current.bind(p,m),ka.add(p))}),tu=[];return}
76Rl.current=new $j("098d674314cb128d59a1",{cluster:"ap2",encrypted:!0});const h=Rl.current.subscribe(`broadcast-devices-realtime.${d}`);Gi.current=h,console.log(`[Pusher] Subscribing to channel: broadcast-devices-realtime.${d}`),h.bind("pusher:subscription_succeeded",()=>{console.log("[Pusher] Channel subscription succeeded"),wm=!0,tu.forEach(({key:p,callback:m})=>{ka.has(p)||(h.bind(p,m),ka.add(p),console.log(`[Pusher] Bound queued event: ${p}`))}),tu=[]})}function n(d,h){if(ka.has(d)){console.log(`[Pusher] Event already bound: ${d}`);return}if(!Gi.current){console.warn("[Pusher] Cannot bind: channel not initialized");return}wm?(Gi.current.bind(d,h),ka.add(d),console.log(`[Pusher] Bound event immediately: ${d}`)):(tu.push({key:d,callback:h}),console.log(`[Pusher] Queued event binding until subscription: ${d}`))}function r(d,h){d==null||d.forEach(p=>{const m=`initial-packet-event.${p.id}`;n(m,h)})}function i(d,h){const p=`dashboard-values-event.${d}`;n(p,h)}function a(d,h){const p=`building_values_event.${d}`;n(p,h)}function l(d){const h=`dashboard-values-event.${d}`;Gi.current&&(Gi.current.unbind(h),ka.delete(h),console.log(`[Pusher] Unbound event: ${h}`))}function u(d){const h=`building_values_event.${d}`;Gi.current&&(Gi.current.unbind(h),ka.delete(h),console.log(`[Pusher] Unbound event: ${h}`))}return C.jsx(TA.Provider,{value:{initializePusher:e,bindAllInitialPacketEvents:r,bindDashboardEvent:i,bindBuildingEvent:a,unbindDashboardEvent:l,unbindBuildingEvent:u,unsubscribePusher:OA},children:t})},Hj=()=>w.useContext(TA);function OA(t){typeof window<"u"&&window.removeEventListener("MSW_PUSHER_EVENT",Yb),Rl.current&&Gi.current&&(Rl.current.mock||Rl.current.unsubscribe(`broadcast-devices-realtime.${t}`),console.log(`[Pusher] Unsubscribed from channel: broadcast-devices-realtime.${t}`),ka.clear(),Gi.current=null,wm=!1,tu=[])}const AA=w.createContext(),Uee=({children:t})=>{Lx();const e="https://api.holoin.ai/",n=localStorage.getItem("user"),r=n?JSON.parse(n):null,[i,a]=w.useState(r),[l,u]=w.useState(()=>localStorage.getItem("token")||null),[d,h]=w.useState(r!=null&&r.profile_image?`${e}storage/${r.profile_image}`:""),p=(R,O)=>{localStorage.setItem("token",O),localStorage.setItem("user",JSON.stringify(R)),a(R),u(O),h(`${e}storage/${R.profile_image||""}`)},m=i!=null&&i.roles?i.roles.map(R=>R.name):i!=null&&i.role_type?[i.role_type]:[],g=()=>{i!=null&&i.id&&OA(i.id),localStorage.clear(),a(null),u(null),window.location.href="/login"},b=R=>{console.log("updatedStoredUser2",R),localStorage.setItem("user",JSON.stringify(R)),a(R),h(`${e}storage/${R.profile_image||""}`)},E=R=>m.includes(R),y=m.includes("super_admin"),x=m.includes("admin"),S=R=>{var O;return(O=i==null?void 0:i.permissions)==null?void 0:O.includes(R)};return C.jsx(AA.Provider,{value:{user:i,token:l,handleLogin:p,handleLogout:g,updateUser:b,hasRole:E,isSuperAdmin:y,isAdmin:x,hasPermission:S,isLoggedIn:!!i,uploadedImage:d,setUploadedImage:h},children:t})},Bj=()=>w.useContext(AA),Ku=Fn.create({baseURL:"https://api.holoin.ai/",headers:{"Content-Type":"application/json"}});Ku.interceptors.request.use(t=>{var n;console.log("interceptor-req-isDemo:",(n=JSON.parse(localStorage.getItem("user")||"{}"))==null?void 0:n.isDemo),console.log("==== AXIOS REQUEST ===="),console.log("interceptor-req-url:",t.url),console.log("interceptor-req-baseURL:",t.baseURL),console.log("interceptor-req-full:",`${t.baseURL}${t.url}`),console.log("interceptor-req-time:",Date.now());const e=localStorage.getItem("token");return e&&(t.headers.Authorization=`Bearer ${e}`),t},t=>Promise.reject(t));Ku.interceptors.response.use(t=>(console.log("==== AXIOS RESPONSE ===="),console.log(t.status),console.log(t.config.url),t),t=>{var e,n,r,i,a;return console.log("==== AXIOS ERROR ===="),console.log("interceptor-res-url",(e=t.config)==null?void 0:e.url),console.log("interceptor-res-status",(n=t.response)==null?void 0:n.status),console.log("interceptor-res-message",t.message),t.response&&((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&((a=(i=t==null?void 0:t.response)==null?void 0:i.data)==null||a.message),Promise.reject(t)});let Fj={data:""},Uj=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Fj,Ij=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Vj=/\/\*[^]*?\*\/|  +/g,iC=/\n+/g,Ro=(t,e)=>{let n="",r="",i="";for(let a in t){let l=t[a];a[0]=="@"?a[1]=="i"?n=a+" "+l+";
76":r+=a[1]=="f"?Ro(l,a):a+"{"+Ro(l,a[1]=="k"?"":e)+"}":typeof l=="object"?r+=Ro(l,e?e.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,u):u?u+" "+d:d)):a):l!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ro.p?Ro.p(a,l):a+":"+l+";")}return n+(e&&i?e+"{"+i+"}":i)+r},Ca={},kA=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+kA(t[n]);return e}return t},qj=(t,e,n,r,i)=>{let a=kA(t),l=Ca[a]||(Ca[a]=(d=>{let h=0,p=11;for(;h<d.length;)p=101*p+d.charCodeAt(h++)>>>0;return"go"+p})(a));if(!Ca[l]){let d=a!==t?t:(h=>{let p,m,g=[{}];for(;p=Ij.exec(h.replace(Vj,""));)p[4]?g.shift():p[3]?(m=p[3].replace(iC," ").trim(),g.unshift(g[0][m]=g[0][m]||{})):g[0][p[1]]=p[2].replace(iC," ").trim();return g[0]})(t);Ca[l]=Ro(i?{["@keyframes "+l]:d}:d,n?"":"."+l)}let u=n&&Ca.g?Ca.g:null;return n&&(Ca.g=Ca[l]),((d,h,p,m)=>{m?h.data=h.data.replace(m,d):h.data.indexOf(d)===-1&&(h.data=p?d+h.data:h.data+d)})(Ca[l],e,r,u),l},Gj=(t,e,n)=>t.reduce((r,i,a)=>{let l=e[a];if(l&&l.call){let u=l(n),d=u&&u.props&&u.props.className||/^go/.test(u)&&u;l=d?"."+d:u&&typeof u=="object"?u.props?"":Ro(u,""):u===!1?"":u}return r+i+(l??"")},"");function $g(t){let e=this||{},n=t.call?t(e.p):t;return qj(n.unshift?n.raw?Gj(n,[].slice.call(arguments,1),e.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(e.p):i),{}):n,Uj(e.target),e.g,e.o,e.k)}let MA,Kb,Qb;$g.bind({g:1});let ja=$g.bind({k:1});function Xj(t,e,n,r){Ro.p=e,MA=t,Kb=n,Qb=r}function qo(t,e){let n=this||{};return function(){let r=arguments;function i(a,l){let u=Object.assign({},a),d=u.className||i.className;n.p=Object.assign({theme:Kb&&Kb()},u),n.o=/ *go\d+/.test(d),u.className=$g.apply(n,r)+(d?" "+d:"");let h=t;return t[0]&&(h=u.as||t,delete u.as),Qb&&h[0]&&Qb(u),MA(h,u)}return i}}var Yj=t=>typeof t=="function",Km=(t,e)=>Yj(t)?t(e):t,Kj=(()=>{let t=0;return()=>(++t).toString()})(),NA=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),Qj=20,DA=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,Qj)};case 1:return{...t,toasts:t.toasts.map(a=>a.id===e.toast.id?{...a,...e.toast}:a)};case 2:let{toast:n}=e;return DA(t,{type:t.toasts.find(a=>a.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=e;return{...t,toasts:t.toasts.map(a=>a.id===r||r===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(a=>a.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},Sm=[],Tl={toasts:[],pausedAt:void 0},rc=t=>{Tl=DA(Tl,t),Sm.forEach(e=>{e(Tl)})},Wj={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Zj=(t={})=>{let[e,n]=w.useState(Tl),r=w.useRef(Tl);w.useEffect(()=>(r.current!==Tl&&n(Tl),Sm.push(n),()=>{let a=Sm.indexOf(n);a>-1&&Sm.splice(a,1)}),[]);let i=e.toasts.map(a=>{var l,u,d;return{...t,...t[a.type],...a,removeDelay:a.removeDelay||((l=t[a.type])==null?void 0:l.removeDelay)||(t==null?void 0:t.removeDelay),duration:a.duration||((u=t[a.type])==null?void 0:u.duration)||(t==null?void 0:t.duration)||Wj[a.type],style:{...t.style,...(d=t[a.type])==null?void 0:d.style,...a.style}}});return{...e,toasts:i}},Jj=(t,e="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Kj()}),uh=t=>(e,n)=>{let r=Jj(e,t,n);return rc({type:2,toast:r}),r.id},fr=(t,e)=>uh("blank")(t,e);fr.error=uh("error");fr.success=uh("success");fr.loading=uh("loading");fr.custom=uh("custom");fr.dismiss=t=>{rc({type:3,toastId:t})};fr.remove=t=>rc({type:4,toastId:t});fr.promise=(t,e,n)=>{let r=fr.loading(e.loading,{...n,...n==null?void 0:n.loading});return typeof t=="function"&&(t=t()),t.then(i=>{let a=e.success?Km(e.success,i):void 0;return a?fr.success(a,{id:r,...n,...n==null?void 0:n.success}):fr.dismiss(r),i}).catch(i=>{let a=e.error?Km(e.error,i):void 0;a?fr.error(a,{id:r,...n,...n==null?void 0:n.error}):fr.dismiss(r)}),t};var eL=(t,e)=>{rc({type:1,toast:{id:t,height:e}})},tL=()=>{rc({type:5,time:Date.now()})},Ef=new Map,nL=1e3,rL=(t,e=nL)=>{if(Ef.has(t))return;let n=setTimeout(()=>{Ef.delete(t),rc({type:4,toastId:t})},e);Ef.set(t,n)},iL=t=>{let{toasts:e,pausedAt:n}=Zj(t);w.useEffect(()=>{if(n)return;let a=Date.now(),l=e.map(u=>{if(u.duration===1/0)return;let d=(u.duration||0)+u.pauseDuration-(a-u.createdAt);if(d<0){u.visible&&fr.dismiss(u.id);return}return setTimeout(()=>fr.dismiss(u.id),d)});return()=>{l.forEach(u=>u&&clearTimeout(u))}},[e,n]);let r=w.useCallback(()=>{n&&rc({type:6,time:Date.now()})},[n]),i=w.useCallback((a,l)=>{let{reverseOrder:u=!1,gutter:d=8,defaultPosition:h}=l||{},p=e.filter(b=>(b.position||h)===(a.position||h)&&b.height),m=p.findIndex(b=>b.id===a.id),g=p.filter((b,E)=>E<m&&b.visible).length;return p.filter(b=>b.visible).slice(...u?[g+1]:[0,g]).reduce((b,E)=>b+(E.height||0)+d,0)},[e]);return w.useEffect(()=>{e.forEach(a=>
vendor: 4,339 bytes, lines 76-247
76{if(a.dismissed)rL(a.id,a.removeDelay);else{let l=Ef.get(a.id);l&&(clearTimeout(l),Ef.delete(a.id))}})},[e]),{toasts:e,handlers:{updateHeight:eL,startPause:tL,endPause:r,calculateOffset:i}}},sL=ja`
77from {
78  transform: scale(0) rotate(45deg);
79	opacity: 0;
80}
81to {
82 transform: scale(1) rotate(45deg);
83  opacity: 1;
84}`,aL=ja`
85from {
86  transform: scale(0);
87  opacity: 0;
88}
89to {
90  transform: scale(1);
91  opacity: 1;
92}`,oL=ja`
93from {
94  transform: scale(0) rotate(90deg);
95	opacity: 0;
96}
97to {
98  transform: scale(1) rotate(90deg);
99	opacity: 1;
100}`,lL=qo("div")`
101  width: 20px;
102  opacity: 0;
103  height: 20px;
104  border-radius: 10px;
105  background: ${t=>t.primary||"#ff4b4b"};
106  position: relative;
107  transform: rotate(45deg);
108
109  animation: ${sL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
110    forwards;
111  animation-delay: 100ms;
112
113  &:after,
114  &:before {
115    content: '';
116    animation: ${aL} 0.15s ease-out forwards;
117    animation-delay: 150ms;
118    position: absolute;
119    border-radius: 3px;
120    opacity: 0;
121    background: ${t=>t.secondary||"#fff"};
122    bottom: 9px;
123    left: 4px;
124    height: 2px;
125    width: 12px;
126  }
127
128  &:before {
129    animation: ${oL} 0.15s ease-out forwards;
130    animation-delay: 180ms;
131    transform: rotate(90deg);
132  }
133`,cL=ja`
134  from {
135    transform: rotate(0deg);
136  }
137  to {
138    transform: rotate(360deg);
139  }
140`,uL=qo("div")`
141  width: 12px;
142  height: 12px;
143  box-sizing: border-box;
144  border: 2px solid;
145  border-radius: 100%;
146  border-color: ${t=>t.secondary||"#e0e0e0"};
147  border-right-color: ${t=>t.primary||"#616161"};
148  animation: ${cL} 1s linear infinite;
149`,dL=ja`
150from {
151  transform: scale(0) rotate(45deg);
152	opacity: 0;
153}
154to {
155  transform: scale(1) rotate(45deg);
156	opacity: 1;
157}`,fL=ja`
1580% {
159	height: 0;
160	width: 0;
161	opacity: 0;
162}
16340% {
164  height: 0;
165	width: 6px;
166	opacity: 1;
167}
168100% {
169  opacity: 1;
170  height: 10px;
171}`,hL=qo("div")`
172  width: 20px;
173  opacity: 0;
174  height: 20px;
175  border-radius: 10px;
176  background: ${t=>t.primary||"#61d345"};
177  position: relative;
178  transform: rotate(45deg);
179
180  animation: ${dL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
181    forwards;
182  animation-delay: 100ms;
183  &:after {
184    content: '';
185    box-sizing: border-box;
186    animation: ${fL} 0.2s ease-out forwards;
187    opacity: 0;
188    animation-delay: 200ms;
189    position: absolute;
190    border-right: 2px solid;
191    border-bottom: 2px solid;
192    border-color: ${t=>t.secondary||"#fff"};
193    bottom: 6px;
194    left: 6px;
195    height: 10px;
196    width: 6px;
197  }
198`,pL=qo("div")`
199  position: absolute;
200`,mL=qo("div")`
201  position: relative;
202  display: flex;
203  justify-content: center;
204  align-items: center;
205  min-width: 20px;
206  min-height: 20px;
207`,gL=ja`
208from {
209  transform: scale(0.6);
210  opacity: 0.4;
211}
212to {
213  transform: scale(1);
214  opacity: 1;
215}`,vL=qo("div")`
216  position: relative;
217  transform: scale(0.6);
218  opacity: 0.4;
219  min-width: 20px;
220  animation: ${gL} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
221    forwards;
222`,yL=({toast:t})=>{let{icon:e,type:n,iconTheme:r}=t;return e!==void 0?typeof e=="string"?w.createElement(vL,null,e):e:n==="blank"?null:w.createElement(mL,null,w.createElement(uL,{...r}),n!=="loading"&&w.createElement(pL,null,n==="error"?w.createElement(lL,{...r}):w.createElement(hL,{...r})))},bL=t=>`
2230% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;}
224100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
225`,xL=t=>`
2260% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
227100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;}
228`,wL="0%{opacity:0;} 100%{opacity:1;}",SL="0%{opacity:1;} 100%{opacity:0;}",_L=qo("div")`
229  display: flex;
230  align-items: center;
231  background: #fff;
232  color: #363636;
233  line-height: 1.3;
234  will-change: transform;
235  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
236  max-width: 350px;
237  pointer-events: auto;
238  padding: 8px 10px;
239  border-radius: 8px;
240`,EL=qo("div")`
241  display: flex;
242  justify-content: center;
243  margin: 4px 10px;
244  color: inherit;
245  flex: 1 1 auto;
246  white-space: pre-line;
247`,CL=(t,e)=>{let n=t.includes("top")?1:-1,[r,i]=NA()?[wL,SL]:[bL(n),xL(n)];return{animation:e?`${ja(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ja(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},RL=w.memo(({toast:t,position:e,style:n,children:r})=>{let i=t.height?CL(t.position||e||"top-center",t.visible):{opacity:0}
247,a=w.createElement(yL,{toast:t}),l=w.createElement(EL,{...t.ariaProps},Km(t.message,t));return w.createElement(_L,{className:t.className,style:{...i,...n,...t.style}},typeof r=="function"?r({icon:a,message:l}):w.createElement(w.Fragment,null,a,l))});Xj(w.createElement);var TL=({id:t,className:e,style:n,onHeightUpdate:r,children:i})=>{let a=w.useCallback(l=>{if(l){let u=()=>{let d=l.getBoundingClientRect().height;r(t,d)};u(),new MutationObserver(u).observe(l,{subtree:!0,childList:!0,characterData:!0})}},[t,r]);return w.createElement("div",{ref:a,className:e,style:n},i)},OL=(t,e)=>{let n=t.includes("top"),r=n?{top:0}:{bottom:0},i=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:NA()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(n?1:-1)}px)`,...r,...i}},AL=$g`
248  z-index: 9999;
249  > * {
250    pointer-events: auto;
251  }
252`,Xp=16,Iee=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:l})=>{let{toasts:u,handlers:d}=iL(n);return w.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Xp,left:Xp,right:Xp,bottom:Xp,pointerEvents:"none",...a},className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},u.map(h=>{let p=h.position||e,m=d.calculateOffset(h,{reverseOrder:t,gutter:r,defaultPosition:e}),g=OL(p,m);return w.createElement(TL,{id:h.id,key:h.id,onHeightUpdate:d.updateHeight,className:h.visible?AL:"",style:g},h.type==="custom"?Km(h.message,h):i?i(h):w.createElement(RL,{toast:h,position:p}))}))},Vee=fr;const Xl=t=>{var e,n;return console.error("API Error:",t),{error:!0,message:((n=(e=t==null?void 0:t.response)==null?void 0:e.data)==null?void 0:n.message)||"Something went wrong"}};async function Nf(t,e={}){try{return(await Ku.get(t,{params:e})).data}catch(n){return Xl(n)}}async function V0(t,e={},n={},r=!0){try{const i=Ku.post(t,e,n),a=r?await fr.promise(i,{loading:"Processing...",success:l=>{var u,d,h;return(u=l==null?void 0:l.data)!=null&&u.success?((d=l==null?void 0:l.data)==null?void 0:d.message)||"Successfully completed!":((h=l==null?void 0:l.data)==null?void 0:h.message)||"Something went wrong"},error:l=>{var u,d;return((d=(u=l==null?void 0:l.response)==null?void 0:u.data)==null?void 0:d.message)||"Something went wrong"}}):await i;return(a==null?void 0:a.data)||Xl(new Error("Unexpected error"))}catch(i){return Xl(i)}}async function sC(t,e={},n={},r=!0){try{const i=Ku.put(t,e,n),a=r?await fr.promise(i,{loading:"Updating...",success:l=>{var u,d,h;return(u=l==null?void 0:l.data)!=null&&u.success?((d=l==null?void 0:l.data)==null?void 0:d.message)||"Successfully updated!":((h=l==null?void 0:l.data)==null?void 0:h.message)||"Update failed"},error:l=>{var u,d;return((d=(u=l==null?void 0:l.response)==null?void 0:u.data)==null?void 0:d.message)||"Update failed"}}):await i;return(a==null?void 0:a.data)||Xl(new Error("Unexpected error"))}catch(i){return Xl(i)}}async function kL(t,e={},n=!0){try{const r=Ku.delete(t,e),i=n?await fr.promise(r,{loading:"Deleting...",success:a=>{var l,u,d;return(l=a==null?void 0:a.data)!=null&&l.success?((u=a==null?void 0:a.data)==null?void 0:u.message)||"Successfully deleted!":((d=a==null?void 0:a.data)==null?void 0:d.message)||"Delete failed"},error:a=>{var l,u;return((u=(l=a==null?void 0:a.response)==null?void 0:l.data)==null?void 0:u.message)||"Delete failed"}}):await r;return(i==null?void 0:i.data)||Xl(new Error("Unexpected error"))}catch(r){return Xl(r)}}/**
253 * @license lucide-react v0.475.0 - ISC
254 *
255 * This source code is licensed under the ISC license.
256 * See the LICENSE file in the root directory of this source tree.
257 */const ML=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),PA=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/**
258 * @license lucide-react v0.475.0 - ISC
259 *
260 * This source code is licensed under the ISC license.
261 * See the LICENSE file in the root directory of this source tree.
262 */var NL={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
263 * @license lucide-react v0.475.0 - ISC
264 *
265 * This source code is licensed under the ISC license.
266 * See the LICENSE file in the root directory of this source tree.
267 */const DL=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:l,...u},d)=>w.createElement("svg",{ref:d,...NL,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:PA("lucide",i),...u},[...l.map(([h,p])=>w.createElement(h,p)),...Array.isArray(a)?a:[a]]));/**
268 * @license lucide-react v0.475.0 - ISC
269 *
270 * This source code is licensed under the ISC license.
271 * See the LICENSE file in the root directory of this source tree.
272 */const Pe=(t,e)=>{const n=w.forwardRef(({className:r,...i},a)=>w.createElement(DL,{ref:a,iconNode:e,className:PA(`lucide-${ML(t)}`,r),...i}));return n.displayName=`${t}`,n};/**
273 * @license lucide-react v0.475.0 - ISC
274 *
275 * This source code is licensed under the ISC license.
276 * See the LICENSE file in the root directory of this source tree.
277 */const PL=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
277-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],qee=Pe("Activity",PL);/**
278 * @license lucide-react v0.475.0 - ISC
279 *
280 * This source code is licensed under the ISC license.
281 * See the LICENSE file in the root directory of this source tree.
282 */const jL=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Gee=Pe("ArrowDown",jL);/**
283 * @license lucide-react v0.475.0 - ISC
284 *
285 * This source code is licensed under the ISC license.
286 * See the LICENSE file in the root directory of this source tree.
287 */const LL=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Xee=Pe("ArrowLeft",LL);/**
288 * @license lucide-react v0.475.0 - ISC
289 *
290 * This source code is licensed under the ISC license.
291 * See the LICENSE file in the root directory of this source tree.
292 */const zL=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Yee=Pe("ArrowRight",zL);/**
293 * @license lucide-react v0.475.0 - ISC
294 *
295 * This source code is licensed under the ISC license.
296 * See the LICENSE file in the root directory of this source tree.
297 */const $L=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Kee=Pe("ArrowUp",$L);/**
298 * @license lucide-react v0.475.0 - ISC
299 *
300 * This source code is licensed under the ISC license.
301 * See the LICENSE file in the root directory of this source tree.
302 */const HL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Qee=Pe("Bell",HL);/**
303 * @license lucide-react v0.475.0 - ISC
304 *
305 * This source code is licensed under the ISC license.
306 * See the LICENSE file in the root directory of this source tree.
307 */const BL=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Wee=Pe("BookOpen",BL);/**
308 * @license lucide-react v0.475.0 - ISC
309 *
310 * This source code is licensed under the ISC license.
311 * See the LICENSE file in the root directory of this source tree.
312 */const FL=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],Zee=Pe("Box",FL);/**
313 * @license lucide-react v0.475.0 - ISC
314 *
315 * This source code is licensed under the ISC license.
316 * See the LICENSE file in the root directory of this source tree.
317 */const UL=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Jee=Pe("BrainCircuit",UL);/**
318 * @license lucide-react v0.475.0 - ISC
319 *
320 * This source code is licensed under the ISC license.
321 * See the LICENSE file in the root directory of this source tree.
322 */const IL=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],ete=Pe("Building2",IL);/**
323 * @license lucide-react v0.475.0 - ISC
324 *
325 * This source code is licensed under the ISC license.
326 * See the LICENSE file in the root directory of this source tree.
327 */const VL=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]];Pe("ChartLine",VL);/**
328 * @license lucide-react v0.475.0 - ISC
329 *
330 * This source code is licensed under the ISC license.
331 * See the LICENSE file in the root directory of this source tree.
332 */const qL=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],GL=Pe("Check",qL);/**
333 * @license lucide-react v0.475.0 - ISC
334 *
335 * This source code is licensed under the ISC license.
336 * See the LICENSE file in the root directory of this source tree.
337 */const XL=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],YL=Pe("ChevronDown",XL);/**
338 * @license lucide-react v0.475.0 - ISC
339 *
340 * This source code is licensed under the ISC license.
341 * See the LICENSE file in the root directory of this source tree.
342 */const KL=[["path",{d:"m17 18-6-6 6-6",key:"1yerx2"}],["path",{d:"M7 6v12",key:"1p53r6"}]],tte=Pe("ChevronFirst",KL);/**
343 * @license lucide-react v0.475.0 - ISC
344 *
345 * This source code is licensed under the ISC license.
346 * See the LICENSE file in the root directory of this source tree.
347 */const QL=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nte=Pe("ChevronLeft",QL);/**
348 * @license lucide-react v0.475.0 - ISC
349 *
350 * This source code is licensed under the ISC license.
351 * See the LICENSE file in the root directory of this source tree.
352 */const WL=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rte=Pe("ChevronRight",WL);/**
353 * @license lucide-react v0.475.0 - ISC
354 *
355 * This source code is licensed under the ISC license.
356 * See the LICENSE file in the root directory of this source tree.
357 */const ZL=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ite=Pe("ChevronUp",ZL);/**
358 * @license lucide-react v0.475.0 - ISC
359 *
360 * This source code is licensed under the ISC license.
361 * See the LICENSE file in the root directory of this source tree.
362 */const JL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ste=Pe("CircleAlert",JL);/**
363 * @license lucide-react v0.475.0 - ISC
364 *
365 * This source code is licensed under the ISC license.
366 * See the LICENSE file in the root directory of this source tree.
367 */const ez=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ate=Pe("CircleCheckBig",ez);/**
368 * @license lucide-react v0.475.0 - ISC
369 *
370 * This source code is licensed under the ISC license.
371 * See the LICENSE file in the root directory of this source tree.
372 */const tz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ote=Pe("CircleCheck",tz);/**
373 * @license lucide-react v0.475.0 - ISC
374 *
375 * This source code is licensed under the ISC license.
376 * See the LICENSE file in the root directory of this source tree.
377 */const nz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]],lte=Pe("CirclePlay",nz);/**
378 * @license lucide-react v0.475.0 - ISC
379 *
380 * This source code is licensed under the ISC license.
381 * See the LICENSE file in the root directory of this source tree.
382 */const rz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],cte=Pe("CircleX",rz);/**
383 * @license lucide-react v0.475.0 - ISC
384 *
385 * This source code is licensed under the ISC license.
386 * See the LICENSE file in the root directory of this source tree.
387 */const iz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ute=Pe("Clock",iz);/**
388 * @license lucide-react v0.475.0 - ISC
389 *
390 * This source code is licensed under the ISC license.
391 * See the LICENSE file in the root directory of this source tree.
392 */const sz=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],dte=Pe("Cloud",sz);/**
393 * @license lucide-react v0.475.0 - ISC
394 *
395 * This source code is licensed under the ISC license.
396 * See the LICENSE file in the root directory of this source tree.
397 */const az=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],fte=Pe("CodeXml",az);
397/**
398 * @license lucide-react v0.475.0 - ISC
399 *
400 * This source code is licensed under the ISC license.
401 * See the LICENSE file in the root directory of this source tree.
402 */const oz=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],hte=Pe("Code",oz);/**
403 * @license lucide-react v0.475.0 - ISC
404 *
405 * This source code is licensed under the ISC license.
406 * See the LICENSE file in the root directory of this source tree.
407 */const lz=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],pte=Pe("Cpu",lz);/**
408 * @license lucide-react v0.475.0 - ISC
409 *
410 * This source code is licensed under the ISC license.
411 * See the LICENSE file in the root directory of this source tree.
412 */const cz=[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]],mte=Pe("Droplet",cz);/**
413 * @license lucide-react v0.475.0 - ISC
414 *
415 * This source code is licensed under the ISC license.
416 * See the LICENSE file in the root directory of this source tree.
417 */const uz=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],gte=Pe("Droplets",uz);/**
418 * @license lucide-react v0.475.0 - ISC
419 *
420 * This source code is licensed under the ISC license.
421 * See the LICENSE file in the root directory of this source tree.
422 */const dz=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],vte=Pe("EllipsisVertical",dz);/**
423 * @license lucide-react v0.475.0 - ISC
424 *
425 * This source code is licensed under the ISC license.
426 * See the LICENSE file in the root directory of this source tree.
427 */const fz=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],yte=Pe("Ellipsis",fz);/**
428 * @license lucide-react v0.475.0 - ISC
429 *
430 * This source code is licensed under the ISC license.
431 * See the LICENSE file in the root directory of this source tree.
432 */const hz=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],bte=Pe("EyeOff",hz);/**
433 * @license lucide-react v0.475.0 - ISC
434 *
435 * This source code is licensed under the ISC license.
436 * See the LICENSE file in the root directory of this source tree.
437 */const pz=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xte=Pe("Eye",pz);/**
438 * @license lucide-react v0.475.0 - ISC
439 *
440 * This source code is licensed under the ISC license.
441 * See the LICENSE file in the root directory of this source tree.
442 */const mz=[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]],wte=Pe("Factory",mz);/**
443 * @license lucide-react v0.475.0 - ISC
444 *
445 * This source code is licensed under the ISC license.
446 * See the LICENSE file in the root directory of this source tree.
447 */const gz=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ste=Pe("FileText",gz);/**
448 * @license lucide-react v0.475.0 - ISC
449 *
450 * This source code is licensed under the ISC license.
451 * See the LICENSE file in the root directory of this source tree.
452 */const vz=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}
452],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]];Pe("Fingerprint",vz);/**
453 * @license lucide-react v0.475.0 - ISC
454 *
455 * This source code is licensed under the ISC license.
456 * See the LICENSE file in the root directory of this source tree.
457 */const yz=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],_te=Pe("Flame",yz);/**
458 * @license lucide-react v0.475.0 - ISC
459 *
460 * This source code is licensed under the ISC license.
461 * See the LICENSE file in the root directory of this source tree.
462 */const bz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Ete=Pe("Globe",bz);/**
463 * @license lucide-react v0.475.0 - ISC
464 *
465 * This source code is licensed under the ISC license.
466 * See the LICENSE file in the root directory of this source tree.
467 */const xz=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Cte=Pe("GraduationCap",xz);/**
468 * @license lucide-react v0.475.0 - ISC
469 *
470 * This source code is licensed under the ISC license.
471 * See the LICENSE file in the root directory of this source tree.
472 */const wz=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Rte=Pe("Hash",wz);/**
473 * @license lucide-react v0.475.0 - ISC
474 *
475 * This source code is licensed under the ISC license.
476 * See the LICENSE file in the root directory of this source tree.
477 */const Sz=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],Tte=Pe("HeartPulse",Sz);/**
478 * @license lucide-react v0.475.0 - ISC
479 *
480 * This source code is licensed under the ISC license.
481 * See the LICENSE file in the root directory of this source tree.
482 */const _z=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Ote=Pe("House",_z);/**
483 * @license lucide-react v0.475.0 - ISC
484 *
485 * This source code is licensed under the ISC license.
486 * See the LICENSE file in the root directory of this source tree.
487 */const Ez=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ate=Pe("Layers",Ez);/**
488 * @license lucide-react v0.475.0 - ISC
489 *
490 * This source code is licensed under the ISC license.
491 * See the LICENSE file in the root directory of this source tree.
492 */const Cz=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],kte=Pe("LayoutDashboard",Cz);/**
493 * @license lucide-react v0.475.0 - ISC
494 *
495 * This source code is licensed under the ISC license.
496 * See the LICENSE file in the root directory of this source tree.
497 */const Rz=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Mte=Pe("LayoutGrid",Rz);/**
498 * @license lucide-react v0.475.0 - ISC
499 *
500 * This source code is licensed under the ISC license.
501 * See the LICENSE file in the root directory of this source tree.
502 */const Tz=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Nte=Pe("Leaf",Tz);/**
503 * @license lucide-react v0.475.0 - ISC
504 *
505 * This source code is licensed under the ISC license.
506 * See the LICENSE file in the root directory of this source tree.
507 */const Oz=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Dte=Pe("Lightbulb",Oz);/**
508 * @license lucide-react v0.475.0 - ISC
509 *
510 * This source code is licensed under the ISC license.
511 * See the LICENSE file in the root directory of this source tree.
512 */const Az=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pte=Pe("LoaderCircle",Az);/**
513 * @license lucide-react v0.475.0 - ISC
514 *
515 * This source code is licensed under the ISC license.
516 * See the LICENSE file in the root directory of this source tree.
517 */const kz=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],jte=Pe("Lock",kz);/**
518 * @license lucide-react v0.475.0 - ISC
519 *
520 * This source code is licensed under the ISC license.
521 * See the LICENSE file in the root directory of this source tree.
522 */const Mz=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Lte=Pe("Mail",Mz);/**
523 * @license lucide-react v0.475.0 - ISC
524 *
525 * This source code is licensed under the ISC license.
526 * See the LICENSE file in the root directory of this source tree.
527 */const Nz=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],zte=Pe("MapPin",Nz);/**
528 * @license lucide-react v0.475.0 - ISC
529 *
530 * This source code is licensed under the ISC license.
531 * See the LICENSE file in the root directory of this source tree.
532 */const Dz=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],$te=Pe("Map",Dz);
532/**
533 * @license lucide-react v0.475.0 - ISC
534 *
535 * This source code is licensed under the ISC license.
536 * See the LICENSE file in the root directory of this source tree.
537 */const Pz=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Hte=Pe("Menu",Pz);/**
538 * @license lucide-react v0.475.0 - ISC
539 *
540 * This source code is licensed under the ISC license.
541 * See the LICENSE file in the root directory of this source tree.
542 */const jz=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Bte=Pe("MessageSquare",jz);/**
543 * @license lucide-react v0.475.0 - ISC
544 *
545 * This source code is licensed under the ISC license.
546 * See the LICENSE file in the root directory of this source tree.
547 */const Lz=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],Fte=Pe("Move",Lz);/**
548 * @license lucide-react v0.475.0 - ISC
549 *
550 * This source code is licensed under the ISC license.
551 * See the LICENSE file in the root directory of this source tree.
552 */const zz=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Ute=Pe("Network",zz);/**
553 * @license lucide-react v0.475.0 - ISC
554 *
555 * This source code is licensed under the ISC license.
556 * See the LICENSE file in the root directory of this source tree.
557 */const $z=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M10.4 21.9a10 10 0 0 0 9.941-15.416",key:"eohfx2"}],["path",{d:"M13.5 2.1a10 10 0 0 0-9.841 15.416",key:"19pvbm"}]],Ite=Pe("Orbit",$z);/**
558 * @license lucide-react v0.475.0 - ISC
559 *
560 * This source code is licensed under the ISC license.
561 * See the LICENSE file in the root directory of this source tree.
562 */const Hz=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Vte=Pe("Package",Hz);/**
563 * @license lucide-react v0.475.0 - ISC
564 *
565 * This source code is licensed under the ISC license.
566 * See the LICENSE file in the root directory of this source tree.
567 */const Bz=[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]];Pe("PenTool",Bz);/**
568 * @license lucide-react v0.475.0 - ISC
569 *
570 * This source code is licensed under the ISC license.
571 * See the LICENSE file in the root directory of this source tree.
572 */const Fz=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],qte=Pe("Phone",Fz);/**
573 * @license lucide-react v0.475.0 - ISC
574 *
575 * This source code is licensed under the ISC license.
576 * See the LICENSE file in the root directory of this source tree.
577 */const Uz=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],Gte=Pe("Plane",Uz);/**
578 * @license lucide-react v0.475.0 - ISC
579 *
580 * This source code is licensed under the ISC license.
581 * See the LICENSE file in the root directory of this source tree.
582 */const Iz=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Xte=Pe("Play",Iz);
582/**
583 * @license lucide-react v0.475.0 - ISC
584 *
585 * This source code is licensed under the ISC license.
586 * See the LICENSE file in the root directory of this source tree.
587 */const Vz=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Yte=Pe("Plus",Vz);/**
588 * @license lucide-react v0.475.0 - ISC
589 *
590 * This source code is licensed under the ISC license.
591 * See the LICENSE file in the root directory of this source tree.
592 */const qz=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],Kte=Pe("Radio",qz);/**
593 * @license lucide-react v0.475.0 - ISC
594 *
595 * This source code is licensed under the ISC license.
596 * See the LICENSE file in the root directory of this source tree.
597 */const Gz=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Qte=Pe("Search",Gz);/**
598 * @license lucide-react v0.475.0 - ISC
599 *
600 * This source code is licensed under the ISC license.
601 * See the LICENSE file in the root directory of this source tree.
602 */const Xz=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Wte=Pe("Send",Xz);/**
603 * @license lucide-react v0.475.0 - ISC
604 *
605 * This source code is licensed under the ISC license.
606 * See the LICENSE file in the root directory of this source tree.
607 */const Yz=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Zte=Pe("Settings",Yz);/**
608 * @license lucide-react v0.475.0 - ISC
609 *
610 * This source code is licensed under the ISC license.
611 * See the LICENSE file in the root directory of this source tree.
612 */const Kz=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Jte=Pe("Share2",Kz);/**
613 * @license lucide-react v0.475.0 - ISC
614 *
615 * This source code is licensed under the ISC license.
616 * See the LICENSE file in the root directory of this source tree.
617 */const Qz=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]];Pe("ShieldAlert",Qz);/**
618 * @license lucide-react v0.475.0 - ISC
619 *
620 * This source code is licensed under the ISC license.
621 * See the LICENSE file in the root directory of this source tree.
622 */const Wz=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ene=Pe("ShieldCheck",Wz);/**
623 * @license lucide-react v0.475.0 - ISC
624 *
625 * This source code is licensed under the ISC license.
626 * See the LICENSE file in the root directory of this source tree.
627 */const Zz=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],tne=Pe("Shield",Zz);/**
628 * @license lucide-react v0.475.0 - ISC
629 *
630 * This source code is licensed under the ISC license.
631 * See the LICENSE file in the root directory of this source tree.
632 */const Jz=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],nne=Pe("Smartphone",Jz);/**
633 * @license lucide-react v0.475.0 - ISC
634 *
635 * This source code is licensed under the ISC license.
636 * See the LICENSE file in the root directory of this source tree.
637 */const e$=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],rne=Pe("Sparkles",e$);/**
638 * @license lucide-react v0.475.0 - ISC
639 *
640 * This source code is licensed under the ISC license.
641 * See the LICENSE file in the root directory of this source tree.
642 */const t$=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],ine=Pe("SquarePen",t$);/**
643 * @license lucide-react v0.475.0 - ISC
644 *
645 * This source code is licensed under the ISC license.
646 * See the LICENSE file in the root directory of this source tree.
647 */const n$=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],sne=Pe("Terminal",n$);/**
648 * @license lucide-react v0.475.0 - ISC
649 *
650 * This source code is licensed under the ISC license.
651 * See the LICENSE file in the root directory of this source tree.
652 */const r$=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],ane=Pe("Thermometer",r$);/**
653 * @license lucide-react v0.475.0 - ISC
654 *
655 * This source code is licensed under the ISC license.
656 * See the LICENSE file in the root directory of this source tree.
657 */const i$=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
657],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],s$=Pe("Trash2",i$);/**
658 * @license lucide-react v0.475.0 - ISC
659 *
660 * This source code is licensed under the ISC license.
661 * See the LICENSE file in the root directory of this source tree.
662 */const a$=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],one=Pe("Trash",a$);/**
663 * @license lucide-react v0.475.0 - ISC
664 *
665 * This source code is licensed under the ISC license.
666 * See the LICENSE file in the root directory of this source tree.
667 */const o$=[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]],lne=Pe("TrendingDown",o$);/**
668 * @license lucide-react v0.475.0 - ISC
669 *
670 * This source code is licensed under the ISC license.
671 * See the LICENSE file in the root directory of this source tree.
672 */const l$=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],cne=Pe("TriangleAlert",l$);/**
673 * @license lucide-react v0.475.0 - ISC
674 *
675 * This source code is licensed under the ISC license.
676 * See the LICENSE file in the root directory of this source tree.
677 */const c$=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]];Pe("Truck",c$);/**
678 * @license lucide-react v0.475.0 - ISC
679 *
680 * This source code is licensed under the ISC license.
681 * See the LICENSE file in the root directory of this source tree.
682 */const u$=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],une=Pe("UserPlus",u$);/**
683 * @license lucide-react v0.475.0 - ISC
684 *
685 * This source code is licensed under the ISC license.
686 * See the LICENSE file in the root directory of this source tree.
687 */const d$=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],dne=Pe("User",d$);/**
688 * @license lucide-react v0.475.0 - ISC
689 *
690 * This source code is licensed under the ISC license.
691 * See the LICENSE file in the root directory of this source tree.
692 */const f$=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],fne=Pe("UsersRound",f$);/**
693 * @license lucide-react v0.475.0 - ISC
694 *
695 * This source code is licensed under the ISC license.
696 * See the LICENSE file in the root directory of this source tree.
697 */const h$=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],hne=Pe("Users",h$);/**
698 * @license lucide-react v0.475.0 - ISC
699 *
700 * This source code is licensed under the ISC license.
701 * See the LICENSE file in the root directory of this source tree.
702 */const p$=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],pne=Pe("Wifi",p$);/**
703 * @license lucide-react v0.475.0 - ISC
704 *
705 * This source code is licensed under the ISC license.
706 * See the LICENSE file in the root directory of this source tree.
707 */const m$=[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]],mne=Pe("Wind",m$);/**
708 * @license lucide-react v0.475.0 - ISC
709 *
710 * This source code is licensed under the ISC license.
711 * See the LICENSE file in the root directory of this source tree.
712 */const g$=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],gne=Pe("Workflow",g$);/**
713 * @license lucide-react v0.475.0 - ISC
714 *
715 * This source code is licensed under the ISC license.
716 * See the LICENSE file in the root directory of this source tree.
717 */const v$=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],vne=Pe("Wrench",v$);/**
718 * @license lucide-react v0.475.0 - ISC
719 *
720 * This source code is licensed under the ISC license.
721 * See the LICENSE file in the root directory of this source tree.
722 */const y$=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yne=Pe("X",y$);/**
723 * @license lucide-react v0.475.0 - ISC
724 *
725 * This source code is licensed under the ISC license.
726 * See the LICENSE file in the root directory of this source tree.
727 */const b$=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],bne=Pe("Zap",b$);var q0={exports:{}},G0,aC;function x$(){if(aC)return G0;aC=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return G0=t,G0}var X0,oC;function w$(){if(oC)return X0;oC=1;var t=x$();function e(){}function n(){}return n.resetWarningCache=e,X0=function(){function r(l,u,d,h,p,m){if(m!==t){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},X0}var lC;function S$(){return lC||(lC=1,q0.exports=w$()()),q0.exports}var _$=S$();const xne=Iu(_$);function jA(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=jA(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function vt(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=jA(t))&&(r&&(r+=" "),r+=e);return r}function Kt(t,e,n=void 0){const r={};for(const i in t){const a=t[i];let l="",u=!0;for(let d=0;d<a.length;d+=1){const h=a[d];h&&(l+=(u===!0?"":" ")+e(h),u=!1,n&&n[h]&&(l+=" "+n[h]))}r[i]=l}return r}function Yl(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function E$(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function Kx(t,e=0,n=1){return E$(t,e,n)}function C$(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Uo(t){if(t.type)return t;if(t.charAt(0)==="#")return Uo(C$(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Yl(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Yl(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const R$=t=>{const e=Uo(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},yf=(t,e)=>{try{return R$(t)}catch{return t}};function Hg(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((i,a)=>a<3?parseInt(i,10):i):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n}
727 ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function LA(t){t=Uo(t);const{values:e}=t,n=e[0],r=e[1]/100,i=e[2]/100,a=r*Math.min(i,1-i),l=(h,p=(h+n/30)%12)=>i-a*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return t.type==="hsla"&&(u+="a",d.push(e[3])),Hg({type:u,values:d})}function Wb(t){t=Uo(t);let e=t.type==="hsl"||t.type==="hsla"?Uo(LA(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function T$(t,e){const n=Wb(t),r=Wb(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(t,e){return t=Uo(t),e=Kx(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Hg(t)}function Yp(t,e,n){try{return cn(t,e)}catch{return t}}function dh(t,e){if(t=Uo(t),e=Kx(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Hg(t)}function sn(t,e,n){try{return dh(t,e)}catch{return t}}function fh(t,e){if(t=Uo(t),e=Kx(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Hg(t)}function an(t,e,n){try{return fh(t,e)}catch{return t}}function O$(t,e=.15){return Wb(t)>.5?dh(t,e):fh(t,e)}function Kp(t,e,n){try{return O$(t,e)}catch{return t}}function Ge(t){if(typeof t!="string")throw new Error(Yl(7));return t.charAt(0).toUpperCase()+t.slice(1)}function A$(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Qu=t=>A$(t)&&t!=="classes";var Y0={exports:{}},tn={};/**
728 * @license React
729 * react-is.production.js
730 *
731 * Copyright (c) Meta Platforms, Inc. and affiliates.
732 *
733 * This source code is licensed under the MIT license found in the
734 * LICENSE file in the root directory of this source tree.
735 */var cC;function k$(){if(cC)return tn;cC=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function E(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case t:switch(y=y.type,y){case n:case i:case r:case d:case h:case g:return y;default:switch(y=y&&y.$$typeof,y){case l:case u:case m:case p:return y;case a:return y;default:return x}}case e:return x}}}return tn.ContextConsumer=a,tn.ContextProvider=l,tn.Element=t,tn.ForwardRef=u,tn.Fragment=n,tn.Lazy=m,tn.Memo=p,tn.Portal=e,tn.Profiler=i,tn.StrictMode=r,tn.Suspense=d,tn.SuspenseList=h,tn.isContextConsumer=function(y){return E(y)===a},tn.isContextProvider=function(y){return E(y)===l},tn.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},tn.isForwardRef=function(y){return E(y)===u},tn.isFragment=function(y){return E(y)===n},tn.isLazy=function(y){return E(y)===m},tn.isMemo=function(y){return E(y)===p},tn.isPortal=function(y){return E(y)===e},tn.isProfiler=function(y){return E(y)===i},tn.isStrictMode=function(y){return E(y)===r},tn.isSuspense=function(y){return E(y)===d},tn.isSuspenseList=function(y){return E(y)===h},tn.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===i||y===r||y===d||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===p||y.$$typeof===l||y.$$typeof===a||y.$$typeof===u||y.$$typeof===b||y.getModuleId!==void 0)},tn.typeOf=E,tn}var uC;function M$(){return uC||(uC=1,Y0.exports=k$()),Y0.exports}var zA=M$();function Ks(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $A(t){if(w.isValidElement(t)||zA.isValidElementType(t)||!Ks(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=$A(t[n])}),e}function Gr(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Ks(t)&&Ks(e)&&Object.keys(e).forEach(i=>
735{w.isValidElement(e[i])||zA.isValidElementType(e[i])?r[i]=e[i]:Ks(e[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Ks(t[i])?r[i]=Gr(t[i],e[i],n):n.clone?r[i]=Ks(e[i])?$A(e[i]):e[i]:r[i]=e[i]}),r}function Cf(t,e){return e?Gr(t,e,{clone:!1}):t}function N$(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,u;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((u=i.match(a))==null?void 0:u[1])||0)});return n.length?n.reduce((r,i)=>{const a=e[i];return delete r[i],r[i]=a,r},{...e}):e}function D$(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function P$(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return t.containerQueries(i).up(a)}function j$(t){const e=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...u)=>e(t.breakpoints.up(...u),l),a.down=(...u)=>e(t.breakpoints.down(...u),l),a.between=(...u)=>e(t.breakpoints.between(...u),l),a.only=(...u)=>e(t.breakpoints.only(...u),l),a.not=(...u)=>{const d=e(t.breakpoints.not(...u),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=a=>(n(r,a),r);return n(i),{...t,containerQueries:i}}const Bg={xs:0,sm:600,md:900,lg:1200,xl:1536},dC={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Bg[t]}px)`},L$={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:Bg[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function Ts(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const a=r.breakpoints||dC;return e.reduce((l,u,d)=>(l[a.up(a.keys[d])]=n(e[d]),l),{})}if(typeof e=="object"){const a=r.breakpoints||dC;return Object.keys(e).reduce((l,u)=>{if(D$(a.keys,u)){const d=P$(r.containerQueries?r:L$,u);d&&(l[d]=n(e[u],u))}else if(Object.keys(a.values||Bg).includes(u)){const d=a.up(u);l[d]=n(e[u],u)}else{const d=u;l[d]=e[d]}return l},{})}return n(e)}function HA(t={}){var n;return((n=t.keys)==null?void 0:n.reduce((r,i)=>{const a=t.up(i);return r[a]={},r},{}))||{}}function BA(t,e){return t.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},e)}function z$(t,...e){const n=HA(t),r=[n,...e].reduce((i,a)=>Gr(i,a),{});return BA(Object.keys(n),r)}function $$(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((i,a)=>{a<t.length&&(n[i]=!0)}):r.forEach(i=>{t[i]!=null&&(n[i]=!0)}),n}function K0({values:t,breakpoints:e,base:n}){const r=n||$$(t,e),i=Object.keys(r);if(i.length===0)return t;let a;return i.reduce((l,u,d)=>(Array.isArray(t)?(l[u]=t[d]!=null?t[d]:t[a],a=d):typeof t=="object"?(l[u]=t[u]!=null?t[u]:t[a],a=u):l[u]=t,l),{})}function Fg(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,t);if(r!=null)return r}return e.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,t)}function Qm(t,e,n,r=n){let i;return typeof t=="function"?i=t(n):Array.isArray(t)?i=t[n]||r:i=Fg(t,n)||r,e&&(i=e(i,r,t)),i}function Un(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:i}=t,a=l=>{if(l[e]==null)return null;const u=l[e],d=l.theme,h=Fg(d,r)||{};return Ts(l,u,m=>{let g=Qm(h,i,m);return m===g&&typeof m=="string"&&(g=Qm(h,i,`${e}${m==="default"?"":Ge(m)}`,m)),n===!1?g:{[n]:g}})};return a.propTypes={},a.filterProps=[e],a}function H$(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const B$={m:"margin",p:"padding"},F$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},U$=H$(t=>{if(t.length>2)if(fC[t])t=fC[t];else return[t];const[e,n]=t.split(""),r=B$[e],i=F$[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),Qx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Qx,...Wx];function hh(t,e,n,r){const i=Fg(t,e,!0)??n;return typeof i=="number"||typeof i=="string"?a=>
735typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),u=i[l];return a>=0?u:typeof u=="number"?-u:`-${u}`}:typeof i=="function"?i:()=>{}}function Ug(t){return hh(t,"spacing",8)}function Kl(t,e){return typeof e=="string"||e==null?e:t(e)}function I$(t,e){return n=>t.reduce((r,i)=>(r[i]=Kl(e,n),r),{})}function V$(t,e,n,r){if(!e.includes(n))return null;const i=U$(n),a=I$(i,r),l=t[n];return Ts(t,l,a)}function FA(t,e){const n=Ug(t.theme);return Object.keys(t).map(r=>V$(t,e,r,n)).reduce(Cf,{})}function Tn(t){return FA(t,Qx)}Tn.propTypes={};Tn.filterProps=Qx;function On(t){return FA(t,Wx)}On.propTypes={};On.filterProps=Wx;function Ig(...t){const e=t.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>e[a]?Cf(i,e[a](r)):i,{});return n.propTypes={},n.filterProps=t.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ki(t){return typeof t!="number"?t:`${t}px solid`}function is(t,e){return Un({prop:t,themeKey:"borders",transform:e})}const q$=is("border",Ki),G$=is("borderTop",Ki),X$=is("borderRight",Ki),Y$=is("borderBottom",Ki),K$=is("borderLeft",Ki),Q$=is("borderColor"),W$=is("borderTopColor"),Z$=is("borderRightColor"),J$=is("borderBottomColor"),e8=is("borderLeftColor"),t8=is("outline",Ki),n8=is("outlineColor"),Vg=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=hh(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Kl(e,r)});return Ts(t,t.borderRadius,n)}return null};Vg.propTypes={};Vg.filterProps=["borderRadius"];Ig(q$,G$,X$,Y$,K$,Q$,W$,Z$,J$,e8,Vg,t8,n8);const qg=t=>{if(t.gap!==void 0&&t.gap!==null){const e=hh(t.theme,"spacing",8),n=r=>({gap:Kl(e,r)});return Ts(t,t.gap,n)}return null};qg.propTypes={};qg.filterProps=["gap"];const Gg=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=hh(t.theme,"spacing",8),n=r=>({columnGap:Kl(e,r)});return Ts(t,t.columnGap,n)}return null};Gg.propTypes={};Gg.filterProps=["columnGap"];const Xg=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=hh(t.theme,"spacing",8),n=r=>({rowGap:Kl(e,r)});return Ts(t,t.rowGap,n)}return null};Xg.propTypes={};Xg.filterProps=["rowGap"];const r8=Un({prop:"gridColumn"}),i8=Un({prop:"gridRow"}),s8=Un({prop:"gridAutoFlow"}),a8=Un({prop:"gridAutoColumns"}),o8=Un({prop:"gridAutoRows"}),l8=Un({prop:"gridTemplateColumns"}),c8=Un({prop:"gridTemplateRows"}),u8=Un({prop:"gridTemplateAreas"}),d8=Un({prop:"gridArea"});Ig(qg,Gg,Xg,r8,i8,s8,a8,o8,l8,c8,u8,d8);function lu(t,e){return e==="grey"?e:t}const f8=Un({prop:"color",themeKey:"palette",transform:lu}),h8=Un({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lu}),p8=Un({prop:"backgroundColor",themeKey:"palette",transform:lu});Ig(f8,h8,p8);function Ai(t){return t<=1&&t!==0?`${t*100}%`:t}const m8=Un({prop:"width",transform:Ai}),Zx=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var i,a,l,u,d;const r=((l=(a=(i=t.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||Bg[n];return r?((d=(u=t.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ai(n)}};return Ts(t,t.maxWidth,e)}return null};Zx.filterProps=["maxWidth"];const g8=Un({prop:"minWidth",transform:Ai}),v8=Un({prop:"height",transform:Ai}),y8=Un({prop:"maxHeight",transform:Ai}),b8=Un({prop:"minHeight",transform:Ai});Un({prop:"size",cssProperty:"width",transform:Ai});Un({prop:"size",cssProperty:"height",transform:Ai});const x8=Un({prop:"boxSizing"});Ig(m8,Zx,g8,v8,y8,b8,x8);const ph={border:{themeKey:"borders",transform:Ki},borderTop:{themeKey:"borders",transform:Ki},borderRight:{themeKey:"borders",transform:Ki},borderBottom:{themeKey:"borders",transform:Ki},borderLeft:{themeKey:"borders",transform:Ki},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ki},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vg},color:{themeKey:"palette",transform:lu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lu},backgroundColor:{themeKey:"palette",transform:lu},p:{style:On},pt:{style:On},pr:{style:On},pb:{style:On},pl:{style:On},px:{style:On},py:{style:On},padding:{style:On},paddingTop:{style:On},paddingRight:{style:On}
735,paddingBottom:{style:On},paddingLeft:{style:On},paddingX:{style:On},paddingY:{style:On},paddingInline:{style:On},paddingInlineStart:{style:On},paddingInlineEnd:{style:On},paddingBlock:{style:On},paddingBlockStart:{style:On},paddingBlockEnd:{style:On},m:{style:Tn},mt:{style:Tn},mr:{style:Tn},mb:{style:Tn},ml:{style:Tn},mx:{style:Tn},my:{style:Tn},margin:{style:Tn},marginTop:{style:Tn},marginRight:{style:Tn},marginBottom:{style:Tn},marginLeft:{style:Tn},marginX:{style:Tn},marginY:{style:Tn},marginInline:{style:Tn},marginInlineStart:{style:Tn},marginInlineEnd:{style:Tn},marginBlock:{style:Tn},marginBlockStart:{style:Tn},marginBlockEnd:{style:Tn},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:qg},rowGap:{style:Xg},columnGap:{style:Gg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ai},maxWidth:{style:Zx},minWidth:{transform:Ai},height:{transform:Ai},maxHeight:{transform:Ai},minHeight:{transform:Ai},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function w8(...t){const e=t.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function S8(t,e){return typeof t=="function"?t(e):t}function _8(){function t(n,r,i,a){const l={[n]:r,theme:i},u=a[n];if(!u)return{[n]:r};const{cssProperty:d=n,themeKey:h,transform:p,style:m}=u;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const g=Fg(i,h)||{};return m?m(l):Ts(l,r,E=>{let y=Qm(g,p,E);return E===y&&typeof E=="string"&&(y=Qm(g,p,`${n}${E==="default"?"":Ge(E)}`,E)),d===!1?y:{[d]:y}})}function e(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;
735const a=i.unstable_sxConfig??ph;function l(u){let d=u;if(typeof u=="function")d=u(i);else if(typeof u!="object")return u;if(!d)return null;const h=HA(i.breakpoints),p=Object.keys(h);let m=h;return Object.keys(d).forEach(g=>{const b=S8(d[g],i);if(b!=null)if(typeof b=="object")if(a[g])m=Cf(m,t(g,b,i,a));else{const E=Ts({theme:i},b,y=>({[g]:y}));w8(E,b)?m[g]=e({sx:b,theme:i}):m=Cf(m,E)}else m=Cf(m,t(g,b,i,a))}),N$(i,BA(p,m))}return Array.isArray(r)?r.map(l):l(r)}return e}const Ql=_8();Ql.filterProps=["sx"];const E8=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??ph;return Object.keys(t).forEach(i=>{n[i]?e.systemProps[i]=t[i]:e.otherProps[i]=t[i]}),e};function Jx(t){const{sx:e,...n}=t,{systemProps:r,otherProps:i}=E8(n);let a;return Array.isArray(e)?a=[r,...e]:typeof e=="function"?a=(...l)=>{const u=e(...l);return Ks(u)?{...r,...u}:r}:a={...r,...e},{...i,sx:a}}function La(){return La=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},La.apply(null,arguments)}function C8(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function R8(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var T8=function(){function t(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0: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 e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(R8(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=C8(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++}
vendor: 7,388 bytes, line 735
735,e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t}(),kr="-ms-",Wm="-moz-",Lt="-webkit-",UA="comm",ew="rule",tw="decl",O8="@import",IA="@keyframes",A8="@layer",k8=Math.abs,Yg=String.fromCharCode,M8=Object.assign;function N8(t,e){return vr(t,0)^45?(((e<<2^vr(t,0))<<2^vr(t,1))<<2^vr(t,2))<<2^vr(t,3):0}function VA(t){return t.trim()}function D8(t,e){return(t=e.exec(t))?t[0]:t}function zt(t,e,n){return t.replace(e,n)}function Zb(t,e){return t.indexOf(e)}function vr(t,e){return t.charCodeAt(e)|0}function Df(t,e,n){return t.slice(e,n)}function Xs(t){return t.length}function nw(t){return t.length}function Qp(t,e){return e.push(t),t}function P8(t,e){return t.map(e).join("")}var Kg=1,Nu=1,qA=0,ui=0,Kn=0,Wu="";function Qg(t,e,n,r,i,a,l){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:Kg,column:Nu,length:l,return:""}}function uf(t,e){return M8(Qg("",null,null,"",null,null,0),t,{length:-t.length},e)}function j8(){return Kn}function L8(){return Kn=ui>0?vr(Wu,--ui):0,Nu--,Kn===10&&(Nu=1,Kg--),Kn}function Mi(){return Kn=ui<qA?vr(Wu,ui++):0,Nu++,Kn===10&&(Nu=1,Kg++),Kn}function ta(){return vr(Wu,ui)}function _m(){return ui}function mh(t,e){return Df(Wu,t,e)}function Pf(t){switch(t){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 GA(t){return Kg=Nu=1,qA=Xs(Wu=t),ui=0,[]}function XA(t){return Wu="",t}function Em(t){return VA(mh(ui-1,Jb(t===91?t+2:t===40?t+1:t)))}function z8(t){for(;(Kn=ta())&&Kn<33;)Mi();return Pf(t)>2||Pf(Kn)>3?"":" "}function $8(t,e){for(;--e&&Mi()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return mh(t,_m()+(e<6&&ta()==32&&Mi()==32))}function Jb(t){for(;Mi();)switch(Kn){case t:return ui;case 34:case 39:t!==34&&t!==39&&Jb(Kn);break;case 40:t===41&&Jb(t);break;case 92:Mi();break}return ui}function H8(t,e){for(;Mi()&&t+Kn!==57;)if(t+Kn===84&&ta()===47)break;return"/*"+mh(e,ui-1)+"*"+Yg(t===47?t:Mi())}function B8(t){for(;!Pf(ta());)Mi();return mh(t,ui)}function F8(t){return XA(Cm("",null,null,null,[""],t=GA(t),0,[0],t))}function Cm(t,e,n,r,i,a,l,u,d){for(var h=0,p=0,m=l,g=0,b=0,E=0,y=1,x=1,S=1,R=0,O="",M=i,k=a,P=r,j=O;x;)switch(E=R,R=Mi()){case 40:if(E!=108&&vr(j,m-1)==58){Zb(j+=zt(Em(R),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:j+=Em(R);break;case 9:case 10:case 13:case 32:j+=z8(E);break;case 92:j+=$8(_m()-1,7);continue;case 47:switch(ta()){case 42:case 47:Qp(U8(H8(Mi(),_m()),e,n),d);break;default:j+="/"}break;case 123*y:u[h++]=Xs(j)*S;case 125*y:case 59:case 0:switch(R){case 0:case 125:x=0;case 59+p:S==-1&&(j=zt(j,/\f/g,"")),b>0&&Xs(j)-m&&Qp(b>32?pC(j+";",r,n,m-1):pC(zt(j," ","")+";",r,n,m-2),d);break;case 59:j+=";";default:if(Qp(P=hC(j,e,n,h,p,i,u,O,M=[],k=[],m),a),R===123)if(p===0)Cm(j,e,P,P,M,a,m,u,k);else switch(g===99&&vr(j,3)===110?100:g){case 100:case 108:case 109:case 115:Cm(t,P,P,r&&Qp(hC(t,P,P,0,0,i,u,O,i,M=[],m),k),i,k,m,u,r?M:k);break;default:Cm(j,P,P,P,[""],k,0,u,k)}}h=p=b=0,y=S=1,O=j="",m=l;break;case 58:m=1+Xs(j),b=E;default:if(y<1){if(R==123)--y;else if(R==125&&y++==0&&L8()==125)continue}switch(j+=Yg(R),R*y){case 38:S=p>0?1:(j+="\f",-1);break;case 44:u[h++]=(Xs(j)-1)*S,S=1;break;case 64:ta()===45&&(j+=Em(Mi())),g=ta(),p=m=Xs(O=j+=B8(_m())),R++;break;case 45:E===45&&Xs(j)==2&&(y=0)}}return a}function hC(t,e,n,r,i,a,l,u,d,h,p){for(var m=i-1,g=i===0?a:[""],b=nw(g),E=0,y=0,x=0;E<r;++E)for(var S=0,R=Df(t,m+1,m=k8(y=l[E])),O=t;S<b;++S)(O=VA(y>0?g[S]+" "+R:zt(R,/&\f/g,g[S])))&&(d[x++]=O);return Qg(t,e,n,i===0?ew:u,d,h,p)}function U8(t,e,n){return Qg(t,e,n,UA,Yg(j8()),Df(t,2,-2),0)}function pC(t,e,n,r){return Qg(t,e,n,tw,Df(t,0,r),Df(t,r+1,-1),r)}function cu(t,e){for(var n="",r=nw(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function I8(t,e,n,r){switch(t.type){case A8:if(t.children.length)break;case O8:case tw:return t.return=t.return||t.value;case UA:return"";case IA:return t.return=t.value+"{"+cu(t.children,r)+"}";case ew:t.value=t.props.join(",")}return Xs(n=cu(t.children,r))?t.return=t.value+"{"+n+"}":""}function V8(t){var e=nw(t);return function(n,r,i,a){for(var l="",u=0;u<e;u++)l+=t[u](n,r,i,a)||"";return l}}function q8(t){return function(e){e.root||(e=e.return)&&t(e)}}function YA(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var G8=function(e,n,r){for(var i=0,a=0;i=a,a=ta(),i===38&&a===12&&(n[r]=1),!Pf(a);)Mi();return mh(e,ui)},X8=function(e,n){var r=-1,i=44;do switch(Pf(i)){case 0:i===38&&ta()===12&&(n[r]=1),e[r]+=G8(ui-1,n,r);break;case 2:e[r]+=Em(i);break;case 4:if(i===44){e[++r]=ta()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Yg(i)}while(i=Mi());return e},Y8=function(e,n){return XA(X8(GA(e),n))},mC=new WeakMap,K8=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!mC.get(r))&&!i){mC.set(e,!0);for(var a=[],l=Y8(n,a),u=r.props,d=0,h=0;d<l.length;d++)for(var p=0;p<u.length;p++,h++)e.props[h]=a[d]?l[d].replace(/&\f/g,u[p]):u[p]+" "+l[d]}}},Q8=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function KA(t,e){switch(N8(t,e)){case 5103:return Lt+"print-"+t+t;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 Lt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+t+Wm+t+kr+t+t;case 6828:case 4268:return Lt+t+kr+t+t;case 6165:return Lt+t+kr+"flex-"+t+t;case 5187:return Lt+t+zt(t,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+kr+"flex-$1$2")+t;case 5443:return Lt+t+kr+"flex-item-"+zt(t,/flex-|-self/,"")+t;case 4675:return Lt+t+kr+"flex-line-pack"+zt(t,/align-content|flex-|-self/,"")+t;case 5548:return Lt+t+kr+zt(t,"shrink","negative")+t;case 5292:return Lt+t+kr+zt(t,"basis","preferred-size")+t;case 6060:return Lt+"box-"+zt(t,"-grow","")+Lt+t+kr+zt(t,"grow","positive")+t;case 4554:return Lt+zt(t,/([^-])(transform)/g,"$1"+Lt+"$2")+t;case 6187:return zt(zt(zt(t,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),t,"")+t;case 5495:case 3959:return zt(t,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return zt(zt(t,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+kr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+t+t;case 4095:case 3583:case 4068:case 2532:return zt(t,/(.+)-inline(.+)/,Lt+"$1$2")+t;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(Xs(t)-1-e>6)switch(vr(t,e+1)){case 109:if(vr(t,e+4)!==45)break;case 102:return zt(t,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+Wm+(vr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zb(t,"stretch")?KA(zt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(vr(t,e+1)!==115)break;case 6444:switch(vr(t,Xs(t)-3-(~Zb(t,"!important")&&10))){case 107:return zt(t,":",":"+Lt)+t;case 101:return zt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(vr(t,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+kr+"$2box$3")+t}break;case 5936:switch(vr(t,e+11)){case 114:return Lt+t+kr+zt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 4,899 bytes, lines 735-742
735case 108:return Lt+t+kr+zt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Lt+t+kr+zt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Lt+t+kr+t+t}return t}var W8=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case tw:e.return=KA(e.value,e.length);break;case IA:return cu([uf(e,{value:zt(e.value,"@","@"+Lt)})],i);case ew:if(e.length)return P8(e.props,function(a){switch(D8(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([uf(e,{props:[zt(a,/:(read-\w+)/,":"+Wm+"$1")]})],i);case"::placeholder":return cu([uf(e,{props:[zt(a,/:(plac\w+)/,":"+Lt+"input-$1")]}),uf(e,{props:[zt(a,/:(plac\w+)/,":"+Wm+"$1")]}),uf(e,{props:[zt(a,/:(plac\w+)/,kr+"input-$1")]})],i)}return""})}},Z8=[W8],J8=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||Z8,a={},l,u=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),S=1;S<x.length;S++)a[x[S]]=!0;u.push(y)});var d,h=[K8,Q8];{var p,m=[I8,q8(function(y){p.insert(y)})],g=V8(h.concat(i,m)),b=function(x){return cu(F8(x),g)};d=function(x,S,R,O){p=R,b(x?x+"{"+S.styles+"}":S.styles),O&&(E.inserted[S.name]=!0)}}var E={key:n,sheet:new T8({key:n,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:d};return E.sheet.hydrate(u),E},Q0={exports:{}},Ft={};/** @license React v16.13.1
736 * react-is.production.min.js
737 *
738 * Copyright (c) Facebook, Inc. and its affiliates.
739 *
740 * This source code is licensed under the MIT license found in the
741 * LICENSE file in the root directory of this source tree.
742 */var gC;function e9(){if(gC)return Ft;gC=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,E=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,R=t?Symbol.for("react.scope"):60119;function O(k){if(typeof k=="object"&&k!==null){var P=k.$$typeof;switch(P){case e:switch(k=k.type,k){case d:case h:case r:case a:case i:case m:return k;default:switch(k=k&&k.$$typeof,k){case u:case p:case E:case b:case l:return k;default:return P}}case n:return P}}}function M(k){return O(k)===h}return Ft.AsyncMode=d,Ft.ConcurrentMode=h,Ft.ContextConsumer=u,Ft.ContextProvider=l,Ft.Element=e,Ft.ForwardRef=p,Ft.Fragment=r,Ft.Lazy=E,Ft.Memo=b,Ft.Portal=n,Ft.Profiler=a,Ft.StrictMode=i,Ft.Suspense=m,Ft.isAsyncMode=function(k){return M(k)||O(k)===d},Ft.isConcurrentMode=M,Ft.isContextConsumer=function(k){return O(k)===u},Ft.isContextProvider=function(k){return O(k)===l},Ft.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},Ft.isForwardRef=function(k){return O(k)===p},Ft.isFragment=function(k){return O(k)===r},Ft.isLazy=function(k){return O(k)===E},Ft.isMemo=function(k){return O(k)===b},Ft.isPortal=function(k){return O(k)===n},Ft.isProfiler=function(k){return O(k)===a},Ft.isStrictMode=function(k){return O(k)===i},Ft.isSuspense=function(k){return O(k)===m},Ft.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===h||k===a||k===i||k===m||k===g||typeof k=="object"&&k!==null&&(k.$$typeof===E||k.$$typeof===b||k.$$typeof===l||k.$$typeof===u||k.$$typeof===p||k.$$typeof===x||k.$$typeof===S||k.$$typeof===R||k.$$typeof===y)},Ft.typeOf=O,Ft}var vC;function t9(){return vC||(vC=1,Q0.exports=e9()),Q0.exports}var W0,yC;function n9(){if(yC)return W0;yC=1;var t=t9(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=r,a[t.Memo]=i;function l(E){return t.isMemo(E)?i:a[E.$$typeof]||e}var u=Object.defineProperty,d=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;
vendor: 6,461 bytes, line 742
742function b(E,y,x){if(typeof y!="string"){if(g){var S=m(y);S&&S!==g&&b(E,S,x)}var R=d(y);h&&(R=R.concat(h(y)));for(var O=l(E),M=l(y),k=0;k<R.length;++k){var P=R[k];if(!n[P]&&!(x&&x[P])&&!(M&&M[P])&&!(O&&O[P])){var j=p(y,P);try{u(E,P,j)}catch{}}}}return E}return W0=b,W0}n9();var r9=!0;function QA(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var rw=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||r9===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},WA=function(e,n,r){rw(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a=n;do e.insert(n===a?"."+i:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function i9(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var s9={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,scale: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},a9=/[A-Z]|^ms/g,o9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZA=function(e){return e.charCodeAt(1)===45},bC=function(e){return e!=null&&typeof e!="boolean"},Z0=YA(function(t){return ZA(t)?t:t.replace(a9,"-$&").toLowerCase()}),xC=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(o9,function(r,i,a){return Ys={name:i,styles:a,next:Ys},i})}return s9[e]!==1&&!ZA(e)&&typeof n=="number"&&n!==0?n+"px":n};function jf(t,e,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 i=n;if(i.anim===1)return Ys={name:i.name,styles:i.styles,next:Ys},i.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ys={name:l.name,styles:l.styles,next:Ys},l=l.next;var u=a.styles+";";return u}return l9(t,e,n)}case"function":{if(t!==void 0){var d=Ys,h=n(t);return Ys=d,jf(t,e,h)}break}}var p=n;if(e==null)return p;var m=e[p];return m!==void 0?m:p}function l9(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=jf(t,e,n[i])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var u=l;e!=null&&e[u]!==void 0?r+=a+"{"+e[u]+"}":bC(u)&&(r+=Z0(a)+":"+xC(a,u)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(e==null||e[l[0]]===void 0))for(var d=0;d<l.length;d++)bC(l[d])&&(r+=Z0(a)+":"+xC(a,l[d])+";");else{var h=jf(t,e,l);switch(a){case"animation":case"animationName":{r+=Z0(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}return r}var wC=/label:\s*([^\s;{]+)\s*(;|$)/g,Ys;function Wg(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";Ys=void 0;var a=t[0];if(a==null||a.raw===void 0)r=!1,i+=jf(n,e,a);else{var l=a;i+=l[0]}for(var u=1;u<t.length;u++)if(i+=jf(n,e,t[u]),r){var d=a;i+=d[u]}wC.lastIndex=0;for(var h="",p;(p=wC.exec(i))!==null;)h+="-"+p[1];var m=i9(i)+h;return{name:m,styles:i,next:Ys}}var c9=function(e){return e()},u9=Bo.useInsertionEffect?Bo.useInsertionEffect:!1,JA=u9||c9,ek=w.createContext(typeof HTMLElement<"u"?J8({key:"css"}):null);ek.Provider;var tk=function(e){return w.forwardRef(function(n,r){var i=w.useContext(ek);return e(n,i,r)})},iw=w.createContext({}),sw={}.hasOwnProperty,e1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d9=function(e,n){var r={};for(var i in n)sw.call(n,i)&&(r[i]=n[i]);return r[e1]=e,r},f9=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return rw(n,r,i),JA(function(){return WA(n,r,i)}),null},h9=tk(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[e1],a=[r],l="";typeof t.className=="string"?l=QA(e.registered,a,t.className):t.className!=null&&(l=t.className+" ");var u=Wg(a,void 0,w.useContext(iw));l+=e.key+"-"+u.name;var d={};for(var h in t)sw.call(t,h)&&h!=="css"&&h!==e1&&(d[h]=t[h]);return d.className=l,n&&(d.ref=n),w.createElement(w.Fragment,null,w.createElement(f9,{cache:e,serialized:u,isStringTag:typeof i=="string"}),w.createElement(i,d))}),p9=h9,SC=function(e,n){var r=arguments;if(n==null||!sw.call(n,"css"))return w.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=p9,a[1]=d9(e,n);for(var l=2;l<i;l++)a[l]=r[l];return w.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(SC||(SC={}));function aw(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Wg(e)}function gh(){var t=aw.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var m9=/^((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|fetchpriority|fetchPriority|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|playsInl
742ine|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)-.*))$/,g9=YA(function(t){return m9.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),v9=g9,y9=function(e){return e!=="theme"},_C=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?v9:y9},EC=function(e,n,r){var i;if(n){var a=n.shouldForwardProp;i=e.__emotion_forwardProp&&a?function(l){return e.__emotion_forwardProp(l)&&a(l)}:a}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},b9=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return rw(n,r,i),JA(function(){return WA(n,r,i)}),null},x9=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,a,l;n!==void 0&&(a=n.label,l=n.target);var u=EC(e,n,r),d=u||_C(i),h=!d("as");return function(){var p=arguments,m=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var g=p[0];m.push(g[0]);for(var b=p.length,E=1;E<b;E++)m.push(p[E],g[E])}var y=tk(function(x,S,R){var O=h&&x.as||i,M="",k=[],P=x;if(x.theme==null){P={};for(var j in x)P[j]=x[j];P.theme=w.useContext(iw)}typeof x.className=="string"?M=QA(S.registered,k,x.className):x.className!=null&&(M=x.className+" ");var H=Wg(m.concat(k),S.registered,P);M+=S.key+"-"+H.name,l!==void 0&&(M+=" "+l);var I=h&&u===void 0?_C(O):d,A={};for(var $ in x)h&&$==="as"||I($)&&(A[$]=x[$]);return A.className=M,R&&(A.ref=R),w.createElement(w.Fragment,null,w.createElement(b9,{cache:S,serialized:H,isStringTag:typeof O=="string"}),w.createElement(O,A))});return y.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=e.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=m,y.__emotion_forwardProp=u,Object.defineProperty(y,"toString",{value:function(){return"."+l}}),y.withComponent=function(x,S){var R=t(x,La({},n,S,{shouldForwardProp:EC(y,S,!0)}));return R.apply(void 0,m)},y}},w9=["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"],t1=x9.bind(null);w9.forEach(function(t){t1[t]=t1(t)});/**
743 * @mui/styled-engine v6.4.11
744 *
745 * @license MIT
746 * This source code is licensed under the MIT license found in the
747 * LICENSE file in the root directory of this source tree.
748 */function nk(t,e){return t1(t,e)}function S9(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const CC=[];function RC(t){return CC[0]=t,Wg(CC)}const _9=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function E9(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=t,a=_9(e),l=Object.keys(a);function u(g){return`@media (min-width:${typeof e[g]=="number"?e[g]:g}${n})`}function d(g){return`@media (max-width:${(typeof e[g]=="number"?e[g]:g)-r/100}${n})`}function h(g,b){const E=l.indexOf(b);return`@media (min-width:${typeof e[g]=="number"?e[g]:g}${n}) and (max-width:${(E!==-1&&typeof e[l[E]]=="number"?e[l[E]]:b)-r/100}${n})`}function p(g){return l.indexOf(g)+1<l.length?h(g,l[l.indexOf(g)+1]):u(g)}function m(g){const b=l.indexOf(g);return b===0?u(l[1]):b===l.length-1?d(l[b]):h(g,l[l.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:u,down:d,between:h,only:p,not:m,unit:n,...i}}const C9={borderRadius:4};function rk(t=8,e=Ug({spacing:t})){if(t.mui)return t;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=e(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function R9(t,e){var r;const n=this;
748if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(t);return i==="&"?e:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:e})}return n.palette.mode===t?e:{}}function Zg(t={},...e){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...l}=t,u=E9(n),d=rk(i);let h=Gr({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...C9,...a}},l);return h=j$(h),h.applyStyles=R9,h=e.reduce((p,m)=>Gr(p,m),h),h.unstable_sxConfig={...ph,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return Ql({sx:m,theme:this})},h}function T9(t){return Object.keys(t).length===0}function O9(t=null){const e=w.useContext(iw);return!e||T9(e)?t:e}const A9=Zg();function ow(t=A9){return O9(t)}const TC=t=>t,k9=()=>{let t=TC;return{configure(e){t=e},generate(e){return t(e)},reset(){t=TC}}},ik=k9();function M9(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=t,a=nk("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Ql);return w.forwardRef(function(d,h){const p=ow(n),{className:m,component:g="div",...b}=Jx(d);return C.jsx(a,{as:g,ref:h,className:vt(m,i?i(r):r),theme:e&&p[e]||p,...b})})}const N9={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 Vt(t,e,n="Mui"){const r=N9[e];return r?`${n}-${r}`:`${ik.generate(t)}-${e}`}function $t(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=Vt(t,i,n)}),r}function sk(t){const{variants:e,...n}=t,r={variants:e,style:RC(n),isProcessed:!0};return r.style===n||e&&e.forEach(i=>{typeof i.style!="function"&&(i.style=RC(i.style))}),r}const D9=Zg();function J0(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function P9(t){return t?(e,n)=>n[t]:null}function j9(t,e,n){t.theme=z9(t.theme)?n:t.theme[e]||t.theme}function Rm(t,e){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(r=>Rm(t,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...a}=n;r=a}return ak(t,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function ak(t,e,n=[]){var i;let r;e:for(let a=0;a<e.length;a+=1){const l=e[a];if(typeof l.props=="function"){if(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),!l.props(r))continue}else for(const u in l.props)if(t[u]!==l.props[u]&&((i=t.ownerState)==null?void 0:i[u])!==l.props[u])continue e;typeof l.style=="function"?(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function ok(t={}){const{themeId:e,defaultTheme:n=D9,rootShouldForwardProp:r=J0,slotShouldForwardProp:i=J0}=t;function a(u){j9(u,e,n)}return(u,d={})=>{S9(u,k=>k.filter(P=>P!==Ql));const{name:h,slot:p,skipVariantsResolver:m,skipSx:g,overridesResolver:b=P9(H9(p)),...E}=d,y=m!==void 0?m:p&&p!=="Root"&&p!=="root"||!1,x=g||!1;let S=J0;p==="Root"||p==="root"?S=r:p?S=i:$9(u)&&(S=void 0);const R=nk(u,{shouldForwardProp:S,label:L9(),...E}),O=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function(j){return Rm(j,k)};if(Ks(k)){const P=sk(k);return P.variants?function(H){return Rm(H,P)}:P.style}return k},M=(...k)=>{const P=[],j=k.map(O),H=[];if(P.push(a),h&&b&&H.push(function(L){var F,J;const V=(J=(F=L.theme.components)==null?void 0:F[h])==null?void 0:J.styleOverrides;if(!V)return null;const Q={};for(const ae in V)Q[ae]=Rm(L,V[ae]);return b(L,Q)}),h&&!y&&H.push(function(L){var Q,F;const U=L.theme,V=(F=(Q=U==null?void 0:U.components)==null?void 0:Q[h])==null?void 0:F.variants;return V?ak(L,V):null}),x||H.push(Ql),Array.isArray(j[0])){const $=j.shift(),L=new Array(P.length).fill(""),U=new Array(H.length).fill("");let V;V=[...L,...$,...U],V.raw=[...L,...$.raw,...U],P.unshift(V)}const I=[...P,...j,...H],A=R(...I);return u.muiName&&(A.muiName=u.muiName),A};return R.withConfig&&(M.withConfig=R.withConfig),M}}function L9(t,e){return void 0}function z9(t){for(const e in t)return!1;return!0}function $9(t){return typeof t=="string"&&t.charCodeAt(0)>96}function H9(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const B9=ok();function Lf(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=r;if(i==="components"||i==="slots")n[i]={...t[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=t[i],l=e[i];if(!l)n[i]=a||{};else if(!a)n[i]=l;else{n[i]={...l};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;n[i][d]=Lf(a[d],l[d])}}}else n[i]===void 0&&(n[i]=t[i])}return n}function F9(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Lf(e.components[n].defaultProps,r)}function U9({props:t,name:e,defaultTheme:n,themeId:r}){let i=ow(n);return r&&(i=i[r]||i),F9({theme:i,name:e,props:t})}const zf=typeof window<"u"?w.useLayoutEffect:w.useEffect;function n1(...t){return t.reduce((e,n)=>n==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function za(t){return t&&t.ownerDocument||document}function Zm(t){return za(t).defaultView||window}function OC(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let AC=0;function I9(t){const[e,n]=w.useState(t),r=t||e;return w.useEffect(()=>{e==null&&(AC+=1,n(`mui-${AC}`))},[e]),r}const V9={...Bo},kC=V9.useId;function lw(t){if(kC!==void 0){const e=kC();return t??e}return I9(t)}function lk({controlled:t,default:e,name:n,state:r="value"}){const{current:i}=w.useRef(t!==void 0),[a,l]=w.useState(e),u=i?t:a,d=w.useCallback(h=>{i||l(h)},[]);return[u,d]}function uu(t){const e=w.useRef(t);return zf(()=>{e.current=t}),w.useRef((...n)=>(0,e.current)(...n)).current}function ia(...t){const e=w.useRef(void 0),n=w.useCallback(r=>{const i=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,u=l(r);return typeof u=="function"?u:()=>{l(null)}}return a.current=r,()=>{a.current=null}});return()=>
748{i.forEach(a=>a==null?void 0:a())}},t);return w.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const MC={};function ck(t,e){const n=w.useRef(MC);return n.current===MC&&(n.current=t(e)),n}const q9=[];function G9(t){w.useEffect(t,q9)}class cw{constructor(){sf(this,"currentId",null);sf(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});sf(this,"disposeEffect",()=>this.clear)}static create(){return new cw}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function X9(){const t=ck(cw.create).current;return G9(t.disposeEffect),t}function NC(t){try{return t.matches(":focus-visible")}catch{}return!1}function Y9(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function K9(t){return typeof t=="string"}function uk(t,e,n){return t===void 0||K9(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function dk(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function DC(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function fk(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=t;if(!e){const b=vt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),E={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},y={...n,...i,...r};return b.length>0&&(y.className=b),Object.keys(E).length>0&&(y.style=E),{props:y,internalRef:void 0}}const l=dk({...i,...r}),u=DC(r),d=DC(i),h=e(l),p=vt(h==null?void 0:h.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),m={...h==null?void 0:h.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},g={...h,...n,...d,...u};return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:h.ref}}function hk(t,e,n){return typeof t=="function"?t(e,n):t}function Q9(t){var m;const{elementType:e,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=t,l=i?{}:hk(n,r),{props:u,internalRef:d}=fk({...a,externalSlotProps:l}),h=ia(d,l==null?void 0:l.ref,(m=t.additionalProps)==null?void 0:m.ref);return uk(e,{...u,ref:h},r)}function uw(t){var e;return parseInt(w.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const W9=w.createContext(),pk=()=>w.useContext(W9)??!1,Z9=w.createContext(void 0);function J9(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const i=e.components[n];return i.defaultProps?Lf(i.defaultProps,r):!i.styleOverrides&&!i.variants?Lf(i,r):r}function eH({props:t,name:e}){const n=w.useContext(Z9);return J9({props:t,name:e,theme:{components:n}})}const PC={theme:void 0};function tH(t){let e,n;return function(i){let a=e;return(a===void 0||i.theme!==n)&&(PC.theme=i.theme,a=sk(t(PC)),e=a,n=i.theme),a}}function nH(t=""){function e(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${i}${e(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${t?`${t}-`:""}${r}${e(...i)})`}const jC=(t,e,n,r=[])=>{let i=t;e.forEach((a,l)=>{l===e.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i=="object"&&(i[a]=n):i&&typeof i=="object"&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])})},rH=(t,e,n)=>{function r(i,a=[],l=[]){Object.entries(i).forEach(([u,d])=>{(!n||n&&!n([...a,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...a,u],Array.isArray(d)?[...l,u]:l):e([...a,u],d,l))})}r(t)},iH=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function eb(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},i={},a={},l={};return rH(t,(u,d,h)=>
748{if((typeof d=="string"||typeof d=="number")&&(!r||!r(u,d))){const p=`--${n?`${n}-`:""}${u.join("-")}`,m=iH(u,d);Object.assign(i,{[p]:m}),jC(a,u,`var(${p})`,h),jC(l,u,`var(${p}, ${m})`,h)}},u=>u[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function sH(t,e={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:i}=e,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...d}=t,{vars:h,css:p,varsWithDefaults:m}=eb(d,e);let g=m;const b={},{[u]:E,...y}=a;if(Object.entries(y||{}).forEach(([O,M])=>{const{vars:k,css:P,varsWithDefaults:j}=eb(M,e);g=Gr(g,j),b[O]={css:P,vars:k}}),E){const{css:O,vars:M,varsWithDefaults:k}=eb(E,e);g=Gr(g,k),b[u]={css:O,vars:M}}function x(O,M){var P,j;let k=i;if(i==="class"&&(k=".%s"),i==="data"&&(k="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(k=`[${i}="%s"]`),O){if(k==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((j=(P=a[O])==null?void 0:P.palette)==null?void 0:j.mode)||O})`]:{":root":M}};if(k)return t.defaultColorScheme===O?`:root, ${k.replace("%s",String(O))}`:k.replace("%s",String(O))}return":root"}return{vars:g,generateThemeVars:()=>{let O={...h};return Object.entries(b).forEach(([,{vars:M}])=>{O=Gr(O,M)}),O},generateStyleSheets:()=>{var H,I;const O=[],M=t.defaultColorScheme||"light";function k(A,$){Object.keys($).length&&O.push(typeof A=="string"?{[A]:{...$}}:A)}k(n(void 0,{...p}),p);const{[M]:P,...j}=b;if(P){const{css:A}=P,$=(I=(H=a[M])==null?void 0:H.palette)==null?void 0:I.mode,L=!r&&$?{colorScheme:$,...A}:{...A};k(n(M,{...L}),L)}return Object.entries(j).forEach(([A,{css:$}])=>{var V,Q;const L=(Q=(V=a[A])==null?void 0:V.palette)==null?void 0:Q.mode,U=!r&&L?{colorScheme:L,...$}:{...$};k(n(A,{...U}),U)}),O}}}function aH(t){return function(n){return t==="media"?`@media (prefers-color-scheme: ${n})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const oH=Zg(),lH=B9("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function cH(t){return U9({props:t,name:"MuiStack",defaultTheme:oH})}function uH(t,e){const n=w.Children.toArray(t).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a<n.length-1&&r.push(w.cloneElement(e,{key:`separator-${a}`})),r),[])}const dH=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],fH=({ownerState:t,theme:e})=>{let n={display:"flex",flexDirection:"column",...Ts({theme:e},K0({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r}))};if(t.spacing){const r=Ug(e),i=Object.keys(e.breakpoints.values).reduce((d,h)=>((typeof t.spacing=="object"&&t.spacing[h]!=null||typeof t.direction=="object"&&t.direction[h]!=null)&&(d[h]=!0),d),{}),a=K0({values:t.direction,base:i}),l=K0({values:t.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((d,h,p)=>{if(!a[d]){const g=h>0?a[p[h-1]]:"column";a[d]=g}}),n=Gr(n,Ts({theme:e},l,(d,h)=>t.useFlexGap?{gap:Kl(r,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${dH(h?a[h]:t.direction)}`]:Kl(r,d)}}))}return n=z$(e.breakpoints,n),n};function hH(t={}){const{createStyledComponent:e=lH,useThemeProps:n=cH,componentName:r="MuiStack"}=t,i=()=>Kt({root:["root"]},d=>Vt(r,d),{}),a=e(fH);return w.forwardRef(function(d,h){const p=n(d),m=Jx(p),{component:g="div",direction:b="column",spacing:E=0,divider:y,children:x,className:S,useFlexGap:R=!1,...O}=m,M={direction:b,spacing:E,useFlexGap:R},k=i();return C.jsx(a,{as:g,ownerState:M,ref:h,className:vt(k.root,S),...O,children:y?uH(x,y):x})})}const $f={black:"#000",white:"#fff"},pH={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"},Ic={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Vc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},df={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},qc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Gc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Xc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function mk(){return{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:$f.white,default:$f.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)",disabledBackgroun
748d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const mH=mk();function gk(){return{text:{primary:$f.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:$f.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}}}const LC=gk();function zC(t,e,n,r){const i=r.light||r,a=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=fh(t.main,i):e==="dark"&&(t.dark=dh(t.main,a)))}function gH(t="light"){return t==="dark"?{main:qc[200],light:qc[50],dark:qc[400]}:{main:qc[700],light:qc[400],dark:qc[800]}}function vH(t="light"){return t==="dark"?{main:Ic[200],light:Ic[50],dark:Ic[400]}:{main:Ic[500],light:Ic[300],dark:Ic[700]}}function yH(t="light"){return t==="dark"?{main:Vc[500],light:Vc[300],dark:Vc[700]}:{main:Vc[700],light:Vc[400],dark:Vc[800]}}function bH(t="light"){return t==="dark"?{main:Gc[400],light:Gc[300],dark:Gc[700]}:{main:Gc[700],light:Gc[500],dark:Gc[900]}}function xH(t="light"){return t==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[800],light:Xc[500],dark:Xc[900]}}function wH(t="light"){return t==="dark"?{main:df[400],light:df[300],dark:df[700]}:{main:"#ed6c02",light:df[500],dark:df[900]}}function dw(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=t,a=t.primary||gH(e),l=t.secondary||vH(e),u=t.error||yH(e),d=t.info||bH(e),h=t.success||xH(e),p=t.warning||wH(e);function m(y){return T$(y,LC.text.primary)>=n?LC.text.primary:mH.text.primary}const g=({color:y,name:x,mainShade:S=500,lightShade:R=300,darkShade:O=700})=>{if(y={...y},!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(Yl(11,x?` (${x})`:"",S));if(typeof y.main!="string")throw new Error(Yl(12,x?` (${x})`:"",JSON.stringify(y.main)));return zC(y,"light",R,r),zC(y,"dark",O,r),y.contrastText||(y.contrastText=m(y.main)),y};let b;return e==="light"?b=mk():e==="dark"&&(b=gk()),Gr({common:{...$f},mode:e,primary:g({color:a,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:d,name:"info"}),success:g({color:h,name:"success"}),grey:pH,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r,...b},i)}function SH(t){const e={};return Object.entries(t).forEach(r=>{const[i,a]=r;typeof a=="object"&&(e[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function _H(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function EH(t){return Math.round(t*1e5)/1e5}const $C={textTransform:"uppercase"},HC='"Roboto", "Helvetica", "Arial", sans-serif';function CH(t,e){const{fontFamily:n=HC,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:h,pxToRem:p,...m}=typeof e=="function"?e(t):e,g=r/14,b=p||(x=>`${x/d*g}rem`),E=(x,S,R,O,M)=>({fontFamily:n,fontWeight:x,fontSize:b(S),lineHeight:R,...n===HC?{letterSpacing:`${EH(O/S)}em`}:{},...M,...h}),y={h1:E(i,96,1.167,-1.5),h2:E(i,60,1.2,-.5),h3:E(a,48,1.167,0),h4:E(a,34,1.235,.25),h5:E(a,24,1.334,0),h6:E(l,20,1.6,.15),subtitle1:E(a,16,1.75,.15),subtitle2:E(l,14,1.57,.1),body1:E(a,16,1.5,.15),body2:E(a,14,1.43,.15),button:E(l,14,1.75,.4,$C),caption:E(a,12,1.66,.4),overline:E(a,12,2.66,1,$C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:u,...y},m,{clone:!1})}const RH=.2,TH=.14,OH=.12;function gn(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${RH})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${TH})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}
748px rgba(0,0,0,${OH})`].join(",")}const AH=["none",gn(0,2,1,-1,0,1,1,0,0,1,3,0),gn(0,3,1,-2,0,2,2,0,0,1,5,0),gn(0,3,3,-2,0,3,4,0,0,1,8,0),gn(0,2,4,-1,0,4,5,0,0,1,10,0),gn(0,3,5,-1,0,5,8,0,0,1,14,0),gn(0,3,5,-1,0,6,10,0,0,1,18,0),gn(0,4,5,-2,0,7,10,1,0,2,16,1),gn(0,5,5,-3,0,8,10,1,0,3,14,2),gn(0,5,6,-3,0,9,12,1,0,3,16,2),gn(0,6,6,-3,0,10,14,1,0,4,18,3),gn(0,6,7,-4,0,11,15,1,0,4,20,3),gn(0,7,8,-4,0,12,17,2,0,5,22,4),gn(0,7,8,-4,0,13,19,2,0,5,24,4),gn(0,7,9,-4,0,14,21,2,0,5,26,4),gn(0,8,9,-5,0,15,22,2,0,6,28,5),gn(0,8,10,-5,0,16,24,2,0,6,30,5),gn(0,8,11,-5,0,17,26,2,0,6,32,5),gn(0,9,11,-5,0,18,28,2,0,7,34,6),gn(0,9,12,-6,0,19,29,2,0,7,36,6),gn(0,10,13,-6,0,20,31,3,0,8,38,7),gn(0,10,13,-6,0,21,33,3,0,8,40,7),gn(0,10,14,-6,0,22,35,3,0,8,42,7),gn(0,11,14,-7,0,23,36,3,0,9,44,8),gn(0,11,15,-7,0,24,38,3,0,9,46,8)],kH={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)"},MH={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function BC(t){return`${Math.round(t)}ms`}function NH(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function DH(t){const e={...kH,...t.easing},n={...MH,...t.duration};return{getAutoHeightDuration:NH,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:u=e.easeInOut,delay:d=0,...h}=a;return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof l=="string"?l:BC(l)} ${u} ${typeof d=="string"?d:BC(d)}`).join(",")},...t,easing:e,duration:n}}const PH={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function jH(t){return Ks(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function vk(t={}){const e={...t};function n(r){const i=Object.entries(r);for(let a=0;a<i.length;a++){const[l,u]=i[a];!jH(u)||l.startsWith("unstable_")?delete r[l]:Ks(u)&&(r[l]={...u},n(r[l]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
749
750const theme = ${JSON.stringify(e,null,2)};
751
752theme.breakpoints = createBreakpoints(theme.breakpoints || {});
753theme.transitions = createTransitions(theme.transitions || {});
754
755export default theme;`}function r1(t={},...e){const{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:l={},typography:u={},shape:d,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(Yl(20));const p=dw(a),m=Zg(t);let g=Gr(m,{mixins:_H(m.breakpoints,r),palette:p,shadows:AH.slice(),typography:CH(p,u),transitions:DH(l),zIndex:{...PH}});return g=Gr(g,h),g=e.reduce((b,E)=>Gr(b,E),g),g.unstable_sxConfig={...ph,...h==null?void 0:h.unstable_sxConfig},g.unstable_sx=function(E){return Ql({sx:E,theme:this})},g.toRuntimeSource=vk,g}function i1(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const LH=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=i1(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function yk(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function bk(t){return t==="dark"?LH:[]}function zH(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...i}=t,a=dw(e);return{palette:a,opacity:{...yk(a.mode),...n},overlays:r||bk(a.mode),...i}}function $H(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const HH=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],BH=t=>(e,n)=>{const r=t.rootSelector||":root",i=t.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const l={};
755return HH(t.cssVarPrefix).forEach(u=>{l[u]=n[u],delete n[u]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:a?{[a.replace("%s",e)]:l,[`${r}, ${a.replace("%s",e)}`]:n}:{[r]:{...n,...l}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(a)return a.replace("%s",String(e))}return r};function FH(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function Se(t,e,n){!t[e]&&n&&(t[e]=n)}function bf(t){return typeof t!="string"||!t.startsWith("hsl")?t:LA(t)}function Ra(t,e){`${e}Channel`in t||(t[`${e}Channel`]=yf(bf(t[e])))}function UH(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Fs=t=>{try{return t()}catch{}},IH=(t="mui")=>nH(t);function tb(t,e,n,r){if(!e)return;e=e===!0?{}:e;const i=r==="dark"?"dark":"light";if(!n){t[r]=zH({...e,palette:{mode:i,...e==null?void 0:e.palette}});return}const{palette:a,...l}=r1({...n,palette:{mode:i,...e==null?void 0:e.palette}});return t[r]={...e,palette:a,opacity:{...yk(i),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||bk(i)},l}function VH(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=$H,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=t,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),g=IH(a),{[m]:b,light:E,dark:y,...x}=n,S={...x};let R=b;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(R=!0),!R)throw new Error(Yl(21,m));const O=tb(S,R,h,m);E&&!S.light&&tb(S,E,void 0,"light"),y&&!S.dark&&tb(S,y,void 0,"dark");let M={defaultColorScheme:m,...O,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:d,getCssVar:g,colorSchemes:S,font:{...SH(O.typography),...O.font},spacing:UH(h.spacing)};Object.keys(M.colorSchemes).forEach(I=>{const A=M.colorSchemes[I].palette,$=L=>{const U=L.split("-"),V=U[1],Q=U[2];return g(L,A[V][Q])};if(A.mode==="light"&&(Se(A.common,"background","#fff"),Se(A.common,"onBackground","#000")),A.mode==="dark"&&(Se(A.common,"background","#000"),Se(A.common,"onBackground","#fff")),FH(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){Se(A.Alert,"errorColor",sn(A.error.light,.6)),Se(A.Alert,"infoColor",sn(A.info.light,.6)),Se(A.Alert,"successColor",sn(A.success.light,.6)),Se(A.Alert,"warningColor",sn(A.warning.light,.6)),Se(A.Alert,"errorFilledBg",$("palette-error-main")),Se(A.Alert,"infoFilledBg",$("palette-info-main")),Se(A.Alert,"successFilledBg",$("palette-success-main")),Se(A.Alert,"warningFilledBg",$("palette-warning-main")),Se(A.Alert,"errorFilledColor",Fs(()=>A.getContrastText(A.error.main))),Se(A.Alert,"infoFilledColor",Fs(()=>A.getContrastText(A.info.main))),Se(A.Alert,"successFilledColor",Fs(()=>A.getContrastText(A.success.main))),Se(A.Alert,"warningFilledColor",Fs(()=>A.getContrastText(A.warning.main))),Se(A.Alert,"errorStandardBg",an(A.error.light,.9)),Se(A.Alert,"infoStandardBg",an(A.info.light,.9)),Se(A.Alert,"successStandardBg",an(A.success.light,.9)),Se(A.Alert,"warningStandardBg",an(A.warning.light,.9)),Se(A.Alert,"errorIconColor",$("palette-error-main")),Se(A.Alert,"infoIconColor",$("palette-info-main")),Se(A.Alert,"successIconColor",$("palette-success-main")),Se(A.Alert,"warningIconColor",$("palette-warning-main")),Se(A.AppBar,"defaultBg",$("palette-grey-100")),Se(A.Avatar,"defaultBg",$("palette-grey-400")),Se(A.Button,"inheritContainedBg",$("palette-grey-300")),Se(A.Button,"inheritContainedHoverBg",$("palette-grey-A100")),Se(A.Chip,"defaultBorder",$("palette-grey-400")),Se(A.Chip,"defaultAvatarColor",$("palette-grey-700")),Se(A.Chip,"defaultIconColor",$("palette-grey-700")),Se(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Se(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Se(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Se(A.LinearProgress,"primaryBg",an(A.primary.main,.62)),Se(A.LinearProgress,"secondaryBg",an(A.secondary.main,.62)),Se(A.LinearProgress,"errorBg",an(A.error.main,.62)),Se(A.LinearProgress,"infoBg",an(A.info.main,.62)),Se(A.LinearProgress,"successBg",an(A.success.main,.62)),Se(A.LinearProgress,"warningBg",an(A.warning.main,.62)),Se(A.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),Se(A.Slider,"primaryTrack",an(A.primary.main,.62)),Se(A.Slider,"secondaryTrack",an(A.secondary.main,.62)),Se(A.Slider,"errorTrack",an(A.error.main,.62)),Se(A.Slider,"infoTrack",an(A.info.main,.62)),Se(A.Slider,"successTrack",an(A.success.main,.62)),Se(A.Slider,"warningTrack",an(A.warning.main,.62));const L=Kp(A.background.default,.8);
vendor: 4,197 bytes, line 755
755Se(A.SnackbarContent,"bg",L),Se(A.SnackbarContent,"color",Fs(()=>A.getContrastText(L))),Se(A.SpeedDialAction,"fabHoverBg",Kp(A.background.paper,.15)),Se(A.StepConnector,"border",$("palette-grey-400")),Se(A.StepContent,"border",$("palette-grey-400")),Se(A.Switch,"defaultColor",$("palette-common-white")),Se(A.Switch,"defaultDisabledColor",$("palette-grey-100")),Se(A.Switch,"primaryDisabledColor",an(A.primary.main,.62)),Se(A.Switch,"secondaryDisabledColor",an(A.secondary.main,.62)),Se(A.Switch,"errorDisabledColor",an(A.error.main,.62)),Se(A.Switch,"infoDisabledColor",an(A.info.main,.62)),Se(A.Switch,"successDisabledColor",an(A.success.main,.62)),Se(A.Switch,"warningDisabledColor",an(A.warning.main,.62)),Se(A.TableCell,"border",an(Yp(A.divider,1),.88)),Se(A.Tooltip,"bg",Yp(A.grey[700],.92))}if(A.mode==="dark"){Se(A.Alert,"errorColor",an(A.error.light,.6)),Se(A.Alert,"infoColor",an(A.info.light,.6)),Se(A.Alert,"successColor",an(A.success.light,.6)),Se(A.Alert,"warningColor",an(A.warning.light,.6)),Se(A.Alert,"errorFilledBg",$("palette-error-dark")),Se(A.Alert,"infoFilledBg",$("palette-info-dark")),Se(A.Alert,"successFilledBg",$("palette-success-dark")),Se(A.Alert,"warningFilledBg",$("palette-warning-dark")),Se(A.Alert,"errorFilledColor",Fs(()=>A.getContrastText(A.error.dark))),Se(A.Alert,"infoFilledColor",Fs(()=>A.getContrastText(A.info.dark))),Se(A.Alert,"successFilledColor",Fs(()=>A.getContrastText(A.success.dark))),Se(A.Alert,"warningFilledColor",Fs(()=>A.getContrastText(A.warning.dark))),Se(A.Alert,"errorStandardBg",sn(A.error.light,.9)),Se(A.Alert,"infoStandardBg",sn(A.info.light,.9)),Se(A.Alert,"successStandardBg",sn(A.success.light,.9)),Se(A.Alert,"warningStandardBg",sn(A.warning.light,.9)),Se(A.Alert,"errorIconColor",$("palette-error-main")),Se(A.Alert,"infoIconColor",$("palette-info-main")),Se(A.Alert,"successIconColor",$("palette-success-main")),Se(A.Alert,"warningIconColor",$("palette-warning-main")),Se(A.AppBar,"defaultBg",$("palette-grey-900")),Se(A.AppBar,"darkBg",$("palette-background-paper")),Se(A.AppBar,"darkColor",$("palette-text-primary")),Se(A.Avatar,"defaultBg",$("palette-grey-600")),Se(A.Button,"inheritContainedBg",$("palette-grey-800")),Se(A.Button,"inheritContainedHoverBg",$("palette-grey-700")),Se(A.Chip,"defaultBorder",$("palette-grey-700")),Se(A.Chip,"defaultAvatarColor",$("palette-grey-300")),Se(A.Chip,"defaultIconColor",$("palette-grey-300")),Se(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Se(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Se(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Se(A.LinearProgress,"primaryBg",sn(A.primary.main,.5)),Se(A.LinearProgress,"secondaryBg",sn(A.secondary.main,.5)),Se(A.LinearProgress,"errorBg",sn(A.error.main,.5)),Se(A.LinearProgress,"infoBg",sn(A.info.main,.5)),Se(A.LinearProgress,"successBg",sn(A.success.main,.5)),Se(A.LinearProgress,"warningBg",sn(A.warning.main,.5)),Se(A.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),Se(A.Slider,"primaryTrack",sn(A.primary.main,.5)),Se(A.Slider,"secondaryTrack",sn(A.secondary.main,.5)),Se(A.Slider,"errorTrack",sn(A.error.main,.5)),Se(A.Slider,"infoTrack",sn(A.info.main,.5)),Se(A.Slider,"successTrack",sn(A.success.main,.5)),Se(A.Slider,"warningTrack",sn(A.warning.main,.5));const L=Kp(A.background.default,.98);Se(A.SnackbarContent,"bg",L),Se(A.SnackbarContent,"color",Fs(()=>A.getContrastText(L))),Se(A.SpeedDialAction,"fabHoverBg",Kp(A.background.paper,.15)),Se(A.StepConnector,"border",$("palette-grey-600")),Se(A.StepContent,"border",$("palette-grey-600")),Se(A.Switch,"defaultColor",$("palette-grey-300")),Se(A.Switch,"defaultDisabledColor",$("palette-grey-600")),Se(A.Switch,"primaryDisabledColor",sn(A.primary.main,.55)),Se(A.Switch,"secondaryDisabledColor",sn(A.secondary.main,.55)),Se(A.Switch,"errorDisabledColor",sn(A.error.main,.55)),Se(A.Switch,"infoDisabledColor",sn(A.info.main,.55)),Se(A.Switch,"successDisabledColor",sn(A.success.main,.55)),Se(A.Switch,"warningDisabledColor",sn(A.warning.main,.55)),Se(A.TableCell,"border",sn(Yp(A.divider,1),.68)),Se(A.Tooltip,"bg",Yp(A.grey[700],.92))}Ra(A.background,"default"),Ra(A.background,"paper"),Ra(A.common,"background"),Ra(A.common,"onBackgroun
755d"),Ra(A,"divider"),Object.keys(A).forEach(L=>{const U=A[L];L!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&Se(A[L],"mainChannel",yf(bf(U.main))),U.light&&Se(A[L],"lightChannel",yf(bf(U.light))),U.dark&&Se(A[L],"darkChannel",yf(bf(U.dark))),U.contrastText&&Se(A[L],"contrastTextChannel",yf(bf(U.contrastText))),L==="text"&&(Ra(A[L],"primary"),Ra(A[L],"secondary")),L==="action"&&(U.active&&Ra(A[L],"active"),U.selected&&Ra(A[L],"selected")))})}),M=e.reduce((I,A)=>Gr(I,A),M);const k={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:BH(M)},{vars:P,generateThemeVars:j,generateStyleSheets:H}=sH(M,k);return M.vars=P,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([I,A])=>{M[I]=A}),M.generateThemeVars=j,M.generateStyleSheets=H,M.generateSpacing=function(){return rk(h.spacing,Ug(this))},M.getColorSchemeSelector=aH(u),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=l,M.unstable_sxConfig={...ph,...h==null?void 0:h.unstable_sxConfig},M.unstable_sx=function(A){return Ql({sx:A,theme:this})},M.toRuntimeSource=vk,M}function FC(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:dw({...n===!0?{}:n.palette,mode:e})})}function xk(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=t,u=a||"light",d=i==null?void 0:i[u],h={...i,...n?{[u]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return r1(t,...e);let p=n;"palette"in t||h[u]&&(h[u]!==!0?p=h[u].palette:u==="dark"&&(p={mode:"dark"}));const m=r1({...t,palette:p},...e);return m.defaultColorScheme=u,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},FC(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},FC(m,"light",h.light)),m}return!n&&!("light"in h)&&u==="light"&&(h.light=!0),VH({...l,colorSchemes:h,defaultColorScheme:u,...typeof r!="boolean"&&r},...e)}const wk=xk(),fw="$$material";function hw(){const t=ow(wk);return t[fw]||t}const rt=ok({themeId:fw,defaultTheme:wk,rootShouldForwardProp:Qu});function qH(){return Jx}const GH=w.createContext(void 0);function pw(){return w.useContext(GH)}function Qt(t){return eH(t)}class Jm{constructor(){sf(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Jm}static use(){const e=ck(Jm.create).current,[n,r]=w.useState(!1);return e.shouldMount=n,e.setShouldMount=r,w.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=YH(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function XH(){return Jm.use()}function YH(){let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n}function mw(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function eg(t,e){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},eg(t,e)}function Sk(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,eg(t,e)}const UC={disabled:!1},tg=ze.createContext(null);var KH=function(e){return e.scrollTop},xf="unmounted",wl="exited",Sl="entering",nu="entered",s1="exiting",Fa=function(t){Sk(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var l=i,u=l&&!l.isMounting?r.enter:r.appear,d;return a.appearStatus=null,r.in?u?(d=wl,a.appearStatus=Sl):d=nu:r.unmountOnExit||r.mountOnEnter?d=xf:d=wl,a.state={status:d},a.nextCallback=null,a}e.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===xf?{status:wl}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;
vendor: 4,094 bytes, line 755
755this.props.in?l!==Sl&&l!==nu&&(a=Sl):(l===Sl||l===nu)&&(a=s1)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,l,u;return a=l=u=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,u=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:u}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Sl){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this);l&&KH(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wl&&this.setState({status:xf})},n.performEnter=function(i){var a=this,l=this.props.enter,u=this.context?this.context.isMounting:i,d=this.props.nodeRef?[u]:[Cl.findDOMNode(this),u],h=d[0],p=d[1],m=this.getTimeouts(),g=u?m.appear:m.enter;if(!i&&!l||UC.disabled){this.safeSetState({status:nu},function(){a.props.onEntered(h)});return}this.props.onEnter(h,p),this.safeSetState({status:Sl},function(){a.props.onEntering(h,p),a.onTransitionEnd(g,function(){a.safeSetState({status:nu},function(){a.props.onEntered(h,p)})})})},n.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:Cl.findDOMNode(this);if(!a||UC.disabled){this.safeSetState({status:wl},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:s1},function(){i.props.onExiting(u),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:wl},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,a.nextCallback=null,i(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=d[0],p=d[1];this.props.addEndListener(h,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===xf)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=mw(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ze.createElement(tg.Provider,{value:null},typeof l=="function"?l(i,u):ze.cloneElement(ze.Children.only(l),u))},e}(ze.Component);Fa.contextType=tg;Fa.propTypes={};function Yc(){}Fa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yc,onEntering:Yc,onEntered:Yc,onExit:Yc,onExiting:Yc,onExited:Yc};Fa.UNMOUNTED=xf;Fa.EXITED=wl;Fa.ENTERING=Sl;Fa.ENTERED=nu;Fa.EXITING=s1;function Ho(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gw(t,e){var n=function(a){return e&&w.isValidElement(a)?e(a):a},r=Object.create(null);return t&&w.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function QH(t,e){t=t||{},e=e||{};function n(p){return p in e?e[p]:t[p]}var r=Object.create(null),i=[];for(var a in t)a in e?i.length&&(r[a]=i,i=[]):i.push(a);var l,u={};for(var d in e){if(r[d])for(l=0;l<r[d].length;l++){var h=r[d][l];u[r[d][l]]=n(h)}u[d]=n(d)}for(l=0;l<i.length;l++)u[i[l]]=n(i[l]);return u}function Ol(t,e,n){return n[e]!=null?n[e]:t.props[e]}function WH(t,e){return gw(t.children,function(n){return w.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Ol(n,"appear",t),enter:Ol(n,"enter",t),exit:Ol(n,"exit",t)})})}function ZH(t,e,n){var r=gw(t.children),i=QH(e,r);
755return Object.keys(i).forEach(function(a){var l=i[a];if(w.isValidElement(l)){var u=a in e,d=a in r,h=e[a],p=w.isValidElement(h)&&!h.props.in;d&&(!u||p)?i[a]=w.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Ol(l,"exit",t),enter:Ol(l,"enter",t)}):!d&&u&&!p?i[a]=w.cloneElement(l,{in:!1}):d&&u&&w.isValidElement(h)&&(i[a]=w.cloneElement(l,{onExited:n.bind(null,l),in:h.props.in,exit:Ol(l,"exit",t),enter:Ol(l,"enter",t)}))}}),i}var JH=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},e7={component:"div",childFactory:function(e){return e}},vw=function(t){Sk(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var l=a.handleExited.bind(Ho(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(i,a){var l=a.children,u=a.handleExited,d=a.firstRender;return{children:d?WH(i,u):ZH(i,l,u),firstRender:!1}},n.handleExited=function(i,a){var l=gw(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(u){var d=La({},u.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,a=i.component,l=i.childFactory,u=mw(i,["component","childFactory"]),d=this.state.contextValue,h=JH(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,a===null?ze.createElement(tg.Provider,{value:d},h):ze.createElement(tg.Provider,{value:d},ze.createElement(a,u,h))},e}(ze.Component);vw.propTypes={};vw.defaultProps=e7;function t7(t){const{className:e,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:u,onExited:d,timeout:h}=t,[p,m]=w.useState(!1),g=vt(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},E=vt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&m(!0),w.useEffect(()=>{if(!u&&d!=null){const y=setTimeout(d,h);return()=>{clearTimeout(y)}}},[d,u,h]),C.jsx("span",{className:g,style:b,children:C.jsx("span",{className:E})})}const Yi=$t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),a1=550,n7=80,r7=gh`
756  0% {
757    transform: scale(0);
758    opacity: 0.1;
759  }
760
761  100% {
762    transform: scale(1);
763    opacity: 0.3;
764  }
765`,i7=gh`
766  0% {
767    opacity: 1;
768  }
769
770  100% {
771    opacity: 0;
772  }
773`,s7=gh`
774  0% {
775    transform: scale(1);
776  }
777
778  50% {
779    transform: scale(0.92);
780  }
781
782  100% {
783    transform: scale(1);
784  }
785`,a7=rt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),o7=rt(t7,{name:"MuiTouchRipple",slot:"Ripple"})`
786  opacity: 0;
787  position: absolute;
788
789  &.${Yi.rippleVisible} {
790    opacity: 0.3;
791    transform: scale(1);
792    animation-name: ${r7};
793    animation-duration: ${a1}ms;
794    animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
795  }
796
797  &.${Yi.ripplePulsate} {
798    animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
799  }
800
801  & .${Yi.child} {
802    opacity: 1;
803    display: block;
804    width: 100%;
805    height: 100%;
806    border-radius: 50%;
807    background-color: currentColor;
808  }
809
810  & .${Yi.childLeaving} {
811    opacity: 0;
812    animation-name: ${i7};
813    animation-duration: ${a1}ms;
814    animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
815  }
816
817  & .${Yi.childPulsate} {
818    position: absolute;
819    /* @noflip */
820    left: 0px;
821    top: 0;
822    animation-name: ${s7};
823    animation-duration: 2500ms;
824    animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
825    animation-iteration-count: infinite;
826    animation-delay: 200ms;
827  }
828`,l7=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...u}=r,[d,h]=w.useState([]),p=w.useRef(0),m=w.useRef(null);w.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const g=w.useRef(!1),b=X9(),E=w.useRef(null),y=w.useRef(null),x=w.useCallback(M=>{const{pulsate:k,rippleX:P,rippleY:j,rippleSize:H,cb:I}=M;h(A=>[...A,C.jsx(o7,{classes:{ripple:vt(a.ripple,Yi.ripple),rippleVisible:vt(a.rippleVisible,Yi.rippleVisible),ripplePulsate:vt(a.ripplePulsate,Yi.ripplePulsate),
828child:vt(a.child,Yi.child),childLeaving:vt(a.childLeaving,Yi.childLeaving),childPulsate:vt(a.childPulsate,Yi.childPulsate)},timeout:a1,pulsate:k,rippleX:P,rippleY:j,rippleSize:H},p.current)]),p.current+=1,m.current=I},[a]),S=w.useCallback((M={},k={},P=()=>{})=>{const{pulsate:j=!1,center:H=i||k.pulsate,fakeElement:I=!1}=k;if((M==null?void 0:M.type)==="mousedown"&&g.current){g.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(g.current=!0);const A=I?null:y.current,$=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,U,V;if(H||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)L=Math.round($.width/2),U=Math.round($.height/2);else{const{clientX:Q,clientY:F}=M.touches&&M.touches.length>0?M.touches[0]:M;L=Math.round(Q-$.left),U=Math.round(F-$.top)}if(H)V=Math.sqrt((2*$.width**2+$.height**2)/3),V%2===0&&(V+=1);else{const Q=Math.max(Math.abs((A?A.clientWidth:0)-L),L)*2+2,F=Math.max(Math.abs((A?A.clientHeight:0)-U),U)*2+2;V=Math.sqrt(Q**2+F**2)}M!=null&&M.touches?E.current===null&&(E.current=()=>{x({pulsate:j,rippleX:L,rippleY:U,rippleSize:V,cb:P})},b.start(n7,()=>{E.current&&(E.current(),E.current=null)})):x({pulsate:j,rippleX:L,rippleY:U,rippleSize:V,cb:P})},[i,x,b]),R=w.useCallback(()=>{S({},{pulsate:!0})},[S]),O=w.useCallback((M,k)=>{if(b.clear(),(M==null?void 0:M.type)==="touchend"&&E.current){E.current(),E.current=null,b.start(0,()=>{O(M,k)});return}E.current=null,h(P=>P.length>0?P.slice(1):P),m.current=k},[b]);return w.useImperativeHandle(n,()=>({pulsate:R,start:S,stop:O}),[R,S,O]),C.jsx(a7,{className:vt(Yi.root,a.root,l),ref:y,...u,children:C.jsx(vw,{component:null,exit:!0,children:d})})});function c7(t){return Vt("MuiButtonBase",t)}const u7=$t("MuiButtonBase",["root","disabled","focusVisible"]),d7=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:i}=t,l=Kt({root:["root",e&&"disabled",n&&"focusVisible"]},c7,i);return n&&r&&(l.root+=` ${r}`),l},f7=rt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${u7.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jg=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:u,component:d="button",disabled:h=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:g=!1,focusVisibleClassName:b,LinkComponent:E="a",onBlur:y,onClick:x,onContextMenu:S,onDragLeave:R,onFocus:O,onFocusVisible:M,onKeyDown:k,onKeyUp:P,onMouseDown:j,onMouseLeave:H,onMouseUp:I,onTouchEnd:A,onTouchMove:$,onTouchStart:L,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:Q,type:F,...J}=r,ae=w.useRef(null),ye=XH(),X=ia(ye.ref,Q),[ee,ve]=w.useState(!1);h&&ee&&ve(!1),w.useImperativeHandle(i,()=>({focusVisible:()=>{ve(!0),ae.current.focus()}}),[]);const le=ye.shouldMount&&!p&&!h;w.useEffect(()=>{ee&&g&&!p&&ye.pulsate()},[p,g,ee,ye]);const se=Ta(ye,"start",j,m),he=Ta(ye,"stop",S,m),ie=Ta(ye,"stop",R,m),be=Ta(ye,"stop",I,m),xe=Ta(ye,"stop",K=>{ee&&K.preventDefault(),H&&H(K)},m),ke=Ta(ye,"start",L,m),Me=Ta(ye,"stop",A,m),Ne=Ta(ye,"stop",$,m),Te=Ta(ye,"stop",K=>{NC(K.target)||ve(!1),y&&y(K)},!1),Be=uu(K=>{ae.current||(ae.current=K.currentTarget),NC(K.target)&&(ve(!0),M&&M(K)),O&&O(K)}),nt=()=>{const K=ae.current;return d&&d!=="button"&&!(K.tagName==="A"&&K.href)},yt=uu(K=>{g&&!K.repeat&&ee&&K.key===" "&&ye.stop(K,()=>{ye.start(K)}),K.target===K.currentTarget&&nt()&&K.key===" "&&K.preventDefault(),k&&k(K),K.target===K.currentTarget&&nt()&&K.key==="Enter"&&!h&&(K.preventDefault(),x&&x(K))}),_e=uu(K=>{g&&K.key===" "&&ee&&!K.defaultPrevented&&ye.stop(K,()=>{ye.pulsate(K)}),P&&P(K),x&&K.target===K.currentTarget&&nt()&&K.key===" "&&!K.defaultPrevented&&x(K)});let Ae=d;Ae==="button"&&(J.href||J.to)&&(Ae=E);const je={};Ae==="button"?(je.type=F===void 0?"button":F,je.disabled=h):(!J.href&&!J.to&&(je.role="button"),h&&(je["aria-disabled"]=h));const $e=ia(n,ae),Y={...r,centerRipple:a,component:d,disabled:h,disableRipple:p,disableTouchRipple:m,focusRipple:g,tabIndex:U,focusVisible:ee},G=d7(Y);return C.jsxs(f7,{as:Ae,className:vt(G.root,u),ownerState:Y,onBlur:Te,onClick:x,onContextMenu:he,onFocus:Be,onKeyDown:yt,onKeyUp:_e,onMouseDown:se,onMouseLeave:xe,onMouseUp:be,onDragLeave:ie,onTouchEnd:Me,onTouchMove:Ne,onTouchStart:ke,ref:$e,tabIndex:h?-1:U,type:F,...je,...J,children:[l,le?C.jsx(l7,{ref:X,center:a,...V}):null]})});function Ta(t,e,n,r=!1){return uu(i=>(n&&n(i),r||t[e](i),!0))}function h7(t){return Vt("PrivateSwitchBase",t)}$t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function kn(t,e){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:u=!1,...d}=e,{component:h,slots:p={[t]:void 0},slotProps:m={[t]:void 0},...g}=a,b=p[t]||r,E=hk(m[t],i),{props:{component:y,...x},internalRef:S}=fk({className:n,...d,externalForwardedProps:t==="root"?g:void 0,externalSlotProps:E}),R=ia(S,E==null?void 0:E.ref,e.ref),O=t==="root"?y||h:y,M=uk(b,{...t==="root"&&!h&&!p[t]&&l,...t!=="root"&&!p[t]&&l,...x,...O&&!u&&{as:O},...O&&u&&{component:O},ref:R},i);return[b,M]}const p7=t=>{const{classes:e,checked:n,disabled:r,edge:i}=t,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${Ge(i)}`],input:["input"]};return Kt(a,h7,e)},m7=rt(Jg)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),g7=rt("input",{shouldForwardProp:Qu})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yw=w.forwardRef(function(e,n){const{autoFocus:r,checked:i,checkedIcon:a,defaultChecked:l,disabled:u,disableFocusRipple:d=!1,edge:h=!1,icon:p,id:m,inputProps:g,inputRef:b,name:E,onBlur:y,onChange:x,onFocus:S,readOnly:R,required:O=!1,tabIndex:M,type:k,value:P,slots:j={},slotProps:H={},...I}=e,[A,$]=lk({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),L=pw(),U=he=>{S&&S(he),L&&L.onFocus&&L.onFocus(he)},V=he=>{y&&y(he),L&&L.onBlur&&L.onBlur(he)},Q=he=>{if(he.nativeEvent.defaultPrevented)return;const ie=he.target.checked;$(ie),x&&x(he,ie)};let F=u;L&&typeof F>"u"&&(F=L.disabled);const J=k==="checkbox"||k==="radio",ae={...e,checked:A,disabled:F,disableFocusRipple:d,edge:h},ye=p7(ae),X={slots:j,slotProps:{input:g,...H}}
828,[ee,ve]=kn("root",{ref:n,elementType:m7,className:ye.root,shouldForwardComponentProp:!0,externalForwardedProps:{...X,component:"span",...I},getSlotProps:he=>({...he,onFocus:ie=>{var be;(be=he.onFocus)==null||be.call(he,ie),U(ie)},onBlur:ie=>{var be;(be=he.onBlur)==null||be.call(he,ie),V(ie)}}),ownerState:ae,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:F,role:void 0,tabIndex:null}}),[le,se]=kn("input",{ref:b,elementType:g7,className:ye.input,externalForwardedProps:X,getSlotProps:he=>({onChange:ie=>{var be;(be=he.onChange)==null||be.call(he,ie),Q(ie)}}),ownerState:ae,additionalProps:{autoFocus:r,checked:i,defaultChecked:l,disabled:F,id:J?m:void 0,name:E,readOnly:R,required:O,tabIndex:M,type:k,...k==="checkbox"&&P===void 0?{}:{value:P}}});return C.jsxs(ee,{...ve,children:[C.jsx(le,{...se}),A?a:p]})}),on=tH;function v7(t){return Vt("MuiSvgIcon",t)}$t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const y7=t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root",e!=="inherit"&&`color${Ge(e)}`,`fontSize${Ge(n)}`]};return Kt(i,v7,r)},b7=rt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Ge(n.color)}`],e[`fontSize${Ge(n.fontSize)}`]]}})(on(({theme:t})=>{var e,n,r,i,a,l,u,d,h,p,m,g,b,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(e=t.transitions)==null?void 0:e.create)==null?void 0:i.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:p.call(h,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,y])=>y&&y.main).map(([y])=>{var x,S;return{props:{color:y},style:{color:(S=(x=(t.vars??t).palette)==null?void 0:x[y])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(g=(m=(t.vars??t).palette)==null?void 0:m.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(E=(b=(t.vars??t).palette)==null?void 0:b.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),o1=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24",...b}=r,E=w.isValidElement(i)&&i.type==="svg",y={...r,color:l,component:u,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:E},x={};p||(x.viewBox=g);const S=y7(y);return C.jsxs(b7,{as:u,className:vt(S.root,a),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...x,...b,...E&&i.props,ownerState:y,children:[E?i.props.children:i,m?C.jsx("title",{children:m}):null]})});o1.muiName="SvgIcon";function hi(t,e){function n(r,i){return C.jsx(o1,{"data-testid":`${e}Icon`,ref:i,...r,children:t})}return n.muiName=o1.muiName,w.memo(w.forwardRef(n))}const x7=hi(C.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"),w7=hi(C.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"),S7=hi(C.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 _7(t){return Vt("MuiCheckbox",t)}const nb=$t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function E7(t){return typeof t.main=="string"}function C7(t,e=[]){if(!E7(t))return!1;
828for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Ji(t=[]){return([,e])=>e&&C7(e,t)}function R7(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return i=>{const a=typeof e=="function"?e(i):e,l=typeof t=="function"?t({...i,...a}):t,u=vt(i==null?void 0:i.className,a==null?void 0:a.className,l==null?void 0:l.className);return{...a,...l,...!!u&&{className:u},...(a==null?void 0:a.style)&&(l==null?void 0:l.style)&&{style:{...a.style,...l.style}},...(a==null?void 0:a.sx)&&(l==null?void 0:l.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const n=e,r=vt(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...!!r&&{className:r},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const T7=t=>{const{classes:e,indeterminate:n,color:r,size:i}=t,a={root:["root",n&&"indeterminate",`color${Ge(r)}`,`size${Ge(i)}`]},l=Kt(a,_7,e);return{...e,...l}},O7=rt(yw,{shouldForwardProp:t=>Qu(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${Ge(n.size)}`],n.color!=="default"&&e[`color${Ge(n.color)}`]]}})(on(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Ji()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Ji()).map(([e])=>({props:{color:e},style:{[`&.${nb.checked}, &.${nb.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${nb.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),A7=C.jsx(w7,{}),k7=C.jsx(x7,{}),M7=C.jsx(S7,{}),wne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiCheckbox"}),{checkedIcon:i=A7,color:a="primary",icon:l=k7,indeterminate:u=!1,indeterminateIcon:d=M7,inputProps:h,size:p="medium",disableRipple:m=!1,className:g,slots:b={},slotProps:E={},...y}=r,x=u?d:l,S=u?d:i,R={...r,disableRipple:m,color:a,indeterminate:u,size:p},O=T7(R),M=E.input??h,[k,P]=kn("root",{ref:n,elementType:O7,className:vt(O.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:E,...y},ownerState:R,additionalProps:{type:"checkbox",icon:w.cloneElement(x,{fontSize:x.props.fontSize??p}),checkedIcon:w.cloneElement(S,{fontSize:S.props.fontSize??p}),disableRipple:m,slots:b,slotProps:{input:R7(typeof M=="function"?M(R):M,{"data-indeterminate":u})}}});return C.jsx(k,{...P,classes:O})});function N7(t){return Vt("MuiTypography",t)}$t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const D7={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},P7=qH(),j7=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:l}=t,u={root:["root",a,t.align!=="inherit"&&`align${Ge(e)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Kt(u,N7,l)},L7=rt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${Ge(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(on(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(Ji()).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Ge(n)}`},style:{color:(t.vars||t).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}}
828)),IC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},VC=w.forwardRef(function(e,n){const{color:r,...i}=Qt({props:e,name:"MuiTypography"}),a=!D7[r],l=P7({...i,...a&&{color:r}}),{align:u="inherit",className:d,component:h,gutterBottom:p=!1,noWrap:m=!1,paragraph:g=!1,variant:b="body1",variantMapping:E=IC,...y}=l,x={...l,align:u,color:r,className:d,component:h,gutterBottom:p,noWrap:m,paragraph:g,variant:b,variantMapping:E},S=h||(g?"p":E[b]||IC[b])||"span",R=j7(x);return C.jsx(L7,{as:S,ref:n,className:vt(R.root,d),...y,ownerState:x,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...y.style}})});function z7(t){return Vt("MuiFormControlLabel",t)}const wf=$t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function $7({props:t,states:e,muiFormControl:n}){return e.reduce((r,i)=>(r[i]=t[i],n&&typeof t[i]>"u"&&(r[i]=n[i]),r),{})}const H7=t=>{const{classes:e,disabled:n,labelPlacement:r,error:i,required:a}=t,l={root:["root",n&&"disabled",`labelPlacement${Ge(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Kt(l,z7,e)},B7=rt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${wf.label}`]:e.label},e.root,e[`labelPlacement${Ge(n.labelPlacement)}`]]}})(on(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${wf.disabled}`]:{cursor:"default"},[`& .${wf.label}`]:{[`&.${wf.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),F7=rt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(on(({theme:t})=>({[`&.${wf.error}`]:{color:(t.vars||t).palette.error.main}}))),Sne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:u,disabled:d,disableTypography:h,inputRef:p,label:m,labelPlacement:g="end",name:b,onChange:E,required:y,slots:x={},slotProps:S={},value:R,...O}=r,M=pw(),k=d??u.props.disabled??(M==null?void 0:M.disabled),P=y??u.props.required,j={disabled:k,required:P};["checked","name","onChange","value","inputRef"].forEach(Q=>{typeof u.props[Q]>"u"&&typeof r[Q]<"u"&&(j[Q]=r[Q])});const H=$7({props:r,muiFormControl:M,states:["error"]}),I={...r,disabled:k,labelPlacement:g,required:P,error:H.error},A=H7(I),$={slots:x,slotProps:{...l,...S}},[L,U]=kn("typography",{elementType:VC,externalForwardedProps:$,ownerState:I});let V=m;return V!=null&&V.type!==VC&&!h&&(V=C.jsx(L,{component:"span",...U,className:vt(A.label,U==null?void 0:U.className),children:V})),C.jsxs(B7,{className:vt(A.root,a),ownerState:I,ref:n,...O,children:[w.cloneElement(u,j),P?C.jsxs("div",{children:[V,C.jsxs(F7,{ownerState:I,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):V]})});var vh=t=>t.type==="checkbox",Al=t=>t instanceof Date,qr=t=>t==null;const _k=t=>typeof t=="object";var Bn=t=>!qr(t)&&!Array.isArray(t)&&_k(t)&&!Al(t),Ek=t=>Bn(t)&&t.target?vh(t.target)?t.target.checked:t.target.value:t,U7=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Ck=(t,e)=>t.has(U7(e)),I7=t=>{const e=t.constructor&&t.constructor.prototype;return Bn(e)&&e.hasOwnProperty("isPrototypeOf")},bw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function wn(t){let e;const n=Array.isArray(t),r=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(bw&&(t instanceof Blob||r))&&(n||Bn(t)))if(e=n?[]:{},!n&&!I7(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=wn(t[i]));else return t;return e}var yh=t=>Array.isArray(t)?t.filter(Boolean):[],hn=t=>t===void 0,He=(t,e,n)=>{if(!e||!Bn(t))return n;const r=yh(e.split(/[,[\].]+?/)).reduce((i,a)=>qr(i)?i:i[a],t);return hn(r)||r===t?hn(t[e])?n:t[e]:r},Ri=t=>typeof t=="boolean",xw=t=>/^\w*$/.test(t),Rk=t=>yh(t.replace(/["|']|\]/g,"").split(/\.|\[/)),Dt=(t,e,n)=>{let r=-1;const i=xw(e)?[e]:Rk(e),a=i.length,l=a-1;for(;++r<a;){const u=i[r];let d=n;if(r!==l){const h=t[u];d=Bn(h)||Array.isArray(h)?h:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;t[u]=d,t=t[u]}};const ng={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Oa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},V7=ze.createContext(null),ev=()=>ze.useContext(V7);var Tk=(t,e,n,r=!0)=>{const i={defaultValues:e._defaultValues};for(const a in t)Object.defineProperty(i,a,{get:()=>{const l=a;return e._proxyFormState[l]!==Qi.all&&(e._proxyFormState[l]=!r||Qi.all),n&&(n[l]=!0),t[l]}});return i};const ww=typeof window<"u"?w.useLayoutEffect:w.useEffect;function q7(t){const e=ev(),{control:n=e.control,disabled:r,name:i,exact:a}=t||{},[l,u]=ze.useState(n._formState),d=ze.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ww(()=>n._subscribe({name:i,formState:d.current,exact:a,callback:h=>{!r&&u({...n._formState,...h})}}),[i,r,a]),ze.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),ze.useMemo(()=>Tk(l,n,d.current,!1),[l,n])}var Js=t=>typeof t=="string",Ok=(t,e,n,r,i)=>Js(t)?(r&&e.watch.add(t),He(n,t,i)):Array.isArray(t)?t.map(a=>(r&&e.watch.add(a),He(n,a))):(r&&(e.watchAll=!0),n);function G7(t){const e=ev(),{control:n=e.control,name:r,defaultValue:i,disabled:a,exact:l}=t||{},u=ze.useRef(i),[d,h]=ze.useState(n._getWatch(r,u.current));return ww(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:p=>!a&&h(Ok(r,n._names,p.values||n._formValues,!1,u.current))}),[r,n,a,l]),ze.useEffect(()=>n._removeUnmounted()),d}function X7(t){const e=ev(),{name:n,disabled:r,control:i=e.control,shouldUnregister:a}=t,l=Ck(i._names.array,n),u=G7({control:i,name:n,defaultValue:He(i._formValues,n,He(i._defaultValues,n,t.defaultValue)),exact:!0}),d=q7({control:i,name:n,exact:!0}),h=ze.useRef(t),p=ze.useRef(i.register(n,{...t.rules,value:u,...Ri(t.disabled)?{disabled:t.disabled}:{}})),m=ze.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!He(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!He(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!He(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!He(d.validatingFields,n)},error:{enumerable:!0,get:()=>He(d.errors,n)}}),[d,n]),g=ze.useCallback(x=>p.current.onChange({target:{value:Ek(x),name:n},type:ng.CHANGE}),[n]),b=ze.useCallback(()=>p.current.onBlur({target:{value:He(i._formValues,n),name:n},type:ng.BLUR}),[n,i._formValues]),E=ze.useCallback(x=>{const S=He(i._fields,n);S&&x&&(S._f.ref={focus:()=>x.focus(),select:()=>x.select(),setCustomValidity:R=>x.setCustomValidity(R),reportValidity:()=>x.reportValidity()})},[i._fields,n]),y=ze.useMemo(()=>({name:n,value:u,...Ri(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:g,onBlur:b,ref:E}),[n,r,d.disabled,g,b,E,u]);return ze.useEffect(()=>{const x=i._options.shouldUnregister||a;i.register(n,{...h.current.rules,...Ri(h.current.disabled)?{disabled:h.current.disabled}:{}});const S=(R,O)=>{const M=He(i._fields,R);M&&M._f&&(M._f.mount=O)};if(S(n,!0),x){const R=wn(He(i._options.defaultValues,n));Dt(i._defaultValues,n,R),hn(He(i._formValues,n))&&Dt(i._formValues,n,R)}return!l&&i.register(n),()=>{(l?x&&!i._state.action:x)?i.unregister(n):S(n,!1)}},[n,i,l,a]),ze.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),ze.useMemo(()=>({field:y,formState:d,fieldState:m}),[y,d,m])}const _t=t=>t.render(X7(t));var Ak=(t,e,n,r,i)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[r]:i||!0}}:{},ai=t=>Array.isArray(t)?t:[t],qC=()=>{let t=[];return{get observers(){return t},next:i=>{for(const a of t)a.next&&a.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(a=>a!==i)}}),unsubscribe:()=>{t=[]}}},l1=t=>qr(t)||!_k(t);function To(t,e){if(l1(t)||l1(e))return t===e;if(Al(t)&&Al(e))return t.getTime()===e.getTime();const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const i of n){const a=t[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=e[i];if(Al(a)&&Al(l)||Bn(a)&&Bn(l)||Array.isArray(a)&&Array.isArray(l)?!To(a,l):a!==l)return!1}}return!0}var Nr=t=>Bn(t)&&!Object.keys(t).length,Sw=t=>t.type==="file",xs=t=>typeof t=="function",rg=t=>{if(!bw)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},kk=t=>t.type==="select-multiple",_w=t=>t.type==="radio",Y7=t=>_w(t)||vh(t),rb=t=>rg(t)&&t.isConnected;function K7(t,e){const n=e.slice(0,-1).length;let r=0;for(;r<n;)t=hn(t)?r++:t[e[r++]];return t}function Q7(t){for(const e in t)if(t.hasOwnProperty(e)&&!hn(t[e]))return!1;return!0}function Xn(t,e){const n=Array.isArray(e)?e:xw(e)?[e]:Rk(e),r=n.length===1?t:K7(t,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Bn(r)&&Nr(r)||Array.isArray(r)&&Q7(r))&&Xn(t,n.slice(0,-1)),t}var Mk=t=>{for(const e in t)if(xs(t[e]))return!0;return!1};function ig(t,e={}){const n=Array.isArray(t);if(Bn(t)||n)for(const r in t)Array.isArray(t[r])||Bn(t[r])&&!Mk(t[r])?(e[r]=Array.isArray(t[r])?[]:{},ig(t[r],e[r])):qr(t[r])||(e[r]=!0);return e}function Nk(t,e,n){const r=Array.isArray(t);if(Bn(t)||r)for(const i in t)Array.isArray(t[i])||Bn(t[i])&&!Mk(t[i])?hn(e)||l1(n[i])?n[i]=Array.isArray(t[i])?ig(t[i],[]):{...ig(t[i])}:Nk(t[i],qr(e)?{}:e[i],n[i]):n[i]=!To(t[i],e[i]);return n}var ff=(t,e)=>Nk(t,e,ig(e));const GC={value:!1,isValid:!1},XC={value:!0,isValid:!0};var Dk=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!hn(t[0].attributes.value)?hn(t[0].value)||t[0].value===""?XC:{value:t[0].value,isValid:!0}:XC:GC}return GC},Pk=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:r})=>hn(t)?t:e?t===""?NaN:t&&+t:n&&Js(t)?new Date(t):r?r(t):t;const YC={isValid:!1,value:null};var jk=t=>Array.isArray(t)?t.reduce((e,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:e,YC):YC;function KC(t){const e=t.ref;
vendor: 5,023 bytes, line 828
828return Sw(e)?e.files:_w(e)?jk(t.refs).value:kk(e)?[...e.selectedOptions].map(({value:n})=>n):vh(e)?Dk(t.refs).value:Pk(hn(e.value)?t.ref.value:e.value,t)}var W7=(t,e,n,r)=>{const i={};for(const a of t){const l=He(e,a);l&&Dt(i,a,l._f)}return{criteriaMode:n,names:[...t],fields:i,shouldUseNativeValidation:r}},sg=t=>t instanceof RegExp,hf=t=>hn(t)?t:sg(t)?t.source:Bn(t)?sg(t.value)?t.value.source:t.value:t,iu=t=>({isOnSubmit:!t||t===Qi.onSubmit,isOnBlur:t===Qi.onBlur,isOnChange:t===Qi.onChange,isOnAll:t===Qi.all,isOnTouch:t===Qi.onTouched});const QC="AsyncFunction";var Z7=t=>!!t&&!!t.validate&&!!(xs(t.validate)&&t.validate.constructor.name===QC||Bn(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===QC)),J7=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),c1=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some(r=>t.startsWith(r)&&/^\.\w+/.test(t.slice(r.length))));const du=(t,e,n,r)=>{for(const i of n||Object.keys(t)){const a=He(t,i);if(a){const{_f:l,...u}=a;if(l){if(l.refs&&l.refs[0]&&e(l.refs[0],i)&&!r)return!0;if(l.ref&&e(l.ref,l.name)&&!r)return!0;if(du(u,e))break}else if(Bn(u)&&du(u,e))break}}};function WC(t,e,n){const r=He(t,n);if(r||xw(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),l=He(e,a),u=He(t,a);if(l&&!Array.isArray(l)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};i.pop()}return{name:n}}var eB=(t,e,n,r)=>{n(t);const{name:i,...a}=t;return Nr(a)||Object.keys(a).length>=Object.keys(e).length||Object.keys(a).find(l=>e[l]===(!r||Qi.all))},tB=(t,e,n)=>!t||!e||t===e||ai(t).some(r=>r&&(n?r===e:r.startsWith(e)||e.startsWith(r))),nB=(t,e,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(e||t):(n?r.isOnBlur:i.isOnBlur)?!t:(n?r.isOnChange:i.isOnChange)?t:!0,rB=(t,e)=>!yh(He(t,e)).length&&Xn(t,e),Lk=(t,e,n)=>{const r=ai(He(t,n));return Dt(r,"root",e[n]),Dt(t,n,r),t},Tm=t=>Js(t);function ZC(t,e,n="validate"){if(Tm(t)||Array.isArray(t)&&t.every(Tm)||Ri(t)&&!t)return{type:n,message:Tm(t)?t:"",ref:e}}var Kc=t=>Bn(t)&&!sg(t)?t:{value:t,message:""},u1=async(t,e,n,r,i,a)=>{const{ref:l,refs:u,required:d,maxLength:h,minLength:p,min:m,max:g,pattern:b,validate:E,name:y,valueAsNumber:x,mount:S}=t._f,R=He(n,y);if(!S||e.has(y))return{};const O=u?u[0]:l,M=L=>{i&&O.reportValidity&&(O.setCustomValidity(Ri(L)?"":L||""),O.reportValidity())},k={},P=_w(l),j=vh(l),H=P||j,I=(x||Sw(l))&&hn(l.value)&&hn(R)||rg(l)&&l.value===""||R===""||Array.isArray(R)&&!R.length,A=Ak.bind(null,y,r,k),$=(L,U,V,Q=Oa.maxLength,F=Oa.minLength)=>{const J=L?U:V;k[y]={type:L?Q:F,message:J,ref:l,...A(L?Q:F,J)}};if(a?!Array.isArray(R)||!R.length:d&&(!H&&(I||qr(R))||Ri(R)&&!R||j&&!Dk(u).isValid||P&&!jk(u).isValid)){const{value:L,message:U}=Tm(d)?{value:!!d,message:d}:Kc(d);if(L&&(k[y]={type:Oa.required,message:U,ref:O,...A(Oa.required,U)},!r))return M(U),k}if(!I&&(!qr(m)||!qr(g))){let L,U;const V=Kc(g),Q=Kc(m);if(!qr(R)&&!isNaN(R)){const F=l.valueAsNumber||R&&+R;qr(V.value)||(L=F>V.value),qr(Q.value)||(U=F<Q.value)}else{const F=l.valueAsDate||new Date(R),J=X=>new Date(new Date().toDateString()+" "+X),ae=l.type=="time",ye=l.type=="week";Js(V.value)&&R&&(L=ae?J(R)>J(V.value):ye?R>V.value:F>new Date(V.value)),Js(Q.value)&&R&&(U=ae?J(R)<J(Q.value):ye?R<Q.value:F<new Date(Q.value))}if((L||U)&&($(!!L,V.message,Q.message,Oa.max,Oa.min),!r))return M(k[y].message),k}if((h||p)&&!I&&(Js(R)||a&&Array.isArray(R))){const L=Kc(h),U=Kc(p),V=!qr(L.value)&&R.length>+L.value,Q=!qr(U.value)&&R.length<+U.value;if((V||Q)&&($(V,L.message,U.message),!r))return M(k[y].message),k}if(b&&!I&&Js(R)){const{value:L,message:U}=Kc(b);if(sg(L)&&!R.match(L)&&(k[y]={type:Oa.pattern,message:U,ref:l,...A(Oa.pattern,U)},!r))return M(U),k}if(E){if(xs(E)){const L=await E(R,n),U=ZC(L,O);if(U&&(k[y]={...U,...A(Oa.validate,U.message)},!r))return M(U.message),k}else if(Bn(E)){let L={};for(const U in E){if(!Nr(L)&&!r)break;const V=ZC(await E[U](R,n),O,U);V&&(L={...V,...A(U,V.message)},M(V.message),r&&(k[y]=L))}if(!Nr(L)&&(k[y]={ref:O,...L},!r))return k}}return M(!0),k};const iB={mode:Qi.onSubmit,reValidateMode:Qi.onChange,shouldFocusError:!0};function sB(t={}){let e={...iB,...t},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:xs(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1};const r={};let i=Bn(e.defaultValues)||Bn(e.values)?wn(e.defaultValues||e.values)||{}:{},a=e.shouldUnregister?{}:wn(i),l={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,h=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...p};const g={array:qC(),state:qC()},b=e.criteriaMode===Qi.all,E=Y=>G=>{clearTimeout(h),h=setTimeout(Y,G)},y=async Y=>{if(!e.disabled&&(p.isValid||m.isValid||Y)){const G=e.resolver?Nr((await j()).errors):await I(r,!0);G!==n.isValid&&g.state.next({isValid:G})}},x=(Y,G)=>
vendor: 7,469 bytes, line 828
828{!e.disabled&&(p.isValidating||p.validatingFields||m.isValidating||m.validatingFields)&&((Y||Array.from(u.mount)).forEach(K=>{K&&(G?Dt(n.validatingFields,K,G):Xn(n.validatingFields,K))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Nr(n.validatingFields)}))},S=(Y,G=[],K,ue,we=!0,pe=!0)=>{if(ue&&K&&!e.disabled){if(l.action=!0,pe&&Array.isArray(He(r,Y))){const De=K(He(r,Y),ue.argA,ue.argB);we&&Dt(r,Y,De)}if(pe&&Array.isArray(He(n.errors,Y))){const De=K(He(n.errors,Y),ue.argA,ue.argB);we&&Dt(n.errors,Y,De),rB(n.errors,Y)}if((p.touchedFields||m.touchedFields)&&pe&&Array.isArray(He(n.touchedFields,Y))){const De=K(He(n.touchedFields,Y),ue.argA,ue.argB);we&&Dt(n.touchedFields,Y,De)}(p.dirtyFields||m.dirtyFields)&&(n.dirtyFields=ff(i,a)),g.state.next({name:Y,isDirty:$(Y,G),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Dt(a,Y,G)},R=(Y,G)=>{Dt(n.errors,Y,G),g.state.next({errors:n.errors})},O=Y=>{n.errors=Y,g.state.next({errors:n.errors,isValid:!1})},M=(Y,G,K,ue)=>{const we=He(r,Y);if(we){const pe=He(a,Y,hn(K)?He(i,Y):K);hn(pe)||ue&&ue.defaultChecked||G?Dt(a,Y,G?pe:KC(we._f)):V(Y,pe),l.mount&&y()}},k=(Y,G,K,ue,we)=>{let pe=!1,De=!1;const Ue={name:Y};if(!e.disabled){if(!K||ue){(p.isDirty||m.isDirty)&&(De=n.isDirty,n.isDirty=Ue.isDirty=$(),pe=De!==Ue.isDirty);const Je=To(He(i,Y),G);De=!!He(n.dirtyFields,Y),Je?Xn(n.dirtyFields,Y):Dt(n.dirtyFields,Y,!0),Ue.dirtyFields=n.dirtyFields,pe=pe||(p.dirtyFields||m.dirtyFields)&&De!==!Je}if(K){const Je=He(n.touchedFields,Y);Je||(Dt(n.touchedFields,Y,K),Ue.touchedFields=n.touchedFields,pe=pe||(p.touchedFields||m.touchedFields)&&Je!==K)}pe&&we&&g.state.next(Ue)}return pe?Ue:{}},P=(Y,G,K,ue)=>{const we=He(n.errors,Y),pe=(p.isValid||m.isValid)&&Ri(G)&&n.isValid!==G;if(e.delayError&&K?(d=E(()=>R(Y,K)),d(e.delayError)):(clearTimeout(h),d=null,K?Dt(n.errors,Y,K):Xn(n.errors,Y)),(K?!To(we,K):we)||!Nr(ue)||pe){const De={...ue,...pe&&Ri(G)?{isValid:G}:{},errors:n.errors,name:Y};n={...n,...De},g.state.next(De)}},j=async Y=>{x(Y,!0);const G=await e.resolver(a,e.context,W7(Y||u.mount,r,e.criteriaMode,e.shouldUseNativeValidation));return x(Y),G},H=async Y=>{const{errors:G}=await j(Y);if(Y)for(const K of Y){const ue=He(G,K);ue?Dt(n.errors,K,ue):Xn(n.errors,K)}else n.errors=G;return G},I=async(Y,G,K={valid:!0})=>{for(const ue in Y){const we=Y[ue];if(we){const{_f:pe,...De}=we;if(pe){const Ue=u.array.has(pe.name),Je=we._f&&Z7(we._f);Je&&p.validatingFields&&x([ue],!0);const ot=await u1(we,u.disabled,a,b,e.shouldUseNativeValidation&&!G,Ue);if(Je&&p.validatingFields&&x([ue]),ot[pe.name]&&(K.valid=!1,G))break;!G&&(He(ot,pe.name)?Ue?Lk(n.errors,ot,pe.name):Dt(n.errors,pe.name,ot[pe.name]):Xn(n.errors,pe.name))}!Nr(De)&&await I(De,G,K)}}return K.valid},A=()=>{for(const Y of u.unMount){const G=He(r,Y);G&&(G._f.refs?G._f.refs.every(K=>!rb(K)):!rb(G._f.ref))&&be(Y)}u.unMount=new Set},$=(Y,G)=>!e.disabled&&(Y&&G&&Dt(a,Y,G),!To(X(),i)),L=(Y,G,K)=>Ok(Y,u,{...l.mount?a:hn(G)?i:Js(Y)?{[Y]:G}:G},K,G),U=Y=>yh(He(l.mount?a:i,Y,e.shouldUnregister?He(i,Y,[]):[])),V=(Y,G,K={})=>{const ue=He(r,Y);let we=G;if(ue){const pe=ue._f;pe&&(!pe.disabled&&Dt(a,Y,Pk(G,pe)),we=rg(pe.ref)&&qr(G)?"":G,kk(pe.ref)?[...pe.ref.options].forEach(De=>De.selected=we.includes(De.value)):pe.refs?vh(pe.ref)?pe.refs.forEach(De=>{(!De.defaultChecked||!De.disabled)&&(Array.isArray(we)?De.checked=!!we.find(Ue=>Ue===De.value):De.checked=we===De.value||!!we)}):pe.refs.forEach(De=>De.checked=De.value===we):Sw(pe.ref)?pe.ref.value="":(pe.ref.value=we,pe.ref.type||g.state.next({name:Y,values:wn(a)})))}(K.shouldDirty||K.shouldTouch)&&k(Y,we,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&ye(Y)},Q=(Y,G,K)=>{for(const ue in G){if(!G.hasOwnProperty(ue))return;const we=G[ue],pe=`${Y}.${ue}`,De=He(r,pe);(u.array.has(Y)||Bn(we)||De&&!De._f)&&!Al(we)?Q(pe,we,K):V(pe,we,K)}},F=(Y,G,K={})=>{const ue=He(r,Y),we=u.array.has(Y),pe=wn(G);Dt(a,Y,pe),we?(g.array.next({name:Y,values:wn(a)}),(p.isDirty||p.dirtyFields||m.isDirty||m.dirtyFields)&&K.shouldDirty&&g.state.next({name:Y,dirtyFields:ff(i,a),isDirty:$(Y,pe)})):ue&&!ue._f&&!qr(pe)?Q(Y,pe,K):V(Y,pe,K),c1(Y,u)&&g.state.next({...n}),g.state.next({name:l.mount?Y:void 0,values:wn(a)})},J=async Y=>{l.mount=!0;const G=Y.target;let K=G.name,ue=!0;const we=He(r,K),pe=Je=>{ue=Number.isNaN(Je)||Al(Je)&&isNaN(Je.getTime())||To(Je,He(a,K,Je))},De=iu(e.mode),Ue=iu(e.reValidateMode);if(we){let Je,ot;const un=G.type?KC(we._f):Ek(Y),qt=Y.type===ng.BLUR||Y.type===ng.FOCUS_OUT,Zn=!J7(we._f)&&!e.resolver&&!He(n.errors,K)&&!we._f.deps||nB(qt,He(n.touchedFields,K),n.isSubmitted,Ue,De),at=c1(K,u,qt);Dt(a,K,un),qt?(we._f.onBlur&&we._f.onBlur(Y),d&&d(0)):we._f.onChange&&we._f.onChange(Y);const ft=k(K,un,qt),Et=!Nr(ft)||at;if(!qt&&g.state.next({name:K,type:Y.type,values:wn(a)}),Zn)return(p.isValid||m.isValid)&&(e.mode==="onBlur"?qt&&y():qt||y()),Et&&g.state.next({name:K,...at?{}:ft});if(!qt&&at&&g.state.next({...n}),e.resolver){const{errors:Ht}=await j([K]);if(pe(un),ue){const Nn=WC(n.errors,r,K),Er=WC(Ht,r,Nn.name||K);Je=Er.error,K=Er.name,ot=Nr(Ht)}}else x([K],!0),Je=(await u1(we,u.disabled,a,b,e.shouldUseNativeValidation))[K],x([K]),pe(un),ue&&(Je?ot=!1:(p.isValid||m.isValid)&&(ot=await I(r,!0)));ue&&(we._f.deps&&ye(we._f.deps),P(K,ot,Je,ft))}},ae=(Y,G)=>{if(He(n.errors,G)&&Y.focus)return Y.focus(),1},ye=async(Y,G={})=>{let K,ue;const we=ai(Y);if(e.resolver){const pe=await H(hn(Y)?Y:we);K=Nr(pe),ue=Y?!we.some(De=>He(pe,De)):K}else Y?(ue=(await Promise.all(we.map(async pe=>{const De=He(r,pe);return await I(De&&De._f?{[pe]:De}:De)}))).every(Boolean),!(!ue&&!n.isValid)&&y()):ue=K=await I(r);return g.state.next({...!Js(Y)||(p.isValid||m.isValid)&&K!==n.isValid?{}:{name:Y},...e.resolver||!Y?{isValid:K}:{},errors:n.errors}),G.shouldFocus&&!ue&&du(r,ae,Y?we:u.mount),ue},X=Y=>{const G={...l.mount?a:i};return hn(Y)?G:Js(Y)?He(G,Y):Y.map(K=>He(G,K))},ee=(Y,G)=>({invalid:!!He((G||n).errors,Y),isDirty:!!He((G||n).dirtyFields,Y),error:He((G||n).errors,Y),isValidating:!!He(n.validatingFields,Y),isTouched:!!He((G||n).touchedFields,Y)}),ve=Y=>{Y&&ai(Y).forEach(G=>Xn(n.errors,G)),g.state.next({errors:Y?n.errors:{}})},le=(Y,G,K)=>{const ue=(He(r,Y,{_f:{}})._f||{}).ref,we=He(n.errors,Y)||{},{ref:pe,message:De,type:Ue,...Je}=we;Dt(n.errors,Y,{...Je,...G,ref:ue}),g.state.next({name:Y,errors:n.errors,isValid:!1}),K&&K.shouldFocus&&ue&&ue.focus&&ue.focus()},se=(Y,G)=>xs(Y)?g.state.subscribe({next:K=>Y(L(void 0,G),K)}):L(Y,G,!0),he=Y=>g.state.subscribe({next:G=>{tB(Y.name,G.name,Y.exact)&&eB(G,Y.formState||p,Ae,Y.reRenderRoot)&&Y.callback({values:{...a},...n,...G})}}).unsubscribe,ie=Y=>(l.mount=!0,m={...m,...Y.formState},he({...Y,formState:m})),be=(Y,G={})=>{for(const K of Y?ai(Y):u.mount)u.mount.delete(K),u.array.delete(K),G.keepValue||(Xn(r,K),Xn(a,K)),!G.keepError&&Xn(n.errors,K),!G.keepDirty&&Xn(n.dirtyFields,K),!G.keepTouched&&Xn(n.touchedFields,K),!G.keepIsValidating&&Xn(n.validatingFields,K),!e.shouldUnregister&&!G.keepDefaultValue&&Xn(i,K);g.state.next({values:wn(a)}),g.state.next({...n,...G.keepDirty?{isDirty:$()}:{}}),!G.keepIsValid&&y()},xe=({disabled:Y,name:G})=>{(Ri(Y)&&l.mount||Y||u.disabled.has(G))&&(Y?u.disabled.add(G):u.disabled.delete(G))},ke=(Y,G={})=>{let K=He(r,Y);const ue=Ri(G.disabled)||Ri(e.disabled);return Dt(r,Y,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:Y}},name:Y,mount:!0,...G}}),u.mount.add(Y),K?xe({disabled:Ri(G.disabled)?G.disabled:e.disabled,name:Y}):M(Y,!0,G.value),{...ue?{disabled:G.disabled||e.disabled}:{}
828,...e.progressive?{required:!!G.required,min:hf(G.min),max:hf(G.max),minLength:hf(G.minLength),maxLength:hf(G.maxLength),pattern:hf(G.pattern)}:{},name:Y,onChange:J,onBlur:J,ref:we=>{if(we){ke(Y,G),K=He(r,Y);const pe=hn(we.value)&&we.querySelectorAll&&we.querySelectorAll("input,select,textarea")[0]||we,De=Y7(pe),Ue=K._f.refs||[];if(De?Ue.find(Je=>Je===pe):pe===K._f.ref)return;Dt(r,Y,{_f:{...K._f,...De?{refs:[...Ue.filter(rb),pe,...Array.isArray(He(i,Y))?[{}]:[]],ref:{type:pe.type,name:Y}}:{ref:pe}}}),M(Y,!1,void 0,pe)}else K=He(r,Y,{}),K._f&&(K._f.mount=!1),(e.shouldUnregister||G.shouldUnregister)&&!(Ck(u.array,Y)&&l.action)&&u.unMount.add(Y)}}},Me=()=>e.shouldFocusError&&du(r,ae,u.mount),Ne=Y=>{Ri(Y)&&(g.state.next({disabled:Y}),du(r,(G,K)=>{const ue=He(r,K);ue&&(G.disabled=ue._f.disabled||Y,Array.isArray(ue._f.refs)&&ue._f.refs.forEach(we=>{we.disabled=ue._f.disabled||Y}))},0,!1))},Te=(Y,G)=>async K=>{let ue;K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let we=wn(a);if(g.state.next({isSubmitting:!0}),e.resolver){const{errors:pe,values:De}=await j();n.errors=pe,we=De}else await I(r);if(u.disabled.size)for(const pe of u.disabled)Dt(we,pe,void 0);if(Xn(n.errors,"root"),Nr(n.errors)){g.state.next({errors:{}});try{await Y(we,K)}catch(pe){ue=pe}}else G&&await G({...n.errors},K),Me(),setTimeout(Me);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nr(n.errors)&&!ue,submitCount:n.submitCount+1,errors:n.errors}),ue)throw ue},Be=(Y,G={})=>{He(r,Y)&&(hn(G.defaultValue)?F(Y,wn(He(i,Y))):(F(Y,G.defaultValue),Dt(i,Y,wn(G.defaultValue))),G.keepTouched||Xn(n.touchedFields,Y),G.keepDirty||(Xn(n.dirtyFields,Y),n.isDirty=G.defaultValue?$(Y,wn(He(i,Y))):$()),G.keepError||(Xn(n.errors,Y),p.isValid&&y()),g.state.next({...n}))},nt=(Y,G={})=>{const K=Y?wn(Y):i,ue=wn(K),we=Nr(Y),pe=we?i:ue;if(G.keepDefaultValues||(i=K),!G.keepValues){if(G.keepDirtyValues){const De=new Set([...u.mount,...Object.keys(ff(i,a))]);for(const Ue of Array.from(De))He(n.dirtyFields,Ue)?Dt(pe,Ue,He(a,Ue)):F(Ue,He(pe,Ue))}else{if(bw&&hn(Y))for(const De of u.mount){const Ue=He(r,De);if(Ue&&Ue._f){const Je=Array.isArray(Ue._f.refs)?Ue._f.refs[0]:Ue._f.ref;if(rg(Je)){const ot=Je.closest("form");if(ot){ot.reset();break}}}}for(const De of u.mount)F(De,He(pe,De))}a=wn(pe),g.array.next({values:{...pe}}),g.state.next({values:{...pe}})}u={mount:G.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!G.keepIsValid||!!G.keepDirtyValues,l.watch=!!e.shouldUnregister,g.state.next({submitCount:G.keepSubmitCount?n.submitCount:0,isDirty:we?!1:G.keepDirty?n.isDirty:!!(G.keepDefaultValues&&!To(Y,i)),isSubmitted:G.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:we?{}:G.keepDirtyValues?G.keepDefaultValues&&a?ff(i,a):n.dirtyFields:G.keepDefaultValues&&Y?ff(i,Y):G.keepDirty?n.dirtyFields:{},touchedFields:G.keepTouched?n.touchedFields:{},errors:G.keepErrors?n.errors:{},isSubmitSuccessful:G.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},yt=(Y,G)=>nt(xs(Y)?Y(a):Y,G),_e=(Y,G={})=>{const K=He(r,Y),ue=K&&K._f;if(ue){const we=ue.refs?ue.refs[0]:ue.ref;we.focus&&(we.focus(),G.shouldSelect&&xs(we.select)&&we.select())}},Ae=Y=>{n={...n,...Y}},$e={control:{register:ke,unregister:be,getFieldState:ee,handleSubmit:Te,setError:le,_subscribe:he,_runSchema:j,_getWatch:L,_getDirty:$,_setValid:y,_setFieldArray:S,_setDisabledField:xe,_setErrors:O,_getFieldArray:U,_reset:nt,_resetDefaultValues:()=>xs(e.defaultValues)&&e.defaultValues().then(Y=>{yt(Y,e.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:A,_disableForm:Ne,_subjects:g,_proxyFormState:p,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(Y){l=Y},get _defaultValues(){return i},get _names(){return u},set _names(Y){u=Y},get _formState(){return n},get _options(){return e},set _options(Y){e={...e,...Y}}},subscribe:ie,trigger:ye,register:ke,handleSubmit:Te,watch:se,setValue:F,getValues:X,reset:yt,resetField:Be,clearErrors:ve,unregister:be,setError:le,setFocus:_e,getFieldState:ee};return{...$e,formControl:$e}}var xo=()=>{const t=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(Math.random()*16+t)%16|0;return(e=="x"?n:n&3|8).toString(16)})},ib=(t,e,n={})=>n.shouldFocus||hn(n.shouldFocus)?n.focusName||`${t}.${hn(n.focusIndex)?e:n.focusIndex}.`:"",sb=(t,e)=>[...t,...ai(e)],ab=t=>Array.isArray(t)?t.map(()=>{}):void 0;function ob(t,e,n){return[...t.slice(0,e),...ai(n),...t.slice(e)]}var lb=(t,e,n)=>Array.isArray(t)?(hn(t[n])&&(t[n]=void 0),t.splice(n,0,t.splice(e,1)[0]),t):[],cb=(t,e)=>[...ai(e),...ai(t)];function aB(t,e){let n=0;const r=[...t];for(const i of e)r.splice(i-n,1),n++;return yh(r).length?r:[]}var ub=(t,e)=>hn(e)?[]:aB(t,ai(e).sort((n,r)=>n-r)),db=(t,e,n)=>{[t[e],t[n]]=[t[n],t[e]]},JC=(t,e,n)=>(t[e]=n,t);function Sr(t){const e=ev(),{control:n=e.control,name:r,keyName:i="id",shouldUnregister:a,rules:l}=t,[u,d]=ze.useState(n._getFieldArray(r)),h=ze.useRef(n._getFieldArray(r).map(xo)),p=ze.useRef(u),m=ze.useRef(r),g=ze.useRef(!1);m.current=r,p.current=u,n._names.array.add(r),l&&n.register(r,l),ze.useEffect(()=>n._subjects.array.subscribe({next:({values:P,name:j})=>{if(j===m.current||!j){const H=He(P,m.current);Array.isArray(H)&&(d(H),h.current=H.map(xo))}}}).unsubscribe,[n]);const b=ze.useCallback(P=>{g.current=!0,n._setFieldArray(r,P)},[n,r]),E=(P,j)=>{const H=ai(wn(P)),I=sb(n._getFieldArray(r),H);n._names.focus=ib(r,I.length-1,j),h.current=sb(h.current,H.map(xo)),b(I),d(I),n._setFieldArray(r,I,sb,{argA:ab(P)})},y=(P,j)=>{const H=ai(wn(P)),I=cb(n._getFieldArray(r),H);n._names.focus=ib(r,0,j),h.current=cb(h.current,H.map(xo)),b(I),d(I),n._setFieldArray(r,I,cb,{argA:ab(P)})},x=P=>{const j=ub(n._getFieldArray(r),P);h.current=ub(h.current,P),b(j),d(j),!Array.isArray(He(n._fields,r))&&Dt(n._fields,r,void 0),n._setFieldArray(r,j,ub,{argA:P})},S=(P,j,H)=>{const I=ai(wn(j)),A=ob(n._getFieldArray(r),P,I);n._names.focus=ib(r,P,H),h.current=ob(h.current,P,I.map(xo)),b(A),d(A),n._setFieldArray(r,A,ob,{argA:P,argB:ab(j)})},R=(P,j)=>{const H=n._getFieldArray(r);db(H,P,j),db(h.current,P,j),b(H),d(H),n._setFieldArray(r,H,db,{argA:P,argB:j},!1)}
828,O=(P,j)=>{const H=n._getFieldArray(r);lb(H,P,j),lb(h.current,P,j),b(H),d(H),n._setFieldArray(r,H,lb,{argA:P,argB:j},!1)},M=(P,j)=>{const H=wn(j),I=JC(n._getFieldArray(r),P,H);h.current=[...I].map((A,$)=>!A||$===P?xo():h.current[$]),b(I),d([...I]),n._setFieldArray(r,I,JC,{argA:P,argB:H},!0,!1)},k=P=>{const j=ai(wn(P));h.current=j.map(xo),b([...j]),d([...j]),n._setFieldArray(r,[...j],H=>H,{},!0,!1)};return ze.useEffect(()=>{if(n._state.action=!1,c1(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!iu(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!iu(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(P=>{const j=He(P.errors,r),H=He(n._formState.errors,r);(H?!j&&H.type||j&&(H.type!==j.type||H.message!==j.message):j&&j.type)&&(j?Dt(n._formState.errors,r,j):Xn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const P=He(n._fields,r);P&&P._f&&!(iu(n._options.reValidateMode).isOnSubmit&&iu(n._options.mode).isOnSubmit)&&u1(P,n._names.disabled,n._formValues,n._options.criteriaMode===Qi.all,n._options.shouldUseNativeValidation,!0).then(j=>!Nr(j)&&n._subjects.state.next({errors:Lk(n._formState.errors,j,r)}))}n._subjects.state.next({name:r,values:wn(n._formValues)}),n._names.focus&&du(n._fields,(P,j)=>{if(n._names.focus&&j.startsWith(n._names.focus)&&P.focus)return P.focus(),1}),n._names.focus="",n._setValid(),g.current=!1},[u,r,n]),ze.useEffect(()=>(!He(n._formValues,r)&&n._setFieldArray(r),()=>{const P=(j,H)=>{const I=He(n._fields,j);I&&I._f&&(I._f.mount=H)};n._options.shouldUnregister||a?n.unregister(r):P(r,!1)}),[r,n,i,a]),{swap:ze.useCallback(R,[b,r,n]),move:ze.useCallback(O,[b,r,n]),prepend:ze.useCallback(y,[b,r,n]),append:ze.useCallback(E,[b,r,n]),remove:ze.useCallback(x,[b,r,n]),insert:ze.useCallback(S,[b,r,n]),update:ze.useCallback(M,[b,r,n]),replace:ze.useCallback(k,[b,r,n]),fields:ze.useMemo(()=>u.map((P,j)=>({...P,[i]:h.current[j]||xo()})),[u,i])}}function Pr(t={}){const e=ze.useRef(void 0),n=ze.useRef(void 0),[r,i]=ze.useState({isDirty:!1,isValidating:!1,isLoading:xs(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:xs(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...t.formControl?t.formControl:sB(t),formState:r},t.formControl&&t.defaultValues&&!xs(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions));const a=e.current.control;return a._options=t,ww(()=>{const l=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(u=>({...u,isReady:!0})),a._formState.isReady=!0,l},[a]),ze.useEffect(()=>a._disableForm(t.disabled),[a,t.disabled]),ze.useEffect(()=>{t.mode&&(a._options.mode=t.mode),t.reValidateMode&&(a._options.reValidateMode=t.reValidateMode),t.errors&&!Nr(t.errors)&&a._setErrors(t.errors)},[a,t.errors,t.mode,t.reValidateMode]),ze.useEffect(()=>{t.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,t.shouldUnregister]),ze.useEffect(()=>{if(a._proxyFormState.isDirty){const l=a._getDirty();l!==r.isDirty&&a._subjects.state.next({isDirty:l})}},[a,r.isDirty]),ze.useEffect(()=>{t.values&&!To(t.values,n.current)?(a._reset(t.values,a._options.resetOptions),n.current=t.values,i(l=>({...l}))):a._resetDefaultValues()},[a,t.values]),ze.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),e.current.formState=Tk(r,a),e.current}const eR=(t,e,n)=>{if(t&&"reportValidity"in t){const r=He(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},zk=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?eR(r.ref,n,t):r&&r.refs&&r.refs.forEach(i=>eR(i,n,t))}},oB=(t,e)=>{e.shouldUseNativeValidation&&zk(t,e);const n={};for(const r in t){const i=He(e.fields,r),a=Object.assign(t[r]||{},{ref:i&&i.ref});if(lB(e.names||Object.keys(t),r)){const l=Object.assign({},He(n,r));Dt(l,"root",a),Dt(n,r,l)}else Dt(n,r,a)}return n},lB=(t,e)=>{const n=tR(e);return t.some(r=>tR(r).match(`^${n}\\.\\d+`))};function tR(t){return t.replace(/\]|\[/g,"")}function jr(t,e,n){return e===void 0&&(e={}),n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(l,u){try{var d=(e.context,Promise.resolve(t[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortE
828arly:!1},e,{context:i}))).then(function(h){return a.shouldUseNativeValidation&&zk({},a),{values:n.raw?Object.assign({},r):h,errors:{}}}))}catch(h){return u(h)}return d&&d.then?d.then(void 0,u):d}(0,function(l){if(!l.inner)throw l;return{values:{},errors:oB((u=l,d=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(u.inner||[]).reduce(function(h,p){if(h[p.path]||(h[p.path]={message:p.message,type:p.type}),d){var m=h[p.path].types,g=m&&m[p.type];h[p.path]=Ak(p.path,d,h,p.type,g?[].concat(g,p.message):p.message)}return h},{})),a)};var u,d}))}catch(l){return Promise.reject(l)}}}var fb,nR;function cB(){if(nR)return fb;nR=1;function t(S){this._maxSize=S,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(S){return this._values[S]},t.prototype.set=function(S,R){return this._size>=this._maxSize&&this.clear(),S in this._values||this._size++,this._values[S]=R};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,l=512,u=new t(l),d=new t(l),h=new t(l);fb={Cache:t,split:m,normalizePath:p,setter:function(S){var R=p(S);return d.get(S)||d.set(S,function(M,k){for(var P=0,j=R.length,H=M;P<j-1;){var I=R[P];if(I==="__proto__"||I==="constructor"||I==="prototype")return M;H=H[R[P++]]}H[R[P]]=k})},getter:function(S,R){var O=p(S);return h.get(S)||h.set(S,function(k){for(var P=0,j=O.length;P<j;)if(k!=null||!R)k=k[O[P++]];else return;return k})},join:function(S){return S.reduce(function(R,O){return R+(b(O)||n.test(O)?"["+O+"]":(R?".":"")+O)},"")},forEach:function(S,R,O){g(Array.isArray(S)?S:m(S),R,O)}};function p(S){return u.get(S)||u.set(S,m(S).map(function(R){return R.replace(a,"$2")}))}function m(S){return S.match(e)||[""]}function g(S,R,O){var M=S.length,k,P,j,H;for(P=0;P<M;P++)k=S[P],k&&(x(k)&&(k='"'+k+'"'),H=b(k),j=!H&&/^\d+$/.test(k),R.call(O,k,H,j,P,S))}function b(S){return typeof S=="string"&&S&&["'",'"'].indexOf(S.charAt(0))!==-1}function E(S){return S.match(r)&&!S.match(n)}function y(S){return i.test(S)}function x(S){return!b(S)&&(E(S)||y(S))}return fb}var Hl=cB(),hb,rR;function uB(){if(rR)return hb;rR=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=p=>p.match(t)||[],n=p=>p[0].toUpperCase()+p.slice(1),r=(p,m)=>e(p).join(m).toLowerCase(),i=p=>e(p).reduce((m,g)=>`${m}${m?g[0].toUpperCase()+g.slice(1).toLowerCase():g.toLowerCase()}`,"");return hb={words:e,upperFirst:n,camelCase:i,pascalCase:p=>n(i(p)),snakeCase:p=>r(p,"_"),kebabCase:p=>r(p,"-"),sentenceCase:p=>n(r(p," ")),titleCase:p=>e(p).map(n).join(" ")},hb}var pb=uB(),Wp={exports:{}},iR;function dB(){if(iR)return Wp.exports;iR=1,Wp.exports=function(i){return t(e(i),i)},Wp.exports.array=t;function t(i,a){var l=i.length,u=new Array(l),d={},h=l,p=n(a),m=r(i);
vendor: 30,811 bytes, lines 828-831
828for(a.forEach(function(b){if(!m.has(b[0])||!m.has(b[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});h--;)d[h]||g(i[h],h,new Set);return u;function g(b,E,y){if(y.has(b)){var x;try{x=", node was:"+JSON.stringify(b)}catch{x=""}throw new Error("Cyclic dependency"+x)}if(!m.has(b))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(b));if(!d[E]){d[E]=!0;var S=p.get(b)||new Set;if(S=Array.from(S),E=S.length){y.add(b);do{var R=S[--E];g(R,m.get(R),y)}while(E);y.delete(b)}u[--l]=b}}}function e(i){for(var a=new Set,l=0,u=i.length;l<u;l++){var d=i[l];a.add(d[0]),a.add(d[1])}return Array.from(a)}function n(i){for(var a=new Map,l=0,u=i.length;l<u;l++){var d=i[l];a.has(d[0])||a.set(d[0],new Set),a.has(d[1])||a.set(d[1],new Set),a.get(d[0]).add(d[1])}return a}function r(i){for(var a=new Map,l=0,u=i.length;l<u;l++)a.set(i[l],l);return a}return Wp.exports}var fB=dB();const hB=Iu(fB),pB=Object.prototype.toString,mB=Error.prototype.toString,gB=RegExp.prototype.toString,vB=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",yB=/^Symbol\((.*)\)(.*)$/;function bB(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function sR(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return bB(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return vB.call(t).replace(yB,"Symbol($1)");const r=pB.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+mB.call(t)+"]":r==="RegExp"?gB.call(t):null}function Da(t,e){let n=sR(t,e);return n!==null?n:JSON.stringify(t,function(r,i){let a=sR(this[r],e);return a!==null?a:i},2)}function $k(t){return t==null?[]:[].concat(t)}let Hk,Bk,Fk,xB=/\$\{\s*(\w+)\s*\}/g;Hk=Symbol.toStringTag;class aR{constructor(e,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Hk]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],$k(e).forEach(a=>{if(si.isError(a)){this.errors.push(...a.errors);const l=a.inner.length?a.inner:[a];this.inner.push(...l)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Bk=Symbol.hasInstance;Fk=Symbol.toStringTag;class si extends Error{static formatError(e,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof e=="string"?e.replace(xB,(i,a)=>Da(n[a])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,i,a){const l=new aR(e,n,r,i);if(a)return l;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Fk]="Error",this.name=l.name,this.message=l.message,this.type=l.type,this.value=l.value,this.path=l.path,this.errors=l.errors,this.inner=l.inner,Error.captureStackTrace&&Error.captureStackTrace(this,si)}static[Bk](e){return aR[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Us={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Da(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Da(n,!0)}\``+i:`${t} must match the configured type. The validated value was: \`${Da(n,!0)}\``+i}},ni={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},So={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},d1={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},f1={isValue:"${path} field must be ${value}"},Om={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Am={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},wB={notType:t=>{const{path:e,value:n,spec:r}=t,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${e} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${Da(n,!0)}\``;if(n.length>i)return`${e} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${Da(n,!0)}\``}return si.formatError(Us.notType,t)}};Object.assign(Object.create(null),{mixed:Us,string:ni,number:So,date:d1,object:Om,array:Am,boolean:f1,tuple:wB});const tv=t=>t&&t.__isYupSchema__;class ag{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:a}=n,l=typeof r=="function"?r:(...u)=>u.every(d=>d===r);return new ag(e,(u,d)=>{var h;let p=l(...u)?i:a;return(h=p==null?void 0:p(d))!=null?h:d})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,e,n);if(i===void 0||i===e)return e;if(!tv(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const Zp={context:"$",value:"."};function _ne(t,e){return new Go(t,e)}class Go{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Zp.context,this.isValue=this.key[0]===Zp.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Zp.context:this.isValue?Zp.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Hl.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let i=this.isContext?r:this.isValue?e:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Go.prototype.__isYupRef=!0;const ws=t=>t==null;function Qc(t){function e({value:n,path:r="",options:i,originalValue:a,schema:l},u,d){const{name:h,test:p,params:m,message:g,skipAbsent:b}=t;let{parent:E,context:y,abortEarly:x=l.spec.abortEarly,disableStackTrace:S=l.spec.disableStackTrace}=i;function R($){return Go.isRef($)?$.getValue(n,E,y):$}function O($={}){const L=Object.assign({value:n,originalValue:a,label:l.spec.label,path:$.path||r,spec:l.spec,disableStackTrace:$.disableStackTrace||S},m,$.params);for(const V of Object.keys(L))L[V]=R(L[V]);const U=new si(si.formatError($.message||g,L),n,L.path,$.type||h,L.disableStackTrace);return U.params=L,U}const M=x?u:d;let k={path:r,parent:E,type:h,from:i.from,createError:O,resolve:R,options:i,originalValue:a,schema:l};const P=$=>{si.isError($)?M($):$?d(null):M(O())},j=$=>{si.isError($)?M($):u($)};if(b&&ws(n))return P(!0);let I;try{var A;if(I=p.call(k,n,k),typeof((A=I)==null?void 0:A.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${k.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(I).then(P,j)}}catch($){j($);return}P(I)}return e.OPTIONS=t,e}function SB(t,e,n,r=n){let i,a,l;return e?(Hl.forEach(e,(u,d,h)=>{let p=d?u.slice(1,u.length-1):u;t=t.resolve({context:r,parent:i,value:n});let m=t.type==="tuple",g=h?parseInt(p,10):0;if(t.innerType||m){if(m&&!h)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${l}" must contain an index to the tuple element, e.g. "${l}[0]"`);if(n&&g>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${u}, in the path: ${e}. because there is no value at that index. `);i=n,n=n&&n[g],t=m?t.spec.types[g]:t.innerType}if(!h){if(!t.fields||!t.fields[p])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${l} which is a type: "${t.type}")`);i=n,n=n&&n[p],t=t.fields[p]}a=p,l=d?"["+u+"]":"."+u}),{schema:t,parent:i,parentPath:a}):{parent:i,parentPath:e,schema:t}}class og extends Set{describe(){const e=[];for(const n of this.values())e.push(Go.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new og(this.values())}merge(e,n){const r=this.clone();return e.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function su(t,e=new Map){if(tv(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r<t.length;r++)n[r]=su(t[r],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[r,i]of t.entries())n.set(r,su(i,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const r of t)n.add(su(r,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[r,i]of Object.entries(t))n[r]=su(i,e)}else throw Error(`Unable to clone ${t}`);return n}class di{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new og,this._blacklist=new og,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Us.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=su(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(a=>{e.tests.forEach(l=>{a.test(l.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,a)=>a.resolve(i,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,i,a;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=e.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=e.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({value:e},n)),i=n.assert==="ignore-optionality",a=r._cast(e,n);if(n.assert!==!1&&!r.isType(a)){if(i&&ws(a))return a;let l=Da(e),u=Da(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". 
829
830attempted value: ${l} 
831`+(u!==l?`result of cast: ${u}`:""))}return a}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((i,a)=>a.call(this,i,e,this),e);return r===void 0&&(r=this.getDefault(n)),r}_validate(e,n={},r,i){let{path:a,originalValue:l=e,strict:u=this.spec.strict}=n,d=e;u||(d=this._cast(d,Object.assign({assert:!1},n)));let h=[];for(let p of Object.values(this.internalTests))p&&h.push(p);this.runTests({path:a,value:d,originalValue:l,options:n,tests:h},r,p=>{if(p.length)return i(p,d);this.runTests({path:a,value:d,originalValue:l,options:n,tests:this.tests},r,i)})}runTests(e,n,r){let i=!1,{tests:a,value:l,originalValue:u,path:d,options:h}=e,p=y=>{i||(i=!0,n(y,l))},m=y=>{i||(i=!0,r(y,l))},g=a.length,b=[];if(!g)return m([]);let E={value:l,originalValue:u,path:d,options:h,schema:this};for(let y=0;y<a.length;y++){const x=a[y];x(E,p,function(R){R&&(Array.isArray(R)?b.push(...R):b.push(R)),--g<=0&&m(b)})}}asNestedTest({key:e,index:n,parent:r,parentPath:i,originalParent:a,options:l}){const u=e??n;if(u==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof u=="number";let h=r[u];const p=Object.assign({},l,{strict:!0,parent:r,value:h,originalValue:a[u],key:void 0,[d?"index":"key"]:u,path:d||u.includes(".")?`${i||""}[${d?u:`"${u}"`}]`:(i?`${i}.`:"")+e});return(m,g,b)=>this.resolve(p)._validate(h,p,g,b)}validate(e,n){var r;let i=this.resolve(Object.assign({},n,{value:e})),a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((l,u)=>i._validate(e,n,(d,h)=>{si.isError(d)&&(d.value=h),u(d)},(d,h)=>{d.length?u(new si(d,h,void 0,void 0,a)):l(h)}))}validateSync(e,n){var r;let i=this.resolve(Object.assign({},n,{value:e})),a,l=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},n,{sync:!0}),(u,d)=>{throw si.isError(u)&&(u.value=d),u},(u,d)=>{if(u.length)throw new si(u,e,void 0,void 0,l);a=d}),a}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(si.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(si.isError(r))return!1;throw r}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):su(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=Qc({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=Qc({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=Us.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Us.notNull){return this.nullability(!1,e)}required(e=Us.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=Us.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Qc(n),a=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(l=>!(l.OPTIONS.name===n.name&&(a||l.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),i=$k(e).map(a=>new Go(a));return i.forEach(a=>{a.isSibling&&r.deps.push(a.key)}),r.conditions.push(typeof n=="function"?new ag(i,n):ag.fromOptions(i,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=Qc({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=Us.oneOf){let r=this.clone();return e.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Qc({message:n,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,l=a.resolveAll(this.resolve);return l.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:l}})}}),r}notOneOf(e,n=Us.notOneOf){let r=this.clone();return e.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Qc({message:n,name:"notOneOf",test(i){let a=this.schema._blacklist,l=a.resolveAll(this.resolve);return l.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:l}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:i,optional:a,nullable:l}=n.spec;return{meta:i,label:r,optional:a,nullable:l,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(d=>({name:d.OPTIONS.name,params:d.OPTIONS.params})).filter((d,h,p)=>p.findIndex(m=>m.name===d.name)===h)}}}di.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])di.prototype[`${t}At`]=function(e,n,r={}){const{parent:i,parentPath:a,schema:l}=SB(this,e,n,r.context);return l[t](i&&i[a],Object.assign({},r,{parent:i,path:e}))};for(const t of["equals","is"])di.prototype[t]=di.prototype.oneOf;for(const t of["not","nope"])di.prototype[t]=di.prototype.notOneOf;const _B=()=>!0;function EB(t){return new Uk(t)}class Uk extends di{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:_B},e))}}EB.prototype=Uk.prototype;function CB(){return new Ik}class Ik extends di{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=f1.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return ws(n)||n===!0}})}isFalse(e=f1.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return ws(n)||n===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}CB.prototype=Ik.prototype;const RB=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function TB(t){const e=h1(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let n=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(n=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(n=0-n)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+n,e.second,e.millisecond)}function h1(t){var e,n;const r=RB.exec(t);return r?{year:Aa(r[1]),month:Aa(r[2],1)-1,day:Aa(r[3],1),hour:Aa(r[4]),minute:Aa(r[5]),second:Aa(r[6]),millisecond:r[7]?Aa(r[7].substring(0,3)):0,precision:(e=(n=r[7])==null?void 0:n.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Aa(r[10]),minuteOffset:Aa(r[11])}:null}function Aa(t,e=0){return Number(t)||e}let OB=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,AB=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,kB=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,MB="^\\d{4}-\\d{2}-\\d{2}",NB="\\d{2}:\\d{2}:\\d{2}",DB="(([+-]\\d{2}(:?\\d{2})?)|Z)",PB=new RegExp(`${MB}T${NB}(\\.\\d+)?${DB}$`),jB=t=>ws(t)||t===t.trim(),LB={}.toString();function mt(){return new Vk}class Vk extends di{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const i=e!=null&&e.toString?e.toString():e;return i===LB?e:i})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||Us.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=ni.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=ni.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=ni.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,i,a;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:a}=n:i=n),this.test({name:a||"matches",message:i||ni.matches,params:{regex:e},skipAbsent:!0,test:l=>l===""&&r||l.search(e)!==-1})}email(e=ni.email){return this.matches(OB,{name:"email",message:e,excludeEmptyString:!0})}url(e=ni.url){return this.matches(AB,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ni.uuid){return this.matches(kB,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let n="",r,i;return e&&(typeof e=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=e:n=e),this.matches(PB,{name:"datetime",message:n||ni.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||ni.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:a=>{if(!a||r)return!0;const l=h1(a);return l?!!l.z:!1}}).test({name:"datetime_precision",message:n||ni.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const l=h1(a);return l?l.precision===i:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=ni.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:jB})}lowercase(e=ni.lowercase){return this.transform(n=>ws(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ws(n)||n===n.toLowerCase()})}uppercase(e=ni.uppercase){return this.transform(n=>ws(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ws(n)||n===n.toUpperCase()})}}mt.prototype=Vk.prototype;let zB=t=>t!=+t;function $B(){return new qk}class qk extends di{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!zB(e)}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce)return e;let i=e;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return r.isType(i)||i===null?i:parseFloat(i)})})}min(e,n=So.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r>=this.resolve(e)}})}max(e,n=So.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r<=this.resolve(e)}})}lessThan(e,n=So.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(r){return r<this.resolve(e)}})}moreThan(e,n=So.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(r){return r>this.resolve(e)}})}positive(e=So.positive){return this.moreThan(0,e)}negative(e=So.negative){return this.lessThan(0,e)}integer(e=So.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(e=>ws(e)?e:e|0)}round(e){var n;let r=["ceil","floor","round","trunc"];if(e=((n=e)==null?void 0:n.toLowerCase())||"round",e==="trunc")return this.truncate();if(r.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(i=>ws(i)?i:Math[e](i))}}$B.prototype=qk.prototype;let HB=new Date(""),BB=t=>Object.prototype.toString.call(t)==="[object Date]";class Ew extends di{constructor(){super({type:"date",check(e){return BB(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=TB(e),isNaN(e)?Ew.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(Go.isRef(e))r=e;else{let i=this.cast(e);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(e,n=d1.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(e,n=d1.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Ew.INVALID_DATE=HB;function FB(t,e=[]){let n=[],r=new Set,i=new Set(e.map(([l,u])=>`${l}-${u}`));function a(l,u){let d=Hl.split(l)[0];r.add(d),i.has(`${u}-${d}`)||n.push([u,d])}for(const l of Object.keys(t)){let u=t[l];r.add(l),Go.isRef(u)&&u.isSibling?a(u.path,l):tv(u)&&"deps"in u&&u.deps.forEach(d=>a(d,l))}return hB.array(Array.from(r),n).reverse()}function oR(t,e){let n=1/0;return t.some((r,i)=>{var a;if((a=e.path)!=null&&a.includes(r))return n=i,!0}),n}function Gk(t){return(e,n)=>oR(t,e)-oR(t,n)}const Xk=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return n.isType(r)?r:t};function km(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=km(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=km(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(km)}):"optional"in t?t.optional():t}const UB=(t,e)=>{const n=[...Hl.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),i=Hl.getter(Hl.join(n),!0)(t);return!!(i&&r in i)};let lR=t=>Object.prototype.toString.call(t)==="[object Object]";function cR(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const IB=Gk([]);function xr(t){return new Yk(t)}class Yk extends di{constructor(e){super({type:"object",check(n){return lR(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=IB,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let i=super._cast(e,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let a=this.fields,l=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,u=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),d={},h=Object.assign({},n,{parent:d,__validating:n.__validating||!1}),p=!1;for(const m of u){let g=a[m],b=m in i;if(g){let E,y=i[m];h.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:y,context:n.context,parent:d});let x=g instanceof di?g.spec:void 0,S=x==null?void 0:x.strict;if(x!=null&&x.strip){p=p||m in i;continue}E=!n.__validating||!S?g.cast(i[m],h):i[m],E!==void 0&&(d[m]=E)}else b&&!l&&(d[m]=i[m]);(b!==m in d||d[m]!==i[m])&&(p=!0)}return p?d:i}_validate(e,n={},r,i){let{from:a=[],originalValue:l=e,recursive:u=this.spec.recursive}=n;n.from=[{schema:this,value:l},...a],n.__validating=!0,n.originalValue=l,super._validate(e,n,r,(d,h)=>{if(!u||!lR(h)){i(d,h);return}l=l||h;let p=[];for(let m of this._nodes){let g=this.fields[m];!g||Go.isRef(g)||p.push(g.asNestedTest({options:n,key:m,parent:h,parentPath:n.path,originalParent:l}))}this.runTests({tests:p,value:h,originalValue:l,options:n},r,m=>{i(m.sort(this._sortErrors).concat(d),h)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[i,a]of Object.entries(this.fields)){const l=r[i];r[i]=l===void 0?a:l}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};
vendor: 4,430 bytes, line 831
831return this._nodes.forEach(r=>{var i;const a=this.fields[r];let l=e;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[r]})),n[r]=a&&"getDefault"in a?a.getDefault(l):void 0}),n}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=FB(e,n),r._sortErrors=Gk(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),i)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return km(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>e.includes(r)&&e.includes(i)))}omit(e){const n=[];for(const r of Object.keys(this.fields))e.includes(r)||n.push(r);return this.pick(n)}from(e,n,r){let i=Hl.getter(e,!0);return this.transform(a=>{if(!a)return a;let l=a;return UB(a,e)&&(l=Object.assign({},a),r||delete l[e],l[n]=i(a)),l})}json(){return this.transform(Xk)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||Om.exact,test(n){if(n==null)return!0;const r=cR(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,n=Om.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const a=cR(this.schema,i);return!e||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=Om.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[e(i)]=n[i];return r})}camelCase(){return this.transformKeys(pb.camelCase)}snakeCase(){return this.transformKeys(pb.snakeCase)}constantCase(){return this.transformKeys(e=>pb.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[a,l]of Object.entries(n.fields)){var i;let u=e;(i=u)!=null&&i.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[a]})),r.fields[a]=l.describe(u)}return r}}xr.prototype=Yk.prototype;function Os(t){return new Kk(t)}class Kk extends di{constructor(e){super({type:"array",spec:{types:e},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=e}_cast(e,n){const r=super._cast(e,n);if(!this._typeCheck(r)||!this.innerType)return r;let i=!1;const a=r.map((l,u)=>{const d=this.innerType.cast(l,Object.assign({},n,{path:`${n.path||""}[${u}]`}));return d!==l&&(i=!0),d});return i?a:r}_validate(e,n={},r,i){var a;let l=this.innerType,u=(a=n.recursive)!=null?a:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(e,n,r,(d,h)=>{var p;if(!u||!l||!this._typeCheck(h)){i(d,h);return}let m=new Array(h.length);for(let b=0;b<h.length;b++){var g;m[b]=l.asNestedTest({options:n,index:b,parent:h,parentPath:n.path,originalParent:(g=n.originalValue)!=null?g:e})}this.runTests({value:h,tests:m,originalValue:(p=n.originalValue)!=null?p:e,options:n},r,b=>i(b.concat(d),h))})}clone(e){const n=super.clone(e);return n.innerType=this.innerType,n}json(){return this.transform(Xk)}concat(e){let n=super.concat(e);return n.innerType=this.innerType,e.innerType&&(n.innerType=n.innerType?n.innerType.concat(e.innerType):e.innerType),n}of(e){let n=this.clone();if(!tv(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Da(e));return n.innerType=e,n.spec=Object.assign({},n.spec,{types:e}),n}length(e,n=Am.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n){return n=n||Am.min,this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n){return n=n||Am.max,this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,n)=>this._typeCheck(e)?e:n==null?[]:[].concat(n))}compact(e){let n=e?(r,i,a)=>!e(r,i,a):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);if(n.innerType){var i;let a=e;
831(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),r.innerType=n.innerType.describe(a)}return r}}Os.prototype=Kk.prototype;function uR(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Qk(...t){return e=>{let n=!1;const r=t.map(i=>{const a=uR(i,e);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():uR(t[i],null)}}}}function wr(...t){return w.useCallback(Qk(...t),t)}function lg(t){const e=VB(t),n=w.forwardRef((r,i)=>{const{children:a,...l}=r,u=w.Children.toArray(a),d=u.find(GB);if(d){const h=d.props.children,p=u.map(m=>m===d?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:m);return C.jsx(e,{...l,ref:i,children:w.isValidElement(h)?w.cloneElement(h,void 0,p):null})}return C.jsx(e,{...l,ref:i,children:a})});return n.displayName=`${t}.Slot`,n}function VB(t){const e=w.forwardRef((n,r)=>{const{children:i,...a}=n;if(w.isValidElement(i)){const l=YB(i),u=XB(a,i.props);return i.type!==w.Fragment&&(u.ref=r?Qk(r,l):l),w.cloneElement(i,u)}return w.Children.count(i)>1?w.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var qB=Symbol("radix.slottable");function GB(t){return w.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===qB}function XB(t,e){const n={...e};for(const r in e){const i=t[r],a=e[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const d=a(...u);return i(...u),d}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...t,...n}}function YB(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var KB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Mn=KB.reduce((t,e)=>{const n=lg(`Primitive.${e}`),r=w.forwardRef((i,a)=>{const{asChild:l,...u}=i,d=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(d,{...u,ref:a})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function QB(t,e){t&&Fo.flushSync(()=>t.dispatchEvent(e))}var WB="Label",Wk=w.forwardRef((t,e)=>C.jsx(Mn.label,{...t,ref:e,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=t.onMouseDown)==null||i.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Wk.displayName=WB;var ZB=Wk;const Sn=({label:t,size:e,value:n,onChange:r,error:i,helperText:a,name:l,type:u="text",inputProps:d,labelProps:h,startAdornment:p,endAdornment:m,required:g=!1,fullWidth:b=!0,width:E,height:y,textSize:x="text-sm",shrink:S,className:R="",helperTextBg:O="inherit",placeholder:M,disabled:k=!1,...P})=>{const[j,H]=w.useState(window.innerWidth),[I,A]=w.useState(!1);w.useEffect(()=>{function J(){H(window.innerWidth)}return window.addEventListener("resize",J),()=>{window.removeEventListener("resize",J)}},[]);const $=J=>{A(!0),d!=null&&d.onFocus&&d.onFocus(J)},L=J=>{A(!1),d!=null&&d.onBlur&&d.onBlur(J)};let U=`px-3 py-2 ${x} border rounded-md bg-white transition-all duration-200 focus:outline-none`;y?U+=` ${y}`:U+=" h-[40px]",E?U+=` ${E}`:b&&(U+=" w-full"),i?U+=" border-red-500 focus:border-red-500 focus:shadow-[0_0_0_2px_rgba(239,68,68,0.25)]":U+=" border-gray-300 focus:border-gray-300 focus:shadow-[0_0_0_2px_rgba(209,213,219,0.25)]",p&&(U+=" pl-10"),m&&(U+=" pr-10"),k&&(U+=" bg-gray-50 cursor-not-allowed"),R&&(U+=" "+R);let V="block text-sm font-medium mb-1";i?V+=" text-red-600":V+=" text-gray-700",g&&(V+=" after:content-['*'] after:text-red-500 after:ml-1");let Q="mt-1 text-xs";i?Q+=" text-red-600":Q+=" text-gray-500";let F="relative";return E?F+=` ${E}`:b&&(F+=" w-full"),C.jsxs("div",{className:F,children:[t&&C.jsx(ZB,{htmlFor:l,className:V,...h,children:t}),C.jsxs("div",{className:"relative",children:[p&&C.jsx("div",{className:"absolute left-3   top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none z-10",children:p}),C.jsx("input",{id:l,name:l,type:u,value:n??"",onChange:r,onFocus:$,onBlur:L,placeholder:M,disabled:k,required:g,className:U,...d,...P}),m&&C.jsx("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none z-10",children:m})]}),a&&C.jsx("div",{className:Q,style:{backgroundColor:O},children:a})]})};var Zk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),JB="VisuallyHidden",eF=w.forwardRef((t,e)=>C.jsx(Mn.span,{...t,ref:e,style:{...Zk,...t.style}}));eF.displayName=JB;function Cw(t,e=[]){let n=[];function r(a,l){const u=w.createContext(l),d=n.length;n=[...n,l];const h=m=>{var S;const{scope:g,children:b,...E}=m,y=((S=g==null?void 0:g[t])==null?void 0:S[d])||u,x=w.useMemo(()=>E,Object.values(E));return C.jsx(y.Provider,{value:x,children:b})};h.displayName=a+"Provider";function p(m,g){var y;const b=((y=g==null?void 0:g[t])==null?void 0:y[d])||u,E=w.useContext(b);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[h,p]}const i=()=>{const a=n.map(l=>w.createContext(l));
vendor: 11,271 bytes, line 831
831return function(u){const d=(u==null?void 0:u[t])||a;return w.useMemo(()=>({[`__scope${t}`]:{...u,[t]:d}}),[u,d])}};return i.scopeName=t,[r,tF(i,...e)]}function tF(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const l=r.reduce((u,{useScope:d,scopeName:h})=>{const m=d(a)[`__scope${h}`];return{...u,...m}},{});return w.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}function nF(t){const e=t+"CollectionProvider",[n,r]=Cw(e),[i,a]=n(e,{collectionRef:{current:null},itemMap:new Map}),l=y=>{const{scope:x,children:S}=y,R=ze.useRef(null),O=ze.useRef(new Map).current;return C.jsx(i,{scope:x,itemMap:O,collectionRef:R,children:S})};l.displayName=e;const u=t+"CollectionSlot",d=lg(u),h=ze.forwardRef((y,x)=>{const{scope:S,children:R}=y,O=a(u,S),M=wr(x,O.collectionRef);return C.jsx(d,{ref:M,children:R})});h.displayName=u;const p=t+"CollectionItemSlot",m="data-radix-collection-item",g=lg(p),b=ze.forwardRef((y,x)=>{const{scope:S,children:R,...O}=y,M=ze.useRef(null),k=wr(x,M),P=a(p,S);return ze.useEffect(()=>(P.itemMap.set(M,{ref:M,...O}),()=>void P.itemMap.delete(M))),C.jsx(g,{[m]:"",ref:k,children:R})});b.displayName=p;function E(y){const x=a(t+"CollectionConsumer",y);return ze.useCallback(()=>{const R=x.collectionRef.current;if(!R)return[];const O=Array.from(R.querySelectorAll(`[${m}]`));return Array.from(x.itemMap.values()).sort((P,j)=>O.indexOf(P.ref.current)-O.indexOf(j.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:l,Slot:h,ItemSlot:b},E,r]}function Yn(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}var fi=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},rF=Bo[" useInsertionEffect ".trim().toString()]||fi;function dR({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,a,l]=iF({defaultProp:e,onChange:n}),u=t!==void 0,d=u?t:i;{const p=w.useRef(t!==void 0);w.useEffect(()=>{const m=p.current;m!==u&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,r])}const h=w.useCallback(p=>{var m;if(u){const g=sF(p)?p(t):p;g!==t&&((m=l.current)==null||m.call(l,g))}else a(p)},[u,t,a,l]);return[d,h]}function iF({defaultProp:t,onChange:e}){const[n,r]=w.useState(t),i=w.useRef(n),a=w.useRef(e);return rF(()=>{a.current=e},[e]),w.useEffect(()=>{var l;i.current!==n&&((l=a.current)==null||l.call(a,n),i.current=n)},[n,i]),[n,r,a]}function sF(t){return typeof t=="function"}var aF=Bo[" useId ".trim().toString()]||(()=>{}),oF=0;function Rw(t){const[e,n]=w.useState(aF());return fi(()=>{n(r=>r??String(oF++))},[t]),t||(e?`radix-${e}`:"")}var lF=w.createContext(void 0);function cF(t){const e=w.useContext(lF);return t||e||"ltr"}function Wl(t){const e=w.useRef(t);return w.useEffect(()=>{e.current=t}),w.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function uF(t,e=globalThis==null?void 0:globalThis.document){const n=Wl(t);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var dF="DismissableLayer",p1="dismissableLayer.update",fF="dismissableLayer.pointerDownOutside",hF="dismissableLayer.focusOutside",fR,Jk=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e4=w.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...d}=t,h=w.useContext(Jk),[p,m]=w.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=w.useState({}),E=wr(e,j=>m(j)),y=Array.from(h.layers),[x]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=y.indexOf(x),R=p?y.indexOf(p):-1,O=h.layersWithOutsidePointerEventsDisabled.size>0,M=R>=S,k=gF(j=>{const H=j.target,I=[...h.branches].some(A=>A.contains(H));!M||I||(i==null||i(j),l==null||l(j),j.defaultPrevented||u==null||u())},g),P=vF(j=>{const H=j.target;[...h.branches].some(A=>A.contains(H))||(a==null||a(j),l==null||l(j),j.defaultPrevented||u==null||u())},g);return uF(j=>{R===h.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&u&&(j.preventDefault(),u()))},g),w.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(fR=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),hR(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=fR)}},[p,g,n,h]),w.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),hR())},[p,h]),w.useEffect(()=>{const j=()=>b({});return document.addEventListener(p1,j),()=>document.removeEventListener(p1,j)},[]),C.jsx(Mn.div,{...d,ref:E,style:{pointerEvents:O?M?"auto":"none":void 0,...t.style},onFocusCapture:Yn(t.onFocusCapture,P.onFocusCapture),onBlurCapture:Yn(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Yn(t.onPointerDownCapture,k.onPointerDownCapture)})});e4.displayName=dF;var pF="DismissableLayerBranch",mF=w.forwardRef((t,e)=>{const n=w.useContext(Jk),r=w.useRef(null),i=wr(e,r);return w.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),C.jsx(Mn.div,{...t,ref:i})});mF.displayName=pF;function gF(t,e=globalThis==null?void 0:globalThis.document){const n=Wl(t),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const a=u=>{if(u.target&&!r.current){let d=function(){t4(fF,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=d,e.addEventListener("click",i.current,{once:!0})):d()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",a),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function vF(t,e=globalThis==null?void 0:globalThis.document){const n=Wl(t),r=w.useRef(!1);return w.useEffect(()=>{const i=a=>{a.target&&!r.current&&t4(hF,n,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hR(){const t=new CustomEvent(p1);document.dispatchEvent(t)}function t4(t,e,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?QB(i,a):i.dispatchEvent(a)}var mb="focusScope.autoFocusOnMount",gb="focusScope.autoFocusOnUnmount",pR={bubbles:!1,cancelable:!0},yF="FocusScope",n4=w.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=t,[u,d]=w.useState(null),h=Wl(i),p=Wl(a),m=w.useRef(null),g=wr(e,y=>d(y)),b=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let y=function(O){if(b.paused||!u)return;const M=O.target;u.contains(M)?m.current=M:_o(m.current,{select:!0})},x=function(O){if(b.paused||!u)return;const M=O.relatedTarget;M!==null&&(u.contains(M)||_o(m.current,{select:!0}))},S=function(O){if(document.activeElement===document.body)for(const k of O)k.removedNodes.length>0&&_o(u)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const R=new MutationObserver(S);return u&&R.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),R.disconnect()}}},[r,u,b.paused]),w.useEffect(()=>{if(u){gR.add(b);const y=document.activeElement;if(!u.contains(y)){const S=new CustomEvent(mb,pR);u.addEventListener(mb,h),u.dispatchEvent(S),S.defaultPrevented||(bF(EF(r4(u)),{select:!0}),document.activeElement===y&&_o(u))}return()=>{u.removeEventListener(mb,h),setTimeout(()=>{const S=new CustomEvent(gb,pR);u.addEventListener(gb,p),u.dispatchEvent(S),S.defaultPrevented||_o(y??document.body,{select:!0}),u.removeEventListener(gb,p),gR.remove(b)},0)}}},[u,h,p,b]);const E=w.useCallback(y=>{if(!n&&!r||b.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,S=document.activeElement;if(x&&S){const R=y.currentTarget,[O,M]=xF(R);O&&M?!y.shiftKey&&S===M?(y.preventDefault(),n&&_o(O,{select:!0})):y.shiftKey&&S===O&&(y.preventDefault(),n&&_o(M,{select:!0})):S===R&&y.preventDefault()}},[n,r,b.paused]);return C.jsx(Mn.div,{tabIndex:-1,...l,ref:g,onKeyDown:E})});n4.displayName=yF;function bF(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(_o(r,{select:e}),document.activeElement!==n)return}function xF(t){const e=r4(t),n=mR(e,t),r=mR(e.reverse(),t);return[n,r]}function r4(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function mR(t,e){for(const n of t)if(!wF(n,{upTo:e}))return n}function wF(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function SF(t){return t instanceof HTMLInputElement&&"select"in t}function _o(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&SF(t)&&e&&t.select()}}var gR=_F();function _F(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=vR(t,e),t.unshift(e)},remove(e){var n;t=vR(t,e),(n=t[0])==null||n.resume()}}}function vR(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function EF(t){return t.filter(e=>e.tagName!=="A")}var CF="Portal",i4=w.forwardRef((t,e)=>{var u;const{container:n,...r}=t,[i,a]=w.useState(!1);fi(()=>a(!0),[]);const l=n||i&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?Cl.createPortal(C.jsx(Mn.div,{...r,ref:e}),l):null});i4.displayName=CF;var vb=0;function RF(){w.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??yR()),document.body.insertAdjacentElement("beforeend",t[1]??yR()),vb++,()=>{vb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),vb--}},[])}function yR(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var m1=function(t,e){return m1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},m1(t,e)};function Ene(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");m1(t,e);function n(){this.constructor=t}
vendor: 5,667 bytes, lines 831-846
831t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Qs=function(){return Qs=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Qs.apply(this,arguments)};function s4(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function TF(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}var Mm="right-scroll-bar-position",Nm="width-before-scroll-bar",OF="with-scroll-bars-hidden",AF="--removed-body-scroll-bar-size";function yb(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function kF(t,e){var n=w.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var MF=typeof window<"u"?w.useLayoutEffect:w.useEffect,bR=new WeakMap;function NF(t,e){var n=kF(null,function(r){return t.forEach(function(i){return yb(i,r)})});return MF(function(){var r=bR.get(n);if(r){var i=new Set(r),a=new Set(t),l=n.current;i.forEach(function(u){a.has(u)||yb(u,null)}),a.forEach(function(u){i.has(u)||yb(u,l)})}bR.set(n,t)},[t]),n}function DF(t){return t}function PF(t,e){e===void 0&&(e=DF);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(a){var l=e(a,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(a){for(r=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(a),l=n}var d=function(){var p=l;l=[],p.forEach(a)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(p){l.push(p),h()},filter:function(p){return l=l.filter(p),n}}}};return i}function jF(t){t===void 0&&(t={});var e=PF(null);return e.options=Qs({async:!0,ssr:!1},t),e}var a4=function(t){var e=t.sideCar,n=s4(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Qs({},n))};a4.isSideCarExport=!0;function LF(t,e){return t.useMedium(e),a4}var o4=jF(),bb=function(){},nv=w.forwardRef(function(t,e){var n=w.useRef(null),r=w.useState({onScrollCapture:bb,onWheelCapture:bb,onTouchMoveCapture:bb}),i=r[0],a=r[1],l=t.forwardProps,u=t.children,d=t.className,h=t.removeScrollBar,p=t.enabled,m=t.shards,g=t.sideCar,b=t.noRelative,E=t.noIsolation,y=t.inert,x=t.allowPinchZoom,S=t.as,R=S===void 0?"div":S,O=t.gapMode,M=s4(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,P=NF([n,e]),j=Qs(Qs({},M),i);return w.createElement(w.Fragment,null,p&&w.createElement(k,{sideCar:o4,removeScrollBar:h,shards:m,noRelative:b,noIsolation:E,inert:y,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:O}),l?w.cloneElement(w.Children.only(u),Qs(Qs({},j),{ref:P})):w.createElement(R,Qs({},j,{className:d,ref:P}),u))});nv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nv.classNames={fullWidth:Nm,zeroRight:Mm};var zF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $F(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=zF();return e&&t.setAttribute("nonce",e),t}function HF(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function BF(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var FF=function(){var t=0,e=null;return{add:function(n){t==0&&(e=$F())&&(HF(e,n),BF(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},UF=function(){var t=FF();return function(e,n){w.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},l4=function(){var t=UF(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},IF={left:0,top:0,right:0,gap:0},xb=function(t){return parseInt(t||"",10)||0},VF=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[xb(n),xb(r),xb(i)]},qF=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return IF;var e=VF(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},GF=l4(),fu="data-scroll-locked",XF=function(t,e,n,r){var i=t.left,a=t.top,l=t.right,u=t.gap;return n===void 0&&(n="margin"),`
832  .`.concat(OF,` {
833   overflow: hidden `).concat(r,`;
834   padding-right: `).concat(u,"px ").concat(r,`;
835  }
836  body[`).concat(fu,`] {
837    overflow: hidden `).concat(r,`;
838    overscroll-behavior: contain;
839    `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
840    padding-left: `.concat(i,`px;
841    padding-top: `).concat(a,`px;
842    padding-right: `).concat(l,`px;
843    margin-left:0;
844    margin-top:0;
845    margin-right: `).concat(u,"px ").concat(r,`;
846    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";
846")].filter(Boolean).join(""),`
847  }
848  
849  .`).concat(Mm,` {
850    right: `).concat(u,"px ").concat(r,`;
851  }
852  
853  .`).concat(Nm,` {
854    margin-right: `).concat(u,"px ").concat(r,`;
855  }
856  
857  .`).concat(Mm," .").concat(Mm,` {
858    right: 0 `).concat(r,`;
859  }
860  
861  .`).concat(Nm," .").concat(Nm,` {
862    margin-right: 0 `).concat(r,`;
863  }
864  
865  body[`).concat(fu,`] {
866    `).concat(AF,": ").concat(u,`px;
867  }
868`)},xR=function(){var t=parseInt(document.body.getAttribute(fu)||"0",10);return isFinite(t)?t:0},YF=function(){w.useEffect(function(){return document.body.setAttribute(fu,(xR()+1).toString()),function(){var t=xR()-1;t<=0?document.body.removeAttribute(fu):document.body.setAttribute(fu,t.toString())}},[])},KF=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;YF();var a=w.useMemo(function(){return qF(i)},[i]);return w.createElement(GF,{styles:XF(a,!e,i,n?"":"!important")})},g1=!1;if(typeof window<"u")try{var Jp=Object.defineProperty({},"passive",{get:function(){return g1=!0,!0}});window.addEventListener("test",Jp,Jp),window.removeEventListener("test",Jp,Jp)}catch{g1=!1}var Wc=g1?{passive:!1}:!1,QF=function(t){return t.tagName==="TEXTAREA"},c4=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!QF(t)&&n[e]==="visible")},WF=function(t){return c4(t,"overflowY")},ZF=function(t){return c4(t,"overflowX")},wR=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=u4(t,r);if(i){var a=d4(t,r),l=a[1],u=a[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},JF=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},eU=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},u4=function(t,e){return t==="v"?WF(e):ZF(e)},d4=function(t,e){return t==="v"?JF(e):eU(e)},tU=function(t,e){return t==="h"&&e==="rtl"?-1:1},nU=function(t,e,n,r,i){var a=tU(t,window.getComputedStyle(e).direction),l=a*r,u=n.target,d=e.contains(u),h=!1,p=l>0,m=0,g=0;do{if(!u)break;var b=d4(t,u),E=b[0],y=b[1],x=b[2],S=y-x-a*E;(E||S)&&u4(t,u)&&(m+=S,g+=E);var R=u.parentNode;u=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!d&&u!==document.body||d&&(e.contains(u)||e===u));return(p&&Math.abs(m)<1||!p&&Math.abs(g)<1)&&(h=!0),h},em=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},SR=function(t){return[t.deltaX,t.deltaY]},_R=function(t){return t&&"current"in t?t.current:t},rU=function(t,e){return t[0]===e[0]&&t[1]===e[1]},iU=function(t){return`
869  .block-interactivity-`.concat(t,` {pointer-events: none;}
870  .allow-interactivity-`).concat(t,` {pointer-events: all;}
871`)},sU=0,Zc=[];function aU(t){var e=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(sU++)[0],a=w.useState(l4)[0],l=w.useRef(t);w.useEffect(function(){l.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=TF([t.lockRef.current],(t.shards||[]).map(_R),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var u=w.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var S=em(y),R=n.current,O="deltaX"in y?y.deltaX:R[0]-S[0],M="deltaY"in y?y.deltaY:R[1]-S[1],k,P=y.target,j=Math.abs(O)>Math.abs(M)?"h":"v";if("touches"in y&&j==="h"&&P.type==="range")return!1;var H=wR(j,P);if(!H)return!0;if(H?k=j:(k=j==="v"?"h":"v",H=wR(j,P)),!H)return!1;if(!r.current&&"changedTouches"in y&&(O||M)&&(r.current=k),!k)return!0;var I=r.current||k;return nU(I,x,y,I==="h"?O:M)},[]),d=w.useCallback(function(y){var x=y;if(!(!Zc.length||Zc[Zc.length-1]!==a)){var S="deltaY"in x?SR(x):em(x),R=e.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&rU(k.delta,S)})[0];if(R&&R.should){x.cancelable&&x.preventDefault();return}
vendor: 4,565 bytes, line 871
871if(!R){var O=(l.current.shards||[]).map(_R).filter(Boolean).filter(function(k){return k.contains(x.target)}),M=O.length>0?u(x,O[0]):!l.current.noIsolation;M&&x.cancelable&&x.preventDefault()}}},[]),h=w.useCallback(function(y,x,S,R){var O={name:y,delta:x,target:S,should:R,shadowParent:oU(S)};e.current.push(O),setTimeout(function(){e.current=e.current.filter(function(M){return M!==O})},1)},[]),p=w.useCallback(function(y){n.current=em(y),r.current=void 0},[]),m=w.useCallback(function(y){h(y.type,SR(y),y.target,u(y,t.lockRef.current))},[]),g=w.useCallback(function(y){h(y.type,em(y),y.target,u(y,t.lockRef.current))},[]);w.useEffect(function(){return Zc.push(a),t.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,Wc),document.addEventListener("touchmove",d,Wc),document.addEventListener("touchstart",p,Wc),function(){Zc=Zc.filter(function(y){return y!==a}),document.removeEventListener("wheel",d,Wc),document.removeEventListener("touchmove",d,Wc),document.removeEventListener("touchstart",p,Wc)}},[]);var b=t.removeScrollBar,E=t.inert;return w.createElement(w.Fragment,null,E?w.createElement(a,{styles:iU(i)}):null,b?w.createElement(KF,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function oU(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const lU=LF(o4,aU);var f4=w.forwardRef(function(t,e){return w.createElement(nv,Qs({},t,{ref:e,sideCar:lU}))});f4.classNames=nv.classNames;var cU=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Jc=new WeakMap,tm=new WeakMap,nm={},wb=0,h4=function(t){return t&&(t.host||h4(t.parentNode))},uU=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=h4(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},dU=function(t,e,n,r){var i=uU(e,Array.isArray(t)?t:[t]);nm[n]||(nm[n]=new WeakMap);var a=nm[n],l=[],u=new Set,d=new Set(i),h=function(m){!m||u.has(m)||(u.add(m),h(m.parentNode))};i.forEach(h);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(g){if(u.has(g))p(g);else try{var b=g.getAttribute(r),E=b!==null&&b!=="false",y=(Jc.get(g)||0)+1,x=(a.get(g)||0)+1;Jc.set(g,y),a.set(g,x),l.push(g),y===1&&E&&tm.set(g,!0),x===1&&g.setAttribute(n,"true"),E||g.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",g,S)}})};return p(e),u.clear(),wb++,function(){l.forEach(function(m){var g=Jc.get(m)-1,b=a.get(m)-1;Jc.set(m,g),a.set(m,b),g||(tm.has(m)||m.removeAttribute(r),tm.delete(m)),b||m.removeAttribute(n)}),wb--,wb||(Jc=new WeakMap,Jc=new WeakMap,tm=new WeakMap,nm={})}},fU=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=cU(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),dU(r,i,n,"aria-hidden")):function(){return null}};function hU(t){const e=w.useRef({value:t,previous:t});return w.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function pU(t){const[e,n]=w.useState(void 0);return fi(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let l,u;if("borderBoxSize"in a){const d=a.borderBoxSize,h=Array.isArray(d)?d[0]:d;l=h.inlineSize,u=h.blockSize}else l=t.offsetWidth,u=t.offsetHeight;n({width:l,height:u})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}const mU=["top","right","bottom","left"],Io=Math.min,Oi=Math.max,cg=Math.round,rm=Math.floor,na=t=>({x:t,y:t}),gU={left:"right",right:"left",bottom:"top",top:"bottom"},vU={start:"end",end:"start"};function v1(t,e,n){return Oi(t,Io(e,n))}function $a(t,e){return typeof t=="function"?t(e):t}function Ha(t){return t.split("-")[0]}function Zu(t){return t.split("-")[1]}function Tw(t){return t==="x"?"y":"x"}function Ow(t){return t==="y"?"height":"width"}const yU=new Set(["top","bottom"]);function ea(t){return yU.has(Ha(t))?"y":"x"}function Aw(t){return Tw(ea(t))}function bU(t,e,n){n===void 0&&(n=!1);const r=Zu(t),i=Aw(t),a=Ow(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(l=ug(l)),[l,ug(l)]}function xU(t){const e=ug(t);return[y1(t),e,y1(e)]}function y1(t){return t.replace(/start|end/g,e=>vU[e])}const ER=["left","right"],CR=["right","left"],wU=["top","bottom"],SU=["bottom","top"];
vendor: 11,095 bytes, line 871
871function _U(t,e,n){switch(t){case"top":case"bottom":return n?e?CR:ER:e?ER:CR;case"left":case"right":return e?wU:SU;default:return[]}}function EU(t,e,n,r){const i=Zu(t);let a=_U(Ha(t),n==="start",r);return i&&(a=a.map(l=>l+"-"+i),e&&(a=a.concat(a.map(y1)))),a}function ug(t){return t.replace(/left|right|bottom|top/g,e=>gU[e])}function CU(t){return{top:0,right:0,bottom:0,left:0,...t}}function p4(t){return typeof t!="number"?CU(t):{top:t,right:t,bottom:t,left:t}}function dg(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function RR(t,e,n){let{reference:r,floating:i}=t;const a=ea(e),l=Aw(e),u=Ow(l),d=Ha(e),h=a==="y",p=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let b;switch(d){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Zu(e)){case"start":b[l]-=g*(n&&h?-1:1);break;case"end":b[l]+=g*(n&&h?-1:1);break}return b}const RU=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,u=a.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(e));let h=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y:m}=RR(h,r,d),g=r,b={},E=0;for(let y=0;y<u.length;y++){const{name:x,fn:S}=u[y],{x:R,y:O,data:M,reset:k}=await S({x:p,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:h,platform:l,elements:{reference:t,floating:e}});p=R??p,m=O??m,b={...b,[x]:{...b[x],...M}},k&&E<=50&&(E++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(h=k.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:p,y:m}=RR(h,g,d)),y=-1)}return{x:p,y:m,placement:g,strategy:i,middlewareData:b}};async function Hf(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:l,elements:u,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=$a(e,t),E=p4(b),x=u[g?m==="floating"?"reference":"floating":m],S=dg(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:h,rootBoundary:p,strategy:d})),R=m==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),M=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},k=dg(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:R,offsetParent:O,strategy:d}):R);return{top:(S.top-k.top+E.top)/M.y,bottom:(k.bottom-S.bottom+E.bottom)/M.y,left:(S.left-k.left+E.left)/M.x,right:(k.right-S.right+E.right)/M.x}}const TU=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:a,platform:l,elements:u,middlewareData:d}=e,{element:h,padding:p=0}=$a(t,e)||{};if(h==null)return{};const m=p4(p),g={x:n,y:r},b=Aw(i),E=Ow(b),y=await l.getDimensions(h),x=b==="y",S=x?"top":"left",R=x?"bottom":"right",O=x?"clientHeight":"clientWidth",M=a.reference[E]+a.reference[b]-g[b]-a.floating[E],k=g[b]-a.reference[b],P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let j=P?P[O]:0;(!j||!await(l.isElement==null?void 0:l.isElement(P)))&&(j=u.floating[O]||a.floating[E]);const H=M/2-k/2,I=j/2-y[E]/2-1,A=Io(m[S],I),$=Io(m[R],I),L=A,U=j-y[E]-$,V=j/2-y[E]/2+H,Q=v1(L,V,U),F=!d.arrow&&Zu(i)!=null&&V!==Q&&a.reference[E]/2-(V<L?A:$)-y[E]/2<0,J=F?V<L?V-L:V-U:0;return{[b]:g[b]+J,data:{[b]:Q,centerOffset:V-Q-J,...F&&{alignmentOffset:J}},reset:F}}}),OU=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:a,rects:l,initialPlacement:u,platform:d,elements:h}=e,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:y=!0,...x}=$a(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const S=Ha(i),R=ea(u),O=Ha(u)===u,M=await(d.isRTL==null?void 0:d.isRTL(h.floating)),k=g||(O||!y?[ug(u)]:xU(u)),P=E!=="none";!g&&P&&k.push(...EU(u,y,E,M));const j=[u,...k],H=await Hf(e,x),I=[];let A=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&I.push(H[S]),m){const V=bU(i,l,M);I.push(H[V[0]],H[V[1]])}if(A=[...A,{placement:i,overflows:I}],!I.every(V=>V<=0)){var $,L;const V=((($=a.flip)==null?void 0:$.index)||0)+1,Q=j[V];if(Q&&(!(m==="alignment"?R!==ea(Q):!1)||A.every(ae=>ae.overflows[0]>0&&ea(ae.placement)===R)))return{data:{index:V,overflows:A},reset:{placement:Q}};let F=(L=A.filter(J=>J.overflows[0]<=0).sort((J,ae)=>J.overflows[1]-ae.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(b){case"bestFit":{var U;const J=(U=A.filter(ae=>{if(P){const ye=ea(ae.placement);return ye===R||ye==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ye=>ye>0).reduce((ye,X)=>ye+X,0)]).sort((ae,ye)=>ae[1]-ye[1])[0])==null?void 0:U[0];J&&(F=J);break}case"initialPlacement":F=u;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function TR(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function OR(t){return mU.some(e=>t[e]>=0)}const AU=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...i}=$a(t,e);switch(r){case"referenceHidden":{const a=await Hf(e,{...i,elementContext:"reference"}),l=TR(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:OR(l)}}}case"escaped":{const a=await Hf(e,{...i,altBoundary:!0}),l=TR(a,n.floating);return{data:{escapedOffsets:l,escaped:OR(l)}}}default:return{}}}}},m4=new Set(["left","top"]);async function kU(t,e){const{placement:n,platform:r,elements:i}=t,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Ha(n),u=Zu(n),d=ea(n)==="y",h=m4.has(l)?-1:1,p=a&&d?-1:1,m=$a(e,t);let{mainAxis:g,crossAxis:b,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof E=="number"&&(b=u==="end"?E*-1:E),d?{x:b*p,y:g*h}:{x:g*h,y:b*p}}const MU=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:a,placement:l,middlewareData:u}=e,d=await kU(e,t);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:l}}}}},NU=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:x=>{let{x:S,y:R}=x;return{x:S,y:R}}},...d}=$a(t,e),h={x:n,y:r},p=await Hf(e,d),m=ea(Ha(i)),g=Tw(m);let b=h[g],E=h[m];if(a){const x=g==="y"?"top":"left",S=g==="y"?"bottom":"right",R=b+p[x],O=b-p[S];b=v1(R,b,O)}if(l){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",R=E+p[x],O=E-p[S];E=v1(R,E,O)}const y=u.fn({...e,[g]:b,[m]:E});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:a,[m]:l}}}}}},DU=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:a,middlewareData:l}=e,{offset:u=0,mainAxis:d=!0,crossAxis:h=!0}=$a(t,e),p={x:n,y:r},m=ea(i),g=Tw(m);let b=p[g],E=p[m];const y=$a(u,e),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(d){const O=g==="y"?"height":"width",M=a.reference[g]-a.floating[O]+x.mainAxis,k=a.reference[g]+a.reference[O]-x.mainAxis;b<M?b=M:b>k&&(b=k)}if(h){var S,R;const O=g==="y"?"width":"height",M=m4.has(Ha(i)),k=a.reference[m]-a.floating[O]+(M&&((S=l.offset)==null?void 0:S[m])||0)+(M?0:x.crossAxis),P=a.reference[m]+a.reference[O]+(M?0:((R=l.offset)==null?void 0:R[m])||0)-(M?x.crossAxis:0);E<k?E=k:E>P&&(E=P)}return{[g]:b,[m]:E}}}},PU=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:a,platform:l,elements:u}=e,{apply:d=()=>{},...h}=$a(t,e),p=await Hf(e,h),m=Ha(i),g=Zu(i),b=ea(i)==="y",{width:E,height:y}=a.floating;let x,S;m==="top"||m==="bottom"?(x=m,S=g===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(S=m,x=g==="end"?"top":"bottom");const R=y-p.top-p.bottom,O=E-p.left-p.right,M=Io(y-p[x],R),k=Io(E-p[S],O),P=!e.middlewareData.shift;let j=M,H=k;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(H=O),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(j=R),P&&!g){const A=Oi(p.left,0),$=Oi(p.right,0),L=Oi(p.top,0),U=Oi(p.bottom,0);b?H=E-2*(A!==0||$!==0?A+$:Oi(p.left,p.right)):j=y-2*(L!==0||U!==0?L+U:Oi(p.top,p.bottom))}await d({...e,availableWidth:H,availableHeight:j});const I=await l.getDimensions(u.floating);return E!==I.width||y!==I.height?{reset:{rects:!0}}:{}}}};function rv(){return typeof window<"u"}function Ju(t){return g4(t)?(t.nodeName||"").toLowerCase():"#document"}function Ni(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function oa(t){var e;return(e=(g4(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function g4(t){return rv()?t instanceof Node||t instanceof Ni(t).Node:!1}function As(t){return rv()?t instanceof Element||t instanceof Ni(t).Element:!1}function sa(t){return rv()?t instanceof HTMLElement||t instanceof Ni(t).HTMLElement:!1}function AR(t){return!rv()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ni(t).ShadowRoot}const jU=new Set(["inline","contents"]);function bh(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=ks(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!jU.has(i)}const LU=new Set(["table","td","th"]);function zU(t){return LU.has(Ju(t))}const $U=[":popover-open",":modal"];function iv(t){return $U.some(e=>{try{return t.matches(e)}catch{return!1}})}const HU=["transform","translate","scale","rotate","perspective"],BU=["transform","translate","scale","rotate","perspective","filter"],FU=["paint","layout","strict","content"];function kw(t){const e=Mw(),n=As(t)?ks(t):t;return HU.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||BU.some(r=>(n.willChange||"").includes(r))||FU.some(r=>(n.contain||"").includes(r))}function UU(t){let e=Vo(t);for(;sa(e)&&!Du(e);){if(kw(e))return e;if(iv(e))return null;e=Vo(e)}return null}function Mw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const IU=new Set(["html","body","#document"]);function Du(t){return IU.has(Ju(t))}function ks(t){return Ni(t).getComputedStyle(t)}function sv(t){return As(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Vo(t){if(Ju(t)==="html")return t;const e=t.assignedSlot||t.parentNode||AR(t)&&t.host||oa(t);return AR(e)?e.host:e}function v4(t){const e=Vo(t);return Du(e)?t.ownerDocument?t.ownerDocument.body:t.body:sa(e)&&bh(e)?e:v4(e)}function Bf(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=v4(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),l=Ni(i);if(a){const u=b1(l);
vendor: 6,643 bytes, line 871
871return e.concat(l,l.visualViewport||[],bh(i)?i:[],u&&n?Bf(u):[])}return e.concat(i,Bf(i,[],n))}function b1(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function y4(t){const e=ks(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=sa(t),a=i?t.offsetWidth:n,l=i?t.offsetHeight:r,u=cg(n)!==a||cg(r)!==l;return u&&(n=a,r=l),{width:n,height:r,$:u}}function Nw(t){return As(t)?t:t.contextElement}function hu(t){const e=Nw(t);if(!sa(e))return na(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:a}=y4(e);let l=(a?cg(n.width):n.width)/r,u=(a?cg(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const VU=na(0);function b4(t){const e=Ni(t);return!Mw()||!e.visualViewport?VU:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qU(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ni(t)?!1:e}function Zl(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),a=Nw(t);let l=na(1);e&&(r?As(r)&&(l=hu(r)):l=hu(t));const u=qU(a,n,r)?b4(a):na(0);let d=(i.left+u.x)/l.x,h=(i.top+u.y)/l.y,p=i.width/l.x,m=i.height/l.y;if(a){const g=Ni(a),b=r&&As(r)?Ni(r):r;let E=g,y=b1(E);for(;y&&r&&b!==E;){const x=hu(y),S=y.getBoundingClientRect(),R=ks(y),O=S.left+(y.clientLeft+parseFloat(R.paddingLeft))*x.x,M=S.top+(y.clientTop+parseFloat(R.paddingTop))*x.y;d*=x.x,h*=x.y,p*=x.x,m*=x.y,d+=O,h+=M,E=Ni(y),y=b1(E)}}return dg({width:p,height:m,x:d,y:h})}function Dw(t,e){const n=sv(t).scrollLeft;return e?e.left+n:Zl(oa(t)).left+n}function x4(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:Dw(t,r)),a=r.top+e.scrollTop;return{x:i,y:a}}function GU(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const a=i==="fixed",l=oa(r),u=e?iv(e.floating):!1;if(r===l||u&&a)return n;let d={scrollLeft:0,scrollTop:0},h=na(1);const p=na(0),m=sa(r);if((m||!m&&!a)&&((Ju(r)!=="body"||bh(l))&&(d=sv(r)),sa(r))){const b=Zl(r);h=hu(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}const g=l&&!m&&!a?x4(l,d,!0):na(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+p.x+g.x,y:n.y*h.y-d.scrollTop*h.y+p.y+g.y}}function XU(t){return Array.from(t.getClientRects())}function YU(t){const e=oa(t),n=sv(t),r=t.ownerDocument.body,i=Oi(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Oi(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Dw(t);const u=-n.scrollTop;return ks(r).direction==="rtl"&&(l+=Oi(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:l,y:u}}function KU(t,e){const n=Ni(t),r=oa(t),i=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,u=0,d=0;if(i){a=i.width,l=i.height;const h=Mw();(!h||h&&e==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:a,height:l,x:u,y:d}}const QU=new Set(["absolute","fixed"]);function WU(t,e){const n=Zl(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=sa(t)?hu(t):na(1),l=t.clientWidth*a.x,u=t.clientHeight*a.y,d=i*a.x,h=r*a.y;return{width:l,height:u,x:d,y:h}}function kR(t,e,n){let r;if(e==="viewport")r=KU(t,n);else if(e==="document")r=YU(oa(t));else if(As(e))r=WU(e,n);else{const i=b4(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return dg(r)}function w4(t,e){const n=Vo(t);return n===e||!As(n)||Du(n)?!1:ks(n).position==="fixed"||w4(n,e)}function ZU(t,e){const n=e.get(t);if(n)return n;let r=Bf(t,[],!1).filter(u=>As(u)&&Ju(u)!=="body"),i=null;const a=ks(t).position==="fixed";let l=a?Vo(t):t;for(;As(l)&&!Du(l);){const u=ks(l),d=kw(l);!d&&u.position==="fixed"&&(i=null),(a?!d&&!i:!d&&u.position==="static"&&!!i&&QU.has(i.position)||bh(l)&&!d&&w4(t,l))?r=r.filter(p=>p!==l):i=u,l=Vo(l)}return e.set(t,r),r}function JU(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const l=[...n==="clippingAncestors"?iv(e)?[]:ZU(e,this._c):[].concat(n),r],u=l[0],d=l.reduce((h,p)=>{const m=kR(e,p,i);return h.top=Oi(m.top,h.top),h.right=Io(m.right,h.right),h.bottom=Io(m.bottom,h.bottom),h.left=Oi(m.left,h.left),h},kR(e,u,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function eI(t){const{width:e,height:n}=y4(t);return{width:e,height:n}}function tI(t,e,n){const r=sa(e),i=oa(e),a=n==="fixed",l=Zl(t,!0,a,e);let u={scrollLeft:0,scrollTop:0};const d=na(0);function h(){d.x=Dw(i)}if(r||!r&&!a)if((Ju(e)!=="body"||bh(i))&&(u=sv(e)),r){const b=Zl(e,!0,a,e);d.x=b.x+e.clientLeft,d.y=b.y+e.clientTop}else i&&h();a&&!r&&i&&h();const p=i&&!r&&!a?x4(i,u):na(0),m=l.left+u.scrollLeft-d.x-p.x,g=l.top+u.scrollTop-d.y-p.y;return{x:m,y:g,width:l.width,height:l.height}}function Sb(t){return ks(t).position==="static"}function MR(t,e){if(!sa(t)||ks(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return oa(t)===n&&(n=n.ownerDocument.body),n}function S4(t,e){const n=Ni(t);if(iv(t))return n;if(!sa(t)){let i=Vo(t);for(;i&&!Du(i);){if(As(i)&&!Sb(i))return i;i=Vo(i)}return n}let r=MR(t,e);for(;r&&zU(r)&&Sb(r);)r=MR(r,e);return r&&Du(r)&&Sb(r)&&!kw(r)?n:r||UU(t)||n}const nI=async function(t){const e=this.getOffsetParent||S4,n=this.getDimensions,r=await n(t.floating);return{reference:tI(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rI(t){return ks(t).direction==="rtl"}const iI={convertOffsetParentRelativeRectToViewportRelativeRect:GU,getDocumentElement:oa,getClippingRect:JU,getOffsetParent:S4,getElementRects:nI,getClientRects:XU,getDimensions:eI,getScale:hu,isElement:As,isRTL:rI};function _4(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function sI(t,e){let n=null,r;const i=oa(t);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),a();const h=t.getBoundingClientRect(),{left:p,top:m,width:g,height:b}=h;if(u||e(),!g||!b)return;const E=rm(m),y=rm(i.clientWidth-(p+g)),x=rm(i.clientHeight-(m+b)),S=rm(p),O={rootMargin:-E+"px "+-y+"px "+-x+"px "+-S+"px",threshold:Oi(0,Io(1,d))||1};let M=!0;function k(P){const j=P[0].intersectionRatio;if(j!==d){if(!M)return l();j?l(!1,j):r=setTimeout(()=>{l(!1,1e-7)},1e3)}j===1&&!_4(h,t.getBoundingClientRect())&&l(),M=!1}try{n=new IntersectionObserver(k,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,O)}n.observe(t)}return l(!0),a}function aI(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Nw(t),p=i||a?[...h?Bf(h):[],...Bf(e)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),a&&S.addEventListener("resize",n)});const m=h&&u?sI(h,n):null;let g=-1,b=null;
vendor: 6,857 bytes, line 871
871l&&(b=new ResizeObserver(S=>{let[R]=S;R&&R.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(e)})),n()}),h&&!d&&b.observe(h),b.observe(e));let E,y=d?Zl(t):null;d&&x();function x(){const S=Zl(t);y&&!_4(y,S)&&n(),y=S,E=requestAnimationFrame(x)}return n(),()=>{var S;p.forEach(R=>{i&&R.removeEventListener("scroll",n),a&&R.removeEventListener("resize",n)}),m==null||m(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}const oI=MU,lI=NU,cI=OU,uI=PU,dI=AU,NR=TU,fI=DU,hI=(t,e,n)=>{const r=new Map,i={platform:iI,...n},a={...i.platform,_c:r};return RU(t,e,{...i,platform:a})};var pI=typeof document<"u",mI=function(){},Dm=pI?w.useLayoutEffect:mI;function fg(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!fg(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&t.$$typeof)&&!fg(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function E4(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function DR(t,e){const n=E4(t);return Math.round(e*n)/n}function _b(t){const e=w.useRef(t);return Dm(()=>{e.current=t}),e}function gI(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:d,open:h}=t,[p,m]=w.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[g,b]=w.useState(r);fg(g,r)||b(r);const[E,y]=w.useState(null),[x,S]=w.useState(null),R=w.useCallback(ae=>{ae!==P.current&&(P.current=ae,y(ae))},[]),O=w.useCallback(ae=>{ae!==j.current&&(j.current=ae,S(ae))},[]),M=a||E,k=l||x,P=w.useRef(null),j=w.useRef(null),H=w.useRef(p),I=d!=null,A=_b(d),$=_b(i),L=_b(h),U=w.useCallback(()=>{if(!P.current||!j.current)return;const ae={placement:e,strategy:n,middleware:g};$.current&&(ae.platform=$.current),hI(P.current,j.current,ae).then(ye=>{const X={...ye,isPositioned:L.current!==!1};V.current&&!fg(H.current,X)&&(H.current=X,Fo.flushSync(()=>{m(X)}))})},[g,e,n,$,L]);Dm(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,m(ae=>({...ae,isPositioned:!1})))},[h]);const V=w.useRef(!1);Dm(()=>(V.current=!0,()=>{V.current=!1}),[]),Dm(()=>{if(M&&(P.current=M),k&&(j.current=k),M&&k){if(A.current)return A.current(M,k,U);U()}},[M,k,U,A,I]);const Q=w.useMemo(()=>({reference:P,floating:j,setReference:R,setFloating:O}),[R,O]),F=w.useMemo(()=>({reference:M,floating:k}),[M,k]),J=w.useMemo(()=>{const ae={position:n,left:0,top:0};if(!F.floating)return ae;const ye=DR(F.floating,p.x),X=DR(F.floating,p.y);return u?{...ae,transform:"translate("+ye+"px, "+X+"px)",...E4(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ye,top:X}},[n,u,F.floating,p.x,p.y]);return w.useMemo(()=>({...p,update:U,refs:Q,elements:F,floatingStyles:J}),[p,U,Q,F,J])}const vI=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?NR({element:r.current,padding:i}).fn(n):{}:r?NR({element:r,padding:i}).fn(n):{}}}},yI=(t,e)=>({...oI(t),options:[t,e]}),bI=(t,e)=>({...lI(t),options:[t,e]}),xI=(t,e)=>({...fI(t),options:[t,e]}),wI=(t,e)=>({...cI(t),options:[t,e]}),SI=(t,e)=>({...uI(t),options:[t,e]}),_I=(t,e)=>({...dI(t),options:[t,e]}),EI=(t,e)=>({...vI(t),options:[t,e]});var CI="Arrow",C4=w.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...a}=t;return C.jsx(Mn.svg,{...a,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});C4.displayName=CI;var RI=C4,Pw="Popper",[R4,T4]=Cw(Pw),[TI,O4]=R4(Pw),A4=t=>{const{__scopePopper:e,children:n}=t,[r,i]=w.useState(null);return C.jsx(TI,{scope:e,anchor:r,onAnchorChange:i,children:n})};A4.displayName=Pw;var k4="PopperAnchor",M4=w.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,a=O4(k4,n),l=w.useRef(null),u=wr(e,l);return w.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:C.jsx(Mn.div,{...i,ref:u})});M4.displayName=k4;var jw="PopperContent",[OI,AI]=R4(jw),N4=w.forwardRef((t,e)=>{var be,xe,ke,Me,Ne,Te;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:b="optimized",onPlaced:E,...y}=t,x=O4(jw,n),[S,R]=w.useState(null),O=wr(e,Be=>R(Be)),[M,k]=w.useState(null),P=pU(M),j=(P==null?void 0:P.width)??0,H=(P==null?void 0:P.height)??0,I=r+(a!=="center"?"-"+a:""),A=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},$=Array.isArray(h)?h:[h],L=$.length>0,U={padding:A,boundary:$.filter(MI),altBoundary:L},{refs:V,floatingStyles:Q,placement:F,isPositioned:J,middlewareData:ae}=gI({strategy:"fixed",placement:I,whileElementsMounted:(...Be)=>aI(...Be,{animationFrame:b==="always"}),elements:{reference:x.anchor},middleware:[yI({mainAxis:i+H,alignmentAxis:l}),d&&bI({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?xI():void 0,...U}),d&&wI({...U}),SI({...U,apply:({elements:Be,rects:nt,availableWidth:yt,availableHeight:_e})=>{const{width:Ae,height:je}=nt.reference,$e=Be.floating.style;$e.setProperty("--radix-popper-available-width",`${yt}px`),$e.setProperty("--radix-popper-available-height",`${_e}px`),$e.setProperty("--radix-popper-anchor-width",`${Ae}px`),$e.setProperty("--radix-popper-anchor-height",`${je}px`)}}),M&&EI({element:M,padding:u}),NI({arrowWidth:j,arrowHeight:H}),g&&_I({strategy:"referenceHidden",...U})]}),[ye,X]=j4(F),ee=Wl(E);fi(()=>{J&&(ee==null||ee())},[J,ee]);const ve=(be=ae.arrow)==null?void 0:be.x,le=(xe=ae.arrow)==null?void 0:xe.y,se=((ke=ae.arrow)==null?void 0:ke.centerOffset)!==0,[he,ie]=w.useState();return fi(()=>{S&&ie(window.getComputedStyle(S).zIndex)},[S]),C.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:J?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Me=ae.transformOrigin)==null?void 0:Me.x,(Ne=ae.transformOrigin)==null?void 0:Ne.y].join(" "),...((Te=ae.hide)==null?void 0:Te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:C.jsx(OI,{scope:n,placedSide:ye,onArrowChange:k,arrowX:ve,arrowY:le,shouldHideArrow:se,children:C.jsx(Mn.div,{"data-side":ye,"data-align":X,...y,ref:O,style:{...y.style,animation:J?void 0:"none"}})})})});N4.displayName=jw;var D4="PopperArrow",kI={top:"bottom",right:"left",bottom:"top",left:"r
871ight"},P4=w.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,a=AI(D4,r),l=kI[a.placedSide];return C.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:C.jsx(RI,{...i,ref:n,style:{...i.style,display:"block"}})})});P4.displayName=D4;function MI(t){return t!==null}var NI=t=>({name:"transformOrigin",options:t,fn(e){var x,S,R;const{placement:n,rects:r,middlewareData:i}=e,l=((x=i.arrow)==null?void 0:x.centerOffset)!==0,u=l?0:t.arrowWidth,d=l?0:t.arrowHeight,[h,p]=j4(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((S=i.arrow)==null?void 0:S.x)??0)+u/2,b=(((R=i.arrow)==null?void 0:R.y)??0)+d/2;let E="",y="";return h==="bottom"?(E=l?m:`${g}px`,y=`${-d}px`):h==="top"?(E=l?m:`${g}px`,y=`${r.floating.height+d}px`):h==="right"?(E=`${-d}px`,y=l?m:`${b}px`):h==="left"&&(E=`${r.floating.width+d}px`,y=l?m:`${b}px`),{data:{x:E,y}}}});function j4(t){const[e,n="center"]=t.split("-");return[e,n]}var DI=A4,PI=M4,jI=N4,LI=P4;function PR(t,[e,n]){return Math.min(n,Math.max(e,t))}var zI=[" ","Enter","ArrowUp","ArrowDown"],$I=[" ","Enter"],Jl="Select",[av,ov,HI]=nF(Jl),[ed]=Cw(Jl,[HI,T4]),lv=T4(),[BI,Xo]=ed(Jl),[FI,UI]=ed(Jl),L4=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:i,onOpenChange:a,value:l,defaultValue:u,onValueChange:d,dir:h,name:p,autoComplete:m,disabled:g,required:b,form:E}=t,y=lv(e),[x,S]=w.useState(null),[R,O]=w.useState(null),[M,k]=w.useState(!1),P=cF(h),[j,H]=dR({prop:r,defaultProp:i??!1,onChange:a,caller:Jl}),[I,A]=dR({prop:l,defaultProp:u,onChange:d,caller:Jl}),$=w.useRef(null),L=x?E||!!x.closest("form"):!0,[U,V]=w.useState(new Set),Q=Array.from(U).map(F=>F.props.value).join(";");return C.jsx(DI,{...y,children:C.jsxs(BI,{required:b,scope:e,trigger:x,onTriggerChange:S,valueNode:R,onValueNodeChange:O,valueNodeHasChildren:M,onValueNodeHasChildrenChange:k,contentId:Rw(),value:I,onValueChange:A,open:j,onOpenChange:H,dir:P,triggerPointerDownPosRef:$,disabled:g,children:[C.jsx(av.Provider,{scope:e,children:C.jsx(FI,{scope:t.__scopeSelect,onNativeOptionAdd:w.useCallback(F=>{V(J=>new Set(J).add(F))},[]),onNativeOptionRemove:w.useCallback(F=>{V(J=>{const ae=new Set(J);return ae.delete(F),ae})},[]),children:n})}),L?C.jsxs(nM,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:m,value:I,onChange:F=>A(F.target.value),disabled:g,form:E,children:[I===void 0?C.jsx("option",{value:""}):null,Array.from(U)]},Q):null]})})};L4.displayName=Jl;var z4="SelectTrigger",$4=w.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...i}=t,a=lv(n),l=Xo(z4,n),u=l.disabled||r,d=wr(e,l.onTriggerChange),h=ov(n),p=w.useRef("touch"),[m,g,b]=iM(y=>{const x=h().filter(O=>!O.disabled),S=x.find(O=>O.value===l.value),R=sM(x,y,S);R!==void 0&&l.onValueChange(R.value)}),E=y=>{u||(l.onOpenChange(!0),b()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return C.jsx(PI,{asChild:!0,...a,children:C.jsx(Mn.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":rM(l.value)?"":void 0,...i,ref:d,onClick:Yn(i.onClick,y=>{y.currentTarget.focus(),p.current!=="mouse"&&E(y)}),onPointerDown:Yn(i.onPointerDown,y=>{p.current=y.pointerType;const x=y.target;x.hasPointerCapture(y.pointerId)&&x.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(E(y),y.preventDefault())}),onKeyDown:Yn(i.onKeyDown,y=>{const x=m.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&g(y.key),!(x&&y.key===" ")&&zI.includes(y.key)&&(E(),y.preventDefault())})})})});$4.displayName=z4;var H4="SelectValue",B4=w.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:l="",...u}=t,d=Xo(H4,n),{onValueNodeHasChildrenChange:h}=d,p=a!==void 0,m=wr(e,d.onValueNodeChange);return fi(()=>{h(p)},[h,p]),C.jsx(Mn.span,{...u,ref:m,style:{pointerEvents:"none"},children:rM(d.value)?C.jsx(C.Fragment,{children:l}):a})});B4.displayName=H4;var II="SelectIcon",F4=w.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...i}=t;return C.jsx(Mn.span,{"aria-hidden":!0,...i,ref:e,children:r||"▼"})});F4.displayName=II;var VI="SelectPortal",U4=t=>C.jsx(i4,{asChild:!0,...t});U4.displayName=VI;var ec="SelectContent",I4=w.forwardRef((t,e)=>{const n=Xo(ec,t.__scopeSelect),[r,i]=w.useState();if(fi(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?Fo.createPortal(C.jsx(V4,{scope:t.__scopeSelect,children:C.jsx(av.Slot,{scope:t.__scopeSelect,children:C.jsx("div",{children:t.children})})}),a):null}return C.jsx(q4,{...t,ref:e})});I4.displayName=ec;var ms=10,[V4,Yo]=ed(ec),qI="SelectContentImpl",GI=lg("SelectContent.RemoveScroll"),q4=w.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:l,side:u,sideOffset:d,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:b,sticky:E,hideWhenDetached:y,avoidCollisions:x,...S}=t,R=Xo(ec,n),[O,M]=w.useState(null),[k,P]=w.useState(null),j=wr(e,be=>M(be)),[H,I]=w.useState(null),[A,$]=w.useState(null),L=ov(n),[U,V]=w.useState(!1),Q=w.useRef(!1);w.useEffect(()=>{if(O)return fU(O)},[O]),RF();const F=w.useCallback(be=>{const[xe,...ke]=L().map(Te=>Te.ref.current),[Me]=ke.slice(-1),Ne=document.activeElement;for(const Te of be)if(Te===Ne||(Te==null||Te.scrollIntoView({block:"nearest"}),Te===xe&&k&&(k.scrollTop=0),Te===Me&&k&&(k.scrollTop=k.scrollHeight),Te==null||Te.focus(),document.activeElement!==Ne))return},[L,k]),J=w.useCallback(()=>F([H,O]),[F,H,O]);w.useEffect(()=>{U&&J()},[U,J]);const{onOpenChange:ae,triggerPointerDownPosRef:ye}=R;w.useEffect(()=>{if(O){let be={x:0,y:0};const xe=Me=>{var Ne,Te;be={x:Math.abs(Math.round(Me.pageX)-(((Ne=ye.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Me.pageY)-(((Te=ye.current)==null?void 0:Te.y)??0))}},ke=Me=>{be.x<=10&&be.y<=10?Me.preventDefault():O.contains(Me.target)||ae(!1),document.removeEventListener("pointermove",xe),ye.current=null};return ye.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",ke,{capture:!0})}}},[O,ae,ye]),w.useEffect(()=>{const be=()=>ae(!1);return window.addEventListener("blur",be),window.addEventListener("resize",be),()=>{window.removeEventListener("blur",be),window.removeEventListener("resize",be)}},[ae]);const[X,ee]=iM(be=>{const xe=L().filter(Ne=>!Ne.disabled),ke=xe.find(Ne=>Ne.ref.current===document.activeElement),Me=sM(xe,be,ke);Me&&setTimeout(()=>Me.ref.current.focus())}),ve=w.useCallback((be,xe,ke)=>{const Me=!Q.current&&!ke;(R.value!==void 0&&R.value===xe||Me)&&(I(be),Me&&(Q.current=!0))},[R.value]),le=w.useCallback(()=>O==null?void 0:O.focus(),[O]),se=w.useCallback((be,xe,ke)=>{const Me=!Q.current&&!ke;(R.value!==void 0&&R.value===xe||Me)&&$(be)},[R.value]),he=r==="popper"?x1:G4,ie=he===x1?{side:u,sideOffset:d,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:b,sticky:E,hideWhenDetached:y,avoidCollisions:x}:{};return C.jsx(V4,{scope:n,content:O,viewport:k,onViewportChange:P,itemRefCallback:ve,selectedItem:H,onItemLeave:le,itemTextRefCallback:se,focu
vendor: 12,120 bytes, lines 871-875
871sSelectedItem:J,selectedItemText:A,position:r,isPositioned:U,searchRef:X,children:C.jsx(f4,{as:GI,allowPinchZoom:!0,children:C.jsx(n4,{asChild:!0,trapped:R.open,onMountAutoFocus:be=>{be.preventDefault()},onUnmountAutoFocus:Yn(i,be=>{var xe;(xe=R.trigger)==null||xe.focus({preventScroll:!0}),be.preventDefault()}),children:C.jsx(e4,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:be=>be.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:C.jsx(he,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:be=>be.preventDefault(),...S,...ie,onPlaced:()=>V(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:Yn(S.onKeyDown,be=>{const xe=be.ctrlKey||be.altKey||be.metaKey;if(be.key==="Tab"&&be.preventDefault(),!xe&&be.key.length===1&&ee(be.key),["ArrowUp","ArrowDown","Home","End"].includes(be.key)){let Me=L().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(be.key)&&(Me=Me.slice().reverse()),["ArrowUp","ArrowDown"].includes(be.key)){const Ne=be.target,Te=Me.indexOf(Ne);Me=Me.slice(Te+1)}setTimeout(()=>F(Me)),be.preventDefault()}})})})})})})});q4.displayName=qI;var XI="SelectItemAlignedPosition",G4=w.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...i}=t,a=Xo(ec,n),l=Yo(ec,n),[u,d]=w.useState(null),[h,p]=w.useState(null),m=wr(e,j=>p(j)),g=ov(n),b=w.useRef(!1),E=w.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:S,focusSelectedItem:R}=l,O=w.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&h&&y&&x&&S){const j=a.trigger.getBoundingClientRect(),H=h.getBoundingClientRect(),I=a.valueNode.getBoundingClientRect(),A=S.getBoundingClientRect();if(a.dir!=="rtl"){const Ne=A.left-H.left,Te=I.left-Ne,Be=j.left-Te,nt=j.width+Be,yt=Math.max(nt,H.width),_e=window.innerWidth-ms,Ae=PR(Te,[ms,Math.max(ms,_e-yt)]);u.style.minWidth=nt+"px",u.style.left=Ae+"px"}else{const Ne=H.right-A.right,Te=window.innerWidth-I.right-Ne,Be=window.innerWidth-j.right-Te,nt=j.width+Be,yt=Math.max(nt,H.width),_e=window.innerWidth-ms,Ae=PR(Te,[ms,Math.max(ms,_e-yt)]);u.style.minWidth=nt+"px",u.style.right=Ae+"px"}const $=g(),L=window.innerHeight-ms*2,U=y.scrollHeight,V=window.getComputedStyle(h),Q=parseInt(V.borderTopWidth,10),F=parseInt(V.paddingTop,10),J=parseInt(V.borderBottomWidth,10),ae=parseInt(V.paddingBottom,10),ye=Q+F+U+ae+J,X=Math.min(x.offsetHeight*5,ye),ee=window.getComputedStyle(y),ve=parseInt(ee.paddingTop,10),le=parseInt(ee.paddingBottom,10),se=j.top+j.height/2-ms,he=L-se,ie=x.offsetHeight/2,be=x.offsetTop+ie,xe=Q+F+be,ke=ye-xe;if(xe<=se){const Ne=$.length>0&&x===$[$.length-1].ref.current;u.style.bottom="0px";const Te=h.clientHeight-y.offsetTop-y.offsetHeight,Be=Math.max(he,ie+(Ne?le:0)+Te+J),nt=xe+Be;u.style.height=nt+"px"}else{const Ne=$.length>0&&x===$[0].ref.current;u.style.top="0px";const Be=Math.max(se,Q+y.offsetTop+(Ne?ve:0)+ie)+ke;u.style.height=Be+"px",y.scrollTop=xe-se+y.offsetTop}u.style.margin=`${ms}px 0`,u.style.minHeight=X+"px",u.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>b.current=!0)}},[g,a.trigger,a.valueNode,u,h,y,x,S,a.dir,r]);fi(()=>O(),[O]);const[M,k]=w.useState();fi(()=>{h&&k(window.getComputedStyle(h).zIndex)},[h]);const P=w.useCallback(j=>{j&&E.current===!0&&(O(),R==null||R(),E.current=!1)},[O,R]);return C.jsx(KI,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:P,children:C.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:C.jsx(Mn.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});G4.displayName=XI;var YI="SelectPopperPosition",x1=w.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=ms,...a}=t,l=lv(n);return C.jsx(jI,{...l,...a,ref:e,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});x1.displayName=YI;var[KI,Lw]=ed(ec,{}),w1="SelectViewport",X4=w.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...i}=t,a=Yo(w1,n),l=Lw(w1,n),u=wr(e,a.onViewportChange),d=w.useRef(0);return C.jsxs(C.Fragment,{children:[C.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),C.jsx(av.Slot,{scope:n,children:C.jsx(Mn.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Yn(i.onScroll,h=>{const p=h.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&m){const b=Math.abs(d.current-p.scrollTop);if(b>0){const E=window.innerHeight-ms*2,y=parseFloat(m.style.minHeight),x=parseFloat(m.style.height),S=Math.max(y,x);if(S<E){const R=S+b,O=Math.min(E,R),M=R-O;m.style.height=O+"px",m.style.bottom==="0px"&&(p.scrollTop=M>0?M:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});X4.displayName=w1;var Y4="SelectGroup",[QI,WI]=ed(Y4),ZI=w.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=Rw();return C.jsx(QI,{scope:n,id:i,children:C.jsx(Mn.div,{role:"group","aria-labelledby":i,...r,ref:e})})});ZI.displayName=Y4;var K4="SelectLabel",JI=w.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=WI(K4,n);return C.jsx(Mn.div,{id:i.id,...r,ref:e})});JI.displayName=K4;var hg="SelectItem",[eV,Q4]=ed(hg),W4=w.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...l}=t,u=Xo(hg,n),d=Yo(hg,n),h=u.value===r,[p,m]=w.useState(a??""),[g,b]=w.useState(!1),E=wr(e,R=>{var O;return(O=d.itemRefCallback)==null?void 0:O.call(d,R,r,i)}),y=Rw(),x=w.useRef("touch"),S=()=>{i||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return C.jsx(eV,{scope:n,value:r,disabled:i,textId:y,isSelected:h,onItemTextChange:w.useCallback(R=>{m(O=>O||((R==null?void 0:R.textContent)??"").trim())},[]),children:C.jsx(av.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:C.jsx(Mn.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:E,onFocus:Yn(l.onFocus,()=>b(!0)),onBlur:Yn(l.onBlur,()=>b(!1)),onClick:Yn(l.onClick,()=>{x.current!=="mouse"&&S()}),onPointerUp:Yn(l.onPointerUp,()=>{x.current==="mouse"&&S()}),onPointerDown:Yn(l.onPointerDown,R=>{x.current=R.pointerType}),onPointerMove:Yn(l.onPointerMove,R=>{var O;x.current=R.pointerType,i?(O=d.onItemLeave)==null||O.call(d):x.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Yn(l.onPointerLeave,R=>{var O;R.currentTarget===document.activeElement&&((O=d.onItemLeave)==null||O.call(d))}),onKeyDown:Yn(l.onKeyDown,R=>{var M;((M=d.searchRef)==null?void 0:M.current)!==""&&R.key===" "||($I.includes(R.key)&&S(),R.key===" "&&R.preventDefault())})})})})});W4.displayName=hg;var Sf="SelectItemText",Z4=w.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,...a}=t,l=Xo(Sf,n),u=Yo(Sf,n),d=Q4(Sf,n),h=UI(Sf,n),[p,m]=w.useState(null),g=wr(e,S=>m(S),d.onItemTextChange,S=>{var R;return(R=u.itemTextRefCallback)==null?void 0:R.call(u,S,d.value,d.disabled)}),b=p==null?void 0:p.textContent,E=w.useMemo(()=>C.jsx("option",{value:d.value,disabled:d.disabled,children:b},d.value),[d.disabled,d.value,b]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=h;return fi(()=>(y(E),()=>x(E)),[y,x,E]),C.jsxs(C.Fragment,{children:[C.jsx(Mn.span,{id:d.textId,...a,ref:g}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Fo.createPortal(a.children,l.valueNode):null]})});Z4.displayName=Sf;var J4="SelectItemIndicator",eM=w.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return Q4(J4,n).isSelected?C.jsx(Mn.span,{"aria-hidden":!0,...r,ref:e}):null});eM.displayName=J4;var S1="SelectScrollUpButton",tV=w.forwardRef((t,e)=>{const n=Yo(S1,t.__scopeSelect),r=Lw(S1,t.__scopeSelect),[i,a]=w.useState(!1),l=wr(e,r.onScrollButtonChange);return fi(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=d.scrollTop>0;a(h)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?C.jsx(tM,{...t,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});tV.displayName=S1;var _1="SelectScrollDownButton",nV=w.forwardRef((t,e)=>{const n=Yo(_1,t.__scopeSelect),r=Lw(_1,t.__scopeSelect),[i,a]=w.useState(!1),l=wr(e,r.onScrollButtonChange);return fi(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<h;a(p)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?C.jsx(tM,{...t,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});nV.displayName=_1;var tM=w.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=t,a=Yo("SelectScrollButton",n),l=w.useRef(null),u=ov(n),d=w.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return w.useEffect(()=>()=>d(),[d]),fi(()=>{var p;const h=u().find(m=>m.ref.current===document.activeElement);(p=h==null?void 0:h.ref.current)==null||p.scrollIntoView({block:"nearest"})},[u]),C.jsx(Mn.div,{"aria-hidden":!0,...i,ref:e,style:{flexShrink:0,...i.style},onPointerDown:Yn(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Yn(i.onPointerMove,()=>{var h;(h=a.onItemLeave)==null||h.call(a),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Yn(i.onPointerLeave,()=>{d()})})}),rV="SelectSeparator",iV=w.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return C.jsx(Mn.div,{"aria-hidden":!0,...r,ref:e})});iV.displayName=rV;var E1="SelectArrow",sV=w.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=lv(n),a=Xo(E1,n),l=Yo(E1,n);return a.open&&l.position==="popper"?C.jsx(LI,{...i,...r,ref:e}):null});sV.displayName=E1;var aV="SelectBubbleInput",nM=w.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const i=w.useRef(null),a=wr(r,i),l=hU(e);return w.useEffect(()=>{const u=i.current;if(!u)return;const d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==e&&p){const m=new Event("change",{bubbles:!0});p.call(u,e),u.dispatchEvent(m)}},[l,e]),C.jsx(Mn.select,{...n,style:{...Zk,...n.style},ref:a,defaultValue:e})});nM.displayName=aV;function rM(t){return t===""||t===void 0}function iM(t){const e=Wl(t),n=w.useRef(""),r=w.useRef(0),i=w.useCallback(l=>{const u=n.current+l;e(u),function d(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(u)},[e]),a=w.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function sM(t,e,n){const i=e.length>1&&Array.from(e).every(h=>h===e[0])?e[0]:e,a=n?t.indexOf(n):-1;let l=oV(t,Math.max(a,0));i.length===1&&(l=l.filter(h=>h!==n));const d=l.find(h=>h.textValue.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function oV(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var lV=L4,cV=$4,uV=B4,dV=F4,fV=U4,hV=I4,pV=X4,jR=W4,LR=Z4,mV=eM,Eb={exports:{}};/*!
872	Copyright (c) 2018 Jed Watson.
873	Licensed under the MIT License (MIT), see
874	http://jedwatson.github.io/classnames
875*/var zR;function gV(){return zR||(zR=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(a=i(a,r(u)))}return a}
875function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var u in a)e.call(a,u)&&a[u]&&(l=i(l,u));return l}function i(a,l){return l?a?a+" "+l:a+l:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(Eb)),Eb.exports}var vV=gV();const Ff=Iu(vV);function yV(t){return Vt("MuiCircularProgress",t)}$t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wo=44,C1=gh`
876  0% {
877    transform: rotate(0deg);
878  }
879
880  100% {
881    transform: rotate(360deg);
882  }
883`,R1=gh`
884  0% {
885    stroke-dasharray: 1px, 200px;
886    stroke-dashoffset: 0;
887  }
888
889  50% {
890    stroke-dasharray: 100px, 200px;
891    stroke-dashoffset: -15px;
892  }
893
894  100% {
895    stroke-dasharray: 1px, 200px;
896    stroke-dashoffset: -126px;
897  }
898`,bV=typeof C1!="string"?aw`
899        animation: ${C1} 1.4s linear infinite;
900      `:null,xV=typeof R1!="string"?aw`
901        animation: ${R1} 1.4s ease-in-out infinite;
902      `:null,wV=t=>{const{classes:e,variant:n,color:r,disableShrink:i}=t,a={root:["root",n,`color${Ge(r)}`],svg:["svg"],circle:["circle",`circle${Ge(n)}`,i&&"circleDisableShrink"]};return Kt(a,yV,e)},SV=rt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Ge(n.color)}`]]}})(on(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:bV||{animation:`${C1} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Ji()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),_V=rt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),EV=rt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Ge(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(on(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:xV||{animation:`${R1} 1.4s ease-in-out infinite`}}]}))),zw=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:l=!1,size:u=40,style:d,thickness:h=3.6,value:p=0,variant:m="indeterminate",...g}=r,b={...r,color:a,disableShrink:l,size:u,thickness:h,value:p,variant:m},E=wV(b),y={},x={},S={};if(m==="determinate"){const R=2*Math.PI*((wo-h)/2);y.strokeDasharray=R.toFixed(3),S["aria-valuenow"]=Math.round(p),y.strokeDashoffset=`${((100-p)/100*R).toFixed(3)}px`,x.transform="rotate(-90deg)"}return C.jsx(SV,{className:vt(E.root,i),style:{width:u,height:u,...x,...d},ownerState:b,ref:n,role:"progressbar",...S,...g,children:C.jsx(_V,{className:E.svg,ownerState:b,viewBox:`${wo/2} ${wo/2} ${wo} ${wo}`,children:C.jsx(EV,{className:E.circle,style:y,ownerState:b,cx:wo,cy:wo,r:(wo-h)/2,fill:"none",strokeWidth:h})})})});function CV(t){return Vt("MuiButton",t)}const xl=$t("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),RV=w.createContext({}),TV=w.createContext(void 0),OV=t=>{const{color:e,disableElevation:n,fullWidth:r,size:i,variant:a,loading:l,loadingPosition:u,classes:d}=t,h={root:["root",l&&"loading",a,`${a}${Ge(e)}`,`size${Ge(i)}`,`${a}Size${Ge(i)}`,`color${Ge(e)}`,n&&"disableElevation",r&&"fullWidth",l&&`loadingPosition${Ge(u)}`],startIcon:["icon","startIcon",`iconSize${Ge(i)}`],endIcon:["icon","endIcon",`iconSize${Ge(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=Kt(h,CV,d);return{...d,...p}},aM=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],AV=rt(Jg,{shouldForwardProp:t=>Qu(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Ge(n.color)}`],e[`size${Ge(n.size)}`],e[`${n.variant}Size${Ge(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(on(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${xl.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${xl.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${xl.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackgroun
vendor: 5,574 bytes, line 902
902d}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${xl.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Ji()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:cn(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette[r].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${xl.loading}`]:{color:"transparent"}}}]}})),kV=rt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Ge(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...aM]})),MV=rt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Ge(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...aM]})),NV=rt("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),$R=rt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Cne=w.forwardRef(function(e,n){const r=w.useContext(RV),i=w.useContext(TV),a=Lf(r,e),l=Qt({props:a,name:"MuiButton"}),{children:u,color:d="primary",component:h="button",className:p,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:b=!1,endIcon:E,focusVisibleClassName:y,fullWidth:x=!1,id:S,loading:R=null,loadingIndicator:O,loadingPosition:M="center",size:k="medium",startIcon:P,type:j,variant:H="text",...I}=l,A=lw(S),$=O??C.jsx(zw,{"aria-labelledby":A,color:"inherit",size:16}
902),L={...l,color:d,component:h,disabled:m,disableElevation:g,disableFocusRipple:b,fullWidth:x,loading:R,loadingIndicator:$,loadingPosition:M,size:k,type:j,variant:H},U=OV(L),V=(P||R&&M==="start")&&C.jsx(kV,{className:U.startIcon,ownerState:L,children:P||C.jsx($R,{className:U.loadingIconPlaceholder,ownerState:L})}),Q=(E||R&&M==="end")&&C.jsx(MV,{className:U.endIcon,ownerState:L,children:E||C.jsx($R,{className:U.loadingIconPlaceholder,ownerState:L})}),F=i||"",J=typeof R=="boolean"?C.jsx("span",{className:U.loadingWrapper,style:{display:"contents"},children:R&&C.jsx(NV,{className:U.loadingIndicator,ownerState:L,children:$})}):null;return C.jsxs(AV,{ownerState:L,className:vt(r.className,U.root,p,F),component:h,disabled:m||R,focusRipple:!b,focusVisibleClassName:vt(U.focusVisible,y),ref:n,type:j,id:R?A:S,...I,classes:U,children:[V,M!=="end"&&J,u,M==="end"&&J,Q]})}),DV=(t,e,n,r)=>{var a,l,u,d;const i=[n,{code:e,...r||{}}];if((l=(a=t==null?void 0:t.services)==null?void 0:a.logger)!=null&&l.forward)return t.services.logger.forward(i,"warn","react-i18next::",!0);Bl(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(d=(u=t==null?void 0:t.services)==null?void 0:u.logger)!=null&&d.warn?t.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},HR={},T1=(t,e,n,r)=>{Bl(n)&&HR[n]||(Bl(n)&&(HR[n]=new Date),DV(t,e,n,r))},oM=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},O1=(t,e,n)=>{t.loadNamespaces(e,oM(t,n))},BR=(t,e,n,r)=>{if(Bl(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return O1(t,n,r);n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,oM(t,r))},PV=(t,e,n={})=>!e.languages||!e.languages.length?(T1(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,i)=>{var a;if(((a=n.bindI18n)==null?void 0:a.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,t))return!1}}),Bl=t=>typeof t=="string",jV=t=>typeof t=="object"&&t!==null,LV=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zV={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$V=t=>zV[t],HV=t=>t.replace(LV,$V);let A1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:HV};const BV=(t={})=>{A1={...A1,...t}},FV=()=>A1;let lM;const UV=t=>{lM=t},IV=()=>lM,Rne={type:"3rdParty",init(t){BV(t.options.react),UV(t)}},cM=w.createContext();class VV{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const qV=(t,e)=>{const n=w.useRef();return w.useEffect(()=>{n.current=t},[t,e]),n.current},uM=(t,e,n,r)=>t.getFixedT(e,n,r),GV=(t,e,n,r)=>w.useCallback(uM(t,e,n,r),[t,e,n,r]),ir=(t,e={})=>{var M,k,P,j;const{i18n:n}=e,{i18n:r,defaultNS:i}=w.useContext(cM)||{},a=n||r||IV();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new VV),!a){T1(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const H=(A,$)=>Bl($)?$:jV($)&&Bl($.defaultValue)?$.defaultValue:Array.isArray(A)?A[A.length-1]:A,I=[H,{},!1];return I.t=H,I.i18n={},I.ready=!1,I}(M=a.options.react)!=null&&M.wait&&T1(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...FV(),...a.options.react,...e},{useSuspense:u,keyPrefix:d}=l;let h=i||((k=a.options)==null?void 0:k.defaultNS);h=Bl(h)?[h]:h||["translation"],(j=(P=a.reportNamespaces).addUsedNamespaces)==null||j.call(P,h);const p=(a.isInitialized||a.initializedStoreOnce)&&h.every(H=>PV(H,a,l)),m=GV(a,e.lng||null,l.nsMode==="fallback"?h:h[0],d),g=()=>m,b=()=>uM(a,e.lng||null,l.nsMode==="fallback"?h:h[0],d),[E,y]=w.useState(g);let x=h.join();e.lng&&(x=`${e.lng}${x}`);const S=qV(x),R=w.useRef(!0);w.useEffect(()=>{const{bindI18n:H,bindI18nStore:I}=l;R.current=!0,!p&&!u&&(e.lng?BR(a,e.lng,h,()=>{R.current&&y(b)}):O1(a,h,()=>{R.current&&y(b)})),p&&S&&S!==x&&R.current&&y(b);const A=()=>{R.current&&y(b)};return H&&(a==null||a.on(H,A)),I&&(a==null||a.store.on(I,A)),()=>{R.current=!1,a&&(H==null||H.split(" ").forEach($=>a.off($,A))),I&&a&&I.split(" ").forEach($=>a.store.off($,A))}},[a,x]),w.useEffect(()=>{R.current&&p&&y(g)},[a,d,p]);const O=[E,a,p];if(O.t=E,O.i18n=a,O.ready=p,p||!p&&!u)return O;throw new Promise(H=>{e.lng?BR(a,e.lng,h,()=>H()):O1(a,h,()=>H())})};function Tne({i18n:t,defaultNS:e,children:n}){const r=w.useMemo(()=>({i18n:t,defaultNS:e}),[t,e]);return w.createElement(cM.Provider,{value:r},n)}const XV="modulepreload",YV=function(t){return"/"+t},FR={},Fe=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=l(n.map(h=>{if(h=YV(h),h in FR)return;FR[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":XV,p||(g.as="script"),g.crossOrigin="",g.href=h,d&&g.setAttribute("nonce",d),document.head.appendChild(g),p)return new Promise((b,E)=>{g.addEventListener("load",b),g.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function a(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&a(u.reason);return e().catch(a)})},dM=w.createContext(),One=({children:t})=>{const[e,n]=w.useState({isOpen:!1,content:null,preventClose:!1}),r=(l,u={})=>{n({isOpen:!0,content:l,preventClose:u.preventClose||!1})},i=()=>{n({isOpen:!1,content:null})},a=l=>{n(u=>({...u,preventClose:l}))};return C.jsx(dM.Provider,{value:{modal:e,openModal:r,closeModal:i,setPreventClose:a},children:t})},KV=()=>w.useContext(dM),QV=t=>t.scrollTop;function UR(t,e){const{timeout:n,easing:r,style:i={}}=t;return{duration:i.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:i.transitionDelay}}function WV(t){return Vt("MuiPaper",t)}$t("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 ZV=t=>{const{square:e,elevation:n,variant:r,classes:i}=t,a={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Kt(a,WV,i)},JV=rt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;
902return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(on(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),$w=w.forwardRef(function(e,n){var b;const r=Qt({props:e,name:"MuiPaper"}),i=hw(),{className:a,component:l="div",elevation:u=1,square:d=!1,variant:h="elevation",...p}=r,m={...r,component:l,elevation:u,square:d,variant:h},g=ZV(m);return C.jsx(JV,{as:l,ownerState:m,className:vt(g.root,a),ref:n,...p,style:{...h==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[u],...i.vars&&{"--Paper-overlay":(b=i.vars.overlays)==null?void 0:b[u]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${cn("#fff",i1(u))}, ${cn("#fff",i1(u))})`}},...p.style}})});function eq(t){return Vt("MuiIconButton",t)}const IR=$t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),tq=t=>{const{classes:e,disabled:n,color:r,edge:i,size:a,loading:l}=t,u={root:["root",l&&"loading",n&&"disabled",r!=="default"&&`color${Ge(r)}`,i&&`edge${Ge(i)}`,`size${Ge(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Kt(u,eq,e)},nq=rt(Jg,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Ge(n.color)}`],n.edge&&e[`edge${Ge(n.edge)}`],e[`size${Ge(n.size)}`]]}})(on(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),on(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Ji()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Ji()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:cn((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${IR.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${IR.loading}`]:{color:"transparent"}}))),rq=rt("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ane=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:u="default",disabled:d=!1,disableFocusRipple:h=!1,size:p="medium",id:m,loading:g=null,loadingIndicator:b,...E}=r,y=lw(m),x=b??C.jsx(zw,{"aria-labelledby":y,color:"inherit",size:16}),S={...r,edge:i,color:u,disabled:d,disableFocusRipple:h,loading:g,loadingIndicator:x,size:p},R=tq(S);return C.jsxs(nq,{id:g?y:m,className:vt(R.root,l),centerRipple:!0,focusRipple:!h,disabled:d||g,ref:n,...E,ownerState:S,children:[typeof g=="boolean"&&C.jsx("span",{className:R.loadingWrapper,style:{display:"contents"},children:C.jsx(rq,{className:R.loadingIndicator,ownerState:S,children:g&&x})}),a]})});var li="top",es="bottom",ts="right",ci="left",Hw="auto",xh=[li,es,ts,ci],Pu="start",
vendor: 19,027 bytes, line 902
902Uf="end",iq="clippingParents",fM="viewport",pf="popper",sq="reference",VR=xh.reduce(function(t,e){return t.concat([e+"-"+Pu,e+"-"+Uf])},[]),hM=[].concat(xh,[Hw]).reduce(function(t,e){return t.concat([e,e+"-"+Pu,e+"-"+Uf])},[]),aq="beforeRead",oq="read",lq="afterRead",cq="beforeMain",uq="main",dq="afterMain",fq="beforeWrite",hq="write",pq="afterWrite",mq=[aq,oq,lq,cq,uq,dq,fq,hq,pq];function aa(t){return t?(t.nodeName||"").toLowerCase():null}function Di(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function tc(t){var e=Di(t).Element;return t instanceof e||t instanceof Element}function Zi(t){var e=Di(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Bw(t){if(typeof ShadowRoot>"u")return!1;var e=Di(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function gq(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},a=e.elements[n];!Zi(a)||!aa(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(l){var u=i[l];u===!1?a.removeAttribute(l):a.setAttribute(l,u===!0?"":u)}))})}function vq(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],a=e.attributes[r]||{},l=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),u=l.reduce(function(d,h){return d[h]="",d},{});!Zi(i)||!aa(i)||(Object.assign(i.style,u),Object.keys(a).forEach(function(d){i.removeAttribute(d)}))})}}const yq={name:"applyStyles",enabled:!0,phase:"write",fn:gq,effect:vq,requires:["computeStyles"]};function ra(t){return t.split("-")[0]}var Fl=Math.max,pg=Math.min,ju=Math.round;function k1(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pM(){return!/^((?!chrome|android).)*safari/i.test(k1())}function Lu(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,a=1;e&&Zi(t)&&(i=t.offsetWidth>0&&ju(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&ju(r.height)/t.offsetHeight||1);var l=tc(t)?Di(t):window,u=l.visualViewport,d=!pM()&&n,h=(r.left+(d&&u?u.offsetLeft:0))/i,p=(r.top+(d&&u?u.offsetTop:0))/a,m=r.width/i,g=r.height/a;return{width:m,height:g,top:p,right:h+m,bottom:p+g,left:h,x:h,y:p}}function Fw(t){var e=Lu(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function mM(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Bw(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ba(t){return Di(t).getComputedStyle(t)}function bq(t){return["table","td","th"].indexOf(aa(t))>=0}function Ko(t){return((tc(t)?t.ownerDocument:t.document)||window.document).documentElement}function cv(t){return aa(t)==="html"?t:t.assignedSlot||t.parentNode||(Bw(t)?t.host:null)||Ko(t)}function qR(t){return!Zi(t)||Ba(t).position==="fixed"?null:t.offsetParent}function xq(t){var e=/firefox/i.test(k1()),n=/Trident/i.test(k1());if(n&&Zi(t)){var r=Ba(t);if(r.position==="fixed")return null}var i=cv(t);for(Bw(i)&&(i=i.host);Zi(i)&&["html","body"].indexOf(aa(i))<0;){var a=Ba(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function wh(t){for(var e=Di(t),n=qR(t);n&&bq(n)&&Ba(n).position==="static";)n=qR(n);return n&&(aa(n)==="html"||aa(n)==="body"&&Ba(n).position==="static")?e:n||xq(t)||e}function Uw(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rf(t,e,n){return Fl(t,pg(e,n))}function wq(t,e,n){var r=Rf(t,e,n);return r>n?n:r}function gM(){return{top:0,right:0,bottom:0,left:0}}function vM(t){return Object.assign({},gM(),t)}function yM(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Sq=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,vM(typeof e!="number"?e:yM(e,xh))};function _q(t){var e,n=t.state,r=t.name,i=t.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,u=ra(n.placement),d=Uw(u),h=[ci,ts].indexOf(u)>=0,p=h?"height":"width";if(!(!a||!l)){var m=Sq(i.padding,n),g=Fw(a),b=d==="y"?li:ci,E=d==="y"?es:ts,y=n.rects.reference[p]+n.rects.reference[d]-l[d]-n.rects.popper[p],x=l[d]-n.rects.reference[d],S=wh(a),R=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,O=y/2-x/2,M=m[b],k=R-g[p]-m[E],P=R/2-g[p]/2+O,j=Rf(M,P,k),H=d;n.modifiersData[r]=(e={},e[H]=j,e.centerOffset=j-P,e)}}function Eq(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||mM(e.elements.popper,i)&&(e.elements.arrow=i))}const Cq={name:"arrow",enabled:!0,phase:"main",fn:_q,effect:Eq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zu(t){return t.split("-")[1]}var Rq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tq(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:ju(n*i)/i||0,y:ju(r*i)/i||0}}function GR(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,l=t.offsets,u=t.position,d=t.gpuAcceleration,h=t.adaptive,p=t.roundOffsets,m=t.isFixed,g=l.x,b=g===void 0?0:g,E=l.y,y=E===void 0?0:E,x=typeof p=="function"?p({x:b,y}):{x:b,y};b=x.x,y=x.y;var S=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),O=ci,M=li,k=window;if(h){var P=wh(n),j="clientHeight",H="clientWidth";if(P===Di(n)&&(P=Ko(n),Ba(P).position!=="static"&&u==="absolute"&&(j="scrollHeight",H="scrollWidth")),P=P,i===li||(i===ci||i===ts)&&a===Uf){M=es;var I=m&&P===k&&k.visualViewport?k.visualViewport.height:P[j];y-=I-r.height,y*=d?1:-1}if(i===ci||(i===li||i===es)&&a===Uf){O=ts;var A=m&&P===k&&k.visualViewport?k.visualViewport.width:P[H];b-=A-r.width,b*=d?1:-1}}var $=Object.assign({position:u},h&&Rq),L=p===!0?Tq({x:b,y},Di(n)):{x:b,y};if(b=L.x,y=L.y,d){var U;return Object.assign({},$,(U={},U[M]=R?"0":"",U[O]=S?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",U))}return Object.assign({},$,(e={},e[M]=R?y+"px":"",e[O]=S?b+"px":"",e.transform="",e))}function Oq(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,l=a===void 0?!0:a,u=n.roundOffsets,d=u===void 0?!0:u,h={placement:ra(e.placement),variation:zu(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,GR(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,GR(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Aq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Oq,data:{}};var im={passive:!0};function kq(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,a=i===void 0?!0:i,l=r.resize,u=l===void 0?!0:l,d=Di(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&h.forEach(function(p){p.addEventListener("scroll",n.update,im)}),u&&d.addEventListener("resize",n.update,im),function(){a&&h.forEach(function(p){p.removeEventListener("scroll",n.update,im)}),u&&d.removeEventListener("resize",n.update,im)}}const Mq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kq,data:{}};var Nq={left:"right",right:"left",bottom:"top",top:"bottom"};function Pm(t){return t.replace(/left|right|bottom|top/g,function(e){return Nq[e]})}var Dq={start:"end",end:"start"};function XR(t){return t.replace(/start|end/g,function(e){return Dq[e]})}function Iw(t){var e=Di(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Vw(t){return Lu(Ko(t)).left+Iw(t).scrollLeft}function Pq(t,e){var n=Di(t),r=Ko(t),i=n.visualViewport,a=r.clientWidth,l=r.clientHeight,u=0,d=0;if(i){a=i.width,l=i.height;var h=pM();(h||!h&&e==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:a,height:l,x:u+Vw(t),y:d}}function jq(t){var e,n=Ko(t),r=Iw(t),i=(e=t.ownerDocument)==null?void 0:e.body,a=Fl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Fl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Vw(t),d=-r.scrollTop;return Ba(i||n).direction==="rtl"&&(u+=Fl(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:u,y:d}}function qw(t){var e=Ba(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function bM(t){return["html","body","#document"].indexOf(aa(t))>=0?t.ownerDocument.body:Zi(t)&&qw(t)?t:bM(cv(t))}function Tf(t,e){var n;e===void 0&&(e=[]);var r=bM(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),a=Di(r),l=i?[a].concat(a.visualViewport||[],qw(r)?r:[]):r,u=e.concat(l);return i?u:u.concat(Tf(cv(l)))}function M1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Lq(t,e){var n=Lu(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function YR(t,e,n){return e===fM?M1(Pq(t,n)):tc(e)?Lq(e,n):M1(jq(Ko(t)))}function zq(t){var e=Tf(cv(t)),n=["absolute","fixed"].indexOf(Ba(t).position)>=0,r=n&&Zi(t)?wh(t):t;return tc(r)?e.filter(function(i){return tc(i)&&mM(i,r)&&aa(i)!=="body"}):[]}function $q(t,e,n,r){var i=e==="clippingParents"?zq(t):[].concat(e),a=[].concat(i,[n]),l=a[0],u=a.reduce(function(d,h){var p=YR(t,h,r);return d.top=Fl(p.top,d.top),d.right=pg(p.right,d.right),d.bottom=pg(p.bottom,d.bottom),d.left=Fl(p.left,d.left),d},YR(t,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 xM(t){var e=t.reference,n=t.element,r=t.placement,i=r?ra(r):null,a=r?zu(r):null,l=e.x+e.width/2-n.width/2,u=e.y+e.height/2-n.height/2,d;switch(i){case li:d={x:l,y:e.y-n.height};break;case es:d={x:l,y:e.y+e.height};break;case ts:d={x:e.x+e.width,y:u};break;case ci:d={x:e.x-n.width,y:u};break;default:d={x:e.x,y:e.y}}var h=i?Uw(i):null;if(h!=null){var p=h==="y"?"height":"width";switch(a){case Pu:d[h]=d[h]-(e[p]/2-n[p]/2);break;case Uf:d[h]=d[h]+(e[p]/2-n[p]/2);break}}return d}function If(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,a=n.strategy,l=a===void 0?t.strategy:a,u=n.boundary,d=u===void 0?iq:u,h=n.rootBoundary,p=h===void 0?fM:h,m=n.elementContext,g=m===void 0?pf:m,b=n.altBoundary,E=b===void 0?!1:b,y=n.padding,x=y===void 0?0:y,S=vM(typeof x!="number"?x:yM(x,xh)),R=g===pf?sq:pf,O=t.rects.popper,M=t.elements[E?R:g],k=$q(tc(M)?M:M.contextElement||Ko(t.elements.popper),d,p,l),P=Lu(t.elements.reference),j=xM({reference:P,element:O,placement:i}),H=M1(Object.assign({},O,j)),I=g===pf?H:P,A={top:k.top-I.top+S.top,bottom:I.bottom-k.bottom+S.bottom,left:k.left-I.left+S.left,right:I.right-k.right+S.right},$=t.modifiersData.offset;if(g===pf&&$){var L=$[i];Object.keys(A).forEach(function(U){var V=[ts,es].indexOf(U)>=0?1:-1,Q=[li,es].indexOf(U)>=0?"y":"x";A[U]+=L[Q]*V})}return A}function Hq(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,l=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,h=d===void 0?hM:d,p=zu(r),m=p?u?VR:VR.filter(function(E){return zu(E)===p}):xh,g=m.filter(function(E){return h.indexOf(E)>=0});g.length===0&&(g=m);var b=g.reduce(function(E,y){return E[y]=If(t,{placement:y,boundary:i,rootBoundary:a,padding:l})[ra(y)],E},{});return Object.keys(b).sort(function(E,y){return b[E]-b[y]})}function Bq(t){if(ra(t)===Hw)return[];var e=Pm(t);return[XR(t),e,XR(e)]}function Fq(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,l=n.altAxis,u=l===void 0?!0:l,d=n.fallbackPlacements,h=n.padding,p=n.boundary,m=n.rootBoundary,g=n.altBoundary,b=n.flipVariations,E=b===void 0?!0:b,y=n.allowedAutoPlacements,x=e.options.placement,S=ra(x),R=S===x,O=d||(R||!E?[Pm(x)]:Bq(x)),M=[x].concat(O).reduce(function(se,he){return se.concat(ra(he)===Hw?Hq(e,{placement:he,boundary:p,rootBoundary:m,padding:h,flipVariations:E,allowedAutoPlacements:y}):he)},[]),k=e.rects.reference,P=e.rects.popper,j=new Map,H=!0,I=M[0],A=0;A<M.length;A++){var $=M[A],L=ra($),U=zu($)===Pu,V=[li,es].indexOf(L)>=0,Q=V?"width":"height",F=If(e,{placement:$,boundary:p,rootBoundary:m,altBoundary:g,padding:h}),J=V?U?ts:ci:U?es:li;k[Q]>P[Q]&&(J=Pm(J));var ae=Pm(J),ye=[];if(a&&ye.push(F[L]<=0),u&&ye.push(F[J]<=0,F[ae]<=0),ye.every(function(se){return se})){I=$,H=!1;break}j.set($,ye)}if(H)for(var X=E?3:1,ee=function(he){var ie=M.find(function(be){var xe=j.get(be);if(xe)return xe.slice(0,he).every(function(ke){return ke})});if(ie)return I=ie,"break"},ve=X;ve>0;ve--){var le=ee(ve);if(le==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}const Uq={name:"flip",enabled:!0,phase:"main",fn:Fq,requiresIfExists:["offset"],data:{_skip:!1}};function KR(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function QR(t){return[li,ts,es,ci].some(function(e){return t[e]>=0})}function Iq(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,l=If(e,{elementContext:"reference"}),u=If(e,{altBoundary:!0}),d=KR(l,r),h=KR(u,i,a),p=QR(d),m=QR(h);e.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const Vq={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Iq};function qq(t,e,n){var r=ra(t),i=[ci,li].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,l=a[0],u=a[1];return l=l||0,u=(u||0)*i,[ci,ts].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function Gq(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=i===void 0?[0,0]:i,l=hM.reduce(function(p,m){return p[m]=qq(m,e.rects,a),p},{}),u=l[e.placement],d=u.x,h=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=l}const Xq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Gq};function Yq(t){var e=t.state,n=t.name;e.modifiersData[n]=xM({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Kq={name:"popperOffsets",enabled:!0,phase:"read",fn:Yq,data:{}};function Qq(t){return t==="x"?"y":"x"}function Wq(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,a=i===void 0?!0:i,l=n.altAxis,u=l===void 0?!1:l,d=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.padding,g=n.tether,b=g===void 0?!0:g,E=n.tetherOffset,y=E===void 0?0:E,x=If(e,{boundary:d,rootBoundary:h,padding:m,altBoundary:p}),S=ra(e.placement),R=zu(e.placement),O=!R,M=Uw(S),k=Qq(M),P=e.modifiersData.popperOffsets,j=e.rects.reference,H=e.rects.popper,I=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(P){if(a){var U,V=M==="y"?li:ci,Q=M==="y"?es:ts,F=M==="y"?"height":"width",J=P[M],ae=J+x[V],ye=J-x[Q],X=b?-H[F]/2:0,ee=R===Pu?j[F]:H[F],ve=R===Pu?-H[F]:-j[F],le=e.elements.arrow,se=b&&le?Fw(le):{width:0,height:0},he=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:gM(),ie=he[V],be=he[Q],xe=Rf(0,j[F],se[F]),ke=O?j[F]/2-X-xe-ie-A.mainAxis:ee-xe-ie-A.mainAxis,Me=O?-j[F]/2+X+xe+be+A.mainAxis:ve+xe+be+A.mainAxis,Ne=e.elements.arrow&&wh(e.elements.arrow),Te=Ne?M==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,Be=(U=$==null?void 0:$[M])!=null?U:0,nt=J+ke-Be-Te,yt=J+Me-Be,_e=Rf(b?pg(ae,nt):ae,J,b?Fl(ye,yt):ye);P[M]=_e,L[M]=_e-J}if(u){var Ae,je=M==="x"?li:ci,$e=M==="x"?es:ts,Y=P[k],G=k==="y"?"height":"width",K=Y+x[je],ue=Y-x[$e],we=[li,ci].indexOf(S)!==-1,pe=(Ae=$==null?void 0:$[k])!=null?Ae:0,De=we?K:Y-j[G]-H[G]-pe+A.altAxis,Ue=we?Y+j[G]+H[G]-pe-A.altAxis:ue,Je=b&&we?wq(De,Y,Ue):Rf(b?De:K,Y,b?Ue:ue);P[k]=Je,L[k]=Je-Y}e.modifiersData[r]=L}}const Zq={name:"preventOverflow",enabled:!0,phase:"main",fn:Wq,requiresIfExists:["offset"]};function Jq(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function eG(t){return t===Di(t)||!Zi(t)?Iw(t):Jq(t)}function tG(t){var e=t.getBoundingClientRect(),n=ju(e.width)/t.offsetWidth||1,r=ju(e.height)/t.offsetHeight||1;return n!==1||r!==1}function nG(t,e,n){n===void 0&&(n=!1);var r=Zi(e),i=Zi(e)&&tG(e),a=Ko(e),l=Lu(t,i,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((aa(e)!=="body"||qw(a))&&(u=eG(e)),Zi(e)?(d=Lu(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=Vw(a))),{x:l.left+u.scrollLeft-d.x,y:l.top+u.scrollTop-d.y,width:l.width,height:l.height}}function rG(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function i(a){n.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var d=e.get(u);d&&i(d)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||i(a)}),r}function iG(t){var e=rG(t);return mq.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function sG(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function aG(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var WR={placement:"bottom",modifiers:[],strategy:"absolute"};function ZR(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function oG(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,a=i===void 0?WR:i;return function(u,d,h){h===void 0&&(h=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},WR,a),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},m=[],g=!1,b={state:p,setOptions:function(S){var R=typeof S=="function"?S(p.options):S;y(),p.options=Object.assign({},a,p.options,R),p.scrollParents={reference:tc(u)?Tf(u):u.contextElement?Tf(u.contextElement):[],popper:Tf(d)};var O=iG(aG([].concat(r,p.options.modifiers)));return p.orderedModifiers=O.filter(function(M){return M.enabled}
vendor: 3,552 bytes, line 902
902),E(),b.update()},forceUpdate:function(){if(!g){var S=p.elements,R=S.reference,O=S.popper;if(ZR(R,O)){p.rects={reference:nG(R,wh(O),p.options.strategy==="fixed"),popper:Fw(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(A){return p.modifiersData[A.name]=Object.assign({},A.data)});for(var M=0;M<p.orderedModifiers.length;M++){if(p.reset===!0){p.reset=!1,M=-1;continue}var k=p.orderedModifiers[M],P=k.fn,j=k.options,H=j===void 0?{}:j,I=k.name;typeof P=="function"&&(p=P({state:p,options:H,name:I,instance:b})||p)}}}},update:sG(function(){return new Promise(function(x){b.forceUpdate(),x(p)})}),destroy:function(){y(),g=!0}};if(!ZR(u,d))return b;b.setOptions(h).then(function(x){!g&&h.onFirstUpdate&&h.onFirstUpdate(x)});function E(){p.orderedModifiers.forEach(function(x){var S=x.name,R=x.options,O=R===void 0?{}:R,M=x.effect;if(typeof M=="function"){var k=M({state:p,name:S,instance:b,options:O}),P=function(){};m.push(k||P)}})}function y(){m.forEach(function(x){return x()}),m=[]}return b}}var lG=[Mq,Kq,Aq,yq,Xq,Uq,Zq,Cq,Vq],cG=oG({defaultModifiers:lG});function uG(t){return typeof t=="function"?t():t}const wM=w.forwardRef(function(e,n){const{children:r,container:i,disablePortal:a=!1}=e,[l,u]=w.useState(null),d=ia(w.isValidElement(r)?uw(r):null,n);if(zf(()=>{a||u(uG(i)||document.body)},[i,a]),zf(()=>{if(l&&!a)return OC(n,l),()=>{OC(n,null)}},[n,l,a]),a){if(w.isValidElement(r)){const h={ref:d};return w.cloneElement(r,h)}return r}return l&&Fo.createPortal(r,l)});function dG(t){return Vt("MuiPopper",t)}$t("MuiPopper",["root"]);function fG(t,e){if(e==="ltr")return t;switch(t){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 t}}function N1(t){return typeof t=="function"?t():t}function hG(t){return t.nodeType!==void 0}const pG=t=>{const{classes:e}=t;return Kt({root:["root"]},dG,e)},mG={},gG=w.forwardRef(function(e,n){const{anchorEl:r,children:i,direction:a,disablePortal:l,modifiers:u,open:d,placement:h,popperOptions:p,popperRef:m,slotProps:g={},slots:b={},TransitionProps:E,ownerState:y,...x}=e,S=w.useRef(null),R=ia(S,n),O=w.useRef(null),M=ia(O,m),k=w.useRef(M);zf(()=>{k.current=M},[M]),w.useImperativeHandle(m,()=>O.current,[]);const P=fG(h,a),[j,H]=w.useState(P),[I,A]=w.useState(N1(r));w.useEffect(()=>{O.current&&O.current.forceUpdate()}),w.useEffect(()=>{r&&A(N1(r))},[r]),zf(()=>{if(!I||!d)return;const Q=ae=>{H(ae.placement)};let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ae})=>{Q(ae)}}];u!=null&&(F=F.concat(u)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const J=cG(I,S.current,{placement:P,...p,modifiers:F});return k.current(J),()=>{J.destroy(),k.current(null)}},[I,l,u,d,p,P]);const $={placement:j};E!==null&&($.TransitionProps=E);const L=pG(e),U=b.root??"div",V=Q9({elementType:U,externalSlotProps:g.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:R},ownerState:e,className:L.root});return C.jsx(U,{...V,children:typeof i=="function"?i($):i})}),vG=w.forwardRef(function(e,n){const{anchorEl:r,children:i,container:a,direction:l="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:h,open:p,placement:m="bottom",popperOptions:g=mG,popperRef:b,style:E,transition:y=!1,slotProps:x={},slots:S={},...R}=e,[O,M]=w.useState(!0),k=()=>{M(!1)},P=()=>{M(!0)};if(!d&&!p&&(!y||O))return null;let j;if(a)j=a;else if(r){const A=N1(r);j=A&&hG(A)?za(A).body:za(null).body}
902const H=!p&&d&&(!y||O)?"none":void 0,I=y?{in:p,onEnter:k,onExited:P}:void 0;return C.jsx(wM,{disablePortal:u,container:j,children:C.jsx(gG,{anchorEl:r,direction:l,disablePortal:u,modifiers:h,ref:n,open:y?!O:p,placement:m,popperOptions:g,popperRef:b,slotProps:x,slots:S,...R,style:{position:"fixed",top:0,left:0,display:H,...E},TransitionProps:I,children:i})})}),yG=rt(vG,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),kne=w.forwardRef(function(e,n){const r=pk(),i=Qt({props:e,name:"MuiPopper"}),{anchorEl:a,component:l,components:u,componentsProps:d,container:h,disablePortal:p,keepMounted:m,modifiers:g,open:b,placement:E,popperOptions:y,popperRef:x,transition:S,slots:R,slotProps:O,...M}=i,k=(R==null?void 0:R.root)??(u==null?void 0:u.Root),P={anchorEl:a,container:h,disablePortal:p,keepMounted:m,modifiers:g,open:b,placement:E,popperOptions:y,popperRef:x,transition:S,...M};return C.jsx(yG,{as:l,direction:r?"rtl":"ltr",slots:{root:k},slotProps:O??d,...P,ref:n})}),bG=hi(C.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 xG(t){return Vt("MuiAvatar",t)}$t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const wG=t=>{const{classes:e,variant:n,colorDefault:r}=t;return Kt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},xG,e)},SG=rt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],n.colorDefault&&e.colorDefault]}})(on(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),_G=rt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(t,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),EG=rt(bG,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(t,e)=>e.fallback})({width:"75%",height:"75%"});function CG({crossOrigin:t,referrerPolicy:e,src:n,srcSet:r}){const[i,a]=w.useState(!1);return w.useEffect(()=>{if(!n&&!r)return;a(!1);let l=!0;const u=new Image;return u.onload=()=>{l&&a("loaded")},u.onerror=()=>{l&&a("error")},u.crossOrigin=t,u.referrerPolicy=e,u.src=n,r&&(u.srcset=r),()=>{l=!1}},[t,e,n,r]),i}const Mne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiAvatar"}),{alt:i,children:a,className:l,component:u="div",slots:d={},slotProps:h={},imgProps:p,sizes:m,src:g,srcSet:b,variant:E="circular",...y}=r;let x=null;const S={...r,component:u,variant:E},R=CG({...p,...typeof h.img=="function"?h.img(S):h.img,src:g,srcSet:b}),O=g||b,M=O&&R!=="error";S.colorDefault=!M,delete S.ownerState;const k=wG(S),[P,j]=kn("img",{className:k.img,elementType:_G,externalForwardedProps:{slots:d,slotProps:{img:{...p,...h.img}}},additionalProps:{alt:i,src:g,srcSet:b,sizes:m},ownerState:S});return M?x=C.jsx(P,{...j}):a||a===0?x=a:O&&i?x=i[0]:x=C.jsx(EG,{ownerState:S,className:k.fallback}),C.jsx(SG,{as:u,className:vt(k.root,l),ref:n,...y,ownerState:S,children:x})}),RG={entering:{opacity:1},entered:{opacity:1}},D1=w.forwardRef(function(e,n){const r=hw(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:u,easing:d,in:h,onEnter:p,onEntered:m,onEntering:g,onExit:b,onExited:E,onExiting:y,style:x,timeout:S=i,TransitionComponent:R=Fa,...O}=e,M=w.useRef(null),k=ia(M,uw(u),n),P=V=>Q=>{if(V){const F=M.current;Q===void 0?V(F):V(F,Q)}},j=P(g),H=P((V,Q)=>{QV(V);const F=UR({style:x,timeout:S,easing:d},{mode:"enter"});V.style.webkitTransition=r.transitions.create("opacity",F),V.style.transition=r.transitions.create("opacity",F),p&&p(V,Q)}),I=P(m),A=P(y),$=P(V=>{const Q=UR({style:x,timeout:S,easing:d},{mode:"exit"});V.style.webkitTransition=r.transitions.create("opacity",Q),V.style.transition=r.transitions.create("opacity",Q),b&&b(V)}),L=P(E),U=V=>{a&&a(M.current,V)};return C.jsx(R,{appear:l,in:h,nodeRef:M,onEnter:H,onEntered:I,onEntering:j,onExit:$,onExited:L,onExiting:A,addEndListener:U,timeout:S,...O,children:(V,{ownerState:Q,...F})=>w.cloneElement(u,{style:{opacity:0,visibility:V==="exited"&&!h?"hidden":void 0,...RG[V],...x,...u.props.style},ref:k,...F})})});function TG(t){return Vt("MuiBackdrop",t)}$t("MuiBackdrop",["root","invisible"]);const OG=t=>{const{classes:e,invisible:n}=t;return Kt({root:["root",n&&"invisible"]},TG,e)},AG=rt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}
902),SM=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:u=!1,open:d,components:h={},componentsProps:p={},slotProps:m={},slots:g={},TransitionComponent:b,transitionDuration:E,...y}=r,x={...r,component:l,invisible:u},S=OG(x),R={transition:b,root:h.Root,...g},O={...p,...m},M={slots:R,slotProps:O},[k,P]=kn("root",{elementType:AG,externalForwardedProps:M,className:vt(S.root,a),ownerState:x}),[j,H]=kn("transition",{elementType:D1,externalForwardedProps:M,ownerState:x});return C.jsx(j,{in:d,timeout:E,...y,...H,children:C.jsx(k,{"aria-hidden":!0,...P,classes:S,ref:n,children:i})})}),kG=$t("MuiBox",["root"]),MG=xk(),Nne=M9({themeId:fw,defaultTheme:MG,defaultClassName:kG.root,generateClassName:ik.generate});function NG(t){return Vt("MuiCard",t)}$t("MuiCard",["root"]);const DG=t=>{const{classes:e}=t;return Kt({root:["root"]},NG,e)},PG=rt($w,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})({overflow:"hidden"}),Dne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiCard"}),{className:i,raised:a=!1,...l}=r,u={...r,raised:a},d=DG(u);return C.jsx(PG,{className:vt(d.root,i),elevation:a?8:void 0,ref:n,ownerState:u,...l})});function jG(t){return Vt("MuiCardActions",t)}$t("MuiCardActions",["root","spacing"]);const LG=t=>{const{classes:e,disableSpacing:n}=t;return Kt({root:["root",!n&&"spacing"]},jG,e)},zG=rt("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Pne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiCardActions"}),{disableSpacing:i=!1,className:a,...l}=r,u={...r,disableSpacing:i},d=LG(u);return C.jsx(zG,{className:vt(d.root,a),ownerState:u,ref:n,...l})});function $G(t){return Vt("MuiCardContent",t)}$t("MuiCardContent",["root"]);const HG=t=>{const{classes:e}=t;return Kt({root:["root"]},$G,e)},BG=rt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:16,"&:last-child":{paddingBottom:24}}),jne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiCardContent"}),{className:i,component:a="div",...l}=r,u={...r,component:a},d=HG(u);return C.jsx(BG,{as:a,className:vt(d.root,i),ownerState:u,ref:n,...l})});function FG(t){const e=za(t);return e.body===t?Zm(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Of(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function JR(t){return parseInt(Zm(t).getComputedStyle(t).paddingRight,10)||0}function UG(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function eT(t,e,n,r,i){const a=[e,n,...r];[].forEach.call(t.children,l=>{const u=!a.includes(l),d=!UG(l);u&&d&&Of(l,i)})}function Cb(t,e){let n=-1;return t.some((r,i)=>e(r)?(n=i,!0):!1),n}function IG(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(FG(r)){const l=Y9(Zm(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${JR(r)+l}px`;const u=za(r).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${JR(d)+l}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=za(r).body;else{const l=r.parentElement,u=Zm(r);a=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:l,property:u})=>{a?l.style.setProperty(u,a):l.style.removeProperty(u)})}}function VG(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class qG{constructor(){this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Of(e.modalRef,!1);const i=VG(n);eT(n,e.mount,e.modalRef,i,!0);const a=Cb(this.containers,l=>l.container===n);return a!==-1?(this.containers[a].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:i}),r)}mount(e,n){const r=Cb(this.containers,a=>a.modals.includes(e)),i=this.containers[r];i.restore||(i.restore=IG(i,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const i=Cb(this.containers,l=>l.modals.includes(e)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(
902),e.modalRef&&Of(e.modalRef,n),eT(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&Of(l.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const GG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XG(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function YG(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function KG(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||YG(t))}function QG(t){const e=[],n=[];return Array.from(t.querySelectorAll(GG)).forEach((r,i)=>{const a=XG(r);a===-1||!KG(r)||(a===0?e.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(e)}function WG(){return!0}function ZG(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=QG,isEnabled:l=WG,open:u}=t,d=w.useRef(!1),h=w.useRef(null),p=w.useRef(null),m=w.useRef(null),g=w.useRef(null),b=w.useRef(!1),E=w.useRef(null),y=ia(uw(e),E),x=w.useRef(null);w.useEffect(()=>{!u||!E.current||(b.current=!n)},[n,u]),w.useEffect(()=>{if(!u||!E.current)return;const O=za(E.current);return E.current.contains(O.activeElement)||(E.current.hasAttribute("tabIndex")||E.current.setAttribute("tabIndex","-1"),b.current&&E.current.focus()),()=>{i||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[u]),w.useEffect(()=>{if(!u||!E.current)return;const O=za(E.current),M=j=>{x.current=j,!(r||!l()||j.key!=="Tab")&&O.activeElement===E.current&&j.shiftKey&&(d.current=!0,p.current&&p.current.focus())},k=()=>{var I,A;const j=E.current;if(j===null)return;if(!O.hasFocus()||!l()||d.current){d.current=!1;return}if(j.contains(O.activeElement)||r&&O.activeElement!==h.current&&O.activeElement!==p.current)return;if(O.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!b.current)return;let H=[];if((O.activeElement===h.current||O.activeElement===p.current)&&(H=a(E.current)),H.length>0){const $=!!((I=x.current)!=null&&I.shiftKey&&((A=x.current)==null?void 0:A.key)==="Tab"),L=H[0],U=H[H.length-1];typeof L!="string"&&typeof U!="string"&&($?U.focus():L.focus())}else j.focus()};O.addEventListener("focusin",k),O.addEventListener("keydown",M,!0);const P=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),O.removeEventListener("focusin",k),O.removeEventListener("keydown",M,!0)}},[n,r,i,l,u,a]);const S=O=>{m.current===null&&(m.current=O.relatedTarget),b.current=!0,g.current=O.target;const M=e.props.onFocus;M&&M(O)},R=O=>{m.current===null&&(m.current=O.relatedTarget),b.current=!0};return C.jsxs(w.Fragment,{children:[C.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:h,"data-testid":"sentinelStart"}),w.cloneElement(e,{ref:y,onFocus:S}),C.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}function JG(t){return typeof t=="function"?t():t}function eX(t){return t?t.props.hasOwnProperty("in"):!1}const tT=()=>{},sm=new qG;function tX(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:u,onClose:d,open:h,rootRef:p}=t,m=w.useRef({}),g=w.useRef(null),b=w.useRef(null),E=ia(b,p),[y,x]=w.useState(!h),S=eX(u);let R=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(R=!1);const O=()=>za(g.current),M=()=>(m.current.modalRef=b.current,m.current.mount=g.current,m.current),k=()=>{sm.mount(M(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},P=uu(()=>{const Q=JG(e)||O().body;sm.add(M(),Q),b.current&&k()}),j=()=>sm.isTopModal(M()),H=uu(Q=>{g.current=Q,Q&&(h&&j()?k():b.current&&Of(b.current,R))}),I=w.useCallback(()=>{sm.remove(M(),R)},[R]);w.useEffect(()=>()=>{I()},[I]),w.useEffect(()=>{h?P():(!S||!i)&&I()},[h,I,S,i,P]);const A=Q=>F=>{var J;(J=Q.onKeyDown)==null||J.call(Q,F),!(F.key!=="Escape"||F.which===229||!j())&&(n||(F.stopPropagation(),d&&d(F,"escapeKeyDown")))},$=Q=>F=>{var J;(J=Q.onClick)==null||J.call(Q,F),F.target===F.currentTarget&&d&&d(F,"backdropClick")};return{getRootProps:(Q={})=>{const F=dk(t);delete F.onTransitionEnter,delete F.onTransitionExited;const J={...F,...Q};return{role:"presentation",...J,onKeyDown:A(J),ref:E}},getBackdropProps:(Q={})=>{const F=Q;return{"aria-hidden":!0,...F,onClick:$(F),open:h}},getTransitionProps:()=>{const Q=()=>{x(!1),a&&a()},F=()=>{x(!0),l&&l(),i&&I()};return{onEnter:n1(Q,(u==null?void 0:u.props.onEnter)??tT),onExited:n1(F,(u==null?void 0:u.props.onExited)??tT)}},rootRef:E,portalRef:H,isTopModal:j,exited:y,hasTransition:S}}function nX(t){return Vt("MuiModal",t)}$t("MuiModal",["root","hidden","backdrop"]);const rX=t=>{const{open:e,exited:n,classes:r}=t;return Kt({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},nX,r)},iX=rt("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(on(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),sX=rt(SM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}
902),aX=w.forwardRef(function(e,n){const r=Qt({name:"MuiModal",props:e}),{BackdropComponent:i=sX,BackdropProps:a,classes:l,className:u,closeAfterTransition:d=!1,children:h,container:p,component:m,components:g={},componentsProps:b={},disableAutoFocus:E=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:R=!1,disableScrollLock:O=!1,hideBackdrop:M=!1,keepMounted:k=!1,onBackdropClick:P,onClose:j,onTransitionEnter:H,onTransitionExited:I,open:A,slotProps:$={},slots:L={},theme:U,...V}=r,Q={...r,closeAfterTransition:d,disableAutoFocus:E,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:R,disableScrollLock:O,hideBackdrop:M,keepMounted:k},{getRootProps:F,getBackdropProps:J,getTransitionProps:ae,portalRef:ye,isTopModal:X,exited:ee,hasTransition:ve}=tX({...Q,rootRef:n}),le={...Q,exited:ee},se=rX(le),he={};if(h.props.tabIndex===void 0&&(he.tabIndex="-1"),ve){const{onEnter:Ne,onExited:Te}=ae();he.onEnter=Ne,he.onExited=Te}const ie={slots:{root:g.Root,backdrop:g.Backdrop,...L},slotProps:{...b,...$}},[be,xe]=kn("root",{ref:n,elementType:iX,externalForwardedProps:{...ie,...V,component:m},getSlotProps:F,ownerState:le,className:vt(u,se==null?void 0:se.root,!le.open&&le.exited&&(se==null?void 0:se.hidden))}),[ke,Me]=kn("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Ne=>J({...Ne,onClick:Te=>{P&&P(Te),Ne!=null&&Ne.onClick&&Ne.onClick(Te)}}),className:vt(a==null?void 0:a.className,se==null?void 0:se.backdrop),ownerState:le});return!k&&!A&&(!ve||ee)?null:C.jsx(wM,{ref:ye,container:p,disablePortal:S,children:C.jsxs(be,{...xe,children:[!M&&i?C.jsx(ke,{...Me}):null,C.jsx(ZG,{disableEnforceFocus:y,disableAutoFocus:E,disableRestoreFocus:R,isEnabled:X,open:A,children:w.cloneElement(h,he)})]})})});function oX(t){return Vt("MuiDialog",t)}const Rb=$t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lX=w.createContext({}),cX=rt(SM,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),uX=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=t,l={root:["root"],container:["container",`scroll${Ge(n)}`],paper:["paper",`paperScroll${Ge(n)}`,`paperWidth${Ge(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Kt(l,oX,e)},dX=rt(aX,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),fX=rt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${Ge(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),hX=rt($w,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${Ge(n.scroll)}`],e[`paperWidth${Ge(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(on(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Rb.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${Rb.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Rb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}
902))),Lne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiDialog"}),i=hw(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":u,"aria-modal":d=!0,BackdropComponent:h,BackdropProps:p,children:m,className:g,disableEscapeKeyDown:b=!1,fullScreen:E=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:S,onClick:R,onClose:O,open:M,PaperComponent:k=$w,PaperProps:P={},scroll:j="paper",slots:H={},slotProps:I={},TransitionComponent:A=D1,transitionDuration:$=a,TransitionProps:L,...U}=r,V={...r,disableEscapeKeyDown:b,fullScreen:E,fullWidth:y,maxWidth:x,scroll:j},Q=uX(V),F=w.useRef(),J=nt=>{F.current=nt.target===nt.currentTarget},ae=nt=>{R&&R(nt),F.current&&(F.current=null,S&&S(nt),O&&O(nt,"backdropClick"))},ye=lw(u),X=w.useMemo(()=>({titleId:ye}),[ye]),ee={transition:A,...H},ve={transition:L,paper:P,backdrop:p,...I},le={slots:ee,slotProps:ve},[se,he]=kn("root",{elementType:dX,shouldForwardComponentProp:!0,externalForwardedProps:le,ownerState:V,className:vt(Q.root,g),ref:n}),[ie,be]=kn("backdrop",{elementType:cX,shouldForwardComponentProp:!0,externalForwardedProps:le,ownerState:V}),[xe,ke]=kn("paper",{elementType:hX,shouldForwardComponentProp:!0,externalForwardedProps:le,ownerState:V,className:vt(Q.paper,P.className)}),[Me,Ne]=kn("container",{elementType:fX,externalForwardedProps:le,ownerState:V,className:vt(Q.container)}),[Te,Be]=kn("transition",{elementType:D1,externalForwardedProps:le,ownerState:V,additionalProps:{appear:!0,in:M,timeout:$,role:"presentation"}});return C.jsx(se,{closeAfterTransition:!0,slots:{backdrop:ie},slotProps:{backdrop:{transitionDuration:$,as:h,...be}},disableEscapeKeyDown:b,onClose:O,open:M,onClick:ae,...he,...U,children:C.jsx(Te,{...Be,children:C.jsx(Me,{onMouseDown:J,...Ne,children:C.jsx(xe,{as:k,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":ye,"aria-modal":d,...ke,children:C.jsx(lX.Provider,{value:X,children:m})})})})})});function pX(t){return Vt("MuiDialogContent",t)}$t("MuiDialogContent",["root","dividers"]);const mX=$t("MuiDialogTitle",["root"]),gX=t=>{const{classes:e,dividers:n}=t;return Kt({root:["root",n&&"dividers"]},pX,e)},vX=rt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(on(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${mX.root} + &`]:{paddingTop:0}}}]}))),zne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...l}=r,u={...r,dividers:a},d=gX(u);return C.jsx(vX,{className:vt(d.root,i),ownerState:u,ref:n,...l})});function yX(t){return Vt("MuiPagination",t)}$t("MuiPagination",["root","ul","outlined","text"]);function bX(t={}){const{boundaryCount:e=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:a=!1,hideNextButton:l=!1,hidePrevButton:u=!1,onChange:d,page:h,showFirstButton:p=!1,showLastButton:m=!1,siblingCount:g=1,...b}=t,[E,y]=lk({controlled:h,default:i,name:n,state:"page"}),x=(I,A)=>{h||y(A),d&&d(I,A)},S=(I,A)=>{const $=A-I+1;return Array.from({length:$},(L,U)=>I+U)},R=S(1,Math.min(e,r)),O=S(Math.max(r-e+1,e+1),r),M=Math.max(Math.min(E-g,r-e-g*2-1),e+2),k=Math.min(Math.max(E+g,e+g*2+2),r-e-1),P=[...p?["first"]:[],...u?[]:["previous"],...R,...M>e+2?["start-ellipsis"]:e+1<r-e?[e+1]:[],...S(M,k),...k<r-e-1?["end-ellipsis"]:r-e>e?[r-e]:[],...O,...l?[]:["next"],...m?["last"]:[]],j=I=>{switch(I){case"first":return 1;case"previous":return E-1;case"next":return E+1;case"last":return r;default:return null}};return{items:P.map(I=>typeof I=="number"?{onClick:A=>{x(A,I)},type:"page",page:I,selected:I===E,disabled:a,"aria-current":I===E?"page":void 0}:{onClick:A=>{x(A,j(I))},type:I,page:j(I),selected:!1,disabled:a||!I.includes("ellipsis")&&(I==="next"||I==="last"?E>=r:E<=1)}),...b}}function xX(t){return Vt("MuiPaginationItem",t)}const Fr=$t("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),wX=hi(C.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),SX=hi(C.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),_X=hi(C.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),EX=hi(C.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),_M=(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${Ge(n.size)}`],n.variant==="text"&&e[`text${Ge(n.color)}`],n.variant==="outlined"&&e[`outlined${Ge(n.color)}`],n.shape==="rounded"&&e.rounded,n.type==="page"&&e.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&e.ellipsis,(n.type==="previous"||n.type==="next")&&e.previousNext,(n.type==="first"||n.type==="last")&&e.firstLast]},CX=t=>{const{classes:e,color:n,disabled:r,selected:i,size:a,shape:l,type:u,variant:d}=t,h={root:["root",`size${Ge(a)}`,d,l,n!=="standard"&&`color${Ge(n)}`,n!=="standard"&&`${d}${Ge(n)}`,r&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return Kt(h,xX,e)},RX=rt("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:_M})(on(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${Fr.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}}]}))),TX=rt(Jg,{name:"MuiPaginationItem",slot:"Root",overridesResolver:_M})(on(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${Fr.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Fr.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fr.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:cn(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Fr.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:cn(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${Fr.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"outlined"},style:{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroun
902dChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Fr.selected}`]:{[`&.${Fr.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Fr.selected}`]:{[`&.${Fr.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}},...Object.entries(t.palette).filter(Ji(["dark","contrastText"])).map(([e])=>({props:{variant:"text",color:e},style:{[`&.${Fr.selected}`]:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}},[`&.${Fr.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark},[`&.${Fr.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}})),...Object.entries(t.palette).filter(Ji(["light"])).map(([e])=>({props:{variant:"outlined",color:e},style:{[`&.${Fr.selected}`]:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.5)`:cn(t.palette[e].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:cn(t.palette[e].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:cn(t.palette[e].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fr.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:cn(t.palette[e].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}}}}))]}))),OX=rt("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})(on(({theme:t})=>({fontSize:t.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:t.typography.pxToRem(22)}}]}))),AX=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiPaginationItem"}),{className:i,color:a="standard",component:l,components:u={},disabled:d=!1,page:h,selected:p=!1,shape:m="circular",size:g="medium",slots:b={},slotProps:E={},type:y="page",variant:x="text",...S}=r,R={...r,color:a,disabled:d,selected:p,shape:m,size:g,type:y,variant:x},O=pk(),M=CX(R),k={slots:{previous:b.previous??u.previous,next:b.next??u.next,first:b.first??u.first,last:b.last??u.last},slotProps:E},[P,j]=kn("previous",{elementType:_X,externalForwardedProps:k,ownerState:R}),[H,I]=kn("next",{elementType:EX,externalForwardedProps:k,ownerState:R}),[A,$]=kn("first",{elementType:wX,externalForwardedProps:k,ownerState:R}),[L,U]=kn("last",{elementType:SX,externalForwardedProps:k,ownerState:R}),V=O?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,Q={previous:P,next:H,first:A,last:L}[V],F={previous:j,next:I,first:$,last:U}[V];return y==="start-ellipsis"||y==="end-ellipsis"?C.jsx(RX,{ref:n,ownerState:R,className:vt(M.root,i),children:"…"}):C.jsxs(TX,{ref:n,ownerState:R,component:l,disabled:d,className:vt(M.root,i),...S,children:[y==="page"&&h,Q?C.jsx(OX,{...F,className:M.icon,as:Q}):null]})}),kX=t=>{const{classes:e,variant:n}=t;return Kt({root:["root",n],ul:["ul"]},yX,e)},MX=rt("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant]]}})({}),NX=rt("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function DX(t,e,n){return t==="page"?`${n?"":"Go to "}page ${e}`:`Go to ${t} page`}const $ne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiPagination"}),{boundaryCount:i=1,className:a,color:l="standard",count:u=1,defaultPage:d=1,disabled:h=!1,getItemAriaLabel:p=DX,hideNextButton:m=!1,hidePrevButton:g=!1,onChange:b,page:E,renderItem:y=A=>C.jsx(AX,{...A}),shape:x="circular",showFirstButton:S=!1,showLastButton:R=!1,siblingCount:O=1,size:M="medium",variant:k="text",...P}=r,{items:j}=bX({...r,componentName:"Pagination"}),H={...r,boundaryCount:i,color:l,count:u,defaultPage:d,disabled:h,getItemAriaLabel:p,hideNextButton:m,hidePrevButton:g,renderItem:y,shape:x,showFirstButton:S,showLastButton:R,siblingCount:O,size:M,variant:k},I=kX(H);return C.jsx(MX,{"aria-label":"pagination navigation",className:vt(I.root,a),ownerState:H,ref:n,...P,children:C.jsx(NX,{className:I.ul,ownerState:H,children:j.map((A,$)=>C.jsx("li",{children:y({...A,color:l,"aria-label":p(A.type,A.page,A.selected),shape:x,size:M,variant:k})},$))})})}),PX=hi(C.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"),jX=hi(C.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"),LX=rt("span",{shouldForwardProp:Qu})({position:"relative",display:"flex"}),zX=rt(PX)({transform:"scale(1)"}),$X=rt(jX)(on(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function EM(t){const{checked:e=!1,classes:n={},fontSize:r}=t,i={...t,checked:e};return C.jsxs(LX,{className:n.root,ownerState:i,children:[C.jsx(zX,{fontSize:r,className:n.background,ownerState:i}),C.jsx($X,{fontSize:r,className:n.dot,ownerState:i})]})}const HX=w.createContext(void 0);function BX(){return w.useContext(HX)}function FX(t){return Vt("MuiRadio",t)}const nT=$t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),UX=t=>{const{classes:e,color:n,size:r}=t,i={root:["root",`color${Ge(n)}`,r!=="medium"&&`size${Ge(r)}`]};return{...e,...Kt(i,FX,e)}},IX=rt(yw,{shouldForwardProp:t=>Qu(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size!=="medium"&&e[`size${Ge(n.size)}`],e[`color${Ge(n.color)}`]]}})(on(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${nT.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Ji()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainCh
902annel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Ji()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${nT.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function VX(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const qX=C.jsx(EM,{checked:!0}),GX=C.jsx(EM,{}),Hne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=qX,color:l="primary",icon:u=GX,name:d,onChange:h,size:p="medium",className:m,disabled:g,disableRipple:b=!1,slots:E={},slotProps:y={},inputProps:x,...S}=r,R=pw();let O=g;R&&typeof O>"u"&&(O=R.disabled),O??(O=!1);const M={...r,disabled:O,disableRipple:b,color:l,size:p},k=UX(M),P=BX();let j=i;const H=n1(h,P&&P.onChange);let I=d;P&&(typeof j>"u"&&(j=VX(P.value,r.value)),typeof I>"u"&&(I=P.name));const A=y.input??x,[$,L]=kn("root",{ref:n,elementType:IX,className:vt(k.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:E,slotProps:y,...S},getSlotProps:U=>({...U,onChange:(V,...Q)=>{var F;(F=U.onChange)==null||F.call(U,V,...Q),H(V,...Q)}}),ownerState:M,additionalProps:{type:"radio",icon:w.cloneElement(u,{fontSize:u.props.fontSize??p}),checkedIcon:w.cloneElement(a,{fontSize:a.props.fontSize??p}),disabled:O,name:I,checked:j,slots:E,slotProps:{input:typeof A=="function"?A(M):A}}});return C.jsx($,{...L,classes:k})}),Bne=hH({createStyledComponent:rt("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>Qt({props:t,name:"MuiStack"})});function XX(t){return Vt("MuiSwitch",t)}const Ur=$t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),YX=t=>{const{classes:e,edge:n,size:r,color:i,checked:a,disabled:l}=t,u={root:["root",n&&`edge${Ge(n)}`,`size${Ge(r)}`],switchBase:["switchBase",`color${Ge(i)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=Kt(u,XX,e);return{...e,...d}},KX=rt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${Ge(n.edge)}`],e[`size${Ge(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,[`& .${Ur.thumb}`]:{width:16,height:16},[`& .${Ur.switchBase}`]:{padding:4,[`&.${Ur.checked}`]:{transform:"translateX(16px)"}}}}]}),QX=rt(yw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Ur.input}`]:e.input},n.color!=="default"&&e[`color${Ge(n.color)}`]]}})(on(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Ur.checked}`]:{transform:"translateX(20px)"},[`&.${Ur.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Ur.checked} + .${Ur.track}`]:{opacity:.5},[`&.${Ur.disabled} + .${Ur.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Ur.input}`]:{left:"-100%",width:"300%"}})),on(({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(Ji(["light"])).map(([e])=>({props:{color:e},style:{[`&.${Ur.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainCh
902annel} / ${t.vars.palette.action.hoverOpacity})`:cn(t.palette[e].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ur.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?fh(t.palette[e].main,.62):dh(t.palette[e].main,.55)}`}},[`&.${Ur.checked} + .${Ur.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),WX=rt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(on(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),ZX=rt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(on(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),JX=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiSwitch"}),{className:i,color:a="primary",edge:l=!1,size:u="medium",sx:d,slots:h={},slotProps:p={},...m}=r,g={...r,color:a,edge:l,size:u},b=YX(g),E={slots:h,slotProps:p},[y,x]=kn("root",{className:vt(b.root,i),elementType:KX,externalForwardedProps:E,ownerState:g,additionalProps:{sx:d}}),[S,R]=kn("thumb",{className:b.thumb,elementType:ZX,externalForwardedProps:E,ownerState:g}),O=C.jsx(S,{...R}),[M,k]=kn("track",{className:b.track,elementType:WX,externalForwardedProps:E,ownerState:g});return C.jsxs(y,{...x,children:[C.jsx(QX,{type:"checkbox",icon:O,checkedIcon:O,ref:n,ownerState:g,...m,classes:{...b,root:b.switchBase},slots:{...h.switchBase&&{root:h.switchBase},...h.input&&{input:h.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(g):p.switchBase},...p.input&&{input:typeof p.input=="function"?p.input(g):p.input}}}),C.jsx(M,{...k})]})}),CM=w.createContext();function eY(t){return Vt("MuiTable",t)}$t("MuiTable",["root","stickyHeader"]);const tY=t=>{const{classes:e,stickyHeader:n}=t;return Kt({root:["root",n&&"stickyHeader"]},eY,e)},nY=rt("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.stickyHeader&&e.stickyHeader]}})(on(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),rT="table",Fne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiTable"}),{className:i,component:a=rT,padding:l="normal",size:u="medium",stickyHeader:d=!1,...h}=r,p={...r,component:a,padding:l,size:u,stickyHeader:d},m=tY(p),g=w.useMemo(()=>({padding:l,size:u,stickyHeader:d}),[l,u,d]);return C.jsx(CM.Provider,{value:g,children:C.jsx(nY,{as:a,role:a===rT?null:"table",ref:n,className:vt(m.root,i),ownerState:p,...h})})}),Gw=w.createContext();function rY(t){return Vt("MuiTableBody",t)}$t("MuiTableBody",["root"]);const iY=t=>{const{classes:e}=t;return Kt({root:["root"]},rY,e)},sY=rt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),aY={variant:"body"},iT="tbody",Une=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiTableBody"}),{className:i,component:a=iT,...l}=r,u={...r,component:a},d=iY(u);return C.jsx(Gw.Provider,{value:aY,children:C.jsx(sY,{className:vt(d.root,i),as:a,ref:n,role:a===iT?null:"rowgroup",ownerState:u,...l})})});function oY(t){return Vt("MuiTableCell",t)}const lY=$t("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),cY=t=>{const{classes:e,variant:n,align:r,padding:i,size:a,stickyHeader:l}=t,u={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${Ge(r)}`,i!=="normal"&&`padding${Ge(i)}`,`size${Ge(a)}`]};return Kt(u,oY,e)},uY=rt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${Ge(n.size)}`],n.padding!=="normal"&&e[`padding${Ge(n.padding)}`],n.align!=="inherit"&&e[`align${Ge(n.align)}`],n.stickyHeader&&e.stickyHeader]}})(on(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid
903    ${t.palette.mode==="light"?fh(cn(t.palette.divider,1),.88):dh(cn(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${lY.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}
903))),Ine=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiTableCell"}),{align:i="inherit",className:a,component:l,padding:u,scope:d,size:h,sortDirection:p,variant:m,...g}=r,b=w.useContext(CM),E=w.useContext(Gw),y=E&&E.variant==="head";let x;l?x=l:x=y?"th":"td";let S=d;x==="td"?S=void 0:!S&&y&&(S="col");const R=m||E&&E.variant,O={...r,align:i,component:x,padding:u||(b&&b.padding?b.padding:"normal"),size:h||(b&&b.size?b.size:"medium"),sortDirection:p,stickyHeader:R==="head"&&b&&b.stickyHeader,variant:R},M=cY(O);let k=null;return p&&(k=p==="asc"?"ascending":"descending"),C.jsx(uY,{as:x,ref:n,className:vt(M.root,a),"aria-sort":k,scope:S,ownerState:O,...g})});function dY(t){return Vt("MuiTableContainer",t)}$t("MuiTableContainer",["root"]);const fY=t=>{const{classes:e}=t;return Kt({root:["root"]},dY,e)},hY=rt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),Vne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiTableContainer"}),{className:i,component:a="div",...l}=r,u={...r,component:a},d=fY(u);return C.jsx(hY,{ref:n,as:a,className:vt(d.root,i),ownerState:u,...l})});function pY(t){return Vt("MuiTableRow",t)}const sT=$t("MuiTableRow",["root","selected","hover","head","footer"]),mY=t=>{const{classes:e,selected:n,hover:r,head:i,footer:a}=t;return Kt({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},pY,e)},gY=rt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.head&&e.head,n.footer&&e.footer]}})(on(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${sT.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${sT.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:cn(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:cn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),aT="tr",qne=w.forwardRef(function(e,n){const r=Qt({props:e,name:"MuiTableRow"}),{className:i,component:a=aT,hover:l=!1,selected:u=!1,...d}=r,h=w.useContext(Gw),p={...r,component:a,hover:l,selected:u,head:h&&h.variant==="head",footer:h&&h.variant==="footer"},m=mY(p);return C.jsx(gY,{as:a,ref:n,className:vt(m.root,i),role:a===aT?null:"row",ownerState:p,...d})}),Ti=({placeholder:t="Select an option",options:e=[],value:n="",onValueChange:r,fullWidth:i=!0,size:a="small",className:l="",error:u,helperText:d,disabled:h=!1,renderOption:p,renderValue:m,id:g})=>{const b=()=>a==="small"?"h-[40px] px-2 text-sm":a==="xs"?"h-[34px] px-2 text-sm":a==="large"?"h-[50px] px-3 text-base":"px-3 text-sm",E=()=>a==="small"?"h-8 text-sm":a==="xs"?"h-[34px] px-2 text-sm":a==="large"?"h-10 text-base":"h-10 text-sm";console.log("SelectRadix rendering",{value:n,options:e});const y=e.find(x=>x.value===n);return C.jsxs("div",{className:`${l} ${i?"w-full":""}`,children:[C.jsxs(lV,{value:n||"",onValueChange:r,disabled:h,children:[C.jsxs(cV,{id:g,className:`
904            inline-flex items-center justify-between w-full rounded-md border
905            ${b()}
906            ${h?"bg-gray-50 cursor-not-allowed":"bg-white cursor-pointer"}
907            ${u?"border-red-500":"border-gray-300"}
908            ${n?"text-gray-700":"text-gray-400"}
909            outline-none
910          `,children:[C.jsx(uV,{placeholder:t,children:m&&y?m(y.value):y==null?void 0:y.label}),C.jsx(dV,{children:C.jsx(YL,{size:16,className:"text-gray-400"})})]}),C.jsx(fV,{children:C.jsx(hV,{className:`
911              overflow-hidden bg-white rounded-md border border-gray-300 shadow-lg
912              z-[9999] max-h-[300px] min-w-[var(--radix-select-trigger-width)]
913              data-[side=top]:animate-slideDownAndFade
914              data-[side=bottom]:animate-slideUpAndFade
915            `,position:"popper",sideOffset:5,children:C.jsx(pV,{className:"p-1",children:e.length>0?e.map((x,S)=>C.jsxs(jR,{value:x.value,id:`unit-${S}`,className:`
916                      ${E()}
917                      text-gray-700 rounded-sm flex items-center pl-9 pr-3
918                      relative select-none cursor-pointer outline-none
919                      hover:bg-gray-100 focus:bg-gray-100
920                      data-[highlighted]:bg-gray-100
921                      transition-colors duration-150
922                    `,children:[C.jsx(mV,{className:"absolute left-2 flex items-center text-blue-500",children:C.jsx(GL,{size:14})}),C.jsx(LR,{children:p?p(x):x.label})]},x.value||`item-${S}`)):C.jsx(jR,{value:"no-options",disabled:!0,className:"text-sm text-gray-400 py-2 px-3 cursor-not-allowed",children:C.jsx(LR,{children:"No options available"})})})})})]}),d&&C.jsx("div",{className:`text-xs mt-1 ml-0.5 ${u?"text-red-500":"text-gray-500"}`,children:d})]})};var Sh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nc=typeof window>"u"||"Deno"in globalThis;function ii(){}function vY(t,e){return typeof t=="function"?t(e):t}function P1(t){return typeof t=="number"&&t>=0&&t!==1/0}function RM(t,e){return Math.max(t+(e||0)-Date.now(),0)}function pu(t,e){return typeof t=="function"?t(e):t}function bs(t,e){return typeof t=="function"?t(e):t}function oT(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:l,stale:u}=t;if(l){if(r){if(e.queryHash!==Xw(l,e.options))return!1}else if(!qf(e.queryKey,l))return!1}if(n!=="all"){const d=e.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&e.isStale()!==u||i&&i!==e.state.fetchStatus||a&&!a(e))}function lT(t,e){const{exact:n,status:r,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;
vendor: 33,740 bytes, line 922
922if(n){if(Vf(e.options.mutationKey)!==Vf(a))return!1}else if(!qf(e.options.mutationKey,a))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function Xw(t,e){return((e==null?void 0:e.queryKeyHashFn)||Vf)(t)}function Vf(t){return JSON.stringify(t,(e,n)=>L1(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function qf(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>qf(t[n],e[n])):!1}function TM(t,e){if(t===e)return t;const n=cT(t)&&cT(e);if(n||L1(t)&&L1(e)){const r=n?t:Object.keys(t),i=r.length,a=n?e:Object.keys(e),l=a.length,u=n?[]:{};let d=0;for(let h=0;h<l;h++){const p=n?h:a[h];(!n&&r.includes(p)||n)&&t[p]===void 0&&e[p]===void 0?(u[p]=void 0,d++):(u[p]=TM(t[p],e[p]),u[p]===t[p]&&t[p]!==void 0&&d++)}return i===l&&d===i?t:u}return e}function j1(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function cT(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function L1(t){if(!uT(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!uT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function uT(t){return Object.prototype.toString.call(t)==="[object Object]"}function yY(t){return new Promise(e=>{setTimeout(e,t)})}function z1(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?TM(t,e):e}function bY(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function xY(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Yw=Symbol();function OM(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Yw?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function wY(t,e){return typeof t=="function"?t(...e):!!t}var kl,Oo,yu,bO,SY=(bO=class extends Sh{constructor(){super();pt(this,kl);pt(this,Oo);pt(this,yu);Ke(this,yu,e=>{if(!nc&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){re(this,Oo)||this.setEventListener(re(this,yu))}onUnsubscribe(){var e;this.hasListeners()||((e=re(this,Oo))==null||e.call(this),Ke(this,Oo,void 0))}setEventListener(e){var n;Ke(this,yu,e),(n=re(this,Oo))==null||n.call(this),Ke(this,Oo,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){re(this,kl)!==e&&(Ke(this,kl,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof re(this,kl)=="boolean"?re(this,kl):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},kl=new WeakMap,Oo=new WeakMap,yu=new WeakMap,bO),Kw=new SY,bu,Ao,xu,xO,_Y=(xO=class extends Sh{constructor(){super();pt(this,bu,!0);pt(this,Ao);pt(this,xu);Ke(this,xu,e=>{if(!nc&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){re(this,Ao)||this.setEventListener(re(this,xu))}onUnsubscribe(){var e;this.hasListeners()||((e=re(this,Ao))==null||e.call(this),Ke(this,Ao,void 0))}setEventListener(e){var n;Ke(this,xu,e),(n=re(this,Ao))==null||n.call(this),Ke(this,Ao,e(this.setOnline.bind(this)))}setOnline(e){re(this,bu)!==e&&(Ke(this,bu,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return re(this,bu)}},bu=new WeakMap,Ao=new WeakMap,xu=new WeakMap,xO),mg=new _Y;function $1(){let t,e;const n=new Promise((i,a)=>{t=i,e=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}function EY(t){return Math.min(1e3*2**t,3e4)}function AM(t){return(t??"online")==="online"?mg.isOnline():!0}var kM=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Tb(t){return t instanceof kM}function MM(t){let e=!1,n=0,r=!1,i;const a=$1(),l=y=>{var x;r||(g(new kM(y)),(x=t.abort)==null||x.call(t))},u=()=>{e=!0},d=()=>{e=!1},h=()=>Kw.isFocused()&&(t.networkMode==="always"||mg.isOnline())&&t.canRun(),p=()=>AM(t.networkMode)&&t.canRun(),m=y=>{var x;r||(r=!0,(x=t.onSuccess)==null||x.call(t,y),i==null||i(),a.resolve(y))},g=y=>{var x;r||(r=!0,(x=t.onError)==null||x.call(t,y),i==null||i(),a.reject(y))},b=()=>new Promise(y=>{var x;i=S=>{(r||h())&&y(S)},(x=t.onPause)==null||x.call(t)}).then(()=>{var y;i=void 0,r||(y=t.onContinue)==null||y.call(t)}),E=()=>{if(r)return;let y;const x=n===0?t.initialPromise:void 0;try{y=x??t.fn()}catch(S){y=Promise.reject(S)}Promise.resolve(y).then(m).catch(S=>{var P;if(r)return;const R=t.retry??(nc?0:3),O=t.retryDelay??EY,M=typeof O=="function"?O(n,S):O,k=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,S);if(e||!k){g(S);return}n++,(P=t.onFail)==null||P.call(t,n,S),yY(M).then(()=>h()?void 0:b()).then(()=>{e?g(S):E()})})};return{promise:a,cancel:l,continue:()=>(i==null||i(),a),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?E():b().then(E),a)}}var CY=t=>setTimeout(t,0);function RY(){let t=[],e=0,n=u=>{u()},r=u=>{u()},i=CY;const a=u=>{e?t.push(u):i(()=>{n(u)})},l=()=>{const u=t;t=[],u.length&&i(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;e++;try{d=u()}finally{e--,e||l()}return d},batchCalls:u=>(...d)=>{a(()=>{u(...d)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var yr=RY(),Ml,wO,NM=(wO=class{constructor(){pt(this,Ml)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&Ke(this,Ml,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(nc?1/0:5*60*1e3))}clearGcTimeout(){re(this,Ml)&&(clearTimeout(re(this,Ml)),Ke(this,Ml,void 0))}},Ml=new WeakMap,wO),wu,Su,Xi,Nl,Mr,eh,Dl,gs,Ma,SO,TY=(SO=class extends NM{constructor(e){super();pt(this,gs);pt(this,wu);pt(this,Su);pt(this,Xi);pt(this,Nl);pt(this,Mr);pt(this,eh);pt(this,Dl);Ke(this,Dl,!1),Ke(this,eh,e.defaultOptions),this.setOptions(e.options),this.observers=[],Ke(this,Nl,e.client),Ke(this,Xi,re(this,Nl).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Ke(this,wu,OY(this.options)),this.state=e.state??re(this,wu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=re(this,Mr))==null?void 0:e.promise}setOptions(e){this.options={...re(this,eh),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&re(this,Xi).remove(this)}setData(e,n){const r=z1(this.state.data,e,this.options);return Tt(this,gs,Ma).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Tt(this,gs,Ma).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=re(this,Mr))==null?void 0:r.promise;return(i=re(this,Mr))==null||i.cancel(e),n?n.then(ii).catch(ii):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(re(this,wu))}isActive(){return this.observers.some(e=>bs(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!RM(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=re(this,Mr))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=re(this,Mr))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),re(this,Xi).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(re(this,Mr)&&(re(this,Dl)?re(this,Mr).cancel({revert:!0}):re(this,Mr).cancelRetry()),this.scheduleGc()),re(this,Xi).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Tt(this,gs,Ma).call(this,{type:"invalidate"})}fetch(e,n){var d,h,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(re(this,Mr))return re(this,Mr).continueRetry(),re(this,Mr).promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(Ke(this,Dl,!0),r.signal)})},a=()=>{const m=OM(this.options,n),g={client:re(this,Nl),queryKey:this.queryKey,meta:this.meta};return i(g),Ke(this,Dl,!1),this.options.persister?this.options.persister(m,g,this):m(g)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:re(this,Nl),state:this.state,fetchFn:a};i(l),(d=this.options.behavior)==null||d.onFetch(l,this),Ke(this,Su,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=l.fetchOptions)==null?void 0:h.meta))&&Tt(this,gs,Ma).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta});const u=m=>{var g,b,E,y;Tb(m)&&m.silent||Tt(this,gs,Ma).call(this,{type:"error",error:m}),Tb(m)||((b=(g=re(this,Xi).config).onError)==null||b.call(g,m,this),(y=(E=re(this,Xi).config).onSettled)==null||y.call(E,this.state.data,m,this)),this.scheduleGc()};return Ke(this,Mr,MM({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,b,E,y;if(m===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(x){u(x);return}(b=(g=re(this,Xi).config).onSuccess)==null||b.call(g,m,this),(y=(E=re(this,Xi).config).onSettled)==null||y.call(E,m,this.state.error,this),this.scheduleGc()},onError:u,onFail:(m,g)=>{Tt(this,gs,Ma).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{Tt(this,gs,Ma).call(this,{type:"pause"})},onContinue:()=>{Tt(this,gs,Ma).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),re(this,Mr).start()}},wu=new WeakMap,Su=new WeakMap,Xi=new WeakMap,Nl=new WeakMap,Mr=new WeakMap,eh=new WeakMap,Dl=new WeakMap,gs=new WeakSet,Ma=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...DM(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Tb(i)&&i.revert&&re(this,Su)?{...re(this,Su),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),yr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),re(this,Xi).notify({query:this,type:"updated",action:e})})},SO);function DM(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:AM(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function OY(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Vs,_O,AY=(_O=class extends Sh{constructor(e={}){super();pt(this,Vs);this.config=e,Ke(this,Vs,new Map)}build(e,n,r){const i=n.queryKey,a=n.queryHash??Xw(i,n);let l=this.get(a);return l||(l=new TY({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){re(this,Vs).has(e.queryHash)||(re(this,Vs).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=re(this,Vs).get(e.queryHash);n&&(e.destroy(),n===e&&re(this,Vs).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return re(this,Vs).get(e)}getAll(){return[...re(this,Vs).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>oT(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>oT(e,r)):n}notify(e){yr.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){yr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Vs=new WeakMap,_O),qs,Ir,Pl,Gs,Eo,EO,kY=(EO=class extends NM{constructor(e){super();pt(this,Gs);pt(this,qs);pt(this,Ir);pt(this,Pl);this.mutationId=e.mutationId,Ke(this,Ir,e.mutationCache),Ke(this,qs,[]),this.state=e.state||MY(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){re(this,qs).includes(e)||(re(this,qs).push(e),this.clearGcTimeout(),re(this,Ir).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Ke(this,qs,re(this,qs).filter(n=>n!==e)),this.scheduleGc(),re(this,Ir).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){re(this,qs).length||(this.state.status==="pending"?this.scheduleGc():re(this,Ir).remove(this))}continue(){var e;return((e=re(this,Pl))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var a,l,u,d,h,p,m,g,b,E,y,x,S,R,O,M,k,P,j,H;const n=()=>{Tt(this,Gs,Eo).call(this,{type:"continue"})};Ke(this,Pl,MM({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(I,A)=>{Tt(this,Gs,Eo).call(this,{type:"failed",failureCount:I,error:A})},onPause:()=>{Tt(this,Gs,Eo).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>re(this,Ir).canRun(this)}));const r=this.state.status==="pending",i=!re(this,Pl).canStart();try{if(r)n();else{Tt(this,Gs,Eo).call(this,{type:"pending",variables:e,isPaused:i}),await((l=(a=re(this,Ir).config).onMutate)==null?void 0:l.call(a,e,this));const A=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e));A!==this.state.context&&Tt(this,Gs,Eo).call(this,{type:"pending",context:A,variables:e,isPaused:i})}const I=await re(this,Pl).start();return await((p=(h=re(this,Ir).config).onSuccess)==null?void 0:p.call(h,I,e,this.state.context,this)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,I,e,this.state.context)),await((E=(b=re(this,Ir).config).onSettled)==null?void 0:E.call(b,I,null,this.state.variables,this.state.context,this)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,I,null,e,this.state.context)),Tt(this,Gs,Eo).call(this,{type:"success",data:I}),I}catch(I){try{throw await((R=(S=re(this,Ir).config).onError)==null?void 0:R.call(S,I,e,this.state.context,this)),await((M=(O=this.options).onError)==null?void 0:M.call(O,I,e,this.state.context)),await((P=(k=re(this,Ir).config).onSettled)==null?void 0:P.call(k,void 0,I,this.state.variables,this.state.context,this)),await((H=(j=this.options).onSettled)==null?void 0:H.call(j,void 0,I,e,this.state.context)),I}finally{Tt(this,Gs,Eo).call(this,{type:"error",error:I})}}finally{re(this,Ir).runNext(this)}}},qs=new WeakMap,Ir=new WeakMap,Pl=new WeakMap,Gs=new WeakSet,Eo=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),yr.batch(()=>{re(this,qs).forEach(r=>{r.onMutationUpdate(e)}),re(this,Ir).notify({mutation:this,type:"updated",action:e})})},EO);function MY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Na,vs,th,CO,NY=(CO=class extends Sh{constructor(e={}){super();pt(this,Na);pt(this,vs);pt(this,th);this.config=e,Ke(this,Na,new Set),Ke(this,vs,new Map),Ke(this,th,0)}build(e,n,r){const i=new kY({mutationCache:this,mutationId:++Vp(this,th)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){re(this,Na).add(e);const n=am(e);if(typeof n=="string"){const r=re(this,vs).get(n);r?r.push(e):re(this,vs).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(re(this,Na).delete(e)){const n=am(e);if(typeof n=="string"){const r=re(this,vs).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&re(this,vs).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=am(e);if(typeof n=="string"){const r=re(this,vs).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=am(e);if(typeof n=="string"){const i=(r=re(this,vs).get(n))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yr.batch(()=>{re(this,Na).forEach(e=>{this.notify({type:"removed",mutation:e})}),re(this,Na).clear(),re(this,vs).clear()})}getAll(){return Array.from(re(this,Na))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>lT(n,r))}findAll(e={}){return this.getAll().filter(n=>lT(e,n))}notify(e){yr.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return yr.batch(()=>Promise.all(e.map(n=>n.continue().catch(ii))))}},Na=new WeakMap,vs=new WeakMap,th=new WeakMap,CO);function am(t){var e;return(e=t.options.scope)==null?void 0:e.id}function dT(t){return{onFetch:(e,n)=>{var p,m,g,b,E;const r=e.options,i=(g=(m=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,a=((b=e.state.data)==null?void 0:b.pages)||[],l=((E=e.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let y=!1;const x=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(e.signal.aborted?y=!0:e.signal.addEventListener("abort",()=>{y=!0}),e.signal)})},S=OM(e.options,e.fetchOptions),R=async(O,M,k)=>{if(y)return Promise.reject();if(M==null&&O.pages.length)return Promise.resolve(O);const P={client:e.client,queryKey:e.queryKey,pageParam:M,direction:k?"backward":"forward",meta:e.options.meta};x(P);const j=await S(P),{maxPages:H}=e.options,I=k?xY:bY;return{pages:I(O.pages,j,H),pageParams:I(O.pageParams,M,H)}};if(i&&a.length){const O=i==="backward",M=O?DY:fT,k={pages:a,pageParams:l},P=M(r,k);u=await R(k,P,O)}else{const O=t??a.length;do{const M=d===0?l[0]??r.initialPageParam:fT(r,u);if(d>0&&M==null)break;u=await R(u,M),d++}while(d<O)}return u};e.options.persister?e.fetchFn=()=>{var y,x;return(x=(y=e.options).persister)==null?void 0:x.call(y,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=h}}}function fT(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function DY(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var An,ko,Mo,_u,Eu,No,Cu,Ru,RO,Gne=(RO=class{constructor(t={}){pt(this,An);pt(this,ko);pt(this,Mo);pt(this,_u);pt(this,Eu);pt(this,No);pt(this,Cu);pt(this,Ru);Ke(this,An,t.queryCache||new AY),Ke(this,ko,t.mutationCache||new NY),Ke(this,Mo,t.defaultOptions||{}),Ke(this,_u,new Map),Ke(this,Eu,new Map),Ke(this,No,0)}mount(){Vp(this,No)._++,re(this,No)===1&&(Ke(this,Cu,Kw.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,An).onFocus())})),Ke(this,Ru,mg.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,An).onOnline())})))}unmount(){var t,e;Vp(this,No)._--,re(this,No)===0&&((t=re(this,Cu))==null||t.call(this),Ke(this,Cu,void 0),(e=re(this,Ru))==null||e.call(this),Ke(this,Ru,void 0))}isFetching(t){return re(this,An).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return re(this,ko).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=re(this,An).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=re(this,An).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(pu(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return re(this,An).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=re(this,An).get(r.queryHash),a=i==null?void 0:i.state.data,l=vY(e,a);if(l!==void 0)return re(this,An).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(t,e,n){return yr.batch(()=>re(this,An).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=re(this,An).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=re(this,An);yr.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=re(this,An);return yr.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=yr.batch(()=>re(this,An).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(ii).catch(ii)}invalidateQueries(t,e={}){return yr.batch(()=>(re(this,An).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=yr.batch(()=>re(this,An).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(ii)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ii)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=re(this,An).build(this,e);return n.isStaleByTime(pu(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(ii).catch(ii)}fetchInfiniteQuery(t){return t.behavior=dT(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(ii).catch(ii)}ensureInfiniteQueryData(t){return t.behavior=dT(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return mg.isOnline()?re(this,ko).resumePausedMutations():Promise.resolve()}getQueryCache(){return re(this,An)}getMutationCache(){return re(this,ko)}getDefaultOptions(){return re(this,Mo)}setDefaultOptions(t){Ke(this,Mo,t)}setQueryDefaults(t,e){re(this,_u).set(Vf(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...re(this,_u).values()],n={};return e.forEach(r=>{qf(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){re(this,Eu).set(Vf(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...re(this,Eu).values()],n={};return e.forEach(r=>{qf(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...re(this,Mo).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Xw(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Yw&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...re(this,Mo).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){re(this,An).clear(),re(this,ko).clear()}},An=new WeakMap,ko=new WeakMap,Mo=new WeakMap,_u=new WeakMap,Eu=new WeakMap,No=new WeakMap,Cu=new WeakMap,Ru=new WeakMap,RO),ri,Ot,nh,Vr,jl,Tu,Do,Po,rh,Ou,Au,Ll,zl,jo,ku,It,_f,H1,B1,F1,U1,I1,V1,q1,PM,TO,PY=(TO=class extends Sh{constructor(e,n){super();pt(this,It);pt(this,ri);pt(this,Ot);pt(this,nh);pt(this,Vr);pt(this,jl);pt(this,Tu);pt(this,Do);pt(this,Po);pt(this,rh);pt(this,Ou);pt(this,Au);pt(this,Ll);pt(this,zl);pt(this,jo);pt(this,ku,new Set);this.options=n,Ke(this,ri,e),Ke(this,Po,null),Ke(this,Do,$1()),this.options.experimental_prefetchInRender||re(this,Do).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(re(this,Ot).addObserver(this),hT(re(this,Ot),this.options)?Tt(this,It,_f).call(this):this.updateResult(),Tt(this,It,U1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return G1(re(this,Ot),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return G1(re(this,Ot),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tt(this,It,I1).call(this),Tt(this,It,V1).call(this),re(this,Ot).removeObserver(this)}setOptions(e){const n=this.options,r=re(this,Ot);if(this.options=re(this,ri).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof bs(this.options.enabled,re(this,Ot))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Tt(this,It,q1).call(this),re(this,Ot).setOptions(this.options),n._defaulted&&!j1(this.options,n)&&re(this,ri).getQueryCache().notify({type:"observerOptionsUpdated",query:re(this,Ot),observer:this});const i=this.hasListeners();i&&pT(re(this,Ot),r,this.options,n)&&Tt(this,It,_f).call(this),this.updateResult(),i&&(re(this,Ot)!==r||bs(this.options.enabled,re(this,Ot))!==bs(n.enabled,re(this,Ot))||pu(this.options.staleTime,re(this,Ot))!==pu(n.staleTime,re(this,Ot)))&&Tt(this,It,H1).call(this);const a=Tt(this,It,B1).call(this);i&&(re(this,Ot)!==r||bs(this.options.enabled,re(this,Ot))!==bs(n.enabled,re(this,Ot))||a!==re(this,jo))&&Tt(this,It,F1).call(this,a)}getOptimisticResult(e){const n=re(this,ri).getQueryCache().build(re(this,ri),e),r=this.createResult(n,e);return LY(this,r)&&(Ke(this,Vr,r),Ke(this,Tu,this.options),Ke(this,jl,re(this,Ot).state)),r}getCurrentResult(){return re(this,Vr)}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(e){re(this,ku).add(e)}getCurrentQuery(){return re(this,Ot)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=re(this,ri).defaultQueryOptions(e),r=re(this,ri).getQueryCache().build(re(this,ri),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return Tt(this,It,_f).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),re(this,Vr)))}createResult(e,n){var I;const r=re(this,Ot),i=this.options,a=re(this,Vr),l=re(this,jl),u=re(this,Tu),h=e!==r?e.state:re(this,nh),{state:p}=e;let m={...p},g=!1,b;if(n._optimisticResults){const A=this.hasListeners(),$=!A&&hT(e,n),L=A&&pT(e,r,n,i);($||L)&&(m={...m,...DM(p.data,e.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:E,errorUpdatedAt:y,status:x}=m;b=m.data;let S=!1;if(n.placeholderData!==void 0&&b===void 0&&x==="pending"){let A;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(A=a.data,S=!0):A=typeof n.placeholderData=="function"?n.placeholderData((I=re(this,Au))==null?void 0:I.state.data,re(this,Au)):n.placeholderData,A!==void 0&&(x="success",b=z1(a==null?void 0:a.data,A,n),g=!0)}if(n.select&&b!==void 0&&!S)if(a&&b===(l==null?void 0:l.data)&&n.select===re(this,rh))b=re(this,Ou);else try{Ke(this,rh,n.select),b=n.select(b),b=z1(a==null?void 0:a.data,b,n),Ke(this,Ou,b),Ke(this,Po,null)}catch(A){Ke(this,Po,A)}re(this,Po)&&(E=re(this,Po),b=re(this,Ou),y=Date.now(),x="error");const R=m.fetchStatus==="fetching",O=x==="pending",M=x==="error",k=O&&R,P=b!==void 0,H={status:x,fetchStatus:m.fetchStatus,isPending:O,isSuccess:x==="success",isError:M,isInitialLoading:k,isLoading:k,data:b,dataUpdatedAt:m.dataUpdatedAt,error:E,errorUpdatedAt:y,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:R,isRefetching:R&&!O,isLoadingError:M&&!P,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:M&&P,isStale:Qw(e,n),refetch:this.refetch,promise:re(this,Do)};if(this.options.experimental_prefetchInRender){const A=U=>{H.status==="error"?U.reject(H.error):H.data!==void 0&&U.resolve(H.data)},$=()=>{const U=Ke(this,Do,H.promise=$1());A(U)},L=re(this,Do);switch(L.status){case"pending":e.queryHash===r.queryHash&&A(L);break;case"fulfilled":(H.status==="error"||H.data!==L.value)&&$();break;case"rejected":(H.status!=="error"||H.error!==L.reason)&&$();break}}return H}updateResult(){const e=re(this,Vr),n=this.createResult(re(this,Ot),this.options);if(Ke(this,jl,re(this,Ot).state),Ke(this,Tu,this.options),re(this,jl).data!==void 0&&Ke(this,Au,re(this,Ot)),j1(n,e))return;Ke(this,Vr,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!re(this,ku).size)return!0;const l=new Set(a??re(this,ku));return this.options.throwOnError&&l.add("error"),Object.keys(re(this,Vr)).some(u=>{const d=u;return re(this,Vr)[d]!==e[d]&&l.has(d)})};Tt(this,It,PM).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tt(this,It,U1).call(this)}},ri=new WeakMap,Ot=new WeakMap,nh=new WeakMap,Vr=new WeakMap,jl=new WeakMap,Tu=new WeakMap,Do=new WeakMap,Po=new WeakMap,rh=new WeakMap,Ou=new WeakMap,Au=new WeakMap,Ll=new WeakMap,zl=new WeakMap,jo=new WeakMap,ku=new WeakMap,It=new WeakSet,_f=function(e){Tt(this,It,q1).call(this);let n=re(this,Ot).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(ii)),n},H1=function(){Tt(this,It,I1).call(this);const e=pu(this.options.staleTime,re(this,Ot));if(nc||re(this,Vr).isStale||!P1(e))return;const r=RM(re(this,Vr).dataUpdatedAt,e)+1;Ke(this,Ll,setTimeout(()=>{re(this,Vr).isStale||this.updateResult()},r))},B1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(re(this,Ot)):this.options.refetchInterval)??!1},F1=function(e){Tt(this,It,V1).call(this),Ke(this,jo,e),!(nc||bs(this.options.enabled,re(this,Ot))===!1||!P1(re(this,jo))||re(this,jo)===0)&&Ke(this,zl,setInterval(()=>{(this.options.refetchIntervalInBackground||Kw.isFocused())&&Tt(this,It,_f).call(this)},re(this,jo)))},U1=function(){Tt(this,It,H1).call(this),Tt(this,It,F1).call(this,Tt(this,It,B1).call(this))},I1=function(){re(this,Ll)&&(clearTimeout(re(this,Ll)),Ke(this,Ll,void 0))},V1=function(){re(this,zl)&&(clearInterval(re(this,zl)),Ke(this,zl,void 0))},q1=function(){const e=re(this,ri).getQueryCache().build(re(this,ri),this.options);if(e===re(this,Ot))return;const n=re(this,Ot);Ke(this,Ot,e),Ke(this,nh,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},PM=function(e){yr.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(re(this,Vr))}),re(this,ri).getQueryCache().notify({query:re(this,Ot),type:"observerResultsUpdated"})})},TO);function jY(t,e){return bs(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function hT(t,e){return jY(t,e)||t.state.data!==void 0&&G1(t,e,e.refetchOnMount)}function G1(t,e,n){if(bs(e.enabled,t)!==!1){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Qw(t,e)}return!1}function pT(t,e,n,r){return(t!==e||bs(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Qw(t,n)}function Qw(t,e){return bs(e.enabled,t)!==!1&&t.isStaleByTime(pu(e.staleTime,t))}function LY(t,e){return!j1(t.getCurrentResult(),e)}var jM=w.createContext(void 0),zY=t=>{const e=w.useContext(jM);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Xne=({client:t,children:e})=>(w.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),C.jsx(jM.Provider,{value:t,children:e})),LM=w.createContext(!1),$Y=()=>w.useContext(LM);LM.Provider;function HY(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var BY=w.createContext(HY()),FY=()=>w.useContext(BY),UY=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOn
922Mount=!1))},IY=t=>{w.useEffect(()=>{t.clearReset()},[t])},VY=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||wY(n,[t.error,r])),qY=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...n)=>Math.max(e(...n),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},GY=(t,e)=>t.isLoading&&t.isFetching&&!e,XY=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,mT=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function YY(t,e,n){var m,g,b,E,y;const r=zY(),i=$Y(),a=FY(),l=r.defaultQueryOptions(t);(g=(m=r.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||g.call(m,l),l._optimisticResults=i?"isRestoring":"optimistic",qY(l),UY(l,a),IY(a);const u=!r.getQueryCache().get(l.queryHash),[d]=w.useState(()=>new e(r,l)),h=d.getOptimisticResult(l),p=!i&&t.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(x=>{const S=p?d.subscribe(yr.batchCalls(x)):ii;return d.updateResult(),S},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),w.useEffect(()=>{d.setOptions(l)},[l,d]),XY(l,h))throw mT(l,d,a);if(VY({result:h,errorResetBoundary:a,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw h.error;if((E=(b=r.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||E.call(b,l,h),l.experimental_prefetchInRender&&!nc&&GY(h,i)){const x=u?mT(l,d,a):(y=r.getQueryCache().get(l.queryHash))==null?void 0:y.promise;x==null||x.catch(ii).finally(()=>{d.updateResult()})}return l.notifyOnChangeProps?h:d.trackResult(h)}function KY(t,e){return YY(t,PY)}const gT=(t,e,n={},r={})=>KY({queryKey:[t,n],queryFn:()=>Nf(e,n),networkMode:"always",...r});let X1={},zM;function Ob(t={}){X1={animate:!0,allowClose:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}function Qe(t){return t?X1[t]:X1}function QY(t){zM=t}function Wi(){return zM}let gg={};function om(t,e){gg[t]=e}function Ul(t){var e;(e=gg[t])==null||e.call(gg)}function WY(){gg={}}function lm(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e}function $M(t){const e='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap(n=>{const r=n.matches(e),i=Array.from(n.querySelectorAll(e));return[...r?[n]:[],...i]}).filter(n=>getComputedStyle(n).pointerEvents!=="none"&&eK(n))}function HM(t){if(!t||JY(t))return;const e=Qe("smoothScroll"),n=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!e||ZY(t)?"auto":"smooth",inline:"center",block:n?"start":"center"})}function ZY(t){if(!t||!t.parentElement)return;const e=t.parentElement;return e.scrollHeight>e.clientHeight}function JY(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function eK(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}let vg={};function dr(t,e){vg[t]=e}function tt(t){return t?vg[t]:vg}function vT(){vg={}}function tK(t,e,n,r){let i=tt("__activeStagePosition");const a=i||n.getBoundingClientRect(),l=r.getBoundingClientRect(),u=lm(t,a.x,l.x-a.x,e),d=lm(t,a.y,l.y-a.y,e),h=lm(t,a.width,l.width-a.width,e),p=lm(t,a.height,l.height-a.height,e);i={x:u,y:d,width:h,height:p},FM(i),dr("__activeStagePosition",i)}function BM(t){if(!t)return;const e=t.getBoundingClientRect(),n={x:e.x,y:e.y,width:e.width,height:e.height};dr("__activeStagePosition",n),FM(n)}function nK(){const t=tt("__activeStagePosition"),e=tt("__overlaySvg");if(!t)return;if(!e){console.warn("No stage svg found.");return}const n=window.innerWidth,r=window.innerHeight;e.setAttribute("viewBox",`0 0 ${n} ${r}`)}function rK(t){const e=iK(t);document.body.appendChild(e),VM(e,n=>{n.target.tagName==="path"&&Ul("overlayClick")}),dr("__overlaySvg",e)}function FM(t){const e=tt("__overlaySvg");if(!e){rK(t);return}const n=e.firstElementChild;if((n==null?void 0:n.tagName)!=="path")throw new Error("no path element found in stage svg");n.setAttribute("d",UM(t))}function iK(t){const e=window.innerWidth,n=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("driver-overlay","driver-overlay-animated"),r.setAttribute("viewBox",`0 0 ${e} ${n}`),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";const i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",UM(t)),i.style.fill=Qe("overlayColor")||"rgb(0,0,0)",i.style.opacity=`${Qe("overlayOpacity")}`,i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}function UM(t){const e=window.innerWidth,n=window.innerHeight,r=Qe("stagePadding")||0,i=Qe("stageRadius")||0,a=t.width+r*2,l=t.height+r*2,u=Math.min(i,a/2,l/2),d=Math.floor(Math.max(u,0)),h=t.x-r+d,p=t.y-r,m=a-d*2,g=l-d*2;return`M${e},0L0,0L0,${n}L${e},${n}L${e},0Z
923    M${h},${p} h${m} a${d},${d} 0 0 1 ${d},${d} v${g} a${d},${d} 0 0 1 -${d},${d} h-${m} a${d},${d} 0 0 1 -${d},-${d} v-${g} a${d},${d} 0 0 1 ${d},-${d} z`}function sK(){const t=tt("__overlaySvg");t&&t.remove()}function aK(){const t=document.getElementById("driver-dummy-element");
923if(t)return t;let e=document.createElement("div");return e.id="driver-dummy-element",e.style.width="0",e.style.height="0",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="fixed",e.style.top="50%",e.style.left="50%",document.body.appendChild(e),e}function yT(t){const{element:e}=t;let n=typeof e=="function"?e():typeof e=="string"?document.querySelector(e):e;n||(n=aK()),lK(n,t)}function oK(){const t=tt("__activeElement"),e=tt("__activeStep");t&&(BM(t),nK(),GM(t,e))}function lK(t,e){var n;const r=Date.now(),i=tt("__activeStep"),a=tt("__activeElement")||t,l=!a||a===t,u=t.id==="driver-dummy-element",d=a.id==="driver-dummy-element",h=Qe("animate"),p=e.onHighlightStarted||Qe("onHighlightStarted"),m=(e==null?void 0:e.onHighlighted)||Qe("onHighlighted"),g=(i==null?void 0:i.onDeselected)||Qe("onDeselected"),b=Qe(),E=tt();!l&&g&&g(d?void 0:a,i,{config:b,state:E,driver:Wi()}),p&&p(u?void 0:t,e,{config:b,state:E,driver:Wi()});const y=!l&&h;let x=!1;hK(),dr("previousStep",i),dr("previousElement",a),dr("activeStep",e),dr("activeElement",t);const S=()=>{if(tt("__transitionCallback")!==S)return;const R=Date.now()-r,O=400-R<=400/2;e.popover&&O&&!x&&y&&(bT(t,e),x=!0),Qe("animate")&&R<400?tK(R,400,a,t):(BM(t),m&&m(u?void 0:t,e,{config:Qe(),state:tt(),driver:Wi()}),dr("__transitionCallback",void 0),dr("__previousStep",i),dr("__previousElement",a),dr("__activeStep",e),dr("__activeElement",t)),window.requestAnimationFrame(S)};dr("__transitionCallback",S),window.requestAnimationFrame(S),HM(t),!y&&e.popover&&bT(t,e),a.classList.remove("driver-active-element","driver-no-interaction"),a.removeAttribute("aria-haspopup"),a.removeAttribute("aria-expanded"),a.removeAttribute("aria-controls"),((n=e.disableActiveInteraction)!=null?n:Qe("disableActiveInteraction"))&&t.classList.add("driver-no-interaction"),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}function cK(){var t;(t=document.getElementById("driver-dummy-element"))==null||t.remove(),document.querySelectorAll(".driver-active-element").forEach(e=>{e.classList.remove("driver-active-element","driver-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")})}function Gf(){const t=tt("__resizeTimeout");t&&window.cancelAnimationFrame(t),dr("__resizeTimeout",window.requestAnimationFrame(oK))}function uK(t){var e;if(!tt("isInitialized")||!(t.key==="Tab"||t.keyCode===9))return;const n=tt("__activeElement"),r=(e=tt("popover"))==null?void 0:e.wrapper,i=$M([...r?[r]:[],...n?[n]:[]]),a=i[0],l=i[i.length-1];if(t.preventDefault(),t.shiftKey){const u=i[i.indexOf(document.activeElement)-1]||l;u==null||u.focus()}else{const u=i[i.indexOf(document.activeElement)+1]||a;u==null||u.focus()}}function IM(t){var e;((e=Qe("allowKeyboardControl"))==null||e)&&(t.key==="Escape"?Ul("escapePress"):t.key==="ArrowRight"?Ul("arrowRightPress"):t.key==="ArrowLeft"&&Ul("arrowLeftPress"))}function VM(t,e,n){const r=(i,a)=>{const l=i.target;t.contains(l)&&((!n||n(l))&&(i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()),a==null||a(i))};document.addEventListener("pointerdown",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("pointerup",r,!0),document.addEventListener("mouseup",r,!0),document.addEventListener("click",i=>{r(i,e)},!0)}function dK(){window.addEventListener("keyup",IM,!1),window.addEventListener("keydown",uK,!1),window.addEventListener("resize",Gf),window.addEventListener("scroll",Gf)}function fK(){window.removeEventListener("keyup",IM),window.removeEventListener("resize",Gf),window.removeEventListener("scroll",Gf)}function hK(){const t=tt("popover");t&&(t.wrapper.style.display="none")}function bT(t,e){var n,r;let i=tt("popover");i&&document.body.removeChild(i.wrapper),i=mK(),document.body.appendChild(i.wrapper);const{title:a,description:l,showButtons:u,disableButtons:d,showProgress:h,nextBtnText:p=Qe("nextBtnText")||"Next &rarr;",prevBtnText:m=Qe("prevBtnText")||"&larr; Previous",progressText:g=Qe("progressText")||"{current} of {total}"}=e.popover||{};i.nextButton.innerHTML=p,i.previousButton.innerHTML=m,i.progress.innerHTML=g,a?(i.title.innerHTML=a,i.title.style.display="block"):i.title.style.display="none",l?(i.description.innerHTML=l,i.description.style.display="block"):i.description.style.display="none";const b=u||Qe("showButtons"),E=h||Qe("showProgress")||!1,y=(b==null?void 0:b.includes("next"))||(b==null?void 0:b.includes("previous"))||E;i.closeButton.style.display=b.includes("close")?"block":"none",y?(i.footer.style.display="flex",i.progress.style.display=E?"block":"none",i.nextButton.style.display=b.includes("next")?"block":"none",i.previousButton.style.display=b.includes("previous")?"block":"none"):i.footer.style.display="none";const x=d||Qe("disableButtons")||[];x!=null&&x.includes("next")&&(i.nextButton.disabled=!0,i.nextButton.classList.add("driver-popover-btn-disabled")),x!=null&&x.includes("previous")&&(i.previousButton.disabled=!0,i.previousButton.classList.add("driver-popover-btn-disabled")),x!=null&&x.includes("close")&&(i.closeButton.disabled=!0,i.closeButton.classList.add("driver-popover-btn-disabled"));const S=i.wrapper;S.style.display="block",S.style.left="",S.style.top="",S.style.bottom="",S.style.right="",
923S.id="driver-popover-content",S.setAttribute("role","dialog"),S.setAttribute("aria-labelledby","driver-popover-title"),S.setAttribute("aria-describedby","driver-popover-description");const R=i.arrow;R.className="driver-popover-arrow";const O=((n=e.popover)==null?void 0:n.popoverClass)||Qe("popoverClass")||"";S.className=`driver-popover ${O}`.trim(),VM(i.wrapper,j=>{var H,I,A;const $=j.target,L=((H=e.popover)==null?void 0:H.onNextClick)||Qe("onNextClick"),U=((I=e.popover)==null?void 0:I.onPrevClick)||Qe("onPrevClick"),V=((A=e.popover)==null?void 0:A.onCloseClick)||Qe("onCloseClick");if($.closest(".driver-popover-next-btn"))return L?L(t,e,{config:Qe(),state:tt(),driver:Wi()}):Ul("nextClick");if($.closest(".driver-popover-prev-btn"))return U?U(t,e,{config:Qe(),state:tt(),driver:Wi()}):Ul("prevClick");if($.closest(".driver-popover-close-btn"))return V?V(t,e,{config:Qe(),state:tt(),driver:Wi()}):Ul("closeClick")},j=>!(i!=null&&i.description.contains(j))&&!(i!=null&&i.title.contains(j))&&typeof j.className=="string"&&j.className.includes("driver-popover")),dr("popover",i);const M=((r=e.popover)==null?void 0:r.onPopoverRender)||Qe("onPopoverRender");M&&M(i,{config:Qe(),state:tt(),driver:Wi()}),GM(t,e),HM(S);const k=t.classList.contains("driver-dummy-element"),P=$M([S,...k?[]:[t]]);P.length>0&&P[0].focus()}function qM(){const t=tt("popover");if(!(t!=null&&t.wrapper))return;const e=t.wrapper.getBoundingClientRect(),n=Qe("stagePadding")||0,r=Qe("popoverOffset")||0;return{width:e.width+n+r,height:e.height+n+r,realWidth:e.width,realHeight:e.height}}function xT(t,e){const{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=e;return t==="start"?Math.max(Math.min(n.top-i,window.innerHeight-r.realHeight-a.width),a.width):t==="end"?Math.max(Math.min(n.top-(r==null?void 0:r.realHeight)+n.height+i,window.innerHeight-(r==null?void 0:r.realHeight)-a.width),a.width):t==="center"?Math.max(Math.min(n.top+n.height/2-(r==null?void 0:r.realHeight)/2,window.innerHeight-(r==null?void 0:r.realHeight)-a.width),a.width):0}function wT(t,e){const{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=e;return t==="start"?Math.max(Math.min(n.left-i,window.innerWidth-r.realWidth-a.width),a.width):t==="end"?Math.max(Math.min(n.left-(r==null?void 0:r.realWidth)+n.width+i,window.innerWidth-(r==null?void 0:r.realWidth)-a.width),a.width):t==="center"?Math.max(Math.min(n.left+n.width/2-(r==null?void 0:r.realWidth)/2,window.innerWidth-(r==null?void 0:r.realWidth)-a.width),a.width):0}function GM(t,e){const n=tt("popover");if(!n)return;const{align:r="start",side:i="left"}=(e==null?void 0:e.popover)||{},a=r,l=t.id==="driver-dummy-element"?"over":i,u=Qe("stagePadding")||0,d=qM(),h=n.arrow.getBoundingClientRect(),p=t.getBoundingClientRect(),m=p.top-d.height;let g=m>=0;const b=window.innerHeight-(p.bottom+d.height);let E=b>=0;const y=p.left-d.width;let x=y>=0;const S=window.innerWidth-(p.right+d.width);let R=S>=0;const O=!g&&!E&&!x&&!R;let M=l;if(l==="top"&&g?R=x=E=!1:l==="bottom"&&E?R=x=g=!1:l==="left"&&x?R=g=E=!1:l==="right"&&R&&(x=g=E=!1),l==="over"){const k=window.innerWidth/2-d.realWidth/2,P=window.innerHeight/2-d.realHeight/2;n.wrapper.style.left=`${k}px`,n.wrapper.style.right="auto",n.wrapper.style.top=`${P}px`,n.wrapper.style.bottom="auto"}else if(O){const k=window.innerWidth/2-(d==null?void 0:d.realWidth)/2,P=10;n.wrapper.style.left=`${k}px`,n.wrapper.style.right="auto",n.wrapper.style.bottom=`${P}px`,n.wrapper.style.top="auto"}else if(x){const k=Math.min(y,window.innerWidth-(d==null?void 0:d.realWidth)-h.width),P=xT(a,{elementDimensions:p,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:h});n.wrapper.style.left=`${k}px`,n.wrapper.style.top=`${P}px`,n.wrapper.style.bottom="auto",n.wrapper.style.right="auto",M="left"}else if(R){const k=Math.min(S,window.innerWidth-(d==null?void 0:d.realWidth)-h.width),P=xT(a,{elementDimensions:p,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:h});n.wrapper.style.right=`${k}px`,n.wrapper.style.top=`${P}px`,n.wrapper.style.bottom="auto",n.wrapper.style.left="auto",M="right"}else if(g){const k=Math.min(m,window.innerHeight-d.realHeight-h.width);let P=wT(a,{elementDimensions:p,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:h});n.wrapper.style.top=`${k}px`,n.wrapper.style.left=`${P}px`,n.wrapper.style.bottom="auto",n.wrapper.style.right="auto",M="top"}else if(E){const k=Math.min(b,window.innerHeight-(d==null?void 0:d.realHeight)-h.width);let P=wT(a,{elementDimensions:p,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:h});n.wrapper.style.left=`${P}px`,n.wrapper.style.bottom=`${k}px`,n.wrapper.style.top="auto",n.wrapper.style.right="auto",M="bottom"}O?n.arrow.classList.add("driver-popover-arrow-none"):pK(a,M,t)}function pK(t,e,n){const r=tt("popover");if(!r)return;const i=n.getBoundingClientRect(),a=qM(),l=r.arrow,u=a.width,d=window.innerWidth,h=i.width,p=i.left,m=a.height,g=window.innerHeight,b=i.top,E=i.height;l.className="driver-popover-arrow";let y=e,x=t;if(e==="top"?(p+h<=0?(y="right",x="end"):p+h-u<=0&&(y="top",x="start"),p>=d?(y="left",x="end"):p+u>=d&&(y="top",x="end")):e==="bottom"?(p+h<=0?(y="right",x="start"):p+h-u<=0&&(y="bottom",x="start"),p>=d?(y="left",x="start"):p+u>
923=d&&(y="bottom",x="end")):e==="left"?(b+E<=0?(y="bottom",x="end"):b+E-m<=0&&(y="left",x="start"),b>=g?(y="top",x="end"):b+m>=g&&(y="left",x="end")):e==="right"&&(b+E<=0?(y="bottom",x="start"):b+E-m<=0&&(y="right",x="start"),b>=g?(y="top",x="start"):b+m>=g&&(y="right",x="end")),!y)l.classList.add("driver-popover-arrow-none");else{l.classList.add(`driver-popover-arrow-side-${y}`),l.classList.add(`driver-popover-arrow-align-${x}`);const S=n.getBoundingClientRect(),R=l.getBoundingClientRect(),O=Qe("stagePadding")||0,M=S.left-O<window.innerWidth&&S.right+O>0&&S.top-O<window.innerHeight&&S.bottom+O>0;e==="bottom"&&M&&(R.x>S.x&&R.x+R.width<S.x+S.width?r.wrapper.style.transform="translateY(0)":(l.classList.remove(`driver-popover-arrow-align-${x}`),l.classList.add("driver-popover-arrow-none"),r.wrapper.style.transform=`translateY(-${O/2}px)`))}}function mK(){const t=document.createElement("div");t.classList.add("driver-popover");const e=document.createElement("div");e.classList.add("driver-popover-arrow");const n=document.createElement("header");n.id="driver-popover-title",n.classList.add("driver-popover-title"),n.style.display="none",n.innerText="Popover Title";const r=document.createElement("div");r.id="driver-popover-description",r.classList.add("driver-popover-description"),r.style.display="none",r.innerText="Popover description is here";const i=document.createElement("button");i.type="button",i.classList.add("driver-popover-close-btn"),i.setAttribute("aria-label","Close"),i.innerHTML="&times;";const a=document.createElement("footer");a.classList.add("driver-popover-footer");const l=document.createElement("span");l.classList.add("driver-popover-progress-text"),l.innerText="";const u=document.createElement("span");u.classList.add("driver-popover-navigation-btns");const d=document.createElement("button");d.type="button",d.classList.add("driver-popover-prev-btn"),d.innerHTML="&larr; Previous";const h=document.createElement("button");return h.type="button",h.classList.add("driver-popover-next-btn"),h.innerHTML="Next &rarr;",u.appendChild(d),u.appendChild(h),a.appendChild(l),a.appendChild(u),t.appendChild(i),t.appendChild(e),t.appendChild(n),t.appendChild(r),t.appendChild(a),{wrapper:t,arrow:e,title:n,description:r,footer:a,previousButton:d,nextButton:h,closeButton:i,footerButtons:u,progress:l}}function gK(){var t;const e=tt("popover");e&&((t=e.wrapper.parentElement)==null||t.removeChild(e.wrapper))}function XM(t={}){Ob(t);function e(){Qe("allowClose")&&p()}function n(){const g=Qe("overlayClickBehavior");if(Qe("allowClose")&&g==="close"){p();return}g==="nextStep"&&r()}function r(){const g=tt("activeIndex"),b=Qe("steps")||[];if(typeof g>"u")return;const E=g+1;b[E]?h(E):p()}function i(){const g=tt("activeIndex"),b=Qe("steps")||[];if(typeof g>"u")return;const E=g-1;b[E]?h(E):p()}function a(g){(Qe("steps")||[])[g]?h(g):p()}function l(){var g;if(tt("__transitionCallback"))return;const b=tt("activeIndex"),E=tt("__activeStep"),y=tt("__activeElement");if(typeof b>"u"||typeof E>"u"||typeof tt("activeIndex")>"u")return;const x=((g=E.popover)==null?void 0:g.onPrevClick)||Qe("onPrevClick");if(x)return x(y,E,{config:Qe(),state:tt(),driver:Wi()});i()}function u(){var g;if(tt("__transitionCallback"))return;const b=tt("activeIndex"),E=tt("__activeStep"),y=tt("__activeElement");if(typeof b>"u"||typeof E>"u")return;const x=((g=E.popover)==null?void 0:g.onNextClick)||Qe("onNextClick");if(x)return x(y,E,{config:Qe(),state:tt(),driver:Wi()});r()}function d(){tt("isInitialized")||(dr("isInitialized",!0),document.body.classList.add("driver-active",Qe("animate")?"driver-fade":"driver-simple"),dK(),om("overlayClick",n),om("escapePress",e),om("arrowLeftPress",l),om("arrowRightPress",u))}function h(g=0){var b,E,y,x,S,R,O,M;const k=Qe("steps");if(!k){console.error("No steps to drive through"),p();return}if(!k[g]){p();return}dr("__activeOnDestroyed",document.activeElement),dr("activeIndex",g);const P=k[g],j=k[g+1],H=k[g-1],I=((b=P.popover)==null?void 0:b.doneBtnText)||Qe("doneBtnText")||"Done",A=Qe("allowClose"),$=typeof((E=P.popover)==null?void 0:E.showProgress)<"u"?(y=P.popover)==null?void 0:y.showProgress:Qe("showProgress"),L=(((x=P.popover)==null?void 0:x.progressText)||Qe("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${g+1}`).replace("{{total}}",`${k.length}`),U=((S=P.popover)==null?void 0:S.showButtons)||Qe("showButtons"),V=["next","previous",...A?["close"]:[]].filter(ae=>!(U!=null&&U.length)||U.includes(ae)),Q=((R=P.popover)==null?void 0:R.onNextClick)||Qe("onNextClick"),F=((O=P.popover)==null?void 0:O.onPrevClick)||Qe("onPrevClick"),J=((M=P.popover)==null?void 0:M.onCloseClick)||Qe("onCloseClick");yT({...P,popover:{showButtons:V,nextBtnText:j?void 0:I,disableButtons:[...H?[]:["previous"]],showProgress:$,progressText:L,onNextClick:Q||(()=>{j?h(g+1):p()}),onPrevClick:F||(()=>{h(g-1)}),onCloseClick:J||(()=>{p()}),...(P==null?void 0:P.popover)||{}}})}function p(g=!0){const b=tt("__activeElement"),E=tt("__activeStep"),y=tt("__activeOnDestroyed"),x=Qe("onDestroyStarted");if(g&&x){const O=!b||(b==null?void 0:b.id)==="driver-dummy-element";x(O?void 0:b,E,{config:Qe(),state:tt(),driver:Wi()});return}const S=(E==null?void 0:E.onDeselected)||Qe("onDeselected"),R=Qe("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),fK(),gK(),cK(),sK(),WY(),vT(),b&&E){const O=b.id==="driver-dummy-element";S&&S(O?void 0:b,E,{config:Qe(),state:tt(),driver:Wi()}),R&&R(O?void 0:b,E,{config:Qe(),state:tt(),driver:Wi()})}y&&y.focus()}const m={isActive:()=>tt("isInitialized")||!1,refresh:Gf,drive:(g=0)=>{d(),h(g)},setConfig:Ob,setSteps:g=>{vT(),Ob({...Qe(),steps:g})},getConfig:Qe,getState:tt,getActiveIndex:()=>tt("activeIndex"),isFirstStep:()=>tt("activeIndex")===0,isLastStep:()=>{const g=Qe("steps")||[],b=tt("activeIndex");return b!==void 0&&b===g.length-1},getActiveStep:()=>tt("activeStep"),getActiveElement:()=>tt("activeElement"),getPreviousElement:()=>tt("previousElement"),getPreviousStep:()=>tt("previousStep"),moveNext:r,movePrevious:i,moveTo:a,hasNextStep:()=>{const g=Qe("steps")||[],b=tt("activeIndex");return b!==void 0&&!!g[b+1]},hasPreviousStep:()=>{const g=Qe("steps")||[],b=tt("activeIndex");return b!==void 0&&!!g[b-1]},highlight:g=>{d(),yT({...g,popover:g.popover?{showButtons:[],showProgress:!1,progressText:"",...g.popover}:void 0})},destroy:()=>{p(!1)}};return QY(m),m}const YM="";function vK(){const t=localStorage.getItem(YM);return t?JSON.parse(t):{}}function yK(t){localStorage.setItem(YM,JSON.stringify(t))}function Ww(t){const e=vK();return e[t]?!1:(e[t]=!0,yK(e),!0)}const bK=hi(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function jm({size:t="medium",className:e="",sx:n={},...r}){return C.jsx(bK,{fontSize:t,className:e,sx:n,...r})}const xK=hi(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");function Yne({size:t="medium",className:e="",sx:n={},...r}){return C.jsx(xK,{fontSize:t,className:e,sx:n,...r})}const wK=hi(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function SK({size:t="medium",className:e="",sx:n={},...r}){return C.jsx(wK,{fontSize:t,className:e,sx:n,...r})}function Y1(t){return t?t.filter(n=>!n.is_unique_identifier).map(n=>({...n,value:n.attribute_key})):[]}function Kne(t){return t?t.substring(t.lastIndexOf(".")+1):""}var KM={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ST=ze.createContext&&ze.createContext(KM),_K=["attr","size","title"];function EK(t,e){if(t==null)return{};var n=CK(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function CK(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function yg(){return yg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yg.apply(this,arguments)}function _T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 5,555 bytes, line 923
923e%2?_T(Object(n),!0).forEach(function(r){RK(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_T(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function RK(t,e,n){return e=TK(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TK(t){var e=OK(t,"string");return typeof e=="symbol"?e:e+""}function OK(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QM(t){return t&&t.map((e,n)=>ze.createElement(e.tag,bg({key:n},e.attr),QM(e.child)))}function Wn(t){return e=>ze.createElement(AK,yg({attr:bg({},t.attr)},e),QM(t.child))}function AK(t){var e=n=>{var{attr:r,size:i,title:a}=t,l=EK(t,_K),u=i||n.size||"1em",d;return n.className&&(d=n.className),t.className&&(d=(d?d+" ":"")+t.className),ze.createElement("svg",yg({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:d,style:bg(bg({color:t.color||n.color},n.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),a&&ze.createElement("title",null,a),t.children)};return ST!==void 0?ze.createElement(ST.Consumer,null,n=>e(n)):e(KM)}function Qne(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"},child:[]}]})(t)}function Wne(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08a.956.956 0 0 1-.29-.7c0-.28.11-.53.29-.71C3.34 8.78 7.46 7 12 7s8.66 1.78 11.71 4.67c.18.18.29.43.29.71 0 .28-.11.53-.29.71l-2.48 2.48c-.18.18-.43.29-.71.29-.27 0-.52-.11-.7-.28a11.27 11.27 0 0 0-2.67-1.85.996.996 0 0 1-.56-.9v-3.1C15.15 9.25 13.6 9 12 9z"},child:[]}]})(t)}function Zne(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z"},child:[]}]})(t)}function Jne(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M14.5 17c0 1.65-1.35 3-3 3s-3-1.35-3-3h2c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1H2v-2h9.5c1.65 0 3 1.35 3 3zM19 6.5C19 4.57 17.43 3 15.5 3S12 4.57 12 6.5h2c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S16.33 8 15.5 8H2v2h13.5c1.93 0 3.5-1.57 3.5-3.5zm-.5 4.5H2v2h16.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5v2c1.93 0 3.5-1.57 3.5-3.5S20.43 11 18.5 11z"},child:[]}]})(t)}function kK(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fillRule:"evenodd"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"},child:[]}]}]})(t)}function ere(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z"},child:[]}]})(t)}function tre(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 9h-3c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1zm-.5 4.5h-2v-3h2v3zM8 13v1c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v1H6.5v-.5h-2v3h2V13H8zm12.5 2.5h-2v1h3V18H17v-2.5c0-.55.45-1 1-1h2v-1h-3V12h3.5c.55 0 1 .45 1 1v1.5c0 .55-.45 1-1 1z"},child:[]}]})(t)}function nre(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 13V5c0-1.66-1.34-3-3-3S6 3.34 6 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4zm-4-2V5c0-.55.45-1 1-1s1 .45 1 1v1H9v1h1v2H9v1h1v1H8zm13-4.5c0-.84-1.5-2.5-1.5-2.5S18 5.66 18 6.5c0 .83.67 1.5 1.5 1.5S21 7.33 21 6.5zm-4 3c0-.84-1.5-2.5-1.5-2.5S14 8.66 14 9.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5zm4 3c0-.84-1.5-2.5-1.5-2.5S18 11.66 18 12.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5z"},child:[]}]})(t)}function rre(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"g",attr:{fillRule:"evenodd"},child:[{tag:"circle",attr:{cx:"17",cy:"15.5",r:"1.12"},child:[]},{tag:"path",attr:{d:"M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08z"},child:[]},{tag:"path",attr:{d:"M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55A5.973 5.973 0 0 0 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91zM11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.9
9231zm6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"},child:[]}]}]})(t)}function ire(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zM13 3v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zM18 13h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(t)}function sre(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 16h2v1h-2zM12 11c-1.1 0-2 .9-2 2 0 .74.4 1.38 1 1.72v.78h2v-.78c.6-.35 1-.98 1-1.72 0-1.1-.9-2-2-2z"},child:[]},{tag:"path",attr:{d:"M18 1.01 6 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM18 21H6v-1h12v1zm0-3H6V6h12v12zm0-14H6V3h12v1z"},child:[]},{tag:"path",attr:{d:"M16.01 15.95c.62-.83.99-1.84.99-2.95s-.37-2.12-.99-2.95l-1.07 1.07c.35.54.56 1.19.56 1.88s-.21 1.34-.56 1.88l1.07 1.07zM9.06 14.88c-.35-.54-.56-1.19-.56-1.88 0-1.93 1.57-3.5 3.5-3.5v1.25l2.25-2-2.25-2V8c-2.76 0-5 2.24-5 5 0 1.11.37 2.12.99 2.95l1.07-1.07z"},child:[]}]})(t)}function are(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13.05 9.79 10 7.5v9l3.05-2.29L16 12l-2.95-2.21zm0 0L10 7.5v9l3.05-2.29L16 12l-2.95-2.21zm0 0L10 7.5v9l3.05-2.29L16 12l-2.95-2.21zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM4.07 13H2.05c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zm1.61 6.74A9.981 9.981 0 0 0 11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12z"},child:[]}]})(t)}function ore(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]}
923,{tag:"path",attr:{d:"M21 6.5a2.996 2.996 0 0 0-2.99 3.21l-2.03.68a4.468 4.468 0 0 0-3.22-2.32V5.91A3.018 3.018 0 0 0 15 3c0-1.66-1.34-3-3-3S9 1.34 9 3c0 1.4.96 2.57 2.25 2.91v2.16c-1.4.23-2.58 1.11-3.22 2.32l-2.04-.68C6 9.64 6 9.57 6 9.5c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3c1.06 0 1.98-.55 2.52-1.37l2.03.68c-.2 1.29.17 2.66 1.09 3.69l-1.41 1.77C6.85 17.09 6.44 17 6 17c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3c0-.68-.22-1.3-.6-1.8l1.41-1.77c1.36.76 3.02.75 4.37 0l1.41 1.77c-.37.5-.59 1.12-.59 1.8 0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3c-.44 0-.85.09-1.23.26l-1.41-1.77a4.49 4.49 0 0 0 1.09-3.69l2.03-.68c.53.82 1.46 1.37 2.52 1.37 1.66 0 3-1.34 3-3S22.66 6.5 21 6.5zm-18 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM6 21c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-18c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1zm1 12a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5zm6 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm3-8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"},child:[]}]})(t)}function lre(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z"},child:[]}]})(t)}function cre(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 4c1.93 0 3.68.78 4.95 2.05l-1.41 1.41a5.022 5.022 0 0 0-7.08 0L7.05 6.05A6.976 6.976 0 0 1 12 4zm7.78-.77-1.41 1.41C16.74 3.01 14.49 2 12.01 2S7.27 3.01 5.64 4.63L4.22 3.22C6.22 1.23 8.97 0 12.01 0s5.78 1.23 7.77 3.23zM12 11c1.94 0 4 1.45 4 4.15 0 .94-.55 2.93-4 6.17-3.45-3.24-4-5.23-4-6.17 0-2.7 2.06-4.15 4-4.15zm0-2c-3.15 0-6 2.41-6 6.15 0 2.49 2 5.44 6 8.85 4-3.41 6-6.36 6-8.85C18 11.41 15.15 9 12 9zm1.5 6c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z"},child:[]}]})(t)}function ure(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M18 6V4h2V2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14v-2h-4.03A4.966 4.966 0 0 0 18 16v-5H8v5c0 1.64.81 3.09 2.03 4H6V4h2v2c0 .55.45 1 1 1h8c.55 0 1-.45 1-1zm-8 10v-3h6v3c0 1.65-1.35 3-3 3s-3-1.35-3-3z"},child:[]},{tag:"circle",attr:{cx:"13",cy:"9",r:"1"},child:[]}]})(t)}function dre(t){return Wn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"15.5",cy:"9.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"9.5",r:"1.5"},child:[]},{tag:"path",attr:{d:"M12 18c2.28 0 4.22-1.66 5-4H7c.78 2.34 2.72 4 5 4z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.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"},child:[]}]})(t)}const MK=rt(JX)(({theme:t})=>({padding:0,width:42,height:25,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"200ms","&.Mui-checked":{transform:"translateX(17px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"#4ade80",opacity:1}}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:21,height:21,borderRadius:"50%",backgroundColor:"#fff",boxShadow:"0 1px 2px rgba(0,0,0,0.2)"},"& .MuiSwitch-track":{borderRadius:25,backgroundColor:"#d1d5db",opacity:1,transition:t.transitions.create(["background-color"],{duration:200})}}));function NK({checked:t,onChange:e,disabled:n,...r}){return C.jsx(MK,{checked:t,onChange:e,disabled:n,...r})}const ET=hi(C.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Lm={acceleration:()=>Fe(()=>import("./AccelerationIcon-DmBWkY9e.js"),__vite__mapDeps([0,1])),accelerometer:()=>Fe(()=>import("./AccelerometerIcon-DTHaA-7-.js"),__vite__mapDeps([2,3])),accurrent:()=>Fe(()=>import("./ACCurrentIcon-DZQgyB9O.js"),__vite__mapDeps([4,1])),air:()=>Fe(()=>import("./AirIcon-DS5n0jsQ.js"),[]),app:()=>Fe(()=>import("./AppIcon-DToDX7mR.js"),__vite__mapDeps([5,6,7])),barchart:()=>Fe(()=>import("./BarChartIcon-C8_FMdSD.js"),__vite__mapDeps([8,3])),basestation:()=>Fe(()=>import("./BaseStationIcon-DtuWesuw.js"),__vite__mapDeps([9,10])),battery:()=>Fe(()=>import("./BatteryIcon-0lC27PUA.js"),__vite__mapDeps([11,6,7])),beacon:()=>Fe(()=>import("./BeaconIcon-GwRVF1-S.js"),__vite__mapDeps([12,6,7])),bed:()=>Fe(()=>import("./BedIcon-DpI37m6C.js"),__vite__mapDeps([13,6,7])),bell:()=>Fe(()=>import("./BellIcon-NS5RPZiM.js"),__vite__mapDeps([14,6,7])),bluetooth:()=>Fe(()=>import("./BluetoothIcon-CqQQ1WN5.js"),__vite__mapDeps([15,6,7])),bolt:()=>Fe(()=>import("./BoltIcon-BeeWV03G.js"),[]),bug:()=>Fe(()=>import("./BugIcon-CxdFnl-7.js"),[]),building:()=>Fe(()=>import("./BuildingIcon-iMgH5ap-.js"),__vite__mapDeps([16,3])),calender:()=>Fe(()=>import("./CalenderIcon-DmHJ4owX.js"),[]),callend:()=>Fe(()=>import("./CallEndIcon-D0Qnvm7E.js"),[]),camera:()=>Fe(()=>
923import("./CameraIcon-D3JCwU78.js"),__vite__mapDeps([17,6,7])),car:()=>Fe(()=>import("./CarIcon-CwTQnQx5.js"),__vite__mapDeps([18,19])),chat:()=>Fe(()=>import("./ChatIcon-kaEdw2nL.js"),__vite__mapDeps([20,3])),check:()=>Fe(()=>import("./CheckIcon-Bg74xlLi.js"),__vite__mapDeps([21,6,7])),clock:()=>Fe(()=>import("./ClockIcon-BsX5zfYf.js"),__vite__mapDeps([22,6,7])),close:()=>Fe(()=>import("./CloesIcon-B3wGo8y2.js"),[]),co2:()=>Fe(()=>import("./CO2Icon-DzyaF24k.js"),[]),code:()=>Fe(()=>import("./CodeIcon-jWxSZXXe.js"),__vite__mapDeps([23,1])),coffeemaker:()=>Fe(()=>import("./CoffeeMakerIcon-CwBSqeSX.js"),[]),cog:()=>Fe(()=>import("./CogIcon-CTWFUSXa.js"),__vite__mapDeps([24,25])),cold:()=>Fe(()=>import("./ColdIcon-DmFQlwOU.js"),__vite__mapDeps([26,27])),container:()=>Fe(()=>import("./ContainerIcon-C_76wGjd.js"),__vite__mapDeps([28,6,7])),cube:()=>Fe(()=>import("./CubeIcon--3n6mjz9.js"),__vite__mapDeps([29,1])),dashboard:()=>Fe(()=>import("./Dashboard-DskOBjN0.js"),__vite__mapDeps([30,10])),device:()=>Fe(()=>import("./DeviceIcon-Bhs4qNDs.js"),[]),dewpointalt:()=>Fe(()=>import("./DewPointAltIcon-Cdd45CKH.js"),[]),document:()=>Fe(()=>import("./DocumentIcon-riXflzqJ.js"),__vite__mapDeps([31,25])),donutchart:()=>Fe(()=>import("./DonutChartIcon-DvBPQZEy.js"),__vite__mapDeps([32,10])),download:()=>Fe(()=>import("./DownloadIcon-BF5WNaOg.js"),__vite__mapDeps([33,1])),emergency:()=>Fe(()=>import("./EmergencyIcon-MmcDJ3TN.js"),[]),emoji:()=>Fe(()=>import("./EmojiIcon-D4wOGeTQ.js"),[]),enter:()=>Fe(()=>import("./EnterIcon-89mCuG-v.js"),__vite__mapDeps([34,10])),error:()=>Fe(()=>import("./ErrorIcon-BFLWy9mE.js"),[]),exit:()=>Fe(()=>import("./ExitIcon-DEXt91VH.js"),__vite__mapDeps([35,6,7])),fan:()=>Fe(()=>import("./FanIcon-Kksp5kqi.js"),__vite__mapDeps([36,1])),fire:()=>Fe(()=>import("./FireIcon-C9KG3AUV.js"),__vite__mapDeps([37,3])),forklift:()=>Fe(()=>import("./ForkLiftIcon-CCnxqRgU.js"),__vite__mapDeps([38,6,7])),frequency:()=>Fe(()=>import("./FrequencyIcon-C1Eiw6Rc.js"),__vite__mapDeps([39,1])),gallery:()=>Fe(()=>import("./GalleryIcon-juEIc9H-.js"),[]),gauge:()=>Fe(()=>import("./GaugeIcon-zcAg_YtW.js"),__vite__mapDeps([40,1])),gravity:()=>Fe(()=>import("./GravityIcon-CvwX2AYa.js"),__vite__mapDeps([41,25])),grid:()=>Fe(()=>Promise.resolve().then(()=>MJ),void 0),hourglass:()=>Fe(()=>import("./HourGlassIcon-DubqgFBj.js"),__vite__mapDeps([42,1])),house:()=>Fe(()=>import("./HouseIcon-CW2-yIJ6.js"),__vite__mapDeps([43,1])),hub:()=>Fe(()=>import("./HubIcon-ByX-M5qM.js"),[]),humidity:()=>Fe(()=>import("./HumidityIcon-DZ9Mb47q.js"),__vite__mapDeps([44,19])),leak:()=>Fe(()=>import("./LeakIcon-CJQHB8pG.js"),__vite__mapDeps([45,6,7])),level:()=>Fe(()=>import("./LevelIcon-BVAs1C1R.js"),[]),linechart:()=>Fe(()=>import("./LineChartIcon-to63xZfI.js"),__vite__mapDeps([46,1])),luminosity:()=>Fe(()=>import("./LuminosityIcon-BmjYt_Ts.js"),[]),memory:()=>Fe(()=>import("./MemoryIcon-rhN9iL5z.js"),[]),motion:()=>Fe(()=>import("./MotionIcon-Bo3uNe1y.js"),__vite__mapDeps([47,1])),profile:()=>Fe(()=>import("./ProfileIcon-BnN_9CrZ.js"),[]),temperature:()=>Fe(()=>import("./TemperatureIcon-Do6bcGai.js"),__vite__mapDeps([48,27])),threedot:()=>Fe(()=>import("./ThreeDotIcon-DHHsBHBL.js"),__vite__mapDeps([49,1])),toggle:()=>Fe(()=>import("./ToggleIcon-C8_MjLl-.js"),__vite__mapDeps([50,6,7])),voltage:()=>Fe(()=>import("./VoltageIcon-C_wN48Fx.js"),__vite__mapDeps([51,1]))},_r=({name:t,className:e="h-6 w-6"})=>{const[n,r]=w.useState(null);return w.useEffect(()=>{var a;let i=!0;return(a=Lm[t])==null||a.call(Lm).then(l=>{i&&r(()=>l.default)}),()=>{i=!1}},[t]),n?C.jsx(n,{className:e}):null};function DK(t){return Wn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 11l-3 3l-3 -3"},child:[]},{tag:"path",attr:{d:"M12 3a9 9 0 1 0 0 18a9 9 0 0 0 0 -18z"},child:[]}]})(t)}function PK(t){return Wn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 13l3 -3l3 3"},child:[]},{tag:"path",attr:{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},child:[]}]})(t)}function fre(t){return Wn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 19.875c0 .621 -.512 1.125 -1.143 1.125h-5.714a1.134 
9231.134 0 0 1 -1.143 -1.125v-15.875a1 1 0 0 1 1 -1h5.857c.631 0 1.143 .504 1.143 1.125z"},child:[]},{tag:"path",attr:{d:"M12 9h-2"},child:[]},{tag:"path",attr:{d:"M12 6h-3"},child:[]},{tag:"path",attr:{d:"M12 12h-3"},child:[]},{tag:"path",attr:{d:"M12 18h-3"},child:[]},{tag:"path",attr:{d:"M12 15h-2"},child:[]},{tag:"path",attr:{d:"M21 3h-4"},child:[]},{tag:"path",attr:{d:"M19 3v18"},child:[]},{tag:"path",attr:{d:"M21 21h-4"},child:[]}]})(t)}function hre({size:t=18,className:e="",sx:n={},...r}){return C.jsx(zw,{size:18,fontSize:t,className:e,sx:n,...r})}function Yt(t){"@babel/helpers - typeof";return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(t)}var jK=Symbol.for("react.element"),LK=Symbol.for("react.transitional.element"),zK=Symbol.for("react.fragment");function WM(t){return t&&Yt(t)==="object"&&(t.$$typeof===jK||t.$$typeof===LK)&&t.type===zK}function K1(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ze.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(K1(r)):WM(r)&&r.props?n=n.concat(K1(r.props.children,e)):n.push(r))}),n}var Q1={},$K=function(e){};function HK(t,e){}function BK(t,e){}function FK(){Q1={}}function ZM(t,e,n){!e&&!Q1[n]&&(t(!1,n),Q1[n]=!0)}function uv(t,e){ZM(HK,t,e)}function UK(t,e){ZM(BK,t,e)}uv.preMessage=$K;uv.resetWarned=FK;uv.noteOnce=UK;function IK(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JM(t){var e=IK(t,"string");return Yt(e)=="symbol"?e:e+""}function Ve(t,e,n){return(e=JM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function CT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CT(Object(n),!0).forEach(function(r){Ve(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function RT(t){return t instanceof HTMLElement||t instanceof SVGElement}function VK(t){return t&&Yt(t)==="object"&&RT(t.nativeElement)?t.nativeElement:RT(t)?t:null}function zm(t){var e=VK(t);if(e)return e;if(t instanceof ze.Component){var n;return(n=Cl.findDOMNode)===null||n===void 0?void 0:n.call(Cl,t)}return null}var Ab={exports:{}},Ut={};/**
924 * @license React
925 * react-is.production.min.js
926 *
927 * Copyright (c) Facebook, Inc. and its affiliates.
928 *
929 * This source code is licensed under the MIT license found in the
930 * LICENSE file in the root directory of this source tree.
931 */var TT;function qK(){if(TT)return Ut;TT=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case t:switch(x=x.type,x){case n:case i:case r:case h:case p:return x;default:switch(x=x&&x.$$typeof,x){case u:case l:case d:case g:case m:case a:return x;default:return S}}case e:return S}}}return Ut.ContextConsumer=l,Ut.ContextProvider=a,Ut.Element=t,Ut.ForwardRef=d,Ut.Fragment=n,Ut.Lazy=g,Ut.Memo=m,Ut.Portal=e,Ut.Profiler=i,Ut.StrictMode=r,Ut.Suspense=h,Ut.SuspenseList=p,Ut.isAsyncMode=function(){return!1},Ut.isConcurrentMode=function(){return!1},Ut.isContextConsumer=function(x){return y(x)===l},Ut.isContextProvider=function(x){return y(x)===a},Ut.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}
931,Ut.isForwardRef=function(x){return y(x)===d},Ut.isFragment=function(x){return y(x)===n},Ut.isLazy=function(x){return y(x)===g},Ut.isMemo=function(x){return y(x)===m},Ut.isPortal=function(x){return y(x)===e},Ut.isProfiler=function(x){return y(x)===i},Ut.isStrictMode=function(x){return y(x)===r},Ut.isSuspense=function(x){return y(x)===h},Ut.isSuspenseList=function(x){return y(x)===p},Ut.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===i||x===r||x===h||x===p||x===b||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===m||x.$$typeof===a||x.$$typeof===l||x.$$typeof===d||x.$$typeof===E||x.getModuleId!==void 0)},Ut.typeOf=y,Ut}var OT;function GK(){return OT||(OT=1,Ab.exports=qK()),Ab.exports}var kb=GK();function Zw(t,e,n){var r=w.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}var XK=Number(w.version.split(".")[0]),e5=function(e,n){typeof e=="function"?e(n):Yt(e)==="object"&&e&&"current"in e&&(e.current=n)},YK=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];
931var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(l){e5(l,a)})}},KK=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Zw(function(){return YK.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(l,u){return l!==a[u]})})},t5=function(e){var n,r;if(!e)return!1;if(n5(e)&&XK>=19)return!0;var i=kb.isMemo(e)?e.type.type:e.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==kb.ForwardRef||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render)&&e.$$typeof!==kb.ForwardRef)};function n5(t){return w.isValidElement(t)&&!WM(t)}var r5=function(e){if(e&&n5(e)){var n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},W1=w.createContext(null);function QK(t){var e=t.children,n=t.onBatchResize,r=w.useRef(0),i=w.useRef([]),a=w.useContext(W1),l=w.useCallback(function(u,d,h){r.current+=1;var p=r.current;i.current.push({size:u,element:d,data:h}),Promise.resolve().then(function(){p===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(u,d,h)},[n,a]);return w.createElement(W1.Provider,{value:l},e)}var i5=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];n.call(r,l[1],l[0])}},e}()}(),Z1=typeof window<"u"&&typeof document<"u"&&window.document===document,xg=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),WK=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xg):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),ZK=2;function JK(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&u()}function l(){WK(a)}function u(){var d=Date.now();if(n){if(d-i<ZK)return;r=!0}else n=!0,r=!1,setTimeout(l,e);i=d}return u}var eQ=20,tQ=["top","right","bottom","left","width","height","size","weight"],nQ=typeof MutationObserver<"u",rQ=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=JK(this.refresh.bind(this),eQ)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!Z1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nQ?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Z1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=tQ.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 4,422 bytes, line 931
931w t),this.instance_},t.instance_=null,t}(),s5=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},$u=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||xg},a5=dv(0,0,0,0);function wg(t){return parseFloat(t)||0}function AT(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var a=t["border-"+i+"-width"];return r+wg(a)},0)}function iQ(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var a=i[r],l=t["padding-"+a];n[a]=wg(l)}return n}function sQ(t){var e=t.getBBox();return dv(0,0,e.width,e.height)}function aQ(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return a5;var r=$u(t).getComputedStyle(t),i=iQ(r),a=i.left+i.right,l=i.top+i.bottom,u=wg(r.width),d=wg(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+a)!==e&&(u-=AT(r,"left","right")+a),Math.round(d+l)!==n&&(d-=AT(r,"top","bottom")+l)),!lQ(t)){var h=Math.round(u+a)-e,p=Math.round(d+l)-n;Math.abs(h)!==1&&(u-=h),Math.abs(p)!==1&&(d-=p)}return dv(i.left,i.top,u,d)}var oQ=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof $u(t).SVGGraphicsElement}:function(t){return t instanceof $u(t).SVGElement&&typeof t.getBBox=="function"}}();function lQ(t){return t===$u(t).document.documentElement}function cQ(t){return Z1?oQ(t)?sQ(t):aQ(t):a5}function uQ(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return s5(l,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),l}function dv(t,e,n,r){return{x:t,y:e,width:n,height:r}}var dQ=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=dv(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=cQ(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),fQ=function(){function t(e,n){var r=uQ(n);s5(this,{target:e,contentRect:r})}return t}(),hQ=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new i5,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof $u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new dQ(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof $u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new fQ(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),o5=typeof WeakMap<"u"?new WeakMap:new i5,l5=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=rQ.getInstance(),r=new hQ(e,n,this);o5.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){l5.prototype[t]=function(){var e;return(e=o5.get(this))[t].apply(e,arguments)}});var pQ=function(){return typeof xg.ResizeObserver<"u"?xg.ResizeObserver:l5}(),Lo=new Map;function mQ(t){t.forEach(function(e){var n,r=e.target;
931(n=Lo.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var c5=new pQ(mQ);function gQ(t,e){Lo.has(t)||(Lo.set(t,new Set),c5.observe(t)),Lo.get(t).add(e)}function vQ(t,e){Lo.has(t)&&(Lo.get(t).delete(e),Lo.get(t).size||(c5.unobserve(t),Lo.delete(t)))}function ss(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,JM(r.key),r)}}function as(t,e,n){return e&&kT(t.prototype,e),n&&kT(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eg(t,e)}function Sg(t){return Sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sg(t)}function u5(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u5=function(){return!!t})()}function yQ(t,e){if(e&&(Yt(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ho(t)}function Eh(t){var e=u5();return function(){var n,r=Sg(t);if(e){var i=Sg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return yQ(this,n)}}var bQ=function(t){_h(n,t);var e=Eh(n);function n(){return ss(this,n),e.apply(this,arguments)}return as(n,[{key:"render",value:function(){return this.props.children}}]),n}(w.Component);function xQ(t,e){var n=t.children,r=t.disabled,i=w.useRef(null),a=w.useRef(null),l=w.useContext(W1),u=typeof n=="function",d=u?n(i):n,h=w.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!u&&w.isValidElement(d)&&t5(d),m=p?r5(d):null,g=KK(m,i),b=function(){var S;return zm(i.current)||(i.current&&Yt(i.current)==="object"?zm((S=i.current)===null||S===void 0?void 0:S.nativeElement):null)||zm(a.current)};w.useImperativeHandle(e,function(){return b()});var E=w.useRef(t);E.current=t;var y=w.useCallback(function(x){var S=E.current,R=S.onResize,O=S.data,M=x.getBoundingClientRect(),k=M.width,P=M.height,j=x.offsetWidth,H=x.offsetHeight,I=Math.floor(k),A=Math.floor(P);if(h.current.width!==I||h.current.height!==A||h.current.offsetWidth!==j||h.current.offsetHeight!==H){var $={width:I,height:A,offsetWidth:j,offsetHeight:H};h.current=$;var L=j===Math.round(k)?k:j,U=H===Math.round(P)?P:H,V=qe(qe({},$),{},{offsetWidth:L,offsetHeight:U});l==null||l(V,x,O),R&&Promise.resolve().then(function(){R(V,x)})}},[]);return w.useEffect(function(){var x=b();return x&&!r&&gQ(x,y),function(){return vQ(x,y)}},[i.current,r]),w.createElement(bQ,{ref:a},p?w.cloneElement(d,{ref:g}):d)}var wQ=w.forwardRef(xQ),SQ="rc-observer-key";function _Q(t,e){var n=t.children,r=typeof n=="function"?[n]:K1(n);return r.map(function(i,a){var l=(i==null?void 0:i.key)||"".concat(SQ,"-").concat(a);return w.createElement(wQ,La({},t,{key:l,ref:a===0?e:void 0}),i)})}var Jw=w.forwardRef(_Q);Jw.Collection=QK;function J1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function EQ(t){if(Array.isArray(t))return J1(t)}function d5(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eS(t,e){if(t){if(typeof t=="string")return J1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J1(t,e):void 0}}function CQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
932In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qo(t){return EQ(t)||d5(t)||eS(t)||CQ()}var f5=function(e){return+setTimeout(e,16)},h5=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(f5=function(e){return window.requestAnimationFrame(e)},h5=function(e){return window.cancelAnimationFrame(e)});var MT=0,tS=new Map;function p5(t){tS.delete(t)}var ki=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;MT+=1;var r=MT;function i(a){if(a===0)p5(r),e();else{var l=f5(function(){i(a-1)});tS.set(r,l)}}return i(n),r};ki.cancel=function(t){var e=tS.get(t);return p5(t),h5(e)};function m5(t){if(Array.isArray(t))return t}function RQ(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,l,u=[],d=!0,h=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;d=!1}else for(;
932!(d=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);d=!0);}catch(p){h=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw i}}return u}}function g5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
933In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function st(t,e){return m5(t)||RQ(t,e)||eS(t,e)||g5()}function Xf(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function Ua(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function TQ(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var NT="data-rc-order",DT="data-rc-priority",OQ="rc-util-key",ex=new Map;function v5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):OQ}function fv(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function AQ(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function nS(t){return Array.from((ex.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function y5(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ua())return null;var n=e.csp,r=e.prepend,i=e.priority,a=i===void 0?0:i,l=AQ(r),u=l==="prependQueue",d=document.createElement("style");d.setAttribute(NT,l),u&&a&&d.setAttribute(DT,"".concat(a)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=t;var h=fv(e),p=h.firstChild;if(r){if(u){var m=(e.styles||nS(h)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(NT)))return!1;var b=Number(g.getAttribute(DT)||0);return a>=b});if(m.length)return h.insertBefore(d,m[m.length-1].nextSibling),d}h.insertBefore(d,p)}else h.appendChild(d);return d}function b5(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=fv(e);return(e.styles||nS(n)).find(function(r){return r.getAttribute(v5(e))===t})}function x5(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=b5(t,e);if(n){var r=fv(e);r.removeChild(n)}}function kQ(t,e){var n=ex.get(t);if(!n||!TQ(document,n)){var r=y5("",e),i=r.parentNode;ex.set(t,i),t.removeChild(r)}}function mu(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=fv(n),i=nS(r),a=qe(qe({},n),{},{styles:i});kQ(r,a);var l=b5(e,a);if(l){var u,d;if((u=a.csp)!==null&&u!==void 0&&u.nonce&&l.nonce!==((d=a.csp)===null||d===void 0?void 0:d.nonce)){var h;l.nonce=(h=a.csp)===null||h===void 0?void 0:h.nonce}return l.innerHTML!==t&&(l.innerHTML=t),l}var p=y5(t,a);return p.setAttribute(v5(a),e),p}function _g(t,e){if(t==null)return{};var n,r,i=mw(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function MQ(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,l){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(a);if(uv(!d,"Warning: There may be circular references"),d)return!1;if(a===l)return!0;if(n&&u>1)return!1;r.add(a);var h=u+1;if(Array.isArray(a)){if(!Array.isArray(l)||a.length!==l.length)return!1;for(var p=0;p<a.length;p++)if(!i(a[p],l[p],h))return!1;return!0}if(a&&l&&Yt(a)==="object"&&Yt(l)==="object"){var m=Object.keys(a);return m.length!==Object.keys(l).length?!1:m.every(function(g){return i(a[g],l[g],h)})}return!1}return i(t,e)}var NQ="%";function tx(t){return t.join(NQ)}var DQ=function(){function t(e){ss(this,t),Ve(this,"instanceId",void 0),Ve(this,"cac
933he",new Map),this.instanceId=e}return as(t,[{key:"get",value:function(n){return this.opGet(tx(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(tx(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),t}(),Hu="data-token-hash",Es="data-css-hash",zo="__cssinjs_instance__";function PQ(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Es,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(i){i[zo]=i[zo]||t,i[zo]===t&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Es,"]"))).forEach(function(i){var a=i.getAttribute(Es);if(r[a]){if(i[zo]===t){var l;(l=i.parentNode)===null||l===void 0||l.removeChild(i)}}else r[a]=!0})}return new DQ(t)}var Ch=w.createContext({hashPriority:"low",cache:PQ(),defaultCache:!0});function jQ(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var rS=function(){function t(){ss(this,t),Ve(this,"cache",void 0),Ve(this,"keys",void 0),Ve(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return as(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(u){if(!l)l=void 0;else{var d;l=(d=l)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(u)}}),(r=l)!==null&&r!==void 0&&r.value&&a&&(l.value[1]=this.cacheCallTimes++),(i=l)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(h,p){var m=st(h,2),g=m[1];return i.internalGet(p)[1]<g?[p,i.internalGet(p)[1]]:h},[this.keys[0],this.cacheCallTimes]),l=st(a,1),u=l[0];this.delete(u)}this.keys.push(n)}var d=this.cache;n.forEach(function(h,p){if(p===n.length-1)d.set(h,{value:[r,i.cacheCallTimes++]});else{var m=d.get(h);m?m.map||(m.map=new Map):d.set(h,{map:new Map}),d=d.get(h).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var l=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!jQ(r,n)}),this.deleteByPath(this.cache,n)}}]),t}();Ve(rS,"MAX_CACHE_SIZE",20);Ve(rS,"MAX_CACHE_OFFSET",5);var PT=0,w5=function(){function t(e){ss(this,t),Ve(this,"derivatives",void 0),Ve(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=PT,e.length===0&&(e.length>0,void 0),PT+=1}return as(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),t}(),Mb=new rS;function nx(t){var e=Array.isArray(t)?t:[t];return Mb.has(e)||Mb.set(e,new w5(e)),Mb.get(e)}var LQ=new WeakMap,Nb={};function zQ(t,e){for(var n=LQ,r=0;r<e.length;r+=1){var i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(Nb)||n.set(Nb,t()),n.get(Nb)}var jT=new WeakMap;function Af(t){var e=jT.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof w5?e+=r.id:r&&Yt(r)==="object"?e+=Af(r):e+=r}),e=Xf(e),jT.set(t,e)),e}function LT(t,e){return Xf("".concat(e,"_").concat(Af(t)))}var rx=Ua();function ix(t){return typeof t=="number"?"".concat(t,"px"):t}function Eg(t,e,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return t;var l=qe(qe({},i),{},(r={},Ve(r,Hu,e),Ve(r,Es,n),r)),u=Object.keys(l).map(function(d){var h=l[d];return h?"".concat(d,'="').concat(h,'"'):null}).filter(function(d){return d}).join(" ");return"<style ".concat(u,">").concat(t,"</style>")}var $m=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},$Q=function(e,n,r){return Object.keys(e).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(i){var a=st(i,2),l=a[0],u=a[1];return"".concat(l,":").concat(u,";")}).join(""),"}"):""},S5=function(e,n,r){var i={},a={};return Object.entries(e).forEach(function(l){var u,d,h=st(l,2),p=h[0],m=h[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[p])a[p]=m;else if((typeof m=="string"||typeof m=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[p])){var g,b=$m(p,r==null?void 0:r.prefix);i[b]=typeof m=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[p])?"".concat(m,"px"):String(m),a[p]="var(".concat(b,")")}}),[a,$Q(i,n,{scope:r==null?void 0:r.scope})]},zT=Ua()?w.useLayoutEffect:w.useEffect,gu=function(e,n){var r=w.useRef(!0);zT(function(){return e(r.current)},n),zT(function(){return r.current=!1,function(){r.current=!0}},[])},HQ=qe({},Bo),$T=HQ.useInsertionEffect,BQ=function(e,n,r){w.useMemo(e,r),gu(function(){return n(!0)},r)},FQ=$T?function(t,e,n){return $T(function(){return t(),e()},n)}:BQ,UQ=qe({},Bo),IQ=UQ.useInsertionEffect,VQ=function(e){var n=[],r=!1;function i(a){r||n.push(a)}return w.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEac
933h(function(a){return a()})}},e),i},qQ=function(){return function(e){e()}},GQ=typeof IQ<"u"?VQ:qQ;function iS(t,e,n,r,i){var a=w.useContext(Ch),l=a.cache,u=[t].concat(Qo(e)),d=tx(u),h=GQ([d]),p=function(E){l.opUpdate(d,function(y){var x=y||[void 0,void 0],S=st(x,2),R=S[0],O=R===void 0?0:R,M=S[1],k=M,P=k||n(),j=[O,P];return E?E(j):j})};w.useMemo(function(){p()},[d]);var m=l.opGet(d),g=m[1];return FQ(function(){i==null||i(g)},function(b){return p(function(E){var y=st(E,2),x=y[0],S=y[1];return b&&x===0&&(i==null||i(g)),[x+1,S]}),function(){l.opUpdate(d,function(E){var y=E||[],x=st(y,2),S=x[0],R=S===void 0?0:S,O=x[1],M=R-1;return M===0?(h(function(){(b||!l.opGet(d))&&(r==null||r(O,!1))}),null):[R-1,O]})}},[d]),g}var XQ={},YQ="css",_l=new Map;function KQ(t){_l.set(t,(_l.get(t)||0)+1)}function QQ(t,e){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Hu,'="').concat(t,'"]'));n.forEach(function(r){if(r[zo]===e){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var WQ=0;function ZQ(t,e){_l.set(t,(_l.get(t)||0)-1);var n=Array.from(_l.keys()),r=n.filter(function(i){var a=_l.get(i)||0;return a<=0});n.length-r.length>WQ&&r.forEach(function(i){QQ(i,e),_l.delete(i)})}var JQ=function(e,n,r,i){var a=r.getDerivativeToken(e),l=qe(qe({},a),n);return i&&(l=i(l)),l},_5="token";function eW(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=w.useContext(Ch),i=r.cache.instanceId,a=r.container,l=n.salt,u=l===void 0?"":l,d=n.override,h=d===void 0?XQ:d,p=n.formatToken,m=n.getComputedToken,g=n.cssVar,b=zQ(function(){return Object.assign.apply(Object,[{}].concat(Qo(e)))},e),E=Af(b),y=Af(h),x=g?Af(g):"",S=iS(_5,[u,t.id,E,y,x],function(){var R,O=m?m(b,h,t):JQ(b,h,t,p),M=qe({},O),k="";if(g){var P=S5(O,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),j=st(P,2);O=j[0],k=j[1]}var H=LT(O,u);O._tokenKey=H,M._tokenKey=LT(M,u);var I=(R=g==null?void 0:g.key)!==null&&R!==void 0?R:H;O._themeKey=I,KQ(I);var A="".concat(YQ,"-").concat(Xf(H));return O._hashId=A,[O,A,M,k,(g==null?void 0:g.key)||""]},function(R){ZQ(R[0]._themeKey,i)},function(R){var O=st(R,4),M=O[0],k=O[3];if(g&&k){var P=mu(k,Xf("css-variables-".concat(M._themeKey)),{mark:Es,prepend:"queue",attachTo:a,priority:-999});P[zo]=i,P.setAttribute(Hu,M._themeKey)}});return S}var tW=function(e,n,r){var i=st(e,5),a=i[2],l=i[3],u=i[4],d=r||{},h=d.plain;if(!l)return null;var p=a._tokenKey,m=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},b=Eg(l,u,p,g,h);return[m,p,b]},nW={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},E5="comm",C5="rule",R5="decl",rW="@import",iW="@namespace",sW="@keyframes",aW="@layer",T5=Math.abs,sS=String.fromCharCode;function O5(t){return t.trim()}function Hm(t,e,n){return t.replace(e,n)}function oW(t,e,n){return t.indexOf(e,n)}function vu(t,e){return t.charCodeAt(e)|0}function Bu(t,e,n){return t.slice(e,n)}function Is(t){return t.length}function lW(t){return t.length}function cm(t,e){return e.push(t),t}var hv=1,Fu=1,A5=0,ns=0,Qn=0,td="";function aS(t,e,n,r,i,a,l,u){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:hv,column:Fu,length:l,return:"",siblings:u}}function cW(){return Qn}function uW(){return Qn=ns>0?vu(td,--ns):0,Fu--,Qn===10&&(Fu=1,hv--),Qn}function Cs(){return Qn=ns<A5?vu(td,ns++):0,Fu++,Qn===10&&(Fu=1,hv++),Qn}function $o(){return vu(td,ns)}function Bm(){return ns}function pv(t,e){return Bu(td,t,e)}function Yf(t){switch(t){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 dW(t){return hv=Fu=1,A5=Is(td=t),ns=0,[]}function fW(t){return td="",t}function Db(t){return O5(pv(ns-1,sx(t===91?t+2:t===40?t+1:t)))}function hW(t){for(;(Qn=$o())&&Qn<33;)Cs();return Yf(t)>2||Yf(Qn)>3?"":" "}function pW(t,e){for(;--e&&Cs()&&!(Qn<48||Qn>102||Qn>57&&Qn<65||Qn>70&&Qn<97););return pv(t,Bm()+(e<6&&$o()==32&&Cs()==32))}function sx(t){for(;Cs();)switch(Qn){case t:return ns;case 34:case 39:t!==34&&t!==39&&sx(Qn);break;case 40:t===41&&sx(t);break;case 92:Cs();break}return ns}function mW(t,e){for(;Cs()&&t+Qn!==57;)if(t+Qn===84&&$o()===47)break;return"/*"+pv(e,ns-1)+"*"+sS(t===47?t:Cs())}function gW(t){for(;!Yf($o());)Cs();return pv(t,ns)}
933function vW(t){return fW(Fm("",null,null,null,[""],t=dW(t),0,[0],t))}function Fm(t,e,n,r,i,a,l,u,d){for(var h=0,p=0,m=l,g=0,b=0,E=0,y=1,x=1,S=1,R=0,O="",M=i,k=a,P=r,j=O;x;)switch(E=R,R=Cs()){case 40:if(E!=108&&vu(j,m-1)==58){oW(j+=Hm(Db(R),"&","&\f"),"&\f",T5(h?u[h-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:j+=Db(R);break;case 9:case 10:case 13:case 32:j+=hW(E);break;case 92:j+=pW(Bm()-1,7);continue;case 47:switch($o()){case 42:case 47:cm(yW(mW(Cs(),Bm()),e,n,d),d),(Yf(E||1)==5||Yf($o()||1)==5)&&Is(j)&&Bu(j,-1,void 0)!==" "&&(j+=" ");break;default:j+="/"}break;case 123*y:u[h++]=Is(j)*S;case 125*y:case 59:case 0:switch(R){case 0:case 125:x=0;case 59+p:S==-1&&(j=Hm(j,/\f/g,"")),b>0&&(Is(j)-m||y===0&&E===47)&&cm(b>32?BT(j+";",r,n,m-1,d):BT(Hm(j," ","")+";",r,n,m-2,d),d);break;case 59:j+=";";default:if(cm(P=HT(j,e,n,h,p,i,u,O,M=[],k=[],m,a),a),R===123)if(p===0)Fm(j,e,P,P,M,a,m,u,k);else{switch(g){case 99:if(vu(j,3)===110)break;case 108:if(vu(j,2)===97)break;default:p=0;case 100:case 109:case 115:}p?Fm(t,P,P,r&&cm(HT(t,P,P,0,0,i,u,O,i,M=[],m,k),k),i,k,m,u,r?M:k):Fm(j,P,P,P,[""],k,0,u,k)}}h=p=b=0,y=S=1,O=j="",m=l;break;case 58:m=1+Is(j),b=E;default:if(y<1){if(R==123)--y;else if(R==125&&y++==0&&uW()==125)continue}switch(j+=sS(R),R*y){case 38:S=p>0?1:(j+="\f",-1);break;case 44:u[h++]=(Is(j)-1)*S,S=1;break;case 64:$o()===45&&(j+=Db(Cs())),g=$o(),p=m=Is(O=j+=gW(Bm())),R++;break;case 45:E===45&&Is(j)==2&&(y=0)}}return a}function HT(t,e,n,r,i,a,l,u,d,h,p,m){for(var g=i-1,b=i===0?a:[""],E=lW(b),y=0,x=0,S=0;y<r;++y)for(var R=0,O=Bu(t,g+1,g=T5(x=l[y])),M=t;R<E;++R)(M=O5(x>0?b[R]+" "+O:Hm(O,/&\f/g,b[R])))&&(d[S++]=M);return aS(t,e,n,i===0?C5:u,d,h,p,m)}function yW(t,e,n,r){return aS(t,e,n,E5,sS(cW()),Bu(t,2,-2),0,r)}function BT(t,e,n,r,i){return aS(t,e,n,R5,Bu(t,0,r),Bu(t,r+1,-1),r,i)}function ax(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function bW(t,e,n,r){switch(t.type){case aW:if(t.children.length)break;case rW:case iW:case R5:return t.return=t.return||t.value;case E5:return"";case sW:return t.return=t.value+"{"+ax(t.children,r)+"}";case C5:if(!Is(t.value=t.props.join(",")))return""}return Is(n=ax(t.children,r))?t.return=t.value+"{"+n+"}":""}var FT="data-ant-cssinjs-cache-path",k5="_FILE_STYLE__",Il,M5=!0;function xW(){if(!Il&&(Il={},Ua())){var t=document.createElement("div");t.className=FT,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(i){var a=i.split(":"),l=st(a,2),u=l[0],d=l[1];Il[u]=d});var n=document.querySelector("style[".concat(FT,"]"));if(n){var r;M5=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(t)}}function wW(t){return xW(),!!Il[t]}function SW(t){var e=Il[t],n=null;if(e&&Ua())if(M5)n=k5;else{var r=document.querySelector("style[".concat(Es,'="').concat(Il[t],'"]'));r?n=r.innerHTML:delete Il[t]}return[n,e]}var _W="_skip_check_",N5="_multi_value_";function Um(t){var e=ax(vW(t),bW);return e.replace(/\{%%%\:[^;];}/g,";")}function EW(t){return Yt(t)==="object"&&t&&(_W in t||N5 in t)}function UT(t,e,n){if(!e)return t;var r=".".concat(e),i=n==="low"?":where(".concat(r,")"):r,a=t.split(",").map(function(l){var u,d=l.trim().split(/\s+/),h=d[0]||"",p=((u=h.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return h="".concat(p).concat(i).concat(h.slice(p.length)),[h].concat(Qo(d.slice(1))).join(" ")});return a.join(",")}var CW=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,l=r.parentSelectors,u=n.hashId,d=n.layer;n.path;var h=n.hashPriority,p=n.transformers,m=p===void 0?[]:p;n.linters;var g="",b={};function E(S){var R=S.getName(u);if(!b[R]){var O=t(S.style,n,{root:!1,parentSelectors:l}),M=st(O,1),k=M[0];b[R]="@keyframes ".concat(S.getName(u)).concat(k)}}function y(S){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(O){Array.isArray(O)?y(O,R):O&&R.push(O)}),R}var x=y(Array.isArray(e)?e:[e]);return x.forEach(function(S){var R=typeof S=="string"&&!i?{}:S;
933if(typeof R=="string")g+="".concat(R,`
934`);else if(R._keyframe)E(R);else{var O=m.reduce(function(M,k){var P;return(k==null||(P=k.visit)===null||P===void 0?void 0:P.call(k,M))||M},R);Object.keys(O).forEach(function(M){var k=O[M];if(Yt(k)==="object"&&k&&(M!=="animationName"||!k._keyframe)&&!EW(k)){var P=!1,j=M.trim(),H=!1;(i||a)&&u?j.startsWith("@")?P=!0:j==="&"?j=UT("",u,h):j=UT(M,u,h):i&&!u&&(j==="&"||j==="")&&(j="",H=!0);var I=t(k,n,{root:H,injectHash:P,parentSelectors:[].concat(Qo(l),[j])}),A=st(I,2),$=A[0],L=A[1];b=qe(qe({},b),L),g+="".concat(j).concat($)}else{let Q=function(F,J){var ae=F.replace(/[A-Z]/g,function(X){return"-".concat(X.toLowerCase())}),ye=J;!nW[F]&&typeof ye=="number"&&ye!==0&&(ye="".concat(ye,"px")),F==="animationName"&&J!==null&&J!==void 0&&J._keyframe&&(E(J),ye=J.getName(u)),g+="".concat(ae,":").concat(ye,";")};var U,V=(U=k==null?void 0:k.value)!==null&&U!==void 0?U:k;Yt(k)==="object"&&k!==null&&k!==void 0&&k[N5]&&Array.isArray(V)?V.forEach(function(F){Q(M,F)}):Q(M,V)}})}}),i?d&&(g&&(g="@layer ".concat(d.name," {").concat(g,"}")),d.dependencies&&(b["@layer ".concat(d.name)]=d.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(d.name,";")}).join(`
935`))):g="{".concat(g,"}"),[g,b]};function D5(t,e){return Xf("".concat(t.join("%")).concat(e))}function RW(){return null}var P5="style";function ox(t,e){var n=t.token,r=t.path,i=t.hashId,a=t.layer,l=t.nonce,u=t.clientOnly,d=t.order,h=d===void 0?0:d,p=w.useContext(Ch),m=p.autoClear;p.mock;var g=p.defaultCache,b=p.hashPriority,E=p.container,y=p.ssrInline,x=p.transformers,S=p.linters,R=p.cache,O=p.layer,M=n._tokenKey,k=[M];O&&k.push("layer"),k.push.apply(k,Qo(r));var P=rx,j=iS(P5,k,function(){var L=k.join("|");if(wW(L)){var U=SW(L),V=st(U,2),Q=V[0],F=V[1];if(Q)return[Q,M,F,{},u,h]}var J=e(),ae=CW(J,{hashId:i,hashPriority:b,layer:O?a:void 0,path:r.join("-"),transformers:x,linters:S}),ye=st(ae,2),X=ye[0],ee=ye[1],ve=Um(X),le=D5(k,ve);return[ve,M,le,ee,u,h]},function(L,U){var V=st(L,3),Q=V[2];(U||m)&&rx&&x5(Q,{mark:Es})},function(L){var U=st(L,4),V=U[0];U[1];var Q=U[2],F=U[3];if(P&&V!==k5){var J={mark:Es,prepend:O?!1:"queue",attachTo:E,priority:h},ae=typeof l=="function"?l():l;ae&&(J.csp={nonce:ae});var ye=[],X=[];Object.keys(F).forEach(function(ve){ve.startsWith("@layer")?ye.push(ve):X.push(ve)}),ye.forEach(function(ve){mu(Um(F[ve]),"_layer-".concat(ve),qe(qe({},J),{},{prepend:!0}))});var ee=mu(V,Q,J);ee[zo]=R.instanceId,ee.setAttribute(Hu,M),X.forEach(function(ve){mu(Um(F[ve]),"_effect-".concat(ve),J)})}}),H=st(j,3),I=H[0],A=H[1],$=H[2];return function(L){var U;if(!y||P||!g)U=w.createElement(RW,null);else{var V;U=w.createElement("style",La({},(V={},Ve(V,Hu,A),Ve(V,Es,$),V),{dangerouslySetInnerHTML:{__html:I}}))}return w.createElement(w.Fragment,null,U,L)}}var TW=function(e,n,r){var i=st(e,6),a=i[0],l=i[1],u=i[2],d=i[3],h=i[4],p=i[5],m=r||{},g=m.plain;if(h)return null;var b=a,E={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return b=Eg(a,l,u,E,g),d&&Object.keys(d).forEach(function(y){if(!n[y]){n[y]=!0;var x=Um(d[y]),S=Eg(x,l,"_effect-".concat(y),E,g);y.startsWith("@layer")?b=S+b:b+=S}}),[p,u,b]},j5="cssVar",OW=function(e,n){var r=e.key,i=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,h=d===void 0?"":d,p=w.useContext(Ch),m=p.cache.instanceId,g=p.container,b=u._tokenKey,E=[].concat(Qo(e.path),[r,h,b]),y=iS(j5,E,function(){var x=n(),S=S5(x,r,{prefix:i,unitless:a,ignore:l,scope:h}),R=st(S,2),O=R[0],M=R[1],k=D5(E,M);return[O,M,k,r]},function(x){var S=st(x,3),R=S[2];rx&&x5(R,{mark:Es})},function(x){var S=st(x,3),R=S[1],O=S[2];if(R){var M=mu(R,O,{mark:Es,prepend:"queue",attachTo:g,priority:-999});M[zo]=m,M.setAttribute(Hu,r)}});return y},AW=function(e,n,r){var i=st(e,4),a=i[1],l=i[2],u=i[3],d=r||{},h=d.plain;if(!a)return null;var p=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},g=Eg(a,u,l,m,h);return[p,l,g]},mf;mf={},Ve(mf,P5,TW),Ve(mf,_5,tW),Ve(mf,j5,AW);var pre=function(){function t(e,n){ss(this,t),Ve(this,"name",void 0),Ve(this,"style",void 0),Ve(this,"_keyframe",!0),this.name=e,this.style=n}return as(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t}();function eu(t){return t.notSplit=!0,t}eu(["borderTop","borderBottom"]),eu(["borderTop"]),eu(["borderBottom"]),eu(["borderLeft","borderRight"]),eu(["borderLeft"]),eu(["borderRight"]);var kW=w.createContext({});function MW(t){return m5(t)||d5(t)||eS(t)||g5()}function lx(t,e){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function L5(t,e,n,r){if(!e.length)return n;var i=MW(e),a=i[0],l=i.slice(1),u;return!t&&typeof a=="number"?u=[]:Array.isArray(t)?u=Qo(t):u=qe({},t),r&&n===void 0&&l.length===1?delete u[a][l[0]]:u[a]=L5(u[a],l,n,r),u}function Pb(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!lx(t,e.slice(0,-1))?t:L5(t,e,n,r)}function NW(t){return Yt(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function IT(t){return Array.isArray(t)?[]:{}}var DW=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function PW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=IT(e[0]);return e.forEach(function(i){function a(l,u){var d=new Set(u),h=lx(i,l),p=Array.isArray(h);if(p||NW(h)){if(!d.has(h)){d.add(h);var m=lx(r,l);p?r=Pb(r,l,[]):(!m||Yt(m)!=="object")&&(r=Pb(r,l,IT(h))),DW(h).forEac
935h(function(g){a([].concat(Qo(l),[g]),d)})}}else r=Pb(r,l,h)}a([])}),r}const jW=w.createContext({}),LW=w.createContext(void 0);var zW={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},$W=qe(qe({},zW),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const HW={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},$W),Object.assign({},HW);const Ei="${label} is not a valid ${type}",mv={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ei,method:Ei,array:Ei,object:Ei,number:Ei,date:Ei,boolean:Ei,integer:Ei,float:Ei,regexp:Ei,email:Ei,url:Ei,hex:Ei},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},mv.Modal);let Im=[];const VT=()=>Im.reduce((t,e)=>Object.assign(Object.assign({},t),e),mv.Modal);function BW(t){if(t){const e=Object.assign({},t);return Im.push(e),VT(),()=>{Im=Im.filter(n=>n!==e),VT()}}Object.assign({},mv.Modal)}const z5=w.createContext(void 0),FW="internalMark",UW=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;w.useEffect(()=>BW(e==null?void 0:e.Modal),[e]);const i=w.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return w.createElement(z5.Provider,{value:i},n)},$5={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Kf=Object.assign(Object.assign({},$5),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
936'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
937'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),cr=Math.round;function jb(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=e(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const qT=(t,e,n)=>n===0?t:t/100;function gf(t,e){const n=e||255;return t>n?n:t<0?0:t}class Hn{constructor(e){Ve(this,"isValid",!0),Ve(this,"r",0),Ve(this,"g",0),Ve(this,"b",0),Ve(this,"a",1),Ve(this,"_h",void 0),Ve(this,"_s",void 0),Ve(this,"_l",void 0),Ve(this,"_v",void 0),Ve(this,"_max",void 0),Ve(this,"_min",void 0),Ve(this,"_brightness",void 0);function n(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let i=function(a){return r.startsWith(a)};const r=e.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(e instanceof Hn)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=gf(e.r),this.g=gf(e.g),this.b=gf(e.b),this.a=typeof e.a=="number"?gf(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=e(this.r),r=e(this.g),i=e(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=cr(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(e,n=50){const r=this._c(e),i=n/100,a=u=>(r[u]-this[u])*i+this[u],l={r:cr(a("r")),g:cr(a("g")),b:cr(a("b")),a:cr(a("a")*100)/100};return this._c(l)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}
937onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),i=a=>cr((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=cr(this.a*255).toString(16);e+=a.length===2?a:"0"+a}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=cr(this.getSaturation()*100),r=cr(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const i=this.clone();return i[e]=gf(n,r),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a:i}){if(this._h=e%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const g=cr(r*255);this.r=g,this.g=g,this.b=g}let a=0,l=0,u=0;const d=e/60,h=(1-Math.abs(2*r-1))*n,p=h*(1-Math.abs(d%2-1));d>=0&&d<1?(a=h,l=p):d>=1&&d<2?(a=p,l=h):d>=2&&d<3?(l=h,u=p):d>=3&&d<4?(l=p,u=h):d>=4&&d<5?(a=p,u=h):d>=5&&d<6&&(a=h,u=p);const m=r-h/2;this.r=cr((a+m)*255),this.g=cr((l+m)*255),this.b=cr((u+m)*255)}fromHsv({h:e,s:n,v:r,a:i}){this._h=e%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=cr(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=e/60,u=Math.floor(l),d=l-u,h=cr(r*(1-n)*255),p=cr(r*(1-n*d)*255),m=cr(r*(1-n*(1-d))*255);switch(u){case 0:this.g=m,this.b=h;break;case 1:this.r=p,this.b=h;break;case 2:this.r=h,this.b=m;break;case 3:this.r=h,this.g=p;break;case 4:this.r=m,this.g=h;break;case 5:default:this.g=h,this.b=p;break}}fromHsvString(e){const n=jb(e,qT);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=jb(e,qT);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=jb(e,(r,i)=>i.includes("%")?cr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var um=2,GT=.16,IW=.05,VW=.05,qW=.15,H5=5,B5=4,GW=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function XT(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-um*e:Math.round(t.h)+um*e:r=n?Math.round(t.h)+um*e:Math.round(t.h)-um*e,r<0?r+=360:r>=360&&(r-=360),r}function YT(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-GT*e:e===B5?r=t.s+GT:r=t.s+IW*e,r>1&&(r=1),n&&e===H5&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function KT(t,e,n){var r;return n?r=t.v+VW*e:r=t.v-qW*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Cg(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Hn(t),i=r.toHsv(),a=H5;a>0;a-=1){var l=new Hn({h:XT(i,a,!0),s:YT(i,a,!0),v:KT(i,a,!0)});n.push(l)}n.push(r);for(var u=1;u<=B5;u+=1){var d=new Hn({h:XT(i,u),s:YT(i,u),v:KT(i,u)});n.push(d)}return e.theme==="dark"?GW.map(function(h){var p=h.index,m=h.amount;return new Hn(e.backgroundColor||"#141414").mix(n[p],m).toHexString()}):n.map(function(h){return h.toHexString()})}var Lb={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},cx=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];cx.primary=cx[5];var ux=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ux.primary=ux[5];var dx=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];dx.primary=dx[5];var fx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];fx.primary=fx[5];
937var hx=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];hx.primary=hx[5];var px=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];px.primary=px[5];var mx=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];mx.primary=mx[5];var gx=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];gx.primary=gx[5];var vx=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];vx.primary=vx[5];var yx=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];yx.primary=yx[5];var bx=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];bx.primary=bx[5];var xx=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];xx.primary=xx[5];var wx=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];wx.primary=wx[5];var zb={red:cx,volcano:ux,orange:dx,gold:fx,yellow:hx,lime:px,green:mx,cyan:gx,blue:vx,geekblue:yx,purple:bx,magenta:xx,grey:wx};function XW(t,{generateColorPalettes:e,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:u,colorBgBase:d,colorTextBase:h}=t,p=e(u),m=e(r),g=e(i),b=e(a),E=e(l),y=n(d,h),x=t.colorLink||t.colorInfo,S=e(x),R=new Hn(b[1]).mix(new Hn(b[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:R,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new Hn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const YW=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function KW(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},YW(r))}const QW=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function WW(t){return(t+8)/t}function ZW(t){const e=Array.from({length:10}).map((n,r)=>{const i=r-1,a=t*Math.pow(Math.E,i/5),l=r>1?Math.floor(a):Math.ceil(a);return Math.floor(l/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:WW(n)}))}const JW=t=>{const e=ZW(t),n=e.map(p=>p.size),r=e.map(p=>p.lineHeight),i=n[1],a=n[0],l=n[2],u=r[1],d=r[0],h=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:h,lineHeightSM:d,fontHeight:Math.round(u*i),fontHeightLG:Math.round(h*l),fontHeightSM:Math.round(d*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function eZ(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const qi=(t,e)=>new Hn(t).setA(e).toRgbString(),vf=(t,e)=>new Hn(t).darken(e).toHexString(),tZ=t=>{const e=Cg(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},nZ=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qi(r,.88),colorTextSecondary:qi(r,.65),colorTextTertiary:qi(r,.45),colorTextQuaternary:qi(r,.25),colorFill:qi(r,.15),colorFillSecondary:qi(r,.06),colorFillTertiary:qi(r,.04),colorFillQuaternary:qi(r,.02),colorBgSolid:qi(r,1),c
937olorBgSolidHover:qi(r,.75),colorBgSolidActive:qi(r,.95),colorBgLayout:vf(n,4),colorBgContainer:vf(n,0),colorBgElevated:vf(n,0),colorBgSpotlight:qi(r,.85),colorBgBlur:"transparent",colorBorder:vf(n,15),colorBorderSecondary:vf(n,6)}};function rZ(t){Lb.pink=Lb.magenta,zb.pink=zb.magenta;const e=Object.keys($5).map(n=>{const r=t[n]===Lb[n]?zb[n]:Cg(t[n]);return Array.from({length:10},()=>1).reduce((i,a,l)=>(i[`${n}-${l+1}`]=r[l],i[`${n}${l+1}`]=r[l],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),XW(t,{generateColorPalettes:tZ,generateNeutralColorPalettes:nZ})),JW(t.fontSize)),eZ(t)),QW(t)),KW(t))}const F5=nx(rZ),Sx={token:Kf,override:{override:Kf},hashed:!0},U5=ze.createContext(Sx),_x="ant",oS="anticon",iZ=(t,e)=>e||(t?`${_x}-${t}`:_x),Uu=w.createContext({getPrefixCls:iZ,iconPrefixCls:oS}),{Consumer:mre}=Uu,sZ=`-ant-${Date.now()}-${Math.random()}`;function aZ(t,e){const n={},r=(l,u)=>{let d=l.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},i=(l,u)=>{const d=new Hn(l),h=Cg(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=h[1],n[`${u}-color-hover`]=h[4],n[`${u}-color-active`]=h[6],n[`${u}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=h[0],n[`${u}-color-deprecated-border`]=h[2]};if(e.primaryColor){i(e.primaryColor,"primary");const l=new Hn(e.primaryColor),u=Cg(l.toRgbString());u.forEach((h,p)=>{n[`primary-${p+1}`]=h}),n["primary-color-deprecated-l-35"]=r(l,h=>h.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,h=>h.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,h=>h.tint(20)),n["primary-color-deprecated-t-50"]=r(l,h=>h.tint(50)),n["primary-color-deprecated-f-12"]=r(l,h=>h.setA(h.a*.12));const d=new Hn(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,h=>h.setA(h.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,h=>h.darken(2))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),`
938  :root {
939    ${Object.keys(n).map(l=>`--${t}-${l}: ${n[l]};`).join(`
940`)}
941  }
942  `.trim()}function oZ(t,e){const n=aZ(t,e);Ua()&&mu(n,`${sZ}-dynamic-theme`)}const Ex=w.createContext(!1),lZ=({children:t,disabled:e})=>{const n=w.useContext(Ex);return w.createElement(Ex.Provider,{value:e??n},t)},Qf=w.createContext(void 0),cZ=({children:t,size:e})=>{const n=w.useContext(Qf);return w.createElement(Qf.Provider,{value:e||n},t)};function uZ(){const t=w.useContext(Ex),e=w.useContext(Qf);return{componentDisabled:t,componentSize:e}}var I5=as(function t(){ss(this,t)}),V5="CALC_UNIT",dZ=new RegExp(V5,"g");function $b(t){return typeof t=="number"?"".concat(t).concat(V5):t}var fZ=function(t){_h(n,t);var e=Eh(n);function n(r,i){var a;ss(this,n),a=e.call(this),Ve(Ho(a),"result",""),Ve(Ho(a),"unitlessCssVar",void 0),Ve(Ho(a),"lowPriority",void 0);var l=Yt(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):l==="number"?a.result=$b(r):l==="string"&&(a.result=r),a}return as(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat($b(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat($b(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,l=i||{},u=l.unit,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(h){return a.result.includes(h)})&&(d=!1),this.result=this.result.replace(dZ,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(I5),hZ=function(t){_h(n,t);var e=Eh(n);function n(r){var i;return ss(this,n),i=e.call(this),Ve(Ho(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return as(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(I5),pZ=function(e,n){var r=e==="css"?fZ:hZ;return function(i){return new r(i,n)}},QT=function(e,n){return"".concat([n,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(
942Boolean).join("-"))};function Wf(t){var e=w.useRef();e.current=t;var n=w.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(a))},[]);return n}function Cx(t){var e=w.useRef(!1),n=w.useState(t),r=st(n,2),i=r[0],a=r[1];w.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function l(u,d){d&&e.current||a(u)}return[i,l]}function WT(t,e,n,r){var i=qe({},e[t]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(u){var d=st(u,2),h=d[0],p=d[1];if(i!=null&&i[h]||i!=null&&i[p]){var m;(m=i[p])!==null&&m!==void 0||(i[p]=i==null?void 0:i[h])}})}var l=qe(qe({},n),i);return Object.keys(l).forEach(function(u){l[u]===e[u]&&delete l[u]}),l}var q5=typeof CSSINJS_STATISTIC<"u",Rx=!0;function G5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!q5)return Object.assign.apply(Object,[{}].concat(e));Rx=!1;var r={};return e.forEach(function(i){if(Yt(i)==="object"){var a=Object.keys(i);a.forEach(function(l){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){return i[l]}})})}}),Rx=!0,r}var ZT={};function mZ(){}var gZ=function(e){var n,r=e,i=mZ;return q5&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(e,{get:function(l,u){if(Rx){var d;(d=n)===null||d===void 0||d.add(u)}return l[u]}}),i=function(l,u){var d;ZT[l]={global:Array.from(n),component:qe(qe({},(d=ZT[l])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:i}};function JT(t,e,n){if(typeof n=="function"){var r;return n(G5(e,(r=e[t])!==null&&r!==void 0?r:{}))}return n??{}}function vZ(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return ix(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return ix(a)}).join(","),")")}}}var yZ=1e3*60*10,bZ=function(){function t(){ss(this,t),Ve(this,"map",new Map),Ve(this,"objectIDMap",new WeakMap),Ve(this,"nextID",0),Ve(this,"lastAccessBeat",new Map),Ve(this,"accessBeat",0)}return as(t,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&Yt(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(Yt(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>yZ&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),t}(),eO=new bZ;function xZ(t,e){return ze.useMemo(function(){var n=eO.get(e);if(n)return n;var r=t();return eO.set(e,r),r},e)}var wZ=function(){return{}};function SZ(t){var e=t.useCSP,n=e===void 0?wZ:e,r=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,u=t.getCompUnitless;function d(g,b,E,y){var x=Array.isArray(g)?g[0]:g;function S(H){return"".concat(String(x)).concat(H.slice(0,1).toUpperCase()).concat(H.slice(1))}var R=(y==null?void 0:y.unitless)||{},O=typeof u=="function"?u(g):{},M=qe(qe({},O),{},Ve({},S("zIndexPopup"),!0));Object.keys(R).forEach(function(H){M[S(H)]=R[H]});var k=qe(qe({},y),{},{unitless:M,prefixToken:S}),P=p(g,b,E,k),j=h(x,E,k);return function(H){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H,A=P(H,I),$=st(A,2),L=$[1],U=j(I),V=st(U,2),Q=V[0],F=V[1];return[Q,L,F]}}function h(g,b,E){var y=E.unitless,x=E.injectStyle,S=x===void 0?!0:x,R=E.prefixToken,O=E.ignore,M=function(j){var H=j.rootCls,I=j.cssVar,A=I===void 0?{}:I,$=r(),L=$.realToken;return OW({path:[g],prefix:A.prefix,key:A.key,unitless:y,ignore:O,token:L,scope:H},function(){var U=JT(g,L,b),V=WT(g,L,U,{deprecatedTokens:E==null?void 0:E.deprecatedTokens}
942);return Object.keys(U).forEach(function(Q){V[R(Q)]=V[Q],delete V[Q]}),V}),null},k=function(j){var H=r(),I=H.cssVar;return[function(A){return S&&I?ze.createElement(ze.Fragment,null,ze.createElement(M,{rootCls:j,cssVar:I,component:g}),A):A},I==null?void 0:I.key]};return k}function p(g,b,E){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(g)?g:[g,g],S=st(x,1),R=S[0],O=x.join("-"),M=t.layer||{name:"antd"};return function(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,j=r(),H=j.theme,I=j.realToken,A=j.hashId,$=j.token,L=j.cssVar,U=i(),V=U.rootPrefixCls,Q=U.iconPrefixCls,F=n(),J=L?"css":"js",ae=xZ(function(){var se=new Set;return L&&Object.keys(y.unitless||{}).forEach(function(he){se.add($m(he,L.prefix)),se.add($m(he,QT(R,L.prefix)))}),pZ(J,se)},[J,R,L==null?void 0:L.prefix]),ye=vZ(J),X=ye.max,ee=ye.min,ve={theme:H,token:$,hashId:A,nonce:function(){return F.nonce},clientOnly:y.clientOnly,layer:M,order:y.order||-999};typeof a=="function"&&ox(qe(qe({},ve),{},{clientOnly:!1,path:["Shared",V]}),function(){return a($,{prefix:{rootPrefixCls:V,iconPrefixCls:Q},csp:F})});var le=ox(qe(qe({},ve),{},{path:[O,k,Q]}),function(){if(y.injectStyle===!1)return[];var se=gZ($),he=se.token,ie=se.flush,be=JT(R,I,E),xe=".".concat(k),ke=WT(R,I,be,{deprecatedTokens:y.deprecatedTokens});L&&be&&Yt(be)==="object"&&Object.keys(be).forEach(function(Be){be[Be]="var(".concat($m(Be,QT(R,L.prefix)),")")});var Me=G5(he,{componentCls:xe,prefixCls:k,iconCls:".".concat(Q),antCls:".".concat(V),calc:ae,max:X,min:ee},L?be:ke),Ne=b(Me,{hashId:A,prefixCls:k,rootPrefixCls:V,iconPrefixCls:Q});ie(R,ke);var Te=typeof l=="function"?l(Me,k,P,y.resetFont):null;return[y.resetStyle===!1?null:Te,Ne]});return[le,A]}}function m(g,b,E){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=p(g,b,E,qe({resetStyle:!1,order:-998},y)),S=function(O){var M=O.prefixCls,k=O.rootCls,P=k===void 0?M:k;return x(M,P),null};return S}return{genStyleHooks:d,genSubStyleComponent:m,genComponentStyleHook:p}}const _Z="5.26.2";function Hb(t){return t>=0&&t<=255}function dm(t,e){const{r:n,g:r,b:i,a}=new Hn(t).toRgb();if(a<1)return t;const{r:l,g:u,b:d}=new Hn(e).toRgb();for(let h=.01;h<=1;h+=.01){const p=Math.round((n-l*(1-h))/h),m=Math.round((r-u*(1-h))/h),g=Math.round((i-d*(1-h))/h);if(Hb(p)&&Hb(m)&&Hb(g))return new Hn({r:p,g:m,b:g,a:Math.round(h*100)/100}).toRgbString()}return new Hn({r:n,g:r,b:i,a:1}).toRgbString()}var EZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function X5(t){const{override:e}=t,n=EZ(t,["override"]),r=Object.assign({},e);Object.keys(Kf).forEach(g=>{delete r[g]});const i=Object.assign(Object.assign({},n),r),a=480,l=576,u=768,d=992,h=1200,p=1600;if(i.motion===!1){const g="0s";i.motionDurationFast=g,i.motionDurationMid=g,i.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:dm(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:dm(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:dm(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:dm(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
943      0 6px 16px 0 rgba(0, 0, 0, 0.08),
944      0 3px 6px -4px rgba(0, 0, 0, 0.12),
945      0 9px 28px 8px rgba(0, 0, 0, 0.05)
946    `,boxShadowSecondary:`
947      0 6px 16px 0 rgba(0, 0, 0, 0.08),
948      0 3px 6px -4px rgba(0, 0, 0, 0.12),
949      0 9px 28px 8px rgba(0, 0, 0, 0.05)
950    `,boxShadowTertiary:`
951      0 1px 2px 0 rgba(0, 0, 0, 0.03),
952      0 1px 6px -1px rgba(0, 0, 0, 0.02),
953      0 2px 4px 0 rgba(0, 0, 0, 0.02)
954    `,screenXS:a,screenXSMin:a,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:h-1,screenXL:h,screenXLMin:h,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxSh
954adowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
955      0 1px 2px -2px ${new Hn("rgba(0, 0, 0, 0.16)").toRgbString()},
956      0 3px 6px 0 ${new Hn("rgba(0, 0, 0, 0.12)").toRgbString()},
957      0 5px 12px 4px ${new Hn("rgba(0, 0, 0, 0.09)").toRgbString()}
958    `,boxShadowDrawerRight:`
959      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
960      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
961      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
962    `,boxShadowDrawerLeft:`
963      6px 0 16px 0 rgba(0, 0, 0, 0.08),
964      3px 0 6px -4px rgba(0, 0, 0, 0.12),
965      9px 0 28px 8px rgba(0, 0, 0, 0.05)
966    `,boxShadowDrawerUp:`
967      0 6px 16px 0 rgba(0, 0, 0, 0.08),
968      0 3px 6px -4px rgba(0, 0, 0, 0.12),
969      0 9px 28px 8px rgba(0, 0, 0, 0.05)
970    `,boxShadowDrawerDown:`
971      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
972      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
973      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
974    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTo
974p:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var tO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Y5={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},CZ={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},RZ={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},K5=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:i}=e,a=tO(e,["override"]);let l=Object.assign(Object.assign({},r),{override:i});return l=X5(l),a&&Object.entries(a).forEach(([u,d])=>{const{theme:h}=d,p=tO(d,["theme"]);let m=p;h&&(m=K5(Object.assign(Object.assign({},l),p),{override:p},h)),l[u]=m}),l};function lS(){const{token:t,hashed:e,theme:n,override:r,cssVar:i}=ze.useContext(U5),a=`${_Z}-${e||""}`,l=n||F5,[u,d,h]=eW(l,[Kf,t],{salt:a,override:r,getComputedToken:K5,formatToken:X5,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Y5,ignore:CZ,preserve:RZ}});return[l,h,e?d:"",u,i]}const gre=(t,e=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}),TZ=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),OZ=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),AZ=(t,e,n,r)=>{const i=`[class^="${e}"], [class*=" ${e}"]`,a=n?`.${n}`:i,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},u),l),{[i]:l})}},vre=(t,e)=>({outline:`${ix(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:e??1,transition:"outline-offset 0s, outline 0s"}),Q5=t=>({[`.${t}`]:Object.assign(Object.assign({},TZ()),{[`.${t} .${t}-icon`]:{display:"block"}})}),{genStyleHooks:yre}=SZ({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=w.useContext(Uu);return{rootPrefixCls:t(),iconPrefixCls:e}},useToken:()=>{const[t,e,n,r,i]=lS();return{theme:t,realToken:e,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:t}=w.useContext(Uu);return t??{}},getResetStyles:(t,e)=>{var n;const r=OZ(t);return[r,{"&":r},Q5((n=e==null?void 0:e.prefix.iconPrefixCls)!==null&&n!==void 0?n:oS)]},getCommonStyle:AZ,getCompUnitless:()=>Y5}),kZ=(t,e)=>{const[n,r]=lS();return ox({token:r,hashId:"",path:["ant-design-icons",t],nonce:()=>e==null?void 0:e.nonce,layer:{name:"antd"}},()=>[Q5(t)])},MZ=Object.assign({},Bo),{useId:nO}=MZ,NZ=()=>"",DZ=typeof nO>"u"?NZ:nO;function PZ(t,e,n){var r;const i=t||{},a=i.inherit===!1||!e?Object.assign(Object.assign({},Sx),{hashed:(r=e==null?void 0:e.hashed)!==null&&r!==void 0?r:Sx.hashed,cssVar:e==null?void 0:e.cssVar}):e,l=DZ();return Zw(()=>{var u,d;if(!t)return e;const h=Object.assign({},a.components);Object.keys(t.components||{}
974).forEach(g=>{h[g]=Object.assign(Object.assign({},h[g]),t.components[g])});const p=`css-var-${l.replace(/:/g,"")}`,m=((u=i.cssVar)!==null&&u!==void 0?u:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||p});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:h,cssVar:m})},[i,a],(u,d)=>u.some((h,p)=>{const m=d[p];return!MQ(h,m,!0)}))}var jZ=["children"],W5=w.createContext({});function LZ(t){var e=t.children,n=_g(t,jZ);return w.createElement(W5.Provider,{value:n},e)}var zZ=function(t){_h(n,t);var e=Eh(n);function n(){return ss(this,n),e.apply(this,arguments)}return as(n,[{key:"render",value:function(){return this.props.children}}]),n}(w.Component);function $Z(t){var e=w.useReducer(function(u){return u+1},0),n=st(e,2),r=n[1],i=w.useRef(t),a=Wf(function(){return i.current}),l=Wf(function(u){i.current=typeof u=="function"?u(i.current):u,r()});return[a,l]}var Co="none",fm="appear",hm="enter",pm="leave",rO="none",ys="prepare",au="start",ou="active",cS="end",Z5="prepared";function iO(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}function HZ(t,e){var n={animationend:iO("Animation","AnimationEnd"),transitionend:iO("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}var BZ=HZ(Ua(),typeof window<"u"?window:{}),J5={};if(Ua()){var FZ=document.createElement("div");J5=FZ.style}var mm={};function eN(t){if(mm[t])return mm[t];var e=BZ[t];if(e)for(var n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(e,a)&&a in J5)return mm[t]=e[a],mm[t]}return""}var tN=eN("animationend"),nN=eN("transitionend"),rN=!!(tN&&nN),sO=tN||"animationend",aO=nN||"transitionend";function oO(t,e){if(!t)return null;if(Yt(t)==="object"){var n=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}const UZ=function(t){var e=w.useRef();function n(i){i&&(i.removeEventListener(aO,t),i.removeEventListener(sO,t))}function r(i){e.current&&e.current!==i&&n(e.current),i&&i!==e.current&&(i.addEventListener(aO,t),i.addEventListener(sO,t),e.current=i)}return w.useEffect(function(){return function(){n(e.current)}},[]),[r,n]};var iN=Ua()?w.useLayoutEffect:w.useEffect;const IZ=function(){var t=w.useRef(null);function e(){ki.cancel(t.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var a=ki(function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)});t.current=a}return w.useEffect(function(){return function(){e()}},[]),[n,e]};var VZ=[ys,au,ou,cS],qZ=[ys,Z5],sN=!1,GZ=!0;function aN(t){return t===ou||t===cS}const XZ=function(t,e,n){var r=Cx(rO),i=st(r,2),a=i[0],l=i[1],u=IZ(),d=st(u,2),h=d[0],p=d[1];function m(){l(ys,!0)}var g=e?qZ:VZ;return iN(function(){if(a!==rO&&a!==cS){var b=g.indexOf(a),E=g[b+1],y=n(a);y===sN?l(E,!0):E&&h(function(x){function S(){x.isCanceled()||l(E,!0)}y===!0?S():Promise.resolve(y).then(S)})}},[t,a]),w.useEffect(function(){return function(){p()}},[]),[m,a]};function YZ(t,e,n,r){var i=r.motionEnter,a=i===void 0?!0:i,l=r.motionAppear,u=l===void 0?!0:l,d=r.motionLeave,h=d===void 0?!0:d,p=r.motionDeadline,m=r.motionLeaveImmediately,g=r.onAppearPrepare,b=r.onEnterPrepare,E=r.onLeavePrepare,y=r.onAppearStart,x=r.onEnterStart,S=r.onLeaveStart,R=r.onAppearActive,O=r.onEnterActive,M=r.onLeaveActive,k=r.onAppearEnd,P=r.onEnterEnd,j=r.onLeaveEnd,H=r.onVisibleChanged,I=Cx(),A=st(I,2),$=A[0],L=A[1],U=$Z(Co),V=st(U,2),Q=V[0],F=V[1],J=Cx(null),ae=st(J,2),ye=ae[0],X=ae[1],ee=Q(),ve=w.useRef(!1),le=w.useRef(null);function se(){return n()}var he=w.useRef(!1);function ie(){F(Co),X(null,!0)}var be=Wf(function(G){var K=Q();if(K!==Co){var ue=se();if(!(G&&!G.deadline&&G.target!==ue)){var we=he.current,pe;K===fm&&we?pe=k==null?void 0:k(ue,G):K===hm&&we?pe=P==null?void 0:P(ue,G):K===
974pm&&we&&(pe=j==null?void 0:j(ue,G)),we&&pe!==!1&&ie()}}}),xe=UZ(be),ke=st(xe,1),Me=ke[0],Ne=function(K){switch(K){case fm:return Ve(Ve(Ve({},ys,g),au,y),ou,R);case hm:return Ve(Ve(Ve({},ys,b),au,x),ou,O);case pm:return Ve(Ve(Ve({},ys,E),au,S),ou,M);default:return{}}},Te=w.useMemo(function(){return Ne(ee)},[ee]),Be=XZ(ee,!t,function(G){if(G===ys){var K=Te[ys];return K?K(se()):sN}if(_e in Te){var ue;X(((ue=Te[_e])===null||ue===void 0?void 0:ue.call(Te,se(),null))||null)}return _e===ou&&ee!==Co&&(Me(se()),p>0&&(clearTimeout(le.current),le.current=setTimeout(function(){be({deadline:!0})},p))),_e===Z5&&ie(),GZ}),nt=st(Be,2),yt=nt[0],_e=nt[1],Ae=aN(_e);he.current=Ae;var je=w.useRef(null);iN(function(){if(!(ve.current&&je.current===e)){L(e);var G=ve.current;ve.current=!0;var K;!G&&e&&u&&(K=fm),G&&e&&a&&(K=hm),(G&&!e&&h||!G&&m&&!e&&h)&&(K=pm);var ue=Ne(K);K&&(t||ue[ys])?(F(K),yt()):F(Co),je.current=e}},[e]),w.useEffect(function(){(ee===fm&&!u||ee===hm&&!a||ee===pm&&!h)&&F(Co)},[u,a,h]),w.useEffect(function(){return function(){ve.current=!1,clearTimeout(le.current)}},[]);var $e=w.useRef(!1);w.useEffect(function(){$&&($e.current=!0),$!==void 0&&ee===Co&&(($e.current||$)&&(H==null||H($)),$e.current=!0)},[$,ee]);var Y=ye;return Te[ys]&&_e===au&&(Y=qe({transition:"none"},Y)),[ee,_e,Y,$??e]}function KZ(t){var e=t;Yt(t)==="object"&&(e=t.transitionSupport);function n(i,a){return!!(i.motionName&&e&&a!==!1)}var r=w.forwardRef(function(i,a){var l=i.visible,u=l===void 0?!0:l,d=i.removeOnLeave,h=d===void 0?!0:d,p=i.forceRender,m=i.children,g=i.motionName,b=i.leavedClassName,E=i.eventProps,y=w.useContext(W5),x=y.motion,S=n(i,x),R=w.useRef(),O=w.useRef();function M(){try{return R.current instanceof HTMLElement?R.current:zm(O.current)}catch{return null}}var k=YZ(S,u,M,i),P=st(k,4),j=P[0],H=P[1],I=P[2],A=P[3],$=w.useRef(A);A&&($.current=!0);var L=w.useCallback(function(ae){R.current=ae,e5(a,ae)},[a]),U,V=qe(qe({},E),{},{visible:u});if(!m)U=null;else if(j===Co)A?U=m(qe({},V),L):!h&&$.current&&b?U=m(qe(qe({},V),{},{className:b}),L):p||!h&&!b?U=m(qe(qe({},V),{},{style:{display:"none"}}),L):U=null;else{var Q;H===ys?Q="prepare":aN(H)?Q="active":H===au&&(Q="start");var F=oO(g,"".concat(j,"-").concat(Q));U=m(qe(qe({},V),{},{className:Ff(oO(g,j),Ve(Ve({},F,F&&Q),g,typeof g=="string")),style:I}),L)}if(w.isValidElement(U)&&t5(U)){var J=r5(U);J||(U=w.cloneElement(U,{ref:L}))}return w.createElement(zZ,{ref:O},U)});return r.displayName="CSSMotion",r}const QZ=KZ(rN);var Tx="add",Ox="keep",Ax="remove",Bb="removed";function WZ(t){var e;return t&&Yt(t)==="object"&&"key"in t?e=t:e={key:t},qe(qe({},e),{},{key:String(e.key)})}function kx(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(WZ)}function ZZ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=e.length,a=kx(t),l=kx(e);a.forEach(function(h){for(var p=!1,m=r;m<i;m+=1){var g=l[m];if(g.key===h.key){r<m&&(n=n.concat(l.slice(r,m).map(function(b){return qe(qe({},b),{},{status:Tx})})),r=m),n.push(qe(qe({},g),{},{status:Ox})),r+=1,p=!0;break}}p||n.push(qe(qe({},h),{},{status:Ax}))}),r<i&&(n=n.concat(l.slice(r).map(function(h){return qe(qe({},h),{},{status:Tx})})));var u={};n.forEach(function(h){var p=h.key;u[p]=(u[p]||0)+1});var d=Object.keys(u).filter(function(h){return u[h]>1});return d.forEach(function(h){n=n.filter(function(p){var m=p.key,g=p.status;return m!==h||g!==Ax}),n.forEach(function(p){p.key===h&&(p.status=Ox)})}),n}var JZ=["component","children","onVisibleChanged","onAllRemoved"],eJ=["status"],tJ=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function nJ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:QZ,n=function(r){_h(a,r);var i=Eh(a);function a(){var l;ss(this,a);for(var u=arguments.length,d=new Array(u),h=0;h<u;h++)d[h]=arguments[h];return l=i.call.apply(i,[this].concat(d)),Ve(Ho(l),"state",{keyEntities:[]}),Ve(Ho(l),"removeKey",function(p){l.setState(function(m){var g=m.keyEntities.map(function(b){return b.key!==p?b:qe
974(qe({},b),{},{status:Bb})});return{keyEntities:g}},function(){var m=l.state.keyEntities,g=m.filter(function(b){var E=b.status;return E!==Bb}).length;g===0&&l.props.onAllRemoved&&l.props.onAllRemoved()})}),l}return as(a,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,h=this.props,p=h.component,m=h.children,g=h.onVisibleChanged;h.onAllRemoved;var b=_g(h,JZ),E=p||w.Fragment,y={};return tJ.forEach(function(x){y[x]=b[x],delete b[x]}),delete b.keys,w.createElement(E,b,d.map(function(x,S){var R=x.status,O=_g(x,eJ),M=R===Tx||R===Ox;return w.createElement(e,La({},y,{key:O.key,visible:M,eventProps:O,onVisibleChanged:function(P){g==null||g(P,{key:O.key}),P||u.removeKey(O.key)}}),function(k,P){return m(qe(qe({},k),{},{index:S}),P)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var h=u.keys,p=d.keyEntities,m=kx(h),g=ZZ(p,m);return{keyEntities:g.filter(function(b){var E=p.find(function(y){var x=y.key;return b.key===x});return!(E&&E.status===Bb&&b.status===Ax)})}}}]),a}(w.Component);return Ve(n,"defaultProps",{component:"div"}),n}nJ(rN);const lO=w.createContext(!0);function rJ(t){const e=w.useContext(lO),{children:n}=t,[,r]=lS(),{motion:i}=r,a=w.useRef(!1);return a.current||(a.current=e!==i),a.current?w.createElement(lO.Provider,{value:i},w.createElement(LZ,{motion:i},n)):n}const iJ=()=>null;var sJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const aJ=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let oN;function oJ(){return oN||_x}function lJ(t){return Object.keys(t).some(e=>e.endsWith("Color"))}const cJ=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:i}=t;e!==void 0&&(oN=e),r&&lJ(r)&&oZ(oJ(),r)},uJ=t=>{const{children:e,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:l,locale:u,componentSize:d,direction:h,space:p,splitter:m,virtual:g,dropdownMatchSelectWidth:b,popupMatchSelectWidth:E,popupOverflow:y,legacyLocale:x,parentContext:S,iconPrefixCls:R,theme:O,componentDisabled:M,segmented:k,statistic:P,spin:j,calendar:H,carousel:I,cascader:A,collapse:$,typography:L,checkbox:U,descriptions:V,divider:Q,drawer:F,skeleton:J,steps:ae,image:ye,layout:X,list:ee,mentions:ve,modal:le,progress:se,result:he,slider:ie,breadcrumb:be,menu:xe,pagination:ke,input:Me,textArea:Ne,empty:Te,badge:Be,radio:nt,rate:yt,switch:_e,transfer:Ae,avatar:je,message:$e,tag:Y,table:G,card:K,tabs:ue,timeline:we,timePicker:pe,upload:De,notification:Ue,tree:Je,colorPicker:ot,datePicker:un,rangePicker:qt,flex:Zn,wave:at,dropdown:ft,warning:Et,tour:Ht,tooltip:Nn,popover:Er,popconfirm:nn,floatButtonGroup:_n,variant:ji,inputNumber:Dn,treeSelect:Yr}=t,Li=w.useCallback((dn,pn)=>{const{prefixCls:jn}=t;if(pn)return pn;const In=jn||S.getPrefixCls("");return dn?`${In}-${dn}`:In},[S.getPrefixCls,t.prefixCls]),Lr=R||S.iconPrefixCls||oS,Cr=n||S.csp;kZ(Lr,Cr);const pi=PZ(O,S.theme,{prefixCls:Li("")}),os={csp:Cr,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:u||x,direction:h,space:p,splitter:m,virtual:g,popupMatchSelectWidth:E??b,popupOverflow:y,getPrefixCls:Li,iconPrefixCls:Lr,theme:pi,segmented:k,statistic:P,spin:j,calendar:H,carousel:I,cascader:A,collapse:$,typography:L,checkbox:U,descriptions:V,divider:Q,drawer:F,skeleton:J,steps:ae,image:ye,input:Me,textArea:Ne,layout:X,list:ee,mentions:ve,modal:le,progress:se,result:he,slider:ie,breadcrumb:be,menu:xe,pagination:ke,empty:Te,badge:Be,radio:nt,rate:yt,switch:_e,transfer:Ae,avatar:je,message:$e,tag:Y,table:G,card:K,tabs:ue,timeline:we,timePicker:pe,upload:De,notification:Ue,tree:Je,colorPicker:ot,datePicker:un,rangePicker:qt,flex:Zn,wave:at,dropdown:ft,warning:Et,tour:Ht,tooltip:Nn,popover:Er,popconfirm:nn,floatButtonGroup:_n,variant:ji,inputNumber:Dn,treeSelect:Yr},zi=Object.assign({},S);Object.keys(os).forEach(dn=>{os[dn]!==void 0&&(zi[dn]=os[dn])}),aJ.forEach(dn=>{const pn=t[dn];pn&&(zi[dn]=pn)}),typeof r<"u"&&(zi.button=Object.assign({autoInsertSpace:r},zi.button));const Pn=Zw(()=>zi,zi,(dn,pn)=>{const jn=Object.keys(dn),In=Object.keys(pn);return jn.length!==In.length||jn.some(hr=>dn[hr]!==pn[hr])}),{layer:Wt}=w.useContext(Ch),yn=w.useMemo(()=>({prefixCls:Lr,csp:Cr,layer:Wt?"antd":void 0}),[Lr,Cr,Wt]);let Bt=w.createElement(w.Fragment,null,w.createElement(iJ,{dropdownMatchSelectWidth:b}),e);const Ds=w.useMemo(()=>{var dn,pn,jn,In;return PW(((dn=mv.Form)===null||dn===void 0?void 0:dn.defaultValidateMessages)||{},((jn=(pn=Pn.locale)===null||pn===void 0?void 0:pn.Form)===null||jn===void 0?void 0:jn.defaultValidateMessages)||{},((In=Pn.form)===null||In===void 0?void 0:In.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[Pn,l==null?void 0:l.validateMessages]);Object.keys(Ds).length>0&&(Bt=w.createElement(LW.Provider,{value:Ds},Bt)),u&&(Bt=w.createElement(UW,{locale:u,_ANT_MARK__:FW},Bt)),Bt=w.createElement(kW.Provider,{value:yn},Bt),d&&(Bt=w.createElement(cZ,{size:d},Bt)),Bt=w.createElement(rJ,null,Bt);const ca=w.useMemo(()=>{const dn=pi||{},{algorithm:pn,token:jn,components:In,cssVar:hr}=dn,Jn=sJ(dn,["algorithm","token","components","cssVar"]),mi=pn&&(!Array.isArray(pn)||pn.length>0)?nx(pn):F5,Kr={};Object.entries(In||{}
974).forEach(([Ps,Qr])=>{const En=Object.assign({},Qr);"algorithm"in En&&(En.algorithm===!0?En.theme=mi:(Array.isArray(En.algorithm)||typeof En.algorithm=="function")&&(En.theme=nx(En.algorithm)),delete En.algorithm),Kr[Ps]=En});const fn=Object.assign(Object.assign({},Kf),jn);return Object.assign(Object.assign({},Jn),{theme:mi,token:fn,components:Kr,override:Object.assign({override:fn},Kr),cssVar:hr})},[pi]);return O&&(Bt=w.createElement(U5.Provider,{value:ca},Bt)),Pn.warning&&(Bt=w.createElement(jW.Provider,{value:Pn.warning},Bt)),M!==void 0&&(Bt=w.createElement(lZ,{disabled:M},Bt)),w.createElement(Uu.Provider,{value:Pn},Bt)},Rh=t=>{const e=w.useContext(Uu),n=w.useContext(z5);return w.createElement(uJ,Object.assign({parentContext:e,legacyLocale:n},t))};Rh.ConfigContext=Uu;Rh.SizeContext=Qf;Rh.config=cJ;Rh.useConfig=uZ;Object.defineProperty(Rh,"SizeContext",{get:()=>Qf});var lN=w.forwardRef(function(t,e){var n=t.height,r=t.offsetY,i=t.offsetX,a=t.children,l=t.prefixCls,u=t.onInnerResize,d=t.innerProps,h=t.rtl,p=t.extra,m={},g={display:"flex",flexDirection:"column"};return r!==void 0&&(m={height:n,position:"relative",overflow:"hidden"},g=qe(qe({},g),{},Ve(Ve(Ve(Ve(Ve({transform:"translateY(".concat(r,"px)")},h?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),w.createElement("div",{style:m},w.createElement(Jw,{onResize:function(E){var y=E.offsetHeight;y&&u&&u()}},w.createElement("div",La({style:g,className:Ff(Ve({},"".concat(l,"-holder-inner"),l)),ref:e},d),a,p)))});lN.displayName="Filler";function dJ(t){var e=t.children,n=t.setRef,r=w.useCallback(function(i){n(i)},[]);return w.cloneElement(e,{ref:r})}function fJ(t,e,n,r,i,a,l,u){var d=u.getKey;return t.slice(e,n+1).map(function(h,p){var m=e+p,g=l(h,m,{style:{width:r},offsetX:i}),b=d(h);return w.createElement(dJ,{key:b,setRef:function(y){return a(h,y)}},g)})}function hJ(t,e,n){var r=t.length,i=e.length,a,l;if(r===0&&i===0)return null;r<i?(a=t,l=e):(a=e,l=t);var u={__EMPTY_ITEM__:!0};function d(E){return E!==void 0?n(E):u}for(var h=null,p=Math.abs(r-i)!==1,m=0;m<l.length;m+=1){var g=d(a[m]),b=d(l[m]);if(g!==b){h=m,p=p||g!==d(l[m+1]);break}}return h===null?null:{index:h,multiple:p}}function pJ(t,e,n){var r=w.useState(t),i=st(r,2),a=i[0],l=i[1],u=w.useState(null),d=st(u,2),h=d[0],p=d[1];return w.useEffect(function(){var m=hJ(a||[],t||[],e);(m==null?void 0:m.index)!==void 0&&p(t[m.index]),l(t)},[t]),[h]}var cO=(typeof navigator>"u"?"undefined":Yt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const cN=function(t,e,n,r){var i=w.useRef(!1),a=w.useRef(null);function l(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var u=w.useRef({top:t,bottom:e,left:n,right:r});return u.current.top=t,u.current.bottom=e,u.current.left=n,u.current.right=r,function(d,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,m=d?h<0&&u.current.left||h>0&&u.current.right:h<0&&u.current.top||h>0&&u.current.bottom;return p&&m?(clearTimeout(a.current),i.current=!1):(!m||i.current)&&l(),!i.current&&m}};function mJ(t,e,n,r,i,a,l){var u=w.useRef(0),d=w.useRef(null),h=w.useRef(null),p=w.useRef(!1),m=cN(e,n,r,i);function g(R,O){if(ki.cancel(d.current),!m(!1,O)){var M=R;if(!M._virtualHandled)M._virtualHandled=!0;else return;u.current+=O,h.current=O,cO||M.preventDefault(),d.current=ki(function(){var k=p.current?10:1;l(u.current*k,!1),u.current=0})}}function b(R,O){l(O,!0),cO||R.preventDefault()}var E=w.useRef(null),y=w.useRef(null);function x(R){if(t){ki.cancel(y.current),y.current=ki(function(){E.current=null},2);var O=R.deltaX,M=R.deltaY,k=R.shiftKey,P=O,j=M;(E.current==="sx"||!E.current&&k&&M&&!O)&&(P=M,j=0,E.current="sx");var H=Math.abs(P),I=Math.abs(j);E.current===null&&(E.current=a&&H>I?"x":"y"),E.current==="y"?g(R,j):b(R,P)}}function S(R){t&&(p.current=R.detail===h.current)}return[x,S]}function gJ(t,e,n,r){var i=w.useMemo(function(){return[new Map,[]]},[t,n.id,r]),a=st(i,2),l=a[0],u=a[1],d=function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,g=l.get(p),b=l.get(m);
974if(g===void 0||b===void 0)for(var E=t.length,y=u.length;y<E;y+=1){var x,S=t[y],R=e(S);l.set(R,y);var O=(x=n.get(R))!==null&&x!==void 0?x:r;if(u[y]=(u[y-1]||0)+O,R===p&&(g=y),R===m&&(b=y),g!==void 0&&b!==void 0)break}return{top:u[g-1]||0,bottom:u[b]}};return d}var vJ=function(){function t(){ss(this,t),Ve(this,"maps",void 0),Ve(this,"id",0),Ve(this,"diffRecords",new Map),this.maps=Object.create(null)}return as(t,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),t}();function uO(t){var e=parseFloat(t);return isNaN(e)?0:e}function yJ(t,e,n){var r=w.useState(0),i=st(r,2),a=i[0],l=i[1],u=w.useRef(new Map),d=w.useRef(new vJ),h=w.useRef(0);function p(){h.current+=1}function m(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var E=function(){var S=!1;u.current.forEach(function(R,O){if(R&&R.offsetParent){var M=R.offsetHeight,k=getComputedStyle(R),P=k.marginTop,j=k.marginBottom,H=uO(P),I=uO(j),A=M+H+I;d.current.get(O)!==A&&(d.current.set(O,A),S=!0)}}),S&&l(function(R){return R+1})};if(b)E();else{h.current+=1;var y=h.current;Promise.resolve().then(function(){y===h.current&&E()})}}function g(b,E){var y=t(b);u.current.get(y),E?(u.current.set(y,E),m()):u.current.delete(y)}return w.useEffect(function(){return p},[]),[g,m,d.current,a]}var dO=14/15;function bJ(t,e,n){var r=w.useRef(!1),i=w.useRef(0),a=w.useRef(0),l=w.useRef(null),u=w.useRef(null),d,h=function(b){if(r.current){var E=Math.ceil(b.touches[0].pageX),y=Math.ceil(b.touches[0].pageY),x=i.current-E,S=a.current-y,R=Math.abs(x)>Math.abs(S);R?i.current=E:a.current=y;var O=n(R,R?x:S,!1,b);O&&b.preventDefault(),clearInterval(u.current),O&&(u.current=setInterval(function(){R?x*=dO:S*=dO;var M=Math.floor(R?x:S);(!n(R,M,!0)||Math.abs(M)<=.1)&&clearInterval(u.current)},16))}},p=function(){r.current=!1,d()},m=function(b){d(),b.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(b.touches[0].pageX),a.current=Math.ceil(b.touches[0].pageY),l.current=b.target,l.current.addEventListener("touchmove",h,{passive:!1}),l.current.addEventListener("touchend",p,{passive:!0}))};d=function(){l.current&&(l.current.removeEventListener("touchmove",h),l.current.removeEventListener("touchend",p))},gu(function(){return t&&e.current.addEventListener("touchstart",m,{passive:!0}),function(){var g;(g=e.current)===null||g===void 0||g.removeEventListener("touchstart",m),d(),clearInterval(u.current)}},[t])}function fO(t){return Math.floor(Math.pow(t,.5))}function Mx(t,e){var n="touches"in t?t.touches[0]:t;return n[e?"pageX":"pageY"]-window[e?"scrollX":"scrollY"]}function xJ(t,e,n){w.useEffect(function(){var r=e.current;if(t&&r){var i=!1,a,l,u=function(){ki.cancel(a)},d=function g(){u(),a=ki(function(){n(l),g()})},h=function(b){if(!(b.target.draggable||b.button!==0)){var E=b;E._virtualHandled||(E._virtualHandled=!0,i=!0)}},p=function(){i=!1,u()},m=function(b){if(i){var E=Mx(b,!1),y=r.getBoundingClientRect(),x=y.top,S=y.bottom;if(E<=x){var R=x-E;l=-fO(R),d()}else if(E>=S){var O=E-S;l=fO(O),d()}else u()}};return r.addEventListener("mousedown",h),r.ownerDocument.addEventListener("mouseup",p),r.ownerDocument.addEventListener("mousemove",m),function(){r.removeEventListener("mousedown",h),r.ownerDocument.removeEventListener("mouseup",p),r.ownerDocument.removeEventListener("mousemove",m),u()}}},[t])}var wJ=10;function SJ(t,e,n,r,i,a,l,u){var d=w.useRef(),h=w.useState(null),p=st(h,2),m=p[0],g=p[1];return gu(function(){if(m&&m.times<wJ){if(!t.current){g(function(ye){return qe({},ye)});return}a();var b=m.targetAlign,E=m.originAlign,y=m.index,x=m.offset,S=t.current.clientHeight,R=!1,O=b,M=null;if(S){for(var k=b||E,P=0,j=0,H=0,I=Math.min(e.length-1,y),A=0;A<=I;A+=1){var $=i(e[A]);j=P;var L=n.get($);H=j+(L===void 0?r:L),P=H}for(var U=k==="top"?x:S-x,V=I;V>=0;V-=1){var Q=i(e[V]),F=n.get(Q);if(F===void 0){R=!0;break}if(U-=F,U<=0)break}switch(k){case"top":M=j-x;break;case"bottom":M=H-S+x;break;default:{var J=t.current.scrollTop,ae=J+S;j<J?O="top":H>ae&&(O="bottom")}}M!==null&&l(M),M!==m.lastTop&&(R=!0)}R&&g(qe(qe({},m),{},{times:m.times+1,targetAlign:O,lastTop:M}))}},[m,t.current]),function(b){if(b==null){u();return}
974if(ki.cancel(d.current),typeof b=="number")l(b);else if(b&&Yt(b)==="object"){var E,y=b.align;"index"in b?E=b.index:E=e.findIndex(function(R){return i(R)===b.key});var x=b.offset,S=x===void 0?0:x;g({times:0,index:E,offset:S,originAlign:y})}}}var hO=w.forwardRef(function(t,e){var n=t.prefixCls,r=t.rtl,i=t.scrollOffset,a=t.scrollRange,l=t.onStartMove,u=t.onStopMove,d=t.onScroll,h=t.horizontal,p=t.spinSize,m=t.containerSize,g=t.style,b=t.thumbStyle,E=t.showScrollBar,y=w.useState(!1),x=st(y,2),S=x[0],R=x[1],O=w.useState(null),M=st(O,2),k=M[0],P=M[1],j=w.useState(null),H=st(j,2),I=H[0],A=H[1],$=!r,L=w.useRef(),U=w.useRef(),V=w.useState(E),Q=st(V,2),F=Q[0],J=Q[1],ae=w.useRef(),ye=function(){E===!0||E===!1||(clearTimeout(ae.current),J(!0),ae.current=setTimeout(function(){J(!1)},3e3))},X=a-m||0,ee=m-p||0,ve=w.useMemo(function(){if(i===0||X===0)return 0;var Ne=i/X;return Ne*ee},[i,X,ee]),le=function(Te){Te.stopPropagation(),Te.preventDefault()},se=w.useRef({top:ve,dragging:S,pageY:k,startTop:I});se.current={top:ve,dragging:S,pageY:k,startTop:I};var he=function(Te){R(!0),P(Mx(Te,h)),A(se.current.top),l(),Te.stopPropagation(),Te.preventDefault()};w.useEffect(function(){var Ne=function(yt){yt.preventDefault()},Te=L.current,Be=U.current;return Te.addEventListener("touchstart",Ne,{passive:!1}),Be.addEventListener("touchstart",he,{passive:!1}),function(){Te.removeEventListener("touchstart",Ne),Be.removeEventListener("touchstart",he)}},[]);var ie=w.useRef();ie.current=X;var be=w.useRef();be.current=ee,w.useEffect(function(){if(S){var Ne,Te=function(yt){var _e=se.current,Ae=_e.dragging,je=_e.pageY,$e=_e.startTop;ki.cancel(Ne);var Y=L.current.getBoundingClientRect(),G=m/(h?Y.width:Y.height);if(Ae){var K=(Mx(yt,h)-je)*G,ue=$e;!$&&h?ue-=K:ue+=K;var we=ie.current,pe=be.current,De=pe?ue/pe:0,Ue=Math.ceil(De*we);Ue=Math.max(Ue,0),Ue=Math.min(Ue,we),Ne=ki(function(){d(Ue,h)})}},Be=function(){R(!1),u()};return window.addEventListener("mousemove",Te,{passive:!0}),window.addEventListener("touchmove",Te,{passive:!0}),window.addEventListener("mouseup",Be,{passive:!0}),window.addEventListener("touchend",Be,{passive:!0}),function(){window.removeEventListener("mousemove",Te),window.removeEventListener("touchmove",Te),window.removeEventListener("mouseup",Be),window.removeEventListener("touchend",Be),ki.cancel(Ne)}}},[S]),w.useEffect(function(){return ye(),function(){clearTimeout(ae.current)}},[i]),w.useImperativeHandle(e,function(){return{delayHidden:ye}});var xe="".concat(n,"-scrollbar"),ke={position:"absolute",visibility:F?null:"hidden"},Me={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return h?(Object.assign(ke,{height:8,left:0,right:0,bottom:0}),Object.assign(Me,Ve({height:"100%",width:p},$?"left":"right",ve))):(Object.assign(ke,Ve({width:8,top:0,bottom:0},$?"right":"left",0)),Object.assign(Me,{width:"100%",height:p,top:ve})),w.createElement("div",{ref:L,className:Ff(xe,Ve(Ve(Ve({},"".concat(xe,"-horizontal"),h),"".concat(xe,"-vertical"),!h),"".concat(xe,"-visible"),F)),style:qe(qe({},ke),g),onMouseDown:le,onMouseMove:ye},w.createElement("div",{ref:U,className:Ff("".concat(xe,"-thumb"),Ve({},"".concat(xe,"-thumb-moving"),S)),style:qe(qe({},Me),b),onMouseDown:he}))}),_J=20;function pO(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t/e*t;return isNaN(n)&&(n=0),n=Math.max(n,_J),Math.floor(n)}var EJ=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],CJ=[],RJ={overflowY:"auto",overflowAnchor:"none"};function TJ(t,e){var n=t.prefixCls,r=n===void 0?"rc-virtual-list":n,i=t.className,a=t.height,l=t.itemHeight,u=t.fullHeight,d=u===void 0?!0:u,h=t.style,p=t.data,m=t.children,g=t.itemKey,b=t.virtual,E=t.direction,y=t.scrollWidth,x=t.component,S=x===void 0?"div":x,R=t.onScroll,O=t.onVirtualScroll,M=t.onVisibleChange,k=t.innerProps,P=t.extraRender,j=t.styles,H=t.showScrollBar,I=H===void 0?"o
974ptional":H,A=_g(t,EJ),$=w.useCallback(function(Ze){return typeof g=="function"?g(Ze):Ze==null?void 0:Ze[g]},[g]),L=yJ($),U=st(L,4),V=U[0],Q=U[1],F=U[2],J=U[3],ae=!!(b!==!1&&a&&l),ye=w.useMemo(function(){return Object.values(F.maps).reduce(function(Ze,We){return Ze+We},0)},[F.id,F.maps]),X=ae&&p&&(Math.max(l*p.length,ye)>a||!!y),ee=E==="rtl",ve=Ff(r,Ve({},"".concat(r,"-rtl"),ee),i),le=p||CJ,se=w.useRef(),he=w.useRef(),ie=w.useRef(),be=w.useState(0),xe=st(be,2),ke=xe[0],Me=xe[1],Ne=w.useState(0),Te=st(Ne,2),Be=Te[0],nt=Te[1],yt=w.useState(!1),_e=st(yt,2),Ae=_e[0],je=_e[1],$e=function(){je(!0)},Y=function(){je(!1)},G={getKey:$};function K(Ze){Me(function(We){var bt;typeof Ze=="function"?bt=Ze(We):bt=Ze;var Pt=Li(bt);return se.current.scrollTop=Pt,Pt})}var ue=w.useRef({start:0,end:le.length}),we=w.useRef(),pe=pJ(le,$),De=st(pe,1),Ue=De[0];we.current=Ue;var Je=w.useMemo(function(){if(!ae)return{scrollHeight:void 0,start:0,end:le.length-1,offset:void 0};if(!X){var Ze;return{scrollHeight:((Ze=he.current)===null||Ze===void 0?void 0:Ze.offsetHeight)||0,start:0,end:le.length-1,offset:void 0}}for(var We=0,bt,Pt,Ln,ls=le.length,Wr=0;Wr<ls;Wr+=1){var zr=le[Wr],Wo=$(zr),$r=F.get(Wo),gi=We+($r===void 0?l:$r);gi>=ke&&bt===void 0&&(bt=Wr,Pt=We),gi>ke+a&&Ln===void 0&&(Ln=Wr),We=gi}return bt===void 0&&(bt=0,Pt=0,Ln=Math.ceil(a/l)),Ln===void 0&&(Ln=le.length-1),Ln=Math.min(Ln+1,le.length-1),{scrollHeight:We,start:bt,end:Ln,offset:Pt}},[X,ae,ke,le,J,a]),ot=Je.scrollHeight,un=Je.start,qt=Je.end,Zn=Je.offset;ue.current.start=un,ue.current.end=qt,w.useLayoutEffect(function(){var Ze=F.getRecord();if(Ze.size===1){var We=Array.from(Ze.keys())[0],bt=Ze.get(We),Pt=le[un];if(Pt&&bt===void 0){var Ln=$(Pt);if(Ln===We){var ls=F.get(We),Wr=ls-l;K(function(zr){return zr+Wr})}}}F.resetRecord()},[ot]);var at=w.useState({width:0,height:a}),ft=st(at,2),Et=ft[0],Ht=ft[1],Nn=function(We){Ht({width:We.offsetWidth,height:We.offsetHeight})},Er=w.useRef(),nn=w.useRef(),_n=w.useMemo(function(){return pO(Et.width,y)},[Et.width,y]),ji=w.useMemo(function(){return pO(Et.height,ot)},[Et.height,ot]),Dn=ot-a,Yr=w.useRef(Dn);Yr.current=Dn;function Li(Ze){var We=Ze;return Number.isNaN(Yr.current)||(We=Math.min(We,Yr.current)),We=Math.max(We,0),We}var Lr=ke<=0,Cr=ke>=Dn,pi=Be<=0,os=Be>=y,zi=cN(Lr,Cr,pi,os),Pn=function(){return{x:ee?-Be:Be,y:ke}},Wt=w.useRef(Pn()),yn=Wf(function(Ze){if(O){var We=qe(qe({},Pn()),Ze);(Wt.current.x!==We.x||Wt.current.y!==We.y)&&(O(We),Wt.current=We)}});function Bt(Ze,We){var bt=Ze;We?(Fo.flushSync(function(){nt(bt)}),yn()):K(bt)}function Ds(Ze){var We=Ze.currentTarget.scrollTop;We!==ke&&K(We),R==null||R(Ze),yn()}var ca=function(We){var bt=We,Pt=y?y-Et.width:0;return bt=Math.max(bt,0),bt=Math.min(bt,Pt),bt},dn=Wf(function(Ze,We){We?(Fo.flushSync(function(){nt(function(bt){var Pt=bt+(ee?-Ze:Ze);return ca(Pt)})}),yn()):K(function(bt){var Pt=bt+Ze;return Pt})}),pn=mJ(ae,Lr,Cr,pi,os,!!y,dn),jn=st(pn,2),In=jn[0],hr=jn[1];bJ(ae,se,function(Ze,We,bt,Pt){var Ln=Pt;return zi(Ze,We,bt)?!1:!Ln||!Ln._virtualHandled?(Ln&&(Ln._virtualHandled=!0),In({preventDefault:function(){},deltaX:Ze?We:0,deltaY:Ze?0:We}),!0):!1}),xJ(X,se,function(Ze){K(function(We){return We+Ze})}),gu(function(){function Ze(bt){var Pt=Lr&&bt.detail<0,Ln=Cr&&bt.detail>0;ae&&!Pt&&!Ln&&bt.preventDefault()}var We=se.current;return We.addEventListener("wheel",In,{passive:!1}),We.addEventListener("DOMMouseScroll",hr,{passive:!0}),We.addEventListener("MozMousePixelScroll",Ze,{passive:!1}),function(){We.removeEventListener("wheel",In),We.removeEventListener("DOMMouseScroll",hr),We.removeEventListener("MozMousePixelScroll",Ze)}},[ae,Lr,Cr]),gu(function(){if(y){var Ze=ca(Be);nt(Ze),yn({x:Ze})}},[Et.width,y]);var Jn=function(){var We,bt;(We=Er.current)===null||We===void 0||We.delayHidden(),(bt=nn.current)===null||bt===void 0||bt.delayHidden()},mi=SJ(se,le,F,l,$,function(){return Q(!0)},K,Jn);w.useImperativeHandle(e,function(){return{nativeElement:ie.current,getScrollInfo:Pn,scrollTo:function(We){function bt(Pt){return Pt&&Yt(Pt)==="object"&&("left"in Pt||"top"in Pt)}bt(We)?(We.left!==void 0&&nt(ca(We.left)),mi(We.top)):mi(We)}}}),gu(function(){if(M){var Ze=le.slice(un,qt+1);M(Ze,le)}},[un,qt,le]);var Kr=gJ(le,$,F,l),fn=P==null?void 0:P({start:un,end:qt,virtual:X,offsetX:Be,offsetY:Zn,rtl:ee,getSize:Kr}),Ps=fJ(le,un,qt,y,Be,V,m,G),Qr=null;a&&(Qr=qe(Ve({},d?"height":"maxHeight",a),RJ),ae&&(Qr.overflowY="hidden",y&&(Qr.overflowX="hidden"),Ae&&(Qr.pointerEvents="none")));var En={};return ee&&(En.dir="rtl"),w.createElement("div",La({ref:ie,style:qe(qe({},h),{},{position:"relative"}),className:ve},En,A),w.createElement(Jw,{onResize:Nn},w.createElement(S,{className:"".concat(r,"-holder"),style:Qr,ref:se,onScroll:Ds,onMouseEnter:Jn},w.createElement(lN,{prefixCls:r,height:ot,offsetX:Be,offsetY:Zn,scrollWidth:y,onInnerResize:Q,ref:he,innerProps:k,rtl:ee,extra:fn},Ps))),X&&ot>a&&w.createElement(hO,{ref:Er,prefixCls:r,scrollOffset:ke,scrollRange:ot,rtl:ee,onScroll:Bt,onStartMove:$e,onStopMove:Y,spinSize:ji,containerSize:Et.height,style:j==null?void 0:j.verticalScrollBar,thumbStyle:j==null?void 0:j.verticalScrollBarThumb,showScrollBar:I}),X&&y>Et.width&&w.createElement(hO,{ref:nn,prefixCls:r,scrollOffset:Be,scrollRange:y,rtl:ee,onScroll:Bt,onStartMove:$e,onStopMove:Y,spinSize:_n,containerSize:Et.width,horizontal:!0,style:j==null?void 0:j.horizontalScrollBar,thumbStyle:j==null?void 0:j.horizontalScrollBarThumb,showScrollBar:I}))}var OJ=w.forwardRef(TJ);OJ.displayName="List";function AJ(){return C.jsx("div",{className:"fixed inset-0 bg-black/30 z-1000 flex items-center justify-center ",children:C.jsx("div",{className:"w-12 h-12 border-4 border-primary border-t-transparent roun
974ded-full animate-spin"})})}const kJ=({className:t})=>C.jsx(C.Fragment,{children:C.jsx(kK,{className:t})}),MJ=Object.freeze(Object.defineProperty({__proto__:null,default:kJ},Symbol.toStringTag,{value:"Module"}));function NJ(t,e,n,r,i){const a=(...l)=>(console.warn("gridstack.js: Function `"+n+"` is deprecated in "+i+" and has been replaced with `"+r+"`. It will be **removed** in a future release"),e.apply(t,l));return a.prototype=e.prototype,a}class fe{static getElements(e,n=document){if(typeof e=="string"){const r="getElementById"in n?n:void 0;if(r&&!isNaN(+e[0])){const a=r.getElementById(e);return a?[a]:[]}let i=n.querySelectorAll(e);return!i.length&&e[0]!=="."&&e[0]!=="#"&&(i=n.querySelectorAll("."+e),i.length||(i=n.querySelectorAll("#"+e))),Array.from(i)}return[e]}static getElement(e,n=document){if(typeof e=="string"){const r="getElementById"in n?n:void 0;if(!e.length)return null;if(r&&e[0]==="#")return r.getElementById(e.substring(1));if(e[0]==="#"||e[0]==="."||e[0]==="[")return n.querySelector(e);if(r&&!isNaN(+e[0]))return r.getElementById(e);let i=n.querySelector(e);return r&&!i&&(i=r.getElementById(e)),i||(i=n.querySelector("."+e)),i}return e}static lazyLoad(e){var n,r;return e.lazyLoad||((r=(n=e.grid)==null?void 0:n.opts)==null?void 0:r.lazyLoad)&&e.lazyLoad!==!1}static createDiv(e,n){const r=document.createElement("div");return e.forEach(i=>{i&&r.classList.add(i)}),n==null||n.appendChild(r),r}static shouldSizeToContent(e,n=!1){return(e==null?void 0:e.grid)&&(n?e.sizeToContent===!0||e.grid.opts.sizeToContent===!0&&e.sizeToContent===void 0:!!e.sizeToContent||e.grid.opts.sizeToContent&&e.sizeToContent!==!1)}static isIntercepted(e,n){return!(e.y>=n.y+n.h||e.y+e.h<=n.y||e.x+e.w<=n.x||e.x>=n.x+n.w)}static isTouching(e,n){return fe.isIntercepted(e,{x:n.x-.5,y:n.y-.5,w:n.w+1,h:n.h+1})}static areaIntercept(e,n){const r=e.x>n.x?e.x:n.x,i=e.x+e.w<n.x+n.w?e.x+e.w:n.x+n.w;if(i<=r)return 0;const a=e.y>n.y?e.y:n.y,l=e.y+e.h<n.y+n.h?e.y+e.h:n.y+n.h;return l<=a?0:(i-r)*(l-a)}static area(e){return e.w*e.h}static sort(e,n=1){return e.sort((i,a)=>{const l=n*((i.y??1e4)-(a.y??1e4));return l===0?n*((i.x??1e4)-(a.x??1e4)):l})}static find(e,n){return n?e.find(r=>r.id===n):void 0}static createStylesheet(e,n,r){const i=document.createElement("style"),a=r==null?void 0:r.nonce;return a&&(i.nonce=a),i.setAttribute("type","text/css"),i.setAttribute("gs-style-id",e),i.styleSheet?i.styleSheet.cssText="":i.appendChild(document.createTextNode("")),n?n.insertBefore(i,n.firstChild):(n=document.getElementsByTagName("head")[0],n.appendChild(i)),i}static removeStylesheet(e,n){const i=(n||document).querySelector("STYLE[gs-style-id="+e+"]");i&&i.parentNode&&i.remove()}static addCSSRule(e,n,r){e.textContent+=`${n} { ${r} } `}static toBool(e){return typeof e=="boolean"?e:typeof e=="string"?(e=e.toLowerCase(),!(e===""||e==="no"||e==="false"||e==="0")):!!e}static toNumber(e){return e===null||e.length===0?void 0:Number(e)}static parseHeight(e){let n,r="px";if(typeof e=="string")if(e==="auto"||e==="")n=0;else{const i=e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!i)throw new Error(`Invalid height val = ${e}`);r=i[2]||"px",n=parseFloat(i[1])}else n=e;return{h:n,unit:r}}static defaults(e,...n){return n.forEach(r=>{for(const i in r){if(!r.hasOwnProperty(i))return;e[i]===null||e[i]===void 0?e[i]=r[i]:typeof r[i]=="object"&&typeof e[i]=="object"&&this.defaults(e[i],r[i])}}),e}static same(e,n){if(typeof e!="object")return e==n;if(typeof e!=typeof n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}static copyPos(e,n,r=!1){return n.x!==void 0&&(e.x=n.x),n.y!==void 0&&(e.y=n.y),n.w!==void 0&&(e.w=n.w),n.h!==void 0&&(e.h=n.h),r&&(n.minW&&(e.minW=n.minW),n.minH&&(e.minH=n.minH),n.maxW&&(e.maxW=n.maxW),n.maxH&&(e.maxH=n.maxH)),e}static samePos(e,n){return e&&n&&e.x===n.x&&e.y===n.y&&(e.w||1)===(n.w||1)&&(e.h||1)===(n.h||1)}static sanitizeMinMax(e){e.minW||delete e.minW,e.minH||delete e.minH,e.maxW||delete e.maxW,e.maxH||delete e.maxH}static removeInternalAndSame(e,n){if(!(typeof e!="object"||typeof n!="object"))for(let r in e){const i=e[r],a=n[r];r[0]==="_"||i===a?delete e[r]:i&&typeof i=="object"&&a!==void 0&&(fe.removeInternalAndSame(i,a),Object.keys(i).length||delete e[r])}}static removeInternalForSave(e,n=!0){for(let r in e)(r[0]==="_"||e[r]===null||e[r]===void 0)&&delete e[r];delete e.grid,n&&delete e.el,e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.
974noMove||delete e.noMove,e.locked||delete e.locked,(e.w===1||e.w===e.minW)&&delete e.w,(e.h===1||e.h===e.minH)&&delete e.h}static throttle(e,n){let r=!1;return(...i)=>{r||(r=!0,setTimeout(()=>{e(...i),r=!1},n))}}static removePositioningStyles(e){const n=e.style;n.position&&n.removeProperty("position"),n.left&&n.removeProperty("left"),n.top&&n.removeProperty("top"),n.width&&n.removeProperty("width"),n.height&&n.removeProperty("height")}static getScrollElement(e){if(!e)return document.scrollingElement||document.documentElement;const n=getComputedStyle(e);return/(auto|scroll)/.test(n.overflow+n.overflowY)?e:this.getScrollElement(e.parentElement)}static updateScrollPosition(e,n,r){const i=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;if(i.top<0||i.bottom>a){const l=i.bottom-a,u=i.top,d=this.getScrollElement(e);if(d!==null){const h=d.scrollTop;i.top<0&&r<0?e.offsetHeight>a?d.scrollTop+=r:d.scrollTop+=Math.abs(u)>Math.abs(r)?r:u:r>0&&(e.offsetHeight>a?d.scrollTop+=r:d.scrollTop+=l>r?r:l),n.top+=d.scrollTop-h}}}static updateScrollResize(e,n,r){const i=this.getScrollElement(n),a=i.clientHeight,l=i===this.getScrollElement()?0:i.getBoundingClientRect().top,u=e.clientY-l,d=u<r,h=u>a-r;d?i.scrollBy({behavior:"smooth",top:u-r}):h&&i.scrollBy({behavior:"smooth",top:r-(a-u)})}static clone(e){return e==null||typeof e!="object"?e:e instanceof Array?[...e]:{...e}}static cloneDeep(e){const n=["parentGrid","el","grid","subGrid","engine"],r=fe.clone(e);for(const i in r)r.hasOwnProperty(i)&&typeof r[i]=="object"&&i.substring(0,2)!=="__"&&!n.find(a=>a===i)&&(r[i]=fe.cloneDeep(e[i]));return r}static cloneNode(e){const n=e.cloneNode(!0);return n.removeAttribute("id"),n}static appendTo(e,n){let r;typeof n=="string"?r=fe.getElement(n):r=n,r&&r.appendChild(e)}static addElStyles(e,n){if(n instanceof Object)for(const r in n)n.hasOwnProperty(r)&&(Array.isArray(n[r])?n[r].forEach(i=>{e.style[r]=i}):e.style[r]=n[r])}static initEvent(e,n){const r={type:n.type},i={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:n.target?n.target:e.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(a=>r[a]=e[a]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(a=>r[a]=e[a]),{...r,...i}}static simulateMouseEvent(e,n,r){const i=e,a=new MouseEvent(n,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,ctrlKey:i.ctrlKey??!1,altKey:i.altKey??!1,shiftKey:i.shiftKey??!1,metaKey:i.metaKey??!1,button:0,relatedTarget:e.target});(r||e.target).dispatchEvent(a)}static getValuesFromTransformedElement(e){const n=document.createElement("div");fe.addElStyles(n,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),e.appendChild(n);const r=n.getBoundingClientRect();return e.removeChild(n),n.remove(),{xScale:1/r.width,yScale:1/r.height,xOffset:r.left,yOffset:r.top}}static swap(e,n,r){if(!e)return;const i=e[n];e[n]=e[r],e[r]=i}static canBeRotated(e){var n;return!(!e||e.w===e.h||e.locked||e.noResize||(n=e.grid)!=null&&n.opts.disableResize||e.minW&&e.minW===e.maxW||e.minH&&e.minH===e.maxH)}}class Ws{constructor(e={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=e.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=e.maxRow,this._float=e.float,this.nodes=e.nodes||[],this.onChange=e.onChange}batchUpdate(e=!0,n=!0){return!!this.batchMode===e?this:(this.batchMode=e,e?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,n&&this._packNodes(),this._notify()),this)}_useEntireRowArea(e,n){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!e._moving||e._skipDown||n.y<=e.y)}_fixCollisions(e,n=e,r,i={}){if(this.sortNodes(-1),r=r||this.collide(e,n),!r)return!1;if(e._moving&&!i.nested&&!this.float&&this.swap(e,r))return!0;let a=n;!this._loading&&this._useEntireRowArea(e,n)&&(a={x:0,w:this.column,y:n.y,h:n.h},r=this.collide(e,a,i.skip));let l=!1;const u={nested:!0,pack:!1};let d=0;for(;r=r||this.collide(e,a,i.skip);){if(d++>this.nodes.length*2)throw new Error("Infinite collide check");let h;
974if(r.locked||this._loading||e._moving&&!e._skipDown&&n.y>e.y&&!this.float&&(!this.collide(r,{...r,y:e.y},e)||!this.collide(r,{...r,y:n.y-r.h},e))){e._skipDown=e._skipDown||n.y>e.y;const p={...n,y:r.y+r.h,...u};h=this._loading&&fe.samePos(e,p)?!0:this.moveNode(e,p),(r.locked||this._loading)&&h?fe.copyPos(n,e):!r.locked&&h&&i.pack&&(this._packNodes(),n.y=r.y+r.h,fe.copyPos(e,n)),l=l||h}else h=this.moveNode(r,{...r,y:n.y+n.h,skip:e,...u});if(!h)return l;r=void 0}return l}collide(e,n=e,r){const i=e._id,a=r==null?void 0:r._id;return this.nodes.find(l=>l._id!==i&&l._id!==a&&fe.isIntercepted(l,n))}collideAll(e,n=e,r){const i=e._id,a=r==null?void 0:r._id;return this.nodes.filter(l=>l._id!==i&&l._id!==a&&fe.isIntercepted(l,n))}directionCollideCoverage(e,n,r){if(!n.rect||!e._rect)return;const i=e._rect,a={...n.rect};a.y>i.y?(a.h+=a.y-i.y,a.y=i.y):a.h+=i.y-a.y,a.x>i.x?(a.w+=a.x-i.x,a.x=i.x):a.w+=i.x-a.x;let l,u=.5;for(let d of r){if(d.locked||!d._rect)break;const h=d._rect;let p=Number.MAX_VALUE,m=Number.MAX_VALUE;i.y<h.y?p=(a.y+a.h-h.y)/h.h:i.y+i.h>h.y+h.h&&(p=(h.y+h.h-a.y)/h.h),i.x<h.x?m=(a.x+a.w-h.x)/h.w:i.x+i.w>h.x+h.w&&(m=(h.x+h.w-a.x)/h.w);const g=Math.min(m,p);g>u&&(u=g,l=d)}return n.collide=l,l}cacheRects(e,n,r,i,a,l){return this.nodes.forEach(u=>u._rect={y:u.y*n+r,x:u.x*e+l,w:u.w*e-l-i,h:u.h*n-r-a}),this}swap(e,n){if(!n||n.locked||!e||e.locked)return!1;function r(){const a=n.x,l=n.y;return n.x=e.x,n.y=e.y,e.h!=n.h?(e.x=a,e.y=n.y+n.h):e.w!=n.w?(e.x=n.x+n.w,e.y=l):(e.x=a,e.y=l),e._dirty=n._dirty=!0,!0}let i;if(e.w===n.w&&e.h===n.h&&(e.x===n.x||e.y===n.y)&&(i=fe.isTouching(e,n)))return r();if(i!==!1){if(e.w===n.w&&e.x===n.x&&(i||(i=fe.isTouching(e,n)))){if(n.y<e.y){const a=e;e=n,n=a}return r()}if(i!==!1){if(e.h===n.h&&e.y===n.y&&(i||(i=fe.isTouching(e,n)))){if(n.x<e.x){const a=e;e=n,n=a}return r()}return!1}}}isAreaEmpty(e,n,r,i){const a={x:e||0,y:n||0,w:r||1,h:i||1};return!this.collide(a)}compact(e="compact",n=!0){if(this.nodes.length===0)return this;n&&this.sortNodes();const r=this.batchMode;r||this.batchUpdate();const i=this._inColumnResize;i||(this._inColumnResize=!0);const a=this.nodes;return this.nodes=[],a.forEach((l,u,d)=>{let h;l.locked||(l.autoPosition=!0,e==="list"&&u&&(h=d[u-1])),this.addNode(l,!1,h)}),i||delete this._inColumnResize,r||this.batchUpdate(!1),this}set float(e){this._float!==e&&(this._float=e||!1,e||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(e=1){return this.nodes=fe.sort(this.nodes,e),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(e=>{if(e._updating||e._orig===void 0||e.y===e._orig.y)return;let n=e.y;for(;n>e._orig.y;)--n,this.collide(e,{x:e.x,y:n,w:e.w,h:e.h})||(e._dirty=!0,e.y=n)}):this.nodes.forEach((e,n)=>{if(!e.locked)for(;e.y>0;){const r=n===0?0:e.y-1;if(!(n===0||!this.collide(e,{x:e.x,y:r,w:e.w,h:e.h})))break;e._dirty=e.y!==r,e.y=r}}),this)}prepareNode(e,n){e._id=e._id??Ws._idSeq++;const r=e.id;if(r){let a=1;for(;this.nodes.find(l=>l.id===e.id&&l!==e);)e.id=r+"_"+a++}(e.x===void 0||e.y===void 0||e.x===null||e.y===null)&&(e.autoPosition=!0);const i={x:0,y:0,w:1,h:1};return fe.defaults(e,i),e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,fe.sanitizeMinMax(e),typeof e.x=="string"&&(e.x=Number(e.x)),typeof e.y=="string"&&(e.y=Number(e.y)),typeof e.w=="string"&&(e.w=Number(e.w)),typeof e.h=="string"&&(e.h=Number(e.h)),isNaN(e.x)&&(e.x=i.x,e.autoPosition=!0),isNaN(e.y)&&(e.y=i.y,e.autoPosition=!0),isNaN(e.w)&&(e.w=i.w),isNaN(e.h)&&(e.h=i.h),this.nodeBoundFix(e,n),e}nodeBoundFix(e,n){const r=e._orig||fe.copyPos({},e);if(e.maxW&&(e.w=Math.min(e.w||1,e.maxW)),e.maxH&&(e.h=Math.min(e.h||1,e.maxH)),e.minW&&(e.w=Math.max(e.w||1,e.minW)),e.minH&&(e.h=Math.max(e.h||1,e.minH)),(e.x||0)+(e.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&e._id&&this.findCacheLayout(e,this.defaultColumn)===-1){const a={...e};a.autoPosition||a.x===void 0?(delete a.x,delete a.y):a.x=Math.min(this.defaultColumn-1,a.x),a.w=Math.min(this.defaultColumn,a.w||1),this.cacheOneLayout(a,this.defaultColumn)}return e.w>this.column?e.w=this.column:e.w<1&&(e.w=1),this.maxRow&&e.h>this.maxRow?e.h=this.maxRow:e.h<1&&(e.h=1),e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.x+e.w>this.column&&(n?e.w=this.column-e.x:e.x=this.column-e.w),this.maxRow&&e.y+e.h>this.maxRow&&(n?e.h=this.maxRow-e.y:e.y=this.maxRow-e.h),fe.samePos(e,r)||(e._dirty=!0),this}getDirtyNodes(e){return e?this.nodes.filter(n=>n._dirty&&!fe.samePos(n,n._orig)):this.nodes.filter(n=>n._dirty)}_notify(e){if(this.batchMode||!this.onChange)return this;const n=(e||[]).concat(this.getDirtyNodes());return this.onChange(n),this}
974cleanNodes(){return this.batchMode?this:(this.nodes.forEach(e=>{delete e._dirty,delete e._lastTried}),this)}saveInitial(){return this.nodes.forEach(e=>{e._orig=fe.copyPos({},e),delete e._dirty}),this._hasLocked=this.nodes.some(e=>e.locked),this}restoreInitial(){return this.nodes.forEach(e=>{!e._orig||fe.samePos(e,e._orig)||(fe.copyPos(e,e._orig),e._dirty=!0)}),this._notify(),this}findEmptyPosition(e,n=this.nodes,r=this.column,i){const a=i?i.y*r+(i.x+i.w):0;let l=!1;for(let u=a;!l;++u){const d=u%r,h=Math.floor(u/r);if(d+e.w>r)continue;const p={x:d,y:h,w:e.w,h:e.h};n.find(m=>fe.isIntercepted(p,m))||((e.x!==d||e.y!==h)&&(e._dirty=!0),e.x=d,e.y=h,delete e.autoPosition,l=!0)}return l}addNode(e,n=!1,r){const i=this.nodes.find(l=>l._id===e._id);if(i)return i;this._inColumnResize?this.nodeBoundFix(e):this.prepareNode(e),delete e._temporaryRemoved,delete e._removeDOM;let a;return e.autoPosition&&this.findEmptyPosition(e,this.nodes,this.column,r)&&(delete e.autoPosition,a=!0),this.nodes.push(e),n&&this.addedNodes.push(e),a||this._fixCollisions(e),this.batchMode||this._packNodes()._notify(),e}removeNode(e,n=!0,r=!1){return this.nodes.find(i=>i._id===e._id)?(r&&this.removedNodes.push(e),n&&(e._removeDOM=!0),this.nodes=this.nodes.filter(i=>i._id!==e._id),e._isAboutToRemove||this._packNodes(),this._notify([e]),this):this}removeAll(e=!0,n=!0){if(delete this._layouts,!this.nodes.length)return this;e&&this.nodes.forEach(i=>i._removeDOM=!0);const r=this.nodes;return this.removedNodes=n?r:[],this.nodes=[],this._notify(r)}moveNodeCheck(e,n){if(!this.changedPosConstrain(e,n))return!1;if(n.pack=!0,!this.maxRow)return this.moveNode(e,n);let r;const i=new Ws({column:this.column,float:this.float,nodes:this.nodes.map(l=>l._id===e._id?(r={...l},r):{...l})});if(!r)return!1;const a=i.moveNode(r,n)&&i.getRow()<=Math.max(this.getRow(),this.maxRow);if(!a&&!n.resizing&&n.collide){const l=n.collide.el.gridstackNode;if(this.swap(e,l))return this._notify(),!0}return a?(i.nodes.filter(l=>l._dirty).forEach(l=>{const u=this.nodes.find(d=>d._id===l._id);u&&(fe.copyPos(u,l),u._dirty=!0)}),this._notify(),!0):!1}willItFit(e){if(delete e._willFitPos,!this.maxRow)return!0;const n=new Ws({column:this.column,float:this.float,nodes:this.nodes.map(i=>({...i}))}),r={...e};return this.cleanupNode(r),delete r.el,delete r._id,delete r.content,delete r.grid,n.addNode(r),n.getRow()<=this.maxRow?(e._willFitPos=fe.copyPos({},r),!0):!1}changedPosConstrain(e,n){return n.w=n.w||e.w,n.h=n.h||e.h,e.x!==n.x||e.y!==n.y?!0:(e.maxW&&(n.w=Math.min(n.w,e.maxW)),e.maxH&&(n.h=Math.min(n.h,e.maxH)),e.minW&&(n.w=Math.max(n.w,e.minW)),e.minH&&(n.h=Math.max(n.h,e.minH)),e.w!==n.w||e.h!==n.h)}moveNode(e,n){var h,p;if(!e||!n)return!1;let r;n.pack===void 0&&!this.batchMode&&(r=n.pack=!0),typeof n.x!="number"&&(n.x=e.x),typeof n.y!="number"&&(n.y=e.y),typeof n.w!="number"&&(n.w=e.w),typeof n.h!="number"&&(n.h=e.h);const i=e.w!==n.w||e.h!==n.h,a=fe.copyPos({},e,!0);if(fe.copyPos(a,n),this.nodeBoundFix(a,i),fe.copyPos(n,a),!n.forceCollide&&fe.samePos(e,n))return!1;const l=fe.copyPos({},e),u=this.collideAll(e,a,n.skip);let d=!0;if(u.length){const m=e._moving&&!n.nested;let g=m?this.directionCollideCoverage(e,n,u):u[0];if(m&&g&&((p=(h=e.grid)==null?void 0:h.opts)!=null&&p.subGridDynamic)&&!e.grid._isTemp){const b=fe.areaIntercept(n.rect,g._rect),E=fe.area(n.rect),y=fe.area(g._rect);b/(E<y?E:y)>.8&&(g.grid.makeSubGrid(g.el,void 0,e),g=void 0)}g?d=!this._fixCollisions(e,a,g,n):(d=!1,r&&delete n.pack)}return d&&!fe.samePos(e,a)&&(e._dirty=!0,fe.copyPos(e,a)),n.pack&&this._packNodes()._notify(),!fe.samePos(e,l)}getRow(){return this.nodes.reduce((e,n)=>Math.max(e,n.y+n.h),0)}beginUpdate(e){return e._updating||(e._updating=!0,delete e._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const e=this.nodes.find(n=>n._updating);return e&&(delete e._updating,delete e._skipDown),this}save(e=!0,n){var l;const r=(l=this._layouts)==null?void 0:l.length,i=r&&this.column!==r-1?this._layouts[r-1]:null,a=[];return this.sortNodes(),this.nodes.forEach(u=>{const d=i==null?void 0:i.find(p=>p._id===u._id),h={...u,...d||{}};fe.removeInternalForSave(h,!e),n&&n(u,h),a.push(h)}),a}layoutsNodesChange(e){return!this._layouts||this._inColumnResize?this:(this._layouts.forEac
974h((n,r)=>{if(!n||r===this.column)return this;if(r<this.column)this._layouts[r]=void 0;else{const i=r/this.column;e.forEach(a=>{if(!a._orig)return;const l=n.find(u=>u._id===a._id);l&&(l.y>=0&&a.y!==a._orig.y&&(l.y+=a.y-a._orig.y),a.x!==a._orig.x&&(l.x=Math.round(a.x*i)),a.w!==a._orig.w&&(l.w=Math.round(a.w*i)))})}}),this)}columnChanged(e,n,r="moveScale"){var u;if(!this.nodes.length||!n||e===n)return this;const i=r==="compact"||r==="list";i&&this.sortNodes(1),n<e&&this.cacheLayout(this.nodes,e),this.batchUpdate();let a=[],l=i?this.nodes:fe.sort(this.nodes,-1);if(n>e&&this._layouts){const d=this._layouts[n]||[],h=this._layouts.length-1;!d.length&&e!==h&&((u=this._layouts[h])!=null&&u.length)&&(e=h,this._layouts[h].forEach(p=>{const m=l.find(g=>g._id===p._id);m&&(!i&&!p.autoPosition&&(m.x=p.x??m.x,m.y=p.y??m.y),m.w=p.w??m.w,(p.x==null||p.y===void 0)&&(m.autoPosition=!0))})),d.forEach(p=>{const m=l.findIndex(g=>g._id===p._id);if(m!==-1){const g=l[m];if(i){g.w=p.w;return}(p.autoPosition||isNaN(p.x)||isNaN(p.y))&&this.findEmptyPosition(p,a),p.autoPosition||(g.x=p.x??g.x,g.y=p.y??g.y,g.w=p.w??g.w,a.push(g)),l.splice(m,1)}})}if(i)this.compact(r,!1);else{if(l.length)if(typeof r=="function")r(n,e,a,l);else{const d=i||r==="none"?1:n/e,h=r==="move"||r==="moveScale",p=r==="scale"||r==="moveScale";l.forEach(m=>{m.x=n===1?0:h?Math.round(m.x*d):Math.min(m.x,n-1),m.w=n===1||e===1?1:p?Math.round(m.w*d)||1:Math.min(m.w,n),a.push(m)}),l=[]}a=fe.sort(a,-1),this._inColumnResize=!0,this.nodes=[],a.forEach(d=>{this.addNode(d,!1),delete d._orig})}return this.nodes.forEach(d=>delete d._orig),this.batchUpdate(!1,!i),delete this._inColumnResize,this}cacheLayout(e,n,r=!1){const i=[];return e.forEach((a,l)=>{if(a._id===void 0){const u=a.id?this.nodes.find(d=>d.id===a.id):void 0;a._id=(u==null?void 0:u._id)??Ws._idSeq++}i[l]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=r?[]:this._layouts||[],this._layouts[n]=i,this}cacheOneLayout(e,n){e._id=e._id??Ws._idSeq++;const r={x:e.x,y:e.y,w:e.w,_id:e._id};(e.autoPosition||e.x===void 0)&&(delete r.x,delete r.y,e.autoPosition&&(r.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[n]=this._layouts[n]||[];const i=this.findCacheLayout(e,n);return i===-1?this._layouts[n].push(r):this._layouts[n][i]=r,this}findCacheLayout(e,n){var r,i;return((i=(r=this._layouts)==null?void 0:r[n])==null?void 0:i.findIndex(a=>a._id===e._id))??-1}removeNodeFromLayoutCache(e){if(this._layouts)for(let n=0;n<this._layouts.length;n++){const r=this.findCacheLayout(e,n);r!==-1&&this._layouts[n].splice(r,1)}}cleanupNode(e){for(const n in e)n[0]==="_"&&n!=="_id"&&delete e[n];return this}}Ws._idSeq=0;const Ci={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"};class dt{}const Ss=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);class Zs{}function Rg(t,e){t.touches.length>1||(t.cancelable&&t.preventDefault(),fe.simulateMouseEvent(t.changedTouches[0],e))}function uN(t,e){t.cancelable&&t.preventDefault(),fe.simulateMouseEvent(t,e)}function Tg(t){Zs.touchHandled||(Zs.touchHandled=!0,Rg(t,"mousedown"))}function Og(t){Zs.touchHandled&&Rg(t,"mousemove")}function Ag(t){if(!Zs.touchHandled)return;Zs.pointerLeaveTimeout&&(window.clearTimeout(Zs.pointerLeaveTimeout),delete Zs.pointerLeaveTimeout);const e=!!dt.dragElement;Rg(t,"mouseup"),e||Rg(t,"click"),Zs.touchHandled=!1}function kg(t){t.pointerType!=="mouse"&&t.target.releasePointerCapture(t.pointerId)}function mO(t){dt.dragElement&&t.pointerType!=="mouse"&&uN(t,"mouseenter")}function gO(t){dt.dragElement&&t.pointerType!=="mouse"&&(Zs.pointerLeaveTimeout=window.setTimeout(()=>{delete Zs.pointerLeaveTimeout,uN(t,"mouseleave")},10))}class gv{constructor(e,n,r){this.host=e,this.dir=n,this.option=r,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){const e=this.el=document.createElement("div");return e.classList.add("ui-resizable-handle"),e.classList.add(`${gv.prefix}${this.dir}`),e.style.zIndex="100",e.style.userSelect="none",this.host.appendChild(this.el),this.el.addEventListener("mousedown",this._mouseDown),Ss&&(this.el.addEventListener("touchstart",Tg),this.el.addEventListener("pointerdown",kg)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Ss&&(this.el.removeEventListener("touchstart",Tg),this.el.removeEventListener("pointerdown",kg)),this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(e){this.mouseDownEvent=e,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Ss&&(this.el.addEventListener("touchmove",Og),this.el.addEventListener("touchend",Ag)),e.stopPropagation(),e.preventDefault()}_mouseMove(e){const n=this.mouseDownEvent;this.moving?this._triggerEvent("move",e):Math.abs(e.x-n.x)+Math.abs(e.y-n.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",e),document.addEventListener("keydown",this._keyEvent)),e.stopPropagation()}_mouseUp(e){this.moving&&(this._triggerEvent("stop",e),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Ss&&(this.el.removeEventListener("touchmove",Og),this.el.removeEventListener("touchend",Ag)),delete this.moving,delete this.mouseDownEvent,e.stopPropagation(),e.preventDefault()}
974_keyEvent(e){var n,r;e.key==="Escape"&&((r=(n=this.host.gridstackNode)==null?void 0:n.grid)==null||r.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(e,n){return this.option[e]&&this.option[e](n),this}}gv.prefix="ui-resizable-";class uS{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,n){this._eventRegister[e]=n}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,n){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](n)}}class Zf extends uS{constructor(e,n={}){super(),this.el=e,this.option=n,this.rectScale={x:1,y:1},this._ui=()=>{const i=this.el.parentElement.getBoundingClientRect(),a={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},l=this.temporalRect||a;return{position:{left:(l.left-i.left)*this.rectScale.x,top:(l.top-i.top)*this.rectScale.y},size:{width:l.width*this.rectScale.x,height:l.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(e,n){super.on(e,n)}off(e){super.off(e)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(e){const n=e.handles&&e.handles!==this.option.handles,r=e.autoHide&&e.autoHide!==this.option.autoHide;return Object.keys(e).forEach(i=>this.option[i]=e[i]),n&&(this._removeHandlers(),this._setupHandlers()),r&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(e){return e?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),dt.overResizeElement===this&&delete dt.overResizeElement),this}_mouseOver(e){dt.overResizeElement||dt.dragElement||(dt.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(e){dt.overResizeElement===this&&(delete dt.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(e=>e.trim()).map(e=>new gv(this.el,e,{start:n=>{this._resizeStart(n)},stop:n=>{this._resizeStop(n)},move:n=>{this._resizing(n,e)}})),this}_resizeStart(e){this.sizeToContent=fe.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=fe.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=e,this._setupHelper(),this._applyChange();const n=fe.initEvent(e,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(n,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",n),this}_resizing(e,n){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(e,n),this._applyChange();const r=fe.initEvent(e,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(r,this._ui()),this.triggerEvent("resize",r),this}_resizeStop(e){const n=fe.initEvent(e,{type:"resizestop",target:this.el});return this.option.stop&&this.option.stop(n),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",n),this._cleanHelper(),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=Zf._originStyleProp.map(r=>this.el.style[r]),this.parentOriginStylePosition=this.el.parentElement.style.position;const e=this.el.parentElement,n=fe.getValuesFromTransformedElement(e);return this.rectScale={x:n.xScale,y:n.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}
974_cleanHelper(){return Zf._originStyleProp.forEach((e,n)=>{this.el.style[e]=this.elOriginStyleVal[n]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(e,n){const r=this.startEvent,i={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=e.clientX-r.clientX,l=this.sizeToContent?0:e.clientY-r.clientY;let u,d;n.indexOf("e")>-1?i.width+=a:n.indexOf("w")>-1&&(i.width-=a,i.left+=a,u=!0),n.indexOf("s")>-1?i.height+=l:n.indexOf("n")>-1&&(i.height-=l,i.top+=l,d=!0);const h=this._constrainSize(i.width,i.height,u,d);return Math.round(i.width)!==Math.round(h.width)&&(n.indexOf("w")>-1&&(i.left+=i.width-h.width),i.width=h.width),Math.round(i.height)!==Math.round(h.height)&&(n.indexOf("n")>-1&&(i.top+=i.height-h.height),i.height=h.height),i}_constrainSize(e,n,r,i){const a=this.option,l=(r?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,u=a.minWidth/this.rectScale.x||e,d=(i?a.maxHeightMoveUp:a.maxHeight)||Number.MAX_SAFE_INTEGER,h=a.minHeight/this.rectScale.y||n,p=Math.min(l,Math.max(u,e)),m=Math.min(d,Math.max(h,n));return{width:p,height:m}}_applyChange(){let e={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const n=this.el.parentElement,{left:r,top:i}=n.getBoundingClientRect();e={left:r,top:i,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(n=>{const r=this.temporalRect[n],i=n==="width"||n==="left"?this.rectScale.x:n==="height"||n==="top"?this.rectScale.y:1;this.el.style[n]=(r-e[n])*i+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(e=>e.destroy()),delete this.handlers,this}}Zf._originStyleProp=["width","height","position","left","top","opacity","zIndex"];const DJ='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';class Jf extends uS{constructor(e,n={}){var a;super(),this.el=e,this.option=n,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const r=(a=n==null?void 0:n.handle)==null?void 0:a.substring(1),i=e.gridstackNode;this.dragEls=!r||e.classList.contains(r)?[e]:i!=null&&i.subGrid?[e.querySelector(n.handle)||e]:Array.from(e.querySelectorAll(n.handle)),this.dragEls.length===0&&(this.dragEls=[e]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(e,n){super.on(e,n)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(e=>{e.addEventListener("mousedown",this._mouseDown),Ss&&(e.addEventListener("touchstart",Tg),e.addEventListener("pointerdown",kg))}),this.el.classList.remove("ui-draggable-disabled"))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(n=>{n.removeEventListener("mousedown",this._mouseDown),Ss&&(n.removeEventListener("touchstart",Tg),n.removeEventListener("pointerdown",kg))}),e||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(e){return Object.keys(e).forEach(n=>this.option[n]=e[n]),this}_mouseDown(e){if(!dt.mouseHandled)return e.button!==0||!this.dragEls.find(n=>n===e.target)&&e.target.closest(DJ)||this.option.cancel&&e.target.closest(this.option.cancel)||(this.mouseDownEvent=e,delete this.dragging,delete dt.dragElement,delete dt.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Ss&&(e.currentTarget.addEventListener("touchmove",Og),e.currentTarget.addEventListener("touchend",Ag)),e.preventDefault(),document.activeElement&&document.activeElement.blur(),dt.mouseHandled=!0),!0}_callDrag(e){if(!this.dragging)return;const n=fe.initEvent(e,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(n,this.ui()),this.triggerEvent("drag",n)}_mouseMove(e){var r;const n=this.mouseDownEvent;if(this.lastDrag=e,this.dragging)if(this._dragFollow(e),dt.pauseDrag){const i=Number.isInteger(dt.pauseDrag)?dt.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(e),i)}else this._callDrag(e);else if(Math.abs(e.x-n.x)+Math.abs(e.y-n.y)>3){this.dragging=!0,dt.dragElement=this;const i=(r=this.el.gridstackNode)==null?void 0:r.grid;i?dt.dropElement=i.el.ddElement.ddDroppable:delete dt.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=fe.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(e,this.el,this.helperContainment),this._setupHelperStyle(e);const a=fe.initEvent(e,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(a,this.ui()),this.triggerEvent("dragstart",a),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(e){var n,r;if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Ss&&e.currentTarget&&(e.currentTarget.removeEventListener("touchmove",Og,!0),e.currentTarget.removeEventListener("touchend",Ag,!0)),this.dragging){delete this.dragging,(n=this.el.gridstackNode)==null||delete n._origRotate,document.removeEventListener("keydown",this._keyEvent),((r=dt.dropElement)==null?void 0:r.el)===this.el.parentElement&&delete dt.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const i=fe.initEvent(e,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(i),this.triggerEvent("dragstop",i),dt.dropElement&&dt.dropElement.drop(e)}delete this.helper,delete this.mouseDownEvent,delete dt.dragElement,delete dt.dropElement,delete dt.mouseHandled,e.preventDefault()}
974_keyEvent(e){var i,a;const n=this.el.gridstackNode,r=(n==null?void 0:n.grid)||((a=(i=dt.dropElement)==null?void 0:i.el)==null?void 0:a.gridstack);if(e.key==="Escape")n&&n._origRotate&&(n._orig=n._origRotate,delete n._origRotate),r==null||r.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(n&&r&&(e.key==="r"||e.key==="R")){if(!fe.canBeRotated(n))return;n._origRotate=n._origRotate||{...n._orig},delete n._moving,r.setAnimation(!1).rotate(n.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),n._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,n.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",fe.swap(n._orig,"w","h"),delete n._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let e=this.el;return typeof this.option.helper=="function"?e=this.option.helper(this.el):this.option.helper==="clone"&&(e=fe.cloneNode(this.el)),e.parentElement||fe.appendTo(e,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=Jf.originStyleProp.map(n=>this.el.style[n]),e}_setupHelperStyle(e){this.helper.classList.add("ui-draggable-dragging");const n=this.helper.style;return n.pointerEvents="none",n.width=this.dragOffset.width+"px",n.height=this.dragOffset.height+"px",n.willChange="left, top",n.position="fixed",this._dragFollow(e),n.transition="none",setTimeout(()=>{this.helper&&(n.transition=null)},0),this}_removeHelperStyle(){var n;this.helper.classList.remove("ui-draggable-dragging");const e=(n=this.helper)==null?void 0:n.gridstackNode;if(!(e!=null&&e._isAboutToRemove)&&this.dragElementOriginStyle){const r=this.helper,i=this.dragElementOriginStyle.transition||null;r.style.transition=this.dragElementOriginStyle.transition="none",Jf.originStyleProp.forEach(a=>r.style[a]=this.dragElementOriginStyle[a]||null),setTimeout(()=>r.style.transition=i,50)}return delete this.dragElementOriginStyle,this}_dragFollow(e){const n={left:0,top:0},r=this.helper.style,i=this.dragOffset;r.left=(e.clientX+i.offsetLeft-n.left)*this.dragTransform.xScale+"px",r.top=(e.clientY+i.offsetTop-n.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(e,n,r){let i=0,a=0;r&&(i=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const l=n.getBoundingClientRect();return{left:l.left,top:l.top,offsetLeft:-e.clientX+l.left-i,offsetTop:-e.clientY+l.top-a,width:l.width*this.dragTransform.xScale,height:l.height*this.dragTransform.yScale}}ui(){const n=this.el.parentElement.getBoundingClientRect(),r=this.helper.getBoundingClientRect();return{position:{top:(r.top-n.top)*this.dragTransform.yScale,left:(r.left-n.left)*this.dragTransform.xScale}}}}Jf.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];class PJ extends uS{constructor(e,n={}){super(),this.el=e,this.option=n,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,n){super.on(e,n)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),Ss&&(this.el.addEventListener("pointerenter",mO),this.el.addEventListener("pointerleave",gO)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),Ss&&(this.el.removeEventListener("pointerenter",mO),this.el.removeEventListener("pointerleave",gO)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(n=>this.option[n]=e[n]),this._setupAccept(),this}_mouseEnter(e){if(!dt.dragElement||!this._canDrop(dt.dragElement.el))return;e.preventDefault(),e.stopPropagation(),dt.dropElement&&dt.dropElement!==this&&dt.dropElement._mouseLeave(e,!0),dt.dropElement=this;const n=fe.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(n,this._ui(dt.dragElement)),this.triggerEvent("dropover",n),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,n=!1){var i;if(!dt.dragElement||dt.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const r=fe.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(r,this._ui(dt.dragElement)),this.triggerEvent("dropout",r),dt.dropElement===this&&(delete dt.dropElement,!n)){let a,l=this.el.parentElement;for(;!a&&l;)a=(i=l.ddElement)==null?void 0:i.ddDroppable,l=l.parentElement;a&&a._mouseEnter(e)}}drop(e){e.preventDefault();const n=fe.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(n,this._ui(dt.dragElement)),this.triggerEvent("drop",n)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}}class dS{static init(e){return e.ddElement||(e.ddElement=new dS(e)),e.ddElement}constructor(e){this.el=e}on(e,n){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.on(e,n):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.on(e,n):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.on(e,n),this}off(e){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.off(e):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.off(e):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.off(e),this}setupDraggable(e){return this.ddDraggable?this.ddDraggable.updateOption(e):this.ddDraggable=new Jf(this.el,e),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(e){return this.ddResizable?this.ddResizable.updateOption(e):this.ddResizable=new Zf(this.el,e),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(e){return this.ddDroppable?this.ddDroppable.updateOption(e):this.ddDroppable=new PJ(this.el,e),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}class jJ{resizable(e,n,r,i){return this._getDDElements(e,n).forEac
974h(a=>{if(n==="disable"||n==="enable")a.ddResizable&&a.ddResizable[n]();else if(n==="destroy")a.ddResizable&&a.cleanResizable();else if(n==="option")a.setupResizable({[r]:i});else{const u=a.el.gridstackNode.grid;let d=a.el.getAttribute("gs-resize-handles")||u.opts.resizable.handles||"e,s,se";d==="all"&&(d="n,e,s,w,se,sw,ne,nw");const h=!u.opts.alwaysShowResizeHandle;a.setupResizable({...u.opts.resizable,handles:d,autoHide:h,start:n.start,stop:n.stop,resize:n.resize})}}),this}draggable(e,n,r,i){return this._getDDElements(e,n).forEach(a=>{if(n==="disable"||n==="enable")a.ddDraggable&&a.ddDraggable[n]();else if(n==="destroy")a.ddDraggable&&a.cleanDraggable();else if(n==="option")a.setupDraggable({[r]:i});else{const l=a.el.gridstackNode.grid;a.setupDraggable({...l.opts.draggable,start:n.start,stop:n.stop,drag:n.drag})}}),this}dragIn(e,n){return this._getDDElements(e).forEach(r=>r.setupDraggable(n)),this}droppable(e,n,r,i){return typeof n.accept=="function"&&!n._accept&&(n._accept=n.accept,n.accept=a=>n._accept(a)),this._getDDElements(e,n).forEach(a=>{n==="disable"||n==="enable"?a.ddDroppable&&a.ddDroppable[n]():n==="destroy"?a.ddDroppable&&a.cleanDroppable():n==="option"?a.setupDroppable({[r]:i}):a.setupDroppable(n)}),this}isDroppable(e){var n;return!!((n=e==null?void 0:e.ddElement)!=null&&n.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){var n;return!!((n=e==null?void 0:e.ddElement)!=null&&n.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){var n;return!!((n=e==null?void 0:e.ddElement)!=null&&n.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,n,r){return this._getDDElements(e).forEach(i=>i.on(n,a=>{r(a,dt.dragElement?dt.dragElement.el:a.target,dt.dragElement?dt.dragElement.helper:null)})),this}off(e,n){return this._getDDElements(e).forEach(r=>r.off(n)),this}_getDDElements(e,n){const r=e.gridstack||n!=="destroy"&&n!=="disable",i=fe.getElements(e);return i.length?i.map(l=>l.ddElement||(r?dS.init(l):null)).filter(l=>l):[]}}/*!
975 * GridStack 11.5.1
976 * https://gridstackjs.com/
977 *
978 * Copyright (c) 2021-2024  Alain Dumesny
979 * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
980 */const Br=new jJ;class it{static init(e={},n=".grid-stack"){if(typeof document>"u")return null;const r=it.getGridElement(n);return r?(r.gridstack||(r.gridstack=new it(r,fe.cloneDeep(e))),r.gridstack):(console.error(typeof n=="string"?'GridStack.initAll() no grid was found with selector "'+n+`" - element missing or wrong selector ?
981Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(e={},n=".grid-stack"){const r=[];return typeof document>"u"||(it.getGridElements(n).forEach(i=>{i.gridstack||(i.gridstack=new it(i,fe.cloneDeep(e))),r.push(i.gridstack)}),r.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+n+`" - element missing or wrong selector ?
982Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),r}static addGrid(e,n={}){if(!e)return null;let r=e;if(r.gridstack){const l=r.gridstack;return n&&(l.opts={...l.opts,...n}),n.children!==void 0&&l.load(n.children),l}return(!e.classList.contains("grid-stack")||it.addRemoveCB)&&(it.addRemoveCB?r=it.addRemoveCB(e,n,!0,!0):r=fe.createDiv(["grid-stack",n.class],e)),it.init(n,r)}static registerEngine(e){it.engineClass=e}get placeholder(){if(!this._placeholder){this._placeholder=fe.createDiv([this.opts.placeholderClass,Ci.itemClass,this.opts.itemClass]);const e=fe.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(e.textContent=this.opts.placeholderText)}return this._placeholder}constructor(e,n={}){var m,g,b;this.el=e,this.opts=n,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},e.gridstack=this,this.opts=n=n||{},e.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),n.row&&(n.minRow=n.maxRow=n.row,delete n.row);const r=fe.toNumber(e.getAttribute("gs-row"));n.column==="auto"&&delete n.column,n.alwaysShowResizeHandle!==void 0&&(n._alwaysShowResizeHandle=n.alwaysShowResizeHandle);let i=(m=n.columnOpts)==null?void 0:m.breakpoints;const a=n;if(a.oneColumnModeDomSort&&(delete a.oneColumnModeDomSort,console.log("warning: Gridstack oneColumnModeDomSort no longer supported. Use GridStackOptions.columnOpts instead.")),a.oneColumnSize||a.disableOneColumnMode===!1){const E=a.oneColumnSize||768;delete a.oneColumnSize,delete a.disableOneColumnMode,n.columnOpts=n.columnOpts||{},i=n.columnOpts.breakpoints=n.columnOpts.breakpoints||[];let y=i.find(x=>x.c===1);y?y.w=E:(y={c:1,w:E},i.push(y,{c:12,w:E+1}))}const l=n.columnOpts;l&&(!l.columnWidth&&!((g=l.breakpoints)!=null&&g.length)?(delete n.columnOpts,i=void 0):l.columnMax=l.columnMax||12),(i==null?void 0:i.length)>1&&i.sort((E,y)=>(y.w||0)-(E.w||0));const u={...fe.cloneDeep(Ci),column:fe.toNumber(e.getAttribute("gs-column"))||Ci.column,minRow:r||fe.toNumber(e.getAttribute("gs-min-row"))||Ci.minRow,maxRow:r||fe.toNumber(e.getAttribute("gs-max-row"))||Ci.maxRow,staticGrid:fe.toBool(e.getAttribute("gs-static"))||Ci.staticGrid,sizeToContent:fe.toBool(e.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(n.handleClass?"."+n.handleClass:n.handle?n.handle:"")||Ci.draggable.handle},removableOptions:{accept:n.itemClass||Ci.removableOptions.accept,decline:Ci.removableOptions.decline}};e.getAttribute("gs-animate")&&(u.animate=fe.toBool(e.getAttribute("gs-animate"))),n=fe.defaults(n,u),this._initMargin(),this.checkDynamicColumn(),this.el.classList.add("gs-"+n.column),n.rtl==="auto"&&(n.rtl=e.style.direction==="rtl"),n.rtl&&this.el.classList.add("grid-stack-rtl");const d=this.el.closest("."+Ci.itemClass),h=d==null?void 0:d.gridstackNode;h&&(h.subGrid=this,this.parentGridNode=h,this.el.classList.add("grid-stack-nested"),h.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=n.cellHeight==="auto",this._isAutoCellHeight||n.cellHeight==="initial"?this.cellHeight(void 0,!1):(typeof n.cellHeight=="number"&&n.cellHeightUnit&&n.cellHeightUnit!==Ci.cellHeightUnit&&(n.cellHeight=n.cellHeight+n.cellHeightUnit,delete n.cellHeightUnit),this.cellHeight(n.cellHeight,!1)),n.alwaysShowResizeHandle==="mobile"&&(n.alwaysShowResizeHandle=Ss),this._styleSheetClass="gs-id-"+Ws._idSeq++,this.el.classList.add(this._styleSheetClass),this._setStaticClass();const p=n.engineClass||it.engineClass||Ws;if(this.engine=new p({column:this.getColumn(),float:n.float,maxRow:n.maxRow,onChange:E=>{let y=0;
982this.engine.nodes.forEach(x=>{y=Math.max(y,x.y+x.h)}),E.forEach(x=>{const S=x.el;S&&(x._removeDOM?(S&&S.remove(),delete x._removeDOM):this._writePosAttr(S,x))}),this._updateStyles(!1,y)}}),this._updateStyles(!1,0),n.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(E=>this._prepareElement(E)),delete this.engine._loading,this.batchUpdate(!1)),n.children){const E=n.children;delete n.children,E.length&&this.load(E)}this.setAnimation(),n.subGridDynamic&&!dt.pauseDrag&&(dt.pauseDrag=!0),((b=n.draggable)==null?void 0:b.pause)!==void 0&&(dt.pauseDrag=n.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}addWidget(e){if(typeof e=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(e.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(e);let n,r=e;if(r.grid=this,r!=null&&r.el?n=r.el:it.addRemoveCB?n=it.addRemoveCB(this.el,e,!0,!1):n=this.createWidgetDivs(r),!n)return;if(r=n.gridstackNode,r&&n.parentElement===this.el&&this.engine.nodes.find(a=>a._id===r._id))return n;const i=this._readAttr(n);return fe.defaults(e,i),this.engine.prepareNode(e),this.el.appendChild(n),this.makeWidget(n,e),n}createWidgetDivs(e){const n=fe.createDiv(["grid-stack-item",this.opts.itemClass]),r=fe.createDiv(["grid-stack-item-content"],n);return fe.lazyLoad(e)?e.visibleObservable||(e.visibleObservable=new IntersectionObserver(([i])=>{var a,l;i.isIntersecting&&((a=e.visibleObservable)==null||a.disconnect(),delete e.visibleObservable,it.renderCB(r,e),(l=e.grid)==null||l.prepareDragDrop(e.el))}),window.setTimeout(()=>{var i;return(i=e.visibleObservable)==null?void 0:i.observe(n)})):it.renderCB(r,e),n}makeSubGrid(e,n,r,i=!0){var b,E,y;let a=e.gridstackNode;if(a||(a=this.makeWidget(e).gridstackNode),(b=a.subGrid)!=null&&b.el)return a.subGrid;let l,u=this;for(;u&&!l;)l=(E=u.opts)==null?void 0:E.subGridOpts,u=(y=u.parentGridNode)==null?void 0:y.grid;n=fe.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...l||{},...n||a.subGridOpts||{}}),a.subGridOpts=n;let d;n.column==="auto"&&(d=!0,n.column=Math.max(a.w||1,(r==null?void 0:r.w)||1),delete n.columnOpts);let h=a.el.querySelector(".grid-stack-item-content"),p,m;if(i&&(this._removeDD(a.el),m={...a,x:0,y:0},fe.removeInternalForSave(m),delete m.subGridOpts,a.content&&(m.content=a.content,delete a.content),it.addRemoveCB?p=it.addRemoveCB(this.el,m,!0,!1):(p=fe.createDiv(["grid-stack-item"]),p.appendChild(h),h=fe.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),r){const x=d?n.column:a.w,S=a.h+r.h,R=a.el.style;R.transition="none",this.update(a.el,{w:x,h:S}),setTimeout(()=>R.transition=null)}const g=a.subGrid=it.addGrid(h,n);return r!=null&&r._moving&&(g._isTemp=!0),d&&(g._autoColumn=!0),i&&g.makeWidget(p,m),r&&(r._moving?window.setTimeout(()=>fe.simulateMouseEvent(r._event,"mouseenter",g.el),0):g.makeWidget(a.el,a)),this.resizeToContentCheck(!1,a),g}removeAsSubGrid(e){var r;const n=(r=this.parentGridNode)==null?void 0:r.grid;n&&(n.batchUpdate(),n.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(i=>{i.x+=this.parentGridNode.x,i.y+=this.parentGridNode.y,n.makeWidget(i.el,i)}),n.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,e&&window.setTimeout(()=>fe.simulateMouseEvent(e._event,"mouseenter",n.el),0))}save(e=!0,n=!1,r=it.saveCB){const i=this.engine.save(e,r);if(i.forEach(a=>{var l;if(e&&a.el&&!a.subGrid&&!r){const u=a.el.querySelector(".grid-stack-item-content");a.content=u==null?void 0:u.innerHTML,a.content||delete a.content}else if(!e&&!r&&delete a.content,(l=a.subGrid)!=null&&l.el){const u=a.subGrid.save(e,n,r);a.subGridOpts=n?u:{children:u},delete a.subGrid}delete a.el}),n){const a=fe.cloneDeep(this.opts);a.marginBottom===a.marginTop&&a.marginRight===a.marginLeft&&a.marginTop===a.marginRight&&(a.margin=a.marginTop,delete a.marginTop,delete a.marginRight,delete a.marginBottom,delete a.marginLeft),a.rtl===(this.el.style.direction==="rtl")&&(a.rtl="auto"),this._isAutoCellHeight&&(a.cellHeight="auto"),this._autoColumn&&(a.column="auto");const l=a._alwaysShowResizeHandle;return delete a._alwaysShowResizeHandle,l!==void 0?a.alwaysShowResizeHandle=l:delete a.alwaysShowResizeHandle,fe.removeInternalAndSame(a,Ci),a.children=i,a}return i}load(e,n=it.addRemoveCB||!0){var h;e=fe.cloneDeep(e);const r=this.getColumn();e.forEach(p=>{p.w=p.w||1,p.h=p.h||1}),e=fe.sort(e),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let i=0;e.forEach(p=>{i=Math.max(i,(p.x||0)+p.w)}),i>this.engine.defaultColumn&&(this.engine.defaultColumn=i),i>r&&this.engine.cacheLayout(e,i,!0);const a=it.addRemoveCB;typeof n=="function"&&(it.addRemoveCB=n);const l=[];this.batchUpdate();const u=!this.engine.nodes.length;
982u&&this.setAnimation(!1),!u&&n&&[...this.engine.nodes].forEach(m=>{if(!m.id)return;fe.find(e,m.id)||(it.addRemoveCB&&it.addRemoveCB(this.el,m,!1,!1),l.push(m),this.removeWidget(m.el,!0,!1))}),this.engine._loading=!0;const d=[];return this.engine.nodes=this.engine.nodes.filter(p=>fe.find(e,p.id)?(d.push(p),!1):!0),e.forEach(p=>{var g;const m=fe.find(d,p.id);if(m){if(fe.shouldSizeToContent(m)&&(p.h=m.h),this.engine.nodeBoundFix(p),(p.autoPosition||p.x===void 0||p.y===void 0)&&(p.w=p.w||m.w,p.h=p.h||m.h,this.engine.findEmptyPosition(p)),this.engine.nodes.push(m),fe.samePos(m,p)&&this.engine.nodes.length>1&&(this.moveNode(m,{...p,forceCollide:!0}),fe.copyPos(p,m)),this.update(m.el,p),(g=p.subGridOpts)!=null&&g.children){const b=m.el.querySelector(".grid-stack");b&&b.gridstack&&b.gridstack.load(p.subGridOpts.children)}}else n&&this.addWidget(p)}),delete this.engine._loading,this.engine.removedNodes=l,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?it.addRemoveCB=a:delete it.addRemoveCB,u&&((h=this.opts)!=null&&h.animate)&&this.setAnimation(this.opts.animate,!0),this}batchUpdate(e=!0){return this.engine.batchUpdate(e),e||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(e=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!e||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const n=this.el.querySelector("."+this.opts.itemClass);if(n){const i=fe.toNumber(n.getAttribute("gs-h"))||1;return Math.round(n.offsetHeight/i)}const r=parseInt(this.el.getAttribute("gs-current-row"));return r?Math.round(this.el.getBoundingClientRect().height/r):this.opts.cellHeight}cellHeight(e,n=!0){if(n&&e!==void 0&&this._isAutoCellHeight!==(e==="auto")&&(this._isAutoCellHeight=e==="auto",this._updateResizeEvent()),(e==="initial"||e==="auto")&&(e=void 0),e===void 0){const i=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;e=this.cellWidth()+i}const r=fe.parseHeight(e);return this.opts.cellHeightUnit===r.unit&&this.opts.cellHeight===r.h?this:(this.opts.cellHeightUnit=r.unit,this.opts.cellHeight=r.h,this.resizeToContentCheck(),n&&this._updateStyles(!0),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(e=!1){var n;return e&&((n=this.opts.columnOpts)!=null&&n.breakpointForWindow)?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){var a,l;const e=this.opts.columnOpts;if(!e||!e.columnWidth&&!((a=e.breakpoints)!=null&&a.length))return!1;const n=this.getColumn();let r=n;const i=this._widthOrContainer(!0);if(e.columnWidth)r=Math.min(Math.round(i/e.columnWidth)||1,e.columnMax);else{r=e.columnMax;let u=0;for(;u<e.breakpoints.length&&i<=e.breakpoints[u].w;)r=e.breakpoints[u++].c||n}if(r!==n){const u=(l=e.breakpoints)==null?void 0:l.find(d=>d.c===r);return this.column(r,(u==null?void 0:u.layout)||e.layout),!0}return!1}compact(e="compact",n=!0){return this.engine.compact(e,n),this._triggerChangeEvent(),this}column(e,n="moveScale"){if(!e||e<1||this.opts.column===e)return this;const r=this.getColumn();return this.opts.column=e,this.engine?(this.engine.column=e,this.el.classList.remove("gs-"+r),this.el.classList.add("gs-"+e),this.engine.columnChanged(r,e,n),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):this}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(e=>e.matches("."+this.opts.itemClass)&&!e.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(e=!0){var n,r;if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),e?this.el.parentNode.removeChild(this.el):(this.removeAll(e),this.el.classList.remove(this._styleSheetClass),this.el.removeAttribute("gs-current-row")),this._removeStylesheet(),(n=this.parentGridNode)==null||delete n.subGrid,delete this.parentGridNode,delete this.opts,(r=this._placeholder)==null||delete r.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(e){return this.opts.float!==e&&(this.opts.float=this.engine.float=e,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(e,n=!1){const r=this.el.getBoundingClientRect();let i;n?i={top:r.top+document.documentElement.scrollTop,left:r.left}:i={top:this.el.offsetTop,left:this.el.offsetLeft};const a=e.left-i.left,l=e.top-i.top,u=r.width/this.getColumn(),d=r.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(a/u),y:Math.floor(l/d)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow)}isAreaEmpty(e,n,r,i){return this.engine.isAreaEmpty(e,n,r,i)}makeWidget(e,n){const r=it.getElement(e);
982if(!r)return;r.parentElement||this.el.appendChild(r),this._prepareElement(r,!0,n);const i=r.gridstackNode;this._updateContainerHeight(),i.subGridOpts&&this.makeSubGrid(r,i.subGridOpts,void 0,!1);let a;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(a=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),a&&delete this._ignoreLayoutsNodeChange,r}on(e,n){return e.indexOf(" ")!==-1?(e.split(" ").forEach(i=>this.on(i,n)),this):(e==="change"||e==="added"||e==="removed"||e==="enable"||e==="disable"?(e==="enable"||e==="disable"?this._gsEventHandler[e]=i=>n(i):this._gsEventHandler[e]=i=>{i.detail&&n(i,i.detail)},this.el.addEventListener(e,this._gsEventHandler[e])):e==="drag"||e==="dragstart"||e==="dragstop"||e==="resizestart"||e==="resize"||e==="resizestop"||e==="dropped"||e==="resizecontent"?this._gsEventHandler[e]=n:console.error("GridStack.on("+e+") event not supported"),this)}off(e){return e.indexOf(" ")!==-1?(e.split(" ").forEach(r=>this.off(r)),this):((e==="change"||e==="added"||e==="removed"||e==="enable"||e==="disable")&&this._gsEventHandler[e]&&this.el.removeEventListener(e,this._gsEventHandler[e]),delete this._gsEventHandler[e],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(e=>this.off(e)),this}removeWidget(e,n=!0,r=!0){return e?(it.getElements(e).forEach(i=>{if(i.parentElement&&i.parentElement!==this.el)return;let a=i.gridstackNode;a||(a=this.engine.nodes.find(l=>i===l.el)),a&&(n&&it.addRemoveCB&&it.addRemoveCB(this.el,a,!1,!1),delete i.gridstackNode,this._removeDD(i),this.engine.removeNode(a,n,r),n&&i.parentElement&&i.remove())}),r&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(e=!0,n=!0){return this.engine.nodes.forEach(r=>{e&&it.addRemoveCB&&it.addRemoveCB(this.el,r,!1,!1),delete r.el.gridstackNode,this.opts.staticGrid||this._removeDD(r.el)}),this.engine.removeAll(e,n),n&&this._triggerRemoveEvent(),this}setAnimation(e=this.opts.animate,n){return n?setTimeout(()=>{this.opts&&this.setAnimation(e)}):e?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(e,n=!0,r=!0){return!!this.opts.staticGrid===e?this:(e?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(i=>{this.prepareDragDrop(i.el),i.subGrid&&r&&i.subGrid.setStatic(e,n,r)}),n&&this._setStaticClass(),this)}updateOptions(e){var r;const n=this.opts;return e.acceptWidgets!==void 0&&this._setupAcceptWidget(),e.animate!==void 0&&this.setAnimation(),e.cellHeight&&(this.cellHeight(e.cellHeight,!0),delete e.cellHeight),e.class&&e.class!==n.class&&(n.class&&this.el.classList.remove(n.class),this.el.classList.add(e.class)),typeof e.column=="number"&&!e.columnOpts&&(this.column(e.column),delete e.column),e.margin!==void 0&&this.margin(e.margin),e.staticGrid!==void 0&&this.setStatic(e.staticGrid),e.disableDrag!==void 0&&!e.staticGrid&&this.enableMove(!e.disableDrag),e.disableResize!==void 0&&!e.staticGrid&&this.enableResize(!e.disableResize),e.float!==void 0&&this.float(e.float),e.row!==void 0&&(n.minRow=n.maxRow=e.row),(r=e.children)!=null&&r.length&&(this.load(e.children),delete e.children),this.opts={...this.opts,...e},this}update(e,n){return it.getElements(e).forEach(r=>{var p;const i=r==null?void 0:r.gridstackNode;if(!i)return;const a={...fe.copyPos({},i),...fe.cloneDeep(n)};this.engine.nodeBoundFix(a),delete a.autoPosition;const l=["x","y","w","h"];let u;if(l.some(m=>a[m]!==void 0&&a[m]!==i[m])&&(u={},l.forEach(m=>{u[m]=a[m]!==void 0?a[m]:i[m],delete a[m]})),!u&&(a.minW||a.minH||a.maxW||a.maxH)&&(u={}),a.content!==void 0){const m=r.querySelector(".grid-stack-item-content");m&&m.textContent!==a.content&&(i.content=a.content,it.renderCB(m,a),(p=i.subGrid)!=null&&p.el&&(m.appendChild(i.subGrid.el),i.subGrid.opts.styleInHead||i.subGrid._updateStyles(!0))),delete a.content}let d=!1,h=!1;for(const m in a)m[0]!=="_"&&i[m]!==a[m]&&(i[m]=a[m],d=!0,h=h||!this.opts.staticGrid&&(m==="noResize"||m==="noMove"||m==="locked"));if(fe.sanitizeMinMax(i),u){const m=u.w!==void 0&&u.w!==i.w;this.moveNode(i,u),m&&i.subGrid?i.subGrid.onResize(this.hasAnimationCSS()?i.w:void 0):this.resizeToContentCheck(m,i),delete i._orig}(u||d)&&this._writeAttr(r,i),h&&this.prepareDragDrop(i.el)}),this}moveNode(e,n){const r=e._updating;r||this.engine.cleanNodes().beginUpdate(e),this.engine.moveNode(e,n),this._updateContainerHeight(),r||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(e){var g,b;if(!e||(e.classList.remove("size-to-content-max"),!e.clientHeight))return;const n=e.gridstackNode;if(!n)return;const r=n.grid;if(!r||e.parentElement!==r.el)return;const i=r.getCellHeight(!0);if(!i)return;let a=n.h?n.h*i:e.clientHeight,l;if(n.resizeToContentParent&&(l=e.querySelector(n.resizeToContentParent)),l||(l=e.querySelector(it.resizeToContentParent)),!l)return;const u=e.clientHeight-l.clientHeight,d=n.h?n.h*i-u:l.clientHeight;let h;if(n.subGrid){h=n.subGrid.getRow()*n.subGrid.getCellHeight(!0);const E=n.subGrid.el.getBoundingClientRect(),y=n.subGrid.el.parentElement.getBoundingClientRect();h+=E.top-y.top}else{if((b=(g=n.subGridOpts)==null?void 0:g.children)!=null&&b.length)return;{const E=l.firstElementChild;if(!E){console.error(`Error: GridStack.resizeToContent() widget id:${n.id} '${it.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}h=E.getBoundingClientRect().height||d}}if(d===h)return;a+=h-d;let p=Math.ceil(a/i);const m=Number.isInteger(n.sizeToContent)?n.sizeToContent:0;m&&p>m&&(p=m,e.classList.add("size-to-content-max")),n.minH&&p<n.minH?p=n.minH:n.maxH&&p>n.maxH&&(p=n.maxH),p!==n.h&&(r._ignoreLayoutsNodeChange=!0,r.moveNode(n,{h:p}),delete r._ignoreLayoutsNodeChange)}resizeToContentCBCheck(e){it.resizeToContentCB?it.resizeToContentCB(e):this.resizeToContent(e)}rotate(e,n){return it.getElements(e).forEach(r=>{const i=r.gridstackNode;if(!fe.canBeRotated(i))return;const a={w:i.h,h:i.w,minH:i.minW,minW:i.minH,maxH:i.maxW,maxW:i.maxH};if(n){const u=n.left>0?Math.floor(n.left/this.cellWidth()):0,d=n.top>0?Math.floor(n.top/this.opts.cellHeight):0;a.x=i.x+u-(i.h-(d+1)),a.y=i.y+d-u}
982Object.keys(a).forEach(u=>{a[u]===void 0&&delete a[u]});const l=i._orig;this.update(r,a),i._orig=l}),this}margin(e){if(!(typeof e=="string"&&e.split(" ").length>1)){const r=fe.parseHeight(e);if(this.opts.marginUnit===r.unit&&this.opts.margin===r.h)return}return this.opts.margin=e,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this._updateStyles(!0),this}getMargin(){return this.opts.margin}willItFit(e){if(arguments.length>1){console.warn("gridstack.ts: `willItFit(x,y,w,h,autoPosition)` is deprecated. Use `willItFit({x, y,...})`. It will be removed soon");const n=arguments;let r=0,i={x:n[r++],y:n[r++],w:n[r++],h:n[r++],autoPosition:n[r++]};return this.willItFit(i)}return this.engine.willItFit(e)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const e=this.engine.getDirtyNodes(!0);return e&&e.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(e),this._triggerEvent("change",e)),this.engine.saveInitial(),this}_triggerAddEvent(){var e;if(this.engine.batchMode)return this;if((e=this.engine.addedNodes)!=null&&e.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(r=>{delete r._dirty});const n=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",n)}return this}_triggerRemoveEvent(){var e;if(this.engine.batchMode)return this;if((e=this.engine.removedNodes)!=null&&e.length){const n=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",n)}return this}_triggerEvent(e,n){const r=n?new CustomEvent(e,{bubbles:!1,detail:n}):new Event(e);return this.el.dispatchEvent(r),this}_removeStylesheet(){if(this._styles){const e=this.opts.styleInHead?void 0:this.el.parentNode;fe.removeStylesheet(this._styleSheetClass,e),delete this._styles}return this}_updateStyles(e=!1,n){if(e&&this._removeStylesheet(),n===void 0&&(n=this.getRow()),this._updateContainerHeight(),this.opts.cellHeight===0)return this;const r=this.opts.cellHeight,i=this.opts.cellHeightUnit,a=`.${this._styleSheetClass} > .${this.opts.itemClass}`;if(!this._styles){const l=this.opts.styleInHead?void 0:this.el.parentNode;if(this._styles=fe.createStylesheet(this._styleSheetClass,l,{nonce:this.opts.nonce}),!this._styles)return this;this._styles._max=0,fe.addCSSRule(this._styles,a,`height: ${r}${i}`);const u=this.opts.marginTop+this.opts.marginUnit,d=this.opts.marginBottom+this.opts.marginUnit,h=this.opts.marginRight+this.opts.marginUnit,p=this.opts.marginLeft+this.opts.marginUnit,m=`${a} > .grid-stack-item-content`,g=`.${this._styleSheetClass} > .grid-stack-placeholder > .placeholder-content`;fe.addCSSRule(this._styles,m,`top: ${u}; right: ${h}; bottom: ${d}; left: ${p};`),fe.addCSSRule(this._styles,g,`top: ${u}; right: ${h}; bottom: ${d}; left: ${p};`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-n`,`top: ${u};`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-s`,`bottom: ${d}`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-ne`,`right: ${h}; top: ${u}`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-e`,`right: ${h}`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-se`,`right: ${h}; bottom: ${d}`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-nw`,`left: ${p}; top: ${u}`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-w`,`left: ${p}`),fe.addCSSRule(this._styles,`${a} > .ui-resizable-sw`,`left: ${p}; bottom: ${d}`)}if(n=n||this._styles._max,n>this._styles._max){const l=u=>r*u+i;for(let u=this._styles._max+1;u<=n;u++)fe.addCSSRule(this._styles,`${a}[gs-y="${u}"]`,`top: ${l(u)}`),fe.addCSSRule(this._styles,`${a}[gs-h="${u+1}"]`,`height: ${l(u+1)}`);this._styles._max=n}return this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const e=this.parentGridNode;let n=this.getRow()+this._extraDragRow;const r=this.opts.cellHeight,i=this.opts.cellHeightUnit;if(!r)return this;if(!e){const a=fe.parseHeight(getComputedStyle(this.el).minHeight);if(a.h>0&&a.unit===i){const l=Math.floor(a.h/r);n<l&&(n=l)}}return this.el.setAttribute("gs-current-row",String(n)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),n&&(this.el.style[e?"minHeight":"height"]=n*r+i),e&&!e.grid.engine.batchMode&&fe.shouldSizeToContent(e)&&e.grid.resizeToContentCBCheck(e.el),this}_prepareElement(e,n=!1,r){r=r||this._readAttr(e),e.gridstackNode=r,r.el=e,r.grid=this,r=this.engine.addNode(r,n),this._writeAttr(e,r),e.classList.add(Ci.itemClass,this.opts.itemClass);const i=fe.shouldSizeToContent(r);return i?e.classList.add("size-to-content"):e.classList.remove("size-to-content"),i&&this.resizeToContentCheck(!1,r),fe.lazyLoad(r)||this.prepareDragDrop(r.el),this}_writePosAttr(e,n){return n.x!==void 0&&n.x!==null&&e.setAttribute("gs-x",String(n.x)),n.y!==void 0&&n.y!==null&&e.setAttribute("gs-y",String(n.y)),n.w>1?e.setAttribute("gs-w",String(n.w)):e.removeAttribute("gs-w"),n.h>1?e.setAttribute("gs-h",String(n.h)):e.removeAttribute("gs-h"),this}_writeAttr(e,n){if(!n)return this;this._writePosAttr(e,n);const r={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const i in r)n[i]?e.setAttribute(r[i],String(n[i])):e.removeAttribute(r[i]);return this}_readAttr(e,n=!0){const r={};r.x=fe.toNumber(e.getAttribute("gs-x")),r.y=fe.toNumber(e.getAttribute("gs-y")),r.w=fe.toNumber(e.getAttribute("gs-w")),r.h=fe.toNumber(e.getAttribute("gs-h")),r.autoPosition=fe.toBool(e.getAttribute("gs-auto-position")),r.noResize=fe.toBool(e.getAttribute("gs-no-resize")),r.noMove=fe.toBool(e.getAttribute("gs-no-move")),r.locked=fe.toBool(e.getAttribute("gs-locked"));const i=e.getAttribute("gs-size-to-content");
982i&&(i==="true"||i==="false"?r.sizeToContent=fe.toBool(i):r.sizeToContent=parseInt(i,10)),r.id=e.getAttribute("gs-id"),r.maxW=fe.toNumber(e.getAttribute("gs-max-w")),r.minW=fe.toNumber(e.getAttribute("gs-min-w")),r.maxH=fe.toNumber(e.getAttribute("gs-max-h")),r.minH=fe.toNumber(e.getAttribute("gs-min-h")),n&&(r.w===1&&e.removeAttribute("gs-w"),r.h===1&&e.removeAttribute("gs-h"),r.maxW&&e.removeAttribute("gs-max-w"),r.minW&&e.removeAttribute("gs-min-w"),r.maxH&&e.removeAttribute("gs-max-h"),r.minH&&e.removeAttribute("gs-min-h"));for(const a in r){if(!r.hasOwnProperty(a))return;!r[a]&&r[a]!==0&&a!=="gs-size-to-content"&&delete r[a]}return r}_setStaticClass(){const e=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...e),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...e),this.el.removeAttribute("gs-static")),this}onResize(e=(n=>(n=this.el)==null?void 0:n.clientWidth)()){if(!e||this.prevWidth===e)return;this.prevWidth=e,this.batchUpdate();let r=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),r=!0):r=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(i=>{i.subGrid&&i.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(r),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(e=!1,n=void 0){if(this.engine){if(e&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,n),this.animationDelay);if(n)fe.shouldSizeToContent(n)&&this.resizeToContentCBCheck(n.el);else if(this.engine.nodes.some(r=>fe.shouldSizeToContent(r))){const r=[...this.engine.nodes];this.batchUpdate(),r.forEach(i=>{fe.shouldSizeToContent(i)&&this.resizeToContentCBCheck(i.el)}),this.batchUpdate(!1)}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,n?[n]:this.engine.nodes)}}_updateResizeEvent(e=!1){const n=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(r=>r.sizeToContent));return!e&&n&&!this.resizeObserver?(this._sizeThrottle=fe.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(e||!n)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(e=".grid-stack-item"){return fe.getElement(e)}static getElements(e=".grid-stack-item"){return fe.getElements(e)}static getGridElement(e){return it.getElement(e)}static getGridElements(e){return fe.getElements(e)}_initMargin(){let e,n=0,r=[];return typeof this.opts.margin=="string"&&(r=this.opts.margin.split(" ")),r.length===2?(this.opts.marginTop=this.opts.marginBottom=r[0],this.opts.marginLeft=this.opts.marginRight=r[1]):r.length===4?(this.opts.marginTop=r[0],this.opts.marginRight=r[1],this.opts.marginBottom=r[2],this.opts.marginLeft=r[3]):(e=fe.parseHeight(this.opts.margin),this.opts.marginUnit=e.unit,n=this.opts.margin=e.h),this.opts.marginTop===void 0?this.opts.marginTop=n:(e=fe.parseHeight(this.opts.marginTop),this.opts.marginTop=e.h,delete this.opts.margin),this.opts.marginBottom===void 0?this.opts.marginBottom=n:(e=fe.parseHeight(this.opts.marginBottom),this.opts.marginBottom=e.h,delete this.opts.margin),this.opts.marginRight===void 0?this.opts.marginRight=n:(e=fe.parseHeight(this.opts.marginRight),this.opts.marginRight=e.h,delete this.opts.margin),this.opts.marginLeft===void 0?this.opts.marginLeft=n:(e=fe.parseHeight(this.opts.marginLeft),this.opts.marginLeft=e.h,delete this.opts.margin),this.opts.marginUnit=e.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop),this}static getDD(){return Br}static setupDragIn(e,n,r,i=document){(n==null?void 0:n.pause)!==void 0&&(dt.pauseDrag=n.pause),n={appendTo:"body",helper:"clone",...n||{}},(typeof e=="string"?fe.getElements(e,i):e).forEach((l,u)=>{Br.isDraggable(l)||Br.dragIn(l,n),r!=null&&r[u]&&(l.gridstackNode=r[u])})}movable(e,n){return this.opts.staticGrid?this:(it.getElements(e).forEach(r=>{const i=r.gridstackNode;i&&(n?delete i.noMove:i.noMove=!0,this.prepareDragDrop(i.el))}),this)}resizable(e,n){return this.opts.staticGrid?this:(it.getElements(e).forEach(r=>{const i=r.gridstackNode;i&&(n?delete i.noResize:i.noResize=!0,this.prepareDragDrop(i.el))}),this)}disable(e=!0){if(!this.opts.staticGrid)return this.enableMove(!1,e),this.enableResize(!1,e),this._triggerEvent("disable"),this}enable(e=!0){if(!this.opts.staticGrid)return this.enableMove(!0,e),this.enableResize(!0,e),this._triggerEvent("enable"),this}enableMove(e,n=!0){return this.opts.staticGrid?this:(e?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEac
982h(r=>{this.prepareDragDrop(r.el),r.subGrid&&n&&r.subGrid.enableMove(e,n)}),this)}enableResize(e,n=!0){return this.opts.staticGrid?this:(e?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(r=>{this.prepareDragDrop(r.el),r.subGrid&&n&&r.subGrid.enableResize(e,n)}),this)}cancelDrag(){var n;const e=(n=this._placeholder)==null?void 0:n.gridstackNode;e&&(e._isExternal?(e._isAboutToRemove=!0,this.engine.removeNode(e)):e._isAboutToRemove&&it._itemRemoving(e.el,!1),this.engine.restoreInitial())}_removeDD(e){return Br.draggable(e,"destroy").resizable(e,"destroy"),e.gridstackNode&&delete e.gridstackNode._initDD,delete e.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return Br.droppable(this.el,"destroy"),this;let e,n;const r=(i,a,l)=>{var g;l=l||a;const u=l.gridstackNode;if(!u)return;if(!((g=u.grid)!=null&&g.el)){l.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const b=l.getBoundingClientRect();l.style.left=b.x+(this.dragTransform.xScale-1)*(i.clientX-b.x)/this.dragTransform.xScale+"px",l.style.top=b.y+(this.dragTransform.yScale-1)*(i.clientY-b.y)/this.dragTransform.yScale+"px",l.style.transformOrigin="0px 0px"}let{top:d,left:h}=l.getBoundingClientRect();const p=this.el.getBoundingClientRect();h-=p.left,d-=p.top;const m={position:{top:d*this.dragTransform.xScale,left:h*this.dragTransform.yScale}};if(u._temporaryRemoved){if(u.x=Math.max(0,Math.round(h/n)),u.y=Math.max(0,Math.round(d/e)),delete u.autoPosition,this.engine.nodeBoundFix(u),!this.engine.willItFit(u)){if(u.autoPosition=!0,!this.engine.willItFit(u)){Br.off(a,"drag");return}u._willFitPos&&(fe.copyPos(u,u._willFitPos),delete u._willFitPos)}this._onStartMoving(l,i,m,u,n,e)}else this._dragOrResize(l,i,m,u,n,e)};return Br.droppable(this.el,{accept:i=>{const a=i.gridstackNode||this._readAttr(i,!1);if((a==null?void 0:a.grid)===this)return!0;if(!this.opts.acceptWidgets)return!1;let l=!0;if(typeof this.opts.acceptWidgets=="function")l=this.opts.acceptWidgets(i);else{const u=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;l=i.matches(u)}if(l&&a&&this.opts.maxRow){const u={w:a.w,h:a.h,minW:a.minW,minH:a.minH};l=this.engine.willItFit(u)}return l}}).on(this.el,"dropover",(i,a,l)=>{let u=(l==null?void 0:l.gridstackNode)||a.gridstackNode;if((u==null?void 0:u.grid)===this&&!u._temporaryRemoved)return!1;if(u!=null&&u._sidebarOrig&&(u.w=u._sidebarOrig.w,u.h=u._sidebarOrig.h),u!=null&&u.grid&&u.grid!==this&&!u._temporaryRemoved&&u.grid._leave(a,l),l=l||a,n=this.cellWidth(),e=this.getCellHeight(!0),!u){const p=l.getAttribute("data-gs-widget")||l.getAttribute("gridstacknode");if(p){try{u=JSON.parse(p)}catch{console.error("Gridstack dropover: Bad JSON format: ",p)}l.removeAttribute("data-gs-widget"),l.removeAttribute("gridstacknode")}u||(u=this._readAttr(l)),u._sidebarOrig={w:u.w,h:u.h}}u.grid||(u.el||(u={...u}),u._isExternal=!0,l.gridstackNode=u);const d=u.w||Math.round(l.offsetWidth/n)||1,h=u.h||Math.round(l.offsetHeight/e)||1;return u.grid&&u.grid!==this?(a._gridstackNodeOrig||(a._gridstackNodeOrig=u),a.gridstackNode=u={...u,w:d,h,grid:this},delete u.x,delete u.y,this.engine.cleanupNode(u).nodeBoundFix(u),u._initDD=u._isExternal=u._temporaryRemoved=!0):(u.w=d,u.h=h,u._temporaryRemoved=!0),it._itemRemoving(u.el,!1),Br.on(a,"drag",r),r(i,a,l),!1}).on(this.el,"dropout",(i,a,l)=>{const u=(l==null?void 0:l.gridstackNode)||a.gridstackNode;return u&&(!u.grid||u.grid===this)&&(this._leave(a,l),this._isTemp&&this.removeAsSubGrid(u)),!1}).on(this.el,"drop",(i,a,l)=>{var b,E,y;const u=(l==null?void 0:l.gridstackNode)||a.gridstackNode;if((u==null?void 0:u.grid)===this&&!u._isExternal)return!1;const d=!!this.placeholder.parentElement,h=a!==l;this.placeholder.remove(),delete this.placeholder.gridstackNode;const p=d&&this.opts.animate;p&&this.setAnimation(!1);const m=a._gridstackNodeOrig;if(delete a._gridstackNodeOrig,d&&(m!=null&&m.grid)&&m.grid!==this){const x=m.grid;x.engine.removeNodeFromLayoutCache(m),x.engine.removedNodes.push(m),x._triggerRemoveEvent()._triggerChangeEvent(),x.parentGridNode&&!x.engine.nodes.length&&x.opts.subGridDynamic&&x.removeAsSubGrid()}if(!u||(d&&(this.engine.cleanupNode(u),u.grid=this),(b=u.grid)==null||delete b._isTemp,Br.off(a,"drag"),l!==a?(l.remove(),a=l):a.remove(),this._removeDD(a),!d))return!1;const g=(y=(E=u.subGrid)==null?void 0:E.el)==null?void 0:y.gridstack;return fe.copyPos(u,this._readAttr(this.placeholder)),fe.removePositioningStyles(a),h&&(u.content||u.subGridOpts||it.addRemoveCB)?(delete u.el,a=this.addWidget(u)):(this._prepareElement(a,!0,u),this.el.appendChild(a),this.resizeToContentCheck(!1,u),g&&(g.parentGridNode=u,g.opts.styleInHead||g._updateStyles(!0)),this._updateContainerHeight()),this.engine.addedNodes.push(u),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...i,type:"dropped"},m&&m.grid?m:void 0,u),p&&this.setAnimation(this.opts.animate,!0),!1}),this}static _itemRemoving(e,n){if(!e)return;const r=e?e.gridstackNode:void 0;!(r!=null&&r.grid)||e.classList.contains(r.grid.opts.removableOptions.decline)||(n?r._isAboutToRemove=!0:delete r._isAboutToRemove,n?e.classList.add("grid-stack-item-removing"):e.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const e=document.querySelector(this.opts.removable);return e?(!this.opts.staticGrid&&!Br.isDroppable(e)&&Br.droppable(e,this.opts.removableOptions).on(e,"dropover",(n,r)=>it._itemRemoving(r,!0)).on(e,"dropout",(n,r)=>it._itemRemoving(r,!1)),this):this}prepareDragDrop(e,n=!1){const r=e==null?void 0:e.gridstackNode;if(!r)return;const i=r.noMove||this.opts.disableDrag,a=r.noResize||this.opts.disableResize,l=this.opts.staticGrid||i&&a;if((n||l)&&(r._initDD&&(this._removeDD(e),delete r._initDD),l&&e.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!n))return this;if(!r._initDD){let u,d;const h=(g,b)=>{this._gsEventHandler[g.type]&&this._gsEventHandler[g.type](g,g.target),u=this.cellWidth(),d=this.getCellHeight(!0),this._onStartMoving(e,g,b,r,u,d)},p=(g,b)=>{this._dragOrResize(e,g,b,r,u,d)},m=g=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete r._moving,delete r._event,delete r._lastTried;const b=r.w!==r._orig.w,E=g.target;if(!(!E.gridstackNode||E.gridstackNode.grid!==this)){if(r.el=E,r._isAboutToRemove){const y=e.gridstackNode.grid;y._gsEventHandler[g.type]&&y._gsEventHandler[g.type](g,E),y.engine.nodes.push(r),y.removeWidget(e,!0,!0)}else fe.removePositioningStyles(E),r._temporaryRemoved?(fe.copyPos(r,r._orig),this._writePosAttr(E,r),this.engine.addNode(r)):this._writePosAttr(E,r),this._gsEventHandler[g.type]&&this._gsEventHandler[g.type](g,E);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),g.type==="resizestop"&&(Number.isInteger(r.sizeToContent)&&(r.sizeToContent=r.h),this.resizeToContentCheck(b,r))}};Br.draggable(e,{start:h,stop:m,drag:p}).resizable(e,{start:h,stop:m,resize:p}),r._initDD=!0}return Br.draggable(e,i?"disable":"enable").resizable(e,a?"disable":"enable"),this}_onStartMoving(e,n,r,i,a,l){var u;if(this.engine.cleanNodes().beginUpdate(i),this._writePosAttr(this.placeholder,i),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=i,(u=i.grid)!=null&&u.el)this.dragTransform=fe.getValuesFromTransformedElement(e);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=fe.getValuesFromTransformedElement(d)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(i.el=this.placeholder,i._lastUiPosition=r.position,i._prevYPix=r.position.top,i._moving=n.type==="dragstart",delete i._lastTried,n.type==="dropover"&&i._temporaryRemoved&&(this.engine.addNode(i),i._moving=!0),this.engine.cacheRects(a,l,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),n.type==="resizestart"){const d=this.getColumn()-i.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-i.y;Br.resizable(e,"option","minWidth",a*Math.min(i.minW||1,d)).resizable(e,"option","minHeight",l*Math.min(i.minH||1,h)).resizable(e,"option","maxWidth",a*Math.min(i.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(e,"option","maxWidthMoveLeft",a*Math.min(i.maxW||Number.MAX_SAFE_INTEGER,i.x+i.w)).resizable(e,"option","maxHeight",l*Math.min(i.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(e,"option","maxHeightMoveUp",l*Math.min(i.maxH||Number.MAX_SAFE_INTEGER,i.y+i.h))}}_dragOrResize(e,n,r,i,a,l){const u={...i._orig};let d,h=this.opts.marginLeft,p=this.opts.marginRight,m=this.opts.marginTop,g=this.opts.marginBottom;
982const b=Math.round(l*.1),E=Math.round(a*.1);if(h=Math.min(h,E),p=Math.min(p,E),m=Math.min(m,b),g=Math.min(g,b),n.type==="drag"){if(i._temporaryRemoved)return;const x=r.position.top-i._prevYPix;i._prevYPix=r.position.top,this.opts.draggable.scroll!==!1&&fe.updateScrollPosition(e,r.position,x);const S=r.position.left+(r.position.left>i._lastUiPosition.left?-p:h),R=r.position.top+(r.position.top>i._lastUiPosition.top?-g:m);u.x=Math.round(S/a),u.y=Math.round(R/l);const O=this._extraDragRow;if(this.engine.collide(i,u)){const M=this.getRow();let k=Math.max(0,u.y+i.h-M);this.opts.maxRow&&M+k>this.opts.maxRow&&(k=Math.max(0,this.opts.maxRow-M)),this._extraDragRow=k}else this._extraDragRow=0;if(this._extraDragRow!==O&&this._updateContainerHeight(),i.x===u.x&&i.y===u.y)return}else if(n.type==="resize"){if(u.x<0||(fe.updateScrollResize(n,e,l),u.w=Math.round((r.size.width-h)/a),u.h=Math.round((r.size.height-m)/l),i.w===u.w&&i.h===u.h)||i._lastTried&&i._lastTried.w===u.w&&i._lastTried.h===u.h)return;const x=r.position.left+h,S=r.position.top+m;u.x=Math.round(x/a),u.y=Math.round(S/l),d=!0}i._event=n,i._lastTried=u;const y={x:r.position.left+h,y:r.position.top+m,w:(r.size?r.size.width:i.w*a)-h-p,h:(r.size?r.size.height:i.h*l)-m-g};if(this.engine.moveNodeCheck(i,{...u,cellWidth:a,cellHeight:l,rect:y,resizing:d})){i._lastUiPosition=r.position,this.engine.cacheRects(a,l,m,p,g,h),delete i._skipDown,d&&i.subGrid&&i.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const x=n.target;i._sidebarOrig||this._writePosAttr(x,i),this._gsEventHandler[n.type]&&this._gsEventHandler[n.type](n,x)}}_leave(e,n){n=n||e;const r=n.gridstackNode;if(!r||(n.style.transform=n.style.transformOrigin=null,Br.off(e,"drag"),r._temporaryRemoved))return;r._temporaryRemoved=!0,this.engine.removeNode(r),r.el=r._isExternal&&n?n:e;const i=r._sidebarOrig;r._isExternal&&this.engine.cleanupNode(r),r._sidebarOrig=i,this.opts.removable===!0&&it._itemRemoving(e,!0),e._gridstackNodeOrig?(e.gridstackNode=e._gridstackNodeOrig,delete e._gridstackNodeOrig):r._isExternal&&this.engine.restoreInitial()}commit(){return NJ(this,this.batchUpdate(!1),"commit","batchUpdate","5.2"),this}}it.renderCB=(t,e)=>{t&&(e!=null&&e.content)&&(t.textContent=e.content)};it.resizeToContentParent=".grid-stack-item-content";it.Utils=fe;it.Engine=Ws;it.GDRev="11.5.1";var OO;const LJ=((OO=JSON.parse(localStorage.getItem("user")||"{}"))==null?void 0:OO.isDemo)??!1,dN=t=>xr().shape({widget_name:mt().required(t("tankForm.validation.widgetName")),sections:Os().of(xr().shape({product:mt().required(t("batteryForm.validation.product")),device:mt().required(t("batteryForm.validation.device")),attributes:mt().required(t("batteryForm.validation.attributes")),conditions:Os().of(xr().shape({selectedProduct:mt(),selectedAttribute:mt(),selectedCondition:mt().required("Condition is required"),conditionValue:LJ?mt().nullable().notRequired():mt().required("Value cannot be empty").test("not-empty","Value cannot be empty",e=>e&&e.trim()!==""),logicalOperator:mt()}))})).min(1,t("tankForm.validation.atLeastOneSection"))});function zJ({className:t,onClick:e}){return C.jsx(ze.Fragment,{children:C.jsx(PK,{onClick:e,className:t})})}function $J({className:t,onClick:e}){return C.jsx(ze.Fragment,{children:C.jsx(DK,{onClick:e,className:t})})}var AO;const vO=((AO=JSON.parse(localStorage.getItem("user")||"{}"))==null?void 0:AO.isDemo)??!1;function Xr({errors:t,dirtyFields:e,control:n,watch:r,productOptions:i,deviceOptions:a,setDeviceOptions:l,attributeOptions:u,setAttributeOptions:d,incomingWidget:h,showIconField:p=!1,showUnitField:m=!1,showAttributeField:g=!0,setSelectedAllAttributes:b=()=>{},colorSetting:E=!vO,setValue:y,onDeleteSection:x,canDelete:S=!1,showBackgroundColor:R=!1,sectionIndex:O=0,showMaxValueField:M=!1,showTextColor:k=!1,showValueColor:P=!1,alertSettings:j=!vO}){const{t:H}=ir(),[I,A]=w.useState(!0),[$,L]=w.useState([]),[U,V]=w.useState([]),[Q,F]=w.useState(!1),[J,ae]=w.useState({}),ye=r(`sections.${O}.product`),X=r(`sections.${O}.device`),ee=r(`sections.${O}.attributes`),ve=r(`sections.${O}.label`),{fields:le,append:se,remove:he}=Sr({control:n,name:`sections.${O}.conditions`}),ie=()=>{se({selectedProduct:ye??"",selectedAttribute:ee??"",selectedCondition:H("conditions.equalTo"),conditionValue:"",logicalOperator:H("logicalOperators.and")})};function be(_e){console.log("innnndex",_e),he(_e),_e===0&&y(`sections.${O}.conditions.0.logicalOperator`,H("newRule.if"),{shouldDirty:!0})}console.log("conditionFields",le),w.useEffect(()=>{if(!ye){F(!1);return}F(!0),(async()=>{var _e,Ae;try{const je=await Nf(`/api/devices/product/${ye}`);if(console.log("res",je),je.success){const $e=(_e=je==null?void 0:je.data)==null?void 0:_e.map(K=>({label:K.device_unique_identifier,value:String(K.id)}));console.log("availableDevices",$e),L($e),console.log("boss1",je==null?void 0:je.userPreference);const Y=Y1(je==null?void 0:je.userPreference);console.log("bhai",Y),V(Y),b(Y);const G={};(Ae=je==null?void 0:je.userPreference)==null||Ae.forEach(K=>{console.log("info",K),G[K.attribute_key]=K.unit}),ae(G),console.log("Units Map:",G)}}catch(je){console.error("Error fetching devices:",je)}finally{F(!1)}})()},[ye]),console.log("Attttt",ee),w.useEffect(()=>{ee&&(le==null||le.forEach((_e,Ae)=>{y(`sections.${O}.conditions.${Ae}.selectedProduct`,ye),y(`sections.${O}.conditions.${Ae}.selectedAttribute`,ee),console.log("parking",ee)}))},[ee]),console.log("incomingWidget",h);const xe=()=>{A(!I)};console.log("popto",i),console.log("popto-product",ye);const ke=Object.keys(Lm).map(_e=>({label:_e,value:_e})),Me=[{label:"Temperature (°C)",value:"°C"},{label:"Temperature (°F)",value:"°F"},{label:"Humidity (%)",value:"%"},{label:"Pressure (hPa)",value:"hPa"},{label:"Battery Level (V)",value:"V"},{label:"Speed (m/s)",value:"m/s"},{label:"Speed (km/h)",value:"km/h"},{label:"Acceleration (m/s²)",value:"m/s²"},{label:"Distance (m)",value:"m"},{label:"Distance (km)",value:"km"},{label:"Current (A)",value:"A"},{label:"Power (W)",value:"W"},{label:"Energy (kWh)",value:"kWh"},{label:"Light Intensity (lux)",value:"lux"},{label:"CO2 (ppm)",value:"ppm"},{label:"Air Quality AQI)",value:"AQI"},{label:"Sound Level (dB)",value:"dB"},{label:"Weight (kg)",value:"kg"}],Ne=[{label:H("logicalOperators.and"),value:H("logicalOperators.and")},{label:H("logicalOperators.or"),value:H("logicalOperators.or")}],Te=[{label:H("conditions.lessThan"),value:H("conditions.lessThan")},{label:H("conditions.lessThanOrEqual"),value:H("conditions.lessThanOrEqual")},{label:H("conditions.equalTo"),value:H("conditions.equalTo")},{label:H("conditions.notEqualTo"),value:H("conditions.notEqualTo")},{label:H("conditions.greaterThan"),value:H("conditions.greaterThan")},{label:H("conditions.greaterThanOrEqual"),value:H("conditions.greaterThanOrEqual")}],Be=(i==null?void 0:i.length)>0?i:[],nt=($==null?void 0:$.length)>0?$:[],yt=(U==null?void 0:U.length)>0?U:[];return C.jsxs(C.Fragment,{children:[C.jsx("h2",{className:"font-bold text-lg ",children:H("showAndHide.Setting")}),C.jsxs("div",{className:" border-gray-200 border-1  mt-4 shadow-sm rounded-xl p-3 w-auto h-auto transition-all duration-300",children:[C.jsxs("div",{className:"flex justify-between",children:[I?C.jsx(zJ,{className:"text-gray-400 cursor-pointer w-6 h-6",onClick:xe}):C.jsx($J,{className:"text-gray-400 cursor-pointer w-6 h-6",onClick:xe}),S&&C.jsx(ET,{onClick:x,className:"text-red-500 cursor-pointer"})]}),I&&C.jsx(C.Fragment,{children:C.jsxs("div",{className:"flex mt-4 flex-col  gap-5",children:[C.jsx(_t,{name:`sections.${O}.product`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsx(Ti,{id:"sel-prd",value:_e.value,onValueChange:_e.onChange,error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.product),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.product)==null?void 0:G.message,placeholder:H("showAndHide.selectProduct"),size:"large",className:"bg-[#fff]",options:Be})}}),C.jsx(_t,{name:`sections.${O}.device`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsxs("div",{className:"relative h-[52px]",children:[C.jsx(Ti,{id:"sel-device",value:_e.value,onValueChange:_e.onChange,error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.device),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.device)==null?void 0:G.message,placeholder:Q?"":H("showAndHide.selectDevice"),disabled:!ye||Q,size:"large",className:`bg-[#fff] ${Q?"opacity-70":""}`,options:nt}),Q&&C.jsx("div",{className:"absolute left-2 top-1/2 transform -translate-y-1/2",children:C.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-gray-300 border-t-blue-600"})})]})}}),g&&C.jsx(_t,{name:`sections.${O}.attributes`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsx(Ti,{id:"sel-att",value:_e.value,onValueChange:K=>{_e.onChange(K);const ue=U==null?void 0:U.find(pe=>pe.value==K);y(`sections.${O}.label`,(ue==null?void 0:ue.label)??"");const we=J[K];we&&m&&y(`sections.${O}.unit`,we,{shouldDirty:!0})},error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.attributes),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.attributes)==null?void 0:G.message,placeholder:H("showAndHide.selectAttribute"),disabled:!X,size:"large",className:"bg-[#fff]",options:yt})}}),p&&C.jsx(_t,{name:`sections.${O}.icon`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsx(Ti,{value:_e.value,onValueChange:_e.onChange,error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.icon),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.icon)==null?void 0:G.message,placeholder:H("valueForm.icon"),size:"large",className:"bg-[#fff]",options:ke.map(K=>({...K,label:C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(_r,{name:K.label,className:"w-5 h-5"}),C.jsx("span",{className:"capitalize",children:K.label})]})}))})}}),m&&C.jsx(_t,{name:`sections.${O}.unit`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsx(Ti,{id:"att-unit",value:_e.value,onValueChange:_e.onChange,error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.unit),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.unit)==null?void 0:G.message,placeholder:H("showAndHide.unit"),size:"large",className:"bg-[#fff]",options:Me})}}),j&&C.jsxs(w.Fragment,{children:[C.jsxs("div",{className:"mt-1 ",children:[C.jsxs("div",{className:"flex flex-wrap justify-between items-center  mb-4",children:[C.jsx("h1",{className:"font-bold",children:"Alert Settings"}),C.jsx("button",{type:"button",onClick:ie,className:"bg-primary    hover:bg-primary-dark text-white rounded-full w-8 h-8 cursor-pointer flex items-center justify-center transition-colors duration-200 mt-2 sm:mt-0",title:"Add Condition",children:C.jsx(jm,{className:"w-6 h-6 text-white transition-transform duration-200 group-hover:rotate-90"})})]}),le==null?void 0:le.map((_e,Ae)=>{var je,$e;return C.jsxs("div",{className:"flex flex-col  sm:flex-row my-3 gap-3 sm:gap-4 lg:gap-6 items-start sm:items-center text-gray-600 p-3 sm:p-0 bg-gray-50 sm:bg-transparent roun
982ded-lg sm:rounded-none",children:[C.jsxs("div",{className:"w-full sm:w-20 md:w-24",id:"condition",children:[C.jsx("label",{className:"block text-xs  font-medium text-gray-500 mb-1 sm:hidden",children:Ae===0?"Condition":"Operator"}),Ae===0?C.jsx("span",{className:"sm:ml-1",children:H("newRule.if")}):C.jsx(_t,{name:`sections.${O}.conditions.${Ae}.logicalOperator`,control:n,render:({field:Y})=>C.jsx(Ti,{value:Y.value,onValueChange:Y.onChange,heightProp:"90px",disabled:Ae==0,label:"",className:"bg-[#fff] w-full",options:Ne})})]}),C.jsxs("div",{className:"flex max-sm:flex-col max-sm:items-start items-center   gap-2 w-full sm:w-auto",children:[C.jsx("span",{className:"text-xs sm:hidden text-gray-500   font-medium",children:"Attribute"}),C.jsx("span",{className:"bg-red-200 text-red-600 px-2   sm:px-[10px] py-[7px] rounded-sm text-sm font-medium whitespace-nowrap",children:ve||(($e=(je=h==null?void 0:h.widget_settings)==null?void 0:je[O])==null?void 0:$e.label)||ee||"attribute"})]}),C.jsx("span",{className:"hidden sm:inline text-sm font-medium",children:"is"}),C.jsxs("div",{className:"w-full sm:w-32  md:w-36 lg:w-48",children:[C.jsx("label",{className:"block text-xs font-medium text-gray-500 mb-1 sm:hidden",children:"Condition"}),C.jsx(_t,{name:`sections.${O}.conditions.${Ae}.selectedCondition`,control:n,render:({field:Y})=>C.jsx(Ti,{id:"sel-range",value:Y.value,onValueChange:Y.onChange,label:"",heightProp:"90px",className:"bg-[#fff]   w-full",options:Te})})]}),C.jsxs("div",{className:"w-full  sm:w-24 md:w-28 lg:w-32",children:[C.jsx("label",{className:"block text-xs font-medium  text-gray-500 mb-1 sm:hidden",children:"Value"}),C.jsx(_t,{name:`sections.${O}.conditions.${Ae}.conditionValue`,control:n,render:({field:Y})=>{var G,K,ue,we;return C.jsx(Sn,{...Y,id:"att-val",className:"w-full rounded-sm focus:outline-none",placeholder:H("newRule.value"),error:!!((we=(ue=(K=(G=t.sections)==null?void 0:G[O])==null?void 0:K.conditions)==null?void 0:ue[Ae])!=null&&we.conditionValue),height:"h-8"})}})]}),le.length>1&&C.jsx("div",{className:"flex justify-end  w-full sm:w-auto mt-2 sm:mt-0",children:C.jsx(ET,{onClick:()=>be(Ae),className:"text-red-500 cursor-pointer hover:text-red-700 transition-colors duration-200"})})]},_e.id)})]}),C.jsx("div",{children:C.jsxs("div",{className:"flex justify-between",children:[C.jsx("p",{className:"font-[14px] text-gray-400",children:H("showAndHide.alertSettingsExport")}),C.jsx("div",{className:"",children:C.jsx(_t,{name:`sections.${O}.enabled`,control:n,render:({field:{onChange:_e,value:Ae}})=>C.jsx(NK,{checked:Ae,onChange:_e,trackColor:"#ccc",thumbColor:"#fff",checkedThumbColor:"#fff"})})})]})})]}),E&&C.jsxs(C.Fragment,{children:[C.jsx("h1",{className:"font-bold",children:H("showAndHide.color")}),C.jsxs("div",{className:`flex gap-8  items-start ${M?"justify-center":"justify-start"}`,children:[M&&C.jsx("div",{className:"w-1/2 mt-6",children:C.jsx(_t,{name:`sections.${O}.max_value`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsx(Sn,{..._e,id:"color-val",type:"number",error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.maxvalue),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.maxvalue)==null?void 0:G.message,placeholder:H("showAndHide.maxValue"),size:"large",className:"bg-[#fff]"})}})}),C.jsxs("div",{className:"flex justify-start  gap-8",children:[k&&C.jsxs("div",{className:"flex flex-col items-center",children:[C.jsx("h3",{className:"mb-1    text-sm font-medium",children:H("showAndHide.text")}),C.jsx(_t,{name:`sections.${O}.text_color`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsx(Sn,{..._e,type:"color",error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.text_color),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.text_color)==null?void 0:G.message,width:"20px",className:" w-12  h-12 bg-[#fff] cursor-pointer"})}})]}),P&&C.jsxs("div",{className:"flex flex-col items-center",children:[C.jsx("h3",{className:"mb-1 text-sm font-medium",children:H("showAndHide.value")}),C.jsx(_t,{name:`sections.${O}.value_color`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;
982return C.jsx(Sn,{..._e,id:"selc-color",type:"color",error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.value_color),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.value_color)==null?void 0:G.message,width:"20px",textSize:"",className:"  bg-[#fff]  cursor-pointer"})}})]}),R&&C.jsxs("div",{className:"flex flex-col items-center",children:[C.jsx("h3",{className:"mb-1  text-sm font-medium",children:H("showAndHide.background")}),C.jsx(_t,{name:`sections.${O}.background_color`,control:n,render:({field:_e})=>{var Ae,je,$e,Y,G;return C.jsx(Sn,{..._e,type:"color",error:!!((je=(Ae=t.sections)==null?void 0:Ae[O])!=null&&je.background_color),helperText:(G=(Y=($e=t.sections)==null?void 0:$e[O])==null?void 0:Y.background_color)==null?void 0:G.message,width:"20px",className:"w-12 h-12 bg-[#fff] cursor-pointer"})}})]})]})]})]})]})})]})]})}function fN({setValue:t,products:e=[],sectionIndex:n=0}){return w.useEffect(()=>{const r=XM({showProgress:!0,steps:[{element:"#wgt-name",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"},onHighlightStarted:()=>{t("widget_name","Demo Widget",{shouldValidate:!0})}},{element:"#sel-prd",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"},onHighlightStarted:()=>{t(`sections.${n}.product`,"demo-product",{shouldValidate:!0,shouldDirty:!0})}},{element:"#sel-device",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"},onHighlightStarted:()=>{t(`sections.${n}.device`,"demo-device",{shouldValidate:!0,shouldDirty:!0})}},{element:"#sel-att",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"},onHighlightStarted:()=>{t(`sections.${n}.attributes`,"demo-attribute",{shouldValidate:!0,shouldDirty:!0})}},{element:"#att-unit",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom",onNextClick:()=>{const i=document.querySelector("#att-unit");i?(i.click(),setTimeout(()=>{r.moveNext()},100)):r.moveNext()}}},{element:"#unit-0",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom",onNextClick:()=>{const i=document.querySelector("#unit-0");i?(i.click(),setTimeout(()=>{r.moveNext()},100)):r.moveNext()}}},{element:"#condition",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"}},{element:"#sel-range",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"}},{element:"#att-val",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"}},{element:"#color-val",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"}},{element:"#selc-color",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"}},{element:"#save-form",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom",onNextClick:()=>{const i=document.querySelector("#save-form");i?(i.click(),setTimeout(()=>{r.moveNext()},100)):r.moveNext()}}}]});r.drive()},[t]),null}function HJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){console.log("BatteryForm Component Rendered!"),console.log("🧠 BatteryForm mounted"),console.log("🧾 incomingWidget (initial):",n);const{t:p}=ir(),m=!!n,[g,b]=w.useState(!1),[E,y]=w.useState(!1),[x,S]=w.useState(!1);w.useEffect(()=>{Ww("WidgetFormDemo")&&S(!1)},[]);const{control:R,handleSubmit:O,watch:M,reset:k,setValue:P,formState:{errors:j,dirtyFields:H}}=Pr({resolver:jr(dN(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],max_value:"",enabled:!1,value_color:"#000000"}]}}),{fields:I}=Sr({control:R,name:"sections"});w.useEffect(()=>{var L,U,V;n&&(console.log("Resetting form with incomingWidget:",n),k({widget_name:((U=(L=n==null?void 0:n.widget_settings)==null?void 0:L[0])==null?void 0:U.widget_name)||"",sections:((V=n==null?void 0:n.widget_settings)==null?void 0:V.map(Q=>{var F,J;return{product:String(Q.product||""),device:String(Q.device||""),attributes:Q.attributes||"",label:Q.label||"",conditions:Q.conditions||((F=Q.rule)==null?void 0:F.conditions)||[],max_value:Q.max_value||"",unit:Q.unit||"",value_color:Q.value_color||"#000000",enabled:Q.enabled??((J=Q.rule)==null?void 0:J.is_for_all)===1??!1}}))||[]}))},[n,k]);const A=async L=>{console.log("final-battery-form",L);const U={...L,widget_settings:L.sections};try{y(!0),await e(U)}catch(V){console.error("Error submitting form:",V),y(!1)}},$=async()=>
982{if(!(g||!m)){b(!0);try{await r()}catch(L){console.error("Error deleting widget:",L),b(!1)}}};return C.jsxs("form",{onSubmit:O(A),className:"bg-white  rounded-2xl w-[60vw]",children:[x&&C.jsx(fN,{setValue:P,products:i,sectionIndex:0}),C.jsx("button",{type:"button",onClick:t,disabled:E||g,className:"absolute top-4 right-4 text-gray-600 cursor-pointer hover:text-black",children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("batteryForm.widgetSettings")}),C.jsx("p",{className:"text-gray-600",children:p("batteryForm.battery")})]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("batteryForm.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4  rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:R,render:({field:L})=>{var U;return C.jsx(Sn,{...L,id:"wgt-name",className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("batteryForm.widgetNamePlaceholder"),disabled:E||g,error:!!j.widget_name,helperText:(U=j.widget_name)==null?void 0:U.message})}})})})}),I.map((L,U)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:j,watch:M,control:R,productOptions:i,setProductOptions:u,deviceOptions:a,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,setValue:P,showValueColor:!0,showMaxValueField:!0,showUnitField:!0,dirtyFields:H,incomingWidget:n,disabled:E||g,sectionIndex:U})},L.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{onClick:t,type:"button",disabled:E||g,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",children:p("batteryForm.cancel")}),C.jsx("button",{type:"button",onClick:$,disabled:!m||E||g,className:`px-1 font-bold rounded ${m&&!g?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(g?"batteryForm.removing":"batteryForm.removeWidget")})]}),C.jsx("button",{id:"save-form",type:"submit",disabled:E||g,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${E||g?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(E?"batteryForm.saving":"batteryForm.save")})]})]})}var kO;const BJ=((kO=JSON.parse(localStorage.getItem("user")||"{}"))==null?void 0:kO.isDemo)??!1,la=t=>xr().shape({widget_name:mt().required(t("tankForm.validation.widgetName")),sections:Os().of(xr().shape({product:mt().required(t("signalform.validation.product")),device:mt().required(t("signalform.validation.device")),attributes:mt().required(t("signalform.validation.attributes")),conditions:Os().of(xr().shape({selectedProduct:mt(),selectedAttribute:mt(),selectedCondition:mt().required("Condition is required"),conditionValue:BJ?mt().nullable().notRequired():mt().required("Value cannot be empty").test("not-empty","Value cannot be empty",e=>e&&e.trim()!==""),logicalOperator:mt()}))})).min(1,t("tankForm.validation.atLeastOneSection"))});function FJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-current-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>
982{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Current"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})},A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}const UJ=t=>xr().shape({widget_name:mt().required(t("tankForm.validation.widgetName")),sections:Os().of(xr().shape({product:mt().required(t("deviceDefaultForm.validation.product")),device:mt().required(t("deviceDefaultForm.validation.device"))})).min(1,t("tankForm.validation.atLeastOneSection"))});function IJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),m=!!n;console.log("ee",n);const[g,b]=w.useState(!1),[E,y]=w.useState(!1),[x,S]=w.useState([]),{control:R,handleSubmit:O,watch:M,reset:k,setValue:P,formState:{errors:j,dirtyFields:H}}=Pr({resolver:jr(UJ(p)),defaultValues:{widget_name:"",sections:[{product:"",device:""}]}}),{fields:I}=Sr({control:R,name:"sections"});w.useEffect(()=>{var L;if(n&&((L=n.widget_settings)==null?void 0:L.length)>0){const U=n.widget_settings[0];k({widget_name:U.widget_name||"",sections:[{product:String(U.product||""),device:String(U.device||"")}]})}},[n,k]);const A=async L=>{console.log("final-device-default",L);const U=x.map(Q=>({attributes:Q.value,label:Q.label,product:L.sections[0].product,device:L.sections[0].device})),V={...L,widget_settings:U};try{y(!0),await e(V)}catch(Q){console.error("Error submitting form:",Q),y(!1)}},$=async()=>{if(!(g||!m)){b(!0);try{await r()}catch(L){console.error("Error deleting widget:",L),b(!1)}}};return C.jsxs("form",{onSubmit:O(A),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",type:"button",disabled:E||g,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("deviceDefaultForm.widgetSettings")}),C.jsx("p",{className:"text-gray-600",children:p("deviceDefaultForm.deviceDataDefault")})]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("deviceDefaultForm.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:R,render:({field:L})=>{var U;return C.jsx(Sn,{...L,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("deviceDefaultForm.widgetNamePlaceholder"),error:!!j.widget_name,helperText:(U=j.widget_name)==null?void 0:U.message,disabled:E||g})}})})})}),I.map((L,U)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:j,watch:M,control:R,productOptions:i,setProductOptions:u,deviceOptions:a,setDeviceOptions:d,setValue:P,attributeOptions:l,setAttributeOptions:h,colorSetting:!1,showAttributeField:!1,dirtyFields:H,incomingWidget:n,alertSettings:!1,setSelectedAllAttributes:S,sectionIndex:U})},L.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,disabled:E||g,className:"text-[#393939] cursor-pointer font-bold px-6 py-2 rounded hover:bg-[#eee]",children:p("deviceDefaultForm.cancel")}),C.jsx("button",{type:"button",onClick:$,disabled:!m||E||g,className:`px-1 font-bold rounded ${m&&!g?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(g?"deviceDefaultForm.removing":"deviceDefaultForm.removeWidget")})]}),C.jsx("button",{type:"submit",disabled:E||g,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${E||g?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(E?"deviceDefaultForm.saving":"deviceDefaultForm.save")})]})]})}function VJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-door-status-form",A);const $={...A,widget_settings:A.sections};console.log($,"ishq");try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>
982{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Door Status"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})},A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}function qJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-finger-print-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Fingerprint"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})}
982,A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}function GJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-fire-alarm-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Fire Alarm"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})},A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}function XJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-gas-leak-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>
982{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Gas Leak"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})},A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}function YJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-gateway-status-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Gateway Status"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})}
982,A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}const KJ=t=>xr().shape({widget_name:mt().required(t("tankForm.validation.widgetName")),sections:Os().of(xr().shape({product:mt().required(t("valueForm.validation.product")),device:mt().required(t("valueForm.validation.device")),attributes:mt().required(t("valueForm.validation.attributes"))})).min(1,t("valueForm.validation.atLeastOneSection"))});function QJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a}){const{t:l}=ir(),[u,d]=w.useState(!1),[h,p]=w.useState(!1),[m,g]=w.useState({}),[b,E]=w.useState({}),[y,x]=w.useState({}),[S,R]=w.useState({}),O=w.useRef(!1),M=!!n,k=w.useMemo(()=>(i==null?void 0:i.length)>0&&i[0].hasOwnProperty("label")&&i[0].hasOwnProperty("value")?i:[],[i]),P=[{value:"daily",label:"daily"},{value:"weekly",label:"weekly"},{value:"monthly",label:"monthly"}],{control:j,handleSubmit:H,watch:I,reset:A,setValue:$,formState:{errors:L}}=Pr({resolver:jr(KJ(l)),defaultValues:{widget_name:"",graph_interval:"",sections:[{y_axis_label:"",product:"",device:"",attributes:"",unit:"",graph_type:"",text_color:"#3B82F6"}]}}),U=async(le,se,he)=>{var ie,be;if(he(le),!le){x(xe=>({...xe,[se]:!1}));return}x(xe=>({...xe,[se]:!0})),$(`sections.${se}.device`,"");try{const xe=await Nf(`/api/devices/product/${le}`);if(xe.success){const ke=(ie=xe.data)==null?void 0:ie.map(Te=>({label:Te.device_unique_identifier,value:String(Te.id)})),Me=Y1(xe==null?void 0:xe.userPreference);g(Te=>({...Te,[se]:ke})),E(Te=>({...Te,[se]:Me}));const Ne={};(be=xe==null?void 0:xe.userPreference)==null||be.forEach(Te=>{Ne[Te.attribute_key]=Te.unit}),R(Te=>({...Te,[se]:Ne})),console.log("Units Map for section",se,":",Ne)}}catch(xe){console.error("Error fetching devices:",xe)}finally{x(xe=>({...xe,[se]:!1}))}},{fields:V,append:Q,remove:F}=Sr({control:j,name:"sections"});w.useEffect(()=>{O.current=!1},[n==null?void 0:n.id]),w.useEffect(()=>{var be,xe,ke;if(!n||!(i!=null&&i.length)||O.current)return;const le=(n==null?void 0:n.graph_interval)||"",se=le.toLowerCase().trim();console.log("Raw interval:",le),console.log("Normalized interval:",se);const he=((be=n==null?void 0:n.widget_settings)==null?void 0:be.map((Me,Ne)=>{const Te={y_axis_label:Me.y_axis_label||Me.yAxisTitle||"",product:String(Me.product||Me.product_id||"")||"",device:String(Me.device||Me.device_id||"")||"",attributes:String(Me.attributes||Me.attribute||"")||"",unit:Me.unit||"",graph_type:Me.graph_type||"",text_color:Me.text_color||"#3B82F6"};return console.log(Te,"84738748"),Me.product&&(x(Be=>({...Be,[Ne]:!0})),Nf(`/api/devices/product/${Me.product}`).then(Be=>{var nt,yt;if(Be!=null&&Be.success){const _e=(nt=Be.data)==null?void 0:nt.map($e=>({label:$e.device_unique_identifier,value:String($e.id)})),Ae=Y1(Be==null?void 0:Be.userPreference);g($e=>({...$e,[Ne]:_e})),E($e=>({...$e,[Ne]:Ae}));const je={};(yt=Be==null?void 0:Be.userPreference)==null||yt.forEach($e=>{je[$e.attribute_key]=$e.unit}),R($e=>({...$e,[Ne]:je}))}}).catch(Be=>console.error("Error loading devices:",Be)).finally(()=>{x(Be=>({...Be,[Ne]:!1}))})),Te}))||[],ie={widget_name:((ke=(xe=n==null?void 0:n.widget_settings)==null?void 0:xe[0])==null?void 0:ke.widget_name)||"",graph_interval:se,sections:he};console.log("Resetting form with:",ie),A(ie),$("graph_interval",se,{shouldValidate:!1,shouldDirty:!1}),O.current=!0},[n==null?void 0:n.id,i]);const J=[{label:"Bar Chart",value:"barGraph"},{label:"Line Chart",value:"lineGraph"}],ae=[{label:"Temperature (°C)",value:"°C"},{label:"Temperature (°F)",value:"°F"},{label:"Humidity (%)",value:"%"},{label:"Pressure (hPa)",value:"hPa"},{label:"Battery Level (V)",value:"V"},{label:"Speed (m/s)",value:"m/s"},{label:"Speed (km/h)",value:"km/h"},{label:"Acceleration (m/s²)",value:"m/s²"},{label:"Distance (m)",value:"m"},{label:"Distance (km)",value:"km"},{label:"Current (A)",value:"A"},{label:"Power (W)",value:"W"},{label:"Energy (kWh)",value:"kWh"},{label:"Light Intensity (lux)",value:"lux"},{label:"CO2 (ppm)",value:"ppm"},{label:"Air Quality AQI)",value:"AQI"},{label:"Sound Level (dB)",value:"dB"},{label:"Weight (kg)",value:"kg"}],ye=async le=>{console.log("final-mix-chart-payload",le);
982const se={...le,widget_settings:le.sections};try{p(!0),await e(se)}catch(he){console.error("Error submitting form:",he),p(!1)}},X=async()=>{if(!(u||!M)){d(!0);try{await r()}catch(le){console.error("Error deleting widget:",le),d(!1)}}},ee=()=>{Q({y_axis_label:"",product:"",device:"",attributes:"",unit:"",graph_type:"",text_color:"#000000"})},ve=le=>{F(le)};return C.jsxs("form",{onSubmit:H(ye),className:"bg-white rounded-2xl w-[60vw] max-w-full",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 text-gray-600 cursor-pointer hover:text-black",disabled:h||u,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:l("chart_bar.widgetSettings")}),C.jsx("p",{className:"text-gray-600 text-sm md:text-base",children:l("chart_bar.mixChart")})]}),C.jsx("h2",{className:"font-bold text-base md:text-lg mb-2",children:l("chart_bar.general")}),C.jsxs("div",{className:"flex flex-col md:flex-row gap-4 w-full",children:[C.jsx("div",{className:"bg-white w-full rounded-xl",children:C.jsx(_t,{name:"widget_name",control:j,render:({field:le})=>{var se;return C.jsx(Sn,{...le,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:l("chart_bar.widgetNamePlaceholder"),height:"h-[50px]",textSize:"text-sm md:text-[15.5px]",error:!!L.widget_name,helperText:(se=L.widget_name)==null?void 0:se.message,disabled:h||u})}})}),C.jsx("div",{className:"bg-white w-full rounded-xl",children:C.jsx(_t,{name:"graph_interval",control:j,render:({field:le})=>{var se;return console.log("Rendering graph_interval with value:",le.value),C.jsx(Ti,{value:le.value||"",onValueChange:le.onChange,className:"bg-[#fff]",placeholder:"Select Interval",options:P,size:"large",error:!!(L!=null&&L.graph_interval),helperText:(se=L==null?void 0:L.graph_interval)==null?void 0:se.message,disabled:h||u},`interval-${le.value}`)}})})]}),C.jsxs("div",{className:"",children:[C.jsx("div",{className:"text-lg md:text-xl text-text-dark font-bold mt-4",children:l("chart_bar.charts")}),C.jsx("div",{className:"rounded-xl mt-2",children:C.jsx("div",{className:"mt-4 flex flex-col gap-4",children:V.map((le,se)=>C.jsxs("div",{className:"border-1 border-gray-200 shadow-md rounded-lg p-3 md:p-4 mb-4",children:[C.jsx("div",{className:"flex justify-end items-center mb-3",children:V.length>1&&C.jsx("button",{type:"button",onClick:()=>ve(se),className:"text-red-500 hover:text-red-700 cursor-pointer p-1 rounded opacity-50 hover:opacity-100 transition-opacity",disabled:h||u,children:C.jsx(s$,{className:"w-5 h-5"})})}),C.jsxs("div",{className:"flex flex-col gap-y-4 md:gap-y-6",children:[C.jsx("div",{className:"flex gap-4 justify-start",children:C.jsx("div",{className:"w-full",children:C.jsx(_t,{name:`sections.${se}.y_axis_label`,control:j,render:({field:he})=>{var ie,be,xe,ke,Me;return C.jsx(Sn,{...he,className:"bg-background-lightest",height:"h-[50px]",textSize:"text-sm md:text-[15.5px]",fullWidth:!0,placeholder:l("chart_bar.yAxisLabelPlaceholder"),error:!!((be=(ie=L.sections)==null?void 0:ie[se])!=null&&be.y_axis_label),helperText:(Me=(ke=(xe=L.sections)==null?void 0:xe[se])==null?void 0:ke.y_axis_label)==null?void 0:Me.message,disabled:h||u})}})})}),C.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[C.jsx("div",{className:"w-full md:w-1/2",children:C.jsx(_t,{name:`sections.${se}.product`,control:j,render:({field:he})=>{var ie,be,xe,ke,Me;return C.jsx(Ti,{value:he.value,onValueChange:Ne=>U(Ne,se,he.onChange),className:"bg-[#fff]",placeholder:l("chart_bar.selectProduct"),options:k,size:"large",error:!!((be=(ie=L.sections)==null?void 0:ie[se])!=null&&be.product),helperText:(Me=(ke=(xe=L.sections)==null?void 0:xe[se])==null?void 0:ke.product)==null?void 0:Me.message,disabled:h||u})}})}),C.jsx("div",{className:"w-full md:w-1/2",children:C.jsx(_t,{name:`sections.${se}.device`,control:j,render:({field:he})=>{var ie,be,xe,ke,Me;return C.jsxs("div",{className:"relative",children:[C.jsx(Ti,{value:he.value,onValueChange:he.onChange,className:`bg-[#fff] ${y[se]?"opacity-70":""}`,placeholder:y[se]?"":l("chart_bar.selectDevice"),options:m[se]||[],size:"large",error:!!((be=(ie=L.sections)==null?void 0:ie[se])!=null&&be.device),helperText:(Me=(ke=(xe=L.sections)==null?void 0:xe[se])==null?void 0:ke.device)==null?void 0:Me.message,disabled:!I(`sections.${se}.product`)||y[se]||h||u}),y[se]&&C.jsx("div",{className:"absolute left-2 top-1/2 transform -translate-y-1/2 pointer-events-none",children:C.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-gray-300 border-t-blue-600"})})]})}})})]}),C.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[C.jsx("div",{className:"w-full lg:w-1/3",children:C.jsx(_t,{name:`sections.${se}.attributes`,control:j,render:({field:he})=>{var ie,be,xe,ke,Me;return C.jsx(Ti,{value:he.value,onValueChange:Ne=>{var Be;he.onChange(Ne);const Te=(Be=S[se])==null?void 0:Be[Ne];Te&&($(`sections.${se}.unit`,Te,{shouldDirty:!0}),console.log(`Auto-set unit for section ${se}:`,Te))},className:"bg-[#fff]",placeholder:l("chart_bar.selectAttributes"),options:b[se]||[],size:"large",error:!!((be=(ie=L.sections)==null?void 0:ie[se])!=null&&be.attributes),helperText:(Me=(ke=(xe=L.sections)==null?void 0:xe[se])==null?void 0:ke.attributes)==null?void 0:Me.message,disabled:!I(`sections.${se}.device`)||h||u})}})}),C.jsx("div",{className:"w-full lg:w-1/3",children:C.jsx(_t,{name:`sections.${se}.unit`,control:j,render:({field:he})=>{var ie,be,xe,ke,Me;return C.jsx(Ti,{value:he.value,onValueChange:he.onChange,className:"bg-[#fff]",placeholder:l("chart_bar.unit"),options:ae,size:"large",error:!!((be=(ie=L.sections)==null?void 0:ie[se])!=null&&be.unit),helperText:(Me=(ke=(xe=L.sections)==null?void 0:xe[se])==null?void 0:ke.unit)==null?void 0:Me.message,disabled:!I(`sections.${se}.device`)||h||u})}})}),C.jsx("div",{className:"w-full lg:w-1/3",children:C.jsx(_t,{name:`sections.${se}.graph_type`,control:j,render:({field:he})=>{var ie,be,xe,ke,Me;return C.jsx(Ti,{value:he.value,onValueChange:he.onChange,className:"bg-[#fff]",placeholder:l("chart_bar.selectChartType"),options:J,size:"large",error:!!((be=(ie=L.sections)==null?void 0:ie[se])!=null&&be.graph_type),helperText:(Me=(ke=(xe=L.sections)==null?void 0:xe[se])==null?void 0:ke.graph_type)==null?void 0:Me.message,disabled:!I(`sections.${se}.attributes`)||h||u})}})}),C.jsx("div",{className:"w-full lg:w-auto",children:C.jsx(_t,{name:`sections.${se}.text_color`,control:j,render:({field:he})=>{var ie,be,xe,ke,Me;return C.jsx(Sn,{...he,type:"color",height:"h-[48px]",className:"cursor-pointer w-full lg:w-16",error:!!((be=(ie=L.sections)==null?void 0:ie[se])!=null&&be.text_color),helperText:(Me=(ke=(xe=L.sections)==null?void 0:xe[se])==null?void 0:ke.text_color)==null?void 0:Me.message,disabled:h||u})}})})]})]}),V.length-1===se&&C.jsx("div",{className:"flex justify-center",children:C.jsx("button",{type:"button",onClick:ee,className:"bg-blue-50 hover:bg-blue-100 border cursor-pointer w-full md:w-1/2 border-blue-200 hover:border-blue-300 rounded-lg px-4 py-2 text-blue-600 hover:text-blue-700 font-medium transition-all duration-200 flex items-center justify-center gap-2 mt-4 text-sm md:text-base",disabled:h||u,children:l("chart_bar.addData")})})]},le.id))})})]}),C.jsxs("div",{className:"flex flex-col md:flex-row mt-4 gap-4 md:gap-0 md:justify-between",children:[C.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee] text-sm md:text-base",disabled:h||u,children:l("chart_bar.cancel")}),C.jsx("button",{type:"button",onClick:X,disabled:!M||h||u,className:`px-1 font-bold rounded text-sm md:text-base ${M&&!u?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:l(u?"chart_bar.removing":"chart_bar.removeWidget")})]}),C.jsx("button",{type:"submit",disabled:h||u,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded text-sm md:text-base ${h||u?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:l(h?"chart_bar.saving":"chart_bar.save")})]})]})}function WJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-motion-sensor-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>
982{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Motion Sensor"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})},A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}function ZJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-signal-strength-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:p("signalform.Signal_strength")})]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})}
982,A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}function JJ({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-smoke-detector-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Smoke Detector"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})},A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}const eee=t=>xr().shape({widget_name:mt().required(t("tankForm.validation.widgetName")),sections:Os().of(xr().shape({product:mt().required(t("tankForm.validation.product")),device:mt().required(t("tankForm.validation.device")),attributes:mt().required(t("tankForm.validation.attributes")),max_value:mt().required(t("tankForm.validation.maxvalue")),conditions:Os().of(xr().shape({selectedProduct:mt(),selectedAttribute:mt(),selectedCondition:mt().required("Condition is required"),
982conditionValue:mt().required("Value cannot be empty").test("not-empty","Value cannot be empty",e=>e&&e.trim()!==""),logicalOperator:mt()}))})).min(1,t("tankForm.validation.atLeastOneSection"))}),tee=({fillPercentage:t=0,fillColor:e="orange"})=>{const[n,r]=w.useState({visible:!1,x:0,y:0}),i=Math.max(0,Math.min(100,t)),a=25,l=74.9,u=l-a,d=i/100*u,h=l-d,p=m=>{const g=m.currentTarget.getBoundingClientRect();r({visible:!0,x:m.clientX-g.left,y:m.clientY-g.top})};return C.jsxs("div",{className:"w-full h-full relative",children:[C.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",children:[C.jsx("defs",{children:C.jsx("clipPath",{id:"rectangular-tank-clip",children:C.jsx("path",{d:"M78.9 67.5V25H36.4L22 32.4v42.5h42.5z"})})}),C.jsx("path",{d:"M78.9 67.5V25H36.4L22 32.4v42.5h42.5z",fill:"#399ACD",opacity:"0.1"}),C.jsx("rect",{x:"22",y:h,width:"56.9",height:d,fill:e,opacity:"0.6",clipPath:"url(#rectangular-tank-clip)",onMouseMove:p,onMouseEnter:p,onMouseLeave:()=>r({...n,visible:!1})}),C.jsx("path",{stroke:"#1263AD",strokeWidth:"1",fill:"none",d:"M78.9 67.5V25H36.4L22 32.4v42.5h42.5z"}),C.jsx("path",{d:"M36.4 67.5V25",stroke:"#1263AD",strokeWidth:"1",fill:"none",strokeDasharray:"1,1",opacity:"0.5"}),C.jsx("path",{stroke:"#1263AD",strokeWidth:"1",fill:"none",d:"M78.9 25l-14.4 7.4v42.5M22 32.4h42.5"}),C.jsx("path",{d:"M22 74.9l14.4-7.4M78.9 67.5H36.4",stroke:"#1263AD",strokeWidth:"1",fill:"none",strokeDasharray:"1,1",opacity:"0.5"})]}),n.visible&&C.jsx("div",{className:"absolute px-2 py-1 text-xs text-white bg-black rounded shadow pointer-events-none",style:{top:n.y,left:n.x,transform:"translate(-50%, -100%)"},children:`Fill: ${i.toFixed(1)}%`})]})},nee=({fillPercentage:t=0,fillColor:e="orange"})=>{const[n,r]=w.useState({visible:!1,x:0,y:0}),i=Math.max(0,Math.min(100,t)),a=16,u=85-a,d=i/100*u,h=p=>{const m=p.currentTarget.getBoundingClientRect();r({visible:!0,x:p.clientX-m.left,y:p.clientY-m.top})};return C.jsxs("div",{className:"w-full h-full relative",children:[C.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[C.jsx("defs",{children:C.jsx("clipPath",{id:"horizontal-tank-clip",children:C.jsx("path",{d:"M85 50c0 13.7-3.6 24.9-8.1 24.9H24.1C19.6 74.9 16 63.7 16 50s3.6-24.9 8.1-24.9h52.8c4.5 0 8.1 11.2 8.1 24.9"})})}),C.jsx("path",{d:"M85 50c0 13.7-3.6 24.9-8.1 24.9H24.1C19.6 74.9 16 63.7 16 50s3.6-24.9 8.1-24.9h52.8c4.5 0 8.1 11.2 8.1 24.9",fill:"#399ACD",opacity:"0.1"}),C.jsx("rect",{x:a,y:"25",width:d,height:"50",fill:e,opacity:"0.6",clipPath:"url(#horizontal-tank-clip)",onMouseMove:h,onMouseEnter:h,onMouseLeave:()=>r({...n,visible:!1})}),C.jsx("path",{d:"M85 50c0 13.7-3.6 24.9-8.1 24.9H24.1C19.6 74.9 16 63.7 16 50s3.6-24.9 8.1-24.9h52.8c4.5 0 8.1 11.2 8.1 24.9z",stroke:"#1263AD",strokeWidth:"1",fill:"none"}),C.jsx("path",{d:"M76.9 74.9c-4.5 0-8.1-11.2-8.1-24.9s3.6-24.9 8.1-24.9",stroke:"#1263AD",strokeWidth:"1",fill:"none"}),C.jsx("path",{d:"M25 25.3c4 1.3 7.2 11.8 7.2 24.7 0 13.1-3.3 23.9-7.5 24.8",stroke:"#1263AD",strokeWidth:"1",fill:"none",strokeDasharray:"1,1",opacity:"0.5"})]}),n.visible&&C.jsx("div",{className:"absolute px-2 py-1 text-xs text-white bg-black rounded shadow pointer-events-none",style:{top:n.y,left:n.x,transform:"translate(-50%, -100%)"},children:`Fill: ${i.toFixed(1)}%`})]})},ree=({fillPercentage:t=0,fillColor:e="orange"})=>{const[n,r]=w.useState({visible:!1,x:0,y:0}),i=Math.max(0,Math.min(100,t)),a=25,l=76,u=l-a,d=i/100*u,h=l-d,p=m=>{const g=m.currentTarget.getBoundingClientRect();r({visible:!0,x:m.clientX-g.left,y:m.clientY-g.top})};return C.jsxs("div",{className:"w-full h-full relative",children:[C.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[C.jsx("defs",{children:C.jsx("clipPath",{id:"spherical-tank-clip",children:C.jsx("path",{d:"M74.9 50A25 25 0 1125 50a25 25 0 0149.9 0z"})})}),C.jsx("path",{d:"M74.9 50A25 25 0 1125 50a25 25 0 0149.9 0z",fill:"#399ACD",opacity:"0.1"}),C.jsx("rect",{x:"25",y:h,width:"50",height:d,fill:e,opacity:"0.6",clipPath:"url(#spherical-tank-clip)",onMouseMove:p,onMouseEnter:p,onMouseLeave:()=>r({...n,visible:!1})}),C.jsx("path",{d:"M74.9 50A25 25 0 1125 50a25 25 0 0149.9 0z",stroke:"#1263AD",fill:"none",strokeWidth:"1"}),C.jsx("path",{d:"M74.9 50c0-4.6-11.2-8.2-25-8.2-13.7 0-24.9 3.6-24.9 8.1",stroke:"#1263AD",fill:"none",strokeWidth:"1",strokeDasharray:"1,1",opacity:"0.5"}),C.jsx("path",{d:"M74.9 50c0 4.4-11.2 8-25 8C36.2 58 25 54.5 25 50",stroke:"#1263AD",fill:"none",strokeWidth:"1"})]}),n.visible&&C.jsx("div",{className:"absolute px-2 py-1 text-xs text-white bg-black rounded shadow pointer-events-none",style:{to
982p:n.y,left:n.x,transform:"translate(-50%, -100%)"},children:`Fill: ${i.toFixed(1)}%`})]})},iee=({fillPercentage:t=0,fillColor:e="orange"})=>{const[n,r]=w.useState({visible:!1,x:0,y:0}),i=Math.max(0,Math.min(100,t)),a=20,l=80.9,u=l-a,d=i/100*u,h=l-d,p=m=>{const g=m.currentTarget.getBoundingClientRect();r({visible:!0,x:m.clientX-g.left,y:m.clientY-g.top})};return C.jsxs("div",{className:"w-full h-full relative",children:[C.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[C.jsx("defs",{children:C.jsx("clipPath",{id:"vertical-flat-clip",children:C.jsx("path",{d:"M37.6 20L25 26.5V80.9h37.3l12.6-6.5V20z"})})}),C.jsx("path",{d:"M37.6 20L25 26.5V80.9h37.3l12.6-6.5V20z",fill:"#399ACD",opacity:"0.1"}),C.jsx("rect",{x:"25",y:h,width:"50",height:d,fill:e,opacity:"0.6",clipPath:"url(#vertical-flat-clip)",onMouseMove:p,onMouseEnter:p,onMouseLeave:()=>r({...n,visible:!1})}),C.jsx("path",{d:"M74.9 74.4V20H37.6L25 26.5V80.9h37.3z",stroke:"#1263AD",strokeWidth:"1",fill:"none"}),C.jsx("path",{d:"M37.6 74.4V20",stroke:"#1263AD",strokeWidth:"1",fill:"none",strokeDasharray:"1,1",opacity:"0.5"}),C.jsx("path",{d:"M74.9 20l-12.6 6.5v54.4M25 26.5h37.3",stroke:"#1263AD",strokeWidth:"1",fill:"none"}),C.jsx("path",{d:"M25 80.9l12.6-6.5M74.9 74.4H37.6",stroke:"#1263AD",strokeWidth:"1",fill:"none",strokeDasharray:"1,1",opacity:"0.5"})]}),n.visible&&C.jsx("div",{className:"absolute px-2 py-1 text-xs text-white bg-black rounded shadow pointer-events-none",style:{top:n.y,left:n.x,transform:"translate(-50%, -100%)"},children:`Fill: ${i.toFixed(1)}%`})]})},see=({fillPercentage:t=0,fillColor:e="#399ACD"})=>{const[n,r]=w.useState({visible:!1,x:0,y:0}),i=Math.max(0,Math.min(100,t)),a=i/100*60,l=85-a,u=d=>{const h=d.currentTarget.getBoundingClientRect();r({visible:!0,x:d.clientX-h.left,y:d.clientY-h.top})};return C.jsxs("div",{className:"w-full h-full relative",children:[C.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",children:[C.jsx("defs",{children:C.jsx("clipPath",{id:"tank-clip",children:C.jsx("path",{d:"M74.9 24.1v52.8c0 4.5-11.2 8.1-25 8.1C36.2 85 25 81.4 25 76.9V24.1c0-4.5 11.2-8.1 25-8.1 13.7 0 24.9 3.6 24.9 8.1z"})})}),C.jsx("path",{d:"M74.9 24.1v52.8c0 4.5-11.2 8.1-25 8.1C36.2 85 25 81.4 25 76.9V24.1c0-4.5 11.2-8.1 25-8.1 13.7 0 24.9 3.6 24.9 8.1",fill:e,opacity:"0.1"}),C.jsx("rect",{x:"25",y:l,width:"50",height:a,fill:"orange",opacity:"0.6",clipPath:"url(#tank-clip)",onMouseMove:u,onMouseEnter:u,onMouseLeave:()=>r({...n,visible:!1}),style:{cursor:"pointer"}}),C.jsx("path",{d:"M74.9 24.1v52.8c0 4.5-11.2 8.1-25 8.1C36.2 85 25 81.4 25 76.9V24.1c0-4.5 11.2-8.1 25-8.1 13.7 0 24.9 3.6 24.9 8.1z",stroke:"#1263AD",strokeWidth:"1",fill:"none"}),C.jsx("path",{d:"M25 76.9c0-4.5 11.2-8.1 25-8.1s24.9 3.6 24.9 8.1",stroke:"#1263AD",strokeWidth:"1",fill:"none"}),C.jsx("path",{d:"M25 24.1c0 4.5 11.2 8.1 25 8.1s24.9-3.6 24.9-8.1",stroke:"#1263AD",strokeWidth:"1",fill:"none",strokeDasharray:"1,1",opacity:"0.5"})]}),n.visible&&C.jsx("div",{className:"absolute px-2 py-1 text-xs text-white bg-black rounded shadow",style:{to
982p:n.y,left:n.x,transform:"translate(-50%, -100%)",pointerEvents:"none",whiteSpace:"nowrap"},children:`Fill: ${i.toFixed(1)}%`})]})};function aee({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){var U;const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1);w.useEffect(()=>{console.log("devices seen innnnn TankForm:",a)},[a]);const y=!!n,x=[{key:"RectangularTank",displayName:p("tankForm.rectangularTank"),component:C.jsx(tee,{})},{key:"HorizontalCylindricalTank",displayName:p("tankForm.horizontalCylindricalTank"),component:C.jsx(nee,{})},{key:"SphericalTank",displayName:p("tankForm.sphericalTank"),component:C.jsx(ree,{})},{key:"VerticalCylindricalFlatTank",displayName:p("tankForm.verticalCylindricalFlatTank"),component:C.jsx(iee,{})},{key:"VerticalCylindricalConicalTank",displayName:p("tankForm.verticalCylindricalConicalTank"),component:C.jsx(see,{})}],{control:S,handleSubmit:R,watch:O,reset:M,setValue:k,formState:{errors:P,dirtyFields:j}}=Pr({resolver:jr(eee(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],max_value:"",tank_type:x[0].key,enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}});console.log("pop",n,i);const H=O("sections.0.tank_type"),{fields:I}=Sr({control:S,name:"sections"});w.useEffect(()=>{var V,Q;n&&(i==null?void 0:i.length)>0&&M({widget_name:((V=n==null?void 0:n.widget_settings)==null?void 0:V[0].widget_name)||"",sections:(Q=n==null?void 0:n.widget_settings)==null?void 0:Q.map(F=>{var J,ae;return{product:String(F.product)||"",device:String(F.device)||"",attributes:F.attributes||"",unit:F.unit||"",conditions:(J=F==null?void 0:F.rule)==null?void 0:J.conditions,max_value:F.max_value||"",tank_type:F.tank_type||x[0].key,value_color:F.value_color||"#000000",enabled:!!((ae=F.rule)!=null&&ae.is_for_all)}})})},[n,i,a,M]);const A=V=>{k("sections.0.tank_type",V.key)},$=async V=>{var F;console.log("🔴 STEP 1 - Form data:",V),console.log("🔴 STEP 2 - sections array:",V.sections),console.log("🔴 STEP 3 - tank_type in section:",(F=V.sections[0])==null?void 0:F.tank_type);const Q={widget_name:V.widget_name,widget_settings:V.sections};try{E(!0),await e(Q)}catch(J){console.error("Error submitting form:",J),E(!1)}},L=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(V){console.error("Error deleting widget:",V),g(!1)}}};return C.jsxs("form",{onSubmit:R($),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 text-gray-600 cursor-pointer hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("tankForm.widgetSettings")}),C.jsx("p",{className:"text-gray-600",children:p("tankForm.tankLevel")})]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("tankForm.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4  rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:S,render:({field:V})=>{var Q;return C.jsx(Sn,{...V,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("tankForm.widgetName"),disabled:b||m,error:!!P.widget_name,helperText:(Q=P.widget_name)==null?void 0:Q.message})}})})})}),C.jsx(_t,{name:"tank_type",control:S,render:({field:{value:V,...Q}})=>C.jsx("input",{type:"hidden",...Q,value:V??""})}),I.map((V,Q)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:P,dirtyFields:j,watch:O,control:S,productOptions:i,setProductOptions:u,deviceOptions:a,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,incomingWidget:n,showUnitField:!0,setValue:k,showMaxValueField:!0,plusBtn:!1,sectionIndex:Q,showValueColor:!0})},V.id)),C.jsx("h1",{className:"font-bold mt-4",children:p("tankForm.tankType")}),C.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:[p("tankForm.selected"),((U=x.find(V=>V.key===H))==null?void 0:U.displayName)??x[0].displayName]}),C.jsx("div",{className:"flex mt-4 mb-7 flex-wrap",children:x.map(V=>
982C.jsx("div",{className:`cursor-pointer hover:border-gray-300 hover:rounded-2xl transition duration-200 rounded-2xl ${H===V.key?"shadow-lg border border-gray-300":"border border-transparent"}`,onClick:()=>A(V),title:V.displayName,children:C.jsx("div",{className:"w-52",children:V.component})},V.key))}),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("tankForm.cancel")}),C.jsx("button",{type:"button",onClick:L,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"tankForm.removing":"tankForm.removeWidget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"tankForm.saving":"tankForm.save")})]})]})}var MO;const oee=((MO=JSON.parse(localStorage.getItem("user")||"{}"))==null?void 0:MO.isDemo)??!1,lee=t=>xr().shape({widget_name:mt().required(t("TemperatureForm.widgetName")),sections:Os().of(xr().shape({product:mt().required(t("TemperatureForm.validation.product")),device:mt().required(t("TemperatureForm.validation.device")),attributes:mt().required(t("TemperatureForm.validation.attributes")),conditions:Os().of(xr().shape({selectedProduct:mt(),selectedAttribute:mt(),selectedCondition:mt().required("Condition is required"),conditionValue:oee?mt().nullable().notRequired():mt().required("Value cannot be empty").test("not-empty","Value cannot be empty",e=>e&&e.trim()!==""),logicalOperator:mt()}))})).min(1,t("tankForm.validation.atLeastOneSection"))});function cee({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,reset:O,setValue:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(lee(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&O({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",unit:L.unit||"",label:L.label||"",conditions:(L==null?void 0:L.conditions)||((U=L==null?void 0:L.rule)==null?void 0:U.conditions)||[],value_color:L.value_color||"#000000",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1}})})},[n,O]);const H=async A=>{console.log("final-temperature-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 text-gray-600 cursor-pointer hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("TemperatureForm.widgetSettings")}),C.jsx("p",{className:"text-gray-600",children:p("TemperatureForm.temperature")})]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("TemperatureForm.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4  rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("TemperatureForm.widgetNamePlaceholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),C.jsx("div",{}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,dirtyFields:P,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,setValue:M,showValueColor:!0,showUnitField:!0,disabled:b||m})}
982,A.id)),C.jsx("div",{className:""}),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("TemperatureForm.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"TemperatureForm.removing":"TemperatureForm.removeWidget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"TemperatureForm.saving":"TemperatureForm.save")})]})]})}function uee({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){const{t:p}=ir(),[m,g]=w.useState(!1),[b,E]=w.useState(!1),y=!!n,{control:x,handleSubmit:S,watch:R,setValue:O,reset:M,formState:{errors:k,dirtyFields:P}}=Pr({resolver:jr(la(p)),defaultValues:{widget_name:"",product:(n==null?void 0:n.product)||"",device:(n==null?void 0:n.device)||"",attributes:(n==null?void 0:n.attributes)||"",showTimestamp:(n==null?void 0:n.showTimestamp)||!1,sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],enabled:(n==null?void 0:n.enabled)||!1,value_color:"#000000"}]}}),{fields:j}=Sr({control:x,name:"sections"});w.useEffect(()=>{var A,$;n&&M({widget_name:((A=n==null?void 0:n.widget_settings)==null?void 0:A[0].widget_name)||"",sections:($=n==null?void 0:n.widget_settings)==null?void 0:$.map(L=>{var U,V;return{product:String(L.product)||"",device:String(L.device)||"",attributes:L.attributes||"",conditions:(U=L==null?void 0:L.rule)==null?void 0:U.conditions,unit:L.unit||"",enabled:L.enabled??((V=L.rule)==null?void 0:V.is_for_all)===1??!1,value_color:L.value_color||"#000000"}})})},[n,i,a,M]);const H=async A=>{console.log("final-water-leak-form",A);const $={...A,widget_settings:A.sections};try{E(!0),await e($)}catch(L){console.error("Error submitting form:",L),E(!1)}},I=async()=>{if(!(m||!y)){g(!0);try{await r()}catch(A){console.error("Error deleting widget:",A),g(!1)}}};return C.jsxs("form",{onSubmit:S(H),className:"bg-white rounded-2xl w-[60vw]",children:[C.jsx("button",{type:"button",onClick:t,className:"absolute top-4 right-4 cursor-pointer text-gray-600 hover:text-black",disabled:b||m,children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("signalform.widget_settings")}),C.jsx("p",{className:"text-gray-600",children:"Water Leak"})," "]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("signalform.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4 rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:x,render:({field:A})=>{var $;return C.jsx(Sn,{...A,className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("signalform.widget_name_placeholder"),disabled:b||m,error:!!k.widget_name,helperText:($=k.widget_name)==null?void 0:$.message})}})})})}),j.map((A,$)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:k,watch:R,control:x,productOptions:i,setProductOptions:u,deviceOptions:a,setValue:O,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,showValueColor:!0,showUnitField:!0,dirtyFields:P,incomingWidget:n,disabled:b||m})},A.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{type:"button",onClick:t,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",disabled:b||m,children:p("signalform.cancel")}),C.jsx("button",{type:"button",onClick:I,disabled:!y||b||m,className:`px-1 font-bold rounded ${y&&!m?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(m?"signalform.removing":"signalform.remove_widget")})]}),C.jsx("button",{type:"submit",disabled:b||m,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${b||m?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(b?"signalform.saving":"signalform.save")})]})]})}function dee({onClose:t,handleModalSubmit:e,incomingWidget:n,handleDeleteWidget:r,products:i,devices:a,attributes:l,setProducts:u,setDevices:d,setAttributes:h}){console.log("BatteryForm Component Rendered!"),console.log("🧠 BatteryForm mounted"),console.log("🧾 incomingWidget (initial):",n);const{t:p}=ir(),m=!!n,[g,b]=w.useState(!1),[E,y]=w.useState(!1),[x,S]=w.useState(!1);w.useEffect(()=>{Ww("WidgetFormDemo")&&S(!1)},[]);const{control:R,handleSubmit:O,watch:M,reset:k,setValue:P,formState:{errors:j,dirtyFields:H}}=Pr({resolver:jr(dN(p)),defaultValues:{widget_name:"",sections:[{product:"",device:"",attributes:"",unit:"",conditions:[{selectedProduct:"",selectedAttribute:"",selectedCondition:p("conditions.equalTo"),conditionValue:"",logicalOperator:p("newRule.if")}],max_value:"",enabled:!1,value_color:"#000000"}]}}),{fields:I}=Sr({control:R,name:"sections"});w.useEffect(()=>{var L,U,V;n&&(console.log("Resetting form with incomingWidget:",n),k({widget_name:((U=(L=n==null?void 0:n.widget_settings)==null?void 0:L[0])==null?void 0:U.widget_name)||"",sections:((V=n==null?void 0:n.widget_settings)==null?void 0:V.map(Q=>{var F,J;return{product:String(Q.product||""),device:String(Q.device||""),attributes:Q.attributes||"",label:Q.label||"",conditions:(Q==null?void 0:Q.conditions)||((F=Q.rule)==null?void 0:F.conditions)||[],max_value:Q.max_value||"",unit:Q.unit||"",value_color:Q.value_color||"#000000",enabled:Q.enabled??((J=Q.rule)==null?void 0:J.is_for_all)===1??!1}}))||[]}))},[n,k]);const A=async L=>{console.log("final-battery-form",L);const U={...L,widget_settings:L.sections};try{y(!0),await e(U)}catch(V){console.error("Error submitting form:",V),y(!1)}},$=async()=>
982{if(!(g||!m)){b(!0);try{await r()}catch(L){console.error("Error deleting widget:",L),b(!1)}}};return C.jsxs("form",{onSubmit:O(A),className:"bg-white rounded-2xl w-[60vw]",children:[x&&C.jsx(fN,{setValue:P,products:i,sectionIndex:0}),C.jsx("button",{type:"button",onClick:t,disabled:E||g,className:"absolute top-4 right-4 text-gray-600 cursor-pointer hover:text-black",children:C.jsx(_r,{name:"close",className:"w-6 h-6"})}),C.jsxs("div",{className:"mb-4",children:[C.jsx("h1",{className:"text-xl font-bold",children:p("batteryForm.widgetSettings")}),C.jsx("p",{className:"text-gray-600",children:"Humidity"})]}),C.jsx("h2",{className:"font-bold text-lg mb-2",children:p("batteryForm.general")}),C.jsx("div",{className:"flex flex-col gap-4",children:C.jsx("div",{className:"p-4  rounded-xl",children:C.jsx("div",{className:"bg-white rounded-lg",children:C.jsx(_t,{name:"widget_name",control:R,render:({field:L})=>{var U;return C.jsx(Sn,{...L,id:"wgt-name",className:"w-full rounded-sm text-lg p-4 focus:outline-none",placeholder:p("batteryForm.widgetNamePlaceholder"),disabled:E||g,error:!!j.widget_name,helperText:(U=j.widget_name)==null?void 0:U.message})}})})})}),I.map((L,U)=>C.jsx(w.Fragment,{children:C.jsx(Xr,{errors:j,watch:M,control:R,productOptions:i,setProductOptions:u,deviceOptions:a,setDeviceOptions:d,attributeOptions:l,setAttributeOptions:h,setValue:P,showValueColor:!0,showMaxValueField:!0,showUnitField:!0,dirtyFields:H,incomingWidget:n,disabled:E||g,sectionIndex:U})},L.id)),C.jsxs("div",{className:"flex mt-4 justify-between",children:[C.jsxs("div",{className:"flex gap-4",children:[C.jsx("button",{onClick:t,type:"button",disabled:E||g,className:"text-[#393939] font-bold px-6 py-2 cursor-pointer rounded hover:bg-[#eee]",children:p("batteryForm.cancel")}),C.jsx("button",{type:"button",onClick:$,disabled:!m||E||g,className:`px-1 font-bold rounded ${m&&!g?"text-[#ea1c0d] hover:bg-[#eee] cursor-pointer":"text-gray-400 cursor-not-allowed"}`,children:p(g?"batteryForm.removing":"batteryForm.removeWidget")})]}),C.jsx("button",{id:"save-form",type:"submit",disabled:E||g,className:`bg-blue-500 text-white h-10 px-6 py-2 rounded ${E||g?"opacity-50 cursor-not-allowed":"hover:bg-blue-600 cursor-pointer"}`,children:p(E?"batteryForm.saving":"batteryForm.save")})]})]})}var NO;const Fb=((NO=JSON.parse(localStorage.getItem("user")||"{}"))==null?void 0:NO.isDemo)??!1,ur=t=>{const e=w.lazy(t);return n=>C.jsx(w.Suspense,{fallback:C.jsx("div",{}),children:C.jsx(e,{...n})})},rr={DeviceData:ur(()=>Fe(()=>import("./DeviceData-CPAvkMdN.js"),[])),TankLevel:ur(()=>Fe(()=>import("./TankLevel-CowEkGWB.js"),[])),Value:ur(()=>Fe(()=>import("./Value-O4j5oZ8j.js"),[])),TemperatureDevice:ur(()=>Fe(()=>import("./TemperatureDevice-CPdhgM_e.js"),__vite__mapDeps([52,53]))),Battery:ur(()=>Fe(()=>import("./Battery-_AJqLNZa.js"),[])),SignalStrength:ur(()=>Fe(()=>import("./SignalStrength-B28HYgQ1.js"),__vite__mapDeps([54,53]))),WaterLeak:ur(()=>Fe(()=>import("./WaterLeak-eWV-vpwu.js"),__vite__mapDeps([55,53]))),MotionSensor:ur(()=>Fe(()=>import("./MotionSensor-nIxens0W.js"),__vite__mapDeps([56,53]))),GatewayStatus:ur(()=>Fe(()=>import("./GatewayStatus-gUbFd-58.js"),__vite__mapDeps([57,53]))),SmokeDetector:ur(()=>Fe(()=>import("./SmokeDetector-DrjJSi6c.js"),__vite__mapDeps([58,53]))),GasLeak:ur(()=>Fe(()=>import("./GasLeak-SYoiDRKr.js"),__vite__mapDeps([59,53]))),FireAlarm:ur(()=>Fe(()=>import("./FireAlarm-CbN8pyQj.js"),__vite__mapDeps([60,53]))),DoorStatus:ur(()=>Fe(()=>import("./DoorStatus-px4zjtc_.js"),__vite__mapDeps([61,53]))),Current:ur(()=>Fe(()=>import("./Current-BbRNcv3Q.js"),__vite__mapDeps([62,53]))),FingerPrint:ur(()=>Fe(()=>import("./FingerPrint-DWIc_Pqy.js"),__vite__mapDeps([63,53]))),Humidity:ur(()=>Fe(()=>import("./Humidity-D0pfa0A6.js"),__vite__mapDeps([64,6,7]))),WidgetInitialDiv:ur(()=>Fe(()=>import("./WidgetInitialDiv-TVlMk4-r.js"),__vite__mapDeps([65,6,7]))),MixChart:ur(()=>Fe(()=>import("./MixChart-CdP8vYQz.js"),__vite__mapDeps([66,6,7])))},Ar={DeviceDefaultForm:IJ,TankForm:aee,BatteryForm:HJ,SignalStrengthForm:ZJ,WaterLeakForm:uee,MotionSensorForm:WJ,GatewayStatusForm:YJ,SmokeDetectorForm:JJ,GasLeakForm:XJ,FireAlarmForm:GJ,DoorStatusForm:VJ,CurrentForm:FJ,FingerPrintForm:qJ,TemperatureForm:cee,HumidityForm:dee,MixChartForm:QJ},fee=()=>{const{t}=ir();return{battery:{title:t("widgets.battery"),component:rr.Battery,form:Ar.BatteryForm,w:3,h:3,minW:3,minH:3,category:"realtime"},current:{title:"Current",component:rr.Current,form:Ar.CurrentForm,w:3,h:3,minW:3,minH:3,category:"realtime"},...!Fb&&{DeviceDefault:{title:t("widgets.deviceDefault"),component:rr.DeviceData,form:Ar.DeviceDefaultForm,w:4,h:4,minW:3,minH:3,category:"realtime"}},doorStatus:{title:"Door Status",component:rr.DoorStatus,form:Ar.DoorStatusForm,w:3,h:3,minW:3,minH:3,category:"realtime"},fingerPrint:{title:"Fingerprint",component:rr.FingerPrint,form:Ar.FingerPrintForm,w:3,h:3,minW:3,minH:3,category:"realtime"},fireAlarm:{title:"Fire Alarm",component:rr.FireAlarm,form:Ar.FireAlarmForm,w:3,h:3,minW:3,minH:3,category:"realtime"},gasLeak:{title:"Gas Leak",component:rr.GasLeak,form:Ar.GasLeakForm,w:3,h:3,minW:3,minH:3,category:"realtime"},gatewayStatus:{title:"Gateway Status",component:rr.GatewayStatus,form:Ar.GatewayStatusForm,w:3,h:3,minW:3,minH:3,category:"realtime"},humidity:{title:"Humidity",component:rr.Humidity,form:Ar.HumidityForm,w:3,h:3,minW:3,minH:3,category:"realtime"}
982,motionSensor:{title:"Motion Sensor",component:rr.MotionSensor,form:Ar.MotionSensorForm,w:3,h:3,minW:3,minH:3,category:"realtime"},signalStrength:{title:t("widgets.signalStrength"),component:rr.SignalStrength,form:Ar.SignalStrengthForm,w:3,h:3,minW:3,minH:3,category:"realtime"},smokeDetector:{title:"Smoke Detector",component:rr.SmokeDetector,form:Ar.SmokeDetectorForm,w:3,h:3,minW:3,minH:3,category:"realtime"},...!Fb&&{tankLevel:{title:t("widgets.tankLevel"),component:rr.TankLevel,form:Ar.TankForm,w:3,h:3,minW:3,minH:3,category:"realtime"}},temperatureDevice:{title:t("widgets.temperatureDevice"),component:rr.TemperatureDevice,form:Ar.TemperatureForm,w:3,h:2,minW:3,minH:3,category:"realtime"},waterLeak:{title:t("widgets.waterLeak"),component:rr.WaterLeak,form:Ar.WaterLeakForm,w:3,h:3,minW:3,minH:3,category:"realtime"},...!Fb&&{MixChart:{title:t("widgets.mixChart"),component:rr.MixChart,form:Ar.MixChartForm,w:8,h:5,minW:6,minH:5,category:"visualization"}}}};function hee({handlePlusButtonClick:t,filteredWidgets:e}){return w.useEffect(()=>{const n=XM({showProgress:!0,steps:[{element:"#das-title",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom"}},{element:"#drg-widgets",popover:{title:"Dashboard Title",description:"Please add your dashboard title.",side:"bottom",onNextClick:()=>{const r=e.realtime[0];r&&(t(r),setTimeout(()=>{n.moveNext()},2e3))}}}]});n.drive()},[]),null}const pee=()=>{var $e,Y;const{t}=ir(),{id:e}
982=ND(),n=Ns(),r=new URLSearchParams(n.search),{user:i}=Bj(),{bindDashboardEvent:a,unbindDashboardEvent:l}=Hj(),u=w.useRef(null),d=w.useRef(null),[h,p]=w.useState([]),[m,g]=w.useState("devices"),[b,E]=w.useState(!0),[y,x]=w.useState(!0),[S,R]=w.useState([]),[O,M]=w.useState(!0),[k,P]=w.useState({}),[j,H]=w.useState([]),[I,A]=w.useState([]),[$,L]=w.useState([]),[U,V]=w.useState([]),[Q,F]=w.useState(!1),{openModal:J,closeModal:ae}=KV(),ye=fee(),[X,ee]=w.useState(""),ve=w.useRef({}),[le,se]=w.useState(!1);w.useEffect(()=>{Ww("WidgetDashboardDemo")&&se(!1)},[]);const{data:he}=gT("products","/api/products",{user_id:i==null?void 0:i.id}),{data:ie,isLoading:be,refetch:xe}=gT(`widgets-${e}`,`/api/dashboards/${e}`,{},{enabled:!!((Y=($e=he==null?void 0:he.data)==null?void 0:$e.data)!=null&&Y.length)>0});console.log("kdfhsdjhfska",he);const ke=async(G=null)=>{var De;const K=(De=ie==null?void 0:ie.widgets)==null?void 0:De.filter(Ue=>(Ue==null?void 0:Ue.type)=="MixChart"),ue={};K==null||K.forEach(Ue=>{var Je,ot;ue[Ue==null?void 0:Ue.id]=((ot=(Je=Ue==null?void 0:Ue.widget_settings)==null?void 0:Je[0])==null?void 0:ot.graph_interval)||"daily"});const we=Object.keys(G||ue);H(we);const pe=await V0("/api/widgets/graph-data",{graph_widget:G||ue},{},!1);pe!=null&&pe.success&&P(G?Ue=>({...Ue,...pe.data}):pe==null?void 0:pe.data),H([])};w.useEffect(()=>{var K;const G=(K=ie==null?void 0:ie.widgets)==null?void 0:K.filter(ue=>(ue==null?void 0:ue.type)=="MixChart");(G==null?void 0:G.length)>0&&ke()},[ie]),w.useEffect(()=>
982{u.current&&(d.current||(d.current=it.init({float:!0,cellHeight:100,column:12,minW:2,minH:2,animate:!0,resizable:{handles:"se, sw"}},u.current)),d.current.removeAll(),d.current.on("change",(G,K)=>{p(K.map(ue=>{var De;let we=(ue==null?void 0:ue.id)||((De=ue.el)==null?void 0:De.getAttribute("id"));we=we||null;const pe=(ie==null?void 0:ie.widgets.find(Ue=>Ue.id===we))||{};return{id:we,x:ue.x,y:ue.y,w:ue.w,h:ue.h,type:pe.type||null}}).filter(Boolean))}))},[]),w.useEffect(()=>{ie&&d.current&&Te()},[ie]),w.useEffect(()=>{h.forEach(G=>{sC(`/api/widgets/${G.id}`,{x:G.x,y:G.y,w:G.w,h:G.h,type:G.type},{},!1)})},[h]),console.log("pusher event values",S),w.useEffect(()=>(e&&a(e,Me),()=>{e&&l(e)}),[e]);function Me(G){console.log("Dashboard event pusher:- ",G),(G==null?void 0:G.dashboard_id)==e&&R(G==null?void 0:G.widget_data)}w.useEffect(()=>{var G;!S||!d.current||!ie||(G=ie==null?void 0:ie.widgets)==null||G.forEach(K=>{var un,qt,Zn,at;const ue=String(K.id),we=ve.current[ue],pe=ye[K.type];if(!we||!(pe!=null&&pe.component)||((un=K==null?void 0:K.widget_settings)==null?void 0:un.length)==0)return;const De=((qt=S==null?void 0:S.find(ft=>(ft==null?void 0:ft.widget_id)===K.id))==null?void 0:qt.values)??(K==null?void 0:K.values),Ue=(De==null?void 0:De.some(ft=>ft.is_alert))??!1,Je=K==null?void 0:K.widget_settings,ot=k[`widget_${K==null?void 0:K.id}`]||k[K==null?void 0:K.id];console.log("deewana bahir1",Je),we.render(C.jsx(rr.WidgetInitialDiv,{title:((at=(Zn=K==null?void 0:K.widget_settings)==null?void 0:Zn[0])==null?void 0:at.widget_name)??pe.title,openModal:()=>{J(_e(K))},isAlert:Ue,children:C.jsx("div",{className:"widget-content",children:ze.createElement(pe.component,{liveValue:De,isAlert:Ue,widgetSettings:Je,widgetId:ue,individualGraphData:ot,isGraphDataLoading:j,fetchGraphData:ke})})}))})},[S,ie,k]);const Ne=G=>{const K={id:Date.now(),x:0,y:0,w:G.w,h:G.h,type:G.type};J(_e(K,"save")),F(!1)};function Te(){var K;if(!d.current||!ie)return;const G=new Set(d.current.engine.nodes.map(ue=>String(ue.el.getAttribute("id"))));(K=ie==null?void 0:ie.widgets)==null||K.forEach(ue=>{var un,qt;const we=String(ue.id);if(G.has(we))return;const pe=ye[ue.type]||{title:"Default Widget",component:null},De=document.createElement("div"),Ue=`widget-${Date.now()}`;De.innerHTML=yt("initial",Ue),De.setAttribute("id",ue.id),De.setAttribute("gs-x",ue.x),De.setAttribute("gs-y",ue.y),De.setAttribute("gs-w",ue.w),De.setAttribute("gs-h",ue.h),De.setAttribute("gs-min-w",pe.minW||2),De.setAttribute("gs-min-h",pe.minH||2);const Je=document.createElement("div");Je.className="widget-content",De.appendChild(Je),d.current.makeWidget(De);const ot=AE.createRoot(Je);if(ve.current[we]=ot,((qt=(un=ue==null?void 0:ue.widget_settings)==null?void 0:un[0])==null?void 0:qt.widget_name)??pe.component){const Zn=ue==null?void 0:ue.widget_settings;console.log("deewana bahir2",Zn),ot.render(C.jsx(rr.WidgetInitialDiv,{title:pe.title,openModal:()=>{J(_e(ue))},children:C.jsx("div",{className:"widget-content",children:ze.createElement(pe.component,{widgetSettings:Zn})})}))}else ot.render(C.jsx("div",{className:"widget-content",children:"Default Widget"}))})}const Be=(G,K,ue)=>{G.dataTransfer.setData("widget",JSON.stringify({...K,type:ue}))},nt=G=>{G.preventDefault();const K=JSON.parse(G.dataTransfer.getData("widget"));if(!K.type){console.error("Dropped widget has no type!",K),F(!1);return}const ue={id:Date.now(),x:0,y:0,w:K.w,h:K.h,type:K.type};J(_e(ue,"save")),F(!1)},yt=(G,K=`widget-${Date.now()}`)=>`<div id="${K}" ${G==="initial"?"":'class="widget-content"'}></div>`,_e=async(G,K="edit")=>{var qt,Zn;F(!0);const ue=()=>window.innerWidth<640,we=async(at,ft)=>{var ji,Dn;const Et=ye[at.type],Ht=await V0("/api/widgets",{dashboard_id:e,x:at.x,y:at.y,w:at.w,h:at.h,type:at.type,device_id:ft==null?void 0:ft.device});if(!(Ht!=null&&Ht.success))return F(!1),ae();V0(`/api/widgets/${(ji=Ht==null?void 0:Ht.data)==null?void 0:ji.id}/settings`,ft,{},!1).then(Yr=>xe());const Nn=(Dn=Ht==null?void 0:Ht.data)==null?void 0:Dn.id;at.id=Nn;const Er=`widget-${Date.now()}`,nn=document.createElement("div");nn.innerHTML=yt("submit",Er),nn.setAttribute("id",`${Nn}`),nn.setAttribute("gs-x",at.x),nn.setAttribute("gs-y",at.y),nn.setAttribute("gs-w",at.w),nn.setAttribute("gs-h",at.h),nn.setAttribute("gs-min-w",Et.minW||2),nn.setAttribute("gs-min-h",Et.minH||2),Et.maxW&&nn.setAttribute("gs-max-w",Et.maxW),Et.maxH&&nn.setAttribute("gs-max-h",Et.maxH),d.current.makeWidget(nn);const _n=nn.querySelector(`#${Er}`);if(_n){const Yr=AE.createRoot(_n);if(ve.current[Nn]=Yr,Et.component){const Li=(ft==null?void 0:ft.sections)||(ft==null?void 0:ft.widget_settings);
982console.log("deewana bahir3",ft),Yr.render(C.jsx(rr.WidgetInitialDiv,{title:(ft==null?void 0:ft.widget_name)??Et.title,openModal:()=>{J(_e(at))},children:C.jsx("div",{className:"widget-content",children:ze.createElement(Et.component,{widgetSettings:Li})})}))}else Yr.render(C.jsx("div",{className:"widget-content",children:"Default Widget"}))}ae(),F(!1),ue()&&E(!1)};let pe={};if(K==="edit"){const at=await Nf(`/api/widgets/${G==null?void 0:G.id}`);at!=null&&at.success&&(pe=at==null?void 0:at.data),F(!1)}async function De(at,ft){const Et=at.widget_settings.map((Nn,Er)=>{var nn,_n;return{...Nn,id:(_n=(nn=ft==null?void 0:ft.widget_settings)==null?void 0:nn[Er])==null?void 0:_n.id}}),Ht=await sC(`/api/widget-settings/${ft==null?void 0:ft.id}`,{...at,widget_settings:Et});Ht!=null&&Ht.success&&(xe(),ae(),ue()&&E(!1)),F(!1)}async function Ue(){var ft;const at=await kL(`/api/widgets/${G==null?void 0:G.id}`);if(at!=null&&at.success){ae();const Et=String(G==null?void 0:G.id),Ht=(ft=d.current)==null?void 0:ft.getGridItems().find(Nn=>Nn.getAttribute("id")===Et);Ht&&d.current.removeWidget(Ht),xe(),ue()&&E(!1)}}const Je=async at=>{K==="edit"?De(at,pe):we(G,at)},ot=ye[G==null?void 0:G.type];if(!ot||!ot.form)return C.jsx("div",{children:C.jsx("h1",{children:"Something Wrong!!!"})});const un=(Zn=(qt=he==null?void 0:he.data)==null?void 0:qt.data)==null?void 0:Zn.map(at=>({value:String(at.id),label:at.name}));return ze.createElement(ot.form,{onClose:ae,incomingWidget:K==="edit"?pe:null,handleModalSubmit:Je,handleDeleteWidget:Ue,products:un??[],devices:$,attributes:U,setProducts:()=>{},setDevices:L,setAttributes:V})},Ae=w.useMemo(()=>{const G=K=>Object.entries(ye).filter(([ue,we])=>we.category===K).filter(([ue,we])=>we.title.toLowerCase().includes(X.toLowerCase())).map(([ue,we])=>({name:we.title,type:ue,w:we.w,h:we.h}));return{realtime:G("realtime"),visualization:G("visualization")}},[ye,X]),je=()=>{ee("")};return console.log("products-sbse0bahire",I),C.jsxs(C.Fragment,{children:[le&&C.jsx(hee,{handlePlusButtonClick:Ne,filteredWidgets:Ae}),Q&&C.jsx(AJ,{}),C.jsxs("div",{className:`min-w-full relative max-w-screen overflow-hidden ${r.get("lock")=="true"?"pointer-events-none cursor-not-allowed":""} flex `,children:[C.jsx("div",{className:"p-[10px] full transition-all duration-300 ease-in-out flex-1 min-h-[700px]",ref:u,onDragOver:G=>G.preventDefault(),onDrop:nt}),C.jsx("div",{className:`transition-all ease-in-out duration-300 ${b?"translate-x-0 w-[300px]":"translate-x-full w-0"} text-center max-sm:absolute max-sm:h-full h- max-sm:w-[100vw] max-sm:border-background z-100 max-sm-overflow-y-auto max-sm:shadow-none max-sm:p-[10px] max-sm:px-1 max-sm:border-l-[1px] flex flex-col p-[10px] px-1 bg-background-lightest border-l-[1px] border-background overflow-y-auto`,children:C.jsxs("div",{className:"flex flex-col gap-[10px]",children:[C.jsxs("div",{className:`ml-2 mr-2 space-y-2 overflow-hidden transition-all duration-300 ease-in-out ${y?"max-h-[1000px]":"max-h-0"}`,children:[C.jsx("div",{className:"mb-4 relative",children:C.jsxs("div",{className:"relative w-fit",children:[C.jsx("input",{id:"das-title",type:"text",placeholder:t("SideBar.device_search_placeholder"),value:X??"",onChange:G=>ee(G.target.value),className:"h-[40px] w-[268px] max-sm:w-[90vw] text-sm rounded-md border border-gray-200 bg-white px-3 py-2 text-gray-900 placeholder:text-xs placeholder:text-gray-400 placeholder:opacity-100 transition-all duration-200 ease-in-out outline-none focus:border-gray-200 focus:ring-2 focus:ring-gray-300/25 focus:ring-offset-0"}),X&&C.jsx("button",{onClick:je,className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 cursor-pointer hover:text-gray-700 transition-colors",children:"✕"})]})}),Ae.realtime.length>0&&C.jsx("div",{children:C.jsx("div",{className:`w-fit space-y-2 overflow-hidden transition-all duration-300 ease-in-out ${y?"max-h-[1000px]":"max-h-0"}`,children:Ae.realtime.map((G,K)=>C.jsxs("div",{className:"widget flex justify-between items-center text-sm w-[270px] max-sm:w-[90vw] font-semibold p-3 md:p-[10px] bg-[#EBEBEB] rounded-lg",children:[C.jsx("div",{id:"drg-widgets",className:"flex items-center flex-1 cursor-move",draggable:!0,onDragStart:ue=>Be(ue,{w:G.w,h:G.h},G.type),children:C.jsx("p",{className:"text-[#6C6C6C] mr-2",children:G.name})}),C.jsx("button",{onClick:()=>Ne(G),className:"bg-green-500 hover:bg-green-600 max-sm:flex hidden transition-colors cursor-pointer rounded-full w-8 h-8 items-center justify-center ml-2",children:C.jsx("div",{className:"text-white",children:C.jsx(jm,{size:"small"})})})]},K))})})]}),m==="devices"&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:`w-fit space-y-2 overflow-hidden transition-all duration-300 ease-in-out ${O?"max-h-[1000px]":"max-h-0"}`,children:Ae.visualization.length>0&&C.jsx("div",{children:C.jsx("div",{className:`ml-2 mr-2 space-y-2 overflow-hidden transition-all duration-300 ease-in-out ${O?"max-h-[1000px]":"max-h-0"}`,children:Ae.visualization.map((G,K)=>C.jsxs("div",{className:"widget flex justify-between items-center text-sm w-[270px] max-sm:w-[90vw] font-semibold p-3 md:p-[10px] bg-[#EBEBEB] rounded-lg",children:[C.jsx("div",{className:"flex items-center flex-1 cursor-move",draggable:!0,onDragStart:ue=>Be(ue,{w:G.w,h:G.h},G.type),children:C.jsx("p",{className:"text-[#6C6C6C] mr-2",children:G.name})}),C.jsx("button",{onClick:()=>Ne(G),className:"bg-green-500 hover:bg-green-600 max-sm:flex hidden transition-colors cursor-pointer rounded-full w-8 h-8 items-center justify-center ml-2",children:C.jsx("div",{className:"text-white",children:C.jsx(jm,{size:"small"})})})]},K))})})}),X&&Ae.realtime.length===0&&Ae.visualization.length===0&&C.jsx("div",{className:"text-center py-8 text-gray-500",children:C.jsx("p",{children:"No widgets found "})})]})]})}),C.jsx("button",{className:"fixed bottom-20 right-4 z-1000 bg-blue-500 transition-transform duration-300 text-white p-4 rounded-full shadow-md",onClick:()=>E(!b),children:b?C.jsx(SK,{size:"large"}):C.jsx(jm,{size:"large"})})]})]})},bre=Object.freeze(Object.defineProperty({__proto__:null,default:pee},Symbol.toStringTag,{value:"Module"}));
982export{ste as $,PI as A,lg as B,wne as C,e4 as D,LI as E,Sne as F,Qk as G,Lx as H,Pr as I,jr as J,_t as K,Sn as L,bte as M,xte as N,GL as O,Mn as P,Pte as Q,DI as R,JO as S,V0 as T,Cne as U,gee as V,Iu as W,Bj as X,Ns as Y,ir as Z,ote as _,CB as a,Lte as a$,Nf as a0,Vne as a1,Fne as a2,Une as a3,qne as a4,Ine as a5,Hne as a6,Bne as a7,$ne as a8,Ti as a9,ite as aA,jm as aB,Kee as aC,Gee as aD,fr as aE,ine as aF,ze as aG,Fo as aH,sC as aI,Yne as aJ,SK as aK,Mne as aL,S$ as aM,gV as aN,EB as aO,Ene as aP,Qs as aQ,Dne as aR,jne as aS,Pne as aT,kL as aU,Kne as aV,Wn as aW,Sr as aX,ET as aY,NK as aZ,ND as a_,hi as aa,Ane as ab,Vee as ac,Iee as ad,gT as ae,KV as af,XM as ag,zY as ah,Ww as ai,Vte as aj,yne as ak,ane as al,mte as am,gte as an,Fte as ao,lV as ap,cV as aq,uV as ar,dV as as,YL as at,fV as au,hV as av,pV as aw,jR as ax,LR as ay,mV as az,mt as b,Zee as b$,ate as b0,cte as b1,_r as b2,hne as b3,vte as b4,une as b5,one as b6,dne as b7,fne as b8,jte as b9,gre as bA,ix as bB,vre as bC,yre as bD,gu as bE,QZ as bF,OJ as bG,_h as bH,Eh as bI,as as bJ,ss as bK,Ho as bL,pre as bM,Uu as bN,lS as bO,Hj as bP,bK as bQ,wK as bR,vt as bS,Yee as bT,Xte as bU,bne as bV,Dte as bW,ene as bX,_te as bY,pne as bZ,Ute as b_,tne as ba,Zte as bb,nne as bc,kte as bd,vee as be,Qte as bf,nte as bg,rte as bh,hre as bi,Xee as bj,Cg as bk,kW as bl,mu as bm,uv as bn,Yt as bo,qe as bp,_g as bq,st as br,Ff as bs,Ve as bt,La as bu,vx as bv,_x as bw,Qo as bx,K1 as by,G5 as bz,xr as c,Xne as c$,Jee as c0,Mte as c1,Ite as c2,mne as c3,Wte as c4,vne as c5,pte as c6,Jte as c7,gne as c8,qee as c9,zte as cA,Wee as cB,lte as cC,kne as cD,D1 as cE,Nne as cF,rt as cG,xne as cH,Ote as cI,are as cJ,$te as cK,ire as cL,rre as cM,yte as cN,tte as cO,v6 as cP,Ete as cQ,OA as cR,Kte as cS,yee as cT,Lne as cU,zne as cV,bee as cW,GD as cX,Gne as cY,Rne as cZ,AE as c_,Nte as ca,Ste as cb,fte as cc,ete as cd,Tte as ce,Gte as cf,wte as cg,Cte as ch,Qee as ci,rne as cj,cne as ck,lne as cl,qte as cm,dte as cn,sne as co,Ate as cp,hte as cq,Hte as cr,Fe as cs,AJ as ct,s$ as cu,Bte as cv,Rte as cw,Yte as cx,$B as cy,ute as cz,_ne as d,xee as d0,Tne as d1,Uee as d2,Fee as d3,One as d4,see as d5,iee as d6,ree as d7,nee as d8,tee as d9,Jne as da,Zne as db,Qne as dc,Wne as dd,tre as de,ure as df,sre as dg,nre as dh,cre as di,dre as dj,ore as dk,fre as dl,lre as dm,ere as dn,bre as dp,fi as e,Nx as f,dR as g,Yn as h,hU as i,C as j,pU as k,Cw as l,Rw as m,nF as n,cF as o,Wl as p,i4 as q,w as r,T4 as s,fU as t,wr as u,QB as v,RF as w,f4 as x,n4 as y,jI as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.