react-all-18.2.0.js 256 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import{g as md,c as Le,a as ul,e as ev}from"./ace-builds-1.23.0.js";function yd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var wd={exports:{}},Al={},Sd={exports:{}},q={};/**
  2. * @license React
  3. * react.production.min.js
  4. *
  5. * Copyright (c) Facebook, Inc. and its affiliates.
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE file in the root directory of this source tree.
  9. */var oi=Symbol.for("react.element"),tv=Symbol.for("react.portal"),nv=Symbol.for("react.fragment"),rv=Symbol.for("react.strict_mode"),ov=Symbol.for("react.profiler"),iv=Symbol.for("react.provider"),lv=Symbol.for("react.context"),av=Symbol.for("react.forward_ref"),uv=Symbol.for("react.suspense"),sv=Symbol.for("react.memo"),cv=Symbol.for("react.lazy"),Lc=Symbol.iterator;function fv(e){return e===null||typeof e!="object"?null:(e=Lc&&e[Lc]||e["@@iterator"],typeof e=="function"?e:null)}var _d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ed=Object.assign,Cd={};function eo(e,t,n){this.props=e,this.context=t,this.refs=Cd,this.updater=n||_d}eo.prototype.isReactComponent={};eo.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")};eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kd(){}kd.prototype=eo.prototype;function ls(e,t,n){this.props=e,this.context=t,this.refs=Cd,this.updater=n||_d}var as=ls.prototype=new kd;as.constructor=ls;Ed(as,eo.prototype);as.isPureReactComponent=!0;var Tc=Array.isArray,Pd=Object.prototype.hasOwnProperty,us={current:null},Rd={key:!0,ref:!0,__self:!0,__source:!0};function Md(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Pd.call(t,r)&&!Rd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var u=Array(a),s=0;s<a;s++)u[s]=arguments[s+2];i.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:oi,type:e,key:o,ref:l,props:i,_owner:us.current}}function dv(e,t){return{$$typeof:oi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ss(e){return typeof e=="object"&&e!==null&&e.$$typeof===oi}function hv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Oc=/\/+/g;function La(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hv(""+e.key):t.toString(36)}function Yi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case oi:case tv:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+La(l,0):r,Tc(i)?(n="",e!=null&&(n=e.replace(Oc,"$&/")+"/"),Yi(i,t,n,"",function(s){return s})):i!=null&&(ss(i)&&(i=dv(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Oc,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",Tc(e))for(var a=0;a<e.length;a++){o=e[a];var u=r+La(o,a);l+=Yi(o,t,n,u,i)}else if(u=fv(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=r+La(o,a++),l+=Yi(o,t,n,u,i);else if(o==="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 l}function Li(e,t,n){if(e==null)return e;var r=[],i=0;return Yi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function pv(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 tt={current:null},Xi={transition:null},gv={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:Xi,ReactCurrentOwner:us};q.Children={map:Li,forEach:function(e,t,n){Li(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Li(e,function(){t++}),t},toArray:function(e){return Li(e,function(t){return t})||[]},only:function(e){if(!ss(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=eo;q.Fragment=nv;q.Profiler=ov;q.PureComponent=ls;q.StrictMode=rv;q.Suspense=uv;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gv;q.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=Ed({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=us.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Pd.call(t,u)&&!Rd.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 s=0;s<u;s++)a[s]=arguments[s+2];r.children=a}return{$$typeof:oi,type:e.type,key:i,ref:o,props:r,_owner:l}};q.createContext=function(e){return e={$$typeof:lv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:iv,_context:e},e.Consumer=e};q.createElement=Md;q.createFactory=function(e){var t=Md.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:av,render:e}};q.isValidElement=ss;q.lazy=function(e){return{$$typeof:cv,_payload:{_status:-1,_result:e},_init:pv}};q.memo=function(e,t){return{$$typeof:sv,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=Xi.transition;Xi.transition={};try{e()}finally{Xi.transition=t}};q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};q.useCallback=function(e,t){return tt.current.useCallback(e,t)};q.useContext=function(e){return tt.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};q.useEffect=function(e,t){return tt.current.useEffect(e,t)};q.useId=function(){return tt.current.useId()};q.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return tt.current.useMemo(e,t)};q.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};q.useRef=function(e){return tt.current.useRef(e)};q.useState=function(e){return tt.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return tt.current.useTransition()};q.version="18.2.0";Sd.exports=q;var O=Sd.exports;const xd=md(O),vv=yd({__proto__:null,default:xd},[O]);/**
  10. * @license React
  11. * react-jsx-runtime.production.min.js
  12. *
  13. * Copyright (c) Facebook, Inc. and its affiliates.
  14. *
  15. * This source code is licensed under the MIT license found in the
  16. * LICENSE file in the root directory of this source tree.
  17. */var mv=O,yv=Symbol.for("react.element"),wv=Symbol.for("react.fragment"),Sv=Object.prototype.hasOwnProperty,_v=mv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ev={key:!0,ref:!0,__self:!0,__source:!0};function Ld(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Sv.call(t,r)&&!Ev.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:yv,type:e,key:o,ref:l,props:i,_owner:_v.current}}Al.Fragment=wv;Al.jsx=Ld;Al.jsxs=Ld;wd.exports=Al;var tS=wd.exports,Dc={},Td={exports:{}},yt={},Od={exports:{}},Dd={};/**
  18. * @license React
  19. * scheduler.production.min.js
  20. *
  21. * Copyright (c) Facebook, Inc. and its affiliates.
  22. *
  23. * This source code is licensed under the MIT license found in the
  24. * LICENSE file in the root directory of this source tree.
  25. */(function(e){function t(z,b){var Q=z.length;z.push(b);e:for(;0<Q;){var de=Q-1>>>1,Ee=z[de];if(0<i(Ee,b))z[de]=b,z[Q]=Ee,Q=de;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var b=z[0],Q=z.pop();if(Q!==b){z[0]=Q;e:for(var de=0,Ee=z.length,fn=Ee>>>1;de<fn;){var se=2*(de+1)-1,ee=z[se],ft=se+1,dn=z[ft];if(0>i(ee,Q))ft<Ee&&0>i(dn,ee)?(z[de]=dn,z[ft]=Q,de=ft):(z[de]=ee,z[se]=Q,de=se);else if(ft<Ee&&0>i(dn,Q))z[de]=dn,z[ft]=Q,de=ft;else break e}}return b}function i(z,b){var Q=z.sortIndex-b.sortIndex;return Q!==0?Q:z.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,f=null,d=3,v=!1,y=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(z){for(var b=n(s);b!==null;){if(b.callback===null)r(s);else if(b.startTime<=z)r(s),b.sortIndex=b.expirationTime,t(u,b);else break;b=n(s)}}function m(z){if(S=!1,w(z),!y)if(n(u)!==null)y=!0,Je(P);else{var b=n(s);b!==null&&rt(m,b.startTime-z)}}function P(z,b){y=!1,S&&(S=!1,g(T),T=-1),v=!0;var Q=d;try{for(w(b),f=n(u);f!==null&&(!(f.expirationTime>b)||z&&!U());){var de=f.callback;if(typeof de=="function"){f.callback=null,d=f.priorityLevel;var Ee=de(f.expirationTime<=b);b=e.unstable_now(),typeof Ee=="function"?f.callback=Ee:f===n(u)&&r(u),w(b)}else r(u);f=n(u)}if(f!==null)var fn=!0;else{var se=n(s);se!==null&&rt(m,se.startTime-b),fn=!1}return fn}finally{f=null,d=Q,v=!1}}var R=!1,M=null,T=-1,A=5,I=-1;function U(){return!(e.unstable_now()-I<A)}function N(){if(M!==null){var z=e.unstable_now();I=z;var b=!0;try{b=M(!0,z)}finally{b?ne():(R=!1,M=null)}}else R=!1}var ne;if(typeof h=="function")ne=function(){h(N)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,ct=ue.port2;ue.port1.onmessage=N,ne=function(){ct.postMessage(null)}}else ne=function(){E(N,0)};function Je(z){M=z,R||(R=!0,ne())}function rt(z,b){T=E(function(){z(e.unstable_now())},b)}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(z){z.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,Je(P))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(z){switch(d){case 1:case 2:case 3:var b=3;break;default:b=d}var Q=d;d=b;try{return z()}finally{d=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,b){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Q=d;d=z;try{return b()}finally{d=Q}},e.unstable_scheduleCallback=function(z,b,Q){var de=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?de+Q:de):Q=de,z){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=Q+Ee,z={id:c++,callback:b,priorityLevel:z,startTime:Q,expirationTime:Ee,sortIndex:-1},Q>de?(z.sortIndex=Q,t(s,z),n(u)===null&&z===n(s)&&(S?(g(T),T=-1):S=!0,rt(m,Q-de))):(z.sortIndex=Ee,t(u,z),y||v||(y=!0,Je(P))),z},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(z){var b=d;return function(){var Q=d;d=b;try{return z.apply(this,arguments)}finally{d=Q}}}})(Dd);Od.exports=Dd;var Cv=Od.exports;/**
  26. * @license React
  27. * react-dom.production.min.js
  28. *
  29. * Copyright (c) Facebook, Inc. and its affiliates.
  30. *
  31. * This source code is licensed under the MIT license found in the
  32. * LICENSE file in the root directory of this source tree.
  33. */var Nd=O,mt=Cv;function D(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 zd=new Set,$o={};function sr(e,t){Hr(e,t),Hr(e+"Capture",t)}function Hr(e,t){for($o[e]=t,e=0;e<t.length;e++)zd.add(t[e])}var rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),au=Object.prototype.hasOwnProperty,kv=/^[: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]*$/,Nc={},zc={};function Pv(e){return au.call(zc,e)?!0:au.call(Nc,e)?!1:kv.test(e)?zc[e]=!0:(Nc[e]=!0,!1)}function Rv(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 Mv(e,t,n,r){if(t===null||typeof t>"u"||Rv(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 nt(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(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){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var cs=/[\-:]([a-z])/g;function fs(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(cs,fs);Ve[t]=new nt(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(cs,fs);Ve[t]=new nt(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(cs,fs);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ds(e,t,n,r){var i=Ve.hasOwnProperty(t)?Ve[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Mv(t,n,i,r)&&(n=null),r||i===null?Pv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var un=Nd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ti=Symbol.for("react.element"),Er=Symbol.for("react.portal"),Cr=Symbol.for("react.fragment"),hs=Symbol.for("react.strict_mode"),uu=Symbol.for("react.profiler"),Ad=Symbol.for("react.provider"),Id=Symbol.for("react.context"),ps=Symbol.for("react.forward_ref"),su=Symbol.for("react.suspense"),cu=Symbol.for("react.suspense_list"),gs=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),Fd=Symbol.for("react.offscreen"),Ac=Symbol.iterator;function po(e){return e===null||typeof e!="object"?null:(e=Ac&&e[Ac]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Object.assign,Ta;function Po(e){if(Ta===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ta=t&&t[1]||""}return`
  34. `+Ta+e}var Oa=!1;function Da(e,t){if(!e||Oa)return"";Oa=!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(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&typeof s.stack=="string"){for(var i=s.stack.split(`
  35. `),o=r.stack.split(`
  36. `),l=i.length-1,a=o.length-1;1<=l&&0<=a&&i[l]!==o[a];)a--;for(;1<=l&&0<=a;l--,a--)if(i[l]!==o[a]){if(l!==1||a!==1)do if(l--,a--,0>a||i[l]!==o[a]){var u=`
  37. `+i[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Oa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Po(e):""}function xv(e){switch(e.tag){case 5:return Po(e.type);case 16:return Po("Lazy");case 13:return Po("Suspense");case 19:return Po("SuspenseList");case 0:case 2:case 15:return e=Da(e.type,!1),e;case 11:return e=Da(e.type.render,!1),e;case 1:return e=Da(e.type,!0),e;default:return""}}function fu(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 Cr:return"Fragment";case Er:return"Portal";case uu:return"Profiler";case hs:return"StrictMode";case su:return"Suspense";case cu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Id:return(e.displayName||"Context")+".Consumer";case Ad:return(e._context.displayName||"Context")+".Provider";case ps:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gs:return t=e.displayName||null,t!==null?t:fu(e.type)||"Memo";case yn:t=e._payload,e=e._init;try{return fu(e(t))}catch{}}return null}function Lv(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 fu(t);case 8:return t===hs?"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 Dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tv(e){var t=jd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oi(e){e._valueTracker||(e._valueTracker=Tv(e))}function $d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jd(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 du(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ic(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dn(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 Ud(e,t){t=t.checked,t!=null&&ds(e,"checked",t,!1)}function hu(e,t){Ud(e,t);var n=Dn(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")?pu(e,t.type,n):t.hasOwnProperty("defaultValue")&&pu(e,t.type,Dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fc(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 pu(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ro=Array.isArray;function Ir(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Dn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function gu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return _e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Ro(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Dn(n)}}function Bd(e,t){var n=Dn(t.value),r=Dn(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 $c(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function bd(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 vu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?bd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Di,Hd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Di=Di||document.createElement("div"),Di.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lo={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},Ov=["Webkit","ms","Moz","O"];Object.keys(Lo).forEach(function(e){Ov.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lo[t]=Lo[e]})});function Vd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lo.hasOwnProperty(e)&&Lo[e]?(""+t).trim():t+"px"}function Wd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Vd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Dv=_e({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 mu(e,t){if(t){if(Dv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function yu(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 wu=null;function vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Su=null,Fr=null,jr=null;function Uc(e){if(e=ai(e)){if(typeof Su!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Ul(t),Su(e.stateNode,e.type,t))}}function Qd(e){Fr?jr?jr.push(e):jr=[e]:Fr=e}function Kd(){if(Fr){var e=Fr,t=jr;if(jr=Fr=null,Uc(e),t)for(e=0;e<t.length;e++)Uc(t[e])}}function Gd(e,t){return e(t)}function Yd(){}var Na=!1;function Xd(e,t,n){if(Na)return e(t,n);Na=!0;try{return Gd(e,t,n)}finally{Na=!1,(Fr!==null||jr!==null)&&(Yd(),Kd())}}function Bo(e,t){var n=e.stateNode;if(n===null)return null;var r=Ul(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(D(231,t,typeof n));return n}var _u=!1;if(rn)try{var go={};Object.defineProperty(go,"passive",{get:function(){_u=!0}}),window.addEventListener("test",go,go),window.removeEventListener("test",go,go)}catch{_u=!1}function Nv(e,t,n,r,i,o,l,a,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var To=!1,cl=null,fl=!1,Eu=null,zv={onError:function(e){To=!0,cl=e}};function Av(e,t,n,r,i,o,l,a,u){To=!1,cl=null,Nv.apply(zv,arguments)}function Iv(e,t,n,r,i,o,l,a,u){if(Av.apply(this,arguments),To){if(To){var s=cl;To=!1,cl=null}else throw Error(D(198));fl||(fl=!0,Eu=s)}}function cr(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 Jd(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 Bc(e){if(cr(e)!==e)throw Error(D(188))}function Fv(e){var t=e.alternate;if(!t){if(t=cr(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Bc(i),e;if(o===r)return Bc(i),t;o=o.sibling}throw Error(D(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.sibling}if(!l){for(a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Zd(e){return e=Fv(e),e!==null?qd(e):null}function qd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=qd(e);if(t!==null)return t;e=e.sibling}return null}var eh=mt.unstable_scheduleCallback,bc=mt.unstable_cancelCallback,jv=mt.unstable_shouldYield,$v=mt.unstable_requestPaint,Re=mt.unstable_now,Uv=mt.unstable_getCurrentPriorityLevel,ms=mt.unstable_ImmediatePriority,th=mt.unstable_UserBlockingPriority,dl=mt.unstable_NormalPriority,Bv=mt.unstable_LowPriority,nh=mt.unstable_IdlePriority,Il=null,Kt=null;function bv(e){if(Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(Il,e,void 0,(e.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:Wv,Hv=Math.log,Vv=Math.LN2;function Wv(e){return e>>>=0,e===0?32:31-(Hv(e)/Vv|0)|0}var Ni=64,zi=4194304;function Mo(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 hl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Mo(a):(o&=l,o!==0&&(r=Mo(o)))}else l=n&~i,l!==0?r=Mo(l):o!==0&&(r=Mo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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-Ut(t),i=1<<n,r|=e[n],t&=~i;return r}function Qv(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 Kv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Ut(o),a=1<<l,u=i[l];u===-1?(!(a&n)||a&r)&&(i[l]=Qv(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function Cu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rh(){var e=Ni;return Ni<<=1,!(Ni&4194240)&&(Ni=64),e}function za(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function Gv(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 i=31-Ut(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function ys(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ut(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ie=0;function oh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ih,ws,lh,ah,uh,ku=!1,Ai=[],kn=null,Pn=null,Rn=null,bo=new Map,Ho=new Map,Sn=[],Yv="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 Hc(e,t){switch(e){case"focusin":case"focusout":kn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":bo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ho.delete(t.pointerId)}}function vo(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ai(t),t!==null&&ws(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Xv(e,t,n,r,i){switch(t){case"focusin":return kn=vo(kn,e,t,n,r,i),!0;case"dragenter":return Pn=vo(Pn,e,t,n,r,i),!0;case"mouseover":return Rn=vo(Rn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return bo.set(o,vo(bo.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ho.set(o,vo(Ho.get(o)||null,e,t,n,r,i)),!0}return!1}function sh(e){var t=Yn(e.target);if(t!==null){var n=cr(t);if(n!==null){if(t=n.tag,t===13){if(t=Jd(n),t!==null){e.blockedOn=t,uh(e.priority,function(){lh(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 Ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);wu=r,n.target.dispatchEvent(r),wu=null}else return t=ai(n),t!==null&&ws(t),e.blockedOn=n,!1;t.shift()}return!0}function Vc(e,t,n){Ji(e)&&n.delete(t)}function Jv(){ku=!1,kn!==null&&Ji(kn)&&(kn=null),Pn!==null&&Ji(Pn)&&(Pn=null),Rn!==null&&Ji(Rn)&&(Rn=null),bo.forEach(Vc),Ho.forEach(Vc)}function mo(e,t){e.blockedOn===t&&(e.blockedOn=null,ku||(ku=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,Jv)))}function Vo(e){function t(i){return mo(i,e)}if(0<Ai.length){mo(Ai[0],e);for(var n=1;n<Ai.length;n++){var r=Ai[n];r.blockedOn===e&&(r.blockedOn=null)}}for(kn!==null&&mo(kn,e),Pn!==null&&mo(Pn,e),Rn!==null&&mo(Rn,e),bo.forEach(t),Ho.forEach(t),n=0;n<Sn.length;n++)r=Sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Sn.length&&(n=Sn[0],n.blockedOn===null);)sh(n),n.blockedOn===null&&Sn.shift()}var $r=un.ReactCurrentBatchConfig,pl=!0;function Zv(e,t,n,r){var i=ie,o=$r.transition;$r.transition=null;try{ie=1,Ss(e,t,n,r)}finally{ie=i,$r.transition=o}}function qv(e,t,n,r){var i=ie,o=$r.transition;$r.transition=null;try{ie=4,Ss(e,t,n,r)}finally{ie=i,$r.transition=o}}function Ss(e,t,n,r){if(pl){var i=Pu(e,t,n,r);if(i===null)Va(e,t,r,gl,n),Hc(e,r);else if(Xv(i,e,t,n,r))r.stopPropagation();else if(Hc(e,r),t&4&&-1<Yv.indexOf(e)){for(;i!==null;){var o=ai(i);if(o!==null&&ih(o),o=Pu(e,t,n,r),o===null&&Va(e,t,r,gl,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Va(e,t,r,null,n)}}var gl=null;function Pu(e,t,n,r){if(gl=null,e=vs(r),e=Yn(e),e!==null)if(t=cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Jd(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 gl=e,null}function ch(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(Uv()){case ms:return 1;case th:return 4;case dl:case Bv:return 16;case nh:return 536870912;default:return 16}default:return 16}}var En=null,_s=null,Zi=null;function fh(){if(Zi)return Zi;var e,t=_s,n=t.length,r,i="value"in En?En.value:En.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Zi=i.slice(e,1<r?1-r:void 0)}function qi(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 Ii(){return!0}function Wc(){return!1}function wt(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ii:Wc,this.isPropagationStopped=Wc,this}return _e(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=Ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var to={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=wt(to),li=_e({},to,{view:0,detail:0}),em=wt(li),Aa,Ia,yo,Fl=_e({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cs,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!==yo&&(yo&&e.type==="mousemove"?(Aa=e.screenX-yo.screenX,Ia=e.screenY-yo.screenY):Ia=Aa=0,yo=e),Aa)},movementY:function(e){return"movementY"in e?e.movementY:Ia}}),Qc=wt(Fl),tm=_e({},Fl,{dataTransfer:0}),nm=wt(tm),rm=_e({},li,{relatedTarget:0}),Fa=wt(rm),om=_e({},to,{animationName:0,elapsedTime:0,pseudoElement:0}),im=wt(om),lm=_e({},to,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),am=wt(lm),um=_e({},to,{data:0}),Kc=wt(um),sm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cm={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"},fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fm[e])?!!t[e]:!1}function Cs(){return dm}var hm=_e({},li,{key:function(e){if(e.key){var t=sm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cs,charCode:function(e){return e.type==="keypress"?qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pm=wt(hm),gm=_e({},Fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gc=wt(gm),vm=_e({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cs}),mm=wt(vm),ym=_e({},to,{propertyName:0,elapsedTime:0,pseudoElement:0}),wm=wt(ym),Sm=_e({},Fl,{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}),_m=wt(Sm),Em=[9,13,27,32],ks=rn&&"CompositionEvent"in window,Oo=null;rn&&"documentMode"in document&&(Oo=document.documentMode);var Cm=rn&&"TextEvent"in window&&!Oo,dh=rn&&(!ks||Oo&&8<Oo&&11>=Oo),Yc=String.fromCharCode(32),Xc=!1;function hh(e,t){switch(e){case"keyup":return Em.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ph(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function km(e,t){switch(e){case"compositionend":return ph(t);case"keypress":return t.which!==32?null:(Xc=!0,Yc);case"textInput":return e=t.data,e===Yc&&Xc?null:e;default:return null}}function Pm(e,t){if(kr)return e==="compositionend"||!ks&&hh(e,t)?(e=fh(),Zi=_s=En=null,kr=!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 dh&&t.locale!=="ko"?null:t.data;default:return null}}var Rm={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 Jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rm[e.type]:t==="textarea"}function gh(e,t,n,r){Qd(r),t=vl(t,"onChange"),0<t.length&&(n=new Es("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Do=null,Wo=null;function Mm(e){Rh(e,0)}function jl(e){var t=Mr(e);if($d(t))return e}function xm(e,t){if(e==="change")return t}var vh=!1;if(rn){var ja;if(rn){var $a="oninput"in document;if(!$a){var Zc=document.createElement("div");Zc.setAttribute("oninput","return;"),$a=typeof Zc.oninput=="function"}ja=$a}else ja=!1;vh=ja&&(!document.documentMode||9<document.documentMode)}function qc(){Do&&(Do.detachEvent("onpropertychange",mh),Wo=Do=null)}function mh(e){if(e.propertyName==="value"&&jl(Wo)){var t=[];gh(t,Wo,e,vs(e)),Xd(Mm,t)}}function Lm(e,t,n){e==="focusin"?(qc(),Do=t,Wo=n,Do.attachEvent("onpropertychange",mh)):e==="focusout"&&qc()}function Tm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jl(Wo)}function Om(e,t){if(e==="click")return jl(t)}function Dm(e,t){if(e==="input"||e==="change")return jl(t)}function Nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Nm;function Qo(e,t){if(bt(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 i=n[r];if(!au.call(t,i)||!bt(e[i],t[i]))return!1}return!0}function ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tf(e,t){var n=ef(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=ef(n)}}function yh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wh(){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 Ps(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 zm(e){var t=wh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yh(n.ownerDocument.documentElement,n)){if(r!==null&&Ps(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=tf(n,o);var l=tf(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 Am=rn&&"documentMode"in document&&11>=document.documentMode,Pr=null,Ru=null,No=null,Mu=!1;function nf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mu||Pr==null||Pr!==sl(r)||(r=Pr,"selectionStart"in r&&Ps(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}),No&&Qo(No,r)||(No=r,r=vl(Ru,"onSelect"),0<r.length&&(t=new Es("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pr)))}function Fi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rr={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionend:Fi("Transition","TransitionEnd")},Ua={},Sh={};rn&&(Sh=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function $l(e){if(Ua[e])return Ua[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Sh)return Ua[e]=t[n];return e}var _h=$l("animationend"),Eh=$l("animationiteration"),Ch=$l("animationstart"),kh=$l("transitionend"),Ph=new Map,rf="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 An(e,t){Ph.set(e,t),sr(t,[e])}for(var Ba=0;Ba<rf.length;Ba++){var ba=rf[Ba],Im=ba.toLowerCase(),Fm=ba[0].toUpperCase()+ba.slice(1);An(Im,"on"+Fm)}An(_h,"onAnimationEnd");An(Eh,"onAnimationIteration");An(Ch,"onAnimationStart");An("dblclick","onDoubleClick");An("focusin","onFocus");An("focusout","onBlur");An(kh,"onTransitionEnd");Hr("onMouseEnter",["mouseout","mouseover"]);Hr("onMouseLeave",["mouseout","mouseover"]);Hr("onPointerEnter",["pointerout","pointerover"]);Hr("onPointerLeave",["pointerout","pointerover"]);sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));sr("onBeforeInput",["compositionend","keypress","textInput","paste"]);sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xo="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(" "),jm=new Set("cancel close invalid load scroll toggle".split(" ").concat(xo));function of(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Iv(r,t,void 0,e),e.currentTarget=null}function Rh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],u=a.instance,s=a.currentTarget;if(a=a.listener,u!==o&&i.isPropagationStopped())break e;of(i,a,s),o=u}else for(l=0;l<r.length;l++){if(a=r[l],u=a.instance,s=a.currentTarget,a=a.listener,u!==o&&i.isPropagationStopped())break e;of(i,a,s),o=u}}}if(fl)throw e=Eu,fl=!1,Eu=null,e}function pe(e,t){var n=t[Du];n===void 0&&(n=t[Du]=new Set);var r=e+"__bubble";n.has(r)||(Mh(t,e,2,!1),n.add(r))}function Ha(e,t,n){var r=0;t&&(r|=4),Mh(n,e,r,t)}var ji="_reactListening"+Math.random().toString(36).slice(2);function Ko(e){if(!e[ji]){e[ji]=!0,zd.forEach(function(n){n!=="selectionchange"&&(jm.has(n)||Ha(n,!1,e),Ha(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ji]||(t[ji]=!0,Ha("selectionchange",!1,t))}}function Mh(e,t,n,r){switch(ch(t)){case 1:var i=Zv;break;case 4:i=qv;break;default:i=Ss}n=i.bind(null,t,n,e),i=void 0,!_u||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Va(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;l=l.return}for(;a!==null;){if(l=Yn(a),l===null)return;if(u=l.tag,u===5||u===6){r=o=l;continue e}a=a.parentNode}}r=r.return}Xd(function(){var s=o,c=vs(n),f=[];e:{var d=Ph.get(e);if(d!==void 0){var v=Es,y=e;switch(e){case"keypress":if(qi(n)===0)break e;case"keydown":case"keyup":v=pm;break;case"focusin":y="focus",v=Fa;break;case"focusout":y="blur",v=Fa;break;case"beforeblur":case"afterblur":v=Fa;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":v=Qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=nm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=mm;break;case _h:case Eh:case Ch:v=im;break;case kh:v=wm;break;case"scroll":v=em;break;case"wheel":v=_m;break;case"copy":case"cut":case"paste":v=am;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Gc}var S=(t&4)!==0,E=!S&&e==="scroll",g=S?d!==null?d+"Capture":null:d;S=[];for(var h=s,w;h!==null;){w=h;var m=w.stateNode;if(w.tag===5&&m!==null&&(w=m,g!==null&&(m=Bo(h,g),m!=null&&S.push(Go(h,m,w)))),E)break;h=h.return}0<S.length&&(d=new v(d,y,null,n,c),f.push({event:d,listeners:S}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",d&&n!==wu&&(y=n.relatedTarget||n.fromElement)&&(Yn(y)||y[on]))break e;if((v||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=s,y=y?Yn(y):null,y!==null&&(E=cr(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=s),v!==y)){if(S=Qc,m="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(S=Gc,m="onPointerLeave",g="onPointerEnter",h="pointer"),E=v==null?d:Mr(v),w=y==null?d:Mr(y),d=new S(m,h+"leave",v,n,c),d.target=E,d.relatedTarget=w,m=null,Yn(c)===s&&(S=new S(g,h+"enter",y,n,c),S.target=w,S.relatedTarget=E,m=S),E=m,v&&y)t:{for(S=v,g=y,h=0,w=S;w;w=Sr(w))h++;for(w=0,m=g;m;m=Sr(m))w++;for(;0<h-w;)S=Sr(S),h--;for(;0<w-h;)g=Sr(g),w--;for(;h--;){if(S===g||g!==null&&S===g.alternate)break t;S=Sr(S),g=Sr(g)}S=null}else S=null;v!==null&&lf(f,d,v,S,!1),y!==null&&E!==null&&lf(f,E,y,S,!0)}}e:{if(d=s?Mr(s):window,v=d.nodeName&&d.nodeName.toLowerCase(),v==="select"||v==="input"&&d.type==="file")var P=xm;else if(Jc(d))if(vh)P=Dm;else{P=Tm;var R=Lm}else(v=d.nodeName)&&v.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(P=Om);if(P&&(P=P(e,s))){gh(f,P,n,c);break e}R&&R(e,d,s),e==="focusout"&&(R=d._wrapperState)&&R.controlled&&d.type==="number"&&pu(d,"number",d.value)}switch(R=s?Mr(s):window,e){case"focusin":(Jc(R)||R.contentEditable==="true")&&(Pr=R,Ru=s,No=null);break;case"focusout":No=Ru=Pr=null;break;case"mousedown":Mu=!0;break;case"contextmenu":case"mouseup":case"dragend":Mu=!1,nf(f,n,c);break;case"selectionchange":if(Am)break;case"keydown":case"keyup":nf(f,n,c)}var M;if(ks)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else kr?hh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(dh&&n.locale!=="ko"&&(kr||T!=="onCompositionStart"?T==="onCompositionEnd"&&kr&&(M=fh()):(En=c,_s="value"in En?En.value:En.textContent,kr=!0)),R=vl(s,T),0<R.length&&(T=new Kc(T,e,null,n,c),f.push({event:T,listeners:R}),M?T.data=M:(M=ph(n),M!==null&&(T.data=M)))),(M=Cm?km(e,n):Pm(e,n))&&(s=vl(s,"onBeforeInput"),0<s.length&&(c=new Kc("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:s}),c.data=M))}Rh(f,t)})}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Bo(e,n),o!=null&&r.unshift(Go(e,o,i)),o=Bo(e,t),o!=null&&r.push(Go(e,o,i))),e=e.return}return r}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lf(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var a=n,u=a.alternate,s=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&s!==null&&(a=s,i?(u=Bo(n,o),u!=null&&l.unshift(Go(n,u,a))):i||(u=Bo(n,o),u!=null&&l.push(Go(n,u,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var $m=/\r\n?/g,Um=/\u0000|\uFFFD/g;function af(e){return(typeof e=="string"?e:""+e).replace($m,`
  38. `).replace(Um,"")}function $i(e,t,n){if(t=af(t),af(e)!==t&&n)throw Error(D(425))}function ml(){}var xu=null,Lu=null;function Tu(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 Ou=typeof setTimeout=="function"?setTimeout:void 0,Bm=typeof clearTimeout=="function"?clearTimeout:void 0,uf=typeof Promise=="function"?Promise:void 0,bm=typeof queueMicrotask=="function"?queueMicrotask:typeof uf<"u"?function(e){return uf.resolve(null).then(e).catch(Hm)}:Ou;function Hm(e){setTimeout(function(){throw e})}function Wa(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Vo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Vo(t)}function Mn(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 sf(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 no=Math.random().toString(36).slice(2),Qt="__reactFiber$"+no,Yo="__reactProps$"+no,on="__reactContainer$"+no,Du="__reactEvents$"+no,Vm="__reactListeners$"+no,Wm="__reactHandles$"+no;function Yn(e){var t=e[Qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[Qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sf(e);e!==null;){if(n=e[Qt])return n;e=sf(e)}return t}e=n,n=e.parentNode}return null}function ai(e){return e=e[Qt]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Ul(e){return e[Yo]||null}var Nu=[],xr=-1;function In(e){return{current:e}}function ge(e){0>xr||(e.current=Nu[xr],Nu[xr]=null,xr--)}function fe(e,t){xr++,Nu[xr]=e.current,e.current=t}var Nn={},Xe=In(Nn),at=In(!1),tr=Nn;function Vr(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ut(e){return e=e.childContextTypes,e!=null}function yl(){ge(at),ge(Xe)}function cf(e,t,n){if(Xe.current!==Nn)throw Error(D(168));fe(Xe,t),fe(at,n)}function xh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(D(108,Lv(e)||"Unknown",i));return _e({},n,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,tr=Xe.current,fe(Xe,e),fe(at,at.current),!0}function ff(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=xh(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,ge(at),ge(Xe),fe(Xe,e)):ge(at),fe(at,n)}var Zt=null,Bl=!1,Qa=!1;function Lh(e){Zt===null?Zt=[e]:Zt.push(e)}function Qm(e){Bl=!0,Lh(e)}function Fn(){if(!Qa&&Zt!==null){Qa=!0;var e=0,t=ie;try{var n=Zt;for(ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zt=null,Bl=!1}catch(i){throw Zt!==null&&(Zt=Zt.slice(e+1)),eh(ms,Fn),i}finally{ie=t,Qa=!1}}return null}var Lr=[],Tr=0,Sl=null,_l=0,kt=[],Pt=0,nr=null,qt=1,en="";function Qn(e,t){Lr[Tr++]=_l,Lr[Tr++]=Sl,Sl=e,_l=t}function Th(e,t,n){kt[Pt++]=qt,kt[Pt++]=en,kt[Pt++]=nr,nr=e;var r=qt;e=en;var i=32-Ut(r)-1;r&=~(1<<i),n+=1;var o=32-Ut(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,qt=1<<32-Ut(t)+i|n<<i|r,en=o+e}else qt=1<<o|n<<i|r,en=e}function Rs(e){e.return!==null&&(Qn(e,1),Th(e,1,0))}function Ms(e){for(;e===Sl;)Sl=Lr[--Tr],Lr[Tr]=null,_l=Lr[--Tr],Lr[Tr]=null;for(;e===nr;)nr=kt[--Pt],kt[Pt]=null,en=kt[--Pt],kt[Pt]=null,qt=kt[--Pt],kt[Pt]=null}var vt=null,gt=null,me=!1,jt=null;function Oh(e,t){var n=Rt(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 df(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,vt=e,gt=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=nr!==null?{id:qt,overflow:en}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,gt=null,!0):!1;default:return!1}}function zu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Au(e){if(me){var t=gt;if(t){var n=t;if(!df(e,t)){if(zu(e))throw Error(D(418));t=Mn(n.nextSibling);var r=vt;t&&df(e,t)?Oh(r,n):(e.flags=e.flags&-4097|2,me=!1,vt=e)}}else{if(zu(e))throw Error(D(418));e.flags=e.flags&-4097|2,me=!1,vt=e}}}function hf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function Ui(e){if(e!==vt)return!1;if(!me)return hf(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Tu(e.type,e.memoizedProps)),t&&(t=gt)){if(zu(e))throw Dh(),Error(D(418));for(;t;)Oh(e,t),t=Mn(t.nextSibling)}if(hf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=Mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=vt?Mn(e.stateNode.nextSibling):null;return!0}function Dh(){for(var e=gt;e;)e=Mn(e.nextSibling)}function Wr(){gt=vt=null,me=!1}function xs(e){jt===null?jt=[e]:jt.push(e)}var Km=un.ReactCurrentBatchConfig;function At(e,t){if(e&&e.defaultProps){t=_e({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var El=In(null),Cl=null,Or=null,Ls=null;function Ts(){Ls=Or=Cl=null}function Os(e){var t=El.current;ge(El),e._currentValue=t}function Iu(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 Ur(e,t){Cl=e,Ls=Or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(Ls!==e)if(e={context:e,memoizedValue:t,next:null},Or===null){if(Cl===null)throw Error(D(308));Or=e,Cl.dependencies={lanes:0,firstContext:e}}else Or=Or.next=e;return t}var Xn=null;function Ds(e){Xn===null?Xn=[e]:Xn.push(e)}function Nh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ds(t)):(n.next=i.next,i.next=n),t.interleaved=n,ln(e,r)}function ln(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 wn=!1;function Ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zh(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 tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ln(e,n)}return i=r.interleaved,i===null?(t.next=t,Ds(r)):(t.next=i.next,i.next=t),r.interleaved=t,ln(e,n)}function el(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,ys(e,n)}}function pf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 kl(e,t,n,r){var i=e.updateQueue;wn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,s=u.next;u.next=null,l===null?o=s:l.next=s,l=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==l&&(a===null?c.firstBaseUpdate=s:a.next=s,c.lastBaseUpdate=u))}if(o!==null){var f=i.baseState;l=0,c=s=u=null,a=o;do{var d=a.lane,v=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,S=a;switch(d=t,v=n,S.tag){case 1:if(y=S.payload,typeof y=="function"){f=y.call(v,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=S.payload,d=typeof y=="function"?y.call(v,f,d):y,d==null)break e;f=_e({},f,d);break e;case 2:wn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else v={eventTime:v,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(s=c=v,u=f):c=c.next=v,l|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);or|=l,e.lanes=l,e.memoizedState=f}}function gf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(D(191,i));i.call(r)}}}var Ah=new Nd.Component().refs;function Fu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:_e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bl={isMounted:function(e){return(e=e._reactInternals)?cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=et(),i=Tn(e),o=tn(r,i);o.payload=t,n!=null&&(o.callback=n),t=xn(e,o,i),t!==null&&(Bt(t,e,i,r),el(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=et(),i=Tn(e),o=tn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=xn(e,o,i),t!==null&&(Bt(t,e,i,r),el(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=et(),r=Tn(e),i=tn(n,r);i.tag=2,t!=null&&(i.callback=t),t=xn(e,i,r),t!==null&&(Bt(t,e,r,n),el(t,e,r))}};function vf(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Qo(n,r)||!Qo(i,o):!0}function Ih(e,t,n){var r=!1,i=Nn,o=t.contextType;return typeof o=="object"&&o!==null?o=xt(o):(i=ut(t)?tr:Xe.current,r=t.contextTypes,o=(r=r!=null)?Vr(e,i):Nn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function mf(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&&bl.enqueueReplaceState(t,t.state,null)}function ju(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Ah,Ns(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=xt(o):(o=ut(t)?tr:Xe.current,i.context=Vr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Fu(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&bl.enqueueReplaceState(i,i.state,null),kl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function wo(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(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var a=i.refs;a===Ah&&(a=i.refs={}),l===null?delete a[o]:a[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Bi(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yf(e){var t=e._init;return t(e._payload)}function Fh(e){function t(g,h){if(e){var w=g.deletions;w===null?(g.deletions=[h],g.flags|=16):w.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(g,h){return g=On(g,h),g.index=0,g.sibling=null,g}function o(g,h,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<h?(g.flags|=2,h):w):(g.flags|=2,h)):(g.flags|=1048576,h)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,h,w,m){return h===null||h.tag!==6?(h=qa(w,g.mode,m),h.return=g,h):(h=i(h,w),h.return=g,h)}function u(g,h,w,m){var P=w.type;return P===Cr?c(g,h,w.props.children,m,w.key):h!==null&&(h.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yn&&yf(P)===h.type)?(m=i(h,w.props),m.ref=wo(g,h,w),m.return=g,m):(m=ll(w.type,w.key,w.props,null,g.mode,m),m.ref=wo(g,h,w),m.return=g,m)}function s(g,h,w,m){return h===null||h.tag!==4||h.stateNode.containerInfo!==w.containerInfo||h.stateNode.implementation!==w.implementation?(h=eu(w,g.mode,m),h.return=g,h):(h=i(h,w.children||[]),h.return=g,h)}function c(g,h,w,m,P){return h===null||h.tag!==7?(h=er(w,g.mode,m,P),h.return=g,h):(h=i(h,w),h.return=g,h)}function f(g,h,w){if(typeof h=="string"&&h!==""||typeof h=="number")return h=qa(""+h,g.mode,w),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ti:return w=ll(h.type,h.key,h.props,null,g.mode,w),w.ref=wo(g,null,h),w.return=g,w;case Er:return h=eu(h,g.mode,w),h.return=g,h;case yn:var m=h._init;return f(g,m(h._payload),w)}if(Ro(h)||po(h))return h=er(h,g.mode,w,null),h.return=g,h;Bi(g,h)}return null}function d(g,h,w,m){var P=h!==null?h.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:a(g,h,""+w,m);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ti:return w.key===P?u(g,h,w,m):null;case Er:return w.key===P?s(g,h,w,m):null;case yn:return P=w._init,d(g,h,P(w._payload),m)}if(Ro(w)||po(w))return P!==null?null:c(g,h,w,m,null);Bi(g,w)}return null}function v(g,h,w,m,P){if(typeof m=="string"&&m!==""||typeof m=="number")return g=g.get(w)||null,a(h,g,""+m,P);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ti:return g=g.get(m.key===null?w:m.key)||null,u(h,g,m,P);case Er:return g=g.get(m.key===null?w:m.key)||null,s(h,g,m,P);case yn:var R=m._init;return v(g,h,w,R(m._payload),P)}if(Ro(m)||po(m))return g=g.get(w)||null,c(h,g,m,P,null);Bi(h,m)}return null}function y(g,h,w,m){for(var P=null,R=null,M=h,T=h=0,A=null;M!==null&&T<w.length;T++){M.index>T?(A=M,M=null):A=M.sibling;var I=d(g,M,w[T],m);if(I===null){M===null&&(M=A);break}e&&M&&I.alternate===null&&t(g,M),h=o(I,h,T),R===null?P=I:R.sibling=I,R=I,M=A}if(T===w.length)return n(g,M),me&&Qn(g,T),P;if(M===null){for(;T<w.length;T++)M=f(g,w[T],m),M!==null&&(h=o(M,h,T),R===null?P=M:R.sibling=M,R=M);return me&&Qn(g,T),P}for(M=r(g,M);T<w.length;T++)A=v(M,g,T,w[T],m),A!==null&&(e&&A.alternate!==null&&M.delete(A.key===null?T:A.key),h=o(A,h,T),R===null?P=A:R.sibling=A,R=A);return e&&M.forEach(function(U){return t(g,U)}),me&&Qn(g,T),P}function S(g,h,w,m){var P=po(w);if(typeof P!="function")throw Error(D(150));if(w=P.call(w),w==null)throw Error(D(151));for(var R=P=null,M=h,T=h=0,A=null,I=w.next();M!==null&&!I.done;T++,I=w.next()){M.index>T?(A=M,M=null):A=M.sibling;var U=d(g,M,I.value,m);if(U===null){M===null&&(M=A);break}e&&M&&U.alternate===null&&t(g,M),h=o(U,h,T),R===null?P=U:R.sibling=U,R=U,M=A}if(I.done)return n(g,M),me&&Qn(g,T),P;if(M===null){for(;!I.done;T++,I=w.next())I=f(g,I.value,m),I!==null&&(h=o(I,h,T),R===null?P=I:R.sibling=I,R=I);return me&&Qn(g,T),P}for(M=r(g,M);!I.done;T++,I=w.next())I=v(M,g,T,I.value,m),I!==null&&(e&&I.alternate!==null&&M.delete(I.key===null?T:I.key),h=o(I,h,T),R===null?P=I:R.sibling=I,R=I);return e&&M.forEach(function(N){return t(g,N)}),me&&Qn(g,T),P}function E(g,h,w,m){if(typeof w=="object"&&w!==null&&w.type===Cr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ti:e:{for(var P=w.key,R=h;R!==null;){if(R.key===P){if(P=w.type,P===Cr){if(R.tag===7){n(g,R.sibling),h=i(R,w.props.children),h.return=g,g=h;break e}}else if(R.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yn&&yf(P)===R.type){n(g,R.sibling),h=i(R,w.props),h.ref=wo(g,R,w),h.return=g,g=h;break e}n(g,R);break}else t(g,R);R=R.sibling}w.type===Cr?(h=er(w.props.children,g.mode,m,w.key),h.return=g,g=h):(m=ll(w.type,w.key,w.props,null,g.mode,m),m.ref=wo(g,h,w),m.return=g,g=m)}return l(g);case Er:e:{for(R=w.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===w.containerInfo&&h.stateNode.implementation===w.implementation){n(g,h.sibling),h=i(h,w.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=eu(w,g.mode,m),h.return=g,g=h}return l(g);case yn:return R=w._init,E(g,h,R(w._payload),m)}if(Ro(w))return y(g,h,w,m);if(po(w))return S(g,h,w,m);Bi(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,h!==null&&h.tag===6?(n(g,h.sibling),h=i(h,w),h.return=g,g=h):(n(g,h),h=qa(w,g.mode,m),h.return=g,g=h),l(g)):n(g,h)}return E}var Qr=Fh(!0),jh=Fh(!1),ui={},Gt=In(ui),Xo=In(ui),Jo=In(ui);function Jn(e){if(e===ui)throw Error(D(174));return e}function zs(e,t){switch(fe(Jo,t),fe(Xo,e),fe(Gt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vu(t,e)}ge(Gt),fe(Gt,t)}function Kr(){ge(Gt),ge(Xo),ge(Jo)}function $h(e){Jn(Jo.current);var t=Jn(Gt.current),n=vu(t,e.type);t!==n&&(fe(Xo,e),fe(Gt,n))}function As(e){Xo.current===e&&(ge(Gt),ge(Xo))}var we=In(0);function Pl(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 Ka=[];function Is(){for(var e=0;e<Ka.length;e++)Ka[e]._workInProgressVersionPrimary=null;Ka.length=0}var tl=un.ReactCurrentDispatcher,Ga=un.ReactCurrentBatchConfig,rr=0,Se=null,De=null,Fe=null,Rl=!1,zo=!1,Zo=0,Gm=0;function Ke(){throw Error(D(321))}function Fs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bt(e[n],t[n]))return!1;return!0}function js(e,t,n,r,i,o){if(rr=o,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=e===null||e.memoizedState===null?Zm:qm,e=n(r,i),zo){o=0;do{if(zo=!1,Zo=0,25<=o)throw Error(D(301));o+=1,Fe=De=null,t.updateQueue=null,tl.current=ey,e=n(r,i)}while(zo)}if(tl.current=Ml,t=De!==null&&De.next!==null,rr=0,Fe=De=Se=null,Rl=!1,t)throw Error(D(300));return e}function $s(){var e=Zo!==0;return Zo=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Se.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Lt(){if(De===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Fe===null?Se.memoizedState:Fe.next;if(t!==null)Fe=t,De=e;else{if(e===null)throw Error(D(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Fe===null?Se.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function qo(e,t){return typeof t=="function"?t(e):t}function Ya(e){var t=Lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=De,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=l=null,u=null,s=o;do{var c=s.lane;if((rr&c)===c)u!==null&&(u=u.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};u===null?(a=u=f,l=r):u=u.next=f,Se.lanes|=c,or|=c}s=s.next}while(s!==null&&s!==o);u===null?l=r:u.next=a,bt(r,t.memoizedState)||(lt=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Se.lanes|=o,or|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xa(e){var t=Lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);bt(o,t.memoizedState)||(lt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uh(){}function Bh(e,t){var n=Se,r=Lt(),i=t(),o=!bt(r.memoizedState,i);if(o&&(r.memoizedState=i,lt=!0),r=r.queue,Us(Vh.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,ei(9,Hh.bind(null,n,r,i,t),void 0,null),je===null)throw Error(D(349));rr&30||bh(n,t,i)}return i}function bh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hh(e,t,n,r){t.value=n,t.getSnapshot=r,Wh(t)&&Qh(e)}function Vh(e,t,n){return n(function(){Wh(t)&&Qh(e)})}function Wh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bt(e,n)}catch{return!0}}function Qh(e){var t=ln(e,1);t!==null&&Bt(t,e,1,-1)}function wf(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t.queue=e,e=e.dispatch=Jm.bind(null,Se,e),[t.memoizedState,e]}function ei(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.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 Kh(){return Lt().memoizedState}function nl(e,t,n,r){var i=Wt();Se.flags|=e,i.memoizedState=ei(1|t,n,void 0,r===void 0?null:r)}function Hl(e,t,n,r){var i=Lt();r=r===void 0?null:r;var o=void 0;if(De!==null){var l=De.memoizedState;if(o=l.destroy,r!==null&&Fs(r,l.deps)){i.memoizedState=ei(t,n,o,r);return}}Se.flags|=e,i.memoizedState=ei(1|t,n,o,r)}function Sf(e,t){return nl(8390656,8,e,t)}function Us(e,t){return Hl(2048,8,e,t)}function Gh(e,t){return Hl(4,2,e,t)}function Yh(e,t){return Hl(4,4,e,t)}function Xh(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 Jh(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4,4,Xh.bind(null,t,e),n)}function Bs(){}function Zh(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qh(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ep(e,t,n){return rr&21?(bt(n,t)||(n=rh(),Se.lanes|=n,or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=n)}function Ym(e,t){var n=ie;ie=n!==0&&4>n?n:4,e(!0);var r=Ga.transition;Ga.transition={};try{e(!1),t()}finally{ie=n,Ga.transition=r}}function tp(){return Lt().memoizedState}function Xm(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},np(e))rp(t,n);else if(n=Nh(e,t,n,r),n!==null){var i=et();Bt(n,e,r,i),op(n,t,r)}}function Jm(e,t,n){var r=Tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(np(e))rp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,bt(a,l)){var u=t.interleaved;u===null?(i.next=i,Ds(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Nh(e,t,i,r),n!==null&&(i=et(),Bt(n,e,r,i),op(n,t,r))}}function np(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function rp(e,t){zo=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function op(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ys(e,n)}}var Ml={readContext:xt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},Zm={readContext:xt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,Xh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();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=Xm.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:wf,useDebugValue:Bs,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=wf(!1),t=e[0];return e=Ym.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Wt();if(me){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),je===null)throw Error(D(349));rr&30||bh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Sf(Vh.bind(null,r,o,e),[e]),r.flags|=2048,ei(9,Hh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Wt(),t=je.identifierPrefix;if(me){var n=en,r=qt;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Gm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qm={readContext:xt,useCallback:Zh,useContext:xt,useEffect:Us,useImperativeHandle:Jh,useInsertionEffect:Gh,useLayoutEffect:Yh,useMemo:qh,useReducer:Ya,useRef:Kh,useState:function(){return Ya(qo)},useDebugValue:Bs,useDeferredValue:function(e){var t=Lt();return ep(t,De.memoizedState,e)},useTransition:function(){var e=Ya(qo)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Uh,useSyncExternalStore:Bh,useId:tp,unstable_isNewReconciler:!1},ey={readContext:xt,useCallback:Zh,useContext:xt,useEffect:Us,useImperativeHandle:Jh,useInsertionEffect:Gh,useLayoutEffect:Yh,useMemo:qh,useReducer:Xa,useRef:Kh,useState:function(){return Xa(qo)},useDebugValue:Bs,useDeferredValue:function(e){var t=Lt();return De===null?t.memoizedState=e:ep(t,De.memoizedState,e)},useTransition:function(){var e=Xa(qo)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Uh,useSyncExternalStore:Bh,useId:tp,unstable_isNewReconciler:!1};function Gr(e,t){try{var n="",r=t;do n+=xv(r),r=r.return;while(r);var i=n}catch(o){i=`
  39. Error generating stack: `+o.message+`
  40. `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ja(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $u(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ty=typeof WeakMap=="function"?WeakMap:Map;function ip(e,t,n){n=tn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,Yu=r),$u(e,t)},n}function lp(e,t,n){n=tn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){$u(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){$u(e,t),typeof r!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ty;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=gy.bind(null,e,t,n),t.then(e,e))}function Ef(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 Cf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=tn(-1,1),t.tag=2,xn(n,t,1))),n.lanes|=1),e)}var ny=un.ReactCurrentOwner,lt=!1;function qe(e,t,n,r){t.child=e===null?jh(t,null,n,r):Qr(t,e.child,n,r)}function kf(e,t,n,r,i){n=n.render;var o=t.ref;return Ur(t,i),r=js(e,t,n,r,o,i),n=$s(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,an(e,t,i)):(me&&n&&Rs(t),t.flags|=1,qe(e,t,r,i),t.child)}function Pf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ys(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ap(e,t,o,r,i)):(e=ll(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Qo,n(l,r)&&e.ref===t.ref)return an(e,t,i)}return t.flags|=1,e=On(o,r),e.ref=t.ref,e.return=t,t.child=e}function ap(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Qo(o,r)&&e.ref===t.ref)if(lt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(lt=!0);else return t.lanes=e.lanes,an(e,t,i)}return Uu(e,t,n,r,i)}function up(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(Nr,pt),pt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(Nr,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,fe(Nr,pt),pt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,fe(Nr,pt),pt|=r;return qe(e,t,i,n),t.child}function sp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Uu(e,t,n,r,i){var o=ut(n)?tr:Xe.current;return o=Vr(t,o),Ur(t,i),n=js(e,t,n,r,o,i),r=$s(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,an(e,t,i)):(me&&r&&Rs(t),t.flags|=1,qe(e,t,n,i),t.child)}function Rf(e,t,n,r,i){if(ut(n)){var o=!0;wl(t)}else o=!1;if(Ur(t,i),t.stateNode===null)rl(e,t),Ih(t,n,r),ju(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=xt(s):(s=ut(n)?tr:Xe.current,s=Vr(t,s));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&mf(t,l,r,s),wn=!1;var d=t.memoizedState;l.state=d,kl(t,r,l,i),u=t.memoizedState,a!==r||d!==u||at.current||wn?(typeof c=="function"&&(Fu(t,n,c,r),u=t.memoizedState),(a=wn||vf(t,n,a,r,d,u,s))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,zh(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:At(t.type,a),l.props=s,f=t.pendingProps,d=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=xt(u):(u=ut(n)?tr:Xe.current,u=Vr(t,u));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==f||d!==u)&&mf(t,l,r,u),wn=!1,d=t.memoizedState,l.state=d,kl(t,r,l,i);var y=t.memoizedState;a!==f||d!==y||at.current||wn?(typeof v=="function"&&(Fu(t,n,v,r),y=t.memoizedState),(s=wn||vf(t,n,s,r,d,y,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Bu(e,t,n,r,o,i)}function Bu(e,t,n,r,i,o){sp(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&ff(t,n,!1),an(e,t,o);r=t.stateNode,ny.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Qr(t,e.child,null,o),t.child=Qr(t,null,a,o)):qe(e,t,a,o),t.memoizedState=r.state,i&&ff(t,n,!0),t.child}function cp(e){var t=e.stateNode;t.pendingContext?cf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cf(e,t.context,!1),zs(e,t.containerInfo)}function Mf(e,t,n,r,i){return Wr(),xs(i),t.flags|=256,qe(e,t,n,r),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Hu(e){return{baseLanes:e,cachePool:null,transitions:null}}function fp(e,t,n){var r=t.pendingProps,i=we.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),fe(we,i&1),e===null)return Au(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):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Ql(l,r,0,null),e=er(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Hu(n),t.memoizedState=bu,e):bs(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ry(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=On(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=On(a,o):(o=er(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Hu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=bu,r}return o=e.child,e=o.sibling,r=On(o,{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 bs(e,t){return t=Ql({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bi(e,t,n,r){return r!==null&&xs(r),Qr(t,e.child,null,n),e=bs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ry(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Ja(Error(D(422))),bi(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ql({mode:"visible",children:r.children},i,0,null),o=er(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Qr(t,e.child,null,l),t.child.memoizedState=Hu(l),t.memoizedState=bu,o);if(!(t.mode&1))return bi(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(D(419)),r=Ja(o,r,void 0),bi(e,t,l,r)}if(a=(l&e.childLanes)!==0,lt||a){if(r=je,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ln(e,i),Bt(r,e,i,-1))}return Gs(),r=Ja(Error(D(421))),bi(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=vy.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,gt=Mn(i.nextSibling),vt=t,me=!0,jt=null,e!==null&&(kt[Pt++]=qt,kt[Pt++]=en,kt[Pt++]=nr,qt=e.id,en=e.overflow,nr=t),t=bs(t,r.children),t.flags|=4096,t)}function xf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Iu(e.return,t,n)}function Za(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function dp(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(qe(e,t,r.children,n),r=we.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&&xf(e,n,t);else if(e.tag===19)xf(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(fe(we,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Pl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Za(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Pl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Za(t,!0,n,null,o);break;case"together":Za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function an(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function oy(e,t,n){switch(t.tag){case 3:cp(t),Wr();break;case 5:$h(t);break;case 1:ut(t.type)&&wl(t);break;case 4:zs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;fe(El,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?fp(e,t,n):(fe(we,we.current&1),e=an(e,t,n),e!==null?e.sibling:null);fe(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),fe(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,up(e,t,n)}return an(e,t,n)}var hp,Vu,pp,gp;hp=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}};Vu=function(){};pp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Jn(Gt.current);var o=null;switch(n){case"input":i=du(e,i),r=du(e,r),o=[];break;case"select":i=_e({},i,{value:void 0}),r=_e({},r,{value:void 0}),o=[];break;case"textarea":i=gu(e,i),r=gu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ml)}mu(n,r);var l;n=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var a=i[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($o.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var u=r[s];if(a=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(o||(o=[]),o.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&($o.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&pe("scroll",e),o||a===u||(o=[])):(o=o||[]).push(s,u))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};gp=function(e,t,n,r){n!==r&&(t.flags|=4)};function So(e,t){if(!me)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 Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iy(e,t,n){var r=t.pendingProps;switch(Ms(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return ut(t.type)&&yl(),Ge(t),null;case 3:return r=t.stateNode,Kr(),ge(at),ge(Xe),Is(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Zu(jt),jt=null))),Vu(e,t),Ge(t),null;case 5:As(t);var i=Jn(Jo.current);if(n=t.type,e!==null&&t.stateNode!=null)pp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ge(t),null}if(e=Jn(Gt.current),Ui(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Qt]=t,r[Yo]=o,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(i=0;i<xo.length;i++)pe(xo[i],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Ic(r,o),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},pe("invalid",r);break;case"textarea":jc(r,o),pe("invalid",r)}mu(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var a=o[l];l==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&$i(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&$i(r.textContent,a,e),i=["children",""+a]):$o.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&pe("scroll",r)}switch(n){case"input":Oi(r),Fc(r,o,!0);break;case"textarea":Oi(r),$c(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=ml)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=bd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Qt]=t,e[Yo]=r,hp(e,t,!1,!1),t.stateNode=e;e:{switch(l=yu(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;i<xo.length;i++)pe(xo[i],e);i=r;break;case"source":pe("error",e),i=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),i=r;break;case"details":pe("toggle",e),i=r;break;case"input":Ic(e,r),i=du(e,r),pe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=_e({},r,{value:void 0}),pe("invalid",e);break;case"textarea":jc(e,r),i=gu(e,r),pe("invalid",e);break;default:i=r}mu(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?Wd(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Hd(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Uo(e,u):typeof u=="number"&&Uo(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&($o.hasOwnProperty(o)?u!=null&&o==="onScroll"&&pe("scroll",e):u!=null&&ds(e,o,u,l))}switch(n){case"input":Oi(e),Fc(e,r,!1);break;case"textarea":Oi(e),$c(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Dn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ir(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ir(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.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 Ge(t),null;case 6:if(e&&t.stateNode!=null)gp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Jn(Jo.current),Jn(Gt.current),Ui(t)){if(r=t.stateNode,n=t.memoizedProps,r[Qt]=t,(o=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:$i(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$i(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Qt]=t,t.stateNode=r}return Ge(t),null;case 13:if(ge(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&gt!==null&&t.mode&1&&!(t.flags&128))Dh(),Wr(),t.flags|=98560,o=!1;else if(o=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(D(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(D(317));o[Qt]=t}else Wr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),o=!1}else jt!==null&&(Zu(jt),jt=null),o=!0;if(!o)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||we.current&1?Ne===0&&(Ne=3):Gs())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return Kr(),Vu(e,t),e===null&&Ko(t.stateNode.containerInfo),Ge(t),null;case 10:return Os(t.type._context),Ge(t),null;case 17:return ut(t.type)&&yl(),Ge(t),null;case 19:if(ge(we),o=t.memoizedState,o===null)return Ge(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)So(o,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Pl(e),l!==null){for(t.flags|=128,So(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fe(we,we.current&1|2),t.child}e=e.sibling}o.tail!==null&&Re()>Yr&&(t.flags|=128,r=!0,So(o,!1),t.lanes=4194304)}else{if(!r)if(e=Pl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),So(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!me)return Ge(t),null}else 2*Re()-o.renderingStartTime>Yr&&n!==1073741824&&(t.flags|=128,r=!0,So(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Re(),t.sibling=null,n=we.current,fe(we,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return Ks(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function ly(e,t){switch(Ms(t),t.tag){case 1:return ut(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kr(),ge(at),ge(Xe),Is(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return As(t),null;case 13:if(ge(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(we),null;case 4:return Kr(),null;case 10:return Os(t.type._context),null;case 22:case 23:return Ks(),null;case 24:return null;default:return null}}var Hi=!1,Ye=!1,ay=typeof WeakSet=="function"?WeakSet:Set,$=null;function Dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Wu(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Lf=!1;function uy(e,t){if(xu=pl,e=wh(),Ps(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,f=e,d=null;t:for(;;){for(var v;f!==n||i!==0&&f.nodeType!==3||(a=l+i),f!==o||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(v=f.firstChild)!==null;)d=f,f=v;for(;;){if(f===e)break t;if(d===n&&++s===i&&(a=l),d===o&&++c===r&&(u=l),(v=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=v}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lu={focusedElem:e,selectionRange:n},pl=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;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 S=y.memoizedProps,E=y.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?S:At(t.type,S),E);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(m){Pe(t,t.return,m)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return y=Lf,Lf=!1,y}function Ao(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Wu(t,n,o)}i=i.next}while(i!==r)}}function Vl(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 Qu(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 vp(e){var t=e.alternate;t!==null&&(e.alternate=null,vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[Yo],delete t[Du],delete t[Vm],delete t[Wm])),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 mp(e){return e.tag===5||e.tag===3||e.tag===4}function Tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mp(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 Ku(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(Ku(e,t,n),e=e.sibling;e!==null;)Ku(e,t,n),e=e.sibling}function Gu(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(Gu(e,t,n),e=e.sibling;e!==null;)Gu(e,t,n),e=e.sibling}var be=null,It=!1;function mn(e,t,n){for(n=n.child;n!==null;)yp(e,t,n),n=n.sibling}function yp(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:Ye||Dr(n,t);case 6:var r=be,i=It;be=null,mn(e,t,n),be=r,It=i,be!==null&&(It?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(It?(e=be,n=n.stateNode,e.nodeType===8?Wa(e.parentNode,n):e.nodeType===1&&Wa(e,n),Vo(e)):Wa(be,n.stateNode));break;case 4:r=be,i=It,be=n.stateNode.containerInfo,It=!0,mn(e,t,n),be=r,It=i;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Wu(n,t,l),i=i.next}while(i!==r)}mn(e,t,n);break;case 1:if(!Ye&&(Dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}mn(e,t,n);break;case 21:mn(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,mn(e,t,n),Ye=r):mn(e,t,n);break;default:mn(e,t,n)}}function Of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ay),t.forEach(function(r){var i=my.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,a=l;e:for(;a!==null;){switch(a.tag){case 5:be=a.stateNode,It=!1;break e;case 3:be=a.stateNode.containerInfo,It=!0;break e;case 4:be=a.stateNode.containerInfo,It=!0;break e}a=a.return}if(be===null)throw Error(D(160));yp(o,l,i),be=null,It=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(s){Pe(i,t,s)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wp(t,e),t=t.sibling}function wp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(zt(t,e),Vt(e),r&4){try{Ao(3,e,e.return),Vl(3,e)}catch(S){Pe(e,e.return,S)}try{Ao(5,e,e.return)}catch(S){Pe(e,e.return,S)}}break;case 1:zt(t,e),Vt(e),r&512&&n!==null&&Dr(n,n.return);break;case 5:if(zt(t,e),Vt(e),r&512&&n!==null&&Dr(n,n.return),e.flags&32){var i=e.stateNode;try{Uo(i,"")}catch(S){Pe(e,e.return,S)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Ud(i,o),yu(a,l);var s=yu(a,o);for(l=0;l<u.length;l+=2){var c=u[l],f=u[l+1];c==="style"?Wd(i,f):c==="dangerouslySetInnerHTML"?Hd(i,f):c==="children"?Uo(i,f):ds(i,c,f,s)}switch(a){case"input":hu(i,o);break;case"textarea":Bd(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Ir(i,!!o.multiple,v,!1):d!==!!o.multiple&&(o.defaultValue!=null?Ir(i,!!o.multiple,o.defaultValue,!0):Ir(i,!!o.multiple,o.multiple?[]:"",!1))}i[Yo]=o}catch(S){Pe(e,e.return,S)}}break;case 6:if(zt(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(D(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(S){Pe(e,e.return,S)}}break;case 3:if(zt(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vo(t.containerInfo)}catch(S){Pe(e,e.return,S)}break;case 4:zt(t,e),Vt(e);break;case 13:zt(t,e),Vt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Ws=Re())),r&4&&Of(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(s=Ye)||c,zt(t,e),Ye=s):zt(t,e),Vt(e),r&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!c&&e.mode&1)for($=e,c=e.child;c!==null;){for(f=$=c;$!==null;){switch(d=$,v=d.child,d.tag){case 0:case 11:case 14:case 15:Ao(4,d,d.return);break;case 1:Dr(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(S){Pe(r,n,S)}}break;case 5:Dr(d,d.return);break;case 22:if(d.memoizedState!==null){Nf(f);continue}}v!==null?(v.return=d,$=v):Nf(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,s?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,u=f.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Vd("display",l))}catch(S){Pe(e,e.return,S)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=s?"":f.memoizedProps}catch(S){Pe(e,e.return,S)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:zt(t,e),Vt(e),r&4&&Of(e);break;case 21:break;default:zt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mp(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Uo(i,""),r.flags&=-33);var o=Tf(e);Gu(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,a=Tf(e);Ku(e,a,l);break;default:throw Error(D(161))}}catch(u){Pe(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sy(e,t,n){$=e,Sp(e)}function Sp(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var i=$,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Hi;if(!l){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Ye;a=Hi;var s=Ye;if(Hi=l,(Ye=u)&&!s)for($=i;$!==null;)l=$,u=l.child,l.tag===22&&l.memoizedState!==null?zf(i):u!==null?(u.return=l,$=u):zf(i);for(;o!==null;)$=o,Sp(o),o=o.sibling;$=i,Hi=a,Ye=s}Df(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$=o):Df(e)}}function Df(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ye||Vl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:At(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&gf(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gf(t,l,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 s=t.alternate;if(s!==null){var c=s.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Vo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Ye||t.flags&512&&Qu(t)}catch(d){Pe(t,t.return,d)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Nf(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function zf(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vl(4,t)}catch(u){Pe(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){Pe(t,i,u)}}var o=t.return;try{Qu(t)}catch(u){Pe(t,o,u)}break;case 5:var l=t.return;try{Qu(t)}catch(u){Pe(t,l,u)}}}catch(u){Pe(t,t.return,u)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var cy=Math.ceil,xl=un.ReactCurrentDispatcher,Hs=un.ReactCurrentOwner,Mt=un.ReactCurrentBatchConfig,te=0,je=null,xe=null,He=0,pt=0,Nr=In(0),Ne=0,ti=null,or=0,Wl=0,Vs=0,Io=null,it=null,Ws=0,Yr=1/0,Jt=null,Ll=!1,Yu=null,Ln=null,Vi=!1,Cn=null,Tl=0,Fo=0,Xu=null,ol=-1,il=0;function et(){return te&6?Re():ol!==-1?ol:ol=Re()}function Tn(e){return e.mode&1?te&2&&He!==0?He&-He:Km.transition!==null?(il===0&&(il=rh()),il):(e=ie,e!==0||(e=window.event,e=e===void 0?16:ch(e.type)),e):1}function Bt(e,t,n,r){if(50<Fo)throw Fo=0,Xu=null,Error(D(185));ii(e,n,r),(!(te&2)||e!==je)&&(e===je&&(!(te&2)&&(Wl|=n),Ne===4&&_n(e,He)),st(e,r),n===1&&te===0&&!(t.mode&1)&&(Yr=Re()+500,Bl&&Fn()))}function st(e,t){var n=e.callbackNode;Kv(e,t);var r=hl(e,e===je?He:0);if(r===0)n!==null&&bc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&bc(n),t===1)e.tag===0?Qm(Af.bind(null,e)):Lh(Af.bind(null,e)),bm(function(){!(te&6)&&Fn()}),n=null;else{switch(oh(r)){case 1:n=ms;break;case 4:n=th;break;case 16:n=dl;break;case 536870912:n=nh;break;default:n=dl}n=xp(n,_p.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _p(e,t){if(ol=-1,il=0,te&6)throw Error(D(327));var n=e.callbackNode;if(Br()&&e.callbackNode!==n)return null;var r=hl(e,e===je?He:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ol(e,r);else{t=r;var i=te;te|=2;var o=Cp();(je!==e||He!==t)&&(Jt=null,Yr=Re()+500,qn(e,t));do try{hy();break}catch(a){Ep(e,a)}while(1);Ts(),xl.current=o,te=i,xe!==null?t=0:(je=null,He=0,t=Ne)}if(t!==0){if(t===2&&(i=Cu(e),i!==0&&(r=i,t=Ju(e,i))),t===1)throw n=ti,qn(e,0),_n(e,r),st(e,Re()),n;if(t===6)_n(e,r);else{if(i=e.current.alternate,!(r&30)&&!fy(i)&&(t=Ol(e,r),t===2&&(o=Cu(e),o!==0&&(r=o,t=Ju(e,o))),t===1))throw n=ti,qn(e,0),_n(e,r),st(e,Re()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Kn(e,it,Jt);break;case 3:if(_n(e,r),(r&130023424)===r&&(t=Ws+500-Re(),10<t)){if(hl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){et(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ou(Kn.bind(null,e,it,Jt),t);break}Kn(e,it,Jt);break;case 4:if(_n(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Ut(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cy(r/1960))-r,10<r){e.timeoutHandle=Ou(Kn.bind(null,e,it,Jt),r);break}Kn(e,it,Jt);break;case 5:Kn(e,it,Jt);break;default:throw Error(D(329))}}}return st(e,Re()),e.callbackNode===n?_p.bind(null,e):null}function Ju(e,t){var n=Io;return e.current.memoizedState.isDehydrated&&(qn(e,t).flags|=256),e=Ol(e,t),e!==2&&(t=it,it=n,t!==null&&Zu(t)),e}function Zu(e){it===null?it=e:it.push.apply(it,e)}function fy(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 i=n[r],o=i.getSnapshot;i=i.value;try{if(!bt(o(),i))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 _n(e,t){for(t&=~Vs,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function Af(e){if(te&6)throw Error(D(327));Br();var t=hl(e,0);if(!(t&1))return st(e,Re()),null;var n=Ol(e,t);if(e.tag!==0&&n===2){var r=Cu(e);r!==0&&(t=r,n=Ju(e,r))}if(n===1)throw n=ti,qn(e,0),_n(e,t),st(e,Re()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kn(e,it,Jt),st(e,Re()),null}function Qs(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Yr=Re()+500,Bl&&Fn())}}function ir(e){Cn!==null&&Cn.tag===0&&!(te&6)&&Br();var t=te;te|=1;var n=Mt.transition,r=ie;try{if(Mt.transition=null,ie=1,e)return e()}finally{ie=r,Mt.transition=n,te=t,!(te&6)&&Fn()}}function Ks(){pt=Nr.current,ge(Nr)}function qn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Bm(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(Ms(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:Kr(),ge(at),ge(Xe),Is();break;case 5:As(r);break;case 4:Kr();break;case 13:ge(we);break;case 19:ge(we);break;case 10:Os(r.type._context);break;case 22:case 23:Ks()}n=n.return}if(je=e,xe=e=On(e.current,null),He=pt=t,Ne=0,ti=null,Vs=Wl=or=0,it=Io=null,Xn!==null){for(t=0;t<Xn.length;t++)if(n=Xn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}Xn=null}return e}function Ep(e,t){do{var n=xe;try{if(Ts(),tl.current=Ml,Rl){for(var r=Se.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Rl=!1}if(rr=0,Fe=De=Se=null,zo=!1,Zo=0,Hs.current=null,n===null||n.return===null){Ne=1,ti=t,xe=null;break}e:{var o=e,l=n.return,a=n,u=t;if(t=He,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var s=u,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=Ef(l);if(v!==null){v.flags&=-257,Cf(v,l,a,o,t),v.mode&1&&_f(o,s,t),t=v,u=s;var y=t.updateQueue;if(y===null){var S=new Set;S.add(u),t.updateQueue=S}else y.add(u);break e}else{if(!(t&1)){_f(o,s,t),Gs();break e}u=Error(D(426))}}else if(me&&a.mode&1){var E=Ef(l);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Cf(E,l,a,o,t),xs(Gr(u,a));break e}}o=u=Gr(u,a),Ne!==4&&(Ne=2),Io===null?Io=[o]:Io.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=ip(o,u,t);pf(o,g);break e;case 1:a=u;var h=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ln===null||!Ln.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var m=lp(o,a,t);pf(o,m);break e}}o=o.return}while(o!==null)}Pp(n)}catch(P){t=P,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(1)}function Cp(){var e=xl.current;return xl.current=Ml,e===null?Ml:e}function Gs(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),je===null||!(or&268435455)&&!(Wl&268435455)||_n(je,He)}function Ol(e,t){var n=te;te|=2;var r=Cp();(je!==e||He!==t)&&(Jt=null,qn(e,t));do try{dy();break}catch(i){Ep(e,i)}while(1);if(Ts(),te=n,xl.current=r,xe!==null)throw Error(D(261));return je=null,He=0,Ne}function dy(){for(;xe!==null;)kp(xe)}function hy(){for(;xe!==null&&!jv();)kp(xe)}function kp(e){var t=Mp(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?Pp(e):xe=t,Hs.current=null}function Pp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ly(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,xe=null;return}}else if(n=iy(n,t,pt),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ne===0&&(Ne=5)}function Kn(e,t,n){var r=ie,i=Mt.transition;try{Mt.transition=null,ie=1,py(e,t,n,r)}finally{Mt.transition=i,ie=r}return null}function py(e,t,n,r){do Br();while(Cn!==null);if(te&6)throw Error(D(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Gv(e,o),e===je&&(xe=je=null,He=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vi||(Vi=!0,xp(dl,function(){return Br(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Mt.transition,Mt.transition=null;var l=ie;ie=1;var a=te;te|=4,Hs.current=null,uy(e,n),wp(n,e),zm(Lu),pl=!!xu,Lu=xu=null,e.current=n,sy(n),$v(),te=a,ie=l,Mt.transition=o}else e.current=n;if(Vi&&(Vi=!1,Cn=e,Tl=i),o=e.pendingLanes,o===0&&(Ln=null),bv(n.stateNode),st(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ll)throw Ll=!1,e=Yu,Yu=null,e;return Tl&1&&e.tag!==0&&Br(),o=e.pendingLanes,o&1?e===Xu?Fo++:(Fo=0,Xu=e):Fo=0,Fn(),null}function Br(){if(Cn!==null){var e=oh(Tl),t=Mt.transition,n=ie;try{if(Mt.transition=null,ie=16>e?16:e,Cn===null)var r=!1;else{if(e=Cn,Cn=null,Tl=0,te&6)throw Error(D(331));var i=te;for(te|=4,$=e.current;$!==null;){var o=$,l=o.child;if($.flags&16){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var s=a[u];for($=s;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:Ao(8,c,o)}var f=c.child;if(f!==null)f.return=c,$=f;else for(;$!==null;){c=$;var d=c.sibling,v=c.return;if(vp(c),c===s){$=null;break}if(d!==null){d.return=v,$=d;break}$=v}}}var y=o.alternate;if(y!==null){var S=y.child;if(S!==null){y.child=null;do{var E=S.sibling;S.sibling=null,S=E}while(S!==null)}}$=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,$=l;else e:for(;$!==null;){if(o=$,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ao(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,$=g;break e}$=o.return}}var h=e.current;for($=h;$!==null;){l=$;var w=l.child;if(l.subtreeFlags&2064&&w!==null)w.return=l,$=w;else e:for(l=h;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Vl(9,a)}}catch(P){Pe(a,a.return,P)}if(a===l){$=null;break e}var m=a.sibling;if(m!==null){m.return=a.return,$=m;break e}$=a.return}}if(te=i,Fn(),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(Il,e)}catch{}r=!0}return r}finally{ie=n,Mt.transition=t}}return!1}function If(e,t,n){t=Gr(n,t),t=ip(e,t,1),e=xn(e,t,1),t=et(),e!==null&&(ii(e,1,t),st(e,t))}function Pe(e,t,n){if(e.tag===3)If(e,e,n);else for(;t!==null;){if(t.tag===3){If(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ln===null||!Ln.has(r))){e=Gr(n,e),e=lp(t,e,1),t=xn(t,e,1),e=et(),t!==null&&(ii(t,1,e),st(t,e));break}}t=t.return}}function gy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=et(),e.pingedLanes|=e.suspendedLanes&n,je===e&&(He&n)===n&&(Ne===4||Ne===3&&(He&130023424)===He&&500>Re()-Ws?qn(e,0):Vs|=n),st(e,t)}function Rp(e,t){t===0&&(e.mode&1?(t=zi,zi<<=1,!(zi&130023424)&&(zi=4194304)):t=1);var n=et();e=ln(e,t),e!==null&&(ii(e,t,n),st(e,n))}function vy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rp(e,n)}function my(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),Rp(e,n)}var Mp;Mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,oy(e,t,n);lt=!!(e.flags&131072)}else lt=!1,me&&t.flags&1048576&&Th(t,_l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var i=Vr(t,Xe.current);Ur(t,n),i=js(null,t,r,e,i,n);var o=$s();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(o=!0,wl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ns(t),i.updater=bl,t.stateNode=i,i._reactInternals=t,ju(t,r,e,n),t=Bu(null,t,r,!0,o,n)):(t.tag=0,me&&o&&Rs(t),qe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=wy(r),e=At(r,e),i){case 0:t=Uu(null,t,r,e,n);break e;case 1:t=Rf(null,t,r,e,n);break e;case 11:t=kf(null,t,r,e,n);break e;case 14:t=Pf(null,t,r,At(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),Uu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),Rf(e,t,r,i,n);case 3:e:{if(cp(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,zh(e,t),kl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Gr(Error(D(423)),t),t=Mf(e,t,r,n,i);break e}else if(r!==i){i=Gr(Error(D(424)),t),t=Mf(e,t,r,n,i);break e}else for(gt=Mn(t.stateNode.containerInfo.firstChild),vt=t,me=!0,jt=null,n=jh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wr(),r===i){t=an(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return $h(t),e===null&&Au(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Tu(r,i)?l=null:o!==null&&Tu(r,o)&&(t.flags|=32),sp(e,t),qe(e,t,l,n),t.child;case 6:return e===null&&Au(t),null;case 13:return fp(e,t,n);case 4:return zs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qr(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),kf(e,t,r,i,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,fe(El,r._currentValue),r._currentValue=l,o!==null)if(bt(o.value,l)){if(o.children===i.children&&!at.current){t=an(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=tn(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Iu(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(D(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Iu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}qe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ur(t,n),i=xt(i),r=r(i),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,i=At(r,t.pendingProps),i=At(r.type,i),Pf(e,t,r,i,n);case 15:return ap(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),rl(e,t),t.tag=1,ut(r)?(e=!0,wl(t)):e=!1,Ur(t,n),Ih(t,r,i),ju(t,r,i,n),Bu(null,t,r,!0,e,n);case 19:return dp(e,t,n);case 22:return up(e,t,n)}throw Error(D(156,t.tag))};function xp(e,t){return eh(e,t)}function yy(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 Rt(e,t,n,r){return new yy(e,t,n,r)}function Ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wy(e){if(typeof e=="function")return Ys(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ps)return 11;if(e===gs)return 14}return 2}function On(e,t){var n=e.alternate;return n===null?(n=Rt(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 ll(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Ys(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Cr:return er(n.children,i,o,t);case hs:l=8,i|=8;break;case uu:return e=Rt(12,n,t,i|2),e.elementType=uu,e.lanes=o,e;case su:return e=Rt(13,n,t,i),e.elementType=su,e.lanes=o,e;case cu:return e=Rt(19,n,t,i),e.elementType=cu,e.lanes=o,e;case Fd:return Ql(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ad:l=10;break e;case Id:l=9;break e;case ps:l=11;break e;case gs:l=14;break e;case yn:l=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Rt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function er(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Fd,e.lanes=n,e.stateNode={isHidden:!1},e}function qa(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=za(0),this.expirationTimes=za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xs(e,t,n,r,i,o,l,a,u){return e=new Sy(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Rt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ns(o),e}function _y(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Er,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Lp(e){if(!e)return Nn;e=e._reactInternals;e:{if(cr(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ut(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(ut(n))return xh(e,n,t)}return t}function Tp(e,t,n,r,i,o,l,a,u){return e=Xs(n,r,!0,e,i,o,l,a,u),e.context=Lp(null),n=e.current,r=et(),i=Tn(n),o=tn(r,i),o.callback=t??null,xn(n,o,i),e.current.lanes=i,ii(e,i,r),st(e,r),e}function Kl(e,t,n,r){var i=t.current,o=et(),l=Tn(i);return n=Lp(n),t.context===null?t.context=n:t.pendingContext=n,t=tn(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xn(i,t,l),e!==null&&(Bt(e,i,l,o),el(e,i,l)),l}function Dl(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 Ff(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Js(e,t){Ff(e,t),(e=e.alternate)&&Ff(e,t)}function Ey(){return null}var Op=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zs(e){this._internalRoot=e}Gl.prototype.render=Zs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Kl(e,t,null,null)};Gl.prototype.unmount=Zs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ir(function(){Kl(null,e,null,null)}),t[on]=null}};function Gl(e){this._internalRoot=e}Gl.prototype.unstable_scheduleHydration=function(e){if(e){var t=ah();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sn.length&&t!==0&&t<Sn[n].priority;n++);Sn.splice(n,0,e),n===0&&sh(e)}};function qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jf(){}function Cy(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var s=Dl(l);o.call(s)}}var l=Tp(t,r,e,0,null,!1,!1,"",jf);return e._reactRootContainer=l,e[on]=l.current,Ko(e.nodeType===8?e.parentNode:e),ir(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var s=Dl(u);a.call(s)}}var u=Xs(e,0,!1,null,null,!1,!1,"",jf);return e._reactRootContainer=u,e[on]=u.current,Ko(e.nodeType===8?e.parentNode:e),ir(function(){Kl(t,u,n,r)}),u}function Xl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var a=i;i=function(){var u=Dl(l);a.call(u)}}Kl(t,l,e,i)}else l=Cy(n,t,e,i,r);return Dl(l)}ih=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mo(t.pendingLanes);n!==0&&(ys(t,n|1),st(t,Re()),!(te&6)&&(Yr=Re()+500,Fn()))}break;case 13:ir(function(){var r=ln(e,1);if(r!==null){var i=et();Bt(r,e,1,i)}}),Js(e,1)}};ws=function(e){if(e.tag===13){var t=ln(e,134217728);if(t!==null){var n=et();Bt(t,e,134217728,n)}Js(e,134217728)}};lh=function(e){if(e.tag===13){var t=Tn(e),n=ln(e,t);if(n!==null){var r=et();Bt(n,e,t,r)}Js(e,t)}};ah=function(){return ie};uh=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};Su=function(e,t,n){switch(t){case"input":if(hu(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 i=Ul(r);if(!i)throw Error(D(90));$d(r),hu(r,i)}}}break;case"textarea":Bd(e,n);break;case"select":t=n.value,t!=null&&Ir(e,!!n.multiple,t,!1)}};Gd=Qs;Yd=ir;var ky={usingClientEntryPoint:!1,Events:[ai,Mr,Ul,Qd,Kd,Qs]},_o={findFiberByHostInstance:Yn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Py={bundleType:_o.bundleType,version:_o.version,rendererPackageName:_o.rendererPackageName,rendererConfig:_o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:un.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zd(e),e===null?null:e.stateNode},findFiberByHostInstance:_o.findFiberByHostInstance||Ey,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{Il=Wi.inject(Py),Kt=Wi}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ky;yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qs(t))throw Error(D(200));return _y(e,t,null,n)};yt.createRoot=function(e,t){if(!qs(e))throw Error(D(299));var n=!1,r="",i=Op;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Xs(e,1,!1,null,null,n,!1,r,i),e[on]=t.current,Ko(e.nodeType===8?e.parentNode:e),new Zs(t)};yt.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Zd(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return ir(e)};yt.hydrate=function(e,t,n){if(!Yl(t))throw Error(D(200));return Xl(null,e,t,!0,n)};yt.hydrateRoot=function(e,t,n){if(!qs(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=Op;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Tp(t,null,e,1,n??null,i,!1,o,l),e[on]=t.current,Ko(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gl(t)};yt.render=function(e,t,n){if(!Yl(t))throw Error(D(200));return Xl(null,e,t,!1,n)};yt.unmountComponentAtNode=function(e){if(!Yl(e))throw Error(D(40));return e._reactRootContainer?(ir(function(){Xl(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};yt.unstable_batchedUpdates=Qs;yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yl(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Xl(e,t,n,!1,r)};yt.version="18.2.0-next-9e3b772b8-20220608";function Dp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dp)}catch(e){console.error(e)}}Dp(),Td.exports=yt;var Jl=Td.exports;const Ry=md(Jl),nS=yd({__proto__:null,default:Ry},[Jl]);var $f=Jl;Dc.createRoot=$f.createRoot,Dc.hydrateRoot=$f.hydrateRoot;var Np={exports:{}},zp={};/**
  41. * @license React
  42. * use-sync-external-store-shim.production.min.js
  43. *
  44. * Copyright (c) Facebook, Inc. and its affiliates.
  45. *
  46. * This source code is licensed under the MIT license found in the
  47. * LICENSE file in the root directory of this source tree.
  48. */var Xr=O;function My(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xy=typeof Object.is=="function"?Object.is:My,Ly=Xr.useState,Ty=Xr.useEffect,Oy=Xr.useLayoutEffect,Dy=Xr.useDebugValue;function Ny(e,t){var n=t(),r=Ly({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Oy(function(){i.value=n,i.getSnapshot=t,tu(i)&&o({inst:i})},[e,n,t]),Ty(function(){return tu(i)&&o({inst:i}),e(function(){tu(i)&&o({inst:i})})},[e]),Dy(n),n}function tu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xy(e,n)}catch{return!0}}function zy(e,t){return t()}var Ay=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zy:Ny;zp.useSyncExternalStore=Xr.useSyncExternalStore!==void 0?Xr.useSyncExternalStore:Ay;Np.exports=zp;var Iy=Np.exports,Ap={exports:{}},Ip={};/**
  49. * @license React
  50. * use-sync-external-store-shim/with-selector.production.min.js
  51. *
  52. * Copyright (c) Facebook, Inc. and its affiliates.
  53. *
  54. * This source code is licensed under the MIT license found in the
  55. * LICENSE file in the root directory of this source tree.
  56. */var Zl=O,Fy=Iy;function jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $y=typeof Object.is=="function"?Object.is:jy,Uy=Fy.useSyncExternalStore,By=Zl.useRef,by=Zl.useEffect,Hy=Zl.useMemo,Vy=Zl.useDebugValue;Ip.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=By(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=Hy(function(){function u(v){if(!s){if(s=!0,c=v,v=r(v),i!==void 0&&l.hasValue){var y=l.value;if(i(y,v))return f=y}return f=v}if(y=f,$y(c,v))return y;var S=r(v);return i!==void 0&&i(y,S)?y:(c=v,f=S)}var s=!1,c,f,d=n===void 0?null:n;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,n,r,i]);var a=Uy(e,o[0],o[1]);return by(function(){l.hasValue=!0,l.value=a},[a]),Vy(a),a};Ap.exports=Ip;var Wy=Ap.exports;function Qy(e){e()}let Fp=Qy;const Ky=e=>Fp=e,Gy=()=>Fp,Uf=Symbol.for(`react-redux-context-${O.version}`),Bf=globalThis;function Yy(){let e=Bf[Uf];return e||(e=O.createContext(null),Bf[Uf]=e),e}const zn=new Proxy({},new Proxy({},{get(e,t){const n=Yy();return(r,...i)=>Reflect[t](n,...i)}}));function ec(e=zn){return function(){return O.useContext(e)}}const jp=ec(),Xy=()=>{throw new Error("uSES not initialized!")};let $p=Xy;const Jy=e=>{$p=e},Zy=(e,t)=>e===t;function qy(e=zn){const t=e===zn?jp:ec(e);return function(r,i={}){const{equalityFn:o=Zy,stabilityCheck:l=void 0,noopCheck:a=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:s,getServerState:c,stabilityCheck:f,noopCheck:d}=t();O.useRef(!0);const v=O.useCallback({[r.name](S){return r(S)}}[r.name],[r,f,l]),y=$p(s.addNestedSub,u.getState,c||u.getState,v,o);return O.useDebugValue(y),y}}const rS=qy();function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}function oS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Up={exports:{}},le={};/** @license React v16.13.1
  57. * react-is.production.min.js
  58. *
  59. * Copyright (c) Facebook, Inc. and its affiliates.
  60. *
  61. * This source code is licensed under the MIT license found in the
  62. * LICENSE file in the root directory of this source tree.
  63. */var $e=typeof Symbol=="function"&&Symbol.for,tc=$e?Symbol.for("react.element"):60103,nc=$e?Symbol.for("react.portal"):60106,ql=$e?Symbol.for("react.fragment"):60107,ea=$e?Symbol.for("react.strict_mode"):60108,ta=$e?Symbol.for("react.profiler"):60114,na=$e?Symbol.for("react.provider"):60109,ra=$e?Symbol.for("react.context"):60110,rc=$e?Symbol.for("react.async_mode"):60111,oa=$e?Symbol.for("react.concurrent_mode"):60111,ia=$e?Symbol.for("react.forward_ref"):60112,la=$e?Symbol.for("react.suspense"):60113,e0=$e?Symbol.for("react.suspense_list"):60120,aa=$e?Symbol.for("react.memo"):60115,ua=$e?Symbol.for("react.lazy"):60116,t0=$e?Symbol.for("react.block"):60121,n0=$e?Symbol.for("react.fundamental"):60117,r0=$e?Symbol.for("react.responder"):60118,o0=$e?Symbol.for("react.scope"):60119;function St(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tc:switch(e=e.type,e){case rc:case oa:case ql:case ta:case ea:case la:return e;default:switch(e=e&&e.$$typeof,e){case ra:case ia:case ua:case aa:case na:return e;default:return t}}case nc:return t}}}function Bp(e){return St(e)===oa}le.AsyncMode=rc;le.ConcurrentMode=oa;le.ContextConsumer=ra;le.ContextProvider=na;le.Element=tc;le.ForwardRef=ia;le.Fragment=ql;le.Lazy=ua;le.Memo=aa;le.Portal=nc;le.Profiler=ta;le.StrictMode=ea;le.Suspense=la;le.isAsyncMode=function(e){return Bp(e)||St(e)===rc};le.isConcurrentMode=Bp;le.isContextConsumer=function(e){return St(e)===ra};le.isContextProvider=function(e){return St(e)===na};le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tc};le.isForwardRef=function(e){return St(e)===ia};le.isFragment=function(e){return St(e)===ql};le.isLazy=function(e){return St(e)===ua};le.isMemo=function(e){return St(e)===aa};le.isPortal=function(e){return St(e)===nc};le.isProfiler=function(e){return St(e)===ta};le.isStrictMode=function(e){return St(e)===ea};le.isSuspense=function(e){return St(e)===la};le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ql||e===oa||e===ta||e===ea||e===la||e===e0||typeof e=="object"&&e!==null&&(e.$$typeof===ua||e.$$typeof===aa||e.$$typeof===na||e.$$typeof===ra||e.$$typeof===ia||e.$$typeof===n0||e.$$typeof===r0||e.$$typeof===o0||e.$$typeof===t0)};le.typeOf=St;Up.exports=le;var i0=Up.exports,bp=i0,l0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hp={};Hp[bp.ForwardRef]=l0;Hp[bp.Memo]=a0;var ae={};/**
  64. * @license React
  65. * react-is.production.min.js
  66. *
  67. * Copyright (c) Facebook, Inc. and its affiliates.
  68. *
  69. * This source code is licensed under the MIT license found in the
  70. * LICENSE file in the root directory of this source tree.
  71. */var oc=Symbol.for("react.element"),ic=Symbol.for("react.portal"),sa=Symbol.for("react.fragment"),ca=Symbol.for("react.strict_mode"),fa=Symbol.for("react.profiler"),da=Symbol.for("react.provider"),ha=Symbol.for("react.context"),u0=Symbol.for("react.server_context"),pa=Symbol.for("react.forward_ref"),ga=Symbol.for("react.suspense"),va=Symbol.for("react.suspense_list"),ma=Symbol.for("react.memo"),ya=Symbol.for("react.lazy"),s0=Symbol.for("react.offscreen"),Vp;Vp=Symbol.for("react.module.reference");function Tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case oc:switch(e=e.type,e){case sa:case fa:case ca:case ga:case va:return e;default:switch(e=e&&e.$$typeof,e){case u0:case ha:case pa:case ya:case ma:case da:return e;default:return t}}case ic:return t}}}ae.ContextConsumer=ha;ae.ContextProvider=da;ae.Element=oc;ae.ForwardRef=pa;ae.Fragment=sa;ae.Lazy=ya;ae.Memo=ma;ae.Portal=ic;ae.Profiler=fa;ae.StrictMode=ca;ae.Suspense=ga;ae.SuspenseList=va;ae.isAsyncMode=function(){return!1};ae.isConcurrentMode=function(){return!1};ae.isContextConsumer=function(e){return Tt(e)===ha};ae.isContextProvider=function(e){return Tt(e)===da};ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===oc};ae.isForwardRef=function(e){return Tt(e)===pa};ae.isFragment=function(e){return Tt(e)===sa};ae.isLazy=function(e){return Tt(e)===ya};ae.isMemo=function(e){return Tt(e)===ma};ae.isPortal=function(e){return Tt(e)===ic};ae.isProfiler=function(e){return Tt(e)===fa};ae.isStrictMode=function(e){return Tt(e)===ca};ae.isSuspense=function(e){return Tt(e)===ga};ae.isSuspenseList=function(e){return Tt(e)===va};ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sa||e===fa||e===ca||e===ga||e===va||e===s0||typeof e=="object"&&e!==null&&(e.$$typeof===ya||e.$$typeof===ma||e.$$typeof===da||e.$$typeof===ha||e.$$typeof===pa||e.$$typeof===Vp||e.getModuleId!==void 0)};ae.typeOf=Tt;function c0(){const e=Gy();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Hf={notify(){},get:()=>[]};function f0(e,t){let n,r=Hf;function i(f){return u(),r.subscribe(f)}function o(){r.notify()}function l(){c.onStateChange&&c.onStateChange()}function a(){return!!n}function u(){n||(n=t?t.addNestedSub(l):e.subscribe(l),r=c0())}function s(){n&&(n(),n=void 0,r.clear(),r=Hf)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:a,trySubscribe:u,tryUnsubscribe:s,getListeners:()=>r};return c}const d0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h0=d0?O.useLayoutEffect:O.useEffect;function iS({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const l=O.useMemo(()=>{const s=f0(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=O.useMemo(()=>e.getState(),[e]);h0(()=>{const{subscription:s}=l;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),a!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[l,a]);const u=t||zn;return xd.createElement(u.Provider,{value:l},n)}function Wp(e=zn){const t=e===zn?jp:ec(e);return function(){const{store:r}=t();return r}}const p0=Wp();function g0(e=zn){const t=e===zn?p0:Wp(e);return function(){return t().dispatch}}const lS=g0();Jy(Wy.useSyncExternalStoreWithSelector);Ky(Jl.unstable_batchedUpdates);/**
  72. * @remix-run/router v1.7.0
  73. *
  74. * Copyright (c) Remix Software Inc.
  75. *
  76. * This source code is licensed under the MIT license found in the
  77. * LICENSE.md file in the root directory of this source tree.
  78. *
  79. * @license MIT
  80. */function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ve.apply(this,arguments)}var Me;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Me||(Me={}));const Vf="popstate";function v0(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:l,hash:a}=r.location;return ni("",{pathname:o,search:l,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:lr(i)}return y0(t,n,null,e)}function J(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Jr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function m0(){return Math.random().toString(36).substr(2,8)}function Wf(e,t){return{usr:e.state,key:e.key,idx:t}}function ni(e,t,n,r){return n===void 0&&(n=null),ve({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sn(t):t,{state:n,key:t&&t.key||r||m0()})}function lr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function sn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function y0(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Me.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(ve({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function f(){a=Me.Pop;let E=c(),g=E==null?null:E-s;s=E,u&&u({action:a,location:S.location,delta:g})}function d(E,g){a=Me.Push;let h=ni(S.location,E,g);n&&n(h,E),s=c()+1;let w=Wf(h,s),m=S.createHref(h);try{l.pushState(w,"",m)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(m)}o&&u&&u({action:a,location:S.location,delta:1})}function v(E,g){a=Me.Replace;let h=ni(S.location,E,g);n&&n(h,E),s=c();let w=Wf(h,s),m=S.createHref(h);l.replaceState(w,"",m),o&&u&&u({action:a,location:S.location,delta:0})}function y(E){let g=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof E=="string"?E:lr(E);return J(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let S={get action(){return a},get location(){return e(i,l)},listen(E){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Vf,f),u=E,()=>{i.removeEventListener(Vf,f),u=null}},createHref(E){return t(i,E)},createURL:y,encodeLocation(E){let g=y(E);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:v,go(E){return l.go(E)}};return S}var Oe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Oe||(Oe={}));const w0=new Set(["lazy","caseSensitive","path","id","index","children"]);function S0(e){return e.index===!0}function qu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,o],a=typeof i.id=="string"?i.id:l.join("-");if(J(i.index!==!0||!i.children,"Cannot specify children on an index route"),J(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),S0(i)){let u=ve({},i,t(i),{id:a});return r[a]=u,u}else{let u=ve({},i,t(i),{id:a,children:void 0});return r[a]=u,i.children&&(u.children=qu(i.children,t,l,r)),u}})}function zr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?sn(t):t,i=ro(r.pathname||"/",n);if(i==null)return null;let o=Qp(e);_0(o);let l=null;for(let a=0;l==null&&a<o.length;++a)l=T0(o[a],N0(i));return l}function Qp(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,l,a)=>{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(J(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=nn([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(J(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Qp(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:x0(s,o.index),routesMeta:c})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let u of Kp(o.path))i(o,l,u)}),t}function Kp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Kp(r.join("/")),a=[];return a.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function _0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:L0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const E0=/^:\w+$/,C0=3,k0=2,P0=1,R0=10,M0=-2,Qf=e=>e==="*";function x0(e,t){let n=e.split("/"),r=n.length;return n.some(Qf)&&(r+=M0),t&&(r+=k0),n.filter(i=>!Qf(i)).reduce((i,o)=>i+(E0.test(o)?C0:o===""?P0:R0),r)}function L0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function T0(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l<n.length;++l){let a=n[l],u=l===n.length-1,s=i==="/"?t:t.slice(i.length)||"/",c=O0({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},s);if(!c)return null;Object.assign(r,c.params);let f=a.route;o.push({params:r,pathname:nn([i,c.pathname]),pathnameBase:F0(nn([i,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(i=nn([i,c.pathnameBase]))}return o}function O0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=D0(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((s,c,f)=>{if(c==="*"){let d=a[f]||"";l=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return s[c]=z0(a[f]||"",c),s},{}),pathname:o,pathnameBase:l,pattern:e}}function D0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function N0(e){try{return decodeURI(e)}catch(t){return Jr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function z0(e,t){try{return decodeURIComponent(e)}catch(n){return Jr(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ro(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function A0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?sn(e):e;return{pathname:n?n.startsWith("/")?n:I0(n,t):t,search:j0(r),hash:$0(i)}}function I0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function nu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function wa(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lc(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=sn(e):(i=ve({},e),J(!i.pathname||!i.pathname.includes("?"),nu("?","pathname","search",i)),J(!i.pathname||!i.pathname.includes("#"),nu("#","pathname","hash",i)),J(!i.search||!i.search.includes("#"),nu("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(r||l==null)a=n;else{let f=t.length-1;if(l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let u=A0(i,a),s=l&&l!=="/"&&l.endsWith("/"),c=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),F0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ac{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Gp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Yp=["post","put","patch","delete"],U0=new Set(Yp),B0=["get",...Yp],b0=new Set(B0),H0=new Set([301,302,303,307,308]),V0=new Set([307,308]),ru={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Xp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Q0=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function K0(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;J(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let C=e.detectErrorBoundary;i=k=>({hasErrorBoundary:C(k)})}else i=Q0;let o={},l=qu(e.routes,i,void 0,o),a,u=e.basename||"/",s=ve({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,d=null,v=null,y=null,S=e.hydrationData!=null,E=zr(l,e.history.location,u),g=null;if(E==null){let C=Ct(404,{pathname:e.history.location.pathname}),{matches:k,route:L}=ed(l);E=k,g={[L.id]:C}}let h=!E.some(C=>C.route.lazy)&&(!E.some(C=>C.route.loader)||e.hydrationData!=null),w,m={historyAction:e.history.action,location:e.history.location,matches:E,initialized:h,navigation:ru,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},P=Me.Pop,R=!1,M,T=!1,A=!1,I=[],U=[],N=new Map,ne=0,ue=-1,ct=new Map,Je=new Set,rt=new Map,z=new Map,b=new Map,Q=!1;function de(){return c=e.history.listen(C=>{let{action:k,location:L,delta:F}=C;if(Q){Q=!1;return}Jr(b.size===0||F!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Y=$n({currentLocation:m.location,nextLocation:L,historyAction:k});if(Y&&F!=null){Q=!0,e.history.go(F*-1),pr(Y,{state:"blocked",location:L,proceed(){pr(Y,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),e.history.go(F)},reset(){let H=new Map(m.blockers);H.set(Y,Qi),se({blockers:H})}});return}return ze(k,L)}),m.initialized||ze(Me.Pop,m.location),w}function Ee(){c&&c(),f.clear(),M&&M.abort(),m.fetchers.forEach((C,k)=>uo(k)),m.blockers.forEach((C,k)=>wi(k))}function fn(C){return f.add(C),()=>f.delete(C)}function se(C){m=ve({},m,C),f.forEach(k=>k(m))}function ee(C,k){var L,F;let Y=m.actionData!=null&&m.navigation.formMethod!=null&&Ft(m.navigation.formMethod)&&m.navigation.state==="loading"&&((L=C.state)==null?void 0:L._isRedirect)!==!0,H;k.actionData?Object.keys(k.actionData).length>0?H=k.actionData:H=null:Y?H=m.actionData:H=null;let K=k.loaderData?qf(m.loaderData,k.loaderData,k.matches||[],k.errors):m.loaderData,G=new Map;b.clear();let B=R===!0||m.navigation.formMethod!=null&&Ft(m.navigation.formMethod)&&((F=C.state)==null?void 0:F._isRedirect)!==!0;a&&(l=a,a=void 0),T||P===Me.Pop||(P===Me.Push?e.history.push(C,C.state):P===Me.Replace&&e.history.replace(C,C.state)),se(ve({},k,{actionData:H,loaderData:K,historyAction:P,location:C,initialized:!0,navigation:ru,revalidation:"idle",restoreScrollPosition:so(C,k.matches||m.matches),preventScrollReset:B,blockers:G})),P=Me.Pop,R=!1,T=!1,A=!1,I=[],U=[]}async function ft(C,k){if(typeof C=="number"){e.history.go(C);return}let L=es(m.location,m.matches,u,s.v7_prependBasename,C,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:F,submission:Y,error:H}=Kf(s.v7_normalizeFormMethod,!1,L,k),K=m.location,G=ni(m.location,F,k&&k.state);G=ve({},G,e.history.encodeLocation(G));let B=k&&k.replace!=null?k.replace:void 0,oe=Me.Push;B===!0?oe=Me.Replace:B===!1||Y!=null&&Ft(Y.formMethod)&&Y.formAction===m.location.pathname+m.location.search&&(oe=Me.Replace);let Z=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,Ue=$n({currentLocation:K,nextLocation:G,historyAction:oe});if(Ue){pr(Ue,{state:"blocked",location:G,proceed(){pr(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),ft(C,k)},reset(){let Ce=new Map(m.blockers);Ce.set(Ue,Qi),se({blockers:Ce})}});return}return await ze(oe,G,{submission:Y,pendingError:H,preventScrollReset:Z,replace:k&&k.replace})}function dn(){if(ao(),se({revalidation:"loading"}),m.navigation.state!=="submitting"){if(m.navigation.state==="idle"){ze(m.historyAction,m.location,{startUninterruptedRevalidation:!0});return}ze(P||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation})}}async function ze(C,k,L){M&&M.abort(),M=null,P=C,T=(L&&L.startUninterruptedRevalidation)===!0,_i(m.location,m.matches),R=(L&&L.preventScrollReset)===!0;let F=a||l,Y=L&&L.overrideNavigation,H=zr(F,k,u);if(!H){let Ce=Ct(404,{pathname:k.pathname}),{matches:Ae,route:We}=ed(F);Un(),ee(k,{matches:Ae,loaderData:{},errors:{[We.id]:Ce}});return}if(m.initialized&&!A&&Z0(m.location,k)&&!(L&&L.submission&&Ft(L.submission.formMethod))){ee(k,{matches:H});return}M=new AbortController;let K=Co(e.history,k,M.signal,L&&L.submission),G,B;if(L&&L.pendingError)B={[Ar(H).route.id]:L.pendingError};else if(L&&L.submission&&Ft(L.submission.formMethod)){let Ce=await fi(K,k,L.submission,H,{replace:L.replace});if(Ce.shortCircuited)return;G=Ce.pendingActionData,B=Ce.pendingActionError,Y=Ki(k,L.submission),K=new Request(K.url,{signal:K.signal})}let{shortCircuited:oe,loaderData:Z,errors:Ue}=await di(K,k,H,Y,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,G,B);oe||(M=null,ee(k,ve({matches:H},G?{actionData:G}:{},{loaderData:Z,errors:Ue})))}async function fi(C,k,L,F,Y){Y===void 0&&(Y={}),ao();let H=r1(k,L);se({navigation:H});let K,G=ns(F,k);if(!G.route.action&&!G.route.lazy)K={type:Oe.error,error:Ct(405,{method:C.method,pathname:k.pathname,routeId:G.route.id})};else if(K=await Eo("action",C,G,F,o,i,u),C.signal.aborted)return{shortCircuited:!0};if(br(K)){let B;return Y&&Y.replace!=null?B=Y.replace:B=K.location===m.location.pathname+m.location.search,await jn(m,K,{submission:L,replace:B}),{shortCircuited:!0}}if(jo(K)){let B=Ar(F,G.route.id);return(Y&&Y.replace)!==!0&&(P=Me.Push),{pendingActionData:{},pendingActionError:{[B.route.id]:K.error}}}if(Zn(K))throw Ct(400,{type:"defer-action"});return{pendingActionData:{[G.route.id]:K.data}}}async function di(C,k,L,F,Y,H,K,G,B){let oe=F||Ki(k,Y),Z=Y||H||rd(oe),Ue=a||l,[Ce,Ae]=Gf(e.history,m,L,Z,k,A,I,U,rt,Je,Ue,u,G,B);if(Un(ce=>!(L&&L.some(ot=>ot.route.id===ce))||Ce&&Ce.some(ot=>ot.route.id===ce)),Ce.length===0&&Ae.length===0){let ce=mi();return ee(k,ve({matches:L,loaderData:{},errors:B||null},G?{actionData:G}:{},ce?{fetchers:new Map(m.fetchers)}:{})),{shortCircuited:!0}}if(!T){Ae.forEach(ot=>{let hn=m.fetchers.get(ot.key),Te=ko(void 0,hn?hn.data:void 0);m.fetchers.set(ot.key,Te)});let ce=G||m.actionData;se(ve({navigation:oe},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ae.length>0?{fetchers:new Map(m.fetchers)}:{}))}ue=++ne,Ae.forEach(ce=>{N.has(ce.key)&&Ht(ce.key),ce.controller&&N.set(ce.key,ce.controller)});let We=()=>Ae.forEach(ce=>Ht(ce.key));M&&M.signal.addEventListener("abort",We);let{results:Bn,loaderResults:co,fetcherResults:gr}=await gi(m.matches,L,Ce,Ae,C);if(C.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",We),Ae.forEach(ce=>N.delete(ce.key));let Ot=td(Bn);if(Ot)return await jn(m,Ot,{replace:K}),{shortCircuited:!0};let{loaderData:vr,errors:mr}=Zf(m,L,Ce,co,B,Ae,gr,z);z.forEach((ce,ot)=>{ce.subscribe(hn=>{(hn||ce.done)&&z.delete(ot)})});let bn=mi(),Dt=yi(ue),yr=bn||Dt||Ae.length>0;return ve({loaderData:vr,errors:mr},yr?{fetchers:new Map(m.fetchers)}:{})}function io(C){return m.fetchers.get(C)||W0}function lo(C,k,L,F){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");N.has(C)&&Ht(C);let Y=a||l,H=es(m.location,m.matches,u,s.v7_prependBasename,L,k,F==null?void 0:F.relative),K=zr(Y,H,u);if(!K){hr(C,k,Ct(404,{pathname:H}));return}let{path:G,submission:B,error:oe}=Kf(s.v7_normalizeFormMethod,!0,H,F);if(oe){hr(C,k,oe);return}let Z=ns(K,G);if(R=(F&&F.preventScrollReset)===!0,B&&Ft(B.formMethod)){hi(C,k,G,Z,K,B);return}rt.set(C,{routeId:k,path:G}),pi(C,k,G,Z,K,B)}async function hi(C,k,L,F,Y,H){if(ao(),rt.delete(C),!F.route.action&&!F.route.lazy){let Te=Ct(405,{method:H.formMethod,pathname:L,routeId:k});hr(C,k,Te);return}let K=m.fetchers.get(C),G=o1(H,K);m.fetchers.set(C,G),se({fetchers:new Map(m.fetchers)});let B=new AbortController,oe=Co(e.history,L,B.signal,H);N.set(C,B);let Z=await Eo("action",oe,F,Y,o,i,u);if(oe.signal.aborted){N.get(C)===B&&N.delete(C);return}if(br(Z)){N.delete(C),Je.add(C);let Te=ko(H);return m.fetchers.set(C,Te),se({fetchers:new Map(m.fetchers)}),jn(m,Z,{submission:H,isFetchActionRedirect:!0})}if(jo(Z)){hr(C,k,Z.error);return}if(Zn(Z))throw Ct(400,{type:"defer-action"});let Ue=m.navigation.location||m.location,Ce=Co(e.history,Ue,B.signal),Ae=a||l,We=m.navigation.state!=="idle"?zr(Ae,m.navigation.location,u):m.matches;J(We,"Didn't find any matches after fetcher action");let Bn=++ne;ct.set(C,Bn);let co=ko(H,Z.data);m.fetchers.set(C,co);let[gr,Ot]=Gf(e.history,m,We,H,Ue,A,I,U,rt,Je,Ae,u,{[F.route.id]:Z.data},void 0);Ot.filter(Te=>Te.key!==C).forEach(Te=>{let Ze=Te.key,Ei=m.fetchers.get(Ze),Ma=ko(void 0,Ei?Ei.data:void 0);m.fetchers.set(Ze,Ma),N.has(Ze)&&Ht(Ze),Te.controller&&N.set(Ze,Te.controller)}),se({fetchers:new Map(m.fetchers)});let vr=()=>Ot.forEach(Te=>Ht(Te.key));B.signal.addEventListener("abort",vr);let{results:mr,loaderResults:bn,fetcherResults:Dt}=await gi(m.matches,We,gr,Ot,Ce);if(B.signal.aborted)return;B.signal.removeEventListener("abort",vr),ct.delete(C),N.delete(C),Ot.forEach(Te=>N.delete(Te.key));let yr=td(mr);if(yr)return jn(m,yr);let{loaderData:ce,errors:ot}=Zf(m,m.matches,gr,bn,void 0,Ot,Dt,z);if(m.fetchers.has(C)){let Te=al(Z.data);m.fetchers.set(C,Te)}let hn=yi(Bn);m.navigation.state==="loading"&&Bn>ue?(J(P,"Expected pending action"),M&&M.abort(),ee(m.navigation.location,{matches:We,loaderData:ce,errors:ot,fetchers:new Map(m.fetchers)})):(se(ve({errors:ot,loaderData:qf(m.loaderData,ce,We,ot)},hn||Ot.length>0?{fetchers:new Map(m.fetchers)}:{})),A=!1)}async function pi(C,k,L,F,Y,H){let K=m.fetchers.get(C),G=ko(H,K?K.data:void 0);m.fetchers.set(C,G),se({fetchers:new Map(m.fetchers)});let B=new AbortController,oe=Co(e.history,L,B.signal);N.set(C,B);let Z=await Eo("loader",oe,F,Y,o,i,u);if(Zn(Z)&&(Z=await qp(Z,oe.signal,!0)||Z),N.get(C)===B&&N.delete(C),oe.signal.aborted)return;if(br(Z)){Je.add(C),await jn(m,Z);return}if(jo(Z)){let Ce=Ar(m.matches,k);m.fetchers.delete(C),se({fetchers:new Map(m.fetchers),errors:{[Ce.route.id]:Z.error}});return}J(!Zn(Z),"Unhandled fetcher deferred data");let Ue=al(Z.data);m.fetchers.set(C,Ue),se({fetchers:new Map(m.fetchers)})}async function jn(C,k,L){let{submission:F,replace:Y,isFetchActionRedirect:H}=L===void 0?{}:L;k.revalidate&&(A=!0);let K=ni(C.location,k.location,ve({_isRedirect:!0},H?{_isFetchActionRedirect:!0}:{}));if(J(K,"Expected a location on the redirect navigation"),Xp.test(k.location)&&n){let oe=e.history.createURL(k.location),Z=ro(oe.pathname,u)==null;if(t.location.origin!==oe.origin||Z){Y?t.location.replace(k.location):t.location.assign(k.location);return}}M=null;let G=Y===!0?Me.Replace:Me.Push,B=F||rd(C.navigation);if(V0.has(k.status)&&B&&Ft(B.formMethod))await ze(G,K,{submission:ve({},B,{formAction:k.location}),preventScrollReset:R});else if(H)await ze(G,K,{overrideNavigation:Ki(K),fetcherSubmission:B,preventScrollReset:R});else{let oe=Ki(K,B);await ze(G,K,{overrideNavigation:oe,preventScrollReset:R})}}async function gi(C,k,L,F,Y){let H=await Promise.all([...L.map(B=>Eo("loader",Y,B,k,o,i,u)),...F.map(B=>B.matches&&B.match&&B.controller?Eo("loader",Co(e.history,B.path,B.controller.signal),B.match,B.matches,o,i,u):{type:Oe.error,error:Ct(404,{pathname:B.path})})]),K=H.slice(0,L.length),G=H.slice(L.length);return await Promise.all([nd(C,L,K,K.map(()=>Y.signal),!1,m.loaderData),nd(C,F.map(B=>B.match),G,F.map(B=>B.controller?B.controller.signal:null),!0)]),{results:H,loaderResults:K,fetcherResults:G}}function ao(){A=!0,I.push(...Un()),rt.forEach((C,k)=>{N.has(k)&&(U.push(k),Ht(k))})}function hr(C,k,L){let F=Ar(m.matches,k);uo(C),se({errors:{[F.route.id]:L},fetchers:new Map(m.fetchers)})}function uo(C){let k=m.fetchers.get(C);N.has(C)&&!(k&&k.state==="loading"&&ct.has(C))&&Ht(C),rt.delete(C),ct.delete(C),Je.delete(C),m.fetchers.delete(C)}function Ht(C){let k=N.get(C);J(k,"Expected fetch controller: "+C),k.abort(),N.delete(C)}function vi(C){for(let k of C){let L=io(k),F=al(L.data);m.fetchers.set(k,F)}}function mi(){let C=[],k=!1;for(let L of Je){let F=m.fetchers.get(L);J(F,"Expected fetcher: "+L),F.state==="loading"&&(Je.delete(L),C.push(L),k=!0)}return vi(C),k}function yi(C){let k=[];for(let[L,F]of ct)if(F<C){let Y=m.fetchers.get(L);J(Y,"Expected fetcher: "+L),Y.state==="loading"&&(Ht(L),ct.delete(L),k.push(L))}return vi(k),k.length>0}function Pa(C,k){let L=m.blockers.get(C)||Qi;return b.get(C)!==k&&b.set(C,k),L}function wi(C){m.blockers.delete(C),b.delete(C)}function pr(C,k){let L=m.blockers.get(C)||Qi;J(L.state==="unblocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="proceeding"||L.state==="blocked"&&k.state==="unblocked"||L.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+k.state);let F=new Map(m.blockers);F.set(C,k),se({blockers:F})}function $n(C){let{currentLocation:k,nextLocation:L,historyAction:F}=C;if(b.size===0)return;b.size>1&&Jr(!1,"A router only supports one blocker at a time");let Y=Array.from(b.entries()),[H,K]=Y[Y.length-1],G=m.blockers.get(H);if(!(G&&G.state==="proceeding")&&K({currentLocation:k,nextLocation:L,historyAction:F}))return H}function Un(C){let k=[];return z.forEach((L,F)=>{(!C||C(F))&&(L.cancel(),k.push(F),z.delete(F))}),k}function Si(C,k,L){if(d=C,y=k,v=L||null,!S&&m.navigation===ru){S=!0;let F=so(m.location,m.matches);F!=null&&se({restoreScrollPosition:F})}return()=>{d=null,y=null,v=null}}function dt(C,k){return v&&v(C,k.map(F=>n1(F,m.loaderData)))||C.key}function _i(C,k){if(d&&y){let L=dt(C,k);d[L]=y()}}function so(C,k){if(d){let L=dt(C,k),F=d[L];if(typeof F=="number")return F}return null}function Ra(C){o={},a=qu(C,i,void 0,o)}return w={get basename(){return u},get state(){return m},get routes(){return l},initialize:de,subscribe:fn,enableScrollRestoration:Si,navigate:ft,fetch:lo,revalidate:dn,createHref:C=>e.history.createHref(C),encodeLocation:C=>e.history.encodeLocation(C),getFetcher:io,deleteFetcher:uo,dispose:Ee,getBlocker:Pa,deleteBlocker:wi,_internalFetchControllers:N,_internalActiveDeferreds:z,_internalSetRoutes:Ra},w}function G0(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function es(e,t,n,r,i,o,l){let a,u;if(o!=null&&l!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===o){u=c;break}}else a=t,u=t[t.length-1];let s=lc(i||".",wa(a).map(c=>c.pathnameBase),ro(e.pathname,n)||e.pathname,l==="path");return i==null&&(s.search=e.search,s.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!uc(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:nn([n,s.pathname])),lr(s)}function Kf(e,t,n,r){if(!r||!G0(r))return{path:n};if(r.formMethod&&!t1(r.formMethod))return{path:n,error:Ct(405,{method:r.formMethod})};let i=()=>({path:n,error:Ct(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=Zp(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ft(l))return i();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,y)=>{let[S,E]=y;return""+v+S+"="+E+`
  81. `},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Ft(l))return i();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}J(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=ts(r.formData),s=r.formData;else if(r.body instanceof FormData)u=ts(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Jf(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Jf(u)}catch{return i()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ft(c.formMethod))return{path:n,submission:c};let f=sn(n);return t&&f.search&&uc(f.search)&&u.append("index",""),f.search="?"+u,{path:lr(f),submission:c}}function Y0(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Gf(e,t,n,r,i,o,l,a,u,s,c,f,d,v){let y=v?Object.values(v)[0]:d?Object.values(d)[0]:void 0,S=e.createURL(t.location),E=e.createURL(i),g=v?Object.keys(v)[0]:void 0,w=Y0(n,g).filter((P,R)=>{if(P.route.lazy)return!0;if(P.route.loader==null)return!1;if(X0(t.loaderData,t.matches[R],P)||l.some(A=>A===P.route.id))return!0;let M=t.matches[R],T=P;return Yf(P,ve({currentUrl:S,currentParams:M.params,nextUrl:E,nextParams:T.params},r,{actionResult:y,defaultShouldRevalidate:o||S.pathname+S.search===E.pathname+E.search||S.search!==E.search||Jp(M,T)}))}),m=[];return u.forEach((P,R)=>{if(!n.some(N=>N.route.id===P.routeId))return;let M=zr(c,P.path,f);if(!M){m.push({key:R,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(R),A=T&&T.state!=="idle"&&T.data===void 0&&!s.has(R),I=ns(M,P.path);(a.includes(R)||A||Yf(I,ve({currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:E,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:o})))&&m.push({key:R,routeId:P.routeId,path:P.path,matches:M,match:I,controller:new AbortController})}),[w,m]}function X0(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Jp(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Yf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Xf(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];J(i,"No route found in manifest");let o={};for(let l in r){let u=i[l]!==void 0&&l!=="hasErrorBoundary";Jr(!u,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!w0.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,ve({},t(i),{lazy:void 0}))}async function Eo(e,t,n,r,i,o,l,a){a===void 0&&(a={});let u,s,c,f=y=>{let S,E=new Promise((g,h)=>S=h);return c=()=>S(),t.signal.addEventListener("abort",c),Promise.race([y({request:t,params:n.params,context:a.requestContext}),E])};try{let y=n.route[e];if(n.route.lazy)if(y)s=(await Promise.all([f(y),Xf(n.route,o,i)]))[0];else if(await Xf(n.route,o,i),y=n.route[e],y)s=await f(y);else if(e==="action"){let S=new URL(t.url),E=S.pathname+S.search;throw Ct(405,{method:t.method,pathname:E,routeId:n.route.id})}else return{type:Oe.data,data:void 0};else if(y)s=await f(y);else{let S=new URL(t.url),E=S.pathname+S.search;throw Ct(404,{pathname:E})}J(s!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){u=Oe.error,s=y}finally{c&&t.signal.removeEventListener("abort",c)}if(e1(s)){let y=s.status;if(H0.has(y)){let g=s.headers.get("Location");if(J(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!Xp.test(g))g=es(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,g);else if(!a.isStaticRequest){let h=new URL(t.url),w=g.startsWith("//")?new URL(h.protocol+g):new URL(g),m=ro(w.pathname,l)!=null;w.origin===h.origin&&m&&(g=w.pathname+w.search+w.hash)}if(a.isStaticRequest)throw s.headers.set("Location",g),s;return{type:Oe.redirect,status:y,location:g,revalidate:s.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:u||Oe.data,response:s};let S,E=s.headers.get("Content-Type");return E&&/\bapplication\/json\b/.test(E)?S=await s.json():S=await s.text(),u===Oe.error?{type:u,error:new ac(y,s.statusText,S),headers:s.headers}:{type:Oe.data,data:S,statusCode:s.status,headers:s.headers}}if(u===Oe.error)return{type:u,error:s};if(q0(s)){var d,v;return{type:Oe.deferred,deferredData:s,statusCode:(d=s.init)==null?void 0:d.status,headers:((v=s.init)==null?void 0:v.headers)&&new Headers(s.init.headers)}}return{type:Oe.data,data:s}}function Co(e,t,n,r){let i=e.createURL(Zp(t)).toString(),o={signal:n};if(r&&Ft(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=ts(r.formData):o.body=r.formData}return new Request(i,o)}function ts(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Jf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function J0(e,t,n,r,i){let o={},l=null,a,u=!1,s={};return n.forEach((c,f)=>{let d=t[f].route.id;if(J(!br(c),"Cannot handle redirect results in processLoaderData"),jo(c)){let v=Ar(e,d),y=c.error;r&&(y=Object.values(r)[0],r=void 0),l=l||{},l[v.route.id]==null&&(l[v.route.id]=y),o[d]=void 0,u||(u=!0,a=Gp(c.error)?c.error.status:500),c.headers&&(s[d]=c.headers)}else Zn(c)?(i.set(d,c.deferredData),o[d]=c.deferredData.data):o[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[d]=c.headers)}),r&&(l=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:s}}function Zf(e,t,n,r,i,o,l,a){let{loaderData:u,errors:s}=J0(t,n,r,i,a);for(let c=0;c<o.length;c++){let{key:f,match:d,controller:v}=o[c];J(l!==void 0&&l[c]!==void 0,"Did not find corresponding fetcher result");let y=l[c];if(!(v&&v.signal.aborted))if(jo(y)){let S=Ar(e.matches,d==null?void 0:d.route.id);s&&s[S.route.id]||(s=ve({},s,{[S.route.id]:y.error})),e.fetchers.delete(f)}else if(br(y))J(!1,"Unhandled fetcher revalidation redirect");else if(Zn(y))J(!1,"Unhandled fetcher deferred data");else{let S=al(y.data);e.fetchers.set(f,S)}}return{loaderData:u,errors:s}}function qf(e,t,n,r){let i=ve({},t);for(let o of n){let l=o.route.id;if(t.hasOwnProperty(l)?t[l]!==void 0&&(i[l]=t[l]):e[l]!==void 0&&o.route.loader&&(i[l]=e[l]),r&&r.hasOwnProperty(l))break}return i}function Ar(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ed(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ct(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new ac(e||500,l,new Error(a),!0)}function td(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(br(n))return n}}function Zp(e){let t=typeof e=="string"?sn(e):e;return lr(ve({},t,{hash:""}))}function Z0(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Zn(e){return e.type===Oe.deferred}function jo(e){return e.type===Oe.error}function br(e){return(e&&e.type)===Oe.redirect}function q0(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function e1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function t1(e){return b0.has(e.toLowerCase())}function Ft(e){return U0.has(e.toLowerCase())}async function nd(e,t,n,r,i,o){for(let l=0;l<n.length;l++){let a=n[l],u=t[l];if(!u)continue;let s=e.find(f=>f.route.id===u.route.id),c=s!=null&&!Jp(s,u)&&(o&&o[u.route.id])!==void 0;if(Zn(a)&&(i||c)){let f=r[l];J(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await qp(a,f,i).then(d=>{d&&(n[l]=d||n[l])})}}}async function qp(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Oe.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Oe.error,error:i}}return{type:Oe.data,data:e.deferredData.data}}}function uc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function n1(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function ns(e,t){let n=typeof t=="string"?sn(t).search:t.search;if(e[e.length-1].route.index&&uc(n||""))return e[e.length-1];let r=wa(e);return r[r.length-1]}function rd(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Ki(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function r1(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ko(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function o1(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function al(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/**
  82. * React Router v6.14.0
  83. *
  84. * Copyright (c) Remix Software Inc.
  85. *
  86. * This source code is licensed under the MIT license found in the
  87. * LICENSE.md file in the root directory of this source tree.
  88. *
  89. * @license MIT
  90. */function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nl.apply(this,arguments)}const Sa=O.createContext(null),sc=O.createContext(null),fr=O.createContext(null),_a=O.createContext(null),cn=O.createContext({outlet:null,matches:[],isDataRoute:!1}),eg=O.createContext(null);function i1(e,t){let{relative:n}=t===void 0?{}:t;si()||J(!1);let{basename:r,navigator:i}=O.useContext(fr),{hash:o,pathname:l,search:a}=cc(e,{relative:n}),u=l;return r!=="/"&&(u=l==="/"?r:nn([r,l])),i.createHref({pathname:u,search:a,hash:o})}function si(){return O.useContext(_a)!=null}function ci(){return si()||J(!1),O.useContext(_a).location}function tg(e){O.useContext(fr).static||O.useLayoutEffect(e)}function l1(){let{isDataRoute:e}=O.useContext(cn);return e?y1():a1()}function a1(){si()||J(!1);let e=O.useContext(Sa),{basename:t,navigator:n}=O.useContext(fr),{matches:r}=O.useContext(cn),{pathname:i}=ci(),o=JSON.stringify(wa(r).map(u=>u.pathnameBase)),l=O.useRef(!1);return tg(()=>{l.current=!0}),O.useCallback(function(u,s){if(s===void 0&&(s={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let c=lc(u,JSON.parse(o),i,s.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:nn([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,o,i,e])}const u1=O.createContext(null);function s1(e){let t=O.useContext(cn).outlet;return t&&O.createElement(u1.Provider,{value:e},t)}function aS(){let{matches:e}=O.useContext(cn),t=e[e.length-1];return t?t.params:{}}function cc(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=O.useContext(cn),{pathname:i}=ci(),o=JSON.stringify(wa(r).map(l=>l.pathnameBase));return O.useMemo(()=>lc(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function uS(e,t){return ng(e,t)}function ng(e,t,n){si()||J(!1);let{navigator:r}=O.useContext(fr),{matches:i}=O.useContext(cn),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=ci(),s;if(t){var c;let S=typeof t=="string"?sn(t):t;a==="/"||(c=S.pathname)!=null&&c.startsWith(a)||J(!1),s=S}else s=u;let f=s.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",v=zr(e,{pathname:d}),y=p1(v&&v.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:nn([a,r.encodeLocation?r.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?a:nn([a,r.encodeLocation?r.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n);return t&&y?O.createElement(_a.Provider,{value:{location:Nl({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:Me.Pop}},y):y}function c1(){let e=m1(),t=Gp(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,o)}const f1=O.createElement(c1,null);class d1 extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?O.createElement(cn.Provider,{value:this.props.routeContext},O.createElement(eg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function h1(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Sa);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(cn.Provider,{value:t},r)}function p1(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let a=o.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id]));a>=0||J(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,u,s)=>{let c=u.route.id?l==null?void 0:l[u.route.id]:null,f=null;n&&(f=u.route.errorElement||f1);let d=t.concat(o.slice(0,s+1)),v=()=>{let y;return c?y=f:u.route.Component?y=O.createElement(u.route.Component,null):u.route.element?y=u.route.element:y=a,O.createElement(h1,{match:u,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:y})};return n&&(u.route.ErrorBoundary||u.route.errorElement||s===0)?O.createElement(d1,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:v(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):v()},null)}var rs;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(rs||(rs={}));var ar;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(ar||(ar={}));function g1(e){let t=O.useContext(Sa);return t||J(!1),t}function fc(e){let t=O.useContext(sc);return t||J(!1),t}function v1(e){let t=O.useContext(cn);return t||J(!1),t}function rg(e){let t=v1(),n=t.matches[t.matches.length-1];return n.route.id||J(!1),n.route.id}function sS(){let{matches:e,loaderData:t}=fc(ar.UseMatches);return O.useMemo(()=>e.map(n=>{let{pathname:r,params:i}=n;return{id:n.route.id,pathname:r,params:i,data:t[n.route.id],handle:n.route.handle}}),[e,t])}function cS(e){return fc(ar.UseRouteLoaderData).loaderData[e]}function m1(){var e;let t=O.useContext(eg),n=fc(ar.UseRouteError),r=rg(ar.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function y1(){let{router:e}=g1(rs.UseNavigateStable),t=rg(ar.UseNavigateStable),n=O.useRef(!1);return tg(()=>{n.current=!0}),O.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nl({fromRouteId:t},o)))},[e,t])}const w1="startTransition",od=vv[w1];function fS(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=O.useState(n.state),{v7_startTransition:l}=r||{},a=O.useCallback(f=>{l&&od?od(()=>o(f)):o(f)},[o,l]);O.useLayoutEffect(()=>n.subscribe(a),[n,a]);let u=O.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,d,v)=>n.navigate(f,{state:d,preventScrollReset:v==null?void 0:v.preventScrollReset}),replace:(f,d,v)=>n.navigate(f,{replace:!0,state:d,preventScrollReset:v==null?void 0:v.preventScrollReset})}),[n]),s=n.basename||"/",c=O.useMemo(()=>({router:n,navigator:u,static:!1,basename:s}),[n,u,s]);return O.createElement(O.Fragment,null,O.createElement(Sa.Provider,{value:c},O.createElement(sc.Provider,{value:i},O.createElement(E1,{basename:s,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?O.createElement(S1,{routes:n.routes,state:i}):t))),null)}function S1(e){let{routes:t,state:n}=e;return ng(t,void 0,n)}function dS(e){return s1(e.context)}function _1(e){J(!1)}function E1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Me.Pop,navigator:o,static:l=!1}=e;si()&&J(!1);let a=t.replace(/^\/*/,"/"),u=O.useMemo(()=>({basename:a,navigator:o,static:l}),[a,o,l]);typeof r=="string"&&(r=sn(r));let{pathname:s="/",search:c="",hash:f="",state:d=null,key:v="default"}=r,y=O.useMemo(()=>{let S=ro(s,a);return S==null?null:{location:{pathname:S,search:c,hash:f,state:d,key:v},navigationType:i}},[a,s,c,f,d,v,i]);return y==null?null:O.createElement(fr.Provider,{value:u},O.createElement(_a.Provider,{children:n,value:y}))}var id;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(id||(id={}));new Promise(()=>{});function ld(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let o=[...t,i];if(r.type===O.Fragment){n.push.apply(n,ld(r.props.children,o));return}r.type!==_1&&J(!1),!r.props.index||!r.props.children||J(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=ld(r.props.children,o)),n.push(l)}),n}function C1(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:O.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
  91. * React Router DOM v6.14.0
  92. *
  93. * Copyright (c) Remix Software Inc.
  94. *
  95. * This source code is licensed under the MIT license found in the
  96. * LICENSE.md file in the root directory of this source tree.
  97. *
  98. * @license MIT
  99. */function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zr.apply(this,arguments)}function og(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function k1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function P1(e,t){return e.button===0&&(!t||t==="_self")&&!k1(e)}const R1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],M1=["aria-current","caseSensitive","className","end","style","to","children"];function hS(e,t){return K0({basename:t==null?void 0:t.basename,future:Zr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:v0({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||x1(),routes:e,mapRouteProperties:C1}).initialize()}function x1(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Zr({},t,{errors:L1(t.errors)})),t}function L1(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new ac(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let o=new Error(i.message);o.stack="",n[r]=o}else n[r]=i;return n}const T1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",O1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,D1=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:u,to:s,preventScrollReset:c}=t,f=og(t,R1),{basename:d}=O.useContext(fr),v,y=!1;if(typeof s=="string"&&O1.test(s)&&(v=s,T1))try{let h=new URL(window.location.href),w=s.startsWith("//")?new URL(h.protocol+s):new URL(s),m=ro(w.pathname,d);w.origin===h.origin&&m!=null?s=m+w.search+w.hash:y=!0}catch{}let S=i1(s,{relative:i}),E=N1(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:i});function g(h){r&&r(h),h.defaultPrevented||E(h)}return O.createElement("a",Zr({},f,{href:v||S,onClick:y||o?r:g,ref:n,target:u}))}),pS=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:l=!1,style:a,to:u,children:s}=t,c=og(t,M1),f=cc(u,{relative:c.relative}),d=ci(),v=O.useContext(sc),{navigator:y}=O.useContext(fr),S=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,E=d.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(E=E.toLowerCase(),g=g?g.toLowerCase():null,S=S.toLowerCase());let h=E===S||!l&&E.startsWith(S)&&E.charAt(S.length)==="/",w=g!=null&&(g===S||!l&&g.startsWith(S)&&g.charAt(S.length)==="/"),m=h?r:void 0,P;typeof o=="function"?P=o({isActive:h,isPending:w}):P=[o,h?"active":null,w?"pending":null].filter(Boolean).join(" ");let R=typeof a=="function"?a({isActive:h,isPending:w}):a;return O.createElement(D1,Zr({},c,{"aria-current":m,className:P,ref:n,style:R,to:u}),typeof s=="function"?s({isActive:h,isPending:w}):s)});var ad;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(ad||(ad={}));var ud;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ud||(ud={}));function N1(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l}=t===void 0?{}:t,a=l1(),u=ci(),s=cc(e,{relative:l});return O.useCallback(c=>{if(P1(c,n)){c.preventDefault();let f=r!==void 0?r:lr(u)===lr(s);a(e,{replace:f,state:i,preventScrollReset:o,relative:l})}},[u,a,s,r,i,n,e,o,l])}var qr={},dc={},ig={exports:{}},z1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",A1=z1,I1=A1;function lg(){}function ag(){}ag.resetWarningCache=lg;var F1=function(){function e(r,i,o,l,a,u){if(u!==I1){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ag,resetWarningCache:lg};return n.PropTypes=n,n};ig.exports=F1();var hc=ig.exports,zl={exports:{}};zl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,l=9007199254740991,a="[object Arguments]",u="[object Array]",s="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",v="[object Function]",y="[object GeneratorFunction]",S="[object Map]",E="[object Number]",g="[object Null]",h="[object Object]",w="[object Promise]",m="[object Proxy]",P="[object RegExp]",R="[object Set]",M="[object String]",T="[object Symbol]",A="[object Undefined]",I="[object WeakMap]",U="[object ArrayBuffer]",N="[object DataView]",ne="[object Float32Array]",ue="[object Float64Array]",ct="[object Int8Array]",Je="[object Int16Array]",rt="[object Int32Array]",z="[object Uint8Array]",b="[object Uint8ClampedArray]",Q="[object Uint16Array]",de="[object Uint32Array]",Ee=/[\\^$.*+?()[\]{}|]/g,fn=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,ee={};ee[ne]=ee[ue]=ee[ct]=ee[Je]=ee[rt]=ee[z]=ee[b]=ee[Q]=ee[de]=!0,ee[a]=ee[u]=ee[U]=ee[c]=ee[N]=ee[f]=ee[d]=ee[v]=ee[S]=ee[E]=ee[h]=ee[P]=ee[R]=ee[M]=ee[I]=!1;var ft=typeof Le=="object"&&Le&&Le.Object===Object&&Le,dn=typeof self=="object"&&self&&self.Object===Object&&self,ze=ft||dn||Function("return this")(),fi=t&&!t.nodeType&&t,di=fi&&!0&&e&&!e.nodeType&&e,io=di&&di.exports===fi,lo=io&&ft.process,hi=function(){try{return lo&&lo.binding&&lo.binding("util")}catch{}}(),pi=hi&&hi.isTypedArray;function jn(p,_){for(var x=-1,j=p==null?0:p.length,he=0,X=[];++x<j;){var ke=p[x];_(ke,x,p)&&(X[he++]=ke)}return X}function gi(p,_){for(var x=-1,j=_.length,he=p.length;++x<j;)p[he+x]=_[x];return p}function ao(p,_){for(var x=-1,j=p==null?0:p.length;++x<j;)if(_(p[x],x,p))return!0;return!1}function hr(p,_){for(var x=-1,j=Array(p);++x<p;)j[x]=_(x);return j}function uo(p){return function(_){return p(_)}}function Ht(p,_){return p.has(_)}function vi(p,_){return p==null?void 0:p[_]}function mi(p){var _=-1,x=Array(p.size);return p.forEach(function(j,he){x[++_]=[he,j]}),x}function yi(p,_){return function(x){return p(_(x))}}function Pa(p){var _=-1,x=Array(p.size);return p.forEach(function(j){x[++_]=j}),x}var wi=Array.prototype,pr=Function.prototype,$n=Object.prototype,Un=ze["__core-js_shared__"],Si=pr.toString,dt=$n.hasOwnProperty,_i=function(){var p=/[^.]+$/.exec(Un&&Un.keys&&Un.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),so=$n.toString,Ra=RegExp("^"+Si.call(dt).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=io?ze.Buffer:void 0,k=ze.Symbol,L=ze.Uint8Array,F=$n.propertyIsEnumerable,Y=wi.splice,H=k?k.toStringTag:void 0,K=Object.getOwnPropertySymbols,G=C?C.isBuffer:void 0,B=yi(Object.keys,Object),oe=wr(ze,"DataView"),Z=wr(ze,"Map"),Ue=wr(ze,"Promise"),Ce=wr(ze,"Set"),Ae=wr(ze,"WeakMap"),We=wr(Object,"create"),Bn=Vn(oe),co=Vn(Z),gr=Vn(Ue),Ot=Vn(Ce),vr=Vn(Ae),mr=k?k.prototype:void 0,bn=mr?mr.valueOf:void 0;function Dt(p){var _=-1,x=p==null?0:p.length;for(this.clear();++_<x;){var j=p[_];this.set(j[0],j[1])}}function yr(){this.__data__=We?We(null):{},this.size=0}function ce(p){var _=this.has(p)&&delete this.__data__[p];return this.size-=_?1:0,_}function ot(p){var _=this.__data__;if(We){var x=_[p];return x===r?void 0:x}return dt.call(_,p)?_[p]:void 0}function hn(p){var _=this.__data__;return We?_[p]!==void 0:dt.call(_,p)}function Te(p,_){var x=this.__data__;return this.size+=this.has(p)?0:1,x[p]=We&&_===void 0?r:_,this}Dt.prototype.clear=yr,Dt.prototype.delete=ce,Dt.prototype.get=ot,Dt.prototype.has=hn,Dt.prototype.set=Te;function Ze(p){var _=-1,x=p==null?0:p.length;for(this.clear();++_<x;){var j=p[_];this.set(j[0],j[1])}}function Ei(){this.__data__=[],this.size=0}function Ma(p){var _=this.__data__,x=ki(_,p);if(x<0)return!1;var j=_.length-1;return x==j?_.pop():Y.call(_,x,1),--this.size,!0}function yg(p){var _=this.__data__,x=ki(_,p);return x<0?void 0:_[x][1]}function wg(p){return ki(this.__data__,p)>-1}function Sg(p,_){var x=this.__data__,j=ki(x,p);return j<0?(++this.size,x.push([p,_])):x[j][1]=_,this}Ze.prototype.clear=Ei,Ze.prototype.delete=Ma,Ze.prototype.get=yg,Ze.prototype.has=wg,Ze.prototype.set=Sg;function Hn(p){var _=-1,x=p==null?0:p.length;for(this.clear();++_<x;){var j=p[_];this.set(j[0],j[1])}}function _g(){this.size=0,this.__data__={hash:new Dt,map:new(Z||Ze),string:new Dt}}function Eg(p){var _=Pi(this,p).delete(p);return this.size-=_?1:0,_}function Cg(p){return Pi(this,p).get(p)}function kg(p){return Pi(this,p).has(p)}function Pg(p,_){var x=Pi(this,p),j=x.size;return x.set(p,_),this.size+=x.size==j?0:1,this}Hn.prototype.clear=_g,Hn.prototype.delete=Eg,Hn.prototype.get=Cg,Hn.prototype.has=kg,Hn.prototype.set=Pg;function Ci(p){var _=-1,x=p==null?0:p.length;for(this.__data__=new Hn;++_<x;)this.add(p[_])}function Rg(p){return this.__data__.set(p,r),this}function Mg(p){return this.__data__.has(p)}Ci.prototype.add=Ci.prototype.push=Rg,Ci.prototype.has=Mg;function pn(p){var _=this.__data__=new Ze(p);this.size=_.size}function xg(){this.__data__=new Ze,this.size=0}function Lg(p){var _=this.__data__,x=_.delete(p);return this.size=_.size,x}function Tg(p){return this.__data__.get(p)}function Og(p){return this.__data__.has(p)}function Dg(p,_){var x=this.__data__;if(x instanceof Ze){var j=x.__data__;if(!Z||j.length<n-1)return j.push([p,_]),this.size=++x.size,this;x=this.__data__=new Hn(j)}return x.set(p,_),this.size=x.size,this}pn.prototype.clear=xg,pn.prototype.delete=Lg,pn.prototype.get=Tg,pn.prototype.has=Og,pn.prototype.set=Dg;function Ng(p,_){var x=Ri(p),j=!x&&Gg(p),he=!x&&!j&&xa(p),X=!x&&!j&&!he&&Mc(p),ke=x||j||he||X,Ie=ke?hr(p.length,String):[],Be=Ie.length;for(var ye in p)(_||dt.call(p,ye))&&!(ke&&(ye=="length"||he&&(ye=="offset"||ye=="parent")||X&&(ye=="buffer"||ye=="byteLength"||ye=="byteOffset")||Hg(ye,Be)))&&Ie.push(ye);return Ie}function ki(p,_){for(var x=p.length;x--;)if(Cc(p[x][0],_))return x;return-1}function zg(p,_,x){var j=_(p);return Ri(p)?j:gi(j,x(p))}function fo(p){return p==null?p===void 0?A:g:H&&H in Object(p)?Bg(p):Kg(p)}function wc(p){return ho(p)&&fo(p)==a}function Sc(p,_,x,j,he){return p===_?!0:p==null||_==null||!ho(p)&&!ho(_)?p!==p&&_!==_:Ag(p,_,x,j,Sc,he)}function Ag(p,_,x,j,he,X){var ke=Ri(p),Ie=Ri(_),Be=ke?u:gn(p),ye=Ie?u:gn(_);Be=Be==a?h:Be,ye=ye==a?h:ye;var ht=Be==h,Nt=ye==h,Qe=Be==ye;if(Qe&&xa(p)){if(!xa(_))return!1;ke=!0,ht=!1}if(Qe&&!ht)return X||(X=new pn),ke||Mc(p)?_c(p,_,x,j,he,X):$g(p,_,Be,x,j,he,X);if(!(x&i)){var _t=ht&&dt.call(p,"__wrapped__"),Et=Nt&&dt.call(_,"__wrapped__");if(_t||Et){var vn=_t?p.value():p,Yt=Et?_.value():_;return X||(X=new pn),he(vn,Yt,x,j,X)}}return Qe?(X||(X=new pn),Ug(p,_,x,j,he,X)):!1}function Ig(p){if(!Rc(p)||Wg(p))return!1;var _=kc(p)?Ra:fn;return _.test(Vn(p))}function Fg(p){return ho(p)&&Pc(p.length)&&!!ee[fo(p)]}function jg(p){if(!Qg(p))return B(p);var _=[];for(var x in Object(p))dt.call(p,x)&&x!="constructor"&&_.push(x);return _}function _c(p,_,x,j,he,X){var ke=x&i,Ie=p.length,Be=_.length;if(Ie!=Be&&!(ke&&Be>Ie))return!1;var ye=X.get(p);if(ye&&X.get(_))return ye==_;var ht=-1,Nt=!0,Qe=x&o?new Ci:void 0;for(X.set(p,_),X.set(_,p);++ht<Ie;){var _t=p[ht],Et=_[ht];if(j)var vn=ke?j(Et,_t,ht,_,p,X):j(_t,Et,ht,p,_,X);if(vn!==void 0){if(vn)continue;Nt=!1;break}if(Qe){if(!ao(_,function(Yt,Wn){if(!Ht(Qe,Wn)&&(_t===Yt||he(_t,Yt,x,j,X)))return Qe.push(Wn)})){Nt=!1;break}}else if(!(_t===Et||he(_t,Et,x,j,X))){Nt=!1;break}}return X.delete(p),X.delete(_),Nt}function $g(p,_,x,j,he,X,ke){switch(x){case N:if(p.byteLength!=_.byteLength||p.byteOffset!=_.byteOffset)return!1;p=p.buffer,_=_.buffer;case U:return!(p.byteLength!=_.byteLength||!X(new L(p),new L(_)));case c:case f:case E:return Cc(+p,+_);case d:return p.name==_.name&&p.message==_.message;case P:case M:return p==_+"";case S:var Ie=mi;case R:var Be=j&i;if(Ie||(Ie=Pa),p.size!=_.size&&!Be)return!1;var ye=ke.get(p);if(ye)return ye==_;j|=o,ke.set(p,_);var ht=_c(Ie(p),Ie(_),j,he,X,ke);return ke.delete(p),ht;case T:if(bn)return bn.call(p)==bn.call(_)}return!1}function Ug(p,_,x,j,he,X){var ke=x&i,Ie=Ec(p),Be=Ie.length,ye=Ec(_),ht=ye.length;if(Be!=ht&&!ke)return!1;for(var Nt=Be;Nt--;){var Qe=Ie[Nt];if(!(ke?Qe in _:dt.call(_,Qe)))return!1}var _t=X.get(p);if(_t&&X.get(_))return _t==_;var Et=!0;X.set(p,_),X.set(_,p);for(var vn=ke;++Nt<Be;){Qe=Ie[Nt];var Yt=p[Qe],Wn=_[Qe];if(j)var xc=ke?j(Wn,Yt,Qe,_,p,X):j(Yt,Wn,Qe,p,_,X);if(!(xc===void 0?Yt===Wn||he(Yt,Wn,x,j,X):xc)){Et=!1;break}vn||(vn=Qe=="constructor")}if(Et&&!vn){var Mi=p.constructor,xi=_.constructor;Mi!=xi&&"constructor"in p&&"constructor"in _&&!(typeof Mi=="function"&&Mi instanceof Mi&&typeof xi=="function"&&xi instanceof xi)&&(Et=!1)}return X.delete(p),X.delete(_),Et}function Ec(p){return zg(p,Jg,bg)}function Pi(p,_){var x=p.__data__;return Vg(_)?x[typeof _=="string"?"string":"hash"]:x.map}function wr(p,_){var x=vi(p,_);return Ig(x)?x:void 0}function Bg(p){var _=dt.call(p,H),x=p[H];try{p[H]=void 0;var j=!0}catch{}var he=so.call(p);return j&&(_?p[H]=x:delete p[H]),he}var bg=K?function(p){return p==null?[]:(p=Object(p),jn(K(p),function(_){return F.call(p,_)}))}:Zg,gn=fo;(oe&&gn(new oe(new ArrayBuffer(1)))!=N||Z&&gn(new Z)!=S||Ue&&gn(Ue.resolve())!=w||Ce&&gn(new Ce)!=R||Ae&&gn(new Ae)!=I)&&(gn=function(p){var _=fo(p),x=_==h?p.constructor:void 0,j=x?Vn(x):"";if(j)switch(j){case Bn:return N;case co:return S;case gr:return w;case Ot:return R;case vr:return I}return _});function Hg(p,_){return _=_??l,!!_&&(typeof p=="number"||se.test(p))&&p>-1&&p%1==0&&p<_}function Vg(p){var _=typeof p;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?p!=="__proto__":p===null}function Wg(p){return!!_i&&_i in p}function Qg(p){var _=p&&p.constructor,x=typeof _=="function"&&_.prototype||$n;return p===x}function Kg(p){return so.call(p)}function Vn(p){if(p!=null){try{return Si.call(p)}catch{}try{return p+""}catch{}}return""}function Cc(p,_){return p===_||p!==p&&_!==_}var Gg=wc(function(){return arguments}())?wc:function(p){return ho(p)&&dt.call(p,"callee")&&!F.call(p,"callee")},Ri=Array.isArray;function Yg(p){return p!=null&&Pc(p.length)&&!kc(p)}var xa=G||qg;function Xg(p,_){return Sc(p,_)}function kc(p){if(!Rc(p))return!1;var _=fo(p);return _==v||_==y||_==s||_==m}function Pc(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=l}function Rc(p){var _=typeof p;return p!=null&&(_=="object"||_=="function")}function ho(p){return p!=null&&typeof p=="object"}var Mc=pi?uo(pi):Fg;function Jg(p){return Yg(p)?Ng(p):jg(p)}function Zg(){return[]}function qg(){return!1}e.exports=Xg})(zl,zl.exports);var ug=zl.exports,$t={};Object.defineProperty($t,"__esModule",{value:!0});$t.getAceInstance=$t.debounce=$t.editorEvents=$t.editorOptions=void 0;var j1=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];$t.editorOptions=j1;var $1=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];$t.editorEvents=$1;var U1=function(){var e;return typeof window>"u"?(Le.window={},e=ul,delete Le.window):window.ace?(e=window.ace,e.acequire=window.ace.require||window.ace.acequire):e=ul,e};$t.getAceInstance=U1;var B1=function(e,t){var n=null;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}};$t.debounce=B1;var b1=Le&&Le.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),os=Le&&Le.__assign||function(){return os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},os.apply(this,arguments)};Object.defineProperty(dc,"__esModule",{value:!0});var H1=ul,V=hc,sd=O,Gi=ug,_r=$t,cd=(0,_r.getAceInstance)(),V1=function(e){b1(t,e);function t(n){var r=e.call(this,n)||this;return _r.editorEvents.forEach(function(i){r[i]=r[i].bind(r)}),r.debounce=_r.debounce,r}return t.prototype.isInShadow=function(n){for(var r=n&&n.parentNode;r;){if(r.toString()==="[object ShadowRoot]")return!0;r=r.parentNode}return!1},t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.className,o=r.onBeforeLoad,l=r.onValidate,a=r.mode,u=r.focus,s=r.theme,c=r.fontSize,f=r.value,d=r.defaultValue,v=r.showGutter,y=r.wrapEnabled,S=r.showPrintMargin,E=r.scrollMargin,g=E===void 0?[0,0,0,0]:E,h=r.keyboardHandler,w=r.onLoad,m=r.commands,P=r.annotations,R=r.markers,M=r.placeholder;this.editor=cd.edit(this.refEditor),o&&o(cd);for(var T=Object.keys(this.props.editorProps),A=0;A<T.length;A++)this.editor[T[A]]=this.props.editorProps[T[A]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(g[0],g[1],g[2],g[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof a=="string"?"ace/mode/".concat(a):a),s&&s!==""&&this.editor.setTheme("ace/theme/".concat(s)),this.editor.setFontSize(typeof c=="number"?"".concat(c,"px"):c),this.editor.getSession().setValue(d||f||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(v),this.editor.getSession().setUseWrapMode(y),this.editor.setShowPrintMargin(S),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),M&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),l&&this.editor.getSession().on("changeAnnotation",function(){var U=n.editor.getSession().getAnnotations();n.props.onValidate(U)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(P||[]),R&&R.length>0&&this.handleMarkers(R);var I=this.editor.$options;_r.editorOptions.forEach(function(U){I.hasOwnProperty(U)?n.editor.setOption(U,n.props[U]):n.props[U]&&console.warn("ReactAce: editor option ".concat(U," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(m)&&m.forEach(function(U){typeof U.exec=="string"?n.editor.commands.bindKey(U.bindKey,U.exec):n.editor.commands.addCommand(U)}),h&&this.editor.setKeyboardHandler("ace/keyboard/"+h),i&&(this.refEditor.className+=" "+i),w&&w(this.editor),this.editor.resize(),u&&this.editor.focus()},t.prototype.componentDidUpdate=function(n){for(var r=n,i=this.props,o=0;o<_r.editorOptions.length;o++){var l=_r.editorOptions[o];i[l]!==r[l]&&this.editor.setOption(l,i[l])}if(i.className!==r.className){var a=this.refEditor.className,u=a.trim().split(" "),s=r.className.trim().split(" ");s.forEach(function(d){var v=u.indexOf(d);u.splice(v,1)}),this.refEditor.className=" "+i.className+" "+u.join(" ")}var c=this.editor&&i.value!=null&&this.editor.getValue()!==i.value;if(c){this.silent=!0;var f=this.editor.session.selection.toJSON();this.editor.setValue(i.value,i.cursorStart),this.editor.session.selection.fromJSON(f),this.silent=!1}i.placeholder!==r.placeholder&&this.updatePlaceholder(),i.mode!==r.mode&&this.editor.getSession().setMode(typeof i.mode=="string"?"ace/mode/".concat(i.mode):i.mode),i.theme!==r.theme&&this.editor.setTheme("ace/theme/"+i.theme),i.keyboardHandler!==r.keyboardHandler&&(i.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+i.keyboardHandler):this.editor.setKeyboardHandler(null)),i.fontSize!==r.fontSize&&this.editor.setFontSize(typeof i.fontSize=="number"?"".concat(i.fontSize,"px"):i.fontSize),i.wrapEnabled!==r.wrapEnabled&&this.editor.getSession().setUseWrapMode(i.wrapEnabled),i.showPrintMargin!==r.showPrintMargin&&this.editor.setShowPrintMargin(i.showPrintMargin),i.showGutter!==r.showGutter&&this.editor.renderer.setShowGutter(i.showGutter),Gi(i.setOptions,r.setOptions)||this.handleOptions(i),(c||!Gi(i.annotations,r.annotations))&&this.editor.getSession().setAnnotations(i.annotations||[]),!Gi(i.markers,r.markers)&&Array.isArray(i.markers)&&this.handleMarkers(i.markers),Gi(i.scrollMargin,r.scrollMargin)||this.handleScrollMargins(i.scrollMargin),(n.height!==this.props.height||n.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!n.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(n){n===void 0&&(n=[0,0,0,0]),this.editor.renderer.setScrollMargin(n[0],n[1],n[2],n[3])},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},t.prototype.onChange=function(n){if(this.props.onChange&&!this.silent){var r=this.editor.getValue();this.props.onChange(r,n)}},t.prototype.onSelectionChange=function(n){if(this.props.onSelectionChange){var r=this.editor.getSelection();this.props.onSelectionChange(r,n)}},t.prototype.onCursorChange=function(n){if(this.props.onCursorChange){var r=this.editor.getSelection();this.props.onCursorChange(r,n)}},t.prototype.onInput=function(n){this.props.onInput&&this.props.onInput(n),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n,this.editor)},t.prototype.onBlur=function(n){this.props.onBlur&&this.props.onBlur(n,this.editor)},t.prototype.onCopy=function(n){var r=n.text;this.props.onCopy&&this.props.onCopy(r)},t.prototype.onPaste=function(n){var r=n.text;this.props.onPaste&&this.props.onPaste(r)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(n){for(var r=Object.keys(n.setOptions),i=0;i<r.length;i++)this.editor.setOption(r[i],n.setOptions[r[i]])},t.prototype.handleMarkers=function(n){var r=this,i=this.editor.getSession().getMarkers(!0);for(var o in i)i.hasOwnProperty(o)&&this.editor.getSession().removeMarker(i[o].id);i=this.editor.getSession().getMarkers(!1);for(var o in i)i.hasOwnProperty(o)&&i[o].clazz!=="ace_active-line"&&i[o].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(i[o].id);n.forEach(function(l){var a=l.startRow,u=l.startCol,s=l.endRow,c=l.endCol,f=l.className,d=l.type,v=l.inFront,y=v===void 0?!1:v,S=new H1.Range(a,u,s,c);r.editor.getSession().addMarker(S,f,d,y)})},t.prototype.updatePlaceholder=function(){var n=this.editor,r=this.props.placeholder,i=!n.session.getValue().length,o=n.renderer.placeholderNode;!i&&o?(n.renderer.scroller.removeChild(n.renderer.placeholderNode),n.renderer.placeholderNode=null):i&&!o?(o=n.renderer.placeholderNode=document.createElement("div"),o.textContent=r||"",o.className="ace_comment ace_placeholder",o.style.padding="0 9px",o.style.position="absolute",o.style.zIndex="3",n.renderer.scroller.appendChild(o)):i&&o&&(o.textContent=r)},t.prototype.updateRef=function(n){this.refEditor=n},t.prototype.render=function(){var n=this.props,r=n.name,i=n.width,o=n.height,l=n.style,a=os({width:i,height:o},l);return sd.createElement("div",{ref:this.updateRef,id:r,style:a})},t.propTypes={mode:V.oneOfType([V.string,V.object]),focus:V.bool,theme:V.string,name:V.string,className:V.string,height:V.string,width:V.string,fontSize:V.oneOfType([V.number,V.string]),showGutter:V.bool,onChange:V.func,onCopy:V.func,onPaste:V.func,onFocus:V.func,onInput:V.func,onBlur:V.func,onScroll:V.func,value:V.string,defaultValue:V.string,onLoad:V.func,onSelectionChange:V.func,onCursorChange:V.func,onBeforeLoad:V.func,onValidate:V.func,minLines:V.number,maxLines:V.number,readOnly:V.bool,highlightActiveLine:V.bool,tabSize:V.number,showPrintMargin:V.bool,cursorStart:V.number,debounceChangePeriod:V.number,editorProps:V.object,setOptions:V.object,style:V.object,scrollMargin:V.array,annotations:V.array,markers:V.array,keyboardHandler:V.string,wrapEnabled:V.bool,enableSnippets:V.bool,enableBasicAutocompletion:V.oneOfType([V.bool,V.array]),enableLiveAutocompletion:V.oneOfType([V.bool,V.array]),navigateToFileEnd:V.bool,commands:V.array,placeholder:V.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(sd.Component);dc.default=V1;var pc={},Ea={},W1="Expected a function",sg="__lodash_hash_undefined__",cg=1/0,Q1="[object Function]",K1="[object GeneratorFunction]",G1="[object Symbol]",Y1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X1=/^\w*$/,J1=/^\./,Z1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q1=/[\\^$.*+?()[\]{}|]/g,ew=/\\(\\)?/g,tw=/^\[object .+?Constructor\]$/,nw=typeof Le=="object"&&Le&&Le.Object===Object&&Le,rw=typeof self=="object"&&self&&self.Object===Object&&self,gc=nw||rw||Function("return this")();function ow(e,t){return e==null?void 0:e[t]}function iw(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var lw=Array.prototype,aw=Function.prototype,fg=Object.prototype,ou=gc["__core-js_shared__"],fd=function(){var e=/[^.]+$/.exec(ou&&ou.keys&&ou.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),dg=aw.toString,vc=fg.hasOwnProperty,hg=fg.toString,uw=RegExp("^"+dg.call(vc).replace(q1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dd=gc.Symbol,sw=lw.splice,cw=pg(gc,"Map"),ri=pg(Object,"create"),hd=dd?dd.prototype:void 0,pd=hd?hd.toString:void 0;function ur(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function fw(){this.__data__=ri?ri(null):{}}function dw(e){return this.has(e)&&delete this.__data__[e]}function hw(e){var t=this.__data__;if(ri){var n=t[e];return n===sg?void 0:n}return vc.call(t,e)?t[e]:void 0}function pw(e){var t=this.__data__;return ri?t[e]!==void 0:vc.call(t,e)}function gw(e,t){var n=this.__data__;return n[e]=ri&&t===void 0?sg:t,this}ur.prototype.clear=fw;ur.prototype.delete=dw;ur.prototype.get=hw;ur.prototype.has=pw;ur.prototype.set=gw;function oo(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function vw(){this.__data__=[]}function mw(e){var t=this.__data__,n=Ca(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():sw.call(t,n,1),!0}function yw(e){var t=this.__data__,n=Ca(t,e);return n<0?void 0:t[n][1]}function ww(e){return Ca(this.__data__,e)>-1}function Sw(e,t){var n=this.__data__,r=Ca(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}oo.prototype.clear=vw;oo.prototype.delete=mw;oo.prototype.get=yw;oo.prototype.has=ww;oo.prototype.set=Sw;function dr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _w(){this.__data__={hash:new ur,map:new(cw||oo),string:new ur}}function Ew(e){return ka(this,e).delete(e)}function Cw(e){return ka(this,e).get(e)}function kw(e){return ka(this,e).has(e)}function Pw(e,t){return ka(this,e).set(e,t),this}dr.prototype.clear=_w;dr.prototype.delete=Ew;dr.prototype.get=Cw;dr.prototype.has=kw;dr.prototype.set=Pw;function Ca(e,t){for(var n=e.length;n--;)if(Iw(e[n][0],t))return n;return-1}function Rw(e,t){t=Tw(t,e)?[t]:Lw(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[zw(t[n++])];return n&&n==r?e:void 0}function Mw(e){if(!vg(e)||Dw(e))return!1;var t=Fw(e)||iw(e)?uw:tw;return t.test(Aw(e))}function xw(e){if(typeof e=="string")return e;if(yc(e))return pd?pd.call(e):"";var t=e+"";return t=="0"&&1/e==-cg?"-0":t}function Lw(e){return gg(e)?e:Nw(e)}function ka(e,t){var n=e.__data__;return Ow(t)?n[typeof t=="string"?"string":"hash"]:n.map}function pg(e,t){var n=ow(e,t);return Mw(n)?n:void 0}function Tw(e,t){if(gg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yc(e)?!0:X1.test(e)||!Y1.test(e)||t!=null&&e in Object(t)}function Ow(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dw(e){return!!fd&&fd in e}var Nw=mc(function(e){e=$w(e);var t=[];return J1.test(e)&&t.push(""),e.replace(Z1,function(n,r,i,o){t.push(i?o.replace(ew,"$1"):r||n)}),t});function zw(e){if(typeof e=="string"||yc(e))return e;var t=e+"";return t=="0"&&1/e==-cg?"-0":t}function Aw(e){if(e!=null){try{return dg.call(e)}catch{}try{return e+""}catch{}}return""}function mc(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(W1);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var l=e.apply(this,r);return n.cache=o.set(i,l),l};return n.cache=new(mc.Cache||dr),n}mc.Cache=dr;function Iw(e,t){return e===t||e!==e&&t!==t}var gg=Array.isArray;function Fw(e){var t=vg(e)?hg.call(e):"";return t==Q1||t==K1}function vg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function jw(e){return!!e&&typeof e=="object"}function yc(e){return typeof e=="symbol"||jw(e)&&hg.call(e)==G1}function $w(e){return e==null?"":xw(e)}function Uw(e,t,n){var r=e==null?void 0:Rw(e,t);return r===void 0?n:r}var Bw=Uw,bw=Le&&Le.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),is=Le&&Le.__assign||function(){return is=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},is.apply(this,arguments)};Object.defineProperty(Ea,"__esModule",{value:!0});var Gn=$t,iu=(0,Gn.getAceInstance)(),Hw=ul,Vw=ev,W=hc,gd=O,lu=ug,Xt=Bw,Ww=function(e){bw(t,e);function t(n){var r=e.call(this,n)||this;return Gn.editorEvents.forEach(function(i){r[i]=r[i].bind(r)}),r.debounce=Gn.debounce,r}return t.prototype.isInShadow=function(n){for(var r=n&&n.parentNode;r;){if(r.toString()==="[object ShadowRoot]")return!0;r=r.parentNode}return!1},t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.className,o=r.onBeforeLoad,l=r.mode,a=r.focus,u=r.theme,s=r.fontSize,c=r.value,f=r.defaultValue,d=r.cursorStart,v=r.showGutter,y=r.wrapEnabled,S=r.showPrintMargin,E=r.scrollMargin,g=E===void 0?[0,0,0,0]:E,h=r.keyboardHandler,w=r.onLoad,m=r.commands,P=r.annotations,R=r.markers,M=r.splits;this.editor=iu.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(u)),o&&o(iu);var T=Object.keys(this.props.editorProps),A=new Vw.Split(this.editor.container,"ace/theme/".concat(u),M);this.editor.env.split=A,this.splitEditor=A.getEditor(0),this.split=A,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var I=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),A.forEach(function(N,ne){for(var ue=0;ue<T.length;ue++)N[T[ue]]=n.props.editorProps[T[ue]];var ct=Xt(f,ne),Je=Xt(c,ne,"");N.session.setUndoManager(new iu.UndoManager),N.setTheme("ace/theme/".concat(u)),N.renderer.setScrollMargin(g[0],g[1],g[2],g[3]),N.getSession().setMode("ace/mode/".concat(l)),N.setFontSize(s),N.renderer.setShowGutter(v),N.getSession().setUseWrapMode(y),N.setShowPrintMargin(S),N.on("focus",n.onFocus),N.on("blur",n.onBlur),N.on("input",n.onInput),N.on("copy",n.onCopy),N.on("paste",n.onPaste),N.on("change",n.onChange),N.getSession().selection.on("changeSelection",n.onSelectionChange),N.getSession().selection.on("changeCursor",n.onCursorChange),N.session.on("changeScrollTop",n.onScroll),N.setValue(ct===void 0?Je:ct,d);var rt=Xt(P,ne,[]),z=Xt(R,ne,[]);N.getSession().setAnnotations(rt),z&&z.length>0&&n.handleMarkers(z,N);for(var ue=0;ue<Gn.editorOptions.length;ue++){var b=Gn.editorOptions[ue];I.hasOwnProperty(b)?N.setOption(b,n.props[b]):n.props[b]&&console.warn("ReaceAce: editor option ".concat(b," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}n.handleOptions(n.props,N),Array.isArray(m)&&m.forEach(function(Q){typeof Q.exec=="string"?N.commands.bindKey(Q.bindKey,Q.exec):N.commands.addCommand(Q)}),h&&N.setKeyboardHandler("ace/keyboard/"+h)}),i&&(this.refEditor.className+=" "+i),a&&this.splitEditor.focus();var U=this.editor.env.split;U.setOrientation(this.props.orientation==="below"?U.BELOW:U.BESIDE),U.resize(!0),w&&w(U)},t.prototype.componentDidUpdate=function(n){var r=this,i=n,o=this.props,l=this.editor.env.split;if(o.splits!==i.splits&&l.setSplits(o.splits),o.orientation!==i.orientation&&l.setOrientation(o.orientation==="below"?l.BELOW:l.BESIDE),l.forEach(function(c,f){o.mode!==i.mode&&c.getSession().setMode("ace/mode/"+o.mode),o.keyboardHandler!==i.keyboardHandler&&(o.keyboardHandler?c.setKeyboardHandler("ace/keyboard/"+o.keyboardHandler):c.setKeyboardHandler(null)),o.fontSize!==i.fontSize&&c.setFontSize(o.fontSize),o.wrapEnabled!==i.wrapEnabled&&c.getSession().setUseWrapMode(o.wrapEnabled),o.showPrintMargin!==i.showPrintMargin&&c.setShowPrintMargin(o.showPrintMargin),o.showGutter!==i.showGutter&&c.renderer.setShowGutter(o.showGutter);for(var d=0;d<Gn.editorOptions.length;d++){var v=Gn.editorOptions[d];o[v]!==i[v]&&c.setOption(v,o[v])}lu(o.setOptions,i.setOptions)||r.handleOptions(o,c);var y=Xt(o.value,f,"");if(c.getValue()!==y){r.silent=!0;var S=c.session.selection.toJSON();c.setValue(y,o.cursorStart),c.session.selection.fromJSON(S),r.silent=!1}var E=Xt(o.annotations,f,[]),g=Xt(i.annotations,f,[]);lu(E,g)||c.getSession().setAnnotations(E);var h=Xt(o.markers,f,[]),w=Xt(i.markers,f,[]);!lu(h,w)&&Array.isArray(h)&&r.handleMarkers(h,c)}),o.className!==i.className){var a=this.refEditor.className,u=a.trim().split(" "),s=i.className.trim().split(" ");s.forEach(function(c){var f=u.indexOf(c);u.splice(f,1)}),this.refEditor.className=" "+o.className+" "+u.join(" ")}o.theme!==i.theme&&l.setTheme("ace/theme/"+o.theme),o.focus&&!i.focus&&this.splitEditor.focus(),(o.height!==this.props.height||o.width!==this.props.width)&&this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(n){if(this.props.onChange&&!this.silent){var r=[];this.editor.env.split.forEach(function(i){r.push(i.getValue())}),this.props.onChange(r,n)}},t.prototype.onSelectionChange=function(n){if(this.props.onSelectionChange){var r=[];this.editor.env.split.forEach(function(i){r.push(i.getSelection())}),this.props.onSelectionChange(r,n)}},t.prototype.onCursorChange=function(n){if(this.props.onCursorChange){var r=[];this.editor.env.split.forEach(function(i){r.push(i.getSelection())}),this.props.onCursorChange(r,n)}},t.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n)},t.prototype.onInput=function(n){this.props.onInput&&this.props.onInput(n)},t.prototype.onBlur=function(n){this.props.onBlur&&this.props.onBlur(n)},t.prototype.onCopy=function(n){this.props.onCopy&&this.props.onCopy(n)},t.prototype.onPaste=function(n){this.props.onPaste&&this.props.onPaste(n)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(n,r){for(var i=Object.keys(n.setOptions),o=0;o<i.length;o++)r.setOption(i[o],n.setOptions[i[o]])},t.prototype.handleMarkers=function(n,r){var i=r.getSession().getMarkers(!0);for(var o in i)i.hasOwnProperty(o)&&r.getSession().removeMarker(i[o].id);i=r.getSession().getMarkers(!1);for(var o in i)i.hasOwnProperty(o)&&r.getSession().removeMarker(i[o].id);n.forEach(function(l){var a=l.startRow,u=l.startCol,s=l.endRow,c=l.endCol,f=l.className,d=l.type,v=l.inFront,y=v===void 0?!1:v,S=new Hw.Range(a,u,s,c);r.getSession().addMarker(S,f,d,y)})},t.prototype.updateRef=function(n){this.refEditor=n},t.prototype.render=function(){var n=this.props,r=n.name,i=n.width,o=n.height,l=n.style,a=is({width:i,height:o},l);return gd.createElement("div",{ref:this.updateRef,id:r,style:a})},t.propTypes={className:W.string,debounceChangePeriod:W.number,defaultValue:W.arrayOf(W.string),focus:W.bool,fontSize:W.oneOfType([W.number,W.string]),height:W.string,mode:W.string,name:W.string,onBlur:W.func,onChange:W.func,onCopy:W.func,onFocus:W.func,onInput:W.func,onLoad:W.func,onPaste:W.func,onScroll:W.func,orientation:W.string,showGutter:W.bool,splits:W.number,theme:W.string,value:W.arrayOf(W.string),width:W.string,onSelectionChange:W.func,onCursorChange:W.func,onBeforeLoad:W.func,minLines:W.number,maxLines:W.number,readOnly:W.bool,highlightActiveLine:W.bool,tabSize:W.number,showPrintMargin:W.bool,cursorStart:W.number,editorProps:W.object,setOptions:W.object,style:W.object,scrollMargin:W.array,annotations:W.array,markers:W.array,keyboardHandler:W.string,wrapEnabled:W.bool,enableBasicAutocompletion:W.oneOfType([W.bool,W.array]),enableLiveAutocompletion:W.oneOfType([W.bool,W.array]),commands:W.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(gd.Component);Ea.default=Ww;var mg={exports:{}};(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,i=0;t.Diff=function(o,l){return[o,l]},t.prototype.diff_main=function(o,l,a,u){typeof u>"u"&&(this.Diff_Timeout<=0?u=Number.MAX_VALUE:u=new Date().getTime()+this.Diff_Timeout*1e3);var s=u;if(o==null||l==null)throw new Error("Null input. (diff_main)");if(o==l)return o?[new t.Diff(i,o)]:[];typeof a>"u"&&(a=!0);var c=a,f=this.diff_commonPrefix(o,l),d=o.substring(0,f);o=o.substring(f),l=l.substring(f),f=this.diff_commonSuffix(o,l);var v=o.substring(o.length-f);o=o.substring(0,o.length-f),l=l.substring(0,l.length-f);var y=this.diff_compute_(o,l,c,s);return d&&y.unshift(new t.Diff(i,d)),v&&y.push(new t.Diff(i,v)),this.diff_cleanupMerge(y),y},t.prototype.diff_compute_=function(o,l,a,u){var s;if(!o)return[new t.Diff(r,l)];if(!l)return[new t.Diff(n,o)];var c=o.length>l.length?o:l,f=o.length>l.length?l:o,d=c.indexOf(f);if(d!=-1)return s=[new t.Diff(r,c.substring(0,d)),new t.Diff(i,f),new t.Diff(r,c.substring(d+f.length))],o.length>l.length&&(s[0][0]=s[2][0]=n),s;if(f.length==1)return[new t.Diff(n,o),new t.Diff(r,l)];var v=this.diff_halfMatch_(o,l);if(v){var y=v[0],S=v[1],E=v[2],g=v[3],h=v[4],w=this.diff_main(y,E,a,u),m=this.diff_main(S,g,a,u);return w.concat([new t.Diff(i,h)],m)}return a&&o.length>100&&l.length>100?this.diff_lineMode_(o,l,u):this.diff_bisect_(o,l,u)},t.prototype.diff_lineMode_=function(o,l,a){var u=this.diff_linesToChars_(o,l);o=u.chars1,l=u.chars2;var s=u.lineArray,c=this.diff_main(o,l,!1,a);this.diff_charsToLines_(c,s),this.diff_cleanupSemantic(c),c.push(new t.Diff(i,""));for(var f=0,d=0,v=0,y="",S="";f<c.length;){switch(c[f][0]){case r:v++,S+=c[f][1];break;case n:d++,y+=c[f][1];break;case i:if(d>=1&&v>=1){c.splice(f-d-v,d+v),f=f-d-v;for(var E=this.diff_main(y,S,!1,a),g=E.length-1;g>=0;g--)c.splice(f,0,E[g]);f=f+E.length}v=0,d=0,y="",S="";break}f++}return c.pop(),c},t.prototype.diff_bisect_=function(o,l,a){for(var u=o.length,s=l.length,c=Math.ceil((u+s)/2),f=c,d=2*c,v=new Array(d),y=new Array(d),S=0;S<d;S++)v[S]=-1,y[S]=-1;v[f+1]=0,y[f+1]=0;for(var E=u-s,g=E%2!=0,h=0,w=0,m=0,P=0,R=0;R<c&&!(new Date().getTime()>a);R++){for(var M=-R+h;M<=R-w;M+=2){var T=f+M,A;M==-R||M!=R&&v[T-1]<v[T+1]?A=v[T+1]:A=v[T-1]+1;for(var I=A-M;A<u&&I<s&&o.charAt(A)==l.charAt(I);)A++,I++;if(v[T]=A,A>u)w+=2;else if(I>s)h+=2;else if(g){var U=f+E-M;if(U>=0&&U<d&&y[U]!=-1){var N=u-y[U];if(A>=N)return this.diff_bisectSplit_(o,l,A,I,a)}}}for(var ne=-R+m;ne<=R-P;ne+=2){var U=f+ne,N;ne==-R||ne!=R&&y[U-1]<y[U+1]?N=y[U+1]:N=y[U-1]+1;for(var ue=N-ne;N<u&&ue<s&&o.charAt(u-N-1)==l.charAt(s-ue-1);)N++,ue++;if(y[U]=N,N>u)P+=2;else if(ue>s)m+=2;else if(!g){var T=f+E-ne;if(T>=0&&T<d&&v[T]!=-1){var A=v[T],I=f+A-T;if(N=u-N,A>=N)return this.diff_bisectSplit_(o,l,A,I,a)}}}}return[new t.Diff(n,o),new t.Diff(r,l)]},t.prototype.diff_bisectSplit_=function(o,l,a,u,s){var c=o.substring(0,a),f=l.substring(0,u),d=o.substring(a),v=l.substring(u),y=this.diff_main(c,f,!1,s),S=this.diff_main(d,v,!1,s);return y.concat(S)},t.prototype.diff_linesToChars_=function(o,l){var a=[],u={};a[0]="";function s(v){for(var y="",S=0,E=-1,g=a.length;E<v.length-1;){E=v.indexOf(`
  100. `,S),E==-1&&(E=v.length-1);var h=v.substring(S,E+1);(u.hasOwnProperty?u.hasOwnProperty(h):u[h]!==void 0)?y+=String.fromCharCode(u[h]):(g==c&&(h=v.substring(S),E=v.length),y+=String.fromCharCode(g),u[h]=g,a[g++]=h),S=E+1}return y}var c=4e4,f=s(o);c=65535;var d=s(l);return{chars1:f,chars2:d,lineArray:a}},t.prototype.diff_charsToLines_=function(o,l){for(var a=0;a<o.length;a++){for(var u=o[a][1],s=[],c=0;c<u.length;c++)s[c]=l[u.charCodeAt(c)];o[a][1]=s.join("")}},t.prototype.diff_commonPrefix=function(o,l){if(!o||!l||o.charAt(0)!=l.charAt(0))return 0;for(var a=0,u=Math.min(o.length,l.length),s=u,c=0;a<s;)o.substring(c,s)==l.substring(c,s)?(a=s,c=a):u=s,s=Math.floor((u-a)/2+a);return s},t.prototype.diff_commonSuffix=function(o,l){if(!o||!l||o.charAt(o.length-1)!=l.charAt(l.length-1))return 0;for(var a=0,u=Math.min(o.length,l.length),s=u,c=0;a<s;)o.substring(o.length-s,o.length-c)==l.substring(l.length-s,l.length-c)?(a=s,c=a):u=s,s=Math.floor((u-a)/2+a);return s},t.prototype.diff_commonOverlap_=function(o,l){var a=o.length,u=l.length;if(a==0||u==0)return 0;a>u?o=o.substring(a-u):a<u&&(l=l.substring(0,a));var s=Math.min(a,u);if(o==l)return s;for(var c=0,f=1;;){var d=o.substring(s-f),v=l.indexOf(d);if(v==-1)return c;f+=v,(v==0||o.substring(s-f)==l.substring(0,f))&&(c=f,f++)}},t.prototype.diff_halfMatch_=function(o,l){if(this.Diff_Timeout<=0)return null;var a=o.length>l.length?o:l,u=o.length>l.length?l:o;if(a.length<4||u.length*2<a.length)return null;var s=this;function c(w,m,P){for(var R=w.substring(P,P+Math.floor(w.length/4)),M=-1,T="",A,I,U,N;(M=m.indexOf(R,M+1))!=-1;){var ne=s.diff_commonPrefix(w.substring(P),m.substring(M)),ue=s.diff_commonSuffix(w.substring(0,P),m.substring(0,M));T.length<ue+ne&&(T=m.substring(M-ue,M)+m.substring(M,M+ne),A=w.substring(0,P-ue),I=w.substring(P+ne),U=m.substring(0,M-ue),N=m.substring(M+ne))}return T.length*2>=w.length?[A,I,U,N,T]:null}var f=c(a,u,Math.ceil(a.length/4)),d=c(a,u,Math.ceil(a.length/2)),v;if(!f&&!d)return null;d?f?v=f[4].length>d[4].length?f:d:v=d:v=f;var y,S,E,g;o.length>l.length?(y=v[0],S=v[1],E=v[2],g=v[3]):(E=v[0],g=v[1],y=v[2],S=v[3]);var h=v[4];return[y,S,E,g,h]},t.prototype.diff_cleanupSemantic=function(o){for(var l=!1,a=[],u=0,s=null,c=0,f=0,d=0,v=0,y=0;c<o.length;)o[c][0]==i?(a[u++]=c,f=v,d=y,v=0,y=0,s=o[c][1]):(o[c][0]==r?v+=o[c][1].length:y+=o[c][1].length,s&&s.length<=Math.max(f,d)&&s.length<=Math.max(v,y)&&(o.splice(a[u-1],0,new t.Diff(n,s)),o[a[u-1]+1][0]=r,u--,u--,c=u>0?a[u-1]:-1,f=0,d=0,v=0,y=0,s=null,l=!0)),c++;for(l&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),c=1;c<o.length;){if(o[c-1][0]==n&&o[c][0]==r){var S=o[c-1][1],E=o[c][1],g=this.diff_commonOverlap_(S,E),h=this.diff_commonOverlap_(E,S);g>=h?(g>=S.length/2||g>=E.length/2)&&(o.splice(c,0,new t.Diff(i,E.substring(0,g))),o[c-1][1]=S.substring(0,S.length-g),o[c+1][1]=E.substring(g),c++):(h>=S.length/2||h>=E.length/2)&&(o.splice(c,0,new t.Diff(i,S.substring(0,h))),o[c-1][0]=r,o[c-1][1]=E.substring(0,E.length-h),o[c+1][0]=n,o[c+1][1]=S.substring(h),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(o){function l(h,w){if(!h||!w)return 6;var m=h.charAt(h.length-1),P=w.charAt(0),R=m.match(t.nonAlphaNumericRegex_),M=P.match(t.nonAlphaNumericRegex_),T=R&&m.match(t.whitespaceRegex_),A=M&&P.match(t.whitespaceRegex_),I=T&&m.match(t.linebreakRegex_),U=A&&P.match(t.linebreakRegex_),N=I&&h.match(t.blanklineEndRegex_),ne=U&&w.match(t.blanklineStartRegex_);return N||ne?5:I||U?4:R&&!T&&A?3:T||A?2:R||M?1:0}for(var a=1;a<o.length-1;){if(o[a-1][0]==i&&o[a+1][0]==i){var u=o[a-1][1],s=o[a][1],c=o[a+1][1],f=this.diff_commonSuffix(u,s);if(f){var d=s.substring(s.length-f);u=u.substring(0,u.length-f),s=d+s.substring(0,s.length-f),c=d+c}for(var v=u,y=s,S=c,E=l(u,s)+l(s,c);s.charAt(0)===c.charAt(0);){u+=s.charAt(0),s=s.substring(1)+c.charAt(0),c=c.substring(1);var g=l(u,s)+l(s,c);g>=E&&(E=g,v=u,y=s,S=c)}o[a-1][1]!=v&&(v?o[a-1][1]=v:(o.splice(a-1,1),a--),o[a][1]=y,S?o[a+1][1]=S:(o.splice(a+1,1),a--))}a++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(o){for(var l=!1,a=[],u=0,s=null,c=0,f=!1,d=!1,v=!1,y=!1;c<o.length;)o[c][0]==i?(o[c][1].length<this.Diff_EditCost&&(v||y)?(a[u++]=c,f=v,d=y,s=o[c][1]):(u=0,s=null),v=y=!1):(o[c][0]==n?y=!0:v=!0,s&&(f&&d&&v&&y||s.length<this.Diff_EditCost/2&&f+d+v+y==3)&&(o.splice(a[u-1],0,new t.Diff(n,s)),o[a[u-1]+1][0]=r,u--,s=null,f&&d?(v=y=!0,u=0):(u--,c=u>0?a[u-1]:-1,v=y=!1),l=!0)),c++;l&&this.diff_cleanupMerge(o)},t.prototype.diff_cleanupMerge=function(o){o.push(new t.Diff(i,""));for(var l=0,a=0,u=0,s="",c="",f;l<o.length;)switch(o[l][0]){case r:u++,c+=o[l][1],l++;break;case n:a++,s+=o[l][1],l++;break;case i:a+u>1?(a!==0&&u!==0&&(f=this.diff_commonPrefix(c,s),f!==0&&(l-a-u>0&&o[l-a-u-1][0]==i?o[l-a-u-1][1]+=c.substring(0,f):(o.splice(0,0,new t.Diff(i,c.substring(0,f))),l++),c=c.substring(f),s=s.substring(f)),f=this.diff_commonSuffix(c,s),f!==0&&(o[l][1]=c.substring(c.length-f)+o[l][1],c=c.substring(0,c.length-f),s=s.substring(0,s.length-f))),l-=a+u,o.splice(l,a+u),s.length&&(o.splice(l,0,new t.Diff(n,s)),l++),c.length&&(o.splice(l,0,new t.Diff(r,c)),l++),l++):l!==0&&o[l-1][0]==i?(o[l-1][1]+=o[l][1],o.splice(l,1)):l++,u=0,a=0,s="",c="";break}o[o.length-1][1]===""&&o.pop();var d=!1;for(l=1;l<o.length-1;)o[l-1][0]==i&&o[l+1][0]==i&&(o[l][1].substring(o[l][1].length-o[l-1][1].length)==o[l-1][1]?(o[l][1]=o[l-1][1]+o[l][1].substring(0,o[l][1].length-o[l-1][1].length),o[l+1][1]=o[l-1][1]+o[l+1][1],o.splice(l-1,1),d=!0):o[l][1].substring(0,o[l+1][1].length)==o[l+1][1]&&(o[l-1][1]+=o[l+1][1],o[l][1]=o[l][1].substring(o[l+1][1].length)+o[l+1][1],o.splice(l+1,1),d=!0)),l++;d&&this.diff_cleanupMerge(o)},t.prototype.diff_xIndex=function(o,l){var a=0,u=0,s=0,c=0,f;for(f=0;f<o.length&&(o[f][0]!==r&&(a+=o[f][1].length),o[f][0]!==n&&(u+=o[f][1].length),!(a>l));f++)s=a,c=u;return o.length!=f&&o[f][0]===n?c:c+(l-s)},t.prototype.diff_prettyHtml=function(o){for(var l=[],a=/&/g,u=/</g,s=/>/g,c=/\n/g,f=0;f<o.length;f++){var d=o[f][0],v=o[f][1],y=v.replace(a,"&amp;").replace(u,"&lt;").replace(s,"&gt;").replace(c,"&para;<br>");switch(d){case r:l[f]='<ins style="background:#e6ffe6;">'+y+"</ins>";break;case n:l[f]='<del style="background:#ffe6e6;">'+y+"</del>";break;case i:l[f]="<span>"+y+"</span>";break}}return l.join("")},t.prototype.diff_text1=function(o){for(var l=[],a=0;a<o.length;a++)o[a][0]!==r&&(l[a]=o[a][1]);return l.join("")},t.prototype.diff_text2=function(o){for(var l=[],a=0;a<o.length;a++)o[a][0]!==n&&(l[a]=o[a][1]);return l.join("")},t.prototype.diff_levenshtein=function(o){for(var l=0,a=0,u=0,s=0;s<o.length;s++){var c=o[s][0],f=o[s][1];switch(c){case r:a+=f.length;break;case n:u+=f.length;break;case i:l+=Math.max(a,u),a=0,u=0;break}}return l+=Math.max(a,u),l},t.prototype.diff_toDelta=function(o){for(var l=[],a=0;a<o.length;a++)switch(o[a][0]){case r:l[a]="+"+encodeURI(o[a][1]);break;case n:l[a]="-"+o[a][1].length;break;case i:l[a]="="+o[a][1].length;break}return l.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(o,l){for(var a=[],u=0,s=0,c=l.split(/\t/g),f=0;f<c.length;f++){var d=c[f].substring(1);switch(c[f].charAt(0)){case"+":try{a[u++]=new t.Diff(r,decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":var v=parseInt(d,10);if(isNaN(v)||v<0)throw new Error("Invalid number in diff_fromDelta: "+d);var y=o.substring(s,s+=v);c[f].charAt(0)=="="?a[u++]=new t.Diff(i,y):a[u++]=new t.Diff(n,y);break;default:if(c[f])throw new Error("Invalid diff operation in diff_fromDelta: "+c[f])}}if(s!=o.length)throw new Error("Delta length ("+s+") does not equal source text length ("+o.length+").");return a},t.prototype.match_main=function(o,l,a){if(o==null||l==null||a==null)throw new Error("Null input. (match_main)");return a=Math.max(0,Math.min(a,o.length)),o==l?0:o.length?o.substring(a,a+l.length)==l?a:this.match_bitap_(o,l,a):-1},t.prototype.match_bitap_=function(o,l,a){if(l.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var u=this.match_alphabet_(l),s=this;function c(A,I){var U=A/l.length,N=Math.abs(a-I);return s.Match_Distance?U+N/s.Match_Distance:N?1:U}var f=this.Match_Threshold,d=o.indexOf(l,a);d!=-1&&(f=Math.min(c(0,d),f),d=o.lastIndexOf(l,a+l.length),d!=-1&&(f=Math.min(c(0,d),f)));var v=1<<l.length-1;d=-1;for(var y,S,E=l.length+o.length,g,h=0;h<l.length;h++){for(y=0,S=E;y<S;)c(h,a+S)<=f?y=S:E=S,S=Math.floor((E-y)/2+y);E=S;var w=Math.max(1,a-S+1),m=Math.min(a+S,o.length)+l.length,P=Array(m+2);P[m+1]=(1<<h)-1;for(var R=m;R>=w;R--){var M=u[o.charAt(R-1)];if(h===0?P[R]=(P[R+1]<<1|1)&M:P[R]=(P[R+1]<<1|1)&M|((g[R+1]|g[R])<<1|1)|g[R+1],P[R]&v){var T=c(h,R-1);if(T<=f)if(f=T,d=R-1,d>a)w=Math.max(1,2*a-d);else break}}if(c(h+1,a)>f)break;g=P}return d},t.prototype.match_alphabet_=function(o){for(var l={},a=0;a<o.length;a++)l[o.charAt(a)]=0;for(var a=0;a<o.length;a++)l[o.charAt(a)]|=1<<o.length-a-1;return l},t.prototype.patch_addContext_=function(o,l){if(l.length!=0){if(o.start2===null)throw Error("patch not initialized");for(var a=l.substring(o.start2,o.start2+o.length1),u=0;l.indexOf(a)!=l.lastIndexOf(a)&&a.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)u+=this.Patch_Margin,a=l.substring(o.start2-u,o.start2+o.length1+u);u+=this.Patch_Margin;var s=l.substring(o.start2-u,o.start2);s&&o.diffs.unshift(new t.Diff(i,s));var c=l.substring(o.start2+o.length1,o.start2+o.length1+u);c&&o.diffs.push(new t.Diff(i,c)),o.start1-=s.length,o.start2-=s.length,o.length1+=s.length+c.length,o.length2+=s.length+c.length}},t.prototype.patch_make=function(o,l,a){var u,s;if(typeof o=="string"&&typeof l=="string"&&typeof a>"u")u=o,s=this.diff_main(u,l,!0),s.length>2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(o&&typeof o=="object"&&typeof l>"u"&&typeof a>"u")s=o,u=this.diff_text1(s);else if(typeof o=="string"&&l&&typeof l=="object"&&typeof a>"u")u=o,s=l;else if(typeof o=="string"&&typeof l=="string"&&a&&typeof a=="object")u=o,s=a;else throw new Error("Unknown call format to patch_make.");if(s.length===0)return[];for(var c=[],f=new t.patch_obj,d=0,v=0,y=0,S=u,E=u,g=0;g<s.length;g++){var h=s[g][0],w=s[g][1];switch(!d&&h!==i&&(f.start1=v,f.start2=y),h){case r:f.diffs[d++]=s[g],f.length2+=w.length,E=E.substring(0,y)+w+E.substring(y);break;case n:f.length1+=w.length,f.diffs[d++]=s[g],E=E.substring(0,y)+E.substring(y+w.length);break;case i:w.length<=2*this.Patch_Margin&&d&&s.length!=g+1?(f.diffs[d++]=s[g],f.length1+=w.length,f.length2+=w.length):w.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(f,S),c.push(f),f=new t.patch_obj,d=0,S=E,v=y);break}h!==r&&(v+=w.length),h!==n&&(y+=w.length)}return d&&(this.patch_addContext_(f,S),c.push(f)),c},t.prototype.patch_deepCopy=function(o){for(var l=[],a=0;a<o.length;a++){var u=o[a],s=new t.patch_obj;s.diffs=[];for(var c=0;c<u.diffs.length;c++)s.diffs[c]=new t.Diff(u.diffs[c][0],u.diffs[c][1]);s.start1=u.start1,s.start2=u.start2,s.length1=u.length1,s.length2=u.length2,l[a]=s}return l},t.prototype.patch_apply=function(o,l){if(o.length==0)return[l,[]];o=this.patch_deepCopy(o);var a=this.patch_addPadding(o);l=a+l+a,this.patch_splitMax(o);for(var u=0,s=[],c=0;c<o.length;c++){var f=o[c].start2+u,d=this.diff_text1(o[c].diffs),v,y=-1;if(d.length>this.Match_MaxBits?(v=this.match_main(l,d.substring(0,this.Match_MaxBits),f),v!=-1&&(y=this.match_main(l,d.substring(d.length-this.Match_MaxBits),f+d.length-this.Match_MaxBits),(y==-1||v>=y)&&(v=-1))):v=this.match_main(l,d,f),v==-1)s[c]=!1,u-=o[c].length2-o[c].length1;else{s[c]=!0,u=v-f;var S;if(y==-1?S=l.substring(v,v+d.length):S=l.substring(v,y+this.Match_MaxBits),d==S)l=l.substring(0,v)+this.diff_text2(o[c].diffs)+l.substring(v+d.length);else{var E=this.diff_main(d,S,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(E)/d.length>this.Patch_DeleteThreshold)s[c]=!1;else{this.diff_cleanupSemanticLossless(E);for(var g=0,h,w=0;w<o[c].diffs.length;w++){var m=o[c].diffs[w];m[0]!==i&&(h=this.diff_xIndex(E,g)),m[0]===r?l=l.substring(0,v+h)+m[1]+l.substring(v+h):m[0]===n&&(l=l.substring(0,v+h)+l.substring(v+this.diff_xIndex(E,g+m[1].length))),m[0]!==n&&(g+=m[1].length)}}}}}return l=l.substring(a.length,l.length-a.length),[l,s]},t.prototype.patch_addPadding=function(o){for(var l=this.Patch_Margin,a="",u=1;u<=l;u++)a+=String.fromCharCode(u);for(var u=0;u<o.length;u++)o[u].start1+=l,o[u].start2+=l;var s=o[0],c=s.diffs;if(c.length==0||c[0][0]!=i)c.unshift(new t.Diff(i,a)),s.start1-=l,s.start2-=l,s.length1+=l,s.length2+=l;else if(l>c[0][1].length){var f=l-c[0][1].length;c[0][1]=a.substring(c[0][1].length)+c[0][1],s.start1-=f,s.start2-=f,s.length1+=f,s.length2+=f}if(s=o[o.length-1],c=s.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,a)),s.length1+=l,s.length2+=l;else if(l>c[c.length-1][1].length){var f=l-c[c.length-1][1].length;c[c.length-1][1]+=a.substring(0,f),s.length1+=f,s.length2+=f}return a},t.prototype.patch_splitMax=function(o){for(var l=this.Match_MaxBits,a=0;a<o.length;a++)if(!(o[a].length1<=l)){var u=o[a];o.splice(a--,1);for(var s=u.start1,c=u.start2,f="";u.diffs.length!==0;){var d=new t.patch_obj,v=!0;for(d.start1=s-f.length,d.start2=c-f.length,f!==""&&(d.length1=d.length2=f.length,d.diffs.push(new t.Diff(i,f)));u.diffs.length!==0&&d.length1<l-this.Patch_Margin;){var y=u.diffs[0][0],S=u.diffs[0][1];y===r?(d.length2+=S.length,c+=S.length,d.diffs.push(u.diffs.shift()),v=!1):y===n&&d.diffs.length==1&&d.diffs[0][0]==i&&S.length>2*l?(d.length1+=S.length,s+=S.length,v=!1,d.diffs.push(new t.Diff(y,S)),u.diffs.shift()):(S=S.substring(0,l-d.length1-this.Patch_Margin),d.length1+=S.length,s+=S.length,y===i?(d.length2+=S.length,c+=S.length):v=!1,d.diffs.push(new t.Diff(y,S)),S==u.diffs[0][1]?u.diffs.shift():u.diffs[0][1]=u.diffs[0][1].substring(S.length))}f=this.diff_text2(d.diffs),f=f.substring(f.length-this.Patch_Margin);var E=this.diff_text1(u.diffs).substring(0,this.Patch_Margin);E!==""&&(d.length1+=E.length,d.length2+=E.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===i?d.diffs[d.diffs.length-1][1]+=E:d.diffs.push(new t.Diff(i,E))),v||o.splice(++a,0,d)}}},t.prototype.patch_toText=function(o){for(var l=[],a=0;a<o.length;a++)l[a]=o[a];return l.join("")},t.prototype.patch_fromText=function(o){var l=[];if(!o)return l;for(var a=o.split(`
  101. `),u=0,s=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;u<a.length;){var c=a[u].match(s);if(!c)throw new Error("Invalid patch string: "+a[u]);var f=new t.patch_obj;for(l.push(f),f.start1=parseInt(c[1],10),c[2]===""?(f.start1--,f.length1=1):c[2]=="0"?f.length1=0:(f.start1--,f.length1=parseInt(c[2],10)),f.start2=parseInt(c[3],10),c[4]===""?(f.start2--,f.length2=1):c[4]=="0"?f.length2=0:(f.start2--,f.length2=parseInt(c[4],10)),u++;u<a.length;){var d=a[u].charAt(0);try{var v=decodeURI(a[u].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+v)}if(d=="-")f.diffs.push(new t.Diff(n,v));else if(d=="+")f.diffs.push(new t.Diff(r,v));else if(d==" ")f.diffs.push(new t.Diff(i,v));else{if(d=="@")break;if(d!=="")throw new Error('Invalid patch mode "'+d+'" in: '+v)}u++}}return l},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.prototype.toString=function(){var o,l;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?l=this.start2+",0":this.length2==1?l=this.start2+1:l=this.start2+1+","+this.length2;for(var a=["@@ -"+o+" +"+l+` @@
  102. `],u,s=0;s<this.diffs.length;s++){switch(this.diffs[s][0]){case r:u="+";break;case n:u="-";break;case i:u=" ";break}a[s+1]=u+encodeURI(this.diffs[s][1])+`
  103. `}return a.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=r,e.exports.DIFF_EQUAL=i})(mg);var Qw=mg.exports,Kw=Le&&Le.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(pc,"__esModule",{value:!0});var re=hc,vd=O,Gw=Ea,Yw=Qw,Xw=function(e){Kw(t,e);function t(n){var r=e.call(this,n)||this;return r.state={value:r.props.value},r.onChange=r.onChange.bind(r),r.diff=r.diff.bind(r),r}return t.prototype.componentDidUpdate=function(){var n=this.props.value;n!==this.state.value&&this.setState({value:n})},t.prototype.onChange=function(n){this.setState({value:n}),this.props.onChange&&this.props.onChange(n)},t.prototype.diff=function(){var n=new Yw,r=this.state.value[0],i=this.state.value[1];if(r.length===0&&i.length===0)return[];var o=n.diff_main(r,i);n.diff_cleanupSemantic(o);var l=this.generateDiffedLines(o),a=this.setCodeMarkers(l);return a},t.prototype.generateDiffedLines=function(n){var r={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},i={left:[],right:[]},o={left:1,right:1};return n.forEach(function(l){var a=l[0],u=l[1],s=u.split(`
  104. `).length-1;if(u.length!==0){var c=u[0],f=u[u.length-1],d=0;switch(a){case r.DIFF_EQUAL:o.left+=s,o.right+=s;break;case r.DIFF_DELETE:c===`
  105. `&&(o.left++,s--),d=s,d===0&&i.right.push({startLine:o.right,endLine:o.right}),f===`
  106. `&&(d-=1),i.left.push({startLine:o.left,endLine:o.left+d}),o.left+=s;break;case r.DIFF_INSERT:c===`
  107. `&&(o.right++,s--),d=s,d===0&&i.left.push({startLine:o.left,endLine:o.left}),f===`
  108. `&&(d-=1),i.right.push({startLine:o.right,endLine:o.right+d}),o.right+=s;break;default:throw new Error("Diff type was not defined.")}}}),i},t.prototype.setCodeMarkers=function(n){n===void 0&&(n={left:[],right:[]});for(var r=[],i={left:[],right:[]},o=0;o<n.left.length;o++){var l={startRow:n.left[o].startLine-1,endRow:n.left[o].endLine,type:"text",className:"codeMarker"};i.left.push(l)}for(var o=0;o<n.right.length;o++){var l={startRow:n.right[o].startLine-1,endRow:n.right[o].endLine,type:"text",className:"codeMarker"};i.right.push(l)}return r[0]=i.left,r[1]=i.right,r},t.prototype.render=function(){var n=this.diff();return vd.createElement(Gw.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:n})},t.propTypes={cursorStart:re.number,editorProps:re.object,enableBasicAutocompletion:re.bool,enableLiveAutocompletion:re.bool,focus:re.bool,fontSize:re.number,height:re.string,highlightActiveLine:re.bool,maxLines:re.number,minLines:re.number,mode:re.string,name:re.string,className:re.string,onLoad:re.func,onPaste:re.func,onScroll:re.func,onChange:re.func,orientation:re.string,readOnly:re.bool,scrollMargin:re.array,setOptions:re.object,showGutter:re.bool,showPrintMargin:re.bool,splits:re.number,style:re.object,tabSize:re.number,theme:re.string,value:re.array,width:re.string,wrapEnabled:re.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(vd.Component);pc.default=Xw;Object.defineProperty(qr,"__esModule",{value:!0});qr.diff=qr.split=void 0;var Jw=dc,Zw=pc;qr.diff=Zw.default;var qw=Ea;qr.split=qw.default;var gS=qr.default=Jw.default;export{D1 as L,pS as N,dS as O,iS as P,xd as R,bf as _,O as a,Ry as b,oS as c,nS as d,Jl as e,vv as f,lS as g,rS as h,ci as i,tS as j,m1 as k,aS as l,uS as m,cS as n,sS as o,fS as p,hS as q,i0 as r,ld as s,_1 as t,l1 as u,Dc as v,gS as w};