60 lines
161 KiB
JavaScript
60 lines
161 KiB
JavaScript
|
|
function Bc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const i=Object.getOwnPropertyDescriptor(r,l);i&&Object.defineProperty(e,l,i.get?i:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ph=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var ga={exports:{}},O={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var lr=Symbol.for("react.element"),Ac=Symbol.for("react.portal"),Vc=Symbol.for("react.fragment"),Wc=Symbol.for("react.strict_mode"),Hc=Symbol.for("react.profiler"),Qc=Symbol.for("react.provider"),Kc=Symbol.for("react.context"),Yc=Symbol.for("react.forward_ref"),Xc=Symbol.for("react.suspense"),Gc=Symbol.for("react.memo"),Zc=Symbol.for("react.lazy"),nu=Symbol.iterator;function Jc(e){return e===null||typeof e!="object"?null:(e=nu&&e[nu]||e["@@iterator"],typeof e=="function"?e:null)}var wa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sa=Object.assign,ka={};function fn(e,t,n){this.props=e,this.context=t,this.refs=ka,this.updater=n||wa}fn.prototype.isReactComponent={};fn.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")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ea(){}Ea.prototype=fn.prototype;function ro(e,t,n){this.props=e,this.context=t,this.refs=ka,this.updater=n||wa}var lo=ro.prototype=new Ea;lo.constructor=ro;Sa(lo,fn.prototype);lo.isPureReactComponent=!0;var ru=Array.isArray,Ca=Object.prototype.hasOwnProperty,io={current:null},xa={key:!0,ref:!0,__self:!0,__source:!0};function Pa(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Ca.call(t,r)&&!xa.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var a=Array(u),s=0;s<u;s++)a[s]=arguments[s+2];l.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:lr,type:e,key:i,ref:o,props:l,_owner:io.current}}function qc(e,t){return{$$typeof:lr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oo(e){return typeof e=="object"&&e!==null&&e.$$typeof===lr}function bc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var lu=/\/+/g;function Ml(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bc(""+e.key):t.toString(36)}function Lr(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case lr:case Ac:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Ml(o,0):r,ru(l)?(n="",e!=null&&(n=e.replace(lu,"$&/")+"/"),Lr(l,t,n,"",function(s){return s})):l!=null&&(oo(l)&&(l=qc(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(lu,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",ru(e))for(var u=0;u<e.length;u++){i=e[u];var a=r+Ml(i,u);o+=Lr(i,t,n,a,l)}else if(a=Jc(e),typeof a=="function")for(e=a.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Ml(i,u++),o+=Lr(i,t,n,a,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function fr(e,t,n){if(e==null)return e;var r=[],l=0;return Lr(e,r,"","",function(i){return t.call(n,i,l++)}),r}function ef(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 ae={current:null},zr={transition:null},tf={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:zr,ReactCurrentOwner:io};function _a(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:fr,forEach:function(e,t,n){fr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fr(e,function(){t++}),t},toArray:function(e){return fr(e,function(t){return t})||[]},only:function(e){if(!oo(e))throw Error("React.Children.only expected to receive a sing
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/(function(e){function t(P,z){var R=P.length;P.push(z);e:for(;0<R;){var Q=R-1>>>1,Z=P[Q];if(0<l(Z,z))P[Q]=z,P[R]=Z,R=Q;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var z=P[0],R=P.pop();if(R!==z){P[0]=R;e:for(var Q=0,Z=P.length,sr=Z>>>1;Q<sr;){var St=2*(Q+1)-1,Ol=P[St],kt=St+1,cr=P[kt];if(0>l(Ol,R))kt<Z&&0>l(cr,Ol)?(P[Q]=cr,P[kt]=R,Q=kt):(P[Q]=Ol,P[St]=R,Q=St);else if(kt<Z&&0>l(cr,R))P[Q]=cr,P[kt]=R,Q=kt;else break e}}return z}function l(P,z){var R=P.sortIndex-z.sortIndex;return R!==0?R:P.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],h=1,p=null,m=3,g=!1,y=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(P){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=P)r(s),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(s)}}function v(P){if(w=!1,d(P),!y)if(n(a)!==null)y=!0,Tl(E);else{var z=n(s);z!==null&&Rl(v,z.startTime-P)}}function E(P,z){y=!1,w&&(w=!1,f(L),L=-1),g=!0;var R=m;try{for(d(z),p=n(a);p!==null&&(!(p.expirationTime>z)||P&&!me());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,m=p.priorityLevel;var Z=Q(p.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?p.callback=Z:p===n(a)&&r(a),d(z)}else r(a);p=n(a)}if(p!==null)var sr=!0;else{var St=n(s);St!==null&&Rl(v,St.startTime-z),sr=!1}return sr}finally{p=null,m=R,g=!1}}var _=!1,N=null,L=-1,$=5,T=-1;function me(){return!(e.unstable_now()-T<$)}function vn(){if(N!==null){var P=e.unstable_now();T=P;var z=!0;try{z=N(!0,P)}finally{z?yn():(_=!1,N=null)}}else _=!1}var yn;if(typeof c=="function")yn=function(){c(vn)};else if(typeof MessageChannel<"u"){var tu=new MessageChannel,$c=tu.port2;tu.port1.onmessage=vn,yn=function(){$c.postMessage(null)}}else yn=function(){C(vn,0)};function Tl(P){N=P,_||(_=!0,yn())}function Rl(P,z){L=C(function(){P(e.unstable_now())},z)}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(P){P.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,Tl(E))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(P){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var R=m;m=z;try{return P()}finally{m=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,z){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var R=m;m=P;try{return z()}finally{m=R}},e.unstable_scheduleCallback=function(P,z,R){var Q=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?Q+R:Q):R=Q,P){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=R+Z,P={id:h++,callback:z,priorityLevel:P,startTime:R,expirationTime:Z,sortIndex:-1},R>Q?(P.sortIndex=R,t(s,P),n(a)===null&&P===n(s)&&(w?(f(L),L=-1):w=!0,Rl(v,R-Q))):(P.sortIndex=Z,t(a,P),y||g||(y=!0,Tl(E))),P},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(P){var z=m;return function(){var R=m;m=z;try{return P.apply(this,arguments)}finally{m=R}}}})(za);La.exports=za;var lf=La.exports;/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var of=k,we=lf;function S(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 Ta=new Set,$n={};function It(e,t){nn(e,t),nn(e+"Capture",t)}function nn(e,t){for($n[e]=t,e=0;e<t.length;e++)Ta.add(t[e])}var Qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oi=Object.prototype.hasOwnProperty,uf=/^[: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]*$/,iu={},ou={};function af(e){return oi.call(ou,e)?!0:oi.call(iu,e)?!1:uf.test(e)?ou[e]=!0:(iu[e]=!0,!1)}function sf(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 cf(e,t,n,r){if(t===null||typeof t>"u"||sf(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 se(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new se(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){te[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var uo=/[\-:]([a-z])/g;function ao(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-
|
||
|
|
`+Il+e}var jl=!1;function Dl(e,t){if(!e||jl)return"";jl=!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 l=s.stack.split(`
|
||
|
|
`),i=r.stack.split(`
|
||
|
|
`),o=l.length-1,u=i.length-1;1<=o&&0<=u&&l[o]!==i[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==i[u]){if(o!==1||u!==1)do if(o--,u--,0>u||l[o]!==i[u]){var a=`
|
||
|
|
`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_n(e):""}function ff(e){switch(e.tag){case 5:return _n(e.type);case 16:return _n("Lazy");case 13:return _n("Suspense");case 19:return _n("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function ci(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 $t:return"Fragment";case Ut:return"Portal";case ui:return"Profiler";case co:return"StrictMode";case ai:return"Suspense";case si:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oa:return(e.displayName||"Context")+".Consumer";case Ra:return(e._context.displayName||"Context")+".Provider";case fo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case po:return t=e.displayName||null,t!==null?t:ci(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return ci(e(t))}catch{}}return null}function df(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 ci(t);case 8:return t===co?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ia(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pf(e){var t=Ia(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pr(e){e._valueTracker||(e._valueTracker=pf(e))}function ja(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ia(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Br(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 fi(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Da(e,t){t=t.checked,t!=null&&so(e,"checked",t,!1)}function di(e,t){Da(e,t);var n=mt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pi(e,t.type,n):t.hasOwnProperty("defaultValue")&&pi(e,t.type,mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(e,t,n){if(t.hasOwnProperty("valu
|
||
|
|
`).replace(Cd,"")}function kr(e,t,n){if(t=Ou(t),Ou(e)!==t&&n)throw Error(S(425))}function Xr(){}var Ni=null,Li=null;function zi(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 Ti=typeof setTimeout=="function"?setTimeout:void 0,xd=typeof clearTimeout=="function"?clearTimeout:void 0,Mu=typeof Promise=="function"?Promise:void 0,Pd=typeof queueMicrotask=="function"?queueMicrotask:typeof Mu<"u"?function(e){return Mu.resolve(null).then(e).catch(_d)}:Ti;function _d(e){setTimeout(function(){throw e})}function Gl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Hn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Hn(t)}function st(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 Iu(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 pn=Math.random().toString(36).slice(2),Fe="__reactFiber$"+pn,Gn="__reactProps$"+pn,Ke="__reactContainer$"+pn,Ri="__reactEvents$"+pn,Nd="__reactListeners$"+pn,Ld="__reactHandles$"+pn;function xt(e){var t=e[Fe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ke]||n[Fe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Iu(e);e!==null;){if(n=e[Fe])return n;e=Iu(e)}return t}e=n,n=e.parentNode}return null}function ur(e){return e=e[Fe]||e[Ke],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function vl(e){return e[Gn]||null}var Oi=[],Ht=-1;function gt(e){return{current:e}}function F(e){0>Ht||(e.current=Oi[Ht],Oi[Ht]=null,Ht--)}function j(e,t){Ht++,Oi[Ht]=e.current,e.current=t}var vt={},ie=gt(vt),de=gt(!1),zt=vt;function rn(e,t){var n=e.type.contextTypes;if(!n)return vt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Gr(){F(de),F(ie)}function ju(e,t,n){if(ie.current!==vt)throw Error(S(168));j(ie,t),j(de,n)}function xs(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,df(e)||"Unknown",l));return W({},n,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vt,zt=ie.current,j(ie,e),j(de,de.current),!0}function Du(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=xs(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,F(de),F(ie),j(ie,e)):F(de),j(de,n)}var Ae=null,yl=!1,Zl=!1;function Ps(e){Ae===null?Ae=[e]:Ae.push(e)}function zd(e){yl=!0,Ps(e)}function wt(){if(!Zl&&Ae!==null){Zl=!0;var e=0,t=I;try{var n=Ae;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ae=null,yl=!1}catch(l){throw Ae!==null&&(Ae=Ae.slice(e+1)),Za(mo,wt),l}finally{I=t,Zl=!1}}return null}var Qt=[],Kt=0,Jr=null,qr=0,Ee=[],Ce=0,Tt=null,Ve=1,We="";function Et(e,t){Qt[Kt++]=qr,Qt[Kt++]=Jr,Jr=e,qr=t}function _s(e,t,n){Ee[Ce++]=Ve,Ee[Ce++]=We,Ee[Ce++]=Tt,Tt=e;var r=Ve;e=We;var l=32-Oe(r)-1;r&=~(1<<l),n+=1;var i=32-Oe(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Ve=1<<32-Oe(t)+l|n<<l|r,We=i+e}else Ve=1<<i|n<<l|r,We=e}function xo(e){e.return!==null&&(Et(e,1),_s(e,1,0))}function Po(e){for(;e===Jr;)Jr=Qt[--Kt],Qt[Kt]=null,qr=Qt[--Kt],Qt[Kt]=null;for(;e===Tt;)Tt=Ee[--Ce],Ee[Ce]=null,We=Ee[--Ce],Ee[Ce]=null,Ve=Ee[--Ce],Ee[Ce]=null}var ge=null,ye=null,U=!1,Re=null;function Ns(e,t){var n=xe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
|
||
|
|
Error generating stack: `+i.message+`
|
||
|
|
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function ti(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ui(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ud=typeof WeakMap=="function"?WeakMap:Map;function ec(e,t,n){n=He(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ol||(ol=!0,Xi=r),Ui(e,t)},n}function tc(e,t,n){n=He(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ui(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ui(e,t),typeof r!="function"&&(ft===null?ft=new Set([this]):ft.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ud;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=qd.bind(null,e,t,n),t.then(e,e))}function Yu(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 Xu(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=He(-1,1),t.tag=2,ct(n,t,1))),n.lanes|=1),e)}var $d=Ge.ReactCurrentOwner,fe=!1;function oe(e,t,n,r){t.child=e===null?Ts(t,null,n,r):on(t,e.child,n,r)}function Gu(e,t,n,r,l){n=n.render;var i=t.ref;return en(t,l),r=Do(e,t,n,r,i,l),n=Fo(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(U&&n&&xo(t),t.flags|=1,oe(e,t,r,l),t.child)}function Zu(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Yo(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,nc(e,t,i,r,l)):(e=$r(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Kn,n(o,r)&&e.ref===t.ref)return Xe(e,t,l)}return t.flags|=1,e=pt(i,r),e.ref=t.ref,e.return=t,t.child=e}function nc(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Kn(i,r)&&e.ref===t.ref)if(fe=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(fe=!0);else return t.lanes=e.lanes,Xe(e,t,l)}return $i(e,t,n,r,l)}function rc(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},j(Gt,ve),ve|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,j(Gt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,j(Gt,ve),ve|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,j(Gt,ve),ve|=r;return oe(e,t,l,n),t.child}function lc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $i(e,t,n,r,l){var i=pe(n)?zt:ie.current;return i=rn(t,i),en(t,l),n=Do(e,t,n,r,i,l),r=Fo(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(U&&r&&xo(t),t.flags|=1,oe(e,t,n,l),t.child)}function Ju(e,t,n,r,l){if(pe(n)){var i=!0;Zr(t)}else i=!1;if(en(t,l),t.stateNode===null)Dr(e,t),bs(t,n,r),Fi(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var a=o.context,s=n.contextType;typeof s=="object"&&s!==null?s=_e(s):(s=pe(n)?zt:ie.current,s=rn(t,s));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||a!==s)&&Qu(t,o,r,s),et=!1;var m=t.memoizedState;o.state=m,tl(t,r,o,l),a=t.memoizedState,u!==r||m!==a||de.current||et?(typeof h=="function"&&(Di(t,n,h,r),a=t.memoizedState),(u=et||Hu(t,n,u,r,m,a,s))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.compon
|
||
|
|
* @remix-run/router v1.23.0
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function nr(){return nr=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},nr.apply(this,arguments)}var it;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(it||(it={}));const ca="popstate";function cp(e){e===void 0&&(e={});function t(r,l){let{pathname:i,search:o,hash:u}=r.location;return qi("",{pathname:i,search:o,hash:u},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:cl(l)}return dp(t,n,null,e)}function V(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fp(){return Math.random().toString(36).substr(2,8)}function fa(e,t){return{usr:e.state,key:e.key,idx:t}}function qi(e,t,n,r){return n===void 0&&(n=null),nr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hn(t):t,{state:n,key:t&&t.key||r||fp()})}function cl(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 hn(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 dp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=it.Pop,a=null,s=h();s==null&&(s=0,o.replaceState(nr({},o.state,{idx:s}),""));function h(){return(o.state||{idx:null}).idx}function p(){u=it.Pop;let C=h(),f=C==null?null:C-s;s=C,a&&a({action:u,location:w.location,delta:f})}function m(C,f){u=it.Push;let c=qi(w.location,C,f);s=h()+1;let d=fa(c,s),v=w.createHref(c);try{o.pushState(d,"",v)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(v)}i&&a&&a({action:u,location:w.location,delta:1})}function g(C,f){u=it.Replace;let c=qi(w.location,C,f);s=h();let d=fa(c,s),v=w.createHref(c);o.replaceState(d,"",v),i&&a&&a({action:u,location:w.location,delta:0})}function y(C){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof C=="string"?C:cl(C);return c=c.replace(/ $/,"%20"),V(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let w={get action(){return u},get location(){return e(l,o)},listen(C){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(ca,p),a=C,()=>{l.removeEventListener(ca,p),a=null}},createHref(C){return t(l,C)},createURL:y,encodeLocation(C){let f=y(C);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:g,go(C){return o.go(C)}};return w}var da;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(da||(da={}));function pp(e,t,n){return n===void 0&&(n="/"),hp(e,t,n)}function hp(e,t,n,r){let l=typeof t=="string"?hn(t):t,i=cn(l.pathname||"/",n);if(i==null)return null;let o=zc(e);mp(o);let u=null;for(let a=0;u==null&&a<o.length;++a){let s=_p(i);u=xp(o[a],s)}return u}function zc(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(i,o,u)=>{let a={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(V(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let s=ht([r,a.relativePath]),h=n.concat(a);i.children&&i.children.length>0&&(V(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),zc(i.children,t,h,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:Ep(s,i.index),routesMeta:h})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let a of Tc(i.path))l(i,o,a)}),t}function Tc(e){let t=e.split("/");if(t.length===0)
|
||
|
|
* React Router v6.30.1
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function rr(){return rr=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},rr.apply(this,arguments)}const Nl=k.createContext(null),Oc=k.createContext(null),Ze=k.createContext(null),Ll=k.createContext(null),Je=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Mc=k.createContext(null);function jp(e,t){let{relative:n}=t===void 0?{}:t;mn()||V(!1);let{basename:r,navigator:l}=k.useContext(Ze),{hash:i,pathname:o,search:u}=zl(e,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:ht([r,o])),l.createHref({pathname:a,search:u,hash:i})}function mn(){return k.useContext(Ll)!=null}function Dt(){return mn()||V(!1),k.useContext(Ll).location}function Ic(e){k.useContext(Ze).static||k.useLayoutEffect(e)}function eu(){let{isDataRoute:e}=k.useContext(Je);return e?Xp():Dp()}function Dp(){mn()||V(!1);let e=k.useContext(Nl),{basename:t,future:n,navigator:r}=k.useContext(Ze),{matches:l}=k.useContext(Je),{pathname:i}=Dt(),o=JSON.stringify(qo(l,n.v7_relativeSplatPath)),u=k.useRef(!1);return Ic(()=>{u.current=!0}),k.useCallback(function(s,h){if(h===void 0&&(h={}),!u.current)return;if(typeof s=="number"){r.go(s);return}let p=bo(s,JSON.parse(o),i,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ht([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,o,i,e])}function vh(){let{matches:e}=k.useContext(Je),t=e[e.length-1];return t?t.params:{}}function zl(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(Ze),{matches:l}=k.useContext(Je),{pathname:i}=Dt(),o=JSON.stringify(qo(l,r.v7_relativeSplatPath));return k.useMemo(()=>bo(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Fp(e,t){return Up(e,t)}function Up(e,t,n,r){mn()||V(!1);let{navigator:l}=k.useContext(Ze),{matches:i}=k.useContext(Je),o=i[i.length-1],u=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let s=Dt(),h;if(t){var p;let C=typeof t=="string"?hn(t):t;a==="/"||(p=C.pathname)!=null&&p.startsWith(a)||V(!1),h=C}else h=s;let m=h.pathname||"/",g=m;if(a!=="/"){let C=a.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=pp(e,{pathname:g}),w=Wp(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:ht([a,l.encodeLocation?l.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?a:ht([a,l.encodeLocation?l.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&w?k.createElement(Ll.Provider,{value:{location:rr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:it.Pop}},w):w}function $p(){let e=Yp(),t=Mp(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,null)}const Bp=k.createElement($p,null);class Ap extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(Je.Provider,{value:this.props.routeContext},k.createElement(Mc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Vp(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(Nl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.c
|
||
|
|
* React Router DOM v6.30.1
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function fl(){return fl=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},fl.apply(this,arguments)}function Uc(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i<r.length;i++)l=r[i],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function bp(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eh(e,t){return e.button===0&&(!t||t==="_self")&&!bp(e)}function to(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function th(e,t){let n=to(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(i=>{n.append(l,i)})}),n}const nh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rh=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],lh="6";try{window.__reactRouterVersion=lh}catch{}const ih=k.createContext({isTransitioning:!1}),oh="startTransition",ma=rf[oh];function wh(e){let{basename:t,children:n,future:r,window:l}=e,i=k.useRef();i.current==null&&(i.current=cp({window:l,v5Compat:!0}));let o=i.current,[u,a]=k.useState({action:o.action,location:o.location}),{v7_startTransition:s}=r||{},h=k.useCallback(p=>{s&&ma?ma(()=>a(p)):a(p)},[a,s]);return k.useLayoutEffect(()=>o.listen(h),[o,h]),k.useEffect(()=>Zp(r),[r]),k.createElement(qp,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const uh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ah=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sh=k.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:u,target:a,to:s,preventScrollReset:h,viewTransition:p}=t,m=Uc(t,nh),{basename:g}=k.useContext(Ze),y,w=!1;if(typeof s=="string"&&ah.test(s)&&(y=s,uh))try{let d=new URL(window.location.href),v=s.startsWith("//")?new URL(d.protocol+s):new URL(s),E=cn(v.pathname,g);v.origin===d.origin&&E!=null?s=E+v.search+v.hash:w=!0}catch{}let C=jp(s,{relative:l}),f=fh(s,{replace:o,state:u,target:a,preventScrollReset:h,relative:l,viewTransition:p});function c(d){r&&r(d),d.defaultPrevented||f(d)}return k.createElement("a",fl({},m,{href:y||C,onClick:w||i?r:c,ref:n,target:a}))}),Sh=k.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:u,to:a,viewTransition:s,children:h}=t,p=Uc(t,rh),m=zl(a,{relative:p.relative}),g=Dt(),y=k.useContext(Oc),{navigator:w,basename:C}=k.useContext(Ze),f=y!=null&&dh(m)&&s===!0,c=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,d=g.pathname,v=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;l||(d=d.toLowerCase(),v=v?v.toLowerCase():null,c=c.toLowerCase()),v&&C&&(v=cn(v,C)||v);const E=c!=="/"&&c.endsWith("/")?c.length-1:c.length;let _=d===c||!o&&d.startsWith(c)&&d.charAt(E)==="/",N=v!=null&&(v===c||!o&&v.startsWith(c)&&v.charAt(c.length)==="/"),L={isActive:_,isPending:N,isTransitioning:f},$=_?r:void 0,T;typeof i=="function"?T=i(L):T=[i,_?"active":null,N?"pending":null,f?"transitioning":null].filter(Boolean).join(" ");let me=typeof u=="function"?u(L):u;return k.createElement(sh,fl({},p,{"aria-current":$,className:T,ref:n,style:me,to:a,viewTransition:s}),typeof h=="function"?h(L):h)});var no;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(no||(no={}));var va;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(va||(va={}));function ch(e){let t=k.useContext(Nl);return t||V(!1),t}function fh(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:u}=t===void 0?{}:t,a=eu(),s=Dt(),h=zl(e,{relative:o});return k.useCallback(p=>{if(eh(p,n)){p.preventDefault();let m=
|