PageSourceSearch

https://bogota.gov.co/servicios/assets/index-DFPHm5QJ.js

js bogota.gov.co collected 2026-09-24 08:41:45 UTC 652,154 bytes, 200 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-CJGOY6go.js","assets/BaseLayout-FXyWBNTj.js","assets/NavBar-IVQZva_t.js","assets/imageService-sFPFGRp9.js","assets/NavBar-CHT4Mzl3.css","assets/NewFooter-1zBDz_VE.js","assets/Fab-9rWAlLgI.js","assets/searchService-CS39jkNQ.js","assets/tramitesService-DZ-QddBz.js","assets/building-2-DoVvS9mV.js","assets/car-C76nXHTw.js","assets/ServiceCard-B0hoVUuD.js","assets/building-DmMLA0Ta.js","assets/useServiceGroups-3ySPkxkv.js","assets/map-pin-q8H-a-Gy.js","assets/Home-FdZWV25L.css","assets/ServiceRoute-Cdb62fia.js","assets/ServiceRouteLayout-Yq7FTLex.js","assets/Breadcrumbs-5jFughhm.js","assets/filterService-Cdq2akGd.js","assets/TramiteRequirementsTabs-Dv7ybQNF.js","assets/twitter-arA7_OsW.js","assets/dollar-sign-BjHx_t5s.js","assets/index-NcyD1jhd.js","assets/piggy-bank-BsOnHD-A.js","assets/index-CFDhE8Pu.js","assets/useNewsService-Cyp5nTvj.js","assets/ReservationPage-BbmYdLqh.js","assets/index-2RF33ddN.js","assets/SearchResults-CX3GBtwI.js","assets/sparkles-CuHhEgzq.js","assets/EntidadDropdown-29SSO1Pw.js","assets/Login-brnQinRG.js","assets/MainLayout-B0omvBRV.js","assets/Login-BbiYd0SC.css","assets/Profile-Bxi5uj5W.js","assets/Geovisor-za4ZinJX.js","assets/PagosBogota-CvtMUV6J.js","assets/usePagosBogotaService-Gej4S1Ny.js","assets/useApi-BAUiUju7.js","assets/index-DIzaWK1Z.js","assets/leaf-DoRKBIr1.js","assets/PagosBogota-DaPALs0q.css","assets/PagosPendientes-yO9vV6HQ.js","assets/PagosPendientes-Cq1OIKmP.css","assets/NotFound-DVGhGWNK.js","assets/index-pQnxoW9K.js"])))=>i.map(i=>d[i]);
2var e=Object.defineProperty,t=(t,n,r)=>((t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r)(t,"symbol"!=typeof n?n+"":n,r);function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var r,a,s={exports:{}},i={};var o,l,c=(a||(a=1,s.exports=function(){if(r)return i;r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==n.key&&(a=""+n.key),"key"in n)for(var s in r={},n)"key"!==s&&(r[s]=n[s]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:a,ref:void 0!==n?n:null,props:r}}return i.Fragment=t,i.jsx=n,i.jsxs=n,i}()),s.exports),u={exports:{}},d={};function m(){if(o)return d;o=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function x(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var b=x.prototype=new v;b.constructor=x,p(b,y.prototype),b.isPureReactComponent=!0;var w=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function k(t,n,r,a,s,i){return r=i.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:i}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function P(){}function A(n,r,a,s,i){var o=typeof n;"undefined"!==o&&"boolean"!==o||(n=null);var l,c,u=!1;if(null===n)u=!0;else switch(o){case"bigint":case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0;break;case m:return A((u=n._init)(n._payload),r,a,s,i)}}if(u)return i=i(n),u=""===s?"."+C(n,0):s,w(i)?(a="",null!=u&&(a=u.replace(E,"$&/")+"/"),A(i,r,a,"",(function(e){return e}))):null!=i&&(S(i)&&(l=i,c=a+(null==i.key||n&&n.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+u,i=k(l.type,c,void 0,0,0,l.props)),r.push(i)),1;u=0;var d,f=""===s?".":s+":";if(w(n))for(var p=0;p<n.length;p++)u+=A(s=n[p],r,a,o=f+C(s,p),i);else if("function"==typeof(p=null===(d=n)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(n=p.c
vendor: 4,195 bytes, line 2
2all(n),p=0;!(s=n.next()).done;)u+=A(s=s.value,r,a,o=f+C(s,p++),i);else if("object"===o){if("function"==typeof n.then)return A(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(P,P):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,a,s,i);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return u}function T(e,t,n){if(null==e)return e;var r=[],a=0;return A(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function _(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function L(){}return d.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},d.Component=y,d.Fragment=n,d.Profiler=a,d.PureComponent=x,d.StrictMode=r,d.Suspense=c,d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,d.__COMPILER_RUNTIME={__proto__:null,c:function(e){return j.H.useMemoCache(e)}},d.cache=function(e){return function(){return e.apply(null,arguments)}},d.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=p({},e.props),a=e.key;if(null!=t)for(s in void 0!==t.ref&&void 0,void 0!==t.key&&(a=""+t.key),t)!N.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(r[s]=t[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var i=Array(s),o=0;o<s;o++)i[o]=arguments[o+2];r.children=i}return k(e.type,a,void 0,0,0,r)},d.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},d.createElement=function(e,t,n){var r,a={},s=null;if(null!=t)for(r in void 0!==t.key&&(s=""+t.key),t)N.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return k(e,s,void 0,0,0,a)},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:l,render:e}},d.isValidElement=S,d.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:_}},d.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=j.T,n={};j.T=n;try{var r=e(),a=j.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(L,R)}catch(s){R(s)}finally{j.T=t}},d.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},d.use=function(e){return j.H.use(e)},d.useActionState=function(e,t,n){return j.H.useActionState(e,t,n)},d.useCallback=function(e,t){return j.H.useCallback(e,t)},d.useContext=function(e){return j.H.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e,t){return j.H.useDeferredValue(e,t)},d.useEffect=function(e,t,n){var r=j.H;
vendor: 4,310 bytes, line 2
2if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},d.useId=function(){return j.H.useId()},d.useImperativeHandle=function(e,t,n){return j.H.useImperativeHandle(e,t,n)},d.useInsertionEffect=function(e,t){return j.H.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return j.H.useLayoutEffect(e,t)},d.useMemo=function(e,t){return j.H.useMemo(e,t)},d.useOptimistic=function(e,t){return j.H.useOptimistic(e,t)},d.useReducer=function(e,t,n){return j.H.useReducer(e,t,n)},d.useRef=function(e){return j.H.useRef(e)},d.useState=function(e){return j.H.useState(e)},d.useSyncExternalStore=function(e,t,n){return j.H.useSyncExternalStore(e,t,n)},d.useTransition=function(){return j.H.useTransition()},d.version="19.1.0",d}function h(){return l||(l=1,u.exports=m()),u.exports}var f=h();const p=n(f);var g,y,v={exports:{}},x={},b={exports:{}},w={};function j(){return y||(y=1,b.exports=(g||(g=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,s=e[r];if(!(0<a(s,t)))break e;e[r]=t,e[n]=s,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,s=e.length,i=s>>>1;r<i;){var o=2*(r+1)-1,l=e[o],c=o+1,u=e[c];if(0>a(l,n))c<s&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<s&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var l=[],c=[],u=1,d=null,m=3,h=!1,f=!1,p=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(c);null!==a;){if(null===a.callback)r(c);else{if(!(a.startTime<=e))break;r(c),a.sortIndex=a.expirationTime,t(l,a)}a=n(c)}}function w(e){if(p=!1,b(e),!f)if(null!==n(l))f=!0,N||(N=!0,j());else{var t=n(c);null!==t&&_(w,t.startTime-e)}}var j,N=!1,k=-1,S=5,E=-1;function C(){return!(!g&&e.unstable_now()-E<S)}function P(){if(g=!1,N){var t=e.unstable_now();E=t;var a=!0;try{e:{f=!1,p&&(p=!1,v(k),k=-1),h=!0;var s=m;try{t:{for(b(t),d=n(l);null!==d&&!(d.expirationTime>t&&C());){var i=d.callback;if("function"==typeof i){d.callback=null,m=d.priorityLevel;var o=i(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof o){d.callback=o,b(t),a=!0;break t}d===n(l)&&r(l),b(t)}else r(l);d=n(l)}if(null!==d)a=!0;else{var u=n(c);null!==u&&_(w,u.startTime-t),a=!1}}break e}finally{d=null,m=s,h=!1}a=void 0}}finally{a?j():N=!1}}}if("function"==typeof x)j=function(){x(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,T=A.port2;A.port1.onmessage=P,j=function(){T.postMessage(null)}}else j=function(){y(P,0)};function _(t,n){k=y((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e||(S=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(e){switch(m){case 1:case 2:case 3:var t=3;break;default:t=m}var n=m;m=t;try{return e()}finally{m=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=m;m=e;try{return t()}finally{m=n}},e.unstable_scheduleCallback=function(r,a,s){var i=e.unstable_now();switch(s="object"==typeof s&&null!==s&&"number"==typeof(s=s.delay)&&0<s?i+s:i,r){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return r={id:u++,callback:a,priorityLevel:r,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>i?(r.sortIndex=s,t(c,r),null===n(l)&&r===n(c)&&(p?(v(k),k=-1):p=!0,_(w,s-i))):(r.sortIndex=o,t(l,r),f||h||(f=!0,N||(N=!0,j()))),r},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}}
vendor: 6,736 bytes, lines 2-11
2(w)),w)),b.exports}var N,k,S,E,C={exports:{}},P={};function A(){if(N)return P;N=1;var e=h();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" 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(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,P.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},P.flushSync=function(e){var t=s.T,n=r.p;try{if(s.T=null,r.p=2,e)return e()}finally{s.T=t,r.p=n,r.d.f()}},P.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},P.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},P.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,a=i(n,t.crossOrigin),s="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:o}):"script"===n&&r.d.X(e,{crossOrigin:a,integrity:s,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},P.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=i(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},P.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,a=i(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:a,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},P.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=i(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},P.requestFormReset=function(e){r.d.r(e)},P.unstable_batchedUpdates=function(e,t){return e(t)},P.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},P.useFormStatus=function(){return s.H.useHostTransitionStatus()},P.version="19.1.0",P}function T(){if(k)return C.exports;return k=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),C.exports=A(),C.exports}
3/**
4 * @license React
5 * react-dom-client.production.js
6 *
7 * Copyright (c) Meta Platforms, Inc. and affiliates.
8 *
9 * This source code is licensed under the MIT license found in the
10 * LICENSE file in the root directory of this source tree.
11 */function _(){if(S)return x;S=1;var e=j(),t=h(),n=T();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function i(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function o(e){if(s(e)!==e)throw Error(r(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var c=Object.assign,u=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),_=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function M(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case g:return"Profiler";case p:return"StrictMode";case N:return"Suspense";case k:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case m:return"Portal";case b:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:M(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return M(e(t))}catch(n){}}return null}var O=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},U=[],F=-1;function V(e){return{current:e}}function $(e){0>F||(e.current=U[F],U[F]=null,F--)}function B(e,t){F++,U[F]=e.current,e.current=t}var q=V(null),H=V(null),W=V(null),G=V(null);function Y(e,t){switch(B(W,t),B(H,e),B(q,null),t.nodeType){case 9:case 11:e=(e
vendor: 4,547 bytes, line 11
11=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ld(t=od(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(q),B(q,e)}function K(){$(q),$(H),$(W)}function Q(e){null!==e.memoizedState&&B(G,e);var t=q.current,n=ld(t,e.type);t!==n&&(B(H,e),B(q,n))}function X(e){H.current===e&&($(q),$(H)),G.current===e&&($(G),Xd._currentValue=z)}var J=Object.prototype.hasOwnProperty,Z=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,te=e.unstable_shouldYield,re=e.unstable_requestPaint,ae=e.unstable_now,se=e.unstable_getCurrentPriorityLevel,ie=e.unstable_ImmediatePriority,oe=e.unstable_UserBlockingPriority,le=e.unstable_NormalPriority,ce=e.unstable_LowPriority,ue=e.unstable_IdlePriority,de=e.log,me=e.unstable_setDisableYieldValue,he=null,fe=null;function pe(e){if("function"==typeof de&&me(e),fe&&"function"==typeof fe.setStrictMode)try{fe.setStrictMode(he,e)}catch(t){}}var ge=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ye(e)/ve|0)|0},ye=Math.log,ve=Math.LN2;var xe=256,be=4194304;function we(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function je(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,s=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=134217727&r;return 0!==o?0!==(r=o&~s)?a=we(r):0!==(i&=o)?a=we(i):n||0!==(n=o&~e)&&(a=we(n)):0!==(o=r&~s)?a=we(o):0!==i?a=we(i):n||0!==(n=r&~e)&&(a=we(n)),0===a?0:0!==t&&t!==a&&0===(t&s)&&((s=a&-a)>=(n=t&-t)||32===s&&4194048&n)?t:a}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ke(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;default:return-1}}function Se(){var e=xe;return!(4194048&(xe<<=1))&&(xe=256),e}function Ee(){var e=be;return!(62914560&(be<<=1))&&(be=4194304),e}function Ce(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pe(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ge(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Te(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ge(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function _e(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Re(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Le(){var e=I.p;return 0!==e?e:void 0===(e=window.event)?32:mm(e.type)}var Me=Math.random().toString(36).slice(2),Oe="__reactFiber$"+Me,De="__reactProps$"+Me,Ie="__reactContainer$"+Me,ze="__reactEvents$"+Me,Ue="__reactListeners$"+Me,Fe="__reactHandles$"+Me,Ve="__reactResources$"+Me,$e="__reactMarker$"+Me;function Be(e){delete e[Oe],delete e[De],delete e[ze],delete e[Ue],delete e[Fe]}function qe(e){var t=e[Oe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ie]||n[Oe]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=jd(e);null!==e;){if(n=e[Oe])return n;e=jd(e)}return t}n=(e=n).parentNode}return null}function He(e){if(e=e[Oe]||e[Ie]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Ge(e){var t=e[Ve];return t||(t=e[Ve]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[$e]=!0}var Ke=new Set,Qe={};function Xe(e,t){Je(e,t),Je(e+"Capture",t)}function Je(e,t){for(Qe[e]=t,e=0;e<t.length;e++)Ke.add(t[e])}var Ze,et,tt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
11037D\\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]*$"),nt={},rt={};function at(e,t,n){if(a=t,J.call(rt,a)||!J.call(nt,a)&&(tt.test(a)?rt[a]=!0:(nt[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function st(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function it(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ot(e){if(void 0===Ze)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ze=t&&t[1]||"",et=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ze+e+et}var lt=!1;function ct(e,t){if(!e||lt)return"";lt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}
vendor: 9,006 bytes, line 11
11else{try{n.call()}catch(s){r=s}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(o){if(o&&r&&"string"==typeof o.stack)return[o.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=r.DetermineComponentFrameRoot(),i=s[0],o=s[1];if(i&&o){var l=i.split("\n"),c=o.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{lt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ot(n):""}function ut(e){switch(e.tag){case 26:case 27:case 5:return ot(e.type);case 16:return ot("Lazy");case 13:return ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return ot("Activity");default:return""}}function dt(e){try{var t="";do{t+=ut(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){e._valueTracker||(e._valueTracker=function(e){var t=ht(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function gt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(ne){return e.body}}var yt=/[\n"\\]/g;function vt(e){return e.replace(yt,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function xt(e,t,n,r,a,s,i,o){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+mt(t)):e.value!==""+mt(t)&&(e.value=""+mt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,mt(t)):null!=n?wt(e,i,mt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=s&&(e.defaultChecked=!!s),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.name=""+mt(o):e.removeAttribute("name")}function bt(e,t,n,r,a,s,i,o){if(null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.type=s),null!=t||null!=n){if(("submit"===s||"reset"===s)&&null==t)return;n=null!=n?""+mt(n):"",t=null!=t?""+mt(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function wt(e,t,n){"number"===t&&gt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function jt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+mt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Nt(e,t,n){null==t||((t=""+mt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+mt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function kt(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(r(92));if(O(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=mt(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a)}function St(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=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 Ct(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Pt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Ct(e,s,a)}else for(var i in t)t.hasOwnProperty(i)&&Ct(e,i,t[i])}function At(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tt=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"],["colorRendering","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
11-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"]]),_t=/^[\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 Rt(e){return _t.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Lt=null;function Mt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ot=null,Dt=null;function It(e){var t=He(e);if(t&&(e=t.stateNode)){var n=e[De]||null;e:switch(e=t.stateNode,t.type){case"input":if(xt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[De]||null;if(!s)throw Error(r(90));xt(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&pt(a)}break e;case"textarea":Nt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&jt(e,!!n.multiple,t,!1)}}}var zt=!1;function Ut(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==Ot||null!==Dt)&&(qc(),Ot&&(t=Ot,e=Dt,Dt=Ot=null,It(t),e)))for(t=0;t<e.length;t++)It(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var a=n[De]||null;if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Vt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$t=!1;if(Vt)try{var Bt={};Object.defineProperty(Bt,"passive",{get:function(){$t=!0}}),window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch(ne){$t=!1}var qt=null,Ht=null,Wt=null;function Gt(){if(Wt)return Wt;var e,t,n=Ht,r=n.length,a="value"in qt?qt.value:qt.textContent,s=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[s-t];t++);return Wt=a.slice(e,1<t?1-t:void 0)}function Yt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kt(){return!0}function Qt(){return!1}function Xt(e){function t(t,n,r,a,s){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Kt:Qt,this.isPropagationStopped=Qt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kt)},persist:function(){},isPersistent:Kt}),t}var Jt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=c({},tn,{view:0,detail:0}),an=Xt(rn),sn=c({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 8,755 bytes, line 11
11Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Jt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Jt=0,en=e),Jt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),on=Xt(sn),ln=Xt(c({},sn,{dataTransfer:0})),cn=Xt(c({},rn,{relatedTarget:0})),un=Xt(c({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(c({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),mn=Xt(c({},tn,{data:0})),hn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fn={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"},pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=pn[e])&&!!t[e]}function yn(){return gn}var vn=Xt(c({},rn,{key:function(e){if(e.key){var t=hn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Xt(c({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Xt(c({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),wn=Xt(c({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=Xt(c({},sn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Nn=Xt(c({},tn,{newState:0,oldState:0})),kn=[9,13,27,32],Sn=Vt&&"CompositionEvent"in window,En=null;Vt&&"documentMode"in document&&(En=document.documentMode);var Cn=Vt&&"TextEvent"in window&&!En,Pn=Vt&&(!Sn||En&&8<En&&11>=En),An=String.fromCharCode(32),Tn=!1;function _n(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var Mn={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 On(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Dn(e,t,n,r){Ot?Dt?Dt.push(r):Dt=[r]:Ot=r,0<(t=Gu(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,zn=null;function Un(e){Uu(e,0)}function Fn(e){if(pt(We(e)))return e}function Vn(e,t){if("change"===e)return t}var $n=!1;if(Vt){var Bn;if(Vt){var qn="oninput"in document;if(!qn){var Hn=document.createElement("div");Hn.setAttribute("oninput","return;"),qn="function"==typeof Hn.oninput}Bn=qn}else Bn=!1;$n=Bn&&(!document.documentMode||9<document.documentMode)}function Wn(){In&&(In.detachEvent("onpropertychange",Gn),zn=In=null)}function Gn(e){if("value"===e.propertyName&&Fn(zn)){var t=[];Dn(t,zn,e,Mt(e)),Ut(Un,t)}}function Yn(e,t,n){"focusin"===e?(Wn(),zn=n,(In=t).attachEvent("onpropertychange",Gn)):"focusout"===e&&Wn()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(zn)}function Qn(e,t){if("click"===e)return Fn(t)}function Xn(e,t){if("input"===e||"change"===e)return Fn(t)}var Jn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Jn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!J.call(t,a)||!Jn(e[a],t[a]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=gt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=gt((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Vt&&"documentMode"in document&&11>=document.documentMode,ir=null,or=null,lr=null,cr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cr||null==ir||ir!==gt(r)||("selectionStart"in(r=ir)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=Gu(or,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ir)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},hr={},fr={};function pr(e){if(hr[e])return hr[e];if(!mr[e])return e;var t,n=mr[e];for(t in n)if(n.hasOwnProperty(t)&&t in fr)return hr[e]=n[t];return e}Vt&&(fr=document.createElement("div").style,"AnimationEvent"in window||(delete mr.animationend.animation,delete mr.animationiteration.animation,delete mr.animationstart.animation),"TransitionEvent"in window||delete mr.transitionend.transition);var gr=pr("animationend"),yr=pr("animationiteration"),vr=pr("animationstart"),xr=pr("transitionrun"),br=pr("transitionstart"),wr=pr("transitioncancel"),jr=pr("transitionend"),Nr=new Map,kr="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(" ");function Sr(e,t){Nr.set(e,t),Xe(t,[e])}kr.push("scrollEnd");var Er=new WeakMap;function Cr(e,t){if("object"==typeof e&&null!==e){var n=Er.get(e);return void 0!==n?n:(t={value:e,source:t,stack:dt(t)},Er.set(e,t),t)}return{value:e,source:t,stack:dt(t)}}var Pr=[],Ar=0,Tr=0;function _r(){for(var e=Ar,t=Tr=Ar=0;t<e;){var n=Pr[t];Pr[t++]=null;var r=Pr[t];Pr[t++]=null;var a=Pr[t];Pr[t++]=null;var s=Pr[t];if(Pr[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==s&&Or(n,a,s)}}function Rr(e,t,n,r){Pr[Ar++]=e,Pr[Ar++]=t,Pr[Ar++]=n,Pr[Ar++]=r,Tr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Lr(e,t,n,r){return Rr(e,t,n,r),Dr(e)}function Mr(e,t){return Rr(e,null,null,t),Dr(e)}function Or(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,s=e.return;null!==s;
vendor: 7,599 bytes, line 11
11)s.childLanes|=n,null!==(r=s.alternate)&&(r.childLanes|=n),22===s.tag&&(null===(e=s.stateNode)||1&e._visibility||(a=!0)),e=s,s=s.return;return 3===e.tag?(s=e.stateNode,a&&null!==t&&(a=31-ge(n),null===(r=(e=s.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),s):null}function Dr(e){if(50<Oc)throw Oc=0,Dc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ir={};function zr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(e,t,n,r){return new zr(e,t,n,r)}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;return null===n?((n=Ur(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function $r(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,a,s,i){var o=0;if(a=e,"function"==typeof e)Fr(e)&&(o=1);else if("string"==typeof e)o=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=Ur(31,n,t,s)).elementType=P,e.lanes=i,e;case f:return qr(n.children,s,i,t);case p:o=8,s|=24;break;case g:return(e=Ur(12,n,t,2|s)).elementType=g,e.lanes=i,e;case N:return(e=Ur(13,n,t,s)).elementType=N,e.lanes=i,e;case k:return(e=Ur(19,n,t,s)).elementType=k,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case y:case b:o=10;break e;case v:o=9;break e;case w:o=11;break e;case E:o=14;break e;case C:o=16,a=null;break e}o=29,n=Error(r(130,null===e?"null":typeof e,"")),a=null}return(t=Ur(o,n,t,s)).elementType=e,t.type=a,t.lanes=i,t}function qr(e,t,n,r){return(e=Ur(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=Ur(6,e,null,t)).lanes=n,e}function Wr(e,t,n){return(t=Ur(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gr=[],Yr=0,Kr=null,Qr=0,Xr=[],Jr=0,Zr=null,ea=1,ta="";function na(e,t){Gr[Yr++]=Qr,Gr[Yr++]=Kr,Kr=e,Qr=t}function ra(e,t,n){Xr[Jr++]=ea,Xr[Jr++]=ta,Xr[Jr++]=Zr,Zr=e;var r=ea;e=ta;var a=32-ge(r)-1;r&=~(1<<a),n+=1;var s=32-ge(t)+a;if(30<s){var i=a-a%5;s=(r&(1<<i)-1).toString(32),r>>=i,a-=i,ea=1<<32-ge(t)+a|n<<a|r,ta=s+e}else ea=1<<s|n<<a|r,ta=e}function aa(e){null!==e.return&&(na(e,1),ra(e,1,0))}function sa(e){for(;e===Kr;)Kr=Gr[--Yr],Gr[Yr]=null,Qr=Gr[--Yr],Gr[Yr]=null;for(;e===Zr;)Zr=Xr[--Jr],Xr[Jr]=null,ta=Xr[--Jr],Xr[Jr]=null,ea=Xr[--Jr],Xr[Jr]=null}var ia=null,oa=null,la=!1,ca=null,ua=!1,da=Error(r(519));function ma(e){throw va(Cr(Error(r(418,"")),e)),da}function ha(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Oe]=e,t[De]=r,n){case"dialog":Fu("cancel",t),Fu("close",t);break;case"iframe":case"object":case"embed":Fu("load",t);break;case"video":case"audio":for(n=0;n<Iu.length;n++)Fu(Iu[n],t);break;case"source":Fu("error",t);break;case"img":case"image":case"link":Fu("error",t),Fu("load",t);break;case"details":Fu("toggle",t);break;case"input":Fu("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ft(t);break;case"select":Fu("invalid",t);break;case"textarea":Fu("invalid",t),kt(t,r.value,r.defaultValue,r.children),ft(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Zu(t.textContent,n)?(null!=r.popover&&(Fu("beforetoggle",t),Fu("toggle",t)),null!=r.onScroll&&Fu("scroll",t),null!=r.onScrollEnd&&Fu("scrollend",t),null!=r.onClick&&(t.onclick=ed),t=!0):t=!1,t||ma(e)}function fa(e){for(ia=e.return;ia;)switch(ia.tag){case 5:case 13:return void(ua=!1);case 27:case 3:return void(ua=!0);default:ia=ia.return}}function pa(e){if(e!==ia)return!1;if(!la)return fa(e),la=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||cd(e.type,e.memoizedProps)),t=!t),t&&oa&&ma(e),fa(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){oa=bd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}oa=null}}else 27===n?(n=oa,gd(e.type)?(e=wd,wd=null,oa=e):oa=n):oa=ia?bd(e.stateNode.nextSibling):null;return!0}function ga(){oa=ia=null,la=!1}function ya(){var e=ca;return null!==e&&(null===jc?jc=e:jc.push.apply(jc,e),ca=null),e}function va(e){null===ca?ca=[e]:ca.push(e)}var xa=V(null),ba=null,wa=null;function ja(e,t,n){B(xa,t._currentValue),t._currentValue=n}function Na(e){e._currentValue=xa.current,$(xa)}function ka(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sa(e,t,n,a){var s=e.child;for(null!==s&&(s.return=e);null!==s;){var i=s.dependencies;if(null!==i){var o=s.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=s;for(var c=0;c<t.length;c++)if(l.context===t[c]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),ka(i.return,n,e),a||(o=null);break e}i=l.next}}else if(18===s.tag){if(null===(o=s.return))throw Error(r(341));o.lanes|=n,null!==(i=o.alternate)&&(i.lanes|=n),ka(o,n,e),o=null}else o=s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===e){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}}function Ea(e,t,n,a){e=null;for(var s=t,i=!1;null!==s;){if(!i)if(524288&s.flags)i=!0;else if(262144&s.flags)break;if(10===s.tag){var o=s.alternate;if(null===o)throw Error(r(387));if(null!==(o=o.memoizedProps)){var l=s.type;Jn(s.pendingProps.value,o.value)||(null!==e?e.push(l):e=[l])}}else if(s===G.current){if(null===(o=s.alternate))throw Error(r(387));o.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(null!==e?e.push(Xd):e=[Xd])}s=s.return}null!==e&&Sa(t,e,n,a),t.flags|=262144}function Ca(e){for(e=e.firstContext;null!==e;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 5,874 bytes, line 11
11function Pa(e){ba=e,wa=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Aa(e){return _a(ba,e)}function Ta(e,t){return null===ba&&Pa(e),_a(e,t)}function _a(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===wa){if(null===e)throw Error(r(308));wa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wa=wa.next=t;return n}var Ra="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},La=e.unstable_scheduleCallback,Ma=e.unstable_NormalPriority,Oa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Da(){return{controller:new Ra,data:new Map,refCount:0}}function Ia(e){e.refCount--,0===e.refCount&&La(Ma,(function(){e.controller.abort()}))}var za=null,Ua=0,Fa=0,Va=null;function $a(){if(0===--Ua&&null!==za){null!==Va&&(Va.status="fulfilled");var e=za;za=null,Fa=0,Va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ba=D.S;D.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===za){var n=za=[];Ua=0,Fa=Ru(),Va={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ua++,t.then($a,$a)}(0,t),null!==Ba&&Ba(e,t)};var qa=V(null);function Ha(){var e=qa.current;return null!==e?e:ic.pooledCache}function Wa(e,t){B(qa,null===t?qa.current:t.pool)}function Ga(){var e=Ha();return null===e?null:{parent:Oa._currentValue,pool:e}}var Ya=Error(r(460)),Ka=Error(r(474)),Qa=Error(r(542)),Xa={then:function(){}};function Ja(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Za(){}function es(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Za,Za),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw rs(e=t.reason),e;default:if("string"==typeof t.status)t.then(Za,Za);else{if(null!==(e=ic)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw rs(e=t.reason),e}throw ts=t,Ya}}var ts=null;function ns(){if(null===ts)throw Error(r(459));var e=ts;return ts=null,e}function rs(e){if(e===Ya||e===Qa)throw Error(r(483))}var as=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function is(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function os(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ls(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&sc){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Dr(e),Or(e,null,n),t}return Rr(e,r,t,n),Dr(e)}function cs(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}function us(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===s?a=s=i:s=s.next=i,n=n.next}while(null!==n);null===s?a=s=t:s=s.next=t}else a=s=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ds=!1;function ms(){if(ds){if(null!==Va)throw Va}}function hs(e,t,n,r){ds=!1;var a=e.updateQueue;as=!1;var s=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var l=o,u=l.next;l.next=null,null===i?s=u:i.next=u,i=l;var d=e.alternate;null!==d&&((o=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===o?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(null!==s){var m=a.baseState;for(i=0,d=u=l=null,o=s;;){var h=-536870913&o.lane,f=h!==o.lane;if(f?(lc&h)===h:(r&h)===h){0!==h&&h===Fa&&(ds=!0),null!==d&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var p=e,g=o;h=t;var y=n;switch(g.tag){case 1:if("function"==typeof(p=g.payload)){m=p.call(y,m,h);break e}m=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=g.payload)?p.call(y,m,h):p))break e;m=c({},m,h);break e;case 2:as=!0}}null!==(h=o.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=a.callbacks)?a.callbacks=[h]:f.push(h))}else f={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(u=d=f,l=m):d=d.next=f,i|=h;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(f=o).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}null===d&&(l=m),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,null===s&&(a.shared.lanes=0),gc|=i,e.lanes=i,e.memoizedState=m}}function fs(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function ps(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)fs(n[e],t)}var gs=V(null),ys=V(0);function vs(e,t){B(ys,e=fc),B(gs,t),fc=e|t.baseLanes}function xs(){B(ys,fc),B(gs,gs.current)}function bs(){fc=ys.current,$(gs),$(ys)}var ws=0,js=null,Ns=null,ks=null,Ss=!1,Es=!1,Cs=!1,Ps=0,As=0,Ts=null,_s=0;function Rs(){throw Error(r(321))}function Ls(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function Ms(e,t,n,r,a,s){return ws=s,js=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=null===e||null===e.memoizedState?Yi:Ki,Cs=!1,s=n(r,a),Cs=!1,Es&&(s=Ds(t,n,r,a)),Os(e),s}function Os(e){D.H=Gi;var t=null!==Ns&&null!==Ns.next;if(ws=0,ks=Ns=js=null,Ss=!1,As=0,Ts=null,t)throw Error(r(300));
vendor: 4,859 bytes, line 11
11null===e||To||null!==(e=e.dependencies)&&Ca(e)&&(To=!0)}function Ds(e,t,n,a){js=e;var s=0;do{if(Es&&(Ts=null),As=0,Es=!1,25<=s)throw Error(r(301));if(s+=1,ks=Ns=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}D.H=Qi,i=t(n,a)}while(Es);return i}function Is(){var e=D.H,t=e.useState()[0];return t="function"==typeof t.then?Bs(t):t,e=e.useState()[0],(null!==Ns?Ns.memoizedState:null)!==e&&(js.flags|=1024),t}function zs(){var e=0!==Ps;return Ps=0,e}function Us(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fs(e){if(Ss){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ss=!1}ws=0,ks=Ns=js=null,Es=!1,As=Ps=0,Ts=null}function Vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ks?js.memoizedState=ks=e:ks=ks.next=e,ks}function $s(){if(null===Ns){var e=js.alternate;e=null!==e?e.memoizedState:null}else e=Ns.next;var t=null===ks?js.memoizedState:ks.next;if(null!==t)ks=t,Ns=e;else{if(null===e){if(null===js.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Ns=e).memoizedState,baseState:Ns.baseState,baseQueue:Ns.baseQueue,queue:Ns.queue,next:null},null===ks?js.memoizedState=ks=e:ks=ks.next=e}return ks}function Bs(e){var t=As;return As+=1,null===Ts&&(Ts=[]),e=es(Ts,e,t),t=js,null===(null===ks?t.memoizedState:ks.next)&&(t=t.alternate,D.H=null===t||null===t.memoizedState?Yi:Ki),e}function qs(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Bs(e);if(e.$$typeof===b)return Aa(e)}throw Error(r(438,String(e)))}function Hs(e){var t=null,n=js.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=js.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},js.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Ws(e,t){return"function"==typeof t?t(e):t}function Gs(e){return Ys($s(),Ns,e)}function Ys(e,t,n){var a=e.queue;if(null===a)throw Error(r(311));a.lastRenderedReducer=n;var s=e.baseQueue,i=a.pending;if(null!==i){if(null!==s){var o=s.next;s.next=i.next,i.next=o}t.baseQueue=s=i,a.pending=null}if(i=e.baseState,null===s)e.memoizedState=i;else{var l=o=null,c=null,u=t=s.next,d=!1;do{var m=-536870913&u.lane;if(m!==u.lane?(lc&m)===m:(ws&m)===m){var h=u.revertLane;if(0===h)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===Fa&&(d=!0);else{if((ws&h)===h){u=u.next,h===Fa&&(d=!0);continue}m={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=m,o=i):c=c.next=m,js.lanes|=h,gc|=h}m=u.action,Cs&&n(i,m),i=u.hasEagerState?u.eagerState:n(i,m)}else h={lane:m,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,o=i):c=c.next=h,js.lanes|=m,gc|=m;u=u.next}while(null!==u&&u!==t);if(null===c?o=i:c.next=l,!Jn(i,e.memoizedState)&&(To=!0,d&&null!==(n=Va)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=c,a.lastRenderedState=i}return null===s&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ks(e){var t=$s(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,i=t.memoizedState;if(null!==s){n.pending=null;var o=s=s.next;do{i=e(i,o.action),o=o.next}while(o!==s);Jn(i,t.memoizedState)||(To=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function Qs(e,t,n){var a=js,s=$s(),i=la;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var o=!Jn((Ns||s).memoizedState,n);if(o&&(s.memoizedState=n,To=!0),s=s.queue,xi(2048,8,Zs.bind(null,a,s,e),[e]),s.getSnapshot!==t||o||null!==ks&&1&ks.memoizedState.tag){if(a.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Js.bind(null,a,s,n,t),null),null===ic)throw Error(r(349));i||124&ws||Xs(a,t,n)}return n}function Xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=js.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},js.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Js(e,t,n,r){t.value=n,t.getSnapshot=r,ei(t)&&ti(e)}function Zs(e,t,n){return n((function(){ei(t)&&ti(e)}))}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch(r){return!0}}function ti(e){var t=Mr(e,2);null!==t&&Uc(t,e,2)}function ni(e){var t=Vs();if("function"==typeof e){var n=e;if(e=n(),Cs){pe(!0);try{n()}finally{pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:e},t}
vendor: 4,244 bytes, line 11
11function ri(e,t,n,r){return e.baseState=n,Ys(e,Ns,"function"==typeof r?r:Ws)}function ai(e,t,n,a,s){if(qi(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==D.T?n(!0):i.isTransition=!1,a(i),null===(n=t.pending)?(i.next=t.pending=i,si(t,i)):(i.next=n.next,t.pending=n.next=i)}}function si(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var s=D.T,i={};D.T=i;try{var o=n(a,r),l=D.S;null!==l&&l(i,o),ii(e,t,o)}catch(c){li(e,t,c)}finally{D.T=s}}else try{ii(e,t,s=n(a,r))}catch(u){li(e,t,u)}}function ii(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then((function(n){oi(e,t,n)}),(function(n){return li(e,t,n)})):oi(e,t,n)}function oi(e,t,n){t.status="fulfilled",t.value=n,ci(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,si(e,n)))}function li(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ci(t),t=t.next}while(t!==r)}e.action=null}function ci(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ui(e,t){return t}function di(e,t){if(la){var n=ic.formState;if(null!==n){e:{var r=js;if(la){if(oa){t:{for(var a=oa,s=ua;8!==a.nodeType;){if(!s){a=null;break t}if(null===(a=bd(a.nextSibling))){a=null;break t}}a="F!"===(s=a.data)||"F"===s?a:null}if(a){oa=bd(a.nextSibling),r="F!"===a.data;break e}}ma(r)}r=!1}r&&(t=n[0])}}return(n=Vs()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:t},n.queue=r,n=Vi.bind(null,js,r),r.dispatch=n,r=ni(!1),s=Bi.bind(null,js,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Vs()).queue=a,n=ai.bind(null,js,a,s,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function mi(e){return hi($s(),Ns,e)}function hi(e,t,n){if(t=Ys(e,t,ui)[0],e=Gs(Ws)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Bs(t)}catch(i){if(i===Ya)throw Qa;throw i}else r=t;var a=(t=$s()).queue,s=a.dispatch;return n!==t.memoizedState&&(js.flags|=2048,gi(9,{destroy:void 0,resource:void 0},fi.bind(null,a,n),null)),[r,s,e]}function fi(e,t){e.action=t}function pi(e){var t=$s(),n=Ns;if(null!==n)return hi(t,n,e);$s(),t=t.memoizedState;var r=(n=$s()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=js.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},js.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function yi(){return $s().memoizedState}function vi(e,t,n,r){var a=Vs();r=void 0===r?null:r,js.flags|=e,a.memoizedState=gi(1|t,{destroy:void 0,resource:void 0},n,r)}function xi(e,t,n,r){var a=$s();r=void 0===r?null:r;var s=a.memoizedState.inst;null!==Ns&&null!==r&&Ls(r,Ns.memoizedState.deps)?a.memoizedState=gi(t,s,n,r):(js.flags|=e,a.memoizedState=gi(1|t,s,n,r))}function bi(e,t){vi(8390656,8,e,t)}function wi(e,t){xi(2048,8,e,t)}function ji(e,t){return xi(4,2,e,t)}function Ni(e,t){return xi(4,4,e,t)}function ki(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Si(e,t,n){n=null!=n?n.concat([e]):null,xi(4,4,ki.bind(null,t,e),n)}function Ei(){}function Ci(e,t){var n=$s();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ls(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=$s();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ls(t,r[1]))return r[0];if(r=e(),Cs){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r}function Ai(e,t,n){return void 0===n||1073741824&ws?e.memoizedState=t:(e.memoizedState=n,e=zc(),js.lanes|=e,gc|=e,n)}function Ti(e,t,n,r){return Jn(n,t)?n:null!==gs.current?(e=Ai(e,n,r),Jn(e,t)||(To=!0),e):42&ws?(e=zc(),js.lanes|=e,gc|=e,t):(To=!0,e.memoizedState=n)}function _i(e,t,n,r,a){var s=I.p;I.p=0!==s&&8>s?s:8;var i,o,l,c=D.T,u={};D.T=u,Bi(e,!1,t,n);try{var d=a(),m=D.S;if(null!==m&&m(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)$i(e,t,(i=r,o=[],l={status:"pending",value:null,reason:null,then:function(e){o.push(e)}}
vendor: 22,733 bytes, line 11
11,d.then((function(){l.status="fulfilled",l.value=i;for(var e=0;e<o.length;e++)(0,o[e])(i)}),(function(e){for(l.status="rejected",l.reason=e,e=0;e<o.length;e++)(0,o[e])(void 0)})),l),Ic());else $i(e,t,r,Ic())}catch(h){$i(e,t,{then:function(){},status:"rejected",reason:h},Ic())}finally{I.p=s,D.T=c}}function Ri(){}function Li(e,t,n,a){if(5!==e.tag)throw Error(r(476));var s=Mi(e).queue;_i(e,s,t,z,null===n?Ri:function(){return Oi(e),n(a)})}function Mi(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:z},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Oi(e){$i(e,Mi(e).next.queue,{},Ic())}function Di(){return Aa(Xd)}function Ii(){return $s().memoizedState}function zi(){return $s().memoizedState}function Ui(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Ic(),r=ls(t,e=os(n),n);return null!==r&&(Uc(r,t,n),cs(r,t,n)),t={cache:Da()},void(e.payload=t)}t=t.return}}function Fi(e,t,n){var r=Ic();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},qi(e)?Hi(t,n):null!==(n=Lr(e,t,n,r))&&(Uc(n,e,r),Wi(n,t,r))}function Vi(e,t,n){$i(e,t,n,Ic())}function $i(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(qi(e))Hi(t,a);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=s(i,n);if(a.hasEagerState=!0,a.eagerState=o,Jn(o,i))return Rr(e,t,a,0),null===ic&&_r(),!1}catch(l){}if(null!==(n=Lr(e,t,a,r)))return Uc(n,e,r),Wi(n,t,r),!0}return!1}function Bi(e,t,n,a){if(a={lane:2,revertLane:Ru(),action:a,hasEagerState:!1,eagerState:null,next:null},qi(e)){if(t)throw Error(r(479))}else null!==(t=Lr(e,n,a,2))&&Uc(t,e,2)}function qi(e){var t=e.alternate;return e===js||null!==t&&t===js}function Hi(e,t){Es=Ss=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}var Gi={readContext:Aa,use:qs,useCallback:Rs,useContext:Rs,useEffect:Rs,useImperativeHandle:Rs,useLayoutEffect:Rs,useInsertionEffect:Rs,useMemo:Rs,useReducer:Rs,useRef:Rs,useState:Rs,useDebugValue:Rs,useDeferredValue:Rs,useTransition:Rs,useSyncExternalStore:Rs,useId:Rs,useHostTransitionStatus:Rs,useFormState:Rs,useActionState:Rs,useOptimistic:Rs,useMemoCache:Rs,useCacheRefresh:Rs},Yi={readContext:Aa,use:qs,useCallback:function(e,t){return Vs().memoizedState=[e,void 0===t?null:t],e},useContext:Aa,useEffect:bi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,vi(4194308,4,ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){vi(4,2,e,t)},useMemo:function(e,t){var n=Vs();t=void 0===t?null:t;var r=e();if(Cs){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Vs();if(void 0!==n){var a=n(t);if(Cs){pe(!0);try{n(t)}finally{pe(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Fi.bind(null,js,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Vs().memoizedState=e},useState:function(e){var t=(e=ni(e)).queue,n=Vi.bind(null,js,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ei,useDeferredValue:function(e,t){return Ai(Vs(),e,t)},useTransition:function(){var e=ni(!1);return e=_i.bind(null,js,e.queue,!0,!1),Vs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=js,s=Vs();if(la){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===ic)throw Error(r(349));124&lc||Xs(a,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,bi(Zs.bind(null,a,i,e),[e]),a.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Js.bind(null,a,i,n,t),null),n},useId:function(){var e=Vs(),t=ic.identifierPrefix;if(la){var n=ta;t="«"+t+"R"+(n=(ea&~(1<<32-ge(ea)-1)).toString(32)+n),0<(n=Ps++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=_s++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Di,useFormState:di,useActionState:di,useOptimistic:function(e){var t=Vs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Bi.bind(null,js,!0,n),n.dispatch=t,[e,t]},useMemoCache:Hs,useCacheRefresh:function(){return Vs().memoizedState=Ui.bind(null,js)}},Ki={readContext:Aa,use:qs,useCallback:Ci,useContext:Aa,useEffect:wi,useImperativeHandle:Si,useInsertionEffect:ji,useLayoutEffect:Ni,useMemo:Pi,useReducer:Gs,useRef:yi,useState:function(){return Gs(Ws)},useDebugValue:Ei,useDeferredValue:function(e,t){return Ti($s(),Ns.memoizedState,e,t)},useTransition:function(){var e=Gs(Ws)[0],t=$s().memoizedState;return["boolean"==typeof e?e:Bs(e),t]},useSyncExternalStore:Qs,useId:Ii,useHostTransitionStatus:Di,useFormState:mi,useActionState:mi,useOptimistic:function(e,t){return ri($s(),0,e,t)},useMemoCache:Hs,useCacheRefresh:zi},Qi={readContext:Aa,use:qs,useCallback:Ci,useContext:Aa,useEffect:wi,useImperativeHandle:Si,useInsertionEffect:ji,useLayoutEffect:Ni,useMemo:Pi,useReducer:Ks,useRef:yi,useState:function(){return Ks(Ws)},useDebugValue:Ei,useDeferredValue:function(e,t){var n=$s();return null===Ns?Ai(n,e,t):Ti(n,Ns.memoizedState,e,t)},useTransition:function(){var e=Ks(Ws)[0],t=$s().memoizedState;return["boolean"==typeof e?e:Bs(e),t]},useSyncExternalStore:Qs,useId:Ii,useHostTransitionStatus:Di,useFormState:pi,useActionState:pi,useOptimistic:function(e,t){var n=$s();return null!==Ns?ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Hs,useCacheRefresh:zi},Xi=null,Ji=0;function Zi(e){var t=Ji;return Ji+=1,null===Xi&&(Xi=[]),es(Xi,e,t)}function eo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function to(e,t){if(t.$$typeof===u)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function no(e){return(0,e._init)(e._payload)}function ro(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function s(e,t){return(e=Vr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=s(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===f?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===C&&no(a)===t.type)?(eo(t=s(t,n.props),n),t.return=e,t):(eo(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=s(t,n.children||[])).return=e,t)}function h(e,t,n,r,a){return null===t||7!==t.tag?((t=qr(n,e.mode,r,a)).return=e,t):((t=s(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return eo(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=Wr(t,e.mode,n)).return=e,t;case C:return p(e,t=(0,t._init)(t._payload),n)}if(O(t)||R(t))return(t=qr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,Zi(t),n);if(t.$$typeof===b)return p(e,Ta(e,t),n);to(e,t)}return null}function g(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return n.key===a?c(e,t,n,r):null;case m:return n.key===a?u(e,t,n,r):null;case C:return g(e,t,n=(a=n._init)(n._payload),r)}if(O(n)||R(n))return null!==a?null:h(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Zi(n),r);if(n.$$typeof===b)return g(e,t,Ta(e,n),r);to(e,n)}return null}function y(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case m:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case C:return y(e,t,n,r=(0,r._init)(r._payload),a)}if(O(r)||R(r))return h(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return y(e,t,n,Zi(r),a);if(r.$$typeof===b)return y(e,t,n,Ta(t,r),a);to(t,r)}return null}function v(l,c,u,h){if("object"==typeof u&&null!==u&&u.type===f&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case d:e:{for(var x=u.key;null!==c;){if(c.key===x){if((x=u.type)===f){if(7===c.tag){n(l,c.sibling),(h=s(c,u.props.children)).return=l,l=h;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===C&&no(x)===c.type){n(l,c.sibling),eo(h=s(c,u.props),u),h.return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===f?((h=qr(u.props.children,l.mode,h,u.key)).return=l,l=h):(eo(h=Br(u.type,u.key,u.props,null,l.mode,h),u),h.return=l,l=h)}return o(l);case m:e:{for(x=u.key;null!==c;){if(c.key===x){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(h=s(c,u.children||[])).return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}(h=Wr(u,l.mode,h)).return=l,l=h}return o(l);case C:return v(l,c,u=(x=u._init)(u._payload),h)}if(O(u))return function(r,s,o,l){for(var c=null,u=null,d=s,m=s=0,h=null;null!==d&&m<o.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var f=g(r,d,o[m],l);if(null===f){null===d&&(d=h);break}e&&d&&null===f.alternate&&t(r,d),s=i(f,s,m),null===u?c=f:u.sibling=f,u=f,d=h}if(m===o.length)return n(r,d),la&&na(r,m),c;if(null===d){for(;m<o.length;m++)null!==(d=p(r,o[m],l))&&(s=i(d,s,m),null===u?c=d:u.sibling=d,u=d);return la&&na(r,m),c}for(d=a(d);m<o.length;m++)null!==(h=y(d,r,m,o[m],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?m:h.key),s=i(h,s,m),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach((function(e){return t(r,e)})),la&&na(r,m),c}(l,c,u,h);if(R(u)){if("function"!=typeof(x=R(u)))throw Error(r(150));return function(s,o,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,m=o,h=o=0,f=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(f=m,m=null):f=m.sibling;var x=g(s,m,v.value,c);if(null===x){null===m&&(m=f);break}e&&m&&null===x.alternate&&t(s,m),o=i(x,o,h),null===d?u=x:d.sibling=x,d=x,m=f}if(v.done)return n(s,m),la&&na(s,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=p(s,v.value,c))&&(o=i(v,o,h),null===d?u=v:d.sibling=v,d=v);return la&&na(s,h),u}for(m=a(m);!v.done;h++,v=l.next())null!==(v=y(m,s,h,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),o=i(v,o,h),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(s,e)})),la&&na(s,h),u}(l,c,u=x.call(u),h)}if("function"==typeof u.then)return v(l,c,Zi(u),h);if(u.$$typeof===b)return v(l,c,Ta(l,u),h);to(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(h=s(c,u)).return=l,l=h):(n(l,c),(h=Hr(u,l.mode,h)).return=l,l=h),o(l)):n(l,c)}return function(e,t,n,r){try{Ji=0;var a=v(e,t,n,r);return Xi=null,a}catch(i){if(i===Ya||i===Qa)throw i;var s=Ur(29,i,null,e.mode);return s.lanes=r,s.return=e,s}}}var ao=ro(!0),so=ro(!1),io=V(null),oo=null;function lo(e){var t=e.alternate;B(ho,1&ho.current),B(io,e),null===oo&&(null===t||null!==gs.current||null!==t.memoizedState)&&(oo=e)}function co(e){if(22===e.tag){if(B(ho,ho.current),B(io,e),null===oo){var t=e.alternate;null!==t&&null!==t.memoizedState&&(oo=e)}}else uo()}function uo(){B(ho,ho.current),B(io,io.current)}function mo(e){$(io),oo===e&&(oo=null),$(ho)}var ho=V(0);function fo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||xd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function po(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var go={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ic(),a=os(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=ls(e,a,r))&&(Uc(t,e,r),cs(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ic(),a=os(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ls(e,a,r))&&(Uc(t,e,r),cs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ic(),r=os(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=ls(e,r,n))&&(Uc(t,e,n),cs(t,e,n))}};function yo(e,t,n,r,a,s,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,i):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,r)||!Zn(a,s))}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function xo(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=c({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}var bo="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function wo(e){bo(e)}function jo(e){}function No(e){bo(e)}function ko(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout((function(){throw n}))}}function So(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout((function(){throw r}))}}function Eo(e,t,n){return(n=os(n)).tag=3,n.payload={element:null},n.callback=function(){ko(e,t)},n}function Co(e){return(e=os(e)).tag=3,e}function Po(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var s=r.value;e.payload=function(){return a(s)},e.callback=function(){So(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){So(t,n,r),"function"!=typeof a&&(null===Cc?Cc=new Set([this]):Cc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ao=Error(r(461)),To=!1;function _o(e,t,n,r){t.child=null===e?so(t,null,n,r):ao(t,e.child,n,r)}function Ro(e,t,n,r,a){n=n.render;var s=t.ref;if("ref"in r){var i={};for(var o in r)"ref"!==o&&(i[o]=r[o])}else i=r;return Pa(t),r=Ms(e,t,n,i,s,a),o=zs(),null===e||To?(la&&o&&aa(t),t.flags|=1,_o(e,t,r,a),t.child):(Us(e,t,a),Jo(e,t,a))}function Lo(e,t,n,r,a){if(null===e){var s=n.type;return"function"!=typeof s||Fr(s)||void 0!==s.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Mo(e,t,s,r,a))}if(s=e.child,!Zo(e,a)){var i=s.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(i,r)&&e.ref===t.ref)return Jo(e,t,a)}return t.flags|=1,(e=Vr(s,r)).ref=t.ref,e.return=t,t.child=e}function Mo(e,t,n,r,a){if(null!==e){var s=e.memoizedProps;if(Zn(s,r)&&e.ref===t.ref){if(To=!1,t.pendingProps=r=s,!Zo(e,a))return t.lanes=e.lanes,Jo(e,t,a);131072&e.flags&&(To=!0)}}return zo(e,t,n,r,a)}function Oo(e,t,n){var r=t.pendingProps,a=r.children,s=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==s?s.baseLanes|n:n,null!==e){for(a=t.child=e.child,s=0;null!==a;)s=s|a.lanes|a.childLanes,a=a.sibling;t.childLanes=s&~r}else t.childLanes=0,t.child=null;return Do(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Do(e,t,null!==s?s.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Wa(0,null!==s?s.cachePool:null),null!==s?vs(t,s):xs(),co(t)}else null!==s?(Wa(0,s.cachePool),vs(t,s),uo(),t.memoizedState=null):(null!==e&&Wa(0,null),xs(),uo());return _o(e,t,a,n),t.child}function Do(e,t,n,r){var a=Ha();return a=null===a?null:{parent:Oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Wa(0,null),xs(),co(t),null!==e&&Ea(e,t,r,!0),null}function Io(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function zo(e,t,n,r,a){return Pa(t),n=Ms(e,t,n,r,void 0,a),r=zs(),null===e||To?(la&&r&&aa(t),t.flags|=1,_o(e,t,n,a),t.child):(Us(e,t,a),Jo(e,t,a))}function Uo(e,t,n,r,a,s){return Pa(t),t.updateQueue=null,n=Ds(t,r,n,a),Os(e),r=zs(),null===e||To?(la&&r&&aa(t),t.flags|=1,_o(e,t,n,s),t.child):(Us(e,t,s),Jo(e,t,s))}function Fo(e,t,n,r,a){if(Pa(t),null===t.stateNode){var s=Ir,i=n.contextType;"object"==typeof i&&null!==i&&(s=Aa(i)),s=new n(r,s),t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=go,t.stateNode=s,s._reactInternals=t,(s=t.stateNode).props=r,s.state=t.memoizedState,s.refs={},ss(t),i=n.contextType,s.context="object"==typeof i&&null!==i?Aa(i):Ir,s.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(po(t,n,i,r),s.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(i=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),i!==s.state&&go.enqueueReplaceState(s,s.state,null),hs(t,r,s,a),ms(),s.state=t.memoizedState),"function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){s=t.stateNode;var o=t.memoizedProps,l=xo(n,o);s.props=l;var c=s.context,u=n.contextType;i=Ir,"object"==typeof u&&null!==u&&(i=Aa(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof s.getSnapshotBeforeUpdate,o=t.pendingProps!==o,u||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o||c!==i)&&vo(t,s,r,i),as=!1;var m=t.memoizedState;s.state=m,hs(t,r,s,a),ms(),c=t.memoizedState,o||m!==c||as?("function"==typeof d&&(po(t,n,d,r),c=t.memoizedState),(l=as||yo(t,n,l,r,m,c,i))?(u||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=i,r=l):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,is(e,t),u=xo(n,i=t.memoizedProps),s.props=u,d=t.pendingProps,m=s.context,c=n.contextType,l=Ir,"object"==typeof c&&null!==c&&(l=Aa(c)),(c="function"==typeof(o=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==d||m!==l)&&vo(t,s,r,l),as=!1,m=t.memoizedState,s.state=m,hs(t,r,s,a),ms();var h=t.memoizedState;i!==d||m!==h||as||null!==e&&null!==e.dependencies&&Ca(e.dependencies)?("function"==typeof o&&(po(t,n,o,r),h=t.memoizedState),(u=as||yo(t,n,u,r,m,h,l)||null!==e&&null!==e.dependencies&&Ca(e.dependencies))?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,h,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return s=r,Io(e,t),r=!!(128&t.flags),s||r?(s=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:s.render(),t.flags|=1,null!==e&&r?(t.child=ao(t,e.child,null,a),t.child=ao(t,null,n,a)):_o(e,t,n,a),t.memoizedState=s.state,e=t.child):e=Jo(e,t,a),e}function Vo(e,t,n,r){return ga(),t.flags|=256,_o(e,t,n,r),t.child}var $o={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bo(e){return{baseLanes:e,cachePool:Ga()}}function qo(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=xc),e}function Ho(e,t,n){var a,s=t.pendingProps,i=!1,o=!!(128&t.flags);if((a=o)||(a=(null===e||null!==e.memoizedState)&&!!(2&ho.current)),a&&(i=!0,t.flags&=-129),a=!!(32&t.flags),t.flags&=-33,null===e){if(la){if(i?lo(t):uo(),la){var l,c=oa;if(l=c){e:{for(l=c,c=ua;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=bd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Zr?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},(l=Ur(18,null,null,0)).stateNode=c,l.return=t,t.child=l,ia=t,oa=null,l=!0):l=!1}l||ma(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return xd(c)?t.lanes=32:t.lanes=536870912,null;mo(t)}return c=s.children,s=s.fallback,i?(uo(),c=Go({mode:"hidden",children:c},i=t.mode),s=qr(s,i,n,null),c.return=t,s.return=t,c.sibling=s,t.child=c,(i=t.child).memoizedState=Bo(n),i.childLanes=qo(e,a,n),t.memoizedState=$o,s):(lo(t),Wo(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(o)256&t.flags?(lo(t),t.flags&=-257,t=Yo(e,t,n)):null!==t.memoizedState?(uo(),t.child=e.child,t.flags|=128,t=null):(uo(),i=s.fallback,
11c=t.mode,s=Go({mode:"visible",children:s.children},c),(i=qr(i,c,n,null)).flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,ao(t,e.child,null,n),(s=t.child).memoizedState=Bo(n),s.childLanes=qo(e,a,n),t.memoizedState=$o,t=i);else if(lo(t),xd(c)){if(a=c.nextSibling&&c.nextSibling.dataset)var u=a.dgst;a=u,(s=Error(r(419))).stack="",s.digest=a,va({value:s,source:null,stack:null}),t=Yo(e,t,n)}else if(To||Ea(e,t,n,!1),a=0!==(n&e.childLanes),To||a){if(null!==(a=ic)&&(0!==(s=0!==((s=42&(s=n&-n)?1:_e(s))&(a.suspendedLanes|n))?0:s)&&s!==l.retryLane))throw l.retryLane=s,Mr(e,s),Uc(a,e,s),Ao;"$?"===c.data||Qc(),t=Yo(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,oa=bd(c.nextSibling),ia=t,la=!0,ca=null,ua=!1,null!==e&&(Xr[Jr++]=ea,Xr[Jr++]=ta,Xr[Jr++]=Zr,ea=e.id,ta=e.overflow,Zr=t),(t=Wo(t,s.children)).flags|=4096);return t}return i?(uo(),i=s.fallback,c=t.mode,u=(l=e.child).sibling,(s=Vr(l,{mode:"hidden",children:s.children})).subtreeFlags=65011712&l.subtreeFlags,null!==u?i=Vr(u,i):(i=qr(i,c,n,null)).flags|=2,i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,null===(c=e.child.memoizedState)?c=Bo(n):(null!==(l=c.cachePool)?(u=Oa._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Ga(),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=qo(e,a,n),t.memoizedState=$o,s):(lo(t),e=(n=e.child).sibling,(n=Vr(n,{mode:"visible",children:s.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Wo(e,t){return(t=Go({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Go(e,t){return(e=Ur(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Yo(e,t,n){return ao(t,e.child,null,n),(e=Wo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ko(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ka(e.return,t,n)}function Qo(e,t,n,r,a){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a)}function Xo(e,t,n){var r=t.pendingProps,a=r.revealOrder,s=r.tail;if(_o(e,t,r.children,n),2&(r=ho.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ko(e,n,t);else if(19===e.tag)Ko(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(B(ho,r),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===fo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Qo(t,!1,a,n,s);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===fo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Qo(t,!0,n,null,s);break;case"together":Qo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),gc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ea(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Vr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zo(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ca(e))}function el(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)To=!0;
vendor: 4,174 bytes, line 11
11else{if(!(Zo(e,n)||128&t.flags))return To=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),ja(0,Oa,e.memoizedState.cache),ga();break;case 27:case 5:Q(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:ja(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(lo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Ho(e,t,n):(lo(t),null!==(e=Jo(e,t,n))?e.sibling:null);lo(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ea(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return Xo(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),B(ho,ho.current),r)break;return null;case 22:case 23:return t.lanes=0,Oo(e,t,n);case 24:ja(0,Oa,e.memoizedState.cache)}return Jo(e,t,n)}(e,t,n);To=!!(131072&e.flags)}else To=!1,la&&1048576&t.flags&&ra(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,s=a._init;if(a=s(a._payload),t.type=a,"function"!=typeof a){if(null!=a){if((s=a.$$typeof)===w){t.tag=11,t=Ro(null,t,a,e,n);break e}if(s===E){t.tag=14,t=Lo(null,t,a,e,n);break e}}throw t=M(a)||a,Error(r(306,t,""))}Fr(a)?(e=xo(a,e),t.tag=1,t=Fo(null,t,a,e,n)):(t.tag=0,t=zo(null,t,a,e,n))}return t;case 0:return zo(e,t,t.type,t.pendingProps,n);case 1:return Fo(e,t,a=t.type,s=xo(a,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;s=i.element,is(e,t),hs(t,a,null,n);var o=t.memoizedState;if(a=o.cache,ja(0,Oa,a),a!==i.cache&&Sa(t,[Oa],n,!0),ms(),a=o.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Vo(e,t,a,n);break e}if(a!==s){va(s=Cr(Error(r(424)),t)),t=Vo(e,t,a,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(oa=bd(e.firstChild),ia=t,la=!0,ca=null,ua=!0,n=so(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ga(),a===s){t=Jo(e,t,n);break e}_o(e,t,a,n)}t=t.child}return t;case 26:return Io(e,t),null===e?(n=_d(t.type,null,t.pendingProps,null))?t.memoizedState=n:la||(n=t.type,e=t.pendingProps,(a=id(W.current).createElement(n))[Oe]=t,a[De]=e,rd(a,n,e),Ye(a),t.stateNode=a):t.memoizedState=_d(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&la&&(a=t.stateNode=Nd(t.type,t.pendingProps,W.current),ia=t,ua=!0,s=oa,gd(t.type)?(wd=s,oa=bd(a.firstChild)):oa=s),_o(e,t,t.pendingProps.children,n),Io(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&la&&((s=a=oa)&&(null!==(a=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[$e])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(s=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(s!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((s=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var s=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===s)return e}if(null===(e=bd(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,ua))?(t.stateNode=a,ia=t,oa=bd(a.firstChild),ua=!1,s=!0):s=!1),s||ma(t)),Q(t),s=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,cd(s,i)?a=null:null!==o&&cd(s,o)&&(t.flags|=32),null!==t.memoizedState&&(s=Ms(e,t,Is,null,null,n),Xd._currentValue=s),Io(e,t),_o(e,t,a,n),t.child;case 6:return null===e&&la&&((e=n=oa)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;
vendor: 6,843 bytes, line 11
11){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=bd(e.nextSibling)))return null}return e}(n,t.pendingProps,ua))?(t.stateNode=n,ia=t,oa=null,e=!0):e=!1),e||ma(t)),null;case 13:return Ho(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=ao(t,null,a,n):_o(e,t,a,n),t.child;case 11:return Ro(e,t,t.type,t.pendingProps,n);case 7:return _o(e,t,t.pendingProps,n),t.child;case 8:case 12:return _o(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ja(0,t.type,a.value),_o(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Pa(t),a=a(s=Aa(s)),t.flags|=1,_o(e,t,a,n),t.child;case 14:return Lo(e,t,t.type,t.pendingProps,n);case 15:return Mo(e,t,t.type,t.pendingProps,n);case 19:return Xo(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},null===e?((n=Go(a,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Vr(e.child,a)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Oo(e,t,n);case 24:return Pa(t),a=Aa(Oa),null===e?(null===(s=Ha())&&(s=ic,i=Da(),s.pooledCache=i,i.refCount++,null!==i&&(s.pooledCacheLanes|=n),s=i),t.memoizedState={parent:a,cache:s},ss(t),ja(0,Oa,s)):(0!==(e.lanes&n)&&(is(e,t),hs(t,null,null,n),ms()),s=e.memoizedState,i=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=s),ja(0,Oa,a)):(a=i.cache,ja(0,Oa,a),a!==s.cache&&Sa(t,[Oa],n,!0))),_o(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function tl(e){e.flags|=4}function nl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!qd(t)){if(null!==(t=io.current)&&((4194048&lc)===lc?null!==oo:(62914560&lc)!==lc&&!(536870912&lc)||t!==oo))throw ts=Xa,Ka;e.flags|=8192}}function rl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ee():536870912,e.lanes|=t,bc|=t)}function al(e,t){if(!la)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function il(e,t,n){var a=t.pendingProps;switch(sa(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return sl(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Na(Oa),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(pa(t)?tl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ya())),sl(t),null;case 26:return n=t.memoizedState,null===e?(tl(t),null!==n?(sl(t),nl(t,n)):(sl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(tl(t),sl(t),nl(t,n)):(sl(t),t.flags&=-16777217):(e.memoizedProps!==a&&tl(t),sl(t),t.flags&=-16777217),null;case 27:X(t),n=W.current;var s=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==a&&tl(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return sl(t),null}e=q.current,pa(t)?ha(t):(e=Nd(s,a,n),t.stateNode=e,tl(t))}return sl(t),null;case 5:if(X(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&tl(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return sl(t),null}if(e=q.current,pa(t))ha(t);else{switch(s=id(W.current),e){case 1:e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof a.is?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e="string"==typeof a.is?s.createElement(n,{is:a.is}):s.createElement(n)}}e[Oe]=t,e[De]=a;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)e.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=e;e:switch(rd(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&tl(t)}}return sl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&tl(t);else{if("string"!=typeof a&&null===t.stateNode)throw Error(r(166));if(e=W.current,pa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(s=ia))switch(s.tag){case 27:case 5:a=s.memoizedProps}e[Oe]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||Zu(e.nodeValue,n)))||ma(t)}else(e=id(e).createTextNode(a))[Oe]=t,t.stateNode=e}return sl(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(s=pa(t),null!==a&&null!==a.dehydrated){if(null===e){if(!s)throw Error(r(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(r(317));s[Oe]=t}else ga(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;sl(t),s=!1}else s=ya(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return 256&t.flags?(mo(t),t):(mo(t),null)}if(mo(t),128&t.flags)return t.lanes=n,t;if(n=null!==a,e=null!==e&&null!==e.memoizedState,n){s=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(s=a.alternate.memoizedState.cachePool.pool);var i=null;null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(i=a.memoizedState.cachePool.pool),i!==s&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),rl(t,t.updateQueue),sl(t),null;case 4:return K(),null===e&&Bu(t.stateNode.containerInfo),sl(t),null;case 10:return Na(t.type),sl(t),null;case 19:if($(ho),null===(s=t.memoizedState))return sl(t),null;if(a=!!(128&t.flags),null===(i=s.rendering))if(a)al(s,!1);else{if(0!==pc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=fo(e))){for(t.flags|=128,al(s,!1),e=i.updateQueue,t.updateQueue=e,rl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)$r(n,e),n=n.sibling;return B(ho,1&ho.current|2),t.child}e=e.sibling}null!==s.tail&&ae()>Sc&&(t.flags|=128,a=!0,al(s,!1),t.lanes=4194304)}
vendor: 9,808 bytes, line 11
11else{if(!a)if(null!==(e=fo(i))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,rl(t,e),al(s,!0),null===s.tail&&"hidden"===s.tailMode&&!i.alternate&&!la)return sl(t),null}else 2*ae()-s.renderingStartTime>Sc&&536870912!==n&&(t.flags|=128,a=!0,al(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=s.last)?e.sibling=i:t.child=i,s.last=i)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ae(),t.sibling=null,e=ho.current,B(ho,a?1&e|2:1&e),t):(sl(t),null);case 22:case 23:return mo(t),bs(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?!!(536870912&n)&&!(128&t.flags)&&(sl(t),6&t.subtreeFlags&&(t.flags|=8192)):sl(t),null!==(n=t.updateQueue)&&rl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&$(qa),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Na(Oa),sl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ol(e,t){switch(sa(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Na(Oa),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 13:if(mo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));ga()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $(ho),null;case 4:return K(),null;case 10:return Na(t.type),null;case 22:case 23:return mo(t),bs(),null!==e&&$(qa),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Na(Oa),null;default:return null}}function ll(e,t){switch(sa(t),t.tag){case 3:Na(Oa),K();break;case 26:case 27:case 5:X(t);break;case 4:K();break;case 13:mo(t);break;case 19:$(ho);break;case 10:Na(t.type);break;case 22:case 23:mo(t),bs(),null!==e&&$(qa);break;case 24:Na(Oa)}}function cl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var s=n.create,i=n.inst;r=s(),i.destroy=r}n=n.next}while(n!==a)}}catch(o){hu(t,t.return,o)}}function ul(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var s=a.next;r=s;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(void 0!==o){i.destroy=void 0,a=t;var l=n,c=o;try{c()}catch(u){hu(a,l,u)}}}r=r.next}while(r!==s)}}catch(u){hu(t,t.return,u)}}function dl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ps(t,n)}catch(r){hu(e,e.return,r)}}}function ml(e,t,n){n.props=xo(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){hu(e,t,r)}}function hl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(a){hu(e,t,a)}}function fl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(a){hu(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(s){hu(e,t,s)}else n.current=null}function pl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){hu(e,e.return,a)}}function gl(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,i=null,o=null,l=null,c=null,u=null,d=null;for(f in n){var m=n[f];if(n.hasOwnProperty(f)&&null!=m)switch(f){case"checked":case"value":break;case"defaultValue":c=m;default:a.hasOwnProperty(f)||td(e,t,f,null,a,m)}}for(var h in a){var f=a[h];if(m=n[h],a.hasOwnProperty(h)&&(null!=f||null!=m))switch(h){case"type":i=f;break;case"name":s=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":o=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:f!==m&&td(e,t,h,f,a,m)}}return void xt(e,o,l,c,u,d,i,s);case"select":for(i in f=o=l=h=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":f=c;default:a.hasOwnProperty(i)||td(e,t,i,null,a,c)}for(s in a)if(i=a[s],c=n[s],a.hasOwnProperty(s)&&(null!=i||null!=c))switch(s){case"value":h=i;break;case"defaultValue":l=i;break;case"multiple":o=i;default:i!==c&&td(e,t,s,i,a,c)}return t=l,n=o,a=f,void(null!=h?jt(e,!!n,h,!1):!!a!=!!n&&(null!=t?jt(e,!!n,t,!0):jt(e,!!n,n?[]:"",!1)));case"textarea":for(l in f=h=null,n)if(s=n[l],n.hasOwnProperty(l)&&null!=s&&!a.hasOwnProperty(l))switch(l){case"value":case"children":break;default:td(e,t,l,null,a,s)}for(o in a)if(s=a[o],i=n[o],a.hasOwnProperty(o)&&(null!=s||null!=i))switch(o){case"value":h=s;break;case"defaultValue":f=s;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:s!==i&&td(e,t,o,s,a,i)}return void Nt(e,h,f);case"option":for(var p in n)if(h=n[p],n.hasOwnProperty(p)&&null!=h&&!a.hasOwnProperty(p))if("selected"===p)e.selected=!1;else td(e,t,p,null,a,h);for(c in a)if(h=a[c],f=n[c],a.hasOwnProperty(c)&&h!==f&&(null!=h||null!=f))if("selected"===c)e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h;else td(e,t,c,h,a,f);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 g in n)h=n[g],n.hasOwnProperty(g)&&null!=h&&!a.hasOwnProperty(g)&&td(e,t,g,null,a,h);for(u in a)if(h=a[u],f=n[u],a.hasOwnProperty(u)&&h!==f&&(null!=h||null!=f))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:td(e,t,u,h,a,f)}return;default:if(At(t)){for(var y in n)h=n[y],n.hasOwnProperty(y)&&void 0!==h&&!a.hasOwnProperty(y)&&nd(e,t,y,void 0,a,h);for(d in a)h=a[d],f=n[d],!a.hasOwnProperty(d)||h===f||void 0===h&&void 0===f||nd(e,t,d,h,a,f);return}}for(var v in n)h=n[v],n.hasOwnProperty(v)&&null!=h&&!a.hasOwnProperty(v)&&td(e,t,v,null,a,h);for(m in a)h=a[m],f=n[m],!a.hasOwnProperty(m)||h===f||null==h&&null==f||td(e,t,m,h,a,f)}(a,e.type,n,t),a[De]=t}catch(s){hu(e,e.return,s)}}function yl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&gd(e.type)||4===e.tag}function vl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||yl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&gd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function xl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ed));else if(4!==r&&(27===r&&gd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(xl(e,t,n),e=e.sibling;null!==e;)xl(e,t,n),e=e.sibling}function bl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&gd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(bl(e,t,n),e=e.sibling;null!==e;)bl(e,t,n),e=e.sibling}function wl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);rd(t,r,n),t[Oe]=e,t[De]=n}catch(s){hu(e,e.return,s)}}var jl=!1,Nl=!1,kl=!1,Sl="function"==typeof WeakSet?WeakSet:Set,El=null;function Cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Fl(e,n),4&r&&cl(5,n);break;case 1:if(Fl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(i){hu(n,n.return,i)}else{var a=xo(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){hu(n,n.return,o)}}64&r&&dl(n),512&r&&hl(n,n.return);break;case 3:if(Fl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{ps(e,t)}catch(i){hu(n,n.return,i)}}break;case 27:null===t&&4&r&&wl(n);case 26:case 5:Fl(e,n),null===t&&4&r&&pl(n),512&r&&hl(n,n.return);break;case 12:Fl(e,n);break;case 13:Fl(e,n),4&r&&Ll(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=yu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||jl)){t=null!==t&&null!==t.memoizedState||Nl,a=jl;var s=Nl;jl=r,(Nl=t)&&!s?$l(e,n,!!(8772&n.subtreeFlags)):Fl(e,n),jl=a,Nl=s}break;case 30:break;default:Fl(e,n)}}function Pl(e){var t=e.alternate;null!==t&&(e.alternate=null,Pl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Be(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Al=null,Tl=!1;function _l(e,t,n){for(n=n.child;null!==n;)Rl(e,t,n),n=n.sibling}function Rl(e,t,n){if(fe&&"function"==typeof fe.onCommitFiberUnmount)try{fe.onCommitFiberUnmount(he,n)}catch(s){}switch(n.tag){case 26:Nl||fl(n,t),_l(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Nl||fl(n,t);var r=Al,a=Tl;gd(n.type)&&(Al=n.stateNode,Tl=!1),_l(e,t,n),kd(n.stateNode),Al=r,Tl=a;break;case 5:Nl||fl(n,t);case 6:if(r=Al,a=Tl,Al=null,_l(e,t,n),Tl=a,null!==(Al=r))if(Tl)try{(9
vendor: 15,275 bytes, line 11
11===Al.nodeType?Al.body:"HTML"===Al.nodeName?Al.ownerDocument.body:Al).removeChild(n.stateNode)}catch(i){hu(n,t,i)}else try{Al.removeChild(n.stateNode)}catch(i){hu(n,t,i)}break;case 18:null!==Al&&(Tl?(yd(9===(e=Al).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Tm(e)):yd(Al,n.stateNode));break;case 4:r=Al,a=Tl,Al=n.stateNode.containerInfo,Tl=!0,_l(e,t,n),Al=r,Tl=a;break;case 0:case 11:case 14:case 15:Nl||ul(2,n,t),Nl||ul(4,n,t),_l(e,t,n);break;case 1:Nl||(fl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ml(n,t,r)),_l(e,t,n);break;case 21:_l(e,t,n);break;case 22:Nl=(r=Nl)||null!==n.memoizedState,_l(e,t,n),Nl=r;break;default:_l(e,t,n)}}function Ll(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Tm(e)}catch(n){hu(t,t.return,n)}}function Ml(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Sl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Sl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach((function(t){var r=vu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function Ol(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var s=n[a],i=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 27:if(gd(l.type)){Al=l.stateNode,Tl=!1;break e}break;case 5:Al=l.stateNode,Tl=!1;break e;case 3:case 4:Al=l.stateNode.containerInfo,Tl=!0;break e}l=l.return}if(null===Al)throw Error(r(160));Rl(i,o,s),Al=null,Tl=!1,null!==(i=s.alternate)&&(i.return=null),s.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Il(t,e),t=t.sibling}var Dl=null;function Il(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ol(t,e),zl(e),4&a&&(ul(3,e,e.return),cl(3,e),ul(5,e,e.return));break;case 1:Ol(t,e),zl(e),512&a&&(Nl||null===n||fl(n,n.return)),64&a&&jl&&(null!==(e=e.updateQueue)&&(null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a))));break;case 26:var s=Dl;if(Ol(t,e),zl(e),512&a&&(Nl||null===n||fl(n,n.return)),4&a){var i=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":(!(i=s.getElementsByTagName("title")[0])||i[$e]||i[Oe]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=s.createElement(a),s.head.insertBefore(i,s.querySelector("head > title"))),rd(i,a,n),i[Oe]=e,Ye(i),a=i;break e;case"link":var o=$d("link","href",s).get(a+(n.href||""));if(o)for(var l=0;l<o.length;l++)if((i=o[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(l,1);break t}rd(i=s.createElement(a),a,n),s.head.appendChild(i);break;case"meta":if(o=$d("meta","content",s).get(a+(n.content||"")))for(l=0;l<o.length;l++)if((i=o[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(l,1);break t}rd(i=s.createElement(a),a,n),s.head.appendChild(i);break;default:throw Error(r(468,a))}i[Oe]=e,Ye(i),a=i}e.stateNode=a}else Bd(s,e.type,e.stateNode);else e.stateNode=Id(s,a,e.memoizedProps);else i!==a?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===a?Bd(s,e.type,e.stateNode):Id(s,a,e.memoizedProps)):null===a&&null!==e.stateNode&&gl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ol(t,e),zl(e),512&a&&(Nl||null===n||fl(n,n.return)),null!==n&&4&a&&gl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ol(t,e),zl(e),512&a&&(Nl||null===n||fl(n,n.return)),32&e.flags){s=e.stateNode;try{St(s,"")}catch(f){hu(e,e.return,f)}}4&a&&null!=e.stateNode&&gl(e,s=e.memoizedProps,null!==n?n.memoizedProps:s),1024&a&&(kl=!0);break;case 6:if(Ol(t,e),zl(e),4&a){if(null===e.stateNode)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(f){hu(e,e.return,f)}}break;case 3:if(Vd=null,s=Dl,Dl=Cd(t.containerInfo),Ol(t,e),Dl=s,zl(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{Tm(t.containerInfo)}catch(f){hu(e,e.return,f)}kl&&(kl=!1,Ul(e));break;case 4:a=Dl,Dl=Cd(e.stateNode.containerInfo),Ol(t,e),zl(e),Dl=a;break;case 12:default:Ol(t,e),zl(e);break;case 13:Ol(t,e),zl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(kc=ae()),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,Ml(e,a)));break;case 22:s=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=jl,d=Nl;if(jl=u||s,Nl=d||c,Ol(t,e),Nl=d,jl=u,zl(e),8192&a)e:for(t=e.stateNode,t._visibility=s?-2&t._visibility:1|t._visibility,s&&(null===n||c||jl||Nl||Vl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,s)"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{l=c.stateNode;var m=c.memoizedProps.style,h=null!=m&&m.hasOwnProperty("display")?m.display:null;l.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(f){hu(c,c.return,f)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=s?"":c.memoizedProps}catch(f){hu(c,c.return,f)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&a&&(null!==(a=e.updateQueue)&&(null!==(n=a.retryQueue)&&(a.retryQueue=null,Ml(e,n))));break;case 19:Ol(t,e),zl(e),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,Ml(e,a)));case 30:case 21:}}function zl(e){var t=e.flags;if(2&t){try{for(var n,a=e.return;null!==a;){if(yl(a)){n=a;break}a=a.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode;bl(e,vl(e),s);break;case 5:var i=n.stateNode;32&n.flags&&(St(i,""),n.flags&=-33),bl(e,vl(e),i);break;case 3:case 4:var o=n.stateNode.containerInfo;xl(e,vl(e),o);break;default:throw Error(r(161))}}catch(l){hu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ul(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ul(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Fl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Cl(e,t.alternate,t),t=t.sibling}function Vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),Vl(t);break;case 1:fl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ml(t,t.return,n),Vl(t);break;case 27:kd(t.stateNode);case 26:case 5:fl(t,t.return),Vl(t);break;case 22:null===t.memoizedState&&Vl(t);break;default:Vl(t)}e=e.sibling}}function $l(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,s=t,i=s.flags;switch(s.tag){case 0:case 11:case 15:$l(a,s,n),cl(4,s);break;case 1:if($l(a,s,n),"function"==typeof(a=(r=s).stateNode).componentDidMount)try{a.componentDidMount()}catch(c){hu(r,r.return,c)}if(null!==(a=(r=s).updateQueue)){var o=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(null!==l)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)fs(l[a],o)}catch(c){hu(r,r.return,c)}}n&&64&i&&dl(s),hl(s,s.return);break;case 27:wl(s);case 26:case 5:$l(a,s,n),n&&null===r&&4&i&&pl(s),hl(s,s.return);break;case 12:$l(a,s,n);break;case 13:$l(a,s,n),n&&4&i&&Ll(a,s);break;case 22:null===s.memoizedState&&$l(a,s,n),hl(s,s.return);break;case 30:break;default:$l(a,s,n)}t=t.sibling}}function Bl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ia(n))}function ql(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e))}function Hl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Wl(e,t,n,r),t=t.sibling}function Wl(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Hl(e,t,n,r),2048&a&&cl(9,t);break;case 1:case 13:default:Hl(e,t,n,r);break;case 3:Hl(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e)));break;case 12:if(2048&a){Hl(e,t,n,r),e=t.stateNode;try{var s=t.memoizedProps,i=s.id,o=s.onPostCommit;"function"==typeof o&&o(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){hu(t,t.return,l)}}else Hl(e,t,n,r);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,null!==t.memoizedState?2&s._visibility?Hl(e,t,n,r):Yl(e,t):2&s._visibility?Hl(e,t,n,r):(s._visibility|=2,Gl(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&Bl(i,t);break;case 24:Hl(e,t,n,r),2048&a&&ql(t.alternate,t)}}function Gl(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var s=e,i=t,o=n,l=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:Gl(s,i,o,l,a),cl(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?Gl(s,i,o,l,a):Yl(s,i):(u._visibility|=2,Gl(s,i,o,l,a)),a&&2048&c&&Bl(i.alternate,i);break;case 24:Gl(s,i,o,l,a),a&&2048&c&&ql(i.alternate,i);break;default:Gl(s,i,o,l,a)}t=t.sibling}}function Yl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Yl(n,r),2048&a&&Bl(r.alternate,r);break;case 24:Yl(n,r),2048&a&&ql(r.alternate,r);break;default:Yl(n,r)}t=t.sibling}}var Kl=8192;function Ql(e){if(e.subtreeFlags&Kl)for(e=e.child;null!==e;)Xl(e),e=e.sibling}function Xl(e){switch(e.tag){case 26:Ql(e),e.flags&Kl&&null!==e.memoizedState&&function(e,t,n){if(null===Hd)throw Error(r(475));var a=Hd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var s=Rd(n.href),i=e.querySelector(Ld(s));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(a.count++,a=Gd.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,void Ye(i);i=e.ownerDocument||e,n=Md(n),(s=Sd.get(s))&&Ud(n,s),Ye(i=i.createElement("link"));var o=i;o._p=new Promise((function(e,t){o.onload=e,o.onerror=t})),rd(i,"link",n),t.instance=i}null===a.stylesheets&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(a.count++,t=Gd.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}(Dl,e.memoizedState,e.memoizedProps);break;case 5:default:Ql(e);break;case 3:case 4:var t=Dl;Dl=Cd(e.stateNode.containerInfo),Ql(e),Dl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Kl,Kl=16777216,Ql(e),Kl=t):Ql(e))}}function Jl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];El=r,nc(r,e)}Jl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)ec(e),e=e.sibling}function ec(e){switch(e.tag){case 0:case 11:case 15:Zl(e),2048&e.flags&&ul(9,e,e.return);break;case 3:case 12:default:Zl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,tc(e)):Zl(e)}}function tc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];El=r,nc(r,e)}Jl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ul(8,t,t.return),tc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,tc(t));break;default:tc(t)}e=e.sibling}}function nc(e,t){for(;null!==El;){var n=El;switch(n.tag){case 0:case 11:case 15:ul(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,El=r;else e:for(n=e;null!==El;){var a=(r=El).sibling,s=r.return;if(Pl(r),r===n){El=null;break e}if(null!==a){a.return=s,El=a;break e}El=s}}}var rc={getCacheForType:function(e){var t=Aa(Oa),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},ac="function"==typeof WeakMap?WeakMap:Map,sc=0,ic=null,oc=null,lc=0,cc=0,uc=null,dc=!1,mc=!1,hc=!1,fc=0,pc=0,gc=0,yc=0,vc=0,xc=0,bc=0,wc=null,jc=null,Nc=!1,kc=0,Sc=1/0,Ec=null,Cc=null,Pc=0,Ac=null,Tc=null,_c=0,Rc=0,Lc=null,Mc=null,Oc=0,Dc=null;function Ic(){if(2&sc&&0!==lc)return lc&-lc;if(null!==D.T){return 0!==Fa?Fa:Ru()}return Le()}function zc(){0===xc&&(xc=536870912&lc&&!la?536870912:Se());var e=io.current;return null!==e&&(e.flags|=32),xc}function Uc(e,t,n){(e!==ic||2!==cc&&9!==cc)&&null===e.cancelPendingCommit||(Wc(e,0),Bc(e,lc,xc,!1)),Pe(e,n),2&sc&&e===ic||(e===ic&&(!(2&sc)&&(yc|=n),4===pc&&Bc(e,lc,xc,!1)),Su(e))}function Fc(e,t,n){if(6&sc)throw Error(r(327));for(var a=!n&&!(124&t)&&0===(t&e.expiredLanes)||Ne(e,t),s=a?function(e,t){var n=sc;sc|=2;var a=Yc(),s=Kc();ic!==e||lc!==t?(Ec=null,Sc=ae()+500,Wc(e,t)):mc=Ne(e,t);e:for(;;)try{if(0!==cc&&null!==oc){t=oc;var i=uc;t:switch(cc){case 1:cc=0,uc=null,nu(e,t,i,1);break;case 2:case 9:if(Ja(i)){cc=0,uc=null,tu(t);break}t=function(){2!==cc&&9!==cc||ic!==e||(cc=7),Su(e)},i.then(t,t);break e;case 3:cc=7;break e;case 4:cc=5;break e;case 7:Ja(i)?(cc=0,uc=null,tu(t)):(cc=0,uc=null,nu(e,t,i,7));break;case 5:var o=null;switch(oc.tag){case 26:o=oc.memoizedState;case 5:case 27:var l=oc;if(!o||qd(o)){cc=0,uc=null;var c=l.sibling;if(null!==c)oc=c;else{var u=l.return;null!==u?(oc=u,ru(u)):oc=null}break t}}cc=0,uc=null,nu(e,t,i,5);break;case 6:cc=0,uc=null,nu(e,t,i,6);break;case 8:Hc(),pc=6;break e;default:throw Error(r(462))}}Zc();break}catch(d){Gc(e,d)}return wa=ba=null,D.H=a,D.A=s,sc=n,null!==oc?0:(ic=null,lc=0,_r(),pc)}(e,t):Xc(e,t,!0),i=a;;){if(0===s){mc&&!a&&Bc(e,t,0,!1);break}if(n=e.current.alternate,!i||$c(n)){if(2===s){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=0!==(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){t=o;e:{var l=e;s=wc;var c=l.current.memoizedState.isDehydrated;if(c&&(Wc(l,o).flags|=256),2!==(o=Xc(l,o,!1))){if(hc&&!c){l.errorRecoveryDisabledLanes|=i,yc|=i,s=4;break e}i=jc,jc=s,null!==i&&(null===jc?jc=i:jc.push.apply(jc,i))}s=o}if(i=!1,2!==s)continue}}if(1===s){Wc(e,0),Bc(e,t,0,!0);break}e:{switch(a=e,i=s){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Bc(a,t,xc,!dc);break e;case 2:jc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(s=kc+300-ae())){if(Bc(a,t,xc,!dc),0!==je(a,0,!0))break e;a.timeoutHandle=dd(Vc.bind(null,a,n,jc,Ec,Nc,t,xc,yc,bc,dc,i,2,-0,0),s)}else Vc(a,n,jc,Ec,Nc,t,xc,yc,bc,dc,i,0,-0,0)}break}s=Xc(e,t,!1),i=!1}Su(e)}function Vc(e,t,n,a,s,i,o,l,c,u,d,m,h,f){if(e.timeoutHandle=-1,(8192&(m=t.subtreeFlags)||!(16785408&~m))&&(Hd={stylesheets:null,count:0,unsuspend:Wd},Xl(t),null!==(m=function(){if(null===Hd)throw Error(r(475));var e=Hd;return e.stylesheets&&0===e.count&&Kd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&Kd(e,e.stylesheets),e.unsu
vendor: 4,311 bytes, line 11
11spend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=m(su.bind(null,e,t,i,n,a,s,o,l,c,d,1,h,f)),void Bc(e,i,o,!u);su(e,t,i,n,a,s,o,l,c)}function $c(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var a=n[r],s=a.getSnapshot;a=a.value;try{if(!Jn(s(),a))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bc(e,t,n,r){t&=~vc,t&=~yc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var s=31-ge(a),i=1<<s;r[s]=-1,a&=~i}0!==n&&Ae(e,n,t)}function qc(){return!!(6&sc)||(Eu(0),!1)}function Hc(){if(null!==oc){if(0===cc)var e=oc.return;else wa=ba=null,Fs(e=oc),Xi=null,Ji=0,e=oc;for(;null!==e;)ll(e.alternate,e),e=e.return;oc=null}}function Wc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,md(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Hc(),ic=e,oc=n=Vr(e.current,null),lc=t,cc=0,uc=null,dc=!1,mc=Ne(e,t),hc=!1,bc=xc=vc=yc=gc=pc=0,jc=wc=null,Nc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-ge(r),s=1<<a;t|=e[a],r&=~s}return fc=t,_r(),n}function Gc(e,t){js=null,D.H=Gi,t===Ya||t===Qa?(t=ns(),cc=3):t===Ka?(t=ns(),cc=4):cc=t===Ao?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,uc=t,null===oc&&(pc=1,ko(e,Cr(t,e.current)))}function Yc(){var e=D.H;return D.H=Gi,null===e?Gi:e}function Kc(){var e=D.A;return D.A=rc,e}function Qc(){pc=4,dc||(4194048&lc)!==lc&&null!==io.current||(mc=!0),!(134217727&gc)&&!(134217727&yc)||null===ic||Bc(ic,lc,xc,!1)}function Xc(e,t,n){var r=sc;sc|=2;var a=Yc(),s=Kc();ic===e&&lc===t||(Ec=null,Wc(e,t)),t=!1;var i=pc;e:for(;;)try{if(0!==cc&&null!==oc){var o=oc,l=uc;switch(cc){case 8:Hc(),i=6;break e;case 3:case 2:case 9:case 6:null===io.current&&(t=!0);var c=cc;if(cc=0,uc=null,nu(e,o,l,c),n&&mc){i=0;break e}break;default:c=cc,cc=0,uc=null,nu(e,o,l,c)}}Jc(),i=pc;break}catch(u){Gc(e,u)}return t&&e.shellSuspendCounter++,wa=ba=null,sc=r,D.H=a,D.A=s,null===oc&&(ic=null,lc=0,_r()),i}function Jc(){for(;null!==oc;)eu(oc)}function Zc(){for(;null!==oc&&!te();)eu(oc)}function eu(e){var t=el(e.alternate,e,fc);e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function tu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Uo(n,t,t.pendingProps,t.type,void 0,lc);break;case 11:t=Uo(n,t,t.pendingProps,t.type.render,t.ref,lc);break;case 5:Fs(t);default:ll(n,t),t=el(n,t=oc=$r(t,fc),fc)}e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function nu(e,t,n,a){wa=ba=null,Fs(t),Xi=null,Ji=0;var s=t.return;try{if(function(e,t,n,a,s){if(n.flags|=32768,null!==a&&"object"==typeof a&&"function"==typeof a.then){if(null!==(t=n.alternate)&&Ea(t,n,s,!0),null!==(n=io.current)){switch(n.tag){case 13:return null===oo?Qc():null===n.alternate&&0===pc&&(pc=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Xa?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),fu(e,a,s)),!1;case 22:return n.flags|=65536,a===Xa?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),fu(e,a,s)),!1}throw Error(r(435,n.tag))}return fu(e,a,s),Qc(),!1}if(la)return null!==(t=io.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==da&&va(Cr(e=Error(r(422),{cause:a}),n))):(a!==da&&va(Cr(t=Error(r(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,s&=-s,e.lanes|=s,a=Cr(a,n),us(e,s=Eo(e.stateNode,a,s)),4!==pc&&(pc=2)),!1;var i=Error(r(520),{cause:a});if(i=Cr(i,n),null===wc?wc=[i]:wc.push(i),4!==pc&&(pc=2),null===t)return!0;a=Cr(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,us(n,e=Eo(n.stateNode,a,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Cc&&Cc.has(i))))return n.flags|=65536,s&=-s,n.lanes|=s,Po(s=Co(s),e,n,a),us(n,s),!1}n=n.return}while(null!==n);return!1}
vendor: 4,958 bytes, line 11
11(e,s,t,n,lc))return pc=1,ko(e,Cr(n,e.current)),void(oc=null)}catch(i){if(null!==s)throw oc=s,i;return pc=1,ko(e,Cr(n,e.current)),void(oc=null)}32768&t.flags?(la||1===a?e=!0:mc||536870912&lc?e=!1:(dc=e=!0,(2===a||9===a||3===a||6===a)&&(null!==(a=io.current)&&13===a.tag&&(a.flags|=16384))),au(t,e)):ru(t)}function ru(e){var t=e;do{if(32768&t.flags)return void au(t,dc);e=t.return;var n=il(t.alternate,t,fc);if(null!==n)return void(oc=n);if(null!==(t=t.sibling))return void(oc=t);oc=t=e}while(null!==t);0===pc&&(pc=5)}function au(e,t){do{var n=ol(e.alternate,e);if(null!==n)return n.flags&=32767,void(oc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(oc=e);oc=e=n}while(null!==e);pc=6,oc=null}function su(e,t,n,a,s,i,o,l,c){e.cancelPendingCommit=null;do{uu()}while(0!==Pc);if(6&sc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,a,s){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-ge(n),d=1<<u;o[u]=0,l[u]=-1;var m=c[u];if(null!==m)for(c[u]=null,u=0;u<m.length;u++){var h=m[u];null!==h&&(h.lane&=-536870913)}n&=~d}0!==r&&Ae(e,r,0),0!==s&&0===a&&0!==e.tag&&(e.suspendedLanes|=s&~(i&~t))}(e,n,i|=Tr,o,l,c),e===ic&&(oc=ic=null,lc=0),Tc=t,Ac=e,_c=n,Rc=i,Lc=s,Mc=a,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,Z(le,(function(){return du(),null}))):(e.callbackNode=null,e.callbackPriority=0),a=!!(13878&t.flags),13878&t.subtreeFlags||a){a=D.T,D.T=null,s=I.p,I.p=2,o=sc,sc|=4;try{!function(e,t){if(e=e.containerInfo,ad=sm,ar(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var s=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,m=e,h=null;t:for(;;){for(var f;m!==n||0!==s&&3!==m.nodeType||(l=o+s),m!==i||0!==a&&3!==m.nodeType||(c=o+a),3===m.nodeType&&(o+=m.nodeValue.length),null!==(f=m.firstChild);)h=m,m=f;for(;;){if(m===e)break t;if(h===n&&++u===s&&(l=o),h===i&&++d===a&&(c=o),null!==(f=m.nextSibling))break;h=(m=h).parentNode}m=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(sd={focusedElem:e,selectionRange:n},sm=!1,El=t;null!==El;)if(e=(t=El).child,1024&t.subtreeFlags&&null!==e)e.return=t,El=e;else for(;null!==El;){switch(i=(t=El).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,s=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var p=xo(n.type,s,(n.elementType,n.type));e=a.getSnapshotBeforeUpdate(p,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(y){hu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))vd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,El=e;break}El=t.return}}(e,t)}finally{sc=o,I.p=s,D.T=a}}Pc=1,iu(),ou(),lu()}}function iu(){if(1===Pc){Pc=0;var e=Ac,t=Tc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=D.T,D.T=null;var r=I.p;I.p=2;var a=sc;sc|=4;try{Il(t,e);var s=sd,i=rr(e.containerInfo),o=s.focusedElem,l=s.selectionRange;if(i!==o&&o&&o.ownerDocument&&nr(o.ownerDocument.documentElement,o)){if(null!==l&&ar(o)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(u,o.value.length);else{var d=o.ownerDocument||document,m=d&&d.defaultView||window;if(m.getSelection){var h=m.getSelection(),f=o.textContent.length,p=Math.min(l.start,f),g=void 0===l.end?p:Math.min(l.end,f);!h.extend&&p>g&&(i=g,g=p,p=i);var y=tr(o,p),v=tr(o,g);if(y&&v&&(1!==h.rangeCount||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var x=d.createRange();x.setStart(y.node,y.offset),h.removeAllRanges(),p>g?(h.addRange(x),h.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),h.addRange(x))}}}}for(d=[],h=o;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof o.focus&&o.focus(),o=0;o<d.length;o++){var b=d[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sm=!!ad,sd=ad=null}finally{sc=a,I.p=r,D.T=n}}e.current=t,Pc=2}}function ou(){if(2===Pc){Pc=0;var e=Ac,t=Tc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=D.T,D.T=null;var r=I.p;I.p=2;var a=sc;sc|=4;try{Cl(e,t.alternate,t)}finally{sc=a,I.p=r,D.T=n}}Pc=3}}function lu(){if(4===Pc||3===Pc){Pc=0,re();var e=Ac,t=Tc,n=_c,r=Mc;10256&t.subtreeFlags||10256&t.flags?Pc=5:(Pc=0,Tc=Ac=null,cu(e,e.pen
vendor: 4,443 bytes, line 11
11dingLanes));var a=e.pendingLanes;if(0===a&&(Cc=null),Re(n),t=t.stateNode,fe&&"function"==typeof fe.onCommitFiberRoot)try{fe.onCommitFiberRoot(he,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=D.T,a=I.p,I.p=2,D.T=null;try{for(var s=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];s(o.value,{componentStack:o.stack})}}finally{D.T=t,I.p=a}}3&_c&&uu(),Su(e),a=e.pendingLanes,4194090&n&&42&a?e===Dc?Oc++:(Oc=0,Dc=e):Oc=0,Eu(0)}}function cu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ia(t)))}function uu(e){return iu(),ou(),lu(),du()}function du(){if(5!==Pc)return!1;var e=Ac,t=Rc;Rc=0;var n=Re(_c),a=D.T,s=I.p;try{I.p=32>n?32:n,D.T=null,n=Lc,Lc=null;var i=Ac,o=_c;if(Pc=0,Tc=Ac=null,_c=0,6&sc)throw Error(r(331));var l=sc;if(sc|=4,ec(i.current),Wl(i,i.current,o,n),sc=l,Eu(0,!1),fe&&"function"==typeof fe.onPostCommitFiberRoot)try{fe.onPostCommitFiberRoot(he,i)}catch(c){}return!0}finally{I.p=s,D.T=a,cu(e,t)}}function mu(e,t,n){t=Cr(n,t),null!==(e=ls(e,t=Eo(e.stateNode,t,2),2))&&(Pe(e,2),Su(e))}function hu(e,t,n){if(3===e.tag)mu(e,e,n);else for(;null!==t;){if(3===t.tag){mu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Cc||!Cc.has(r))){e=Cr(n,e),null!==(r=ls(t,n=Co(2),2))&&(Po(n,r,t,e),Pe(r,2),Su(r));break}}t=t.return}}function fu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ac;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(hc=!0,a.add(n),e=pu.bind(null,e,t,n),t.then(e,e))}function pu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ic===e&&(lc&n)===n&&(4===pc||3===pc&&(62914560&lc)===lc&&300>ae()-kc?!(2&sc)&&Wc(e,0):vc|=n,bc===lc&&(bc=0)),Su(e)}function gu(e,t){0===t&&(t=Ee()),null!==(e=Mr(e,t))&&(Pe(e,t),Su(e))}function yu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),gu(e,n)}function vu(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;null!==s&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==a&&a.delete(t),gu(e,n)}var xu=null,bu=null,wu=!1,ju=!1,Nu=!1,ku=0;function Su(e){e!==bu&&null===e.next&&(null===bu?xu=bu=e:bu=bu.next=e),ju=!0,wu||(wu=!0,fd((function(){6&sc?Z(ie,Cu):Pu()})))}function Eu(e,t){if(!Nu&&ju){Nu=!0;do{for(var n=!1,r=xu;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var s=0;else{var i=r.suspendedLanes,o=r.pingedLanes;s=(1<<31-ge(42|e)+1)-1,s=201326741&(s&=a&~(i&~o))?201326741&s|1:s?2|s:0}0!==s&&(n=!0,_u(r,s))}else s=lc,!(3&(s=je(r,r===ic?s:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,s)||(n=!0,_u(r,s));r=r.next}}while(n);Nu=!1}}function Cu(){Pu()}function Pu(){ju=wu=!1;var e=0;0!==ku&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==ud&&(ud=e,!0);return ud=null,!1}()&&(e=ku),ku=0);for(var t=ae(),n=null,r=xu;null!==r;){var a=r.next,s=Au(r,t);0===s?(r.next=null,null===n?xu=a:n.next=a,null===a&&(bu=n)):(n=r,(0!==e||3&s)&&(ju=!0)),r=a}Eu(e)}function Au(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,s=-62914561&e.pendingLanes;0<s;){var i=31-ge(s),o=1<<i,l=a[i];-1===l?0!==(o&n)&&0===(o&r)||(a[i]=ke(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}if(n=lc,n=je(e,e===(t=ic)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===cc||9===cc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),Re(n)){case 2:case 8:n=oe;break;case 32:default:n=le;break;case 268435456:n=ue}return r=Tu.bind(null,e),n=Z(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function Tu(e,t){if(0!==Pc&&5!==Pc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uu()&&e.callbackNode!==n)return null;var r=lc;return 0===(r=je(e,e===ic?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Fc(e,r,t),Au(e,ae()),null!=e.callbackNode&&e.callbackNode===n?Tu.bind(null,e):null)}function _u(e,t){if(uu())return null;Fc(e,t,!0)}function Ru(){return 0===ku&&(ku=Se()),ku}function Lu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Rt(""+e)}function Mu(e,t){var n=t.ownerDocument.createElement("input");
vendor: 5,007 bytes, line 11
11return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ou=0;Ou<kr.length;Ou++){var Du=kr[Ou];Sr(Du.toLowerCase(),"on"+(Du[0].toUpperCase()+Du.slice(1)))}Sr(gr,"onAnimationEnd"),Sr(yr,"onAnimationIteration"),Sr(vr,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(xr,"onTransitionRun"),Sr(br,"onTransitionStart"),Sr(wr,"onTransitionCancel"),Sr(jr,"onTransitionEnd"),Je("onMouseEnter",["mouseout","mouseover"]),Je("onMouseLeave",["mouseout","mouseover"]),Je("onPointerEnter",["pointerout","pointerover"]),Je("onPointerLeave",["pointerout","pointerover"]),Xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Iu="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(" "),zu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Iu));function Uu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=c;try{s(a)}catch(u){bo(u)}a.currentTarget=null,s=l}else for(i=0;i<r.length;i++){if(l=(o=r[i]).instance,c=o.currentTarget,o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=c;try{s(a)}catch(u){bo(u)}a.currentTarget=null,s=l}}}}function Fu(e,t){var n=t[ze];void 0===n&&(n=t[ze]=new Set);var r=e+"__bubble";n.has(r)||(qu(t,e,2,!1),n.add(r))}function Vu(e,t,n){var r=0;t&&(r|=4),qu(n,e,r,t)}var $u="_reactListening"+Math.random().toString(36).slice(2);function Bu(e){if(!e[$u]){e[$u]=!0,Ke.forEach((function(t){"selectionchange"!==t&&(zu.has(t)||Vu(t,!1,e),Vu(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$u]||(t[$u]=!0,Vu("selectionchange",!1,t))}}function qu(e,t,n,r){switch(mm(t)){case 2:var a=im;break;case 8:a=om;break;default:a=lm}n=a.bind(null,t,n,e),a=void 0,!$t||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hu(e,t,n,r,a){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===a)break;if(4===o)for(o=r.return;null!==o;){var c=o.tag;if((3===c||4===c)&&o.stateNode.containerInfo===a)return;o=o.return}for(;null!==l;){if(null===(o=qe(l)))return;if(5===(c=o.tag)||6===c||26===c||27===c){r=i=o;continue e}l=l.parentNode}}r=r.return}Ut((function(){var r=i,a=Mt(n),o=[];e:{var l=Nr.get(e);if(void 0!==l){var c=nn,u=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":c=vn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=bn;break;case gr:case yr:case vr:c=un;break;case jr:c=wn;break;case"scroll":case"scrollend":c=an;break;case"wheel":c=jn;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=Nn}var d=!!(4&t),m=!d&&("scroll"===e||"scrollend"===e),h=d?null!==l?l+"Capture":null:l;d=[];for(var f,p=r;null!==p;){var g=p;if(f=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===f||null===h||null!=(g=Ft(p,h))&&d.push(Wu(p,g,f)),m)break;p=p.return}0<d.length&&(l=new c(l,u,null,n,a),o.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Lt||!(u=n.relatedTarget||n.fromElement)||!qe(u)&&!u[Ie])&&(c||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?qe(u):null)&&(m=s(u),d=u.tag,u!==m||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){
vendor: 11,847 bytes, line 11
11if(d=on,g="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,g="onPointerLeave",h="onPointerEnter",p="pointer"),m=null==c?l:We(c),f=null==u?l:We(u),(l=new d(g,p+"leave",c,n,a)).target=m,l.relatedTarget=f,g=null,qe(a)===r&&((d=new d(h,p+"enter",u,n,a)).target=f,d.relatedTarget=m,g=d),m=g,c&&u)e:{for(h=u,p=0,f=d=c;f;f=Yu(f))p++;for(f=0,g=h;g;g=Yu(g))f++;for(;0<p-f;)d=Yu(d),p--;for(;0<f-p;)h=Yu(h),f--;for(;p--;){if(d===h||null!==h&&d===h.alternate)break e;d=Yu(d),h=Yu(h)}d=null}else d=null;null!==c&&Ku(o,l,c,d,!1),null!==u&&null!==m&&Ku(o,m,u,d,!0)}if("select"===(c=(l=r?We(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var y=Vn;else if(On(l))if($n)y=Xn;else{y=Kn;var v=Yn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&At(r.elementType)&&(y=Vn):y=Qn;switch(y&&(y=y(e,r))?Dn(o,y,n,a):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&wt(l,"number",l.value)),v=r?We(r):window,e){case"focusin":(On(v)||"true"===v.contentEditable)&&(ir=v,or=r,lr=null);break;case"focusout":lr=or=ir=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,ur(o,n,a);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":ur(o,n,a)}var x;if(Sn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Ln?_n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Pn&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==b?"onCompositionEnd"===b&&Ln&&(x=Gt()):(Ht="value"in(qt=a)?qt.value:qt.textContent,Ln=!0)),0<(v=Gu(r,b)).length&&(b=new mn(b,e,null,n,a),o.push({event:b,listeners:v}),x?b.data=x:null!==(x=Rn(n))&&(b.data=x))),(x=Cn?function(e,t){switch(e){case"compositionend":return Rn(t);case"keypress":return 32!==t.which?null:(Tn=!0,An);case"textInput":return(e=t.data)===An&&Tn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Sn&&_n(e,t)?(e=Gt(),Wt=Ht=qt=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Gu(r,"onBeforeInput")).length&&(v=new mn("onBeforeInput","beforeinput",null,n,a),o.push({event:v,listeners:b}),v.data=x)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var s=Lu((a[De]||null).action),i=r.submitter;i&&null!==(t=(t=i[De]||null)?Lu(t.formAction):i.getAttribute("formAction"))&&(s=t,i=null);var o=new nn("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==ku){var e=i?Mu(a,i):new FormData(a);Li(n,{pending:!0,data:e,method:a.method,action:s},null,e)}}else"function"==typeof s&&(o.preventDefault(),e=i?Mu(a,i):new FormData(a),Li(n,{pending:!0,data:e,method:a.method,action:s},s,e))},currentTarget:a}]})}}(o,e,r,n,a)}Uu(o,t)}))}function Wu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gu(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,s=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===s||(null!=(a=Ft(e,n))&&r.unshift(Wu(e,a,s)),null!=(a=Ft(e,t))&&r.push(Wu(e,a,s))),3===e.tag)return r;e=e.return}return[]}function Yu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Ku(e,t,n,r,a){for(var s=t._reactName,i=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,null!==l&&l===r)break;5!==o&&26!==o&&27!==o||null===c||(l=c,a?null!=(c=Ft(n,s))&&i.unshift(Wu(n,c,l)):a||null!=(c=Ft(n,s))&&i.push(Wu(n,c,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qu=/\r\n?/g,Xu=/\u0000|\uFFFD/g;function Ju(e){return("string"==typeof e?e:""+e).replace(Qu,"\n").replace(Xu,"")}function Zu(e,t){return t=Ju(t),Ju(e)===t}function ed(){}function td(e,t,n,a,s,i){switch(n){case"children":"string"==typeof a?"body"===t||"textarea"===t&&""===a||St(e,a):("number"==typeof a||"bigint"==typeof a)&&"body"!==t&&St(e,""+a);break;case"className":st(e,"class",a);break;case"tabIndex":st(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":st(e,n,a);break;case"style":Pt(e,a,i);break;case"data":if("object"!==t){st(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"==typeof a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=Rt(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"==typeof a){e.setAttribute(n,"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}if("function"==typeof i&&("formAction"===n?("input"!==t&&td(e,t,"name",s.name,s,null),td(e,t,"formEncType",s.formEncType,s,null),td(e,t,"formMethod",s.formMethod,s,null),td(e,t,"formTarget",s.formTarget,s,null)):(td(e,t,"encType",s.encType,s,null),td(e,t,"method",s.method,s,null),td(e,t,"target",s.target,s,null))),null==a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=Rt(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=ed);break;case"onScroll":null!=a&&Fu("scroll",e);break;case"onScrollEnd":null!=a&&Fu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=s.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"muted":e.muted=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"==typeof a||"boolean"==typeof a||"symbol"==typeof a){e.removeAttribute("xlink:href");break}n=Rt(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""+a):e.removeAttribute(n);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"==typeof a||"symbol"==typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Fu("beforetoggle",e),Fu("toggle",e),at(e,"popover",a);break;case"xlinkActuate":it(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":it(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":it(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":it(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":it(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":it(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":it(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":it(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":it(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":at(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&at(e,n=Tt.get(n)||n,a)}}function nd(e,t,n,a,s,i){switch(n){case"style":Pt(e,a,i);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=s.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof a?St(e,a):("number"==typeof a||"bigint"==typeof a)&&St(e,""+a);break;case"onScroll":null!=a&&Fu("scroll",e);break;case"onScrollEnd":null!=a&&Fu("scrollend",e);break;case"onClick":null!=a&&(e.onclick=ed);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Qe.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),"function"==typeof(i=null!=(i=e[De]||null)?i[n]:null)&&e.removeEventListener(t,i,s),"function"!=typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):at(e,n,a):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s)))}}function rd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fu("error",e),Fu("load",e);var a,s=!1,i=!1;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(null!=o)switch(a){case"src":s=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:td(e,t,a,o,n,null)}}return i&&td(e,t,"srcSet",n.srcSet,n,null),void(s&&td(e,t,"src",n.src,n,null));case"input":Fu("invalid",e);var l=a=o=i=null,c=null,u=null;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];if(null!=d)switch(s){case"name":i=d;break;case"type":o=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":a=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:td(e,t,s,d,n,null)}}return bt(e,a,l,c,u,o,i,!1),void ft(e);case"select":for(i in Fu("invalid",e),s=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"multiple":s=l;default:td(e,t,i,l,n,null)}return t=a,n=o,e.multiple=!!s,void(null!=t?jt(e,!!s,t,!1):null!=n&&jt(e,!!s,n,!0));case"textarea":for(o in Fu("invalid",e),a=i=s=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":s=l;break;case"defaultValue":i=l;break;case"children":a=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:td(e,t,o,l,n,null)}return kt(e,s,i,a),void ft(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(s=n[c]))if("selected"===c)e.selected=s&&"function"!=typeof s&&"symbol"!=typeof s;else td(e,t,c,s,n,null);return;case"dialog":Fu("beforetoggle",e),Fu("toggle",e),Fu("cancel",e),Fu("close",e);break;case"iframe":case"object":Fu("load",e);break;case"video":case"audio":for(s=0;s<Iu.length;s++)Fu(Iu[s],e);break;case"image":Fu("error",e),Fu("load",e);break;case"details":Fu("toggle",e);break;case"embed":case"source":case"link":Fu("error",e),Fu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(s=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:td(e,t,u,s,n,null)}return;default:if(At(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(s=n[d])&&nd(e,t,d,s,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(s=n[l])&&td(e,t,l,s,n,null))}var ad=null,sd=null;
11function id(e){return 9===e.nodeType?e:e.ownerDocument}function od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ld(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function cd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ud=null;var dd="function"==typeof setTimeout?setTimeout:void 0,md="function"==typeof clearTimeout?clearTimeout:void 0,hd="function"==typeof Promise?Promise:void 0,fd="function"==typeof queueMicrotask?queueMicrotask:void 0!==hd?function(e){return hd.resolve(null).then(e).catch(pd)}:dd;function pd(e){setTimeout((function(){throw e}))}function gd(e){return"head"===e}function yd(e,t){var n=t,r=0,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&8===s.nodeType)if("/$"===(n=s.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&kd(i.documentElement),2&n&&kd(i.body),4&n)for(kd(n=i.head),i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[$e]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=o}}if(0===a)return e.removeChild(s),void Tm(t);a--}else"$"===n||"$?"===n||"$!"===n?a++:r=n.charCodeAt(0)-48;else r=0;n=s}while(n);Tm(t)}function vd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vd(n),Be(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function xd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function bd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var wd=null;function jd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function Nd(e,t,n){switch(t=id(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function kd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Be(e)}var Sd=new Map,Ed=new Set;function Cd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Pd=I.d;I.d={f:function(){var e=Pd.f(),t=qc();return e||t},r:function(e){var t=He(e);null!==t&&5===t.tag&&"form"===t.type?Oi(t):Pd.r(e)},D:function(e){Pd.D(e),Td("dns-prefetch",e,null)},C:function(e,t){Pd.C(e,t),Td("preconnect",e,t)},L:function(e,t,n){Pd.L(e,t,n);var r=Ad;if(r&&e&&t){var a='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+vt(n.imageSizes)+'"]')):a+='[href="'+vt(e)+'"]';var s=a;switch(t){case"style":s=Rd(e);break;case"script":s=Od(e)}Sd.has(s)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Sd.set(s,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Ld(s))||"script"===t&&r.querySelector(Dd(s))||(rd(t=r.createElement("link"),"link",e),Ye(t),r.head.appendChild(t)))}},m:function(e,t){Pd.m(e,t);var n=Ad;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',s=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Od(e)}if(!Sd.has(s)&&(e=c({rel:"modulepreload",href:e},t),Sd.set(s,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Dd(s)))return}rd(r=n.createElement("link"),"link",e),Ye(r),n.head.appendChild(r)}}},X:function(e,t){Pd.X(e,t);var n=Ad;if(n&&e){var r=Ge(n).hoistableScripts,a=Od(e),s=r.get(a);s||((s=n.querySelector(Dd(a)))||(e=c({src:e,async:!0},t),(t=Sd.get(a))&&Fd(e,t),Ye(s=n.createElement("script")),rd(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(a,s))}}
vendor: 11,645 bytes, line 11
11,S:function(e,t,n){Pd.S(e,t,n);var r=Ad;if(r&&e){var a=Ge(r).hoistableStyles,s=Rd(e);t=t||"default";var i=a.get(s);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(Ld(s)))o.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Sd.get(s))&&Ud(e,n);var l=i=r.createElement("link");Ye(l),rd(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){o.loading|=1})),l.addEventListener("error",(function(){o.loading|=2})),o.loading|=4,zd(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(s,i)}}},M:function(e,t){Pd.M(e,t);var n=Ad;if(n&&e){var r=Ge(n).hoistableScripts,a=Od(e),s=r.get(a);s||((s=n.querySelector(Dd(a)))||(e=c({src:e,async:!0,type:"module"},t),(t=Sd.get(a))&&Fd(e,t),Ye(s=n.createElement("script")),rd(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(a,s))}}};var Ad="undefined"==typeof document?null:document;function Td(e,t,n){var r=Ad;if(r&&"string"==typeof t&&t){var a=vt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),Ed.has(a)||(Ed.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(rd(t=r.createElement("link"),"link",e),Ye(t),r.head.appendChild(t)))}}function _d(e,t,n,a){var s,i,o,l,c=(c=W.current)?Cd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Rd(n.href),(a=(n=Ge(c).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Rd(n.href);var u=Ge(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Ld(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Sd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sd.set(e,n),u||(s=c,i=e,o=n,l=d.state,s.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=s.createElement("link"),l.preload=i,i.addEventListener("load",(function(){return l.loading|=1})),i.addEventListener("error",(function(){return l.loading|=2})),rd(i,"link",o),Ye(i),s.head.appendChild(i))))),t&&null===a)throw Error(r(528,""));return d}if(t&&null!==a)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Od(n),(a=(n=Ge(c).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Rd(e){return'href="'+vt(e)+'"'}function Ld(e){return'link[rel="stylesheet"]['+e+"]"}function Md(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Od(e){return'[src="'+vt(e)+'"]'}function Dd(e){return"script[async]"+e}function Id(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(a)return t.instance=a,Ye(a),a;var s=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ye(a=(e.ownerDocument||e).createElement("style")),rd(a,"style",s),zd(a,n.precedence,e),t.instance=a;case"stylesheet":s=Rd(n.href);var i=e.querySelector(Ld(s));if(i)return t.state.loading|=4,t.instance=i,Ye(i),i;a=Md(n),(s=Sd.get(s))&&Ud(a,s),Ye(i=(e.ownerDocument||e).createElement("link"));var o=i;return o._p=new Promise((function(e,t){o.onload=e,o.onerror=t})),rd(i,"link",a),t.state.loading|=4,zd(i,n.precedence,e),t.instance=i;case"script":return i=Od(n.src),(s=e.querySelector(Dd(i)))?(t.instance=s,Ye(s),s):(a=n,(s=Sd.get(i))&&Fd(a=c({},n),s),Ye(s=(e=e.ownerDocument||e).createElement("script")),rd(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,zd(a,n.precedence,e));return t.instance}function zd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,s=a,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)s=o;else if(s!==a)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Ud(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Fd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Vd=null;function $d(e,t,n){if(null===Vd){var r=new Map,a=Vd=new Map;a.set(n,r)}else(r=(a=Vd).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var s=n[a];if(!(s[$e]||s[Oe]||"link"===e&&"stylesheet"===s.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==s.namespaceURI){var i=s.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(s):r.set(i,[s])}}return r}function Bd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function qd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Hd=null;function Wd(){}function Gd(){if(this.count--,0===this.count)if(this.stylesheets)Kd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Yd=null;function Kd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Yd=new Map,t.forEach(Qd,e),Yd=null,Gd.call(e))}function Qd(e,t){if(!(4&t.state.loading)){var n=Yd.get(e);if(n)var r=n.get(null);else{n=new Map,Yd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<a.length;s++){var i=a[s];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(s=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=Gd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),s?s.parentNode.insertBefore(a,s.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var Xd={$$typeof:b,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function Jd(e,t,n,r,a,s,i,o){this.tag=1,this.containerInfo=e,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=Ce(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ce(0),this.hiddenUpdates=Ce(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=s,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Zd(e,t,n,r,a,s,i,o,l,c,u,d){return e=new Jd(e,t,n,i,o,l,c,d),t=1,!0===s&&(t|=24),s=Ur(3,null,null,t),e.current=s,s.stateNode=e,(t=Da()).refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:r,isDehydrated:n,cache:t},ss(s),e}function em(e){return e?e=Ir:Ir}function tm(e,t,n,r,a,s){a=em(a),null===r.context?r.context=a:r.pendingContext=a,(r=os(t)).payload={element:n},null!==(s=void 0===s?null:s)&&(r.callback=s),null!==(n=ls(e,r,t))&&(Uc(n,0,t),cs(n,e,t))}function nm(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rm(e,t){nm(e,t),(e=e.alternate)&&nm(e,t)}function am(e){if(13===e.tag){var t=Mr(e,67108864);null!==t&&Uc(t,0,67108864),rm(e,67108864)}}var sm=!0;function im(e,t,n,r){var a=D.T;D.T=null;var s=I.p;try{I.p=2,lm(e,t,n,r)}finally{I.p=s,D.T=a}}function om(e,t,n,r){var a=D.T;D.T=null;var s=I.p;try{I.p=8,lm(e,t,n,r)}finally{I.p=s,D.T=a}}function lm(e,t,n,r){if(sm){var a=cm(r);if(null===a)Hu(e,t,r,um,n),wm(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return fm=jm(fm,e,t,n,r,a),!0;case"dragenter":return pm=jm(pm,e,t,n,r,a),!0;case"mouseover":return gm=jm(gm,e,t,n,r,a),!0;case"pointerover":var s=a.pointerId;return ym.set(s,jm(ym.get(s)||null,e,t,n,r,a)),!0;case"gotpointercapture":return s=a.pointerId,vm.set(s,jm(vm.get(s)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(wm(e,r),4&t&&-1<bm.indexOf(e)){for(;null!==a;){var s=He(a);if(null!==s)switch(s.tag){case 3:if((s=s.stateNode).current.memoizedState.isDehydrated){var i=we(s.pendingLanes);if(0!==i){var o=s;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var l=1<<31-ge(i);o.entanglements[1]|=l,i&=~l}Su(s),!(6&sc)&&(Sc=ae()+500,Eu(0))}}break;case 13:null!==(o=Mr(s,2))&&Uc(o,0,2),qc(),rm(s,2)}if(null===(s=cm(r))&&Hu(e,t,r,um,n),s===a)break;a=s}null!==a&&r.stopPropagation()}else Hu(e,t,r,null,n)}}function cm(e){return dm(e=Mt(e))}var um=null;function dm(e){if(um=null,null!==(e=qe(e))){var t=s(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return um=e,null}function mm(e){switch(e){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(se()){case ie:return 2;case oe:return 8;case le:case ce:return 32;case ue:return 268435456;default:return 32}default:return 32}}var hm=!1,fm=null,pm=null,gm=null,ym=new Map,vm=new Map,xm=[],bm="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 wm(e,t){switch(e){case"focusin":case"focusout":fm=null;break;case"dragenter":case"dragleave":pm=null;break;case"mouseover":case"mouseout":gm=null;break;case"pointerover":case"pointerout":ym.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vm.delete(t.pointerId)}}function jm(e,t,n,r,a,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[a]},null!==t&&(null!==(t=He(t))&&am(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Nm(e){var t=qe(e.target);if(null!==t){var n=s(t);
11if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void function(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}(e.priority,(function(){if(13===n.tag){var e=Ic();e=_e(e);var t=Mr(n,e);null!==t&&Uc(t,0,e),rm(n,e)}}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function km(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cm(e.nativeEvent);if(null!==n)return null!==(t=He(n))&&am(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function Sm(e,t,n){km(e)&&n.delete(t)}function Em(){hm=!1,null!==fm&&km(fm)&&(fm=null),null!==pm&&km(pm)&&(pm=null),null!==gm&&km(gm)&&(gm=null),ym.forEach(Sm),vm.forEach(Sm)}function Cm(t,n){t.blockedOn===n&&(t.blockedOn=null,hm||(hm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Em)))}var Pm=null;function Am(t){Pm!==t&&(Pm=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,(function(){Pm===t&&(Pm=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],a=t[e+2];if("function"!=typeof r){if(null===dm(r||n))continue;break}var s=He(n);null!==s&&(t.splice(e,3),e-=3,Li(s,{pending:!0,data:a,method:n.method,action:r},r,a))}})))}function Tm(e){function t(t){return Cm(t,e)}null!==fm&&Cm(fm,e),null!==pm&&Cm(pm,e),null!==gm&&Cm(gm,e),ym.forEach(t),vm.forEach(t);for(var n=0;n<xm.length;n++){var r=xm[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xm.length&&null===(n=xm[0]).blockedOn;)Nm(n),null===n.blockedOn&&xm.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],s=n[r+1],i=a[De]||null;if("function"==typeof s)i||Am(n);else if(i){var o=null;if(s&&s.hasAttribute("formAction")){if(a=s,i=s[De]||null)o=i.formAction;else if(null!==dm(a))continue}else o=i.action;"function"==typeof o?n[r+1]=o:(n.splice(r,3),r-=3),Am(n)}}}function _m(e){this._internalRoot=e}function Rm(e){this._internalRoot=e}Rm.prototype.render=_m.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));tm(t.current,Ic(),e,t,null,null)},Rm.prototype.unmount=_m.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;tm(e.current,2,null,e,null,null),qc(),t[Ie]=null}},Rm.prototype.unstable_scheduleHydration=function(e){if(e){var t=Le();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xm.length&&0!==t&&t<xm[n].priority;n++);xm.splice(n,0,e),0===n&&Nm(e)}};var Lm=t.version;if("19.1.0"!==Lm)throw Error(r(527,Lm,"19.1.0"));I.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=s(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(null===i)break;var l=i.alternate;if(null===l){if(null!==(a=i.return)){n=a;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return o(i),e;if(l===a)return o(i),t;l=l.sibling}throw Error(r(188))}if(n.return!==a.return)n=i,a=l;else{for(var c=!1,u=i.child;u;){if(u===n){c=!0,n=i,a=l;break}if(u===a){c=!0,a=i,n=l;break}u=u.sibling}if(!c){for(u=l.child;u;){if(u===n){c=!0,n=l,a=i;break}if(u===a){c=!0,a=l,n=i;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?l(e):null)?null:e.stateNode};var Mm={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Om=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Om.isDisabled&&Om.supportsFiber)try{he=Om.inject(Mm),fe=Om}catch(Dm){}}return x.createRoot=function(e,t){if(!a(e))throw Error(r(299));var n=!1,s="",i=wo,o=jo,l=No;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(s=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,n,s,i,o,l,0,null),e[Ie]=t.current,Bu(e),new _m(t)},x.hydrateRoot=function(e,t,n){if(!a(e))throw Error(r(299));var s=!1,i="",o=wo,l=jo,c=No,u=null;return null!=n&&(!0===n.unstable_strictMode&&(s=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Zd(e,1,!0,t,0,s,i,o,l,c,0,u)).context=em(null),n=t.current,(i=os(s=_e(s=Ic()))).callback=null,ls(n,i,s),n=s,t.current.lanes=n,Pe(t,n),Su(t),e[Ie]=t.current,Bu(e),new Rm(t)},x.version="19.1.0",x}var R=(E||(E=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),v.exports=_()),v.exports);let L,M,O,D={data:""},I=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,z=/\/\*[^]*?\*\/|  +/g,U=/\n+/g,F=(e,t)=>{let n="",r="",a="";for(let s in e){let i=e[s];"@"==s[0]?"i"==s[1]?n=s+" "+i+";":r+="f"==s[1]?F(i,s):s+"{"+F(i,"k"==s[1]?"":t)+"}":"object"==typeof i?r+=F(i,t?t.replace(/([^,])+/g,(e=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):s):null!=i&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=F.p?F.p(s,i):s+":"+i+";")}return n+(t&&a?t+"{"+a+"}":a)+r},V={},$=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+$(e[n]);return t}return e};function B(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,a)=>{let s=$(e),i=V[s]||(V[s]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(s));if(!V[i]){let t=s!==e?e:(e=>{let t,n,r=[{}];for(;t=I.exec(e.replace(z,""));)t[4]?r.shift():t[3]?(n=t[3].replace(U," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(U," ").trim();return r[0]})(e);V[i]=F(a?{["@keyframes "+i]:t}:t,n?"":"."+i)}let o=n&&V.g?V.g:null;return n&&(V.g=V[i]),l=V[i],c=t,u=r,(d=o)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),i;var l,c,u,d}
11)(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,a)=>{let s=t[a];if(s&&s.call){let e=s(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;s=t?"."+t:e&&"object"==typeof e?e.props?"":F(e,""):!1===e?"":e}return e+r+(null==s?"":s)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,(r=t.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||D),t.g,t.o,t.k);var r}B.bind({g:1});let q=B.bind({k:1});function H(e,t){let n=this||{};return function(){let t=arguments;return function r(a,s){let i=Object.assign({},a),o=i.className||r.className;n.p=Object.assign({theme:M&&M()},i),n.o=/ *go\d+/.test(o),i.className=B.apply(n,t)+(o?" "+o:"");let l=e;return e[0]&&(l=i.as||e,delete i.as),O&&l[0]&&O(i),L(l,i)}}}var W=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,G=(()=>{let e=0;return()=>(++e).toString()})(),Y=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),K=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return K(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+a})))}}},Q=[],X={toasts:[],pausedAt:void 0},J=e=>{X=K(X,e),Q.forEach((e=>{e(X)}))},Z={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ee=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||G()}))(t,e,n);return J({type:2,toast:r}),r.id},te=(e,t)=>ee("blank")(e,t);te.error=ee("error"),te.success=ee("success"),te.loading=ee("loading"),te.custom=ee("custom"),te.dismiss=e=>{J({type:3,toastId:e})},te.remove=e=>J({type:4,toastId:e}),te.promise=(e,t,n)=>{let r=te.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let a=t.success?W(t.success,e):void 0;return a?te.success(a,{id:r,...n,...null==n?void 0:n.success}):te.dismiss(r),e})).catch((e=>{let a=t.error?W(t.error,e):void 0;a?te.error(a,{id:r,...n,...null==n?void 0:n.error}):te.dismiss(r)})),e};var ne,re,ae,se,ie=(e,t)=>{J({type:1,toast:{id:e,height:t}})},oe=()=>{J({type:5,time:Date.now()})},le=new Map,ce=e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=f.useState(X),r=f.useRef(X);f.useEffect((()=>(r.current!==X&&n(X),Q.push(n),()=>{let e=Q.indexOf(n);e>-1&&Q.splice(e,1)})),[]);let a=t.toasts.map((t=>{var n,r,a;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Z[t.type],style:{...e.style,...null==(a=e[t.type])?void 0:a.style,...t.style}}}));return{...t,toasts:a}})(e);f.useEffect((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>te.dismiss(t.id)),n);t.visible&&te.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let r=f.useCallback((()=>{n&&J({type:6,time:Date.now()})}),[n]),a=f.useCallback(((e,n)=>{let{reverseOrder:r=!1,gutter:a=8,defaultPosition:s}=n||{},i=t.filter((t=>(t.position||s)===(e.position||s)&&t.height)),o=i.findIndex((t=>t.id===e.id)),l=i.filter(((e,t)=>t<o&&e.visible)).length;return i.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+a),0)}),[t]);return f.useEffect((()=>{t.forEach((e=>{if(e.dismissed)((e,t=1e3)=>{if(le.has(e))return;let n=setTimeout((()=>{le.delete(e),J({type:4,toastId:e})}),t);le.set(e,n)})(e.id,e.removeDelay);else{let t=le.get(e.id);t&&(clearTimeout(t),le.delete(e.id))}}))}),[t]),{toasts:t,handlers:{updateHeight:ie,startPause:oe,endPause:r,calculateOffset:a}}},ue=q`
12from {
13  transform: scale(0) rotate(45deg);
14	opacity: 0;
15}
16to {
17 transform: scale(1) rotate(45deg);
18  opacity: 1;
19}`,de=q`
20from {
21  transform: scale(0);
22  opacity: 0;
23}
24to {
25  transform: scale(1);
26  opacity: 1;
27}`,me=q`
28from {
29  transform: scale(0) rotate(90deg);
30	opacity: 0;
31}
32to {
33  transform: scale(1) rotate(90deg);
34	opacity: 1;
35}`,he=H("div")`
36  width: 20px;
37  opacity: 0;
38  height: 20px;
39  border-radius: 10px;
40  background: ${e=>e.primary||"#ff4b4b"};
41  position: relative;
42  transform: rotate(45deg);
43
44  animation: ${ue} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
45    forwards;
46  animation-delay: 100ms;
47
48  &:after,
49  &:before {
50    content: '';
51    animation: ${de} 0.15s ease-out forwards;
52    animation-delay: 150ms;
53    position: absolute;
54    border-radius: 3px;
55    opacity: 0;
56    background: ${e=>e.secondary||"#fff"};
57    bottom: 9px;
58    left: 4px;
59    height: 2px;
60    width: 12px;
61  }
62
63  &:before {
64    animation: ${me} 0.15s ease-out forwards;
65    animation-delay: 180ms;
66    transform: rotate(90deg);
67  }
68`,fe=q`
69  from {
70    transform: rotate(0deg);
71  }
72  to {
73    transform: rotate(360deg);
74  }
75`,pe=H("div")`
76  width: 12px;
77  height: 12px;
78  box-sizing: border-box;
79  border: 2px solid;
80  border-radius: 100%;
81  border-color: ${e=>e.secondary||"#e0e0e0"};
82  border-right-color: ${e=>e.primary||"#616161"};
83  animation: ${fe} 1s linear infinite;
84`,ge=q`
85from {
86  transform: scale(0) rotate(45deg);
87	opacity: 0;
88}
89to {
90  transform: scale(1) rotate(45deg);
91	opacity: 1;
92}`,ye=q`
930% {
94	height: 0;
95	width: 0;
96	opacity: 0;
97}
9840% {
99  height: 0;
100	width: 6px;
101	opacity: 1;
102}
103100% {
104  opacity: 1;
105  height: 10px;
106}`,ve=H("div")`
107  width: 20px;
108  opacity: 0;
109  height: 20px;
110  border-radius: 10px;
111  background: ${e=>e.primary||"#61d345"};
112  position: relative;
113  transform: rotate(45deg);
114
115  animation: ${ge} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
116    forwards;
117  animation-delay: 100ms;
118  &:after {
119    content: '';
120    box-sizing: border-box;
121    animation: ${ye} 0.2s ease-out forwards;
122    opacity: 0;
123    animation-delay: 200ms;
124    position: absolute;
125    border-right: 2px solid;
126    border-bottom: 2px solid;
127    border-color: ${e=>e.secondary||"#fff"};
128    bottom: 6px;
129    left: 6px;
130    height: 10px;
131    width: 6px;
132  }
133`,xe=H("div")`
134  position: absolute;
135`,be=H("div")`
136  position: relative;
137  display: flex;
138  justify-content: center;
139  align-items: center;
140  min-width: 20px;
141  min-height: 20px;
142`,we=q`
143from {
144  transform: scale(0.6);
145  opacity: 0.4;
146}
147to {
148  transform: scale(1);
149  opacity: 1;
150}`,je=H("div")`
151  position: relative;
152  transform: scale(0.6);
153  opacity: 0.4;
154  min-width: 20px;
155  animation: ${we} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
156    forwards;
157`,Ne=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?f.createElement(je,null,t):t:"blank"===n?null:f.createElement(be,null,f.createElement(pe,{...r}),"loading"!==n&&f.createElement(xe,null,"error"===n?f.createElement(he,{...r}):f.createElement(ve,{...r})))},ke=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Se=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Ee=H("div")`
158  display: flex;
159  align-items: center;
160  background: #fff;
161  color: #363636;
162  line-height: 1.3;
163  will-change: transform;
164  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
165  max-width: 350px;
166  pointer-events: auto;
167  padding: 8px 10px;
168  border-radius: 8px;
169`,Ce=H("div")`
170  display: flex;
171  justify-content: center;
172  margin: 4px 10px;
173  color: inherit;
174  flex: 1 1 auto;
175  white-space: pre-line;
176`,Pe=f.memo((({toast:e,position:t,style:n,children:r})=>{let a=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,a]=Y()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ke(n),Se(n)];return{animation:t?`${q(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${q(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},s=f.createElement(Ne,{toast:e}),i=f.createElement(Ce,{...e.ariaProps},W(e.message,e));return f.createElement(Ee,{className:e.className,style:{...a,...n,...e.style}},"function"==typeof r?r({icon:s,message:i}):f.createElement(f.Fragment,null,s,i))}));ne=f.createElement,F.p=re,L=ne,M=ae,O=se;var Ae,Te=({id:e,className:t,style:n,onHeightUpdate:r,children:a})=>{let s=f.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;r(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0}
176)}}),[e,r]);return f.createElement("div",{ref:s,className:t,style:n},a)},_e=B`
177  z-index: 9999;
178  > * {
179    pointer-events: auto;
180  }
181`,Re=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:a,containerStyle:s,containerClassName:i})=>{let{toasts:o,handlers:l}=ce(n);return f.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:i,onMouseEnter:l.startPause,onMouseLeave:l.endPause},o.map((n=>{let s=n.position||t,i=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},a=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Y()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...a}})(s,l.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return f.createElement(Te,{id:n.id,key:n.id,onHeightUpdate:l.updateHeight,className:n.visible?_e:"",style:i},"custom"===n.type?W(n.message,n):a?a(n):f.createElement(Pe,{toast:n,position:s}))})))},Le=te,Me={};!function(){if(Ae)return Me;Ae=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.parse=function(e,t){const n=new s,r=e.length;if(r<2)return n;const a=(null==t?void 0:t.decode)||l;let c=0;do{const t=e.indexOf("=",c);if(-1===t)break;const s=e.indexOf(";",c),l=-1===s?r:s;if(t>l){c=e.lastIndexOf(";",t-1)+1;continue}const u=i(e,c,t),d=o(e,t,u),m=e.slice(u,d);if(void 0===n[m]){let r=i(e,t+1,l),s=o(e,l,r);const c=a(e.slice(r,s));n[m]=c}c=l+1}while(c<r);return n},Me.serialize=function(s,i,o){const l=(null==o?void 0:o.encode)||encodeURIComponent;if(!e.test(s))throw new TypeError(`argument name is invalid: ${s}`);const c=l(i);if(!t.test(c))throw new TypeError(`argument val is invalid: ${i}`);let u=s+"="+c;if(!o)return u;if(void 0!==o.maxAge){if(!Number.isInteger(o.maxAge))throw new TypeError(`option maxAge is invalid: ${o.maxAge}`);u+="; Max-Age="+o.maxAge}if(o.domain){if(!n.test(o.domain))throw new TypeError(`option domain is invalid: ${o.domain}`);u+="; Domain="+o.domain}if(o.path){if(!r.test(o.path))throw new TypeError(`option path is invalid: ${o.path}`);u+="; Path="+o.path}if(o.expires){if(!function(e){return"[object Date]"===a.call(e)}(o.expires)||!Number.isFinite(o.expires.valueOf()))throw new TypeError(`option expires is invali
181d: ${o.expires}`);u+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(u+="; HttpOnly");o.secure&&(u+="; Secure");o.partitioned&&(u+="; Partitioned");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():void 0){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${o.priority}`)}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${o.sameSite}`)}}return u};const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function i(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function o(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function l(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(ne){return e}}}();var Oe="popstate";function De(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,i=a.history,o="POP",l=null,c=u();null==c&&(c=0,i.replaceState({...i.state,idx:c},""));function u(){return(i.state||{idx:null}).idx}function d(){o="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:o,location:p.location,delta:t})}function m(e,t){o="PUSH";let n=Fe(p.location,e,t);c=u()+1;let r=Ue(n,c),d=p.createHref(n);try{i.pushState(r,"",d)}catch(m){if(m instanceof DOMException&&"DataCloneError"===m.name)throw m;a.location.assign(d)}s&&l&&l({action:o,location:p.location,delta:1})}function h(e,t){o="REPLACE";let n=Fe(p.location,e,t);c=u();let r=Ue(n,c),a=p.createHref(n);i.replaceState(r,"",a),s&&l&&l({action:o,location:p.location,delta:0})}function f(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href);Ie(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Ve(e);r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r);return new URL(r,n)}(e)}let p={get action(){return o},get location(){return e(a,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Oe,d),l=e,()=>{a.removeEventListener(Oe,d),l=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:m,replace:h,go:e=>i.go(e)};return p}((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return Fe("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:Ve(t)}),0,e)}function Ie(e,t){if(!1===e||null==e)throw new Error(t)}function ze(e,t){if(!e)try{throw new Error(t)}catch(ne){}}function Ue(e,t){return{usr:e.state,key:e.key,idx:t}}function Fe(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?$e(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Ve({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function $e(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Be(e,t,n="/"){return function(e,t,n,r){let a="string"==typeof t?$e(t):t,s=rt(a.pathname||"/",n);if(null==s)return null;let i=qe(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let l=0;null==o&&l<i.length;++l){let e=nt(s);o=et(i[l],e,r)}return o}(e,t,n,!1)}function qe(e,t=[],n=[],r=""){let a=(e,a,s)=>{let i={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(Ie(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}
181" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let o=ot([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(Ie(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${o}".`),qe(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:Ze(o,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&(null==(n=e.path)?void 0:n.includes("?")))for(let r of He(e.path))a(e,t,r);else a(e,t)})),t}function He(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===r.length)return a?[s,""]:[s];let i=He(r.join("/")),o=[];return o.push(...i.map((e=>""===e?s:[s,e].join("/")))),a&&o.push(...i),o.map((t=>e.startsWith("/")&&""===t?"/":t))}var We=/^:[\w-]+$/,Ge=3,Ye=2,Ke=1,Qe=10,Xe=-2,Je=e=>"*"===e;function Ze(e,t){let n=e.split("/"),r=n.length;return n.some(Je)&&(r+=Xe),t&&(r+=Ye),n.filter((e=>!Je(e))).reduce(((e,t)=>e+(We.test(t)?Ge:""===t?Ke:Qe)),r)}function et(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",i=[];for(let o=0;o<r.length;++o){let e=r[o],l=o===r.length-1,c="/"===s?t:t.slice(s.length)||"/",u=tt({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=tt({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
181Object.assign(a,u.params),i.push({params:a,pathname:ot([s,u.pathname]),pathnameBase:lt(ot([s,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(s=ot([s,u.pathnameBase]))}return i}function tt(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){ze("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let s=new RegExp(a,t?void 0:"i");return[s,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=o[r]||"";i=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const a=o[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e}),{}),pathname:s,pathnameBase:i,pattern:e}}function nt(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return ze(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function rt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function at(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function st(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function it(e,t,n,r=!1){let a;"string"==typeof e?a=$e(e):(a={...e},Ie(!a.pathname||!a.pathname.includes("?"),at("?","pathname","search",a)),Ie(!a.pathname||!a.pathname.includes("#"),at("#","pathname","hash",a)),Ie(!a.search||!a.search.includes("#"),at("#","search","hash",a)));let s,i=""===e||""===a.pathname,o=i?"/":a.pathname;if(null==o)s=n;else{let e=t.length-1;if(!r&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:n,search:r="",hash:a=""}="string"==typeof e?$e(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:ct(r),hash:ut(a)}}(a,s),c=o&&"/"!==o&&o.endsWith("/"),u=(i||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var ot=e=>e.join("/").replace(/\/\/+/g,"/"),lt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ct=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ut=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var dt=["POST","PUT","PATCH","DELETE"];new Set(dt);var mt=["GET",...dt];new Set(mt);var ht=f.createContext(null);ht.displayName="DataRouter";var ft=f.createContext(null);ft.displayName="DataRouterState";var pt=f.createContext({isTransitioning:!1});pt.displayName="ViewTransition",f.createContext(new Map).displayName="Fetchers",f.createContext(null).displayName="Await";var gt=f.createContext(null);gt.displayName="Navigation";var yt=f.createContext(null);yt.displayName="Location";var vt=f.createContext({outlet:null,matches:[],isDataRoute:!1});vt.displayName="Route";var xt=f.createContext(null);function bt(){return null!=f.useContext(yt)}function wt(){return Ie(bt(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(yt).location}xt.displayName="RouteError";var jt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nt(e){f.useContext(gt).static||f.useLayoutEffect(e)}function kt(){let{isDataRoute:e}=f.useContext(vt);return e?function(){let{router:e}=function(e){let t=f.useContext(ht);return Ie(t,Rt(e)),t}("useNavigate"),t=Lt("useNavigate"),n=f.useRef(!1);return Nt((()=>{n.current=!0})),f.useCallback((async(r,a={})=>{ze(n.current,jt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))}),[e,t])}():function(){Ie(bt(),"useNavigate() may be used only in the context of a <Router> component.");
181let e=f.useContext(ht),{basename:t,navigator:n}=f.useContext(gt),{matches:r}=f.useContext(vt),{pathname:a}=wt(),s=JSON.stringify(st(r)),i=f.useRef(!1);return Nt((()=>{i.current=!0})),f.useCallback(((r,o={})=>{if(ze(i.current,jt),!i.current)return;if("number"==typeof r)return void n.go(r);let l=it(r,JSON.parse(s),a,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:ot([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)}),[t,n,s,a,e])}()}function St(){let{matches:e}=f.useContext(vt),t=e[e.length-1];return t?t.params:{}}function Et(e,{relative:t}={}){let{matches:n}=f.useContext(vt),{pathname:r}=wt(),a=JSON.stringify(st(n));return f.useMemo((()=>it(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function Ct(e,t,n,r){var a;Ie(bt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=f.useContext(gt),{matches:i}=f.useContext(vt),o=i[i.length-1],l=o?o.params:{},c=o?o.pathname:"/",u=o?o.pathnameBase:"/",d=o&&o.route;{let e=d&&d.path||"";Ot(c,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) 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.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let m,h=wt();if(t){let e="string"==typeof t?$e(t):t;Ie("/"===u||(null==(a=e.pathname)?void 0:a.startsWith(u)),`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 "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),m=e}else m=h;let p=m.pathname||"/",g=p;if("/"!==u){let e=u.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=Be(e,{pathname:g});ze(d||null!=y,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),ze(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`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 v=function(e,t=[],n=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,a=null==n?void 0:n.errors;if(null!=a){let e=r.findIndex((e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id])));Ie(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),r=r.slice(0,Math.min(r.length,e+1))}let s=!1,i=-1;if(n)for(let o=0;o<r.length;o++){let e=r[o];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(i=o),e.route.id){let{loaderData:t,errors:a}=n,o=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!a||void 0===a[e.route.id]);if(e.route.lazy||o){s=!0,r=i>=0?r.slice(0,i+1):[r[0]];break}}}return r.reduceRight(((e,o,l)=>{let c,u=!1,d=null,m=null;n&&(c=a&&o.route.id?a[o.route.id]:void 0,d=o.route.errorElement||At,s&&(i<0&&0===l?(Ot("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,m=null):i===l&&(u=!0,m=o.route.hydrateFallbackElement||null)));let h=t.concat(r.slice(0,l+1)),p=()=>{let t;return t=c?d:u?m:o.route.Component?f.createElement(o.route.Component,null):o.route.element?o.route.element:e,f.createElement(_t,{match:o,routeC
181ontext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===l)?f.createElement(Tt,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()}),null)}(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:ot([u,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:ot([u,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&v?f.createElement(yt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},v):v}function Pt(){let e=function(){var e;let t=f.useContext(xt),n=function(e){let t=f.useContext(ft);return Ie(t,Rt(e)),t}("useRouteError"),r=Lt("useRouteError");if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},i=null;return i=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:s},"ErrorBoundary")," or"," ",f.createElement("code",{style:s},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:a},n):null,i)}f.createContext(null);var At=f.createElement(Pt,null),Tt=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){}render(){return void 0!==this.state.error?f.createElement(vt.Provider,{value:this.props.routeContext},f.createElement(xt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function _t({routeContext:e,match:t,children:n}){let r=f.useContext(ht);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(vt.Provider,{value:e},n)}function Rt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lt(e){let t=function(e){let t=f.useContext(vt);return Ie(t,Rt(e)),t}(e),n=t.matches[t.matches.length-1];return Ie(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Mt={};function Ot(e,t,n){t||Mt[e]||(Mt[e]=!0,ze(!1,n))}function Dt({to:e,replace:t,state:n,relative:r}){Ie(bt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=f.useContext(gt);ze(!a,"<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:s}=f.useContext(vt),{pathname:i}=wt(),o=kt(),l=it(e,st(s),i,"path"===r),c=JSON.stringify(l);return f.useEffect((()=>{o(JSON.parse(c),{replace:t,state:n,relative:r})}),[o,c,r,t,n]),null}function It(e){Ie(!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 zt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){Ie(!bt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),o=f.useMemo((()=>({basename:i,navigator:a,static:s,future:{}})),[i,a,s]);"string"==typeof n&&(n=$e(n));let{pathname:l="/",search:c="",hash:u="",state:d=null,key:m="default"}=n,h=f.useMemo((()=>{let e=rt(l,i);return null==e?null:{location:{pathname:e,search:c,hash:u,state:d,key:m},navigationType:r}}),[i,l,c,u,d,m,r]);
181return ze(null!=h,`<Router basename="${i}"> is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:f.createElement(gt.Provider,{value:o},f.createElement(yt.Provider,{children:t,value:h}))}function Ut({children:e,location:t}){return Ct(Ft(e),t)}function Ft(e,t=[]){let n=[];return f.Children.forEach(e,((e,r)=>{if(!f.isValidElement(e))return;let a=[...t,r];if(e.type===f.Fragment)return void n.push.apply(n,Ft(e.props.children,a));Ie(e.type===It,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=Ft(e.props.children,a)),n.push(s)})),n}f.memo((function({routes:e,future:t,state:n}){return Ct(e,void 0,n,t)}));var Vt="get",$t="application/x-www-form-urlencoded";function Bt(e){return null!=e&&"string"==typeof e.tagName}function qt(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var Ht=null;var Wt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gt(e){return null==e||Wt.has(e)?e:(ze(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$t}"`),null)}function Yt(e,t){let n,r,a,s,i;if(Bt(o=e)&&"form"===o.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?rt(i,t):null,n=e.getAttribute("method")||Vt,a=Gt(e.getAttribute("enctype"))||$t,s=new FormData(e)}else if(function(e){return Bt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Bt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||i.getAttribute("action");if(r=o?rt(o,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Vt,a=Gt(e.getAttribute("formenctype"))||Gt(i.getAttribute("enctype"))||$t,s=new FormData(i,e),!function(){if(null===Ht)try{new FormData(document.createElement("form"),0),Ht=!1}catch(ne){Ht=!0}return Ht}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";s.append(`${e}x`,"0"),s.append(`${e}y`,"0")}else t&&s.append(t,r)}}else{if(Bt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Vt,r=null,a=$t,i=e}var o;return s&&"text/plain"===a&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:i}}function Kt(e,t){if(!1===e||null==e)throw new Error(t)}function Qt(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function Xt(e,t,n){return function(e,t){let n=new Set;return new Set(t),e.reduce(((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Qt).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}function Jt(e,t,n,r,a,s){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,o=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null==(r=n[t].route.path)?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===s?t.filter(((e,t)=>i(e,t)||o(e,t))):"data"===s?t.filter(((t,s)=>{var l;let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(i(t,s)||o(t,s))return!0;
181if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:(null==(l=n[0])?void 0:l.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Zt(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a})).flat(1),[...new Set(r)];var r}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function en(){let e=f.useContext(ht);return Kt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}var tn=f.createContext(void 0);function nn(){let e=f.useContext(tn);return Kt(e,"You must render this element inside a <HydratedRouter> element"),e}function rn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function an({page:e,...t}){let{router:n}=en(),r=f.useMemo((()=>Be(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?f.createElement(sn,{page:e,matches:r,...t}):null}function sn({page:e,matches:t,...n}){let r=wt(),{manifest:a,routeModules:s}=nn(),{basename:i}=en(),{loaderData:o,matches:l}=function(){let e=f.useContext(ft);return Kt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),c=f.useMemo((()=>Jt(e,t,l,a,r,"data")),[e,t,l,a,r]),u=f.useMemo((()=>Jt(e,t,l,a,r,"assets")),[e,t,l,a,r]),d=f.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach((e=>{var t;let r=a.routes[e.route.id];r&&r.hasLoader&&(!c.some((t=>t.route.id===e.route.id))&&e.route.id in o&&(null==(t=s[e.route.id])?void 0:t.shouldRevalidate)||r.hasClientLoader?l=!0:n.add(e.route.id))})),0===n.size)return[];let u=function(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===rt(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}(e,i);return l&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[i,o,r,a,c,t,e,s]),m=f.useMemo((()=>Zt(u,a)),[u,a]),h=function(e){let{manifest:t,routeModules:n}=nn(),[r,a]=f.useState([]);return f.useEffect((()=>{let r=!1;return Xt(e,t,n).then((e=>{r||a(e)})),()=>{r=!0}}),[e,t,n]),r}(u);return f.createElement(f.Fragment,null,d.map((e=>f.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>f.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>f.createElement("link",{key:e,...t}))))}function on(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}tn.displayName="FrameworkContext";var ln="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{ln&&(window.__reactRouterVersion="7.6.2")}catch(ne){}function cn({basename:e,children:t,window:n}){let r=f.useRef();null==r.current&&(r.current=De({window:n,v5Compat:!0}));let a=r.current,[s,i]=f.useState({action:a.action,location:a.location}),o=f.useCallback((e=>{f.startTransition((()=>i(e)))}),[i]);return f.useLayoutEffect((()=>a.listen(o)),[a,o]),f.createElement(zt,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var un=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dn=f.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:s,state:i,target:o,to:l,preventScrollReset:c,viewTransition:u,...d},m){let h,{basename:p}=f.useContext(gt),g="string"==typeof l&&un.test(l),y=!1;if("string"==typeof l&&g&&(h=l,ln))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=rt(t.pathname,p);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:y=!0}catch(ne){ze(!1,`<Link to="${l}">
181 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=function(e,{relative:t}={}){Ie(bt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(gt),{hash:a,pathname:s,search:i}=Et(e,{relative:t}),o=s;return"/"!==n&&(o="/"===s?n:ot([n,s])),r.createHref({pathname:o,search:i,hash:a})}(l,{relative:r}),[x,b,w]=function(e,t){let n=f.useContext(tn),[r,a]=f.useState(!1),[s,i]=f.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,m=f.useRef(null);f.useEffect((()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{i(e.isIntersecting)}))}),{threshold:.5});return m.current&&e.observe(m.current),()=>{e.disconnect()}}}),[e]),f.useEffect((()=>{if(r){let e=setTimeout((()=>{i(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{a(!0)},p=()=>{a(!1),i(!1)};return n?"intent"!==e?[s,m,{}]:[s,m,{onFocus:rn(o,h),onBlur:rn(l,p),onMouseEnter:rn(c,h),onMouseLeave:rn(u,p),onTouchStart:rn(d,h)}]:[!1,m,{}]}(n,d),j=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:i}={}){let o=kt(),l=wt(),c=Et(e,{relative:s});return f.useCallback((u=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(u,t)){u.preventDefault();let t=void 0!==n?n:Ve(l)===Ve(c);o(e,{replace:t,state:r,preventScrollReset:a,relative:s,viewTransition:i})}}),[l,o,c,n,r,t,e,a,s,i])}(l,{replace:s,state:i,target:o,preventScrollReset:c,relative:r,viewTransition:u});let N=f.createElement("a",{...d,...w,href:h||v,onClick:y||a?e:function(t){e&&e(t),t.defaultPrevented||j(t)},ref:on(m,b),target:o,"data-discover":g||"render"!==t?void 0:"true"});return x&&!g?f.createElement(f.Fragment,null,N,f.createElement(an,{page:v})):N}));function mn(e){let t=f.useContext(ht);return Ie(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}function hn(e){ze("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=f.useRef(qt(e)),n=f.useRef(!1),r=wt(),a=f.useMemo((()=>function(e,t){let n=qt(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))}
181)),n}(r.search,n.current?null:t.current)),[r.search]),s=kt(),i=f.useCallback(((e,t)=>{const r=qt("function"==typeof e?e(a):e);n.current=!0,s("?"+r,t)}),[s,a]);return[a,i]}dn.displayName="Link",f.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:s,viewTransition:i,children:o,...l},c){let u=Et(s,{relative:l.relative}),d=wt(),m=f.useContext(ft),{navigator:h,basename:p}=f.useContext(gt),g=null!=m&&function(e,t={}){let n=f.useContext(pt);Ie(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mn("useViewTransitionState"),a=Et(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=rt(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=rt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=tt(a.pathname,i)||null!=tt(a.pathname,s)}(u)&&!0===i,y=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,v=d.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(v=v.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&p&&(x=rt(x,p)||x);const b="/"!==y&&y.endsWith("/")?y.length-1:y.length;let w,j=v===y||!r&&v.startsWith(y)&&"/"===v.charAt(b),N=null!=x&&(x===y||!r&&x.startsWith(y)&&"/"===x.charAt(y.length)),k={isActive:j,isPending:N,isTransitioning:g},S=j?e:void 0;w="function"==typeof n?n(k):[n,j?"active":null,N?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof a?a(k):a;return f.createElement(dn,{...l,"aria-current":S,className:w,ref:c,style:E,to:s,viewTransition:i},"function"==typeof o?o(k):o)})).displayName="NavLink",f.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:i=Vt,action:o,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,...m},h)=>{let p=function(){let{router:e}=mn("useSubmit"),{basename:t}=f.useContext(gt),n=Lt("useRouteId");return f.useCallback((async(r,a={})=>{let{action:s,method:i,encType:o,formData:l,body:c}=Yt(r,t);if(!1===a.navigate){let t=a.fetcherKey||pn();await e.fetch(t,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:l,body:c,formMethod:a.method||i,formEncType:a.encType||o,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:l,body:c,formMethod:a.method||i,formEncType:a.encType||o,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[e,t,n])}(),g=function(e,{relative:t}={}){let{basename:n}=f.useContext(gt),r=f.useContext(vt);Ie(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Et(e||".",{relative:t})},i=wt();if(null==e){s.search=i.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(s.pathname="/"===s.pathname?n:ot([n,s.pathname]));return Ve(s)}(o,{relative:c}
181),y="get"===i.toLowerCase()?"get":"post",v="string"==typeof o&&un.test(o);return f.createElement("form",{ref:h,method:y,action:g,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=(null==r?void 0:r.getAttribute("formmethod"))||i;p(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:a,state:s,relative:c,preventScrollReset:u,viewTransition:d})},...m,"data-discover":v||"render"!==e?void 0:"true"})})).displayName="Form";var fn=0,pn=()=>`__${String(++fn)}__`;var gn=T();const yn={},vn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map((e=>Promise.resolve(e).then((e=>({status:"fulfilled",value:e})),(e=>({status:"rejected",reason:e}))))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),a=(null==n?void 0:n.nonce)||(null==n?void 0:n.getAttribute("nonce"));r=e(t.map((e=>{if((e=function(e){return"/servicios/"+e}(e))in yn)return;yn[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const r=document.createElement("link");return r.rel=t?"stylesheet":"modulepreload",t||(r.as="script"),r.crossOrigin="",r.href=e,a&&r.setAttribute("nonce",a),document.head.appendChild(r),t?new Promise(((t,n)=>{r.addEventListener("load",t),r.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}function a(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then((t=>{for(const e of t||[])"rejected"===e.status&&a(e.reason);return e().catch(a)}))},xn={HOME:{path:"/inicio",title:"Página de Inicio",description:"Bienvenido a nuestra aplicación",exact:!0},ABOUT:{path:"/nosotros",title:"Acerca de Nosotros",description:"Conoce más sobre nuestra empresa",exact:!0},CONTACT:{path:"/contacto",title:"Contacto",description:"Ponte en contacto con nosotros",exact:!0},MI_CIUDAD:{path:"/mi-ciudad",title:"Mi Ciudad",description:"Información sobre la ciudad de Bogotá",exact:!0},QUE_HACER:{path:"/que-hacer",title:"¿Qué hacer?",description:"Actividades y trámites disponibles",exact:!0},SERVICIOS:{path:"/servicios",title:"Servicios",description:"Servicios disponibles para los ciudadanos",exact:!0},YO_PARTICIPO:{path:"/yo-participo",title:"Yo Participo",description:"Participación ciudadana",exact:!0},ASI_VAMOS:{path:"/asi-vamos",title:"Así Vamos",description:"Indicadores y avances de la ciudad",exact:!0},INTERNACIONAL:{path:"/internacional",title:"Internacional",description:"Actividades y relaciones internacionales",exact:!0},SERVICIO_DETALLE:{path:"/servicios/:id",title:"Detalle de Servicio",description:"Información detallada sobre el servicio",exact:!0},NEWS:{path:"/noticias",title:"Novedades en el Servicio",description:"Últimas actualizaciones y novedades de servicios",exact:!0},NEWS_DETAIL:{path:"/noticias/:id",title:"Detalle de Novedad",description:"Información detallada sobre la novedad",exact:!0},TRAMITE_DETALLE:{path:"/tramites/:id/:slug?",title:"Detalle de Trámite",description:"Información detallada del trámite",exact:!0},RESERVATION:{path:"/reservar-turno",title:"Reserva de Turnos",description:"Sistema de reserva de turnos para atención presencial",exact:!0},GEOVISOR:{path:"/geovisor",title:"Geovisor",description:"Ubica servicios y puntos de atención cercanos",exact:!0},PAGOS_BOGOTA:{path:"/pagos-bogota",title:"Pagos Bogotá",description:"Consulta y gestiona tus pagos pendientes en Bogotá",exact:!0},PAGOS_PENDIENTES:{path:"/pagos-pendientes",title:"Pagos Pendientes",description:"Listado de pagos pendientes encontrados",exact:!0},LOGIN:{path:"/iniciar-sesion",title:"Inicio de sesión",description:"Iniciar Sesión",exact:!0},REGISTER:{path:"/registrarse",title:"Registro de usuario",description:"Crear una nueva cuenta",exact:!0},PROFILE:{path:"/perfil",title:"Perfil de Usuario",description:"Gestiona tu perfil de usuario",exact:!0,requiresAuth:!0},SEARCH:{path:"/busqueda",title:"Resultados de Búsqueda",description:"Resultados de la búsqueda",exact:!0},ADMIN_LOGIN:{path:"/admin/login",title:"Login Administrativo",description:"Iniciar sesión en el panel de administración",exact:!0},ADMIN:{path:"/admin",title:"Dashboard Administrativo",description:"Panel de control administrativo",exact:!0,requiresAuth:!0}
181,ADMIN_FAQS:{path:"/admin/faqs",title:"Gestión de FAQs",description:"Administración de preguntas frecuentes",exact:!0,requiresAuth:!0},ADMIN_NEWS:{path:"/admin/noticias",title:"Gestión de Noticias",description:"Administración de noticias y novedades",exact:!0,requiresAuth:!0},ADMIN_ALERTS:{path:"/admin/alertas",title:"Gestión de Alertas",description:"Administración de alertas del sistema",exact:!0,requiresAuth:!0},ADMIN_RIBBON:{path:"/admin/ribbon",title:"Configuración del Ribbon",description:"Administrar el ribbon de comentarios",exact:!0,requiresAuth:!0},ADMIN_USERS:{path:"/admin/usuarios",title:"Gestión de Usuarios",description:"Administración de usuarios del sistema",exact:!0,requiresAuth:!0},ADMIN_CONTENT:{path:"/admin/contenido",title:"Gestión de Contenido",description:"Administración de contenido del portal",exact:!0,requiresAuth:!0},ADMIN_SETTINGS:{path:"/admin/configuracion",title:"Configuración",description:"Configuración del sistema",exact:!0,requiresAuth:!0},ADMIN_PROFILE:{path:"/admin/perfil",title:"Perfil",description:"Perfil de administrador",exact:!0,requiresAuth:!0},ADMIN_EMAIL:{path:"/admin/email",title:"Configuración de Email",description:"Configurar servidor de correo electrónico",exact:!0,requiresAuth:!0},ADMIN_ADMIN_USERS:{path:"/admin/administradores",title:"Gestión de Administradores",description:"Administrar usuarios administradores del sistema",exact:!0,requiresAuth:!0},DASHBOARD:{path:"/panel",title:"Panel Principal",description:"Panel de control principal",exact:!0,requiresAuth:!0},NOT_FOUND:{path:"*",title:"Página no encontrada",description:"La página que buscas no existe"}},bn=e=>{var t;return(null==(t=xn[e])?void 0:t.path)||"/"},wn=p.lazy((()=>vn((()=>import("./Home-CJGOY6go.js").then((e=>e.H))),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])))),jn=p.lazy((()=>vn((()=>import("./ServiceRoute-Cdb62fia.js")),__vite__mapDeps([16,17,2,3,4,5,6,18,8,19,20,21,22,12,14])))),Nn=p.lazy((()=>vn((()=>import("./index-NcyD1jhd.js")),__vite__mapDeps([23,17,2,3,4,5,6,18,13,8,24,10,9])))),kn=p.lazy((()=>vn((()=>import("./index-CFDhE8Pu.js")),__vite__mapDeps([25,26,17,2,3,4,5,6,18])))),Sn=p.lazy((()=>vn((()=>import("./ReservationPage-BbmYdLqh.js")),__vite__mapDeps([27,17,2,3,4,5,6,18,14])))),En=p.lazy((()=>vn((()=>import("./index-2RF33ddN.js")),__vite__mapDeps([28,17,2,3,4,5,6,18,8,19,20,21,22,12,14])))),Cn=p.lazy((()=>vn((()=>import("./SearchResults-CX3GBtwI.js")),__vite__mapDeps([29,17,2,3,4,5,6,18,7,8,30,9,19,31])))),Pn=p.lazy((()=>vn((()=>import("./Login-brnQinRG.js")),__vite__mapDeps([32,33,2,3,4,5,6,34])))),An=p.lazy((()=>vn((()=>import("./Register-OhdeB2fW.js")),[]))),Tn=p.lazy((()=>vn((()=>import("./Callback-DW3s5GtU.js")),[]))),_n=p.lazy((()=>vn((()=>import("./Profile-Bxi5uj5W.js")),__vite__mapDeps([35,33,2,3,4,5,6])))),Rn=p.lazy((()=>vn((()=>import("./Geovisor-za4ZinJX.js")),__vite__mapDeps([36,1,2,3,4,5,6,18,14])))),Ln=p.lazy((()=>vn((()=>import("./PagosBogota-CvtMUV6J.js")),__vite__mapDeps([37,2,3,4,38,39,40,30,11,5,18,41,10,42])))),Mn=p.lazy((()=>vn((()=>import("./PagosPendientes-yO9vV6HQ.js")),__vite__mapDeps([43,3,21,2,4,18,38,39,44])))),On=p.lazy((()=>vn((()=>import("./NotFound-DVGhGWNK.js")),__vite__mapDeps([45,1,2,3,4,5,6])).catch((()=>({default:()=>c.jsxs("div",{className:"flex flex-col items-center justify-center h-screen",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl",children:"Página no encontrada"})]})}))))),Dn=[{path:xn.HOME.path,element:c.jsx(wn,{})},{path:xn.NEWS.path,element:c.jsx(kn,{})},{path:"/servicios/grupo/:slug",element:c.jsx(Nn,{})},{path:"/servicios/servicio-:id/:slug?",element:c.jsx(jn,{})},{path:"/servicios/:id(\\d+)/:slug?",element:c.jsx(jn,{})},{path:"/servicios/:slug",element:c.jsx(jn,{})},{path:"/tramites/tramite-:id/:slug?",element:c.jsx(En,{})},{path:"/tramites/:id(\\d+)/:slug?",element:c.jsx(En,{})},{path:"/tramites/:slug",element:c.jsx(En,{})},{path:xn.RESERVATION.path,element:c.jsx(Sn,{})},{path:xn.GEOVISOR.path,element:c.jsx(Rn,{})},{path:xn.PAGOS_BOGOTA.path,element:c.jsx(Ln,{})},{path:xn.PAGOS_PENDIENTES.path,element:c.jsx(Mn,{})},{path:xn.LOGIN.path,element:c.jsx(Pn,{})},{path:xn.REGISTER.path,element:c.jsx(An,{})},{path:"/callback",element:c.jsx(Tn,{})},{path:xn.PROFILE.path,element:c.jsx(_n,{})},{path:"/busqueda",element:c.jsx(Cn,{})},{path:xn.NOT_FOUND.path,element:c.jsx(On,{})}],In=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim();
182/**
183 * @license lucide-react v0.482.0 - ISC
184 *
185 * This source code is licensed under the ISC license.
186 * See the LICENSE file in the root directory of this source tree.
187 */
188var zn={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"};
189/**
190 * @license lucide-react v0.482.0 - ISC
191 *
192 * This source code is licensed under the ISC license.
193 * See the LICENSE file in the root directory of this source tree.
194 */const Un=f.forwardRef((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...o},l)=>f.createElement("svg",{ref:l,...zn,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:In("lucide",a),...o},[...i.map((([e,t])=>f.createElement(e,t))),...Array.isArray(s)?s:[s]]))),Fn=(e,t)=>{const n=f.forwardRef((({className:n,...r},a)=>{return f.createElement(Un,{ref:a,iconNode:t,className:In(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},Vn=Fn("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),$n=Fn("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Bn=Fn("Bell",[["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"}]]),qn=Fn("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Hn=Fn("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),Wn=Fn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Gn=Fn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Yn=Fn("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Kn=Fn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Qn=Fn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Xn=Fn("CircleAlert",[["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"}]]),Jn=Fn("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Zn=Fn("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),er=Fn("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),tr=Fn("CircleX",[["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"}]]),nr=Fn("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),rr=Fn("Contrast",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 18a6 6 0 0 0 0-12v12z",key:"j4l70d"}]]),ar=Fn("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}
194]]),sr=Fn("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),ir=Fn("EyeOff",[["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"}]]),or=Fn("Eye",[["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"}]]),lr=Fn("FileText",[["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"}]]),cr=Fn("House",[["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"}]]),ur=Fn("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),dr=Fn("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]),mr=Fn("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),hr=Fn("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),fr=Fn("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),pr=Fn("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),gr=Fn("Mail",[["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"}]]),yr=Fn("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),vr=Fn("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),xr=Fn("MessageSquare",[["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"}]]),br=Fn("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),wr=Fn("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),jr=Fn("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),Nr=Fn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),kr=Fn("Send",[["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"}]]),Sr=Fn("ServerOff",[["path",{d:"M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5",key:"bt2siv"}],["path",{d:"M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z",key:"1hjrv1"}],["path",{d:"M22 17v-1a2 2 0 0 0-2-2h-1",key:"1iynyr"}],["path",{d:"M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z",key:"161ggg"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),Er=Fn("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),Cr=Fn("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Pr=Fn("Shield",[["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",ke
194y:"oel41y"}]]),Ar=Fn("SquarePen",[["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"}]]),Tr=Fn("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),_r=Fn("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Rr=Fn("Trash",[["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"}]]),Lr=Fn("TrendingDown",[["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"}]]),Mr=Fn("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),Or=Fn("TriangleAlert",[["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"}]]),Dr=Fn("UserCheck",[["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"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]),Ir=Fn("UserX",[["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:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]),zr=Fn("User",[["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"}]]),Ur=Fn("Users",[["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"}]]),Fr=Fn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vr=Fn("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),$r=Fn("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),Br=f.createContext({});
195/**
196 * @license lucide-react v0.482.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */function qr(e){const t=f.useRef(null);return null===t.current&&(t.current=e()),t.current}const Hr="undefined"!=typeof window,Wr=Hr?f.useLayoutEffect:f.useEffect,Gr=f.createContext(null);function Yr(e,t){-1===e.indexOf(t)&&e.push(t)}function Kr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Qr=(e,t,n)=>n>t?t:n<e?e:n;const Xr={},Jr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Zr(e){return"object"==typeof e&&null!==e}const ea=e=>/^0[^.\s]+$/u.test(e);function ta(e){let t;return()=>(void 0===t&&(t=e()),t)}const na=e=>e,ra=(e,t)=>n=>t(e(n)),aa=(...e)=>e.reduce(ra),sa=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};class ia{constructor(){this.subscriptions=[]}add(e){return Yr(this.subscriptions,e),()=>Kr(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){const r=this.subscriptions[a];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const oa=e=>1e3*e,la=e=>e/1e3;function ca(e,t){return t?e*(1e3/t):0}const ua=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function da(e,t,n,r){if(e===t&&n===r)return na;const a=t=>function(e,t,n,r,a){let s,i,o=0;do{i=t+(n-t)/2,s=ua(i,r,a)-e,s>0?n=i:t=i}while(Math.abs(s)>1e-7&&++o<12);return i}(t,0,1,e,n);return e=>0===e||1===e?e:ua(a(e),t,r)}const ma=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ha=e=>t=>1-e(1-t),fa=da(.33,1.53,.69,.99),pa=ha(fa),ga=ma(pa),ya=e=>(e*=2)<1?.5*pa(e):.5*(2-Math.pow(2,-10*(e-1))),va=e=>1-Math.sin(Math.acos(e)),xa=ha(va),ba=ma(va),wa=da(.42,0,1,1),ja=da(0,0,.58,1),Na=da(.42,0,.58,1),ka=e=>Array.isArray(e)&&"number"==typeof e[0],Sa={linear:na,easeIn:wa,easeInOut:Na,easeOut:ja,circIn:va,circInOut:ba,circOut:xa,backIn:pa,backInOut:ga,backOut:fa,anticipate:ya},Ea=e=>{if(ka(e)){e.length;const[t,n,r,a]=e;return da(t,n,r,a)}return"string"==typeof e?Sa[e]:e},Ca=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Pa={value:null};function Aa(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Ca.reduce(((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,a=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){i.has(t)&&(u.schedule(t),e()),l++,t(o)}const u={schedule:(e,t=!1,s=!1)=>{const o=s&&a?n:r;return t&&i.add(e),o.has(e)||o.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>
200{o=e,a?s=!0:(a=!0,[n,r]=[r,n],n.forEach(c),t&&Pa.value&&Pa.value.frameloop[t].push(l),l=0,n.clear(),a=!1,s&&(s=!1,u.process(e)))}};return u}(s,t?n:void 0),e)),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:m,render:h,postRender:f}=i,p=()=>{const s=Xr.useManualTiming?a.timestamp:performance.now();n=!1,Xr.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(s-a.timestamp,40),1)),a.timestamp=s,a.isProcessing=!0,o.process(a),l.process(a),c.process(a),u.process(a),d.process(a),m.process(a),h.process(a),f.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:Ca.reduce(((t,s)=>{const o=i[s];return t[s]=(t,s=!1,i=!1)=>(n||(n=!0,r=!0,a.isProcessing||e(p)),o.schedule(t,s,i)),t}),{}),cancel:e=>{for(let t=0;t<Ca.length;t++)i[Ca[t]].cancel(e)},state:a,steps:i}}const{schedule:Ta,cancel:_a,state:Ra,steps:La}=Aa("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:na,!0);let Ma;function Oa(){Ma=void 0}const Da={now:()=>(void 0===Ma&&Da.set(Ra.isProcessing||Xr.useManualTiming?Ra.timestamp:performance.now()),Ma),set:e=>{Ma=e,queueMicrotask(Oa)}},Ia=e=>t=>"string"==typeof t&&t.startsWith(e),za=Ia("--"),Ua=Ia("var(--"),Fa=e=>!!Ua(e)&&Va.test(e.split("/*")[0].trim()),Va=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$a={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ba={...$a,transform:e=>Qr(0,1,e)},qa={...$a,default:1},Ha=e=>Math.round(1e5*e)/1e5,Wa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Ga=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ya=(e,t)=>n=>Boolean("string"==typeof n&&Ga.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ka=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[a,s,i,o]=r.match(Wa);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(i),alpha:void 0!==o?parseFloat(o):1}},Qa={...$a,transform:e=>Math.round((e=>Qr(0,255,e))(e))},Xa={test:Ya("rgb","red"),parse:Ka("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qa.transform(e)+", "+Qa.transform(t)+", "+Qa.transform(n)+", "+Ha(Ba.transform(r))+")"};const Ja={test:Ya("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:Xa.transform},Za=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),es=Za("deg"),ts=Za("%"),ns=Za("px"),rs=Za("vh"),as=Za("vw"),ss=(()=>({...ts,parse:e=>ts.parse(e)/100,transform:e=>ts.transform(100*e)}))(),is={test:Ya("hsl","hue"),parse:Ka("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ts.transform(Ha(t))+", "+ts.transform(Ha(n))+", "+Ha(Ba.transform(r))+")"},os={test:e=>Xa.test(e)||Ja.test(e)||is.test(e),parse:e=>Xa.test(e)?Xa.parse(e):is.test(e)?is.parse(e):Ja.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Xa.transform(e):is.transform(e)},ls=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const cs="number",us="color",ds=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ms(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const i=t.replace(ds,(e=>(os.test(e)?(r.color.push(s),a.push(us),n.push(os.parse(e))):e.startsWith("var(")?(r.var.push(s),a.push("var"),n.push(e)):(r.number.push(s),a.push(cs),n.push(parseFloat(e))),++s,"${}"))).split("${}");return{values:n,split:i,indexes:r,types:a}}function hs(e){return ms(e).values}function fs(e){const{split:t,types:n}=ms(e),r=t.length;return e=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],void 0!==e[s]){const t=n[s];a+=t===cs?Ha(e[s]):t===us?os.transform(e[s]):e[s]}return a}}
200const ps=e=>"number"==typeof e?0:e;const gs={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(Wa))?void 0:t.length)||0)+((null==(n=e.match(ls))?void 0:n.length)||0)>0},parse:hs,createTransformer:fs,getAnimatableNone:function(e){const t=hs(e);return fs(e)(t.map(ps))}};function ys(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vs(e,t){return n=>n>0?t:e}const xs=(e,t,n)=>e+(t-e)*n,bs=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},ws=[Ja,Xa,is];function js(e){const t=(n=e,ws.find((e=>e.test(n))));var n;if(!Boolean(t))return!1;let r=t.parse(e);return t===is&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,s=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;a=ys(o,r,e+1/3),s=ys(o,r,e),i=ys(o,r,e-1/3)}else a=s=i=n;return{red:Math.round(255*a),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}(r)),r}const Ns=(e,t)=>{const n=js(e),r=js(t);if(!n||!r)return vs(e,t);const a={...n};return e=>(a.red=bs(n.red,r.red,e),a.green=bs(n.green,r.green,e),a.blue=bs(n.blue,r.blue,e),a.alpha=xs(n.alpha,r.alpha,e),Xa.transform(a))},ks=new Set(["none","hidden"]);function Ss(e,t){return n=>xs(e,t,n)}function Es(e){return"number"==typeof e?Ss:"string"==typeof e?Fa(e)?vs:os.test(e)?Ns:As:Array.isArray(e)?Cs:"object"==typeof e?os.test(e)?Ns:Ps:vs}function Cs(e,t){const n=[...e],r=n.length,a=e.map(((e,n)=>Es(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}}function Ps(e,t){const n={...e,...t},r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=Es(e[a])(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const As=(e,t)=>{const n=gs.createTransformer(t),r=ms(e),a=ms(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?ks.has(e)&&!a.values.length||ks.has(t)&&!r.values.length?function(e,t){return ks.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):aa(Cs(function(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],i=e.indexes[s][r[s]],o=e.values[i]??0;n[a]=o,r[s]++}return n}(r,a),a.values),n):vs(e,t)};function Ts(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return xs(e,t,n);return Es(e)(e,t)}const _s=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>Ta.update(t,e),stop:()=>_a(t),now:()=>Ra.isProcessing?Ra.timestamp:Da.now()}},Rs=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=e(s/(a-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Ls=2e4;function Ms(e){let t=0;let n=e.next(t);for(;!n.done&&t<Ls;)t+=50,n=e.next(t);return t>=Ls?1/0:t}function Os(e,t,n){const r=Math.max(t-5,0);return ca(n-e(r),t-r)}const Ds=100,Is=10,zs=1,Us=0,Fs=800,Vs=.3,$s=.3,Bs={granular:.01,default:2},qs={granular:.005,default:.5},Hs=.01,Ws=10,Gs=.05,Ys=1;function Ks({duration:e=Fs,bounce:t=Vs,velocity:n=Us,mass:r=zs}){let a,s,i=1-t;i=Qr(Gs,Ys,i),e=Qr(Hs,Ws,la(e)),i<1?(a=t=>{const r=t*i,a=r*e;return.001-(r-n)/Xs(t,i)*Math.exp(-a)},s=t=>{const r=t*i*e,s=r*n+n,o=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Xs(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((s-o)*l)/c}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,s=t=>Math.exp(-t*e)*(e*e*(n-t)));const o=function(e,t,n){let r=n;for(let a=1;a<Qs;a++)r-=e(r)/t(r);return r}(a,s,5/e);if(e=oa(e),isNaN(o))return{stiffness:Ds,damping:Is,duration:e};{const t=Math.pow(o,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}const Qs=12;function Xs(e,t){return e*Math.sqrt(1-t*t)}const Js=["duration","bounce"],Zs=["stiffness","damping","mass"];function ei(e,t){return t.some((t=>void 0!==e[t]))}function ti(e=$s,t=Vs){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:h}=function(e){let t={velocity:Us,stiffness:Ds,damping:Is,mass:zs,isResolvedFromDuration:!1,...e};if(!ei(e,Zs)&&ei(e,Js))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),a=r*r,s=2*Qr(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:zs,stiffness:a,damping:s}}else{const n=Ks(e);t={...t,...n,mass:zs},t.isResolvedFromDuration=!0}return t}({...n,velocity:-la(n.velocity||0)}),f=m||0,p=c/(2*Math.sqrt(l*u)),g=i-s,y=la(Math.sqrt(l/u)),v=Math.abs(g)<5;let x;if(r||(r=v?Bs.granular:Bs.default),a||(a=v?qs.granular:qs.default),p<1){const e=Xs(y,p);x=t=>{const n=Math.exp(-p*y*t);return i-n*((f+p*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===p)x=e=>i-Math.exp(-y*e)*(g+(f+y*g)*e);else{const e=y*Math.sqrt(p*p-1);x=t=>{const n=Math.exp(-p*y*t),r=Math.min(e*t,300);return i-n*((f+p*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}
200const b={calculatedDuration:h&&d||null,next:e=>{const t=x(e);if(h)o.done=e>=d;else{let n=0===e?f:0;p<1&&(n=0===e?oa(f):Os(x,e,t));const s=Math.abs(n)<=r,l=Math.abs(i-t)<=a;o.done=s&&l}return o.value=o.done?i:t,o},toString:()=>{const e=Math.min(Ms(b),Ls),t=Rs((t=>b.next(e*t).value),e,30);return e+"ms "+t},toTransition:()=>{}};return b}function ni({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:i,min:o,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},h=e=>void 0===o?l:void 0===l||Math.abs(o-e)<Math.abs(l-e)?o:l;let f=n*t;const p=d+f,g=void 0===i?p:i(p);g!==p&&(f=g-d);const y=e=>-f*Math.exp(-e/r),v=e=>g+y(e),x=e=>{const t=y(e),n=v(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let b,w;const j=e=>{var t;(t=m.value,void 0!==o&&t<o||void 0!==l&&t>l)&&(b=e,w=ti({keyframes:[m.value,h(m.value)],velocity:Os(v,e,m.value),damping:a,stiffness:s,restDelta:c,restSpeed:u}))};return j(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,x(e),j(e)),void 0!==b&&e>=b?w.next(e-b):(!t&&x(e),m)}}}function ri(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(t.length,1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=function(e,t,n){const r=[],a=n||Xr.mix||Ts,s=e.length-1;for(let i=0;i<s;i++){let n=a(e[i],e[i+1]);if(t){const e=Array.isArray(t)?t[i]||na:t;n=aa(e,n)}r.push(n)}return r}(t,r,a),l=o.length,c=n=>{if(i&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const a=sa(e[r],e[r+1],n);return o[r](a)};return n?t=>c(Qr(e[0],e[s-1],t)):c}function ai(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=sa(0,t,r);e.push(xs(n,1,a))}}(t,e.length-1),t}function si({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ea):Ea(r),s={done:!1,value:t[0]},i=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:ai(t),e),o=ri(i,t,{ease:Array.isArray(a)?a:(l=t,c=a,l.map((()=>c||Na)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(s.value=o(t),s.done=t>=e,s)}}ti.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Ms(r),Ls);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:la(a)}}(e,100,ti);return e.ease=t.ease,e.duration=oa(t.duration),e.type="keyframes",e};const ii=e=>null!==e;function oi(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(ii),i=a<0||t&&"loop"!==n&&t%2==1?0:s.length-1;return i&&void 0!==r?r:s[i]}const li={decay:ni,inertia:ni,tween:si,keyframes:si,spring:ti};function ci(e){"string"==typeof e.type&&(e.type=li[e.type])}class ui{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((e=>{this.resolve=e}))}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const di=e=>e/100;class mi extends ui{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,t;const{motionValue:n}=this.options;n&&n.updatedAt!==Da.now()&&this.tick(Da.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;ci(e);const{type:t=si,repeat:n=0,repeatDelay:r=0,repeatType:a,velocity:s=0}=e;let{keyframes:i}=e;const o=t||si;o!==si&&"number"!=typeof i[0]&&(this.mixKeyframes=aa(di,Ts(i[0],i[1])),i=[0,100]);const l=o({...e,keyframes:i});"mirror"===a&&(this.mirroredGenerator=o({...e,keyframes:[...i].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=Ms(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:o}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:m,type:h,onUpdate:f,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,x=n;if(u){const e=Math.min(this.currentTime,r)/i;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1);Boolean(t%2)&&("reverse"===d?(n=1-n,m&&(n-=m/i)):"mirror"===d&&(x=s)),v=Qr(0,1,n)*i}const b=y?{done:!1,value:c[0]}:x.next(v);a&&(b.value=a(b.value));let{done:w}=b;y||null===o||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&h!==ni&&(b.value=oi(c,this.options,p,this.speed)),f&&f(b.value),j&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return la(this.calculatedDuration)}get time(){return la(this.currentTime)}set time(e){var t;e=oa(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),null==(t=this.driver)||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Da.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=la(this.currentTime))}play(){var e,t;if(this.isStopped)return;const{driver:n=_s,startTime:r}=this.options;this.driver||(this.driver=n((e=>this.tick(e)))),null==(t=(e=this.options).onPlay)||t.call(e);const a=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=a):null!==this.holdTime?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Da.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(t=this.driver)||t.stop(),e.observe(this)}}const hi=e=>180*e/Math.PI,fi=e=>{const t=hi(Math.atan2(e[1],e[0]));return gi(t)},pi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:fi,rotateZ:fi,skewX:e=>hi(Math.atan(e[1])),skewY:e=>hi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},gi=e=>((e%=360)<0&&(e+=360),e),yi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yi,scaleY:vi,scale:e=>(yi(e)+vi(e))/2,rotateX:e=>gi(hi(Math.atan2(e[6],e[5]))),rotateY:e=>gi(hi(Math.atan2(-e[2],e[0]))),rotateZ:fi,rotate:fi,skewX:e=>hi(Math.atan(e[4])),skewY:e=>hi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bi(e){return e.includes("scale")?1:0}function wi(e,t){if(!e||"none"===e)return bi(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;
200if(n)r=xi,a=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=pi,a=t}if(!a)return bi(t);const s=r[t],i=a[1].split(",").map(ji);return"function"==typeof s?s(i):i[s]}function ji(e){return parseFloat(e.trim())}const Ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ki=(()=>new Set(Ni))(),Si=e=>e===$a||e===ns,Ei=new Set(["x","y","z"]),Ci=Ni.filter((e=>!Ei.has(e)));const Pi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wi(t,"x"),y:(e,{transform:t})=>wi(t,"y")};Pi.translateX=Pi.x,Pi.translateY=Pi.y;const Ai=new Set;let Ti=!1,_i=!1,Ri=!1;function Li(){if(_i){const e=Array.from(Ai).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Ci.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null==(r=e.getValue(t))||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}_i=!1,Ti=!1,Ai.forEach((e=>e.complete(Ri))),Ai.clear()}function Mi(){Ai.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(_i=!0)}))}class Oi{constructor(e,t,n,r,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ai.add(this),Ti||(Ti=!0,Ta.read(Mi),Ta.resolveKeyframes(Li))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const a=null==r?void 0:r.get(),s=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){const r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===a&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ai.delete(this)}cancel(){"scheduled"===this.state&&(Ai.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Di=ta((()=>void 0!==window.ScrollTimeline)),Ii={};function zi(e,t){const n=ta(e);return()=>Ii[t]??n()}const Ui=zi((()=>{try{document.createElement("div").animate({opacity:0}
200,{easing:"linear(0, 1)"})}catch(ne){return!1}return!0}),"linearEasing"),Fi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fi([0,.65,.55,1]),circOut:Fi([.55,0,1,.45]),backIn:Fi([.31,.01,.66,-.59]),backOut:Fi([.33,1.53,.69,.99])};function $i(e,t){return e?"function"==typeof e?Ui()?Rs(e,t):"ease-out":ka(e)?Fi(e):Array.isArray(e)?e.map((e=>$i(e,t)||Vi.easeOut)):Vi[e]:void 0}function Bi(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:i="loop",ease:o="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=$i(o,a);Array.isArray(d)&&(u.easing=d);const m={delay:r,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===i?"alternate":"normal"};c&&(m.pseudoElement=c);return e.animate(u,m)}function qi(e){return"function"==typeof e&&"applyToOptions"in e}class Hi extends ui{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:i,onComplete:o}=e;this.isPseudoElement=Boolean(a),this.allowFlatten=s,this.options=e,e.type;const l=function({type:e,...t}){return qi(e)&&Ui()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=Bi(t,n,r,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const e=oi(r,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}null==o||o(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch(ne){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t;this.isPseudoElement||null==(t=(e=this.animation).commitStyles)||t.call(e)}get duration(){var e,t;const n=(null==(t=null==(e=this.animation.effect)?void 0:e.getComputedTiming)?void 0:t.call(e).duration)||0;return la(Number(n))}get time(){return la(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=oa(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Di()?(this.animation.timeline=e,na):t(this)}}const Wi={anticipate:ya,backInOut:ga,circInOut:ba};function Gi(e){"string"==typeof e.ease&&e.ease in Wi&&(e.ease=Wi[e.ease])}class Yi extends Hi{constructor(e){Gi(e),ci(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:a,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const i=new mi({...s,autoplay:!1}),o=oa(this.finishedTime??this.time);t.setWithVelocity(i.sample(o-10).value,i.sample(o).value,10),i.stop()}}const Ki=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!gs.test(e)&&"0"!==e||e.startsWith("url(")));function Qi(e){return Zr(e)&&"offsetHeight"in e}const Xi=new Set(["opacity","clipPath","filter","transform"]),Ji=ta((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class Zi extends ui{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:s="loop",keyframes:i,name:o,motionValue:l,element:c,...u}){var d;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=Da.now();const m={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:a,repeatType:s,name:o,motionValue:l,element:c,...u},h=(null==c?void 0:c.KeyframeResolver)||Oi;this.keyframeResolver=new h(i,((e,t,n)=>this.onKeyframesResolved(e,t,m,!n)),o,l,c),null==(d=this.keyframeResolver)||d.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:a,type:s,velocity:i,delay:o,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Da.now(),function(e,t,n,r){const a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;const s=e[e.length-1],i=Ki(a,t),o=Ki(s,t);return!(!i||!o)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||qi(n))&&r)}(e,a,s,i)||(!Xr.instantAnimations&&o||null==c||c(oi(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);const u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){var t;const{motionValue:n,name:r,repeatDelay:a,repeatType:s,damping:i,type:o}=e;if(!Qi(null==(t=null==n?void 0:n.owner)?void 0:t.current))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Ji()&&r&&Xi.has(r)&&("transform"!==r||!c)&&!l&&!a&&"mirror"!==s&&0!==i&&"inertia"!==o}(u)?new Yi({...u,element:u.motionValue.owner.current}):new mi(u);d.finished.then((()=>this.notifyFinished())).catch(na),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then((()=>{}))}get animation(){var e;return this._animation||(null==(e=this.keyframeResolver)||e.resume(),Ri=!0,Mi(),Li(),Ri=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null==(e=this.keyframeResolver)||e.cancel()}}const eo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function to(e,t,n=1){const[r,a]=function(e){const t=eo.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const e=s.trim();return Jr(e)?parseFloat(e):e}return Fa(a)?to(a,t,n+1):a}function no(e,t){return(null==e?void 0:e[t])??(null==e?void 0:e.default)??e}const ro=new Set(["width","height","top","left","right","bottom",...Ni]),ao=e=>t=>t.test(e),so=[$a,ns,ts,es,as,rs,{test:e=>"auto"===e,parse:e=>e}],io=e=>so.find(ao(e));const oo=new Set(["brightness","contrast","saturate","opacity"]);function lo(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Wa)||[];
200if(!r)return e;const a=n.replace(r,"");let s=oo.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const co=/\b([a-z-]*)\(.*?\)/gu,uo={...gs,getAnimatableNone:e=>{const t=e.match(co);return t?t.map(lo).join(" "):e}},mo={...$a,transform:Math.round},ho={borderWidth:ns,borderTopWidth:ns,borderRightWidth:ns,borderBottomWidth:ns,borderLeftWidth:ns,borderRadius:ns,radius:ns,borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomRightRadius:ns,borderBottomLeftRadius:ns,width:ns,maxWidth:ns,height:ns,maxHeight:ns,top:ns,right:ns,bottom:ns,left:ns,padding:ns,paddingTop:ns,paddingRight:ns,paddingBottom:ns,paddingLeft:ns,margin:ns,marginTop:ns,marginRight:ns,marginBottom:ns,marginLeft:ns,backgroundPositionX:ns,backgroundPositionY:ns,...{rotate:es,rotateX:es,rotateY:es,rotateZ:es,scale:qa,scaleX:qa,scaleY:qa,scaleZ:qa,skew:es,skewX:es,skewY:es,distance:ns,translateX:ns,translateY:ns,translateZ:ns,x:ns,y:ns,z:ns,perspective:ns,transformPerspective:ns,opacity:Ba,originX:ss,originY:ss,originZ:ns},zIndex:mo,fillOpacity:Ba,strokeOpacity:Ba,numOctaves:mo},fo={...ho,color:os,backgroundColor:os,outlineColor:os,fill:os,stroke:os,borderColor:os,borderTopColor:os,borderRightColor:os,borderBottomColor:os,borderLeftColor:os,filter:uo,WebkitFilter:uo},po=e=>fo[e];function go(e,t){let n=po(e);return n!==uo&&(n=gs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yo=new Set(["auto","none","0"]);class vo extends Oi{constructor(e,t,n,r,a){super(e,t,n,r,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let o=0;o<e.length;o++){let n=e[o];if("string"==typeof n&&(n=n.trim(),Fa(n))){const r=to(n,t.current);void 0!==r&&(e[o]=r),o===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ro.has(n)||2!==e.length)return;const[r,a]=e,s=io(r),i=io(a);if(s!==i)if(Si(s)&&Si(i))for(let o=0;o<e.length;o++){const t=e[o];"string"==typeof t&&(e[o]=parseFloat(t))}else Pi[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let a=0;a<e.length;a++)(null===e[a]||("number"==typeof(r=e[a])?0===r:null===r||"none"===r||"0"===r||ea(r)))&&n.push(a);var r;n.length&&function(e,t,n){let r,a=0;for(;a<e.length&&!r;){const t=e[a];"string"==typeof t&&!yo.has(t)&&ms(t).values.length&&(r=e[a]),a++}if(r&&n)for(const s of t)e[s]=go(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pi[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=Pi[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
200h((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const xo=(e,t)=>t&&"number"==typeof e?t.transform(e):e;class bo{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{var n,r;const a=Da.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(null==(n=this.events.change)||n.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty();t&&(null==(r=this.events.renderRequest)||r.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Da.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ia);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ta.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null==(e=this.events.change)||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Da.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ca(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;null==(e=this.dependents)||e.clear(),null==(t=this.events.destroy)||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wo(e,t){return new bo(e,t)}const{schedule:jo}=Aa(queueMicrotask,!1),No={x:!1,y:!1};function ko(){return No.x||No.y}function So(e,t){const n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const r=(null==n?void 0:n[e])??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Eo(e){return!("touch"===e.pointerType||ko())}const Co=(e,t)=>!!t&&(e===t||Co(e,t.parentElement)),Po=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Ao=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const To=new WeakSet;function _o(e){return t=>{"Enter"===t.key&&e(t)}}function Ro(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Lo(e){return Po(e)&&!ko()}function Mo(e,t,n={}){const[r,a,s]=So(e,n),i=e=>{const r=e.currentTarget;if(!Lo(e))return;To.add(r);const s=t(r,e),i=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),To.has(r)&&To.delete(r),Lo(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{i(e,r===window||r===document||n.useGlobalTarget||Co(r,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",o,a),window.addEventListener("pointercancel",l,a)};return r.forEach((e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",i,a),Qi(e)&&(e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=_o((()=>
200{if(To.has(n))return;Ro(n,"down");const e=_o((()=>{Ro(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>Ro(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,a))),t=e,Ao.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))})),s}function Oo(e){return Zr(e)&&"ownerSVGElement"in e}const Do=e=>Boolean(e&&e.getVelocity),Io=[...so,os,gs],zo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Uo extends f.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=Qi(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Fo({children:e,isPresent:t,anchorX:n}){const r=f.useId(),a=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=f.useContext(zo);return f.useInsertionEffect((()=>{const{width:e,height:o,top:l,left:c,right:u}=s.current;if(t||!a.current||!e||!o)return;const d="left"===n?`left: ${c}`:`right: ${u}`;a.current.dataset.motionPopId=r;const m=document.createElement("style");return i&&(m.nonce=i),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${o}px !important;\n            ${d}px !important;\n            top: ${l}px !important;\n          }\n        `),()=>{document.head.contains(m)&&document.head.removeChild(m)}}),[t]),c.jsx(Uo,{isPresent:t,childRef:a,sizeRef:s,children:f.cloneElement(e,{ref:a})})}const Vo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:i,anchorX:o})=>{const l=qr($o),u=f.useId();let d=!0,m=f.useMemo((()=>(d=!1,{id:u,initial:t,isPresent:n,custom:a,onExitComplete:e=>{l.set(e,!0);for(const t of l.values())if(!t)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))})),[n,l,r]);return s&&d&&(m={...m}),f.useMemo((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),f.useEffect((()=>{!n&&!l.size&&r&&r()}),[n]),"popLayout"===i&&(e=c.jsx(Fo,{isPresent:n,anchorX:o,children:e})),c.jsx(Gr.Provider,{value:m,children:e})};function $o(){return new Map}function Bo(e=!0){const t=f.useContext(Gr);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=f.useId();f.useEffect((()=>{if(e)return a(s)}),[e]);const i=f.useCallback((()=>e&&r&&r(s)),[s,r,e]);return!n&&r?[!1,i]:[!0]}const qo=e=>e.key||"";function Ho(e){const t=[];return f.Children.forEach(e,(e=>{f.isValidElement(e)&&t.push(e)})),t}const Wo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:i=!1,anchorX:o="left"})=>{const[l,u]=Bo(i),d=f.useMemo((()=>Ho(e)),[e]),m=i&&!l?[]:d.map(qo),h=f.useRef(!0),p=f.useRef(d),g=qr((()=>new Map)),[y,v]=f.useState(d),[x,b]=f.useState(d);Wr((()=>{h.current=!1,p.current=d;for(let e=0;e<x.length;e++){const t=qo(x[e]);m.includes(t)?g.delete(t):!0!==g.get(t)&&g.set(t,!1)}}),[x,m.length,m.join("-")]);const w=[];if(d!==y){let e=[...d];for(let t=0;t<x.length;t++){const n=x[t],r=qo(n);m.includes(r)||(e.splice(t,0,n),w.push(n))}return"wait"===s&&w.length&&(e=w),b(Ho(e)),v(d),null}const{forceRender:j}=f.useContext(Br);return c.jsx(c.Fragment,{children:x.map((e=>{const f=qo(e),y=!(i&&!l)&&(d===x||m.includes(f));return c.jsx(Vo,{isPresent:y,initial:!(h.current&&!n)&&void 0,custom:t,presenceAffectsLayout:a,mode:s,onExitComplete:y?void 0:()=>{if(!g.has(f))return;g.set(f,!0);let e=!0;g.forEach((t=>{t||(e=!1)})),e&&(null==j||j(),b(p.current),i&&(null==u||u()),r&&r())},anchorX:o,children:e},f)}))})},Go=f.createContext({strict:!1}),Yo={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ko={};for(const Zg in Yo)Ko[Zg]={isEnabled:e=>Yo[Zg].some((t=>!!e[t]))};const Qo=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Xo(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Qo.has(e)}let Jo=e=>!Xo(e);try{(Zo=require("@emotion/is-prop-valid").default)&&(Jo=e=>e.startsWith("on")?!Xo(e):Zo(e))}catch{}var Zo;function el(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const tl=f.createContext({});function nl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function rl(e){return"string"==typeof e||Array.isArray(e)}const al=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sl=["initial",...al];function il(e){return nl(e.animate)||sl.some((t=>rl(e[t])))}function ol(e){return Boolean(il(e)||e.variants)}function ll(e){const{initial:t,animate:n}=function(e,t){if(il(e)){const{initial:t,animate:n}=e;return{initial:!1===t||rl(t)?t:void 0,animate:rl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,f.useContext(tl));return f.useMemo((()=>({initial:t,animate:n})),[cl(t),cl(n)])}function cl(e){return Array.isArray(e)?e.join(" "):e}const ul=Symbol.for("motionComponentSymbol");function dl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ml(e,t,n){return f.useCallback((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):dl(n)&&(n.current=r))}),[t])}const hl=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fl="data-"+hl("framerAppearId"),pl=f.createContext({});function gl(e,t,n,r,a){var s,i;const{visualElement:o}=f.useContext(tl),l=f.useContext(Go),c=f.useContext(Gr),u=f.useContext(zo).reducedMotion,d=f.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const m=d.current,h=f.useContext(pl);!m||m.projection||!a||"html"!==m.type&&"svg"!==m.type||function(e,t,n,r){const{layoutId:a,layout:s,drag:i,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:yl(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(i)||o&&dl(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}(d.current,n,a,h);const p=f.useRef(!1);f.useInsertionEffect((()=>{m&&p.current&&m.update(n,c)}));const g=n[fl],y=f.useRef(Boolean(g)&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,g))&&(null==(i=window.MotionHasOptimisedAnimation)?void 0:i.call(window,g)));return Wr((()=>{m&&(p.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),jo.render(m.render),y.current&&m.animationState&&m.animationState.animateChanges())})),f.useEffect((()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,g)}
200)),y.current=!1))})),m}function yl(e){if(e)return!1!==e.options.allowProjection?e.projection:yl(e.parent)}function vl({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){function s(e,s){let i;const o={...f.useContext(zo),...e,layoutId:xl(e)},{isStatic:l}=o,u=ll(e),d=r(e,l);if(!l&&Hr){f.useContext(Go).strict;const e=function(e){const{drag:t,layout:n}=Ko;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(o);i=e.MeasureLayout,u.visualElement=gl(a,d,o,t,e.ProjectionNode)}return c.jsxs(tl.Provider,{value:u,children:[i&&u.visualElement?c.jsx(i,{visualElement:u.visualElement,...o}):null,n(a,e,ml(d,u.visualElement,s),d,l,u.visualElement)]})}e&&function(e){for(const t in e)Ko[t]={...Ko[t],...e[t]}}(e),s.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;const i=f.forwardRef(s);return i[ul]=a,i}function xl({layoutId:e}){const t=f.useContext(Br).id;return t&&void 0!==e?t+"-"+e:e}const bl={};function wl(e,{layout:t,layoutId:n}){return ki.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!bl[e]||"opacity"===e)}const jl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nl=Ni.length;function kl(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let i=!1,o=!1;for(const l in t){const e=t[l];if(ki.has(l))i=!0;else if(za(l))a[l]=e;else{const t=xo(e,ho[l]);l.startsWith("origin")?(o=!0,s[l]=t):r[l]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",a=!0;for(let s=0;s<Nl;s++){const i=Ni[s],o=e[i];if(void 0===o)continue;let l=!0;if(l="number"==typeof o?o===(i.startsWith("scale")?1:0):0===parseFloat(o),!l||n){const e=xo(o,ho[i]);l||(a=!1,r+=`${jl[i]||i}(${e}) `),n&&(t[i]=e)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}const Sl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function El(e,t,n){for(const r in t)Do(t[r])||wl(r,n)||(e[r]=t[r])}function Cl(e,t){const n={};return El(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return f.useMemo((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return kl(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}function Pl(e,t){const n={},r=Cl(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Al={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tl={offset:"strokeDashoffset",array:"strokeDasharray"};function _l(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...o},l,c,u){if(kl(e,o,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=(null==u?void 0:u.transformBox)??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==a&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?Al:Tl;e[s.offset]=ns.transform(-r);const i=ns.transform(t),o=ns.transform(n);e[s.array]=`${i} ${o}`}(d,a,s,i,!1)}const Rl=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Ll=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ml(e,t,n,r){const a=f.useMemo((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return _l(n,t,Ll(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};El(t,e.style,e),a.style={...t,...a.style}}return a}const Ol=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Dl(e){return"string"==typeof e&&!e.includes("-")&&!!(Ol.indexOf(e)>-1||/[A-Z]/u.test(e))}function Il(e=!1){return(t,n,r,{latestValues:a},s)=>{const i=(Dl(t)?Ml:Pl)(n,a,s,t),o=function(e,t,n){const r={};for(const a in e)"values"===a&&"object"==typeof e.values||(Jo(a)||!0===n&&Xo(a)||!t&&!Xo(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(n,"string"==typeof t,e),l=t!==f.Fragment?{...o,...i,ref:r}:{},{children:c}=n,u=f.useMemo((()=>Do(c)?c.get():c),[c]);return f.createElement(t,{...l,children:u})}}function zl(e){const t=[{},{}];
200return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Ul(e,t,n,r){if("function"==typeof t){const[a,s]=zl(r);t=t(void 0!==n?n:e.custom,a,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[a,s]=zl(r);t=t(void 0!==n?n:e.custom,a,s)}return t}function Fl(e){return Do(e)?e.get():e}const Vl=e=>(t,n)=>{const r=f.useContext(tl),a=f.useContext(Gr),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:$l(n,r,a,e),renderState:t()}}(e,t,r,a);return n?s():qr(s)};function $l(e,t,n,r){const a={},s=r(e,{});for(const m in s)a[m]=Fl(s[m]);let{initial:i,animate:o}=e;const l=il(e),c=ol(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===o&&(o=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?o:i;if(d&&"boolean"!=typeof d&&!nl(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Ul(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(a[r]=e)}for(const r in e)a[r]=e[r]}}}return a}function Bl(e,t,n){var r;const{style:a}=e,s={};for(const i in a)(Do(a[i])||t.style&&Do(t.style[i])||wl(i,e)||void 0!==(null==(r=null==n?void 0:n.getValue(i))?void 0:r.liveStyle))&&(s[i]=a[i]);return s}const ql={useVisualState:Vl({scrapeMotionValuesFromProps:Bl,createRenderState:Sl})};function Hl(e,t,n){const r=Bl(e,t,n);for(const a in e)if(Do(e[a])||Do(t[a])){r[-1!==Ni.indexOf(a)?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a]=e[a]}return r}const Wl={useVisualState:Vl({scrapeMotionValuesFromProps:Hl,createRenderState:Rl})};function Gl(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return vl({...Dl(n)?Wl:ql,preloadedFeatures:e,useRender:Il(r),createVisualElement:t,Component:n})}}function Yl(e,t,n){const r=e.getProps();return Ul(r,t,void 0!==n?n:r.custom,e)}const Kl=e=>Array.isArray(e);function Ql(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wo(n))}function Xl(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Do(r)&&r.add))return n.add(t);if(!n&&Xr.WillChange){const n=new Xr.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function Jl(e){return e.props[fl]}const Zl=e=>null!==e;const ec={type:"spring",stiffness:500,damping:25,restSpeed:10},tc={type:"keyframes",duration:.8},nc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rc=(e,{keyframes:t})=>t.length>2?tc:ki.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ec:nc;const ac=(e,t,n,r={},a,s)=>i=>{const o=no(r,e)||{},l=o.delay||r.delay||0;let{elapsed:c=0}=r;c-=oa(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:a};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:i,repeatDelay:o,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(o)||Object.assign(u,rc(e,u)),u.duration&&(u.duration=oa(u.duration)),u.repeatDelay&&(u.repeatDelay=oa(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),(Xr.instantAnimations||Xr.skipAnimations)&&(d=!0,u.duration=0,u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!s&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"}){const r=e.filter(Zl);return r[t&&"loop"!==n&&t%2==1?0:r.length-1]}(u.keyframes,o);if(void 0!==e)return void Ta.update((()=>{u.onUpdate(e),u.onComplete()}))}return o.isSync?new mi(u):new Zi(u)};function sc({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ic(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...o}=t;r&&(s=r);const l=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const u in o){const t=e.getValue(u,e.latestValues[u]??null),r=o[u];if(void 0===r||c&&sc(c,u))continue;const a={delay:n,...no(s||{},u)},i=t.get();if(void 0!==i&&!t.isAnimating&&!Array.isArray(r)&&r===i&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){const t=Jl(e);
200if(t){const e=window.MotionHandoffAnimation(t,u,Ta);null!==e&&(a.startTime=e,d=!0)}}Xl(e,u),t.start(ac(u,t,r,e.shouldReduceMotion&&ro.has(u)?{type:!1}:a,e,d));const m=t.animation;m&&l.push(m)}return i&&Promise.all(l).then((()=>{Ta.update((()=>{i&&function(e,t){const n=Yl(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const o in s)Ql(e,o,(i=s[o],Kl(i)?i[i.length-1]||0:i));var i}(e,i)}))})),l}function oc(e,t,n={}){var r;const a=Yl(e,t,"exit"===n.type?null==(r=e.presenceContext)?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(s=n.transitionOverride);const i=a?()=>Promise.all(ic(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:a=0,staggerChildren:i,staggerDirection:o}=s;return function(e,t,n=0,r=0,a=1,s){const i=[],o=(e.variantChildren.size-1)*r,l=1===a?(e=0)=>e*r:(e=0)=>o-e*r;return Array.from(e.variantChildren).sort(lc).forEach(((e,r)=>{e.notify("AnimationStart",t),i.push(oc(e,t,{...s,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,a+r,i,o,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[e,t]="beforeChildren"===l?[i,o]:[o,i];return e().then((()=>t()))}return Promise.all([i(),o(n.delay)])}function lc(e,t){return e.sortNodePosition(t)}function cc(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const uc=sl.length;function dc(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&dc(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<uc;n++){const r=sl[n],a=e.props[r];(rl(a)||!1===a)&&(t[r]=a)}return t}const mc=[...al].reverse(),hc=al.length;function fc(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const a=t.map((t=>oc(e,t,n)));r=Promise.all(a)}else if("string"==typeof t)r=oc(e,t,n);else{const a="function"==typeof t?Yl(e,t,n.custom):t;r=Promise.all(ic(e,a,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function pc(e){let t=fc(e),n=vc(),r=!0;const a=t=>(n,r)=>{var a;const s=Yl(e,r,"exit"===t?null==(a=e.presenceContext)?void 0:a.custom:void 0);if(s){const{transition:e,transitionEnd:t,...r}=s;n={...n,...r,...t}}return n};function s(s){const{props:i}=e,o=dc(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<hc;t++){const m=mc[t],h=n[m],f=void 0!==i[m]?i[m]:o[m],p=rl(f),g=m===s?h.isActive:null;!1===g&&(d=t);let y=f===o[m]&&f!==i[m]&&p;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...u},!h.isActive&&null===g||!f&&!h.prevProp||nl(f)||"boolean"==typeof f)continue;const v=gc(h.prevProp,f);let x=v||m===s&&h.isActive&&!y&&p||t>d&&p,b=!1;const w=Array.isArray(f)?f:[f];let j=w.reduce(a(m),{});!1===g&&(j={});const{prevResolvedValues:N={}}=h,k={...N,...j},S=t=>{x=!0,c.has(t)&&(b=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=j[e],n=N[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Kl(t)&&Kl(n)?!cc(t,n):t!==n,r?null!=t?S(e):c.add(e):void 0!==t&&c.has(e)?S(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=j,h.isActive&&(u={...u,...j}),r&&e.blockInitialAnimation&&(x=!1);x&&(!(y&&v)||b)&&l.push(...w.map((e=>({animation:e,options:{type:m}}))))}if(c.size){const t={};if("boolean"!=typeof i.initial){const n=Yl(e,Array.isArray(i.initial)?i.initial[0]:i.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach((n=>{const r=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=r??null})),l.push({animation:t})}let m=Boolean(l.length);return!r||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){var a;if(n[t].isActive===r)return Promise.resolve();null==(a=e.variantChildren)||a.forEach((e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)})),n[t].isActive=r;const i=s(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=vc(),r=!0}}}function gc(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!cc(t,e)}function yc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vc(){return{animate:yc(!0),whileInView:yc(),whileHover:yc(),whileTap:yc(),whileDrag:yc(),whileFocus:yc(),exit:yc()}}class xc{constructor(e){this.isMounted=!1,this.node=e}update(){}}let bc=0;const wc={animation:{Feature:class extends xc{constructor(e){super(e),e.animationState||(e.animationState=pc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();nl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}},exit:{Feature:class extends xc{constructor(){super(...arguments),this.id=bc++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>
200{t(this.id)}))}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function jc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Nc(e){return{point:{x:e.pageX,y:e.pageY}}}function kc(e,t,n,r){return jc(e,t,(e=>t=>Po(t)&&e(t,Nc(t)))(n),r)}function Sc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ec(e){return e.max-e.min}function Cc(e,t,n,r=.5){e.origin=r,e.originPoint=xs(t.min,t.max,e.origin),e.scale=Ec(n)/Ec(t),e.translate=xs(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Pc(e,t,n,r){Cc(e.x,t.x,n.x,r?r.originX:void 0),Cc(e.y,t.y,n.y,r?r.originY:void 0)}function Ac(e,t,n){e.min=n.min+t.min,e.max=e.min+Ec(t)}function Tc(e,t,n){e.min=t.min-n.min,e.max=e.min+Ec(t)}function _c(e,t,n){Tc(e.x,t.x,n.x),Tc(e.y,t.y,n.y)}const Rc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Lc(e){return[e("x"),e("y")]}function Mc(e){return void 0===e||1===e}function Oc({scale:e,scaleX:t,scaleY:n}){return!Mc(e)||!Mc(t)||!Mc(n)}function Dc(e){return Oc(e)||Ic(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ic(e){return zc(e.x)||zc(e.y)}function zc(e){return e&&"0%"!==e}function Uc(e,t,n){return n+t*(e-n)}function Fc(e,t,n,r,a){return void 0!==a&&(e=Uc(e,a,r)),Uc(e,n,r)+t}function Vc(e,t=0,n=1,r,a){e.min=Fc(e.min,t,n,r,a),e.max=Fc(e.max,t,n,r,a)}function $c(e,{x:t,y:n}){Vc(e.x,t.translate,t.scale,t.originPoint),Vc(e.y,n.translate,n.scale,n.originPoint)}const Bc=.999999999999,qc=1.0000000000001;function Hc(e,t){e.min=e.min+t,e.max=e.max+t}function Wc(e,t,n,r,a=.5){Vc(e,t,n,xs(e.min,e.max,a),r)}function Gc(e,t){Wc(e.x,t.x,t.scaleX,t.scale,t.originX),Wc(e.y,t.y,t.scaleY,t.scale,t.originY)}function Yc(e,t){return Sc(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Kc=({current:e})=>e?e.ownerDocument.defaultView:null,Qc=(e,t)=>Math.abs(e-t);class Xc{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=eu(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Qc(e.x,t.x),r=Qc(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:a}=Ra;this.history.push({...r,timestamp:a});const{onStart:s,onMove:i}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Jc(t,this.transformPagePoint),Ta.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:a}=this.handlers;if(this.dragSnapToOrigin&&a&&a(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const s=eu("pointercancel"===e.type?this.lastMoveEventInfo:Jc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!Po(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const s=Jc(Nc(e),this.transformPagePoint),{point:i}=s,{timestamp:o}=Ra;this.history=[{...i,timestamp:o}];const{onSessionStart:l}=t;l&&l(e,eu(s,this.history)),this.removeListeners=aa(kc(this.contextWindow,"pointermove",this.handlePointerMove),kc(this.contextWindow,"pointerup",this.handlePointerUp),kc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),_a(this.updatePoint)}}function Jc(e,t){return t?{point:t(e.point)}:e}function Zc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eu({point:e},t){return{point:e,delta:Zc(e,nu(t)),offset:Zc(e,tu(t)),velocity:ru(t,.1)}}function tu(e){return e[0]}function nu(e){return e[e.length-1]}function ru(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=nu(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>oa(t)));)n--;if(!r)return{x:0,y:0};const s=la(a.timestamp-r.timestamp);if(0===s)return{x:0,y:0};const i={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function au(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function su(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const iu=.35;function ou(e,t,n){return{min:lu(e,t),max:lu(e,n)}}function lu(e,t){return"number"==typeof e?e:e[t]||0}const cu=new WeakMap;class uu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Xc(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Nc(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:a}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(s=n)||"y"===s?No[s]?null:(No[s]=!0,()=>{No[s]=!1}):No.x||No.y?null:(No.x=No.y=!0,()=>{No.x=No.y=!1}),!this.openDragLock))return;var s;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lc((e=>{let t=this.getAxisMotionValue(e).get()||0;if(ts.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ec(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),a&&Ta.postRender((()=>a(e,t))),Xl(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>
200{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:a,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:i}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(i),void(null!==this.currentDirection&&a&&a(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Lc((e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Kc(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&Ta.postRender((()=>a(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!du(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?xs(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?xs(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),a.set(s)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,a=this.constraints;t&&dl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:a}){return{x:au(e.x,n,a),y:au(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=iu){return!1===e?e=0:!0===e&&(e=iu),{x:ou(e,"left","right"),y:ou(e,"top","bottom")}}(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Lc((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!dl(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=function(e,t,n){const r=Yc(e,n),{scroll:a}=t;return a&&(Hc(r.x,a.offset.x),Hc(r.y,a.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let s=function(e,t){return{x:su(e.x,t.x),y:su(e.y,t.y)}}(r.layout.layoutBox,a);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=Sc(e))}return s}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),o=this.constraints||{},l=Lc((i=>{if(!du(i,t,this.currentDirection))return;let l=o&&o[i]||{};s&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(i,d)}));return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Xl(this.visualElement,e),n.start(ac(e,n,0,t,this.visualElement,!1))}stopAnimation(){Lc((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Lc((e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()}))}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Lc((t=>{const{drag:n}=this.getProps();if(!du(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:s}=r.layout.layoutBox[t];a.set(e[t]-xs(n,s,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dl(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Lc((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ec(e),a=Ec(t);return a>r?n=sa(t.min,t.max-r,e.min):r>a&&(n=sa(e.min,e.max-a,t.min)),Qr(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Lc((t=>{if(!du(t,e,null))return;const n=this.getAxisMotionValue(t),{min:a,max:s}=this.constraints[t];n.set(xs(a,s,r[t]))}))}addListeners(){if(!this.visualElement.current)return;cu.set(this.visualElement,this);const e=kc(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}
200=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();dl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Ta.read(t);const a=jc(window,"resize",(()=>this.scalePositionWithinConstraints())),s=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Lc((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{a(),e(),r(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:s=iu,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:s,dragMomentum:i}}}function du(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const mu=e=>(t,n)=>{e&&Ta.postRender((()=>e(t,n)))};const hu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pu={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ns.test(e))return e;e=parseFloat(e)}return`${fu(e,t.target.x)}% ${fu(e,t.target.y)}%`}},gu={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=gs.parse(e);if(a.length>5)return r;const s=gs.createTransformer(e),i="number"!=typeof a[0]?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;a[0+i]/=o,a[1+i]/=l;const c=xs(o,l,.5);return"number"==typeof a[2+i]&&(a[2+i]/=c),"number"==typeof a[3+i]&&(a[3+i]/=c),s(a)}};class yu extends f.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;!function(e){for(const t in e)bl[t]=e[t],za(t)&&(bl[t].isCSSVariable=!0)}(xu),a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",(()=>{this.safeToRemove()})),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),hu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,{projection:s}=n;return s?(s.isPresent=a,r||e.layoutDependency!==t||void 0===t||e.isPresent!==a?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Ta.postRender((()=>{const e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jo.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vu(e){const[t,n]=Bo(),r=f.useContext(Br);return c.jsx(yu,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(pl),isPresent:t,safeToRemove:n})}const xu={borderRadius:{...pu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pu,borderTopRightRadius:pu,borderBottomLeftRadius:pu,borderBottomRightRadius:pu,boxShadow:gu};const bu=(e,t)=>e.depth-t.depth;class wu{constructor(){this.children=[],this.isDirty=!1}add(e){Yr(this.children,e),this.isDirty=!0}remove(e){Kr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(bu),this.isDirty=!1,this.children.forEach(e)}}const ju=["TopLeft","TopRight","BottomLeft","BottomRight"],Nu=ju.length,ku=e=>"string"==typeof e?parseFloat(e):e,Su=e=>"number"==typeof e||ns.test(e);function Eu(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Cu=Au(0,.5,xa),Pu=Au(.5,.95,na);function Au(e,t,n){return r=>r<e?0:r>t?1:n(sa(e,t,r))}function Tu(e,t){e.min=t.min,e.max=t.max}function _u(e,t){Tu(e.x,t.x),Tu(e.y,t.y)}function Ru(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Lu(e,t,n,r,a){return e=Uc(e-=t,1/n,r),void 0!==a&&(e=Uc(e,1/a,r)),e}function Mu(e,t,[n,r,a],s,i){!function(e,t=0,n=1,r=.5,a,s=e,i=e){ts.test(t)&&(t=parseFloat(t),t=xs(i.min,i.max,t/100)-i.min);if("number"!=typeof t)return;let o=xs(s.min,s.max,r);e===s&&(o-=t),e.min=Lu(e.min,t,n,o,a),e.max=Lu(e.max,t,n,o,a)}(e,t[n],t[r],t[a],t.scale,s,i)}const Ou=["x","scaleX","originX"],Du=["y","scaleY","originY"];function Iu(e,t,n,r){Mu(e.x,t,Ou,n?n.x:void 0,r?r.x:void 0),Mu(e.y,t,Du,n?n.y:void 0,r?r.y:void 0)}function zu(e){return 0===e.translate&&1===e.scale}function Uu(e){return zu(e.x)&&zu(e.y)}function Fu(e,t){return e.min===t.min&&e.max===t.max}function Vu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $u(e,t){return Vu(e.x,t.x)&&Vu(e.y,t.y)}function Bu(e){return Ec(e.x)/Ec(e.y)}function qu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Hu{constructor(){this.members=[]}add(e){Yr(this.members,e),e.scheduleRender()}remove(e){if(Kr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}
200exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Wu=["","X","Y","Z"],Gu={visibility:"hidden"};let Yu=0;function Ku(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Qu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Jl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ta,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Qu(r)}function Xu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Yu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ed),this.nodes.forEach(od),this.nodes.forEach(ld),this.nodes.forEach(td)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new wu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ia),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=Oo(t)&&!(Oo(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:a,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||r)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Da.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(_a(r),e(s-t))};return Ta.setup(r,!0),()=>_a(r)}(r,250),hu.hasAnimatedSinceResize&&(hu.hasAnimatedSinceResize=!1,this.nodes.forEach(id))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||a)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||s.getDefaultTransition()||fd,{onLayoutAnimationStart:i,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!$u(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...no(a,"layout"),onPlay:i,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||id(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_a(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
200h(cd),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const e=this.path[a];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(rd);this.isUpdating||this.nodes.forEach(ad),this.isUpdating=!1,this.nodes.forEach(sd),this.nodes.forEach(Ju),this.nodes.forEach(Zu),this.clearAllSnapshots();const e=Da.now();Ra.delta=Qr(0,1e3/60,e-Ra.timestamp),Ra.timestamp=e,Ra.isProcessing=!0,La.update.process(Ra),La.preRender.process(Ra),La.render.process(Ra),Ra.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nd),this.sharedNodes.forEach(ud)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ta.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ta.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Ec(this.snapshot.measuredBox.x)||Ec(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Uu(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Dc(this.latestValues)||s)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),yd((r=n).x),yd(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(xd))){const{scroll:e}=this.root;e&&(Hc(n.x,e.offset.x),Hc(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(_u(n,e),null==(t=this.scroll)?void 0:t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],{scroll:a,options:s}=t;t!==this.root&&a&&s.layoutScroll&&(a.wasRoot&&_u(n,e),Hc(n.x,a.offset.x),Hc(n.y,a.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};_u(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Gc(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Dc(e.latestValues)&&Gc(n,e.latestValues)}return Dc(this.latestValues)&&Gc(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};_u(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!Dc(e.latestValues))continue;Oc(e.latestValues)&&e.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};_u(r,e.measurePageBox()),Iu(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return Dc(this.latestValues)&&Iu(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ra.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
200haredProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:a,layoutId:s}=this.options;if(this.layout&&(a||s)){if(this.resolvedRelativeTargetAt=Ra.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},_c(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),_u(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,o,l;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,o=this.relativeTarget,l=this.relativeParent.target,Ac(i.x,o.x,l.x),Ac(i.y,o.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):_u(this.target,this.layout.layoutBox),$c(this.target,this.targetDelta)):_u(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},_c(this.relativeTargetOrigin,this.target,e.target),_u(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Oc(this.parent.latestValues)&&!Ic(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Ra.timestamp&&(r=!1),r)return;const{layout:a,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!a&&!s)return;_u(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,r=!1){const a=n.length;if(!a)return;let s,i;t.x=t.y=1;for(let o=0;o<a;o++){s=n[o],i=s.projectionDelta;const{visualElement:a}=s.options;a&&a.props.style&&"contents"===a.props.style.display||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Gc(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,$c(e,i)),r&&Dc(s.latestValues)&&Gc(e,s.latestValues))}t.x<qc&&t.x>Bc&&(t.x=1),t.y<qc&&t.y>Bc&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Ru(this.prevProjectionDelta.x,this.projectionDelta.x),Ru(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Pc(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===o&&qu(this.projectionDelta.x,this.prevProjectionDelta.x)&&qu(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},a={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},o=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(o&&!c&&!0===this.options.crossfade&&!this.path.some(hd));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,m,h,f,p,g;dd(s.x,e.x,n),dd(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_c(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,p=i,g=n,md(h.x,f.x,p.x,g),md(h.y,f.y,p.y,g),d&&(l=this.relativeTarget,m=d,Fu(l.x,m.x)&&Fu(l.y,m.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),_u(d,this.relativeTarget)),o&&(this.animationValues=a,function(e,t,n,r,a,s){a?(e.opacity=xs(0,n.opacity??1,Cu(r)),e.o
200pacityExit=xs(t.opacity??1,0,Pu(r))):s&&(e.opacity=xs(t.opacity??1,n.opacity??1,r));for(let i=0;i<Nu;i++){const a=`border${ju[i]}Radius`;let s=Eu(t,a),o=Eu(n,a);void 0===s&&void 0===o||(s||(s=0),o||(o=0),0===s||0===o||Su(s)===Su(o)?(e[a]=Math.max(xs(ku(s),ku(o),r),0),(ts.test(o)||ts.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||n.rotate)&&(e.rotate=xs(t.rotate||0,n.rotate||0,r))}(a,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n,r;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),null==(r=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||r.stop(),this.pendingAnimation&&(_a(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ta.update((()=>{hu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wo(0)),this.currentAnimation=function(e,t,n){const r=Do(e)?e:wo(e);return r.start(ac("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:a}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&vd(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ec(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ec(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}_u(t,n),Gc(t,a),Pc(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Hu);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Ku("z",e,r,this.animationValues);for(let a=0;a<Wu.length;a++)Ku(`rotate${Wu[a]}`,e,r,this.animationValues),Ku(`skew${Wu[a]}`,e,r,this.animationValues);e.render();for(const a in r)e.setStaticValue(a,r[a]),this.animationValues&&(this.animationValues[a]=r[a]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Gu;const t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=Fl(null==e?void 0:e.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Fl(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Dc(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,n){let r="";
200const a=e.x.translate/t.x,s=e.y.translate/t.y,i=(null==n?void 0:n.z)||0;if((a||s||i)&&(r=`translate3d(${a}px, ${s}px, ${i}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:a,rotateY:s,skewX:i,skewY:o}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),a&&(r+=`rotateX(${a}deg) `),s&&(r+=`rotateY(${s}deg) `),i&&(r+=`skewX(${i}deg) `),o&&(r+=`skewY(${o}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return 1===o&&1===l||(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),n&&(t.transform=n(a,t.transform));const{x:s,y:i}=this.projectionDelta;t.transformOrigin=`${100*s.origin}% ${100*i.origin}% 0`,r.animationValues?t.opacity=r===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:t.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const o in bl){if(void 0===a[o])continue;const{correct:e,applyTo:n,isCSSVariable:s}=bl[o],i="none"===t.transform?a[o]:e(a[o],r);if(n){const e=n.length;for(let r=0;r<e;r++)t[n[r]]=i}else s?this.options.visualElement.renderState.vars[o]=i:t[o]=i}return this.options.layoutId&&(t.pointerEvents=r===this?Fl(null==e?void 0:e.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()})),this.root.nodes.forEach(rd),this.root.sharedNodes.clear()}}}function Ju(e){e.updateLayout()}function Zu(e){var t;const n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;"size"===a?Lc((e=>{const r=s?n.measuredBox[e]:n.layoutBox[e],a=Ec(r);r.min=t[e].min,r.max=r.min+a})):vd(a,n.layoutBox,t)&&Lc((r=>{const a=s?n.measuredBox[r]:n.layoutBox[r],i=Ec(t[r]);a.max=a.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+i)}));const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Pc(i,t,n.layoutBox);const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Pc(o,e.applyTransform(r,!0),n.measuredBox):Pc(o,t,n.layoutBox);const l=!Uu(i);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:a,layout:s}=r;if(a&&s){const i={x:{min:0,max:0},y:{min:0,max:0}};_c(i,n.layoutBox,a.layoutBox);const o={x:{min:0,max:0},y:{min:0,max:0}};_c(o,t,s.layoutBox),$u(i,o)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=i,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:o,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ed(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function td(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nd(e){e.clearSnapshot()}function rd(e){e.clearMeasurements()}function ad(e){e.isLayoutDirty=!1}function sd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function id(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function od(e){e.resolveTargetDelta()}function ld(e){e.calcProjection()}function cd(e){e.resetSkewAndRotation()}function ud(e){e.removeLeadSnapshot()}function dd(e,t,n){e.translate=xs(t.translate,0,n),e.scale=xs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function md(e,t,n,r){e.min=xs(t.min,n.min,r),e.max=xs(t.max,n.max,r)}function hd(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const fd={duration:.45,ease:[.4,0,.1,1]},pd=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gd=pd("applewebkit/")&&!pd("chrome/")?Math.round:na;function yd(e){e.min=gd(e.min),e.max=gd(e.max)}function vd(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Bu(t),a=Bu(n),s=.2,!(Math.abs(r-a)<=s));var r,a,s}function xd(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}const bd=Xu({attachResizeListener:(e,t)=>jc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},jd=Xu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new bd({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>
200{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Nd={pan:{Feature:class extends xc{constructor(){super(...arguments),this.removePointerDownListener=na}onPointerDown(e){this.session=new Xc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:mu(e),onStart:mu(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ta.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=kc(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends xc{constructor(e){super(e),this.removeGroupControls=na,this.removeListeners=na,this.controls=new uu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||na}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:jd,MeasureLayout:vu}};function kd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const a=r["onHover"+n];a&&Ta.postRender((()=>a(t,Nc(t))))}function Sd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const a=r["onTap"+("End"===n?"":n)];a&&Ta.postRender((()=>a(t,Nc(t))))}const Ed=new WeakMap,Cd=new WeakMap,Pd=e=>{const t=Ed.get(e.target);t&&t(e)},Ad=e=>{e.forEach(Pd)};function Td(e,t,n){const r=function({root:e,...t}){const n=e||document;Cd.has(n)||Cd.set(n,{});const r=Cd.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Ad,{root:e,...t})),r[a]}(t);return Ed.set(e,n),r.observe(e),()=>{Ed.delete(e),r.unobserve(e)}}const _d={some:0,all:1};const Rd={inView:{Feature:class extends xc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:a}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:_d[r]};return Td(this.node.current,s,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,a&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends xc{mount(){const{current:e}=this.node;e&&(this.unmount=Mo(e,((e,t)=>(Sd(this.node,t,"Start"),(e,{success:t})=>Sd(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends xc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(ne){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=aa(jc(this.node.current,"focus",(()=>this.onFocus())),jc(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends xc{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,a,s]=So(e,n),i=e=>{if(!Eo(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const s=e=>{Eo(e)&&(r(e),n.removeEventListener("pointerleave",s))};n.addEventListener("pointerleave",s,a)};return r.forEach((e=>{e.addEventListener("pointerenter",i,a)})),s}(e,((e,t)=>
200(kd(this.node,t,"Start"),e=>kd(this.node,e,"End")))))}unmount(){}}}},Ld={layout:{ProjectionNode:jd,MeasureLayout:vu}},Md={current:null},Od={current:!1};const Dd=new WeakMap;const Id=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class zd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:a,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Oi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Da.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Ta.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=s;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=il(t),this.isVariantNode=ol(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const d in u){const e=u[d];void 0!==o[d]&&Do(e)&&e.set(o[d],!1)}}mount(e){this.current=e,Dd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Od.current||function(){if(Od.current=!0,Hr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Md.current=e.matches;e.addListener(t),t()}else Md.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Md.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_a(this.notifyUpdate),_a(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ki.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ta.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),a=t.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),a(),s&&s(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Ko){const t=Ko[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Id.length;n++){const t=Id[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const a=t[r],s=n[r];if(Do(a))e.addValue(r,a);else if(Do(s))e.addValue(r,wo(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{const t=e.getStaticValue(r);e.addValue(r,wo(void 0!==t?t:a,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
200addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=wo(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var r;return null!=n&&("string"==typeof n&&(Jr(n)||ea(n))?n=parseFloat(n):(r=n,!Io.find(ao(r))&&gs.test(t)&&(n=go(e,t))),this.setBaseTarget(e,Do(n)?n.get():n)),Do(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const a=Ul(this.props,n,null==(t=this.presenceContext)?void 0:t.custom);a&&(r=a[e])}if(n&&void 0!==r)return r;const a=this.getBaseTargetFromProps(this.props,e);return void 0===a||Do(a)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:a}on(e,t){return this.events[e]||(this.events[e]=new ia),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Ud extends zd{constructor(){super(...arguments),this.KeyframeResolver=vo}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Do(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}function Fd(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}class Vd extends Ud{constructor(){super(...arguments),this.type="html",this.renderInstance=Fd}readValueFromInstance(e,t){var n,r;if(ki.has(t))return(null==(n=this.projection)?void 0:n.isProjecting)?bi(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return wi(n,t)})(e,t);{const n=(r=e,window.getComputedStyle(r)),a=(za(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof a?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Yc(e,t)}build(e,t,n){kl(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Bl(e,t,n)}}const $d=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class Bd extends Ud{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Rc}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ki.has(t)){const e=po(t);return e&&e.default||0}return t=$d.has(t)?t:hl(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Hl(e,t,n)}
200build(e,t,n){_l(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){Fd(e,t,void 0,r);for(const a in t.attrs)e.setAttribute($d.has(a)?a:hl(a),t.attrs[a])}(e,t,0,r)}mount(e){this.isSVGTag=Ll(e.tagName),super.mount(e)}}const qd=el(Gl({...wc,...Rd,...Nd,...Ld},((e,t)=>Dl(e)?new Bd(t):new Vd(t,{allowProjection:e!==f.Fragment})))),Hd="Portal";function Wd(e,t=!0){f.useEffect((()=>{const n=t?`${Hd} | ${e}`:e;return document.title=n,()=>{document.title=Hd}}),[e,t])}const Gd=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,s={setState:r,getState:a,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e))},i=t=e(r,a,s);return s},Yd=e=>e;const Kd=e=>{const t=(e=>e?Gd(e):Gd)(e),n=e=>function(e,t=Yd){const n=p.useSyncExternalStore(e.subscribe,(()=>t(e.getState())),(()=>t(e.getInitialState())));return p.useDebugValue(n),n}(t,e);return Object.assign(n,t),n};function Qd(e,t){let n;try{n=e()}catch(ne){return}return{getItem:e=>{var t;const r=e=>null===e?null:JSON.parse(e,void 0),a=null!=(t=n.getItem(e))?t:null;return a instanceof Promise?a.then(r):r(a)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}const Xd=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Xd(e)(n),catch(e){return this}}}catch(ne){return{then(e){return this},catch:t=>Xd(t)(ne)}}},Jd=(e,t)=>(n,r,a)=>{let s={storage:Qd((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const o=new Set,l=new Set;let c=s.storage;if(!c)return e(((...e)=>{n(...e)}),r,a);const u=()=>{const e=s.partialize({...r()});return c.setItem(s.name,{state:e,version:s.version})},d=a.setState;a.setState=(e,t)=>{d(e,t),u()};const m=e(((...e)=>{n(...e),u()}),r,a);let h;a.getInitialState=()=>m;const f=()=>{var e,t;if(!c)return;i=!1,o.forEach((e=>{var t;return e(null!=(t=r())?t:m)}));const a=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:m))||void 0;return Xd(c.getItem.bind(c))(s.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];if(s.migrate){const t=s.migrate(e.state,e.version);return t instanceof Promise?t.then((e=>[!0,e])):[!0,t]}}return[!1,void 0]})).then((e=>{var t;const[a,i]=e;if(h=s.merge(i,null!=(t=r())?t:m),n(h,!0),a)return u()})).then((()=>{null==a||a(h,void 0),h=r(),i=!0,l.forEach((e=>e(h)))})).catch((e=>{null==a||a(void 0,e)}))};return a.persist={setOptions:e=>{s={...s,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>f(),hasHydrated:()=>i,onHydrate:e=>(o.add(e),()=>{o.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},s.skipHydration||f(),h||m},Zd=e=>{const t="/api/portal-servicios-ciudadanos/v1";if("localhost"===window.location.hostname){return`${t}${e}`}return`/backapi${t}${e}`},em=(tm?Kd(tm):Kd)(Jd(((e,t)=>({user:null,token:null,isAuthenticated:!1,loading:!1,error:null,login:async(t,n)=>{e({loading:!0,error:null});try{const r=Zd("/auth/login"),a=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:t,password:n})});if(!a.ok){let e;try{e=await a.json()}catch{e={message:`Error ${a.status}`}}throw new Error(e.message||"Error en el login")}const s=await a.json();if(s.success&&s.data&&s.data.token)return e({user:s.data.user,token:s.data.token,isAuthenticated:!0,loading:!1,error:null}),!0;throw new Error("Respuesta de login inválida")}catch(r){const t=r instanceof Error?r.message:"Error desconocido";return e({user:null,token:null,isAuthenticated:!1,loading:!1,error:t}),!1}},logout:()=>{e({user:null,token:null,isAuthenticated:!1,loading:!1,error:null})},clearError:()=>{e({error:null})},checkAuthStatus:()=>{const{user:n,token:r}=t();return n&&r?(e({isAuthenticated:!0}),!0):(e({user:null,token:null,isAuthenticated:!1}),!1)},initializeAuth:()=>{const{user:n,token:r}=t();e(n&&r?{isAuthenticated:!0}:{isAuthenticated:!1})}})),{name:"admin-auth-storage",storage:Qd((()=>localStorage)),partialize:e=>({user:e.user,token:e.token})}));var tm;const nm=()=>(e,t={})=>{const{token:n,isAuthenticated:r,user:a}=em.getState(),s=e.startsWith("http")?e:Zd(e),i={"Content-Type":"application/json",Accept:"application/json",...n&&{Authorization:`Bearer ${n}`},...t.headers};return fetch(s,{...t,headers:i,credentials:"include"})},rm={BASE_URL:"/servicios/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_API_BASE_PATH:"/api/portal-servicios-ciudadanos/v1",VITE_APP_API_HOST:"/busapi",VITE_APP_API_URL:"/backapi",VITE_APP_BASE_URL:"/servicios/",VITE_APP_CALLBACK_SDH_TO_PAGOS:"https://bogota.gov.co/servicios",VITE_APP_DEBUG:"false",VITE_APP_ENTIDAD_API_URL:"/busapi/api/master/entidad",VITE_APP_ENV:"production",VITE_APP_FAQS_ENDPOINT:"/faqs",V
200ITE_APP_FORCE_RECAPTCHA:"true",VITE_APP_GEOVISOR_URL:"https://bogota.gov.co/geovisor",VITE_APP_GROUP_API_URL:"/busapi/api/master/group",VITE_APP_KEYCLOAK_CLIENT_ID:"portal-client",VITE_APP_KEYCLOAK_REALM:"portal-integrador-distrital",VITE_APP_KEYCLOAK_URL:"https://autenticador.bogota.gov.co",VITE_APP_LOG_LEVEL:"error",VITE_APP_RECAPTCHA_SITE_KEY:"6Ld_NFcrAAAAAOsoVtGIHJzOt9QfMEZ2r4_fJKxh",VITE_APP_RESERVATION_URL:"/busapi/",VITE_APP_SDH_ULR_GENERATOR:"https://pagosweb.shd.gov.co/api/paymentservices/register",VITE_APP_SEARCH_API_URL:"/busapi/api/master/search",VITE_APP_SHOW_CERT_GUIDE:"false",VITE_APP_TITLE:"Portal de Servicios",VITE_APP_TOP_API_URL:"/busapi/api/master/top",VITE_APP_TRAMITES_API_URL:"/busapi/api/master/tramites",VITE_APP_URL_ASI_VAMOS:"https://bogota.gov.co/asi-vamos",VITE_APP_URL_INTERNACIONAL:"https://bogota.gov.co/internacional",VITE_APP_URL_MI_CIUDAD:"https://bogota.gov.co/mi-ciudad",VITE_APP_URL_PENDING_PAYMENTS:"https://bogota.gov.co/busapi/sdh/v2/http/notributario/obligpendientes",VITE_APP_URL_QUE_HACER:"https://bogota.gov.co/que-hacer/agenda-cultural",VITE_APP_URL_SERVICIOS:"https://bogota.gov.co/servicios",VITE_APP_URL_YO_PARTICIPO:"https://bogota.gov.co/yo-participo",VITE_APP_WHATSAPP_CHAT_URL:"https://api.whatsapp.com/send/?phone=%2B573160231524&text=Hola&type=phone_number&app_absent=0"},am=(e,t)=>{const n=rm[e]||t;return n||""},sm=am("VITE_APP_API_URL","http://localhost:4000"),im=am("VITE_APP_API_BASE_PATH","/api/portal-servicios-ciudadanos/v1"),om=am("VITE_APP_BASE_URL","/"),lm=am("VITE_APP_API_HOST","https://websgab.gobiernoabiertobogota.gov.co/bus"),cm={RESERVATION_URL:am("VITE_APP_RESERVATION_URL","/bus/"),SEARCH_API_URL:am("VITE_APP_SEARCH_API_URL","https://websgab.gobiernoabiertobogota.gov.co/bus/api/master/search"),TOP_API_URL:am("VITE_APP_TOP_API_URL","https://websgab.gobiernoabiertobogota.gov.co/bus/api/master/top"),TRAMITES_API_URL:am("VITE_APP_TRAMITES_API_URL","https://websgab.gobiernoabiertobogota.gov.co/bus/api/master/tramites"),GROUP_API_URL:am("VITE_APP_GROUP_API_URL","https://websgab.gobiernoabiertobogota.gov.co/bus/api/master/group"),ENTIDAD_API_URL:am("VITE_APP_ENTIDAD_API_URL","https://websgab.gobiernoabiertobogota.gov.co/bus/api/master/entidad")},um=cm.RESERVATION_URL,dm=am("VITE_APP_FAQS_ENDPOINT","/faqs"),mm="true"===am("VITE_APP_DEBUG");am("VITE_APP_LOG_LEVEL","error"),am("VITE_APP_ENV","development");const hm=am("VITE_APP_WHATSAPP_CHAT_URL","https://api.whatsapp.com/send/?phone=%2B573160231524&text=Hola&type=phone_number&app_absent=0"),fm={PHONE_CALL_URL:am("VITE_APP_ADVISOR_PHONE_URL","https://portalos.outsourcing.com.co:9573"),CALLBACK_URL:am("VITE_APP_ADVISOR_CALLBACK_URL","https://portalos.outsourcing.com.co:9663"),VIDEO_CALL_URL:am("VITE_APP_ADVISOR_VIDEO_URL","https://portalos.outsourcing.com.co:9406/")},pm={SITE_KEY:am("VITE_APP_RECAPTCHA_SITE_KEY","6LfatU0rAAAAAMhjLs-izz3gTfykKu4wexQ-tkqX"),USE_MOCK:!1,THEME:"light",SIZE:"normal"};am("VITE_APP_URL_PENDING_PAYMENTS","https://websgab.gobiernoabiertobogota.gov.co/bus/sdh/RESTAdapter/notributario/obligpendientes"),am("VITE_APP_SDH_ULR_GENERATOR","https://pagospru.shd.gov.co/api/paymentservices/register"),am("VITE_APP_CALLBACK_SDH_TO_PAGOS","https://bogota.gov.co/servicios"),am("VITE_APP_URL_MI_CIUDAD","https://bogota.gov.co/mi-ciudad"),am("VITE_APP_URL_QUE_HACER","https://bogota.gov.co/que-hacer/agenda-cultural"),am("VITE_APP_URL_SERVICIOS","https://bogota.gov.co/servicios"),am("VITE_APP_URL_YO_PARTICIPO","https://bogota.gov.co/yo-participo"),am("VITE_APP_URL_ASI_VAMOS","https://bogota.gov.co/asi-vamos"),am("VITE_APP_URL_INTERNACIONAL","https://bogota.gov.co/internacional"),am("VITE_APP_KEYCLOAK_URL","https://keycloak.alcaldiabogota.gov.co"),am("VITE_APP_KEYCLOAK_REALM","portal-integrador-distrital"),am("VITE_APP_KEYCLOAK_CLIENT_ID","portal-client"),am("VITE_APP_TITLE","Portal"),am("VITE_APP_SHOW_CERT_GUIDE");const gm=e=>cm[e],ym={RESERVATION_URL:um},vm="/servicios/assets/logo-bogota-BErjl_sx.svg";function xm({title:e,children:t}){var n;const[r,a]=f.useState(!1),[s,i]=f.useState(!1),o=wt(),{user:l,logout:u}=em();Wd(`Admin - ${e}`);const d="super_admin"===(null==l?void 0:l.role),m=e=>o.pathname===e||o.pathname.startsWith(e+"/"),h=[{path:xn.ADMIN.path,icon:cr,label:"Dashboard",exact:!0,requireSuperAdmin:!1},{path:xn.ADMIN_CONTENT.path,icon:lr,label:"Contenido",requireSuperAdmin:!1},{path:(null==(n=xn.ADMIN_RIBBON)?void 0:n.path)||"/admin/ribbon",icon:xr,label:"Configuración Ribbon",requireSuperAdmin:!1},{path:xn.ADMIN_ADMIN_USERS.path,icon:Pr,label:"Administradores",requireSuperAdmin:!0},{path:xn.ADMIN_SETTINGS.path,icon:Cr,label:"Configuración",requireSuperAdmin:!0}].filter((e=>!e.requireSuperAdmin||d)),p=()=>(null==l?void 0:l.firstName)&&(null==l?void 0:l.lastName)?`${l.firstName.charAt(0)}${l.lastName.charAt(0)}`.toUpperCase():"SA";return c.jsxs("div",{className:"flex h-screen bg-gray-100",children:[c.jsxs("aside",{className:"hidden md:flex md:flex-col md:w-64 md:fixed md:inset-y-0 bg-white shadow-md z-10",children:[c.jsx("div",{className:"flex items-center justify-center h-16 border-b",children:c.jsx(dn,{to:xn.ADMIN.path,className:"flex items-center",children:c.jsx("img",{src:vm,alt:"Logo Alcaldía Mayor de Bogotá D.C.",className:"h-10"})})}),c.jsx("nav",{className:"flex-1 overflow-y-auto pt-5 pb-4",children:c.jsx("div",{className:"px-4 space-y-1",children:h.map((e=>c.jsxs(dn,{to:e.path,className:"flex items-center px-4 py-2 text-sm font-medium rounded-md group transition-colors "+(m(e.path)?"bg-govco-primary text-white":"text-gray-700 hover:bg-gray-100"),children:[c.jsx(e.icon,{className:"mr-3 h-5 w-5 "+(m(e.path)?"text-white":"text-gray-400 group-hover:text-gray-500")}),e.label,e.requireSuperAdmin&&c.jsx(Pr,{className:"ml-auto h-3 w-3 text-purple-500"})]},e.path)))})}),c.jsx("div",{className:"border-t p-4",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"w-8 h-8 bg-govco-primary rounded-full flex items-center justify-center text-white",children:c.jsx("span",{className:"text-sm font-medium",children:p()})}),c.jsxs("div",{className:"ml-3",children:[c.jsx("p",{className:"text-sm font-medium text-gray-700",children:(null==l?void 0:l.firstName)&&(null==l?void 0:l.lastName)?`${l.firstName} ${l.lastName}`:"Super Admin"}),c.jsx("p",{className:"text-xs text-gray-500",children:(null==l?void 0:l.email)||"[email protected]"}),c.jsx("p",{className:"text-xs text-purple-600 font-medium",children:"super_admin"===(null==l?void 0:l.role)?"Super Admin":"Admin"})]})]})})]}),r&&c.jsx("div",{className:"md:hidden fixed inset-0 bg-gray-600 bg-opacity-50 z-20",onClick:()=>a(!1)}),c.jsxs(qd.aside,{className:"md:hidden fixed inset-y-0 left-0 z-30 w-64 bg-white shadow-lg",initial:{x:"-100%"},animate:{x:r?0:"-100%"},transition:{duration:.3},children:[c.jsxs("div",{className:"flex items-center justify-between h-16 border-b px-4",children:[c.jsx(dn,{to:xn.ADMIN.path,className:"flex items-center",children:c.jsx("img",{src:vm,alt:"Logo Alcaldía Mayor de Bogotá D.C.",className:"h-8"})}),c.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 hover:text-gray-700",children:c.jsx(Fr,{size:20})})]}),c.jsx("nav",{className:"flex-1 overflow-y-auto pt-5 pb-4",children:c.jsx("div",{className:"px-4 space-y-1",children:h.map((e=>c.jsxs(dn,{to:e.path,className:"flex items-center px-4 py-2 text-sm font-medium rounded-md "+(m(e.path)?"bg-govco-primary text-white":"text-gray-700 hover:bg-gray-100"),onClick:()=>a(!1),children:[c.jsx(e.icon,{className:"mr-3 h-5 w-5 "+(m(e.path)?"text-white":"text-gray-400")}),e.label,e.requireSuperAdmin&&c.jsx(Pr,{className:"ml-auto h-3 w-3 text-purple-500"})]},e.path)))})})]}),c.jsxs("div",{className:"md:ml-64 flex flex-col flex-1",children:[c.jsx("header",{className:"bg-white shadow-sm z-10",children:c.jsxs("div",{className:"px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx("button",{type:"button",className:"md:hidden text-gray-500 hover:text-gray-700 mr-2",onClick:()=>a(!0),children:c.jsx(yr,{size:24})}),c.jsx("h1",{className:"text-lg font-medium text-gray-900",children:e})]}),c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsxs("button",{className:"text-gray-500 hover:text-gray-700 relative",children:[c.jsx(Bn,{size:20}),c.jsx("span",{className:"absolute -top-1 -right-1 h-4 w-4 bg-govco-danger text-white text-xs rounded-full flex items-center justify-center",children:"3"})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{className:"flex items-center space-x-2 focus:outline-none",onClick:()=>i(!s),children:[c.jsx("div",{className:"w-8 h-8 bg-govco-primary rounded-full flex items-center justify-center text-white",children:c.jsx("span",{className:"text-sm font-medium",children:p()})}),c.jsx(Gn,{size:16,className:"text-gray-500"})]}),s&&c.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10 border",children:[c.jsxs(dn,{to:xn.ADMIN_PROFILE.path,className:"flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:()=>i(!1),children:[c.jsx(zr,{size:16,className:"mr-2 text-gray-500"}),"Mi perfil"]}
vendor: 8,914 bytes, line 200
200),d&&c.jsxs(dn,{to:xn.ADMIN_SETTINGS.path,className:"flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:()=>i(!1),children:[c.jsx(Cr,{size:16,className:"mr-2 text-gray-500"}),"Configuración"]}),c.jsx("div",{className:"border-t my-1"}),c.jsxs("button",{onClick:()=>{i(!1),u();const e=`${om.endsWith("/")?om.slice(0,-1):om}${xn.HOME.path}`;window.location.href=e},className:"w-full text-left flex items-center px-4 py-2 text-sm text-govco-danger hover:bg-gray-100",children:[c.jsx(pr,{size:16,className:"mr-2 text-govco-danger"}),"Cerrar sesión"]})]})]})]})]})}),c.jsx("main",{className:"flex-1 overflow-y-auto bg-gray-100 p-6",children:t})]})]})}function bm(e,t){return function(){return e.apply(t,arguments)}}const{toString:wm}=Object.prototype,{getPrototypeOf:jm}=Object,{iterator:Nm,toStringTag:km}=Symbol,Sm=(e=>t=>{const n=wm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Em=e=>(e=e.toLowerCase(),t=>Sm(t)===e),Cm=e=>t=>typeof t===e,{isArray:Pm}=Array,Am=Cm("undefined");const Tm=Em("ArrayBuffer");const _m=Cm("string"),Rm=Cm("function"),Lm=Cm("number"),Mm=e=>null!==e&&"object"==typeof e,Om=e=>{if("object"!==Sm(e))return!1;const t=jm(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||km in e||Nm in e)},Dm=Em("Date"),Im=Em("File"),zm=Em("Blob"),Um=Em("FileList"),Fm=Em("URLSearchParams"),[Vm,$m,Bm,qm]=["ReadableStream","Request","Response","Headers"].map(Em);function Hm(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),Pm(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let i;for(r=0;r<s;r++)i=a[r],t.call(null,e[i],i,e)}}function Wm(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const Gm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ym=e=>!Am(e)&&e!==Gm;const Km=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&jm(Uint8Array)),Qm=Em("HTMLFormElement"),Xm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jm=Em("RegExp"),Zm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Hm(n,((n,a)=>{let s;!1!==(s=t(n,a,e))&&(r[a]=s||n)})),Object.defineProperties(e,r)};const eh=Em("AsyncFunction"),th=(nh="function"==typeof setImmediate,rh=Rm(Gm.postMessage),nh?setImmediate:rh?(ah=`axios@${Math.random()}`,sh=[],Gm.addEventListener("message",(({source:e,data:t})=>{e===Gm&&t===ah&&sh.length&&sh.shift()()}),!1),e=>{sh.push(e),Gm.postMessage(ah,"*")}):e=>setTimeout(e));var nh,rh,ah,sh;const ih="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Gm):"undefined"!=typeof process&&process.nextTick||th,oh={isArray:Pm,isArrayBuffer:Tm,isBuffer:function(e){return null!==e&&!Am(e)&&null!==e.constructor&&!Am(e.constructor)&&Rm(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Rm(e.append)&&("formdata"===(t=Sm(e))||"object"===t&&Rm(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Tm(e.buffer),t},isString:_m,isNumber:Lm,isBoolean:e=>!0===e||!1===e,isObject:Mm,isPlainObject:Om,isReadableStream:Vm,isRequest:$m,isResponse:Bm,isHeaders:qm,isUndefined:Am,isDate:Dm,isFile:Im,isBlob:zm,isRegExp:Jm,isFunction:Rm,isStream:e=>Mm(e)&&Rm(e.pipe),isURLSearchParams:Fm,isTypedArray:Km,isFileList:Um,forEach:Hm,merge:function e(){const{caseless:t}=Ym(this)&&this||{},n={},r=(r,a)=>{const s=t&&Wm(n,a)||a;Om(n[s])&&Om(r)?n[s]=e(n[s],r):Om(r)?n[s]=e({},r):Pm(r)?n[s]=r.slice():n[s]=r};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&Hm(arguments[a],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Hm(t,((t,r)=>{n&&Rm(t)?e[r]=bm(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,s,i;const o={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],r&&!r(i,e,t)||o[i]||(t[i]=e[i],o[i]=!0);e=!1!==n&&jm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Sm,kindOfTest:Em,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Pm(e))return e;let t=e.length;if(!Lm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Nm]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Qm,hasOwnProperty:Xm,hasOwnProp:Xm,reduceDescriptors:Zm,freezeMethods:e=>{Zm(e,((t,n)=>{if(Rm(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Rm(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Pm(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Wm,global:Gm,isContextDefined:Ym,isSpecCompliantForm:function(e){return!!(e&&Rm(e.append)&&"FormData"===e[km]&&e[Nm])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Mm(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const a=Pm(e)?[]:{};return Hm(e,((e,t)=>{const s=n(e,r+1);!Am(s)&&(a[t]=s)})),t[r]=void 0,a}}return e};return n(e,0)},isAsyncFn:eh,isThenable:e=>e&&(Mm(e)||Rm(e))&&Rm(e.then)&&Rm(e.catch),setImmediate:th,asap:ih,isIterable:e=>null!=e&&Rm(e[Nm])};function lh(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}oh.inherits(lh,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oh.toJSONObject(this.config),code:this.code,status:this.status}}});const ch=lh.prototype,uh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{uh[e]={value:e}})),Object.defineProperties(lh,uh),Object.defineProperty(ch,"isAxiosError",{value:!0}),lh.from=(e,t,n,r,a,s)=>{const i=Object.create(ch);return oh.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),lh.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function dh(e){return oh.isPlainObject(e)||oh.isArray(e)}function mh(e){return oh.endsWith(e,"[]")?e.slice(0,-2):e}function hh(e,t,n){return e?e.concat(t).map((function(e,t){return e=mh(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const fh=oh.toFlatObject(oh,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ph(e,t,n){if(!oh.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=oh.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!oh.isUndefined(t[e])}))).metaTokens,a=n.visitor||c,s=n.dots,i=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&oh.isSpecCompliantForm(t);if(!oh.isFunction(a))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(oh.isDate(e))return e.toISOString();if(!o&&oh.isBlob(e))throw new lh("Blob is not supported. Use a Buffer instead.");return oh.isArrayBuffer(e)||oh.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,a){let o=e;if(e&&!a&&"object"==typeof e)if(oh.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(oh.isArray(e)&&function(e){return oh.isArray(e)&&!e.some(dh)}(e)||(oh.isFileList(e)||oh.endsWith(n,"[]"))&&(o=oh.toArray(e)))return n=mh(n),o.forEach((function(e,r){!oh.isUndefined(e)&&null!==e&&t.append(!0===i?hh([n],r,s):null===i?n:n+"[]",l(e))})),!1;return!!dh(e)||(t.append(hh(a,n,s),l(e)),!1)}const u=[],d=Object.assign(fh,{defaultVisitor:c,convertValue:l,isVisitable:dh});if(!oh.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!oh.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));
vendor: 4,853 bytes, line 200
200u.push(n),oh.forEach(n,(function(n,s){!0===(!(oh.isUndefined(n)||null===n)&&a.call(t,n,oh.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])})),u.pop()}}(e),t}function gh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function yh(e,t){this._pairs=[],e&&ph(e,this,t)}const vh=yh.prototype;function xh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bh(e,t,n){if(!t)return e;const r=n&&n.encode||xh;oh.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(s=a?a(t,n):oh.isURLSearchParams(t)?t.toString():new yh(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}vh.append=function(e,t){this._pairs.push([e,t])},vh.toString=function(e){const t=e?function(t){return e.call(this,t,gh)}:gh;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class wh{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oh.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const jh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nh={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:yh,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},kh="undefined"!=typeof window&&"undefined"!=typeof document,Sh="object"==typeof navigator&&navigator||void 0,Eh=kh&&(!Sh||["ReactNative","NativeScript","NS"].indexOf(Sh.product)<0),Ch="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ph=kh&&window.location.href||"http://localhost",Ah={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kh,hasStandardBrowserEnv:Eh,hasStandardBrowserWebWorkerEnv:Ch,navigator:Sh,origin:Ph},Symbol.toStringTag,{value:"Module"})),...Nh};function Th(e){function t(e,n,r,a){let s=e[a++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),o=a>=e.length;if(s=!s&&oh.isArray(r)?r.length:s,o)return oh.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&oh.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],a)&&oh.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(oh.isFormData(e)&&oh.isFunction(e.entries)){const n={};return oh.forEachEntry(e,((e,r)=>{t(function(e){return oh.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const _h={transitional:jh,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=oh.isObject(e);a&&oh.isHTMLForm(e)&&(e=new FormData(e));if(oh.isFormData(e))return r?JSON.stringify(Th(e)):e;if(oh.isArrayBuffer(e)||oh.isBuffer(e)||oh.isStream(e)||oh.isFile(e)||oh.isBlob(e)||oh.isReadableStream(e))return e;if(oh.isArrayBufferView(e))return e.buffer;if(oh.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ph(e,new Ah.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ah.isNode&&oh.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=oh.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ph(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(oh.isString(e))try{return(t||JSON.parse)(e),oh.trim(e)}catch(ne){if("SyntaxError"!==ne.name)throw ne}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_h.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(oh.isResponse(e)||oh.isReadableStream(e))return e;if(e&&oh.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(ne){if(n){if("SyntaxError"===ne.name)throw lh.from(ne,lh.ERR_BAD_RESPONSE,this,null,this.response);throw ne}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ah.classes.FormData,Blob:Ah.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};
vendor: 4,411 bytes, line 200
200oh.forEach(["delete","get","head","post","put","patch"],(e=>{_h.headers[e]={}}));const Rh=oh.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"]),Lh=Symbol("internals");function Mh(e){return e&&String(e).trim().toLowerCase()}function Oh(e){return!1===e||null==e?e:oh.isArray(e)?e.map(Oh):String(e)}function Dh(e,t,n,r,a){return oh.isFunction(r)?r.call(this,t,n):(a&&(t=n),oh.isString(t)?oh.isString(r)?-1!==t.indexOf(r):oh.isRegExp(r)?r.test(t):void 0:void 0)}let Ih=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=Mh(t);if(!a)throw new Error("header name must be a non-empty string");const s=oh.findKey(r,a);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Oh(e))}const s=(e,t)=>oh.forEach(e,((e,n)=>a(e,n,t)));if(oh.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(oh.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&Rh[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(oh.isObject(e)&&oh.isIterable(e)){let n,r,a={};for(const t of e){if(!oh.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[r=t[0]]=(n=a[r])?oh.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Mh(e)){const n=oh.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(oh.isFunction(t))return t.call(this,e,n);if(oh.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mh(e)){const n=oh.findKey(this,e);return!(!n||void 0===this[n]||t&&!Dh(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=Mh(e)){const a=oh.findKey(n,e);!a||t&&!Dh(0,n[a],a,t)||(delete n[a],r=!0)}}return oh.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!Dh(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return oh.forEach(this,((r,a)=>{const s=oh.findKey(n,a);if(s)return t[s]=Oh(r),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();i!==a&&delete t[a],t[i]=Oh(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return oh.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&oh.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Lh]=this[Lh]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Mh(e);t[r]||(!function(e,t){const n=oh.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[r]=!0)}return oh.isArray(e)?e.forEach(r):r(e),this}};function zh(e,t){const n=this||_h,r=t||n,a=Ih.from(r.headers);let s=r.data;return oh.forEach(e,(function(e){s=e.call(n,s,a.normalize(),t?t.status:void 0)})),a.normalize(),s}function Uh(e){return!(!e||!e.__CANCEL__)}function Fh(e,t,n){lh.call(this,null==e?"canceled":e,lh.ERR_CANCELED,t,n),this.name="CanceledError"}function Vh(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new lh("Request failed with status code "+n.status,[lh.ERR_BAD_REQUEST,lh.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Ih.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oh.reduceDescriptors(Ih.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}
vendor: 4,908 bytes, line 200
200)),oh.freezeMethods(Ih),oh.inherits(Fh,lh,{__CANCEL__:!0});const $h=(e,t,n=3)=>{let r=0;const a=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,s=0,i=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=r[i];a||(a=l),n[s]=o,r[s]=l;let u=i,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-a<t)return;const m=c&&l-c;return m?Math.round(1e3*d/m):void 0}}(50,250);return function(e,t){let n,r,a=0,s=1e3/t;const i=(t,s=Date.now())=>{a=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),o=t-a;o>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-o)))},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,o=s-r,l=a(o);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:o,rate:l||void 0,estimated:l&&i&&s<=i?(i-s)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Bh=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},qh=e=>(...t)=>oh.asap((()=>e(...t))),Hh=Ah.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ah.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ah.origin),Ah.navigator&&/(msie|trident)/i.test(Ah.navigator.userAgent)):()=>!0,Wh=Ah.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const i=[e+"="+encodeURIComponent(t)];oh.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),oh.isString(r)&&i.push("path="+r),oh.isString(a)&&i.push("domain="+a),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gh(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Yh=e=>e instanceof Ih?{...e}:e;function Kh(e,t){t=t||{};const n={};function r(e,t,n,r){return oh.isPlainObject(e)&&oh.isPlainObject(t)?oh.merge.call({caseless:r},e,t):oh.isPlainObject(t)?oh.merge({},t):oh.isArray(t)?t.slice():t}function a(e,t,n,a){return oh.isUndefined(t)?oh.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function s(e,t){if(!oh.isUndefined(t))return r(void 0,t)}function i(e,t){return oh.isUndefined(t)?oh.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function o(n,a,s){return s in t?r(n,a):s in e?r(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(e,t,n)=>a(Yh(e),Yh(t),0,!0)};return oh.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=l[r]||a,i=s(e[r],t[r],r);oh.isUndefined(i)&&s!==o||(n[r]=i)})),n}const Qh=e=>{const t=Kh({},e);let n,{data:r,withXSRFToken:a,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:l}=t;if(t.headers=o=Ih.from(o),t.url=bh(Gh(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),oh.isFormData(r))if(Ah.hasStandardBrowserEnv||Ah.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(!1!==(n=o.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ah.hasStandardBrowserEnv&&(a&&oh.isFunction(a)&&(a=a(t)),a||!1!==a&&Hh(t.url))){const e=s&&i&&Wh.read(i);e&&o.set(s,e)}return t},Xh="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Qh(e);let a=r.data;const s=Ih.from(r.headers).normalize();let i,o,l,c,u,{responseType:d,onUploadProgress:m,onDownloadProgress:h}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let p=new XMLHttpRequest;function g(){if(!p)return;const r=Ih.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());Vh((function(e){t(e),f()}),(function(e){n(e),f()}),{data:d&&"text"!==d&&"json"!==d?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p}),p=null}p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout,"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(g)},p.onabort=function(){p&&(n(new lh("Request aborted",lh.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new lh("Network Error",lh.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||jh;
vendor: 1,486 bytes, line 200
200r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new lh(t,a.clarifyTimeoutError?lh.ETIMEDOUT:lh.ECONNABORTED,e,p)),p=null},void 0===a&&s.setContentType(null),"setRequestHeader"in p&&oh.forEach(s.toJSON(),(function(e,t){p.setRequestHeader(t,e)})),oh.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),d&&"json"!==d&&(p.responseType=r.responseType),h&&([l,u]=$h(h,!0),p.addEventListener("progress",l)),m&&p.upload&&([o,c]=$h(m),p.upload.addEventListener("progress",o),p.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{p&&(n(!t||t.type?new Fh(null,e,p):t),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Ah.protocols.indexOf(y)?n(new lh("Unsupported protocol "+y+":",lh.ERR_BAD_REQUEST,e)):p.send(a||null)}))},Jh=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const a=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof lh?t:new Fh(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,a(new lh(`timeout ${t} of ms exceeded`,lh.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:o}=r;return o.unsubscribe=()=>
vendor: 8,370 bytes, line 200
200oh.asap(i),o}},Zh=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},ef=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},tf=(e,t,n,r)=>{const a=async function*(e,t){for await(const n of ef(e))yield*Zh(n,t)}(e,t);let s,i=0,o=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return o(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw o(t),t}},cancel:e=>(o(e),a.return())},{highWaterMark:2})},nf="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,rf=nf&&"function"==typeof ReadableStream,af=nf&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),sf=(e,...t)=>{try{return!!e(...t)}catch(ne){return!1}},of=rf&&sf((()=>{let e=!1;const t=new Request(Ah.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),lf=rf&&sf((()=>oh.isReadableStream(new Response("").body))),cf={stream:lf&&(e=>e.body)};var uf;nf&&(uf=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!cf[e]&&(cf[e]=oh.isFunction(uf[e])?t=>t[e]():(t,n)=>{throw new lh(`Response type '${e}' is not supported`,lh.ERR_NOT_SUPPORT,n)})})));const df=async(e,t)=>{const n=oh.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(oh.isBlob(e))return e.size;if(oh.isSpecCompliantForm(e)){const t=new Request(Ah.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return oh.isArrayBufferView(e)||oh.isArrayBuffer(e)?e.byteLength:(oh.isURLSearchParams(e)&&(e+=""),oh.isString(e)?(await af(e)).byteLength:void 0)})(t):n},mf={http:null,xhr:Xh,fetch:nf&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:s,timeout:i,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:m}=Qh(e);c=c?(c+"").toLowerCase():"text";let h,f=Jh([a,s&&s.toAbortSignal()],i);const p=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&of&&"get"!==n&&"head"!==n&&0!==(g=await df(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(oh.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Bh(g,$h(qh(l)));r=tf(n.body,65536,e,t)}}oh.isString(d)||(d=d?"include":"omit");const a="credentials"in Request.prototype;h=new Request(t,{...m,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:a?d:void 0});let s=await fetch(h);const i=lf&&("stream"===c||"response"===c);if(lf&&(o||i&&p)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=oh.toFiniteNumber(s.headers.get("content-length")),[n,r]=o&&Bh(t,$h(qh(o),!0))||[];s=new Response(tf(s.body,65536,n,(()=>{r&&r(),p&&p()})),e)}c=c||"text";let y=await cf[oh.findKey(cf,c)||"text"](s,e);return!i&&p&&p(),await new Promise(((t,n)=>{Vh(t,n,{data:y,headers:Ih.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:h})}))}catch(y){if(p&&p(),y&&"TypeError"===y.name&&/Load failed|fetch/i.test(y.message))throw Object.assign(new lh("Network Error",lh.ERR_NETWORK,e,h),{cause:y.cause||y});throw lh.from(y,y&&y.code,e,h)}})};oh.forEach(mf,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(ne){}Object.defineProperty(e,"adapterName",{value:t})}}));const hf=e=>`- ${e}`,ff=e=>oh.isFunction(e)||null===e||!1===e,pf=e=>{e=oh.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!ff(n)&&(r=mf[(t=String(n)).toLowerCase()],void 0===r))throw new lh(`Unknown adapter '${t}'`);if(r)break;a[t||"#"+s]=r}if(!r){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new lh("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(hf).join("\n"):" "+hf(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function gf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fh(null,e)}function yf(e){gf(e),e.headers=Ih.from(e.headers),e.data=zh.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return pf(e.adapter||_h.adapter)(e).then((function(t){return gf(e),t.data=zh.call(e,e.transformResponse,t),t.headers=Ih.from(t.headers),t}),(function(t){return Uh(t)||(gf(e),t&&t.response&&(t.response.data=zh.call(e,e.transformResponse,t.response),t.response.headers=Ih.from(t.response.headers))),Promise.reject(t)}))}const vf="1.9.0",xf={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{xf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const bf={};xf.transitional=function(e,t,n){return(r,a,s)=>{if(!1===e)throw new lh(function(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}(a," has been removed"+(t?" in "+t:"")),lh.ERR_DEPRECATED);return t&&!bf[a]&&(bf[a]=!0),!e||e(r,a,s)}},xf.spelling=function(e){return(e,t)=>!0};const wf={assertOptions:function(e,t,n){if("object"!=typeof e)throw new lh("options must be an object",lh.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new lh("option "+s+" must be "+n,lh.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new lh("Unknown option "+s,lh.ERR_BAD_OPTION)}},validators:xf},jf=wf.validators;let Nf=class{constructor(e){this.defaults=e||{},this.interceptors={request:new wh,response:new wh}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(ne){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Kh(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&wf.assertOptions(n,{silentJSONParsing:jf.transitional(jf.boolean),forcedJSONParsing:jf.transitional(jf.boolean),clarifyTimeoutError:jf.transitional(jf.boolean)},!1),null!=r&&(oh.isFunction(r)?t.paramsSerializer={serialize:r}:wf.assertOptions(r,{encode:jf.function,serialize:jf.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),wf.assertOptions(t,{baseUrl:jf.spelling("baseURL"),withXsrfToken:jf.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&oh.merge(a.common,a[t.method]);a&&oh.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=Ih.concat(s,a);const i=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!o){const e=[yf.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let m=t;for(d=0;d<u;){const e=i[d++],t=i[d++];try{m=e(m)}catch(h){t.call(this,h);break}}try{c=yf.call(this,m)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return bh(Gh((e=Kh(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};oh.forEach(["delete","get","head","options"],(function(e){Nf.prototype[e]=function(t,n){return this.request(Kh(n||{},{method:e,url:t,data:(n||{}).data}))}})),oh.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,a){return this.request(Kh(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Nf.prototype[e]=t(),Nf.prototype[e+"Form"]=t(!0)}));const kf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
200setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kf).forEach((([e,t])=>{kf[t]=e}));const Sf=function e(t){const n=new Nf(t),r=bm(Nf.prototype.request,n);return oh.extend(r,Nf.prototype,n,{allOwnKeys:!0}),oh.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Kh(t,n))},r}(_h);Sf.Axios=Nf,Sf.CanceledError=Fh,Sf.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,a){n.reason||(n.reason=new Fh(e,r,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},Sf.isCancel=Uh,Sf.VERSION=vf,Sf.toFormData=ph,Sf.AxiosError=lh,Sf.Cancel=Sf.CanceledError,Sf.all=function(e){return Promise.all(e)},Sf.spread=function(e){return function(t){return e.apply(null,t)}},Sf.isAxiosError=function(e){return oh.isObject(e)&&!0===e.isAxiosError},Sf.mergeConfig=Kh,Sf.AxiosHeaders=Ih,Sf.formToJSON=e=>Th(oh.isHTMLForm(e)?new FormData(e):e),Sf.getAdapter=pf,Sf.HttpStatusCode=kf,Sf.default=Sf;const{Axios:Ef,AxiosError:Cf,CanceledError:Pf,isCancel:Af,CancelToken:Tf,VERSION:_f,all:Rf,Cancel:Lf,isAxiosError:Mf,spread:Of,toFormData:Df,AxiosHeaders:If,HttpStatusCode:zf,formToJSON:Uf,getAdapter:Ff,mergeConfig:Vf}=Sf,$f=Sf.create({baseURL:`${sm}${im}`,headers:{"Content-Type":"application/json",Accept:"application/json"},timeout:1e4});$f.interceptors.request.use((e=>e),(e=>Promise.reject(e))),$f.interceptors.response.use((e=>e),(e=>(e.response||e.request,Promise.reject(e))));const Bf=new class{constructor(){t(this,"baseUrl","/dashboard")}async getStats(){var e,t;try{const n=await $f.get(`${this.baseUrl}/stats`);if(null==(e=n.data)?void 0:e.success)return n.data.data;throw new Error((null==(t=n.data)?void 0:t.message)||"Error al obtener estadísticas")}catch(n){return this.getDefaultStats()}}async getRecentActivity(e=10){var t,n;try{const r=await $f.get(`${this.baseUrl}/activity?limit=${e}`);if(null==(t=r.data)?void 0:t.success)return r.data.data||[];throw new Error((null==(n=r.data)?void 0:n.message)||"Error al obtener actividad reciente")}catch(r){return this.getDefaultActivity()}}async clearStatsCache(){var e;try{return(null==(e=(await $f.post(`${this.baseUrl}/clear-cache`)).data)?void 0:e.success)||!1}catch(t){return!1}}getDefaultStats(){return{faqs:{total:0,active:0,inactive:0,recentlyUpdated:0},news:{total:0,active:0,inactive:0,thisMonth:0,recentlyUpdated:0},tramites:{totalRatings:0,averageRating:0,totalShares:0,topRatedTramites:[]},admins:{total:1,active:1,superAdmins:1,recentLogins:0},feedback:{total:0,processed:0,pending:0,thisWeek:0,thisMonth:0},activity:{totalInteractions:0,popularContent:[]}}}getDefaultActivity(){return[{id:"1",type:"admin",action:"login",title:"Sistema iniciado",description:"El sistema ha sido iniciado correctamente",timestamp:(new Date).toISOString(),user:"Sistema"}]}formatNumber(e){return new Intl.NumberFormat("es-ES").format(e)}formatPercentage(e,t){if(0===t)return"0%";const n=e/t*100;return`${Math.round(n)}%`}calculateChange(e,t){if(0===t)return{value:e>0?"+100%":"0%",isPositive:e>0};const n=(e-t)/t*100;return{value:`${n>=0?"+":""}${Math.round(10*n)/10}%`,isPositive:n>=0}}
200async getFormattedStats(){const e=await this.getStats();return[{title:"Preguntas Frecuentes",value:this.formatNumber(e.faqs.active),total:e.faqs.total,change:this.calculateChange(e.faqs.active,Math.max(0,e.faqs.active-e.faqs.recentlyUpdated)),icon:"HelpCircle",color:"bg-purple-500",description:`${e.faqs.total} total, ${e.faqs.inactive} inactivas`,trend:`${e.faqs.recentlyUpdated} actualizadas esta semana`},{title:"Noticias Publicadas",value:this.formatNumber(e.news.active),total:e.news.total,change:this.calculateChange(e.news.active,Math.max(0,e.news.active-e.news.thisMonth)),icon:"Calendar",color:"bg-blue-500",description:`${e.news.thisMonth} este mes`,trend:`${e.news.recentlyUpdated} actualizadas esta semana`},{title:"Evaluaciones de Trámites",value:this.formatNumber(e.tramites.totalRatings),total:e.tramites.totalRatings,change:this.calculateChange(e.tramites.totalRatings,Math.max(0,e.tramites.totalRatings-50)),icon:"Star",color:"bg-yellow-500",description:`Promedio: ${e.tramites.averageRating.toFixed(1)}/5.0`,trend:`${this.formatNumber(e.tramites.totalShares)} compartidos`},{title:"Comentarios Recibidos",value:this.formatNumber(e.feedback.total),total:e.feedback.total,change:this.calculateChange(e.feedback.total,Math.max(0,e.feedback.total-e.feedback.thisWeek)),icon:"MessageSquare",color:"bg-green-500",description:`${e.feedback.pending} pendientes`,trend:`${e.feedback.thisWeek} esta semana`}]}};function qf(){const[e,t]=f.useState("estadisticas"),[n,r]=f.useState(!1),{user:a}=em(),s="super_admin"===(null==a?void 0:a.role),{stats:i,recentActivity:o,formattedStats:l,loading:u,error:d,clearCache:m}=((e=!0)=>{const[t,n]=f.useState(null),[r,a]=f.useState([]),[s,i]=f.useState([]),[o,l]=f.useState(!0),[c,u]=f.useState(null),d=f.useCallback((async(e=!1)=>{try{l(!0),u(null);const[t,r,s]=await Promise.all([Bf.getStats(),Bf.getRecentActivity(10),Bf.getFormattedStats()]);n(t),a(r),i(s),e&&Le.success("Estadísticas actualizadas")}catch(t){const n=t instanceof Error?t.message:"Error al cargar estadísticas";u(n),e&&Le.error("Error al actualizar estadísticas")}finally{l(!1)}}),[]),m=f.useCallback((async()=>{await d(!0)}),[d]),h=f.useCallback((async()=>{try{await Bf.clearStatsCache()?(Le.success("Caché limpiado correctamente"),await d(!1)):Le.error("Error al limpiar caché")}catch(e){Le.error("Error al limpiar caché")}}),[d]);return f.useEffect((()=>{d(!1)}),[d]),f.useEffect((()=>{if(!e)return;const t=setInterval((()=>{d(!1)}),3e5);return()=>clearInterval(t)}),[e,d]),{stats:t,recentActivity:r,formattedStats:s,loading:o,error:c,refreshStats:m,clearCache:h}})(!0),h={HelpCircle:Zn,Calendar:qn,Star:Tr,MessageSquare:xr,Users:Ur,FileText:lr,Eye:or,Bell:Bn},p=f.useCallback((async()=>{if(!n)try{r(!0),await m()}catch(e){}finally{r(!1)}}),[m,n]),g=[{path:xn.ADMIN_CONTENT.path,icon:lr,label:"Gestionar Contenido",description:"FAQs y noticias",requireSuperAdmin:!1},{path:xn.ADMIN_FAQS.path,icon:Zn,label:"Gestionar FAQs",description:"Preguntas frecuentes",requireSuperAdmin:!1},{path:xn.ADMIN_NEWS.path,icon:qn,label:"Gestionar Noticias",description:"Noticias y novedades",requireSuperAdmin:!1},{path:xn.ADMIN_ALERTS.path,icon:Bn,label:"Gestionar Alertas",description:"Alertas del sistema",requireSuperAdmin:!1},{path:xn.ADMIN_RIBBON.path,icon:xr,label:"Configurar Ribbon",description:"Ribbon de feedback",requireSuperAdmin:!1},{path:xn.ADMIN_ADMIN_USERS.path,icon:Pr,label:"Administradores",description:"Gestión de administradores",requireSuperAdmin:!0},{path:xn.ADMIN_SETTINGS.path,icon:Cr,label:"Configuración",description:"Email y configuración",requireSuperAdmin:!0}].filter((e=>!e.requireSuperAdmin||s)),y=e=>{const t=new Date,n=new Date(e),r=Math.floor((t.getTime()-n.getTime())/6e4);if(r<1)return"Hace un momento";if(r<60)return`Hace ${r} minuto${1!==r?"s":""}`;const a=Math.floor(r/60);if(a<24)return`Hace ${a} hora${1!==a?"s":""}`;const s=Math.floor(a/24);if(s<30)return`Hace ${s} día${1!==s?"s":""}`;const i=Math.floor(s/30);return`Hace ${i} mes${1!==i?"es":""}`},v=e=>{switch(e){case"faq":return c.jsx(Zn,{size:16,className:"text-purple-600"});case"news":return c.jsx(qn,{size:16,className:"text-blue-600"});case"admin":return c.jsx(Pr,{size:16,className:"text-green-600"});case"feedback":return c.jsx(xr,{size:16,className:"text-orange-600"});default:return c.jsx(lr,{size:16,className:"text-gray-600"})}};return c.jsxs(xm,{title:"Panel de Control",children:[d&&c.jsx("div",{className:"mb-6 bg-red-50 border border-red-200 rounded-lg p-4",children:c.jsxs("div",{className:"flex items-start",children:[c.jsx(Or,{className:"h-5 w-5 text-red-400 mr-2 mt-0.5"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Error al cargar estadísticas"}),c.jsx("p",{className:"text-sm text-red-600 mt-1",children:d})]}),c.jsx("button",{onClick:p,disabled:n,className:"ml-2 text-red-600 hover:text-red-800 disabled:opacity-50",children:c.jsx(wr,{size:16,className:n?"animate-spin":""})})]})}),c.jsx("div",{className:"flex items-center justify-between mb-6",children:c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Panel de Control"}),c.jsx("p",{className:"text-gray-500",children:"Resumen de la actividad del portal de servicios ciudadanos"})]})}),!1,c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:u&&!n?Array.from({length:4}).map(((e,t)=>c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 animate-pulse",children:[c.jsxs("div",{className:"flex justify-between items-start mb-4",children:[c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),c.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/2"})]}),c.jsx("div",{className:"w-10 h-10 bg-gray-200 rounded-lg"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"h-4 bg-gray-200 rounded w-16 mr-2"}),c.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]})]},t))):l.map(((e,t)=>{const n=h[e.icon]||lr;return c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 flex flex-col hover:shadow-md transition-shadow",children:[c.jsxs("div",{className:"flex justify-between items-start mb-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-gray-500 mb-1",children:e.title}),c.jsx("h3",{className:"text-2xl font-bold",children:e.value})]}),c.jsx("div",{className:`${e.color} text-white p-3 rounded-lg`,children:c.jsx(n,{size:18})})]}),c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{className:"flex items-center",children:[e.change.isPositive?c.jsx(Mr,{size:16,className:"text-green-500 mr-1"}):c.jsx(Lr,{size:16,className:"text-red-500 mr-1"}),c.jsx("span",{className:e.change.isPositive?"text-green-500":"text-red-500",children:e.change.value})]})}),c.jsxs("div",{className:"mt-2",children:[c.jsx("p",{className:"text-xs text-gray-500",children:e.description}),c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:e.trend})]})]},t)}))}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:[c.jsxs("div",{className:"lg:col-span-2 bg-white rounded-lg shadow-sm",children:[c.jsx("div",{className:"border-b",children:c.jsxs("nav",{className:"flex",children:[c.jsx("button",{className:"px-6 py-4 text-sm font-medium "+("estadisticas"===e?"border-b-2 border-govco-primary text-govco-primary":"text-gray-500 hover:text-gray-700"),onClick:()=>t("estadisticas"),children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(Hn,{size:16,className:"mr-2"}),"Estadísticas Detalladas"]})}),c.jsx("button",{className:"px-6 py-4 text-sm font-medium "+("recientes"===e?"border-b-2 border-govco-primary text-govco-primary":"text-gray-500 hover:text-gray-700"),onClick:()=>t("recientes"),children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(nr,{size:16,className:"mr-2"}),"Actividad Reciente"]})})]})}),c.jsx("div",{className:"p-6",children:"estadisticas"===e?c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-medium mb-4",children:"Estadísticas Detalladas"}),u&&!n?c.jsx("div",{className:"flex justify-center py-8",children:c.jsx(fr,{className:"animate-spin h-8 w-8 text-govco-primary"})}):i?c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{className:"bg-purple-50 p-4 rounded-lg",children:[c.jsx("h4",{className:"font-semibold text-purple-900 mb-2",children:"Preguntas Frecuentes"}),c.jsxs("div",{className:"space-y-1 text-sm text-purple-700",children:[c.jsxs("div",{children:["Total: ",i.faqs.total]}),c.jsxs("div",{children:["Activas: ",i.faqs.active]}),c.jsxs("div",{children:["Actualizadas recientemente:"," ",i.faqs.recentlyUpdated]})]})]}),c.jsxs("div",{className:"bg-blue-50 p-4 rounded-lg",children:[c.jsx("h4",{className:"font-semibold text-blue-900 mb-2",children:"Noticias"}),c.jsxs("div",{className:"space-y-1 text-sm text-blue-700",children:[c.jsxs("div",{children:["Total: ",i.news.total]}),c.jsxs("div",{children:["Activas: ",i.news.active]}),c.jsxs("div",{children:["Este mes: ",i.news.thisMonth]})]})]})]}),c.jsxs("div",{className:"bg-yellow-50 p-4 rounded-lg",children:[c.jsx("h4",{className:"font-semibold text-yellow-900 mb-2",children:"Evaluaciones de Trámites"}),c.jsxs("div",{className:"grid grid-cols-3 gap-4 text-sm text-yellow-700",children:[c.jsxs("div",{children:[c.jsx("div",{className:"font-medium",children:"Total Evaluaciones"}),c.jsx("div",{className:"text-lg font-bold",children:i.tramites.totalRatings})]}),c.jsxs("div",{children:[c.jsx("div",{className:"font-medium",children:"Promedio"}),c.jsxs("div",{className:"text-lg font-bold",children:[i.tramites.averageRating.toFixed(1),"/5.0"]})]}),c.jsxs("div",{children:[c.jsx("div",{className:"font-medium",children:"Compartidos"}),c.jsx("div",{className:"text-lg font-bold",children:i.tramites.totalShares})]})]})]}),c.jsxs("div",{className:"bg-green-50 p-4 rounded-lg",children:[c.jsx("h4",{className:"font-semibold text-green-900 mb-2",children:"Comentarios y Feedback"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm text-green-700",children:[c.jsxs("div",{children:[c.jsxs("div",{children:["Total recibidos: ",i.feedback.total]}),c.jsxs("div",{children:["Procesados: ",i.feedback.processed]})]}),c.jsxs("div",{children:[c.jsxs("div",{children:["Pendientes: ",i.feedback.pending]}),c.jsxs("div",{children:["Esta semana: ",i.feedback.thisWeek]})]})]})]})]}):c.jsx("div",{className:"text-center py-8 text-gray-500",children:c.jsx("p",{children:"No hay estadísticas disponibles"})})]}):c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-medium mb-4",children:"Actividad Reciente"}),u&&!n?c.jsx("div",{className:"flex justify-center py-8",children:c.jsx(fr,{className:"animate-spin h-8 w-8 text-govco-primary"})}):o.length>0?c.jsx("div",{className:"space-y-4",children:o.map((e=>c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-3 mt-1",children:v(e.type)}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm font-medium",children:e.description}),c.jsxs("div",{className:"flex items-center text-xs text-gray-500 mt-1",children:[c.jsx("span",{children:e.user}),c.jsx("span",{className:"mx-1",children:"•"}),c.jsx("span",{children:y(e.timestamp)})]})]})]},e.id)))}):c.jsxs("div",{className:"text-center py-8 text-gray-500",children:[c.jsx(nr,{className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),c.jsx("p",{children:"No hay actividad reciente disponible"})]})]})})]}),c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsx("h3",{className:"text-lg font-medium mb-4",children:"Resumen del Sistema"}),u&&!n?c.jsx("div",{className:"space-y-4",children:Array.from({length:3}).map(((e,t)=>c.jsxs("div",{className:"animate-pulse",children:[c.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),c.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]},t)))}):i?c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center p-3 border border-gray-200 rounded-lg",children:[c.jsx(Pr,{className:"h-8 w-8 text-purple-500 mr-3"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm font-medium",children:"Administradores"}),c.jsxs("p",{className:"text-xs text-gray-500",children:[i.admins.active," activos de ",i.admins.total]})]})]}),c.jsxs("div",{className:"flex items-center p-3 border border-gray-200 rounded-lg",children:[c.jsx(Hn,{className:"h-8 w-8 text-blue-500 mr-3"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm font-medium",children:"Interacciones Totales"}),c.jsxs("p",{className:"text-xs text-gray-500",children:[i.activity.totalInteractions," en total"]})]})]}),c.jsxs("div",{className:"flex items-center p-3 border border-gray-200 rounded-lg",children:[c.jsx(Mr,{className:"h-8 w-8 text-green-500 mr-3"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm font-medium",children:"Estado General"}),c.jsx("p",{className:"text-xs text-gray-500",children:"Sistema funcionando correctamente"})]})]})]}):c.jsx("div",{className:"text-center py-8 text-gray-500",children:c.jsx("p",{children:"Información no dis
200ponible"})}),c.jsx("div",{className:"mt-6",children:c.jsx("button",{onClick:p,disabled:u||n,className:"w-full bg-govco-primary text-white py-2 px-4 rounded-md hover:bg-govco-primary/90 transition-colors disabled:opacity-50",children:n?c.jsxs(c.Fragment,{children:[c.jsx(fr,{className:"animate-spin h-4 w-4 mr-2 inline"}),"Actualizando..."]}):"Actualizar Datos"})})]})]}),c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Enlaces Rápidos"}),s&&c.jsx("span",{className:"text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full",children:"Super Admin"})]}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:g.map(((e,t)=>c.jsxs(dn,{to:e.path,className:"flex flex-col items-center p-4 border border-gray-200 rounded-lg hover:border-govco-primary hover:bg-govco-primary/5 transition-colors group",children:[c.jsxs("div",{className:"relative",children:[c.jsx(e.icon,{size:24,className:"text-govco-primary mb-2"}),e.requireSuperAdmin&&c.jsx(Pr,{size:12,className:"absolute -top-1 -right-1 text-purple-500"})]}),c.jsx("span",{className:"text-sm font-medium text-center",children:e.label}),c.jsx("span",{className:"text-xs text-gray-500 text-center mt-1",children:e.description})]},t)))})]})]})}function Hf({isOpen:e,onClose:t,title:n,children:r,size:a="full"}){const s=f.useRef(null);f.useEffect((()=>(document.body.style.overflow=e?"hidden":"auto",()=>{document.body.style.overflow="auto"})),[e]);return f.useEffect((()=>{const n=n=>{"Escape"===n.key&&e&&t()};return e&&window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[e,t]),c.jsx(Wo,{children:e&&c.jsxs("div",{className:"fixed inset-0 z-[10000] flex items-center justify-center overflow-y-auto",style:{paddingTop:"var(--sticky-menu-height, 60px)",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"1rem"},children:[c.jsx(qd.div,{initial:{opacity:0}
200,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:e=>{s.current&&!s.current.contains(e.target)&&t()}}),c.jsxs(qd.div,{ref:s,initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2,ease:"easeOut"},className:`${{sm:"max-w-sm w-full",md:"max-w-md w-full",lg:"max-w-lg w-full",xl:"max-w-xl w-full",full:"w-full mx-4 sm:mx-8"}[a]} relative bg-white rounded-lg shadow-xl overflow-hidden flex flex-col`,style:{maxHeight:"calc(100vh - var(--sticky-menu-height, 60px) - 2rem)"},children:[n&&c.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:n}),c.jsx("button",{onClick:t,className:"p-2 rounded-full text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Cerrar",children:c.jsx(Fr,{size:20})})]}),c.jsx("div",{className:"p-4 sm:p-6 overflow-auto flex-1",children:r}),!n&&c.jsx("button",{onClick:t,className:"absolute top-3 right-3 p-2 rounded-full text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Cerrar",children:c.jsx(Fr,{size:20})})]})]})})}const Wf=e=>`/backapi/api/portal-servicios-ciudadanos/v1${e}`,Gf=async(e,t={})=>{const n={method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"},credentials:"include",cache:"no-store",...t}
200,r=await fetch(e,n);if(!r.ok)throw new Error(`HTTP ${r.status}: ${r.statusText}`);return r};const Yf=new class{constructor(){t(this,"baseUrl","/faqs")}async getFaqs(e=!1){try{const t=e?`${this.baseUrl}?includeInactive=true&_t=${Date.now()}`:`${this.baseUrl}?_t=${Date.now()}`,n=Wf(t),r=await Gf(n),a=await r.json();if(null==a?void 0:a.success)return a.data||[];throw new Error((null==a?void 0:a.message)||"Error al obtener FAQs")}catch(t){throw new Error(t.message||"Error al obtener las preguntas frecuentes")}}async getFaqById(e){try{const t=Wf(`${this.baseUrl}/${e}?_t=${Date.now()}`),n=await Gf(t),r=await n.json();if(null==r?void 0:r.success)return r.data;throw new Error((null==r?void 0:r.message)||"FAQ no encontrada")}catch(t){throw new Error(t.message||"Error al obtener la pregunta frecuente")}}async createFaq(e){try{const t=Wf(this.baseUrl),n=await Gf(t,{method:"POST",body:JSON.stringify(e)}),r=await n.json();if(null==r?void 0:r.success)return r.data;throw new Error((null==r?void 0:r.message)||"Error al crear FAQ")}catch(t){throw new Error(t.message||"Error al crear la pregunta frecuente")}}async updateFaq(e,t){try{const n=Wf(`${this.baseUrl}/${e}`),r=await Gf(n,{method:"POST",body:JSON.stringify({action:"update",...t})}),a=await r.json();if(null==a?void 0:a.success)return a.data;throw new Error((null==a?void 0:a.message)||"Error al actualizar FAQ")}catch(n){throw new Error(n.message||"Error al actualizar la pregunta frecuente")}}async deleteFaq(e){try{const t=Wf(`${this.baseUrl}/${e}`),n=await Gf(t,{method:"POST",body:JSON.stringify({action:"delete"})}),r=await n.json();return!!(null==r?void 0:r.success)||((null==r?void 0:r.success)||!1)}catch(t){throw new Error(t.message||"Error al eliminar la pregunta frecuente")}}async permanentDeleteFaq(e){try{const t=Wf(`${this.baseUrl}/${e}`),n=await Gf(t,{method:"POST",body:JSON.stringify({action:"permanent-delete"})}),r=await n.json();return!!(null==r?void 0:r.success)||((null==r?void 0:r.success)||!1)}catch(t){throw new Error(t.message||"Error al eliminar permanentemente la pregunta frecuente")}}async updateFaqLegacy(e,t){try{const n=Wf(`${this.baseUrl}/${e}`),r=await Gf(n,{method:"PUT",body:JSON.stringify(t)}),a=await r.json();if(null==a?void 0:a.success)return a.data;throw new Error((null==a?void 0:a.message)||"Error al actualizar FAQ")}catch(n){throw new Error(n.message||"Error al actualizar la pregunta frecuente")}}async deleteFaqLegacy(e){try{const t=Wf(`${this.baseUrl}/${e}`),n=await Gf(t,{method:"DELETE"}),r=await n.json();return!!(null==r?void 0:r.success)||((null==r?void 0:r.success)||!1)}catch(t){throw new Error(t.message||"Error al eliminar la pregunta frecuente")}}async permanentDeleteFaqLegacy(e){try{const t=Wf(`${this.baseUrl}/${e}/permanent`),n=await Gf(t,{method:"DELETE"}),r=await n.json();return!!(null==r?void 0:r.success)||((null==r?void 0:r.success)||!1)}catch(t){throw new Error(t.message||"Error al eliminar permanentemente la pregunta frecuente")}}},Kf={question:"",answer:"",isOpen:!1,order:0};function Qf(){const[e,t]=f.useState([]),[n,r]=f.useState(!0),[a,s]=f.useState(null),[i,o]=f.useState("create"),[l,u]=f.useState(!1),[d,m]=f.useState(Kf),[h,p]=f.useState(null),[g,y]=f.useState(!1),[v,x]=f.useState({show:!1,id:null,isPermanent:!1,question:""}),[b,w]=f.useState(""),[j,N]=f.useState(!0),k=async()=>{r(!0),s(null);try{const e=await Yf.getFaqs(!j);t(e)}catch(e){const t=e instanceof Error?e.message:"Error desconocido";s(t),Le.error(t)}finally{r(!1)}};f.useEffect((()=>{k()}),[j]);const S=async(t,n)=>{const a=e.findIndex((e=>e.id===t));if(-1===a)return;const s="up"===n?a-1:a+1;if(!(s<0||s>=e.length))try{r(!0);const n=e[a].order,i=e[s].order;await Yf.updateFaq(t,{order:i}),await Yf.updateFaq(e[s].id,{order:n}),await k(),Le.success("Orden actualizado correctamente")}catch(i){const e=i instanceof Error?i.message:"Error al actualizar el orden";Le.error(e)}finally{r(!1)}},E=()=>{m(Kf),p(null),o("create"),u(!1)},C=(e,t,n)=>{x({show:!0,id:e,isPermanent:n,question:t.substring(0,50)+(t.length>50?"...":"")})},P=e.filter((e=>{if(b){const t=b.toLowerCase();return e.question.toLowerCase().includes(t)||e.answer.toLowerCase().includes(t)}return!0}));return c.jsxs(xm,{title:"Gestión de Preguntas Frecuentes",children:[a&&
200c.jsxs("div",{className:"mb-4 p-4 rounded-lg bg-red-100 text-red-800 flex items-start gap-2",children:[c.jsx(Or,{className:"h-5 w-5 shrink-0 mt-0.5"}),c.jsx("span",{children:a}),c.jsx("button",{onClick:()=>s(null),className:"ml-auto text-red-500 hover:text-red-700 cursor-pointer",children:c.jsx(Fr,{size:16})})]}),!1,c.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 mb-6",children:c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4",children:[c.jsxs("button",{onClick:()=>{E(),o("create"),u(!0)},className:"flex items-center gap-2 bg-govco-primary text-white py-2 px-4 rounded-lg hover:bg-govco-secondary transition-colors cursor-pointer",disabled:n,children:[c.jsx(br,{size:18}),c.jsx("span",{children:"Crear nueva pregunta"})]}),c.jsxs("div",{className:"relative flex-1 md:max-w-md",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(Nr,{size:18,className:"text-gray-400"})}),c.jsx("input",{type:"text",value:b,onChange:e=>w(e.target.value),placeholder:"Buscar preguntas...",className:"pl-9 pr-4 py-2 border rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-govco-primary"})]}),c.jsx("div",{className:"flex items-center",children:c.jsxs("label",{className:"inline-flex items-center cursor-pointer",children:[c.jsx("input",{type:"checkbox",checked:j,onChange:()=>N(!j),className:"sr-only peer",disabled:n}),c.jsx("div",{className:"relative w-11 h-6 bg-gray-200 rounded-full peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-govco-primary peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-govco-primary"}),c.jsx("span",{className:"ml-3 text-sm font-medium text-gray-900",children:"Mostrar solo activas"})]})})]})}),c.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[c.jsx("div",{className:"p-4 border-b",children:c.jsx("h3",{className:"text-lg font-medium",children:"Lista de preguntas frecuentes"})}),n?c.jsx("div",{className:"flex justify-center my-12",children:c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsx(fr,{size:36,className:"animate-spin text-govco-primary mb-2"}),c.jsx("p",{className:"text-govco-gray-600",children:"Cargando preguntas frecuentes..."})]})}):0===P.length?c.jsxs("div",{className:"text-center py-10 border rounded-lg bg-gray-50",children:[c.jsx("p",{className:"text-govco-gray-600 mb-2",children:"No se encontraron preguntas frecuentes"}),b&&c.jsxs("p",{className:"text-govco-gray-500 text-sm",children:["Intenta con otro término de búsqueda o"," ",c.jsx("button",{onClick:()=>w(""),className:"text-govco-primary ml-1 hover:underline cursor-pointer",children:"ver todas las preguntas"})]})]}):c.jsx("div",{className:"divide-y",children:P.map((t=>c.jsx("div",{className:"p-4 hover:bg-gray-50 transition-colors "+(t.isActive?"":"opacity-60"),children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h4",{className:"font-medium",children:t.question}),!t.isActive&&c.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-gray-200 text-gray-700",children:"Inactiva"})]}),c.jsx("p",{className:"text-sm text-gray-600 line-clamp-2",children:t.answer}),c.jsxs("div",{className:"mt-2 flex items-center gap-4 text-xs text-gray-500",children:[c.jsxs("span",{children:["Orden: ",t.order]}),c.jsxs("span",{children:["Expandida: ",t.isOpen?"Sí":"No"]}),t.updatedAt&&c.jsxs("span",{children:["Actualizada:"," ",new Date(t.updatedAt).toLocaleDateString()]})]})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("button",{onClick:()=>S(t.id,"up"),disabled:t.order<=1||n,className:"p-1 text-gray-500 hover:text-govco-primary disabled:opacity-30 disabled:cursor-not-allowed cursor-pointer",title:"Mover arriba",children:c.jsx(Qn,{size:16})}),c.jsx("button",{onClick:()=>S(t.id,"down"),disabled:t.order>=e.length||n,className:"p-1 text-gray-500 hover:text-govco-primary disabled:opacity-30 disabled:cursor-not-allowed cursor-pointer",title:"Mover abajo",children:c.jsx(Gn,{size:16})})]}),c.jsxs("div",{className:"flex gap-1",children:[c.jsx("button",{onClick:()=>(e=>{m({question:e.question,answer:e.answer,isOpen:e.isOpen,order:e.order}),p(e.id),o("edit"),u(!0)})(t),disabled:n,className:"p-1.5 text-indigo-600 hover:text-indigo-900 hover:bg-indigo-50 rounded-md cursor-pointer disabled:opacity-50",title:"Editar",children:c.jsx(Ar,{size:16})}),c.jsx("button",{onClick:()=>(async(e,t)=>{try{r(!0),await Yf.updateFaq(e,{isActive:!t}),Le.success(`Pregunta frecuente ${t?"desactivada":"activada"} correctamente`),await k()}catch(n){const e=n instanceof Error?n.message:"Error al cambiar el estado de la pregunta frecuente";Le.error(e)}finally{r(!1)}})(t.id,t.isActive),disabled:n,className:"p-1.5 rounded-md hover:bg-green-50 cursor-pointer disabled:opacity-50",title:t.isActive?"Desactivar":"Activar",children:t.isActive?c.jsx(Fr,{size:16,className:"text-red-600 hover:text-red-900"}):c.jsx(Wn,{size:16,className:"text-green-600 hover:text-green-900"})}),t.isActive?c.jsx("button",{onClick:()=>C(t.id,t.question,!1),disabled:n,className:"p-1.5 text-red-600 hover:text-red-900 hover:bg-red-50 rounded-md cursor-pointer disabled:opacity-50",title:"Desactivar",children:c.jsx(_r,{size:16})}):c.jsx("button",{onClick:()=>C(t.id,t.question,!0),disabled:n,className:"p-1.5 text-red-900 hover:text-red-700 hover:bg-red-50 rounded-md cursor-pointer disabled:opacity-50",title:"Eliminar permanentemente",children:c.jsx(Rr,{size:16})})]})]})]})},t.id)))})]}),c.jsx(Hf,{isOpen:l,onClose:E,title:"create"===i?"Crear nueva pregunta":"Editar pregunta",size:"lg",children:c.jsxs("form",{onSubmit:async e=>{if(e.preventDefault(),d.question.trim()&&d.answer.trim())try{if
200(y(!0),"create"===i){const e={question:d.question,answer:d.answer,isOpen:d.isOpen,order:d.order};await Yf.createFaq(e),Le.success("Pregunta frecuente creada correctamente"),E(),await k()}else if("edit"===i&&h){const e={question:d.question,answer:d.answer,isOpen:d.isOpen,order:d.order};await Yf.updateFaq(h,e),Le.success("Pregunta frecuente actualizada correctamente"),E(),await k()}}catch(t){const e=t instanceof Error?t.message:"Error al guardar la pregunta frecuente";Le.error(e)}finally{y(!1)}else Le.error("La pregunta y la respuesta son obligatorias")},children:[c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Pregunta"}),c.jsx("input",{type:"text",value:d.question,onChange:e=>m({...d,question:e.target.value}),placeholder:"Ingrese la pregunta",className:"block w-full border border-gray-300 rounded-lg p-2 focus:outline-none focus:ring-2 focus:ring-govco-primary",required:!0})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Respuesta"}),c.jsx("textarea",{value:d.answer,onChange:e=>m({...d,answer:e.target.value}),placeholder:"Ingrese la respuesta",rows:4,className:"block w-full border border-gray-300 rounded-lg p-2 focus:outline-none focus:ring-2 focus:ring-govco-primary",required:!0})]}),c.jsx("div",{className:"flex items-center",children:c.jsxs("label",{className:"inline-flex items-center cursor-pointer",children:[c.jsx("input",{type:"checkbox",checked:d.isOpen,onChange:()=>m({...d,isOpen:!d.isOpen}),className:"sr-only peer"}),c.jsx("div",{className:"relative w-11 h-6 bg-gray-200 rounded-full peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-govco-primary peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-govco-primary"}),c.jsx("span",{className:"ml-3 text-sm font-medium text-gray-900",children:"Mostrar expandida por defecto"})]})}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Orden"}),c.jsx("input",{type:"number",min:"0",value:d.order,onChange:e=>m({...d,order:parseInt(e.target.value)||0}),className:"block w-24 border border-gray-300 rounded-lg p-2 focus:outline-none focus:ring-2 focus:ring-govco-primary"})]})]}),c.jsxs("div",{className:"mt-6 flex justify-end gap-3",children:[c.jsx("button",{type:"button",onClick:E,className:"py-2 px-4 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition-colors cursor-pointer",disabled:g,children:"Cancelar"}),c.jsx("button",{type:"submit",className:"flex items-center gap-2 py-2 px-4 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary transition-colors cursor-pointer",disabled:g,children:g?c.jsxs(c.Fragment,{children:[c.jsx(fr,{size:18,className:"animate-spin"}),"Guardando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(jr,{size:18}),"Guardar"]})})]})]})}),c.jsx(Hf,{isOpen:v.show,onClose:()=>x({show:!1,id:null,isPermanent:!1,question:""}),title:v.isPermanent?"Confirmar eliminación permanente":"Confirmar desactivación",size:"md",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Or,{className:"h-6 w-6 text-red-600"})}),c.jsxs("div",{className:"ml-3",children:[c.jsx("p",{className:"text-sm text-gray-700",children:v.isPermanent?"¿Está seguro de que desea eliminar permanentemente esta pregunta frecuente? Esta acción no se puede deshacer.":"¿Está seguro de que desea desactivar esta pregunta frecuente? Podrá activarla nuevamente más adelante."}),c.jsx("div",{className:"mt-3 p-3 bg-gray-50 rounded-md",children:c.jsxs("p",{className:"text-sm text-gray-600 font-medium",children:['"',v.question,'"']})})]})]}),c.jsxs("div",{className:"flex justify-end space-x-3",children:[c.jsx("button",{onClick:()=>x({show:!1,id:null,isPermanent:!1,question:""}),className:"px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 cursor-pointer",disabled:n,children:"Cancelar"}),c.jsx("button",{onClick:async()=>
200{if(v.id)try{r(!0),v.isPermanent?await Yf.permanentDeleteFaq(v.id):await Yf.deleteFaq(v.id),v.isPermanent?Le.success("Pregunta frecuente eliminada permanentemente"):Le.success("Pregunta frecuente desactivada correctamente"),x({show:!1,id:null,isPermanent:!1,question:""}),await k()}catch(e){const t=e instanceof Error?e.message:"Error al eliminar la pregunta frecuente";Le.error(t)}finally{r(!1)}},disabled:n,className:`px-4 py-2 text-white rounded-lg cursor-pointer ${v.isPermanent?"bg-red-700 hover:bg-red-800":"bg-red-600 hover:bg-red-700"} ${n?"opacity-70":""}`,children:n?c.jsxs("span",{className:"flex items-center",children:[c.jsx(fr,{size:16,className:"animate-spin mr-2"}),v.isPermanent?"Eliminando...":"Desactivando..."]}):v.isPermanent?"Eliminar permanentemente":"Desactivar"})]})]})})]})}const Xf=6048e5,Jf=6e4,Zf=36e5,ep=Symbol.for("constructDateFrom");function tp(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ep in e?e[ep](t):e instanceof Date?new e.constructor(t):new Date(t)}function np(e,t){return tp(t||e,e)}let rp={};function ap(){return rp}function sp(e,t){var n,r,a,s;const i=ap(),o=(null==t?void 0:t.weekStartsOn)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.weekStartsOn)??i.weekStartsOn??(null==(s=null==(a=i.locale)?void 0:a.options)?void 0:s.weekStartsOn)??0,l=np(e,null==t?void 0:t.in),c=l.getDay(),u=(c<o?7:0)+c-o;return l.setDate(l.getDate()-u),l.setHours(0,0,0,0),l}function ip(e,t){return sp(e,{...t,weekStartsOn:1})}function op(e,t){const n=np(e,null==t?void 0:t.in),r=n.getFullYear(),a=tp(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const s=ip(a),i=tp(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=ip(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function lp(e){const t=np(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function cp(e,t){const n=np(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}function up(e,t,n){const[r,a]=function(e,...t){const n=tp.bind(null,t.find((e=>"object"==typeof e)));return t.map(n)}(null==n||n.in,e,t),s=cp(r),i=cp(a),o=+s-lp(s),l=+i-lp(i);return Math.round((o-l)/864e5)}function dp(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+np(e)));var t}const mp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function hp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fp={date:hp({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:hp({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:hp({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},pp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function gp(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function yp(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;const i=s[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(o,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(o,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}function vp(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,rest:t.slice(a.length)}}}const xp={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=mp[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),(null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:fp,formatRelative:(e,t,n,r)=>pp[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:gp({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:gp({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:gp({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:gp({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
200ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:gp({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:vp({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:yp({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:yp({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:yp({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:yp({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:yp({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function bp(e,t){const n=np(e,null==t?void 0:t.in),r=up(n,function(e,t){const n=np(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n));return r+1}function wp(e,t){const n=np(e,null==t?void 0:t.in),r=+ip(n)-+function(e,t){const n=op(e,t),r=tp(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ip(r)}(n);return Math.round(r/Xf)+1}function jp(e,t){var n,r,a,s;const i=np(e,null==t?void 0:t.in),o=i.getFullYear(),l=ap(),c=(null==t?void 0:t.firstWeekContainsDate)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??(null==(s=null==(a=l.locale)?void 0:a.options)?void 0:s.firstWeekContainsDate)??1,u=tp((null==t?void 0:t.in)||e,0);u.setFullYear(o+1,0,c),u.setHours(0,0,0,0);const d=sp(u,t),m=tp((null==t?void 0:t.in)||e,0);m.setFullYear(o,0,c),m.setHours(0,0,0,0);const h=sp(m,t);return+i>=+d?o+1:+i>=+h?o:o-1}function Np(e,t){const n=np(e,null==t?void 0:t.in),r=+sp(n,t)-+function(e,t){var n,r,a,s;const i=ap(),o=(null==t?void 0:t.firstWeekContainsDate)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.firstWeekContainsDate)??i.firstWeekContainsDate??(null==(s=null==(a=i.locale)?void 0:a.options)?void 0:s.firstWeekContainsDate)??1,l=jp(e,t),c=tp((null==t?void 0:t.in)||e,0);return c.setFullYear(l,0,o),c.setHours(0,0,0,0),sp(c,t)}(n,t);return Math.round(r/Xf)+1}function kp(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Sp={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return kp("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):kp(n+1,2)},d:(e,t)=>kp(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];
vendor: 4,862 bytes, line 200
200default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>kp(e.getHours()%12||12,t.length),H:(e,t)=>kp(e.getHours(),t.length),m:(e,t)=>kp(e.getMinutes(),t.length),s:(e,t)=>kp(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return kp(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Ep="midnight",Cp="noon",Pp="morning",Ap="afternoon",Tp="evening",_p="night",Rp={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Sp.y(e,t)},Y:function(e,t,n,r){const a=jp(e,r),s=a>0?a:1-a;if("YY"===t){return kp(s%100,2)}return"Yo"===t?n.ordinalNumber(s,{unit:"year"}):kp(s,t.length)},R:function(e,t){return kp(op(e),t.length)},u:function(e,t){return kp(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return kp(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return kp(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Sp.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return kp(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Np(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):kp(a,t.length)},I:function(e,t,n){const r=wp(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):kp(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Sp.d(e,t)},D:function(e,t,n){const r=bp(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):kp(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return kp(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return kp(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return kp(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(a=12===r?Cp:0===r?Ep:r/12>
200=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(a=r>=17?Tp:r>=12?Ap:r>=4?Pp:_p,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Sp.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Sp.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):kp(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):kp(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Sp.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Sp.s(e,t)},S:function(e,t){return Sp.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Mp(r);case"XXXX":case"XX":return Op(r);default:return Op(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Mp(r);case"xxxx":case"xx":return Op(r);default:return Op(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Lp(r,":");default:return"GMT"+Op(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Lp(r,":");default:return"GMT"+Op(r,":")}},t:function(e,t,n){return kp(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return kp(+e,t.length)}};function Lp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),s=r%60;return 0===s?n+String(a):n+String(a)+t+kp(s,2)}function Mp(e,t){if(e%60==0){return(e>0?"-":"+")+kp(Math.abs(e)/60,2)}return Op(e,t)}function Op(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+kp(Math.trunc(r/60),2)+t+kp(r%60,2)}const Dp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ip=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},zp={p:Ip,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Dp(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",Dp(r,t)).replace("{{time}}",Ip(a,t))}},Up=/^D+$/,Fp=/^Y+$/,Vp=["D","DD","YY","YYYY"];const $p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qp=/^'([^]*?)'?$/,Hp=/''/g,Wp=/[a-zA-Z]/;function Gp(e,t,n){var r,a,s,i,o,l,c,u;const d=ap(),m=(null==n?void 0:n.locale)??d.locale??xp,h=(null==n?void 0:n.firstWeekContainsDate)??(null==(a=null==(r=null==n?void 0:n.locale)?void 0:r.options)?void 0:a.firstWeekContainsDate)??d.firstWeekContainsDate??(null==(i=null==(s=d.locale)?void 0:s.options)?void 0:i.firstWeekContainsDate)??1,f=(null==n?void 0:n.weekStartsOn)??(null==(l=null==(o=null==n?void 0:n.locale)?void 0:o.options)?void 0:l.weekStartsOn)??d.weekStartsOn??(null==(u=null==(c=d.locale)?void 0:c.options)?void 0:u.weekStartsOn)??0,p=np(e,null==n?void 0:n.in);if(!dp(p))throw new RangeError("Invalid time value");let g=t.match(Bp).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,zp[t])(e,m.formatLong)}return e})).join("").match($p).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Yp(e)};if(Rp[t])return{isToken:!0,value:e};
200if(t.match(Wp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));m.localize.preprocessor&&(g=m.localize.preprocessor(p,g));const y={firstWeekContainsDate:h,weekStartsOn:f,locale:m};return g.map((r=>{if(!r.isToken)return r.value;const a=r.value;(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&function(e){return Fp.test(e)}(a)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&function(e){return Up.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(Vp.includes(e))throw new RangeError(r)}(a,t,String(e));return(0,Rp[a[0]])(p,a,m.localize,y)})).join("")}function Yp(e){const t=e.match(qp);return t?t[1].replace(Hp,"'"):e}function Kp(e,t){const n=()=>tp(null==t?void 0:t.in,NaN),r=function(e){const t={},n=e.split(Qp.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Qp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Qp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=Qp.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:null===s?a:100*s,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,2);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(Xp);if(!n)return new Date(NaN);const r=!!n[4],a=eg(n[1]),s=eg(n[2])-1,i=eg(n[3]),o=eg(n[4]),l=eg(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,o,l)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,s=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}(t,o,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ng[t]||(rg(e)?29:28))}(t,s,i)&&function(e,t){return t>=1&&t<=(rg(e)?366:365)}(t,a)?(e.setUTCFullYear(t,s,Math.max(a,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return n();const s=+a;let i,o=0;if(r.time&&(o=function(e){const t=e.match(Jp);if(!t)return NaN;const n=tg(t[1]),r=tg(t[2]),a=tg(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*Zf+r*Jf+1e3*a}(r.time),isNaN(o)))return n();if(!r.timezone){const e=new Date(s+o),n=np(0,null==t?void 0:t.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return i=function(e){if("Z"===e)return 0;const t=e.match(Zp);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*Zf+a*Jf)}(r.timezone),isNaN(i)?n():np(s+o+i,null==t?void 0:t.in)}const Qp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Xp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Jp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function eg(e){return e?parseInt(e):1}function tg(e){return e&&parseFloat(e.replace(",","."))||0}const ng=[31,null,31,30,31,30,31,31,30,31,30,31];function rg(e){return e%400==0||e%4==0&&e%100!=0}const ag={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},sg={date:hp({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:hp({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:hp({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ig={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},og={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},lg={code:"es",formatDistance:(e,t,n)=>{let r;const a=ag[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),(null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:sg,formatRelative:(e,t,n,r)=>1!==t.getHours()?og[e]:ig[e],localize:{ordinalNumber:(e,t)=>Number(e)+"º",era:gp({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:gp({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:gp({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:gp({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:gp({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:vp({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:yp({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|de
200spu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:yp({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:yp({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:yp({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:yp({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};const cg=new class{constructor(){t(this,"baseUrl","/news"),t(this,"authenticatedFetch",nm())}shouldUseLegacyMethods(){return!1}async getNews(e=!1){try{const t=e?`${this.baseUrl}?includeInactive=true`:this.baseUrl,n=await this.authenticatedFetch(t,{method:"GET"});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);const r=await n.json();if(!r.success)throw new Error(r.message||"Error al obtener noticias");return r.data||[]}catch(t){throw new Error("Error al obtener las noticias")}}async getNewsById(e){try{const t=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"GET"});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();if(!n.success)throw new Error(n.message||"Error al obtener la noticia");return n.data}catch(t){throw new Error("Error al obtener la noticia")}}async createNews(e){try{const t=await this.authenticatedFetch(this.baseUrl,{method:"POST",body:JSON.stringify(e)});if(!t.ok){const e=await t.json().catch((()=>({})));throw new Error(e.message||`HTTP ${t.status}: ${t.statusText}`)}const n=await t.json();if(!n.success)throw new Error(n.message||"Error al crear la noticia");return n.data}catch(t){throw new Error("Error al crear la noticia")}}async updateNews(e,t){try{if(this.shouldUseLegacyMethods())try{const n=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"PUT",body:JSON.stringify(t)});if(n.ok){return(await n.json()).data}throw new Error("PUT method failed")}catch{}const n=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"POST",body:JSON.stringify({action:"update",...t})});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);const r=await n.json();if(!r.success)throw new Error(r.message||"Error al actualizar la noticia");return r.data}catch(n){throw new Error("Error al actualizar la noticia")}}async deleteNews(e){try{if(this.shouldUseLegacyMethods())try{if((await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"DELETE"})).ok)return;throw new Error("DELETE method failed")}catch{}const t=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"POST",body:JSON.stringify({action:"delete"})});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();if(!n.success)throw new Error(n.message||"Error al eliminar la noticia")}catch(t){throw new Error("Error al eliminar la noticia")}}async toggleActive(e,t){return this.updateNews(e,{isActive:t})}async updateNewsLegacy(e,t){try{const n=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"PUT",body:JSON.stringify(t)});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);const r=await n.json();if(!r.success)throw new Error(r.message||"Error al actualizar la noticia");return r.data}catch(n){throw new Error("Error al actualizar la noticia")}}async deleteNewsLegacy(e){try{const t=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"DELETE"});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();if(!n.success)throw new Error(n.message||"Error al eliminar la noticia")}catch(t){throw new Error("Error al eliminar la noticia")}}};let ug=null,dg=0;function mg(){return null!==ug&&Date.now()-dg<3e5}function hg(){return gm("ENTIDAD_API_URL")}function fg(e){if(!e||"object"!=typeof e)return null;const t=e,n=t.idEntidad??t.id??t.entityId??t.ID??t.codigo??null,r=t.nombreEntidad??t.nombre??t.name??t.entityName??t.descripcion??null;if(null==n||null==r)return null;const a="string"==typeof n?parseInt(n,10):Number(n);
200return isNaN(a)?null:{idEntidad:a,nombreEntidad:String(r)}}const pg=new class{async getAllEntidades(){if(mg())return ug;try{const e=hg(),t=function(e){if(!e)return[];if(Array.isArray(e))return e.map(fg).filter((e=>null!==e));if("object"==typeof e&&null!==e){const t=e;for(const e of["content","data","items","results","entidades"])if(Array.isArray(t[e]))return t[e].map(fg).filter((e=>null!==e));const n=fg(t);return n?[n]:[]}return[]}((await Sf.get(e,{headers:{Accept:"application/json"},timeout:15e3})).data);return t.sort(((e,t)=>e.nombreEntidad.localeCompare(t.nombreEntidad))),ug=t,dg=Date.now(),t}catch(e){return ug||[]}}async getEntidadById(e){if(mg()){const t=ug.find((t=>t.idEntidad===e));if(t)return t}try{const t=`${hg()}/${e}`;return fg((await Sf.get(t,{headers:{Accept:"application/json"},timeout:1e4})).data)}catch(t){return null}}async getEntidadesByIds(e){const t=mg()?ug:await this.getAllEntidades(),n={},r=[];for(const a of e){const e=t.find((e=>e.idEntidad===a));e?n[a]=e:r.push(a)}if(r.length>0){const e=r.map((async e=>{n[e]=await this.getEntidadById(e)}));await Promise.all(e)}return n}},gg=({src:e,alt:t,className:n,placeholder:r})=>{const[a,s]=f.useState(!1),[i,o]=f.useState(!1),[l,u]=f.useState(!1);f.useEffect((()=>{if(!e||""===e.trim())return s(!1),o(!1),void u(!1);u(!0),o(!1);const t=new Image;t.onload=()=>{s(!0),o(!1),u(!1)},t.onerror=()=>{s(!1),o(!0),u(!1)},t.src=e}),[e]);const d=`${n||"w-full h-32"} border-2 border-dashed border-gray-300 rounded-lg flex items-center justify-center overflow-hidden bg-gray-50`;return l?c.jsx("div",{className:d,children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-govco-primary mx-auto mb-2"}),c.jsx("p",{className:"text-xs text-gray-500",children:"Cargando imagen..."})]})}):e&&""!==e.trim()?i?c.jsx("div",{className:`${d} border-red-300 bg-red-50`,children:c.jsxs("div",{className:"text-center",children:[c.jsx(Fr,{size:24,className:"text-red-400 mx-auto mb-2"}),c.jsx("p",{className:"text-xs text-red-500",children:"Error al cargar imagen"}),c.jsx("p",{className:"text-xs text-red-400 mt-1",children:"Verifica la URL"})]})}):a?c.jsx("div",{className:`${d} border-green-300 bg-white p-0`,children:c.jsx("img",{src:e,alt:t,className:"w-full h-full object-cover rounded-lg",loading:"lazy"})}):c.jsx("div",{className:d,children:c.jsxs("div",{className:"text-center",children:[c.jsx(ur,{size:24,className:"text-gray-400 mx-auto mb-2"}),c.jsx("p",{className:"text-xs text-gray-500",children:"Cargando..."})]})}):c.jsx("div",{className:d,children:c.jsxs("div",{className:"text-center",children:[c.jsx(ur,{size:24,className:"text-gray-400 mx-auto mb-2"}),c.jsx("p",{className:"text-xs text-gray-500",children:r||"Sin imagen"})]})})};function yg({newsItem:e,onSave:t,onCancel:n,isLoading:r}){const[a,s]=f.useState({title:"",content:"",date:Gp(new Date,"yyyy-MM-dd"),endDate:Gp(new Date(Date.now()+6048e5),"yyyy-MM-dd"),subtitle:"",entityName:"",entityLogo:"",imageUrl:""}),[i,o]=f.useState([]),[l,u]=f.useState(!1),[d,m]=f.useState(!1),[h,p]=f.useState({});f.useEffect((()=>{(async()=>{u(!0);try{const e=await pg.getAllEntidades();o(e)}catch(e){}finally{u(!1)}})()}),[]),f.useEffect((()=>{e&&s({...e,subtitle:e.subtitle||"",entityName:e.entityName||"",entityLogo:e.entityLogo||"",imageUrl:e.imageUrl||"",date:e.date||Gp(new Date,"yyyy-MM-dd"),endDate:e.endDate||Gp(new Date(new Date(e.date||new Date).getTime()+6048e5),"yyyy-MM-dd")})}),[e]);const g=e=>{const{name:t,value:n}=e.target;s((e=>({...e,[t]:n}))),h[t]&&p((e=>{const n={...e};return delete n[t],n}))},y=()=>{s((e=>({...e,entityName:""})))};return c.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 w-full mx-auto min-w-0",children:[c.jsxs("div",{className:"bg-gray-50 px-4 sm:px-6 py-4 border-b border-gray-200 flex justify-between items-center",children:[c.jsx("h3",{className:"text-lg font-semibold text-govco-gray-900",children:e?"Editar Noticia":"Nueva Noticia"}),c.jsx("button",{onClick:n,className:"text-govco-gray-500 hover:text-govco-gray-700",children:c.jsx(Fr,{size:20})})]}),c.jsx("form",{onSubmit:e=>{e.preventDefault(),(()=>{const e={};if(a.title.trim()||(e.title="El título es obligatorio"),a.content.trim()||(e.content="El contenido es obligatorio"),a.date||(e.date="La fecha de inicio es obligatoria"),a.endDate){const t=new Date(a.endDate),n=new Date;n.setHours(0,0,0,0),t<n&&(e.endDate="La fecha final debe ser hoy o en el futuro")}else e.endDate="La fecha final es obligatoria";if(a.imageUrl&&""!==a.imageUrl.trim())try{new URL(a.imageUrl)}catch{e.imageUrl="La URL de la imagen no es válida"}if(a.entityLogo&&""!==a.entityLogo.trim())try{new URL(a.entityLogo)}catch{e.entityLogo="La URL del logo no es válida"}return p(e),0===Object.keys(e).length})()&&t(a)},className:"p-4 sm:p-6 lg:p-8",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"w-full",children:[c.jsxs("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:["Título ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsx("input",{type:"text",name:"title",value:a.title,onChange:g,className:`w-full px-4 py-3 border ${h.title?"border-red-500":"border-gray-300"} rounded-md focus:outline-none focus:ring-1 focus:ring-govco-primary text-base`,placeholder:"Título de la noticia"}),h.title&&c.jsx("p",{className:"mt-1 text-sm text-red-500",children:h.title})]}),c.jsxs("div",{className:"w-full",children:[c.jsx("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:"Descripción"}),c.jsx("input",{type:"text",name:"subtitle",value:a.subtitle||"",onChange:g,className:"w-full px-4 py-3 border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-govco-primary text-base",placeholder:"Descripción breve de la noticia (opcional)"})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsxs("div",{className:"w-full",children:[c.jsxs("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:["Fecha de Inicio ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"date",name:"date",value:a.date,onChange:g,className:`w-full px-4 py-3 border ${h.date?"border-red-500":"border-gray-300"} rounded-md focus:outline-none focus:ring-1 focus:ring-govco-primary text-base`}),c.jsx(qn,{size:18,className:"absolute right-3 top-3.5 text-govco-gray-400 pointer-events-none"})]}),h.date&&c.jsx("p",{className:"mt-1 text-sm text-red-500",children:h.date}),c.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Fecha del evento o publicación (puede ser pasada, presente o futura)"})]}),c.jsxs("div",{className:"w-full",children:[c.jsxs("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:["Fecha Final ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"date",name:"endDate",value:a.endDate,onChange:g,className:`w-full px-4 py-3 border ${h.endDate?"border-red-500":"border-gray-300"} rounded-md focus:outline-none focus:ring-1 focus:ring-govco-primary text-base`}),c.jsx(qn,{size:18,className:"absolute right-3 top-3.5 text-govco-gray-400 pointer-events-none"})]}),h.endDate&&c.jsx("p",{className:"mt-1 text-sm text-red-500",children:h.endDate}),c.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Fecha hasta cuando la noticia estará visible en el portal (debe ser futura)"})]})]}),c.jsxs("div",{className:"w-full",children:[c.jsx("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:"Nombre de la Entidad"}),c.jsxs("div",{className:"relative",children:[c.jsxs("div",{className:"w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-govco-primary focus:border-transparent cursor-pointer bg-white flex items-center justify-between transition-all duration-200 hover:border-govco-primary "+(d?"border-govco-primary ring-2 ring-govco-primary ring-opacity-20":""),onClick:()=>m(!d),children:[c.jsx("span",{className:"text-base "+(a.entityName?"text-gray-900 font-medium":"text-gray-500"),children:a.entityName||"Seleccionar entidad (opcional)"}),c.jsxs("div",{className:"flex items-center space-x-2",children:[l&&c.jsx(fr,{size:16,className:"animate-spin text-govco-primary"}),a.entityName&&c.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),y()},className:"text-gray-400 hover:text-red-500 transition-colors p-1 rounded-full hover:bg-red-50",title:"Limpiar selección",children:c.jsx(Fr,{size:14})}),c.jsx(Gn,{size:18,className:"text-gray-400 transition-transform duration-200 "+(d?"rotate-180 text-govco-primary":"")})]})]}),d&&c.jsx("div",{className:"absolute z-50 w-full mt-2 bg-white border border-gray-200 rounded-xl shadow-2xl max-h-64 overflow-hidden",children:c.jsx("div",{className:"max-h-64 overflow-y-auto",children:l?c.jsxs("div",{className:"px-4 py-8 text-center",children:[c.jsx(fr,{size:24,className:"animate-spin text-govco-primary mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-gray-600 font-medium",children:"Cargando entidades..."}),c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Un momento por favor"})]}):0===i.length?c.jsxs("div",{className:"px-4 py-8 text-center",children:[c.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-3",children:c.jsx(Fr,{size:20,className:"text-gray-400"})}),c.jsx("p",{className:"text-sm text-gray-600 font-medium",children:"No se encontraron entidades"}),c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Intenta más tarde"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"px-4 py-3 hover:bg-gray-50 cursor-pointer border-b border-gray-100 transition-colors duration-150 flex items-center",onClick:()=>{y(),m(!1)},children:[c.jsx("div",{className:"w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center mr-3",children:c.jsx(Fr,{size:14,className:"text-gray-500"})}),c.jsxs("div",{children:[c.jsx("span",{className:"text-sm text-gray-500 font-medium italic",children:"Sin entidad"}),c.jsx("p",{className:"text-xs text-gray-400",children:"No asociar a ninguna entidad"})]})]}),i.map(((e,t)=>c.jsxs("div",{className:`px-4 py-3 hover:bg-blue-50 cursor-pointer transition-all duration-150 flex items-center ${a.entityName===e.nombreEntidad?"bg-govco-primary bg-opacity-10 border-r-4 border-govco-primary":""} ${t===i.length-1?"":"border-b border-gray-50"}`,onClick:()=>(e=>{s((t=>({...t,entityName:e.nombreEntidad}))),m(!1),h.entityName&&p((e=>{const t={...e};return delete t.entityName,t}))})(e),children:[c.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center mr-3 text-xs font-bold "+(a.entityName===e.nombreEntidad?"bg-govco-primary text-white":"bg-blue-100 text-blue-600"),children:e.nombreEntidad.charAt(0).toUpperCase()}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium truncate "+(a.entityName===e.nombreEntidad?"text-govco-primary":"text-gray-900"),children:e.nombreEntidad}),c.jsxs("p",{className:"text-xs text-gray-500",children:["ID: ",e.idEntidad]})]}),a.entityName===e.nombreEntidad&&c.jsx("div",{className:"ml-2",children:c.jsx("div",{className:"w-5 h-5 bg-govco-primary rounded-full flex items-center justify-center",children:c.jsx("svg",{className:"w-3 h-3 text-white",f
200ill:"currentColor",viewBox:"0 0 20 20",children:c.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})})]},e.idEntidad)))]})})})]}),c.jsxs("p",{className:"mt-2 text-xs text-gray-500 flex items-center",children:[c.jsx("svg",{className:"w-3 h-3 mr-1 text-blue-400",fill:"currentColor",viewBox:"0 0 20 20",children:c.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),"Selecciona de la lista de entidades disponibles o deja vacío"]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[c.jsxs("div",{className:"w-full",children:[c.jsxs("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:["URL del Logo de la Entidad",a.entityLogo&&c.jsx("a",{href:a.entityLogo,target:"_blank",rel:"noopener noreferrer",className:"ml-2 text-blue-500 hover:text-blue-700",children:c.jsx(sr,{size:14,className:"inline"})})]}),c.jsx("input",{type:"text",name:"entityLogo",value:a.entityLogo||"",onChange:g,className:`w-full px-4 py-3 border ${h.entityLogo?"border-red-500":"border-gray-300"} rounded-md focus:outline-none focus:ring-1 focus:ring-govco-primary text-base`,placeholder:"https://ejemplo.com/logo.png"}),h.entityLogo&&c.jsx("p",{className:"mt-1 text-sm text-red-500",children:h.entityLogo}),c.jsxs("div",{className:"mt-3",children:[c.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Previsualización del logo:"}),c.jsx(gg,{src:a.entityLogo,alt:"Logo de la entidad",className:"w-full h-20 sm:w-32 sm:h-20",placeholder:"Logo de entidad"})]})]}),c.jsxs("div",{className:"w-full",children:[c.jsxs("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:["URL de Imagen Principal",a.imageUrl&&c.jsx("a",{href:a.imageUrl,target:"_blank",rel:"noopener noreferrer",className:"ml-2 text-blue-500 hover:text-blue-700",children:c.jsx(sr,{size:14,className:"inline"})})]}),c.jsx("input",{type:"text",name:"imageUrl",value:a.imageUrl||"",onChange:g,className:`w-full px-4 py-3 border ${h.imageUrl?"border-red-500":"border-gray-300"} rounded-md focus:outline-none focus:ring-1 focus:ring-govco-primary text-base`,placeholder:"https://ejemplo.com/imagen.jpg"}),h.imageUrl&&c.jsx("p",{className:"mt-1 text-sm text-red-500",children:h.imageUrl}),c.jsxs("div",{className:"mt-3",children:[c.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Previsualización de la imagen:"}),c.jsx(gg,{src:a.imageUrl,alt:"Imagen principal de la noticia",className:"w-full h-32 sm:h-48 lg:h-40",placeholder:"Imagen principal de la noticia"})]})]})]}),c.jsxs("div",{className:"w-full",children:[c.jsxs("label",{className:"block text-sm font-medium text-govco-gray-700 mb-2",children:["Contenido ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsx("textarea",{name:"content",value:a.content,onChange:g,rows:6,className:`w-full px-4 py-3 border ${h.content?"border-red-500":"border-gray-300"} rounded-md focus:outline-none focus:ring-1 focus:ring-govco-primary resize-y text-base`,placeholder:"Contenido de la noticia"}),h.content&&c.jsx("p",{className:"mt-1 text-sm text-red-500",children:h.content})]}),c.jsx("div",{className:"mt-6 p-4 bg-blue-50 rounded-lg border border-blue-200",children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx(Xn,{size:16,className:"text-blue-600 mt-0.5 flex-shrink-0"}),c.jsxs("div",{className:"text-sm text-blue-800",children:[c.jsx("p",{className:"font-medium mb-1",children:"Información sobre las fechas:"}),c.jsxs("ul",{className:"space-y-1 text-xs",children:[c.jsxs("li",{children:["• ",c.jsx("strong",{children:"Fecha de Inicio:"})," Fecha del evento, noticia o publicación (informativa)"]}),c.jsxs("li",{children:["• ",c.jsx("strong",{children:"Fecha Final:"})," Controla la visibilidad - cuando la noticia dejará de mostrarse"]}),c.jsx("li",{children:"• Las noticias se muestran mientras estén activas y no hayan expirado"}),c.jsx("li",{children:"• La fecha de inicio es independiente y no afecta la visibilidad"}),c.jsx("li",{children:"• Solo la fecha final y el estado activo/inactivo controlan si se muestra la noticia"})]})]})]})}),c.jsxs("div",{className:"mt-6 sm:mt-8 flex flex-col sm:flex-row justify-end space-y-3 sm:space-y-0 sm:space-x-3",children:[c.jsxs("button",{type:"button",onClick:n,className:"w-full sm:w-auto px-4 py-2 border border-gray-300 rounded-lg text-govco-gray-700 hover:bg-gray-50 flex items-center justify-center",disabled:r,children:[c.jsx(Vn,{size:18,className:"mr-1"}),"Cancelar"]}),c.jsxs("button",{type:"submit",className:"w-full sm:w-auto px-4 py-2 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary flex items-center justify-center",disabled:r,children:[c.jsx(jr,{size:18,className:"mr-1"}),r?"Guardando...":e?"Actualizar Noticia":"Guardar Noticia"]})]})]})})]})}function vg(){const[e,t]=f.useState([]),[n,r]=f.useState(!0),[a,s]=f.useState(null),[i,o]=f.useState(!1),[l,u]=f.useState(null),[d,m]=f.useState(!1),[h,p]=f.useState({show:!1,id:null,title:""}),[g,y]=f.useState(""),[v,x]=f.useState(!0),b=f.useCallback((async(e=v)=>{r(!0),s(null);try{const n=await cg.getNews(!e);t(n)}catch(n){const e=n instanceof Error?n.message:"Error desconocido";s(e),Le.error(e)}finally{r(!1)}}),[v]);f.useEffect((()=>{b(v)}),[b,v]);const w=()=>{u(null),o(!1)},j=()=>{p({show:!1,id:null,title:""})},N=e.filter((e=>{if(g){const t=g.toLowerCase();return e.title.toLowerCase().includes(t)||e.content&&e.content.toLowerCase().includes(t)||e.entityName&&e.entityName.toLowerCase().includes(t)||e.subtitle&&e.subtitle.toLowerCase().includes(t)}return!0}));
200return c.jsxs(xm,{title:"Gestión de Noticias",children:[a&&c.jsxs("div",{className:"mb-4 p-4 rounded-lg bg-red-100 text-red-800 flex items-start gap-2",children:[c.jsx(Or,{className:"h-5 w-5 shrink-0 mt-0.5"}),c.jsx("span",{children:a}),c.jsx("button",{onClick:()=>s(null),className:"ml-auto text-red-500 hover:text-red-700 cursor-pointer",children:c.jsx(Fr,{size:16})})]}),!1,c.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 mb-6",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4",children:[c.jsxs("button",{onClick:()=>{w(),o(!0)},className:"flex items-center gap-2 bg-govco-primary text-white py-2 px-4 rounded-lg hover:bg-govco-secondary transition-colors cursor-pointer",disabled:n,children:[c.jsx(er,{size:18}),c.jsx("span",{children:"Crear nueva noticia"})]}),c.jsxs("div",{className:"relative flex-1 md:max-w-md",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(Nr,{size:18,className:"text-gray-400"})}),c.jsx("input",{type:"text",value:g,onChange:e=>y(e.target.value),placeholder:"Buscar noticias...",className:"pl-9 pr-4 py-2 border rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-govco-primary"})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("label",{className:"inline-flex items-center cursor-pointer",children:[c.jsx("input",{type:"checkbox",checked:v,onChange:()=>x(!v),className:"sr-only peer",disabled:n}),c.jsx("div",{className:"relative w-11 h-6 bg-gray-200 rounded-full peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-govco-primary peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-govco-primary"}),c.jsx("span",{className:"ml-3 text-sm font-medium text-gray-900",children:"Mostrar solo activas"})]}),c.jsxs("button",{disabled:n,className:"flex items-center justify-center px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors disabled:opacity-50",children:[c.jsx(wr,{size:18,className:"mr-2 "+(n?"animate-spin":"")}),"Actualizar"]})]})]}),c.jsx("div",{className:"mt-4 p-3 bg-blue-50 rounded-lg",children:c.jsxs("p",{className:"text-sm text-blue-800",children:[c.jsx("strong",{children:"Ordenamiento automático:"})," Las noticias se ordenan por fecha final (las que expiran primero aparecen arriba)."]})})]}),c.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[c.jsx("div",{className:"p-4 border-b",children:c.jsx("h3",{className:"text-lg font-medium",children:"Lista de noticias"})}),n?c.jsx("div",{className:"flex justify-center my-12",children:c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsx(fr,{size:36,className:"animate-spin text-govco-primary mb-2"}),c.jsx("p",{className:"text-govco-gray-600",children:"Cargando noticias..."})]})}):0===N.length?c.jsxs("div",{className:"text-center py-10 border rounded-lg bg-gray-50",children:[c.jsx("p",{className:"text-govco-gray-600 mb-2",children:"No se encontraron noticias"}),g&&c.jsxs("p",{className:"text-govco-gray-500 text-sm",children:["Intenta con otro término de búsqueda o"," ",c.jsx("button",{onClick:()=>y(""),className:"text-govco-primary ml-1 hover:underline cursor-pointer",children:"ver todas las noticias"})]})]}):c.jsx("div",{className:"divide-y",children:N.map((e=>{const t=(e=>{if(!e)return{status:"no-date",label:"Sin fecha final",color:"text-gray-500"};const t=new Date(e),n=new Date;n.setHours(0,0,0,0),t.setHours(0,0,0,0);const r=t.getTime()-n.getTime(),a=Math.ceil(r/864e5);return a<0?{status:"expired",label:"Expirada",color:"text-red-600"}:0===a?{status:"today",label:"Expira hoy",color:"text-orange-600"}:a<=3?{status:"soon",label:`Expira en ${a} día${a>1?"s":""}`,color:"text-yellow-600"}:a<=7?{status:"week",label:`Expira en ${a} días`,color:"text-blue-600"}:{status:"future",label:`Expira en ${a} días`,color:"text-green-600"}})(e.endDate);return c.jsx("div",{className:"p-4 hover:bg-gray-50 transition-colors "+(e.isActive?"":"opacity-60"),children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h4",{className:"font-medium",children:e.title}),!e.isActive&&c.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-gray-200 text-gray-700",children:"Inactiva"}),c.jsx("span",{className:`px-2 py-0.5 text-xs rounded-full bg-gray-100 ${t.color}`,children:t.label})]}),e.subtitle&&c.jsxs("p",{className:"text-sm text-gray-500 mb-1",children:[c.jsx("strong",{children:"Descripción:"})," ",e.subtitle]}),c.jsx("p",{className:"text-sm text-gray-600 line-clamp-2",children:e.content}),c.jsxs("div",{className:"mt-2 flex items-center gap-4 text-xs text-gray-500",children:[c.jsxs("span",{children:["Inicio:"," ",e.date?Gp(Kp(e.date),"dd/MM/yyyy",{locale:lg}):"Sin fecha"]}),c.jsxs("span",{children:["Final:"," ",e.endDate?Gp(Kp(e.endDate),"dd/MM/yyyy",{locale:lg}):"Sin fecha final"]}),e.entityName&&c.jsxs("span",{children:["Entidad: ",e.entityName]}),e.imageUrl&&c.jsx("span",{children:"Con imagen"}),e.updatedAt&&c.jsxs("span",{children:["Actualizada:"," ",new Date(e.updatedAt).toLocaleDateString()]})]})]}),c.jsxs("div",{className:"flex gap-1",children:[c.jsx("button",{onClick:()=>(e=>{u(e),o(!0)})(e),disabled:n,className:"p-1.5 text-indigo-600 hover:text-indigo-900 hover:bg-indigo-50 rounded-md cursor-pointer disabled:opacity-50",title:"Editar",children:c.jsx(Ar,{size:16})}),c.jsx("button",{onClick:()=>(async(e,t)=>{try{r(!0),await cg.toggleActive(e,!t),Le.success(`Noticia ${t?"desactivada":"activada"} correctamente`),await b(v)}catch(n){const e=n instanceof Error?n.message:"Error al cambiar el estado de la noticia";Le.error(e)}finally{r(!1)}})(e.id,e.isActive),disabled:n,className:"p-1.5 rounded-md hover:bg-green-50 cursor-pointer disabled:opacity-50",title:e.isActive?"Desactivar":"Activar",children:e.isActive?c.jsx(ir,{size:16,className:"text-red-600 hover:text-red-900"}):c.jsx(or,{size:16,className:"text-green-600 hover:text-green-900"})}),c.jsx("button",{onClick:()=>{return t=e.id,n=e.title,void p({show:!0,id:t,title:n.substring(0,50)+(n.length>50?"...":"")});var t,n},disabled:n,className:"p-1.5 text-red-600 hover:text-red-900 hover:bg-red-50 rounded-md cursor-pointer disabled:opacity-50",title:"Eliminar",children:c.jsx(_r,{size:16})})]})]})},e.id)}))})]}),c.jsx(Hf,{isOpen:i,onClose:w,title:l?"Editar Noticia":"Crear Nueva Noticia",size:"xl",children:c.jsx(yg,{newsItem:l,onSave:async e=>{m(!0);try{if(null==l?void 0:l.id){const n=await cg.updateNews(l.id,e);t((e=>e.map((e=>e.id===n.id?n:e)))),Le.success("Noticia actualizada correctamente")}else{const n=await cg.createNews(e);t((e=>[...e,n])),Le.success("Noticia creada correctamente")}o(!1),s(null)}catch(n){const e=n instanceof Error?n.message:"Error al guardar la noticia";s(e),Le.error(e)}finally{m(!1)}},onCancel:w,isLoading:d})}),c.jsx(Hf,{isOpen:h.show,onClose:j,title:"Confirmar eliminación",size:"md",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Or,{className:"h-6 w-6 text-red-600"})}),c.jsxs("div",{className:"ml-3",children:[c.jsx("p",{className:"text-sm text-gray-700",children:"¿Está seguro de que desea eliminar esta noticia? Esta acción marcará la noticia como inactiva."}),c.jsx("div",{className:"mt-3 p-3 bg-gray-50 rounded-md",children:c.jsxs("p",{className:"text-sm text-gray-600 font-medium",children:['"',h.title,'"']})})]})]}),c.jsxs("div",{className:"flex justify-end space-x-3",children:[c.jsx("button",{onClick:j,className:"px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 cursor-pointer",disabled:n,children:"Cancelar"}),c.jsx("button",{onClick:async()=>
200{if(h.id){r(!0);try{await cg.deleteNews(h.id),t((e=>e.filter((e=>e.id!==h.id)))),p({show:!1,id:null,title:""}),s(null),Le.success("Noticia eliminada correctamente")}catch(e){const t=e instanceof Error?e.message:"Error al eliminar la noticia";s(t),Le.error(t)}finally{r(!1)}}},disabled:n,className:"px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 cursor-pointer",children:n?c.jsxs("span",{className:"flex items-center",children:[c.jsx(fr,{size:16,className:"animate-spin mr-2"}),"Eliminando..."]}):"Eliminar"})]})]})})]})}const xg=new class{constructor(){t(this,"baseUrl","/alerts"),t(this,"authenticatedFetch",nm())}async getActiveAlert(){try{const e=`/backapi/api/portal-servicios-ciudadanos/v1${`${this.baseUrl}/active`}`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();return n.success&&n.data||null}catch(e){return null}}async getAllAlerts(e=!1){try{const t=e?`${this.baseUrl}?includeInactive=true`:this.baseUrl,n=await this.authenticatedFetch(t,{method:"GET"});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);const r=await n.json();if(r.success)return r.data||[];throw new Error(r.message||"Error al obtener alertas")}catch(t){throw new Error("Error al obtener las alertas")}}async getAlertById(e){try{const t=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"GET"});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();if(n.success)return n.data;throw new Error(n.message||"Error al obtener la alerta")}catch(t){throw new Error("Error al obtener la alerta")}}async createAlert(e){try{const t=await this.authenticatedFetch(this.baseUrl,{method:"POST",body:JSON.stringify(e)});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();if(n.success)return n.data;throw new Error(n.message||"Error al crear la alerta")}catch(t){throw new Error("Error al crear la alerta")}}async updateAlert(e,t){try{const n=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"POST",body:JSON.stringify({action:"update",...t})});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);const r=await n.json();if(r.success)return r.data;throw new Error(r.message||"Error al actualizar la alerta")}catch(n){throw new Error("Error al actualizar la alerta")}}async deleteAlert(e){try{const t=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"POST",body:JSON.stringify({action:"delete"})});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();if(!n.success)throw new Error(n.message||"Error al eliminar la alerta")}catch(t){throw new Error("Error al eliminar la alerta")}}async permanentDeleteAlert(e){try{const t=await this.authenticatedFetch(`${this.baseUrl}/${e}`,{method:"POST",body:JSON.stringify({action:"permanent-delete"})});if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);const n=await t.json();if(!n.success)throw new Error(n.message||"Error al eliminar permanentemente la alerta")}catch(t){throw new Error("Error al eliminar permanentemente la alerta")}}async toggleActive(e,t){return this.updateAlert(e,{isActive:t})}};function bg({alert:e,onSave:t,onCancel:n,loading:r=!1}){const[a,s]=f.useState({title:"",description:"",imageUrl:"",startDate:"",endDate:"",priority:0,type:"info",isActive:!0}),[i,o]=f.useState({});f.useEffect((()=>{e&&s({title:e.title||"",description:e.description||"",imageUrl:e.imageUrl||"",startDate:e.startDate?new Date(e.startDate).toISOString().slice(0,16):"",endDate:e.endDate?new Date(e.endDate).toISOString().slice(0,16):"",priority:e.priority||0,type:e.type||"info",isActive:e.isActive??!0})}),[e]);const l=e=>{const{name:t,value:n,type:r}=e.target;s((a=>({...a,[t]:"checkbox"===r?e.target.checked:n}))),i[t]&&o((e=>{const n={...e};return delete n[t],n}))};return c.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[c.jsxs("div",{className:"flex items-center justify-between p-6 border-b",children:[c.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:e?"Editar Alerta":"Nueva Alerta"}),c.jsx("button",{onClick:n,className:"text-gray-400 hover:text-gray-600 transition-colors",disabled:r,children:c.jsx(Fr,{size:24})})]}),c.jsxs("form",{onSubmit:async n=>{if(n.preventDefault(),!(()=>{const e={};return a.title.trim()||(e.title="El título es requerido"),a.startDate||(e.startDate="La fecha de inicio es requerida"),a.endDate&&a.startDate&&new Date(a.endDate)<new Date(a.startDate)&&(e.endDate="La fecha de fin debe ser posterior a la fecha de inicio"),o(e),0===Object.keys(e).length})())return;
200const r={title:a.title,description:a.description||void 0,imageUrl:a.imageUrl||void 0,startDate:new Date(a.startDate).toISOString(),endDate:a.endDate?new Date(a.endDate).toISOString():void 0,priority:Number(a.priority),type:a.type};e&&(r.isActive=a.isActive),await t(r)},className:"p-6 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Título *"}),c.jsx("input",{type:"text",name:"title",value:a.title,onChange:l,className:"w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 "+(i.title?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-blue-500"),disabled:r}),i.title&&c.jsxs("p",{className:"mt-1 text-sm text-red-600 flex items-center gap-1",children:[c.jsx(Xn,{size:14}),i.title]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Descripción"}),c.jsx("textarea",{name:"description",value:a.description,onChange:l,rows:4,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:r})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"URL de la Imagen"}),c.jsx("input",{type:"url",name:"imageUrl",value:a.imageUrl,onChange:l,placeholder:"https://ejemplo.com/imagen.jpg",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:r})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Fecha de Inicio *"}),c.jsx("input",{type:"datetime-local",name:"startDate",value:a.startDate,onChange:l,className:"w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 "+(i.startDate?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-blue-500"),disabled:r}),i.startDate&&c.jsx("p",{className:"mt-1 text-sm text-red-600",children:i.startDate})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Fecha de Fin (opcional)"}),c.jsx("input",{type:"datetime-local",name:"endDate",value:a.endDate,onChange:l,className:"w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 "+(i.endDate?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-blue-500"),disabled:r}),i.endDate&&c.jsx("p",{className:"mt-1 text-sm text-red-600",children:i.endDate})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Tipo"}),c.jsxs("select",{name:"type",value:a.type,onChange:l,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:r,children:[c.jsx("option",{value:"info",children:"Información"}),c.jsx("option",{value:"warning",children:"Advertencia"}),c.jsx("option",{value:"error",children:"Error"}),c.jsx("option",{value:"success",children:"Éxito"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Prioridad (mayor = más importante)"}),c.jsx("input",{type:"number",name:"priority",value:a.priority,onChange:l,min:"0",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:r})]})]}),e&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{type:"checkbox",name:"isActive",checked:a.isActive,onChange:l,className:"w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500",disabled:r}),c.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Alerta activa"})]}),c.jsxs("div",{className:"flex justify-end gap-3 pt-4 border-t",children:[c.jsx("button",{type:"button",onClick:n,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",disabled:r,children:"Cancelar"}),c.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent roun
200ded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 flex items-center gap-2",disabled:r,children:r?c.jsxs(c.Fragment,{children:[c.jsx(fr,{size:16,className:"animate-spin"}),"Guardando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(jr,{size:16}),e?"Actualizar":"Crear"]})})]})]})]})})}function wg(){const[e,t]=f.useState([]),[n,r]=f.useState(!0),[a,s]=f.useState(null),[i,o]=f.useState(!1),[l,u]=f.useState(null),[d,m]=f.useState(!1),[h,p]=f.useState({show:!1,id:null,title:""}),[g,y]=f.useState(""),[v,x]=f.useState(!0),b=f.useCallback((async(e=v)=>{r(!0),s(null);try{const n=await xg.getAllAlerts(!e);t(n)}catch(n){const e=n instanceof Error?n.message:"Error desconocido";s(e),Le.error(e)}finally{r(!1)}}),[v]);f.useEffect((()=>{b(v)}),[b,v]);const w=()=>{p({show:!1,id:null,title:""})},j=e.filter((e=>{var t;return""===g||e.title.toLowerCase().includes(g.toLowerCase())||(null==(t=e.description)?void 0:t.toLowerCase().includes(g.toLowerCase()))})),N=e=>{switch(e){case"warning":return"bg-yellow-100 text-yellow-800 border-yellow-300";case"error":return"bg-red-100 text-red-800 border-red-300";case"success":return"bg-green-100 text-green-800 border-green-300";default:return"bg-blue-100 text-blue-800 border-blue-300"}};return c.jsx(xm,{title:"Gestión de Alertas del Sistema",children:c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between mb-6",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-2xl font-bold text-gray-900 flex items-center gap-2",children:[c.jsx(Bn,{className:"text-blue-600"}),"Gestión de Alertas del Sistema"]}),c.jsx("p",{className:"text-gray-600 mt-1",children:"Administra las alertas informativas que se muestran a los usuarios"})]}),c.jsxs("button",{onClick:()=>{u(null),o(!1),o(!0)},className:"mt-4 md:mt-0 flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors",children:[c.jsx(er,{size:20}),"Nueva Alerta"]})]}),c.jsx("div",{className:"bg-white rounded-lg shadow-sm p-4 mb-6",children:c.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx(Nr,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:20}),c.jsx("input",{type:"text",placeholder:"Buscar alertas...",value:g,onChange:e=>y(e.target.value),className:"w-full pl-10 pr-10 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"}),g&&c.jsx("button",{onClick:()=>y(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:c.jsx(Fr,{size:20})})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>x(!0),className:"px-4 py-2 rounded-md transition-colors "+(v?"bg-blue-600 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"),children:"Activas"}),c.jsx("button",{onClick:()=>x(!1),className:"px-4 py-2 rounded-md transition-colors "+(v?"bg-gray-200 text-gray-700 hover:bg-gray-300":"bg-blue-600 text-white"),children:"Todas"})]}),c.jsxs("button",{onClick:()=>b(v),className:"px-4 py-2 bg-gray-200 text-gray-700 rounded-md hover:bg-gray-300 transition-colors flex items-center gap-2",disabled:n,children:[c.jsx(wr,{size:16,className:n?"animate-spin":""}),"Refrescar"]})]})}),n?c.jsx("div",{className:"flex justify-center items-center py-12",children:c.jsx(fr,{className:"animate-spin text-blue-600",size:40})}):a?c.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 flex items-center gap-2 text-red-800",children:[c.jsx(Or,{size:20}),c.jsx("span",{children:a})]}):0===j.length?c.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-8 text-center",children:[c.jsx(Bn,{size:48,className:"mx-auto text-gray-400 mb-4"}),c.jsx("p",{className:"text-gray-600",children:g?"No se encontraron alertas que coincidan con la búsqueda":"No hay alertas registradas"})]}):c.jsx("div",{className:"grid gap-4",children:j.map((e=>c.jsx("div",{className:"bg-white rounded-lg shadow-sm p-6 border-l-4 "+(e.isActive?"border-blue-500":"border-gray-300 opacity-60"),children:c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:e.title}),c.jsx("span",{className:`px-2 py-1 text-xs font-medium rounded border ${N(e.type)}`,children:e.type}),!e.isActive&&c.jsx("span",{className:"px-2 py-1 text-xs font-medium rounded bg-gray-100 text-gray-600 border border-gray-300",children:"Inactiva"})]}),e.description&&c.jsx("p",{className:"text-gray-600 mb-3 whitespace-pre-line",children:e.description}),c.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-gray-500",children:[c.jsxs("span",{children:["Inicio:"," ",Gp(Kp(e.startDate),"PPP",{locale:lg})]}),e.endDate&&c.jsxs("span",{children:["Fin:"," ",Gp(Kp(e.endDate),"PPP",{locale:lg})]}
200),c.jsxs("span",{children:["Prioridad: ",e.priority]})]})]}),c.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[c.jsx("button",{onClick:()=>(async e=>{try{const n=await xg.toggleActive(e.id,!e.isActive);t((e=>e.map((e=>e.id===n.id?n:e)))),Le.success(n.isActive?"Alerta activada":"Alerta desactivada")}catch(n){const e=n instanceof Error?n.message:"Error al cambiar estado";Le.error(e)}})(e),className:"p-2 rounded-md transition-colors "+(e.isActive?"text-green-600 hover:bg-green-50":"text-gray-400 hover:bg-gray-50"),title:e.isActive?"Desactivar":"Activar",children:e.isActive?c.jsx(or,{size:18}):c.jsx(ir,{size:18})}),c.jsx("button",{onClick:()=>(e=>{u(e),o(!0)})(e),className:"p-2 text-blue-600 hover:bg-blue-50 rounded-md transition-colors",title:"Editar",children:c.jsx(Ar,{size:18})}),c.jsx("button",{onClick:()=>{return t=e.id,n=e.title,void p({show:!0,id:t,title:n.substring(0,50)+(n.length>50?"...":"")});var t,n},className:"p-2 text-red-600 hover:bg-red-50 rounded-md transition-colors",title:"Eliminar",children:c.jsx(_r,{size:18})})]})]})},e.id)))}),i&&c.jsx(bg,{alert:l,onSave:async e=>{m(!0);try{if(null==l?void 0:l.id){const n=await xg.updateAlert(l.id,e);t((e=>e.map((e=>e.id===n.id?n:e)))),Le.success("Alerta actualizada correctamente")}else{const n=await xg.createAlert(e);t((e=>[...e,n])),Le.success("Alerta creada correctamente")}o(!1),s(null)}catch(n){const e=n instanceof Error?n.message:"Error al guardar la alerta";s(e),Le.error(e)}finally{m(!1)}},onCancel:()=>o(!1),loading:d}),h.show&&c.jsx(Hf,{isOpen:h.show,onClose:w,title:"Confirmar eliminación",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Or,{className:"text-red-600 flex-shrink-0",size:24}),c.jsxs("div",{children:[c.jsx("p",{className:"text-gray-700",children:"¿Estás seguro de que deseas desactivar la alerta:"}),c.jsxs("p",{className:"font-semibold text-gray-900 mt-1",children:['"',h.title,'"']}),c.jsx("p",{className:"text-sm text-gray-600 mt-2",children:"La alerta será marcada como inactiva y dejará de mostrarse."})]})]}),c.jsxs("div",{className:"flex justify-end gap-3",children:[c.jsx("button",{onClick:w,className:"px-4 py-2 text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50",children:"Cancelar"}),c.jsx("button",{onClick:async()=>{if(h.id)try{await xg.deleteAlert(h.id),t((e=>e.map((e=>e.id===h.id?{...e,isActive:!1}:e)))),Le.success("Alerta desactivada correctamente"),w(),v&&await b(!0)}catch(e){const t=e instanceof Error?e.message:"Error al desactivar la alerta";s(t),Le.error(t)}},className:"px-4 py-2 text-white bg-red-600 rounded-md hover:bg-red-700",children:"Desactivar"})]})]})})]})})}const jg=new class{constructor(){t(this,"authenticatedFetch",nm())}async getAdmins(e=1,t=10){try{const n=`/auth/admins?page=${e}&limit=${t}`,r=await this.authenticatedFetch(n);if(!r.ok){let e;try{e=await r.json()}catch{e={success:!1,message:`Error ${r.status}: ${r.statusText}`}}throw new Error(e.message||"Error al obtener administradores")}return await r.json()}catch(n){throw n}}async createAdmin(e){try{const t="/auth/admins",n=await this.authenticatedFetch(t,{method:"POST",body:JSON.stringify(e)}),r=await n.json();if(!n.ok)throw r;return r}catch(t){throw t}}async updateAdminStatus(e,t){try{const n=`/auth/admins/${e}/status`,r=await this.authenticatedFetch(n,{method:"PUT",body:JSON.stringify(t)}),a=await r.json();if(!r.ok)throw a;return a}catch(n){throw n}}async getProfile(){try{const e="/auth/profile",t=await this.authenticatedFetch(e);if(!t.ok){let e;try{e=await t.json()}catch{e={success:!1,message:`Error ${t.status}: ${t.statusText}`}}throw new Error(e.message||"Error al obtener perfil")}return await t.json()}catch(e){throw e}}async logout(){try{const e="/auth/logout";await this.authenticatedFetch(e,{method:"POST"})}catch(e){}}};function Ng(){const{user:e}=em(),[t,n]=f.useState([]),[r,a]=f.useState(!0),[s,i]=f.useState(""),[o,l]=f.useState(!1),[u,d]=f.useState(!1),[m,h]=f.useState(!1),[p,g]=f.useState({show:!1,adminId:null,adminName:"",currentStatus:!1,loading:!1}),[y,v]=f.useState(1),[x,b]=f.useState(1),[w,j]=f.useState(0),[N,k]=f.useState({firstName:"",lastName:"",email:"",password:"",role:"admin"}),[S,E]=f.useState({}),C="super_admin"===(null==e?void 0:e.role),P=f.useCallback((async(e=1)=>{a(!0);try{const t=await jg.getAdmins(e,10);if(!t.success)throw new Error(t.message||"Error al cargar administradores");n(t.data.admins),b(t.data.pagination.pages),j(t.data.pagination.total),v(e)}catch(t){const e=t instanceof Error?t.message:"Error desconocido";Le.error(`Error al cargar la lista de administradores: ${e}`),n([]),b(0),j(0)}finally{a(!1)}}),[]);f.useEffect((()=>{C&&P()}),[C,P]);const A=()=>{g({show:!1,adminId:null,adminName:"",currentStatus:!1,loading:!1})},T=()=>{k({firstName:"",lastName:"",email:"",password:"",role:"admin"}),E({}),d(!1)},_=()=>{l(!1),T()},R=e=>t=>{k((n=>({...n,[e]:t.target.value}))),S[e]&&E((t=>({...t,[e]:""})))},L=t.filter((e=>e.firstName.toLowerCase().includes(s.toLowerCase())||e.lastName.toLowerCase().includes(s.toLowerCase())||e.email.toLowerCase().includes(s.toLowerCase()))),M=e=>{try{return new Date(e).toLocaleDateString("es-ES",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return"Fecha inválida"}};return C?c.jsxs(xm,{title:"Gestión de Administradores",children:[c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Administradores del Sistema"}),c.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Gestiona los usuarios con acceso al panel de administración"})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-4 md:mt-0",children:[c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"text",placeholder:"Buscar administradores...",value:s,onChange:e=>i(e.target.value),className:"pl-9 pr-4 py-2 border rounded-lg w-full sm:w-64 focus:outline-none focus:ring-2 focus:ring-govco-primary"}),c.jsx(Nr,{className:"absolute left-3 top-2.5 text-gray-400",size:18})]}),c.jsxs("button",{onClick:()=>P(y),disabled:r,className:"flex items-center justify-center px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors disabled:opacity-50",children:[c.jsx(wr,{size:18,className:"mr-2 "+(r?"animate-spin":"")}),"Actualizar"]}),c.jsxs("button",{onClick:()=>l(!0),className:"flex items-center justify-center px-4 py-2 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary transition-colors",children:[c.jsx(br,{size:18,className:"mr-2"}),"Nuevo Administrador"]})]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[c.jsx("div",{className:"bg-blue-50 p-4 rounded-lg",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(Pr,{className:"h-8 w-8 text-blue-600"}),c.jsxs("div",{className:"ml-3",children:[c.jsx("p",{className:"text-sm font-medium text-blue-600",children:"Total Administradores"}),c.jsx("p",{className:"text-2xl font-semibold text-blue-900",children:w})]})]})}),c.jsx("div",{className:"bg-green-50 p-4 rounded-lg",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(Dr,{className:"h-8 w-8 text-green-600"}),c.jsxs("div",{className:"ml-3",children:[c.jsx("p",{className:"text-sm font-medium text-green-600",children:"Activos"}),c.jsx("p",{className:"text-2xl font-semibold text-green-900",children:t.filter((e=>e.isActive)).length})]})]})}),c.jsx("div",{className:"bg-purple-50 p-4 rounded-lg",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(Pr,{className:"h-8 w-8 text-purple-600"}),c.jsxs("div",{className:"ml-3",children:[c.jsx("p",{className:"text-sm font-medium text-purple-600",children:"Super Admins"}),c.jsx("p",{className:"text-2xl font-semibold text-purple-900",children:t.filter((e=>"super_admin"===e.role)).length})]})]})})]})]}),c.jsxs("div",{className:"bg-white rounded-lg shadow-sm overflow-hidden",children:[c.jsx("div",{className:"p-6 border-b",children:c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Lista de Administradores"})}),r?c.jsxs("div",{className:"flex justify-center items-center py-12",children:[c.jsx(fr,{className:"animate-spin h-8 w-8 text-govco-primary"}),c.jsx("span",{className:"ml-2 text-gray-600",children:"Cargando administradores..."})]}):0===L.length?c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Pr,{className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No hay administradores"}),c.jsx("p",{className:"text-gray-500",children:s?"No se encontraron administradores con ese criterio":"Aún no hay administradores registrados"})]}):c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[c.jsx("thead",{className:"bg-gray-50",children:c.jsxs("tr",{children:[c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Administrador"}),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Rol"}),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Estado"}),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Último Acceso"}),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Acciones"})]})}),c.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:L.map((t=>{return c.jsxs("tr",{className:"hover:bg-gray-50",children:[c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"h-10 w-10 rounded-full bg-govco-primary flex items-center justify-center",children:c.jsx("span",{className:"text-sm font-medium text-white",children:(n=t.firstName,r=t.lastName,`${n.charAt(0)}${r.charAt(0)}`.toUpperCase())})}),c.jsxs("div",{className:"ml-4",children:[c.jsxs("div",{className:"text-sm font-medium text-gray-900",children:[t.firstName," ",t.lastName]}),c.jsx("div",{className:"text-sm text-gray-500",children:t.email})]})]})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsxs("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium "+("super_admin"===t.role?"bg-purple-100 text-purple-800":"bg-blue-100 text-blue-800"),children:["super_admin"===t.role&&c.jsx(Pr,{size:12,className:"mr-1"}),"super_admin"===t.role?"Super Admin":"Admin"]})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors "+(t.isActive?"bg-green-100 text-green-800":"bg-red-100 text-red-800"),children:t.isActive?c.jsxs(c.Fragment,{children:[c.jsx(Jn,{size:12,className:"mr-1"}),"Activo"]}):c.jsxs(c.Fragment,{children:[c.jsx(Or,{size:12,className:"mr-1"}),"Inactivo"]})})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:t.lastLogin?M(t.lastLogin):"Nunca"}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:c.jsxs("div",{className:"flex items-center space-x-2",children:[t.id!==(null==e?void 0:e.id)&&c.jsx("button",{onClick:()=>{return n=t.id,r=`${t.firstName} ${t.lastName}`,a=t.isActive,void(n!==(null==e?void 0:e.id)?g({show:!0,adminId:n,adminName:r,currentStatus:a,loading:!1}
200):Le.error("No puedes cambiar tu propio estado"));var n,r,a},className:"p-2 rounded-full transition-all duration-200 "+(t.isActive?"text-red-600 hover:bg-red-50 hover:text-red-800 hover:scale-105":"text-green-600 hover:bg-green-50 hover:text-green-800 hover:scale-105"),title:t.isActive?"Desactivar administrador":"Activar administrador",children:t.isActive?c.jsx(Ir,{size:16}):c.jsx(Dr,{size:16})}),t.id===(null==e?void 0:e.id)&&c.jsxs("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs bg-blue-100 text-blue-800 font-medium",children:[c.jsx(zr,{size:12,className:"mr-1"}),"Tú"]})]})})]},t.id);var n,r}))})]})}),x>1&&c.jsxs("div",{className:"bg-white px-4 py-3 border-t border-gray-200",children:[c.jsxs("div",{className:"flex justify-between items-center sm:hidden",children:[c.jsx("button",{onClick:()=>P(y-1),disabled:1===y||r,className:"relative inline-flex items-center px-4 py-2 text-sm font-medium rounded-md text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:"Anterior"}),c.jsxs("span",{className:"text-sm text-gray-700",children:[y," / ",x]}),c.jsx("button",{onClick:()=>P(y+1),disabled:y===x||r,className:"relative inline-flex items-center px-4 py-2 text-sm font-medium rounded-md text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:"Siguiente"})]}),c.jsxs("div",{className:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",children:[c.jsx("div",{children:c.jsxs("p",{className:"text-sm text-gray-700",children:["Mostrando página"," ",c.jsx("span",{className:"font-medium",children:y})," de"," ",c.jsx("span",{className:"font-medium",children:x})," (",w," administradores en total)"]})}),c.jsx("div",{children:c.jsxs("nav",{className:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px",children:[c.jsxs("button",{onClick:()=>P(y-1),disabled:1===y||r,className:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:[c.jsx("span",{className:"sr-only",children:"Anterior"}),c.jsx("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:c.jsx("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"})})]}),Array.from({length:Math.min(x,7)},((e,t)=>{let n;return n=x<=7||y<=4?t+1:y>=x-3?x-6+t:y-3+t,c.jsx("button",{onClick:()=>P(n),disabled:r,className:`relative inline-flex items-center px-4 py-2 border text-sm font-medium transition-colors ${n===y?"z-10 bg-govco-primary border-govco-primary text-white":"bg-white border-gray-300 text-gray-500 hover:bg-gray-50"} disabled:opacity-50 disabled:cursor-not-allowed`,children:n},n)})),c.jsxs("button",{onClick:()=>P(y+1),disabled:y===x||r,className:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:[c.jsx("span",{className:"sr-only",children:"Siguiente"}),c.jsx("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:c.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})]})]})})]})]})]})]}),c.jsx(Hf,{isOpen:o,onClose:_,title:"Crear Nuevo Administrador",size:"lg",children:c.jsxs("form",{onSubmit:async e=>{var t,n;if(e.preventDefault(),(()=>{const e={};return N.firstName.trim()?N.firstName.trim().length<2?e.firstName="El nombre debe tener al menos 2 caracteres":/^[a-zA-ZÀ-ÿ\s]+$/.test(N.firstName.trim())||(e.firstName="El nombre solo puede contener letras"):e.firstName="El nombre es obligatorio",N.lastName.trim()?N.lastName.trim().length<2?e.lastName="El apellido debe tener al menos 2 caracteres":/^[a-zA-ZÀ-ÿ\s]+$/.test(N.lastName.trim())||(e.lastName="El apellido solo puede contener letras"):e.lastName="El apellido es obligatorio",N.email.trim()?/\S+@\S+\.\S+/.test(N.email)||(e.email="El email no es válido"):e.email="El email es obligatorio",N.password.trim()?N.password.length<8?e.password="La contraseña debe tener al menos 8 caracteres":/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]/.test(N.password)||(e.password="La contraseña debe contener mayúsculas, minúsculas, números y símbolos"):e.password="La contraseña es obligatoria",E(e),0===Object.keys(e).length})()){h(!0);try{const e={...N,firstName:N.firstName.trim(),lastName:N.lastName.trim(),email:N.email.toLowerCase().trim()};(await jg.createAdmin(e)).success&&(Le.success("Administrador creado exitosamente"),l(!1),T(),await P(y))}catch(r){const e=r;if(e.errors){const t={};
200return e.errors.forEach((e=>{t[e.param]=e.msg})),void E(t)}const a=e.message||(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.message)||"Error desconocido";Le.error(a)}finally{h(!1)}}},className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Nombre *"}),c.jsx("input",{type:"text",value:N.firstName,onChange:R("firstName"),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-govco-primary transition-colors "+(S.firstName?"border-red-300 focus:ring-red-300":"border-gray-300"),placeholder:"Juan",disabled:m}),S.firstName&&c.jsx("p",{className:"mt-1 text-sm text-red-600",children:S.firstName})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Apellido *"}),c.jsx("input",{type:"text",value:N.lastName,onChange:R("lastName"),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-govco-primary transition-colors "+(S.lastName?"border-red-300 focus:ring-red-300":"border-gray-300"),placeholder:"Pérez",disabled:m}),S.lastName&&c.jsx("p",{className:"mt-1 text-sm text-red-600",children:S.lastName})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Correo Electrónico *"}),c.jsx("input",{type:"email",value:N.email,onChange:R("email"),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-govco-primary transition-colors "+(S.email?"border-red-300 focus:ring-red-300":"border-gray-300"),placeholder:"[email protected]",disabled:m}),S.email&&c.jsx("p",{className:"mt-1 text-sm text-red-600",children:S.email})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Rol *"}),c.jsxs("select",{value:N.role,onChange:R("role"),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-govco-primary transition-colors",disabled:m,children:[c.jsx("option",{value:"admin",children:"Administrador"}),c.jsx("option",{value:"super_admin",children:"Super Administrador"})]})]}),c.jsxs("div",{className:"md:col-span-2",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Contraseña *"}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:u?"text":"password",value:N.password,onChange:R("password"),className:"w-full px-3 py-2 pr-10 border rounded-lg focus:outline-none focus:ring-2 focus:ring-govco-primary transition-colors "+(S.password?"border-red-300 focus:ring-red-300":"border-gray-300"),placeholder:"Mínimo 8 caracteres con mayúsculas, minúsculas, números y símbolos",disabled:m}),c.jsx("button",{type:"button",onClick:()=>d(!u),className:"absolute inset-y-0 right-0 pr-3 flex items-center hover:text-govco-primary transition-colors",disabled:m,children:u?c.jsx(ir,{className:"h-5 w-5 text-gray-400"}):c.jsx(or,{className:"h-5 w-5 text-gray-400"})})]}),S.password&&c.jsx("p",{className:"mt-1 text-sm text-red-600",children:S.password}),c.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"La contraseña debe contener al menos: 1 mayúscula, 1 minúscula, 1 número y 1 símbolo especial"})]})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row justify-end gap-3 pt-6 border-t",children:[c.jsx("button",{type:"button",onClick:_,className:"w-full sm:w-auto px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition-colors",disabled:m,children:"Cancelar"}),c.jsx("button",{type:"submit",disabled:m,className:"w-full sm:w-auto flex items-center justify-center px-4 py-2 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary disabled:opacity-50 transition-colors",children:m?c.jsxs(c.Fragment,{children:[c.jsx(fr,{className:"animate-spin -ml-1 mr-2 h-4 w-4"}),"Creando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(jr,{className:"mr-2 h-4 w-4"}),"Crear Administrador"]})})]})]})}),c.jsx(Hf,{isOpen:p.show,onClose:A,title:(p.currentStatus?"Desactivar":"Activar")+" Administrador",size:"md",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-start space-x-3",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Or,{className:"h-6 w-6 text-amber-600"})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("p",{className:"text-sm text-gray-700",children:["¿Está seguro de que desea"," ",c.jsx("strong",{className:"text-gray-900",children:p.currentStatus?"desactivar":"activar"})," ","a este administrador?"]}),c.jsx("div",{className:"mt-4 p-4 bg-gray-50 rounded-lg",children:c.jsx("p",{className:"text-sm text-gray-900 font-medium",children:p.adminName})}),p.currentStatus&&c.jsx("div",{className:"mt-4 p-4 bg-amber-50 border border-amber-200 rounded-lg",children:c.jsxs("div",{className:"flex",children:[c.jsx(Or,{className:"h-5 w-5 text-amber-400 mr-2 flex-shrink-0 mt-0.5"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-amber-800 font-medium",children:"Advertencia"}),c.jsx("p",{className:"text-sm text-amber-700 mt-1",children:"Al desactivar este administrador, no podrá acceder al sistema hasta que sea activado nuevamente."})]})]})})]})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row justify-end gap-3 pt-6 border-t",children:[c.jsx("button",{onClick:A,className:"w-full sm:w-auto px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition-colors",disabled:p.loading,children:"Cancelar"}),c.jsx("button",{onClick:async()=>{var e,t;if(p.adminId){g((e=>({...e,loading:!0})));try{(await jg.updateAdminStatus(p.adminId,{isActive:!p.currentStatus})).success&&(n((e=>e.map((e=>e.id===p.adminId?{...e,isActive:!p.currentStatus}:e)))),Le.success(`Administrador ${p.currentStatus?"desactivado":"activado"} exitosamente`),g({show:!1,adminId:null,adminName:"",currentStatus:!1,loading:!1}))}catch(r){const n=r,a=n.message||(null==(t=null==(e=n.response)?void 0:e.data)?void 0:t.message)||"Error desconocido";Le.error(a)}finally{g((e=>({...e,loading:!1})))}}},disabled:p.loading,className:`w-full sm:w-auto px-4 py-2 text-white rounded-lg transition-colors ${p.currentStatus?"bg-red-600 hover:bg-red-700":"bg-green-600 hover:bg-green-700"} ${p.loading?"opacity-70":""}`,children:p.loading?c.jsxs("span",{className:"flex items-center justify-center",children:[c.jsx(fr,{className:"animate-spin -ml-1 mr-2 h-4 w-4"}),p.currentStatus?"Desactivando...":"Activando..."]}):c.jsx("span",{className:"flex items-center justify-center",children:p.currentStatus?c.jsxs(c.Fragment,{children:[c.jsx(Ir,{className:"mr-2 h-4 w-4"}),"Desactivar"]}):c.jsxs(c.Fragment,{children:[c.jsx(Dr,{className:"mr-2 h-4 w-4"}),"Activar"]})})})]})]})})]}):c.jsx(xm,{title:"Acceso Denegado",children:c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Pr,{className:"mx-auto h-12 w-12 text-red-500 mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Acceso Restringido"}),c.jsx("p",{className:"text-gray-500 mb-4",children:"Solo los Super Administradores pueden acceder a esta sección."}),c.jsx("button",{onClick:()=>window.history.back(),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-govco-primary hover:bg-govco-secondary focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-govco-primary",children:"Volver"})]})})}function kg(){const[e,t]=f.useState("overview"),n=[{title:"Preguntas Frecuentes",count:12,icon:Zn,color:"bg-purple-500",path:xn.ADMIN_FAQS.path,description:"FAQs activas publicadas"},{title:"Noticias Publicadas",count:8,icon:qn,color:"bg-blue-500",path:xn.ADMIN_NEWS.path,description:"Noticias y novedades activas"},{title:"Páginas Estáticas",count:5,icon:lr,color:"bg-green-500",path:"#",description:"Páginas de contenido estático"},{title:"Recursos Multimedia",count:24,icon:or,color:"bg-orange-500",path:"#",description:"Imágenes y documentos"}],r=[{title:"Nueva Pregunta Frecuente",description:"Agregar una nueva FAQ al portal",icon:Zn,path:xn.ADMIN_FAQS.path,color:"bg-purple-100 text-purple-600 hover:bg-purple-200"},{title:"Nueva Noticia",description:"Publicar una nueva noticia o novedad",icon:qn,path:xn.ADMIN_NEWS.path,color:"bg-blue-100 text-blue-600 hover:bg-blue-200"}
200,{title:"Gestionar FAQs",description:"Ver y editar preguntas frecuentes existentes",icon:Ar,path:xn.ADMIN_FAQS.path,color:"bg-gray-100 text-gray-600 hover:bg-gray-200"},{title:"Gestionar Noticias",description:"Ver y editar noticias publicadas",icon:lr,path:xn.ADMIN_NEWS.path,color:"bg-gray-100 text-gray-600 hover:bg-gray-200"}];return c.jsx(xm,{title:"Gestión de Contenido",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsxs("div",{className:"flex items-center mb-4",children:[c.jsx("div",{className:"p-3 bg-blue-100 rounded-lg mr-4",children:c.jsx(lr,{className:"h-6 w-6 text-blue-600"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Gestión de Contenido"}),c.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Administra FAQs, noticias y contenido del portal"})]})]}),c.jsxs("div",{className:"flex space-x-1 bg-gray-100 p-1 rounded-lg",children:[c.jsx("button",{className:"flex-1 py-2 px-4 rounded-md text-sm font-medium transition-colors "+("overview"===e?"bg-white text-gray-900 shadow-sm":"text-gray-600 hover:text-gray-900"),onClick:()=>t("overview"),children:"Resumen"}),c.jsx("button",{className:"flex-1 py-2 px-4 rounded-md text-sm font-medium transition-colors "+("faqs"===e?"bg-white text-gray-900 shadow-sm":"text-gray-600 hover:text-gray-900"),onClick:()=>t("faqs"),children:"FAQs"}),c.jsx("button",{className:"flex-1 py-2 px-4 rounded-md text-sm font-medium transition-colors "+("news"===e?"bg-white text-gray-900 shadow-sm":"text-gray-600 hover:text-gray-900"),onClick:()=>t("news"),children:"Noticias"})]})]}),"overview"===e&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:n.map(((e,t)=>c.jsxs(dn,{to:e.path,className:"bg-white rounded-lg shadow-sm p-6 hover:shadow-md transition-shadow group",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("div",{className:`${e.color} text-white p-3 rounded-lg`,children:c.jsx(e.icon,{size:20})}),c.jsx($n,{size:16,className:"text-gray-400 group-hover:text-gray-600 transition-colors"})]}),c.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-1",children:e.count}),c.jsx("p",{className:"text-sm font-medium text-gray-900",children:e.title}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:e.description})]},t)))}),c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Acciones Rápidas"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.map(((e,t)=>c.jsxs(dn,{to:e.path,className:`flex items-center p-4 rounded-lg transition-colors ${e.color}`,children:[c.jsx(e.icon,{size:20,className:"mr-3"}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-medium",children:e.title}),c.jsx("p",{className:"text-sm opacity-75",children:e.description})]})]},t)))})]}),c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Actividad Reciente"}),c.jsx(dn,{to:"#",className:"text-sm text-blue-600 hover:text-blue-800",children:"Ver todo"})]}),c.jsx("div",{className:"space-y-3",children:[{id:1,type:"faq",title:"Nueva FAQ sobre trámites en línea",time:"Hace 2 horas",user:"Admin"},{id:2,type:"news",title:"Noticia sobre horarios de atención actualizada",time:"Hace 1 día",user:"Admin"},{id:3,type:"faq",title:"FAQ sobre certificados editada",time:"Hace 2 días",user:"Admin"}].map((e=>c.jsxs("div",{className:"flex items-center p-3 bg-gray-50 rounded-lg",children:[c.jsx("div",{className:"mr-3",children:"faq"===e.type?c.jsx(Zn,{size:16,className:"text-purple-600"}):c.jsx(qn,{size:16,className:"text-blue-600"})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm font-medium text-gray-900",children:e.title}),c.jsxs("p",{className:"text-xs text-gray-500",children:[e.time," • ",e.user]})]})]},e.id)))})]})]}),"faqs"===e&&c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Preguntas Frecuentes"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Gestiona las preguntas frecuentes del portal"})]}),c.jsxs(dn,{to:xn.ADMIN_FAQS.path,className:"inline-flex items-center px-4 py-2 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary transition-colors",children:[c.jsx(br,{size:18,className:"mr-2"}),"Nueva FAQ"]})]}),c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Zn,{className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Gestión de FAQs"}),c.jsx("p",{className:"text-gray-500 mb-6",children:"Administra las preguntas frecuentes que ven los usuarios del portal."}),c.jsxs("div",{className:"flex justify-center space-x-3",children:[c.jsxs(dn,{to:xn.ADMIN_FAQS.path,className:"inline-flex items-center px-4 py-2 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary transition-colors",children:[c.jsx(Ar,{size:18,className:"mr-2"}),"Gestionar FAQs"]}),c.jsxs("button",{className:"inline-flex items-center px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[c.jsx(Hn,{size:18,className:"mr-2"}),"Ver Estadísticas"]})]})]})]}),"news"===e&&c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Noticias y Novedades"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Gestiona las noticias y novedades del portal"})]}),c.jsxs(dn,{to:xn.ADMIN_NEWS.path,className:"inline-flex items-center px-4 py-2 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary transition-colors",children:[c.jsx(br,{size:18,className:"mr-2"}),"Nueva Noticia"]})]}),c.jsxs("div",{className:"text-center py-12",children:[c.jsx(qn,{
200className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Gestión de Noticias"}),c.jsx("p",{className:"text-gray-500 mb-6",children:"Administra las noticias y novedades que ven los usuarios del portal."}),c.jsxs("div",{className:"flex justify-center space-x-3",children:[c.jsxs(dn,{to:xn.ADMIN_NEWS.path,className:"inline-flex items-center px-4 py-2 bg-govco-primary text-white rounded-lg hover:bg-govco-secondary transition-colors",children:[c.jsx(Ar,{size:18,className:"mr-2"}),"Gestionar Noticias"]}),c.jsxs("button",{className:"inline-flex items-center px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[c.jsx(Hn,{size:18,className:"mr-2"}),"Ver Estadísticas"]})]})]})]})]})})}const Sg=()=>{const[e,t]=f.useState(!1),[n,r]=f.useState(!1),[a,s]=f.useState(!1),[i,o]=f.useState(!1),[l,u]=f.useState(!1),[d,m]=f.useState(!0),[h,p]=f.useState({host:"",port:587,secure:!1,user:"",password:"",fromEmail:"",fromName:"Portal de Servicios Ciudadanos"}),[g,y]=f.useState({to:""});f.useEffect((()=>{t(!1),m(!0)}),[]);return c.jsxs("div",{className:"space-y-6 p-6",children:[d&&c.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6",children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex items-center mb-4",children:[c.jsx(Zn,{className:"h-6 w-6 text-blue-600 mr-2"}),c.jsx("h3",{className:"text-lg font-semibold text-blue-900",children:"Guía de Configuración de Email"})]}),c.jsx("button",{onClick:()=>m(!1),className:"text-blue-600 hover:text-blue-800 cursor-pointer text-xl font-bold",children:"×"})]}),c.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[{name:"Gmail (Google)",recommended:!0,config:{host:"smtp.gmail.com",port:587,secure:!1,instructions:["1. Ve a tu cuenta de Google y habilita la verificación en 2 pasos","2. Genera una contraseña de aplicación específica","3. Usa tu email completo como usuario","4. Usa la contraseña de aplicación (no tu contraseña normal)"]}},{name:"Outlook/Hotmail (Microsoft)",recommended:!1,config:{host:"smtp-mail.outlook.com",port:587,secure:!1,instructions:["1. Habilita la autenticación SMTP en tu cuenta","2. Usa tu email completo como usuario","3. Usa tu contraseña normal o contraseña de aplicación"]}},{name:"Servidor SMTP Personalizado",recommended:!1,config:{host:"mail.tudominio.com",port:587,secure:!1,instructions:["1. Contacta a tu proveedor de hosting para obtener:","2. Servidor SMTP (host)","3. Puerto (usualmente 587 o 25)","4. Credenciales de acceso","5. Si requiere SSL/TLS"]}}].map(((e,t)=>c.jsxs("div",{className:`bg-white rounded-lg border ${e.recommended?"border-green-200 ring-1 ring-green-200":"border-gray-200"} flex flex-col h-full`,children:[c.jsx("div",{className:"p-4 border-b border-gray-100",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h4",{className:"font-medium text-gray-900",children:e.name}),e.recommended&&c.jsx("span",{className:"bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full",children:"Más fácil"})]})}),c.jsxs("div",{className:"p-4 flex-1 flex flex-col",children:[c.jsxs("div",{className:"space-y-2 mb-4",children:[c.jsxs("div",{className:"text-sm text-gray-600",children:[c.jsx("strong",{children:"Host:"})," ",e.config.host]}),c.jsxs("div",{className:"text-sm text-gray-600",children:[c.jsx("strong",{children:"Puerto:"})," ",e.config.port]})]}),c.jsx("div",{className:"space-y-1 mb-6 flex-1",children:e.config.instructions.map(((e,t)=>c.jsx("div",{className:"text-xs text-gray-600 leading-relaxed",children:e},t)))}),c.jsx("div",{className:"mt-auto",children:c.jsx("button",{onClick:()=>(e=>{p({...h,host:e.config.host,port:e.config.port,secure:e.config.secure})})(e),className:"w-full bg-blue-600 text-white text-sm py-2 px-3 rounded hover:bg-blue-700 transition-colors cursor-pointer",children:"Usar esta configuración"})})]})]},t)))}),c.jsx("div",{className:"mt-6 p-4 bg-amber-50 border border-amber-200 rounded-lg",children:c.jsxs("div",{className:"flex items-start",children:[c.jsx(Or,{className:"h-5 w-5 text-amber-600 mr-2 mt-0.5"}),c.jsxs("div",{children:[c.jsx("h5",{className:"font-medium text-amber-900 mb
200-2",children:"Importante para Gmail:"}),c.jsxs("ol",{className:"text-sm text-amber-800 space-y-1 list-decimal list-inside",children:[c.jsx("li",{children:"No uses tu contraseña normal de Gmail"}),c.jsx("li",{children:'Debes generar una "Contraseña de aplicación" específica'}),c.jsxs("li",{children:["Ve a"," ",c.jsxs("a",{href:"https://myaccount.google.com/apppasswords",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 underline inline-flex items-center",children:["Contraseñas de aplicación"," ",c.jsx(sr,{className:"h-3 w-3 ml-1"})]})]}),c.jsx("li",{children:'Genera una contraseña para "Correo" y úsala aquí'})]})]})]})})]}),c.jsxs("div",{className:"bg-white shadow rounded-lg",children:[c.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(gr,{className:"h-6 w-6 text-blue-600"}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Configuración del Servidor de Email"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Configura el servidor SMTP para envío de notificaciones"})]})]}),!d&&c.jsxs("button",{onClick:()=>m(!0),className:"text-blue-600 hover:text-blue-800 cursor-pointer text-sm flex items-center",children:[c.jsx(Zn,{className:"h-4 w-4 mr-1"}),"Mostrar guía"]})]})}),c.jsxs("div",{className:"p-6",children:[c.jsx("div",{className:"mb-6 p-4 rounded-lg border",children:c.jsx("div",{className:"flex items-center justify-between",children:c.jsx("div",{className:"flex items-center",children:l?c.jsxs(c.Fragment,{children:[c.jsx(Jn,{className:"h-5 w-5 text-green-500 mr-2"}),c.jsxs("div",{children:[c.jsx("span",{className:"text-sm font-medium text-green-700",children:"Configuración verificada y funcionando"}),c.jsx("p",{className:"text-xs text-green-600",children:"El servidor está listo para enviar emails"})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(tr,{className:"h-5 w-5 text-red-500 mr-2"}),c.jsxs("div",{children:[c.jsx("span",{className:"text-sm font-medium text-red-700",children:"Configuración pendiente de verificación"}),c.jsx("p",{className:"text-xs text-red-600",children:"Completa la configuración y verifica la conexión"})]})]})})})}),c.jsxs("form",{onSubmit:async e=>{if(e.preventDefault(),h.host&&h.user&&h.password)try{t(!0),await new Promise((e=>setTimeout(e,1e3))),Le.success("Configuración guardada correctamente"),u(!0),m(!1)}catch(n){Le.error("Error al guardar la configuración")}finally{t(!1)}else Le.error("Por favor completa los campos obligatorios")},className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx("h4",{className:"text-md font-medium text-gray-900 border-b pb-2",children:"Configuración del servidor"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Servidor SMTP *"}),c.jsx("input",{type:"text",value:h.host,onChange:e=>p({...h,host:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",placeholder:"smtp.gmail.com",required:!0}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Ejemplo: smtp.gmail.com, smtp-mail.outlook.com"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Puerto"}),c.jsxs("select",{value:h.port,onChange:e=>p({...h,port:Number(e.target.value)}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",children:[c.jsx("option",{value:587,children:"587 (STARTTLS - Recomendado)"}),c.jsx("option",{value:465,children:"465 (SSL)"}),c.jsx("option",{value:25,children:"25 (Sin cifrado)"}),c.jsx("option",{value:2525,children:"2525 (Alternativo)"})]})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("input",{type:"checkbox",checked:h.secure,onChange:e=>p({...h,secure:e.target.checked}),className:"h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"}),c.jsx("label",{className:"ml-2 block text-sm text-gray-900",children:"Usar SSL/TLS (solo para puerto 465)"})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("h4",{className:"text-md font-medium text-gray-900 border-b pb-2",children:"Credenciales de acceso"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email de usuario *"}
200),c.jsx("input",{type:"email",value:h.user,onChange:e=>p({...h,user:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",placeholder:"[email protected]",required:!0})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Contraseña *"}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:i?"text":"password",value:h.password,onChange:e=>p({...h,password:e.target.value}),className:"w-full px-3 py-2 pr-10 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",placeholder:"••••••••",required:!0}),c.jsx("button",{type:"button",onClick:()=>o(!i),className:"absolute inset-y-0 right-0 pr-3 flex items-center cursor-pointer",children:i?c.jsx(ir,{className:"h-4 w-4 text-gray-400"}):c.jsx(or,{className:"h-4 w-4 text-gray-400"})})]}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Para Gmail, usa una contraseña de aplicación específica"})]})]}),c.jsxs("div",{className:"space-y-4 lg:col-span-2",children:[c.jsx("h4",{className:"text-md font-medium text-gray-900 border-b pb-2",children:"Configuración de envío (opcional)"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email de origen"}),c.jsx("input",{type:"email",value:h.fromEmail,onChange:e=>p({...h,fromEmail:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",placeholder:"[email protected]"}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Si está vacío, se usará el email de usuario"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Nombre del remitente"}),c.jsx("input",{type:"text",value:h.fromName,onChange:e=>
200p({...h,fromName:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",placeholder:"Portal de Servicios Ciudadanos"})]})]})]})]}),c.jsxs("div",{className:"flex flex-wrap gap-3 pt-4 border-t",children:[c.jsxs("button",{type:"submit",disabled:e,className:"bg-blue-600 text-white px-6 py-2 rounded-md hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer flex items-center space-x-2",children:[c.jsx(Cr,{className:"h-4 w-4"}),c.jsx("span",{children:e?"Guardando...":"Guardar configuración"})]}),c.jsxs("button",{type:"button",onClick:async()=>{try{s(!0),await new Promise((e=>setTimeout(e,1e3))),Le.success("Conexión verificada correctamente"),u(!0)}catch(e){Le.error("Error al verificar la conexión"),u(!1)}finally{s(!1)}},disabled:a||!h.host||!h.user,className:"bg-green-600 text-white px-6 py-2 rounded-md hover:bg-green-700 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer flex items-center space-x-2",children:[c.jsx(Jn,{className:"h-4 w-4"}),c.jsx("span",{children:a?"Verificando...":"Verificar conexión"})]})]})]})]})]}),c.jsxs("div",{className:"bg-white shadow rounded-lg",children:[c.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Enviar email de prueba"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Verifica que la configuración funciona correctamente"})]}),c.jsxs("div",{className:"p-6",children:[!l&&c.jsx("div",{className:"mb-4 p-3 bg-amber-50 border border-amber-200 rounded-md",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(mr,{className:"h-4 w-4 text-amber-600 mr-2"}),c.jsx("span",{className:"text-sm text-amber-700",children:"Debes verificar la configuración antes de enviar emails de prueba"})]})}),c.jsxs("form",{onSubmit:async e=>{if(e.preventDefault(),g.to)try{r(!0),await new Promise((e=>setTimeout(e,1e3))),Le.success("Email de prueba enviado correctamente"),y({to:""})}catch(t){Le.error("Error al enviar email de prueba")}finally{r(!1)}else Le.error("Por favor ingresa un email de destino")},className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email de destino"}),c.jsx("input",{type:"email",value:g.to,onChange:e=>y({to:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",placeholder:"[email protected]",required:!0})]}),c.jsxs("button",{type:"submit",disabled:n||!l||!g.to,className:"bg-blue-600 text-white px-6 py-2 rounded-md hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer flex items-center space-x-2",children:[c.jsx(kr,{className:"h-4 w-4"}),c.jsx("span",{children:n?"Enviando...":"Enviar email de prueba"})]})]})]})]})]})};function Eg(){const[e,t]=f.useState("general"),n=[{id:"general",label:"General",icon:Cr,description:"Configuración general del sistema"},{id:"email",label:"Email",icon:gr,description:"Configuración de servidor SMTP"},{id:"security",label:"Seguridad",icon:Pr,description:"Configuración de seguridad"},{id:"system",label:"Sistema",icon:Er,description:"Configuración del sistema"}];return c.jsx(xm,{title:"Configuración",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsxs("div",{className:"flex items-center mb-4",children:[c.jsx("div",{className:"p-3 bg-purple-100 rounded-lg mr-4",children:c.jsx(Cr,{className:"h-6 w-6 text-purple-600"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Configuración del Sistema"}),c.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configuración avanzada y administración del sistema"}),c.jsxs("div",{className:"flex items-center mt-2",children:[c.jsx(Pr,{className:"h-4 w-4 text-purple-500 mr-1"}),c.jsx("span",{className:"text-xs text-purple-600 font-medium",children:"Solo Super Administradores"})]})]})]}),c.jsx("div",{className:"flex space-x-1 bg-gray-100 p-1 rounded-lg",children:n.map((n=>
200c.jsx("button",{className:"flex-1 py-2 px-4 rounded-md text-sm font-medium transition-colors "+(e===n.id?"bg-white text-gray-900 shadow-sm":"text-gray-600 hover:text-gray-900"),onClick:()=>t(n.id),children:c.jsxs("div",{className:"flex items-center justify-center",children:[c.jsx(n.icon,{size:16,className:"mr-2"}),n.label]})},n.id)))})]}),"general"===e&&c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Configuración General"}),c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Cr,{className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Configuración General"}),c.jsx("p",{className:"text-gray-500 mb-6",children:"Esta sección está en desarrollo. Aquí se configurarán los parámetros generales del sistema."})]})]}),"email"===e&&c.jsxs("div",{className:"bg-white rounded-lg shadow-sm",children:[c.jsx("div",{className:"p-6 border-b",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(gr,{className:"h-6 w-6 text-blue-600 mr-3"}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Configuración de Email"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Configura el servidor SMTP para envío de notificaciones"})]})]})}),c.jsx(Sg,{})]}),"security"===e&&c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Configuración de Seguridad"}),c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Pr,{className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Configuración de Seguridad"}),c.jsx("p",{className:"text-gray-500 mb-6",children:"Esta sección está en desarrollo. Aquí se configurarán las políticas de seguridad, autenticación y autorización."}),c.jsxs("ul",{className:"text-left text-gray-600 space-y-2 max-w-md mx-auto",children:[c.jsx("li",{children:"• Políticas de contraseñas"}),c.jsx("li",{children:"• Configuración de sesiones"}),c.jsx("li",{children:"• Autenticación de dos factores"}),c.jsx("li",{children:"• Logs de seguridad"})]})]})]}),"system"===e&&c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Configuración del Sistema"}),c.jsxs("div",{className:"text-center py-12",children:[c.jsx(ar,{className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Configuración del Sistema"}),c.jsx("p",{className:"text-gray-500 mb-6",children:"Esta sección está en desarrollo. Aquí se configurarán los parámetros del sistema, base de datos y rendimiento."}),c.jsxs("ul",{className:"text-left text-gray-600 space-y-2 max-w-md mx-auto",children:[c.jsx("li",{children:"• Configuración de base de datos"}),c.jsx("li",{children:"• Configuración de caché"}),c.jsx("li",{children:"• Límites de velocidad"}),c.jsx("li",{children:"• Configuración de logs"}),c.jsx("li",{children:"• Mantenimiento del sistema"})]})]})]})]})})}function Cg(){return c.jsx(xm,{title:"Perfil de Usuario",children:c.jsxs("div",{className:"p-6 bg-white rounded-lg shadow-sm",children:[c.jsx("p",{className:"text-gray-600",children:"Esta sección está en desarrollo."}),c.jsx("p",{className:"mt-4 text-gray-600",children:"Aquí se implementará la gestión del perfil de administrador, incluyendo:"}),c.jsxs("ul",{className:"mt-2 list-disc list-inside text-gray-600 space-y-1",children:[c.jsx("li",{children:"Información personal"}),c.jsx("li",{children:"Cambio de contraseña"}),c.jsx("li",{children:"Preferencias"}),c.jsx("li",{children:"Historial de actividad"})]})]})})}const Pg=new class{constructor(){t(this,"defaultConfig",{enabled:!0,defaultEmail:"[email protected]",messages:{mobile:"¡Déjanos tu opinión!",desktop:"Estamos trabajando para mejorar tu experiencia en este portal. ¡Déjanos tus comentarios aquí!"}})}async getRibbonConfig(){try{const e=await $f.get("/ribbon/config",{headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}});return e.data&&e.data.success&&e.data.data||this.defaultConfig}catch(e){return this.defaultConfig}}async updateRibbonConfig(e){var t;try{return(null==(t=(await $f.put("/ribbon/config",e,{headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}})).data)?void 0:t.success)||!1}catch(n){return!1}}async sendFeedback(e){var t,n,r,a,s;try{const r={message:e.message,targetEmail:e.targetEmail||this.defaultConfig.defaultEmail},a=await $f.post("/feedback",r,{headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}});return a.status>=200&&a.status<300?{success:!1!==(null==(t=a.data)?void 0:t.success),message:(null==(n=a.data)?void 0:n.message)||"Comentario envi
200ado correctamente"}:{success:!1,message:"Error inesperado del servidor"}}catch(i){const e=i;return"Network Error"===e.message||"ERR_NETWORK"===e.code||(null==(r=e.message)?void 0:r.includes("CORS"))?{success:!1,message:"No se pudo conectar con el servidor. Verifica que el backend esté corriendo."}:(null==(s=null==(a=e.response)?void 0:a.data)?void 0:s.message)?{success:!1,message:e.response.data.message}:{success:!1,message:"Error al enviar el comentario. Por favor intenta nuevamente."}}}async getAllFeedback(e=1,t=10){try{const n=await $f.get(`/feedback?page=${e}&limit=${t}`,{headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}});return n.data&&n.data.success?n.data:{success:!1,data:{total:0,pages:0,currentPage:1,items:[]}}}catch(n){return{success:!1,data:{total:0,pages:0,currentPage:1,items:[]}}}}async updateFeedbackStatus(e,t){var n;try{const r=await $f.put(`/feedback/${e}`,{processed:t},{headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}});return r.status>=200&&r.status<300?{success:!1!==(null==(n=r.data)?void 0:n.success)}:{success:!1}}catch(r){return{success:!1}}}async deleteFeedback(e){var t;try{const n=await $f.delete(`/feedback/${e}`,{headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}});return n.status>=200&&n.status<300?{success:!1!==(null==(t=n.data)?void 0:t.success)}:{success:!1}}catch(n){return{success:!1}}}};function Ag(){const[e,t]=f.useState({enabled:!0,defaultEmail:"[email protected]",messages:{mobile:"¡Déjanos tu opinión!",desktop:"Estamos trabajando para mejorar tu experiencia en este portal. ¡Déjanos tus comentarios aquí!"}}),[n,r]=f.useState(!0),[a,s]=f.useState(!1),[i,o]=f.useState("config"),[l,u]=f.useState([]),[d,m]=f.useState(!1),[h,p]=f.useState(1),[g,y]=f.useState(1),[v,x]=f.useState(null),[b,w]=f.useState(null),[j,N]=f.useState(!0),[k,S]=f.useState(null),[E,C]=f.useState(!1),[P,A]=f.useState({show:!1,messageId:null,messageText:""}),[T,_]=f.useState(!1),[R,L]=f.useState(!1);f.useEffect((()=>{M()}),[]);const M=async()=>{r(!0),x(null);try{const e=await Pg.getRibbonConfig();t(e),N(!0)}catch(e){x("No se pudo conectar con el servidor. Verifica la configuración de la API o contacta al administrador del sistema."),N(!1),te.error("No se pudo cargar la configuración del ribbon")}finally{r(!1)}},O=f.useCallback((async()=>{m(!0),x(null);try{const e=await Pg.getAllFeedback(h);e.success?(u(e.data.items||[]),y(e.data.pages),N(!0)):(te.error("Error al cargar los mensajes de feedback"),x("No se pudieron cargar los mensajes de feedback. Intenta nuevamente más tarde."))}catch(e){te.error("No se pudo cargar los mensajes de feedback"),x("No se pudo conectar con el servidor. Verifica la configuración de la API o contacta al administrador del sistema."),N(!1)}finally{m(!1)}}),[h]);f.useEffect((()=>{"feedback"===i&&O()}),[i,h,O]);const D=e=>{S(e),C(!0)},I=()=>{C(!1),S(null)},z=async(e,t)=>{try{const n=!t;(await Pg.updateFeedbackStatus(e,n)).success?(u((t=>t.map((t=>t.id===e?{...t,processed:n}:t)))),k&&k.id===e&&S({...k,processed:n}),te.success("Mensaje marcado como "+(n?"procesado":"pendiente")),N(!0)):(te.error("Error al actualizar el estado del mensaje"),x("No se pudo actualizar el estado del mensaje. Intenta nuevamente más tarde."))}catch(n){te.error("No se pudo actualizar el estado del mensaje"),x("No se pudo conectar con el servidor. Verifica la configuración de la API o contacta al administrador del sistema."),N(!1)}},U=(e,t)=>{A({show:!0,messageId:e,messageText:t.substring(0,50)+(t.length>50?"...":"")})},F=()=>{A({show:!1,messageId:null,messageText:""})},V=e=>{e>=1&&e<=g&&p(e)},$=e=>{const t=new Date(e);return new Intl.DateTimeFormat("es",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(t)},B=e=>{e?L(!R):_(!T)},q=(e,t)=>{e.stopPropagation(),te.success(`Vista previa: Modal de comentarios se abriría aquí (${t?"móvil":"escritorio"})`)};return c.jsxs(xm,{title:"Configuración del Ribbon",children:[!j&&c.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-6",children:c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Sr,{className:"h-5 w-5 text-red-400"})}),c.jsxs("div",{className:"ml-3 flex-1",children:[c.jsx("p",{className:"text-sm text-red-700 font-medium",children:"Problema de conexión con el servidor"}),c.jsx("p",{className:"text-sm text-red-600 mt-1",children:"No se pudo establecer conexión con el servidor de la API."}),c.jsxs("button",{onClick:()=>{"config"===i?M():O(),te.success("Intentando reconectar con el servidor...")},className:"mt-2 inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 cursor-pointer",children:[c.jsx(wr,{className:"h-4 w-4 mr-1"}),"Intentar reconectar"]})]})]})}),c.jsx("div",{className:"mb-6",children:c.jsxs("div",{className:"bg-white rounded-lg shadow-sm overflow-hidden",children:[c.jsx("div",{className:"border-b",children:c.jsxs("nav",{className:"flex",children:[c.jsx("button",{className:"px-6 py-4 text-sm font-medium cursor-pointer transition-colors "+("config"===i?"border-b-2 border-govco-primary text-govco-primary":"text-gray-500 hover:text-gray-700"),onClick:()=>o("config"),children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(xr,{size:16,className:"mr-2"}),"Configuración"]})}),c.jsx("button",{className:"px-6 py-4 text-sm font-medium cursor-pointer transition-colors "+("feedback"===i?"border-b-2 border-govco-primary text-govco-primary":"text-gray-500 hover:text-gray-700"),onClick:()=>o("feedback"),children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(dr,{size:16,className:"mr-2"}),"Mensajes Recibidos"]})})]})}),c.jsx("div",{className:"p-6",children:"config"===i?c.jsx("div",{children:n?c.jsxs("div",{className:"flex justify-center items-center py-20",children:[c.jsx(fr,{className:"animate-spin mr-2"}),c.jsx("span",{children:"Cargando configuración..."})]}):c.jsxs("form",{onSubmit:async t=>{t.preventDefault();if(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.defaultEmail)){s(!0),x(null),w(null);try{if(!(await Pg.updateRibbonConfig(e)))throw new Error("Error al guardar la configuración");w("Configuración guardada correctamente"),te.success("Configuración guardada correctamente"),N(!0),setTimeout((()=>w(null)),3e3)}catch(n){x("No se pudo conectar con el servidor. Verifica la configuración de la API o contacta al administrador del sistema."),N(!1),te.error("No se pudo guardar la configuración")}finally{s(!1)}}else x("Por favor ingresa una dirección de correo válida")},children:[v&&c.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-6",children:c.jsxs("div",{className:"flex",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Or,{className:"h-5 w-5 text-red-400"})}),c.jsx("div",{className:"ml-3",children:c.jsx("p",{className:"text-sm text-red-700",children:v})}),c.jsx("button",{onClick:()=>x(null),className:"ml-auto text-red-500 hover:text-red-700 cursor-pointer",children:c.jsx(Fr,{size:16})})]})}),b&&c.jsx("div",{className:"bg-green-50 border-l-4 border-green-500 p-4 mb-6",children:c.jsxs("div",{className:"flex",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Wn,{className:"h-5 w-5 text-green-400"})}),c.jsx("div",{className:"ml-3",children:c.jsx("p",{className:"text-sm text-green-700",children:b})})]})}),c.jsxs("div",{className:"space-y-6",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Configuración del Ribbon de Feedback"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Personaliza la apariencia 
200y comportamiento del ribbon de feedback que aparece flotando en el lado derecho del portal."}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"mb-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Estado del Ribbon"}),c.jsxs("div",{className:"relative inline-block w-10 mr-2 align-middle select-none",children:[c.jsx("input",{type:"checkbox",name:"enabled",id:"enabled",checked:e.enabled,onChange:n=>t({...e,enabled:n.target.checked}),className:"sr-only"}),c.jsx("label",{htmlFor:"enabled",className:"block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer transition-colors "+(e.enabled?"bg-govco-primary":""),children:c.jsx("span",{className:"dot absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition-transform duration-200 ease-in-out "+(e.enabled?"transform translate-x-4":"")})})]})]}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:e.enabled?"El ribbon está activo y visible para los usuarios.":"El ribbon está desactivado y no será visible."})]}),c.jsxs("div",{className:"mb-4",children:[c.jsx("label",{htmlFor:"defaultEmail",className:"block text-sm font-medium text-gray-700 mb-1",children:"Correo de destino"}),c.jsx("input",{type:"email",name:"defaultEmail",id:"defaultEmail",value:e.defaultEmail,onChange:n=>t({...e,defaultEmail:n.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-govco-primary focus:border-govco-primary",placeholder:"[email protected]"}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Los comentarios se enviarán a esta dirección de correo."})]})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"mb-4",children:[c.jsx("label",{htmlFor:"mobilemessage",className:"block text-sm font-medium text-gray-700 mb-1",children:"Texto para móviles"}),c.jsx("input",{type:"text",name:"mobilemessage",id:"mobilemessage",value:e.messages.mobile,onChange:n=>t({...e,messages:{...e.messages,mobile:n.target.value}}),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-govco-primary focus:border-govco-primary",placeholder:"Mensaje para móviles",maxLength:60}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Este texto se mostrará en dispositivos móviles. Máx. 60 caracteres."})]}),c.jsxs("div",{className:"mb-4",children:[c.jsx("label",{htmlFor:"desktopmessage",className:"block text-sm font-medium text-gray-700 mb-1",children:"Texto para escritorio"}),c.jsx("textarea",{name:"desktopmessage",id:"desktopmessage",value:e.messages.desktop,onChange:n=>t({...e,messages:{...e.messages,desktop:n.target.value}}),rows:3,className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-govco-primary focus:border-govco-primary",placeholder:"Mensaje para escritorio",maxLength:200}),c.jsxs("p",{className:"text-xs text-gray-500 mt-1 flex justify-between",children:[c.jsx("span",{children:"Este texto se mostrará en dispositivos de escritorio."}),c.jsxs("span",{children:[e.messages.desktop.length,"/200"]})]})]})]})]}),c.jsxs("div",{className:"mb-6 p-6 bg-gray-50 rounded-lg border border-gray-200",children:[c.jsx("h3",{className:"text-md font-medium mb-4",children:"Vista previa del Ribbon"}),c.jsx("div",{className:"mb-4 p-3 bg-blue-50 border border-blue-200 rounded-md",children:c.jsxs("p",{className:"text-sm text-blue-700",children:[c.jsx("strong",{children:"Nuevo diseño:"})," El ribbon aparece como un botón flotante en el lado derecho de la pantalla con ondas pulsantes. Al hacer clic se expande mostrando el mensaje personalizado y botón de acción."]})}),c.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6",children:[c.jsxs("div",{children:[c.jsxs("p",{className:"text-sm text-gray-600 mb-3 font-medium flex items-center",children:["📱 ",c.jsx("span",{className:"ml-1",children:"Versión móvil"})]}),c.jsxs("div",{className:"relative bg-white border-2 border-dashed border-gray-300 rounded-lg p-4 h-40",children:[c.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:c.jsxs("div",{className:"relative",children:[e.enabled&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-11 h-9 border border-red-300 rounded-l-xl opacity-75 animate-ping"}),c.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-14 h-12 border border-red-200 rounded-l-xl opacity-50 animate-ping",style:{animationDelay:"0.7s"}})]}),c.jsx("div",{onClick:()=>B(!0),className:`relative w-11 h-9 bg-[#cc0e36] text-white rounded-l-xl shadow-lg flex items-center justify-center cursor-pointer transition-all duration-300 hover:bg-[#e51943] hover:shadow-xl hover:scale-105 ${R?"bg-[#e51943] scale-105":""} ${e.enabled?"":"opacity-50 cursor-not-allowed"}`,children:c.jsx(xr,{size:16,className:"text-white"})}),R&&e.enabled&&c.jsx("div",{className:"absolute right-12 top-1/2 transform -translate-y-1/2 animate-in slide-in-from-right-2 duration-300",children:c.jsxs("div",{className:"bg-gradient-to-br from-white to-gray-50 rounded-xl shadow-xl border p-4 w-64 relative",children:[c.jsx("div",{className:"absolute right-0 top-1/2 transform translate-x-2 -translate-y-1/2 w-0 h-0 border-l-8 border-l-white border-t-8 border-t-transparent border-b-8 border-b-transparent drop-shadow-sm"}),c.jsx("h4",{className:"text-sm font-semibold text-[#cc0e36] mb-2",children:"¡Tu opinión importa!"}),c.jsx("p",{className:"text-xs text-gray-600 mb-3 leading-relaxed",children:e.messages.mobile}),c.jsxs("button",{onClick:e=>q(e,!0),className:"w-full bg-gradient-to-r from-[#cc0e36] to-[#e51943] text-white text-xs font-semibold py-2 px-3 rounded-lg hover:shadow-md transition-all duration-200 flex items-center justify-center hover:scale-105",children:[c.jsx(xr,{size:12,className:"mr-1"}),"Enviar comentario"]})]})})]})}),c.jsx("div",{className:"absolute bottom-2 left-2 text-xs text-gray-500",children:R?"Clic para cerrar":"Clic para abrir"})]})]}),c.jsxs("div",{children:[c.jsxs("p",{className:"text-sm text-gray-600 mb-3 font-medium flex items-center",children:["🖥️"," ",c.jsx("span",{className:"ml-1",children:"Versión escritorio"})]}),c.jsxs("div",{className:"relative bg-white border-2 border-dashed border-gray-300 rounded-lg p-4 h-40",children:[c.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:c.jsxs("div",{className:"relative",children:[e.enabled&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-12 h-10 border border-red-300 rounded-l-2xl opacity-75 animate-ping"}),c.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-16 h-14 border border-red-200 rounded-l-2xl opacity-50 animate-ping",style:{animationDelay:"0.7s"}}),c.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-20 h-18 border border-red-100 rounded-l-2xl opacity-25 animate-ping",style:{animationDelay:"1.4s"}})]}),c.jsx("div",{onClick:()=>B(!1),className:`relative w-12 h-10 bg-[#cc0e36] text-white rounded-l-2xl shadow-lg flex items-center justify-center cursor-pointer transition-all duration-300 hover:bg-[#e51943] hover:shadow-xl hover:scale-105 ${T?"bg-[#e51943] scale-105":""} ${e.enabled?"":"opacity-50 cursor-not-allowed"}`,children:c.jsx(xr,{size:18,className:"text-white"})}),T&&e.enabled&&c.jsx("div",{className:"absolute right-14 top-1/2 transform -translate-y-1/2 animate-in slide-in-from-right-2 duration-400",children:c.jsxs("div",{className:"bg-gradient-to-br from-white to-gray-50 rounded-xl shadow-2xl border border-gray-100 p-5 w-80 relative",children:[c.jsx("div",{className:"absolute right-0 top-1/2 transform translate-x-2 -translate-y-1/2",children:c.jsx("div",{className:"w-0 h-0 border-l-8 border-l-white border-t-8 border-t-transparent border-b-8 border-b-transparent drop-shadow-sm"})}),c.jsx("h4",{className:"text-sm font-semibold text-[#cc0e36] mb-2",children:"¡Hemos rediseñado el portal!"}),c.jsx("p",{className:"text-xs text-gray-600 mb-4 leading-relaxed",children:e.messages.desktop}),c.jsxs("button",{onClick:e=>q(e,!1),className:"w-full bg-gradient-to-r from-[#cc0e36] to-[#e51943] text-white text-xs font-semibold py-2.5 px-4 roun
200ded-lg hover:shadow-lg transition-all duration-200 flex items-center justify-center hover:scale-105",children:[c.jsx(xr,{size:14,className:"mr-2"}),"Enviar comentario"]})]})})]})}),c.jsx("div",{className:"absolute bottom-2 left-2 text-xs text-gray-500",children:T?"Clic para cerrar":"Clic para abrir"})]})]})]}),c.jsxs("div",{className:"mt-6 bg-green-50 border border-green-200 rounded-lg p-4",children:[c.jsx("h4",{className:"text-sm font-semibold text-green-800 mb-2",children:"✨ Características del ribbon:"}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm text-green-700",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{children:["• ",c.jsx("strong",{children:"Posición fija:"})," Lado derecho de la pantalla"]}),c.jsxs("div",{children:["• ",c.jsx("strong",{children:"Ondas pulsantes:"})," Llaman la atención del usuario"]}),c.jsxs("div",{children:["• ",c.jsx("strong",{children:"Clic para expandir:"})," Muestra mensaje personalizado"]})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{children:["• ",c.jsx("strong",{children:"Responsive:"})," Se adapta a móviles y escritorio"]}),c.jsxs("div",{children:["• ",c.jsx("strong",{children:"Cierre automático:"})," Al hacer clic fuera"]}),c.jsxs("div",{children:["• ",c.jsx("strong",{children:"Animaciones suaves:"})," ","Transiciones fluidas"]})]})]})]}),c.jsx("div",{className:"mt-4 p-3 rounded-lg border "+(e.enabled?"bg-green-50 border-green-200":"bg-red-50 border-red-200"),children:c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"w-3 h-3 rounded-full mr-3 "+(e.enabled?"bg-green-500":"bg-red-500")}),c.jsx("span",{className:"text-sm font-medium "+(e.enabled?"text-green-800":"text-red-800"),children:e.enabled?"✅ Ribbon activo - Visible para los usuarios":"❌ Ribbon desactivado - No visible para los usuarios"})]})})]}),c.jsx("div",{className:"flex justify-end",children:c.jsx("button",{type:"submit",disabled:a,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-govco-primary hover:bg-govco-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-govco-primary disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:a?c.jsxs(c.Fragment,{children:[c.jsx(hr,{size:16,className:"animate-spin mr-2"}),"Guardando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(jr,{size:16,className:"mr-2"}),"Guardar configuración"]})})})]})]})}):c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Mensajes recibidos"}),d?c.jsxs("div",{className:"flex justify-center items-center py-20",children:[c.jsx(fr,{className:"animate-spin mr-2"}),c.jsx("span",{children:"Cargando mensajes..."})]}):0===l.length?c.jsxs("div",{className:"text-center py-12 bg-gray-50 rounded-lg",children:[c.jsx(dr,{className:"mx-auto h-12 w-12 text-gray-400"}),c.jsx("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"No hay mensajes"}),c.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"No se han recibido mensajes de feedback aún."})]}):c.jsxs("div",{className:"overflow-x-auto",children:[c.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[c.jsx("thead",{className:"bg-gray-50",children:c.jsxs("tr",{children:[c.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Mensaje"}),c.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Fecha"}),c.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Estado"}),c.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Acciones"})]})}),c.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:l.map((e=>c.jsxs("tr",{className:"hover:bg-gray-50",children:[c.jsxs("td",{className:"px-6 py-4 whitespace-normal",children:[c.jsx("div",{className:"text-sm text-gray-900 max-w-md break-words cursor-pointer hover:text-blue-600",onClick:()=>D(e),title:"Click para ver mensaje completo",children:e.message.length>100?`${e.message.substring(0,100)}...`:e.message}),c.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:["Para: ",e.targetEmail]})]}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsx("div",{className:"text-sm text-gray-900",children:$(e.created_at)})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsx("span",{className:"px-2 inline-flex text-xs leading-5 font-semibold rounded-full "+(e.processed?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800"),children:e.processed?"Procesado":"Pendiente"})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:c.jsxs("div",{className:"flex space-x-2",children:[c.jsx("button",{onClick:()=>D(e),className:"p-1 rounded-full text-blue-600 hover:text-blue-800 hover:bg-blue-50 cursor-pointer transition-colors",title:"Ver mensaje completo",children:c.jsx(or,{size:18})}),c.jsx("button",{onClick:()=>z(e.id,e.processed),className:"p-1 rounded-full cursor-pointer transition-colors "+(e.processed?"text-green-600 hover:text-green-800 hover:bg-green-50":"text-yellow-600 hover:text-yellow-800 hover:bg-yellow-50"),title:e.processed?"Marcar como no procesado":"Marcar como procesado",children:e.processed?c.jsx(ir,{size:18}):c.jsx(Wn,{size:18})}),c.jsx("button",{onClick:()=>U(e.id,e.message),className:"p-1 text-red-600 hover:text-red-800 hover:bg-red-50 rounded-full cursor-pointer transition-colors",title:"Eliminar mensaje",children:c.jsx(_r,{size:18})})]})})]},e.id)))})]}),g>1&&c.jsxs("div",{className:"px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6",children:[c.jsxs("div",{className:"flex-1 flex justify-between sm:hidden",children:[c.jsx("button",{onClick:()=>V(h-1),disabled:1===h,className:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:"Anterior"}),c.jsx("button",{onClick:()=>V(h+1),disabled:h===g,className:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:"Siguiente"})]}),c.jsxs("div",{className:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between",children:[c.jsx("div",{children:c.jsxs("p",{className:"text-sm text-gray-700",children:["Mostrando"," ",c.jsx("span",{className:"font-medium",children:h})," ","de"," ",c.jsx("span",{className:"font-medium",children:g})," ","páginas"]})}),c.jsx("div",{children:c.jsxs("nav",{className:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination",children:[c.jsxs("button",{onClick:()=>V(h-1),disabled:1===h,className:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:[c.jsx("span",{className:"sr-only",children:"Anterior"}),c.jsx(Yn,{className:"h-5 w-5","aria-hidden":"true"})]}),Array.from({length:g},((e,t)=>t+1)).map((e=>c.jsx("button",{onClick:()=>V(e),className:`relative inline-flex items-center px-4 py-2 border cursor-pointer transition-colors ${e===h?"z-10 bg-govco-primary border-govco-primary text-white":"bg-white border-gray-300 text-gray-500 hover:bg-gray-50"} text-sm font-medium`,children:e},e))),c.jsxs("button",{onClick:()=>V(h+1),disabled:h===g,className:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:[c.jsx("span",{className:"sr-only",children:"Siguiente"}),c.jsx(Kn,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]})]})]})]})})]})}),P.show&&c.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50",children:c.jsx("div",{className:"relative top-20 mx-auto p-5 border w-11/12 md:w-1/2 lg:w-1/3 shadow-lg rounded-md bg-white",children:c.jsxs("div",{className:"mt-3",children:[c.jsx("div",{className:"flex items-center justify-center w-12 h-12 mx-auto bg-red-100 rounded-full mb-4",children:c.jsx(Or,{className:"w-6 h-6 text-red-600"})}),c.jsxs("div",{className:"text-center",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"¿Eliminar mensaje?"}),c.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"¿Estás seguro de que deseas eliminar este mensaje? Esta acción no se puede deshacer."}),c.jsx("div",{className:"bg-gray-50 p-3 rounded-md mb-4",children:c.jsxs("p",{className:"text-sm text-gray-700 italic",children:['"',P.messageText,'"']})}),c.jsxs("div",{className:"flex justify-center space-x-3",children:[c.jsx("button",{onClick:F,className:"px-4 py-2 bg-gray-300 text-gray-700 rounded-md hover:bg-gray-400 cursor-pointer transition-colors",children:"Cancelar"}),c.jsx("button",{onClick:async()=>
200{if(P.messageId)try{(await Pg.deleteFeedback(P.messageId)).success?(u((e=>e.filter((e=>e.id!==P.messageId)))),k&&k.id===P.messageId&&I(),te.success("Mensaje eliminado correctamente"),N(!0),F()):(te.error("Error al eliminar el mensaje"),x("No se pudo eliminar el mensaje. Intenta nuevamente más tarde."))}catch(e){te.error("No se pudo eliminar el mensaje"),x("No se pudo conectar con el servidor. Verifica la configuración de la API o contacta al administrador del sistema."),N(!1)}},className:"px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 cursor-pointer transition-colors",children:"Eliminar"})]})]})]})})}),E&&k&&c.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50",children:c.jsxs("div",{className:"relative top-20 mx-auto p-5 border w-11/12 md:w-3/4 lg:w-1/2 shadow-lg rounded-md bg-white",children:[c.jsxs("div",{className:"flex items-center justify-between border-b pb-3 mb-4",children:[c.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Mensaje de Feedback"}),c.jsx("button",{onClick:I,className:"text-gray-400 hover:text-gray-600 cursor-pointer",children:c.jsx(Fr,{size:24})})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"px-3 py-1 inline-flex text-sm leading-5 font-semibold rounded-full "+(k.processed?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800"),children:k.processed?"Procesado":"Pendiente"}),c.jsxs("div",{className:"flex space-x-2",children:[c.jsx("button",{onClick:()=>z(k.id,k.processed),className:"inline-flex items-center px-3 py-1 rounded-md text-sm font-medium cursor-pointer transition-colors "+(k.processed?"bg-yellow-100 text-yellow-800 hover:bg-yellow-200":"bg-green-100 text-green-800 hover:bg-green-200"),children:k.processed?c.jsxs(c.Fragment,{children:[c.jsx(ir,{size:16,className:"mr-1"}),"Marcar pendiente"]}):c.jsxs(c.Fragment,{children:[c.jsx(Wn,{size:16,className:"mr-1"}),"Marcar procesado"]})}),c.jsxs("button",{onClick:()=>U(k.id,k.message),className:"inline-flex items-center px-3 py-1 rounded-md text-sm font-medium bg-red-100 text-red-800 hover:bg-red-200 cursor-pointer transition-colors",children:[c.jsx(_r,{size:16,className:"mr-1"}),"Eliminar"]})]})]}),c.jsx("div",{className:"bg-gray-50 rounded-lg p-4",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4",children:[c.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[c.jsx(gr,{className:"h-4 w-4 mr-2"}),c.jsx("span",{className:"font-medium",children:"Email:"}),c.jsx("span",{className:"ml-1",children:k.targetEmail})]}),c.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[c.jsx(nr,{className:"h-4 w-4 mr-2"}),c.jsx("span",{className:"font-medium",children:"Fecha:"}),c.jsx("span",{className:"ml-1",children:$(k.created_at)})]}),k.userId&&c.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[c.jsx(zr,{className:"h-4 w-4 mr-2"}),c.jsx("span",{className:"font-medium",children:"Usuario:"}),c.jsx("span",{className:"ml-1",children:k.userId})]}),k.userIp&&c.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[c.jsx("span",{className:"font-medium",children:"IP:"}),c.jsx("span",{className:"ml-1",children:k.userIp})]})]})}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-2",children:"Mensaje completo:"}),c.jsx("div",{className:"bg-white border border-gray-200 rounded-lg p-4 min-h-[100px] max-h-[300px] overflow-y-auto",children:c.jsx("p",{className:"text-gray-700 whitespace-pre-wrap leading-relaxed",children:k.message})})]})]}),c.jsx("div",{className:"flex justify-end pt-4 border-t mt-6",children:c.jsx("button",{onClick:I,className:"px-4 py-2 bg-gray-300 text-gray-700 rounded-md hover:bg-gray-400 cursor-pointer transition-colors",children:"Cerrar"})})]})})]})}function Tg({children:e,requiredRole:t}){const{user:n,isAuthenticated:r,checkAuthStatus:a,loading:s,token:i}=em(),o=wt(),[l,u]=f.useState(!0);if(f.useEffect((()=>{const e=setTimeout((()=>
200{if(i&&n){a()}u(!1)}),100);return()=>clearTimeout(e)}),[]),s||l)return c.jsx("div",{className:"flex items-center justify-center h-screen",children:c.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500"})});if(!r||!n||!i){const e="/admin/login";return c.jsx(Dt,{to:e,state:{from:o.pathname},replace:!0})}if(t){if(!(()=>{switch(t){case"super_admin":return"super_admin"===n.role;case"admin":return"admin"===n.role||"super_admin"===n.role;default:return!1}})())return c.jsx("div",{className:"min-h-screen bg-gray-100 flex items-center justify-center",children:c.jsx("div",{className:"max-w-md w-full bg-white rounded-lg shadow-md p-8",children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100",children:c.jsx(Or,{className:"h-6 w-6 text-red-600"})}),c.jsx("h3",{className:"mt-4 text-lg font-medium text-gray-900",children:"Acceso Restringido"}),c.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"super_admin"===t?"Solo los Super Administradores pueden acceder a esta sección.":"No tienes permisos para acceder a esta sección."}),c.jsxs("div",{className:"mt-4 flex items-center justify-center text-sm text-gray-400",children:[c.jsx(Pr,{className:"h-4 w-4 mr-1"}),c.jsxs("span",{children:["Tu rol actual:"," ","super_admin"===n.role?"Super Admin":"Admin"]})]}),c.jsx("div",{className:"mt-6",children:c.jsx("button",{onClick:()=>window.history.back(),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-govco-primary hover:bg-govco-secondary focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-govco-primary",children:"Volver"})})]})})})}return c.jsx(c.Fragment,{children:e})}const _g=p.lazy((()=>vn((()=>import("./index-pQnxoW9K.js")),__vite__mapDeps([46,3])))),Rg=[{path:"/admin/login",element:c.jsx(_g,{})},{path:xn.ADMIN.path,element:c.jsx(Tg,{children:c.jsx(qf,{})})},{path:xn.ADMIN_CONTENT.path,element:c.jsx(Tg,{children:c.jsx(kg,{})})},{path:xn.ADMIN_FAQS.path,element:c.jsx(Tg,{children:c.jsx(Qf,{})})},{path:xn.ADMIN_NEWS.path,element:c.jsx(Tg,{children:c.jsx(vg,{})})},{path:xn.ADMIN_ALERTS.path,element:c.jsx(Tg,{children:c.jsx(wg,{})})},{path:xn.ADMIN_RIBBON.path,element:c.jsx(Tg,{children:c.jsx(Ag,{})})},{path:xn.ADMIN_PROFILE.path,element:c.jsx(Tg,{children:c.jsx(Cg,{})})},{path:xn.ADMIN_ADMIN_USERS.path,element:c.jsx(Tg,{requiredRole:"super_admin",children:c.jsx(Ng,{})})},{path:xn.ADMIN_SETTINGS.path,element:c.jsx(Tg,{requiredRole:"super_admin",children:c.jsx(Eg,{})})}];function Lg(){const[e,t]=f.useState(100),[n,r]=f.useState(!1),[a,s]=f.useState(window.innerWidth);f.useEffect((()=>{const e=localStorage.getItem("accessibility-settings");if(e)try{const{fontSizePercent:n,highContrast:a}=JSON.parse(e);t(n??100),r(a??!1)}catch(n){}}),[]),f.useEffect((()=>{const t=document.getElementById("root");t&&(t.style.fontSize=`${e}%`,t.style.filter=n?"invert(1) hue-rotate(180deg)":"none"),localStorage.setItem("accessibility-settings",JSON.stringify({fontSizePercent:e,highContrast:n}))}),[e,n]),f.useEffect((()=>{const e=()=>{s(window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const{buttonSize:i,iconSize:o}=(()=>{let e="3rem",t=24;return a<640?(e="2.5rem",t=18):a<768?(e="2.75rem",t=20):a>1280&&(e="3.25rem",t=28),{buttonSize:e,iconSize:t}})(),l=c.jsxs("div",{className:"fixed right-0 top-1/2 transform -translate-y-1/2 flex flex-col bg-[#cc0f35] rounded-l-md shadow-lg overflow-hidden z-[9999]",style:{width:i},children:[c.jsx("button",{onClick:()=>r((e=>!e)),className:"w-full flex items-center justify-center text-white hover:bg-[#e51943] transition-colors","aria-label":"Alternar alto contraste",style:{height:i},children:c.jsx(rr,{size:o})}),c.jsx("button",{onClick:()=>t((e=>Math.max(e-10,90))),disabled:e<=90,className:"w-full flex items-center justify-center text-white hover:bg-[#e51943] transition-colors disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Disminuir texto",style:{height:i},children:c.jsx(Vr,{size:o})}),c.jsx("button",{onClick:()=>t((e=>Math.min(e+10,140))),disabled:e>=140,className:"w-full flex items-center justify-center text-white hover:bg-[#e51943] transition-colors disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Aumentar texto",style:{height:i},children:c.jsx($r,{size:o})})]});return gn.createPortal(l,document.body)}const Mg=()=>{const[e,t]=f.useState(!1),[n,r]=f.useState(!1),[a,s]=f.useState(""),[i,o]=f.useState(!1),[l,u]=f.useState(!1),[d,m]=f.useState(""),[h,p]=f.useState(!1),g=f.useRef(null),y=f.useRef(null),v=f.useRef(null),[x,b]=f.useState({enabled:!0,defaultEmail:"[email protected]",messages:{mobile:"¡Déjanos tu opinión!",desktop:"Trabajamos para mejorar tu experiencia digital con los servicios y trámites de Bogotá. Cuéntanos qué piensas y ayúdanos a seguir mejorando"}});f.useEffect((()=>{(async()=>{try{const e=await Pg.getRibbonConfig();b(e)}catch(e){}})()}),[]),f.useEffect((()=>{const e=()=>{r(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);f.useEffect((()=>()=>{v.current&&clearTimeout(v.current)}),[]);const w=()=>t(!1);if(!x.enabled)return null;const j=n?x.messages.mobile:x.messages.desktop;return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"ribbon-container",children:[c.jsxs("div",{ref:g,className:"ribbon-main-bar "+(h?"ribbon-active":""),onMouseEnter:()=>{v.current&&(clearTimeout(v.current),v.current=null),p(!0)},onMouseLeave:()=>{v.current=setTimeout((()=>{p(!1)}),300)},children:[c.jsx("div",{className:"ribbon-pulse-wave ribbon-pulse-wave-1"}),c.jsx("div",{className:"ribbon-pulse-wave ribbon-pulse-wave-2"}),c.jsx("div",{className:"ribbon-pulse-wave ribbon-pulse-wave-3"}),c.jsx("div",{className:"ribbon-icon-wrapper",children:c.jsx(vr,{size:n?16:20,className:"ribbon-message-icon",strokeWidth:1.5})})]}),h&&c.jsx("div",{ref:y,className:"ribbon-dropdown ribbon-dropdown-visible",onMouseEnter:()=>{v.current&&(clearTimeout(v.current),v.current=null),p(!0)},onMouseLeave:()=>{p(!1)},children:c.jsxs("div",{className:"ribbon-dropdown-content",children:[c.jsx("div",{className:"ribbon-dropdown-arrow"}),c.jsxs("div",{className:"ribbon-dropdown-body",children:[c.jsx("h4",{className:"ribbon-dropdown-title",children:n?"¡Tu opinión importa!":"¡Trabajamos por ti!"}),c.jsx("p",{className:"ribbon-dropdown-text",children:j}),c.jsx("button",{className:"ribbon-dropdown-button",onClick:()=>{p(!1),t(!0),s(""),u(!1),m("")},disabled:i,children:i?c.jsxs(c.Fragment,{children:[c.jsx(hr,{size:14,className:"animate-spin mr-2"}),"Enviando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(gr,{size:14,className:"mr-2"}),"Enviar comentario"]})})]})]})})]}),c.jsx(Hf,{isOpen:e,onClose:w,title:"Envíanos tu opinión",size:"md",children:c.jsx("div",{className:"prose prose-lg max-w-none",children:l?c.jsxs("div",{className:"text-center py-6",children:[c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 mx-auto text-green-500 mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}
200),c.jsx("h4",{className:"text-xl font-bold text-gray-800 mb-2",children:"¡Gracias por tu comentario!"}),c.jsx("p",{className:"text-gray-600",children:"Tu opinión es muy importante para nosotros y nos ayuda a mejorar."}),c.jsx("p",{className:"text-gray-500 text-sm mt-2",children:"Este mensaje se cerrará automáticamente en unos segundos."})]}):c.jsxs("form",{onSubmit:async e=>{if(e.preventDefault(),!a.trim()||a.trim().length<10)m("Por favor ingresa un comentario de al menos 10 caracteres");else if(a.trim().length>2e3)m("El comentario no puede exceder los 2000 caracteres");else{o(!0),m("");try{const e=await Pg.sendFeedback({message:a.trim(),targetEmail:x.defaultEmail});e.success?(u(!0),s(""),setTimeout((()=>{w(),u(!1)}),3e3)):m(e.message||"Error al enviar el comentario")}catch(t){m("Ocurrió un error al enviar tu comentario. Por favor intenta nuevamente.")}finally{o(!1)}}},className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"text-xl font-bold text-center mb-5",children:"¡Trabajamos por ti!"}),c.jsx("p",{className:"text-gray-700 text-sm sm:text-base text-center",children:"Trabajamos para mejorar tu experiencia digital con los servicios y trámites de Bogotá. Cuéntanos qué piensas y ayúdanos a seguir mejorando."})]}),c.jsxs("div",{className:"mt-4",children:[c.jsx("label",{htmlFor:"feedback",className:"block text-sm font-medium text-gray-700 mb-1",children:"Tu comentario"}),c.jsx("textarea",{id:"feedback",name:"feedback",rows:5,className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500",placeholder:"Cuéntanos qué podemos mejorar...",value:a,onChange:e=>{s(e.target.value),d&&m("")},disabled:i,maxLength:2e3}),c.jsxs("div",{className:"flex justify-between items-center mt-1",children:[c.jsx("div",{children:d&&c.jsx("p",{className:"text-sm text-red-600",children:d})}),c.jsxs("p",{className:"text-xs text-gray-500",children:[a.length,"/2000 caracteres"]})]})]}),c.jsxs("div",{className:"flex justify-end",children:[c.jsx("button",{type:"button",className:"px-4 py-2 mr-3 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none disabled:opacity-50",onClick:w,disabled:i,children:"Cancelar"}),c.jsx("button",{type:"submit",className:"inline-flex justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-govco-primary hover:bg-govco-danger focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-govco-primary disabled:opacity-70 disabled:cursor-not-allowed",disabled:i||a.trim().length<10,children:i?c.jsxs(c.Fragment,{children:[c.jsx(hr,{size:16,className:"mr-2 animate-spin"}),"Enviando..."]}):"Enviar comentario"})]})]})})})]})};function Og(){const e=wt(),[t,n]=f.useState(!1);f.useEffect((()=>{const e=()=>{n(window.innerWidth<720)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const r=e.pathname.startsWith("/admin"),a="/geovisor"===e.pathname;return r||a&&t?null:c.jsxs(c.Fragment,{children:[c.jsx(Lg,{}),c.jsx(Mg,{})]})}function Dg({children:e}){const{initializeAuth:t}=em();return f.useEffect((()=>{t()}),[]),c.jsx(c.Fragment,{children:e})}function Ig(){return c.jsx("div",{className:"flex items-center justify-center h-screen",children:c.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500"})})}function zg(){const e=om;return c.jsx(cn,{basename:e,children:c.jsxs(Dg,{children:[c.jsx(Og,{}),c.jsx(f.Suspense,{fallback:c.jsx(Ig,{}),children:c.jsxs(Ut,{children:[c.jsx(It,{path:"/",element:c.jsx(Dt,{to:xn.HOME.path,replace:!0})}),Dn.map((e=>c.jsx(It,{path:e.path,element:e.element},e.path))),Rg.map((e=>c.jsx(It,{path:e.path,element:e.element},e.path)))]})})]})})}const Ug=/(https?:\/\/[^\s)\]}'"']+)/g,Fg=({children:e})=>{const t=f.useRef(null);return f.useEffect((()=>{if(!t.current)return;const e=t=>
200{if(t.nodeType===Node.TEXT_NODE){const e=t.textContent||"";if(Ug.test(e)){const n=document.createDocumentFragment();let r,a=0;for(Ug.lastIndex=0;null!==(r=Ug.exec(e));){const t=r[0],s=r.index;s>a&&n.appendChild(document.createTextNode(e.substring(a,s)));const i=t,o=t,l=document.createElement("a");l.href=i,l.textContent=o,l.target="_blank",l.rel="noopener noreferrer",l.className="text-blue-600 hover:text-blue-800 underline",n.appendChild(l),a=s+t.length}a<e.length&&n.appendChild(document.createTextNode(e.substring(a))),n.childNodes.length>0&&t.parentNode&&t.parentNode.replaceChild(n,t)}}else t.nodeType!==Node.ELEMENT_NODE||"A"===t.tagName||"SCRIPT"===t.tagName||"STYLE"===t.tagName||"TEXTAREA"===t.tagName||"INPUT"===t.tagName||t.closest("code")||Array.from(t.childNodes).forEach(e)};Array.from(t.current.childNodes).forEach(e);const n=new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&t.addedNodes.forEach(e)}))}));return n.observe(t.current,{childList:!0,subtree:!0}),()=>{n.disconnect()}}),[]),c.jsx("div",{ref:t,children:e})};function Vg(e){if(!(this instanceof Vg))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if("string"!=typeof e&&!Bg(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(Bg(e)){const t="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(const n of t)if(!e[n])throw new Error(`The configuration object is missing the required '${n}' property.`)}var t,n,r=this,a=[],s={enable:!0,callbackList:[],interval:5};r.didInitialize=!1;var i=!0,o=E(console.info),l=E(console.warn);function c(e){return function(e,t){for(var n=function(e){if("undefined"==typeof crypto||void 0===crypto.getRandomValues)throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(e))}(e),r=new Array(e),a=0;a<e;a++)r[a]=t.charCodeAt(n[a]%t.length);return String.fromCharCode.apply(null,r)}(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}async function u(e,t){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return function(e){const t=String.fromCodePoint(...e);return btoa(t)}(new Uint8Array(await async function(e){const t=(new TextEncoder).encode(e);if("undefined"==typeof crypto||void 0===crypto.subtle)throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",t)}(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function d(){return void 0!==r.authServerUrl?"/"==r.authServerUrl.charAt(r.authServerUrl.length-1)?r.authServerUrl+"realms/"+encodeURIComponent(r.realm):r.authServerUrl+"/realms/"+encodeURIComponent(r.realm):void 0}function m(e,t){var n=e.code,a=e.error,s=e.prompt,l=(new Date).getTime();if(e.kc_action_status&&r.onActionUpdate&&r.onActionUpdate(e.kc_action_status,e.kc_action),a)if("none"!=s)if(e.error_description&&"authentication_expired"===e.error_description)r.login(e.loginOptions);else{var c={error:a,error_description:e.error_description};r.onAuthError&&r.onAuthError(c),t&&t.setError(c)}else t&&t.setSuccess();else if("standard"!=r.flow&&(e.access_token||e.id_token)&&h(e.access_token,null,e.id_token,!0),"implicit"!=r.flow&&n){var u="code="+n+"&grant_type=authorization_code",d=r.endpoints.token(),m=new XMLHttpRequest;m.open("POST",d,!0),m.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u+="&client_id="+encodeURIComponent(r.clientId),u+="&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(u+="&code_verifier="+e.pkceCodeVerifier),m.withCredentials=!0,m.onreadystatechange=function(){if(4==m.readyState)if(200==m.status){var e=JSON.parse(m.responseText);h(e.access_token,e.refresh_token,e.id_token,"standard"===r.flow),b()}else r.onAuthError&&r.onAuthError(),t&&t.setError()},m.send(u)}function h(n,a,s,c){f(n,a,s,l=(l+(new Date).getTime())/2),i&&r.idTokenParsed&&r.idTokenParsed.nonce!=e.storedNonce?(o("[KEYCLOAK] Invalid nonce, clearing token"),r.clearToken(),t&&t.setError()):c&&(r.onAuthSuccess&&r.onAuthSuccess(),t&&t.setSuccess())}}function h(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function f(e,t,n,a){if(r.tokenTimeoutHandle&&(clearTimeout(r.tokenTimeoutHandle),r.tokenTimeoutHandle=null),t?(r.refreshToken=t,r.refreshTokenParsed=$g(t)):(delete r.refreshToken,delete r.refreshTokenParsed),n?(r.idToken=n,r.idTokenParsed=$g(n)):(delete r.idToken,delete r.idTokenParsed),e){if(r.token=e,r.tokenParsed=$g(e),r.sessionId=r.tokenParsed.sid,r.authenticated=!0,r.subject=r.tokenParsed.sub,r.realmAcce
200ss=r.tokenParsed.realm_access,r.resourceAccess=r.tokenParsed.resource_access,a&&(r.timeSkew=Math.floor(a/1e3)-r.tokenParsed.iat),null!=r.timeSkew&&(o("[KEYCLOAK] Estimated time difference between browser and server is "+r.timeSkew+" seconds"),r.onTokenExpired)){var s=1e3*(r.tokenParsed.exp-(new Date).getTime()/1e3+r.timeSkew);o("[KEYCLOAK] Token expires in "+Math.round(s/1e3)+" s"),s<=0?r.onTokenExpired():r.tokenTimeoutHandle=setTimeout(r.onTokenExpired,s)}}else delete r.token,delete r.tokenParsed,delete r.subject,delete r.realmAccess,delete r.resourceAccess,r.authenticated=!1}function p(){if("undefined"==typeof crypto||void 0===crypto.randomUUID)throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function g(e){var t=function(e){var t;switch(r.flow){case"standard":t=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"]}t.push("error"),t.push("error_description"),t.push("error_uri");var n,a,s=e.indexOf("?"),i=e.indexOf("#");"query"===r.responseMode&&-1!==s?(n=e.substring(0,s),""!==(a=y(e.substring(s+1,-1!==i?i:e.length),t)).paramsString&&(n+="?"+a.paramsString),-1!==i&&(n+=e.substring(i))):"fragment"===r.responseMode&&-1!==i&&(n=e.substring(0,i),""!==(a=y(e.substring(i+1),t)).paramsString&&(n+="#"+a.paramsString));if(a&&a.oauthParams)if("standard"===r.flow||"hybrid"===r.flow){if((a.oauthParams.code||a.oauthParams.error)&&a.oauthParams.state)return a.oauthParams.newUrl=n,a.oauthParams}else if("implicit"===r.flow&&(a.oauthParams.access_token||a.oauthParams.error)&&a.oauthParams.state)return a.oauthParams.newUrl=n,a.oauthParams}(e);if(t){var a=n.get(t.state);return a&&(t.valid=!0,t.redirectUri=a.redirectUri,t.storedNonce=a.nonce,t.prompt=a.prompt,t.pkceCodeVerifier=a.pkceCodeVerifier,t.loginOptions=a.loginOptions),t}}function y(e,t){for(var n=e.split("&"),r={paramsString:"",oauthParams:{}},a=0;a<n.length;a++){var s=n[a].indexOf("="),i=n[a].slice(0,s);-1!==t.indexOf(i)?r.oauthParams[i]=n[a].slice(s+1):(""!==r.paramsString&&(r.paramsString+="&"),r.paramsString+=n[a])}return r}function v(){var e={setSuccess:function(t){e.resolve(t)},setError:function(t){e.reject(t)}};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}function x(){var e=v();if(!s.enable)return e.setSuccess(),e.promise;if(s.iframe)return e.setSuccess(),e.promise;var t=document.createElement("iframe");s.iframe=t,t.onload=function(){var t=r.endpoints.authorize();"/"===t.charAt(0)?s.iframeOrigin=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):s.iframeOrigin=t.substring(0,t.indexOf("/",8)),e.setSuccess()};var n=r.endpoints.checkSessionIframe();t.setAttribute("src",n),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t);return window.addEventListener("message",(function(e){if(e.origin===s.iframeOrigin&&s.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&r.clearToken();for(var t=s.callbackList.splice(0,s.callbackList.length),n=t.length-1;n>=0;--n){var a=t[n];"error"==e.data?a.setError():a.setSuccess("unchanged"==e.data)}}}),!1),e.promise}function b(){s.enable&&r.token&&setTimeout((function(){w().then((function(e){e&&b()}))}),1e3*s.interval)}function w(){var e=v();if(s.iframe&&s.iframeOrigin){var t=r.clientId+" "+(r.sessionId?r.sessionId:"");s.callbackList.push(e);var n=s.iframeOrigin;1==s.callbackList.length&&s.iframe.contentWindow.postMessage(t,n)}else e.setSuccess();return e.promise}function j(e){if(!e||"default"==e)return{login:async function(e){return window.location.assign(await r.createLoginUrl(e)),v().promise},logout:async function(e){if("GET"===((null==e?void 0:e.logoutMethod)??r.logoutMethod))return void window.location.replace(r.createLogoutUrl(e));const n=document.createElement("form");n.setAttribute("method","POST"),n.setAttribute("action",r.createLogoutUrl(e)),n.style.display="none";const a={id_token_hint:r.idToken,client_id:r.clientId,post_logout_redirect_uri:t.redirectUri(e,!1)};for(const[t,r]of Object.entries(a)){const e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name",t),e.setAttribute("value",r),n.appendChild(e)}document.body.appendChild(n),n.submit()},register:async function(e){return window.location.assign(await r.createRegisterUrl(e)),v().promise},accountManagement:function(){var e=r.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";return window.location.href=e,v().promise},redirectUri:function(e,t){return e&&e.redirectUri?e.redirectUri:r.redirectUri?r.redirectUri:location.href}};if("cordova"==e){s.enable=!1;var n=function(e,t,n){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,n):window.open(e,t,n)},a=function(e){var t=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(t,n){return t[n]=e.cordovaOptions[n],t}),{}):{}}(e);return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),function(e){return Object.keys(e).reduce((function(t,n){return t.push(n+"="+e[n]),t}),[]).join(",")}(t)},i=function(){return r.redirectUri||"http://localhost"};return{login:async function(e){var t=v(),s=a(e),o=await r.createLoginUrl(e),l=n(o,"_blank",s),c=!1,u=!1,d=function(){u=!0,l.close()};return l.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(m(g(e.url),t),d(),c=!0)})),l.addEventListener("loaderror",(function(e){c||(0==e.url.indexOf(i())?(m(g(e.url),t),d(),c=!0):(t.setError(),d()))})),l.addEventListener("exit",(function(e){u||t.setError({reason:"closed_by_user"})})),t.promise},logout:function(e){var t,a=v(),s=r.createLogoutUrl(e),o=n(s,"_blank","location=no,hidden=yes,clearcache=yes");return o.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&o.close()})),o.addEventListener("loaderror",(function(e){0==e.url.indexOf(i())||(t=!0),o.close()})),o.addEventListener("exit",(function(e){t?a.setError():(r.clearToken(),a.setSuccess())})),a.promise},register:async function(e){var t=v(),s=await r.createRegisterUrl(),o=a(e),l=n(s,"_blank",o);return l.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(l.close(),m(g(e.url),t))})),t.promise},accountManagement:function(){var e=r.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";var t=n(e,"_blank","location=no");t.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&t.close()}))},redirectUri:function(e){return i()}}}if("cordova-native"==e)return s.enable=!1,{login:async function(e){var t=v(),n=await r.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),m(g(e.url),t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},logout:function(e){var t=v(),n=r.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),r.clearToken(),t.setSuccess()})),window.cordova.plugins.browsertab.openUrl(n),t.promise},register:async function(e){var t=v(),n=await r.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),m(g(e.url),t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},accountManagement:function(){var e=r.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:r.redirectUri?r.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}globalThis.isSecureContext||l("[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\nContinuing to run your application insecurely will lead to unexpected behavior and breakage.\n\nFor more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"),r.init=function(a={}){if(r.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");r.didInitialize=!0,r.authenticated=!1,n=function(){try{return new k}catch(e){}return new S}();if(t=["default","cordova","cordova-native"].indexOf(a.adapter)>-1?j(a.adapter):"object"==typeof a.adapter?a.adapter:window.Cordova||window.cordova?j("cordova"):j(),void 0!==a.useNonce&&(i=a.useNonce),void 0!==a.checkLoginIframe&&(s.enable=a.checkLoginIframe),a.checkLoginIframeInterval&&(s.interval=a.checkLoginIframeInterval),"login-required"===a.onLoad&&(r.loginRequired=!0),a.responseMode){if("query"!==a.responseMode&&"fragment"!==a.responseMode)throw"Invalid value for responseMode";r.responseMode=a.responseMode}if(a.flow){switch(a.flow){case"standard":r.responseType="code";break;case"implicit":r.responseType="id_token token";break;case"hybrid":r.responseType="code id_token token";break;default:throw"Invalid value for flow"}r.flow=a.flow}if(null!=a.timeSkew&&(r.timeSkew=a.timeSkew),a.redirectUri&&(r.redirectUri=a.redirectUri),a.silentCheckSsoRedirectUri&&(r.silentCheckSsoRedirectUri=a.silentCheckSsoRedirectUri),"boolean"==typeof a.silentCheckSsoFallback?r.silentCheckSsoFallback=a.silentCheckSsoFallback:r.silentCheckSsoFallback=!0,void 0!==a.pkceMethod){if("S256"!==a.pkceMethod&&!1!==a.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${a.pkceMethod}.`);r.pkceMethod=a.pkceMethod}else r.pkceMethod="S256";"boolean"==typeof a.enableLogging?r.enableLogging=a.enableLogging:r.enableLogging=!1,"POST"===a.logoutMethod?r.logoutMethod="POST":r.logoutMethod="GET","string"==typeof a.scope&&(r.scope=a.scope),"string"==typeof a.acrValues&&(r.acrValues=a.acrValues),"number"==typeof a.messageReceiveTimeout&&a.messageReceiveTimeout>0?r.messageReceiveTimeout=a.messageReceiveTimeout:r.messageReceiveTimeout=1e4,r.responseMode||(r.responseMode="fragment"),r.responseType||(r.responseType="code",r.flow="standard");var o=v(),c=v();c.promise.then((function(){r.onReady&&r.onReady(r.authenticated),o.setSuccess(r.authenticated)})).catch((function(e){o.setError(e)}));var u=function(){var t,n=v();"string"==typeof e&&(t=e);function a(e){r.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:{authorize:function(){return d()+"/protocol/openid-connect/auth"},token:function(){return d()+"/protocol/openid-connect/token"},logout:function(){return d()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return d()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return d()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return d()+"/protocol/openid-connect/registrations"},userinfo:function(){return d()+"/protocol/openid-connect/userinfo"}}}if(t){(i=new XMLHttpRequest).open("GET",t,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status||h(i)){var e=JSON.parse(i.responseText);r.authServerUrl=e["auth-server-url"],r.realm=e.realm,r.clientId=e.resource,a(null),n.setSuccess()}else n.setError()},i.send()}else{r.clientId=e.clientId;var s,i,o=e.oidcProvider;if(o)if("string"==typeof o)s="/"==o.charAt(o.length-1)?o+".well-known/openid-configuration":o+"/.well-known/openid-configuration",(i=new XMLHttpRequest).open("GET",s,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||h(i)?(a(JSON.parse(i.responseText)),n.setSuccess()):n.setError())},i.send();else a(o),n.setSuccess();else r.authServerUrl=e.url,r.realm=e.realm,a(null),n.setSuccess()}return n.promise}();function p(){var e=function(e){e||(n.prompt="none"),a.locale&&(n.locale=a.locale),r.login(n).then((function(){c.setSuccess()})).catch((function(e){c.setError(e)}))},t=async function(){var e=document.createElement("iframe"),t=await r.createLoginUrl({prompt:"none",redirectUri:r.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var n=function(t){t.origin===window.location.origin&&e.contentWindow===t.source&&(m(g(t.data),c
200),document.body.removeChild(e),window.removeEventListener("message",n))};window.addEventListener("message",n)},n={};switch(a.onLoad){case"check-sso":s.enable?x().then((function(){w().then((function(n){n?c.setSuccess():r.silentCheckSsoRedirectUri?t():e(!1)})).catch((function(e){c.setError(e)}))})):r.silentCheckSsoRedirectUri?t():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function y(){var e=g(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return x().then((function(){m(e,c)})).catch((function(e){c.setError(e)}));a.token&&a.refreshToken?(f(a.token,a.refreshToken,a.idToken),s.enable?x().then((function(){w().then((function(e){e?(r.onAuthSuccess&&r.onAuthSuccess(),c.setSuccess(),b()):c.setSuccess()})).catch((function(e){c.setError(e)}))})):r.updateToken(-1).then((function(){r.onAuthSuccess&&r.onAuthSuccess(),c.setSuccess()})).catch((function(e){r.onAuthError&&r.onAuthError(),a.onLoad?p():c.setError(e)}))):a.onLoad?p():c.setSuccess()}return u.then((function(){(function(){var e=v();if((s.enable||r.silentCheckSsoRedirectUri)&&"function"==typeof r.endpoints.thirdPartyCookiesIframe){var t=document.createElement("iframe");t.setAttribute("src",r.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var n=function(a){t.contentWindow===a.source&&("supported"!==a.data&&"unsupported"!==a.data||("unsupported"===a.data&&(l("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"),s.enable=!1,r.silentCheckSsoFallback&&(r.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",n),e.setSuccess()))};window.addEventListener("message",n,!1)}else e.setSuccess();return function(e,t,n){var r=null,a=new Promise((function(e,a){r=setTimeout((function(){a({error:n})}),t)}));return Promise.race([e,a]).finally((function(){clearTimeout(r)}))}(e.promise,r.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")})().then(y).catch((function(e){o.setError(e)}))})),u.catch((function(e){o.setError(e)})),o.promise},r.login=function(e){return t.login(e)},r.createLoginUrl=async function(e){var a,s=p(),o=p(),l=t.redirectUri(e),d={state:s,nonce:o,redirectUri:encodeURIComponent(l),loginOptions:e};e&&e.prompt&&(d.prompt=e.prompt),a=e&&"register"==e.action?r.endpoints.register():r.endpoints.authorize();var m=e&&e.scope||r.scope;m?-1===m.indexOf("openid")&&(m="openid "+m):m="openid";var h,f,g=a+"?client_id="+encodeURIComponent(r.clientId)+"&redirect_uri="+encodeURIComponent(l)+"&state="+encodeURIComponent(s)+"&response_mode="+encodeURIComponent(r.responseMode)+"&response_type="+encodeURIComponent(r.responseType)+"&scope="+encodeURIComponent(m);if(i&&(g=g+"&nonce="+encodeURIComponent(o)),e&&e.prompt&&(g+="&prompt="+encodeURIComponent(e.prompt)),e&&"number"==typeof e.maxAge&&(g+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(g+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(g+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(g+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(g+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr){var y=(h=e.acr,f={id_token:{acr:h}},JSON.stringify(f));g+="&claims="+encodeURIComponent(y)}if((e&&e.acrValues||r.acrValues)&&(g+="&acr_values="+encodeURIComponent(e.acrValues||r.acrValues)),r.pkceMethod)try{const e=c(96),t=await u(r.pkceMethod,e);d.pkceCodeVerifier=e,g+="&code_challenge="+t,g+="&code_challenge_method="+r.pkceMethod}catch(v){throw new Error("Failed to generate PKCE challenge.",{cause:v})}return n.add(d),g},r.logout=function(e){return t.logout(e)},r.createLogoutUrl=function(e){if("POST"===((null==e?void 0:e.logoutMethod)??r.logoutMethod))return r.endpoints.logout();var n=r.endpoints.logout()+"?client_id="+encodeURIComponent(r.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(t.redirectUri(e,!1));return r.idToken&&(n+="&id_token_hint="+encodeURIComponent(r.idToken)),n},r.register=function(e){return t.register(e)},r.createRegisterUrl=async function(e){return e||(e={}),e.action="register",await r.createLoginUrl(e)},r.createAccountUrl=function(e){var n=d(),a=void 0;return void 0!==n&&(a=n+"/account?referrer="+encodeURIComponent(r.clientId)+"&referrer_uri="+encodeURIComponent(t.redirectUri(e))),a},r.accountManagement=function(){return t.accountManagement()}
200,r.hasRealmRole=function(e){var t=r.realmAccess;return!!t&&t.roles.indexOf(e)>=0},r.hasResourceRole=function(e,t){if(!r.resourceAccess)return!1;var n=r.resourceAccess[t||r.clientId];return!!n&&n.roles.indexOf(e)>=0},r.loadUserProfile=function(){var e=d()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var n=v();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.profile=JSON.parse(t.responseText),n.setSuccess(r.profile)):n.setError())},t.send(),n.promise},r.loadUserInfo=function(){var e=r.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var n=v();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.userInfo=JSON.parse(t.responseText),n.setSuccess(r.userInfo)):n.setError())},t.send(),n.promise},r.isTokenExpired=function(e){if(!r.tokenParsed||!r.refreshToken&&"implicit"!=r.flow)throw"Not authenticated";if(null==r.timeSkew)return o("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=r.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+r.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";t-=e}return t<0},r.updateToken=function(e){var t=v();if(!r.refreshToken)return t.setError(),t.promise;e=e||5;var n=function(){var n=!1;if(-1==e?(n=!0,o("[KEYCLOAK] Refreshing token: forced refresh")):r.tokenParsed&&!r.isTokenExpired(e)||(n=!0,o("[KEYCLOAK] Refreshing token: token expired")),n){var s="grant_type=refresh_token&refresh_token="+r.refreshToken,i=r.endpoints.token();if(a.push(t),1==a.length){var c=new XMLHttpRequest;c.open("POST",i,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.withCredentials=!0,s+="&client_id="+encodeURIComponent(r.clientId);var u=(new Date).getTime();c.onreadystatechange=function(){if(4==c.readyState)if(200==c.status){o("[KEYCLOAK] Token refreshed"),u=(u+(new Date).getTime())/2;var e=JSON.parse(c.responseText);f(e.access_token,e.refresh_token,e.id_token,u),r.onAuthRefreshSuccess&&r.onAuthRefreshSuccess();for(var t=a.pop();null!=t;t=a.pop())t.setSuccess(!0)}else{l("[KEYCLOAK] Failed to refresh token"),400==c.status&&r.clearToken(),r.onAuthRefreshError&&r.onAuthRefreshError();for(t=a.pop();null!=t;t=a.pop())t.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")}},c.send(s)}}else t.setSuccess(!1)};s.enable?w().then((function(){n()})).catch((function(e){t.setError(e)})):n();return t.promise},r.clearToken=function(){r.token&&(f(null,null,null),r.onAuthLogout&&r.onAuthLogout(),r.loginRequired&&r.login())};const N="kc-callback-";var k=function(){if(!(this instanceof k))return new k;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");function e(){const e=Date.now();for(const[r,a]of t()){const t=n(a);(null===t||t<e)&&localStorage.removeItem(r)}}function t(){return Object.entries(localStorage).filter((([e])=>e.startsWith(N)))}function n(e){let t;try{t=JSON.parse(e)}catch(n){return null}return Bg(t)&&"expires"in t&&"number"==typeof t.expires?t.expires:null}this.get=function(t){if(t){var n=N+t,r=localStorage.getItem(n);return r&&(localStorage.removeItem(n),r=JSON.parse(r)),e(),r}},this.add=function(n){e();const r=N+n.state,a=JSON.stringify({...n,expires:Date.now()+36e5});try{localStorage.setItem(r,a)}catch(s){!function(){for(const[e]of t())localStorage.removeItem(e)}(),localStorage.setItem(r,a)}}},S=function(){if(!(this instanceof S))return new S;var e=this;e.get=function(e){if(e){var a=n(N+e);return r(N+e,"",t(-100)),a?JSON.parse(a):void 0}},e.add=function(e){r(N+e.state,JSON.stringify(e),t(60))},e.removeItem=function(e){r(e,"",t(-100))};var t=function(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t},n=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var a=n[r];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return""},r=function(e,t,n){var r=e+"="+t+"; expires="+n.toUTCString()+"; ";document.cookie=r}};function E(e){return function(){r.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}function $g(e){const[t,n]=e.split(".");if("string"!=typeof n)throw new Error("Unable to decode token, payload not found.");let r;try{r=function(e){let t=e.replaceAll("-","+").replaceAll("_","/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Input is not of the correct length.")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>
200{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}(n)}catch(a){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:a})}try{return JSON.parse(r)}catch(a){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:a})}}function Bg(e){return"object"==typeof e&&null!==e}const qg={url:"https://autenticador.bogota.gov.co",realm:"portal-integrador-distrital",clientId:"portal-client"},Hg=class e{constructor(){t(this,"keycloak"),t(this,"_initialized",!1),t(this,"_initializing",!1),t(this,"initPromise",null),this.keycloak=new Vg(qg)}static getInstance(){return e.instance||(e.instance=new e),e.instance}initKeycloak(){return this._initialized?Promise.resolve(!!this.keycloak.authenticated):(this._initializing&&this.initPromise||(this._initializing=!0,this.initPromise=new Promise(((e,t)=>{try{this.keycloak.init({onLoad:"check-sso",silentCheckSsoRedirectUri:window.location.origin+"/silent-check-sso.html",checkLoginIframe:!1,pkceMethod:"S256",enableLogging:!0}).then((t=>{this._initialized=!0,this._initializing=!1,this.keycloak.onAuthSuccess=()=>{},this.keycloak.onAuthError=e=>{},this.keycloak.onAuthRefreshSuccess=()=>{},this.keycloak.onAuthRefreshError=()=>{},this.keycloak.onAuthLogout=()=>{},this.keycloak.onTokenExpired=()=>{this.keycloak.updateToken(30)},e(t)})).catch((e=>{this._initializing=!1,t(e)}))}catch(n){this._initializing=!1,t(n)}}))),this.initPromise)}login(e){const t={redirectUri:window.location.origin+"/servicios/callback"};e&&(t.idpHint=e),this.keycloak.login(t)}logout(){const e=window.location.origin+"/servicios/";this.keycloak.logout({redirectUri:e})}isLoggedIn(){return!!this.keycloak.authenticated}getProfile(){return this.keycloak.loadUserProfile()}getToken(){return this.keycloak.token}updateToken(e=5){return this.keycloak.updateToken(e)}getRoles(){var e;return(null==(e=this.keycloak.realmAccess)?void 0:e.roles)||[]}hasRole(e){return this.keycloak.hasRealmRole(e)}isInitialized(){return this._initialized}decodeToken(){if(!this.keycloak.token)return null;try{const e=this.keycloak.token,t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)}catch(e){return null}}getUserAttributes(){const e=this.decodeToken();return e?{nombres:e.nombres||"",apellidos:e.apellidos||"",tipoIdentificacion:e.tipoIdentificacion||"",numeroIdentificacion:e.numeroIdentificacion||"",direccion:e.direccion||"",celular:e.celular||"",localidad:e.localidad||""}:{}}};t(Hg,"instance");const Wg=Hg.getInstance(),Gg={initKeycloak:()=>Wg.initKeycloak(),login:e=>Wg.login(e),logout:()=>Wg.logout(),isLoggedIn:()=>Wg.isLoggedIn(),getProfile:()=>Wg.getProfile(),getToken:()=>Wg.getToken(),updateToken:(e=5)=>Wg.updateToken(e),getRoles:()=>Wg.getRoles(),hasRole:e=>Wg.hasRole(e),isInitialized:()=>Wg.isInitialized(),decodeToken:()=>Wg.decodeToken(),getUserAttributes:()=>Wg.getUserAttributes(),get keycloak(){return Wg.isInitialized()?Wg.keycloak:null}},Yg=f.createContext({initialized:!1,authenticated:!1,login:()=>{},logout:()=>{},profile:null,hasRole:()=>!1,refreshProfile:async()=>{},initializationError:null}),Kg=()=>f.useContext(Yg),Qg=({children:e})=>{const[t,n]=f.useState(!1),[r,a]=f.useState(!1),[s,i]=f.useState(null),[o,l]=f.useState(null),u=f.useRef(!1),d=async()=>{if(Gg.isLoggedIn())try{const e=await Gg.getProfile();i({id:e.id,email:e.email||"",username:e.username||"",nombres:e.attributes.nombres[0]||"",apellidos:e.attributes.apellidos[0]||"",tipoIdentificacion:e.attributes.tipoIdentificacion[0]||"",numeroIdentificacion:e.attributes.numeroIdentificacion[0]||"",direccion:e.attributes.direccion[0]||"",celular:e.attributes.celular[0]||"",localidad:e.attributes.localidad[0]||"",segundo_nombre:e.attributes.segundo_nombre?e.attributes.segundo_nombre[0]:"",segundo_apellido:e.attributes.segundo_apellido?e.attributes.segundo_apellido[0]:""})}catch(e){i(null)}else i(null)};f.useEffect((()=>{if(u.current)return;u.current=!0;(async()=>{try{const e=await Gg.initKeycloak();a(e),e&&await d()}catch(e){l(e.message)}finally{n(!0)}})()}),[]),f.useEffect((()=>
200{if(!t)return;const e=setInterval((()=>{Gg.isLoggedIn()&&Gg.updateToken(70).catch((e=>{}))}),6e4);return()=>{clearInterval(e)}}),[t]);return c.jsx(Yg.Provider,{value:{initialized:t,authenticated:r,login:e=>{Gg.login(e)},logout:()=>{Gg.logout()},profile:s,hasRole:e=>Gg.hasRole(e),refreshProfile:async()=>{await d()},initializationError:o},children:e})},Xg=({alert:e,onClose:t})=>{const[n,r]=f.useState(!1),[a,s]=f.useState(!1);if(f.useEffect((()=>{e&&setTimeout((()=>s(!0)),50)}),[e]),!e)return null;const i=()=>{s(!1),setTimeout(t,200)};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"fixed inset-0 z-[9998] transition-opacity duration-300 backdrop-blur-sm "+(a?"opacity-100":"opacity-0"),style:{backgroundColor:"rgba(0, 0, 0, 0.6)"},onClick:i}),c.jsx("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-[9999] w-[95%] sm:w-[90%] md:w-[80%] lg:w-[70%] xl:max-w-4xl transition-all duration-300 "+(a?"opacity-100 scale-100":"opacity-0 scale-95"),style:{maxHeight:"95vh"},children:c.jsxs("div",{className:"bg-white rounded-xl sm:rounded-2xl shadow-2xl overflow-hidden relative",children:[c.jsx("button",{onClick:i,className:"absolute top-2 right-2 sm:top-4 sm:right-4 z-10 p-1.5 sm:p-2 rounded-full bg-black/50 hover:bg-black/70 transition-all shadow-lg","aria-label":"Cerrar",children:c.jsx(Fr,{className:"w-5 h-5 sm:w-6 sm:h-6 text-white"})}),c.jsxs("div",{className:"p-2 sm:p-4",children:[e.imageUrl&&c.jsx("div",{className:"mb-3 sm:mb-4",children:n?c.jsxs("div",{className:"bg-blue-50 border-2 border-blue-200 rounded-lg p-3 sm:p-4 text-center",children:[c.jsx("p",{className:"text-gray-700 text-xs sm:text-sm mb-2",children:c.jsx("strong",{children:"No se pudo cargar la imagen"})}),c.jsx("p",{className:"text-gray-600 text-xs mb-2 sm:mb-3",children:"Usa una URL directa de imagen"}),c.jsx("a",{href:e.imageUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-1 sm:mt-2 text-blue-600 hover:text-blue-800 text-xs sm:text-sm underline",children:"Ver enlace original"})]}):c.jsx("img",{src:(e=>{if(!e)return"";const t=e.match(/imgur\.com\/(?:a\/|gallery\/)?([a-zA-Z0-9]+)/);if(t&&!e.includes("i.imgur.com")){return`https://i.imgur.com/${t[1]}.jpg`}const n=e.match(/drive\.google\.com\/file\/d\/([^\/\?]+)/);return n?`https://drive.google.com/uc?export=view&id=${n[1]}`:e.includes("dropbox.com")?e.includes("?")?e.replace("dl=0","dl=1"):e+"?raw=1":e.includes("1drv.ms")||e.includes("onedrive.live.com")?e.replace("embed","download"):e})(e.imageUrl),alt:e.title,className:"w-full h-auto rounded-lg mx-auto",style:{maxHeight:"75vh",objectFit:"contain",display:"block"},onError:()=>r(!0)})}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-3 justify-center",children:[c.jsx("button",{onClick:()=>{const t=(new Date).toDateString();localStorage.setItem(`alert-hidden-${e.id}`,t),i()},className:"px-4 py-2 sm:px-5 sm:py-2.5 text-sm sm:text-base text-gray-700 font-medium rounded-lg bg-white border-2 border-gray-300 hover:bg-gray-50 hover:border-gray-400 transition-all shadow-sm hover:shadow",children:"No mostrar hoy"}),c.jsx("button",{onClick:i,className:"px-5 py-2 sm:px-6 sm:py-2.5 text-sm sm:text-base text-white font-semibold rounded-lg transition-all shadow-lg hover:shadow-xl",style:{backgroundColor:"#a80521"},children:"Cerrar"})]})]})]})})]})};function Jg(){const{alert:e,closeModal:t}=(()=>{const[e,t]=f.useState(null),[n,r]=f.useState(!1);return f.useEffect((()=>{(async()=>{try{const e=await xg.getActiveAlert();if(e){const n=(new Date).toDateString();localStorage.getItem(`alert-hidden-${e.id}`)!==n&&(t(e),r(!0))}}catch(e){}})()}),[]),{alert:n?e:null,closeModal:()=>{r(!1)}}})();return c.jsx(Qg,{children:c.jsx(Dg,{children:c.jsx(Fg,{children:c.jsxs("div",{children:[c.jsx(zg,{}),c.jsx(Xg,{alert:e,onClose:t})]})})})})}R.createRoot(document.getElementById("root")).render(c.jsxs(f.StrictMode,{children:[c.jsx(Jg,{}),c.jsx(Re,{position:"top-right",toastOptions:{duration:4e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,style:{background:"#059669"}},error:{duration:5e3,style:{background:"#DC2626"}}}})]}));export{hn as $,im as A,om as B,Xn as C,mm as D,ir as E,cg as F,St as G,bn as H,ur as I,Vn as J,Jn as K,dn as L,lr as M,sr as N,nr as O,ym as P,Zn as Q,xn as R,Pr as S,pm as T,hr as U,br as V,hm as W,Fr as X,dm as Y,lm as Z,ar as _,Sf as a,cr as a0,Dr as a1,Qn as a2,Hf as a3,yr as a4,p as a5,xr as a6,vn as a7,Tr as a8,vr as a9,Wn as aa,Ur as ab,Mr as ac,_r as ad,vm as ae,n as af,gn as ag,Cr as ah,fm as ai,wt as b,Fn as c,Kg as d,Wd as e,em as f,gm as g,or as h,fr as i,c as j,Gg as k,Nr as l,Gn as m,qd as n,pg as o,sm as p,Wo as q,f as r,Yn as s,Kn as t,kt as u,qn as v,$n as w,Kp as x,Gp as y,lg 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.