clash_for_linux/dashboard/public/assets/index.171f553a.js

131 lines
483 KiB
JavaScript
Raw Normal View History

var O_=Object.defineProperty;var k_=(e,t,n)=>t in e?O_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var lh=(e,t,n)=>(k_(e,typeof t!="symbol"?t+"":t,n),n);function Ng(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const T_="modulepreload",P_=function(e,t){return new URL(e,t).href},uh={},_n=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=P_(i,r),i in uh)return;uh[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":T_,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function Hn(e){return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e,t,n){return t&&ch(e.prototype,t),n&&ch(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bc(e,t){return bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bc(e,t)}function yl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bc(e,t)}function ra(e,t){if(t&&(Hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kn(e)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cn(e)}function fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ag(e){if(Array.isArray(e))return e}function L_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ig(e,t){if(!!e){if(typeof e=="string")return fh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))ret
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N_(e){return Ag(e)||L_(e)||Ig(e)||Dg()}function dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var A_={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},I_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mt(this,e),this.init(t,n)}return $t(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||A_,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,o,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,ph(ph({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),an=new I_,rr=function(){function e(){Mt(this,e),this.observers={}}return $t(e,[{key:"on",value:function(n,r){var o=this;return n.split(" ").forEach(function(i){o.observers[i]=o.observers[i]||[],o.observers[i].push(r)}),this}},{key:"off",value:function(n,r){if(!!this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(o){return o!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,o)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(o))})}}}]),e}();function Ho(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function hh(e){return e==null?"":""+e}function D_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function id(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function vh(e,t,n){var r=id(e,t,Object),o=r.obj,i=r.k;o[i]=n}function M_(e,t,n,r){var o=id(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function Rs(e,t){var n=id(e,t),r=n.obj,o=n.k;if(!!r)return r[o]}function mh(e,t,n){var r=Rs(e,n);return r!==void 0?r:Rs(t,n)}function Mg(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Mg(e[r],t[r],n):e[r]=t[r]);return e}function Vr(e){return e.replace(/[\-\[
* @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 oa=Symbol.for("react.element"),Mb=Symbol.for("react.portal"),$b=Symbol.for("react.fragment"),Ub=Symbol.for("react.strict_mode"),Fb=Symbol.for("react.profiler"),jb=Symbol.for("react.provider"),Bb=Symbol.for("react.context"),zb=Symbol.for("react.forward_ref"),Vb=Symbol.for("react.suspense"),Wb=Symbol.for("react.memo"),Hb=Symbol.for("react.lazy"),$h=Symbol.iterator;function Kb(e){return e===null||typeof e!="object"?null:(e=$h&&e[$h]||e["@@iterator"],typeof e=="function"?e:null)}var Hg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kg=Object.assign,qg={};function Ao(e,t,n){this.props=e,this.context=t,this.refs=qg,this.updater=n||Hg}Ao.prototype.isReactComponent={};Ao.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")};Ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qg(){}Qg.prototype=Ao.prototype;function sd(e,t,n){this.props=e,this.context=t,this.refs=qg,this.updater=n||Hg}var ld=sd.prototype=new Qg;ld.constructor=sd;Kg(ld,Ao.prototype);ld.isPureReactComponent=!0;var Uh=Array.isArray,Gg=Object.prototype.hasOwnProperty,ud={current:null},Xg={key:!0,ref:!0,__self:!0,__source:!0};function Yg(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Gg.call(t,r)&&!Xg.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:oa,type:e,key:i,ref:a,props:o,_owner:ud.current}}function qb(e,t){return{$$typeof:oa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function cd(e){return typeof e=="object"&&e!==null&&e.$$typeof===oa}function Qb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fh=/\/+/g;function bu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qb(""+e.key):t.toString(36)}function as(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case oa:case Mb:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+bu(a,0):r,Uh(o)?(n="",e!=null&&(n=e.replace(Fh,"$&/")+"/"),as(o,t,n,"",function(u){return u})):o!=null&&(cd(o)&&(o=qb(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Fh,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Uh(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+bu(i,s);a+=as(i,t,n,l,o)}else if(l=Kb(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+bu(i,s++),a+=as(i,t,n,l,o);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 a}function La(e,t,n){if(e==null)return e;var r=[],o=0;return as(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Gb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},ss={transition:null},Xb={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:ss,ReactCurrentOwner:ud};ue.Children={map:La,forEach:function(e,t,n){La(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return La(e,function(){t++}),t},toArray:function(e){return La(e,function(t){return t})||[]},only:function(e){if(!cd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Ao;ue.Fragment=$b;ue.Profiler=Fb;ue
* @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,I){var M=P.length;P.push(I);e:for(;0<M;){var z=M-1>>>1,E=P[z];if(0<o(E,I))P[z]=I,P[M]=E,M=z;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var I=P[0],M=P.pop();if(M!==I){P[0]=M;e:for(var z=0,E=P.length,D=E>>>1;z<D;){var $=2*(z+1)-1,J=P[$],V=$+1,H=P[V];if(0>o(J,M))V<E&&0>o(H,J)?(P[z]=H,P[V]=M,z=V):(P[z]=J,P[$]=M,z=$);else if(V<E&&0>o(H,M))P[z]=H,P[V]=M,z=V;else break e}}return I}function o(P,I){var M=P.sortIndex-I.sortIndex;return M!==0?M:P.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=P)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function S(P){if(y=!1,v(P),!g)if(n(l)!==null)g=!0,j(k);else{var I=n(u);I!==null&&O(S,I.startTime-P)}}function k(P,I){g=!1,y&&(y=!1,m(A),A=-1),h=!0;var M=d;try{for(v(I),f=n(l);f!==null&&(!(f.expirationTime>I)||P&&!X());){var z=f.callback;if(typeof z=="function"){f.callback=null,d=f.priorityLevel;var E=z(f.expirationTime<=I);I=e.unstable_now(),typeof E=="function"?f.callback=E:f===n(l)&&r(l),v(I)}else r(l);f=n(l)}if(f!==null)var D=!0;else{var $=n(u);$!==null&&O(S,$.startTime-I),D=!1}return D}finally{f=null,d=M,h=!1}}var C=!1,N=null,A=-1,W=5,F=-1;function X(){return!(e.unstable_now()-F<W)}function ce(){if(N!==null){var P=e.unstable_now();F=P;var I=!0;try{I=N(!0,P)}finally{I?ae():(C=!1,N=null)}}else C=!1}var ae;if(typeof p=="function")ae=function(){p(ce)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,L=_.port2;_.port1.onmessage=ce,ae=function(){L.postMessage(null)}}else ae=function(){b(ce,0)};function j(P){N=P,C||(C=!0,ae())}function O(P,I){A=b(function(){P(e.unstable_now())},I)}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(){g||h||(g=!0,j(k))},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"):W=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(d){case 1:case 2:case 3:var I=3;break;default:I=d}var M=d;d=I;try{return P()}finally{d=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,I){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var M=d;d=P;try{return I()}finally{d=M}},e.unstable_scheduleCallback=function(P,I,M){var z=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?z+M:z):M=z,P){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=M+E,P={id:c++,callback:I,priorityLevel:P,startTime:M,expirationTime:E,sortIndex:-1},M>z?(P.sortIndex=M,t(u,P),n(l)===null&&P===n(u)&&(y?(m(A),A=-1):y=!0,O(S,M-z))):(P.sortIndex=E,t(l,P),g||h||(g=!0,j(k))),P},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(P){var I=d;return function(){var M=d;d=I;try{return P.apply(this,arguments)}finally{d=M}}}})(ey);(function(e){e.exports=ey})(Zg);/**
* @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 ty=R.exports,mt=Zg.exports;function B(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 ny=new Set,Ti={};function Dr(e,t){go(e,t),go(e+"Capture",t)}function go(e,t){for(Ti[e]=t,e=0;e<t.length;e++)ny.add(t[e])}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kc=Object.prototype.hasOwnProperty,gE=/^[: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]*$/,Kh={},qh={};function yE(e){return kc.call(qh,e)?!0:kc.call(Kh,e)?!1:gE.test(e)?qh[e]=!0:(Kh[e]=!0,!1)}function wE(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 SE(e,t,n,r){if(t===null||typeof t>"u"||wE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){We[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var fd=/[\-:]([a-z])/g;function dd(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-ad
`+xu+e}var Ru=!1;function Cu(e,t){if(!e||Ru)return"";Ru=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ru=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?si(e):""}function _E(e){switch(e.tag){case 5:return si(e.type);case 16:return si("Lazy");case 13:return si("Suspense");case 19:return si("SuspenseList");case 0:case 2:case 15:return e=Cu(e.type,!1),e;case 11:return e=Cu(e.type.render,!1),e;case 1:return e=Cu(e.type,!0),e;default:return""}}function Nc(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 Gr:return"Fragment";case Qr:return"Portal";case Tc:return"Profiler";case hd:return"StrictMode";case Pc:return"Suspense";case Lc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oy:return(e.displayName||"Context")+".Consumer";case ry:return(e._context.displayName||"Context")+".Provider";case vd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case md:return t=e.displayName||null,t!==null?t:Nc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return Nc(e(t))}catch{}}return null}function bE(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 Nc(t);case 8:return t===hd?"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 or(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ay(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function EE(e){var t=ay(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Aa(e){e._valueTracker||(e._valueTracker=EE(e))}function sy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ay(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ps(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 Ac(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Gh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=or(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 ly(e,t){t=t.checked,t!=null&&pd(e,"checked",t,!1)}function Ic(e,t){ly(e,t);var n=or(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")?Dc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dc(e,t.type,or(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xh(e,t,n){if(t.hasOwnProper
`).replace(Ax,"")}function Ba(e,t,n){if(t=wv(t),wv(e)!==t&&n)throw Error(B(425))}function Us(){}var Gc=null,Xc=null;function Yc(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 Jc=typeof setTimeout=="function"?setTimeout:void 0,Ix=typeof clearTimeout=="function"?clearTimeout:void 0,Sv=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof Sv<"u"?function(e){return Sv.resolve(null).then(e).catch(Mx)}:Jc;function Mx(e){setTimeout(function(){throw e})}function Fu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ii(t)}function Xn(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 _v(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 Do=Math.random().toString(36).slice(2),on="__reactFiber$"+Do,Fi="__reactProps$"+Do,En="__reactContainer$"+Do,Zc="__reactEvents$"+Do,$x="__reactListeners$"+Do,Ux="__reactHandles$"+Do;function wr(e){var t=e[on];if(t)return t;for(var n=e.parentNode;n;){if(t=n[En]||n[on]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_v(e);e!==null;){if(n=e[on])return n;e=_v(e)}return t}e=n,n=e.parentNode}return null}function ua(e){return e=e[on]||e[En],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(B(33))}function xl(e){return e[Fi]||null}var ef=[],eo=-1;function ur(e){return{current:e}}function Ee(e){0>eo||(e.current=ef[eo],ef[eo]=null,eo--)}function _e(e,t){eo++,ef[eo]=e.current,e.current=t}var ir={},Ge=ur(ir),st=ur(!1),Cr=ir;function yo(e,t){var n=e.type.contextTypes;if(!n)return ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function Fs(){Ee(st),Ee(Ge)}function bv(e,t,n){if(Ge.current!==ir)throw Error(B(168));_e(Ge,t),_e(st,n)}function Xy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(B(108,bE(e)||"Unknown",o));return Pe({},n,r)}function js(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ir,Cr=Ge.current,_e(Ge,e),_e(st,st.current),!0}function Ev(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=Xy(e,t,Cr),r.__reactInternalMemoizedMergedChildContext=e,Ee(st),Ee(Ge),_e(Ge,e)):Ee(st),_e(st,n)}var mn=null,Rl=!1,ju=!1;function Yy(e){mn===null?mn=[e]:mn.push(e)}function Fx(e){Rl=!0,Yy(e)}function cr(){if(!ju&&mn!==null){ju=!0;var e=0,t=he;try{var n=mn;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mn=null,Rl=!1}catch(o){throw mn!==null&&(mn=mn.slice(e+1)),by(yd,cr),o}finally{he=t,ju=!1}}return null}var to=[],no=0,Bs=null,zs=0,Ot=[],kt=0,Or=null,gn=1,yn="";function hr(e,t){to[no++]=zs,to[no++]=Bs,Bs=e,zs=t}function Jy(e,t,n){Ot[kt++]=gn,Ot[kt++]=yn,Ot[kt++]=Or,Or=e;var r=gn;e=yn;var o=32-Qt(r)-1;r&=~(1<<o),n+=1;var i=32-Qt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,gn=1<<32-Qt(t)+o|n<<o|r,yn=i+e}else gn=1<<i|n<<o|r,yn=e}function Od(e){e.return!==null&&(hr(e,1),Jy(e,1,0))}function kd(e){for(;e===Bs;)Bs=to[--no],to[no]=null,zs=to[--no],to[no]=null;for(;e===Or;)Or=Ot[--kt],Ot[kt]=null,yn=Ot[--kt],Ot[kt]=null,gn=Ot[--kt],Ot[kt]=null}var vt=null,ht=null,Re=!1,Kt=null;function Zy(e,t){var n=Tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Hu(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function sf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qx=typeof WeakMap=="function"?WeakMap:Map;function O0(e,t,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,gf=r),sf(e,t)},n}function k0(e,t,n){n=Sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){sf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){sf(e,t),typeof r!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Av(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=lR.bind(null,e,t,n),t.then(e,e))}function Iv(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 Dv(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Sn(-1,1),t.tag=2,Yn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Gx=Cn.ReactCurrentOwner,at=!1;function Ye(e,t,n,r){t.child=e===null?a0(t,null,n,r):So(t,e.child,n,r)}function Mv(e,t,n,r,o){n=n.render;var i=t.ref;return po(t,o),r=Fd(e,t,n,r,i,o),n=jd(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Rn(e,t,o)):(Re&&n&&Od(t),t.flags|=1,Ye(e,t,r,o),t.child)}function $v(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Xd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,T0(e,t,i,r,o)):(e=gs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Mi,n(a,r)&&e.ref===t.ref)return Rn(e,t,o)}return t.flags|=1,e=er(i,r),e.ref=t.ref,e.return=t,t.child=e}function T0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Mi(i,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Rn(e,t,o)}return lf(e,t,n,r,o)}function P0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(io,pt),pt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(io,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,_e(io,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,_e(io,pt),pt|=r;return Ye(e,t,o,n),t.child}function L0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lf(e,t,n,r,o){var i=lt(n)?Cr:Ge.current;return i=yo(t,i),po(t,o),n=Fd(e,t,n,r,i,o),r=jd(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Rn(e,t,o)):(Re&&r&&Od(t),t.flags|=1,Ye(e,t,n,o),t.child)}function Uv(e,t,n,r,o){if(lt(n)){var i=!0;js(t)}else i=!1;if(po(t,o),t.stateNode===null)hs(e,t),o0(t,n,r),af(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=It(u):(u=lt(n)?Cr:Ge.current,u=yo(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&Tv(t,a,r,u),In=!1;var d=t.memoizedState;a.state=d,Hs(t,r,a,o),l=t.memoizedState,s!==r||d!==l||st.current||In?(typeof c=="function"&&(of(t,n,c,r),l=t.memoizedState),(s=In||kv(t,n,s,r,d,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componen
* Adapted from jQuery UI core
*
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(f,d){return d.getPropertyValue("overflow")!=="visible"||f.scrollWidth<=0&&f.scrollHeight<=0}function a(f){var d=f.offsetWidth<=0&&f.offsetHeight<=0;if(d&&!f.innerHTML)return!0;try{var h=window.getComputedStyle(f),g=h.getPropertyValue("display");return d?g!==r&&i(f,h):g===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(f){for(var d=f,h=f.getRootNode&&f.getRootNode();d&&d!==document.body;){if(h&&d===h&&(d=h.host.parentNode),a(d))return!1;d=d.parentNode}return!0}function l(f,d){var h=f.nodeName.toLowerCase(),g=o.test(h)&&!f.disabled||h==="a"&&f.href||d;return g&&s(f)}function u(f){var d=f.getAttribute("tabindex");d===null&&(d=void 0);var h=isNaN(d);return(h||d>=0)&&l(f,!h)}function c(f){var d=[].slice.call(f.querySelectorAll("*"),0).reduce(function(h,g){return h.concat(g.shadowRoot?c(g.shadowRoot):[g])},[]);return d.filter(u)}e.exports=t.default})(el,el.exports);Object.defineProperty(Jt,"__esModule",{value:!0});Jt.resetState=OR;Jt.log=kR;Jt.handleBlur=Ki;Jt.handleFocus=qi;Jt.markForFocusLater=TR;Jt.returnFocus=PR;Jt.popWithoutFocus=LR;Jt.setupScopedFocus=NR;Jt.teardownScopedFocus=AR;var xR=el.exports,RR=CR(xR);function CR(e){return e&&e.__esModule?e:{default:e}}var xo=[],ao=null,Ef=!1;function OR(){xo=[]}function kR(){}function Ki(){Ef=!0}function qi(){if(Ef){if(Ef=!1,!ao)return;setTimeout(function(){if(!ao.contains(document.activeElement)){var e=(0,RR.default)(ao)[0]||ao;e.focus()}},0)}}function TR(){xo.push(document.activeElement)}function PR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{xo.length!==0&&(t=xo.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function LR(){xo.length>0&&xo.pop()}function NR(e){ao=e,window.addEventListener?(window.addEventListener("blur",Ki,!1),document.addEventListener("focus",qi,!0)):(window.attachEvent("onBlur",Ki),document.attachEvent("onFocus",qi))}function AR(){ao=null,window.addEventListener?(window.removeEventListener("blur",Ki),document.removeEventListener("focus",qi)):(window.detachEvent("onBlur",Ki),document.detachEvent("onFocus",qi))}var xf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=el.exports,r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?i(s.activeElement.shadowRoot):s.activeElement}function a(s,l){var u=(0,r.default)(s);if(!u.length){l.preventDefault();return}var c=void 0,f=l.shiftKey,d=u[0],h=u[u.length-1],g=i();if(s===g){if(!f)return;c=h}if(h===g&&!f&&(c=d),d===g&&f&&(c=h),c){l.preventDefault(),c.focus();return}var y=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),b=y!=null&&y[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!!b){var m=u.indexOf(g);if(m>-1&&(m+=f?-1:1),c=u[m],typeof c>"u"){l.preventDefault(),c=f?h:d,c.focus();return}l.preventDefault(),c.focus()}}e.exports=t.default})(xf,xf.exports);var Zt={},IR=function(){},DR=IR,Xt={},r1={exports:{}};/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(r1);Object.defineProperty(Xt,"__esModule",{value:!0});Xt.canUseDOM=Xt.SafeNodeList=Xt.SafeHTMLCollection=void 0;var MR=r1.exports,$R=UR(MR);function UR(e){return e&&e.__esModule?e:{default:e}}var Dl=$R.default,FR=Dl.canUseDOM?window.HTMLElement:{};Xt.SafeHTMLCollection=Dl.canUseDOM?window.HTMLCollection:{};Xt.SafeNodeList=Dl.canUseDOM?window.NodeList:{};Xt.canUseDOM=Dl.canUseDOM;Xt.default=FR;Object.defineProperty(Zt,"__esModule",{value:!0});Zt.resetState=WR;Zt.log=HR;Zt.assertNodeList=o1;Zt.setElement=KR;Zt.validateElement=tp;Zt.hide=qR;Zt.show=QR;Zt.documentNotReadyOrSSRTesting=GR;var jR=DR,BR=VR(jR),zR=Xt;function VR(e){return e&&e.__esModule?e:{default:e}}var Ct=null;function WR(){Ct&&(Ct.removeAttribute?Ct.removeAttribute("aria-hidden"):Ct.length!=null?Ct.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ct).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ct=null}function HR(){}function o1(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function KR(e){var t=e;if(typeof t=="string"&&zR.canUseDOM){var n=document.querySelectorAll(t);o1(n,t),t=n}return Ct=t||Ct,Ct}function tp(e){var t=e||Ct;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,BR.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function qR(e){var t=!0,n=!1,r=void 0;try{for(var o=tp(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function QR(e){var t=!0,n=!1,r=void 0;try{for(var o=tp(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function GR(){Ct=null}var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.resetState=XR;Mo.log=YR;var Ei={},xi={};function Jv(e,t){e.classList.remove(t)}function XR(){var e=document.getElementsByTagName("html")[0];for(var t in Ei)Jv(e,Ei[t]);var n=document.body;for(var r in xi)Jv(n,xi[r]);Ei={},xi={}}function YR(){}var JR=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},ZR=function(t,n){return t[n]&&(t[n]-=1),n},eC=function(t,n,r){r.forEach(function(o){JR(n,o),t.add(o)})},tC=function(t,n,r){r.forEach(function(o){ZR(n,o),n[o]===0&&t.remove(o)})};Mo.add=function(t,n){return eC(t.classList,t.nodeName.toLowerCase()=="html"?Ei:xi,n.split(" "))};Mo.remove=function(t,n){return tC(t.classList,t.nodeName.toLowerCase()=="html"?Ei:xi,n.split(" "))};var $o={};Object.defineProperty($o,"__esModule",{value:!0});$o.log=rC;$o.resetState=oC;function nC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i1=function e(){var t=this;nC(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},tl=new i1;function rC(){console.log("portalOpenInstances ----------"),console.log(tl.openInstances.length),tl.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function oC(){tl=new i1}$o.default=tl;var np={};Object.defineProperty(np,"__esModule",{value:!0
`+i+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
`+n:"")+(r!==null?`
`+r:"")+(o!==null?`
`+o:"")+`
The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=a1,t.componentWillReceiveProps=s1),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l1;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,c,f){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,u,c,d)}}return e}const dC=Object.freeze(Object.defineProperty({__proto__:null,polyfill:fC},Symbol.toStringTag,{value:"Module"})),pC=Cb(dC);Object.defineProperty(Lr,"__esModule",{value:!0});Lr.bodyOpenClassName=Lr.portalClassName=void 0;var em=Object.assign||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},hC=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u1=R.exports,nl=fa(u1),vC=aa.exports,rl=fa(vC),mC=ge.exports,oe=fa(mC),gC=bf.exports,tm=fa(gC),yC=Zt,wC=_C(yC),zn=Xt,nm=fa(zn),SC=pC;function _C(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function fa(e){return e&&e.__esModule?e:{default:e}}function bC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function EC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var xC=Lr.portalClassName="ReactModalPortal",RC=Lr.bodyOpenClassName="ReactModal__Body--open",mr=zn.canUseDOM&&rl.default.createPortal!==void 0,om=function(t){return document.createElement(t)},im=function(){return mr?rl.default.createPortal:rl.default.unstable_renderSubtreeIntoContainer};function Qa(e){return e()}var da=function(e){EC(t,e);function t(){var n,r,o,i;bC(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return i=(r=(o=rm(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.removePortal=function(){!mr&&rl.default.unmountComponentAtNode(o.node);var u=Qa(o.props.parentSelector);u&&u.contains(o.node)?u.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(u){o.portal=u},o.renderPortal=function(u){var c=im(),f=c(o,nl.default.createElement(tm.default,em({defaultStyles:t.defaultStyles},u)),o.node);o.portalRef(f)},r),rm(o,i)}return hC(t,[{key:"componentDidMount",value:function(){if(!!zn.canUseDOM){mr||(this.node=om("div")),this.node.className=this.props.portalClassName;var r=Qa(this.props.parentSelector);r.appendChild(this.node),!mr&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(r){var o=Qa(r.parentSelector),i=Qa(this.props.parentSelector);return{prevParent:o,nextParent:i}}},{key:"componentDidUpdate",value:function(r,o,i){if(!!zn.canUseDOM){var a=this.props,s=a.isOpen,l=a.portalClassName;r.portalClassName!==l&&(this.node.className=l);var u=i.prevParent,c=i.nextParent;c!==u&&(u.removeChild(this.node),c.appendChild(this.node)),!(!r.isOpen&&!s)&&!mr&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!zn.canUseDOM||!this.node||!this.portal)){var r=this.portal.state,o=Date.now(),i=r.isOpen&&this.props.closeTimeoutMS&&(r.closesAt||o+this.props.closeTimeoutMS);i?(r.beforeClose|
* @license React
* use-sync-external-store-shim.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 Ro=R.exports;function zC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var VC=typeof Object.is=="function"?Object.is:zC,WC=Ro.useState,HC=Ro.useEffect,KC=Ro.useLayoutEffect,qC=Ro.useDebugValue;function QC(e,t){var n=t(),r=WC({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return KC(function(){o.value=n,o.getSnapshot=t,Gu(o)&&i({inst:o})},[e,n,t]),HC(function(){return Gu(o)&&i({inst:o}),e(function(){Gu(o)&&i({inst:o})})},[e]),qC(n),n}function Gu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!VC(e,n)}catch{return!0}}function GC(e,t){return t()}var XC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?GC:QC;S1.useSyncExternalStore=Ro.useSyncExternalStore!==void 0?Ro.useSyncExternalStore:XC;(function(e){e.exports=S1})(w1);const YC=w1.exports.useSyncExternalStore;var $l={exports:{}},Ul={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var JC=R.exports,ZC=Symbol.for("react.element"),e2=Symbol.for("react.fragment"),t2=Object.prototype.hasOwnProperty,n2=JC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r2={key:!0,ref:!0,__self:!0,__source:!0};function _1(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)t2.call(t,r)&&!r2.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:ZC,type:e,key:i,ref:a,props:o,_owner:n2.current}}Ul.Fragment=e2;Ul.jsx=_1;Ul.jsxs=_1;(function(e){e.exports=Ul})($l);const Nt=$l.exports.Fragment,w=$l.exports.jsx,Z=$l.exports.jsxs,vm=R.exports.createContext(void 0),b1=R.exports.createContext(!1);function E1(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=vm),window.ReactQueryClientContext):vm)}const o2=({context:e}={})=>{const t=R.exports.useContext(E1(e,R.exports.useContext(b1)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i2=({client:e,children:t,context:n,contextSharing:r=!1})=>{R.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=E1(n,r);return w(b1.Provider,{value:!n&&r,children:w(o.Provider,{value:e,children:t})})},x1=R.exports.createContext(!1),a2=()=>R.exports.useContext(x1);x1.Provider;function s2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const l2=R.exports.createContext(s2()),u2=()=>R.exports.useContext(l2);function c2(e,t){return typeof e=="function"?e(...t):!!e}const f2=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},d2=e=>{R.exports.useEffect(()=>{e.clearReset()},[e])},p2=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&c2(n,[e.error,r]);function h2(e,t){const n=o2({context:e.context}),r=a2(),o=u2(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=Ie.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Ie.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Ie.batchCalls(i.onSettled)),i.suspense&&typeof i.staleTime!="number"&&(i.staleTime=1e3),f2(i,o),d2(o);const[a]=R.exports.useState(()=>new t(n,i)),s=a.getOptimisticResult(i);if(YC(R.exports.useCallback(l=>r?()=>{}:a.subscribe(Ie.batchCalls(l)),[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),R.exports.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),i.suspense&&s.isLoading&&s.isFetching&&!r)throw a.fetchOptimistic(i).then(({data:l})=>{i.onSuccess==null||i.onSuccess(l),i.onSettled==null||i.onSettled(l,null)}).catch(l=>{o.clearReset(),i.onError==null||i.onError(l),i.onSettled==null||i.onSettled(void 0,l)});if(p2({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}function v2(e,t,n){const r=ys(e,t,n);return h2(r,jC)}/**
* @remix-run/router v1.0.3
*
* 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 Gi(){return Gi=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},Gi.apply(this,arguments)}var Vn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Vn||(Vn={}));const mm="popstate";function m2(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:s="",hash:l=""}=$r(o.location.hash.substr(1));return Tf("",{pathname:a,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");s=u===-1?l:l.slice(0,u)}return s+"#"+(typeof i=="string"?i:Xi(i))}function r(o,i){g2(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return S2(t,n,r,e)}function g2(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function y2(){return Math.random().toString(36).substr(2,8)}function gm(e){return{usr:e.state,key:e.key}}function Tf(e,t,n,r){return n===void 0&&(n=null),Gi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$r(t):t,{state:n,key:t&&t.key||r||y2()})}function Xi(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 $r(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 w2(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:"unknown://unknown",n=typeof e=="string"?e:Xi(e);return new URL(n,t)}function S2(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Vn.Pop,l=null;function u(){s=Vn.Pop,l&&l({action:s,location:d.location})}function c(h,g){s=Vn.Push;let y=Tf(d.location,h,g);n&&n(y,h);let b=gm(y),m=d.createHref(y);try{a.pushState(b,"",m)}catch{o.location.assign(m)}i&&l&&l({action:s,location:d.location})}function f(h,g){s=Vn.Replace;let y=Tf(d.location,h,g);n&&n(y,h);let b=gm(y),m=d.createHref(y);a.replaceState(b,"",m),i&&l&&l({action:s,location:d.location})}let d={get action(){return s},get location(){return e(o,a)},listen(h){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(mm,u),l=h,()=>{o.removeEventListener(mm,u),l=null}},createHref(h){return t(o,h)},encodeLocation(h){let g=w2(Xi(h));return Gi({},h,{pathname:g.pathname,search:g.search,hash:g.hash})},push:c,replace:f,go(h){return a.go(h)}};return d}var ym;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ym||(ym={}));function _2(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$r(t):t,o=C1(r.pathname||"/",n);if(o==null)return null;let i=R1(e);b2(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=L2(i[s],I2(o));return a}function R1(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{let a={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(Ze(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=tr([r,a.relativePath]),l=n.concat(a);o.children&&o.children.length>0&&(Ze(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),R1(o.children,t,l,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:T2(s,o.index),routesMeta:l})}),t}function b2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:P2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const E2=/^:\w+$/,x2=3,R2=2,C2=1,O2=10,k2=-2,wm=e=>e==="*";function T2(e,t){let n=e.split("/"),r=n.length;return n.some(wm)&&(r+=
* React Router v6.4.3
*
* 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 Pf(){return Pf=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},Pf.apply(this,arguments)}function W2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const H2=typeof Object.is=="function"?Object.is:W2,{useState:K2,useEffect:q2,useLayoutEffect:Q2,useDebugValue:G2}=At;function X2(e,t,n){const r=t(),[{inst:o},i]=K2({inst:{value:r,getSnapshot:t}});return Q2(()=>{o.value=r,o.getSnapshot=t,Yu(o)&&i({inst:o})},[e,r,t]),q2(()=>(Yu(o)&&i({inst:o}),e(()=>{Yu(o)&&i({inst:o})})),[e]),G2(r),r}function Yu(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!H2(n,r)}catch{return!0}}function Y2(e,t,n){return t()}const J2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z2=!J2,eO=Z2?Y2:X2;"useSyncExternalStore"in At&&(e=>e.useSyncExternalStore)(At);const tO=R.exports.createContext(null),T1=R.exports.createContext(null),sp=R.exports.createContext(null),Fl=R.exports.createContext(null),va=R.exports.createContext({outlet:null,matches:[]}),P1=R.exports.createContext(null);function nO(e,t){let{relative:n}=t===void 0?{}:t;ma()||Ze(!1);let{basename:r,navigator:o}=R.exports.useContext(sp),{hash:i,pathname:a,search:s}=L1(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:tr([r,a])),o.createHref({pathname:l,search:s,hash:i})}function ma(){return R.exports.useContext(Fl)!=null}function ga(){return ma()||Ze(!1),R.exports.useContext(Fl).location}function rO(){ma()||Ze(!1);let{basename:e,navigator:t}=R.exports.useContext(sp),{matches:n}=R.exports.useContext(va),{pathname:r}=ga(),o=JSON.stringify(O1(n).map(s=>s.pathnameBase)),i=R.exports.useRef(!1);return R.exports.useEffect(()=>{i.current=!0}),R.exports.useCallback(function(s,l){if(l===void 0&&(l={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let u=k1(s,JSON.parse(o),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:tr([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,r])}function L1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=R.exports.useContext(va),{pathname:o}=ga(),i=JSON.stringify(O1(r).map(a=>a.pathnameBase));return R.exports.useMemo(()=>k1(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function N1(e,t){ma()||Ze(!1);let n=R.exports.useContext(T1),{matches:r}=R.exports.useContext(va),o=r[r.length-1],i=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let s=ga(),l;if(t){var u;let g=typeof t=="string"?$r(t):t;a==="/"||((u=g.pathname)==null?void 0:u.startsWith(a))||Ze(!1),l=g}else l=s;let c=l.pathname||"/",f=a==="/"?c:c.slice(a.length)||"/",d=_2(e,{pathname:f}),h=sO(d&&d.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:tr([a,g.pathname]),pathnameBase:g.pathnameBase==="/"?a:tr([a,g.pathnameBase])})),r,n||void 0);return t&&h?w(Fl.Provider,{value:{location:Pf({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Vn.Pop},children:h}):h}function oO(){let e=uO(),t=z2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return Z(Nt,{children:[w("h2",{children:"Unhandled Thrown Error!"}),w("h3",{style:{fontStyle:"italic"},children:t}),n?w("pre",{style:o,children:n}):null,w("p",{children:"\u{1F4BF} Hey developer \u{1F44B}"}),Z("p",{children:["You can provide a way better UX than this when your app throws errors by providing your own\xA0",w("code",{style:i,children:"errorElement"})," props on\xA0",w("code",{style:i,children:"<Route>"})]})]})}class iO extends R.exports.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.
* React Router DOM v6.4.3
*
* 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 fO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function dO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pO(e,t){return e.button===0&&(!t||t==="_self")&&!dO(e)}const hO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function vO(e){let{basename:t,children:n,window:r}=e,o=R.exports.useRef();o.current==null&&(o.current=m2({window:r,v5Compat:!0}));let i=o.current,[a,s]=R.exports.useState({action:i.action,location:i.location});return R.exports.useLayoutEffect(()=>i.listen(s),[i]),w(cO,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}const A1=R.exports.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=fO(t,hO),d=nO(u,{relative:o}),h=mO(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function g(y){r&&r(y),y.defaultPrevented||h(y)}return w("a",{...f,href:d,onClick:i?r:g,ref:n,target:l})});var bm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(bm||(bm={}));var Em;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Em||(Em={}));function mO(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=rO(),l=ga(),u=L1(e,{relative:a});return R.exports.useCallback(c=>{if(pO(c,n)){c.preventDefault();let f=r!==void 0?r:Xi(l)===Xi(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}function gO(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var yO=gO,se=yO;function wO(e){return!!e&&typeof e.then=="function"}var Ce=wO;function SO(e,t){if(e!=null)return e;throw se(t!=null?t:"Got unexpected null or undefined")}var Oe=SO;function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class jl{getValue(){throw se("BaseLoadable")}toPromise(){throw se("BaseLoadable")}valueMaybe(){throw se("BaseLoadable")}valueOrThrow(){throw se(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw se("BaseLoadable")}promiseOrThrow(){throw se(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw se("BaseLoadable")}errorOrThrow(){throw se(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw se("BaseLoadable")}}class _O extends jl{constructor(t){super(),ie(this,"state","hasValue"),ie(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Ce(n)?Nr(n):Co(n)?n:ya(n)}catch(n){return Ce(n)?Nr(n.next(()=>this.map(t))):Bl(n)}}}class bO extends jl{constructor(t){super(),ie(this,"state","hasError"),ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class I1 extends jl{constructor(t){super(),ie(this,"state","loading"),ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return Nr(this.contents.then(n=>{const r=t(n);if(Co(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(Ce(n))return n.then(()=>this.map(t).contents);throw n}))}}function ya(e){return Object.freeze(new _O(e))}function Bl(e){return Object.freeze(new bO(e))}function Nr(e){return Object.freeze(new I1(e))}function D1(){return Object.freeze(new I1(new Promise(()=>{})))}function EO(e){return e.every(t=>t.state==="hasVa
production. But it is safe to ignore this warning if it occurred because of
hot module replacement.`;console.warn(t)}}function QO(e){j1.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&qO(e.key),Ar.set(e.key,e);const t=e.set==null?new Oo.RecoilValueReadOnly(e.key):new Oo.RecoilState(e.key);return cp.set(e.key,t),t}class W1 extends Error{}function GO(e){const t=Ar.get(e);if(t==null)throw new W1(`Missing definition for RecoilValue: "${e}""`);return t}function XO(e){return Ar.get(e)}const sl=new Map;function YO(e){var t;if(!me("recoil_memory_managament_2020"))return;const n=Ar.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Ar.delete(e),(r=H1(e))===null||r===void 0||r(),sl.delete(e)}}function JO(e,t){!me("recoil_memory_managament_2020")||(t===void 0?sl.delete(e):sl.set(e,t))}function H1(e){return sl.get(e)}var ft={nodes:Ar,recoilValues:cp,registerNode:QO,getNode:GO,getNodeMaybe:XO,deleteNodeConfigIfPossible:YO,setConfigDeletionHandler:JO,getConfigDeletionHandler:H1,recoilValuesForKeys:KO,NodeMissingError:W1,DefaultValue:V1,DEFAULT_VALUE:HO};function ZO(e,t){t()}var ek={enqueueExecution:ZO};function tk(e,t){return t={exports:{}},e(t,t.exports),t.exports}var nk=tk(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,s=o/4,l={},u=function(x){return function(){return x}},c=n.hash=function(T){var x=typeof T>"u"?"undefined":t(T);if(x==="number")return T;x!=="string"&&(T+="");for(var U=0,K=0,q=T.length;K<q;++K){var G=T.charCodeAt(K);U=(U<<5)-U+G|0}return U},f=function(x){return x-=x>>1&1431655765,x=(x&858993459)+(x>>2&858993459),x=x+(x>>4)&252645135,x+=x>>8,x+=x>>16,x&127},d=function(x,U){return U>>>x&i},h=function(x){return 1<<x},g=function(x,U){return f(x&U-1)},y=function(x,U,K,q){var G=q;if(!x){var re=q.length;G=new Array(re);for(var te=0;te<re;++te)G[te]=q[te]}return G[U]=K,G},b=function(x,U,K){var q=K.length-1,G=0,re=0,te=K;if(x)G=re=U;else for(te=new Array(q);G<U;)te[re++]=K[G++];for(++G;G<=q;)te[re++]=K[G++];return x&&(te.length=q),te},m=function(x,U,K,q){var G=q.length;if(x){for(var re=G;re>=U;)q[re--]=q[re];return q[U]=K,q}for(var te=0,ne=0,le=new Array(G+1);te<U;)le[ne++]=q[te++];for(le[U]=K;te<G;)le[++ne]=q[te++];return le},p=1,v=2,S=3,k=4,C={__hamt_isEmpty:!0},N=function(x){return x===C||x&&x.__hamt_isEmpty},A=function(x,U,K,q){return{type:p,edit:x,hash:U,key:K,value:q,_modify:P}},W=function(x,U,K){return{type:v,edit:x,hash:U,children:K,_modify:I}},F=function(x,U,K){return{type:S,edit:x,mask:U,children:K,_modify:M}},X=function(x,U,K){return{type:k,edit:x,size:U,children:K,_modify:z}},ce=function(x){return x===C||x.type===p||x.type===v},ae=function(x,U,K,q,G){for(var re=[],te=q,ne=0,le=0;te;++le)te&1&&(re[le]=G[ne++]),te>>>=1;return re[U]=K,X(x,ne+1,re)},_=function(x,U,K,q){for(var G=new Array(U-1),re=0,te=0,ne=0,le=q.length;ne<le;++ne)if(ne!==K){var xe=q[ne];xe&&!N(xe)&&(G[re++]=xe,te|=1<<ne)}return F(x,te,G)},L=function T(x,U,K,q,G,re){if(K===G)return W(x,K,[re,q]);var te=d(U,K),ne=d(U,G);return F(x,h(te)|h(ne),te===ne?[T(x,U+r,K,q,G,re)]:te<ne?[q,re]:[re,q])},j=function(x,U,K,q,G,re,te,ne){for(var le=G.length,xe=0;xe<le;++xe){var ot=G[xe];if(K(te,ot.key)){var Ue=ot.value,xt=re(Ue);return xt===Ue?G:xt===l?(--ne.value,b(x,xe,G)):y(x,xe,A(U,q,te,xt),G)}}var Ut=re();return Ut===l?G:(++ne.value,y(x,le,A(U,q,te,Ut),G))},O=function(x,U){return x===U.edit},P=function(x,U,K,q,G,re,te){if(U(re,this.key)){var ne=q(this.value);return ne===this.value?this:ne===l?(--te.value,C):O(x,this)?(this.value=ne,this):A(x,G,re,ne)}var le=q();return le===l?this:(++te.value,L(x,K,this.hash,this,G,A(x,G,re,le)))},I=function(x,U,K,q,G,re,te){if(G===this.hash){var ne=O(x,this),le=j(ne,x,U,this.hash,this.children,q,re,te);return le===this.children?this:le.length>1?W(x,this.hash,le):le[0]}var xe=q();return xe===l?this:(++te.value,L(x,K,this.hash,this,G,A(x,G,re,xe)))},M=function(x,U,K,q,G,re,te){var ne=this.mask,le=this.children,xe=d(K,G),ot=h(xe),Ue=g(ne,ot),xt=ne&ot,Ut=xt?le[U
`),i=o[o.length-1];for(let a=0;a<o.length-1;a++)Kf(o[a]);if(t){Kf(i),ts="",console.log("GET /traffic streaming done"),so=!1;return}else ts=i;return hS(e)})}let ns;function jp(e){if(so||ns===1)return Zi;ns=1;const t=nS(e,pS),n=new WebSocket(t);return n.addEventListener("error",function(r){ns=3}),n.addEventListener("close",function(r){ns=3,nD(e)}),n.addEventListener("message",function(r){Kf(r.data)}),Zi}function nD(e){if(so)return Zi;so=!0;const{url:t,init:n}=_t(e);return fetch(t+pS,n).then(r=>{if(r.ok){const o=r.body.getReader();hS(o)}else so=!1},r=>{console.log("fetch /traffic error",r),so=!1}),Zi}function ng(e){return t=>{t(`openModal:${e}`,n=>{n.modals[e]=!0})}}function rD(e){return t=>{t(`closeModal:${e}`,n=>{n.modals[e]=!1})}}const oD={apiConfig:!1},xU=e=>e.configs.configs,iD=e=>e.configs.haveFetchedConfig,RU=e=>e.configs.configs["log-level"];function vS(e){return async(t,n)=>{let r;try{r=await dS(e)}catch{t(ng("apiConfig"));return}if(!r.ok){console.log("Error fetch configs",r.statusText),t(ng("apiConfig"));return}const o=await r.json();t("store/configs#fetchConfigs",a=>{a.configs.configs=o}),iD(n())?jp(e):t(aD())}}function aD(){return e=>{e("store/configs#markHaveFetchedConfig",t=>{t.configs.haveFetchedConfig=!0})}}function CU(e,t){return async n=>{eD(e,t).then(r=>{r.ok===!1&&console.log("Error update configs",r.statusText)},r=>{throw console.log("Error update configs",r),r}).then(()=>{n(vS(e))}),n("storeConfigsOptimisticUpdateConfigs",r=>{r.configs.configs={...r.configs.configs,...t}})}}const sD={configs:{port:7890,"socks-port":7891,"redir-port":0,"allow-lan":!1,mode:"Rule","log-level":"uninit"},haveFetchedConfig:!1},jo=e=>{const t=e.app.selectedClashAPIConfigIndex;return e.app.clashAPIConfigs[t]},mS=e=>e.app.selectedClashAPIConfigIndex,Bp=e=>e.app.clashAPIConfigs,zp=e=>e.app.theme,lD=e=>e.app.selectedChartStyleIndex,gS=e=>e.app.latencyTestUrl,OU=e=>e.app.collapsibleIsOpen,kU=e=>e.app.proxySortBy,TU=e=>e.app.hideUnavailableProxies,uD=e=>e.app.autoCloseOldConns,PU=e=>e.app.logStreamingPaused,cD=xI(jr,600);function Vp(e,{baseURL:t,secret:n,metaLabel:r}){const o=Bp(e());for(let i=0;i<o.length;i++){const a=o[i];if(a.baseURL===t&&a.secret===n&&a.metaLabel===r)return i}}function fD(e){return async(t,n)=>{if(Vp(n,e))return;const o={...e,addedAt:Date.now()};t("addClashAPIConfig",i=>{i.app.clashAPIConfigs.push(o)}),jr(n().app)}}function dD(e){return async(t,n)=>{const r=Vp(n,e);t("removeClashAPIConfig",o=>{o.app.clashAPIConfigs.splice(r,1)}),jr(n().app)}}function pD(e){return async(t,n)=>{const r=Vp(n,e);mS(n())!==r&&t("selectClashAPIConfig",i=>{i.app.selectedClashAPIConfigIndex=r}),jr(n().app);try{window.location.reload()}catch{}}}const cc=document.querySelector("html");function fc(e,t){const n=document.createElement("meta");n.setAttribute("name","theme-color"),n.setAttribute("content",e),t&&n.setAttribute("media",t),document.head.appendChild(n)}function hD(e){const t=Array.from(document.querySelectorAll("meta[name=theme-color]"));let n;for(const r of t)r.getAttribute("media")?document.head.removeChild(r):n=r;if(e==="auto")if(fc("#eeeeee","(prefers-color-scheme: light)"),fc("#202020","(prefers-color-scheme: dark)"),n)document.head.removeChild(n);else return;else{const r=e==="light"?"#eeeeee":"#202020";n?n.setAttribute("content",r):fc(r)}}function yS(e="dark"){e==="auto"?cc.setAttribute("data-theme","auto"):e==="dark"?cc.setAttribute("data-theme","dark"):cc.setAttribute("data-theme","light"),hD(e)}function vD(e="auto"){return(t,n)=>{zp(n())!==e&&(yS(e),t("storeSwitchTheme",o=>{o.app.theme=e}),jr(n().app))}}function mD(e){return(t,n)=>{t("appSelectChartStyleIndex",r=>{r.app.selectedChartStyleIndex=Number(e)}),jr(n().app)}}function rg(e,t){return(n,r)=>{n("appUpdateAppConfig",o=>{o.app[e]=t}),jr(r().app)}}function gD(e,t,n){return(r,o)=>{r("updateCollapsibleIsOpen",i=>{i.app.collapsibleIsOpen[`${e}:${t}`]=n}),cD(o().app)}}var Pg,Lg;const yD={baseURL:(Lg=(Pg=document.getElementById("app"))==null?void 0:Pg.getAttribute("data-base-url"))!=null?Lg:"http://127.0.0.1:9090",secret:"",addedAt:0},wD={selectedClashAPIConfigIndex:0,cla
* @reach/utils v0.18.0
*
* Copyright (c) 2018-2022, React Training LLC
*
* 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 AS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ne(e,t){return n=>{if(e&&e(n),!n.defaultPrevented)return t(n)}}function fg(e){return typeof e=="boolean"}function vl(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function c3(e){return typeof e=="string"}function f3(e,t){if(e!=null)if(vl(e))e(t);else try{e.current=t}catch{throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}function Br(...e){return R.exports.useCallback(t=>{for(let n of e)f3(n,t)},e)}function sr(e){return AS()?e?e.ownerDocument:document:null}function d3(e,t){let n=R.exports.createContext(t);function r(i){let{children:a,...s}=i,l=R.exports.useMemo(()=>s,Object.values(s));return w(n.Provider,{value:l,children:a})}function o(i){let a=R.exports.useContext(n);if(a)return a;if(t)return t;throw Error(`${i} must be rendered inside of a ${e} component.`)}return n.displayName=`${e}Context`,r.displayName=`${e}Provider`,[r,o]}function p3(e){var r,o;let t=sr(e),n=t.defaultView||window;return t?{width:(r=t.documentElement.clientWidth)!=null?r:n.innerWidth,height:(o=t.documentElement.clientHeight)!=null?o:n.innerHeight}:{width:0,height:0}}function bs(e){return"which"in e?e.which===3:"button"in e?e.button===2:!1}function No(...e){return e.filter(t=>t!=null).join("--")}function qp(){}function IS(){let[,e]=R.exports.useState(Object.create(null));return R.exports.useCallback(()=>{e(Object.create(null))},[])}var mo=AS()?R.exports.useLayoutEffect:R.exports.useEffect;function mc(e){const t=R.exports.useRef(null);return R.exports.useEffect(()=>{t.current=e},[e]),t.current}function h3(e,t){let[n,r]=R.exports.useState(t),o=R.exports.useCallback(i=>{e.current=i,r(i)},[]);return[n,o]}var v3=({children:e,type:t="reach-portal",containerRef:n})=>{let r=R.exports.useRef(null),o=R.exports.useRef(null),i=IS();return R.exports.useEffect(()=>{n!=null&&(typeof n!="object"||!("current"in n)?console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."):n.current==null&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))},[n]),mo(()=>{if(!r.current)return;let a=r.current.ownerDocument,s=(n==null?void 0:n.current)||a.body;return o.current=a==null?void 0:a.createElement(t),s.appendChild(o.current),i(),()=>{o.current&&s&&s.removeChild(o.current)}},[t,i,n]),o.current?aa.exports.createPortal(e,o.current):w("span",{ref:r})},Qp=({unstable_skipInitialRender:e,...t})=>{let[n,r]=R.exports.useState(!1);return R.exports.useEffect(()=>{e&&r(!0)},[e]),e&&!n?null:w(v3,{...t})};Qp.displayName="Portal";var m3=["bottom","height","left","right","top","width"],g3=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),m3.some(function(r){return t[r]!==n[r]})},Nn=new Map,DS,y3=function e(){var t=[];Nn.forEach(function(n,r){var o=r.getBoundingClientRect();g3(o,n.rect)&&(n.rect=o,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),DS=window.requestAnimationFrame(e)};function w3(e,t){return{observe:function(){var r=Nn.size===0;Nn.has(e)?Nn.get(e).callbacks.push(t):Nn.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&y3()},unobserve:function(){var r=Nn.get(e);if(r){var o=r.callbacks.indexOf(t);o>=0&&r.callbacks.splice(o,1),r.callbacks.length||Nn.delete(e),Nn.size||cancelAnimationFrame(DS)}}}}function ml(e,t,n){var d;let r,o;fg(t)?r=t:(r=(d=t==null?void 0:t.observe)!=null?d:!0,o=t==null?void 0:t.onChange),vl(n)&&(o=n),R.exports.useEffect(()=>{fg(t)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the se
* tabbable 5.3.3
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var S3=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Qf=S3.join(","),MS=typeof Element>"u",ea=MS?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gf=!MS&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},_3=function(t,n,r){var o=Array.prototype.slice.apply(t.querySelectorAll(Qf));return n&&ea.call(t,Qf)&&o.unshift(t),o=o.filter(r),o},b3=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,u=e(l,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:a,candidates:u})}else{var c=ea.call(a,Qf);c&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(f&&d){var h=e(f===!0?a.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scope:a,candidates:h})}else i.unshift.apply(i,a.children)}}return o},$S=function(t,n){return t.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},E3=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},US=function(t){return t.tagName==="INPUT"},x3=function(t){return US(t)&&t.type==="hidden"},R3=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},C3=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},O3=function(t){if(!t.name)return!0;var n=t.form||Gf(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var i=C3(o,t.form);return!i||i===t},k3=function(t){return US(t)&&t.type==="radio"},T3=function(t){return k3(t)&&!O3(t)},dg=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},P3=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=ea.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(ea.call(a,"details:not([open]) *"))return!0;var s=Gf(t).host,l=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!r||r==="full"){if(typeof o=="function"){for(var u=t;t;){var c=t.parentElement,f=Gf(t);if(c&&!c.shadowRoot&&o(c)===!0)return dg(t);t.assignedSlot?t=t.assignedSlot:!c&&f!==t.ownerDocument?t=f.host:t=c}t=u}if(l)return!t.getClientRects().length}else if(r==="non-zero-area")return dg(t);return!1},L3=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return ea.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},N3=function(t,n){return!(n.disabled||x3(n)||P3(n,t)||R3(n)||L3(n))},pg=function(t,n){return!(T3(n)||$S(n)<0||!N3(t,n))},A3=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},I3=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scope,s=a?o.scope:o,l=$S(s,a),u=a?e(o.candidates):s;l===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:l,item:o,isScope:a,content:u})}),r.sort(E3).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},hn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=b3([t],n.includeContainer,{filter:pg.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:A3}):r=_3(t,n
If you are using the \`@reach/descendants\` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.
If you are using another \`reach-ui\` package, this is probably our bug!
To report a bug, open a new issue:
https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md
IMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed.`),Q3(l);let u=q3(l,i),c;return u===-1?c=[...l,{...s,element:i,index:l.length}]:c=mg(l,{...s,element:i,index:u},u),c}),()=>{!i||r(l=>l.filter(u=>i!==u.element))}):qp,[]);return w(e.Provider,{value:R.exports.useMemo(()=>({descendants:n,registerDescendant:o}),[n,o]),children:t})}function K3(e,t){let{descendants:n}=R.exports.useContext(e),{callback:r,currentIndex:o,filter:i,key:a="index",orientation:s="vertical",rotate:l=!0,rtl:u=!1}=t;return function(f){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(f.key))return;let d=o!=null?o:-1,h=i?n.filter(i):n;if(!h.length)return;let g=h.findIndex(v=>v.index===o);function y(){return d===p().index?l?m():h[g]:h[(g+1)%h.length]}function b(){return d===m().index?l?p():h[g]:h[(g-1+h.length)%h.length]}function m(){return h[0]}function p(){return h[h.length-1]}switch(f.key){case"ArrowDown":if(s==="vertical"||s==="both"){f.preventDefault();let N=y();r(a==="option"?N:N[a])}break;case"ArrowUp":if(s==="vertical"||s==="both"){f.preventDefault();let N=b();r(a==="option"?N:N[a])}break;case"ArrowLeft":if(s==="horizontal"||s==="both"){f.preventDefault();let N=(u?y:b)();r(a==="option"?N:N[a])}break;case"ArrowRight":if(s==="horizontal"||s==="both"){f.preventDefault();let N=(u?b:y)();r(a==="option"?N:N[a])}break;case"PageUp":f.preventDefault();let v=(f.ctrlKey?b:m)();r(a==="option"?v:v[a]);break;case"Home":f.preventDefault();let S=m();r(a==="option"?S:S[a]);break;case"PageDown":f.preventDefault();let k=(f.ctrlKey?y:p)();r(a==="option"?k:k[a]);break;case"End":f.preventDefault();let C=p();r(a==="option"?C:C[a]);break}}}function BS(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function q3(e,t){if(!t||!e.length)return-1;let n=e.length;for(;n--;){let r=e[n].element;if(!!r&&BS(r,t))return n+1}return-1}function mg(e,t,n){return n==null||!(n in e)?[...e,t]:[...e.slice(0,n),t,...e.slice(n)]}function Q3(e){return e.sort((t,n)=>!t.element||!n.element?0:BS(t.element,n.element)?-1:1).map((t,n)=>({...t,index:n}))}var zS="CLEAR_SELECTION_INDEX",Xp="CLICK_MENU_ITEM",ta="CLOSE_MENU",G3="OPEN_MENU_AT_FIRST_ITEM",Xf="OPEN_MENU_AT_INDEX",VS="OPEN_MENU_CLEARED",Yf="SEARCH_FOR_ITEM",Wn="SELECT_ITEM_AT_INDEX",Jf="SET_BUTTON_ID",su=B3("DropdownDescendantContext"),[X3,Ra]=d3("Dropdown"),Y3={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},WS=({id:e,children:t})=>{let n=R.exports.useRef(null),r=R.exports.useRef(null),o=R.exports.useRef(null),[i,a]=V3(),s=jS(e),l=e||No("menu",s),u=No("menu-button",l),[c,f]=R.exports.useReducer(o4,{...Y3,triggerId:u}),d=R.exports.useRef(!1),h=R.exports.useRef([]),g=R.exports.useRef(!1),y=R.exports.useRef({x:0,y:0});return R.exports.useEffect(()=>{c.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{gl(r.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[c.isExpanded]),w(H3,{context:su,items:i,set:a,children:w(X3,{dispatch:f,dropdownId:l,dropdownRef:r,mouseDownStartPosRef:y,popoverRef:o,readyToSelect:g,selectCallbacks:h,state:c,triggerClickedRef:d,triggerRef:n,children:vl(t)?t({isExpanded:c.isExpanded,isOpen:c.isExpanded}):t})})};WS.displayName="DropdownProvider";function HS({onKeyDown:e,onMouseDown:t,id:n,ref:r,...o}){let{dispatch:i,dropdownId:a,mouseDownStartPosRef:s,triggerClickedRef:l,triggerRef:u,state:{triggerId:c,isExpanded:f}}=Ra("useDropdownTrigger"),d=Br(u,r),h=XS(),g=R.exports.useMemo(()=>h.findIndex(m=>!m.disabled),[h]);R.exports.useEffect(()=>{n!=null&&n!==c&&i({type:Jf,payload:n})},[c,i,n]),R.exports.useEffect(()=>{n==null&&i({type:Jf,payload:No("menu-button",a)})},[a,i,n]);function y(m){switch(m.key){case"ArrowDown":case"ArrowUp":m.preventDefault(),i({type:Xf,payload:{index:g}});break;case"Enter":case" ":i({type:Xf,payload:{index:g}});break}}function b(m){bs(m.nativeEvent)||(s.current={x:m.clientX,y:m.clientY},f||(l.current=!0),i(f?{type:ta}:{type:VS}))}return{data:{isExpanded:f,controls:a},props:{...o,ref:d,id:c|
* react-is.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 Be=typeof Symbol=="function"&&Symbol.for,Yp=Be?Symbol.for("react.element"):60103,Jp=Be?Symbol.for("react.portal"):60106,lu=Be?Symbol.for("react.fragment"):60107,uu=Be?Symbol.for("react.strict_mode"):60108,cu=Be?Symbol.for("react.profiler"):60114,fu=Be?Symbol.for("react.provider"):60109,du=Be?Symbol.for("react.context"):60110,Zp=Be?Symbol.for("react.async_mode"):60111,pu=Be?Symbol.for("react.concurrent_mode"):60111,hu=Be?Symbol.for("react.forward_ref"):60112,vu=Be?Symbol.for("react.suspense"):60113,i4=Be?Symbol.for("react.suspense_list"):60120,mu=Be?Symbol.for("react.memo"):60115,gu=Be?Symbol.for("react.lazy"):60116,a4=Be?Symbol.for("react.block"):60121,s4=Be?Symbol.for("react.fundamental"):60117,l4=Be?Symbol.for("react.responder"):60118,u4=Be?Symbol.for("react.scope"):60119;function bt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yp:switch(e=e.type,e){case Zp:case pu:case lu:case cu:case uu:case vu:return e;default:switch(e=e&&e.$$typeof,e){case du:case hu:case gu:case mu:case fu:return e;default:return t}}case Jp:return t}}}function JS(e){return bt(e)===pu}ve.AsyncMode=Zp;ve.ConcurrentMode=pu;ve.ContextConsumer=du;ve.ContextProvider=fu;ve.Element=Yp;ve.ForwardRef=hu;ve.Fragment=lu;ve.Lazy=gu;ve.Memo=mu;ve.Portal=Jp;ve.Profiler=cu;ve.StrictMode=uu;ve.Suspense=vu;ve.isAsyncMode=function(e){return JS(e)||bt(e)===Zp};ve.isConcurrentMode=JS;ve.isContextConsumer=function(e){return bt(e)===du};ve.isContextProvider=function(e){return bt(e)===fu};ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yp};ve.isForwardRef=function(e){return bt(e)===hu};ve.isFragment=function(e){return bt(e)===lu};ve.isLazy=function(e){return bt(e)===gu};ve.isMemo=function(e){return bt(e)===mu};ve.isPortal=function(e){return bt(e)===Jp};ve.isProfiler=function(e){return bt(e)===cu};ve.isStrictMode=function(e){return bt(e)===uu};ve.isSuspense=function(e){return bt(e)===vu};ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lu||e===pu||e===cu||e===uu||e===vu||e===i4||typeof e=="object"&&e!==null&&(e.$$typeof===gu||e.$$typeof===mu||e.$$typeof===fu||e.$$typeof===du||e.$$typeof===hu||e.$$typeof===s4||e.$$typeof===l4||e.$$typeof===u4||e.$$typeof===a4)};ve.typeOf=bt;(function(e){e.exports=ve})(YS);var ZS=R.exports.forwardRef(({as:e=R.exports.Fragment,id:t,children:n,...r},o)=>{let a=R.exports.useMemo(()=>{try{return YS.exports.isFragment(w(e,{}))}catch{return!1}},[e])?{}:{ref:o,id:t,"data-reach-menu":"",...r};return w(e,{...a,children:w(WS,{id:t,children:n})})});ZS.displayName="Menu";var e_=R.exports.forwardRef(({as:e="button",...t},n)=>{let{data:{isExpanded:r,controls:o},props:i}=HS({...t,ref:n});return w(e,{"aria-expanded":r?!0:void 0,"aria-haspopup":!0,"aria-controls":o,...i,"data-reach-menu-button":""})});e_.displayName="MenuButton";var eh=R.exports.forwardRef(({as:e="div",...t},n)=>{let{data:{disabled:r},props:o}=KS({...t,ref:n});return w(e,{role:"menuitem",...o,"aria-disabled":r||void 0,"data-reach-menu-item":""})});eh.displayName="MenuItemImpl";var t_=R.exports.forwardRef(({as:e="div",...t},n)=>w(eh,{...t,ref:n,as:e}));t_.displayName="MenuItem";var n_=R.exports.forwardRef(({as:e="div",...t},n)=>{let{data:{activeDescendant:r,triggerId:o},props:i}=qS({...t,ref:n});return w(e,{"aria-activedescendant":r,"aria-labelledby":o||void 0,role:"menu",...i,"data-reach-menu-items":""})});n_.displayName="MenuItems";var c4=R.exports.forwardRef(({as:e="a",component:t,onSelect:n,...r},o)=>(R.exports.useEffect(()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[t]),w(eh,{...r,ref:o,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:n||qp})));c4.displayName="MenuLink";var r_=R.exports.forwardRef(({portal:e=!0,...t},n)=>w(o_,{portal:e,children:w(n_,{...t,ref:n,"data-reach-menu-list":""})}));r_.displayName="MenuList";var o_=R.exports.forwardRef(({as:e="div",...t},n)=>{let{data:{portal:r,targetRef:o,position:i},props:a}=QS({...t,ref:n}),s={"data-reach-menu-popover":""};return r?w(Gp,{...a,...s,as:e,targetRef:o,position:i,unstable_skipInitialPor