268 lines
243 KiB
JavaScript
268 lines
243 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function dd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pa={exports:{}},Ll={},La={exports:{}},B={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var wr=Symbol.for("react.element"),fd=Symbol.for("react.portal"),md=Symbol.for("react.fragment"),pd=Symbol.for("react.strict_mode"),hd=Symbol.for("react.profiler"),xd=Symbol.for("react.provider"),gd=Symbol.for("react.context"),yd=Symbol.for("react.forward_ref"),vd=Symbol.for("react.suspense"),wd=Symbol.for("react.memo"),kd=Symbol.for("react.lazy"),yo=Symbol.iterator;function Nd(e){return e===null||typeof e!="object"?null:(e=yo&&e[yo]||e["@@iterator"],typeof e=="function"?e:null)}var za={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Da=Object.assign,Ma={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=Ma,this.updater=n||za}Ln.prototype.isReactComponent={};Ln.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Aa(){}Aa.prototype=Ln.prototype;function Ni(e,t,n){this.props=e,this.context=t,this.refs=Ma,this.updater=n||za}var Si=Ni.prototype=new Aa;Si.constructor=Ni;Da(Si,Ln.prototype);Si.isPureReactComponent=!0;var vo=Array.isArray,Ra=Object.prototype.hasOwnProperty,ji={current:null},Oa={key:!0,ref:!0,__self:!0,__source:!0};function Ia(e,t,n){var r,l={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Ra.call(t,r)&&!Oa.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:wr,type:e,key:s,ref:o,props:l,_owner:ji.current}}function Sd(e,t){return{$$typeof:wr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _i(e){return typeof e=="object"&&e!==null&&e.$$typeof===wr}function jd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wo=/\/+/g;function ts(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jd(""+e.key):t.toString(36)}function Wr(e,t,n,r,l){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case wr:case fd:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+ts(o,0):r,vo(l)?(n="",e!=null&&(n=e.replace(wo,"$&/")+"/"),Wr(l,t,n,"",function(d){return d})):l!=null&&(_i(l)&&(l=Sd(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(wo,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",vo(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+ts(s,a);o+=Wr(s,t,n,u,l)}else if(u=Nd(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+ts(s,a++),o+=Wr(s,t,n,u,l);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Tr(e,t,n){if(e==null)return e;var r=[],l=0;return Wr(e,r,"","",function(s){return t.call(n,s,l++)}),r}function _d(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ee={current:null},Kr={transition:null},bd={ReactCurrentDispatcher:Ee,ReactCurrentBatchConfig:Kr,ReactCurrentOwner:ji};function $a(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Tr,forEach:function(e,t,n){Tr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tr(e,function(){t++}),t},toArray:function(e){return Tr(e,function(t){return t})||[]},only:function(e){if(!_i(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=Ln;B.Fragment=md;B.Profiler=hd;B.PureComponent=Ni;B.StrictMode=pd;B.Suspense=vd;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bd;B.act=$a;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Da({},e.props),l=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=ji.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Ra.call(t,u)&&!Oa.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var d=0;d<u;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:wr,type:e.type,key:l,ref:s,props:r,_owner:o}};B.createContext=function(e){return e={$$typeof:gd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:xd,_context:e},e.Consumer=e};B.createElement=Ia;B.createFactory=function(e){var t=Ia.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:yd,render:e}};B.isValidElement=_i;B.lazy=function(e){return{$$typeof:kd,_payload:{_status:-1,_result:e},_init:_d}};B.memo=function(e,t){return{$$typeof:wd,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=Kr.transition;Kr.transition={};try{e()}finally{Kr.transition=t}};B.unstable_act=$a;B.useCallback=function(e,t){return Ee.current.useCallback(e,t)};B.useContext=function(e){return Ee.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Ee.current.useDeferredValue(e)};B.useEffect=function(e,t){return Ee.current.useEffect(e,t)};B.useId=function(){return Ee.current.useId()};B.useImperativeHandle=function(e,t,n){return Ee.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Ee.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Ee.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Ee.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Ee.current.useReducer(e,t,n)};B.useRef=function(e){return Ee.current.useRef(e)};B.useState=function(e){return Ee.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Ee.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Ee.current.useTransition()};B.version="18.3.1";La.exports=B;var j=La.exports;const Ed=dd(j);/**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Cd=j,Td=Symbol.for("react.element"),Pd=Symbol.for("react.fragment"),Ld=Object.prototype.hasOwnProperty,zd=Cd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dd={key:!0,ref:!0,__self:!0,__source:!0};function Fa(e,t,n){var r,l={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Ld.call(t,r)&&!Dd.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Td,type:e,key:s,ref:o,props:l,_owner:zd.current}}Ll.Fragment=Pd;Ll.jsx=Fa;Ll.jsxs=Fa;Pa.exports=Ll;var i=Pa.exports,Es={},Va={exports:{}},$e={},Ua={exports:{}},Ba={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){function t(T,O){var L=T.length;T.push(O);e:for(;0<L;){var Y=L-1>>>1,le=T[Y];if(0<l(le,O))T[Y]=O,T[L]=le,L=Y;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var O=T[0],L=T.pop();if(L!==O){T[0]=L;e:for(var Y=0,le=T.length,tt=le>>>1;Y<tt;){var xe=2*(Y+1)-1,ge=T[xe],fe=xe+1,ot=T[fe];if(0>l(ge,L))fe<le&&0>l(ot,ge)?(T[Y]=ot,T[fe]=L,Y=fe):(T[Y]=ge,T[xe]=L,Y=xe);else if(fe<le&&0>l(ot,L))T[Y]=ot,T[fe]=L,Y=fe;else break e}}return O}function l(T,O){var L=T.sortIndex-O.sortIndex;return L!==0?L:T.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],d=[],h=1,g=null,x=3,k=!1,y=!1,w=!1,R=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(T){for(var O=n(d);O!==null;){if(O.callback===null)r(d);else if(O.startTime<=T)r(d),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(d)}}function v(T){if(w=!1,m(T),!y)if(n(u)!==null)y=!0,H(S);else{var O=n(d);O!==null&&Se(v,O.startTime-T)}}function S(T,O){y=!1,w&&(w=!1,f(E),E=-1),k=!0;var L=x;try{for(m(O),g=n(u);g!==null&&(!(g.expirationTime>O)||T&&!J());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,x=g.priorityLevel;var le=Y(g.expirationTime<=O);O=e.unstable_now(),typeof le=="function"?g.callback=le:g===n(u)&&r(u),m(O)}else r(u);g=n(u)}if(g!==null)var tt=!0;else{var xe=n(d);xe!==null&&Se(v,xe.startTime-O),tt=!1}return tt}finally{g=null,x=L,k=!1}}var b=!1,N=null,E=-1,U=5,D=-1;function J(){return!(e.unstable_now()-D<U)}function A(){if(N!==null){var T=e.unstable_now();D=T;var O=!0;try{O=N(!0,T)}finally{O?I():(b=!1,N=null)}}else b=!1}var I;if(typeof c=="function")I=function(){c(A)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,W=V.port2;V.port1.onmessage=A,I=function(){W.postMessage(null)}}else I=function(){R(A,0)};function H(T){N=T,b||(b=!0,I())}function Se(T,O){E=R(function(){T(e.unstable_now())},O)}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(T){T.callback=null},e.unstable_continueExecution=function(){y||k||(y=!0,H(S))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(x){case 1:case 2:case 3:var O=3;break;default:O=x}var L=x;x=O;try{return T()}finally{x=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,O){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=x;x=T;try{return O()}finally{x=L}},e.unstable_scheduleCallback=function(T,O,L){var Y=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Y+L:Y):L=Y,T){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=L+le,T={id:h++,callback:O,priorityLevel:T,startTime:L,expirationTime:le,sortIndex:-1},L>Y?(T.sortIndex=L,t(d,T),n(u)===null&&T===n(d)&&(w?(f(E),E=-1):w=!0,Se(v,L-Y))):(T.sortIndex=le,t(u,T),y||k||(y=!0,H(S))),T},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(T){var O=x;return function(){var L=x;x=O;try{return T.apply(this,arguments)}finally{x=L}}}})(Ba);Ua.exports=Ba;var Md=Ua.exports;/**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Ad=j,Ie=Md;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Ha=new Set,tr={};function nn(e,t){jn(e,t),jn(e+"Capture",t)}function jn(e,t){for(tr[e]=t,e=0;e<t.length;e++)Ha.add(t[e])}var mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,Rd=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ko={},No={};function Od(e){return Cs.call(No,e)?!0:Cs.call(ko,e)?!1:Rd.test(e)?No[e]=!0:(ko[e]=!0,!1)}function Id(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $d(e,t,n,r){if(t===null||typeof t>"u"||Id(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,l,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){he[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var bi=/[\-:]([a-z])/g;function Ei(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bi,Ei);he[t]=new Ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bi,Ei);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bi,Ei);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ci(e,t,n,r){var l=he.hasOwnProperty(t)?he[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($d(t,n,l,r)&&(n=null),r||l===null?Od(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gt=Ad.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pr=Symbol.for("react.element"),sn=Symbol.for("react.portal"),on=Symbol.for("react.fragment"),Ti=Symbol.for("react.strict_mode"),Ts=Symbol.for("react.profiler"),Qa=Symbol.for("react.provider"),Wa=Symbol.for("react.context"),Pi=Symbol.for("react.forward_ref"),Ps=Symbol.for("react.suspense"),Ls=Symbol.for("react.suspense_list"),Li=Symbol.for("react.memo"),wt=Symbol.for("react.lazy"),Ka=Symbol.for("react.offscreen"),So=Symbol.iterator;function Mn(e){return e===null||typeof e!="object"?null:(e=So&&e[So]||e["@@iterator"],typeof e=="function"?e:null)}var re=Object.assign,ns;function Un(e){if(ns===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ns=t&&t[1]||""}return`
|
|
`+ns+e}var rs=!1;function ls(e,t){if(!e||rs)return"";rs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
|
|
`),s=r.stack.split(`
|
|
`),o=l.length-1,a=s.length-1;1<=o&&0<=a&&l[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==s[a]){var u=`
|
|
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{rs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function Fd(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=ls(e.type,!1),e;case 11:return e=ls(e.type.render,!1),e;case 1:return e=ls(e.type,!0),e;default:return""}}function zs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case on:return"Fragment";case sn:return"Portal";case Ts:return"Profiler";case Ti:return"StrictMode";case Ps:return"Suspense";case Ls:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wa:return(e.displayName||"Context")+".Consumer";case Qa:return(e._context.displayName||"Context")+".Provider";case Pi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Li:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case wt:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function Vd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zs(t);case 8:return t===Ti?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ga(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ud(e){var t=Ga(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lr(e){e._valueTracker||(e._valueTracker=Ud(e))}function Ya(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ga(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ds(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qa(e,t){t=t.checked,t!=null&&Ci(e,"checked",t,!1)}function Ms(e,t){qa(e,t);var n=Mt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?As(e,t.type,n):t.hasOwnProperty("defaultValue")&&As(e,t.type,Mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _o(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function As(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bn=Array.isArray;function yn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Mt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(Bn(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Mt(n)}}function Za(e,t){var n=Mt(t.value),r=Mt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Eo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xa(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Os(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xa(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zr,Ja=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zr=zr||document.createElement("div"),zr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bd=["Webkit","ms","Moz","O"];Object.keys(Wn).forEach(function(e){Bd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wn[t]=Wn[e]})});function eu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wn.hasOwnProperty(e)&&Wn[e]?(""+t).trim():t+"px"}function tu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=eu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Hd=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Is(e,t){if(t){if(Hd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function $s(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fs=null;function zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vs=null,vn=null,wn=null;function Co(e){if(e=Sr(e)){if(typeof Vs!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Rl(t),Vs(e.stateNode,e.type,t))}}function nu(e){vn?wn?wn.push(e):wn=[e]:vn=e}function ru(){if(vn){var e=vn,t=wn;if(wn=vn=null,Co(e),t)for(e=0;e<t.length;e++)Co(t[e])}}function lu(e,t){return e(t)}function su(){}var ss=!1;function iu(e,t,n){if(ss)return e(t,n);ss=!0;try{return lu(e,t,n)}finally{ss=!1,(vn!==null||wn!==null)&&(su(),ru())}}function rr(e,t){var n=e.stateNode;if(n===null)return null;var r=Rl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Us=!1;if(mt)try{var An={};Object.defineProperty(An,"passive",{get:function(){Us=!0}}),window.addEventListener("test",An,An),window.removeEventListener("test",An,An)}catch{Us=!1}function Qd(e,t,n,r,l,s,o,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(h){this.onError(h)}}var Kn=!1,il=null,ol=!1,Bs=null,Wd={onError:function(e){Kn=!0,il=e}};function Kd(e,t,n,r,l,s,o,a,u){Kn=!1,il=null,Qd.apply(Wd,arguments)}function Gd(e,t,n,r,l,s,o,a,u){if(Kd.apply(this,arguments),Kn){if(Kn){var d=il;Kn=!1,il=null}else throw Error(_(198));ol||(ol=!0,Bs=d)}}function rn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ou(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function To(e){if(rn(e)!==e)throw Error(_(188))}function Yd(e){var t=e.alternate;if(!t){if(t=rn(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var s=l.alternate;if(s===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===n)return To(l),e;if(s===r)return To(l),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=l,r=s;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function au(e){return e=Yd(e),e!==null?uu(e):null}function uu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uu(e);if(t!==null)return t;e=e.sibling}return null}var cu=Ie.unstable_scheduleCallback,Po=Ie.unstable_cancelCallback,qd=Ie.unstable_shouldYield,Zd=Ie.unstable_requestPaint,ie=Ie.unstable_now,Xd=Ie.unstable_getCurrentPriorityLevel,Di=Ie.unstable_ImmediatePriority,du=Ie.unstable_UserBlockingPriority,al=Ie.unstable_NormalPriority,Jd=Ie.unstable_LowPriority,fu=Ie.unstable_IdlePriority,zl=null,st=null;function ef(e){if(st&&typeof st.onCommitFiberRoot=="function")try{st.onCommitFiberRoot(zl,e,void 0,(e.current.flags&128)===128)}catch{}}var Xe=Math.clz32?Math.clz32:rf,tf=Math.log,nf=Math.LN2;function rf(e){return e>>>=0,e===0?32:31-(tf(e)/nf|0)|0}var Dr=64,Mr=4194304;function Hn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ul(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Hn(a):(s&=o,s!==0&&(r=Hn(s)))}else o=n&~l,o!==0?r=Hn(o):s!==0&&(r=Hn(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Xe(t),l=1<<n,r|=e[n],t&=~l;return r}function lf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Xe(s),a=1<<o,u=l[o];u===-1?(!(a&n)||a&r)&&(l[o]=lf(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Hs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mu(){var e=Dr;return Dr<<=1,!(Dr&4194240)&&(Dr=64),e}function is(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xe(t),e[t]=n}function of(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Xe(n),s=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~s}}function Mi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xe(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var K=0;function pu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hu,Ai,xu,gu,yu,Qs=!1,Ar=[],bt=null,Et=null,Ct=null,lr=new Map,sr=new Map,Nt=[],af="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lo(e,t){switch(e){case"focusin":case"focusout":bt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sr.delete(t.pointerId)}}function Rn(e,t,n,r,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[l]},t!==null&&(t=Sr(t),t!==null&&Ai(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function uf(e,t,n,r,l){switch(t){case"focusin":return bt=Rn(bt,e,t,n,r,l),!0;case"dragenter":return Et=Rn(Et,e,t,n,r,l),!0;case"mouseover":return Ct=Rn(Ct,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return lr.set(s,Rn(lr.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,sr.set(s,Rn(sr.get(s)||null,e,t,n,r,l)),!0}return!1}function vu(e){var t=Ht(e.target);if(t!==null){var n=rn(t);if(n!==null){if(t=n.tag,t===13){if(t=ou(n),t!==null){e.blockedOn=t,yu(e.priority,function(){xu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Fs=r,n.target.dispatchEvent(r),Fs=null}else return t=Sr(n),t!==null&&Ai(t),e.blockedOn=n,!1;t.shift()}return!0}function zo(e,t,n){Gr(e)&&n.delete(t)}function cf(){Qs=!1,bt!==null&&Gr(bt)&&(bt=null),Et!==null&&Gr(Et)&&(Et=null),Ct!==null&&Gr(Ct)&&(Ct=null),lr.forEach(zo),sr.forEach(zo)}function On(e,t){e.blockedOn===t&&(e.blockedOn=null,Qs||(Qs=!0,Ie.unstable_scheduleCallback(Ie.unstable_NormalPriority,cf)))}function ir(e){function t(l){return On(l,e)}if(0<Ar.length){On(Ar[0],e);for(var n=1;n<Ar.length;n++){var r=Ar[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bt!==null&&On(bt,e),Et!==null&&On(Et,e),Ct!==null&&On(Ct,e),lr.forEach(t),sr.forEach(t),n=0;n<Nt.length;n++)r=Nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&(n=Nt[0],n.blockedOn===null);)vu(n),n.blockedOn===null&&Nt.shift()}var kn=gt.ReactCurrentBatchConfig,cl=!0;function df(e,t,n,r){var l=K,s=kn.transition;kn.transition=null;try{K=1,Ri(e,t,n,r)}finally{K=l,kn.transition=s}}function ff(e,t,n,r){var l=K,s=kn.transition;kn.transition=null;try{K=4,Ri(e,t,n,r)}finally{K=l,kn.transition=s}}function Ri(e,t,n,r){if(cl){var l=Ws(e,t,n,r);if(l===null)xs(e,t,r,dl,n),Lo(e,r);else if(uf(l,e,t,n,r))r.stopPropagation();else if(Lo(e,r),t&4&&-1<af.indexOf(e)){for(;l!==null;){var s=Sr(l);if(s!==null&&hu(s),s=Ws(e,t,n,r),s===null&&xs(e,t,r,dl,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else xs(e,t,r,null,n)}}var dl=null;function Ws(e,t,n,r){if(dl=null,e=zi(r),e=Ht(e),e!==null)if(t=rn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ou(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return dl=e,null}function wu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xd()){case Di:return 1;case du:return 4;case al:case Jd:return 16;case fu:return 536870912;default:return 16}default:return 16}}var jt=null,Oi=null,Yr=null;function ku(){if(Yr)return Yr;var e,t=Oi,n=t.length,r,l="value"in jt?jt.value:jt.textContent,s=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[s-r];r++);return Yr=l.slice(e,1<r?1-r:void 0)}function qr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Rr(){return!0}function Do(){return!1}function Fe(e){function t(n,r,l,s,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Rr:Do,this.isPropagationStopped=Do,this}return re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rr)},persist:function(){},isPersistent:Rr}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ii=Fe(zn),Nr=re({},zn,{view:0,detail:0}),mf=Fe(Nr),os,as,In,Dl=re({},Nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$i,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==In&&(In&&e.type==="mousemove"?(os=e.screenX-In.screenX,as=e.screenY-In.screenY):as=os=0,In=e),os)},movementY:function(e){return"movementY"in e?e.movementY:as}}),Mo=Fe(Dl),pf=re({},Dl,{dataTransfer:0}),hf=Fe(pf),xf=re({},Nr,{relatedTarget:0}),us=Fe(xf),gf=re({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),yf=Fe(gf),vf=re({},zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wf=Fe(vf),kf=re({},zn,{data:0}),Ao=Fe(kf),Nf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sf={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"},jf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _f(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jf[e])?!!t[e]:!1}function $i(){return _f}var bf=re({},Nr,{key:function(e){if(e.key){var t=Nf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$i,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ef=Fe(bf),Cf=re({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ro=Fe(Cf),Tf=re({},Nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$i}),Pf=Fe(Tf),Lf=re({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),zf=Fe(Lf),Df=re({},Dl,{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}),Mf=Fe(Df),Af=[9,13,27,32],Fi=mt&&"CompositionEvent"in window,Gn=null;mt&&"documentMode"in document&&(Gn=document.documentMode);var Rf=mt&&"TextEvent"in window&&!Gn,Nu=mt&&(!Fi||Gn&&8<Gn&&11>=Gn),Oo=" ",Io=!1;function Su(e,t){switch(e){case"keyup":return Af.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var an=!1;function Of(e,t){switch(e){case"compositionend":return ju(t);case"keypress":return t.which!==32?null:(Io=!0,Oo);case"textInput":return e=t.data,e===Oo&&Io?null:e;default:return null}}function If(e,t){if(an)return e==="compositionend"||!Fi&&Su(e,t)?(e=ku(),Yr=Oi=jt=null,an=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nu&&t.locale!=="ko"?null:t.data;default:return null}}var $f={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 $o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$f[e.type]:t==="textarea"}function _u(e,t,n,r){nu(r),t=fl(t,"onChange"),0<t.length&&(n=new Ii("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,or=null;function Ff(e){Ru(e,0)}function Ml(e){var t=dn(e);if(Ya(t))return e}function Vf(e,t){if(e==="change")return t}var bu=!1;if(mt){var cs;if(mt){var ds="oninput"in document;if(!ds){var Fo=document.createElement("div");Fo.setAttribute("oninput","return;"),ds=typeof Fo.oninput=="function"}cs=ds}else cs=!1;bu=cs&&(!document.documentMode||9<document.documentMode)}function Vo(){Yn&&(Yn.detachEvent("onpropertychange",Eu),or=Yn=null)}function Eu(e){if(e.propertyName==="value"&&Ml(or)){var t=[];_u(t,or,e,zi(e)),iu(Ff,t)}}function Uf(e,t,n){e==="focusin"?(Vo(),Yn=t,or=n,Yn.attachEvent("onpropertychange",Eu)):e==="focusout"&&Vo()}function Bf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ml(or)}function Hf(e,t){if(e==="click")return Ml(t)}function Qf(e,t){if(e==="input"||e==="change")return Ml(t)}function Wf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var et=typeof Object.is=="function"?Object.is:Wf;function ar(e,t){if(et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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 l=n[r];if(!Cs.call(t,l)||!et(e[l],t[l]))return!1}return!0}function Uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bo(e,t){var n=Uo(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uo(n)}}function Cu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tu(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function Vi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Kf(e){var t=Tu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cu(n.ownerDocument.documentElement,n)){if(r!==null&&Vi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=Bo(n,s);var o=Bo(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gf=mt&&"documentMode"in document&&11>=document.documentMode,un=null,Ks=null,qn=null,Gs=!1;function Ho(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gs||un==null||un!==sl(r)||(r=un,"selectionStart"in r&&Vi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qn&&ar(qn,r)||(qn=r,r=fl(Ks,"onSelect"),0<r.length&&(t=new Ii("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=un)))}function Or(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cn={animationend:Or("Animation","AnimationEnd"),animationiteration:Or("Animation","AnimationIteration"),animationstart:Or("Animation","AnimationStart"),transitionend:Or("Transition","TransitionEnd")},fs={},Pu={};mt&&(Pu=document.createElement("div").style,"AnimationEvent"in window||(delete cn.animationend.animation,delete cn.animationiteration.animation,delete cn.animationstart.animation),"TransitionEvent"in window||delete cn.transitionend.transition);function Al(e){if(fs[e])return fs[e];if(!cn[e])return e;var t=cn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pu)return fs[e]=t[n];return e}var Lu=Al("animationend"),zu=Al("animationiteration"),Du=Al("animationstart"),Mu=Al("transitionend"),Au=new Map,Qo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rt(e,t){Au.set(e,t),nn(t,[e])}for(var ms=0;ms<Qo.length;ms++){var ps=Qo[ms],Yf=ps.toLowerCase(),qf=ps[0].toUpperCase()+ps.slice(1);Rt(Yf,"on"+qf)}Rt(Lu,"onAnimationEnd");Rt(zu,"onAnimationIteration");Rt(Du,"onAnimationStart");Rt("dblclick","onDoubleClick");Rt("focusin","onFocus");Rt("focusout","onBlur");Rt(Mu,"onTransitionEnd");jn("onMouseEnter",["mouseout","mouseover"]);jn("onMouseLeave",["mouseout","mouseover"]);jn("onPointerEnter",["pointerout","pointerover"]);jn("onPointerLeave",["pointerout","pointerover"]);nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));nn("onBeforeInput",["compositionend","keypress","textInput","paste"]);nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qn="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(" "),Zf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qn));function Wo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Gd(r,t,void 0,e),e.currentTarget=null}function Ru(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==s&&l.isPropagationStopped())break e;Wo(l,a,d),s=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,d=a.currentTarget,a=a.listener,u!==s&&l.isPropagationStopped())break e;Wo(l,a,d),s=u}}}if(ol)throw e=Bs,ol=!1,Bs=null,e}function Z(e,t){var n=t[Js];n===void 0&&(n=t[Js]=new Set);var r=e+"__bubble";n.has(r)||(Ou(t,e,2,!1),n.add(r))}function hs(e,t,n){var r=0;t&&(r|=4),Ou(n,e,r,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function ur(e){if(!e[Ir]){e[Ir]=!0,Ha.forEach(function(n){n!=="selectionchange"&&(Zf.has(n)||hs(n,!1,e),hs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ir]||(t[Ir]=!0,hs("selectionchange",!1,t))}}function Ou(e,t,n,r){switch(wu(t)){case 1:var l=df;break;case 4:l=ff;break;default:l=Ri}n=l.bind(null,t,n,e),l=void 0,!Us||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function xs(e,t,n,r,l){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;a!==null;){if(o=Ht(a),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}a=a.parentNode}}r=r.return}iu(function(){var d=s,h=zi(n),g=[];e:{var x=Au.get(e);if(x!==void 0){var k=Ii,y=e;switch(e){case"keypress":if(qr(n)===0)break e;case"keydown":case"keyup":k=Ef;break;case"focusin":y="focus",k=us;break;case"focusout":y="blur",k=us;break;case"beforeblur":case"afterblur":k=us;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Mo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=hf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Pf;break;case Lu:case zu:case Du:k=yf;break;case Mu:k=zf;break;case"scroll":k=mf;break;case"wheel":k=Mf;break;case"copy":case"cut":case"paste":k=wf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Ro}var w=(t&4)!==0,R=!w&&e==="scroll",f=w?x!==null?x+"Capture":null:x;w=[];for(var c=d,m;c!==null;){m=c;var v=m.stateNode;if(m.tag===5&&v!==null&&(m=v,f!==null&&(v=rr(c,f),v!=null&&w.push(cr(c,v,m)))),R)break;c=c.return}0<w.length&&(x=new k(x,y,null,n,h),g.push({event:x,listeners:w}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",x&&n!==Fs&&(y=n.relatedTarget||n.fromElement)&&(Ht(y)||y[pt]))break e;if((k||x)&&(x=h.window===h?h:(x=h.ownerDocument)?x.defaultView||x.parentWindow:window,k?(y=n.relatedTarget||n.toElement,k=d,y=y?Ht(y):null,y!==null&&(R=rn(y),y!==R||y.tag!==5&&y.tag!==6)&&(y=null)):(k=null,y=d),k!==y)){if(w=Mo,v="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(w=Ro,v="onPointerLeave",f="onPointerEnter",c="pointer"),R=k==null?x:dn(k),m=y==null?x:dn(y),x=new w(v,c+"leave",k,n,h),x.target=R,x.relatedTarget=m,v=null,Ht(h)===d&&(w=new w(f,c+"enter",y,n,h),w.target=m,w.relatedTarget=R,v=w),R=v,k&&y)t:{for(w=k,f=y,c=0,m=w;m;m=ln(m))c++;for(m=0,v=f;v;v=ln(v))m++;for(;0<c-m;)w=ln(w),c--;for(;0<m-c;)f=ln(f),m--;for(;c--;){if(w===f||f!==null&&w===f.alternate)break t;w=ln(w),f=ln(f)}w=null}else w=null;k!==null&&Ko(g,x,k,w,!1),y!==null&&R!==null&&Ko(g,R,y,w,!0)}}e:{if(x=d?dn(d):window,k=x.nodeName&&x.nodeName.toLowerCase(),k==="select"||k==="input"&&x.type==="file")var S=Vf;else if($o(x))if(bu)S=Qf;else{S=Bf;var b=Uf}else(k=x.nodeName)&&k.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(S=Hf);if(S&&(S=S(e,d))){_u(g,S,n,h);break e}b&&b(e,x,d),e==="focusout"&&(b=x._wrapperState)&&b.controlled&&x.type==="number"&&As(x,"number",x.value)}switch(b=d?dn(d):window,e){case"focusin":($o(b)||b.contentEditable==="true")&&(un=b,Ks=d,qn=null);break;case"focusout":qn=Ks=un=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,Ho(g,n,h);break;case"selectionchange":if(Gf)break;case"keydown":case"keyup":Ho(g,n,h)}var N;if(Fi)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else an?Su(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Nu&&n.locale!=="ko"&&(an||E!=="onCompositionStart"?E==="onCompositionEnd"&&an&&(N=ku()):(jt=h,Oi="value"in jt?jt.value:jt.textContent,an=!0)),b=fl(d,E),0<b.length&&(E=new Ao(E,e,null,n,h),g.push({event:E,listeners:b}),N?E.data=N:(N=ju(n),N!==null&&(E.data=N)))),(N=Rf?Of(e,n):If(e,n))&&(d=fl(d,"onBeforeInput"),0<d.length&&(h=new Ao("onBeforeInput","beforeinput",null,n,h),g.push({event:h,listeners:d}),h.data=N))}Ru(g,t)})}function cr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,s=l.stateNode;l.tag===5&&s!==null&&(l=s,s=rr(e,n),s!=null&&r.unshift(cr(e,s,l)),s=rr(e,t),s!=null&&r.push(cr(e,s,l))),e=e.return}return r}function ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ko(e,t,n,r,l){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,l?(u=rr(n,s),u!=null&&o.unshift(cr(n,u,a))):l||(u=rr(n,s),u!=null&&o.push(cr(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Xf=/\r\n?/g,Jf=/\u0000|\uFFFD/g;function Go(e){return(typeof e=="string"?e:""+e).replace(Xf,`
|
|
`).replace(Jf,"")}function $r(e,t,n){if(t=Go(t),Go(e)!==t&&n)throw Error(_(425))}function ml(){}var Ys=null,qs=null;function Zs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xs=typeof setTimeout=="function"?setTimeout:void 0,em=typeof clearTimeout=="function"?clearTimeout:void 0,Yo=typeof Promise=="function"?Promise:void 0,tm=typeof queueMicrotask=="function"?queueMicrotask:typeof Yo<"u"?function(e){return Yo.resolve(null).then(e).catch(nm)}:Xs;function nm(e){setTimeout(function(){throw e})}function gs(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),ir(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);ir(t)}function Tt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function qo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Dn=Math.random().toString(36).slice(2),lt="__reactFiber$"+Dn,dr="__reactProps$"+Dn,pt="__reactContainer$"+Dn,Js="__reactEvents$"+Dn,rm="__reactListeners$"+Dn,lm="__reactHandles$"+Dn;function Ht(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qo(e);e!==null;){if(n=e[lt])return n;e=qo(e)}return t}e=n,n=e.parentNode}return null}function Sr(e){return e=e[lt]||e[pt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function dn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Rl(e){return e[dr]||null}var ei=[],fn=-1;function Ot(e){return{current:e}}function X(e){0>fn||(e.current=ei[fn],ei[fn]=null,fn--)}function q(e,t){fn++,ei[fn]=e.current,e.current=t}var At={},Ne=Ot(At),Le=Ot(!1),Yt=At;function _n(e,t){var n=e.type.contextTypes;if(!n)return At;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ze(e){return e=e.childContextTypes,e!=null}function pl(){X(Le),X(Ne)}function Zo(e,t,n){if(Ne.current!==At)throw Error(_(168));q(Ne,t),q(Le,n)}function Iu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Vd(e)||"Unknown",l));return re({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||At,Yt=Ne.current,q(Ne,e),q(Le,Le.current),!0}function Xo(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Iu(e,t,Yt),r.__reactInternalMemoizedMergedChildContext=e,X(Le),X(Ne),q(Ne,e)):X(Le),q(Le,n)}var ut=null,Ol=!1,ys=!1;function $u(e){ut===null?ut=[e]:ut.push(e)}function sm(e){Ol=!0,$u(e)}function It(){if(!ys&&ut!==null){ys=!0;var e=0,t=K;try{var n=ut;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ut=null,Ol=!1}catch(l){throw ut!==null&&(ut=ut.slice(e+1)),cu(Di,It),l}finally{K=t,ys=!1}}return null}var mn=[],pn=0,xl=null,gl=0,Ue=[],Be=0,qt=null,ct=1,dt="";function Vt(e,t){mn[pn++]=gl,mn[pn++]=xl,xl=e,gl=t}function Fu(e,t,n){Ue[Be++]=ct,Ue[Be++]=dt,Ue[Be++]=qt,qt=e;var r=ct;e=dt;var l=32-Xe(r)-1;r&=~(1<<l),n+=1;var s=32-Xe(t)+l;if(30<s){var o=l-l%5;s=(r&(1<<o)-1).toString(32),r>>=o,l-=o,ct=1<<32-Xe(t)+l|n<<l|r,dt=s+e}else ct=1<<s|n<<l|r,dt=e}function Ui(e){e.return!==null&&(Vt(e,1),Fu(e,1,0))}function Bi(e){for(;e===xl;)xl=mn[--pn],mn[pn]=null,gl=mn[--pn],mn[pn]=null;for(;e===qt;)qt=Ue[--Be],Ue[Be]=null,dt=Ue[--Be],Ue[Be]=null,ct=Ue[--Be],Ue[Be]=null}var Oe=null,Re=null,ee=!1,Ze=null;function Vu(e,t){var n=He(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jo(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Oe=e,Re=Tt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Oe=e,Re=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qt!==null?{id:ct,overflow:dt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=He(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oe=e,Re=null,!0):!1;default:return!1}}function ti(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ni(e){if(ee){var t=Re;if(t){var n=t;if(!Jo(e,t)){if(ti(e))throw Error(_(418));t=Tt(n.nextSibling);var r=Oe;t&&Jo(e,t)?Vu(r,n):(e.flags=e.flags&-4097|2,ee=!1,Oe=e)}}else{if(ti(e))throw Error(_(418));e.flags=e.flags&-4097|2,ee=!1,Oe=e}}}function ea(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oe=e}function Fr(e){if(e!==Oe)return!1;if(!ee)return ea(e),ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zs(e.type,e.memoizedProps)),t&&(t=Re)){if(ti(e))throw Uu(),Error(_(418));for(;t;)Vu(e,t),t=Tt(t.nextSibling)}if(ea(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Re=Tt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Re=null}}else Re=Oe?Tt(e.stateNode.nextSibling):null;return!0}function Uu(){for(var e=Re;e;)e=Tt(e.nextSibling)}function bn(){Re=Oe=null,ee=!1}function Hi(e){Ze===null?Ze=[e]:Ze.push(e)}var im=gt.ReactCurrentBatchConfig;function $n(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var l=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=l.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Vr(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ta(e){var t=e._init;return t(e._payload)}function Bu(e){function t(f,c){if(e){var m=f.deletions;m===null?(f.deletions=[c],f.flags|=16):m.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=Dt(f,c),f.index=0,f.sibling=null,f}function s(f,c,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<c?(f.flags|=2,c):m):(f.flags|=2,c)):(f.flags|=1048576,c)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,m,v){return c===null||c.tag!==6?(c=_s(m,f.mode,v),c.return=f,c):(c=l(c,m),c.return=f,c)}function u(f,c,m,v){var S=m.type;return S===on?h(f,c,m.props.children,v,m.key):c!==null&&(c.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wt&&ta(S)===c.type)?(v=l(c,m.props),v.ref=$n(f,c,m),v.return=f,v):(v=rl(m.type,m.key,m.props,null,f.mode,v),v.ref=$n(f,c,m),v.return=f,v)}function d(f,c,m,v){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=bs(m,f.mode,v),c.return=f,c):(c=l(c,m.children||[]),c.return=f,c)}function h(f,c,m,v,S){return c===null||c.tag!==7?(c=Gt(m,f.mode,v,S),c.return=f,c):(c=l(c,m),c.return=f,c)}function g(f,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=_s(""+c,f.mode,m),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Pr:return m=rl(c.type,c.key,c.props,null,f.mode,m),m.ref=$n(f,null,c),m.return=f,m;case sn:return c=bs(c,f.mode,m),c.return=f,c;case wt:var v=c._init;return g(f,v(c._payload),m)}if(Bn(c)||Mn(c))return c=Gt(c,f.mode,m,null),c.return=f,c;Vr(f,c)}return null}function x(f,c,m,v){var S=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:a(f,c,""+m,v);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Pr:return m.key===S?u(f,c,m,v):null;case sn:return m.key===S?d(f,c,m,v):null;case wt:return S=m._init,x(f,c,S(m._payload),v)}if(Bn(m)||Mn(m))return S!==null?null:h(f,c,m,v,null);Vr(f,m)}return null}function k(f,c,m,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return f=f.get(m)||null,a(c,f,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Pr:return f=f.get(v.key===null?m:v.key)||null,u(c,f,v,S);case sn:return f=f.get(v.key===null?m:v.key)||null,d(c,f,v,S);case wt:var b=v._init;return k(f,c,m,b(v._payload),S)}if(Bn(v)||Mn(v))return f=f.get(m)||null,h(c,f,v,S,null);Vr(c,v)}return null}function y(f,c,m,v){for(var S=null,b=null,N=c,E=c=0,U=null;N!==null&&E<m.length;E++){N.index>E?(U=N,N=null):U=N.sibling;var D=x(f,N,m[E],v);if(D===null){N===null&&(N=U);break}e&&N&&D.alternate===null&&t(f,N),c=s(D,c,E),b===null?S=D:b.sibling=D,b=D,N=U}if(E===m.length)return n(f,N),ee&&Vt(f,E),S;if(N===null){for(;E<m.length;E++)N=g(f,m[E],v),N!==null&&(c=s(N,c,E),b===null?S=N:b.sibling=N,b=N);return ee&&Vt(f,E),S}for(N=r(f,N);E<m.length;E++)U=k(N,f,E,m[E],v),U!==null&&(e&&U.alternate!==null&&N.delete(U.key===null?E:U.key),c=s(U,c,E),b===null?S=U:b.sibling=U,b=U);return e&&N.forEach(function(J){return t(f,J)}),ee&&Vt(f,E),S}function w(f,c,m,v){var S=Mn(m);if(typeof S!="function")throw Error(_(150));if(m=S.call(m),m==null)throw Error(_(151));for(var b=S=null,N=c,E=c=0,U=null,D=m.next();N!==null&&!D.done;E++,D=m.next()){N.index>E?(U=N,N=null):U=N.sibling;var J=x(f,N,D.value,v);if(J===null){N===null&&(N=U);break}e&&N&&J.alternate===null&&t(f,N),c=s(J,c,E),b===null?S=J:b.sibling=J,b=J,N=U}if(D.done)return n(f,N),ee&&Vt(f,E),S;if(N===null){for(;!D.done;E++,D=m.next())D=g(f,D.value,v),D!==null&&(c=s(D,c,E),b===null?S=D:b.sibling=D,b=D);return ee&&Vt(f,E),S}for(N=r(f,N);!D.done;E++,D=m.next())D=k(N,f,E,D.value,v),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?E:D.key),c=s(D,c,E),b===null?S=D:b.sibling=D,b=D);return e&&N.forEach(function(A){return t(f,A)}),ee&&Vt(f,E),S}function R(f,c,m,v){if(typeof m=="object"&&m!==null&&m.type===on&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Pr:e:{for(var S=m.key,b=c;b!==null;){if(b.key===S){if(S=m.type,S===on){if(b.tag===7){n(f,b.sibling),c=l(b,m.props.children),c.return=f,f=c;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wt&&ta(S)===b.type){n(f,b.sibling),c=l(b,m.props),c.ref=$n(f,b,m),c.return=f,f=c;break e}n(f,b);break}else t(f,b);b=b.sibling}m.type===on?(c=Gt(m.props.children,f.mode,v,m.key),c.return=f,f=c):(v=rl(m.type,m.key,m.props,null,f.mode,v),v.ref=$n(f,c,m),v.return=f,f=v)}return o(f);case sn:e:{for(b=m.key;c!==null;){if(c.key===b)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(f,c.sibling),c=l(c,m.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=bs(m,f.mode,v),c.return=f,f=c}return o(f);case wt:return b=m._init,R(f,c,b(m._payload),v)}if(Bn(m))return y(f,c,m,v);if(Mn(m))return w(f,c,m,v);Vr(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,m),c.return=f,f=c):(n(f,c),c=_s(m,f.mode,v),c.return=f,f=c),o(f)):n(f,c)}return R}var En=Bu(!0),Hu=Bu(!1),yl=Ot(null),vl=null,hn=null,Qi=null;function Wi(){Qi=hn=vl=null}function Ki(e){var t=yl.current;X(yl),e._currentValue=t}function ri(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Nn(e,t){vl=e,Qi=hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function We(e){var t=e._currentValue;if(Qi!==e)if(e={context:e,memoizedValue:t,next:null},hn===null){if(vl===null)throw Error(_(308));hn=e,vl.dependencies={lanes:0,firstContext:e}}else hn=hn.next=e;return t}var Qt=null;function Gi(e){Qt===null?Qt=[e]:Qt.push(e)}function Qu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Gi(t)):(n.next=l.next,l.next=n),t.interleaved=n,ht(e,r)}function ht(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var kt=!1;function Yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,ht(e,n)}return l=r.interleaved,l===null?(t.next=t,Gi(r)):(t.next=l.next,l.next=t),r.interleaved=t,ht(e,n)}function Zr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mi(e,n)}}function na(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?l=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wl(e,t,n,r){var l=e.updateQueue;kt=!1;var s=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,d=u.next;u.next=null,o===null?s=d:o.next=d,o=u;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==o&&(a===null?h.firstBaseUpdate=d:a.next=d,h.lastBaseUpdate=u))}if(s!==null){var g=l.baseState;o=0,h=d=u=null,a=s;do{var x=a.lane,k=a.eventTime;if((r&x)===x){h!==null&&(h=h.next={eventTime:k,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(x=t,k=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){g=y.call(k,g,x);break e}g=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,x=typeof y=="function"?y.call(k,g,x):y,x==null)break e;g=re({},g,x);break e;case 2:kt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,x=l.effects,x===null?l.effects=[a]:x.push(a))}else k={eventTime:k,lane:x,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(d=h=k,u=g):h=h.next=k,o|=x;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;x=a,a=x.next,x.next=null,l.lastBaseUpdate=x,l.shared.pending=null}}while(!0);if(h===null&&(u=g),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Xt|=o,e.lanes=o,e.memoizedState=g}}function ra(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(_(191,l));l.call(r)}}}var jr={},it=Ot(jr),fr=Ot(jr),mr=Ot(jr);function Wt(e){if(e===jr)throw Error(_(174));return e}function qi(e,t){switch(q(mr,t),q(fr,e),q(it,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Os(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Os(t,e)}X(it),q(it,t)}function Cn(){X(it),X(fr),X(mr)}function Ku(e){Wt(mr.current);var t=Wt(it.current),n=Os(t,e.type);t!==n&&(q(fr,e),q(it,n))}function Zi(e){fr.current===e&&(X(it),X(fr))}var te=Ot(0);function kl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vs=[];function Xi(){for(var e=0;e<vs.length;e++)vs[e]._workInProgressVersionPrimary=null;vs.length=0}var Xr=gt.ReactCurrentDispatcher,ws=gt.ReactCurrentBatchConfig,Zt=0,ne=null,ae=null,ce=null,Nl=!1,Zn=!1,pr=0,om=0;function ve(){throw Error(_(321))}function Ji(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!et(e[n],t[n]))return!1;return!0}function eo(e,t,n,r,l,s){if(Zt=s,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xr.current=e===null||e.memoizedState===null?dm:fm,e=n(r,l),Zn){s=0;do{if(Zn=!1,pr=0,25<=s)throw Error(_(301));s+=1,ce=ae=null,t.updateQueue=null,Xr.current=mm,e=n(r,l)}while(Zn)}if(Xr.current=Sl,t=ae!==null&&ae.next!==null,Zt=0,ce=ae=ne=null,Nl=!1,t)throw Error(_(300));return e}function to(){var e=pr!==0;return pr=0,e}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?ne.memoizedState=ce=e:ce=ce.next=e,ce}function Ke(){if(ae===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ce===null?ne.memoizedState:ce.next;if(t!==null)ce=t,ae=e;else{if(e===null)throw Error(_(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ce===null?ne.memoizedState=ce=e:ce=ce.next=e}return ce}function hr(e,t){return typeof t=="function"?t(e):t}function ks(e){var t=Ke(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=ae,l=r.baseQueue,s=n.pending;if(s!==null){if(l!==null){var o=l.next;l.next=s.next,s.next=o}r.baseQueue=l=s,n.pending=null}if(l!==null){s=l.next,r=r.baseState;var a=o=null,u=null,d=s;do{var h=d.lane;if((Zt&h)===h)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var g={lane:h,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=g,o=r):u=u.next=g,ne.lanes|=h,Xt|=h}d=d.next}while(d!==null&&d!==s);u===null?o=r:u.next=a,et(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do s=l.lane,ne.lanes|=s,Xt|=s,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ns(e){var t=Ke(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,s=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do s=e(s,o.action),o=o.next;while(o!==l);et(s,t.memoizedState)||(Pe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Gu(){}function Yu(e,t){var n=ne,r=Ke(),l=t(),s=!et(r.memoizedState,l);if(s&&(r.memoizedState=l,Pe=!0),r=r.queue,no(Xu.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,xr(9,Zu.bind(null,n,r,l,t),void 0,null),de===null)throw Error(_(349));Zt&30||qu(n,t,l)}return l}function qu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zu(e,t,n,r){t.value=n,t.getSnapshot=r,Ju(t)&&ec(e)}function Xu(e,t,n){return n(function(){Ju(t)&&ec(e)})}function Ju(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!et(e,n)}catch{return!0}}function ec(e){var t=ht(e,1);t!==null&&Je(t,e,1,-1)}function la(e){var t=rt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},t.queue=e,e=e.dispatch=cm.bind(null,ne,e),[t.memoizedState,e]}function xr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function tc(){return Ke().memoizedState}function Jr(e,t,n,r){var l=rt();ne.flags|=e,l.memoizedState=xr(1|t,n,void 0,r===void 0?null:r)}function Il(e,t,n,r){var l=Ke();r=r===void 0?null:r;var s=void 0;if(ae!==null){var o=ae.memoizedState;if(s=o.destroy,r!==null&&Ji(r,o.deps)){l.memoizedState=xr(t,n,s,r);return}}ne.flags|=e,l.memoizedState=xr(1|t,n,s,r)}function sa(e,t){return Jr(8390656,8,e,t)}function no(e,t){return Il(2048,8,e,t)}function nc(e,t){return Il(4,2,e,t)}function rc(e,t){return Il(4,4,e,t)}function lc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sc(e,t,n){return n=n!=null?n.concat([e]):null,Il(4,4,lc.bind(null,t,e),n)}function ro(){}function ic(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ji(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oc(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ji(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ac(e,t,n){return Zt&21?(et(n,t)||(n=mu(),ne.lanes|=n,Xt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Pe=!0),e.memoizedState=n)}function am(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=ws.transition;ws.transition={};try{e(!1),t()}finally{K=n,ws.transition=r}}function uc(){return Ke().memoizedState}function um(e,t,n){var r=zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cc(e))dc(t,n);else if(n=Qu(e,t,n,r),n!==null){var l=be();Je(n,e,r,l),fc(n,t,r)}}function cm(e,t,n){var r=zt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(e))dc(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(l.hasEagerState=!0,l.eagerState=a,et(a,o)){var u=t.interleaved;u===null?(l.next=l,Gi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Qu(e,t,l,r),n!==null&&(l=be(),Je(n,e,r,l),fc(n,t,r))}}function cc(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function dc(e,t){Zn=Nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mi(e,n)}}var Sl={readContext:We,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},dm={readContext:We,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:sa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jr(4194308,4,lc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jr(4,2,e,t)},useMemo:function(e,t){var n=rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=um.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:la,useDebugValue:ro,useDeferredValue:function(e){return rt().memoizedState=e},useTransition:function(){var e=la(!1),t=e[0];return e=am.bind(null,e[1]),rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,l=rt();if(ee){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),de===null)throw Error(_(349));Zt&30||qu(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,sa(Xu.bind(null,r,s,e),[e]),r.flags|=2048,xr(9,Zu.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=rt(),t=de.identifierPrefix;if(ee){var n=dt,r=ct;n=(r&~(1<<32-Xe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=om++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fm={readContext:We,useCallback:ic,useContext:We,useEffect:no,useImperativeHandle:sc,useInsertionEffect:nc,useLayoutEffect:rc,useMemo:oc,useReducer:ks,useRef:tc,useState:function(){return ks(hr)},useDebugValue:ro,useDeferredValue:function(e){var t=Ke();return ac(t,ae.memoizedState,e)},useTransition:function(){var e=ks(hr)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:Gu,useSyncExternalStore:Yu,useId:uc,unstable_isNewReconciler:!1},mm={readContext:We,useCallback:ic,useContext:We,useEffect:no,useImperativeHandle:sc,useInsertionEffect:nc,useLayoutEffect:rc,useMemo:oc,useReducer:Ns,useRef:tc,useState:function(){return Ns(hr)},useDebugValue:ro,useDeferredValue:function(e){var t=Ke();return ae===null?t.memoizedState=e:ac(t,ae.memoizedState,e)},useTransition:function(){var e=Ns(hr)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:Gu,useSyncExternalStore:Yu,useId:uc,unstable_isNewReconciler:!1};function Ye(e,t){if(e&&e.defaultProps){t=re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function li(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $l={isMounted:function(e){return(e=e._reactInternals)?rn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=be(),l=zt(e),s=ft(r,l);s.payload=t,n!=null&&(s.callback=n),t=Pt(e,s,l),t!==null&&(Je(t,e,l,r),Zr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=be(),l=zt(e),s=ft(r,l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Pt(e,s,l),t!==null&&(Je(t,e,l,r),Zr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=be(),r=zt(e),l=ft(n,r);l.tag=2,t!=null&&(l.callback=t),t=Pt(e,l,r),t!==null&&(Je(t,e,r,n),Zr(t,e,r))}};function ia(e,t,n,r,l,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!ar(n,r)||!ar(l,s):!0}function mc(e,t,n){var r=!1,l=At,s=t.contextType;return typeof s=="object"&&s!==null?s=We(s):(l=ze(t)?Yt:Ne.current,r=t.contextTypes,s=(r=r!=null)?_n(e,l):At),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$l,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function oa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$l.enqueueReplaceState(t,t.state,null)}function si(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Yi(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=We(s):(s=ze(t)?Yt:Ne.current,l.context=_n(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(li(e,t,s,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&$l.enqueueReplaceState(l,l.state,null),wl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Tn(e,t){try{var n="",r=t;do n+=Fd(r),r=r.return;while(r);var l=n}catch(s){l=`
|
|
Error generating stack: `+s.message+`
|
|
`+s.stack}return{value:e,source:t,stack:l,digest:null}}function Ss(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ii(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pm=typeof WeakMap=="function"?WeakMap:Map;function pc(e,t,n){n=ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,xi=r),ii(e,t)},n}function hc(e,t,n){n=ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ii(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ii(e,t),typeof r!="function"&&(Lt===null?Lt=new Set([this]):Lt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pm;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Cm.bind(null,e,t,n),t.then(e,e))}function ua(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ca(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ft(-1,1),t.tag=2,Pt(n,t,1))),n.lanes|=1),e)}var hm=gt.ReactCurrentOwner,Pe=!1;function _e(e,t,n,r){t.child=e===null?Hu(t,null,n,r):En(t,e.child,n,r)}function da(e,t,n,r,l){n=n.render;var s=t.ref;return Nn(t,l),r=eo(e,t,n,r,s,l),n=to(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,xt(e,t,l)):(ee&&n&&Ui(t),t.flags|=1,_e(e,t,r,l),t.child)}function fa(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!fo(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,xc(e,t,s,r,l)):(e=rl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&l)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ar,n(o,r)&&e.ref===t.ref)return xt(e,t,l)}return t.flags|=1,e=Dt(s,r),e.ref=t.ref,e.return=t,t.child=e}function xc(e,t,n,r,l){if(e!==null){var s=e.memoizedProps;if(ar(s,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=s,(e.lanes&l)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,xt(e,t,l)}return oi(e,t,n,r,l)}function gc(e,t,n){var r=t.pendingProps,l=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(gn,Ae),Ae|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(gn,Ae),Ae|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,q(gn,Ae),Ae|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,q(gn,Ae),Ae|=r;return _e(e,t,l,n),t.child}function yc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oi(e,t,n,r,l){var s=ze(n)?Yt:Ne.current;return s=_n(t,s),Nn(t,l),n=eo(e,t,n,r,s,l),r=to(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,xt(e,t,l)):(ee&&r&&Ui(t),t.flags|=1,_e(e,t,n,l),t.child)}function ma(e,t,n,r,l){if(ze(n)){var s=!0;hl(t)}else s=!1;if(Nn(t,l),t.stateNode===null)el(e,t),mc(t,n,r),si(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=We(d):(d=ze(n)?Yt:Ne.current,d=_n(t,d));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==d)&&oa(t,o,r,d),kt=!1;var x=t.memoizedState;o.state=x,wl(t,r,o,l),u=t.memoizedState,a!==r||x!==u||Le.current||kt?(typeof h=="function"&&(li(t,n,h,r),u=t.memoizedState),(a=kt||ia(t,n,a,r,x,u,d))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Wu(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Ye(t.type,a),o.props=d,g=t.pendingProps,x=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=We(u):(u=ze(n)?Yt:Ne.current,u=_n(t,u));var k=n.getDerivedStateFromProps;(h=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==g||x!==u)&&oa(t,o,r,u),kt=!1,x=t.memoizedState,o.state=x,wl(t,r,o,l);var y=t.memoizedState;a!==g||x!==y||Le.current||kt?(typeof k=="function"&&(li(t,n,k,r),y=t.memoizedState),(d=kt||ia(t,n,d,r,x,y,u)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),r=!1)}return ai(e,t,n,r,s,l)}function ai(e,t,n,r,l,s){yc(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Xo(t,n,!1),xt(e,t,s);r=t.stateNode,hm.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=En(t,e.child,null,s),t.child=En(t,null,a,s)):_e(e,t,a,s),t.memoizedState=r.state,l&&Xo(t,n,!0),t.child}function vc(e){var t=e.stateNode;t.pendingContext?Zo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zo(e,t.context,!1),qi(e,t.containerInfo)}function pa(e,t,n,r,l){return bn(),Hi(l),t.flags|=256,_e(e,t,n,r),t.child}var ui={dehydrated:null,treeContext:null,retryLane:0};function ci(e){return{baseLanes:e,cachePool:null,transitions:null}}function wc(e,t,n){var r=t.pendingProps,l=te.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),q(te,l&1),e===null)return ni(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ul(o,r,0,null),e=Gt(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ci(n),t.memoizedState=ui,e):lo(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return xm(e,t,o,r,a,l,n);if(s){s=r.fallback,o=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Dt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?s=Dt(a,s):(s=Gt(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?ci(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=ui,r}return s=e.child,e=s.sibling,r=Dt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lo(e,t){return t=Ul({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ur(e,t,n,r){return r!==null&&Hi(r),En(t,e.child,null,n),e=lo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xm(e,t,n,r,l,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Ss(Error(_(422))),Ur(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,l=t.mode,r=Ul({mode:"visible",children:r.children},l,0,null),s=Gt(s,l,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&En(t,e.child,null,o),t.child.memoizedState=ci(o),t.memoizedState=ui,s);if(!(t.mode&1))return Ur(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(_(419)),r=Ss(s,r,void 0),Ur(e,t,o,r)}if(a=(o&e.childLanes)!==0,Pe||a){if(r=de,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==s.retryLane&&(s.retryLane=l,ht(e,l),Je(r,e,l,-1))}return co(),r=Ss(Error(_(421))),Ur(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Tm.bind(null,e),l._reactRetry=t,null):(e=s.treeContext,Re=Tt(l.nextSibling),Oe=t,ee=!0,Ze=null,e!==null&&(Ue[Be++]=ct,Ue[Be++]=dt,Ue[Be++]=qt,ct=e.id,dt=e.overflow,qt=t),t=lo(t,r.children),t.flags|=4096,t)}function ha(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ri(e.return,t,n)}function js(e,t,n,r,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=l)}function kc(e,t,n){var r=t.pendingProps,l=r.revealOrder,s=r.tail;if(_e(e,t,r.children,n),r=te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ha(e,n,t);else if(e.tag===19)ha(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(q(te,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&kl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),js(t,!1,l,n,s);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&kl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}js(t,!0,n,null,s);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function el(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Dt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gm(e,t,n){switch(t.tag){case 3:vc(t),bn();break;case 5:Ku(t);break;case 1:ze(t.type)&&hl(t);break;case 4:qi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;q(yl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(q(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?wc(e,t,n):(q(te,te.current&1),e=xt(e,t,n),e!==null?e.sibling:null);q(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return kc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),q(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,gc(e,t,n)}return xt(e,t,n)}var Nc,di,Sc,jc;Nc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};di=function(){};Sc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Wt(it.current);var s=null;switch(n){case"input":l=Ds(e,l),r=Ds(e,r),s=[];break;case"select":l=re({},l,{value:void 0}),r=re({},r,{value:void 0}),s=[];break;case"textarea":l=Rs(e,l),r=Rs(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ml)}Is(n,r);var o;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var a=l[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(tr.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(a=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(tr.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&Z("scroll",e),s||a===u||(s=[])):(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};jc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fn(e,t){if(!ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function we(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ym(e,t,n){var r=t.pendingProps;switch(Bi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return ze(t.type)&&pl(),we(t),null;case 3:return r=t.stateNode,Cn(),X(Le),X(Ne),Xi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ze!==null&&(vi(Ze),Ze=null))),di(e,t),we(t),null;case 5:Zi(t);var l=Wt(mr.current);if(n=t.type,e!==null&&t.stateNode!=null)Sc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return we(t),null}if(e=Wt(it.current),Fr(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[lt]=t,r[dr]=s,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(l=0;l<Qn.length;l++)Z(Qn[l],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":jo(r,s),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Z("invalid",r);break;case"textarea":bo(r,s),Z("invalid",r)}Is(n,s),l=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&$r(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&$r(r.textContent,a,e),l=["children",""+a]):tr.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Z("scroll",r)}switch(n){case"input":Lr(r),_o(r,s,!0);break;case"textarea":Lr(r),Eo(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ml)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xa(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[lt]=t,e[dr]=r,Nc(e,t,!1,!1),t.stateNode=e;e:{switch(o=$s(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qn.length;l++)Z(Qn[l],e);l=r;break;case"source":Z("error",e),l=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),l=r;break;case"details":Z("toggle",e),l=r;break;case"input":jo(e,r),l=Ds(e,r),Z("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=re({},r,{value:void 0}),Z("invalid",e);break;case"textarea":bo(e,r),l=Rs(e,r),Z("invalid",e);break;default:l=r}Is(n,l),a=l;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?tu(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ja(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&nr(e,u):typeof u=="number"&&nr(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(tr.hasOwnProperty(s)?u!=null&&s==="onScroll"&&Z("scroll",e):u!=null&&Ci(e,s,u,o))}switch(n){case"input":Lr(e),_o(e,r,!1);break;case"textarea":Lr(e),Eo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Mt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?yn(e,!!r.multiple,s,!1):r.defaultValue!=null&&yn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ml)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return we(t),null;case 6:if(e&&t.stateNode!=null)jc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Wt(mr.current),Wt(it.current),Fr(t)){if(r=t.stateNode,n=t.memoizedProps,r[lt]=t,(s=r.nodeValue!==n)&&(e=Oe,e!==null))switch(e.tag){case 3:$r(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$r(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[lt]=t,t.stateNode=r}return we(t),null;case 13:if(X(te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ee&&Re!==null&&t.mode&1&&!(t.flags&128))Uu(),bn(),t.flags|=98560,s=!1;else if(s=Fr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[lt]=t}else bn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),s=!1}else Ze!==null&&(vi(Ze),Ze=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||te.current&1?ue===0&&(ue=3):co())),t.updateQueue!==null&&(t.flags|=4),we(t),null);case 4:return Cn(),di(e,t),e===null&&ur(t.stateNode.containerInfo),we(t),null;case 10:return Ki(t.type._context),we(t),null;case 17:return ze(t.type)&&pl(),we(t),null;case 19:if(X(te),s=t.memoizedState,s===null)return we(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Fn(s,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=kl(e),o!==null){for(t.flags|=128,Fn(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(te,te.current&1|2),t.child}e=e.sibling}s.tail!==null&&ie()>Pn&&(t.flags|=128,r=!0,Fn(s,!1),t.lanes=4194304)}else{if(!r)if(e=kl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ee)return we(t),null}else 2*ie()-s.renderingStartTime>Pn&&n!==1073741824&&(t.flags|=128,r=!0,Fn(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ie(),t.sibling=null,n=te.current,q(te,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return uo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function vm(e,t){switch(Bi(t),t.tag){case 1:return ze(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(),X(Le),X(Ne),Xi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zi(t),null;case 13:if(X(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(te),null;case 4:return Cn(),null;case 10:return Ki(t.type._context),null;case 22:case 23:return uo(),null;case 24:return null;default:return null}}var Br=!1,ke=!1,wm=typeof WeakSet=="function"?WeakSet:Set,P=null;function xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(e,t,r)}else n.current=null}function fi(e,t,n){try{n()}catch(r){se(e,t,r)}}var xa=!1;function km(e,t){if(Ys=cl,e=Tu(),Vi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,d=0,h=0,g=e,x=null;t:for(;;){for(var k;g!==n||l!==0&&g.nodeType!==3||(a=o+l),g!==s||r!==0&&g.nodeType!==3||(u=o+r),g.nodeType===3&&(o+=g.nodeValue.length),(k=g.firstChild)!==null;)x=g,g=k;for(;;){if(g===e)break t;if(x===n&&++d===l&&(a=o),x===s&&++h===r&&(u=o),(k=g.nextSibling)!==null)break;g=x,x=g.parentNode}g=k}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(qs={focusedElem:e,selectionRange:n},cl=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,R=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ye(t.type,w),R);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(v){se(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return y=xa,xa=!1,y}function Xn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&fi(t,n,s)}l=l.next}while(l!==r)}}function Fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _c(e){var t=e.alternate;t!==null&&(e.alternate=null,_c(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lt],delete t[dr],delete t[Js],delete t[rm],delete t[lm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bc(e){return e.tag===5||e.tag===3||e.tag===4}function ga(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ml));else if(r!==4&&(e=e.child,e!==null))for(pi(e,t,n),e=e.sibling;e!==null;)pi(e,t,n),e=e.sibling}function hi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hi(e,t,n),e=e.sibling;e!==null;)hi(e,t,n),e=e.sibling}var me=null,qe=!1;function vt(e,t,n){for(n=n.child;n!==null;)Ec(e,t,n),n=n.sibling}function Ec(e,t,n){if(st&&typeof st.onCommitFiberUnmount=="function")try{st.onCommitFiberUnmount(zl,n)}catch{}switch(n.tag){case 5:ke||xn(n,t);case 6:var r=me,l=qe;me=null,vt(e,t,n),me=r,qe=l,me!==null&&(qe?(e=me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):me.removeChild(n.stateNode));break;case 18:me!==null&&(qe?(e=me,n=n.stateNode,e.nodeType===8?gs(e.parentNode,n):e.nodeType===1&&gs(e,n),ir(e)):gs(me,n.stateNode));break;case 4:r=me,l=qe,me=n.stateNode.containerInfo,qe=!0,vt(e,t,n),me=r,qe=l;break;case 0:case 11:case 14:case 15:if(!ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&fi(n,t,o),l=l.next}while(l!==r)}vt(e,t,n);break;case 1:if(!ke&&(xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){se(n,t,a)}vt(e,t,n);break;case 21:vt(e,t,n);break;case 22:n.mode&1?(ke=(r=ke)||n.memoizedState!==null,vt(e,t,n),ke=r):vt(e,t,n);break;default:vt(e,t,n)}}function ya(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wm),t.forEach(function(r){var l=Pm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:me=a.stateNode,qe=!1;break e;case 3:me=a.stateNode.containerInfo,qe=!0;break e;case 4:me=a.stateNode.containerInfo,qe=!0;break e}a=a.return}if(me===null)throw Error(_(160));Ec(s,o,l),me=null,qe=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){se(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Cc(t,e),t=t.sibling}function Cc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),nt(e),r&4){try{Xn(3,e,e.return),Fl(3,e)}catch(w){se(e,e.return,w)}try{Xn(5,e,e.return)}catch(w){se(e,e.return,w)}}break;case 1:Ge(t,e),nt(e),r&512&&n!==null&&xn(n,n.return);break;case 5:if(Ge(t,e),nt(e),r&512&&n!==null&&xn(n,n.return),e.flags&32){var l=e.stateNode;try{nr(l,"")}catch(w){se(e,e.return,w)}}if(r&4&&(l=e.stateNode,l!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&qa(l,s),$s(a,o);var d=$s(a,s);for(o=0;o<u.length;o+=2){var h=u[o],g=u[o+1];h==="style"?tu(l,g):h==="dangerouslySetInnerHTML"?Ja(l,g):h==="children"?nr(l,g):Ci(l,h,g,d)}switch(a){case"input":Ms(l,s);break;case"textarea":Za(l,s);break;case"select":var x=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var k=s.value;k!=null?yn(l,!!s.multiple,k,!1):x!==!!s.multiple&&(s.defaultValue!=null?yn(l,!!s.multiple,s.defaultValue,!0):yn(l,!!s.multiple,s.multiple?[]:"",!1))}l[dr]=s}catch(w){se(e,e.return,w)}}break;case 6:if(Ge(t,e),nt(e),r&4){if(e.stateNode===null)throw Error(_(162));l=e.stateNode,s=e.memoizedProps;try{l.nodeValue=s}catch(w){se(e,e.return,w)}}break;case 3:if(Ge(t,e),nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ir(t.containerInfo)}catch(w){se(e,e.return,w)}break;case 4:Ge(t,e),nt(e);break;case 13:Ge(t,e),nt(e),l=e.child,l.flags&8192&&(s=l.memoizedState!==null,l.stateNode.isHidden=s,!s||l.alternate!==null&&l.alternate.memoizedState!==null||(oo=ie())),r&4&&ya(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(ke=(d=ke)||h,Ge(t,e),ke=d):Ge(t,e),nt(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!h&&e.mode&1)for(P=e,h=e.child;h!==null;){for(g=P=h;P!==null;){switch(x=P,k=x.child,x.tag){case 0:case 11:case 14:case 15:Xn(4,x,x.return);break;case 1:xn(x,x.return);var y=x.stateNode;if(typeof y.componentWillUnmount=="function"){r=x,n=x.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){se(r,n,w)}}break;case 5:xn(x,x.return);break;case 22:if(x.memoizedState!==null){wa(g);continue}}k!==null?(k.return=x,P=k):wa(g)}h=h.sibling}e:for(h=null,g=e;;){if(g.tag===5){if(h===null){h=g;try{l=g.stateNode,d?(s=l.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=g.stateNode,u=g.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=eu("display",o))}catch(w){se(e,e.return,w)}}}else if(g.tag===6){if(h===null)try{g.stateNode.nodeValue=d?"":g.memoizedProps}catch(w){se(e,e.return,w)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;h===g&&(h=null),g=g.return}h===g&&(h=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:Ge(t,e),nt(e),r&4&&ya(e);break;case 21:break;default:Ge(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bc(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(nr(l,""),r.flags&=-33);var s=ga(e);hi(e,s,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ga(e);pi(e,a,o);break;default:throw Error(_(161))}}catch(u){se(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nm(e,t,n){P=e,Tc(e)}function Tc(e,t,n){for(var r=(e.mode&1)!==0;P!==null;){var l=P,s=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Br;if(!o){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ke;a=Br;var d=ke;if(Br=o,(ke=u)&&!d)for(P=l;P!==null;)o=P,u=o.child,o.tag===22&&o.memoizedState!==null?ka(l):u!==null?(u.return=o,P=u):ka(l);for(;s!==null;)P=s,Tc(s),s=s.sibling;P=l,Br=a,ke=d}va(e)}else l.subtreeFlags&8772&&s!==null?(s.return=l,P=s):va(e)}}function va(e){for(;P!==null;){var t=P;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ke||Fl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ke)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ye(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&ra(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ra(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var h=d.memoizedState;if(h!==null){var g=h.dehydrated;g!==null&&ir(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}ke||t.flags&512&&mi(t)}catch(x){se(t,t.return,x)}}if(t===e){P=null;break}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}function wa(e){for(;P!==null;){var t=P;if(t===e){P=null;break}var n=t.sibling;if(n!==null){n.return=t.return,P=n;break}P=t.return}}function ka(e){for(;P!==null;){var t=P;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fl(4,t)}catch(u){se(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){se(t,l,u)}}var s=t.return;try{mi(t)}catch(u){se(t,s,u)}break;case 5:var o=t.return;try{mi(t)}catch(u){se(t,o,u)}}}catch(u){se(t,t.return,u)}if(t===e){P=null;break}var a=t.sibling;if(a!==null){a.return=t.return,P=a;break}P=t.return}}var Sm=Math.ceil,jl=gt.ReactCurrentDispatcher,so=gt.ReactCurrentOwner,Qe=gt.ReactCurrentBatchConfig,Q=0,de=null,oe=null,pe=0,Ae=0,gn=Ot(0),ue=0,gr=null,Xt=0,Vl=0,io=0,Jn=null,Te=null,oo=0,Pn=1/0,at=null,_l=!1,xi=null,Lt=null,Hr=!1,_t=null,bl=0,er=0,gi=null,tl=-1,nl=0;function be(){return Q&6?ie():tl!==-1?tl:tl=ie()}function zt(e){return e.mode&1?Q&2&&pe!==0?pe&-pe:im.transition!==null?(nl===0&&(nl=mu()),nl):(e=K,e!==0||(e=window.event,e=e===void 0?16:wu(e.type)),e):1}function Je(e,t,n,r){if(50<er)throw er=0,gi=null,Error(_(185));kr(e,n,r),(!(Q&2)||e!==de)&&(e===de&&(!(Q&2)&&(Vl|=n),ue===4&&St(e,pe)),De(e,r),n===1&&Q===0&&!(t.mode&1)&&(Pn=ie()+500,Ol&&It()))}function De(e,t){var n=e.callbackNode;sf(e,t);var r=ul(e,e===de?pe:0);if(r===0)n!==null&&Po(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Po(n),t===1)e.tag===0?sm(Na.bind(null,e)):$u(Na.bind(null,e)),tm(function(){!(Q&6)&&It()}),n=null;else{switch(pu(r)){case 1:n=Di;break;case 4:n=du;break;case 16:n=al;break;case 536870912:n=fu;break;default:n=al}n=Oc(n,Pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pc(e,t){if(tl=-1,nl=0,Q&6)throw Error(_(327));var n=e.callbackNode;if(Sn()&&e.callbackNode!==n)return null;var r=ul(e,e===de?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=El(e,r);else{t=r;var l=Q;Q|=2;var s=zc();(de!==e||pe!==t)&&(at=null,Pn=ie()+500,Kt(e,t));do try{bm();break}catch(a){Lc(e,a)}while(!0);Wi(),jl.current=s,Q=l,oe!==null?t=0:(de=null,pe=0,t=ue)}if(t!==0){if(t===2&&(l=Hs(e),l!==0&&(r=l,t=yi(e,l))),t===1)throw n=gr,Kt(e,0),St(e,r),De(e,ie()),n;if(t===6)St(e,r);else{if(l=e.current.alternate,!(r&30)&&!jm(l)&&(t=El(e,r),t===2&&(s=Hs(e),s!==0&&(r=s,t=yi(e,s))),t===1))throw n=gr,Kt(e,0),St(e,r),De(e,ie()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Ut(e,Te,at);break;case 3:if(St(e,r),(r&130023424)===r&&(t=oo+500-ie(),10<t)){if(ul(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){be(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Xs(Ut.bind(null,e,Te,at),t);break}Ut(e,Te,at);break;case 4:if(St(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-Xe(r);s=1<<o,o=t[o],o>l&&(l=o),r&=~s}if(r=l,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sm(r/1960))-r,10<r){e.timeoutHandle=Xs(Ut.bind(null,e,Te,at),r);break}Ut(e,Te,at);break;case 5:Ut(e,Te,at);break;default:throw Error(_(329))}}}return De(e,ie()),e.callbackNode===n?Pc.bind(null,e):null}function yi(e,t){var n=Jn;return e.current.memoizedState.isDehydrated&&(Kt(e,t).flags|=256),e=El(e,t),e!==2&&(t=Te,Te=n,t!==null&&vi(t)),e}function vi(e){Te===null?Te=e:Te.push.apply(Te,e)}function jm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],s=l.getSnapshot;l=l.value;try{if(!et(s(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function St(e,t){for(t&=~io,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Xe(t),r=1<<n;e[n]=-1,t&=~r}}function Na(e){if(Q&6)throw Error(_(327));Sn();var t=ul(e,0);if(!(t&1))return De(e,ie()),null;var n=El(e,t);if(e.tag!==0&&n===2){var r=Hs(e);r!==0&&(t=r,n=yi(e,r))}if(n===1)throw n=gr,Kt(e,0),St(e,t),De(e,ie()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ut(e,Te,at),De(e,ie()),null}function ao(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(Pn=ie()+500,Ol&&It())}}function Jt(e){_t!==null&&_t.tag===0&&!(Q&6)&&Sn();var t=Q;Q|=1;var n=Qe.transition,r=K;try{if(Qe.transition=null,K=1,e)return e()}finally{K=r,Qe.transition=n,Q=t,!(Q&6)&&It()}}function uo(){Ae=gn.current,X(gn)}function Kt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,em(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(Bi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pl();break;case 3:Cn(),X(Le),X(Ne),Xi();break;case 5:Zi(r);break;case 4:Cn();break;case 13:X(te);break;case 19:X(te);break;case 10:Ki(r.type._context);break;case 22:case 23:uo()}n=n.return}if(de=e,oe=e=Dt(e.current,null),pe=Ae=t,ue=0,gr=null,io=Vl=Xt=0,Te=Jn=null,Qt!==null){for(t=0;t<Qt.length;t++)if(n=Qt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=l,r.next=o}n.pending=r}Qt=null}return e}function Lc(e,t){do{var n=oe;try{if(Wi(),Xr.current=Sl,Nl){for(var r=ne.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Nl=!1}if(Zt=0,ce=ae=ne=null,Zn=!1,pr=0,so.current=null,n===null||n.return===null){ue=1,gr=t,oe=null;break}e:{var s=e,o=n.return,a=n,u=t;if(t=pe,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,h=a,g=h.tag;if(!(h.mode&1)&&(g===0||g===11||g===15)){var x=h.alternate;x?(h.updateQueue=x.updateQueue,h.memoizedState=x.memoizedState,h.lanes=x.lanes):(h.updateQueue=null,h.memoizedState=null)}var k=ua(o);if(k!==null){k.flags&=-257,ca(k,o,a,s,t),k.mode&1&&aa(s,d,t),t=k,u=d;var y=t.updateQueue;if(y===null){var w=new Set;w.add(u),t.updateQueue=w}else y.add(u);break e}else{if(!(t&1)){aa(s,d,t),co();break e}u=Error(_(426))}}else if(ee&&a.mode&1){var R=ua(o);if(R!==null){!(R.flags&65536)&&(R.flags|=256),ca(R,o,a,s,t),Hi(Tn(u,a));break e}}s=u=Tn(u,a),ue!==4&&(ue=2),Jn===null?Jn=[s]:Jn.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var f=pc(s,u,t);na(s,f);break e;case 1:a=u;var c=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Lt===null||!Lt.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var v=hc(s,a,t);na(s,v);break e}}s=s.return}while(s!==null)}Mc(n)}catch(S){t=S,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function zc(){var e=jl.current;return jl.current=Sl,e===null?Sl:e}function co(){(ue===0||ue===3||ue===2)&&(ue=4),de===null||!(Xt&268435455)&&!(Vl&268435455)||St(de,pe)}function El(e,t){var n=Q;Q|=2;var r=zc();(de!==e||pe!==t)&&(at=null,Kt(e,t));do try{_m();break}catch(l){Lc(e,l)}while(!0);if(Wi(),Q=n,jl.current=r,oe!==null)throw Error(_(261));return de=null,pe=0,ue}function _m(){for(;oe!==null;)Dc(oe)}function bm(){for(;oe!==null&&!qd();)Dc(oe)}function Dc(e){var t=Rc(e.alternate,e,Ae);e.memoizedProps=e.pendingProps,t===null?Mc(e):oe=t,so.current=null}function Mc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vm(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,oe=null;return}}else if(n=ym(n,t,Ae),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);ue===0&&(ue=5)}function Ut(e,t,n){var r=K,l=Qe.transition;try{Qe.transition=null,K=1,Em(e,t,n,r)}finally{Qe.transition=l,K=r}return null}function Em(e,t,n,r){do Sn();while(_t!==null);if(Q&6)throw Error(_(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(of(e,s),e===de&&(oe=de=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hr||(Hr=!0,Oc(al,function(){return Sn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Qe.transition,Qe.transition=null;var o=K;K=1;var a=Q;Q|=4,so.current=null,km(e,n),Cc(n,e),Kf(qs),cl=!!Ys,qs=Ys=null,e.current=n,Nm(n),Zd(),Q=a,K=o,Qe.transition=s}else e.current=n;if(Hr&&(Hr=!1,_t=e,bl=l),s=e.pendingLanes,s===0&&(Lt=null),ef(n.stateNode),De(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(_l)throw _l=!1,e=xi,xi=null,e;return bl&1&&e.tag!==0&&Sn(),s=e.pendingLanes,s&1?e===gi?er++:(er=0,gi=e):er=0,It(),null}function Sn(){if(_t!==null){var e=pu(bl),t=Qe.transition,n=K;try{if(Qe.transition=null,K=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,bl=0,Q&6)throw Error(_(331));var l=Q;for(Q|=4,P=e.current;P!==null;){var s=P,o=s.child;if(P.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(P=d;P!==null;){var h=P;switch(h.tag){case 0:case 11:case 15:Xn(8,h,s)}var g=h.child;if(g!==null)g.return=h,P=g;else for(;P!==null;){h=P;var x=h.sibling,k=h.return;if(_c(h),h===d){P=null;break}if(x!==null){x.return=k,P=x;break}P=k}}}var y=s.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var R=w.sibling;w.sibling=null,w=R}while(w!==null)}}P=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,P=o;else e:for(;P!==null;){if(s=P,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Xn(9,s,s.return)}var f=s.sibling;if(f!==null){f.return=s.return,P=f;break e}P=s.return}}var c=e.current;for(P=c;P!==null;){o=P;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,P=m;else e:for(o=c;P!==null;){if(a=P,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Fl(9,a)}}catch(S){se(a,a.return,S)}if(a===o){P=null;break e}var v=a.sibling;if(v!==null){v.return=a.return,P=v;break e}P=a.return}}if(Q=l,It(),st&&typeof st.onPostCommitFiberRoot=="function")try{st.onPostCommitFiberRoot(zl,e)}catch{}r=!0}return r}finally{K=n,Qe.transition=t}}return!1}function Sa(e,t,n){t=Tn(n,t),t=pc(e,t,1),e=Pt(e,t,1),t=be(),e!==null&&(kr(e,1,t),De(e,t))}function se(e,t,n){if(e.tag===3)Sa(e,e,n);else for(;t!==null;){if(t.tag===3){Sa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Lt===null||!Lt.has(r))){e=Tn(n,e),e=hc(t,e,1),t=Pt(t,e,1),e=be(),t!==null&&(kr(t,1,e),De(t,e));break}}t=t.return}}function Cm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=be(),e.pingedLanes|=e.suspendedLanes&n,de===e&&(pe&n)===n&&(ue===4||ue===3&&(pe&130023424)===pe&&500>ie()-oo?Kt(e,0):io|=n),De(e,t)}function Ac(e,t){t===0&&(e.mode&1?(t=Mr,Mr<<=1,!(Mr&130023424)&&(Mr=4194304)):t=1);var n=be();e=ht(e,t),e!==null&&(kr(e,t,n),De(e,n))}function Tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ac(e,n)}function Pm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Ac(e,n)}var Rc;Rc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,gm(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,ee&&t.flags&1048576&&Fu(t,gl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;el(e,t),e=t.pendingProps;var l=_n(t,Ne.current);Nn(t,n),l=eo(null,t,r,e,l,n);var s=to();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ze(r)?(s=!0,hl(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Yi(t),l.updater=$l,t.stateNode=l,l._reactInternals=t,si(t,r,e,n),t=ai(null,t,r,!0,s,n)):(t.tag=0,ee&&s&&Ui(t),_e(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(el(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=zm(r),e=Ye(r,e),l){case 0:t=oi(null,t,r,e,n);break e;case 1:t=ma(null,t,r,e,n);break e;case 11:t=da(null,t,r,e,n);break e;case 14:t=fa(null,t,r,Ye(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),oi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),ma(e,t,r,l,n);case 3:e:{if(vc(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,l=s.element,Wu(e,t),wl(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=Tn(Error(_(423)),t),t=pa(e,t,r,n,l);break e}else if(r!==l){l=Tn(Error(_(424)),t),t=pa(e,t,r,n,l);break e}else for(Re=Tt(t.stateNode.containerInfo.firstChild),Oe=t,ee=!0,Ze=null,n=Hu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===l){t=xt(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return Ku(t),e===null&&ni(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,Zs(r,l)?o=null:s!==null&&Zs(r,s)&&(t.flags|=32),yc(e,t),_e(e,t,o,n),t.child;case 6:return e===null&&ni(t),null;case 13:return wc(e,t,n);case 4:return qi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=En(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),da(e,t,r,l,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,s=t.memoizedProps,o=l.value,q(yl,r._currentValue),r._currentValue=o,s!==null)if(et(s.value,o)){if(s.children===l.children&&!Le.current){t=xt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=ft(-1,n&-n),u.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?u.next=u:(u.next=h.next,h.next=u),d.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),ri(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ri(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}_e(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Nn(t,n),l=We(l),r=r(l),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,l=Ye(r,t.pendingProps),l=Ye(r.type,l),fa(e,t,r,l,n);case 15:return xc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),el(e,t),t.tag=1,ze(r)?(e=!0,hl(t)):e=!1,Nn(t,n),mc(t,r,l),si(t,r,l,n),ai(null,t,r,!0,e,n);case 19:return kc(e,t,n);case 22:return gc(e,t,n)}throw Error(_(156,t.tag))};function Oc(e,t){return cu(e,t)}function Lm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function He(e,t,n,r){return new Lm(e,t,n,r)}function fo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zm(e){if(typeof e=="function")return fo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pi)return 11;if(e===Li)return 14}return 2}function Dt(e,t){var n=e.alternate;return n===null?(n=He(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rl(e,t,n,r,l,s){var o=2;if(r=e,typeof e=="function")fo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case on:return Gt(n.children,l,s,t);case Ti:o=8,l|=8;break;case Ts:return e=He(12,n,t,l|2),e.elementType=Ts,e.lanes=s,e;case Ps:return e=He(13,n,t,l),e.elementType=Ps,e.lanes=s,e;case Ls:return e=He(19,n,t,l),e.elementType=Ls,e.lanes=s,e;case Ka:return Ul(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qa:o=10;break e;case Wa:o=9;break e;case Pi:o=11;break e;case Li:o=14;break e;case wt:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=He(o,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function Gt(e,t,n,r){return e=He(7,e,r,t),e.lanes=n,e}function Ul(e,t,n,r){return e=He(22,e,r,t),e.elementType=Ka,e.lanes=n,e.stateNode={isHidden:!1},e}function _s(e,t,n){return e=He(6,e,null,t),e.lanes=n,e}function bs(e,t,n){return t=He(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=is(0),this.expirationTimes=is(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=is(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function mo(e,t,n,r,l,s,o,a,u){return e=new Dm(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=He(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yi(s),e}function Mm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:sn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ic(e){if(!e)return At;e=e._reactInternals;e:{if(rn(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ze(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(ze(n))return Iu(e,n,t)}return t}function $c(e,t,n,r,l,s,o,a,u){return e=mo(n,r,!0,e,l,s,o,a,u),e.context=Ic(null),n=e.current,r=be(),l=zt(n),s=ft(r,l),s.callback=t??null,Pt(n,s,l),e.current.lanes=l,kr(e,l,r),De(e,r),e}function Bl(e,t,n,r){var l=t.current,s=be(),o=zt(l);return n=Ic(n),t.context===null?t.context=n:t.pendingContext=n,t=ft(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pt(l,t,o),e!==null&&(Je(e,l,o,s),Zr(e,l,o)),o}function Cl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ja(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function po(e,t){ja(e,t),(e=e.alternate)&&ja(e,t)}function Am(){return null}var Fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function ho(e){this._internalRoot=e}Hl.prototype.render=ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Bl(e,t,null,null)};Hl.prototype.unmount=ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jt(function(){Bl(null,e,null,null)}),t[pt]=null}};function Hl(e){this._internalRoot=e}Hl.prototype.unstable_scheduleHydration=function(e){if(e){var t=gu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&t!==0&&t<Nt[n].priority;n++);Nt.splice(n,0,e),n===0&&vu(e)}};function xo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ql(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _a(){}function Rm(e,t,n,r,l){if(l){if(typeof r=="function"){var s=r;r=function(){var d=Cl(o);s.call(d)}}var o=$c(t,r,e,0,null,!1,!1,"",_a);return e._reactRootContainer=o,e[pt]=o.current,ur(e.nodeType===8?e.parentNode:e),Jt(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var d=Cl(u);a.call(d)}}var u=mo(e,0,!1,null,null,!1,!1,"",_a);return e._reactRootContainer=u,e[pt]=u.current,ur(e.nodeType===8?e.parentNode:e),Jt(function(){Bl(t,u,n,r)}),u}function Wl(e,t,n,r,l){var s=n._reactRootContainer;if(s){var o=s;if(typeof l=="function"){var a=l;l=function(){var u=Cl(o);a.call(u)}}Bl(t,o,e,l)}else o=Rm(n,t,e,l,r);return Cl(o)}hu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hn(t.pendingLanes);n!==0&&(Mi(t,n|1),De(t,ie()),!(Q&6)&&(Pn=ie()+500,It()))}break;case 13:Jt(function(){var r=ht(e,1);if(r!==null){var l=be();Je(r,e,1,l)}}),po(e,1)}};Ai=function(e){if(e.tag===13){var t=ht(e,134217728);if(t!==null){var n=be();Je(t,e,134217728,n)}po(e,134217728)}};xu=function(e){if(e.tag===13){var t=zt(e),n=ht(e,t);if(n!==null){var r=be();Je(n,e,t,r)}po(e,t)}};gu=function(){return K};yu=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};Vs=function(e,t,n){switch(t){case"input":if(Ms(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Rl(r);if(!l)throw Error(_(90));Ya(r),Ms(r,l)}}}break;case"textarea":Za(e,n);break;case"select":t=n.value,t!=null&&yn(e,!!n.multiple,t,!1)}};lu=ao;su=Jt;var Om={usingClientEntryPoint:!1,Events:[Sr,dn,Rl,nu,ru,ao]},Vn={findFiberByHostInstance:Ht,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Im={bundleType:Vn.bundleType,version:Vn.version,rendererPackageName:Vn.rendererPackageName,rendererConfig:Vn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=au(e),e===null?null:e.stateNode},findFiberByHostInstance:Vn.findFiberByHostInstance||Am,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qr.isDisabled&&Qr.supportsFiber)try{zl=Qr.inject(Im),st=Qr}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Om;$e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xo(t))throw Error(_(200));return Mm(e,t,null,n)};$e.createRoot=function(e,t){if(!xo(e))throw Error(_(299));var n=!1,r="",l=Fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=mo(e,1,!1,null,null,n,!1,r,l),e[pt]=t.current,ur(e.nodeType===8?e.parentNode:e),new ho(t)};$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=au(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e){return Jt(e)};$e.hydrate=function(e,t,n){if(!Ql(t))throw Error(_(200));return Wl(null,e,t,!0,n)};$e.hydrateRoot=function(e,t,n){if(!xo(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,l=!1,s="",o=Fc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=$c(t,null,e,1,n??null,l,!1,s,o),e[pt]=t.current,ur(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Hl(t)};$e.render=function(e,t,n){if(!Ql(t))throw Error(_(200));return Wl(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(_(40));return e._reactRootContainer?(Jt(function(){Wl(null,null,e,!1,function(){e._reactRootContainer=null,e[pt]=null})}),!0):!1};$e.unstable_batchedUpdates=ao;$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ql(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Wl(e,t,n,!1,r)};$e.version="18.3.1-next-f1338f8080-20240426";function Vc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vc)}catch(e){console.error(e)}}Vc(),Va.exports=$e;var $m=Va.exports,ba=$m;Es.createRoot=ba.createRoot,Es.hydrateRoot=ba.hydrateRoot;/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Fm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uc=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var Vm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Um=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:s,iconNode:o,...a},u)=>j.createElement("svg",{ref:u,...Vm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Uc("lucide",l),...a},[...o.map(([d,h])=>j.createElement(d,h)),...Array.isArray(s)?s:[s]]));/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const F=(e,t)=>{const n=j.forwardRef(({className:r,...l},s)=>j.createElement(Um,{ref:s,iconNode:t,className:Uc(`lucide-${Fm(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Bc=F("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Hc=F("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Bm=F("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ea=F("CalendarDays",[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _r=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Hm=F("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Qm=F("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const br=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const en=F("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yr=F("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wm=F("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Qc=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Km=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ca=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Kl=F("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Gm=F("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ym=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const qm=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const go=F("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Zm=F("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Xm=F("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Jm=F("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const vr=F("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ep=F("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const tn=F("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const tp=F("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wc=F("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ta=F("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const np=F("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const rp=F("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Kc=F("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",key:"oel41y"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Gc=F("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const lp=F("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const sp=F("TableProperties",[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Bt=F("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Tl=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ip=F("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const wi=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ll=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const op=F("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"}]]);/**
|
|
* @license lucide-react v0.424.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Yc=F("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ap({branding:e,user:t,activeTab:n,onChangeTab:r,themeMode:l,onChangeThemeMode:s,onLogout:o,onOpenAuth:a,onOpenCreateEvent:u,onOpenTemplates:d,onOpenProfile:h,onOpenAdmin:g,pwaInstallPrompt:x,onInstallPwa:k}){const y=(e==null?void 0:e.primary_color)||"var(--brand-primary)",w=()=>{s(l==="dark"?"light":l==="light"?"auto":"dark")};return i.jsxs("header",{className:"bg-surface border-b border-grid sticky top-0 z-40",children:[i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between gap-4",children:[i.jsxs("div",{className:"flex items-center space-x-3 shrink-0",children:[i.jsx("div",{onClick:()=>r("home"),style:{backgroundColor:y},className:"w-8 h-8 rounded-sm flex items-center justify-center text-white font-bold cursor-pointer shadow-sm",children:e!=null&&e.logo_url?i.jsx("img",{src:e.logo_url,alt:"Logo",className:"w-4 h-4 object-contain"}):i.jsx(_r,{className:"w-4 h-4"})}),i.jsxs("div",{onClick:()=>r("home"),className:"cursor-pointer",children:[i.jsx("h1",{className:"font-serif text-base font-bold tracking-tight text-main leading-none",children:(e==null?void 0:e.app_name)||"Schichtplaner"}),i.jsx("div",{className:"text-[10px] font-mono text-muted mt-1 uppercase tracking-wider flex items-center gap-1.5",children:t?i.jsxs("span",{className:"text-emerald-500 font-semibold",children:["[ ",t.display_name||t.username," ]"]}):i.jsx("span",{className:"text-amber-500 font-semibold",children:"[ GAST-MODUS ]"})})]})]}),i.jsxs("nav",{className:"hidden md:flex items-center gap-2",children:[i.jsxs("button",{onClick:()=>r("home"),className:`px-3 py-1.5 rounded-sm text-xs font-mono transition flex items-center gap-1.5 border ${n==="home"?"bg-surface-hover text-main font-bold border-grid":"text-muted hover:text-main border-transparent"}`,children:[i.jsx(Ca,{className:"w-3.5 h-3.5"})," Startseite"]}),i.jsxs("button",{onClick:()=>r("calendar"),className:`px-3 py-1.5 rounded-sm text-xs font-mono transition flex items-center gap-1.5 border ${n==="calendar"?"bg-surface-hover text-main font-bold border-grid":"text-muted hover:text-main border-transparent"}`,children:[i.jsx(Ea,{className:"w-3.5 h-3.5"})," Kalender"]}),((t==null?void 0:t.is_admin_user)||(t==null?void 0:t.is_staff)||(t==null?void 0:t.is_superuser))&&i.jsxs("button",{onClick:()=>r("admin"),className:`px-3 py-1.5 rounded-sm text-xs font-mono transition flex items-center gap-1.5 border ${n==="admin"?"bg-surface-hover text-main font-bold border-grid":"text-muted hover:text-main border-transparent"}`,children:[i.jsx(Ta,{className:"w-3.5 h-3.5 text-indigo-400"})," Admin"]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("button",{onClick:w,className:"h-8 px-2.5 rounded-sm text-xs font-mono bg-subtle hover:bg-surface-hover text-main border border-grid transition flex items-center gap-1.5",title:`Design-Modus: ${l.toUpperCase()}`,children:l==="dark"?i.jsxs(i.Fragment,{children:[i.jsx(Xm,{className:"w-3.5 h-3.5 text-indigo-400"}),i.jsx("span",{className:"hidden lg:inline text-[11px] font-bold",children:"DARK"})]}):l==="light"?i.jsxs(i.Fragment,{children:[i.jsx(lp,{className:"w-3.5 h-3.5 text-amber-500"}),i.jsx("span",{className:"hidden lg:inline text-[11px] font-bold",children:"LIGHT"})]}):i.jsxs(i.Fragment,{children:[i.jsx(Zm,{className:"w-3.5 h-3.5 text-blue-500"}),i.jsx("span",{className:"hidden lg:inline text-[11px] font-bold",children:"AUTO"})]})}),x&&i.jsxs("button",{onClick:k,className:"h-8 px-2.5 rounded-sm text-xs font-mono bg-emerald-500/10 text-emerald-500 border border-emerald-500/20 hover:bg-emerald-500/20 transition flex items-center gap-1",children:[i.jsx(Gc,{className:"w-3 h-3"})," PWA"]}),t?i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:u,style:{backgroundColor:y},className:"h-8 px-3 rounded-sm text-xs font-mono font-bold text-white transition flex items-center gap-1 shadow-sm hover:brightness-110",children:[i.jsx(tn,{className:"w-3.5 h-3.5"})," Event"]}),i.jsxs("button",{onClick:d,className:"h-8 px-2.5 rounded-sm text-xs font-mono bg-subtle hover:bg-surface-hover text-main border border-grid transition hidden sm:flex items-center gap-1",title:"Vorlagen",children:[i.jsx(Kl,{className:"w-3.5 h-3.5 text-muted"})," Vorlagen"]}),i.jsxs("button",{onClick:h,className:"h-8 px-2.5 rounded-sm text-xs font-mono bg-subtle hover:bg-surface-hover text-main border border-grid transition flex items-center gap-1",title:"Profil & Namen ändern",children:[i.jsx(vr,{className:"w-3.5 h-3.5 text-amber-500"})," Profil"]}),(t.is_admin_user||t.is_staff||t.is_superuser)&&i.jsxs("button",{onClick:()=>r("admin"),className:`h-8 px-2.5 rounded-sm text-xs font-mono transition flex items-center gap-1 border ${n==="admin"?"bg-indigo-500/20 text-indigo-300 border-indigo-500/40 font-bold":"bg-indigo-500/10 hover:bg-indigo-500/20 text-indigo-400 border-indigo-500/30"}`,title:"Admin-Zentrale",children:[i.jsx(Ta,{className:"w-3.5 h-3.5"})," Admin"]}),i.jsx("div",{className:"h-4 w-px bg-grid mx-1"}),i.jsx("button",{onClick:o,className:"h-8 w-8 rounded-sm text-muted hover:text-red-500 hover:bg-red-500/10 border border-transparent hover:border-red-500/20 transition flex items-center justify-center",title:"Abmelden",children:i.jsx(Ym,{className:"w-3.5 h-3.5"})})]}):i.jsxs("button",{onClick:a,style:{backgroundColor:y},className:"h-8 px-3.5 rounded-sm text-xs font-mono font-bold text-white transition hover:brightness-110 flex items-center gap-1.5 shadow-sm",children:[i.jsx(ll,{className:"w-3.5 h-3.5"})," Anmelden"]})]})]}),i.jsxs("div",{className:"flex md:hidden items-center justify-around border-t border-grid py-2 bg-subtle text-xs font-mono",children:[i.jsxs("button",{onClick:()=>r("home"),className:`flex items-center gap-1 px-3 py-1.5 rounded-sm border ${n==="home"?"text-main font-bold bg-surface border-grid":"text-muted border-transparent"}`,children:[i.jsx(Ca,{className:"w-3.5 h-3.5"})," Start"]}),i.jsxs("button",{onClick:()=>r("calendar"),className:`flex items-center gap-1 px-3 py-1.5 rounded-sm border ${n==="calendar"?"text-main font-bold bg-surface border-grid":"text-muted border-transparent"}`,children:[i.jsx(Ea,{className:"w-3.5 h-3.5"})," Termine"]}),i.jsxs("button",{onClick:()=>r("schedule"),className:`flex items-center gap-1 px-3 py-1.5 rounded-sm border ${n==="schedule"?"text-main font-bold bg-surface border-grid":"text-muted border-transparent"}`,children:[i.jsx(sp,{className:"w-3.5 h-3.5"})," Schichtplan"]})]})]})}function up({event:e,user:t,onSignupClick:n,onCancelClick:r,onRemoveUserFromShift:l,onGenerateClaimLink:s,onExportPdf:o,onPrintView:a,onEditEvent:u}){var g,x;if(!e||!e.task_areas||e.task_areas.length===0)return i.jsxs("div",{className:"hallmark-panel rounded-sm p-12 text-center border border-grid font-mono",children:[i.jsx(yr,{className:"w-8 h-8 text-muted mx-auto mb-3"}),i.jsx("h3",{className:"font-serif text-xl font-bold text-main uppercase",children:"Keine Aufgabenfelder vorhanden"}),i.jsx("p",{className:"text-xs text-muted mt-1 mb-4",children:"[ Event hat noch keine definierten Aufgabenfelder oder Schichten ]"}),t&&(t.is_admin_user||t.is_staff||t.is_superuser||(e==null?void 0:e.created_by)===t.id||((g=e==null?void 0:e.created_by)==null?void 0:g.id)===t.id)&&u&&i.jsxs("button",{onClick:()=>u(e),className:"px-4 py-2 rounded-sm bg-indigo-500/10 hover:bg-indigo-500/20 text-indigo-400 border border-indigo-500/30 font-bold text-xs inline-flex items-center gap-2",children:[i.jsx(vr,{className:"w-4 h-4"})," SCHICHTEN & BEREICHE ANLEGEN"]})]});const d=!t,h=t&&(t.is_admin_user||t.is_staff||t.is_superuser||e.created_by===t.id||((x=e.created_by)==null?void 0:x.id)===t.id);return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"hallmark-panel rounded-sm p-6 sm:p-8 border border-grid flex flex-col md:flex-row md:items-center justify-between gap-4",children:[i.jsxs("div",{className:"space-y-1 font-mono",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted mb-1",children:[i.jsxs("span",{className:"bg-subtle px-2.5 py-0.5 rounded-sm border border-grid font-bold text-main",children:[new Date(e.start_date).toLocaleDateString("de-DE")," — ",new Date(e.end_date).toLocaleDateString("de-DE")]}),e.location&&i.jsxs("span",{className:"flex items-center gap-1 text-muted",children:[i.jsx(go,{className:"w-3.5 h-3.5 shrink-0"}),e.location]}),e.is_active===!1&&i.jsx("span",{className:"px-2 py-0.5 rounded-sm bg-amber-500/10 text-amber-500 border border-amber-500/20 font-bold",children:"[ DEAKTIVIERT ]"})]}),i.jsx("h2",{className:"font-serif text-3xl sm:text-4xl font-bold uppercase tracking-tight text-main",children:e.title}),e.description&&i.jsx("p",{className:"text-xs font-sans text-muted max-w-2xl mt-1",children:e.description})]}),i.jsxs("div",{className:"flex items-center gap-2 no-print font-mono text-xs shrink-0",children:[h&&u&&i.jsxs("button",{onClick:()=>u(e),className:"px-3.5 py-1.5 rounded-sm bg-indigo-500/10 hover:bg-indigo-500/20 text-indigo-400 border border-indigo-500/30 transition flex items-center gap-1.5 font-bold",title:"Schichten und Aufgabenbereiche für diese Veranstaltung bearbeiten",children:[i.jsx(vr,{className:"w-3.5 h-3.5"})," SCHICHTEN BEARBEITEN"]}),i.jsxs("button",{onClick:a,className:"px-3.5 py-1.5 rounded-sm bg-surface hover:bg-surface-hover text-main border border-grid transition flex items-center gap-1.5 font-bold",children:[i.jsx(tp,{className:"w-3.5 h-3.5"})," DRUCKEN"]}),i.jsxs("button",{onClick:o,className:"px-3.5 py-1.5 rounded-sm bg-surface hover:bg-surface-hover text-main border border-grid transition flex items-center gap-1.5 font-bold",children:[i.jsx(Wm,{className:"w-3.5 h-3.5"})," PDF"]})]})]}),d&&i.jsxs("div",{className:"p-3.5 rounded-sm bg-amber-500/10 border border-amber-500/20 text-amber-500 text-xs font-mono flex items-center gap-2",children:[i.jsx(Kc,{className:"w-4 h-4 shrink-0 text-amber-500"}),i.jsxs("span",{children:["[ GAST-DATENSCHUTZ ]: Belegungszahlen sichtbar, Namensanzeige aus Datenschutzgründen ",i.jsx("strong",{children:"anonymisiert"}),"."]})]}),i.jsx("div",{className:"hallmark-panel rounded-sm border border-grid overflow-hidden",children:i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full text-left border-collapse",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"bg-subtle border-b border-grid text-[11px] font-mono text-muted uppercase tracking-wider",children:[i.jsx("th",{className:"py-3.5 px-4 w-1/4",children:"Aufgabenfeld"}),i.jsx("th",{className:"py-3.5 px-4 w-1/4",children:"Schicht & Zeitraum"}),i.jsx("th",{className:"py-3.5 px-4 w-1/6",children:"Qualifikation"}),i.jsx("th",{className:"py-3.5 px-4 w-1/4",children:"Belegung & Personen"}),i.jsx("th",{className:"py-3.5 px-4 w-1/6 text-right",children:"Aktion"})]})}),i.jsx("tbody",{className:"divide-y divide-grid text-xs font-sans",children:e.task_areas.map(k=>!k.shifts||k.shifts.length===0?i.jsxs("tr",{children:[i.jsx("td",{className:"py-3.5 px-4 font-serif text-lg font-bold text-main uppercase",children:k.name}),i.jsx("td",{colSpan:4,className:"py-3.5 px-4 text-muted font-mono text-[11px]",children:"[ Keine Schichten angelegt ]"})]},`area-${k.id}`):k.shifts.map((y,w)=>{const R=w===0,f=y.is_full,m=!!(t?y.signups.find(S=>!S.is_guest&&S.display_name===t.display_name):null),v=y.required_skills&&y.required_skills.length>0;return i.jsxs("tr",{className:"hover:bg-surface-hover/60 transition",children:[R?i.jsxs("td",{rowSpan:k.shifts.length,className:"py-3.5 px-4 font-serif text-lg font-bold text-main uppercase bg-subtle/80 align-top border-r border-grid",children:[i.jsx("div",{children:k.name}),k.description&&i.jsx("div",{className:"text-[11px] font-sans font-normal text-muted mt-0.5",children:k.description})]}):null,i.jsxs("td",{className:"py-3.5 px-4",children:[i.jsx("div",{className:"font-semibold text-main",children:y.title}),i.jsxs("div",{className:"text-[11px] font-mono text-muted flex items-center gap-1 mt-0.5",children:[i.jsx(yr,{className:"w-3 h-3 text-muted shrink-0"}),i.jsxs("span",{children:[y.start_time," — ",y.end_time," Uhr"]})]})]}),i.jsx("td",{className:"py-3.5 px-4 font-mono",children:v?i.jsx("div",{className:"flex flex-wrap gap-1",children:y.required_skills.map(S=>i.jsxs("span",{style:{backgroundColor:`${S.color}15`,borderColor:`${S.color}35`,color:S.color},className:"px-2 py-0.5 rounded-sm text-[10px] font-semibold border flex items-center gap-1",children:[i.jsx(Bm,{className:"w-3 h-3 shrink-0"})," ",S.name]},S.id))}):i.jsx("span",{className:"text-[11px] text-muted",children:"—"})}),i.jsxs("td",{className:"py-3.5 px-4 font-mono",children:[i.jsx("div",{className:"flex items-center gap-2",children:i.jsxs("span",{className:`px-2 py-0.5 rounded-sm text-[11px] font-bold border ${f?"bg-red-500/10 text-red-500 border-red-500/20":"bg-emerald-500/10 text-emerald-500 border-emerald-500/20"}`,children:["[ ",y.signups_count," / ",y.max_participants," BELEGT ]"]})}),i.jsx("div",{className:"mt-2 space-y-1 font-sans",children:y.signups.map(S=>i.jsxs("div",{className:"text-[11px] text-muted flex items-center justify-between gap-2 p-1.5 rounded-sm bg-subtle border border-grid",children:[i.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[i.jsx(Tl,{className:"w-3 h-3 text-muted shrink-0"}),i.jsx("span",{className:"truncate",children:S.display_name}),S.is_guest&&i.jsx("span",{className:"text-[9px] font-mono text-amber-500 px-1 rounded-sm bg-amber-500/10 border border-amber-500/20 font-bold",children:"GAST"})]}),i.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[t&&S.is_guest&&s&&i.jsxs("button",{onClick:()=>s(S),className:"text-indigo-400 hover:text-indigo-300 transition p-1 rounded-sm bg-indigo-500/10 hover:bg-indigo-500/20 border border-indigo-500/20 flex items-center gap-1 text-[10px] font-mono font-bold",title:"Konto-Einladungslink für diese Gast-Eintragung kopieren",children:[i.jsx(ip,{className:"w-3 h-3"})," LINK"]}),h&&l&&i.jsx("button",{onClick:()=>l(y,S.id),className:"text-muted hover:text-red-500 transition p-1 rounded-sm hover:bg-red-500/10",title:"Person aus dieser Schicht entfernen",children:i.jsx(wi,{className:"w-3.5 h-3.5"})})]})]},S.id))})]}),i.jsx("td",{className:"py-3.5 px-4 text-right font-mono",children:m?i.jsxs("button",{onClick:()=>r(y),className:"px-3 py-1.5 rounded-sm text-xs font-semibold bg-red-500/10 hover:bg-red-500/20 text-red-500 border border-red-500/20 transition flex items-center gap-1 ml-auto",children:[i.jsx(wi,{className:"w-3.5 h-3.5"})," AUSTRAGEN"]}):f?i.jsx("span",{className:"text-xs text-muted font-bold",children:"[ VOLL ]"}):i.jsxs("button",{onClick:()=>n(y),style:{backgroundColor:"var(--brand-primary)"},className:"px-3.5 py-1.5 rounded-sm text-xs font-bold text-white transition hover:brightness-110 flex items-center gap-1 ml-auto shadow-sm",children:[i.jsx(en,{className:"w-3.5 h-3.5"})," EINTRAGEN"]})})]},`shift-${y.id}`)}))})]})})})]})}function cp({shift:e,onClose:t,onSubmit:n}){const[r,l]=j.useState(""),[s,o]=j.useState(""),[a,u]=j.useState(!1),[d,h]=j.useState(""),[g,x]=j.useState(!1);j.useEffect(()=>{const w=localStorage.getItem("guest_display_name")||"";w&&l(w)},[]);const k=()=>{const w="acaptcha-verified-"+Math.random().toString(36).substring(2,10);o(w),u(!0)},y=async w=>{if(w.preventDefault(),h(""),!r.trim()){h("Bitte gib deinen Namen ein.");return}if(!a||!s){h("Bitte löse zuerst das Captcha.");return}localStorage.setItem("guest_display_name",r.trim()),x(!0);try{await n({guest_name:r.trim(),captcha_token:s}),t()}catch(R){h(R.message||"Eintragen fehlgeschlagen.")}finally{x(!1)}};return i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/80 backdrop-blur-sm",children:i.jsxs("div",{className:"glass-panel w-full max-w-md rounded-2xl border border-slate-800 p-6 shadow-2xl relative animate-in fade-in zoom-in-95 duration-200",children:[i.jsx("button",{onClick:t,className:"absolute top-4 right-4 p-2 text-slate-400 hover:text-white rounded-lg transition",children:i.jsx(Yc,{className:"w-5 h-5"})}),i.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[i.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-500/10 text-blue-400 border border-blue-500/20 flex items-center justify-center",children:i.jsx(Tl,{className:"w-5 h-5"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-bold text-lg text-white",children:"Als Gast eintragen"}),i.jsxs("p",{className:"text-xs text-slate-400",children:["Schicht: ",e==null?void 0:e.title," (",e==null?void 0:e.start_time," - ",e==null?void 0:e.end_time,")"]})]})]}),d&&i.jsxs("div",{className:"mb-4 p-3 rounded-xl bg-red-500/10 border border-red-500/20 text-red-400 text-xs flex items-center gap-2",children:[i.jsx(br,{className:"w-4 h-4 shrink-0"}),i.jsx("span",{children:d})]}),i.jsxs("form",{onSubmit:y,className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs font-semibold text-slate-300 mb-1",children:"Dein Name / Anzeigename"}),i.jsx("input",{type:"text",required:!0,value:r,onChange:w=>l(w.target.value),placeholder:"z. B. Alex Muster",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900 border border-slate-800 text-white text-sm focus:outline-none focus:border-blue-500 transition"}),i.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"Dein Name wird in deiner Sitzung gespeichert. Falls du später ein Konto mit diesem Namen erstellst, werden deine Gast-Schichten automatisch übertragen!"})]}),i.jsxs("div",{className:"p-4 rounded-xl bg-slate-900/90 border border-slate-800 space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:"text-xs font-semibold text-slate-300 flex items-center gap-1.5",children:[i.jsx(rp,{className:"w-4 h-4 text-emerald-400"})," Security Check (acaptcha.vercel.app)"]}),i.jsx("a",{href:"https://acaptcha.vercel.app/",target:"_blank",rel:"noreferrer",className:"text-[10px] text-blue-400 hover:underline",children:"Website öffnen"})]}),i.jsxs("div",{className:"border border-dashed border-slate-700 rounded-lg p-3 text-center bg-slate-950/60",children:[i.jsx("iframe",{src:"https://acaptcha.vercel.app/",title:"acaptcha",className:"w-full h-16 border-0 rounded"}),i.jsx("div",{className:"mt-2 flex items-center justify-center gap-2",children:a?i.jsxs("div",{className:"text-xs font-medium text-emerald-400 flex items-center gap-1",children:[i.jsx(en,{className:"w-4 h-4"})," Captcha erfolgreich verifiziert!"]}):i.jsxs("button",{type:"button",onClick:k,className:"px-3 py-1.5 text-xs font-semibold rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white transition flex items-center gap-1",children:[i.jsx(en,{className:"w-3.5 h-3.5"})," Captcha gelöst bestätigen"]})})]})]}),i.jsxs("div",{className:"pt-2 flex justify-end gap-2",children:[i.jsx("button",{type:"button",onClick:t,className:"px-4 py-2 rounded-xl text-xs font-semibold text-slate-400 hover:bg-slate-800 transition",children:"Abbrechen"}),i.jsx("button",{type:"submit",disabled:g,className:"px-5 py-2 rounded-xl text-xs font-bold bg-blue-600 hover:bg-blue-500 text-white transition shadow-lg shadow-blue-600/30 disabled:opacity-50",children:g?"Eintragen...":"Jetzt eintragen"})]})]})]})})}const dp="/api",ki=()=>localStorage.getItem("auth_token"),Pl=e=>{e?localStorage.setItem("auth_token",e):localStorage.removeItem("auth_token")},$=async(e,t={})=>{const n=ki(),r={"Content-Type":"application/json",...n?{Authorization:`Token ${n}`}:{},...t.headers},l=await fetch(`${dp}${e}`,{...t,headers:r}),s=l.headers.get("content-type");let o=null;if(s&&s.includes("application/json")&&(o=await l.json()),!l.ok){let a="Ein Fehler ist aufgetreten.";throw o&&(typeof o.error=="string"?a=o.error:typeof o.detail=="string"?a=o.detail:o.email?a=Array.isArray(o.email)?o.email[0]:o.email:o.username?a=Array.isArray(o.username)?o.username[0]:o.username:o.non_field_errors&&(a=o.non_field_errors[0])),new Error(a)}return o};function fp({onClose:e,onSuccess:t,claimToken:n,prefilledGuestName:r}){const[l,s]=j.useState(!!(n||r)),[o,a]=j.useState(""),[u,d]=j.useState(""),[h,g]=j.useState(""),[x,k]=j.useState(r||""),[y,w]=j.useState(null),[R,f]=j.useState(""),[c,m]=j.useState(!1);j.useEffect(()=>{v()},[]);const v=async()=>{try{const b=await $("/users/restriction-setting/");w(b)}catch{}},S=async b=>{b.preventDefault(),f(""),m(!0);try{if(l){const N={username:o,email:u,password:h,display_name:x||o};n&&(N.claim_token=n);const E=await $("/users/register/",{method:"POST",body:JSON.stringify(N)});if(E.requires_approval){t(null,E.message),e();return}Pl(E.token),t(E.user,E.message)}else{const N=await $("/users/login/",{method:"POST",body:JSON.stringify({username:o,password:h})});Pl(N.token),t(N.user,"Erfolgreich angemeldet!")}e()}catch(N){f(N.message||"Authentifizierung fehlgeschlagen.")}finally{m(!1)}};return i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:i.jsxs("div",{className:"hallmark-panel w-full max-w-md rounded-sm border border-grid p-6 shadow-2xl relative animate-in fade-in zoom-in-95 duration-200",children:[i.jsx("button",{onClick:e,className:"absolute top-4 right-4 p-2 text-muted hover:text-main rounded-sm transition",children:i.jsx(Yc,{className:"w-5 h-5"})}),i.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[i.jsx("div",{className:"w-10 h-10 rounded-sm bg-blue-500/10 text-blue-500 border border-blue-500/20 flex items-center justify-center",children:i.jsx(ll,{className:"w-5 h-5"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-serif font-bold text-lg text-main",children:l?"Konto erstellen":"Anmelden"}),i.jsx("p",{className:"text-xs text-muted font-sans",children:l?"Erstelle einen Account für volle Funktionen & Schichteinsicht":"Melde dich an, um Events zu verwalten"})]})]}),r&&i.jsxs("div",{className:"mb-4 p-3 rounded-sm bg-amber-500/10 border border-amber-500/20 text-amber-500 text-xs flex items-center gap-2 font-mono",children:[i.jsx(Gc,{className:"w-4 h-4 shrink-0 text-amber-500"}),i.jsxs("span",{children:["Einladung für Gast: ",i.jsx("strong",{children:r}),". Die Schicht wird deinem neuen Konto zugewiesen!"]})]}),(y==null?void 0:y.is_restriction_enabled)&&l&&i.jsxs("div",{className:"mb-4 p-3 rounded-sm bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 text-xs flex items-center gap-2 font-mono",children:[i.jsx(np,{className:"w-4 h-4 shrink-0 text-indigo-400"}),i.jsxs("span",{children:["Registrierungen beschränkt auf: ",i.jsx("strong",{children:y.active_domains.join(", ")})]})]}),R&&i.jsxs("div",{className:"mb-4 p-3 rounded-sm bg-red-500/10 border border-red-500/20 text-red-500 text-xs flex items-center gap-2 font-mono",children:[i.jsx(br,{className:"w-4 h-4 shrink-0"}),i.jsx("span",{children:R})]}),!l&&i.jsxs("div",{className:"mb-5 p-3.5 rounded-sm bg-subtle border border-grid space-y-2 font-mono",children:[i.jsx("div",{className:"text-[11px] font-semibold text-muted uppercase tracking-wider flex items-center justify-between",children:i.jsx("span",{children:"⚡ Dev Schnell-Login"})}),i.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[i.jsxs("button",{type:"button",onClick:()=>{a("admin"),g("adminpassword")},className:"px-2.5 py-1.5 rounded-sm bg-indigo-500/10 hover:bg-indigo-500/20 text-indigo-400 border border-indigo-500/30 text-xs font-semibold transition text-left",children:["👑 Demo Admin",i.jsx("div",{className:"text-[10px] text-indigo-400 font-normal",children:"admin / adminpassword"})]}),i.jsxs("button",{type:"button",onClick:()=>{a("demouser"),g("demouser123")},className:"px-2.5 py-1.5 rounded-sm bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-500 border border-emerald-500/30 text-xs font-semibold transition text-left",children:["👤 Demo User",i.jsx("div",{className:"text-[10px] text-emerald-500 font-normal",children:"demouser / demouser123"})]})]})]}),i.jsxs("form",{onSubmit:S,className:"space-y-4 font-sans",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs font-semibold text-main mb-1 font-mono",children:"Benutzername"}),i.jsxs("div",{className:"relative",children:[i.jsx(ll,{className:"w-4 h-4 absolute left-3 top-3 text-muted"}),i.jsx("input",{type:"text",required:!0,value:o,onChange:b=>a(b.target.value),placeholder:"z. B. max_muster",className:"w-full pl-9 pr-3.5 py-2 rounded-sm input-field text-sm font-mono"})]})]}),l&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs font-semibold text-main mb-1 font-mono",children:"E-Mail-Adresse"}),i.jsxs("div",{className:"relative",children:[i.jsx(qm,{className:"w-4 h-4 absolute left-3 top-3 text-muted"}),i.jsx("input",{type:"email",required:!0,value:u,onChange:b=>d(b.target.value),placeholder:"max@beispiel.de",className:"w-full pl-9 pr-3.5 py-2 rounded-sm input-field text-sm font-mono"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs font-semibold text-main mb-1 font-mono",children:"Anzeigename (für Schichtlisten)"}),i.jsxs("div",{className:"relative",children:[i.jsx(ll,{className:"w-4 h-4 absolute left-3 top-3 text-muted"}),i.jsx("input",{type:"text",value:x,onChange:b=>k(b.target.value),placeholder:"z. B. Max M.",className:"w-full pl-9 pr-3.5 py-2 rounded-sm input-field text-sm font-mono"})]})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs font-semibold text-main mb-1 font-mono",children:"Passwort"}),i.jsxs("div",{className:"relative",children:[i.jsx(Gm,{className:"w-4 h-4 absolute left-3 top-3 text-muted"}),i.jsx("input",{type:"password",required:!0,value:h,onChange:b=>g(b.target.value),placeholder:"••••••••",className:"w-full pl-9 pr-3.5 py-2 rounded-sm input-field text-sm font-mono"})]})]}),i.jsx("button",{type:"submit",disabled:c,style:{backgroundColor:"var(--brand-primary)"},className:"w-full py-2.5 rounded-sm text-xs font-mono font-bold text-white transition hover:brightness-110 shadow-sm",children:c?"Verarbeite...":l?"Registrieren":"Anmelden"})]}),i.jsx("div",{className:"mt-4 pt-4 border-t border-grid text-center",children:i.jsx("button",{type:"button",onClick:()=>{s(!l),f("")},className:"text-xs font-mono text-muted hover:text-main transition",children:l?"Bereits ein Konto? Hier anmelden":"Noch kein Konto? Jetzt registrieren"})})]})})}function mp({events:e,user:t,onSelectEvent:n,onOpenCreateEvent:r,onToggleEventActive:l,onEditEvent:s,branding:o}){const[a,u]=j.useState(""),[d,h]=j.useState("all"),g=new Date().toISOString().split("T")[0],x=e.filter(c=>c.title.toLowerCase().includes(a.toLowerCase())||c.description&&c.description.toLowerCase().includes(a.toLowerCase())||c.location&&c.location.toLowerCase().includes(a.toLowerCase())?d==="upcoming"?c.end_date>=g:!0:!1),k=(o==null?void 0:o.primary_color)||"var(--brand-primary)",y=(o==null?void 0:o.show_community_info_box)??!0,w=(o==null?void 0:o.show_support_box)??!0,R=y||w,f=t&&(t.is_admin_user||t.is_staff||t.is_superuser);return i.jsxs("div",{className:"space-y-8 animate-in fade-in duration-200",children:[i.jsxs("div",{className:"hallmark-panel rounded-sm p-6 sm:p-10 space-y-6 max-w-5xl mx-auto relative border border-grid",children:[i.jsxs("div",{className:"space-y-2 border-b border-grid pb-6",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-[10px] uppercase tracking-widest text-muted border border-grid px-2.5 py-1 rounded-sm inline-block",children:(o==null?void 0:o.app_name)||"SCHICHT- & EVENTPORTAL"}),(o==null?void 0:o.custom_banner_text)&&i.jsxs("span",{className:"font-mono text-[10px] uppercase tracking-widest text-amber-500 bg-amber-500/10 border border-amber-500/20 px-2.5 py-1 rounded-sm inline-block font-bold",children:["📢 ",o.custom_banner_text]})]}),i.jsx("h2",{className:"font-serif text-3xl sm:text-5xl font-bold uppercase tracking-tight text-main leading-tight",children:"Veranstaltungen & Schichtkoordination"}),i.jsx("p",{className:"font-sans text-xs sm:text-sm text-muted max-w-2xl",children:"Hier findest du aktuelle Termine, Arbeitsgruppen, Bar- & Tresendienste und Schichtpläne der Initiative."})]}),i.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-3",children:[i.jsxs("div",{className:"relative flex-1",children:[i.jsx(Wc,{className:"w-4 h-4 absolute left-3.5 top-3 text-muted"}),i.jsx("input",{type:"text",value:a,onChange:c=>u(c.target.value),placeholder:"Veranstaltung, Ort oder Suchbegriff...",className:"w-full pl-10 pr-16 py-2 rounded-sm bg-subtle border border-grid text-main text-xs font-mono focus:outline-none focus:border-muted"}),a&&i.jsx("button",{onClick:()=>u(""),className:"absolute right-3 top-2.5 text-[10px] font-mono text-muted hover:text-main",children:"[ CLEAR ]"})]}),i.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs shrink-0",children:[i.jsxs("button",{onClick:()=>h("all"),className:`px-3.5 py-1.5 rounded-sm transition border ${d==="all"?"bg-surface-hover text-main border-grid font-bold shadow-sm":"bg-subtle text-muted border-grid hover:text-main"}`,children:["ALLE PROGRAMME (",e.length,")"]}),i.jsxs("button",{onClick:()=>h("upcoming"),className:`px-3.5 py-1.5 rounded-sm transition border ${d==="upcoming"?"bg-surface-hover text-main border-grid font-bold shadow-sm":"bg-subtle text-muted border-grid hover:text-main"}`,children:["ANSTEHEND (",e.filter(c=>c.end_date>=g).length,")"]})]})]})]}),i.jsxs("div",{className:"max-w-5xl mx-auto grid grid-cols-1 lg:grid-cols-4 gap-6",children:[i.jsxs("div",{className:`${R?"lg:col-span-3":"lg:col-span-4"} space-y-4`,children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-grid pb-3 font-mono",children:[i.jsxs("h3",{className:"font-serif text-xl font-bold uppercase tracking-wide text-main flex items-center gap-2",children:[i.jsx(_r,{className:"w-4.5 h-4.5 text-muted"})," Termine & Schichten"]}),t&&i.jsxs("button",{onClick:r,style:{backgroundColor:k},className:"px-3.5 py-1.5 rounded-sm text-xs font-mono font-bold text-white transition flex items-center gap-1 hover:brightness-110 shadow-sm",children:[i.jsx(tn,{className:"w-3.5 h-3.5"})," EVENT ANLEGEN"]})]}),x.length===0?i.jsx("div",{className:"hallmark-panel rounded-sm p-12 text-center text-xs font-mono text-muted border border-grid",children:a?`[ Keinen Eintrag für "${a}" gefunden ]`:"[ Keine Veranstaltungen vorhanden ]"}):i.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 ${R?"":"lg:grid-cols-3"} gap-4`,children:x.map(c=>{var N,E,U;const m=((N=c.task_areas)==null?void 0:N.length)||0,v=((E=c.task_areas)==null?void 0:E.reduce((D,J)=>{var A;return D+(((A=J.shifts)==null?void 0:A.length)||0)},0))||0,S=t&&(c.created_by===t.id||((U=c.created_by)==null?void 0:U.id)===t.id),b=f||S;return i.jsxs("div",{className:`hallmark-card rounded-sm p-5 border transition flex flex-col justify-between space-y-4 group overflow-hidden ${c.is_active===!1?"border-amber-500/40 opacity-80 bg-subtle":"border-grid"}`,children:[i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between text-[11px] font-mono text-muted gap-2",children:[i.jsxs("span",{className:"flex items-center gap-1 bg-subtle px-2 py-0.5 rounded-sm border border-grid font-bold shrink-0",children:[i.jsx(yr,{className:"w-3 h-3 text-muted"}),new Date(c.start_date).toLocaleDateString("de-DE")]}),c.is_active===!1?i.jsx("span",{className:"text-amber-500 font-bold px-1.5 py-0.5 rounded-sm bg-amber-500/10 border border-amber-500/20 shrink-0",children:"[ DEAKTIVIERT ]"}):c.location?i.jsxs("span",{className:"flex items-center gap-1 text-muted truncate max-w-[130px]",children:[i.jsx(go,{className:"w-3 h-3 shrink-0"}),i.jsx("span",{className:"truncate",children:c.location})]}):null]}),i.jsx("h4",{className:"font-serif text-lg font-bold uppercase text-main group-hover:text-amber-500 transition line-clamp-2",children:c.title}),c.description&&i.jsx("p",{className:"text-xs text-muted font-sans line-clamp-2",children:c.description}),i.jsxs("div",{className:"text-[10px] font-mono text-muted flex items-center gap-1.5 pt-1",children:[i.jsxs("span",{children:[m," Bereiche"]}),i.jsx("span",{children:"/"}),i.jsxs("span",{children:[v," Schichten"]})]})]}),i.jsx("div",{className:"pt-3 border-t border-grid space-y-2 font-mono",children:i.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[i.jsxs("button",{onClick:()=>n(c.id),className:"flex-1 min-w-[110px] py-1.5 px-3 rounded-sm text-xs font-mono font-bold bg-surface hover:bg-surface-hover text-main border border-grid transition flex items-center justify-center gap-1",children:["Schichtplan ",i.jsx(Hc,{className:"w-3.5 h-3.5"})]}),b&&s&&i.jsxs("button",{onClick:()=>s(c),className:"py-1.5 px-2.5 rounded-sm text-[10px] font-mono font-bold bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 hover:bg-indigo-500/20 transition flex items-center gap-1 shrink-0",title:"Veranstaltung & Schichten bearbeiten",children:[i.jsx(vr,{className:"w-3.5 h-3.5"})," BEARBEITEN"]}),b&&l&&i.jsx("button",{onClick:()=>l(c),className:`py-1.5 px-2 rounded-sm text-[10px] font-mono font-bold transition flex items-center gap-1 border shrink-0 ${c.is_active!==!1?"bg-amber-500/10 text-amber-500 border-amber-500/20 hover:bg-amber-500/20":"bg-emerald-500/10 text-emerald-400 border-emerald-500/20 hover:bg-emerald-500/20"}`,title:c.is_active!==!1?"Deaktivieren":"Aktivieren",children:c.is_active!==!1?i.jsx(Qc,{className:"w-3.5 h-3.5"}):i.jsx(en,{className:"w-3.5 h-3.5"})})]})})]},c.id)})})]}),R&&i.jsxs("div",{className:"space-y-4 font-mono text-xs",children:[y&&i.jsxs("div",{className:"hallmark-panel rounded-sm p-4 border border-grid space-y-3",children:[i.jsx("h4",{className:"font-serif text-sm font-bold uppercase tracking-wide text-main border-b border-grid pb-2",children:(o==null?void 0:o.community_info_title)||"📌 Verein & Infos"}),i.jsx("div",{className:"space-y-2 text-muted text-[11px] whitespace-pre-line",children:(o==null?void 0:o.community_info_text)||`Initiative e.V. Hausverein
|
|
Offene Angebote, DIY-Kultur & engagierte Schichten.`})]}),w&&i.jsxs("div",{className:"hallmark-panel rounded-sm p-4 border border-grid space-y-3",children:[i.jsx("h4",{className:"font-serif text-sm font-bold uppercase tracking-wide text-main border-b border-grid pb-2",children:(o==null?void 0:o.support_box_title)||"❤️ Unterstützen"}),i.jsx("p",{className:"text-[11px] text-muted whitespace-pre-line",children:(o==null?void 0:o.support_box_text)||"Hilf mit als Helfer*in an der Bar, beim Essen kochen oder beim Auf- & Abbau."})]})]})]})]})}function pp({events:e,onSelectEvent:t,branding:n}){const[r,l]=j.useState(new Date),[s,o]=j.useState(null),a=r.getFullYear(),u=r.getMonth(),d=["JANUAR","FEBRUAR","MÄRZ","APRIL","MAI","JUNI","JULI","AUGUST","SEPTEMBER","OKTOBER","NOVEMBER","DEZEMBER"],h=()=>l(new Date(a,u-1,1)),g=()=>l(new Date(a,u+1,1)),x=()=>l(new Date),k=new Date(a,u,1).getDay(),y=k===0?6:k-1,w=new Date(a,u+1,0).getDate(),R=m=>{const v=String(u+1).padStart(2,"0"),S=String(m).padStart(2,"0");return`${a}-${v}-${S}`},f=m=>{const v=R(m);return e.filter(S=>v>=S.start_date&&v<=S.end_date)},c=(n==null?void 0:n.primary_color)||"var(--brand-primary)";return i.jsxs("div",{className:"space-y-6 max-w-5xl mx-auto animate-in fade-in duration-200",children:[i.jsxs("div",{className:"hallmark-panel rounded-sm p-6 sm:p-8 border border-grid flex flex-col sm:flex-row sm:items-center justify-between gap-4 font-mono",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-10 h-10 rounded-sm bg-subtle text-main border border-grid flex items-center justify-center font-bold",children:i.jsx(_r,{className:"w-4 h-4 text-amber-500"})}),i.jsxs("div",{children:[i.jsxs("h2",{className:"font-serif text-3xl sm:text-4xl font-bold uppercase tracking-tight text-main leading-none",children:[d[u]," ",a]}),i.jsx("p",{className:"text-[10px] text-muted uppercase tracking-widest mt-1",children:"— INITIATIVE E.V. TERMIN- & SCHICHTÜBERSICHT —"})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:x,className:"px-3.5 py-1.5 rounded-sm text-xs font-mono font-bold bg-surface hover:bg-surface-hover text-main border border-grid transition",children:"[ HEUTE ]"}),i.jsx("button",{onClick:h,className:"p-1.5 rounded-sm text-muted hover:text-main bg-surface border border-grid transition",title:"Vorheriger Monat",children:i.jsx(Hm,{className:"w-4 h-4"})}),i.jsx("button",{onClick:g,className:"p-1.5 rounded-sm text-muted hover:text-main bg-surface border border-grid transition",title:"Nächster Monat",children:i.jsx(Qm,{className:"w-4 h-4"})})]})]}),i.jsxs("div",{className:"hallmark-panel rounded-sm border border-grid overflow-hidden",children:[i.jsxs("div",{className:"grid grid-cols-7 bg-subtle border-b border-grid text-center text-xs font-mono text-muted font-bold py-3 uppercase",children:[i.jsx("div",{children:"MO"}),i.jsx("div",{children:"DI"}),i.jsx("div",{children:"MI"}),i.jsx("div",{children:"DO"}),i.jsx("div",{children:"FR"}),i.jsx("div",{children:"SA"}),i.jsx("div",{children:"SO"})]}),i.jsxs("div",{className:"grid grid-cols-7 auto-rows-fr divide-x divide-y divide-grid bg-surface text-xs font-mono",children:[Array.from({length:y}).map((m,v)=>i.jsx("div",{className:"min-h-[100px] sm:min-h-[110px] p-2 bg-subtle/50 text-muted opacity-30"},`offset-${v}`)),Array.from({length:w}).map((m,v)=>{const S=v+1,b=f(S),N=new Date().getFullYear()===a&&new Date().getMonth()===u&&new Date().getDate()===S;return i.jsxs("div",{className:`min-h-[100px] sm:min-h-[110px] p-2 flex flex-col justify-between transition ${N?"bg-surface-hover/80 font-bold":"hover:bg-surface-hover/50"}`,children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsx("span",{className:`w-5 h-5 rounded-sm flex items-center justify-center font-mono text-xs ${N?"bg-main text-paper font-bold shadow-sm":"text-muted"}`,children:S}),b.length>0&&i.jsxs("span",{className:"text-[9px] font-mono text-muted",children:[b.length," ",b.length===1?"Event":"Events"]})]}),i.jsx("div",{className:"space-y-1.5 overflow-y-auto max-h-[70px] no-scrollbar",children:b.map(E=>{const U=(s==null?void 0:s.id)===E.id;return i.jsx("button",{onClick:()=>o(E),style:{backgroundColor:U?c:`${c}15`,borderColor:`${c}40`,color:U?"#ffffff":c},className:`w-full text-left px-2 py-1 rounded-sm text-[10px] font-mono font-bold border truncate block hover:brightness-110 transition shadow-sm ${E.is_active===!1?"opacity-50 line-through":""}`,children:E.title},`evt-${E.id}`)})})]},`day-${S}`)})]})]}),s&&i.jsxs("div",{className:"hallmark-panel rounded-sm p-6 border border-grid flex flex-col sm:flex-row sm:items-center justify-between gap-4 font-mono animate-in fade-in duration-200",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted",children:[i.jsxs("span",{className:"flex items-center gap-1 bg-subtle px-2 py-0.5 rounded-sm border border-grid font-bold text-main",children:[i.jsx(yr,{className:"w-3 h-3 text-muted"}),new Date(s.start_date).toLocaleDateString("de-DE")," — ",new Date(s.end_date).toLocaleDateString("de-DE")]}),s.location&&i.jsxs("span",{className:"flex items-center gap-1 text-muted",children:[i.jsx(go,{className:"w-3 h-3"}),s.location]})]}),i.jsx("h3",{className:"font-serif text-2xl font-bold uppercase text-main",children:s.title}),s.description&&i.jsx("p",{className:"text-xs font-sans text-muted max-w-xl",children:s.description})]}),i.jsx("div",{className:"flex items-center gap-2 shrink-0",children:i.jsxs("button",{onClick:()=>t(s.id),style:{backgroundColor:c},className:"px-5 py-2 rounded-sm text-xs font-mono font-bold text-white transition flex items-center gap-1.5 hover:brightness-110 shadow-sm",children:["SCHICHTPLAN ÖFFNEN ",i.jsx(Hc,{className:"w-4 h-4"})]})})]})]})}function hp({branding:e,onRefreshBranding:t,onRefreshEvents:n,skills:r,onRefreshSkills:l}){const[s,o]=j.useState("users"),[a,u]=j.useState(!0),[d,h]=j.useState(""),[g,x]=j.useState(""),[k,y]=j.useState([]),[w,R]=j.useState(""),[f,c]=j.useState([]),[m,v]=j.useState(!1),[S,b]=j.useState(!1),[N,E]=j.useState([]),[U,D]=j.useState(""),[J,A]=j.useState([]),[I,V]=j.useState([]),[W,H]=j.useState(""),[Se,T]=j.useState(""),[O,L]=j.useState("#E05A47"),[Y,le]=j.useState((e==null?void 0:e.app_name)||"Veranstaltungsschichtplaner"),[tt,xe]=j.useState((e==null?void 0:e.logo_url)||""),[ge,fe]=j.useState((e==null?void 0:e.primary_color)||"#E05A47"),[ot,Gl]=j.useState((e==null?void 0:e.custom_banner_text)||""),[$t,Yl]=j.useState((e==null?void 0:e.show_community_info_box)??!0),[Er,ql]=j.useState((e==null?void 0:e.community_info_title)||"📌 Verein & Infos"),[yt,Zl]=j.useState((e==null?void 0:e.community_info_text)||`Initiative e.V. Hausverein
|
|
Offene Angebote, DIY-Kultur & engagierte Schichten.`),[Ft,Xl]=j.useState((e==null?void 0:e.show_support_box)??!0),[Cr,Jl]=j.useState((e==null?void 0:e.support_box_title)||"❤️ Unterstützen"),[C,z]=j.useState((e==null?void 0:e.support_box_text)||"Hilf mit als Helfer*in an der Bar, beim Essen kochen oder beim Auf- & Abbau."),[G,Me]=j.useState(!1);j.useEffect(()=>{ye()},[]);const ye=async()=>{u(!0),h("");try{try{const p=await $("/users/manage-users/");y(p.results||p)}catch{}try{const p=await $("/users/pending/");c(p.results||p)}catch{}try{const p=await $("/users/restriction-setting/");v(p.is_restriction_enabled),b(p.require_admin_approval);const M=await $("/users/domain-rules/");E(M.results||M)}catch{}try{const p=await $("/events/");A(p.results||p)}catch{}try{const p=await $("/templates/");V(p.results||p)}catch{}}catch(p){h(p.message||"Laden der Admin-Daten fehlgeschlagen.")}finally{u(!1)}},je=p=>{x(p),setTimeout(()=>x(""),4e3)},qc=async p=>{try{const M=await $(`/users/manage-users/${p.id}/`,{method:"PATCH",body:JSON.stringify({is_admin_user:!p.is_admin_user})});y(k.map(Ve=>Ve.id===p.id?M:Ve)),je(`Admin-Rechte für ${p.username} aktualisiert.`)}catch(M){h(M.message||"Fehler beim Aktualisieren.")}},Zc=async p=>{try{const M=await $(`/users/manage-users/${p.id}/`,{method:"PATCH",body:JSON.stringify({is_active:!p.is_active})});y(k.map(Ve=>Ve.id===p.id?M:Ve)),je(`Status für ${p.username} auf ${M.is_active?"AKTIV":"DEAKTIVIERT"} gesetzt.`)}catch(M){h(M.message||"Fehler beim Aktualisieren.")}},Xc=async p=>{if(window.confirm(`Benutzer ${p.username} wirklich löschen?`))try{await $(`/users/manage-users/${p.id}/`,{method:"DELETE"}),y(k.filter(M=>M.id!==p.id)),je(`Benutzer ${p.username} gelöscht.`)}catch(M){h(M.message||"Löschen fehlgeschlagen.")}},Jc=async p=>{try{const M=await $(`/users/${p}/approve/`,{method:"POST"});c(f.filter(Ve=>Ve.id!==p)),ye(),je(M.message||"Nutzer freigeschaltet!")}catch(M){h(M.message||"Freischaltung fehlgeschlagen.")}},ed=async p=>{try{const M=await $(`/users/${p}/approve/`,{method:"DELETE"});c(f.filter(Ve=>Ve.id!==p)),je(M.message||"Registrierung abgelehnt.")}catch(M){h(M.message||"Ablehnen fehlgeschlagen.")}},td=async()=>{try{const p=await $("/users/restriction-setting/",{method:"POST",body:JSON.stringify({require_admin_approval:!S})});b(p.require_admin_approval),je(`Admin-Freischaltung ist jetzt ${p.require_admin_approval?"AKTIV":"INAKTIV"}`)}catch(p){h(p.message||"Fehler beim Umschalten.")}},nd=async()=>{try{const p=await $("/users/restriction-setting/",{method:"POST",body:JSON.stringify({is_restriction_enabled:!m})});v(p.is_restriction_enabled),je(`Domain-Beschränkung ist jetzt ${p.is_restriction_enabled?"AKTIV":"INAKTIV"}`)}catch(p){h(p.message||"Fehler beim Umschalten.")}},rd=async p=>{if(p.preventDefault(),!!U.trim())try{const M=await $("/users/domain-rules/",{method:"POST",body:JSON.stringify({domain:U.trim(),is_active:!0})});E([...N,M]),D(""),je("Domain hinzugefügt!")}catch(M){h(M.message||"Fehler beim Hinzufügen der Domain.")}},ld=async p=>{try{await $(`/users/domain-rules/${p}/`,{method:"DELETE"}),E(N.filter(M=>M.id!==p)),je("Domain entfernt.")}catch(M){h(M.message||"Löschen fehlgeschlagen.")}},sd=async p=>{if(p.preventDefault(),!!W.trim())try{await $("/skills/",{method:"POST",body:JSON.stringify({name:W.trim(),description:Se.trim(),color:O})}),H(""),T(""),l(),je("Qualifikation angelegt!")}catch(M){h(M.message||"Fehler beim Anlegen.")}},id=async p=>{if(window.confirm("Qualifikation wirklich löschen?"))try{await $(`/skills/${p}/`,{method:"DELETE"}),l(),je("Qualifikation gelöscht.")}catch(M){h(M.message||"Löschen fehlgeschlagen.")}},od=async p=>{try{const M=await $(`/events/${p.id}/`,{method:"PATCH",body:JSON.stringify({is_active:p.is_active===!1})});A(J.map(Ve=>Ve.id===p.id?M:Ve)),n(),je(`Status für "${p.title}" aktualisiert.`)}catch(M){h(M.message||"Fehler beim Umschalten.")}},ad=async p=>{if(window.confirm("Veranstaltung mit allen Schichten wirklich löschen?"))try{await $(`/events/${p}/`,{method:"DELETE"}),A(J.filter(M=>M.id!==p)),n(),je("Veranstaltung gelöscht.")}catch(M){h(M.message||"Löschen fehlgeschlagen.")}},ud=async p=>{if(window.confirm("Vorlage wirklich löschen?"))try{await $(`/templates/${p}/`,{method:"DELETE"}),V(I.filter(M=>M.id!==p)),je("Vorlage gelöscht.")}catch(M){h(M.message||"Löschen fehlgeschlagen.")}},cd=async p=>{p.preventDefault(),Me(!0),h("");try{await $("/branding/",{method:"POST",body:JSON.stringify({app_name:Y,logo_url:tt,primary_color:ge,custom_banner_text:ot,show_community_info_box:$t,community_info_title:Er,community_info_text:yt,show_support_box:Ft,support_box_title:Cr,support_box_text:C})}),je("Branding & Einstellungen erfolgreich gespeichert!"),t()}catch(M){h(M.message||"Speichern fehlgeschlagen.")}finally{Me(!1)}},es=k.filter(p=>p.username.toLowerCase().includes(w.toLowerCase())||p.email.toLowerCase().includes(w.toLowerCase())||p.display_name&&p.display_name.toLowerCase().includes(w.toLowerCase()));return i.jsxs("div",{className:"space-y-8 max-w-6xl mx-auto animate-in fade-in duration-200",children:[i.jsxs("div",{className:"hallmark-panel rounded-sm p-6 sm:p-8 border border-grid space-y-4",children:[i.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-grid pb-4",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("span",{className:"font-mono text-[10px] uppercase tracking-widest text-muted border border-grid px-2.5 py-0.5 rounded-sm inline-block",children:"SYSTEM CONTROL & GOVERNANCE"}),i.jsx("h2",{className:"font-serif text-3xl sm:text-4xl font-bold uppercase tracking-tight text-main",children:"Administration & System-Zentrale"})]}),i.jsx("div",{className:"flex items-center gap-2 font-mono text-xs shrink-0",children:i.jsxs("div",{className:"bg-subtle px-3 py-2 rounded-sm border border-grid text-right space-y-0.5",children:[i.jsx("div",{className:"font-bold text-emerald-500",children:"[ SYSTEM NORMAL ]"}),i.jsxs("div",{className:"text-[10px] text-muted",children:[k.length," KONTEN • ",J.length," EVENTS"]})]})})]}),i.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto font-mono text-xs no-scrollbar pt-2",children:[i.jsxs("button",{onClick:()=>o("users"),className:`px-4 py-2 rounded-sm transition flex items-center gap-2 border ${s==="users"?"bg-surface-hover text-main font-bold border-grid shadow-sm":"bg-subtle text-muted border-transparent hover:text-main"}`,children:[i.jsx(op,{className:"w-3.5 h-3.5 text-blue-400"})," [ 01: BENUTZER & SICHERHEIT (",k.length,") ]"]}),i.jsxs("button",{onClick:()=>o("events"),className:`px-4 py-2 rounded-sm transition flex items-center gap-2 border ${s==="events"?"bg-surface-hover text-main font-bold border-grid shadow-sm":"bg-subtle text-muted border-transparent hover:text-main"}`,children:[i.jsx(_r,{className:"w-3.5 h-3.5 text-emerald-400"})," [ 02: VERANSTALTUNGEN (",J.length,") ]"]}),i.jsxs("button",{onClick:()=>o("templates"),className:`px-4 py-2 rounded-sm transition flex items-center gap-2 border ${s==="templates"?"bg-surface-hover text-main font-bold border-grid shadow-sm":"bg-subtle text-muted border-transparent hover:text-main"}`,children:[i.jsx(Kl,{className:"w-3.5 h-3.5 text-amber-400"})," [ 03: VORLAGEN & SKILLS ]"]}),i.jsxs("button",{onClick:()=>o("branding"),className:`px-4 py-2 rounded-sm transition flex items-center gap-2 border ${s==="branding"?"bg-surface-hover text-main font-bold border-grid shadow-sm":"bg-subtle text-muted border-transparent hover:text-main"}`,children:[i.jsx(Jm,{className:"w-3.5 h-3.5 text-indigo-400"})," [ 04: BRANDING & SYSTEM ]"]})]})]}),d&&i.jsxs("div",{className:"p-4 rounded-sm bg-red-500/10 border border-red-500/20 text-red-500 text-xs font-mono flex items-center gap-2",children:[i.jsx(br,{className:"w-4 h-4 shrink-0"}),i.jsx("span",{children:d})]}),g&&i.jsxs("div",{className:"p-4 rounded-sm bg-emerald-500/10 border border-emerald-500/20 text-emerald-500 text-xs font-mono flex items-center gap-2",children:[i.jsx(en,{className:"w-4 h-4 shrink-0"}),i.jsx("span",{children:g})]}),s==="users"&&i.jsxs("div",{className:"space-y-6 animate-in fade-in duration-150",children:[f.length>0&&i.jsxs("div",{className:"hallmark-panel rounded-sm p-5 border border-amber-500/40 space-y-3 font-mono",children:[i.jsxs("h3",{className:"font-serif text-lg font-bold uppercase text-amber-400 flex items-center gap-2",children:[i.jsx(yr,{className:"w-4 h-4"})," Ausstehende Freischalt-Anfragen (",f.length,")"]}),i.jsx("div",{className:"space-y-2",children:f.map(p=>i.jsxs("div",{className:"flex items-center justify-between p-3 rounded-sm bg-subtle border border-grid text-xs",children:[i.jsxs("div",{children:[i.jsx("div",{className:"font-bold text-main",children:p.display_name||p.username}),i.jsx("div",{className:"text-[11px] text-muted",children:p.email})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("button",{onClick:()=>Jc(p.id),className:"px-3 py-1 rounded-sm font-bold bg-emerald-600 hover:bg-emerald-500 text-white transition flex items-center gap-1",children:[i.jsx(Tl,{className:"w-3.5 h-3.5"})," FREISCHALTEN"]}),i.jsxs("button",{onClick:()=>ed(p.id),className:"px-2.5 py-1 rounded-sm font-semibold bg-red-500/10 hover:bg-red-500/20 text-red-400 border border-red-500/20 transition flex items-center gap-1",children:[i.jsx(wi,{className:"w-3.5 h-3.5"})," ABLEHNEN"]})]})]},p.id))})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 font-mono",children:[i.jsxs("div",{className:"hallmark-panel rounded-sm p-5 border border-grid space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("h4",{className:"font-bold text-xs uppercase text-main flex items-center gap-2",children:[i.jsx(Tl,{className:"w-4 h-4 text-blue-400"})," Admin-Freischaltung Pflicht"]}),i.jsx("button",{onClick:td,className:`px-3 py-1 rounded-sm text-xs font-bold transition border ${S?"bg-blue-600 text-white border-blue-500":"bg-subtle text-muted border-grid"}`,children:S?"[ AKTIV ]":"[ INAKTIV ]"})]}),i.jsx("p",{className:"text-[11px] text-muted",children:"Neue Registrierungen müssen manuell freigeschaltet werden."})]}),i.jsxs("div",{className:"hallmark-panel rounded-sm p-5 border border-grid space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("h4",{className:"font-bold text-xs uppercase text-main flex items-center gap-2",children:[i.jsx(Kc,{className:"w-4 h-4 text-emerald-400"})," E-Mail Domain-Beschränkung"]}),i.jsx("button",{onClick:nd,className:`px-3 py-1 rounded-sm text-xs font-bold transition border ${m?"bg-emerald-600 text-white border-emerald-500":"bg-subtle text-muted border-grid"}`,children:m?"[ AKTIV ]":"[ INAKTIV ]"})]}),i.jsx("p",{className:"text-[11px] text-muted",children:"Nur freigegebene E-Mail-Domains erlauben."})]})]}),m&&i.jsxs("div",{className:"hallmark-panel rounded-sm p-5 border border-grid space-y-4 font-mono",children:[i.jsx("h4",{className:"font-bold text-xs uppercase text-main",children:"Freigegebene E-Mail-Domains"}),i.jsxs("form",{onSubmit:rd,className:"flex gap-2",children:[i.jsx("input",{type:"text",placeholder:"z. B. verein.de oder @beispiel.org",value:U,onChange:p=>D(p.target.value),className:"flex-1 px-3 py-1.5 rounded-sm input-field text-xs"}),i.jsxs("button",{type:"submit",className:"px-4 py-1.5 rounded-sm text-xs font-bold bg-blue-600 text-white hover:bg-blue-500",children:[i.jsx(tn,{className:"w-3.5 h-3.5 inline"})," Domain Hinzufügen"]})]}),i.jsx("div",{className:"space-y-1.5",children:N.map(p=>i.jsxs("div",{className:"flex items-center justify-between p-2 rounded-sm bg-subtle border border-grid text-xs",children:[i.jsx("span",{className:"font-bold text-main",children:p.domain}),i.jsx("button",{onClick:()=>ld(p.id),className:"text-muted hover:text-red-400",children:i.jsx(Bt,{className:"w-3.5 h-3.5"})})]},p.id))})]}),i.jsxs("div",{className:"hallmark-panel rounded-sm border border-grid overflow-hidden",children:[i.jsxs("div",{className:"p-4 bg-subtle border-b border-grid flex flex-col sm:flex-row sm:items-center justify-between gap-3 font-mono",children:[i.jsxs("h3",{className:"font-serif text-lg font-bold uppercase text-main",children:["Alle Benutzerkonten (",es.length," von ",k.length,")"]}),i.jsxs("div",{className:"relative w-full sm:w-64",children:[i.jsx(Wc,{className:"w-3.5 h-3.5 absolute left-3 top-2.5 text-muted"}),i.jsx("input",{type:"text",value:w,onChange:p=>R(p.target.value),placeholder:"Benutzer suchen...",className:"w-full pl-9 pr-3 py-1 rounded-sm input-field text-xs font-mono"})]})]}),i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full text-left border-collapse font-sans text-xs",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"bg-subtle border-b border-grid text-[11px] font-mono text-muted uppercase tracking-wider",children:[i.jsx("th",{className:"py-3 px-4",children:"Nutzer & E-Mail"}),i.jsx("th",{className:"py-3 px-4",children:"Anzeigename"}),i.jsx("th",{className:"py-3 px-4",children:"Status"}),i.jsx("th",{className:"py-3 px-4",children:"Rolle"}),i.jsx("th",{className:"py-3 px-4 text-right",children:"Aktionen"})]})}),i.jsx("tbody",{className:"divide-y divide-grid font-mono",children:es.length===0?i.jsx("tr",{children:i.jsx("td",{colSpan:5,className:"py-8 text-center text-muted italic text-xs",children:"[ Keine Benutzerkonten gefunden ]"})}):es.map(p=>i.jsxs("tr",{className:"hover:bg-surface-hover",children:[i.jsxs("td",{className:"py-3 px-4",children:[i.jsx("div",{className:"font-bold text-main",children:p.username}),i.jsx("div",{className:"text-[11px] text-muted",children:p.email})]}),i.jsx("td",{className:"py-3 px-4 text-main",children:p.display_name||p.username}),i.jsx("td",{className:"py-3 px-4",children:i.jsx("button",{onClick:()=>Zc(p),className:`px-2 py-0.5 rounded-sm text-[10px] font-bold border transition ${p.is_active?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":"bg-red-500/10 text-red-400 border-red-500/20"}`,children:p.is_active?"[ AKTIV ]":"[ DEAKTIVIERT ]"})}),i.jsx("td",{className:"py-3 px-4",children:i.jsx("button",{onClick:()=>qc(p),className:`px-2 py-0.5 rounded-sm text-[10px] font-bold border transition ${p.is_admin_user?"bg-indigo-500/10 text-indigo-400 border-indigo-500/30":"bg-subtle text-muted border-grid"}`,children:p.is_admin_user?"👑 ADMIN":"👤 USER"})}),i.jsx("td",{className:"py-3 px-4 text-right",children:i.jsx("button",{onClick:()=>Xc(p),className:"p-1.5 rounded-sm text-muted hover:text-red-400 hover:bg-red-500/10 transition",title:"Benutzer löschen",children:i.jsx(Bt,{className:"w-4 h-4"})})})]},p.id))})]})})]})]}),s==="events"&&i.jsx("div",{className:"space-y-6 animate-in fade-in duration-150",children:i.jsxs("div",{className:"hallmark-panel rounded-sm border border-grid overflow-hidden font-mono",children:[i.jsx("div",{className:"p-4 bg-subtle border-b border-grid flex items-center justify-between",children:i.jsxs("h3",{className:"font-serif text-lg font-bold uppercase text-main",children:["Veranstaltungen verwalten (",J.length,")"]})}),i.jsx("div",{className:"divide-y divide-grid",children:J.map(p=>i.jsxs("div",{className:"p-4 flex flex-col sm:flex-row sm:items-center justify-between gap-4 hover:bg-surface-hover transition",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-muted",children:[i.jsxs("span",{className:"bg-subtle px-2 py-0.5 rounded-sm border border-grid font-bold",children:[p.start_date," bis ",p.end_date]}),p.location&&i.jsxs("span",{children:["• ",p.location]}),p.is_active===!1&&i.jsx("span",{className:"text-amber-500 font-bold px-1.5 py-0.5 rounded-sm bg-amber-500/10 border border-amber-500/20",children:"[ DEAKTIVIERT ]"})]}),i.jsx("h4",{className:"font-serif text-base font-bold text-main uppercase",children:p.title}),p.description&&i.jsx("p",{className:"text-xs text-muted font-sans line-clamp-1",children:p.description})]}),i.jsxs("div",{className:"flex items-center gap-2 shrink-0 text-xs",children:[i.jsxs("button",{onClick:()=>od(p),className:`px-3 py-1 rounded-sm border font-mono font-bold transition flex items-center gap-1 ${p.is_active!==!1?"bg-amber-500/10 text-amber-500 border-amber-500/20 hover:bg-amber-500/20":"bg-emerald-500/10 text-emerald-400 border-emerald-500/20 hover:bg-emerald-500/20"}`,children:[p.is_active!==!1?i.jsx(Qc,{className:"w-3.5 h-3.5"}):i.jsx(Km,{className:"w-3.5 h-3.5"}),p.is_active!==!1?"DEAKTIVIEREN":"AKTIVIEREN"]}),i.jsxs("button",{onClick:()=>ad(p.id),className:"px-3 py-1 rounded-sm bg-red-500/10 hover:bg-red-500/20 text-red-400 border border-red-500/20 transition flex items-center gap-1 font-bold",children:[i.jsx(Bt,{className:"w-3.5 h-3.5"})," LÖSCHEN"]})]})]},p.id))})]})}),s==="templates"&&i.jsxs("div",{className:"space-y-6 animate-in fade-in duration-150 font-mono",children:[i.jsxs("div",{className:"hallmark-panel rounded-sm p-5 border border-grid space-y-4",children:[i.jsx("h3",{className:"font-serif text-lg font-bold uppercase text-main border-b border-grid pb-2",children:"Erforderliche Qualifikationen (Skills)"}),i.jsxs("form",{onSubmit:sd,className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[i.jsx("input",{type:"text",placeholder:"Skill Name (z. B. Bar-Erfahrung)",required:!0,value:W,onChange:p=>H(p.target.value),className:"px-3 py-1.5 rounded-sm input-field text-xs font-mono"}),i.jsx("input",{type:"text",placeholder:"Beschreibung (optional)",value:Se,onChange:p=>T(p.target.value),className:"px-3 py-1.5 rounded-sm input-field text-xs font-mono"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx("input",{type:"color",value:O,onChange:p=>L(p.target.value),className:"w-8 h-8 rounded-sm border-0 cursor-pointer bg-subtle p-0.5"}),i.jsxs("button",{type:"submit",className:"flex-1 px-3 py-1.5 rounded-sm bg-emerald-600 hover:bg-emerald-500 text-white font-bold text-xs",children:[i.jsx(tn,{className:"w-3.5 h-3.5 inline"})," Anlegen"]})]})]}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 pt-2",children:r.map(p=>i.jsxs("div",{className:"p-3 rounded-sm bg-subtle border border-grid flex items-center justify-between text-xs",children:[i.jsxs("div",{children:[i.jsx("span",{style:{color:p.color},className:"font-bold",children:p.name}),p.description&&i.jsx("p",{className:"text-[11px] text-muted",children:p.description})]}),i.jsx("button",{onClick:()=>id(p.id),className:"text-muted hover:text-red-400",children:i.jsx(Bt,{className:"w-3.5 h-3.5"})})]},p.id))})]}),i.jsxs("div",{className:"hallmark-panel rounded-sm p-5 border border-grid space-y-4",children:[i.jsxs("h3",{className:"font-serif text-lg font-bold uppercase text-main border-b border-grid pb-2",children:["Gespeicherte Event-Vorlagen (",I.length,")"]}),i.jsx("div",{className:"space-y-2",children:I.map(p=>i.jsxs("div",{className:"p-3 rounded-sm bg-subtle border border-grid flex items-center justify-between text-xs",children:[i.jsxs("div",{children:[i.jsx("div",{className:"font-bold text-main",children:p.name}),i.jsx("div",{className:"text-[11px] text-muted",children:p.description||"Keine Beschreibung"})]}),i.jsx("button",{onClick:()=>ud(p.id),className:"text-muted hover:text-red-400",children:i.jsx(Bt,{className:"w-4 h-4"})})]},p.id))})]})]}),s==="branding"&&i.jsx("div",{className:"space-y-6 animate-in fade-in duration-150 font-mono",children:i.jsxs("form",{onSubmit:cd,className:"hallmark-panel rounded-sm p-6 border border-grid space-y-6",children:[i.jsx("h3",{className:"font-serif text-lg font-bold uppercase text-main border-b border-grid pb-2",children:"App Branding & Aussehen"}),i.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 text-xs",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-muted mb-1",children:"App Name"}),i.jsx("input",{type:"text",required:!0,value:Y,onChange:p=>le(p.target.value),className:"w-full px-3 py-1.5 rounded-sm input-field"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-muted mb-1",children:"Primärfarbe"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("input",{type:"color",value:ge,onChange:p=>fe(p.target.value),className:"w-8 h-8 rounded-sm border-0 cursor-pointer bg-subtle p-0.5"}),i.jsx("input",{type:"text",value:ge,onChange:p=>fe(p.target.value),className:"flex-1 px-3 py-1.5 rounded-sm input-field font-mono"})]})]}),i.jsxs("div",{className:"sm:col-span-2",children:[i.jsx("label",{className:"block text-muted mb-1",children:"Logo Bild-URL (optional)"}),i.jsx("input",{type:"text",placeholder:"https://beispiel.de/logo.png",value:tt,onChange:p=>xe(p.target.value),className:"w-full px-3 py-1.5 rounded-sm input-field"})]}),i.jsxs("div",{className:"sm:col-span-2",children:[i.jsx("label",{className:"block text-muted mb-1",children:"Ankündigung (Banner-Text)"}),i.jsx("textarea",{rows:2,placeholder:"z. B. Willkommen beim Sommerfest Schichtplaner!",value:ot,onChange:p=>Gl(p.target.value),className:"w-full px-3 py-1.5 rounded-sm input-field"})]})]}),i.jsx("h4",{className:"font-serif text-base font-bold uppercase text-main pt-4 border-t border-grid",children:"Startseiten Sidebar Boxen"}),i.jsxs("div",{className:"p-4 rounded-sm bg-subtle border border-grid space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-grid pb-2",children:[i.jsx("span",{className:"font-bold text-xs uppercase text-main",children:"📌 Verein & Infos Box"}),i.jsx("button",{type:"button",onClick:()=>Yl(!$t),className:`px-3 py-1 rounded-sm text-xs font-bold transition border ${$t?"bg-emerald-600 text-white border-emerald-500":"bg-surface text-muted border-grid"}`,children:$t?"[ AN ]":"[ AUS ]"})]}),$t&&i.jsxs("div",{className:"space-y-3 text-xs",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-muted mb-1",children:"Titel"}),i.jsx("input",{type:"text",value:Er,onChange:p=>ql(p.target.value),className:"w-full px-3 py-1.5 rounded-sm input-field"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-muted mb-1",children:"Inhalt"}),i.jsx("textarea",{rows:3,value:yt,onChange:p=>Zl(p.target.value),className:"w-full px-3 py-1.5 rounded-sm input-field"})]})]})]}),i.jsxs("div",{className:"p-4 rounded-sm bg-subtle border border-grid space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-grid pb-2",children:[i.jsx("span",{className:"font-bold text-xs uppercase text-main",children:"❤️ Unterstützen Box"}),i.jsx("button",{type:"button",onClick:()=>Xl(!Ft),className:`px-3 py-1 rounded-sm text-xs font-bold transition border ${Ft?"bg-emerald-600 text-white border-emerald-500":"bg-surface text-muted border-grid"}`,children:Ft?"[ AN ]":"[ AUS ]"})]}),Ft&&i.jsxs("div",{className:"space-y-3 text-xs",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-muted mb-1",children:"Titel"}),i.jsx("input",{type:"text",value:Cr,onChange:p=>Jl(p.target.value),className:"w-full px-3 py-1.5 rounded-sm input-field"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-muted mb-1",children:"Inhalt"}),i.jsx("textarea",{rows:3,value:C,onChange:p=>z(p.target.value),className:"w-full px-3 py-1.5 rounded-sm input-field"})]})]})]}),i.jsx("div",{className:"pt-3 flex justify-end border-t border-grid",children:i.jsx("button",{type:"submit",disabled:G,style:{backgroundColor:"var(--brand-primary)"},className:"px-6 py-2.5 rounded-sm text-xs font-mono font-bold text-white transition hover:brightness-110 shadow-sm",children:G?"Speichern...":"Einstellungen speichern"})})]})})]})}function xp({eventToEdit:e,skills:t,onBack:n,onSubmit:r}){const[l,s]=j.useState((e==null?void 0:e.title)||""),[o,a]=j.useState((e==null?void 0:e.description)||""),[u,d]=j.useState((e==null?void 0:e.location)||""),[h,g]=j.useState((e==null?void 0:e.start_date)||new Date().toISOString().split("T")[0]),[x,k]=j.useState((e==null?void 0:e.end_date)||new Date().toISOString().split("T")[0]),[y,w]=j.useState([]),[R,f]=j.useState(!1),[c,m]=j.useState("");j.useEffect(()=>{if(e&&e.task_areas&&e.task_areas.length>0){const A=e.task_areas.map(I=>({id:I.id,name:I.name,description:I.description||"",shifts:(I.shifts||[]).map(V=>({id:V.id,title:V.title,start_time:V.start_time,end_time:V.end_time,max_participants:V.max_participants||1,required_skill_ids:V.required_skills?V.required_skills.map(W=>W.id):[]}))}));w(A)}else e||w([{name:"Tresendienst",description:"Getränke- und Barverkauf",shifts:[{title:"Schicht 1",start_time:"18:00",end_time:"22:00",max_participants:2,required_skill_ids:[]}]},{name:"Essen kochen",description:"Zubereitung von Speisen",shifts:[{title:"Frühschicht",start_time:"15:00",end_time:"19:00",max_participants:3,required_skill_ids:[]}]},{name:"Aufbau & Aufräumen",description:"Tische, Stühle & Technik",shifts:[{title:"Aufbau",start_time:"12:00",end_time:"15:00",max_participants:4,required_skill_ids:[]}]}])},[e]);const v=()=>{w([...y,{name:"",description:"",shifts:[{title:"Schicht 1",start_time:"10:00",end_time:"14:00",max_participants:1,required_skill_ids:[]}]}])},S=A=>{w(y.filter((I,V)=>V!==A))},b=(A,I,V)=>{const W=[...y];W[A][I]=V,w(W)},N=A=>{const I=[...y];I[A].shifts.push({title:`Schicht ${I[A].shifts.length+1}`,start_time:"14:00",end_time:"18:00",max_participants:1,required_skill_ids:[]}),w(I)},E=(A,I)=>{const V=[...y];V[A].shifts=V[A].shifts.filter((W,H)=>H!==I),w(V)},U=(A,I,V,W)=>{const H=[...y];H[A].shifts[I][V]=W,w(H)},D=(A,I,V)=>{const W=[...y],H=W[A].shifts[I].required_skill_ids||[];H.includes(V)?W[A].shifts[I].required_skill_ids=H.filter(Se=>Se!==V):W[A].shifts[I].required_skill_ids=[...H,V],w(W)},J=async A=>{if(A.preventDefault(),m(""),!l.trim()){m("Bitte gib einen Veranstaltungstitel an.");return}f(!0);try{await r({id:e==null?void 0:e.id,title:l,description:o,location:u,start_date:h,end_date:x,task_areas:y})}catch(I){m(I.message||"Speichern der Veranstaltung fehlgeschlagen.")}finally{f(!1)}};return i.jsxs("div",{className:"space-y-6 max-w-4xl mx-auto animate-in fade-in duration-200 font-sans",children:[i.jsxs("div",{className:"flex items-center justify-between font-mono text-xs",children:[i.jsxs("button",{onClick:n,className:"px-3.5 py-1.5 rounded-sm bg-subtle hover:bg-surface-hover text-main border border-grid transition flex items-center gap-2 font-bold",children:[i.jsx(Bc,{className:"w-4 h-4"})," [ ZURÜCK ZUR ÜBERSICHT ]"]}),i.jsxs("span",{className:"text-muted border border-grid px-2.5 py-0.5 rounded-sm",children:["MODE: ",e?"EVENT EDIT":"NEW EVENT"]})]}),i.jsx("div",{className:"hallmark-panel rounded-sm p-6 sm:p-8 border border-grid space-y-2",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-10 h-10 rounded-sm bg-blue-500/10 text-blue-500 border border-blue-500/20 flex items-center justify-center font-bold",children:e?i.jsx(vr,{className:"w-5 h-5"}):i.jsx(_r,{className:"w-5 h-5"})}),i.jsxs("div",{children:[i.jsx("h2",{className:"font-serif text-3xl font-bold uppercase tracking-tight text-main",children:e?"Veranstaltung & Schichten Bearbeiten":"Neue Veranstaltung Erstellen"}),i.jsx("p",{className:"text-xs text-muted font-mono mt-0.5",children:"Konfiguriere Stammdaten, Aufgabenfelder, Schichtzeiten & Qualifikationen"})]})]})}),c&&i.jsxs("div",{className:"p-4 rounded-sm bg-red-500/10 border border-red-500/20 text-red-500 text-xs font-mono flex items-center gap-2",children:[i.jsx(br,{className:"w-4 h-4 shrink-0"}),i.jsx("span",{children:c})]}),i.jsxs("form",{onSubmit:J,className:"space-y-6",children:[i.jsxs("div",{className:"hallmark-panel rounded-sm p-6 border border-grid space-y-4 font-mono text-xs",children:[i.jsx("h3",{className:"font-serif text-lg font-bold uppercase text-main border-b border-grid pb-2",children:"1. Stammdaten der Veranstaltung"}),i.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[i.jsxs("div",{className:"sm:col-span-2",children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Titel der Veranstaltung"}),i.jsx("input",{type:"text",required:!0,value:l,onChange:A=>s(A.target.value),placeholder:"z. B. Sommerfest 2026",className:"w-full px-3.5 py-2 rounded-sm input-field text-sm"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Startdatum"}),i.jsx("input",{type:"date",required:!0,value:h,onChange:A=>g(A.target.value),className:"w-full px-3.5 py-2 rounded-sm input-field text-sm"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Enddatum"}),i.jsx("input",{type:"date",required:!0,value:x,onChange:A=>k(A.target.value),className:"w-full px-3.5 py-2 rounded-sm input-field text-sm"})]}),i.jsxs("div",{className:"sm:col-span-2",children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Ort (optional)"}),i.jsx("input",{type:"text",value:u,onChange:A=>d(A.target.value),placeholder:"z. B. Vereinsheim, Großer Saal",className:"w-full px-3.5 py-2 rounded-sm input-field text-xs"})]}),i.jsxs("div",{className:"sm:col-span-2",children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Beschreibung (optional)"}),i.jsx("textarea",{rows:2,value:o,onChange:A=>a(A.target.value),placeholder:"Details zur Veranstaltung...",className:"w-full px-3.5 py-2 rounded-sm input-field text-xs font-sans"})]})]})]}),i.jsxs("div",{className:"hallmark-panel rounded-sm p-6 border border-grid space-y-4 font-mono text-xs",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-grid pb-2",children:[i.jsxs("h3",{className:"font-serif text-lg font-bold uppercase text-main flex items-center gap-2",children:[i.jsx(Kl,{className:"w-4 h-4 text-blue-500"})," 2. Aufgabenfelder & Schichten"]}),i.jsxs("button",{type:"button",onClick:v,className:"px-3.5 py-1.5 rounded-sm text-xs font-mono font-bold bg-blue-500/10 text-blue-500 border border-blue-500/20 hover:bg-blue-500/20 transition flex items-center gap-1",children:[i.jsx(tn,{className:"w-3.5 h-3.5"})," BEREICH HINZUFÜGEN"]})]}),y.map((A,I)=>i.jsxs("div",{className:"p-4 rounded-sm bg-subtle border border-grid space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between gap-3",children:[i.jsx("input",{type:"text",required:!0,placeholder:"Name des Aufgabenfeldes (z. B. Tresendienst)",value:A.name,onChange:V=>b(I,"name",V.target.value),className:"flex-1 px-3 py-1.5 rounded-sm input-field text-xs font-bold"}),i.jsx("button",{type:"button",onClick:()=>S(I),className:"p-1.5 text-muted hover:text-red-400 transition",title:"Bereich entfernen",children:i.jsx(Bt,{className:"w-4 h-4"})})]}),i.jsxs("div",{className:"pl-3 border-l-2 border-grid space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs text-muted font-bold",children:[i.jsx("span",{children:"Schichten & Zeitfenster"}),i.jsxs("button",{type:"button",onClick:()=>N(I),className:"text-blue-500 hover:underline flex items-center gap-1",children:[i.jsx(tn,{className:"w-3 h-3"})," Schicht hinzufügen"]})]}),A.shifts.map((V,W)=>i.jsxs("div",{className:"p-3 rounded-sm bg-surface border border-grid space-y-2",children:[i.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-12 gap-2 items-center text-xs",children:[i.jsx("input",{type:"text",placeholder:"Titel",value:V.title,onChange:H=>U(I,W,"title",H.target.value),className:"sm:col-span-4 px-2.5 py-1 rounded-sm input-field text-xs"}),i.jsx("input",{type:"text",placeholder:"Start (14:00)",value:V.start_time,onChange:H=>U(I,W,"start_time",H.target.value),className:"sm:col-span-2 px-2.5 py-1 rounded-sm input-field text-xs"}),i.jsx("input",{type:"text",placeholder:"Ende (18:00)",value:V.end_time,onChange:H=>U(I,W,"end_time",H.target.value),className:"sm:col-span-2 px-2.5 py-1 rounded-sm input-field text-xs"}),i.jsxs("div",{className:"sm:col-span-3 flex items-center gap-1",children:[i.jsx("span",{className:"text-[11px] text-muted",children:"Plätze:"}),i.jsx("input",{type:"number",min:"1",value:V.max_participants,onChange:H=>U(I,W,"max_participants",parseInt(H.target.value)||1),className:"w-full px-2 py-1 rounded-sm input-field text-xs font-bold"})]}),i.jsx("button",{type:"button",onClick:()=>E(I,W),className:"sm:col-span-1 p-1 text-muted hover:text-red-400 text-center",title:"Schicht löschen",children:i.jsx(Bt,{className:"w-3.5 h-3.5 mx-auto"})})]}),t&&t.length>0&&i.jsxs("div",{className:"pt-1.5 border-t border-grid text-[11px]",children:[i.jsx("span",{className:"text-muted block mb-1",children:"Erforderliche Qualifikationen:"}),i.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.map(H=>{const Se=(V.required_skill_ids||[]).includes(H.id);return i.jsxs("button",{type:"button",onClick:()=>D(I,W,H.id),style:{backgroundColor:Se?H.color:`${H.color}15`,borderColor:H.color,color:Se?"#ffffff":H.color},className:"px-2 py-0.5 rounded-sm border text-[10px] font-bold transition",children:[H.name," ",Se?"✓":""]},H.id)})})]})]},W))]})]},I))]}),i.jsxs("div",{className:"hallmark-panel rounded-sm p-4 border border-grid flex items-center justify-between font-mono text-xs",children:[i.jsx("button",{type:"button",onClick:n,className:"px-4 py-2 rounded-sm text-xs font-semibold text-muted hover:bg-surface-hover transition border border-grid",children:"Abbrechen"}),i.jsxs("button",{type:"submit",disabled:R,style:{backgroundColor:"var(--brand-primary)"},className:"px-6 py-2.5 rounded-sm text-xs font-mono font-bold text-white transition shadow-sm hover:brightness-110 flex items-center gap-2",children:[i.jsx(en,{className:"w-4 h-4"}),R?"Speichern...":e?"Änderungen Speichern":"Veranstaltung Jetzt Erstellen"]})]})]})]})}function gp({onBack:e,onInstantiateTemplate:t}){const[n,r]=j.useState([]),[l,s]=j.useState(!0),[o,a]=j.useState(""),[u,d]=j.useState(null),[h,g]=j.useState(""),[x,k]=j.useState(new Date().toISOString().split("T")[0]),[y,w]=j.useState(new Date().toISOString().split("T")[0]),[R,f]=j.useState(""),[c,m]=j.useState(!1);j.useEffect(()=>{v()},[]);const v=async()=>{s(!0);try{const N=await $("/templates/");r(N.results||N)}catch(N){a(N.message||"Laden der Vorlagen fehlgeschlagen.")}finally{s(!1)}},S=N=>{d(N),g(N.name)},b=async N=>{if(N.preventDefault(),!!u){m(!0);try{await t(u.id,{title:h,start_date:x,end_date:y,location:R})}catch(E){a(E.message||"Erstellen der Veranstaltung aus Vorlage fehlgeschlagen.")}finally{m(!1)}}};return i.jsxs("div",{className:"space-y-6 max-w-4xl mx-auto animate-in fade-in duration-200 font-sans",children:[i.jsxs("div",{className:"flex items-center justify-between font-mono text-xs",children:[i.jsxs("button",{onClick:e,className:"px-3.5 py-1.5 rounded-sm bg-subtle hover:bg-surface-hover text-main border border-grid transition flex items-center gap-2 font-bold",children:[i.jsx(Bc,{className:"w-4 h-4"})," [ ZURÜCK ZUR ÜBERSICHT ]"]}),i.jsxs("span",{className:"text-muted border border-grid px-2.5 py-0.5 rounded-sm uppercase",children:["SYSTEM VORLAGEN (",n.length,")"]})]}),i.jsx("div",{className:"hallmark-panel rounded-sm p-6 sm:p-8 border border-grid space-y-2",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-10 h-10 rounded-sm bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 flex items-center justify-center font-bold",children:i.jsx(Kl,{className:"w-5 h-5"})}),i.jsxs("div",{children:[i.jsx("h2",{className:"font-serif text-3xl font-bold uppercase tracking-tight text-main",children:"Veranstaltungs-Vorlagen Zentrale"}),i.jsx("p",{className:"text-xs text-muted font-mono mt-0.5",children:"Erstelle neue Veranstaltungen im Handumdrehen aus vorgefertigten Struktur-Vorlagen"})]})]})}),o&&i.jsxs("div",{className:"p-4 rounded-sm bg-red-500/10 border border-red-500/20 text-red-500 text-xs font-mono flex items-center gap-2",children:[i.jsx(br,{className:"w-4 h-4 shrink-0"}),i.jsx("span",{children:o})]}),i.jsxs("div",{className:"space-y-4 font-mono text-xs",children:[i.jsx("h3",{className:"font-serif text-lg font-bold uppercase text-main",children:"Verfügbare Vorlagen"}),l?i.jsx("div",{className:"hallmark-panel p-8 text-center text-muted",children:"Lade Vorlagen..."}):n.length===0?i.jsx("div",{className:"hallmark-panel p-8 text-center text-muted italic",children:"[ Noch keine Vorlagen gespeichert. Du kannst in der Admin-Zentrale Vorlagen anlegen. ]"}):i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:n.map(N=>i.jsxs("div",{onClick:()=>S(N),className:`hallmark-panel p-5 rounded-sm border cursor-pointer transition space-y-2 ${(u==null?void 0:u.id)===N.id?"bg-indigo-500/10 border-indigo-500 shadow-md":"bg-surface border-grid hover:border-muted"}`,children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h4",{className:"font-serif text-base font-bold text-main uppercase",children:N.name}),(u==null?void 0:u.id)===N.id&&i.jsx("span",{className:"text-[10px] font-mono text-indigo-400 bg-indigo-500/20 px-2 py-0.5 rounded-sm border border-indigo-500/30 font-bold",children:"[ AUSGEWÄHLT ]"})]}),N.description&&i.jsx("p",{className:"text-xs font-sans text-muted",children:N.description}),i.jsxs("div",{className:"text-[10px] text-muted pt-2 border-t border-grid flex items-center justify-between",children:[i.jsxs("span",{children:["Erstellt von: ",i.jsx("strong",{children:N.created_by_name||"Admin"})]}),i.jsx("span",{className:"text-indigo-400 font-bold",children:"Klick zum Auswählen"})]})]},N.id))})]}),u&&i.jsxs("form",{onSubmit:b,className:"hallmark-panel rounded-sm p-6 border border-grid space-y-4 font-mono text-xs animate-in fade-in duration-200",children:[i.jsxs("h3",{className:"font-serif text-lg font-bold uppercase text-indigo-400 border-b border-grid pb-2",children:['Neue Veranstaltung aus Vorlage "',u.name,'" Erstellen']}),i.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[i.jsxs("div",{className:"sm:col-span-2",children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Titel der Veranstaltung"}),i.jsx("input",{type:"text",required:!0,value:h,onChange:N=>g(N.target.value),className:"w-full px-3.5 py-2 rounded-sm input-field text-sm"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Startdatum"}),i.jsx("input",{type:"date",required:!0,value:x,onChange:N=>k(N.target.value),className:"w-full px-3.5 py-2 rounded-sm input-field text-xs"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Enddatum"}),i.jsx("input",{type:"date",required:!0,value:y,onChange:N=>w(N.target.value),className:"w-full px-3.5 py-2 rounded-sm input-field text-xs"})]}),i.jsxs("div",{className:"sm:col-span-2",children:[i.jsx("label",{className:"block text-main mb-1 font-bold",children:"Ort (optional)"}),i.jsx("input",{type:"text",value:R,onChange:N=>f(N.target.value),placeholder:"z. B. Großer Saal",className:"w-full px-3.5 py-2 rounded-sm input-field text-xs"})]})]}),i.jsx("div",{className:"pt-3 flex justify-end border-t border-grid",children:i.jsxs("button",{type:"submit",disabled:c,style:{backgroundColor:"var(--brand-primary)"},className:"px-6 py-2.5 rounded-sm text-xs font-mono font-bold text-white transition hover:brightness-110 shadow-sm flex items-center gap-2",children:[i.jsx(ep,{className:"w-4 h-4 fill-white"}),c?"Erstellen...":"Veranstaltung Jetzt Aus Vorlage Erstellen"]})})]})]})}function yp(){const[e,t]=j.useState(null),[n,r]=j.useState(null),[l,s]=j.useState([]),[o,a]=j.useState([]),[u,d]=j.useState(null),[h,g]=j.useState(null),[x,k]=j.useState(!0),[y,w]=j.useState("home"),[R,f]=j.useState(!1),[c,m]=j.useState(!1),[v,S]=j.useState(null),[b,N]=j.useState(!1),[E,U]=j.useState(!1),[D,J]=j.useState(localStorage.getItem("theme_mode")||"auto"),[A,I]=j.useState(null),[V,W]=j.useState(null);j.useEffect(()=>{window.addEventListener("beforeinstallprompt",C=>{C.preventDefault(),W(C)}),Y()},[]),j.useEffect(()=>{localStorage.setItem("theme_mode",D);const C=()=>{let z=D;D==="auto"&&(z=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),document.documentElement.setAttribute("data-theme",z)};if(C(),D==="auto"){const z=window.matchMedia("(prefers-color-scheme: dark)"),G=()=>C();return z.addEventListener("change",G),()=>z.removeEventListener("change",G)}},[D]),j.useEffect(()=>{n!=null&&n.primary_color&&(document.documentElement.style.setProperty("--brand-primary",n.primary_color),document.documentElement.style.setProperty("--brand-secondary",n.secondary_color||n.primary_color))},[n]);const[H,Se]=j.useState(null),[T,O]=j.useState(null),L=C=>{I(C),setTimeout(()=>I(null),5e3)},Y=async()=>{k(!0);try{try{const Me=await $("/branding/");r(Me)}catch{}if(ki())try{const Me=await $("/users/me/");t(Me)}catch{Pl(null),t(null)}const C=new URLSearchParams(window.location.search),z=C.get("claim_token"),G=C.get("guest_name");z&&G&&(Se(z),O(G),ki()||f(!0)),await tt(),await xe()}catch(C){console.error(C)}finally{k(!1)}},le=async C=>{try{const z=await $(`/users/signups/${C.id}/generate-claim-link/`,{method:"POST"}),G=`${window.location.origin}/?claim_token=${z.token}&guest_name=${encodeURIComponent(z.guest_name)}`;navigator.clipboard?(await navigator.clipboard.writeText(G),L(`✅ Einladungs-Link für ${z.guest_name} in Zwischenablage kopiert!`)):prompt(`Einladungs-Link für ${z.guest_name} kopieren:`,G)}catch(z){alert(z.message||"Fehler beim Erstellen des Links.")}},tt=async()=>{try{const C=await $("/skills/");s(C.results||C)}catch{}},xe=async()=>{try{const C=await $("/events/"),z=C.results||C;a(z),z.length>0&&!u?(d(z[0].id),ge(z[0].id)):u&&ge(u)}catch{}},ge=async C=>{try{const z=await $(`/events/${C}/matrix/`);g(z)}catch{}},fe=C=>{d(C),ge(C),w("schedule")},ot=()=>{Pl(null),t(null),L("Erfolgreich abgemeldet."),u&&ge(u)},Gl=(C,z)=>{t(C),L(z||"Erfolgreich angemeldet!"),u&&ge(u)},$t=async C=>{if(!e)S(C),m(!0);else try{const z=await $(`/shifts/${C.id}/signup/`,{method:"POST"});L(z.message||"Erfolgreich für Schicht eingetragen!"),u&&ge(u)}catch(z){L(`Fehler: ${z.message}`)}},Yl=async C=>{if(!v)return;const z=await $(`/shifts/${v.id}/signup/`,{method:"POST",body:JSON.stringify(C)});L(z.message||"Als Gast eingetragen!"),u&&ge(u)},Er=async C=>{try{const z=await $(`/shifts/${C.id}/signup/`,{method:"DELETE"});L(z.message||"Eintragung storniert."),u&&ge(u)}catch(z){L(`Fehler: ${z.message}`)}},[ql,yt]=j.useState(null),Zl=async C=>{let z=C.id;z?await $(`/events/${z}/`,{method:"PATCH",body:JSON.stringify({title:C.title,description:C.description,location:C.location,start_date:C.start_date,end_date:C.end_date})}):z=(await $("/events/",{method:"POST",body:JSON.stringify({title:C.title,description:C.description,location:C.location,start_date:C.start_date,end_date:C.end_date})})).id;for(let G of C.task_areas){if(!G.name)continue;let Me=G.id;Me?await $(`/task-areas/${Me}/`,{method:"PATCH",body:JSON.stringify({name:G.name,description:G.description||""})}):Me=(await $("/task-areas/",{method:"POST",body:JSON.stringify({event:z,name:G.name,description:G.description||""})})).id;for(let ye of G.shifts)ye.id?await $(`/shifts/${ye.id}/`,{method:"PATCH",body:JSON.stringify({title:ye.title,start_time:ye.start_time,end_time:ye.end_time,max_participants:ye.max_participants,required_skill_ids:ye.required_skill_ids||[]})}):await $("/shifts/",{method:"POST",body:JSON.stringify({task_area:Me,title:ye.title,start_time:ye.start_time,end_time:ye.end_time,max_participants:ye.max_participants,required_skill_ids:ye.required_skill_ids||[]})})}L(C.id?"Veranstaltung & Schichten aktualisiert!":"Veranstaltung erfolgreich erstellt!"),await xe(),fe(z)},Ft=async(C,z)=>{const G=await $(`/templates/${C}/instantiate/`,{method:"POST",body:JSON.stringify(z)});L("Veranstaltung aus Vorlage erstellt!"),await xe(),G.id&&fe(G.id)},Xl=()=>{u&&window.open(`/api/events/${u}/export_pdf/`,"_blank")},Cr=()=>{window.print()},Jl=()=>{V&&(V.prompt(),V.userChoice.then(C=>{C.outcome==="accepted"&&L("PWA Installation gestartet!"),W(null)}))};return i.jsxs("div",{className:"min-h-screen bg-canvas text-main flex flex-col font-sans selection:bg-surface-hover transition-colors duration-200",children:[A&&i.jsxs("div",{className:"fixed bottom-6 right-6 z-50 bg-emerald-600 text-white px-4 py-2.5 rounded-sm shadow-2xl font-mono text-xs flex items-center gap-2 border border-emerald-400 animate-in fade-in slide-in-from-bottom-3 duration-200",children:[i.jsx(en,{className:"w-4 h-4"}),i.jsx("span",{children:A})]}),i.jsx(ap,{branding:n,user:e,activeTab:y,onChangeTab:w,themeMode:D,onChangeThemeMode:J,onLogout:ot,onOpenAuth:()=>f(!0),onOpenCreateEvent:()=>{yt(null),w("event-editor")},onOpenTemplates:()=>w("templates"),onOpenProfile:()=>U(!0),onOpenAdmin:()=>w("admin"),pwaInstallPrompt:!!V,onInstallPwa:Jl}),i.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-8 space-y-6",children:x?i.jsx("div",{className:"hallmark-panel p-16 text-center text-xs text-muted font-mono border border-grid",children:"Lade Daten..."}):y==="home"?i.jsx(mp,{events:o,user:e,onSelectEvent:fe,onOpenCreateEvent:()=>{yt(null),w("event-editor")},onToggleEventActive:async C=>{try{await $(`/events/${C.id}/`,{method:"PATCH",body:JSON.stringify({is_active:C.is_active===!1})}),xe()}catch(z){alert(z.message||"Aktion fehlgeschlagen.")}},onEditEvent:C=>{yt(C),w("event-editor")},branding:n}):y==="calendar"?i.jsx(pp,{events:o,onSelectEvent:fe,branding:n}):y==="admin"?i.jsx(hp,{branding:n,onRefreshBranding:async()=>{const C=await $("/branding/");r(C)},onRefreshEvents:xe,skills:l,onRefreshSkills:tt}):y==="event-editor"?i.jsx(xp,{eventToEdit:ql,skills:l,onBack:()=>w("schedule"),onSubmit:Zl}):y==="templates"?i.jsx(gp,{onBack:()=>w("schedule"),onInstantiateTemplate:Ft}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between gap-4 overflow-x-auto pb-2 no-scrollbar font-mono",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-xs font-bold text-muted uppercase tracking-wider whitespace-nowrap",children:"Ausgewähltes Event:"}),o.map(C=>{const z=u===C.id;return i.jsx("button",{onClick:()=>fe(C.id),style:{backgroundColor:z?(n==null?void 0:n.primary_color)||"var(--brand-primary)":void 0,borderColor:z?(n==null?void 0:n.primary_color)||"var(--brand-primary)":void 0},className:`px-3.5 py-1.5 rounded-sm text-xs font-bold transition whitespace-nowrap border ${z?"text-white shadow-sm":"bg-subtle text-muted border-grid hover:text-main"}`,children:C.title},C.id)})]}),e&&i.jsxs("button",{onClick:()=>{yt(null),w("event-editor")},className:"px-3.5 py-1.5 rounded-sm text-xs font-bold bg-subtle hover:bg-surface-hover text-main border border-grid transition flex items-center gap-1.5 shrink-0",children:[i.jsx(tn,{className:"w-4 h-4"})," Neues Event"]})]}),i.jsx(up,{event:h,user:e,onSignupClick:$t,onCancelClick:Er,onRemoveUserFromShift:async(C,z)=>{try{const G=await $(`/shifts/${C.id}/signup/${z}/`,{method:"DELETE"});L(G.message||"Eintragung entfernt."),xe(),u&&fe(u)}catch(G){alert(G.message||"Entfernen der Person fehlgeschlagen.")}},onGenerateClaimLink:le,onExportPdf:Xl,onPrintView:Cr,onEditEvent:C=>{yt(C),w("event-editor")}})]})}),i.jsx("footer",{className:"border-t border-grid py-6 text-center text-xs text-muted font-mono no-print",children:i.jsxs("p",{children:[(n==null?void 0:n.app_name)||"Veranstaltungsschichtplaner"," • PWA Enabled • PostgreSQL & Docker Ready"]})}),R&&i.jsx(fp,{onClose:()=>{f(!1),Se(null),O(null)},onSuccess:Gl,claimToken:H,prefilledGuestName:T}),c&&i.jsx(cp,{shift:v,onClose:()=>m(!1),onSubmit:Yl})]})}Es.createRoot(document.getElementById("root")).render(i.jsx(Ed.StrictMode,{children:i.jsx(yp,{})}));
|