/*! For license information please see index.js.LICENSE.txt */ define(["plesk-ui-library"],e=>(()=>{var t={51(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(6241),i=r(3744),a=r(7369),o=r(3685),l=r(9251);function c(e,t,r,n=new Map,u=void 0){const f=u?.(e,t,r,n);if(void 0!==f)return f;if(o.isPrimitive(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const t=new Array(e.length);n.set(e,t);for(let i=0;iString(e));const l=(e,t)=>{let r=e;for(let e=0;e(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||i.isKey(e)?e:{key:e,path:a.toPath(e)}));return e.map(e=>({original:e,criteria:c.map(t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:l(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?l(t,e):"object"==typeof t?t[e]:t)(t,e))})).slice().sort((e,t)=>{for(let i=0;ie.original)}},161(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(6458);t.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&n.isLength(e.length)}},253(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2280),i={};for(const e in n)"default"!==e&&(i[e]=()=>n[e]);r.d(t,i);const a=n},314(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isUnsafeProperty=function(e){return"__proto__"===e}},320(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for;r&&Symbol.for("react.element"),r&&Symbol.for("react.portal"),r&&Symbol.for("react.fragment"),r&&Symbol.for("react.strict_mode"),r&&Symbol.for("react.profiler"),r&&Symbol.for("react.provider"),r&&Symbol.for("react.context"),r&&Symbol.for("react.async_mode"),r&&Symbol.for("react.concurrent_mode"),r&&Symbol.for("react.forward_ref"),r&&Symbol.for("react.suspense"),r&&Symbol.for("react.suspense_list"),r&&Symbol.for("react.memo"),r&&Symbol.for("react.lazy"),r&&Symbol.for("react.block"),r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope")},446(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}},524(e,t,r){"use strict";r(320)},798(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.flatten=function(e,t=1){const r=[],n=Math.floor(t),i=(e,t)=>{for(let a=0;a0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},965(e,t,r){e.exports=r(2021).range},1077(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.identity=function(e){return e}},1291(e,t,r){e.exports=r(4904).isPlainObject},1321(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(2001),i=r.n(n),a=r(935),o=r.n(a)()(i());o.push([e.id,"/* Copyright 1999-2024. WebPros International GmbH. All rights reserved. */\n\n.watchdog-monit-status-readonly {\n margin: 8px;\n}\n\n.watchdog-service-properties-timeout {\n margin-bottom: 15px;\n}\n\n.watchdog-usage-chart {\n width: 100%;\n height: 300px;\n}\n","",{version:3,sources:["webpack://./index.css"],names:[],mappings:"AAAA,0EAA0E;;AAE1E;IACI,WAAW;AACf;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,WAAW;IACX,aAAa;AACjB",sourcesContent:["/* Copyright 1999-2024. WebPros International GmbH. All rights reserved. */\n\n.watchdog-monit-status-readonly {\n margin: 8px;\n}\n\n.watchdog-service-properties-timeout {\n margin-bottom: 15px;\n}\n\n.watchdog-usage-chart {\n width: 100%;\n height: 300px;\n}\n"],sourceRoot:""}]);const l=o},1435(e,t,r){"use strict";var n=r(253),i=r(8139),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,l=n.useRef,c=n.useEffect,s=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=s(function(){function e(e){if(!c){if(c=!0,o=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,l=r)}var o,l,c=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,n,i]);var p=o(e,f[0],f[1]);return c(function(){d.hasValue=!0,d.value=p},[p]),u(p),p}},1732(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toArray=function(e){return Array.isArray(e)?e:Array.from(e)}},1740(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1843(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},2001(e){"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),a="/*# ".concat(i," */");return[t].concat([a]).join("\n")}return[t].join("\n")}},2021(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(6053),i=r(2270);t.range=function(e,t,r){r&&"number"!=typeof r&&n.isIterateeCall(e,t,r)&&(t=r=void 0),e=i.toFinite(e),void 0===t?(t=e,e=0):t=i.toFinite(t),r=void 0===r?en.isMatch(t,e)}},2591(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n{const c=t?.(r,a,o,l);if(void 0!==c)return c;if("object"==typeof e)switch(Object.prototype.toString.call(e)){case i.numberTag:case i.stringTag:case i.booleanTag:{const t=new e.constructor(e?.valueOf());return n.copyProperties(t,e),t}case i.argumentsTag:{const t={};return n.copyProperties(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}})}},3656(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3685(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}},3744(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}},3810(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7294);t.isMatch=function(e,t){return n.isMatchWith(e,t,()=>{})}},4047(e,t,r){"use strict";var n=r(253);"function"==typeof Object.is&&Object.is,n.useSyncExternalStore,n.useRef,n.useEffect,n.useMemo,n.useDebugValue},4206(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.last=function(e){return e[e.length-1]}},4271(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7200);t.debounce=function(e,t=0,r={}){"object"!=typeof r&&(r={});const{leading:i=!1,trailing:a=!0,maxWait:o}=r,l=Array(2);let c;i&&(l[0]="leading"),a&&(l[1]="trailing");let s=null;const u=n.debounce(function(...t){c=e.apply(this,t),s=null},t,{edges:l}),f=function(...t){return null!=o&&(null===s&&(s=Date.now()),Date.now()-s>=o)?(c=e.apply(this,t),s=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return f.cancel=u.cancel,f.flush=()=>(u.flush(),c),f}},4476(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3810),i=r(446),a=r(5882),o=r(8881),l=r(8989);t.matchesProperty=function(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=i.toKey(e)}return t=a.cloneDeep(t),function(r){const i=o.get(r,e);return void 0===i?l.has(r,e):void 0===t?void 0===i:n.isMatch(i,t)}}},4647(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7058),i=r(1077),a=r(3566),o=r(5469);t.uniqBy=function(e,t=i.identity){return a.isArrayLikeObject(e)?n.uniqBy(Array.from(e),o.iteratee(t)):[]}},4737(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(5187),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.isKey=function(e,t){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!n.isSymbol(e))||"string"==typeof e&&(a.test(e)||!i.test(e))||null!=t&&Object.hasOwn(t,e))}},4904(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPlainObject=function(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},5187(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}},5448(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(4271);t.throttle=function(e,t=0,r={}){const{leading:i=!0,trailing:a=!0}=r;return n.debounce(e,t,{leading:i,maxWait:t,trailing:a})}},5469(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(1077),i=r(5844),a=r(2422),o=r(4476);t.iteratee=function(e){if(null==e)return n.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?o.matchesProperty(e[0],e[1]):a.matches(e);case"string":case"symbol":case"number":return i.property(e)}}},5566(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3380),i=r(446);t.toPath=function(e){if(Array.isArray(e))return e.map(i.toKey);if("symbol"==typeof e)return[e];const t=[],r=(e=n.toString(e)).length;if(0===r)return t;let a=0,o="",l="",c=!1;for(46===e.charCodeAt(0)&&(t.push(""),a++);a1&&a.isIterateeCall(e,t[0],t[1])?t=[]:r>2&&a.isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),n.orderBy(e,i.flatten(t),["asc"])}},5882(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3638);t.cloneDeep=function(e){return n.cloneDeepWith(e)}},5891(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3744);t.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===n.getTag(e)}},5919(e,t,r){"use strict";r(4047)},6047(e,t){"use strict";function r(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.compareValues=(e,t,n)=>{if(e!==t){const i=r(e),a=r(t);if(i===a&&0===i){if(et)return"desc"===n?-1:1}return"desc"===n?a-i:i-a}return 0}},6053(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(8838),i=r(161),a=r(7964),o=r(5722);t.isIterateeCall=function(e,t,r){return!!a.isObject(r)&&!!("number"==typeof t&&i.isArrayLike(r)&&n.isIndex(t)&&tObject.prototype.propertyIsEnumerable.call(e,t))}},6458(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}},6848(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6999(e,t,r){"use strict";var n=r(6848);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={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:a,resetWarningCache:i};return r.PropTypes=r,r}},7058(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.uniqBy=function(e,t){const r=new Map;for(let n=0;n{null!==a&&(e.apply(i,a),i=void 0,a=null)};let s=null;const u=()=>{null!=s&&clearTimeout(s),s=setTimeout(()=>{s=null,l&&c(),f()},t)},f=()=>{null!==s&&(clearTimeout(s),s=null),i=void 0,a=null},d=function(...e){if(r?.aborted)return;i=this,a=e;const t=null==s;u(),o&&t&&c()};return d.schedule=u,d.cancel=f,d.flush=()=>{c()},r?.addEventListener("abort",f,{once:!0}),d}},7294(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7964),i=r(3685),a=r(5722);function o(e,t,r,s){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,r,n){if(null==t)return!0;if(Array.isArray(t))return l(e,t,r,n);if(t instanceof Map)return function(e,t,r,n){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries())if(!1===r(e.get(i),a,i,e,t,n))return!1;return!0}(e,t,r,n);if(t instanceof Set)return c(e,t,r,n);const a=Object.keys(t);if(null==e||i.isPrimitive(e))return 0===a.length;if(0===a.length)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let o=0;o0?o(e,{...t},r,s):a.eq(e,t);default:return n.isObject(e)?"string"!=typeof t||""===t:a.eq(e,t)}}function l(e,t,r,n){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a{}):o(t,r,function e(t,r,i,a,l,c){const s=n(t,r,i,a,l,c);return void 0!==s?Boolean(s):o(t,r,e,c)},new Map)},t.isSetMatch=c},7369(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.argumentsTag="[object Arguments]",t.arrayBufferTag="[object ArrayBuffer]",t.arrayTag="[object Array]",t.bigInt64ArrayTag="[object BigInt64Array]",t.bigUint64ArrayTag="[object BigUint64Array]",t.booleanTag="[object Boolean]",t.dataViewTag="[object DataView]",t.dateTag="[object Date]",t.errorTag="[object Error]",t.float32ArrayTag="[object Float32Array]",t.float64ArrayTag="[object Float64Array]",t.functionTag="[object Function]",t.int16ArrayTag="[object Int16Array]",t.int32ArrayTag="[object Int32Array]",t.int8ArrayTag="[object Int8Array]",t.mapTag="[object Map]",t.numberTag="[object Number]",t.objectTag="[object Object]",t.regexpTag="[object RegExp]",t.setTag="[object Set]",t.stringTag="[object String]",t.symbolTag="[object Symbol]",t.uint16ArrayTag="[object Uint16Array]",t.uint32ArrayTag="[object Uint32Array]",t.uint8ArrayTag="[object Uint8Array]",t.uint8ClampedArrayTag="[object Uint8ClampedArray]"},7723(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(51);t.cloneDeep=function(e){return n.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}},7760(e,t,r){var n;!function(){"use strict";var i,a=1e9,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",s=c+"Invalid argument: ",u=c+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,m=f(1286742750677284.5),y={};function v(e,t){var r,n,i,a,o,c,s,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),l?A(t,d):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i){for(a<0?(n=s,a=-a,c=u.length):(n=u,i=o,c=s.length),a>(c=(o=Math.ceil(d/7))>c?o+1:c+1)&&(a=c,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((c=s.length)-(a=u.length)<0&&(a=c,n=u,u=s,s=n),r=0;a;)r=(s[--a]=s[a]+u[a]+r)/h|0,s[a]%=h;for(r&&(s.unshift(r),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,l?A(t,d):t}function g(e,t,r){if(e!==~~e||er)throw Error(s+e)}function b(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;te.e^a.s<0?1:-1;for(t=0,r=(n=a.d.length)<(i=e.d.length)?n:i;te.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},y.dividedBy=y.div=function(e){return w(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return A(w(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return this.cmp(e)<0},y.lessThanOrEqualTo=y.lte=function(e){return this.cmp(e)<1},y.logarithm=y.log=function(e){var t,r=this,n=r.constructor,a=n.precision,o=a+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(i))throw Error(c+"NaN");if(r.s<1)throw Error(c+(r.s?"NaN":"-Infinity"));return r.eq(i)?new n(0):(l=!1,t=w(P(r,o),P(e,o),o),l=!0,A(t,a))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k(t,e):v(t,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(c+"NaN");return r.s?(l=!1,t=w(r,e,0,1).times(e),l=!0,r.minus(t)):A(new n(r),i)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return P(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v(t,e):k(t,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(s+e);if(t=O(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},y.squareRoot=y.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(c+"NaN")}for(e=O(s),l=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=b(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),n=new u(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new u(i.toString()),i=o=(r=u.precision)+3;;)if(n=(a=n).plus(w(s,a,o+2)).times(.5),b(a.d).slice(0,o)===(t=b(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&"4999"==t){if(A(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if("9999"!=t)break;o+=4}return l=!0,A(n,r)},y.times=y.mul=function(e){var t,r,n,i,a,o,c,s,u,f=this,d=f.constructor,p=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,r=f.e+e.e,(s=p.length)<(u=m.length)&&(a=p,p=m,m=a,o=s,s=u,u=o),a=[],n=o=s+u;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=s+n;i>n;)c=a[i]+m[n]*p[i-n-1]+t,a[i--]=c%h|0,t=c/h|0;a[i]=(a[i]+t)%h|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,l?A(e,d.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(g(e,0,a),void 0===t?t=n.rounding:g(t,0,8),A(r,e+O(r)+1,t))},y.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=T(n,!0):(g(e,0,a),void 0===t?t=i.rounding:g(t,0,8),r=T(n=A(new i(n),e+1,t),!0,e+1)),r},y.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?T(i):(g(e,0,a),void 0===t?t=o.rounding:g(t,0,8),r=T((n=A(new o(i),e+O(i)+1,t)).abs(),!1,e+O(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var e=this,t=e.constructor;return A(new t(e),O(e)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,r,n,a,o,s,u=this,d=u.constructor,p=+(e=new d(e));if(!e.s)return new d(i);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(i))return u;if(n=d.precision,e.eq(i))return A(u,n);if(s=(t=e.e)>=(r=e.d.length-1),o=u.s,s){if((r=p<0?-p:p)<=9007199254740991){for(a=new d(i),t=Math.ceil(n/7+4),l=!1;r%2&&C((a=a.times(u)).d,t),0!==(r=f(r/2));)C((u=u.times(u)).d,t);return l=!0,e.s<0?new d(i).div(a):A(a,n)}}else if(o<0)throw Error(c+"NaN");return o=o<0&&1&e.d[Math.max(t,r)]?-1:1,u.s=1,l=!1,a=e.times(P(u,n+12)),l=!0,(a=x(a)).s=o,a},y.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=T(i,(r=O(i))<=o.toExpNeg||r>=o.toExpPos):(g(e,1,a),void 0===t?t=o.rounding:g(t,0,8),n=T(i=A(new o(i),e,t),e<=(r=O(i))||r<=o.toExpNeg,e)),n},y.toSignificantDigits=y.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(g(e,1,a),void 0===t?t=r.rounding:g(t,0,8)),A(new r(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=O(e),r=e.constructor;return T(e,t<=r.toExpNeg||t>=r.toExpPos)};var w=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%h|0,n=r/h|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]1;)e.shift()}return function(n,i,a,o){var l,s,u,f,d,p,m,y,v,g,b,w,x,E,S,P,j,k,T=n.constructor,C=n.s==i.s?1:-1,M=n.d,_=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(c+"Division by zero");for(s=n.e-i.e,j=_.length,S=M.length,y=(m=new T(C)).d=[],u=0;_[u]==(M[u]||0);)++u;if(_[u]>(M[u]||0)&&--s,(w=null==a?a=T.precision:o?a+(O(n)-O(i))+1:a)<0)return new T(0);if(w=w/7+2|0,u=0,1==j)for(f=0,_=_[0],w++;(u1&&(_=e(_,f),M=e(M,f),j=_.length,S=M.length),E=j,g=(v=M.slice(0,j)).length;g=h/2&&++P;do{f=0,(l=t(_,v,j,g))<0?(b=v[0],j!=g&&(b=b*h+(v[1]||0)),(f=b/P|0)>1?(f>=h&&(f=h-1),1==(l=t(d=e(_,f),v,p=d.length,g=v.length))&&(f--,r(d,j16)throw Error(u+O(e));if(!e.s)return new p(i);for(null==t?(l=!1,c=h):c=t,o=new p(.03125);e.abs().gte(.1);)e=e.times(o),f+=5;for(c+=Math.log(d(2,f))/Math.LN10*2+5|0,r=n=a=new p(i),p.precision=c;;){if(n=A(n.times(e),c),r=r.times(++s),b((o=a.plus(w(n,r,c))).d).slice(0,c)===b(a.d).slice(0,c)){for(;f--;)a=A(a.times(a),c);return p.precision=h,null==t?(l=!0,A(a,h)):a}a=o}}function O(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function E(e,t,r){if(t>e.LN10.sd())throw l=!0,r&&(e.precision=r),Error(c+"LN10 precision limit exceeded");return A(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function P(e,t){var r,n,a,o,s,u,f,d,p,h=1,m=e,y=m.d,v=m.constructor,g=v.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new v(0);if(null==t?(l=!1,d=g):d=t,m.eq(10))return null==t&&(l=!0),E(v,d);if(d+=10,v.precision=d,n=(r=b(y)).charAt(0),o=O(m),!(Math.abs(o)<15e14))return f=E(v,d+2,g).times(o+""),m=P(new v(n+"."+r.slice(1)),d-10).plus(f),v.precision=g,null==t?(l=!0,A(m,g)):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=b((m=m.times(e)).d)).charAt(0),h++;for(o=O(m),n>1?(m=new v("0."+r),o++):m=new v(n+"."+r.slice(1)),u=s=m=w(m.minus(i),m.plus(i),d),p=A(m.times(m),d),a=3;;){if(s=A(s.times(p),d),b((f=u.plus(w(s,new v(a),d))).d).slice(0,d)===b(u.d).slice(0,d))return u=u.times(2),0!==o&&(u=u.plus(E(v,d+2,g).times(o+""))),u=w(u,new v(h),d),v.precision=g,null==t?(l=!0,A(u,g)):u;u=f,a+=2}}function j(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r=r-n-1,e.e=f(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),nm||e.e<-m))throw Error(u+r)}else e.s=0,e.e=0,e.d=[0];return e}function A(e,t,r){var n,i,a,o,c,s,p,y,v=e.d;for(o=1,a=v[0];a>=10;a/=10)o++;if((n=t-o)<0)n+=7,i=t,p=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(a=v.length))return e;for(p=a=v[y],o=1;a>=10;a/=10)o++;i=(n%=7)-7+o}if(void 0!==r&&(c=p/(a=d(10,o-i-1))%10|0,s=t<0||void 0!==v[y+1]||p%a,s=r<4?(c||s)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||s||6==r&&(n>0?i>0?p/d(10,o-i):0:v[y-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return s?(a=O(e),v.length=1,t=t-a-1,v[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==n?(v.length=y,a=1,y--):(v.length=y+1,a=d(10,7-n),v[y]=i>0?(p/d(10,o-i)%d(10,i)|0)*a:0),s)for(;;){if(0==y){(v[0]+=a)==h&&(v[0]=1,++e.e);break}if(v[y]+=a,v[y]!=h)break;v[y--]=0,a=1}for(n=v.length;0===v[--n];)v.pop();if(l&&(e.e>m||e.e<-m))throw Error(u+O(e));return e}function k(e,t){var r,n,i,a,o,c,s,u,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),l?A(t,m):t;if(s=e.d,d=t.d,n=t.e,u=e.e,s=s.slice(),o=u-n){for((f=o<0)?(r=s,o=-o,c=d.length):(r=d,n=u,c=s.length),o>(i=Math.max(Math.ceil(m/7),c)+2)&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for((f=(i=s.length)<(c=d.length))&&(c=i),i=0;i0;--i)s[c++]=0;for(i=d.length;i>o;){if(s[--i]0?a=a.charAt(0)+"."+a.slice(1)+S(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+S(-i-1)+a,r&&(n=r-o)>0&&(a+=S(n))):i>=o?(a+=S(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+S(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=S(n))),e.s<0?"-"+a:a}function C(e,t){if(e.length>t)return e.length=t,!0}function M(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=i[t+1]&&n<=i[t+2]))throw Error(s+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(s+r+": "+n);this[r]=new this(n)}return this}(o=function e(t){var r,n,i;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(s+e);j(t,e)}if(a.prototype=y,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=M,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r=0&&e{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var i={};return(()=>{"use strict";n.r(i),n.d(i,{default:()=>_C});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>hr,hasStandardBrowserEnv:()=>yr,hasStandardBrowserWebWorkerEnv:()=>vr,navigator:()=>mr,origin:()=>gr});var t={};n.r(t),n.d(t,{scaleBand:()=>Vs,scaleDiverging:()=>Nh,scaleDivergingLog:()=>Lh,scaleDivergingPow:()=>zh,scaleDivergingSqrt:()=>Bh,scaleDivergingSymlog:()=>Fh,scaleIdentity:()=>Df,scaleImplicit:()=>Hs,scaleLinear:()=>_f,scaleLog:()=>$f,scaleOrdinal:()=>Ks,scalePoint:()=>Gs,scalePow:()=>Zf,scaleQuantile:()=>ld,scaleQuantize:()=>cd,scaleRadial:()=>ed,scaleSequential:()=>Th,scaleSequentialLog:()=>Ch,scaleSequentialPow:()=>_h,scaleSequentialQuantile:()=>Rh,scaleSequentialSqrt:()=>Dh,scaleSequentialSymlog:()=>Mh,scaleSqrt:()=>Jf,scaleSymlog:()=>Kf,scaleThreshold:()=>sd,scaleTime:()=>Ph,scaleUtc:()=>jh,tickFormat:()=>Cf});var r=n(253),a=n(9067),o=n.n(a),l=n(2280);const c=(0,r.createContext)({baseUrl:!1,monitoringStatus:!1,setMonitoringStatus:()=>{},pollInterval:null,setPollInterval:()=>{}}),s=()=>(0,r.useContext)(c),u=(0,r.createContext)({addSuccess:e=>{},addError:e=>{},clear:()=>{}}),f=({children:e})=>{const t=(0,r.useRef)(),n=(0,r.useMemo)(()=>({addSuccess:e=>t.current.add({intent:"success",autoClosable:!0,message:e}),addError:e=>t.current.add({intent:"danger",message:e}),clear:()=>t.current.clear()}),[t]);return r.default.createElement(u.Provider,{value:n},e,r.default.createElement(l.Toaster,{ref:t}))};f.propTypes={children:o().element.isRequired};const d=()=>(0,r.useContext)(u);var p="popstate";function h(e={}){return function(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,l="POP",c=null,s=u();function u(){return(o.state||{idx:null}).idx}function f(){l="POP";let e=u(),t=null==e?null:e-s;s=e,c&&c({action:l,location:h.location,delta:t})}function d(e){return function(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),m(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:b(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==s&&(s=0,o.replaceState({...o.state,idx:s},""));let h={get action(){return l},get location(){return e(i,o)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(p,f),c=e,()=>{i.removeEventListener(p,f),c=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let n=g(h.location,e,t);r&&r(n,e),s=u()+1;let f=v(n,s),d=h.createHref(n);try{o.pushState(f,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(d)}a&&c&&c({action:l,location:h.location,delta:1})},replace:function(e,t){l="REPLACE";let n=g(h.location,e,t);r&&r(n,e),s=u();let i=v(n,s),f=h.createHref(n);o.replaceState(i,"",f),a&&c&&c({action:l,location:h.location,delta:0})},go:e=>o.go(e)};return h}(function(e,t){let{pathname:r,search:n,hash:i}=e.location;return g("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:b(t)},null,e)}function m(e,t){if(!1===e||null==e)throw new Error(t)}function y(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function g(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?w(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function b({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function w(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function x(e,t,r="/"){return function(e,t,r,n){let i=I(("string"==typeof t?w(t):t).pathname||"/",r);if(null==i)return null;let a=O(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let o=null;for(let e=0;null==o&&e{let c={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&o)return;m(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let s=U([n,c.relativePath]),u=r.concat(c);e.children&&e.children.length>0&&(m(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),O(e.children,t,u,s,o)),(null!=e.path||e.index)&&t.push({path:s,score:M(s,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of E(e.path))a(e,t,!0,r);else a(e,t)}),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return i?[a,""]:[a];let o=E(n.join("/")),l=[];return l.push(...o.map(e=>""===e?a:[a,e].join("/"))),i&&l.push(...o),l.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var S=/^:[\w-]+$/,P=3,j=2,A=1,k=10,T=-2,C=e=>"*"===e;function M(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=T),t&&(n+=j),r.filter(e=>!C(e)).reduce((e,t)=>e+(S.test(t)?P:""===t?A:k),n)}function _(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",o=[];for(let e=0;e(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1),c=n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=l[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const i=l[n];return e[t]=r&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{});return{params:c,pathname:a,pathnameBase:o,pattern:e}}function R(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return y(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function L(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function F(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function z(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function B(e,t,r,n=!1){let i;"string"==typeof e?i=w(e):(i={...e},m(!i.pathname||!i.pathname.includes("?"),F("?","pathname","search",i)),m(!i.pathname||!i.pathname.includes("#"),F("#","pathname","hash",i)),m(!i.search||!i.search.includes("#"),F("#","search","hash",i)));let a,o=""===e||""===i.pathname,l=o?"/":i.pathname;if(null==l)a=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t="/"){let r,{pathname:n,search:i="",hash:a=""}="string"==typeof e?w(e):e;if(n)if(o=n,N.test(o))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),y(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${n}`)}r=n.startsWith("/")?L(n.substring(1),"/"):L(n,t)}else r=t;var o;return{pathname:r,search:q(i),hash:W(a)}}(i,a),s=l&&"/"!==l&&l.endsWith("/"),u=(o||"."===l)&&r.endsWith("/");return c.pathname.endsWith("/")||!s&&!u||(c.pathname+="/"),c}var U=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",H=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function V(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function G(e,t){let r=e;if("string"!=typeof r||!N.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(Y)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),a=I(n.pathname,t);n.origin===e.origin&&null!=a?r=a+n.search+n.hash:i=!0}catch(e){y(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var X=["POST","PUT","PATCH","DELETE"],Z=(new Set(X),["GET",...X]);new Set(Z),Symbol("ResetLoaderData");var J=r.createContext(null);J.displayName="DataRouter";var Q=r.createContext(null);Q.displayName="DataRouterState";var ee=r.createContext(!1);var te=r.createContext({isTransitioning:!1});te.displayName="ViewTransition",r.createContext(new Map).displayName="Fetchers",r.createContext(null).displayName="Await";var re=r.createContext(null);re.displayName="Navigation";var ne=r.createContext(null);ne.displayName="Location";var ie=r.createContext({outlet:null,matches:[],isDataRoute:!1});ie.displayName="Route";var ae=r.createContext(null);ae.displayName="RouteError";var oe="REACT_ROUTER_ERROR";function le(){return null!=r.useContext(ne)}function ce(){return m(le(),"useLocation() may be used only in the context of a component."),r.useContext(ne).location}var se="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ue(e){r.useContext(re).static||r.useLayoutEffect(e)}function fe(){let{isDataRoute:e}=r.useContext(ie);return e?function(){let{router:e}=function(e){let t=r.useContext(J);return m(t,xe(e)),t}("useNavigate"),t=Oe("useNavigate"),n=r.useRef(!1);ue(()=>{n.current=!0});let i=r.useCallback(async(r,i={})=>{y(n.current,se),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t]);return i}():function(){m(le(),"useNavigate() may be used only in the context of a component.");let e=r.useContext(J),{basename:t,navigator:n}=r.useContext(re),{matches:i}=r.useContext(ie),{pathname:a}=ce(),o=JSON.stringify(z(i)),l=r.useRef(!1);ue(()=>{l.current=!0});let c=r.useCallback((r,i={})=>{if(y(l.current,se),!l.current)return;if("number"==typeof r)return void n.go(r);let c=B(r,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:U([t,c.pathname])),(i.replace?n.replace:n.push)(c,i.state,i)},[t,n,o,a,e]);return c}()}var de=r.createContext(null);function pe(e,{relative:t}={}){let{matches:n}=r.useContext(ie),{pathname:i}=ce(),a=JSON.stringify(z(n));return r.useMemo(()=>B(e,JSON.parse(a),i,"path"===t),[e,a,i,t])}function he(e,t,n,i,a){m(le(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=r.useContext(re),{matches:l}=r.useContext(ie),c=l[l.length-1],s=c?c.params:{},u=c?c.pathname:"/",f=c?c.pathnameBase:"/",d=c&&c.route;{let e=d&&d.path||"";Se(u,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent to .`)}let p,h=ce();if(t){let e="string"==typeof t?w(t):t;m("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=h;let v=p.pathname||"/",g=v;if("/"!==f){let e=f.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=x(e,{pathname:g});y(d||null!=b,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),y(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let O=function(e,t=[],n=null,i=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,o=n?.errors;if(null!=o){let e=a.findIndex(e=>e.route.id&&void 0!==o?.[e.route.id]);m(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n)for(let e=0;e=0?a.slice(0,c+1):[a[0]];break}}}let s=n&&i?(e,t)=>{i(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:V(n.matches),errorInfo:t})}:void 0;return a.reduceRight((e,i,u)=>{let f,d=!1,p=null,h=null;n&&(f=o&&i.route.id?o[i.route.id]:void 0,p=i.route.errorElement||ye,l&&(c<0&&0===u?(Se("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):c===u&&(d=!0,h=i.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,u+1)),y=()=>{let t;return t=f?p:d?h:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(we,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===u)?r.createElement(ve,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:s}):y()},null)}(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:U([f,o.encodeLocation?o.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:U([f,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),l,n,i,a);return t&&O?r.createElement(ne.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},O):O}function me(){let e=function(){let e=r.useContext(ae),t=function(e){let t=r.useContext(Q);return m(t,xe(e)),t}("useRouteError"),n=Oe("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=K(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=r.createElement(r.Fragment,null,r.createElement("p",null,"💿 Hey developer 👋"),r.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",r.createElement("code",{style:o},"ErrorBoundary")," or"," ",r.createElement("code",{style:o},"errorElement")," prop on your route.")),r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,l)}var ye=r.createElement(me,null),ve=class extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${oe}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new H(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?r.createElement(ie.Provider,{value:this.props.routeContext},r.createElement(ae.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?r.createElement(be,{error:e},t):t}};ve.contextType=ee;var ge=new WeakMap;function be({children:e,error:t}){let{basename:n}=r.useContext(re);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${oe}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let i=ge.get(t);if(i)throw i;let a=G(e.location,n);if(Y&&!ge.get(t)){if(!a.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw ge.set(t,r),r}window.location.href=a.absoluteURL||a.to}return r.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function we({routeContext:e,match:t,children:n}){let i=r.useContext(J);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(ie.Provider,{value:e},n)}function xe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Oe(e){let t=function(e){let t=r.useContext(ie);return m(t,xe(e)),t}(e),n=t.matches[t.matches.length-1];return m(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Ee={};function Se(e,t,r){t||Ee[e]||(Ee[e]=!0,y(!1,r))}function Pe({to:e,replace:t,state:n,relative:i}){m(le()," may be used only in the context of a component.");let{static:a}=r.useContext(re);y(!a," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=r.useContext(ie),{pathname:l}=ce(),c=fe(),s=B(e,z(o),l,"path"===i),u=JSON.stringify(s);return r.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:i})},[c,u,i,t,n]),null}function je(e){return function(e){let t=r.useContext(ie).outlet;return r.useMemo(()=>t&&r.createElement(de.Provider,{value:e},t),[t,e])}(e.context)}function Ae(e){m(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function ke({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:a,static:o=!1,unstable_useTransitions:l}){m(!le(),"You cannot render a inside another . You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=r.useMemo(()=>({basename:c,navigator:a,static:o,unstable_useTransitions:l,future:{}}),[c,a,o,l]);"string"==typeof n&&(n=w(n));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:h="default"}=n,v=r.useMemo(()=>{let e=I(u,c);return null==e?null:{location:{pathname:e,search:f,hash:d,state:p,key:h},navigationType:i}},[c,u,f,d,p,h,i]);return y(null!=v,` is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the won't render anything.`),null==v?null:r.createElement(re.Provider,{value:s},r.createElement(ne.Provider,{children:t,value:v}))}function Te({children:e,location:t}){return he(Ce(e),t)}function Ce(e,t=[]){let n=[];return r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e))return;let a=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,Ce(e.props.children,a));m(e.type===Ae,`[${"string"==typeof e.type?e.type:e.type.name}] is not a component. All component children of must be a or `),m(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Ce(e.props.children,a)),n.push(o)}),n}r.useOptimistic,r.memo(function({routes:e,future:t,state:r,onError:n}){return he(e,void 0,r,n,t)}),r.Component;var Me="get",_e="application/x-www-form-urlencoded";function De(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Re=null,Ie=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ne(e){return null==e||Ie.has(e)?e:(y(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${_e}"`),null)}function Le(e,t){if(!1===e||null==e)throw new Error(t)}function Fe(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ze(e,t,r,n,i,a){let o=(e,t)=>!r[t]||e.route.id!==r[t].route.id,l=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>o(e,t)||l(e,t)):"data"===a?t.filter((t,a)=>{let c=n.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||l(t,a))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Be(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1),[...new Set(n)];var n}function Ue(){let e=r.useContext(J);return Le(e,"You must render this element inside a element"),e}function $e(){let e=r.useContext(Q);return Le(e,"You must render this element inside a element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var qe=r.createContext(void 0);function We(){let e=r.useContext(qe);return Le(e,"You must render this element inside a element"),e}function He(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Ke({page:e,...t}){let{router:n}=Ue(),i=r.useMemo(()=>x(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?r.createElement(Ye,{page:e,matches:i,...t}):null}function Ve(e){let{manifest:t,routeModules:n}=We(),[i,a]=r.useState([]);return r.useEffect(()=>{let r=!1;return async function(e,t,r){return function(e,t){let r=new Set,n=new Set(t);return e.reduce((e,i)=>{if(t&&!function(e){return null!=e&&"string"==typeof e.page}(i)&&"script"===i.as&&i.href&&n.has(i.href))return e;let a=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(i));return r.has(a)||(r.add(a),e.push({key:a,link:i})),e},[])}((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(Fe).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),i}function Ye({page:e,matches:t,...n}){let i=ce(),{manifest:a,routeModules:o}=We(),{basename:l}=Ue(),{loaderData:c,matches:s}=$e(),u=r.useMemo(()=>ze(e,t,s,a,i,"data"),[e,t,s,a,i]),f=r.useMemo(()=>ze(e,t,s,a,i,"assets"),[e,t,s,a,i]),d=r.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let r=new Set,n=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?n=!0:r.add(e.route.id))}),0===r.size)return[];let s=function(e,t,r){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname=`_root.${r}`:t&&"/"===I(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}(e,l,"data");return n&&r.size>0&&s.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[s.pathname+s.search]},[l,c,i,a,u,t,e,o]),p=r.useMemo(()=>Be(f,a),[f,a]),h=Ve(f);return r.createElement(r.Fragment,null,d.map(e=>r.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),p.map(e=>r.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>r.createElement("link",{key:e,nonce:n.nonce,...t})))}qe.displayName="FrameworkContext";function Ge(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}r.Component;var Xe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Xe&&(window.__reactRouterVersion="7.11.0")}catch(e){}function Ze({basename:e,children:t,unstable_useTransitions:n,window:i}){let a=r.useRef();null==a.current&&(a.current=h({window:i,v5Compat:!0}));let o=a.current,[l,c]=r.useState({action:o.action,location:o.location}),s=r.useCallback(e=>{!1===n?c(e):r.startTransition(()=>c(e))},[n]);return r.useLayoutEffect(()=>o.listen(s),[o,s]),r.createElement(ke,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:n})}var Je=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qe=r.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:i,reloadDocument:a,replace:o,state:l,target:c,to:s,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:d,...p},h){let{basename:y,unstable_useTransitions:v}=r.useContext(re),g="string"==typeof s&&Je.test(s),w=G(s,y),x=function(e,{relative:t}={}){m(le(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=r.useContext(re),{hash:a,pathname:o,search:l}=pe(e,{relative:t}),c=o;return"/"!==n&&(c="/"===o?n:U([n,o])),i.createHref({pathname:c,search:l,hash:a})}(s=w.to,{relative:i}),[O,E,S]=function(e,t){let n=r.useContext(qe),[i,a]=r.useState(!1),[o,l]=r.useState(!1),{onFocus:c,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,p=r.useRef(null);r.useEffect(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),r.useEffect(()=>{if(i){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[i]);let h=()=>{a(!0)},m=()=>{a(!1),l(!1)};return n?"intent"!==e?[o,p,{}]:[o,p,{onFocus:He(c,h),onBlur:He(s,m),onMouseEnter:He(u,h),onMouseLeave:He(f,m),onTouchStart:He(d,h)}]:[!1,p,{}]}(n,p),P=function(e,{target:t,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:s}={}){let u=fe(),f=ce(),d=pe(e,{relative:o});return r.useCallback(p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==n?n:b(f)===b(d),h=()=>u(e,{replace:t,state:i,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c});s?r.startTransition(()=>h()):h()}},[f,u,d,n,i,t,e,a,o,l,c,s])}(s,{replace:o,state:l,target:c,preventScrollReset:u,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:v}),j=r.createElement("a",{...p,...S,href:w.absoluteURL||x,onClick:w.isExternal||a?e:function(t){e&&e(t),t.defaultPrevented||P(t)},ref:Ge(h,E),target:c,"data-discover":g||"render"!==t?void 0:"true"});return O&&!g?r.createElement(r.Fragment,null,j,r.createElement(Ke,{page:x})):j});Qe.displayName="Link";var et=r.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:i=!1,style:a,to:o,viewTransition:l,children:c,...s},u){let f=pe(o,{relative:s.relative}),d=ce(),p=r.useContext(Q),{navigator:h,basename:y}=r.useContext(re),v=null!=p&&function(e,{relative:t}={}){let n=r.useContext(te);m(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=rt("useViewTransitionState"),a=pe(e,{relative:t});if(!n.isTransitioning)return!1;let o=I(n.currentLocation.pathname,i)||n.currentLocation.pathname,l=I(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=D(a.pathname,l)||null!=D(a.pathname,o)}(f)&&!0===l,g=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,b=d.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&y&&(w=I(w,y)||w);const x="/"!==g&&g.endsWith("/")?g.length-1:g.length;let O,E=b===g||!i&&b.startsWith(g)&&"/"===b.charAt(x),S=null!=w&&(w===g||!i&&w.startsWith(g)&&"/"===w.charAt(g.length)),P={isActive:E,isPending:S,isTransitioning:v},j=E?e:void 0;O="function"==typeof n?n(P):[n,E?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof a?a(P):a;return r.createElement(Qe,{...s,"aria-current":j,className:O,ref:u,style:A,to:o,viewTransition:l},"function"==typeof c?c(P):c)});et.displayName="NavLink";var tt=r.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:a,state:o,method:l=Me,action:c,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p,...h},y)=>{let{unstable_useTransitions:v}=r.useContext(re),g=function(){let{router:e}=rt("useSubmit"),{basename:t}=r.useContext(re),n=Oe("useRouteId"),i=e.fetch,a=e.navigate;return r.useCallback(async(e,r={})=>{let{action:o,method:l,encType:c,formData:s,body:u}=function(e,t){let r,n,i,a,o;if(function(e){return De(e)&&"form"===e.tagName.toLowerCase()}(e)){let o=e.getAttribute("action");n=o?I(o,t):null,r=e.getAttribute("method")||Me,i=Ne(e.getAttribute("enctype"))||_e,a=new FormData(e)}else if(function(e){return De(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return De(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let o=e.form;if(null==o)throw new Error('Cannot submit a