From 34b19ec311fbcc164e9d4ce895d4c3de7222c4e4 Mon Sep 17 00:00:00 2001 From: user890104 Date: Sat, 8 Jul 2023 12:46:17 +0000 Subject: [PATCH] deploy: b1d6934086220a12bf678aeb8b14a01e41065026 --- 404.html | 2 +- .../{index-4165adb1.js => index-17eb84ff.js} | 54 +++++++++--------- assets/index-17eb84ff.js.gz | Bin 0 -> 218509 bytes assets/index-17eb84ff.js.map | 1 + assets/index-4165adb1.js.gz | Bin 218434 -> 0 bytes assets/index-4165adb1.js.map | 1 - index.html | 2 +- 7 files changed, 30 insertions(+), 30 deletions(-) rename assets/{index-4165adb1.js => index-17eb84ff.js} (83%) create mode 100644 assets/index-17eb84ff.js.gz create mode 100644 assets/index-17eb84ff.js.map delete mode 100644 assets/index-4165adb1.js.gz delete mode 100644 assets/index-4165adb1.js.map diff --git a/404.html b/404.html index 6a22469..7d592eb 100644 --- a/404.html +++ b/404.html @@ -6,7 +6,7 @@ Fauna - + diff --git a/assets/index-4165adb1.js b/assets/index-17eb84ff.js similarity index 83% rename from assets/index-4165adb1.js rename to assets/index-17eb84ff.js index 03c2309..c59c1b3 100644 --- a/assets/index-4165adb1.js +++ b/assets/index-17eb84ff.js @@ -1,4 +1,4 @@ -function Im(e,t){for(var r=0;rn[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function x1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Yo={},_1={get exports(){return Yo},set exports(e){Yo=e}},Bu={},$={},E1={get exports(){return $},set exports(e){$=e}},ye={};/** +function Mm(e,t){for(var r=0;rn[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function x1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Yo={},_1={get exports(){return Yo},set exports(e){Yo=e}},Bu={},$={},E1={get exports(){return $},set exports(e){$=e}},ye={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Im(e,t){for(var r=0;r>>1,re=R[q];if(0>>1;qi(K,B))iei(ne,K)?(R[q]=ne,R[ie]=B,q=ie):(R[q]=K,R[Y]=B,q=Y);else if(iei(ne,B))R[q]=ne,R[ie]=B,q=ie;else break e}}return N}function i(R,N){var B=R.sortIndex-N.sortIndex;return B!==0?B:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(R){for(var N=r(l);N!==null;){if(N.callback===null)n(l);else if(N.startTime<=R)n(l),N.sortIndex=N.expirationTime,t(u,N);else break;N=r(l)}}function w(R){if(g=!1,p(R),!m)if(r(u)!==null)m=!0,z(x);else{var N=r(l);N!==null&&Q(w,N.startTime-R)}}function x(R,N){m=!1,g&&(g=!1,y(P),P=-1),h=!0;var B=d;try{for(p(N),f=r(u);f!==null&&(!(f.expirationTime>N)||R&&!S());){var q=f.callback;if(typeof q=="function"){f.callback=null,d=f.priorityLevel;var re=q(f.expirationTime<=N);N=e.unstable_now(),typeof re=="function"?f.callback=re:f===r(u)&&n(u),p(N)}else n(u);f=r(u)}if(f!==null)var oe=!0;else{var Y=r(l);Y!==null&&Q(w,Y.startTime-N),oe=!1}return oe}finally{f=null,d=B,h=!1}}var _=!1,O=null,P=-1,A=5,L=-1;function S(){return!(e.unstable_now()-LR||125q?(R.sortIndex=B,t(l,R),r(u)===null&&R===r(l)&&(g?(y(P),P=-1):g=!0,Q(w,B-q))):(R.sortIndex=re,t(u,R),m||h||(m=!0,z(x))),R},e.unstable_shouldYield=S,e.unstable_wrapCallback=function(R){var N=d;return function(){var B=d;d=N;try{return R.apply(this,arguments)}finally{d=B}}}})(zm);(function(e){e.exports=zm})(Q1);/** + */(function(e){function t(R,N){var B=R.length;R.push(N);e:for(;0>>1,re=R[q];if(0>>1;qi(K,B))iei(ne,K)?(R[q]=ne,R[ie]=B,q=ie):(R[q]=K,R[Y]=B,q=Y);else if(iei(ne,B))R[q]=ne,R[ie]=B,q=ie;else break e}}return N}function i(R,N){var B=R.sortIndex-N.sortIndex;return B!==0?B:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(R){for(var N=r(l);N!==null;){if(N.callback===null)n(l);else if(N.startTime<=R)n(l),N.sortIndex=N.expirationTime,t(u,N);else break;N=r(l)}}function w(R){if(g=!1,p(R),!m)if(r(u)!==null)m=!0,z(x);else{var N=r(l);N!==null&&Q(w,N.startTime-R)}}function x(R,N){m=!1,g&&(g=!1,y(P),P=-1),h=!0;var B=d;try{for(p(N),f=r(u);f!==null&&(!(f.expirationTime>N)||R&&!S());){var q=f.callback;if(typeof q=="function"){f.callback=null,d=f.priorityLevel;var re=q(f.expirationTime<=N);N=e.unstable_now(),typeof re=="function"?f.callback=re:f===r(u)&&n(u),p(N)}else n(u);f=r(u)}if(f!==null)var oe=!0;else{var Y=r(l);Y!==null&&Q(w,Y.startTime-N),oe=!1}return oe}finally{f=null,d=B,h=!1}}var _=!1,O=null,P=-1,A=5,L=-1;function S(){return!(e.unstable_now()-LR||125q?(R.sortIndex=B,t(l,R),r(u)===null&&R===r(l)&&(g?(y(P),P=-1):g=!0,Q(w,B-q))):(R.sortIndex=re,t(u,R),m||h||(m=!0,z(x))),R},e.unstable_shouldYield=S,e.unstable_wrapCallback=function(R){var N=d;return function(){var B=d;d=N;try{return R.apply(this,arguments)}finally{d=B}}}})(Wm);(function(e){e.exports=Wm})(Q1);/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function Im(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qc=Object.prototype.hasOwnProperty,K1=/^[: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]*$/,yp={},wp={};function Y1(e){return qc.call(wp,e)?!0:qc.call(yp,e)?!1:K1.test(e)?wp[e]=!0:(yp[e]=!0,!1)}function G1(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function X1(e,t,r,n){if(t===null||typeof t>"u"||G1(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 gt(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new gt(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){et[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var _d=/[\-:]([a-z])/g;function Ed(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_d,Ed);et[t]=new gt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_d,Ed);et[t]=new gt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_d,Ed);et[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cd(e,t,r,n){var i=et.hasOwnProperty(t)?et[t]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qc=Object.prototype.hasOwnProperty,K1=/^[: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]*$/,wp={},bp={};function Y1(e){return qc.call(bp,e)?!0:qc.call(wp,e)?!1:K1.test(e)?bp[e]=!0:(wp[e]=!0,!1)}function G1(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function X1(e,t,r,n){if(t===null||typeof t>"u"||G1(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 gt(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new gt(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){et[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ed=/[\-:]([a-z])/g;function Cd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ed,Cd);et[t]=new gt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ed,Cd);et[t]=new gt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ed,Cd);et[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function kd(e,t,r,n){var i=et.hasOwnProperty(t)?et[t]:null;(i!==null?i.type!==0:n||!(2s||i[a]!==o[s]){var u=` -`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Hl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Co(e):""}function J1(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=ql(e.type,!1),e;case 11:return e=ql(e.type.render,!1),e;case 1:return e=ql(e.type,!0),e;default:return""}}function Yc(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 yi:return"Fragment";case mi:return"Portal";case Vc:return"Profiler";case kd:return"StrictMode";case Qc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vm:return(e.displayName||"Context")+".Consumer";case qm:return(e._context.displayName||"Context")+".Provider";case Od:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Td:return t=e.displayName||null,t!==null?t:Yc(e.type)||"Memo";case Xr:t=e._payload,e=e._init;try{return Yc(e(t))}catch{}}return null}function Z1(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 Yc(t);case 8:return t===kd?"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 _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Km(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eS(e){var t=Km(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qa(e){e._valueTracker||(e._valueTracker=eS(e))}function Ym(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Km(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ms(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 Gc(e,t){var r=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Sp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_n(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gm(e,t){t=t.checked,t!=null&&Cd(e,"checked",t,!1)}function Xc(e,t){Gm(e,t);var r=_n(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Jc(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Jc(e,t,r){(t!=="number"||Ms(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ko=Array.isArray;function Mi(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Io={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tS=["Webkit","ms","Moz","O"];Object.keys(Io).forEach(function(e){tS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Io[t]=Io[e]})});function ey(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Io.hasOwnProperty(e)&&Io[e]?(""+t).trim():t+"px"}function ty(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=ey(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var rS=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tf(e,t){if(t){if(rS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function rf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nf=null;function Pd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var of=null,Li=null,Ni=null;function Cp(e){if(e=La(e)){if(typeof of!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Hu(t),of(e.stateNode,e.type,t))}}function ry(e){Li?Ni?Ni.push(e):Ni=[e]:Li=e}function ny(){if(Li){var e=Li,t=Ni;if(Ni=Li=null,Cp(e),t)for(e=0;e>>=0,e===0?32:31-(hS(e)/pS|0)|0}var Ya=64,Ga=4194304;function Oo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function js(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=Oo(s):(o&=a,o!==0&&(n=Oo(o)))}else a=r&~i,a!==0?n=Oo(a):o!==0&&(n=Oo(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ia(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zt(t),e[t]=r}function yS(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Lo),Lp=String.fromCharCode(32),Np=!1;function _y(e,t){switch(e){case"keyup":return VS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ey(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function KS(e,t){switch(e){case"compositionend":return Ey(t);case"keypress":return t.which!==32?null:(Np=!0,Lp);case"textInput":return e=t.data,e===Lp&&Np?null:e;default:return null}}function YS(e,t){if(wi)return e==="compositionend"||!jd&&_y(e,t)?(e=Sy(),ms=Ld=an=null,wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Bp(r)}}function Ty(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ty(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Py(){for(var e=window,t=Ms();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ms(e.document)}return t}function Fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ix(e){var t=Py(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ty(r.ownerDocument.documentElement,r)){if(n!==null&&Fd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=Up(r,o);var a=Up(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,bi=null,ff=null,Do=null,df=!1;function $p(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;df||bi==null||bi!==Ms(n)||(n=bi,"selectionStart"in n&&Fd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Do&&na(Do,n)||(Do=n,n=Us(ff,"onSelect"),0_i||(e.current=yf[_i],yf[_i]=null,_i--)}function ke(e,t){_i++,yf[_i]=e.current,e.current=t}var En={},ut=In(En),bt=In(!1),Yn=En;function zi(e,t){var r=e.type.contextTypes;if(!r)return En;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function St(e){return e=e.childContextTypes,e!=null}function zs(){Te(bt),Te(ut)}function Kp(e,t,r){if(ut.current!==En)throw Error(ce(168));ke(ut,t),ke(bt,r)}function Fy(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ce(108,Z1(e)||"Unknown",i));return De({},r,n)}function Ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,Yn=ut.current,ke(ut,e),ke(bt,bt.current),!0}function Yp(e,t,r){var n=e.stateNode;if(!n)throw Error(ce(169));r?(e=Fy(e,t,Yn),n.__reactInternalMemoizedMergedChildContext=e,Te(bt),Te(ut),ke(ut,e)):Te(bt),ke(bt,r)}var Or=null,qu=!1,oc=!1;function By(e){Or===null?Or=[e]:Or.push(e)}function gx(e){qu=!0,By(e)}function Mn(){if(!oc&&Or!==null){oc=!0;var e=0,t=Se;try{var r=Or;for(Se=1;e>=a,i-=a,Ar=1<<32-Zt(t)+i|r<P?(A=O,O=null):A=O.sibling;var L=d(y,O,p[P],w);if(L===null){O===null&&(O=A);break}e&&O&&L.alternate===null&&t(y,O),v=o(L,v,P),_===null?x=L:_.sibling=L,_=L,O=A}if(P===p.length)return r(y,O),Ie&&jn(y,P),x;if(O===null){for(;PP?(A=O,O=null):A=O.sibling;var S=d(y,O,L.value,w);if(S===null){O===null&&(O=A);break}e&&O&&S.alternate===null&&t(y,O),v=o(S,v,P),_===null?x=S:_.sibling=S,_=S,O=A}if(L.done)return r(y,O),Ie&&jn(y,P),x;if(O===null){for(;!L.done;P++,L=p.next())L=f(y,L.value,w),L!==null&&(v=o(L,v,P),_===null?x=L:_.sibling=L,_=L);return Ie&&jn(y,P),x}for(O=n(y,O);!L.done;P++,L=p.next())L=h(O,y,P,L.value,w),L!==null&&(e&&L.alternate!==null&&O.delete(L.key===null?P:L.key),v=o(L,v,P),_===null?x=L:_.sibling=L,_=L);return e&&O.forEach(function(T){return t(y,T)}),Ie&&jn(y,P),x}function b(y,v,p,w){if(typeof p=="object"&&p!==null&&p.type===yi&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Va:e:{for(var x=p.key,_=v;_!==null;){if(_.key===x){if(x=p.type,x===yi){if(_.tag===7){r(y,_.sibling),v=i(_,p.props.children),v.return=y,y=v;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Xr&&rv(x)===_.type){r(y,_.sibling),v=i(_,p.props),v.ref=vo(y,_,p),v.return=y,y=v;break e}r(y,_);break}else t(y,_);_=_.sibling}p.type===yi?(v=Vn(p.props.children,y.mode,w,p.key),v.return=y,y=v):(w=Cs(p.type,p.key,p.props,null,y.mode,w),w.ref=vo(y,v,p),w.return=y,y=w)}return a(y);case mi:e:{for(_=p.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===p.containerInfo&&v.stateNode.implementation===p.implementation){r(y,v.sibling),v=i(v,p.children||[]),v.return=y,y=v;break e}else{r(y,v);break}else t(y,v);v=v.sibling}v=hc(p,y.mode,w),v.return=y,y=v}return a(y);case Xr:return _=p._init,b(y,v,_(p._payload),w)}if(ko(p))return m(y,v,p,w);if(lo(p))return g(y,v,p,w);ns(y,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,v!==null&&v.tag===6?(r(y,v.sibling),v=i(v,p),v.return=y,y=v):(r(y,v),v=dc(p,y.mode,w),v.return=y,y=v),a(y)):r(y,v)}return b}var Hi=Qy(!0),Ky=Qy(!1),Na={},mr=In(Na),sa=In(Na),ua=In(Na);function Wn(e){if(e===Na)throw Error(ce(174));return e}function Qd(e,t){switch(ke(ua,t),ke(sa,e),ke(mr,Na),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ef(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ef(t,e)}Te(mr),ke(mr,t)}function qi(){Te(mr),Te(sa),Te(ua)}function Yy(e){Wn(ua.current);var t=Wn(mr.current),r=ef(t,e.type);t!==r&&(ke(sa,e),ke(mr,r))}function Kd(e){sa.current===e&&(Te(mr),Te(sa))}var Le=In(0);function Ys(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ac=[];function Yd(){for(var e=0;er?r:4,e(!0);var n=sc.transition;sc.transition={};try{e(!1),t()}finally{Se=r,sc.transition=n}}function f0(){return zt().memoizedState}function Sx(e,t,r){var n=gn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},d0(e))h0(t,r);else if(r=Wy(e,t,r,n),r!==null){var i=pt();er(r,e,n,i),p0(r,t,n)}}function xx(e,t,r){var n=gn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(d0(e))h0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,rr(s,a)){var u=t.interleaved;u===null?(i.next=i,qd(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=Wy(e,t,i,n),r!==null&&(i=pt(),er(r,e,n,i),p0(r,t,n))}}function d0(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function h0(e,t){jo=Gs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function p0(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ad(e,r)}}var Xs={readContext:$t,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},_x={readContext:$t,useCallback:function(e,t){return fr().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:iv,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ss(4194308,4,a0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ss(4,2,e,t)},useMemo:function(e,t){var r=fr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Sx.bind(null,Ne,e),[n.memoizedState,e]},useRef:function(e){var t=fr();return e={current:e},t.memoizedState=e},useState:nv,useDebugValue:eh,useDeferredValue:function(e){return fr().memoizedState=e},useTransition:function(){var e=nv(!1),t=e[0];return e=bx.bind(null,e[1]),fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ne,i=fr();if(Ie){if(r===void 0)throw Error(ce(407));r=r()}else{if(r=t(),Ge===null)throw Error(ce(349));Xn&30||Jy(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,iv(e0.bind(null,n,o,e),[e]),n.flags|=2048,fa(9,Zy.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=fr(),t=Ge.identifierPrefix;if(Ie){var r=Ir,n=Ar;r=(n&~(1<<32-Zt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=la++,0")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Hl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Co(e):""}function J1(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=ql(e.type,!1),e;case 11:return e=ql(e.type.render,!1),e;case 1:return e=ql(e.type,!0),e;default:return""}}function Yc(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 yi:return"Fragment";case mi:return"Portal";case Vc:return"Profiler";case Od:return"StrictMode";case Qc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Td:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pd:return t=e.displayName||null,t!==null?t:Yc(e.type)||"Memo";case Xr:t=e._payload,e=e._init;try{return Yc(e(t))}catch{}}return null}function Z1(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 Yc(t);case 8:return t===Od?"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 _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ym(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eS(e){var t=Ym(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qa(e){e._valueTracker||(e._valueTracker=eS(e))}function Gm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Ym(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ms(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 Gc(e,t){var r=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_n(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xm(e,t){t=t.checked,t!=null&&kd(e,"checked",t,!1)}function Xc(e,t){Xm(e,t);var r=_n(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Jc(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _p(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Jc(e,t,r){(t!=="number"||Ms(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ko=Array.isArray;function Mi(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Io={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tS=["Webkit","ms","Moz","O"];Object.keys(Io).forEach(function(e){tS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Io[t]=Io[e]})});function ty(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Io.hasOwnProperty(e)&&Io[e]?(""+t).trim():t+"px"}function ry(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=ty(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var rS=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tf(e,t){if(t){if(rS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function rf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nf=null;function Rd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var of=null,Li=null,Ni=null;function kp(e){if(e=La(e)){if(typeof of!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Hu(t),of(e.stateNode,e.type,t))}}function ny(e){Li?Ni?Ni.push(e):Ni=[e]:Li=e}function iy(){if(Li){var e=Li,t=Ni;if(Ni=Li=null,kp(e),t)for(e=0;e>>=0,e===0?32:31-(hS(e)/pS|0)|0}var Ya=64,Ga=4194304;function Oo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function js(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=Oo(s):(o&=a,o!==0&&(n=Oo(o)))}else a=r&~i,a!==0?n=Oo(a):o!==0&&(n=Oo(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ia(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zt(t),e[t]=r}function yS(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Lo),Np=String.fromCharCode(32),Dp=!1;function Ey(e,t){switch(e){case"keyup":return VS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function KS(e,t){switch(e){case"compositionend":return Cy(t);case"keypress":return t.which!==32?null:(Dp=!0,Np);case"textInput":return e=t.data,e===Np&&Dp?null:e;default:return null}}function YS(e,t){if(wi)return e==="compositionend"||!Fd&&Ey(e,t)?(e=xy(),ms=Nd=an=null,wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Up(r)}}function Py(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Py(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ry(){for(var e=window,t=Ms();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ms(e.document)}return t}function Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ix(e){var t=Ry(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Py(r.ownerDocument.documentElement,r)){if(n!==null&&Bd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=$p(r,o);var a=$p(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,bi=null,ff=null,Do=null,df=!1;function zp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;df||bi==null||bi!==Ms(n)||(n=bi,"selectionStart"in n&&Bd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Do&&na(Do,n)||(Do=n,n=Us(ff,"onSelect"),0_i||(e.current=yf[_i],yf[_i]=null,_i--)}function ke(e,t){_i++,yf[_i]=e.current,e.current=t}var En={},ut=In(En),bt=In(!1),Yn=En;function zi(e,t){var r=e.type.contextTypes;if(!r)return En;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function St(e){return e=e.childContextTypes,e!=null}function zs(){Te(bt),Te(ut)}function Yp(e,t,r){if(ut.current!==En)throw Error(ce(168));ke(ut,t),ke(bt,r)}function By(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ce(108,Z1(e)||"Unknown",i));return De({},r,n)}function Ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,Yn=ut.current,ke(ut,e),ke(bt,bt.current),!0}function Gp(e,t,r){var n=e.stateNode;if(!n)throw Error(ce(169));r?(e=By(e,t,Yn),n.__reactInternalMemoizedMergedChildContext=e,Te(bt),Te(ut),ke(ut,e)):Te(bt),ke(bt,r)}var Or=null,qu=!1,oc=!1;function Uy(e){Or===null?Or=[e]:Or.push(e)}function gx(e){qu=!0,Uy(e)}function Mn(){if(!oc&&Or!==null){oc=!0;var e=0,t=Se;try{var r=Or;for(Se=1;e>=a,i-=a,Ar=1<<32-Zt(t)+i|r<P?(A=O,O=null):A=O.sibling;var L=d(y,O,p[P],w);if(L===null){O===null&&(O=A);break}e&&O&&L.alternate===null&&t(y,O),v=o(L,v,P),_===null?x=L:_.sibling=L,_=L,O=A}if(P===p.length)return r(y,O),Ie&&jn(y,P),x;if(O===null){for(;PP?(A=O,O=null):A=O.sibling;var S=d(y,O,L.value,w);if(S===null){O===null&&(O=A);break}e&&O&&S.alternate===null&&t(y,O),v=o(S,v,P),_===null?x=S:_.sibling=S,_=S,O=A}if(L.done)return r(y,O),Ie&&jn(y,P),x;if(O===null){for(;!L.done;P++,L=p.next())L=f(y,L.value,w),L!==null&&(v=o(L,v,P),_===null?x=L:_.sibling=L,_=L);return Ie&&jn(y,P),x}for(O=n(y,O);!L.done;P++,L=p.next())L=h(O,y,P,L.value,w),L!==null&&(e&&L.alternate!==null&&O.delete(L.key===null?P:L.key),v=o(L,v,P),_===null?x=L:_.sibling=L,_=L);return e&&O.forEach(function(T){return t(y,T)}),Ie&&jn(y,P),x}function b(y,v,p,w){if(typeof p=="object"&&p!==null&&p.type===yi&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Va:e:{for(var x=p.key,_=v;_!==null;){if(_.key===x){if(x=p.type,x===yi){if(_.tag===7){r(y,_.sibling),v=i(_,p.props.children),v.return=y,y=v;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Xr&&nv(x)===_.type){r(y,_.sibling),v=i(_,p.props),v.ref=vo(y,_,p),v.return=y,y=v;break e}r(y,_);break}else t(y,_);_=_.sibling}p.type===yi?(v=Vn(p.props.children,y.mode,w,p.key),v.return=y,y=v):(w=Cs(p.type,p.key,p.props,null,y.mode,w),w.ref=vo(y,v,p),w.return=y,y=w)}return a(y);case mi:e:{for(_=p.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===p.containerInfo&&v.stateNode.implementation===p.implementation){r(y,v.sibling),v=i(v,p.children||[]),v.return=y,y=v;break e}else{r(y,v);break}else t(y,v);v=v.sibling}v=hc(p,y.mode,w),v.return=y,y=v}return a(y);case Xr:return _=p._init,b(y,v,_(p._payload),w)}if(ko(p))return m(y,v,p,w);if(lo(p))return g(y,v,p,w);ns(y,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,v!==null&&v.tag===6?(r(y,v.sibling),v=i(v,p),v.return=y,y=v):(r(y,v),v=dc(p,y.mode,w),v.return=y,y=v),a(y)):r(y,v)}return b}var Hi=Ky(!0),Yy=Ky(!1),Na={},mr=In(Na),sa=In(Na),ua=In(Na);function Wn(e){if(e===Na)throw Error(ce(174));return e}function Kd(e,t){switch(ke(ua,t),ke(sa,e),ke(mr,Na),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ef(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ef(t,e)}Te(mr),ke(mr,t)}function qi(){Te(mr),Te(sa),Te(ua)}function Gy(e){Wn(ua.current);var t=Wn(mr.current),r=ef(t,e.type);t!==r&&(ke(sa,e),ke(mr,r))}function Yd(e){sa.current===e&&(Te(mr),Te(sa))}var Le=In(0);function Ys(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ac=[];function Gd(){for(var e=0;er?r:4,e(!0);var n=sc.transition;sc.transition={};try{e(!1),t()}finally{Se=r,sc.transition=n}}function d0(){return zt().memoizedState}function Sx(e,t,r){var n=gn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},h0(e))p0(t,r);else if(r=Hy(e,t,r,n),r!==null){var i=pt();er(r,e,n,i),v0(r,t,n)}}function xx(e,t,r){var n=gn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(h0(e))p0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,rr(s,a)){var u=t.interleaved;u===null?(i.next=i,Vd(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=Hy(e,t,i,n),r!==null&&(i=pt(),er(r,e,n,i),v0(r,t,n))}}function h0(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function p0(e,t){jo=Gs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function v0(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Id(e,r)}}var Xs={readContext:$t,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},_x={readContext:$t,useCallback:function(e,t){return fr().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:ov,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ss(4194308,4,s0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ss(4,2,e,t)},useMemo:function(e,t){var r=fr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Sx.bind(null,Ne,e),[n.memoizedState,e]},useRef:function(e){var t=fr();return e={current:e},t.memoizedState=e},useState:iv,useDebugValue:th,useDeferredValue:function(e){return fr().memoizedState=e},useTransition:function(){var e=iv(!1),t=e[0];return e=bx.bind(null,e[1]),fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ne,i=fr();if(Ie){if(r===void 0)throw Error(ce(407));r=r()}else{if(r=t(),Ye===null)throw Error(ce(349));Xn&30||Zy(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,ov(t0.bind(null,n,o,e),[e]),n.flags|=2048,fa(9,e0.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=fr(),t=Ye.identifierPrefix;if(Ie){var r=Ir,n=Ar;r=(n&~(1<<32-Zt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=la++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[dr]=t,e[aa]=n,_0(e,t,!1,!1),t.stateNode=e;e:{switch(a=rf(r,n),r){case"dialog":Oe("cancel",e),Oe("close",e),i=n;break;case"iframe":case"object":case"embed":Oe("load",e),i=n;break;case"video":case"audio":for(i=0;iQi&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ys(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),go(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ie)return rt(t),null}else 2*Be()-o.renderingStartTime>Qi&&r!==1073741824&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Be(),t.sibling=null,r=Le.current,ke(Le,n?r&1|2:r&1),t):(rt(t),null);case 22:case 23:return ah(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ot&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function Ax(e,t){switch(Ud(t),t.tag){case 1:return St(t.type)&&zs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(),Te(bt),Te(ut),Yd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kd(t),null;case 13:if(Te(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Le),null;case 4:return qi(),null;case 10:return Hd(t.type._context),null;case 22:case 23:return ah(),null;case 24:return null;default:return null}}var os=!1,it=!1,Ix=typeof WeakSet=="function"?WeakSet:Set,de=null;function Oi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){je(e,t,n)}else r.current=null}function Rf(e,t,r){try{r()}catch(n){je(e,t,n)}}var hv=!1;function Mx(e,t){if(hf=Fs,e=Py(),Fd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=a+i),f!==o||n!==0&&f.nodeType!==3||(u=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++l===i&&(s=a),d===o&&++c===n&&(u=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(pf={focusedElem:e,selectionRange:r},Fs=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Yt(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(w){je(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return m=hv,hv=!1,m}function Fo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Rf(t,r,o)}i=i.next}while(i!==n)}}function Ku(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Af(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function k0(e){var t=e.alternate;t!==null&&(e.alternate=null,k0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[aa],delete t[mf],delete t[px],delete t[vx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function O0(e){return e.tag===5||e.tag===3||e.tag===4}function pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||O0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function If(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$s));else if(n!==4&&(e=e.child,e!==null))for(If(e,t,r),e=e.sibling;e!==null;)If(e,t,r),e=e.sibling}function Mf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Mf(e,t,r),e=e.sibling;e!==null;)Mf(e,t,r),e=e.sibling}var Je=null,Gt=!1;function Vr(e,t,r){for(r=r.child;r!==null;)T0(e,t,r),r=r.sibling}function T0(e,t,r){if(gr&&typeof gr.onCommitFiberUnmount=="function")try{gr.onCommitFiberUnmount(Uu,r)}catch{}switch(r.tag){case 5:it||Oi(r,t);case 6:var n=Je,i=Gt;Je=null,Vr(e,t,r),Je=n,Gt=i,Je!==null&&(Gt?(e=Je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Je.removeChild(r.stateNode));break;case 18:Je!==null&&(Gt?(e=Je,r=r.stateNode,e.nodeType===8?ic(e.parentNode,r):e.nodeType===1&&ic(e,r),ta(e)):ic(Je,r.stateNode));break;case 4:n=Je,i=Gt,Je=r.stateNode.containerInfo,Gt=!0,Vr(e,t,r),Je=n,Gt=i;break;case 0:case 11:case 14:case 15:if(!it&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Rf(r,t,a),i=i.next}while(i!==n)}Vr(e,t,r);break;case 1:if(!it&&(Oi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){je(r,t,s)}Vr(e,t,r);break;case 21:Vr(e,t,r);break;case 22:r.mode&1?(it=(n=it)||r.memoizedState!==null,Vr(e,t,r),it=n):Vr(e,t,r);break;default:Vr(e,t,r)}}function vv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ix),t.forEach(function(n){var i=zx.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=Be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Nx(n/1960))-n,10e?16:e,sn===null)var n=!1;else{if(e=sn,sn=null,eu=0,we&6)throw Error(ce(331));var i=we;for(we|=4,de=e.current;de!==null;){var o=de,a=o.child;if(de.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uBe()-ih?qn(e,0):nh|=r),xt(e,t)}function D0(e,t){t===0&&(e.mode&1?(t=Ga,Ga<<=1,!(Ga&130023424)&&(Ga=4194304)):t=1);var r=pt();e=Fr(e,t),e!==null&&(Ia(e,t,r),xt(e,r))}function $x(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),D0(e,r)}function zx(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ce(314))}n!==null&&n.delete(t),D0(e,r)}var j0;j0=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)yt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return yt=!1,Px(e,t,r);yt=!!(e.flags&131072)}else yt=!1,Ie&&t.flags&1048576&&Uy(t,qs,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;xs(e,t),e=t.pendingProps;var i=zi(t,ut.current);ji(t,r),i=Xd(null,t,n,e,i,r);var o=Jd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(n)?(o=!0,Ws(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vd(t),i.updater=Vu,t.stateNode=i,i._reactInternals=t,_f(t,n,e,r),t=kf(null,t,n,!0,o,r)):(t.tag=0,Ie&&o&&Bd(t),dt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(xs(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Hx(n),e=Yt(n,e),i){case 0:t=Cf(null,t,n,e,r);break e;case 1:t=cv(null,t,n,e,r);break e;case 11:t=uv(null,t,n,e,r);break e;case 14:t=lv(null,t,n,Yt(n.type,e),r);break e}throw Error(ce(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),Cf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),cv(e,t,n,i,r);case 3:e:{if(b0(t),e===null)throw Error(ce(387));n=t.pendingProps,o=t.memoizedState,i=o.element,Hy(e,t),Ks(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Vi(Error(ce(423)),t),t=fv(e,t,n,r,i);break e}else if(n!==i){i=Vi(Error(ce(424)),t),t=fv(e,t,n,r,i);break e}else for(Rt=hn(t.stateNode.containerInfo.firstChild),At=t,Ie=!0,Xt=null,r=Ky(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Wi(),n===i){t=Br(e,t,r);break e}dt(e,t,n,r)}t=t.child}return t;case 5:return Yy(t),e===null&&bf(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,vf(n,i)?a=null:o!==null&&vf(n,o)&&(t.flags|=32),w0(e,t),dt(e,t,a,r),t.child;case 6:return e===null&&bf(t),null;case 13:return S0(e,t,r);case 4:return Qd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Hi(t,null,n,r):dt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),uv(e,t,n,i,r);case 7:return dt(e,t,t.pendingProps,r),t.child;case 8:return dt(e,t,t.pendingProps.children,r),t.child;case 12:return dt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ke(Vs,n._currentValue),n._currentValue=a,o!==null)if(rr(o.value,a)){if(o.children===i.children&&!bt.current){t=Br(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Mr(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),Sf(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(ce(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Sf(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ji(t,r),i=$t(i),n=n(i),t.flags|=1,dt(e,t,n,r),t.child;case 14:return n=t.type,i=Yt(n,t.pendingProps),i=Yt(n.type,i),lv(e,t,n,i,r);case 15:return m0(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),xs(e,t),t.tag=1,St(n)?(e=!0,Ws(t)):e=!1,ji(t,r),Vy(t,n,i),_f(t,n,i,r),kf(null,t,n,!0,e,r);case 19:return x0(e,t,r);case 22:return y0(e,t,r)}throw Error(ce(156,t.tag))};function F0(e,t){return cy(e,t)}function Wx(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,r,n){return new Wx(e,t,r,n)}function uh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hx(e){if(typeof e=="function")return uh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Od)return 11;if(e===Td)return 14}return 2}function mn(e,t){var r=e.alternate;return r===null?(r=Bt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Cs(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")uh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yi:return Vn(r.children,i,o,t);case kd:a=8,i|=8;break;case Vc:return e=Bt(12,r,t,i|2),e.elementType=Vc,e.lanes=o,e;case Qc:return e=Bt(13,r,t,i),e.elementType=Qc,e.lanes=o,e;case Kc:return e=Bt(19,r,t,i),e.elementType=Kc,e.lanes=o,e;case Qm:return Gu(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qm:a=10;break e;case Vm:a=9;break e;case Od:a=11;break e;case Td:a=14;break e;case Xr:a=16,n=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=Bt(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Vn(e,t,r,n){return e=Bt(7,e,n,t),e.lanes=r,e}function Gu(e,t,r,n){return e=Bt(22,e,n,t),e.elementType=Qm,e.lanes=r,e.stateNode={isHidden:!1},e}function dc(e,t,r){return e=Bt(6,e,null,t),e.lanes=r,e}function hc(e,t,r){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qx(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function lh(e,t,r,n,i,o,a,s,u){return e=new qx(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vd(o),e}function Vx(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=Lt})(V1);const Pi=Mm(Ui);var _v=Ui;Wc.createRoot=_v.createRoot,Wc.hydrateRoot=_v.hydrateRoot;var Ff={},Xx={get exports(){return Ff},set exports(e){Ff=e}},z0={};/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function cc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ef(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var kx=typeof WeakMap=="function"?WeakMap:Map;function g0(e,t,r){r=Mr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Zs||(Zs=!0,Lf=n),Ef(e,t)},r}function m0(e,t,r){r=Mr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Ef(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Ef(e,t),typeof n!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function av(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new kx;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Ux.bind(null,e,t,r),t.then(e,e))}function sv(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 uv(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Mr(-1,1),t.tag=2,pn(r,t,1))),r.lanes|=1),e)}var Ox=zr.ReactCurrentOwner,yt=!1;function dt(e,t,r,n){t.child=e===null?Yy(t,null,r,n):Hi(t,e.child,r,n)}function lv(e,t,r,n,i){r=r.render;var o=t.ref;return ji(t,i),n=Jd(e,t,r,n,o,i),r=Zd(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Br(e,t,i)):(Ie&&r&&Ud(t),t.flags|=1,dt(e,t,n,i),t.child)}function cv(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!lh(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,y0(e,t,o,n,i)):(e=Cs(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:na,r(a,n)&&e.ref===t.ref)return Br(e,t,i)}return t.flags|=1,e=mn(o,n),e.ref=t.ref,e.return=t,t.child=e}function y0(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(na(o,n)&&e.ref===t.ref)if(yt=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,Br(e,t,i)}return Cf(e,t,r,n,i)}function w0(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(Ti,Ot),Ot|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(Ti,Ot),Ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ke(Ti,Ot),Ot|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ke(Ti,Ot),Ot|=n;return dt(e,t,i,r),t.child}function b0(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Cf(e,t,r,n,i){var o=St(r)?Yn:ut.current;return o=zi(t,o),ji(t,i),r=Jd(e,t,r,n,o,i),n=Zd(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Br(e,t,i)):(Ie&&n&&Ud(t),t.flags|=1,dt(e,t,r,i),t.child)}function fv(e,t,r,n,i){if(St(r)){var o=!0;Ws(t)}else o=!1;if(ji(t,i),t.stateNode===null)xs(e,t),Qy(t,r,n),_f(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=$t(l):(l=St(r)?Yn:ut.current,l=zi(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||u!==l)&&rv(t,a,n,l),Jr=!1;var d=t.memoizedState;a.state=d,Ks(t,n,a,i),u=t.memoizedState,s!==n||d!==u||bt.current||Jr?(typeof c=="function"&&(xf(t,r,c,n),u=t.memoizedState),(s=Jr||tv(t,r,s,n,d,u,l))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,qy(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Yt(t.type,s),a.props=l,f=t.pendingProps,d=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=$t(u):(u=St(r)?Yn:ut.current,u=zi(t,u));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==u)&&rv(t,a,n,u),Jr=!1,d=t.memoizedState,a.state=d,Ks(t,n,a,i);var m=t.memoizedState;s!==f||d!==m||bt.current||Jr?(typeof h=="function"&&(xf(t,r,h,n),m=t.memoizedState),(l=Jr||tv(t,r,l,n,d,m,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),a.props=n,a.state=m,a.context=u,n=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return kf(e,t,r,n,o,i)}function kf(e,t,r,n,i,o){b0(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&Gp(t,r,!1),Br(e,t,o);n=t.stateNode,Ox.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Hi(t,e.child,null,o),t.child=Hi(t,null,s,o)):dt(e,t,s,o),t.memoizedState=n.state,i&&Gp(t,r,!0),t.child}function S0(e){var t=e.stateNode;t.pendingContext?Yp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yp(e,t.context,!1),Kd(e,t.containerInfo)}function dv(e,t,r,n,i){return Wi(),zd(i),t.flags|=256,dt(e,t,r,n),t.child}var Of={dehydrated:null,treeContext:null,retryLane:0};function Tf(e){return{baseLanes:e,cachePool:null,transitions:null}}function x0(e,t,r){var n=t.pendingProps,i=Le.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ke(Le,i&1),e===null)return bf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,o?(n=t.mode,o=t.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Gu(a,n,0,null),e=Vn(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Tf(r),t.memoizedState=Of,e):rh(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Tx(e,t,a,n,s,i,r);if(o){o=n.fallback,a=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=mn(i,u),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=mn(s,o):(o=Vn(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,a=e.child.memoizedState,a=a===null?Tf(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=Of,n}return o=e.child,e=o.sibling,n=mn(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function rh(e,t){return t=Gu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function is(e,t,r,n){return n!==null&&zd(n),Hi(t,e.child,null,r),e=rh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tx(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=cc(Error(ce(422))),is(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Gu({mode:"visible",children:n.children},i,0,null),o=Vn(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Hi(t,e.child,null,a),t.child.memoizedState=Tf(a),t.memoizedState=Of,o);if(!(t.mode&1))return is(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(ce(419)),n=cc(o,n,void 0),is(e,t,a,n)}if(s=(a&e.childLanes)!==0,yt||s){if(n=Ye,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Fr(e,i),er(n,e,i,-1))}return uh(),n=cc(Error(ce(421))),is(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$x.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Rt=hn(i.nextSibling),At=t,Ie=!0,Xt=null,e!==null&&(jt[Ft++]=Ar,jt[Ft++]=Ir,jt[Ft++]=Gn,Ar=e.id,Ir=e.overflow,Gn=t),t=rh(t,n.children),t.flags|=4096,t)}function hv(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Sf(e.return,t,r)}function fc(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function _0(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(dt(e,t,n.children,r),n=Le.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hv(e,r,t);else if(e.tag===19)hv(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ke(Le,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Ys(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),fc(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ys(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}fc(t,!0,r,null,o);break;case"together":fc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Br(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,r=mn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=mn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Px(e,t,r){switch(t.tag){case 3:S0(t),Wi();break;case 5:Gy(t);break;case 1:St(t.type)&&Ws(t);break;case 4:Kd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ke(Vs,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ke(Le,Le.current&1),t.flags|=128,null):r&t.child.childLanes?x0(e,t,r):(ke(Le,Le.current&1),e=Br(e,t,r),e!==null?e.sibling:null);ke(Le,Le.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return _0(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ke(Le,Le.current),n)break;return null;case 22:case 23:return t.lanes=0,w0(e,t,r)}return Br(e,t,r)}var E0,Pf,C0,k0;E0=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Pf=function(){};C0=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Wn(mr.current);var o=null;switch(r){case"input":i=Gc(e,i),n=Gc(e,n),o=[];break;case"select":i=De({},i,{value:void 0}),n=De({},n,{value:void 0}),o=[];break;case"textarea":i=Zc(e,i),n=Zc(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$s)}tf(r,n);var a;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Go.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(s=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(r||(r={}),r[a]=u[a])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Go.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Oe("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};k0=function(e,t,r,n){r!==n&&(t.flags|=4)};function go(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Rx(e,t,r){var n=t.pendingProps;switch($d(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return St(t.type)&&zs(),rt(t),null;case 3:return n=t.stateNode,qi(),Te(bt),Te(ut),Gd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(rs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xt!==null&&(jf(Xt),Xt=null))),Pf(e,t),rt(t),null;case 5:Yd(t);var i=Wn(ua.current);if(r=t.type,e!==null&&t.stateNode!=null)C0(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ce(166));return rt(t),null}if(e=Wn(mr.current),rs(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[dr]=t,n[aa]=o,e=(t.mode&1)!==0,r){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[dr]=t,e[aa]=n,E0(e,t,!1,!1),t.stateNode=e;e:{switch(a=rf(r,n),r){case"dialog":Oe("cancel",e),Oe("close",e),i=n;break;case"iframe":case"object":case"embed":Oe("load",e),i=n;break;case"video":case"audio":for(i=0;iQi&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ys(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),go(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ie)return rt(t),null}else 2*Be()-o.renderingStartTime>Qi&&r!==1073741824&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Be(),t.sibling=null,r=Le.current,ke(Le,n?r&1|2:r&1),t):(rt(t),null);case 22:case 23:return sh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ot&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function Ax(e,t){switch($d(t),t.tag){case 1:return St(t.type)&&zs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(),Te(bt),Te(ut),Gd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yd(t),null;case 13:if(Te(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Le),null;case 4:return qi(),null;case 10:return qd(t.type._context),null;case 22:case 23:return sh(),null;case 24:return null;default:return null}}var os=!1,it=!1,Ix=typeof WeakSet=="function"?WeakSet:Set,de=null;function Oi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){je(e,t,n)}else r.current=null}function Rf(e,t,r){try{r()}catch(n){je(e,t,n)}}var pv=!1;function Mx(e,t){if(hf=Fs,e=Ry(),Bd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=a+i),f!==o||n!==0&&f.nodeType!==3||(u=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++l===i&&(s=a),d===o&&++c===n&&(u=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(pf={focusedElem:e,selectionRange:r},Fs=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Yt(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(w){je(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return m=pv,pv=!1,m}function Fo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Rf(t,r,o)}i=i.next}while(i!==n)}}function Ku(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Af(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function O0(e){var t=e.alternate;t!==null&&(e.alternate=null,O0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[aa],delete t[mf],delete t[px],delete t[vx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function T0(e){return e.tag===5||e.tag===3||e.tag===4}function vv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function If(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$s));else if(n!==4&&(e=e.child,e!==null))for(If(e,t,r),e=e.sibling;e!==null;)If(e,t,r),e=e.sibling}function Mf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Mf(e,t,r),e=e.sibling;e!==null;)Mf(e,t,r),e=e.sibling}var Xe=null,Gt=!1;function Vr(e,t,r){for(r=r.child;r!==null;)P0(e,t,r),r=r.sibling}function P0(e,t,r){if(gr&&typeof gr.onCommitFiberUnmount=="function")try{gr.onCommitFiberUnmount(Uu,r)}catch{}switch(r.tag){case 5:it||Oi(r,t);case 6:var n=Xe,i=Gt;Xe=null,Vr(e,t,r),Xe=n,Gt=i,Xe!==null&&(Gt?(e=Xe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Xe.removeChild(r.stateNode));break;case 18:Xe!==null&&(Gt?(e=Xe,r=r.stateNode,e.nodeType===8?ic(e.parentNode,r):e.nodeType===1&&ic(e,r),ta(e)):ic(Xe,r.stateNode));break;case 4:n=Xe,i=Gt,Xe=r.stateNode.containerInfo,Gt=!0,Vr(e,t,r),Xe=n,Gt=i;break;case 0:case 11:case 14:case 15:if(!it&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Rf(r,t,a),i=i.next}while(i!==n)}Vr(e,t,r);break;case 1:if(!it&&(Oi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){je(r,t,s)}Vr(e,t,r);break;case 21:Vr(e,t,r);break;case 22:r.mode&1?(it=(n=it)||r.memoizedState!==null,Vr(e,t,r),it=n):Vr(e,t,r);break;default:Vr(e,t,r)}}function gv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ix),t.forEach(function(n){var i=zx.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=Be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Nx(n/1960))-n,10e?16:e,sn===null)var n=!1;else{if(e=sn,sn=null,eu=0,we&6)throw Error(ce(331));var i=we;for(we|=4,de=e.current;de!==null;){var o=de,a=o.child;if(de.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uBe()-oh?qn(e,0):ih|=r),xt(e,t)}function j0(e,t){t===0&&(e.mode&1?(t=Ga,Ga<<=1,!(Ga&130023424)&&(Ga=4194304)):t=1);var r=pt();e=Fr(e,t),e!==null&&(Ia(e,t,r),xt(e,r))}function $x(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),j0(e,r)}function zx(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ce(314))}n!==null&&n.delete(t),j0(e,r)}var F0;F0=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)yt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return yt=!1,Px(e,t,r);yt=!!(e.flags&131072)}else yt=!1,Ie&&t.flags&1048576&&$y(t,qs,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;xs(e,t),e=t.pendingProps;var i=zi(t,ut.current);ji(t,r),i=Jd(null,t,n,e,i,r);var o=Zd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(n)?(o=!0,Ws(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Qd(t),i.updater=Vu,t.stateNode=i,i._reactInternals=t,_f(t,n,e,r),t=kf(null,t,n,!0,o,r)):(t.tag=0,Ie&&o&&Ud(t),dt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(xs(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Hx(n),e=Yt(n,e),i){case 0:t=Cf(null,t,n,e,r);break e;case 1:t=fv(null,t,n,e,r);break e;case 11:t=lv(null,t,n,e,r);break e;case 14:t=cv(null,t,n,Yt(n.type,e),r);break e}throw Error(ce(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),Cf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),fv(e,t,n,i,r);case 3:e:{if(S0(t),e===null)throw Error(ce(387));n=t.pendingProps,o=t.memoizedState,i=o.element,qy(e,t),Ks(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Vi(Error(ce(423)),t),t=dv(e,t,n,r,i);break e}else if(n!==i){i=Vi(Error(ce(424)),t),t=dv(e,t,n,r,i);break e}else for(Rt=hn(t.stateNode.containerInfo.firstChild),At=t,Ie=!0,Xt=null,r=Yy(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Wi(),n===i){t=Br(e,t,r);break e}dt(e,t,n,r)}t=t.child}return t;case 5:return Gy(t),e===null&&bf(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,vf(n,i)?a=null:o!==null&&vf(n,o)&&(t.flags|=32),b0(e,t),dt(e,t,a,r),t.child;case 6:return e===null&&bf(t),null;case 13:return x0(e,t,r);case 4:return Kd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Hi(t,null,n,r):dt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),lv(e,t,n,i,r);case 7:return dt(e,t,t.pendingProps,r),t.child;case 8:return dt(e,t,t.pendingProps.children,r),t.child;case 12:return dt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ke(Vs,n._currentValue),n._currentValue=a,o!==null)if(rr(o.value,a)){if(o.children===i.children&&!bt.current){t=Br(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Mr(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),Sf(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(ce(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Sf(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ji(t,r),i=$t(i),n=n(i),t.flags|=1,dt(e,t,n,r),t.child;case 14:return n=t.type,i=Yt(n,t.pendingProps),i=Yt(n.type,i),cv(e,t,n,i,r);case 15:return y0(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),xs(e,t),t.tag=1,St(n)?(e=!0,Ws(t)):e=!1,ji(t,r),Qy(t,n,i),_f(t,n,i,r),kf(null,t,n,!0,e,r);case 19:return _0(e,t,r);case 22:return w0(e,t,r)}throw Error(ce(156,t.tag))};function B0(e,t){return fy(e,t)}function Wx(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,r,n){return new Wx(e,t,r,n)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hx(e){if(typeof e=="function")return lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Td)return 11;if(e===Pd)return 14}return 2}function mn(e,t){var r=e.alternate;return r===null?(r=Bt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Cs(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")lh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yi:return Vn(r.children,i,o,t);case Od:a=8,i|=8;break;case Vc:return e=Bt(12,r,t,i|2),e.elementType=Vc,e.lanes=o,e;case Qc:return e=Bt(13,r,t,i),e.elementType=Qc,e.lanes=o,e;case Kc:return e=Bt(19,r,t,i),e.elementType=Kc,e.lanes=o,e;case Km:return Gu(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:a=10;break e;case Qm:a=9;break e;case Td:a=11;break e;case Pd:a=14;break e;case Xr:a=16,n=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=Bt(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Vn(e,t,r,n){return e=Bt(7,e,n,t),e.lanes=r,e}function Gu(e,t,r,n){return e=Bt(22,e,n,t),e.elementType=Km,e.lanes=r,e.stateNode={isHidden:!1},e}function dc(e,t,r){return e=Bt(6,e,null,t),e.lanes=r,e}function hc(e,t,r){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qx(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ch(e,t,r,n,i,o,a,s,u){return e=new qx(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qd(o),e}function Vx(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=Lt})(V1);const Pi=Lm(Ui);var Ev=Ui;Wc.createRoot=Ev.createRoot,Wc.hydrateRoot=Ev.hydrateRoot;var Ff={},Xx={get exports(){return Ff},set exports(e){Ff=e}},W0={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ki=$;function Jx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zx=typeof Object.is=="function"?Object.is:Jx,e_=Ki.useState,t_=Ki.useEffect,r_=Ki.useLayoutEffect,n_=Ki.useDebugValue;function i_(e,t){var r=t(),n=e_({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return r_(function(){i.value=r,i.getSnapshot=t,pc(i)&&o({inst:i})},[e,r,t]),t_(function(){return pc(i)&&o({inst:i}),e(function(){pc(i)&&o({inst:i})})},[e]),n_(r),r}function pc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zx(e,r)}catch{return!0}}function o_(e,t){return t()}var a_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o_:i_;z0.useSyncExternalStore=Ki.useSyncExternalStore!==void 0?Ki.useSyncExternalStore:a_;(function(e){e.exports=z0})(Xx);var Bf={},s_={get exports(){return Bf},set exports(e){Bf=e}},W0={};/** + */var Ki=$;function Jx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zx=typeof Object.is=="function"?Object.is:Jx,e_=Ki.useState,t_=Ki.useEffect,r_=Ki.useLayoutEffect,n_=Ki.useDebugValue;function i_(e,t){var r=t(),n=e_({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return r_(function(){i.value=r,i.getSnapshot=t,pc(i)&&o({inst:i})},[e,r,t]),t_(function(){return pc(i)&&o({inst:i}),e(function(){pc(i)&&o({inst:i})})},[e]),n_(r),r}function pc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zx(e,r)}catch{return!0}}function o_(e,t){return t()}var a_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o_:i_;W0.useSyncExternalStore=Ki.useSyncExternalStore!==void 0?Ki.useSyncExternalStore:a_;(function(e){e.exports=W0})(Xx);var Bf={},s_={get exports(){return Bf},set exports(e){Bf=e}},H0={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -53,14 +53,14 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var tl=$,u_=Ff;function l_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var c_=typeof Object.is=="function"?Object.is:l_,f_=u_.useSyncExternalStore,d_=tl.useRef,h_=tl.useEffect,p_=tl.useMemo,v_=tl.useDebugValue;W0.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=d_(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=p_(function(){function u(h){if(!l){if(l=!0,c=h,h=n(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return f=m}return f=h}if(m=f,c_(c,h))return m;var g=n(h);return i!==void 0&&i(m,g)?m:(c=h,f=g)}var l=!1,c,f,d=r===void 0?null:r;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,r,n,i]);var s=f_(e,o[0],o[1]);return h_(function(){a.hasValue=!0,a.value=s},[s]),v_(s),s};(function(e){e.exports=W0})(s_);function g_(e){e()}let H0=g_;const m_=e=>H0=e,y_=()=>H0,Cn=$.createContext(null);function q0(){return $.useContext(Cn)}const w_=()=>{throw new Error("uSES not initialized!")};let V0=w_;const b_=e=>{V0=e},S_=(e,t)=>e===t;function x_(e=Cn){const t=e===Cn?q0:()=>$.useContext(e);return function(n,i=S_){const{store:o,subscription:a,getServerState:s}=t(),u=V0(a.addNestedSub,o.getState,s||o.getState,n,i);return $.useDebugValue(u),u}}const ha=x_();function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var $f={},__={get exports(){return $f},set exports(e){$f=e}},xe={};/** @license React v16.13.1 + */var tl=$,u_=Ff;function l_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var c_=typeof Object.is=="function"?Object.is:l_,f_=u_.useSyncExternalStore,d_=tl.useRef,h_=tl.useEffect,p_=tl.useMemo,v_=tl.useDebugValue;H0.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=d_(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=p_(function(){function u(h){if(!l){if(l=!0,c=h,h=n(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return f=m}return f=h}if(m=f,c_(c,h))return m;var g=n(h);return i!==void 0&&i(m,g)?m:(c=h,f=g)}var l=!1,c,f,d=r===void 0?null:r;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,r,n,i]);var s=f_(e,o[0],o[1]);return h_(function(){a.hasValue=!0,a.value=s},[s]),v_(s),s};(function(e){e.exports=H0})(s_);function g_(e){e()}let q0=g_;const m_=e=>q0=e,y_=()=>q0,Cn=$.createContext(null);function V0(){return $.useContext(Cn)}const w_=()=>{throw new Error("uSES not initialized!")};let Q0=w_;const b_=e=>{Q0=e},S_=(e,t)=>e===t;function x_(e=Cn){const t=e===Cn?V0:()=>$.useContext(e);return function(n,i=S_){const{store:o,subscription:a,getServerState:s}=t(),u=Q0(a.addNestedSub,o.getState,s||o.getState,n,i);return $.useDebugValue(u),u}}const ha=x_();function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var $f={},__={get exports(){return $f},set exports(e){$f=e}},xe={};/** @license React v16.13.1 * 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 Xe=typeof Symbol=="function"&&Symbol.for,hh=Xe?Symbol.for("react.element"):60103,ph=Xe?Symbol.for("react.portal"):60106,rl=Xe?Symbol.for("react.fragment"):60107,nl=Xe?Symbol.for("react.strict_mode"):60108,il=Xe?Symbol.for("react.profiler"):60114,ol=Xe?Symbol.for("react.provider"):60109,al=Xe?Symbol.for("react.context"):60110,vh=Xe?Symbol.for("react.async_mode"):60111,sl=Xe?Symbol.for("react.concurrent_mode"):60111,ul=Xe?Symbol.for("react.forward_ref"):60112,ll=Xe?Symbol.for("react.suspense"):60113,E_=Xe?Symbol.for("react.suspense_list"):60120,cl=Xe?Symbol.for("react.memo"):60115,fl=Xe?Symbol.for("react.lazy"):60116,C_=Xe?Symbol.for("react.block"):60121,k_=Xe?Symbol.for("react.fundamental"):60117,O_=Xe?Symbol.for("react.responder"):60118,T_=Xe?Symbol.for("react.scope"):60119;function Dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hh:switch(e=e.type,e){case vh:case sl:case rl:case il:case nl:case ll:return e;default:switch(e=e&&e.$$typeof,e){case al:case ul:case fl:case cl:case ol:return e;default:return t}}case ph:return t}}}function K0(e){return Dt(e)===sl}xe.AsyncMode=vh;xe.ConcurrentMode=sl;xe.ContextConsumer=al;xe.ContextProvider=ol;xe.Element=hh;xe.ForwardRef=ul;xe.Fragment=rl;xe.Lazy=fl;xe.Memo=cl;xe.Portal=ph;xe.Profiler=il;xe.StrictMode=nl;xe.Suspense=ll;xe.isAsyncMode=function(e){return K0(e)||Dt(e)===vh};xe.isConcurrentMode=K0;xe.isContextConsumer=function(e){return Dt(e)===al};xe.isContextProvider=function(e){return Dt(e)===ol};xe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hh};xe.isForwardRef=function(e){return Dt(e)===ul};xe.isFragment=function(e){return Dt(e)===rl};xe.isLazy=function(e){return Dt(e)===fl};xe.isMemo=function(e){return Dt(e)===cl};xe.isPortal=function(e){return Dt(e)===ph};xe.isProfiler=function(e){return Dt(e)===il};xe.isStrictMode=function(e){return Dt(e)===nl};xe.isSuspense=function(e){return Dt(e)===ll};xe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===rl||e===sl||e===il||e===nl||e===ll||e===E_||typeof e=="object"&&e!==null&&(e.$$typeof===fl||e.$$typeof===cl||e.$$typeof===ol||e.$$typeof===al||e.$$typeof===ul||e.$$typeof===k_||e.$$typeof===O_||e.$$typeof===T_||e.$$typeof===C_)};xe.typeOf=Dt;(function(e){e.exports=xe})(__);var Y0=$f,P_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G0={};G0[Y0.ForwardRef]=P_;G0[Y0.Memo]=R_;var Ev={},A_={get exports(){return Ev},set exports(e){Ev=e}},_e={};/** + */var Ge=typeof Symbol=="function"&&Symbol.for,ph=Ge?Symbol.for("react.element"):60103,vh=Ge?Symbol.for("react.portal"):60106,rl=Ge?Symbol.for("react.fragment"):60107,nl=Ge?Symbol.for("react.strict_mode"):60108,il=Ge?Symbol.for("react.profiler"):60114,ol=Ge?Symbol.for("react.provider"):60109,al=Ge?Symbol.for("react.context"):60110,gh=Ge?Symbol.for("react.async_mode"):60111,sl=Ge?Symbol.for("react.concurrent_mode"):60111,ul=Ge?Symbol.for("react.forward_ref"):60112,ll=Ge?Symbol.for("react.suspense"):60113,E_=Ge?Symbol.for("react.suspense_list"):60120,cl=Ge?Symbol.for("react.memo"):60115,fl=Ge?Symbol.for("react.lazy"):60116,C_=Ge?Symbol.for("react.block"):60121,k_=Ge?Symbol.for("react.fundamental"):60117,O_=Ge?Symbol.for("react.responder"):60118,T_=Ge?Symbol.for("react.scope"):60119;function Dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ph:switch(e=e.type,e){case gh:case sl:case rl:case il:case nl:case ll:return e;default:switch(e=e&&e.$$typeof,e){case al:case ul:case fl:case cl:case ol:return e;default:return t}}case vh:return t}}}function Y0(e){return Dt(e)===sl}xe.AsyncMode=gh;xe.ConcurrentMode=sl;xe.ContextConsumer=al;xe.ContextProvider=ol;xe.Element=ph;xe.ForwardRef=ul;xe.Fragment=rl;xe.Lazy=fl;xe.Memo=cl;xe.Portal=vh;xe.Profiler=il;xe.StrictMode=nl;xe.Suspense=ll;xe.isAsyncMode=function(e){return Y0(e)||Dt(e)===gh};xe.isConcurrentMode=Y0;xe.isContextConsumer=function(e){return Dt(e)===al};xe.isContextProvider=function(e){return Dt(e)===ol};xe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ph};xe.isForwardRef=function(e){return Dt(e)===ul};xe.isFragment=function(e){return Dt(e)===rl};xe.isLazy=function(e){return Dt(e)===fl};xe.isMemo=function(e){return Dt(e)===cl};xe.isPortal=function(e){return Dt(e)===vh};xe.isProfiler=function(e){return Dt(e)===il};xe.isStrictMode=function(e){return Dt(e)===nl};xe.isSuspense=function(e){return Dt(e)===ll};xe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===rl||e===sl||e===il||e===nl||e===ll||e===E_||typeof e=="object"&&e!==null&&(e.$$typeof===fl||e.$$typeof===cl||e.$$typeof===ol||e.$$typeof===al||e.$$typeof===ul||e.$$typeof===k_||e.$$typeof===O_||e.$$typeof===T_||e.$$typeof===C_)};xe.typeOf=Dt;(function(e){e.exports=xe})(__);var G0=$f,P_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X0={};X0[G0.ForwardRef]=P_;X0[G0.Memo]=R_;var Cv={},A_={get exports(){return Cv},set exports(e){Cv=e}},_e={};/** * @license React * react-is.production.min.js * @@ -68,9 +68,9 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var gh=Symbol.for("react.element"),mh=Symbol.for("react.portal"),dl=Symbol.for("react.fragment"),hl=Symbol.for("react.strict_mode"),pl=Symbol.for("react.profiler"),vl=Symbol.for("react.provider"),gl=Symbol.for("react.context"),I_=Symbol.for("react.server_context"),ml=Symbol.for("react.forward_ref"),yl=Symbol.for("react.suspense"),wl=Symbol.for("react.suspense_list"),bl=Symbol.for("react.memo"),Sl=Symbol.for("react.lazy"),M_=Symbol.for("react.offscreen"),X0;X0=Symbol.for("react.module.reference");function qt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gh:switch(e=e.type,e){case dl:case pl:case hl:case yl:case wl:return e;default:switch(e=e&&e.$$typeof,e){case I_:case gl:case ml:case Sl:case bl:case vl:return e;default:return t}}case mh:return t}}}_e.ContextConsumer=gl;_e.ContextProvider=vl;_e.Element=gh;_e.ForwardRef=ml;_e.Fragment=dl;_e.Lazy=Sl;_e.Memo=bl;_e.Portal=mh;_e.Profiler=pl;_e.StrictMode=hl;_e.Suspense=yl;_e.SuspenseList=wl;_e.isAsyncMode=function(){return!1};_e.isConcurrentMode=function(){return!1};_e.isContextConsumer=function(e){return qt(e)===gl};_e.isContextProvider=function(e){return qt(e)===vl};_e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gh};_e.isForwardRef=function(e){return qt(e)===ml};_e.isFragment=function(e){return qt(e)===dl};_e.isLazy=function(e){return qt(e)===Sl};_e.isMemo=function(e){return qt(e)===bl};_e.isPortal=function(e){return qt(e)===mh};_e.isProfiler=function(e){return qt(e)===pl};_e.isStrictMode=function(e){return qt(e)===hl};_e.isSuspense=function(e){return qt(e)===yl};_e.isSuspenseList=function(e){return qt(e)===wl};_e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dl||e===pl||e===hl||e===yl||e===wl||e===M_||typeof e=="object"&&e!==null&&(e.$$typeof===Sl||e.$$typeof===bl||e.$$typeof===vl||e.$$typeof===gl||e.$$typeof===ml||e.$$typeof===X0||e.getModuleId!==void 0)};_e.typeOf=qt;(function(e){e.exports=_e})(A_);function L_(){const e=y_();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Cv={notify(){},get:()=>[]};function N_(e,t){let r,n=Cv;function i(f){return u(),n.subscribe(f)}function o(){n.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(r)}function u(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=L_())}function l(){r&&(r(),r=void 0,n.clear(),n=Cv)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:u,tryUnsubscribe:l,getListeners:()=>n};return c}const D_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j_=D_?$.useLayoutEffect:$.useEffect;function kv(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function nu(e,t){if(kv(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{const s=N_(e);return{store:e,subscription:s,getServerState:n?()=>n:void 0}},[e,n]),o=$.useMemo(()=>e.getState(),[e]);j_(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||Cn;return Pt.createElement(a.Provider,{value:i},r)}function J0(e=Cn){const t=e===Cn?q0:()=>$.useContext(e);return function(){const{store:n}=t();return n}}const Z0=J0();function B_(e=Cn){const t=e===Cn?Z0:J0(e);return function(){return t().dispatch}}const U_=B_();b_(Bf.useSyncExternalStoreWithSelector);m_(Ui.unstable_batchedUpdates);function ot(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:xl(e)?2:_l(e)?3:0}function yn(e,t){return On(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ks(e,t){return On(e)===2?e.get(t):e[t]}function ew(e,t,r){var n=On(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function tw(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function xl(e){return V_&&e instanceof Map}function _l(e){return Q_&&e instanceof Set}function Bn(e){return e.o||e.t}function yh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=nw(e);delete t[Re];for(var r=Bi(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=$_),Object.freeze(e),t&&kn(e,function(r,n){return wh(n,!0)},!0)),e}function $_(){ot(2)}function bh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function yr(e){var t=qf[e];return t||ot(18,e),t}function rw(e,t){qf[e]||(qf[e]=t)}function zf(){return pa}function vc(e,t){t&&(yr("Patches"),e.u=[],e.s=[],e.v=t)}function iu(e){Wf(e),e.p.forEach(z_),e.p=null}function Wf(e){e===pa&&(pa=e.l)}function Ov(e){return pa={p:[],l:pa,h:e,m:!0,_:0}}function z_(e){var t=e[Re];t.i===0||t.i===1?t.j():t.O=!0}function gc(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||yr("ES5").S(t,e,n),n?(r[Re].P&&(iu(t),ot(4)),nr(e)&&(e=ou(t,e),t.l||au(t,e)),t.u&&yr("Patches").M(r[Re].t,e,t.u,t.s)):e=ou(t,r,[]),iu(t),t.u&&t.v(t.u,t.s),e!==xh?e:void 0}function ou(e,t,r){if(bh(t))return t;var n=t[Re];if(!n)return kn(t,function(o,a){return Tv(e,n,t,o,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return au(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=yh(n.k):n.o;kn(n.i===3?new Set(i):i,function(o,a){return Tv(e,n,i,o,a,r)}),au(e,i,!1),r&&e.u&&yr("Patches").R(n,r,e.u,e.s)}return n.o}function Tv(e,t,r,n,i,o){if(Ur(i)){var a=ou(e,i,o&&t&&t.i!==3&&!yn(t.D,n)?o.concat(n):void 0);if(ew(r,n,a),!Ur(a))return;e.m=!1}if(nr(i)&&!bh(i)){if(!e.h.F&&e._<1)return;ou(e,i),t&&t.A.l||au(e,i)}}function au(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&wh(t,r)}function mc(e,t){var r=e[Re];return(r?Bn(r):e)[t]}function Pv(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function nn(e){e.P||(e.P=!0,e.l&&nn(e.l))}function yc(e){e.o||(e.o=yh(e.t))}function Hf(e,t,r){var n=xl(t)?yr("MapSet").N(t,r):_l(t)?yr("MapSet").T(t,r):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:zf(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=va;a&&(u=[s],l=Po);var c=Proxy.revocable(u,l),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):yr("ES5").J(t,r);return(r?r.A:zf()).p.push(n),n}function W_(e){return Ur(e)||ot(22,e),function t(r){if(!nr(r))return r;var n,i=r[Re],o=On(r);if(i){if(!i.P&&(i.i<4||!yr("ES5").K(i)))return i.t;i.I=!0,n=Rv(r,o),i.I=!1}else n=Rv(r,o);return kn(n,function(a,s){i&&ks(i.t,a)===s||ew(n,a,t(s))}),o===3?new Set(n):n}(e)}function Rv(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return yh(e)}function H_(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[Re];return va.get(u,o)},set:function(u){var l=this[Re];va.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][Re];if(!s.P)switch(s.i){case 5:n(s)&&nn(s);break;case 4:r(s)&&nn(s)}}}function r(o){for(var a=o.t,s=o.k,u=Bi(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==Re){var f=a[c];if(f===void 0&&!yn(a,c))return!0;var d=s[c],h=d&&d[Re];if(h?h.t!==f:!tw(d,f))return!0}}var m=!!a[Re];return u.length!==Bi(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?y-1:0),p=1;p1?c-1:0),d=1;d=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=yr("Patches").$;return Ur(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Mt=new Y_,Da=Mt.produce,iw=Mt.produceWithPatches.bind(Mt);Mt.setAutoFreeze.bind(Mt);Mt.setUseProxies.bind(Mt);var Mv=Mt.applyPatches.bind(Mt);Mt.createDraft.bind(Mt);Mt.finishDraft.bind(Mt);function tr(e){return tr=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},tr(e)}function G_(e,t){if(tr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ow(e){var t=G_(e,"string");return tr(t)==="symbol"?t:String(t)}function or(e,t,r){return t=ow(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nv(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(nt(1));return r(aw)(e,t)}if(typeof e!="function")throw new Error(nt(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(nt(3));return o}function f(g){if(typeof g!="function")throw new Error(nt(4));if(u)throw new Error(nt(5));var b=!0;return l(),s.push(g),function(){if(b){if(u)throw new Error(nt(6));b=!1,l();var v=s.indexOf(g);s.splice(v,1),a=null}}}function d(g){if(!X_(g))throw new Error(nt(7));if(typeof g.type>"u")throw new Error(nt(8));if(u)throw new Error(nt(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var b=a=s,y=0;y"u")throw new Error(nt(12));if(typeof r(void 0,{type:su.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function sw(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(nt(14));f[h]=b,c=c||b!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function uu(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var l=r[u];return u>0&&(r.splice(u,1),r.unshift(l)),l.value}return lu}function i(s,u){n(s)===lu&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function o(){return r}function a(){r=[]}return{get:n,put:i,getEntries:o,clear:a}}var rE=function(t,r){return t===r};function nE(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,o=0;o1?t-1:0),n=1;n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1;return r&&n}function ja(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function _h(){for(var e=[],t=0;t0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function BE(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var Qv=no;function vw(e,t){if(e===t||!(Qv(e)&&Qv(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,o=Array.isArray(t)?[]:{},a=0,s=r;a=200&&e.status<=299},$E=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function Yv(e){if(!no(e))return e;for(var t=Fe({},e),r=0,n=Object.entries(t);r"u"&&s===Kv&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(y,v){return pu(t,null,function(){var p,w,x,_,O,P,A,L,S,T,C,I,D,z,Q,R,N,B,q,re,oe,Y,K,ie,ne,fe,se,X,V,te,W,H,Z,ee,ae,j,U,M,E,k;return fu(this,function(F){switch(F.label){case 0:return p=v.signal,w=v.getState,x=v.extra,_=v.endpoint,O=v.forced,P=v.type,L=typeof y=="string"?{url:y}:y,S=L.url,T=L.method,C=T===void 0?"GET":T,I=L.headers,D=I===void 0?new Headers(g.headers):I,z=L.body,Q=z===void 0?void 0:z,R=L.params,N=R===void 0?void 0:R,B=L.responseHandler,q=B===void 0?"json":B,re=L.validateStatus,oe=re===void 0?m??UE:re,Y=L.timeout,K=Y===void 0?h:Y,ie=qv(L,["url","method","headers","body","params","responseHandler","validateStatus","timeout"]),ne=Fe(pr(Fe({},g),{method:C,signal:p,body:Q}),ie),D=new Headers(Yv(D)),fe=ne,[4,o(D,{getState:w,extra:x,endpoint:_,forced:O,type:P})];case 1:fe.headers=F.sent()||D,se=function(G){return typeof G=="object"&&(no(G)||Array.isArray(G)||typeof G.toJSON=="function")},!ne.headers.has("content-type")&&se(Q)&&ne.headers.set("content-type",d),se(Q)&&c(ne.headers)&&(ne.body=JSON.stringify(Q)),N&&(X=~S.indexOf("?")?"&":"?",V=u?u(N):new URLSearchParams(Yv(N)),S+=X+V),S=jE(n,S),te=new Request(S,ne),W=te.clone(),A={request:W},Z=!1,ee=K&&setTimeout(function(){Z=!0,v.abort()},K),F.label=2;case 2:return F.trys.push([2,4,5,6]),[4,s(te)];case 3:return H=F.sent(),[3,6];case 4:return ae=F.sent(),[2,{error:{status:Z?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ae)},meta:A}];case 5:return ee&&clearTimeout(ee),[7];case 6:j=H.clone(),A.response=j,M="",F.label=7;case 7:return F.trys.push([7,9,,10]),[4,Promise.all([b(H,q).then(function(G){return U=G},function(G){return E=G}),j.text().then(function(G){return M=G},function(){})])];case 8:if(F.sent(),E)throw E;return[3,10];case 9:return k=F.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:H.status,data:M,error:String(k)},meta:A}];case 10:return[2,oe(H,U)?{data:U,meta:A}:{error:{status:H.status,data:U},meta:A}]}})})};function b(y,v){return pu(this,null,function(){var p;return fu(this,function(w){switch(w.label){case 0:return typeof v=="function"?[2,v(y)]:(v==="content-type"&&(v=c(y.headers)?"json":"text"),v!=="json"?[3,2]:[4,y.text()]);case 1:return p=w.sent(),[2,p.length?JSON.parse(p):null];case 2:return[2,y.text()]}})})}}var Gv=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),ma=_t("__rtkq/focused"),vu=_t("__rtkq/unfocused"),ya=_t("__rtkq/online"),gu=_t("__rtkq/offline"),xc=!1;function zE(e,t){function r(){var n=function(){return e(ma())},i=function(){return e(vu())},o=function(){return e(ya())},a=function(){return e(gu())},s=function(){window.document.visibilityState==="visible"?n():i()};xc||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",n,!1),window.addEventListener("online",o,!1),window.addEventListener("offline",a,!1),xc=!0);var u=function(){window.removeEventListener("focus",n),window.removeEventListener("visibilitychange",s),window.removeEventListener("online",o),window.removeEventListener("offline",a),xc=!1};return u}return t?t(e,{onFocus:ma,onFocusLost:vu,onOffline:gu,onOnline:ya}):r()}var xr;(function(e){e.query="query",e.mutation="mutation"})(xr||(xr={}));function mw(e){return e.type===xr.query}function WE(e){return e.type===xr.mutation}function yw(e,t,r,n,i,o){return HE(e)?e(t,r,n,i).map(Yf).map(o):Array.isArray(e)?e.map(Yf).map(o):[]}function HE(e){return typeof e=="function"}function Yf(e){return typeof e=="string"?{type:e}:e}function _c(e){return e!=null}var wa=Symbol("forceQueryFn"),Gf=function(e){return typeof e[wa]=="function"};function qE(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,o=e.context,a=new Map,s=new Map,u=i.internalActions,l=u.unsubscribeQueryResult,c=u.removeMutationResult,f=u.updateSubscriptionOptions;return{buildInitiateQuery:v,buildInitiateMutation:p,getRunningQueryThunk:m,getRunningMutationThunk:g,getRunningQueriesThunk:b,getRunningMutationsThunk:y,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. + */var mh=Symbol.for("react.element"),yh=Symbol.for("react.portal"),dl=Symbol.for("react.fragment"),hl=Symbol.for("react.strict_mode"),pl=Symbol.for("react.profiler"),vl=Symbol.for("react.provider"),gl=Symbol.for("react.context"),I_=Symbol.for("react.server_context"),ml=Symbol.for("react.forward_ref"),yl=Symbol.for("react.suspense"),wl=Symbol.for("react.suspense_list"),bl=Symbol.for("react.memo"),Sl=Symbol.for("react.lazy"),M_=Symbol.for("react.offscreen"),J0;J0=Symbol.for("react.module.reference");function qt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mh:switch(e=e.type,e){case dl:case pl:case hl:case yl:case wl:return e;default:switch(e=e&&e.$$typeof,e){case I_:case gl:case ml:case Sl:case bl:case vl:return e;default:return t}}case yh:return t}}}_e.ContextConsumer=gl;_e.ContextProvider=vl;_e.Element=mh;_e.ForwardRef=ml;_e.Fragment=dl;_e.Lazy=Sl;_e.Memo=bl;_e.Portal=yh;_e.Profiler=pl;_e.StrictMode=hl;_e.Suspense=yl;_e.SuspenseList=wl;_e.isAsyncMode=function(){return!1};_e.isConcurrentMode=function(){return!1};_e.isContextConsumer=function(e){return qt(e)===gl};_e.isContextProvider=function(e){return qt(e)===vl};_e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mh};_e.isForwardRef=function(e){return qt(e)===ml};_e.isFragment=function(e){return qt(e)===dl};_e.isLazy=function(e){return qt(e)===Sl};_e.isMemo=function(e){return qt(e)===bl};_e.isPortal=function(e){return qt(e)===yh};_e.isProfiler=function(e){return qt(e)===pl};_e.isStrictMode=function(e){return qt(e)===hl};_e.isSuspense=function(e){return qt(e)===yl};_e.isSuspenseList=function(e){return qt(e)===wl};_e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dl||e===pl||e===hl||e===yl||e===wl||e===M_||typeof e=="object"&&e!==null&&(e.$$typeof===Sl||e.$$typeof===bl||e.$$typeof===vl||e.$$typeof===gl||e.$$typeof===ml||e.$$typeof===J0||e.getModuleId!==void 0)};_e.typeOf=qt;(function(e){e.exports=_e})(A_);function L_(){const e=y_();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const kv={notify(){},get:()=>[]};function N_(e,t){let r,n=kv;function i(f){return u(),n.subscribe(f)}function o(){n.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(r)}function u(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=L_())}function l(){r&&(r(),r=void 0,n.clear(),n=kv)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:u,tryUnsubscribe:l,getListeners:()=>n};return c}const D_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j_=D_?$.useLayoutEffect:$.useEffect;function Ov(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function nu(e,t){if(Ov(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{const s=N_(e);return{store:e,subscription:s,getServerState:n?()=>n:void 0}},[e,n]),o=$.useMemo(()=>e.getState(),[e]);j_(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||Cn;return Pt.createElement(a.Provider,{value:i},r)}function Z0(e=Cn){const t=e===Cn?V0:()=>$.useContext(e);return function(){const{store:n}=t();return n}}const ew=Z0();function B_(e=Cn){const t=e===Cn?ew:Z0(e);return function(){return t().dispatch}}const U_=B_();b_(Bf.useSyncExternalStoreWithSelector);m_(Ui.unstable_batchedUpdates);function ot(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:xl(e)?2:_l(e)?3:0}function yn(e,t){return On(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ks(e,t){return On(e)===2?e.get(t):e[t]}function tw(e,t,r){var n=On(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function rw(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function xl(e){return V_&&e instanceof Map}function _l(e){return Q_&&e instanceof Set}function Bn(e){return e.o||e.t}function wh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=iw(e);delete t[Re];for(var r=Bi(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=$_),Object.freeze(e),t&&kn(e,function(r,n){return bh(n,!0)},!0)),e}function $_(){ot(2)}function Sh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function yr(e){var t=qf[e];return t||ot(18,e),t}function nw(e,t){qf[e]||(qf[e]=t)}function zf(){return pa}function vc(e,t){t&&(yr("Patches"),e.u=[],e.s=[],e.v=t)}function iu(e){Wf(e),e.p.forEach(z_),e.p=null}function Wf(e){e===pa&&(pa=e.l)}function Tv(e){return pa={p:[],l:pa,h:e,m:!0,_:0}}function z_(e){var t=e[Re];t.i===0||t.i===1?t.j():t.O=!0}function gc(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||yr("ES5").S(t,e,n),n?(r[Re].P&&(iu(t),ot(4)),nr(e)&&(e=ou(t,e),t.l||au(t,e)),t.u&&yr("Patches").M(r[Re].t,e,t.u,t.s)):e=ou(t,r,[]),iu(t),t.u&&t.v(t.u,t.s),e!==_h?e:void 0}function ou(e,t,r){if(Sh(t))return t;var n=t[Re];if(!n)return kn(t,function(o,a){return Pv(e,n,t,o,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return au(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=wh(n.k):n.o;kn(n.i===3?new Set(i):i,function(o,a){return Pv(e,n,i,o,a,r)}),au(e,i,!1),r&&e.u&&yr("Patches").R(n,r,e.u,e.s)}return n.o}function Pv(e,t,r,n,i,o){if(Ur(i)){var a=ou(e,i,o&&t&&t.i!==3&&!yn(t.D,n)?o.concat(n):void 0);if(tw(r,n,a),!Ur(a))return;e.m=!1}if(nr(i)&&!Sh(i)){if(!e.h.F&&e._<1)return;ou(e,i),t&&t.A.l||au(e,i)}}function au(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&bh(t,r)}function mc(e,t){var r=e[Re];return(r?Bn(r):e)[t]}function Rv(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function nn(e){e.P||(e.P=!0,e.l&&nn(e.l))}function yc(e){e.o||(e.o=wh(e.t))}function Hf(e,t,r){var n=xl(t)?yr("MapSet").N(t,r):_l(t)?yr("MapSet").T(t,r):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:zf(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=va;a&&(u=[s],l=Po);var c=Proxy.revocable(u,l),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):yr("ES5").J(t,r);return(r?r.A:zf()).p.push(n),n}function W_(e){return Ur(e)||ot(22,e),function t(r){if(!nr(r))return r;var n,i=r[Re],o=On(r);if(i){if(!i.P&&(i.i<4||!yr("ES5").K(i)))return i.t;i.I=!0,n=Av(r,o),i.I=!1}else n=Av(r,o);return kn(n,function(a,s){i&&ks(i.t,a)===s||tw(n,a,t(s))}),o===3?new Set(n):n}(e)}function Av(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return wh(e)}function H_(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[Re];return va.get(u,o)},set:function(u){var l=this[Re];va.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][Re];if(!s.P)switch(s.i){case 5:n(s)&&nn(s);break;case 4:r(s)&&nn(s)}}}function r(o){for(var a=o.t,s=o.k,u=Bi(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==Re){var f=a[c];if(f===void 0&&!yn(a,c))return!0;var d=s[c],h=d&&d[Re];if(h?h.t!==f:!rw(d,f))return!0}}var m=!!a[Re];return u.length!==Bi(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?y-1:0),p=1;p1?c-1:0),d=1;d=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=yr("Patches").$;return Ur(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Mt=new Y_,Da=Mt.produce,ow=Mt.produceWithPatches.bind(Mt);Mt.setAutoFreeze.bind(Mt);Mt.setUseProxies.bind(Mt);var Lv=Mt.applyPatches.bind(Mt);Mt.createDraft.bind(Mt);Mt.finishDraft.bind(Mt);function tr(e){return tr=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},tr(e)}function G_(e,t){if(tr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aw(e){var t=G_(e,"string");return tr(t)==="symbol"?t:String(t)}function or(e,t,r){return t=aw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dv(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(nt(1));return r(sw)(e,t)}if(typeof e!="function")throw new Error(nt(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(nt(3));return o}function f(g){if(typeof g!="function")throw new Error(nt(4));if(u)throw new Error(nt(5));var b=!0;return l(),s.push(g),function(){if(b){if(u)throw new Error(nt(6));b=!1,l();var v=s.indexOf(g);s.splice(v,1),a=null}}}function d(g){if(!X_(g))throw new Error(nt(7));if(typeof g.type>"u")throw new Error(nt(8));if(u)throw new Error(nt(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var b=a=s,y=0;y"u")throw new Error(nt(12));if(typeof r(void 0,{type:su.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function uw(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(nt(14));f[h]=b,c=c||b!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function uu(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var l=r[u];return u>0&&(r.splice(u,1),r.unshift(l)),l.value}return lu}function i(s,u){n(s)===lu&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function o(){return r}function a(){r=[]}return{get:n,put:i,getEntries:o,clear:a}}var rE=function(t,r){return t===r};function nE(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,o=0;o1?t-1:0),n=1;n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1;return r&&n}function ja(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Eh(){for(var e=[],t=0;t0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function BE(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var Kv=no;function gw(e,t){if(e===t||!(Kv(e)&&Kv(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,o=Array.isArray(t)?[]:{},a=0,s=r;a=200&&e.status<=299},$E=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function Gv(e){if(!no(e))return e;for(var t=Fe({},e),r=0,n=Object.entries(t);r"u"&&s===Yv&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(y,v){return pu(t,null,function(){var p,w,x,_,O,P,A,L,S,T,C,I,D,z,Q,R,N,B,q,re,oe,Y,K,ie,ne,fe,se,X,V,te,W,H,Z,ee,ae,j,U,M,E,k;return fu(this,function(F){switch(F.label){case 0:return p=v.signal,w=v.getState,x=v.extra,_=v.endpoint,O=v.forced,P=v.type,L=typeof y=="string"?{url:y}:y,S=L.url,T=L.method,C=T===void 0?"GET":T,I=L.headers,D=I===void 0?new Headers(g.headers):I,z=L.body,Q=z===void 0?void 0:z,R=L.params,N=R===void 0?void 0:R,B=L.responseHandler,q=B===void 0?"json":B,re=L.validateStatus,oe=re===void 0?m??UE:re,Y=L.timeout,K=Y===void 0?h:Y,ie=Vv(L,["url","method","headers","body","params","responseHandler","validateStatus","timeout"]),ne=Fe(pr(Fe({},g),{method:C,signal:p,body:Q}),ie),D=new Headers(Gv(D)),fe=ne,[4,o(D,{getState:w,extra:x,endpoint:_,forced:O,type:P})];case 1:fe.headers=F.sent()||D,se=function(G){return typeof G=="object"&&(no(G)||Array.isArray(G)||typeof G.toJSON=="function")},!ne.headers.has("content-type")&&se(Q)&&ne.headers.set("content-type",d),se(Q)&&c(ne.headers)&&(ne.body=JSON.stringify(Q)),N&&(X=~S.indexOf("?")?"&":"?",V=u?u(N):new URLSearchParams(Gv(N)),S+=X+V),S=jE(n,S),te=new Request(S,ne),W=te.clone(),A={request:W},Z=!1,ee=K&&setTimeout(function(){Z=!0,v.abort()},K),F.label=2;case 2:return F.trys.push([2,4,5,6]),[4,s(te)];case 3:return H=F.sent(),[3,6];case 4:return ae=F.sent(),[2,{error:{status:Z?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ae)},meta:A}];case 5:return ee&&clearTimeout(ee),[7];case 6:j=H.clone(),A.response=j,M="",F.label=7;case 7:return F.trys.push([7,9,,10]),[4,Promise.all([b(H,q).then(function(G){return U=G},function(G){return E=G}),j.text().then(function(G){return M=G},function(){})])];case 8:if(F.sent(),E)throw E;return[3,10];case 9:return k=F.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:H.status,data:M,error:String(k)},meta:A}];case 10:return[2,oe(H,U)?{data:U,meta:A}:{error:{status:H.status,data:U},meta:A}]}})})};function b(y,v){return pu(this,null,function(){var p;return fu(this,function(w){switch(w.label){case 0:return typeof v=="function"?[2,v(y)]:(v==="content-type"&&(v=c(y.headers)?"json":"text"),v!=="json"?[3,2]:[4,y.text()]);case 1:return p=w.sent(),[2,p.length?JSON.parse(p):null];case 2:return[2,y.text()]}})})}}var Xv=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),ma=_t("__rtkq/focused"),vu=_t("__rtkq/unfocused"),ya=_t("__rtkq/online"),gu=_t("__rtkq/offline"),xc=!1;function zE(e,t){function r(){var n=function(){return e(ma())},i=function(){return e(vu())},o=function(){return e(ya())},a=function(){return e(gu())},s=function(){window.document.visibilityState==="visible"?n():i()};xc||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",n,!1),window.addEventListener("online",o,!1),window.addEventListener("offline",a,!1),xc=!0);var u=function(){window.removeEventListener("focus",n),window.removeEventListener("visibilitychange",s),window.removeEventListener("online",o),window.removeEventListener("offline",a),xc=!1};return u}return t?t(e,{onFocus:ma,onFocusLost:vu,onOffline:gu,onOnline:ya}):r()}var xr;(function(e){e.query="query",e.mutation="mutation"})(xr||(xr={}));function yw(e){return e.type===xr.query}function WE(e){return e.type===xr.mutation}function ww(e,t,r,n,i,o){return HE(e)?e(t,r,n,i).map(Yf).map(o):Array.isArray(e)?e.map(Yf).map(o):[]}function HE(e){return typeof e=="function"}function Yf(e){return typeof e=="string"?{type:e}:e}function _c(e){return e!=null}var wa=Symbol("forceQueryFn"),Gf=function(e){return typeof e[wa]=="function"};function qE(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,o=e.context,a=new Map,s=new Map,u=i.internalActions,l=u.unsubscribeQueryResult,c=u.removeMutationResult,f=u.updateSubscriptionOptions;return{buildInitiateQuery:v,buildInitiateMutation:p,getRunningQueryThunk:m,getRunningMutationThunk:g,getRunningQueriesThunk:b,getRunningMutationsThunk:y,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. - See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var w=function(x){return Array.from(x.values()).flatMap(function(_){return _?Object.values(_):[]})};return du(du([],w(a)),w(s)).filter(_c)}function m(w,x){return function(_){var O,P=o.endpointDefinitions[w],A=t({queryArgs:x,endpointDefinition:P,endpointName:w});return(O=a.get(_))==null?void 0:O[A]}}function g(w,x){return function(_){var O;return(O=s.get(_))==null?void 0:O[x]}}function b(){return function(w){return Object.values(a.get(w)||{}).filter(_c)}}function y(){return function(w){return Object.values(s.get(w)||{}).filter(_c)}}function v(w,x){var _=function(O,P){var A=P===void 0?{}:P,L=A.subscribe,S=L===void 0?!0:L,T=A.forceRefetch,C=A.subscriptionOptions,I=wa,D=A[I];return function(z,Q){var R,N,B=t({queryArgs:O,endpointDefinition:x,endpointName:w}),q=r((R={type:"query",subscribe:S,forceRefetch:T,subscriptionOptions:C,endpointName:w,originalArgs:O,queryCacheKey:B},R[wa]=D,R)),re=i.endpoints[w].select(O),oe=z(q),Y=re(Q()),K=oe.requestId,ie=oe.abort,ne=Y.requestId!==K,fe=(N=a.get(z))==null?void 0:N[B],se=function(){return re(Q())},X=Object.assign(D?oe.then(se):ne&&!fe?Promise.resolve(Y):Promise.all([fe,oe]).then(se),{arg:O,requestId:K,subscriptionOptions:C,queryCacheKey:B,abort:ie,unwrap:function(){return pu(this,null,function(){var te;return fu(this,function(W){switch(W.label){case 0:return[4,X];case 1:if(te=W.sent(),te.isError)throw te.error;return[2,te.data]}})})},refetch:function(){return z(_(O,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){S&&z(l({queryCacheKey:B,requestId:K}))},updateSubscriptionOptions:function(te){X.subscriptionOptions=te,z(f({endpointName:w,requestId:K,queryCacheKey:B,options:te}))}});if(!fe&&!ne&&!D){var V=a.get(z)||{};V[B]=X,a.set(z,V),X.then(function(){delete V[B],Object.keys(V).length||a.delete(z)})}return X}};return _}function p(w){return function(x,_){var O=_===void 0?{}:_,P=O.track,A=P===void 0?!0:P,L=O.fixedCacheKey;return function(S,T){var C=n({type:"mutation",endpointName:w,originalArgs:x,track:A,fixedCacheKey:L}),I=S(C),D=I.requestId,z=I.abort,Q=I.unwrap,R=I.unwrap().then(function(re){return{data:re}}).catch(function(re){return{error:re}}),N=function(){S(c({requestId:D,fixedCacheKey:L}))},B=Object.assign(R,{arg:I.arg,requestId:D,abort:z,unwrap:Q,unsubscribe:N,reset:N}),q=s.get(S)||{};return s.set(S,q),q[D]=B,B.then(function(){delete q[D],Object.keys(q).length||s.delete(S)}),L&&(q[L]=B,B.then(function(){q[L]===B&&(delete q[L],Object.keys(q).length||s.delete(S))})),B}}}}function Xv(e){return e}function VE(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,a=e.api,s=function(p,w,x){return function(_){var O=i[p];_(a.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:w,endpointDefinition:O,endpointName:p}),patches:x}))}},u=function(p,w,x){return function(_,O){var P,A,L=a.endpoints[p].select(w)(O()),S={patches:[],inversePatches:[],undo:function(){return _(a.util.patchQueryData(p,w,S.inversePatches))}};if(L.status===Ae.uninitialized)return S;if("data"in L)if(nr(L.data)){var T=iw(L.data,x),C=T[1],I=T[2];(P=S.patches).push.apply(P,C),(A=S.inversePatches).push.apply(A,I)}else{var D=x(L.data);S.patches.push({op:"replace",path:[],value:D}),S.inversePatches.push({op:"replace",path:[],value:L.data})}return _(a.util.patchQueryData(p,w,S.patches)),S}},l=function(p,w,x){return function(_){var O;return _(a.endpoints[p].initiate(w,(O={subscribe:!1,forceRefetch:!0},O[wa]=function(){return{data:x}},O)))}},c=function(p,w){return pu(t,[p,w],function(x,_){var O,P,A,L,S,T,C,I,D,z,Q,R,N,B,q,re,oe,Y,K=_.signal,ie=_.abort,ne=_.rejectWithValue,fe=_.fulfillWithValue,se=_.dispatch,X=_.getState,V=_.extra;return fu(this,function(te){switch(te.label){case 0:O=i[x.endpointName],te.label=1;case 1:return te.trys.push([1,8,,13]),P=Xv,A=void 0,L={signal:K,abort:ie,dispatch:se,getState:X,extra:V,endpoint:x.endpointName,type:x.type,forced:x.type==="query"?f(x,X()):void 0},S=x.type==="query"?x[wa]:void 0,S?(A=S(),[3,6]):[3,2];case 2:return O.query?[4,n(O.query(x.originalArgs),L,O.extraOptions)]:[3,4];case 3:return A=te.sent(),O.transformResponse&&(P=O.transformResponse),[3,6];case 4:return[4,O.queryFn(x.originalArgs,L,O.extraOptions,function(W){return n(W,L,O.extraOptions)})];case 5:A=te.sent(),te.label=6;case 6:if(typeof process<"u",A.error)throw new Gv(A.error,A.meta);return Q=fe,[4,P(A.data,A.meta,x.originalArgs)];case 7:return[2,Q.apply(void 0,[te.sent(),(oe={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},oe[Ro]=!0,oe)])];case 8:if(R=te.sent(),N=R,!(N instanceof Gv))return[3,12];B=Xv,O.query&&O.transformErrorResponse&&(B=O.transformErrorResponse),te.label=9;case 9:return te.trys.push([9,11,,12]),q=ne,[4,B(N.value,N.meta,x.originalArgs)];case 10:return[2,q.apply(void 0,[te.sent(),(Y={baseQueryMeta:N.meta},Y[Ro]=!0,Y)])];case 11:return re=te.sent(),N=re,[3,12];case 12:throw typeof process<"u",console.error(N),N;case 13:return[2]}})})};function f(p,w){var x,_,O,P,A=(_=(x=w[r])==null?void 0:x.queries)==null?void 0:_[p.queryCacheKey],L=(O=w[r])==null?void 0:O.config.refetchOnMountOrArgChange,S=A==null?void 0:A.fulfilledTimeStamp,T=(P=p.forceRefetch)!=null?P:p.subscribe&&L;return T?T===!0||(Number(new Date)-Number(S))/1e3>=T:!1}var d=$v(r+"/executeQuery",c,{getPendingMeta:function(){var p;return p={startedTimeStamp:Date.now()},p[Ro]=!0,p},condition:function(p,w){var x=w.getState,_,O,P,A=x(),L=(O=(_=A[r])==null?void 0:_.queries)==null?void 0:O[p.queryCacheKey],S=L==null?void 0:L.fulfilledTimeStamp,T=p.originalArgs,C=L==null?void 0:L.originalArgs,I=i[p.endpointName];return Gf(p)?!0:(L==null?void 0:L.status)==="pending"?!1:f(p,A)||mw(I)&&((P=I==null?void 0:I.forceRefetch)!=null&&P.call(I,{currentArg:T,previousArg:C,endpointState:L,state:A}))?!0:!S},dispatchConditionRejection:!0}),h=$v(r+"/executeMutation",c,{getPendingMeta:function(){var p;return p={startedTimeStamp:Date.now()},p[Ro]=!0,p}}),m=function(p){return"force"in p},g=function(p){return"ifOlderThan"in p},b=function(p,w,x){return function(_,O){var P=m(x)&&x.force,A=g(x)&&x.ifOlderThan,L=function(I){return I===void 0&&(I=!0),a.endpoints[p].initiate(w,{forceRefetch:I})},S=a.endpoints[p].select(w)(O());if(P)_(L());else if(A){var T=S==null?void 0:S.fulfilledTimeStamp;if(!T){_(L());return}var C=(Number(new Date)-Number(new Date(T)))/1e3>=A;C&&_(L())}else _(L(!1))}};function y(p){return function(w){var x,_;return((_=(x=w==null?void 0:w.meta)==null?void 0:x.arg)==null?void 0:_.endpointName)===p}}function v(p,w){return{matchPending:Wo(_h(p),y(w)),matchFulfilled:Wo(oi(p),y(w)),matchRejected:Wo(ga(p),y(w))}}return{queryThunk:d,mutationThunk:h,prefetch:b,updateQueryData:u,upsertQueryData:l,patchQueryData:s,buildMatchThunkActions:v}}function ww(e,t,r,n){return yw(r[e.meta.arg.endpointName][t],oi(e)?e.payload:void 0,Cl(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function us(e,t,r){var n=e[t];n&&r(n)}function ba(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function Jv(e,t,r){var n=e[ba(t)];n&&r(n)}var yo={};function QE(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,o=i.endpointDefinitions,a=i.apiUid,s=i.extractRehydrationInfo,u=i.hasRehydrationInfo,l=e.assertTagType,c=e.config,f=_t(t+"/resetApiState"),d=Zr({name:t+"/queries",initialState:yo,reducers:{removeQueryResult:{reducer:function(x,_){var O=_.payload.queryCacheKey;delete x[O]},prepare:zv()},queryResultPatched:function(x,_){var O=_.payload,P=O.queryCacheKey,A=O.patches;us(x,P,function(L){L.data=Mv(L.data,A.concat())})}},extraReducers:function(x){x.addCase(r.pending,function(_,O){var P=O.meta,A=O.meta.arg,L,S,T=Gf(A);(A.subscribe||T)&&((S=_[L=A.queryCacheKey])!=null||(_[L]={status:Ae.uninitialized,endpointName:A.endpointName})),us(_,A.queryCacheKey,function(C){C.status=Ae.pending,C.requestId=T&&C.requestId?C.requestId:P.requestId,A.originalArgs!==void 0&&(C.originalArgs=A.originalArgs),C.startedTimeStamp=P.startedTimeStamp})}).addCase(r.fulfilled,function(_,O){var P=O.meta,A=O.payload;us(_,P.arg.queryCacheKey,function(L){var S;if(!(L.requestId!==P.requestId&&!Gf(P.arg))){var T=o[P.arg.endpointName].merge;if(L.status=Ae.fulfilled,T)if(L.data!==void 0){var C=P.fulfilledTimeStamp,I=P.arg,D=P.baseQueryMeta,z=P.requestId,Q=Da(L.data,function(R){return T(R,A,{arg:I.originalArgs,baseQueryMeta:D,fulfilledTimeStamp:C,requestId:z})});L.data=Q}else L.data=A;else L.data=(S=o[P.arg.endpointName].structuralSharing)==null||S?vw(L.data,A):A;delete L.error,L.fulfilledTimeStamp=P.fulfilledTimeStamp}})}).addCase(r.rejected,function(_,O){var P=O.meta,A=P.condition,L=P.arg,S=P.requestId,T=O.error,C=O.payload;us(_,L.queryCacheKey,function(I){if(!A){if(I.requestId!==S)return;I.status=Ae.rejected,I.error=C??T}})}).addMatcher(u,function(_,O){for(var P=s(O).queries,A=0,L=Object.entries(P);A>>2]>>>24-O%4*8&255;p[x+O>>>2]|=P<<24-(x+O)%4*8}else for(var A=0;A<_;A+=4)p[x+A>>>2]=w[A>>>2];return this.sigBytes+=_,this},clamp:function(){var v=this.words,p=this.sigBytes;v[p>>>2]&=4294967295<<32-p%4*8,v.length=n.ceil(p/4)},clone:function(){var v=c.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var p=[],w=0;w>>2]>>>24-_%4*8&255;x.push((O>>>4).toString(16)),x.push((O&15).toString(16))}return x.join("")},parse:function(v){for(var p=v.length,w=[],x=0;x>>3]|=parseInt(v.substr(x,2),16)<<24-x%8*4;return new f.init(w,p/2)}},m=d.Latin1={stringify:function(v){for(var p=v.words,w=v.sigBytes,x=[],_=0;_>>2]>>>24-_%4*8&255;x.push(String.fromCharCode(O))}return x.join("")},parse:function(v){for(var p=v.length,w=[],x=0;x>>2]|=(v.charCodeAt(x)&255)<<24-x%4*8;return new f.init(w,p)}},g=d.Utf8={stringify:function(v){try{return decodeURIComponent(escape(m.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return m.parse(unescape(encodeURIComponent(v)))}},b=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=g.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var p,w=this._data,x=w.words,_=w.sigBytes,O=this.blockSize,P=O*4,A=_/P;v?A=n.ceil(A):A=n.max((A|0)-this._minBufferSize,0);var L=A*O,S=n.min(L*4,_);if(L){for(var T=0;T>>7)^(A<<14|A>>>18)^A>>>3,S=f[P-2],T=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;f[P]=L+f[P-7]+T+f[P-16]}var C=w&x^~w&_,I=b&y^b&v^y&v,D=(b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22),z=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),Q=O+z+C+c[P]+f[P],R=D+I;O=_,_=x,x=w,w=p+Q|0,p=v,v=y,y=b,b=Q+R|0}g[0]=g[0]+b|0,g[1]=g[1]+y|0,g[2]=g[2]+v|0,g[3]=g[3]+p|0,g[4]=g[4]+w|0,g[5]=g[5]+x|0,g[6]=g[6]+_|0,g[7]=g[7]+O|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,b=h.sigBytes*8;return m[b>>>5]|=128<<24-b%32,m[(b+64>>>9<<4)+14]=n.floor(g/4294967296),m[(b+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});i.SHA256=s._createHelper(d),i.HmacSHA256=s._createHmacHelper(d)}(Math),r.SHA256})})(EC);var Jf={},PC={get exports(){return Jf},set exports(e){Jf=e}};(function(e,t){(function(r,n){e.exports=n(Ch())})(Me,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64={stringify:function(u){var l=u.words,c=u.sigBytes,f=this._map;u.clamp();for(var d=[],h=0;h>>2]>>>24-h%4*8&255,g=l[h+1>>>2]>>>24-(h+1)%4*8&255,b=l[h+2>>>2]>>>24-(h+2)%4*8&255,y=m<<16|g<<8|b,v=0;v<4&&h+v*.75>>6*(3-v)&63));var p=f.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(u){var l=u.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d>>6-h%4*2,b=m|g;f[d>>>2]|=b<<24-d%4*8,d++}return o.create(f,d)}}(),r.enc.Base64})})(PC);var Zf={},RC={get exports(){return Zf},set exports(e){Zf=e}};(function(e,t){(function(r,n){e.exports=n(Ch())})(Me,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,a=o.init,s=o.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var l=u.byteLength,c=[],f=0;f>>2]|=u[f]<<24-f%4*8;a.call(this,c,l)}else a.apply(this,arguments)};s.prototype=o}}(),r.lib.WordArray})})(RC);var kh=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xw,"__esModule",{value:!0});var AC=kh(Xf),IC=kh(Jf),MC=kh(Zf),LC=function(){function e(t){this.state="",this.codeVerifier="",this.config=t}return e.prototype.authorizeUrl=function(t){t===void 0&&(t={});var r=this.pkceChallengeFromVerifier(),n=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(t.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:r,code_challenge_method:"S256"},t)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(n)},e.prototype.exchangeForAccessToken=function(t,r){var n=this;return r===void 0&&(r={}),this.parseAuthResponseUrl(t).then(function(i){return fetch(n.config.token_endpoint,{method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:i.code,client_id:n.config.client_id,redirect_uri:n.config.redirect_uri,code_verifier:n.getCodeVerifier()},r)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then(function(o){return o.json()})})},e.prototype.getCodeVerifier=function(){return this.codeVerifier===""&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(t){t===void 0&&(t=null);var r="pkce_state";return t!==null&&this.getStore().setItem(r,t),this.state===""&&(this.state=this.randomStringFromStorage(r)),this.state},e.prototype.parseAuthResponseUrl=function(t){var r=new URL(t).searchParams;return this.validateAuthResponse({error:r.get("error"),query:r.get("query"),state:r.get("state"),code:r.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var t=(0,AC.default)(this.getCodeVerifier());return IC.default.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(t){var r=this.getStore().getItem(t);return r===null&&this.getStore().setItem(t,MC.default.random(64)),this.getStore().getItem(t)||""},e.prototype.validateAuthResponse=function(t){var r=this;return new Promise(function(n,i){return t.error?i({error:t.error}):t.state!==r.getState()?i({error:"Invalid State"}):n(t)})},e.prototype.getStore=function(){var t;return((t=this.config)===null||t===void 0?void 0:t.storage)||sessionStorage},e}(),NC=xw.default=LC;const Oc="https://fauna.initlab.org/oauth/",lg={authorize:Oc+"authorize",token:Oc+"token",revoke:Oc+"revoke"},DC="ERBrlPWjf98L_nI8Moxr7Aqjy4no1eRU-zSOROc2RbU",_w=["public","account_data_read","door_control"].join(" "),Ew=new NC({client_id:DC,redirect_uri:window.location.protocol+"//"+window.location.host+"/fauna-frontend/oauth-callback",authorization_endpoint:lg.authorize,token_endpoint:lg.token,requested_scopes:_w}),Oh="accessToken",Th="accessTokenExpire",Ph="refreshToken",Cw=()=>localStorage.getItem(Oh),jC=()=>localStorage.getItem(Th),FC=()=>localStorage.getItem(Ph),kw=e=>{if(e.hasOwnProperty("error")&&e.hasOwnProperty("error_description"))throw new Error(e.error_description);if(!e.hasOwnProperty("access_token")||!e.hasOwnProperty("created_at")||!e.hasOwnProperty("expires_in")||!e.hasOwnProperty("refresh_token")||!e.hasOwnProperty("scope")||!e.hasOwnProperty("token_type")||e.token_type!=="Bearer"||e.scope!==_w)throw new Error("Incomplete response, missing fields");localStorage.setItem(Oh,e.access_token),localStorage.setItem(Th,e.created_at+e.expires_in),localStorage.setItem(Ph,e.refresh_token)},ed=()=>{localStorage.removeItem(Oh),localStorage.removeItem(Th),localStorage.removeItem(Ph)},BC=async()=>{ed()};function wu(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(c){try{l(n.next(c))}catch(f){a(f)}}function u(c){try{l(n.throw(c))}catch(f){a(f)}}function l(c){c.done?o(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function bu(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;r--){var n=(t=this._weightedQueues[r-1])===null||t===void 0?void 0:t.shift();if(n){var i=this._value,o=r;this._value-=r,r=this._value+1,n.resolve([i,this._newReleaser(o)])}}this._drainUnlockWaiters()},e.prototype._newReleaser=function(t){var r=this,n=!1;return function(){n||(n=!0,r.release(t))}},e.prototype._drainUnlockWaiters=function(){for(var t=this._value;t>0;t--)this._weightedWaiters[t-1]&&(this._weightedWaiters[t-1].forEach(function(r){return r()}),this._weightedWaiters[t-1]=[])},e}(),WC=function(){function e(t){this._semaphore=new zC(1,t)}return e.prototype.acquire=function(){return wu(this,void 0,void 0,function(){var t,r;return bu(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=n.sent(),r=t[1],[2,r]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.waitForUnlock=function(){return this._semaphore.waitForUnlock()},e.prototype.release=function(){this._semaphore.isLocked()&&this._semaphore.release()},e.prototype.cancel=function(){return this._semaphore.cancel()},e}();function HC(e,t,r){var n=this;return r===void 0&&(r=UC),{acquire:function(i){if(i!==void 0&&i<=0)throw new Error("invalid weight ".concat(i,": must be positive"));return new Promise(function(o,a){return wu(n,void 0,void 0,function(){var s,u,l,c,f;return bu(this,function(d){switch(d.label){case 0:s=!1,u=setTimeout(function(){s=!0,a(r)},t),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,e.acquire(i)];case 2:return l=d.sent(),s?(c=Array.isArray(l)?l[1]:l,c()):(clearTimeout(u),o(l)),[3,4];case 3:return f=d.sent(),s||(clearTimeout(u),a(f)),[3,4];case 4:return[2]}})})})},runExclusive:function(i,o){return wu(this,void 0,void 0,function(){var a,s;return bu(this,function(u){switch(u.label){case 0:a=function(){},u.label=1;case 1:return u.trys.push([1,,7,8]),[4,this.acquire(o)];case 2:return s=u.sent(),Array.isArray(s)?(a=s[1],[4,i(s[0])]):[3,4];case 3:return[2,u.sent()];case 4:return a=s,[4,i()];case 5:return[2,u.sent()];case 6:return[3,8];case 7:return a(),[7];case 8:return[2]}})})},release:function(i){e.release(i)},cancel:function(){return e.cancel()},waitForUnlock:function(i){if(i!==void 0&&i<=0)throw new Error("invalid weight ".concat(i,": must be positive"));return new Promise(function(o,a){e.waitForUnlock(i).then(o),setTimeout(function(){return a(r)},t)})},isLocked:function(){return e.isLocked()},getValue:function(){return e.getValue()},setValue:function(i){return e.setValue(i)}}}function qC(e,t){return t===void 0&&(t=Ow),HC(e,0,t)}const cg=new WC,Tw="https://fauna.initlab.org/api/",fg=async(e,t)=>{try{return await qC(cg).runExclusive(async()=>{var i;const r=FC();if(r===null)return ed(),console.error("No refresh token found"),!1;const n=(i=await Pw({url:"../oauth/token",method:"POST",body:{client_id:"ERBrlPWjf98L_nI8Moxr7Aqjy4no1eRU-zSOROc2RbU",grant_type:"refresh_token",refresh_token:r}},e,t))==null?void 0:i.data;return n?(kw(n),!0):(ed(),console.error("Refreshing token failed"),!1)})}catch(r){if(r===Ow)return await cg.waitForUnlock(),!0;throw r}},Pw=gw({baseUrl:Tw,prepareHeaders:e=>(e.set("accept","application/json"),e)}),dg=gw({baseUrl:Tw,prepareHeaders:e=>{e.set("accept","application/json");const t=Cw();return t&&e.set("authorization","Bearer "+t),e}}),VC=async(e,t,r)=>{var o;const n=jC();n!==null&&n*1e3t=>e.query({query:()=>t}),Ts=Sw({reducerPath:"anonymousApi",baseQuery:Pw,endpoints:e=>({getPresentUsers:Rw(e)("users/present")})}),Ps=Sw({reducerPath:"authenticatedApi",baseQuery:VC,endpoints:e=>({getDoors:Rw(e)("doors.json"),doorAction:e.mutation({query:t=>({url:"doors/"+t.doorId+"/"+t.action,method:"POST"})})})}),{useGetPresentUsersQuery:QC}=Ts,{useGetDoorsQuery:KC,useDoorActionMutation:YC}=Ps,Su=Zr({name:"sensor",initialState:{},reducers:{setSensor:(e,{payload:{topic:t,data:r,message:n}})=>{e[t]={data:r,message:n}}}}),GC=e=>t=>t[Su.name][e],{setSensor:XC}=Su.actions,Sa=Zr({name:"door",initialState:{locked:null,unlocked:null},reducers:{setState:(e,{payload:{property:t,value:r}})=>{e[t]=r}}}),JC=e=>t=>{var r;return(r=t[Sa.name])==null?void 0:r[e]},Aw=()=>e=>{const t=e[Sa.name],r=t.locked,n=t.unlocked;if(r===null||n===null)return"uninitialized";if(r&&n===!1)return"locked";if(r===!1&&n)return"unlocked";if(r===!1&&n===!1)return"busy";if(r&&n)return"invalid"},{setState:ZC}=Sa.actions,xu=bE({reducer:{[Ts.reducerPath]:Ts.reducer,[Ps.reducerPath]:Ps.reducer,[Su.name]:Su.reducer,[Sa.name]:Sa.reducer},middleware:e=>e().concat(Ts.middleware).concat(Ps.middleware)});zE(xu.dispatch);/** + See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var w=function(x){return Array.from(x.values()).flatMap(function(_){return _?Object.values(_):[]})};return du(du([],w(a)),w(s)).filter(_c)}function m(w,x){return function(_){var O,P=o.endpointDefinitions[w],A=t({queryArgs:x,endpointDefinition:P,endpointName:w});return(O=a.get(_))==null?void 0:O[A]}}function g(w,x){return function(_){var O;return(O=s.get(_))==null?void 0:O[x]}}function b(){return function(w){return Object.values(a.get(w)||{}).filter(_c)}}function y(){return function(w){return Object.values(s.get(w)||{}).filter(_c)}}function v(w,x){var _=function(O,P){var A=P===void 0?{}:P,L=A.subscribe,S=L===void 0?!0:L,T=A.forceRefetch,C=A.subscriptionOptions,I=wa,D=A[I];return function(z,Q){var R,N,B=t({queryArgs:O,endpointDefinition:x,endpointName:w}),q=r((R={type:"query",subscribe:S,forceRefetch:T,subscriptionOptions:C,endpointName:w,originalArgs:O,queryCacheKey:B},R[wa]=D,R)),re=i.endpoints[w].select(O),oe=z(q),Y=re(Q()),K=oe.requestId,ie=oe.abort,ne=Y.requestId!==K,fe=(N=a.get(z))==null?void 0:N[B],se=function(){return re(Q())},X=Object.assign(D?oe.then(se):ne&&!fe?Promise.resolve(Y):Promise.all([fe,oe]).then(se),{arg:O,requestId:K,subscriptionOptions:C,queryCacheKey:B,abort:ie,unwrap:function(){return pu(this,null,function(){var te;return fu(this,function(W){switch(W.label){case 0:return[4,X];case 1:if(te=W.sent(),te.isError)throw te.error;return[2,te.data]}})})},refetch:function(){return z(_(O,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){S&&z(l({queryCacheKey:B,requestId:K}))},updateSubscriptionOptions:function(te){X.subscriptionOptions=te,z(f({endpointName:w,requestId:K,queryCacheKey:B,options:te}))}});if(!fe&&!ne&&!D){var V=a.get(z)||{};V[B]=X,a.set(z,V),X.then(function(){delete V[B],Object.keys(V).length||a.delete(z)})}return X}};return _}function p(w){return function(x,_){var O=_===void 0?{}:_,P=O.track,A=P===void 0?!0:P,L=O.fixedCacheKey;return function(S,T){var C=n({type:"mutation",endpointName:w,originalArgs:x,track:A,fixedCacheKey:L}),I=S(C),D=I.requestId,z=I.abort,Q=I.unwrap,R=I.unwrap().then(function(re){return{data:re}}).catch(function(re){return{error:re}}),N=function(){S(c({requestId:D,fixedCacheKey:L}))},B=Object.assign(R,{arg:I.arg,requestId:D,abort:z,unwrap:Q,unsubscribe:N,reset:N}),q=s.get(S)||{};return s.set(S,q),q[D]=B,B.then(function(){delete q[D],Object.keys(q).length||s.delete(S)}),L&&(q[L]=B,B.then(function(){q[L]===B&&(delete q[L],Object.keys(q).length||s.delete(S))})),B}}}}function Jv(e){return e}function VE(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,a=e.api,s=function(p,w,x){return function(_){var O=i[p];_(a.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:w,endpointDefinition:O,endpointName:p}),patches:x}))}},u=function(p,w,x){return function(_,O){var P,A,L=a.endpoints[p].select(w)(O()),S={patches:[],inversePatches:[],undo:function(){return _(a.util.patchQueryData(p,w,S.inversePatches))}};if(L.status===Ae.uninitialized)return S;if("data"in L)if(nr(L.data)){var T=ow(L.data,x),C=T[1],I=T[2];(P=S.patches).push.apply(P,C),(A=S.inversePatches).push.apply(A,I)}else{var D=x(L.data);S.patches.push({op:"replace",path:[],value:D}),S.inversePatches.push({op:"replace",path:[],value:L.data})}return _(a.util.patchQueryData(p,w,S.patches)),S}},l=function(p,w,x){return function(_){var O;return _(a.endpoints[p].initiate(w,(O={subscribe:!1,forceRefetch:!0},O[wa]=function(){return{data:x}},O)))}},c=function(p,w){return pu(t,[p,w],function(x,_){var O,P,A,L,S,T,C,I,D,z,Q,R,N,B,q,re,oe,Y,K=_.signal,ie=_.abort,ne=_.rejectWithValue,fe=_.fulfillWithValue,se=_.dispatch,X=_.getState,V=_.extra;return fu(this,function(te){switch(te.label){case 0:O=i[x.endpointName],te.label=1;case 1:return te.trys.push([1,8,,13]),P=Jv,A=void 0,L={signal:K,abort:ie,dispatch:se,getState:X,extra:V,endpoint:x.endpointName,type:x.type,forced:x.type==="query"?f(x,X()):void 0},S=x.type==="query"?x[wa]:void 0,S?(A=S(),[3,6]):[3,2];case 2:return O.query?[4,n(O.query(x.originalArgs),L,O.extraOptions)]:[3,4];case 3:return A=te.sent(),O.transformResponse&&(P=O.transformResponse),[3,6];case 4:return[4,O.queryFn(x.originalArgs,L,O.extraOptions,function(W){return n(W,L,O.extraOptions)})];case 5:A=te.sent(),te.label=6;case 6:if(typeof process<"u",A.error)throw new Xv(A.error,A.meta);return Q=fe,[4,P(A.data,A.meta,x.originalArgs)];case 7:return[2,Q.apply(void 0,[te.sent(),(oe={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},oe[Ro]=!0,oe)])];case 8:if(R=te.sent(),N=R,!(N instanceof Xv))return[3,12];B=Jv,O.query&&O.transformErrorResponse&&(B=O.transformErrorResponse),te.label=9;case 9:return te.trys.push([9,11,,12]),q=ne,[4,B(N.value,N.meta,x.originalArgs)];case 10:return[2,q.apply(void 0,[te.sent(),(Y={baseQueryMeta:N.meta},Y[Ro]=!0,Y)])];case 11:return re=te.sent(),N=re,[3,12];case 12:throw typeof process<"u",console.error(N),N;case 13:return[2]}})})};function f(p,w){var x,_,O,P,A=(_=(x=w[r])==null?void 0:x.queries)==null?void 0:_[p.queryCacheKey],L=(O=w[r])==null?void 0:O.config.refetchOnMountOrArgChange,S=A==null?void 0:A.fulfilledTimeStamp,T=(P=p.forceRefetch)!=null?P:p.subscribe&&L;return T?T===!0||(Number(new Date)-Number(S))/1e3>=T:!1}var d=zv(r+"/executeQuery",c,{getPendingMeta:function(){var p;return p={startedTimeStamp:Date.now()},p[Ro]=!0,p},condition:function(p,w){var x=w.getState,_,O,P,A=x(),L=(O=(_=A[r])==null?void 0:_.queries)==null?void 0:O[p.queryCacheKey],S=L==null?void 0:L.fulfilledTimeStamp,T=p.originalArgs,C=L==null?void 0:L.originalArgs,I=i[p.endpointName];return Gf(p)?!0:(L==null?void 0:L.status)==="pending"?!1:f(p,A)||yw(I)&&((P=I==null?void 0:I.forceRefetch)!=null&&P.call(I,{currentArg:T,previousArg:C,endpointState:L,state:A}))?!0:!S},dispatchConditionRejection:!0}),h=zv(r+"/executeMutation",c,{getPendingMeta:function(){var p;return p={startedTimeStamp:Date.now()},p[Ro]=!0,p}}),m=function(p){return"force"in p},g=function(p){return"ifOlderThan"in p},b=function(p,w,x){return function(_,O){var P=m(x)&&x.force,A=g(x)&&x.ifOlderThan,L=function(I){return I===void 0&&(I=!0),a.endpoints[p].initiate(w,{forceRefetch:I})},S=a.endpoints[p].select(w)(O());if(P)_(L());else if(A){var T=S==null?void 0:S.fulfilledTimeStamp;if(!T){_(L());return}var C=(Number(new Date)-Number(new Date(T)))/1e3>=A;C&&_(L())}else _(L(!1))}};function y(p){return function(w){var x,_;return((_=(x=w==null?void 0:w.meta)==null?void 0:x.arg)==null?void 0:_.endpointName)===p}}function v(p,w){return{matchPending:Wo(Eh(p),y(w)),matchFulfilled:Wo(oi(p),y(w)),matchRejected:Wo(ga(p),y(w))}}return{queryThunk:d,mutationThunk:h,prefetch:b,updateQueryData:u,upsertQueryData:l,patchQueryData:s,buildMatchThunkActions:v}}function bw(e,t,r,n){return ww(r[e.meta.arg.endpointName][t],oi(e)?e.payload:void 0,Cl(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function us(e,t,r){var n=e[t];n&&r(n)}function ba(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function Zv(e,t,r){var n=e[ba(t)];n&&r(n)}var yo={};function QE(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,o=i.endpointDefinitions,a=i.apiUid,s=i.extractRehydrationInfo,u=i.hasRehydrationInfo,l=e.assertTagType,c=e.config,f=_t(t+"/resetApiState"),d=Zr({name:t+"/queries",initialState:yo,reducers:{removeQueryResult:{reducer:function(x,_){var O=_.payload.queryCacheKey;delete x[O]},prepare:Wv()},queryResultPatched:function(x,_){var O=_.payload,P=O.queryCacheKey,A=O.patches;us(x,P,function(L){L.data=Lv(L.data,A.concat())})}},extraReducers:function(x){x.addCase(r.pending,function(_,O){var P=O.meta,A=O.meta.arg,L,S,T=Gf(A);(A.subscribe||T)&&((S=_[L=A.queryCacheKey])!=null||(_[L]={status:Ae.uninitialized,endpointName:A.endpointName})),us(_,A.queryCacheKey,function(C){C.status=Ae.pending,C.requestId=T&&C.requestId?C.requestId:P.requestId,A.originalArgs!==void 0&&(C.originalArgs=A.originalArgs),C.startedTimeStamp=P.startedTimeStamp})}).addCase(r.fulfilled,function(_,O){var P=O.meta,A=O.payload;us(_,P.arg.queryCacheKey,function(L){var S;if(!(L.requestId!==P.requestId&&!Gf(P.arg))){var T=o[P.arg.endpointName].merge;if(L.status=Ae.fulfilled,T)if(L.data!==void 0){var C=P.fulfilledTimeStamp,I=P.arg,D=P.baseQueryMeta,z=P.requestId,Q=Da(L.data,function(R){return T(R,A,{arg:I.originalArgs,baseQueryMeta:D,fulfilledTimeStamp:C,requestId:z})});L.data=Q}else L.data=A;else L.data=(S=o[P.arg.endpointName].structuralSharing)==null||S?gw(L.data,A):A;delete L.error,L.fulfilledTimeStamp=P.fulfilledTimeStamp}})}).addCase(r.rejected,function(_,O){var P=O.meta,A=P.condition,L=P.arg,S=P.requestId,T=O.error,C=O.payload;us(_,L.queryCacheKey,function(I){if(!A){if(I.requestId!==S)return;I.status=Ae.rejected,I.error=C??T}})}).addMatcher(u,function(_,O){for(var P=s(O).queries,A=0,L=Object.entries(P);A>>2]>>>24-O%4*8&255;p[x+O>>>2]|=P<<24-(x+O)%4*8}else for(var A=0;A<_;A+=4)p[x+A>>>2]=w[A>>>2];return this.sigBytes+=_,this},clamp:function(){var v=this.words,p=this.sigBytes;v[p>>>2]&=4294967295<<32-p%4*8,v.length=n.ceil(p/4)},clone:function(){var v=c.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var p=[],w=0;w>>2]>>>24-_%4*8&255;x.push((O>>>4).toString(16)),x.push((O&15).toString(16))}return x.join("")},parse:function(v){for(var p=v.length,w=[],x=0;x>>3]|=parseInt(v.substr(x,2),16)<<24-x%8*4;return new f.init(w,p/2)}},m=d.Latin1={stringify:function(v){for(var p=v.words,w=v.sigBytes,x=[],_=0;_>>2]>>>24-_%4*8&255;x.push(String.fromCharCode(O))}return x.join("")},parse:function(v){for(var p=v.length,w=[],x=0;x>>2]|=(v.charCodeAt(x)&255)<<24-x%4*8;return new f.init(w,p)}},g=d.Utf8={stringify:function(v){try{return decodeURIComponent(escape(m.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return m.parse(unescape(encodeURIComponent(v)))}},b=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=g.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var p,w=this._data,x=w.words,_=w.sigBytes,O=this.blockSize,P=O*4,A=_/P;v?A=n.ceil(A):A=n.max((A|0)-this._minBufferSize,0);var L=A*O,S=n.min(L*4,_);if(L){for(var T=0;T>>7)^(A<<14|A>>>18)^A>>>3,S=f[P-2],T=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;f[P]=L+f[P-7]+T+f[P-16]}var C=w&x^~w&_,I=b&y^b&v^y&v,D=(b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22),z=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),Q=O+z+C+c[P]+f[P],R=D+I;O=_,_=x,x=w,w=p+Q|0,p=v,v=y,y=b,b=Q+R|0}g[0]=g[0]+b|0,g[1]=g[1]+y|0,g[2]=g[2]+v|0,g[3]=g[3]+p|0,g[4]=g[4]+w|0,g[5]=g[5]+x|0,g[6]=g[6]+_|0,g[7]=g[7]+O|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,b=h.sigBytes*8;return m[b>>>5]|=128<<24-b%32,m[(b+64>>>9<<4)+14]=n.floor(g/4294967296),m[(b+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});i.SHA256=s._createHelper(d),i.HmacSHA256=s._createHmacHelper(d)}(Math),r.SHA256})})(EC);var Jf={},PC={get exports(){return Jf},set exports(e){Jf=e}};(function(e,t){(function(r,n){e.exports=n(kh())})(Me,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64={stringify:function(u){var l=u.words,c=u.sigBytes,f=this._map;u.clamp();for(var d=[],h=0;h>>2]>>>24-h%4*8&255,g=l[h+1>>>2]>>>24-(h+1)%4*8&255,b=l[h+2>>>2]>>>24-(h+2)%4*8&255,y=m<<16|g<<8|b,v=0;v<4&&h+v*.75>>6*(3-v)&63));var p=f.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(u){var l=u.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d>>6-h%4*2,b=m|g;f[d>>>2]|=b<<24-d%4*8,d++}return o.create(f,d)}}(),r.enc.Base64})})(PC);var Zf={},RC={get exports(){return Zf},set exports(e){Zf=e}};(function(e,t){(function(r,n){e.exports=n(kh())})(Me,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,a=o.init,s=o.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var l=u.byteLength,c=[],f=0;f>>2]|=u[f]<<24-f%4*8;a.call(this,c,l)}else a.apply(this,arguments)};s.prototype=o}}(),r.lib.WordArray})})(RC);var Oh=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_w,"__esModule",{value:!0});var AC=Oh(Xf),IC=Oh(Jf),MC=Oh(Zf),LC=function(){function e(t){this.state="",this.codeVerifier="",this.config=t}return e.prototype.authorizeUrl=function(t){t===void 0&&(t={});var r=this.pkceChallengeFromVerifier(),n=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(t.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:r,code_challenge_method:"S256"},t)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(n)},e.prototype.exchangeForAccessToken=function(t,r){var n=this;return r===void 0&&(r={}),this.parseAuthResponseUrl(t).then(function(i){return fetch(n.config.token_endpoint,{method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:i.code,client_id:n.config.client_id,redirect_uri:n.config.redirect_uri,code_verifier:n.getCodeVerifier()},r)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then(function(o){return o.json()})})},e.prototype.getCodeVerifier=function(){return this.codeVerifier===""&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(t){t===void 0&&(t=null);var r="pkce_state";return t!==null&&this.getStore().setItem(r,t),this.state===""&&(this.state=this.randomStringFromStorage(r)),this.state},e.prototype.parseAuthResponseUrl=function(t){var r=new URL(t).searchParams;return this.validateAuthResponse({error:r.get("error"),query:r.get("query"),state:r.get("state"),code:r.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var t=(0,AC.default)(this.getCodeVerifier());return IC.default.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(t){var r=this.getStore().getItem(t);return r===null&&this.getStore().setItem(t,MC.default.random(64)),this.getStore().getItem(t)||""},e.prototype.validateAuthResponse=function(t){var r=this;return new Promise(function(n,i){return t.error?i({error:t.error}):t.state!==r.getState()?i({error:"Invalid State"}):n(t)})},e.prototype.getStore=function(){var t;return((t=this.config)===null||t===void 0?void 0:t.storage)||sessionStorage},e}(),NC=_w.default=LC;const Oc="https://fauna.initlab.org/oauth/",cg={authorize:Oc+"authorize",token:Oc+"token",revoke:Oc+"revoke"},DC="ERBrlPWjf98L_nI8Moxr7Aqjy4no1eRU-zSOROc2RbU",Ew=["public","account_data_read","door_control"].join(" "),Cw=new NC({client_id:DC,redirect_uri:window.location.protocol+"//"+window.location.host+"/fauna-frontend/oauth-callback",authorization_endpoint:cg.authorize,token_endpoint:cg.token,requested_scopes:Ew}),Th="accessToken",Ph="accessTokenExpire",Rh="refreshToken",kw=()=>localStorage.getItem(Th),jC=()=>localStorage.getItem(Ph),FC=()=>localStorage.getItem(Rh),Ow=e=>{if(e.hasOwnProperty("error")&&e.hasOwnProperty("error_description"))throw new Error(e.error_description);if(!e.hasOwnProperty("access_token")||!e.hasOwnProperty("created_at")||!e.hasOwnProperty("expires_in")||!e.hasOwnProperty("refresh_token")||!e.hasOwnProperty("scope")||!e.hasOwnProperty("token_type")||e.token_type!=="Bearer"||e.scope!==Ew)throw new Error("Incomplete response, missing fields");localStorage.setItem(Th,e.access_token),localStorage.setItem(Ph,e.created_at+e.expires_in),localStorage.setItem(Rh,e.refresh_token)},ed=()=>{localStorage.removeItem(Th),localStorage.removeItem(Ph),localStorage.removeItem(Rh)},BC=async()=>{ed()};function wu(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(c){try{l(n.next(c))}catch(f){a(f)}}function u(c){try{l(n.throw(c))}catch(f){a(f)}}function l(c){c.done?o(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function bu(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;r--){var n=(t=this._weightedQueues[r-1])===null||t===void 0?void 0:t.shift();if(n){var i=this._value,o=r;this._value-=r,r=this._value+1,n.resolve([i,this._newReleaser(o)])}}this._drainUnlockWaiters()},e.prototype._newReleaser=function(t){var r=this,n=!1;return function(){n||(n=!0,r.release(t))}},e.prototype._drainUnlockWaiters=function(){for(var t=this._value;t>0;t--)this._weightedWaiters[t-1]&&(this._weightedWaiters[t-1].forEach(function(r){return r()}),this._weightedWaiters[t-1]=[])},e}(),WC=function(){function e(t){this._semaphore=new zC(1,t)}return e.prototype.acquire=function(){return wu(this,void 0,void 0,function(){var t,r;return bu(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=n.sent(),r=t[1],[2,r]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.waitForUnlock=function(){return this._semaphore.waitForUnlock()},e.prototype.release=function(){this._semaphore.isLocked()&&this._semaphore.release()},e.prototype.cancel=function(){return this._semaphore.cancel()},e}();function HC(e,t,r){var n=this;return r===void 0&&(r=UC),{acquire:function(i){if(i!==void 0&&i<=0)throw new Error("invalid weight ".concat(i,": must be positive"));return new Promise(function(o,a){return wu(n,void 0,void 0,function(){var s,u,l,c,f;return bu(this,function(d){switch(d.label){case 0:s=!1,u=setTimeout(function(){s=!0,a(r)},t),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,e.acquire(i)];case 2:return l=d.sent(),s?(c=Array.isArray(l)?l[1]:l,c()):(clearTimeout(u),o(l)),[3,4];case 3:return f=d.sent(),s||(clearTimeout(u),a(f)),[3,4];case 4:return[2]}})})})},runExclusive:function(i,o){return wu(this,void 0,void 0,function(){var a,s;return bu(this,function(u){switch(u.label){case 0:a=function(){},u.label=1;case 1:return u.trys.push([1,,7,8]),[4,this.acquire(o)];case 2:return s=u.sent(),Array.isArray(s)?(a=s[1],[4,i(s[0])]):[3,4];case 3:return[2,u.sent()];case 4:return a=s,[4,i()];case 5:return[2,u.sent()];case 6:return[3,8];case 7:return a(),[7];case 8:return[2]}})})},release:function(i){e.release(i)},cancel:function(){return e.cancel()},waitForUnlock:function(i){if(i!==void 0&&i<=0)throw new Error("invalid weight ".concat(i,": must be positive"));return new Promise(function(o,a){e.waitForUnlock(i).then(o),setTimeout(function(){return a(r)},t)})},isLocked:function(){return e.isLocked()},getValue:function(){return e.getValue()},setValue:function(i){return e.setValue(i)}}}function qC(e,t){return t===void 0&&(t=Tw),HC(e,0,t)}const fg=new WC,Pw="https://fauna.initlab.org/api/",dg=async(e,t)=>{try{return await qC(fg).runExclusive(async()=>{var i;const r=FC();if(r===null)return ed(),console.error("No refresh token found"),!1;const n=(i=await Rw({url:"../oauth/token",method:"POST",body:{client_id:"ERBrlPWjf98L_nI8Moxr7Aqjy4no1eRU-zSOROc2RbU",grant_type:"refresh_token",refresh_token:r}},e,t))==null?void 0:i.data;return n?(Ow(n),!0):(ed(),console.error("Refreshing token failed"),!1)})}catch(r){if(r===Tw)return await fg.waitForUnlock(),!0;throw r}},Rw=mw({baseUrl:Pw,prepareHeaders:e=>(e.set("accept","application/json"),e)}),hg=mw({baseUrl:Pw,prepareHeaders:e=>{e.set("accept","application/json");const t=kw();return t&&e.set("authorization","Bearer "+t),e}}),VC=async(e,t,r)=>{var o;const n=jC();n!==null&&n*1e3t=>e.query({query:()=>t}),Ts=xw({reducerPath:"anonymousApi",baseQuery:Rw,endpoints:e=>({getPresentUsers:td(e)("users/present")})}),Ps=xw({reducerPath:"authenticatedApi",baseQuery:VC,endpoints:e=>({getCurrentUser:td(e)("current_user.json"),getDoors:td(e)("doors.json"),doorAction:e.mutation({query:t=>({url:"doors/"+t.doorId+"/"+t.action,method:"POST"})})})}),{useGetPresentUsersQuery:QC}=Ts,{useGetCurrentUserQuery:KC,useGetDoorsQuery:YC,useDoorActionMutation:GC}=Ps,Su=Zr({name:"sensor",initialState:{},reducers:{setSensor:(e,{payload:{topic:t,data:r,message:n}})=>{e[t]={data:r,message:n}}}}),XC=e=>t=>t[Su.name][e],{setSensor:JC}=Su.actions,Sa=Zr({name:"door",initialState:{locked:null,unlocked:null},reducers:{setState:(e,{payload:{property:t,value:r}})=>{e[t]=r}}}),ZC=e=>t=>{var r;return(r=t[Sa.name])==null?void 0:r[e]},Aw=()=>e=>{const t=e[Sa.name],r=t.locked,n=t.unlocked;if(r===null||n===null)return"uninitialized";if(r&&n===!1)return"locked";if(r===!1&&n)return"unlocked";if(r===!1&&n===!1)return"busy";if(r&&n)return"invalid"},{setState:ek}=Sa.actions,xu=bE({reducer:{[Ts.reducerPath]:Ts.reducer,[Ps.reducerPath]:Ps.reducer,[Su.name]:Su.reducer,[Sa.name]:Sa.reducer},middleware:e=>e().concat(Ts.middleware).concat(Ps.middleware)});zE(xu.dispatch);/** * @remix-run/router v1.2.1 * * Copyright (c) Remix Software Inc. @@ -79,7 +79,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function tk(){return Math.random().toString(36).substr(2,8)}function pg(e){return{usr:e.state,key:e.key}}function td(e,t,r,n){return r===void 0&&(r=null),_u({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?oo(t):t,{state:r,key:t&&t.key||n||tk()})}function xa(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function oo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function rk(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof e=="string"?e:xa(e);return We(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function nk(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=un.Pop,u=null;function l(){s=un.Pop,u&&u({action:s,location:d.location})}function c(h,m){s=un.Push;let g=td(d.location,h,m);r&&r(g,h);let b=pg(g),y=d.createHref(g);try{a.pushState(b,"",y)}catch{i.location.assign(y)}o&&u&&u({action:s,location:d.location})}function f(h,m){s=un.Replace;let g=td(d.location,h,m);r&&r(g,h);let b=pg(g),y=d.createHref(g);a.replaceState(b,"",y),o&&u&&u({action:s,location:d.location})}let d={get action(){return s},get location(){return e(i,a)},listen(h){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(hg,l),u=h,()=>{i.removeEventListener(hg,l),u=null}},createHref(h){return t(i,h)},encodeLocation(h){let m=rk(typeof h=="string"?h:xa(h));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:c,replace:f,go(h){return a.go(h)}};return d}var vg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vg||(vg={}));function ik(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?oo(t):t,i=Lw(n.pathname||"/",r);if(i==null)return null;let o=Iw(e);ok(o);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};u.relativePath.startsWith("/")&&(We(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=bn([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(We(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),Iw(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:dk(l,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let u of Mw(o.path))i(o,a,u)}),t}function Mw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=Mw(n.join("/")),s=[];return s.push(...a.map(u=>u===""?o:[o,u].join("/"))),i&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function ok(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hk(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const ak=/^:\w+$/,sk=3,uk=2,lk=1,ck=10,fk=-2,gg=e=>e==="*";function dk(e,t){let r=e.split("/"),n=r.length;return r.some(gg)&&(n+=fk),t&&(n+=uk),r.filter(i=>!gg(i)).reduce((i,o)=>i+(ak.test(o)?sk:o===""?lk:ck),n)}function hk(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function pk(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a{if(c==="*"){let d=s[f]||"";a=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return l[c]=yk(s[f]||"",c),l},{}),pathname:o,pathnameBase:a,pattern:e}}function gk(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Rh(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function mk(e){try{return decodeURI(e)}catch(t){return Rh(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yk(e,t){try{return decodeURIComponent(e)}catch(r){return Rh(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Lw(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)||"/"}function Rh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wk(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?oo(e):e;return{pathname:r?r.startsWith("/")?r:bk(r,t):t,search:xk(n),hash:_k(i)}}function bk(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Tc(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 Nw(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Dw(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=oo(e):(i=_u({},e),We(!i.pathname||!i.pathname.includes("?"),Tc("?","pathname","search",i)),We(!i.pathname||!i.pathname.includes("#"),Tc("#","pathname","hash",i)),We(!i.search||!i.search.includes("#"),Tc("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(n||a==null)s=r;else{let f=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let u=wk(i,s),l=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const bn=e=>e.join("/").replace(/\/\/+/g,"/"),Sk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_k=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ek{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Ck(e){return e instanceof Ek}const kk=["post","put","patch","delete"];[...kk];/** + */function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function rk(){return Math.random().toString(36).substr(2,8)}function vg(e){return{usr:e.state,key:e.key}}function rd(e,t,r,n){return r===void 0&&(r=null),_u({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?oo(t):t,{state:r,key:t&&t.key||n||rk()})}function xa(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function oo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function nk(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof e=="string"?e:xa(e);return We(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function ik(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=un.Pop,u=null;function l(){s=un.Pop,u&&u({action:s,location:d.location})}function c(h,m){s=un.Push;let g=rd(d.location,h,m);r&&r(g,h);let b=vg(g),y=d.createHref(g);try{a.pushState(b,"",y)}catch{i.location.assign(y)}o&&u&&u({action:s,location:d.location})}function f(h,m){s=un.Replace;let g=rd(d.location,h,m);r&&r(g,h);let b=vg(g),y=d.createHref(g);a.replaceState(b,"",y),o&&u&&u({action:s,location:d.location})}let d={get action(){return s},get location(){return e(i,a)},listen(h){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(pg,l),u=h,()=>{i.removeEventListener(pg,l),u=null}},createHref(h){return t(i,h)},encodeLocation(h){let m=nk(typeof h=="string"?h:xa(h));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:c,replace:f,go(h){return a.go(h)}};return d}var gg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gg||(gg={}));function ok(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?oo(t):t,i=Lw(n.pathname||"/",r);if(i==null)return null;let o=Iw(e);ak(o);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};u.relativePath.startsWith("/")&&(We(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=bn([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(We(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),Iw(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:hk(l,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let u of Mw(o.path))i(o,a,u)}),t}function Mw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=Mw(n.join("/")),s=[];return s.push(...a.map(u=>u===""?o:[o,u].join("/"))),i&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function ak(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:pk(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const sk=/^:\w+$/,uk=3,lk=2,ck=1,fk=10,dk=-2,mg=e=>e==="*";function hk(e,t){let r=e.split("/"),n=r.length;return r.some(mg)&&(n+=dk),t&&(n+=lk),r.filter(i=>!mg(i)).reduce((i,o)=>i+(sk.test(o)?uk:o===""?ck:fk),n)}function pk(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function vk(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a{if(c==="*"){let d=s[f]||"";a=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return l[c]=wk(s[f]||"",c),l},{}),pathname:o,pathnameBase:a,pattern:e}}function mk(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ah(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function yk(e){try{return decodeURI(e)}catch(t){return Ah(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function wk(e,t){try{return decodeURIComponent(e)}catch(r){return Ah(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Lw(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)||"/"}function Ah(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bk(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?oo(e):e;return{pathname:r?r.startsWith("/")?r:Sk(r,t):t,search:_k(n),hash:Ek(i)}}function Sk(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Tc(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 Nw(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Dw(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=oo(e):(i=_u({},e),We(!i.pathname||!i.pathname.includes("?"),Tc("?","pathname","search",i)),We(!i.pathname||!i.pathname.includes("#"),Tc("#","pathname","hash",i)),We(!i.search||!i.search.includes("#"),Tc("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(n||a==null)s=r;else{let f=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let u=bk(i,s),l=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const bn=e=>e.join("/").replace(/\/\/+/g,"/"),xk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_k=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ek=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ck{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function kk(e){return e instanceof Ck}const Ok=["post","put","patch","delete"];[...Ok];/** * React Router v6.6.1 * * Copyright (c) Remix Software Inc. @@ -88,7 +88,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=n,i.getSnapshot=t,Pc(i)&&o({inst:i})},[e,n,t]),Rk(()=>(Pc(i)&&o({inst:i}),e(()=>{Pc(i)&&o({inst:i})})),[e]),Ik(n),n}function Pc(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Tk(r,n)}catch{return!0}}function Lk(e,t,r){return t()}const Nk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dk=!Nk,jk=Dk?Lk:Mk;"useSyncExternalStore"in zc&&(e=>e.useSyncExternalStore)(zc);const Fk=$.createContext(null),Bk=$.createContext(null),kl=$.createContext(null),Fa=$.createContext(null),Ol=$.createContext(null),ao=$.createContext({outlet:null,matches:[]}),jw=$.createContext(null);function Uk(e,t){let{relative:r}=t===void 0?{}:t;so()||We(!1);let{basename:n,navigator:i}=$.useContext(Fa),{hash:o,pathname:a,search:s}=Ah(e,{relative:r}),u=a;return n!=="/"&&(u=a==="/"?n:bn([n,a])),i.createHref({pathname:u,search:s,hash:o})}function so(){return $.useContext(Ol)!=null}function Ba(){return so()||We(!1),$.useContext(Ol).location}function Tl(){so()||We(!1);let{basename:e,navigator:t}=$.useContext(Fa),{matches:r}=$.useContext(ao),{pathname:n}=Ba(),i=JSON.stringify(Nw(r).map(s=>s.pathnameBase)),o=$.useRef(!1);return $.useEffect(()=>{o.current=!0}),$.useCallback(function(s,u){if(u===void 0&&(u={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let l=Dw(s,JSON.parse(i),n,u.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:bn([e,l.pathname])),(u.replace?t.replace:t.push)(l,u.state,u)},[e,t,i,n])}function Ah(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=$.useContext(ao),{pathname:i}=Ba(),o=JSON.stringify(Nw(n).map(a=>a.pathnameBase));return $.useMemo(()=>Dw(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function $k(e,t){so()||We(!1);let{navigator:r}=$.useContext(Fa),n=$.useContext(kl),{matches:i}=$.useContext(ao),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Ba(),l;if(t){var c;let g=typeof t=="string"?oo(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||We(!1),l=g}else l=u;let f=l.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=ik(e,{pathname:d}),m=qk(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:bn([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:bn([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n||void 0);return t&&m?$.createElement(Ol.Provider,{value:{location:rd({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:un.Pop}},m):m}function zk(){let e=Yk(),t=Ck(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n};return $.createElement($.Fragment,null,$.createElement("h2",null,"Unhandled Thrown Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},t),r?$.createElement("pre",{style:i},r):null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:o},"errorElement")," props on ",$.createElement("code",{style:o},"")))}class Wk extends $.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?$.createElement(ao.Provider,{value:this.props.routeContext},$.createElement(jw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Hk(e){let{routeContext:t,match:r,children:n}=e,i=$.useContext(Fk);return i&&r.route.errorElement&&(i._deepestRenderedBoundaryId=r.route.id),$.createElement(ao.Provider,{value:t},n)}function qk(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,i=r==null?void 0:r.errors;if(i!=null){let o=n.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||We(!1),n=n.slice(0,Math.min(n.length,o+1))}return n.reduceRight((o,a,s)=>{let u=a.route.id?i==null?void 0:i[a.route.id]:null,l=r?a.route.errorElement||$.createElement(zk,null):null,c=t.concat(n.slice(0,s+1)),f=()=>$.createElement(Hk,{match:a,routeContext:{outlet:o,matches:c}},u?l:a.route.element!==void 0?a.route.element:o);return r&&(a.route.errorElement||s===0)?$.createElement(Wk,{location:r.location,component:l,error:u,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var mg;(function(e){e.UseRevalidator="useRevalidator"})(mg||(mg={}));var Eu;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Eu||(Eu={}));function Vk(e){let t=$.useContext(kl);return t||We(!1),t}function Qk(e){let t=$.useContext(ao);return t||We(!1),t}function Kk(e){let t=Qk(),r=t.matches[t.matches.length-1];return r.route.id||We(!1),r.route.id}function Yk(){var e;let t=$.useContext(jw),r=Vk(Eu.UseRouteError),n=Kk(Eu.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function Gk(e){let{to:t,replace:r,state:n,relative:i}=e;so()||We(!1);let o=$.useContext(kl),a=Tl();return $.useEffect(()=>{o&&o.navigation.state!=="idle"||a(t,{replace:r,state:n,relative:i})}),null}function Gr(e){We(!1)}function Xk(e){let{basename:t="/",children:r=null,location:n,navigationType:i=un.Pop,navigator:o,static:a=!1}=e;so()&&We(!1);let s=t.replace(/^\/*/,"/"),u=$.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof n=="string"&&(n=oo(n));let{pathname:l="/",search:c="",hash:f="",state:d=null,key:h="default"}=n,m=$.useMemo(()=>{let g=Lw(l,s);return g==null?null:{pathname:g,search:c,hash:f,state:d,key:h}},[s,l,c,f,d,h]);return m==null?null:$.createElement(Fa.Provider,{value:u},$.createElement(Ol.Provider,{children:r,value:{location:m,navigationType:i}}))}function Jk(e){let{children:t,location:r}=e,n=$.useContext(Bk),i=n&&!t?n.router.routes:nd(t);return $k(i,r)}var yg;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(yg||(yg={}));new Promise(()=>{});function nd(e,t){t===void 0&&(t=[]);let r=[];return $.Children.forEach(e,(n,i)=>{if(!$.isValidElement(n))return;if(n.type===$.Fragment){r.push.apply(r,nd(n.props.children,t));return}n.type!==Gr&&We(!1),!n.props.index||!n.props.children||We(!1);let o=[...t,i],a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(a.children=nd(n.props.children,o)),r.push(a)}),r}/** + */function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=n,i.getSnapshot=t,Pc(i)&&o({inst:i})},[e,n,t]),Ak(()=>(Pc(i)&&o({inst:i}),e(()=>{Pc(i)&&o({inst:i})})),[e]),Mk(n),n}function Pc(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Pk(r,n)}catch{return!0}}function Nk(e,t,r){return t()}const Dk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jk=!Dk,Fk=jk?Nk:Lk;"useSyncExternalStore"in zc&&(e=>e.useSyncExternalStore)(zc);const Bk=$.createContext(null),Uk=$.createContext(null),kl=$.createContext(null),Fa=$.createContext(null),Ol=$.createContext(null),ao=$.createContext({outlet:null,matches:[]}),jw=$.createContext(null);function $k(e,t){let{relative:r}=t===void 0?{}:t;so()||We(!1);let{basename:n,navigator:i}=$.useContext(Fa),{hash:o,pathname:a,search:s}=Ih(e,{relative:r}),u=a;return n!=="/"&&(u=a==="/"?n:bn([n,a])),i.createHref({pathname:u,search:s,hash:o})}function so(){return $.useContext(Ol)!=null}function Ba(){return so()||We(!1),$.useContext(Ol).location}function Tl(){so()||We(!1);let{basename:e,navigator:t}=$.useContext(Fa),{matches:r}=$.useContext(ao),{pathname:n}=Ba(),i=JSON.stringify(Nw(r).map(s=>s.pathnameBase)),o=$.useRef(!1);return $.useEffect(()=>{o.current=!0}),$.useCallback(function(s,u){if(u===void 0&&(u={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let l=Dw(s,JSON.parse(i),n,u.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:bn([e,l.pathname])),(u.replace?t.replace:t.push)(l,u.state,u)},[e,t,i,n])}function Ih(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=$.useContext(ao),{pathname:i}=Ba(),o=JSON.stringify(Nw(n).map(a=>a.pathnameBase));return $.useMemo(()=>Dw(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function zk(e,t){so()||We(!1);let{navigator:r}=$.useContext(Fa),n=$.useContext(kl),{matches:i}=$.useContext(ao),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Ba(),l;if(t){var c;let g=typeof t=="string"?oo(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||We(!1),l=g}else l=u;let f=l.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=ok(e,{pathname:d}),m=Vk(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:bn([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:bn([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n||void 0);return t&&m?$.createElement(Ol.Provider,{value:{location:nd({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:un.Pop}},m):m}function Wk(){let e=Gk(),t=kk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n};return $.createElement($.Fragment,null,$.createElement("h2",null,"Unhandled Thrown Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},t),r?$.createElement("pre",{style:i},r):null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:o},"errorElement")," props on ",$.createElement("code",{style:o},"")))}class Hk extends $.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?$.createElement(ao.Provider,{value:this.props.routeContext},$.createElement(jw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qk(e){let{routeContext:t,match:r,children:n}=e,i=$.useContext(Bk);return i&&r.route.errorElement&&(i._deepestRenderedBoundaryId=r.route.id),$.createElement(ao.Provider,{value:t},n)}function Vk(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,i=r==null?void 0:r.errors;if(i!=null){let o=n.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||We(!1),n=n.slice(0,Math.min(n.length,o+1))}return n.reduceRight((o,a,s)=>{let u=a.route.id?i==null?void 0:i[a.route.id]:null,l=r?a.route.errorElement||$.createElement(Wk,null):null,c=t.concat(n.slice(0,s+1)),f=()=>$.createElement(qk,{match:a,routeContext:{outlet:o,matches:c}},u?l:a.route.element!==void 0?a.route.element:o);return r&&(a.route.errorElement||s===0)?$.createElement(Hk,{location:r.location,component:l,error:u,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var yg;(function(e){e.UseRevalidator="useRevalidator"})(yg||(yg={}));var Eu;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Eu||(Eu={}));function Qk(e){let t=$.useContext(kl);return t||We(!1),t}function Kk(e){let t=$.useContext(ao);return t||We(!1),t}function Yk(e){let t=Kk(),r=t.matches[t.matches.length-1];return r.route.id||We(!1),r.route.id}function Gk(){var e;let t=$.useContext(jw),r=Qk(Eu.UseRouteError),n=Yk(Eu.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function Xk(e){let{to:t,replace:r,state:n,relative:i}=e;so()||We(!1);let o=$.useContext(kl),a=Tl();return $.useEffect(()=>{o&&o.navigation.state!=="idle"||a(t,{replace:r,state:n,relative:i})}),null}function Gr(e){We(!1)}function Jk(e){let{basename:t="/",children:r=null,location:n,navigationType:i=un.Pop,navigator:o,static:a=!1}=e;so()&&We(!1);let s=t.replace(/^\/*/,"/"),u=$.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof n=="string"&&(n=oo(n));let{pathname:l="/",search:c="",hash:f="",state:d=null,key:h="default"}=n,m=$.useMemo(()=>{let g=Lw(l,s);return g==null?null:{pathname:g,search:c,hash:f,state:d,key:h}},[s,l,c,f,d,h]);return m==null?null:$.createElement(Fa.Provider,{value:u},$.createElement(Ol.Provider,{children:r,value:{location:m,navigationType:i}}))}function Zk(e){let{children:t,location:r}=e,n=$.useContext(Uk),i=n&&!t?n.router.routes:id(t);return zk(i,r)}var wg;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(wg||(wg={}));new Promise(()=>{});function id(e,t){t===void 0&&(t=[]);let r=[];return $.Children.forEach(e,(n,i)=>{if(!$.isValidElement(n))return;if(n.type===$.Fragment){r.push.apply(r,id(n.props.children,t));return}n.type!==Gr&&We(!1),!n.props.index||!n.props.children||We(!1);let o=[...t,i],a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(a.children=id(n.props.children,o)),r.push(a)}),r}/** * React Router DOM v6.6.1 * * Copyright (c) Remix Software Inc. @@ -97,27 +97,27 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function Zk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eO(e,t){return e.button===0&&(!t||t==="_self")&&!Zk(e)}const tO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],rO=["aria-current","caseSensitive","className","end","style","to","children"];function nO(e){let{basename:t,children:r,window:n}=e,i=$.useRef();i.current==null&&(i.current=ek({window:n,v5Compat:!0}));let o=i.current,[a,s]=$.useState({action:o.action,location:o.location});return $.useLayoutEffect(()=>o.listen(s),[o]),$.createElement(Xk,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o})}const iO=$.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:a,state:s,target:u,to:l,preventScrollReset:c}=t,f=Fw(t,tO),d=Uk(l,{relative:i}),h=oO(l,{replace:a,state:s,target:u,preventScrollReset:c,relative:i});function m(g){n&&n(g),g.defaultPrevented||h(g)}return $.createElement("a",Cu({},f,{href:d,onClick:o?n:m,ref:r,target:u}))}),li=$.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:u,children:l}=t,c=Fw(t,rO),f=Ah(u,{relative:c.relative}),d=Ba(),h=$.useContext(kl),{navigator:m}=$.useContext(Fa),g=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=d.pathname,y=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;i||(b=b.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase());let v=b===g||!a&&b.startsWith(g)&&b.charAt(g.length)==="/",p=y!=null&&(y===g||!a&&y.startsWith(g)&&y.charAt(g.length)==="/"),w=v?n:void 0,x;typeof o=="function"?x=o({isActive:v,isPending:p}):x=[o,v?"active":null,p?"pending":null].filter(Boolean).join(" ");let _=typeof s=="function"?s({isActive:v,isPending:p}):s;return $.createElement(iO,Cu({},c,{"aria-current":w,className:x,ref:r,style:_,to:u}),typeof l=="function"?l({isActive:v,isPending:p}):l)});var wg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(wg||(wg={}));var bg;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bg||(bg={}));function oO(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=Tl(),u=Ba(),l=Ah(e,{relative:a});return $.useCallback(c=>{if(eO(c,r)){c.preventDefault();let f=n!==void 0?n:xa(u)===xa(l);s(e,{replace:f,state:i,preventScrollReset:o,relative:a})}},[u,s,l,n,i,r,e,o,a])}function ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sg(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:{};ar(this,e),this.init(t,r)}return sr(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||uO,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function kg(e,t,r){var n=Ih(e,t,Object),i=n.obj,o=n.k;i[o]=r}function fO(e,t,r,n){var i=Ih(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function Ou(e,t){var r=Ih(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Og(e,t,r){var n=Ou(e,r);return n!==void 0?n:Ou(t,r)}function zw(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):zw(e[n],t[n],r):e[n]=t[n]);return e}function ci(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dO={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function hO(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return dO[t]}):e}var Rl=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,pO=[" ",",","?","!",";"];function vO(e,t,r){t=t||"",r=r||"";var n=pO.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ww(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Ww(u,l,r):void 0}i=i[n[o]]}return i}}var yO=function(e){Pl(r,e);var t=gO(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ar(this,r),i=t.call(this),Rl&&Tn.call(Sn(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return sr(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=Ou(this.data,c);return f||!l||typeof a!="string"?f:Ww(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=this.options.keySeparator;l===void 0&&(l=".");var c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),kg(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=Ou(this.data,c)||{};s?zw(f,a,u):f=cs(cs({},f),a),kg(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?cs(cs({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(Tn),Hw={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Rg={},Ag=function(e){Pl(r,e);var t=wO(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ar(this,r),i=t.call(this),Rl&&Tn.call(Sn(i)),cO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Sn(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=vr.create("translator"),i}return sr(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!vO(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var d=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(d[0])>-1)&&(u=d.shift()),i=d.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if(tr(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,d=c.namespaces,h=d[d.length-1],m=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(g){var b=o.nsSeparator||this.options.nsSeparator;return u?(y.res="".concat(h).concat(b).concat(f),y):"".concat(h).concat(b).concat(f)}return u?(y.res=f,y):f}var y=this.resolve(i,o),v=y&&y.res,p=y&&y.usedKey||f,w=y&&y.exactUsedKey||f,x=Object.prototype.toString.apply(v),_=["[object Number]","[object Function]","[object RegExp]"],O=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(P&&v&&A&&_.indexOf(x)<0&&!(typeof O=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,v,ft(ft({},o),{},{ns:d})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(y.res=L,y):L}if(l){var S=x==="[object Array]",T=S?[]:{},C=S?w:p;for(var I in v)if(Object.prototype.hasOwnProperty.call(v,I)){var D="".concat(C).concat(l).concat(I);T[I]=this.translate(D,ft(ft({},o),{joinArrays:!1,ns:d})),T[I]===D&&(T[I]=v[I])}v=T}}else if(P&&typeof O=="string"&&x==="[object Array]")v=v.join(O),v&&(v=this.extendTranslation(v,i,o,a));else{var z=!1,Q=!1,R=o.count!==void 0&&typeof o.count!="string",N=r.hasDefaultValue(o),B=R?this.pluralResolver.getSuffix(m,o.count,o):"",q=o["defaultValue".concat(B)]||o.defaultValue;!this.isValidLookup(v)&&N&&(z=!0,v=q),this.isValidLookup(v)||(Q=!0,v=f);var re=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,oe=re&&Q?void 0:v,Y=N&&q!==v&&this.options.updateMissing;if(Q||z||Y){if(this.logger.log(Y?"updateKey":"missingKey",m,h,f,Y?q:v),l){var K=this.resolve(f,ft(ft({},o),{},{keySeparator:!1}));K&&K.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ie=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(var fe=0;fe1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(d){if(!o.isValidLookup(s)){var h=o.extractFromKey(d,a),m=h.key;u=m;var g=h.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var b=a.count!==void 0&&typeof a.count!="string",y=b&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),v=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",p=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(w){o.isValidLookup(s)||(f=w,!Rg["".concat(p[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(Rg["".concat(p[0],"-").concat(w)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(p.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(function(x){if(!o.isValidLookup(s)){c=x;var _=[m];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(_,m,x,w,a);else{var O;b&&(O=o.pluralResolver.getSuffix(x,a.count,a));var P="".concat(o.options.pluralSeparator,"zero");if(b&&(_.push(m+O),y&&_.push(m+P)),v){var A="".concat(m).concat(o.options.contextSeparator).concat(a.context);_.push(A),b&&(_.push(A+O),y&&_.push(A+P))}}for(var L;L=_.pop();)o.isValidLookup(s)||(l=L,s=o.getResource(x,w,L,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(Tn);function Rc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ig=function(){function e(t){ar(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vr.create("languageUtils")}return sr(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rc(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rc(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Rc(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),SO=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xO={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},_O=["v1","v2","v3"],Mg={zero:0,one:1,two:2,few:3,many:4,other:5};function EO(){var e={};return SO.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:xO[t.fc]}})}),e}var CO=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ar(this,e),this.languageUtils=t,this.options=r,this.logger=vr.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=EO()}return sr(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return Mg[a]-Mg[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!_O.includes(this.options.compatibilityJSON)}}]),e}();function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ar(this,e),this.logger=vr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return sr(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:hO,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ci(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ci(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ci(n.nestingPrefix):n.nestingPrefixEscaped||ci("$t("),this.nestingSuffix=n.nestingSuffix?ci(n.nestingSuffix):n.nestingSuffixEscaped||ci(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(b){return b.replace(/\$/g,"$$$$")}var d=function(y){if(y.indexOf(a.formatSeparator)<0){var v=Og(n,c,y);return a.alwaysFormat?a.format(v,void 0,i,Kt(Kt(Kt({},o),n),{},{interpolationkey:y})):v}var p=y.split(a.formatSeparator),w=p.shift().trim(),x=p.join(a.formatSeparator).trim();return a.format(Og(n,c,w),x,i,Kt(Kt(Kt({},o),n),{},{interpolationkey:w}))};this.resetRegExp();var h=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(y){return f(y)}},{regex:this.regexp,safeValue:function(y){return a.escapeValue?f(a.escape(y)):f(y)}}];return g.forEach(function(b){for(l=0;s=b.regex.exec(r);){var y=s[1].trim();if(u=d(y),u===void 0)if(typeof h=="function"){var v=h(r,s,o);u=typeof v=="string"?v:""}else if(o&&o.hasOwnProperty(y))u="";else if(m){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(y," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=Cg(u));var p=b.safeValue(u);if(r=r.replace(s[0],p),m?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(h,m){var g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;var b=h.split(new RegExp("".concat(g,"[ ]*{"))),y="{".concat(b[1]);h=b[0],y=this.interpolate(y,u);var v=y.match(/'/g),p=y.match(/"/g);(v&&v.length%2===0&&!p||p.length%2!==0)&&(y=y.replace(/'/g,'"'));try{u=JSON.parse(y),m&&(u=Kt(Kt({},m),u))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),w),"".concat(h).concat(g).concat(y)}return delete u.defaultValue,h}for(;a=this.nestingRegexp.exec(r);){var c=[];u=Kt({},o),u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var d=a[1].split(this.formatSeparator).map(function(h){return h.trim()});a[1]=d.shift(),c=d,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=Cg(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(h,m){return i.format(h,m,o.lng,Kt(Kt({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function Ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=sO(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function fi(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var TO=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ar(this,e),this.logger=vr.create("formatter"),this.options=t,this.formats={number:fi(function(r,n){var i=new Intl.NumberFormat(r,n);return function(o){return i.format(o)}}),currency:fi(function(r,n){var i=new Intl.NumberFormat(r,Kr(Kr({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:fi(function(r,n){var i=new Intl.DateTimeFormat(r,Kr({},n));return function(o){return i.format(o)}}),relativetime:fi(function(r,n){var i=new Intl.RelativeTimeFormat(r,Kr({},n));return function(o){return i.format(o,n.range||"day")}}),list:fi(function(r,n){var i=new Intl.ListFormat(r,Kr({},n));return function(o){return i.format(o)}})},this.init(t)}return sr(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=fi(n)}},{key:"format",value:function(r,n,i,o){var a=this,s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=OO(c),d=f.formatName,h=f.formatOptions;if(a.formats[d]){var m=l;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=g.locale||g.lng||o.locale||o.lng||i;m=a.formats[d](l,b,Kr(Kr(Kr({},h),o),g))}catch(y){a.logger.warn(y)}return m}else a.logger.warn("there was no format function for ".concat(d));return l},r);return u}}]),e}();function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jg(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function AO(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var IO=function(e){Pl(r,e);var t=PO(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ar(this,r),a=t.call(this),Rl&&Tn.call(Sn(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=vr.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return sr(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},d={};return i.forEach(function(h){var m=!0;o.forEach(function(g){var b="".concat(h,"|").concat(g);!a.reload&&u.store.hasResourceBundle(h,g)?u.state[b]=2:u.state[b]<0||(u.state[b]===1?c[b]===void 0&&(c[b]=!0):(u.state[b]=1,m=!1,c[b]===void 0&&(c[b]=!0),l[b]===void 0&&(l[b]=!0),d[g]===void 0&&(d[g]=!0)))}),m||(f[h]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){fO(f.loaded,[u],l),AO(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(d){c[d]||(c[d]={});var h=f.loaded[d];h.length&&h.forEach(function(m){c[d][m]===void 0&&(c[d][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,b){if(s.readingCalls--,s.waitingReads.length>0){var y=s.waitingReads.shift();s.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(g&&b&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=jg(jg({},l),{},{isUpdate:u}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var h;d.length===5?h=d(i,o,a,s,f):h=d(i,o,a,s),h&&typeof h.then=="function"?h.then(function(m){return c(null,m)}).catch(c):c(null,h)}catch(m){c(m)}else d(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(Tn);function Fg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(tr(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),tr(t[2])==="object"||tr(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Bg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fs(){}function NO(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Tu=function(e){Pl(r,e);var t=MO(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ar(this,r),n=t.call(this),Rl&&Tn.call(Sn(n)),n.options=Bg(i),n.services={},n.logger=vr,n.modules={external:[]},NO(Sn(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),Ua(n,Sn(n));setTimeout(function(){n.init(i,o)},0)}return n}return sr(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=Fg();this.options=cr(cr(cr({},s),this.options),Bg(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=cr(cr({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(y){return y?typeof y=="function"?new y:y:null}if(!this.options.isClone){this.modules.logger?vr.init(u(this.modules.logger),this.options):vr.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=TO);var c=new Ig(this.options);this.store=new yO(this.options.resources,this.options);var f=this.services;f.logger=vr,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new CO(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new kO(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new IO(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(y){for(var v=arguments.length,p=new Array(v>1?v-1:0),w=1;w1?v-1:0),w=1;w0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(y){i[y]=function(){var v;return(v=i.store)[y].apply(v,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(y){i[y]=function(){var v;return(v=i.store)[y].apply(v,arguments),i}});var g=wo(),b=function(){var v=function(w,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(x),a(w,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return v(null,i.t.bind(i));i.changeLanguage(i.options.lng,v)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(h){if(h){var m=o.services.languageUtils.toResolveHierarchy(h);m.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return c(d)})}this.options.preload&&this.options.preload.forEach(function(d){return c(d)}),this.services.backendConnector.load(l,this.options.ns,function(d){!d&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(d)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=wo();return i||(i=this.languages),o||(o=this.options.ns),a||(a=fs),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Hw.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=wo();this.emit("languageChanging",i);var u=function(d){a.language=d,a.languages=a.services.languageUtils.toResolveHierarchy(d),a.resolvedLanguage=void 0,a.setResolvedLanguage(d)},l=function(d,h){h?(u(h),a.translator.changeLanguage(h),a.isLanguageChangingTo=void 0,a.emit("languageChanged",h),a.logger.log("languageChanged",h)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(d,function(){return a.t.apply(a,arguments)})},c=function(d){!i&&!d&&a.services.languageDetector&&(d=[]);var h=typeof d=="string"?d:a.services.languageUtils.getBestMatchFromCodes(d);h&&(a.language||u(h),a.translator.language||a.translator.changeLanguage(h),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(h)),a.loadResources(h,function(m){l(m,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var d;if(tr(f)!=="object"){for(var h=arguments.length,m=new Array(h>2?h-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(h,m){var g=o.services.backendConnector.state["".concat(h,"|").concat(m)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=wo();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=wo();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new Ig(Fg());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs,s=cr(cr(cr({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=cr({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Ag(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,d=new Array(f>1?f-1:0),h=1;h0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Tu(e,t)});var lt=Tu.createInstance();lt.createInstance=Tu.createInstance;lt.createInstance;lt.dir;lt.init;lt.loadResources;lt.reloadResources;lt.use;lt.changeLanguage;lt.getFixedT;lt.t;lt.exists;lt.setDefaultNamespace;lt.hasLoadedNamespace;lt.loadNamespaces;lt.loadLanguages;function id(e){return id=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},id(e)}var qw=[],DO=qw.forEach,jO=qw.slice;function od(e){return DO.call(jO.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}function Vw(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":id(XMLHttpRequest))==="object"}function FO(e){return!!e&&typeof e.then=="function"}function BO(e){return FO(e)?e:Promise.resolve(e)}var _a={},UO={get exports(){return _a},set exports(e){_a=e}},Ho={},$O={get exports(){return Ho},set exports(e){Ho=e}},$g;function zO(){return $g||($g=1,function(e,t){var r=typeof self<"u"?self:Me,n=function(){function o(){this.fetch=!1,this.DOMException=r.DOMException}return o.prototype=r,new o}();(function(o){(function(a){var s={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function u(I){return I&&DataView.prototype.isPrototypeOf(I)}if(s.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(I){return I&&l.indexOf(Object.prototype.toString.call(I))>-1};function f(I){if(typeof I!="string"&&(I=String(I)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(I))throw new TypeError("Invalid character in header field name");return I.toLowerCase()}function d(I){return typeof I!="string"&&(I=String(I)),I}function h(I){var D={next:function(){var z=I.shift();return{done:z===void 0,value:z}}};return s.iterable&&(D[Symbol.iterator]=function(){return D}),D}function m(I){this.map={},I instanceof m?I.forEach(function(D,z){this.append(z,D)},this):Array.isArray(I)?I.forEach(function(D){this.append(D[0],D[1])},this):I&&Object.getOwnPropertyNames(I).forEach(function(D){this.append(D,I[D])},this)}m.prototype.append=function(I,D){I=f(I),D=d(D);var z=this.map[I];this.map[I]=z?z+", "+D:D},m.prototype.delete=function(I){delete this.map[f(I)]},m.prototype.get=function(I){return I=f(I),this.has(I)?this.map[I]:null},m.prototype.has=function(I){return this.map.hasOwnProperty(f(I))},m.prototype.set=function(I,D){this.map[f(I)]=d(D)},m.prototype.forEach=function(I,D){for(var z in this.map)this.map.hasOwnProperty(z)&&I.call(D,this.map[z],z,this)},m.prototype.keys=function(){var I=[];return this.forEach(function(D,z){I.push(z)}),h(I)},m.prototype.values=function(){var I=[];return this.forEach(function(D){I.push(D)}),h(I)},m.prototype.entries=function(){var I=[];return this.forEach(function(D,z){I.push([z,D])}),h(I)},s.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(I){if(I.bodyUsed)return Promise.reject(new TypeError("Already read"));I.bodyUsed=!0}function b(I){return new Promise(function(D,z){I.onload=function(){D(I.result)},I.onerror=function(){z(I.error)}})}function y(I){var D=new FileReader,z=b(D);return D.readAsArrayBuffer(I),z}function v(I){var D=new FileReader,z=b(D);return D.readAsText(I),z}function p(I){for(var D=new Uint8Array(I),z=new Array(D.length),Q=0;Q-1?D:I}function P(I,D){D=D||{};var z=D.body;if(I instanceof P){if(I.bodyUsed)throw new TypeError("Already read");this.url=I.url,this.credentials=I.credentials,D.headers||(this.headers=new m(I.headers)),this.method=I.method,this.mode=I.mode,this.signal=I.signal,!z&&I._bodyInit!=null&&(z=I._bodyInit,I.bodyUsed=!0)}else this.url=String(I);if(this.credentials=D.credentials||this.credentials||"same-origin",(D.headers||!this.headers)&&(this.headers=new m(D.headers)),this.method=O(D.method||this.method||"GET"),this.mode=D.mode||this.mode||null,this.signal=D.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&z)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(z)}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function A(I){var D=new FormData;return I.trim().split("&").forEach(function(z){if(z){var Q=z.split("="),R=Q.shift().replace(/\+/g," "),N=Q.join("=").replace(/\+/g," ");D.append(decodeURIComponent(R),decodeURIComponent(N))}}),D}function L(I){var D=new m,z=I.replace(/\r?\n[\t ]+/g," ");return z.split(/\r?\n/).forEach(function(Q){var R=Q.split(":"),N=R.shift().trim();if(N){var B=R.join(":").trim();D.append(N,B)}}),D}x.call(P.prototype);function S(I,D){D||(D={}),this.type="default",this.status=D.status===void 0?200:D.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in D?D.statusText:"OK",this.headers=new m(D.headers),this.url=D.url||"",this._initBody(I)}x.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},S.error=function(){var I=new S(null,{status:0,statusText:""});return I.type="error",I};var T=[301,302,303,307,308];S.redirect=function(I,D){if(T.indexOf(D)===-1)throw new RangeError("Invalid status code");return new S(null,{status:D,headers:{location:I}})},a.DOMException=o.DOMException;try{new a.DOMException}catch{a.DOMException=function(D,z){this.message=D,this.name=z;var Q=Error(D);this.stack=Q.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function C(I,D){return new Promise(function(z,Q){var R=new P(I,D);if(R.signal&&R.signal.aborted)return Q(new a.DOMException("Aborted","AbortError"));var N=new XMLHttpRequest;function B(){N.abort()}N.onload=function(){var q={status:N.status,statusText:N.statusText,headers:L(N.getAllResponseHeaders()||"")};q.url="responseURL"in N?N.responseURL:q.headers.get("X-Request-URL");var re="response"in N?N.response:N.responseText;z(new S(re,q))},N.onerror=function(){Q(new TypeError("Network request failed"))},N.ontimeout=function(){Q(new TypeError("Network request failed"))},N.onabort=function(){Q(new a.DOMException("Aborted","AbortError"))},N.open(R.method,R.url,!0),R.credentials==="include"?N.withCredentials=!0:R.credentials==="omit"&&(N.withCredentials=!1),"responseType"in N&&s.blob&&(N.responseType="blob"),R.headers.forEach(function(q,re){N.setRequestHeader(re,q)}),R.signal&&(R.signal.addEventListener("abort",B),N.onreadystatechange=function(){N.readyState===4&&R.signal.removeEventListener("abort",B)}),N.send(typeof R._bodyInit>"u"?null:R._bodyInit)})}return C.polyfill=!0,o.fetch||(o.fetch=C,o.Headers=m,o.Request=P,o.Response=S),a.Headers=m,a.Request=P,a.Response=S,a.fetch=C,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}($O,Ho)),Ho}(function(e,t){var r;if(typeof fetch=="function"&&(typeof Me<"u"&&Me.fetch?r=Me.fetch:typeof window<"u"&&window.fetch?r=window.fetch:r=fetch),typeof Ri<"u"&&(typeof window>"u"||typeof window.document>"u")){var n=r||zO();n.default&&(n=n.default),t.default=n,e.exports=t.default}})(UO,_a);const Qw=_a,zg=Im({__proto__:null,default:Qw},[_a]);function Pu(e){return Pu=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},Pu(e)}var Lr;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Lr=global.fetch:typeof window<"u"&&window.fetch?Lr=window.fetch:Lr=fetch);var Ea;Vw()&&(typeof global<"u"&&global.XMLHttpRequest?Ea=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ea=window.XMLHttpRequest));var Ru;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Ru=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Ru=window.ActiveXObject));!Lr&&zg&&!Ea&&!Ru&&(Lr=Qw||zg);typeof Lr!="function"&&(Lr=void 0);var ad=function(t,r){if(r&&Pu(r)==="object"){var n="";for(var i in r)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(r[i]);if(!n)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+n.slice(1)}return t},Wg=function(t,r,n){Lr(t,r).then(function(i){if(!i.ok)return n(i.statusText||"Error",{status:i.status});i.text().then(function(o){n(null,{status:i.status,data:o})}).catch(n)}).catch(n)},Hg=!1,WO=function(t,r,n,i){t.queryStringParams&&(r=ad(r,t.queryStringParams));var o=od({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);n&&(o["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(n):t.requestOptions,s=od({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:o},Hg?{}:a);try{Wg(r,s,i)}catch(u){if(!a||Object.keys(a).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(a).forEach(function(l){delete s[l]}),Wg(r,s,i),Hg=!0}catch(l){i(l)}}},HO=function(t,r,n,i){n&&Pu(n)==="object"&&(n=ad("",n).slice(1)),t.queryStringParams&&(r=ad(r,t.queryStringParams));try{var o;Ea?o=new Ea:o=new Ru("MSXML2.XMLHTTP.3.0"),o.open(n?"POST":"GET",r,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(u){console&&console.log(u)}},qO=function(t,r,n,i){if(typeof n=="function"&&(i=n,n=void 0),i=i||function(){},Lr&&r.indexOf("file:")!==0)return WO(t,r,n,i);if(Vw()||typeof ActiveXObject=="function")return HO(t,r,n,i);i(new Error("No fetch and no xhr implementation found!"))};function Ca(e){return Ca=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},Ca(e)}function VO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qg(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};VO(this,e),this.services=t,this.options=r,this.allOptions=n,this.type="backend",this.init(t,r,n)}return QO(e,[{key:"init",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=od(i,this.options||{},GO()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(r,n,i){this._readAny(r,r,n,n,i)}},{key:"read",value:function(r,n,i){this._readAny([r],r,[n],n,i)}},{key:"_readAny",value:function(r,n,i,o,a){var s=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(r,i)),u=BO(u),u.then(function(l){if(!l)return a(null,{});var c=s.services.interpolator.interpolate(l,{lng:r.join("+"),ns:i.join("+")});s.loadUrl(c,a,n,o)})}},{key:"loadUrl",value:function(r,n,i,o){var a=this;this.options.request(this.options,r,void 0,function(s,u){if(u&&(u.status>=500&&u.status<600||!u.status))return n("failed loading "+r+"; status code: "+u.status,!0);if(u&&u.status>=400&&u.status<500)return n("failed loading "+r+"; status code: "+u.status,!1);if(!u&&s&&s.message&&s.message.indexOf("Failed to fetch")>-1)return n("failed loading "+r+": "+s.message,!0);if(s)return n(s,!1);var l,c;try{typeof u.data=="string"?l=a.options.parse(u.data,i,o):l=u.data}catch{c="failed parsing "+r+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(r,n,i,o,a){var s=this;if(this.options.addPath){typeof r=="string"&&(r=[r]);var u=this.options.parsePayload(n,i,o),l=0,c=[],f=[];r.forEach(function(d){var h=s.options.addPath;typeof s.options.addPath=="function"&&(h=s.options.addPath(d,n));var m=s.services.interpolator.interpolate(h,{lng:d,ns:n});s.options.request(s.options,m,u,function(g,b){l+=1,c.push(g),f.push(b),l===r.length&&typeof a=="function"&&a(c,f)})})}}},{key:"reload",value:function(){var r=this,n=this.services,i=n.backendConnector,o=n.languageUtils,a=n.logger,s=i.language;if(!(s&&s.toLowerCase()==="cimode")){var u=[],l=function(f){var d=o.toResolveHierarchy(f);d.forEach(function(h){u.indexOf(h)<0&&u.push(h)})};l(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return l(c)}),u.forEach(function(c){r.allOptions.ns.forEach(function(f){i.read(c,f,"read",null,null,function(d,h){d&&a.warn("loading namespace ".concat(f," for language ").concat(c," failed"),d),!d&&h&&a.log("loaded namespace ".concat(f," for language ").concat(c),h),i.loaded("".concat(c,"|").concat(f),d,h)})})})}}}]),e}();Yw.type="backend";function XO(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n2&&arguments[2]!==void 0?arguments[2]:{},n=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var a=function(u,l){var c=t.services.backendConnector.state["".concat(u,"|").concat(l)];return c===-1||c===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(n,e)&&(!i||a(o,e)))}function ZO(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return sd("i18n.languages were undefined or empty",t.languages),!0;var n=t.options.ignoreJSONStructure!==void 0;return n?t.hasLoadedNamespace(e,{precheck:function(o,a){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,e))return!1}}):JO(e,t,r)}var eT=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tT={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},rT=function(t){return tT[t]},nT=function(t){return t.replace(eT,rT)};function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yg(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ud=Yg(Yg({},ud),e)}function oT(){return ud}var Gw;function aT(e){Gw=e}function sT(){return Gw}var uT={type:"3rdParty",init:function(t){iT(t.options.react),aT(t)}},lT=$.createContext(),cT=function(){function e(){ar(this,e),this.usedNamespaces={}}return sr(e,[{key:"addUsedNamespaces",value:function(r){var n=this;r.forEach(function(i){n.usedNamespaces[i]||(n.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function fT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function dT(e,t){return Bw(e)||fT(e,t)||Uw(e,t)||$w()}function Gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ac(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=t.i18n,n=$.useContext(lT)||{},i=n.i18n,o=n.defaultNS,a=r||i||sT();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new cT),!a){sd("You will need to pass in an i18next instance by using initReactI18next");var s=function(A){return Array.isArray(A)?A[A.length-1]:A},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&a.options.react.wait!==void 0&&sd("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=Ac(Ac(Ac({},oT()),a.options.react),t),c=l.useSuspense,f=l.keyPrefix,d=e||o||a.options&&a.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var h=(a.isInitialized||a.initializedStoreOnce)&&d.every(function(P){return ZO(P,a,l)});function m(){return a.getFixedT(null,l.nsMode==="fallback"?d:d[0],f)}var g=$.useState(m),b=dT(g,2),y=b[0],v=b[1],p=d.join(),w=hT(p),x=$.useRef(!0);$.useEffect(function(){var P=l.bindI18n,A=l.bindI18nStore;x.current=!0,!h&&!c&&Qg(a,d,function(){x.current&&v(m)}),h&&w&&w!==p&&x.current&&v(m);function L(){x.current&&v(m)}return P&&a&&a.on(P,L),A&&a&&a.store.on(A,L),function(){x.current=!1,P&&a&&P.split(" ").forEach(function(S){return a.off(S,L)}),A&&a&&A.split(" ").forEach(function(S){return a.store.off(S,L)})}},[a,p]);var _=$.useRef(!0);$.useEffect(function(){x.current&&!_.current&&v(m),_.current=!1},[a,f]);var O=[y,a,h];if(O.t=y,O.i18n=a,O.ready=h,h||!h&&!c)return O;throw new Promise(function(P){Qg(a,d,function(){P()})})}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Xw(e){return typeof e>"u"||e===null}function pT(e){return typeof e=="object"&&e!==null}function vT(e){return Array.isArray(e)?e:Xw(e)?[]:[e]}function gT(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r=0)&&(r[i]=e[i]);return r}function eO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tO(e,t){return e.button===0&&(!t||t==="_self")&&!eO(e)}const rO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],nO=["aria-current","caseSensitive","className","end","style","to","children"];function iO(e){let{basename:t,children:r,window:n}=e,i=$.useRef();i.current==null&&(i.current=tk({window:n,v5Compat:!0}));let o=i.current,[a,s]=$.useState({action:o.action,location:o.location});return $.useLayoutEffect(()=>o.listen(s),[o]),$.createElement(Jk,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o})}const oO=$.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:a,state:s,target:u,to:l,preventScrollReset:c}=t,f=Fw(t,rO),d=$k(l,{relative:i}),h=aO(l,{replace:a,state:s,target:u,preventScrollReset:c,relative:i});function m(g){n&&n(g),g.defaultPrevented||h(g)}return $.createElement("a",Cu({},f,{href:d,onClick:o?n:m,ref:r,target:u}))}),li=$.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:u,children:l}=t,c=Fw(t,nO),f=Ih(u,{relative:c.relative}),d=Ba(),h=$.useContext(kl),{navigator:m}=$.useContext(Fa),g=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=d.pathname,y=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;i||(b=b.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase());let v=b===g||!a&&b.startsWith(g)&&b.charAt(g.length)==="/",p=y!=null&&(y===g||!a&&y.startsWith(g)&&y.charAt(g.length)==="/"),w=v?n:void 0,x;typeof o=="function"?x=o({isActive:v,isPending:p}):x=[o,v?"active":null,p?"pending":null].filter(Boolean).join(" ");let _=typeof s=="function"?s({isActive:v,isPending:p}):s;return $.createElement(oO,Cu({},c,{"aria-current":w,className:x,ref:r,style:_,to:u}),typeof l=="function"?l({isActive:v,isPending:p}):l)});var bg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(bg||(bg={}));var Sg;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sg||(Sg={}));function aO(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=Tl(),u=Ba(),l=Ih(e,{relative:a});return $.useCallback(c=>{if(tO(c,r)){c.preventDefault();let f=n!==void 0?n:xa(u)===xa(l);s(e,{replace:f,state:i,preventScrollReset:o,relative:a})}},[u,s,l,n,i,r,e,o,a])}function ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xg(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:{};ar(this,e),this.init(t,r)}return sr(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||lO,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function Og(e,t,r){var n=Mh(e,t,Object),i=n.obj,o=n.k;i[o]=r}function dO(e,t,r,n){var i=Mh(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function Ou(e,t){var r=Mh(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Tg(e,t,r){var n=Ou(e,r);return n!==void 0?n:Ou(t,r)}function zw(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):zw(e[n],t[n],r):e[n]=t[n]);return e}function ci(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var hO={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function pO(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return hO[t]}):e}var Rl=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,vO=[" ",",","?","!",";"];function gO(e,t,r){t=t||"",r=r||"";var n=vO.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ww(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Ww(u,l,r):void 0}i=i[n[o]]}return i}}var wO=function(e){Pl(r,e);var t=mO(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ar(this,r),i=t.call(this),Rl&&Tn.call(Sn(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return sr(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=Ou(this.data,c);return f||!l||typeof a!="string"?f:Ww(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=this.options.keySeparator;l===void 0&&(l=".");var c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),Og(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=Ou(this.data,c)||{};s?zw(f,a,u):f=cs(cs({},f),a),Og(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?cs(cs({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(Tn),Hw={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function Rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Ag={},Ig=function(e){Pl(r,e);var t=bO(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ar(this,r),i=t.call(this),Rl&&Tn.call(Sn(i)),fO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Sn(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=vr.create("translator"),i}return sr(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!gO(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var d=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(d[0])>-1)&&(u=d.shift()),i=d.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if(tr(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,d=c.namespaces,h=d[d.length-1],m=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(g){var b=o.nsSeparator||this.options.nsSeparator;return u?(y.res="".concat(h).concat(b).concat(f),y):"".concat(h).concat(b).concat(f)}return u?(y.res=f,y):f}var y=this.resolve(i,o),v=y&&y.res,p=y&&y.usedKey||f,w=y&&y.exactUsedKey||f,x=Object.prototype.toString.apply(v),_=["[object Number]","[object Function]","[object RegExp]"],O=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(P&&v&&A&&_.indexOf(x)<0&&!(typeof O=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,v,ft(ft({},o),{},{ns:d})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(y.res=L,y):L}if(l){var S=x==="[object Array]",T=S?[]:{},C=S?w:p;for(var I in v)if(Object.prototype.hasOwnProperty.call(v,I)){var D="".concat(C).concat(l).concat(I);T[I]=this.translate(D,ft(ft({},o),{joinArrays:!1,ns:d})),T[I]===D&&(T[I]=v[I])}v=T}}else if(P&&typeof O=="string"&&x==="[object Array]")v=v.join(O),v&&(v=this.extendTranslation(v,i,o,a));else{var z=!1,Q=!1,R=o.count!==void 0&&typeof o.count!="string",N=r.hasDefaultValue(o),B=R?this.pluralResolver.getSuffix(m,o.count,o):"",q=o["defaultValue".concat(B)]||o.defaultValue;!this.isValidLookup(v)&&N&&(z=!0,v=q),this.isValidLookup(v)||(Q=!0,v=f);var re=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,oe=re&&Q?void 0:v,Y=N&&q!==v&&this.options.updateMissing;if(Q||z||Y){if(this.logger.log(Y?"updateKey":"missingKey",m,h,f,Y?q:v),l){var K=this.resolve(f,ft(ft({},o),{},{keySeparator:!1}));K&&K.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ie=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(var fe=0;fe1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(d){if(!o.isValidLookup(s)){var h=o.extractFromKey(d,a),m=h.key;u=m;var g=h.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var b=a.count!==void 0&&typeof a.count!="string",y=b&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),v=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",p=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(w){o.isValidLookup(s)||(f=w,!Ag["".concat(p[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(Ag["".concat(p[0],"-").concat(w)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(p.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(function(x){if(!o.isValidLookup(s)){c=x;var _=[m];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(_,m,x,w,a);else{var O;b&&(O=o.pluralResolver.getSuffix(x,a.count,a));var P="".concat(o.options.pluralSeparator,"zero");if(b&&(_.push(m+O),y&&_.push(m+P)),v){var A="".concat(m).concat(o.options.contextSeparator).concat(a.context);_.push(A),b&&(_.push(A+O),y&&_.push(A+P))}}for(var L;L=_.pop();)o.isValidLookup(s)||(l=L,s=o.getResource(x,w,L,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(Tn);function Rc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Mg=function(){function e(t){ar(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vr.create("languageUtils")}return sr(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rc(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rc(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Rc(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),xO=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_O={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},EO=["v1","v2","v3"],Lg={zero:0,one:1,two:2,few:3,many:4,other:5};function CO(){var e={};return xO.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:_O[t.fc]}})}),e}var kO=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ar(this,e),this.languageUtils=t,this.options=r,this.logger=vr.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=CO()}return sr(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return Lg[a]-Lg[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!EO.includes(this.options.compatibilityJSON)}}]),e}();function Ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ar(this,e),this.logger=vr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return sr(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:pO,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ci(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ci(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ci(n.nestingPrefix):n.nestingPrefixEscaped||ci("$t("),this.nestingSuffix=n.nestingSuffix?ci(n.nestingSuffix):n.nestingSuffixEscaped||ci(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(b){return b.replace(/\$/g,"$$$$")}var d=function(y){if(y.indexOf(a.formatSeparator)<0){var v=Tg(n,c,y);return a.alwaysFormat?a.format(v,void 0,i,Kt(Kt(Kt({},o),n),{},{interpolationkey:y})):v}var p=y.split(a.formatSeparator),w=p.shift().trim(),x=p.join(a.formatSeparator).trim();return a.format(Tg(n,c,w),x,i,Kt(Kt(Kt({},o),n),{},{interpolationkey:w}))};this.resetRegExp();var h=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(y){return f(y)}},{regex:this.regexp,safeValue:function(y){return a.escapeValue?f(a.escape(y)):f(y)}}];return g.forEach(function(b){for(l=0;s=b.regex.exec(r);){var y=s[1].trim();if(u=d(y),u===void 0)if(typeof h=="function"){var v=h(r,s,o);u=typeof v=="string"?v:""}else if(o&&o.hasOwnProperty(y))u="";else if(m){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(y," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=kg(u));var p=b.safeValue(u);if(r=r.replace(s[0],p),m?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(h,m){var g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;var b=h.split(new RegExp("".concat(g,"[ ]*{"))),y="{".concat(b[1]);h=b[0],y=this.interpolate(y,u);var v=y.match(/'/g),p=y.match(/"/g);(v&&v.length%2===0&&!p||p.length%2!==0)&&(y=y.replace(/'/g,'"'));try{u=JSON.parse(y),m&&(u=Kt(Kt({},m),u))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),w),"".concat(h).concat(g).concat(y)}return delete u.defaultValue,h}for(;a=this.nestingRegexp.exec(r);){var c=[];u=Kt({},o),u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var d=a[1].split(this.formatSeparator).map(function(h){return h.trim()});a[1]=d.shift(),c=d,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=kg(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(h,m){return i.format(h,m,o.lng,Kt(Kt({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=uO(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function fi(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var PO=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ar(this,e),this.logger=vr.create("formatter"),this.options=t,this.formats={number:fi(function(r,n){var i=new Intl.NumberFormat(r,n);return function(o){return i.format(o)}}),currency:fi(function(r,n){var i=new Intl.NumberFormat(r,Kr(Kr({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:fi(function(r,n){var i=new Intl.DateTimeFormat(r,Kr({},n));return function(o){return i.format(o)}}),relativetime:fi(function(r,n){var i=new Intl.RelativeTimeFormat(r,Kr({},n));return function(o){return i.format(o,n.range||"day")}}),list:fi(function(r,n){var i=new Intl.ListFormat(r,Kr({},n));return function(o){return i.format(o)}})},this.init(t)}return sr(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=fi(n)}},{key:"format",value:function(r,n,i,o){var a=this,s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=TO(c),d=f.formatName,h=f.formatOptions;if(a.formats[d]){var m=l;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=g.locale||g.lng||o.locale||o.lng||i;m=a.formats[d](l,b,Kr(Kr(Kr({},h),o),g))}catch(y){a.logger.warn(y)}return m}else a.logger.warn("there was no format function for ".concat(d));return l},r);return u}}]),e}();function jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fg(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function IO(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var MO=function(e){Pl(r,e);var t=RO(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ar(this,r),a=t.call(this),Rl&&Tn.call(Sn(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=vr.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return sr(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},d={};return i.forEach(function(h){var m=!0;o.forEach(function(g){var b="".concat(h,"|").concat(g);!a.reload&&u.store.hasResourceBundle(h,g)?u.state[b]=2:u.state[b]<0||(u.state[b]===1?c[b]===void 0&&(c[b]=!0):(u.state[b]=1,m=!1,c[b]===void 0&&(c[b]=!0),l[b]===void 0&&(l[b]=!0),d[g]===void 0&&(d[g]=!0)))}),m||(f[h]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){dO(f.loaded,[u],l),IO(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(d){c[d]||(c[d]={});var h=f.loaded[d];h.length&&h.forEach(function(m){c[d][m]===void 0&&(c[d][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,b){if(s.readingCalls--,s.waitingReads.length>0){var y=s.waitingReads.shift();s.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(g&&b&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=Fg(Fg({},l),{},{isUpdate:u}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var h;d.length===5?h=d(i,o,a,s,f):h=d(i,o,a,s),h&&typeof h.then=="function"?h.then(function(m){return c(null,m)}).catch(c):c(null,h)}catch(m){c(m)}else d(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(Tn);function Bg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(tr(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),tr(t[2])==="object"||tr(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Ug(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fs(){}function DO(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Tu=function(e){Pl(r,e);var t=LO(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ar(this,r),n=t.call(this),Rl&&Tn.call(Sn(n)),n.options=Ug(i),n.services={},n.logger=vr,n.modules={external:[]},DO(Sn(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),Ua(n,Sn(n));setTimeout(function(){n.init(i,o)},0)}return n}return sr(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=Bg();this.options=cr(cr(cr({},s),this.options),Ug(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=cr(cr({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(y){return y?typeof y=="function"?new y:y:null}if(!this.options.isClone){this.modules.logger?vr.init(u(this.modules.logger),this.options):vr.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=PO);var c=new Mg(this.options);this.store=new wO(this.options.resources,this.options);var f=this.services;f.logger=vr,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new kO(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new OO(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new MO(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(y){for(var v=arguments.length,p=new Array(v>1?v-1:0),w=1;w1?v-1:0),w=1;w0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(y){i[y]=function(){var v;return(v=i.store)[y].apply(v,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(y){i[y]=function(){var v;return(v=i.store)[y].apply(v,arguments),i}});var g=wo(),b=function(){var v=function(w,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(x),a(w,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return v(null,i.t.bind(i));i.changeLanguage(i.options.lng,v)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(h){if(h){var m=o.services.languageUtils.toResolveHierarchy(h);m.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return c(d)})}this.options.preload&&this.options.preload.forEach(function(d){return c(d)}),this.services.backendConnector.load(l,this.options.ns,function(d){!d&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(d)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=wo();return i||(i=this.languages),o||(o=this.options.ns),a||(a=fs),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Hw.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=wo();this.emit("languageChanging",i);var u=function(d){a.language=d,a.languages=a.services.languageUtils.toResolveHierarchy(d),a.resolvedLanguage=void 0,a.setResolvedLanguage(d)},l=function(d,h){h?(u(h),a.translator.changeLanguage(h),a.isLanguageChangingTo=void 0,a.emit("languageChanged",h),a.logger.log("languageChanged",h)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(d,function(){return a.t.apply(a,arguments)})},c=function(d){!i&&!d&&a.services.languageDetector&&(d=[]);var h=typeof d=="string"?d:a.services.languageUtils.getBestMatchFromCodes(d);h&&(a.language||u(h),a.translator.language||a.translator.changeLanguage(h),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(h)),a.loadResources(h,function(m){l(m,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var d;if(tr(f)!=="object"){for(var h=arguments.length,m=new Array(h>2?h-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(h,m){var g=o.services.backendConnector.state["".concat(h,"|").concat(m)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=wo();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=wo();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new Mg(Bg());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs,s=cr(cr(cr({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=cr({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Ig(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,d=new Array(f>1?f-1:0),h=1;h0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Tu(e,t)});var lt=Tu.createInstance();lt.createInstance=Tu.createInstance;lt.createInstance;lt.dir;lt.init;lt.loadResources;lt.reloadResources;lt.use;lt.changeLanguage;lt.getFixedT;lt.t;lt.exists;lt.setDefaultNamespace;lt.hasLoadedNamespace;lt.loadNamespaces;lt.loadLanguages;function od(e){return od=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},od(e)}var qw=[],jO=qw.forEach,FO=qw.slice;function ad(e){return jO.call(FO.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}function Vw(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":od(XMLHttpRequest))==="object"}function BO(e){return!!e&&typeof e.then=="function"}function UO(e){return BO(e)?e:Promise.resolve(e)}var _a={},$O={get exports(){return _a},set exports(e){_a=e}},Ho={},zO={get exports(){return Ho},set exports(e){Ho=e}},zg;function WO(){return zg||(zg=1,function(e,t){var r=typeof self<"u"?self:Me,n=function(){function o(){this.fetch=!1,this.DOMException=r.DOMException}return o.prototype=r,new o}();(function(o){(function(a){var s={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function u(I){return I&&DataView.prototype.isPrototypeOf(I)}if(s.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(I){return I&&l.indexOf(Object.prototype.toString.call(I))>-1};function f(I){if(typeof I!="string"&&(I=String(I)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(I))throw new TypeError("Invalid character in header field name");return I.toLowerCase()}function d(I){return typeof I!="string"&&(I=String(I)),I}function h(I){var D={next:function(){var z=I.shift();return{done:z===void 0,value:z}}};return s.iterable&&(D[Symbol.iterator]=function(){return D}),D}function m(I){this.map={},I instanceof m?I.forEach(function(D,z){this.append(z,D)},this):Array.isArray(I)?I.forEach(function(D){this.append(D[0],D[1])},this):I&&Object.getOwnPropertyNames(I).forEach(function(D){this.append(D,I[D])},this)}m.prototype.append=function(I,D){I=f(I),D=d(D);var z=this.map[I];this.map[I]=z?z+", "+D:D},m.prototype.delete=function(I){delete this.map[f(I)]},m.prototype.get=function(I){return I=f(I),this.has(I)?this.map[I]:null},m.prototype.has=function(I){return this.map.hasOwnProperty(f(I))},m.prototype.set=function(I,D){this.map[f(I)]=d(D)},m.prototype.forEach=function(I,D){for(var z in this.map)this.map.hasOwnProperty(z)&&I.call(D,this.map[z],z,this)},m.prototype.keys=function(){var I=[];return this.forEach(function(D,z){I.push(z)}),h(I)},m.prototype.values=function(){var I=[];return this.forEach(function(D){I.push(D)}),h(I)},m.prototype.entries=function(){var I=[];return this.forEach(function(D,z){I.push([z,D])}),h(I)},s.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(I){if(I.bodyUsed)return Promise.reject(new TypeError("Already read"));I.bodyUsed=!0}function b(I){return new Promise(function(D,z){I.onload=function(){D(I.result)},I.onerror=function(){z(I.error)}})}function y(I){var D=new FileReader,z=b(D);return D.readAsArrayBuffer(I),z}function v(I){var D=new FileReader,z=b(D);return D.readAsText(I),z}function p(I){for(var D=new Uint8Array(I),z=new Array(D.length),Q=0;Q-1?D:I}function P(I,D){D=D||{};var z=D.body;if(I instanceof P){if(I.bodyUsed)throw new TypeError("Already read");this.url=I.url,this.credentials=I.credentials,D.headers||(this.headers=new m(I.headers)),this.method=I.method,this.mode=I.mode,this.signal=I.signal,!z&&I._bodyInit!=null&&(z=I._bodyInit,I.bodyUsed=!0)}else this.url=String(I);if(this.credentials=D.credentials||this.credentials||"same-origin",(D.headers||!this.headers)&&(this.headers=new m(D.headers)),this.method=O(D.method||this.method||"GET"),this.mode=D.mode||this.mode||null,this.signal=D.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&z)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(z)}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function A(I){var D=new FormData;return I.trim().split("&").forEach(function(z){if(z){var Q=z.split("="),R=Q.shift().replace(/\+/g," "),N=Q.join("=").replace(/\+/g," ");D.append(decodeURIComponent(R),decodeURIComponent(N))}}),D}function L(I){var D=new m,z=I.replace(/\r?\n[\t ]+/g," ");return z.split(/\r?\n/).forEach(function(Q){var R=Q.split(":"),N=R.shift().trim();if(N){var B=R.join(":").trim();D.append(N,B)}}),D}x.call(P.prototype);function S(I,D){D||(D={}),this.type="default",this.status=D.status===void 0?200:D.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in D?D.statusText:"OK",this.headers=new m(D.headers),this.url=D.url||"",this._initBody(I)}x.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},S.error=function(){var I=new S(null,{status:0,statusText:""});return I.type="error",I};var T=[301,302,303,307,308];S.redirect=function(I,D){if(T.indexOf(D)===-1)throw new RangeError("Invalid status code");return new S(null,{status:D,headers:{location:I}})},a.DOMException=o.DOMException;try{new a.DOMException}catch{a.DOMException=function(D,z){this.message=D,this.name=z;var Q=Error(D);this.stack=Q.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function C(I,D){return new Promise(function(z,Q){var R=new P(I,D);if(R.signal&&R.signal.aborted)return Q(new a.DOMException("Aborted","AbortError"));var N=new XMLHttpRequest;function B(){N.abort()}N.onload=function(){var q={status:N.status,statusText:N.statusText,headers:L(N.getAllResponseHeaders()||"")};q.url="responseURL"in N?N.responseURL:q.headers.get("X-Request-URL");var re="response"in N?N.response:N.responseText;z(new S(re,q))},N.onerror=function(){Q(new TypeError("Network request failed"))},N.ontimeout=function(){Q(new TypeError("Network request failed"))},N.onabort=function(){Q(new a.DOMException("Aborted","AbortError"))},N.open(R.method,R.url,!0),R.credentials==="include"?N.withCredentials=!0:R.credentials==="omit"&&(N.withCredentials=!1),"responseType"in N&&s.blob&&(N.responseType="blob"),R.headers.forEach(function(q,re){N.setRequestHeader(re,q)}),R.signal&&(R.signal.addEventListener("abort",B),N.onreadystatechange=function(){N.readyState===4&&R.signal.removeEventListener("abort",B)}),N.send(typeof R._bodyInit>"u"?null:R._bodyInit)})}return C.polyfill=!0,o.fetch||(o.fetch=C,o.Headers=m,o.Request=P,o.Response=S),a.Headers=m,a.Request=P,a.Response=S,a.fetch=C,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(zO,Ho)),Ho}(function(e,t){var r;if(typeof fetch=="function"&&(typeof Me<"u"&&Me.fetch?r=Me.fetch:typeof window<"u"&&window.fetch?r=window.fetch:r=fetch),typeof Ri<"u"&&(typeof window>"u"||typeof window.document>"u")){var n=r||WO();n.default&&(n=n.default),t.default=n,e.exports=t.default}})($O,_a);const Qw=_a,Wg=Mm({__proto__:null,default:Qw},[_a]);function Pu(e){return Pu=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},Pu(e)}var Lr;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Lr=global.fetch:typeof window<"u"&&window.fetch?Lr=window.fetch:Lr=fetch);var Ea;Vw()&&(typeof global<"u"&&global.XMLHttpRequest?Ea=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ea=window.XMLHttpRequest));var Ru;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Ru=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Ru=window.ActiveXObject));!Lr&&Wg&&!Ea&&!Ru&&(Lr=Qw||Wg);typeof Lr!="function"&&(Lr=void 0);var sd=function(t,r){if(r&&Pu(r)==="object"){var n="";for(var i in r)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(r[i]);if(!n)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+n.slice(1)}return t},Hg=function(t,r,n){Lr(t,r).then(function(i){if(!i.ok)return n(i.statusText||"Error",{status:i.status});i.text().then(function(o){n(null,{status:i.status,data:o})}).catch(n)}).catch(n)},qg=!1,HO=function(t,r,n,i){t.queryStringParams&&(r=sd(r,t.queryStringParams));var o=ad({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);n&&(o["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(n):t.requestOptions,s=ad({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:o},qg?{}:a);try{Hg(r,s,i)}catch(u){if(!a||Object.keys(a).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(a).forEach(function(l){delete s[l]}),Hg(r,s,i),qg=!0}catch(l){i(l)}}},qO=function(t,r,n,i){n&&Pu(n)==="object"&&(n=sd("",n).slice(1)),t.queryStringParams&&(r=sd(r,t.queryStringParams));try{var o;Ea?o=new Ea:o=new Ru("MSXML2.XMLHTTP.3.0"),o.open(n?"POST":"GET",r,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(u){console&&console.log(u)}},VO=function(t,r,n,i){if(typeof n=="function"&&(i=n,n=void 0),i=i||function(){},Lr&&r.indexOf("file:")!==0)return HO(t,r,n,i);if(Vw()||typeof ActiveXObject=="function")return qO(t,r,n,i);i(new Error("No fetch and no xhr implementation found!"))};function Ca(e){return Ca=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},Ca(e)}function QO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vg(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};QO(this,e),this.services=t,this.options=r,this.allOptions=n,this.type="backend",this.init(t,r,n)}return KO(e,[{key:"init",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=ad(i,this.options||{},XO()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(r,n,i){this._readAny(r,r,n,n,i)}},{key:"read",value:function(r,n,i){this._readAny([r],r,[n],n,i)}},{key:"_readAny",value:function(r,n,i,o,a){var s=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(r,i)),u=UO(u),u.then(function(l){if(!l)return a(null,{});var c=s.services.interpolator.interpolate(l,{lng:r.join("+"),ns:i.join("+")});s.loadUrl(c,a,n,o)})}},{key:"loadUrl",value:function(r,n,i,o){var a=this;this.options.request(this.options,r,void 0,function(s,u){if(u&&(u.status>=500&&u.status<600||!u.status))return n("failed loading "+r+"; status code: "+u.status,!0);if(u&&u.status>=400&&u.status<500)return n("failed loading "+r+"; status code: "+u.status,!1);if(!u&&s&&s.message&&s.message.indexOf("Failed to fetch")>-1)return n("failed loading "+r+": "+s.message,!0);if(s)return n(s,!1);var l,c;try{typeof u.data=="string"?l=a.options.parse(u.data,i,o):l=u.data}catch{c="failed parsing "+r+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(r,n,i,o,a){var s=this;if(this.options.addPath){typeof r=="string"&&(r=[r]);var u=this.options.parsePayload(n,i,o),l=0,c=[],f=[];r.forEach(function(d){var h=s.options.addPath;typeof s.options.addPath=="function"&&(h=s.options.addPath(d,n));var m=s.services.interpolator.interpolate(h,{lng:d,ns:n});s.options.request(s.options,m,u,function(g,b){l+=1,c.push(g),f.push(b),l===r.length&&typeof a=="function"&&a(c,f)})})}}},{key:"reload",value:function(){var r=this,n=this.services,i=n.backendConnector,o=n.languageUtils,a=n.logger,s=i.language;if(!(s&&s.toLowerCase()==="cimode")){var u=[],l=function(f){var d=o.toResolveHierarchy(f);d.forEach(function(h){u.indexOf(h)<0&&u.push(h)})};l(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return l(c)}),u.forEach(function(c){r.allOptions.ns.forEach(function(f){i.read(c,f,"read",null,null,function(d,h){d&&a.warn("loading namespace ".concat(f," for language ").concat(c," failed"),d),!d&&h&&a.log("loaded namespace ".concat(f," for language ").concat(c),h),i.loaded("".concat(c,"|").concat(f),d,h)})})})}}}]),e}();Yw.type="backend";function JO(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n2&&arguments[2]!==void 0?arguments[2]:{},n=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var a=function(u,l){var c=t.services.backendConnector.state["".concat(u,"|").concat(l)];return c===-1||c===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(n,e)&&(!i||a(o,e)))}function eT(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return ud("i18n.languages were undefined or empty",t.languages),!0;var n=t.options.ignoreJSONStructure!==void 0;return n?t.hasLoadedNamespace(e,{precheck:function(o,a){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,e))return!1}}):ZO(e,t,r)}var tT=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rT={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nT=function(t){return rT[t]},iT=function(t){return t.replace(tT,nT)};function Yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gg(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ld=Gg(Gg({},ld),e)}function aT(){return ld}var Gw;function sT(e){Gw=e}function uT(){return Gw}var lT={type:"3rdParty",init:function(t){oT(t.options.react),sT(t)}},cT=$.createContext(),fT=function(){function e(){ar(this,e),this.usedNamespaces={}}return sr(e,[{key:"addUsedNamespaces",value:function(r){var n=this;r.forEach(function(i){n.usedNamespaces[i]||(n.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function dT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function hT(e,t){return Bw(e)||dT(e,t)||Uw(e,t)||$w()}function Xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ac(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=t.i18n,n=$.useContext(cT)||{},i=n.i18n,o=n.defaultNS,a=r||i||uT();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new fT),!a){ud("You will need to pass in an i18next instance by using initReactI18next");var s=function(A){return Array.isArray(A)?A[A.length-1]:A},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&a.options.react.wait!==void 0&&ud("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=Ac(Ac(Ac({},aT()),a.options.react),t),c=l.useSuspense,f=l.keyPrefix,d=e||o||a.options&&a.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var h=(a.isInitialized||a.initializedStoreOnce)&&d.every(function(P){return eT(P,a,l)});function m(){return a.getFixedT(null,l.nsMode==="fallback"?d:d[0],f)}var g=$.useState(m),b=hT(g,2),y=b[0],v=b[1],p=d.join(),w=pT(p),x=$.useRef(!0);$.useEffect(function(){var P=l.bindI18n,A=l.bindI18nStore;x.current=!0,!h&&!c&&Kg(a,d,function(){x.current&&v(m)}),h&&w&&w!==p&&x.current&&v(m);function L(){x.current&&v(m)}return P&&a&&a.on(P,L),A&&a&&a.store.on(A,L),function(){x.current=!1,P&&a&&P.split(" ").forEach(function(S){return a.off(S,L)}),A&&a&&A.split(" ").forEach(function(S){return a.store.off(S,L)})}},[a,p]);var _=$.useRef(!0);$.useEffect(function(){x.current&&!_.current&&v(m),_.current=!1},[a,f]);var O=[y,a,h];if(O.t=y,O.i18n=a,O.ready=h,h||!h&&!c)return O;throw new Promise(function(P){Kg(a,d,function(){P()})})}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Xw(e){return typeof e>"u"||e===null}function vT(e){return typeof e=="object"&&e!==null}function gT(e){return Array.isArray(e)?e:Xw(e)?[]:[e]}function mT(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;rs&&(o=" ... ",t=n-s+o.length),r-n>s&&(a=" ...",r=n+s-a.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+o.length}}function Mc(e,t){return ht.repeat(" ",t-e.length)+e}function CT(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],o,a=-1;o=r.exec(e.buffer);)i.push(o.index),n.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)l=Ic(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),s=ht.repeat(" ",t.indent)+Mc((e.line-u+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),n+" "+r):n}function ka(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Jw(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ka.prototype=Object.create(Error.prototype);ka.prototype.constructor=ka;ka.prototype.toString=function(t){return this.name+": "+Jw(this,t)};var Pr=ka;function Ic(e,t,r,n,i){var o="",a="",s=Math.floor(i/2)-1;return n-t>s&&(o=" ... ",t=n-s+o.length),r-n>s&&(a=" ...",r=n+s-a.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+o.length}}function Mc(e,t){return ht.repeat(" ",t-e.length)+e}function kT(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],o,a=-1;o=r.exec(e.buffer);)i.push(o.index),n.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)l=Ic(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),s=ht.repeat(" ",t.indent)+Mc((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=Ic(e.buffer,n[a],i[a],e.position,f),s+=ht.repeat(" ",t.indent)+Mc((e.line+1).toString(),c)+" | "+l.str+` `,s+=ht.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)l=Ic(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),s+=ht.repeat(" ",t.indent)+Mc((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var kT=CT,OT=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],TT=["scalar","sequence","mapping"];function PT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function RT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(OT.indexOf(r)===-1)throw new Pr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=PT(t.styleAliases||null),TT.indexOf(this.kind)===-1)throw new Pr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var at=RT;function Xg(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(o,a){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=a)}),r[i]=n}),r}function AT(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),JT=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ZT(e){return!(e===null||!JT.test(e)||e[e.length-1]==="_")}function eP(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var tP=/^[-+]?[0-9]+e/;function rP(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(e))return"-0.0";return r=e.toString(10),tP.test(r)?r.replace("e",".e"):r}function nP(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ht.isNegativeZero(e))}var iP=new at("tag:yaml.org,2002:float",{kind:"scalar",resolve:ZT,construct:eP,predicate:nP,represent:rP,defaultStyle:"lowercase"}),oP=DT.extend({implicit:[UT,HT,XT,iP]}),aP=oP,Zw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),eb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function sP(e){return e===null?!1:Zw.exec(e)!==null||eb.exec(e)!==null}function uP(e){var t,r,n,i,o,a,s,u=0,l=null,c,f,d;if(t=Zw.exec(e),t===null&&(t=eb.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],f=+(t[11]||0),l=(c*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,s,u)),l&&d.setTime(d.getTime()-l),d}function lP(e){return e.toISOString()}var cP=new at("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:sP,construct:uP,instanceOf:Date,represent:lP});function fP(e){return e==="<<"||e===null}var dP=new at("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fP}),Mh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function hP(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Mh;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8===0}function pP(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Mh,a=0,s=[];for(t=0;t>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),new Uint8Array(s)}function vP(e){var t="",r=0,n,i,o=e.length,a=Mh;for(n=0;n>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function gP(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var mP=new at("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hP,construct:pP,predicate:gP,represent:vP}),yP=Object.prototype.hasOwnProperty,wP=Object.prototype.toString;function bP(e){if(e===null)return!0;var t=[],r,n,i,o,a,s=e;for(r=0,n=s.length;r>10)+55296,(e-65536&1023)+56320)}var ob=new Array(256),ab=new Array(256);for(var di=0;di<256;di++)ob[di]=em(di)?1:0,ab[di]=em(di);function UP(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||AP,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function sb(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=kT(r),new Pr(t,r)}function he(e,t){throw sb(e,t)}function Mu(e,t){e.onWarning&&e.onWarning.call(null,sb(e,t))}var tm={YAML:function(t,r,n){var i,o,a;t.version!==null&&he(t,"duplication of %YAML directive"),n.length!==1&&he(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&he(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&he(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Mu(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&he(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],nb.test(i)||he(t,"ill-formed tag handle (first argument) of the TAG directive"),Pn.call(t.tagMap,i)&&he(t,'there is a previously declared suffix for "'+i+'" tag handle'),ib.test(o)||he(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{he(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function xn(e,t,r,n){var i,o,a,s;if(t1&&(e.result+=ht.repeat(` -`,t-1))}function $P(e,t,r){var n,i,o,a,s,u,l,c,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),wt(h)||Ai(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),wt(i)||r&&Ai(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,s=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),wt(i)||r&&Ai(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),wt(n))break}else{if(e.position===e.lineStart&&Al(e)||r&&Ai(h))break;if(wr(h))if(u=e.line,l=e.lineStart,c=e.lineIndent,ze(e,!1,-1),e.lineIndent>=t){s=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(xn(e,o,a,!1),Nh(e,e.line-u),o=a=e.position,s=!1),Qn(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return xn(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}function zP(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(xn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else wr(r)?(xn(e,n,i,!0),Nh(e,ze(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Al(e)?he(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);he(e,"unexpected end of the stream within a single quoted scalar")}function WP(e,t){var r,n,i,o,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return xn(e,r,e.position,!0),e.position++,!0;if(s===92){if(xn(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),wr(s))ze(e,!1,t);else if(s<256&&ob[s])e.result+=ab[s],e.position++;else if((a=jP(s))>0){for(i=a,o=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=DP(s))>=0?o=(o<<4)+a:he(e,"expected hexadecimal character");e.result+=BP(o),e.position++}else he(e,"unknown escape sequence");r=n=e.position}else wr(s)?(xn(e,r,n,!0),Nh(e,ze(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Al(e)?he(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}he(e,"unexpected end of the stream within a double quoted scalar")}function HP(e,t){var r=!0,n,i,o,a=e.tag,s,u=e.anchor,l,c,f,d,h,m=Object.create(null),g,b,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,h=!1,s=[];else if(v===123)c=125,h=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(ze(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=a,e.anchor=u,e.kind=h?"mapping":"sequence",e.result=s,!0;r?v===44&&he(e,"expected the node content, but found ','"):he(e,"missed comma between flow collection entries"),b=g=y=null,f=d=!1,v===63&&(l=e.input.charCodeAt(e.position+1),wt(l)&&(f=d=!0,e.position++,ze(e,!0,t))),n=e.line,i=e.lineStart,o=e.position,Yi(e,t,Au,!1,!0),b=e.tag,g=e.result,ze(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===n)&&v===58&&(f=!0,v=e.input.charCodeAt(++e.position),ze(e,!0,t),Yi(e,t,Au,!1,!0),y=e.result),h?Ii(e,s,m,b,g,y,n,i,o):f?s.push(Ii(e,null,m,b,g,y,n,i,o)):s.push(g),ze(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}he(e,"unexpected end of the stream within a flow collection")}function qP(e,t){var r,n,i=Lc,o=!1,a=!1,s=t,u=0,l=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Lc===i?i=f===43?Jg:IP:he(e,"repeat of a chomping mode identifier");else if((c=FP(f))>=0)c===0?he(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?he(e,"repeat of an indentation width identifier"):(s=t+c-1,a=!0);else break;if(Qn(f)){do f=e.input.charCodeAt(++e.position);while(Qn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!wr(f)&&f!==0)}for(;f!==0;){for(Lh(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndents&&(s=e.lineIndent),wr(f)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ZT=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function eP(e){return!(e===null||!ZT.test(e)||e[e.length-1]==="_")}function tP(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var rP=/^[-+]?[0-9]+e/;function nP(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(e))return"-0.0";return r=e.toString(10),rP.test(r)?r.replace("e",".e"):r}function iP(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ht.isNegativeZero(e))}var oP=new at("tag:yaml.org,2002:float",{kind:"scalar",resolve:eP,construct:tP,predicate:iP,represent:nP,defaultStyle:"lowercase"}),aP=jT.extend({implicit:[$T,qT,JT,oP]}),sP=aP,Zw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),eb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function uP(e){return e===null?!1:Zw.exec(e)!==null||eb.exec(e)!==null}function lP(e){var t,r,n,i,o,a,s,u=0,l=null,c,f,d;if(t=Zw.exec(e),t===null&&(t=eb.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],f=+(t[11]||0),l=(c*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,s,u)),l&&d.setTime(d.getTime()-l),d}function cP(e){return e.toISOString()}var fP=new at("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:uP,construct:lP,instanceOf:Date,represent:cP});function dP(e){return e==="<<"||e===null}var hP=new at("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dP}),Lh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function pP(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Lh;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8===0}function vP(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Lh,a=0,s=[];for(t=0;t>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),new Uint8Array(s)}function gP(e){var t="",r=0,n,i,o=e.length,a=Lh;for(n=0;n>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function mP(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var yP=new at("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pP,construct:vP,predicate:mP,represent:gP}),wP=Object.prototype.hasOwnProperty,bP=Object.prototype.toString;function SP(e){if(e===null)return!0;var t=[],r,n,i,o,a,s=e;for(r=0,n=s.length;r>10)+55296,(e-65536&1023)+56320)}var ob=new Array(256),ab=new Array(256);for(var di=0;di<256;di++)ob[di]=tm(di)?1:0,ab[di]=tm(di);function $P(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||IP,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function sb(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=OT(r),new Pr(t,r)}function he(e,t){throw sb(e,t)}function Mu(e,t){e.onWarning&&e.onWarning.call(null,sb(e,t))}var rm={YAML:function(t,r,n){var i,o,a;t.version!==null&&he(t,"duplication of %YAML directive"),n.length!==1&&he(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&he(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&he(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Mu(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&he(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],nb.test(i)||he(t,"ill-formed tag handle (first argument) of the TAG directive"),Pn.call(t.tagMap,i)&&he(t,'there is a previously declared suffix for "'+i+'" tag handle'),ib.test(o)||he(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{he(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function xn(e,t,r,n){var i,o,a,s;if(t1&&(e.result+=ht.repeat(` +`,t-1))}function zP(e,t,r){var n,i,o,a,s,u,l,c,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),wt(h)||Ai(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),wt(i)||r&&Ai(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,s=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),wt(i)||r&&Ai(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),wt(n))break}else{if(e.position===e.lineStart&&Al(e)||r&&Ai(h))break;if(wr(h))if(u=e.line,l=e.lineStart,c=e.lineIndent,ze(e,!1,-1),e.lineIndent>=t){s=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(xn(e,o,a,!1),Dh(e,e.line-u),o=a=e.position,s=!1),Qn(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return xn(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}function WP(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(xn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else wr(r)?(xn(e,n,i,!0),Dh(e,ze(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Al(e)?he(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);he(e,"unexpected end of the stream within a single quoted scalar")}function HP(e,t){var r,n,i,o,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return xn(e,r,e.position,!0),e.position++,!0;if(s===92){if(xn(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),wr(s))ze(e,!1,t);else if(s<256&&ob[s])e.result+=ab[s],e.position++;else if((a=FP(s))>0){for(i=a,o=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=jP(s))>=0?o=(o<<4)+a:he(e,"expected hexadecimal character");e.result+=UP(o),e.position++}else he(e,"unknown escape sequence");r=n=e.position}else wr(s)?(xn(e,r,n,!0),Dh(e,ze(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Al(e)?he(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}he(e,"unexpected end of the stream within a double quoted scalar")}function qP(e,t){var r=!0,n,i,o,a=e.tag,s,u=e.anchor,l,c,f,d,h,m=Object.create(null),g,b,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,h=!1,s=[];else if(v===123)c=125,h=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(ze(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=a,e.anchor=u,e.kind=h?"mapping":"sequence",e.result=s,!0;r?v===44&&he(e,"expected the node content, but found ','"):he(e,"missed comma between flow collection entries"),b=g=y=null,f=d=!1,v===63&&(l=e.input.charCodeAt(e.position+1),wt(l)&&(f=d=!0,e.position++,ze(e,!0,t))),n=e.line,i=e.lineStart,o=e.position,Yi(e,t,Au,!1,!0),b=e.tag,g=e.result,ze(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===n)&&v===58&&(f=!0,v=e.input.charCodeAt(++e.position),ze(e,!0,t),Yi(e,t,Au,!1,!0),y=e.result),h?Ii(e,s,m,b,g,y,n,i,o):f?s.push(Ii(e,null,m,b,g,y,n,i,o)):s.push(g),ze(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}he(e,"unexpected end of the stream within a flow collection")}function VP(e,t){var r,n,i=Lc,o=!1,a=!1,s=t,u=0,l=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Lc===i?i=f===43?Zg:MP:he(e,"repeat of a chomping mode identifier");else if((c=BP(f))>=0)c===0?he(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?he(e,"repeat of an indentation width identifier"):(s=t+c-1,a=!0);else break;if(Qn(f)){do f=e.input.charCodeAt(++e.position);while(Qn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!wr(f)&&f!==0)}for(;f!==0;){for(Nh(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndents&&(s=e.lineIndent),wr(f)){u++;continue}if(e.lineIndentt)&&u!==0)he(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(a=e.line,s=e.lineStart,u=e.position),Yi(e,t,Iu,!0,i)&&(b?m=e.result:g=e.result),b||(Ii(e,f,d,h,m,g,a,s,u),h=m=g=null),ze(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&v!==0)he(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f"),e.result!==null&&m.kind!==e.kind&&he(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):he(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function GP(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!wt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&he(e,"directive name must not be less than one character in length");a!==0;){for(;Qn(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!wr(a));break}if(wr(a))break;for(r=e.position;a!==0&&!wt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Lh(e),Pn.call(tm,n)?tm[n](e,n,i):Mu(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):o&&he(e,"directives end mark is expected"),Yi(e,e.lineIndent-1,Iu,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&LP.test(e.input.slice(t,e.position))&&Mu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Al(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var n=ub(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;irR(e)},interpolation:{escapeValue:!1}});const $a={url:"wss://spitfire.initlab.org:8083/mqtt",sensors:[{label:"Big room",topic:"sensors-xiaomi-ble/big-room/temperature"},{label:"Small room",topic:"sensors-xiaomi-ble/small-room/temperature"},{label:"Kitchen",topic:"sensors-xiaomi-ble/kitchen/temperature"}],doorStates:[{type:"locked",topic:"NetControl/initLab/out/ch28",mapper:e=>JSON.parse(e).value.raw===1},{type:"unlocked",topic:"NetControl/initLab/out/ch29",mapper:e=>JSON.parse(e).value.raw===1},{type:"closed",topic:"NetControl/initLab/out/ch30",mapper:e=>JSON.parse(e).value.raw===1}]},nR={temperature:{dashboard:{id:"C-7GPzXMk",name:"temperatures"},panels:[4,5,10]},humidity:{dashboard:{id:"d19kszuGk",name:"humidity"},panels:[4,5,10]}};var cd={},iR={get exports(){return cd},set exports(e){cd=e}};(function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof Ri=="function"&&Ri;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var d=new Error("Cannot find module '"+l+"'");throw d.code="MODULE_NOT_FOUND",d}var h=i[l]={exports:{}};n[l][0].call(h.exports,function(m){var g=n[l][1][m];return a(g||m)},h,h.exports,r,n,i,o)}return i[l].exports}for(var s=typeof Ri=="function"&&Ri,u=0;u"u")return new Error("Unregistered Topic Alias");if(q=R.topicAliasSend.getTopicByAlias(B),typeof q>"u")return new Error("Unregistered Topic Alias");N.topic=q}B&&delete N.properties.topicAlias}function T(R,N,B){p("sendPacket :: packet: %O",N),p("sendPacket :: emitting `packetsend`"),R.emit("packetsend",N),p("sendPacket :: writing to stream");const q=f.writeToStream(N,R.stream,R.options);p("sendPacket :: writeToStream result %s",q),!q&&B&&B!==z?(p("sendPacket :: handle events on `drain` once through callback."),R.stream.once("drain",B)):B&&(p("sendPacket :: invoking cb"),B())}function C(R){R&&(p("flush: queue exists? %b",!!R),Object.keys(R).forEach(function(N){typeof R[N].cb=="function"&&(R[N].cb(new Error("Connection closed")),delete R[N])}))}function I(R){R&&(p("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(R).forEach(function(N){R[N].volatile&&typeof R[N].cb=="function"&&(R[N].cb(new Error("Connection closed")),delete R[N])}))}function D(R,N,B,q){p("storeAndSend :: store packet with cmd %s to outgoingStore",N.cmd);let re=N,oe;if(re.cmd==="publish"&&(re=b(N),oe=S(R,re),oe))return B&&B(oe);R.outgoingStore.put(re,function(K){if(K)return B&&B(K);q(),T(R,N,B)})}function z(R){p("nop ::",R)}function Q(R,N){let B;const q=this;if(!(this instanceof Q))return new Q(R,N);this.options=N||{};for(B in _)typeof this.options[B]>"u"?this.options[B]=_[B]:this.options[B]=N[B];p("MqttClient :: options.protocol",N.protocol),p("MqttClient :: options.protocolVersion",N.protocolVersion),p("MqttClient :: options.username",N.username),p("MqttClient :: options.keepalive",N.keepalive),p("MqttClient :: options.reconnectPeriod",N.reconnectPeriod),p("MqttClient :: options.rejectUnauthorized",N.rejectUnauthorized),p("MqttClient :: options.topicAliasMaximum",N.topicAliasMaximum),this.options.clientId=typeof N.clientId=="string"?N.clientId:A(),p("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=N.protocolVersion===5&&N.customHandleAcks?N.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=R,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new d:this.options.messageIdProvider,this.outgoingStore=N.outgoingStore||new u,this.incomingStore=N.incomingStore||new u,this.queueQoSZero=N.queueQoSZero===void 0?!0:N.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,N.topicAliasMaximum>0&&(N.topicAliasMaximum>65535?p("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new l(N.topicAliasMaximum)),this.on("connect",function(){const re=this.queue;function oe(){const Y=re.shift();p("deliver :: entry %o",Y);let K=null;if(!Y){q._resubscribe();return}K=Y.packet,p("deliver :: call _sendPacket for %o",K);let ie=!0;K.messageId&&K.messageId!==0&&(q.messageIdProvider.register(K.messageId)||(ie=!1)),ie?q._sendPacket(K,function(ne){Y.cb&&Y.cb(ne),oe()}):(p("messageId: %d has already used. The message is skipped and removed.",K.messageId),oe())}p("connect :: sending queued packets"),oe()}),this.on("close",function(){p("close :: connected set to `false`"),this.connected=!1,p("close :: clearing connackTimer"),clearTimeout(this.connackTimer),p("close :: clearing ping timer"),q.pingTimer!==null&&(q.pingTimer.clear(),q.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),p("close :: calling _setupReconnect"),this._setupReconnect()}),s.call(this),p("MqttClient :: setting up stream"),this._setupStream()}m(Q,s),Q.prototype._setupStream=function(){const R=this,N=new h,B=f.parser(this.options);let q=null;const re=[];p("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),p("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),B.on("packet",function(ne){p("parser :: on packet push to packets array."),re.push(ne)});function oe(){if(re.length)w(Y);else{const ne=q;q=null,ne()}}function Y(){p("work :: getting next packet in queue");const ne=re.shift();if(ne)p("work :: packet pulled from queue"),R._handlePacket(ne,oe);else{p("work :: no packets in queue");const fe=q;q=null,p("work :: done flag is %s",!!fe),fe&&fe()}}N._write=function(ne,fe,se){q=se,p("writable stream :: parsing buffer"),B.parse(ne),Y()};function K(ne){p("streamErrorHandler :: error",ne.message),O.includes(ne.code)?(p("streamErrorHandler :: emitting error"),R.emit("error",ne)):z(ne)}p("_setupStream :: pipe stream to writable stream"),this.stream.pipe(N),this.stream.on("error",K),this.stream.on("close",function(){p("(%s)stream :: on close",R.options.clientId),I(R.outgoing),p("stream: emit close to MqttClient"),R.emit("close")}),p("_setupStream: sending packet `connect`");const ie=Object.create(this.options);if(ie.cmd="connect",this.topicAliasRecv&&(ie.properties||(ie.properties={}),this.topicAliasRecv&&(ie.properties.topicAliasMaximum=this.topicAliasRecv.max)),T(this,ie),B.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return R.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const ne=v({cmd:"auth",reasonCode:0},this.options.authPacket);T(this,ne)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){p("!!connectTimeout hit!! Calling _cleanUp with force `true`"),R._cleanUp(!0)},this.options.connectTimeout)},Q.prototype._handlePacket=function(R,N){const B=this.options;if(B.protocolVersion===5&&B.properties&&B.properties.maximumPacketSize&&B.properties.maximumPacketSize0||!K())&&this._storeProcessingQueue.push({invoke:K,cbStorePut:B.cbStorePut,callback:q}),this},Q.prototype.subscribe=function(){const R=this,N=new Array(arguments.length);for(let se=0;se0){const W={qos:te.qos};K===5&&(W.nl=te.nl||!1,W.rap=te.rap||!1,W.rh=te.rh||0,W.properties=te.properties),R._resubscribeTopics[te.topic]=W,V.push(te.topic)}}),R.messageIdToTopic[X.messageId]=V}return R.outgoing[X.messageId]={volatile:!0,cb:function(V,te){if(!V){const W=te.granted;for(let H=0;H0||!fe())&&this._storeProcessingQueue.push({invoke:fe,callback:oe}),this},Q.prototype.unsubscribe=function(){const R=this,N=new Array(arguments.length);for(let K=0;K0||!Y())&&this._storeProcessingQueue.push({invoke:Y,callback:q}),this},Q.prototype.end=function(R,N,B){const q=this;p("end :: (%s)",this.options.clientId),(R==null||typeof R!="boolean")&&(B=N||z,N=R,R=!1,typeof N!="object"&&(B=N,N=null,typeof B!="function"&&(B=z))),typeof N!="object"&&(B=N,N=null),p("end :: cb? %s",!!B),B=B||z;function re(){p("end :: closeStores: closing incoming and outgoing stores"),q.disconnected=!0,q.incomingStore.close(function(Y){q.outgoingStore.close(function(K){if(p("end :: closeStores: emitting end"),q.emit("end"),B){const ie=Y||K;p("end :: closeStores: invoking callback with args"),B(ie)}})}),q._deferredReconnect&&q._deferredReconnect()}function oe(){p("end :: (%s) :: finish :: calling _cleanUp with force %s",q.options.clientId,R),q._cleanUp(R,()=>{p("end :: finish :: calling process.nextTick on closeStores"),w(re.bind(q))},N)}return this.disconnecting?(B(),this):(this._clearReconnect(),this.disconnecting=!0,!R&&Object.keys(this.outgoing).length>0?(p("end :: (%s) :: calling finish in 10ms once outgoing is empty",q.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,oe,10))):(p("end :: (%s) :: immediately calling finish",q.options.clientId),oe()),this)},Q.prototype.removeOutgoingMessage=function(R){const N=this.outgoing[R]?this.outgoing[R].cb:null;return delete this.outgoing[R],this.outgoingStore.del({messageId:R},function(){N(new Error("Message removed"))}),this},Q.prototype.reconnect=function(R){p("client reconnect");const N=this,B=function(){R?(N.options.incomingStore=R.incomingStore,N.options.outgoingStore=R.outgoingStore):(N.options.incomingStore=null,N.options.outgoingStore=null),N.incomingStore=N.options.incomingStore||new u,N.outgoingStore=N.options.outgoingStore||new u,N.disconnecting=!1,N.disconnected=!1,N._deferredReconnect=null,N._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=B:B(),this},Q.prototype._reconnect=function(){p("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),p("client already connected. disconnecting first.")):(p("_reconnect: calling _setupStream"),this._setupStream())},Q.prototype._setupReconnect=function(){const R=this;!R.disconnecting&&!R.reconnectTimer&&R.options.reconnectPeriod>0?(this.reconnecting||(p("_setupReconnect :: emit `offline` state"),this.emit("offline"),p("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),p("_setupReconnect :: setting reconnectTimer for %d ms",R.options.reconnectPeriod),R.reconnectTimer=setInterval(function(){p("reconnectTimer :: reconnect triggered!"),R._reconnect()},R.options.reconnectPeriod)):p("_setupReconnect :: doing nothing...")},Q.prototype._clearReconnect=function(){p("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},Q.prototype._cleanUp=function(R,N){const B=arguments[2];if(N&&(p("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",N)),p("_cleanUp :: forced? %s",R),R)this.options.reconnectPeriod===0&&this.options.clean&&C(this.outgoing),p("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const q=v({cmd:"disconnect"},B);p("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(q,x.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(p("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(p("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),N&&!this.connected&&(p("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",N),N())},Q.prototype._sendPacket=function(R,N,B){p("_sendPacket :: (%s) :: start",this.options.clientId),B=B||z,N=N||z;const q=L(this,R);if(q){N(q);return}if(!this.connected){if(R.cmd==="auth"){this._shiftPingInterval(),T(this,R,N);return}p("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(R,N,B);return}switch(this._shiftPingInterval(),R.cmd){case"publish":break;case"pubrel":D(this,R,N,B);return;default:T(this,R,N);return}switch(R.qos){case 2:case 1:D(this,R,N,B);break;case 0:default:T(this,R,N);break}p("_sendPacket :: (%s) :: end",this.options.clientId)},Q.prototype._storePacket=function(R,N,B){p("_storePacket :: packet: %o",R),p("_storePacket :: cb? %s",!!N),B=B||z;let q=R;if(q.cmd==="publish"){q=b(R);const re=S(this,q);if(re)return N&&N(re)}(q.qos||0)===0&&this.queueQoSZero||q.cmd!=="publish"?this.queue.push({packet:q,cb:N}):q.qos>0?(N=this.outgoing[q.messageId]?this.outgoing[q.messageId].cb:null,this.outgoingStore.put(q,function(re){if(re)return N&&N(re);B()})):N&&N(new Error("No connection to broker"))},Q.prototype._setupPingTimer=function(){p("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const R=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=g(function(){R._checkPing()},this.options.keepalive*1e3))},Q.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)},Q.prototype._checkPing=function(){p("_checkPing :: checking ping..."),this.pingResp?(p("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(p("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},Q.prototype._handlePingresp=function(){this.pingResp=!0},Q.prototype._handleConnack=function(R){p("_handleConnack");const N=this.options,q=N.protocolVersion===5?R.reasonCode:R.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,R.properties){if(R.properties.topicAliasMaximum){if(R.properties.topicAliasMaximum>65535){this.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}R.properties.topicAliasMaximum>0&&(this.topicAliasSend=new c(R.properties.topicAliasMaximum))}R.properties.serverKeepAlive&&N.keepalive&&(N.keepalive=R.properties.serverKeepAlive,this._shiftPingInterval()),R.properties.maximumPacketSize&&(N.properties||(N.properties={}),N.properties.maximumPacketSize=R.properties.maximumPacketSize)}if(q===0)this.reconnecting=!1,this._onConnect(R);else if(q>0){const re=new Error("Connection refused: "+P[q]);re.code=q,this.emit("error",re)}},Q.prototype._handleAuth=function(R){const B=this.options.protocolVersion,q=B===5?R.reasonCode:R.returnCode;if(B!==5){const oe=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+B);oe.code=q,this.emit("error",oe);return}const re=this;this.handleAuth(R,function(oe,Y){if(oe){re.emit("error",oe);return}if(q===24)re.reconnecting=!1,re._sendPacket(Y);else{const K=new Error("Connection refused: "+P[q]);oe.code=q,re.emit("error",K)}})},Q.prototype.handleAuth=function(R,N){N()},Q.prototype._handlePublish=function(R,N){p("_handlePublish: packet %o",R),N=typeof N<"u"?N:z;let B=R.topic.toString();const q=R.payload,re=R.qos,oe=R.messageId,Y=this,K=this.options,ie=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let ne;if(R.properties&&(ne=R.properties.topicAlias),typeof ne<"u")if(B.length===0)if(ne>0&&ne<=65535){const fe=this.topicAliasRecv.getTopicByAlias(ne);if(fe)B=fe,p("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",B,ne);else{p("_handlePublish :: unregistered topic alias. alias: %d",ne),this.emit("error",new Error("Received unregistered Topic Alias"));return}}else{p("_handlePublish :: topic alias out of range. alias: %d",ne),this.emit("error",new Error("Received Topic Alias is out of range"));return}else if(this.topicAliasRecv.put(B,ne))p("_handlePublish :: registered topic: %s - alias: %d",B,ne);else{p("_handlePublish :: topic alias out of range. alias: %d",ne),this.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(p("_handlePublish: qos %d",re),re){case 2:{K.customHandleAcks(B,q,R,function(ne,fe){if(ne instanceof Error||(fe=ne,ne=null),ne)return Y.emit("error",ne);if(ie.indexOf(fe)===-1)return Y.emit("error",new Error("Wrong reason code for pubrec"));fe?Y._sendPacket({cmd:"pubrec",messageId:oe,reasonCode:fe},N):Y.incomingStore.put(R,function(){Y._sendPacket({cmd:"pubrec",messageId:oe},N)})});break}case 1:{K.customHandleAcks(B,q,R,function(ne,fe){if(ne instanceof Error||(fe=ne,ne=null),ne)return Y.emit("error",ne);if(ie.indexOf(fe)===-1)return Y.emit("error",new Error("Wrong reason code for puback"));fe||Y.emit("message",B,q,R),Y.handleMessage(R,function(se){if(se)return N&&N(se);Y._sendPacket({cmd:"puback",messageId:oe,reasonCode:fe},N)})});break}case 0:this.emit("message",B,q,R),this.handleMessage(R,N);break;default:p("_handlePublish: unknown QoS. Doing nothing.");break}},Q.prototype.handleMessage=function(R,N){N()},Q.prototype._handleAck=function(R){const N=R.messageId,B=R.cmd;let q=null;const re=this.outgoing[N]?this.outgoing[N].cb:null,oe=this;let Y;if(!re){p("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(p("_handleAck :: packet type",B),B){case"pubcomp":case"puback":{const K=R.reasonCode;K&&K>0&&K!==16&&(Y=new Error("Publish error: "+P[K]),Y.code=K,re(Y,R)),delete this.outgoing[N],this.outgoingStore.del(R,re),this.messageIdProvider.deallocate(N),this._invokeStoreProcessingQueue();break}case"pubrec":{q={cmd:"pubrel",qos:2,messageId:N};const K=R.reasonCode;K&&K>0&&K!==16?(Y=new Error("Publish error: "+P[K]),Y.code=K,re(Y,R)):this._sendPacket(q);break}case"suback":{delete this.outgoing[N],this.messageIdProvider.deallocate(N);for(let K=0;K0)if(this.options.resubscribe)if(this.options.protocolVersion===5){p("_resubscribe: protocolVersion 5");for(let N=0;N0){const R=this._storeProcessingQueue[0];if(R&&R.invoke())return this._storeProcessingQueue.shift(),!0}return!1},Q.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););},Q.prototype._flushStoreProcessingQueue=function(){for(const R of this._storeProcessingQueue)R.cbStorePut&&R.cbStorePut(new Error("Connection closed")),R.callback&&R.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)},n.exports=Q}).call(this)}).call(this,r("_process"),typeof Me<"u"?Me:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-message-id-provider":7,"./store":8,"./topic-alias-recv":9,"./topic-alias-send":10,"./validations":11,_process:50,debug:18,events:22,inherits:24,"mqtt-packet":40,"readable-stream":69,reinterval:70,"rfdc/default":71,xtend:81}],2:[function(r,n,i){const{Buffer:o}=r("buffer"),a=r("readable-stream").Transform,s=r("duplexify");let u,l,c,f=!1;function d(){const y=new a;return y._write=function(v,p,w){u.sendSocketMessage({data:v.buffer,success:function(){w()},fail:function(){w(new Error)}})},y._flush=function(p){u.closeSocket({success:function(){p()}})},y}function h(y){y.hostname||(y.hostname="localhost"),y.path||(y.path="/"),y.wsOptions||(y.wsOptions={})}function m(y,v){const p=y.protocol==="alis"?"wss":"ws";let w=p+"://"+y.hostname+y.path;return y.port&&y.port!==80&&y.port!==443&&(w=p+"://"+y.hostname+":"+y.port+y.path),typeof y.transformWsUrl=="function"&&(w=y.transformWsUrl(w,y,v)),w}function g(){f||(f=!0,u.onSocketOpen(function(){c.setReadable(l),c.setWritable(l),c.emit("connect")}),u.onSocketMessage(function(y){if(typeof y.data=="string"){const v=o.from(y.data,"base64");l.push(v)}else{const v=new FileReader;v.addEventListener("load",function(){let p=v.result;p instanceof ArrayBuffer?p=o.from(p):p=o.from(p,"utf8"),l.push(p)}),v.readAsArrayBuffer(y.data)}}),u.onSocketClose(function(){c.end(),c.destroy()}),u.onSocketError(function(y){c.destroy(y)}))}function b(y,v){if(v.hostname=v.hostname||v.host,!v.hostname)throw new Error("Could not determine host. Specify host manually.");const p=v.protocolId==="MQIsdp"&&v.protocolVersion===3?"mqttv3.1":"mqtt";h(v);const w=m(v,y);return u=v.my,u.connectSocket({url:w,protocols:p}),l=d(),c=s.obj(),g(),c}n.exports=b},{buffer:17,duplexify:20,"readable-stream":69}],3:[function(r,n,i){const o=r("net"),a=r("debug")("mqttjs:tcp");function s(u,l){l.port=l.port||1883,l.hostname=l.hostname||l.host||"localhost";const c=l.port,f=l.hostname;return a("port %d and host %s",c,f),o.createConnection(c,f)}n.exports=s},{debug:18,net:16}],4:[function(r,n,i){const o=r("tls"),a=r("net"),s=r("debug")("mqttjs:tls");function u(l,c){c.port=c.port||8883,c.host=c.hostname||c.host||"localhost",a.isIP(c.host)===0&&(c.servername=c.host),c.rejectUnauthorized=c.rejectUnauthorized!==!1,delete c.path,s("port %d host %s rejectUnauthorized %b",c.port,c.host,c.rejectUnauthorized);const f=o.connect(c);f.on("secureConnect",function(){c.rejectUnauthorized&&!f.authorized?f.emit("error",new Error("TLS not authorized")):f.removeListener("error",d)});function d(h){c.rejectUnauthorized&&l.emit("error",h),f.end()}return f.on("error",d),f}n.exports=u},{debug:18,net:16,tls:16}],5:[function(r,n,i){(function(o){(function(){const{Buffer:a}=r("buffer"),s=r("ws"),u=r("debug")("mqttjs:ws"),l=r("duplexify"),c=r("readable-stream").Transform,f=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],d=typeof o<"u"&&o.title==="browser"||typeof __webpack_require__=="function";function h(w,x){let _=w.protocol+"://"+w.hostname+":"+w.port+w.path;return typeof w.transformWsUrl=="function"&&(_=w.transformWsUrl(_,w,x)),_}function m(w){const x=w;return w.hostname||(x.hostname="localhost"),w.port||(w.protocol==="wss"?x.port=443:x.port=80),w.path||(x.path="/"),w.wsOptions||(x.wsOptions={}),!d&&w.protocol==="wss"&&f.forEach(function(_){Object.prototype.hasOwnProperty.call(w,_)&&!Object.prototype.hasOwnProperty.call(w.wsOptions,_)&&(x.wsOptions[_]=w[_])}),x}function g(w){const x=m(w);if(x.hostname||(x.hostname=x.host),!x.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");const _=new URL(document.URL);x.hostname=_.hostname,x.port||(x.port=_.port)}return x.objectMode===void 0&&(x.objectMode=!(x.binary===!0||x.binary===void 0)),x}function b(w,x,_){u("createWebSocket"),u("protocol: "+_.protocolId+" "+_.protocolVersion);const O=_.protocolId==="MQIsdp"&&_.protocolVersion===3?"mqttv3.1":"mqtt";return u("creating new Websocket for url: "+x+" and protocol: "+O),new s(x,[O],_.wsOptions)}function y(w,x){const _=x.protocolId==="MQIsdp"&&x.protocolVersion===3?"mqttv3.1":"mqtt",O=h(x,w),P=new WebSocket(O,[_]);return P.binaryType="arraybuffer",P}function v(w,x){u("streamBuilder");const _=m(x),O=h(_,w),P=b(w,O,_),A=s.createWebSocketStream(P,_.wsOptions);return A.url=O,P.on("close",()=>{A.destroy()}),A}function p(w,x){u("browserStreamBuilder");let _;const P=g(x).browserBufferSize||1024*512,A=x.browserBufferTimeout||1e3,L=!x.objectMode,S=y(w,x),T=I(x,B,q);x.objectMode||(T._writev=N),T.on("close",()=>{S.close()});const C=typeof S.addEventListener<"u";S.readyState===S.OPEN?_=T:(_=_=l(void 0,void 0,x),x.objectMode||(_._writev=N),C?S.addEventListener("open",D):S.onopen=D),_.socket=S,C?(S.addEventListener("close",z),S.addEventListener("error",Q),S.addEventListener("message",R)):(S.onclose=z,S.onerror=Q,S.onmessage=R);function I(re,oe,Y){const K=new c({objectModeMode:re.objectMode});return K._write=oe,K._flush=Y,K}function D(){_.setReadable(T),_.setWritable(T),_.emit("connect")}function z(){_.end(),_.destroy()}function Q(re){_.destroy(re)}function R(re){let oe=re.data;oe instanceof ArrayBuffer?oe=a.from(oe):oe=a.from(oe,"utf8"),T.push(oe)}function N(re,oe){const Y=new Array(re.length);for(let K=0;KP&&setTimeout(B,A,re,oe,Y),L&&typeof re=="string"&&(re=a.from(re,"utf8"));try{S.send(re)}catch(K){return Y(K)}Y()}function q(re){S.close(),re()}return _}d?n.exports=p:n.exports=v}).call(this)}).call(this,r("_process"))},{_process:50,buffer:17,debug:18,duplexify:20,"readable-stream":69,ws:80}],6:[function(r,n,i){const{Buffer:o}=r("buffer"),a=r("readable-stream").Transform,s=r("duplexify");let u,l,c;function f(){const b=new a;return b._write=function(y,v,p){u.send({data:y.buffer,success:function(){p()},fail:function(w){p(new Error(w))}})},b._flush=function(v){u.close({success:function(){v()}})},b}function d(b){b.hostname||(b.hostname="localhost"),b.path||(b.path="/"),b.wsOptions||(b.wsOptions={})}function h(b,y){const v=b.protocol==="wxs"?"wss":"ws";let p=v+"://"+b.hostname+b.path;return b.port&&b.port!==80&&b.port!==443&&(p=v+"://"+b.hostname+":"+b.port+b.path),typeof b.transformWsUrl=="function"&&(p=b.transformWsUrl(p,b,y)),p}function m(){u.onOpen(function(){c.setReadable(l),c.setWritable(l),c.emit("connect")}),u.onMessage(function(b){let y=b.data;y instanceof ArrayBuffer?y=o.from(y):y=o.from(y,"utf8"),l.push(y)}),u.onClose(function(){c.end(),c.destroy()}),u.onError(function(b){c.destroy(new Error(b.errMsg))})}function g(b,y){if(y.hostname=y.hostname||y.host,!y.hostname)throw new Error("Could not determine host. Specify host manually.");const v=y.protocolId==="MQIsdp"&&y.protocolVersion===3?"mqttv3.1":"mqtt";d(y);const p=h(y,b);u=wx.connectSocket({url:p,protocols:[v]}),l=f(),c=s.obj(),c._destroy=function(x,_){u.close({success:function(){_&&_(x)}})};const w=c.destroy;return c.destroy=function(){c.destroy=w;const x=this;setTimeout(function(){u.close({fail:function(){x._destroy(new Error)}})},0)}.bind(c),m(),c}n.exports=g},{buffer:17,duplexify:20,"readable-stream":69}],7:[function(r,n,i){function o(){if(!(this instanceof o))return new o;this.nextId=Math.max(1,Math.floor(Math.random()*65535))}o.prototype.allocate=function(){const a=this.nextId++;return this.nextId===65536&&(this.nextId=1),a},o.prototype.getLastAllocated=function(){return this.nextId===1?65535:this.nextId-1},o.prototype.register=function(a){return!0},o.prototype.deallocate=function(a){},o.prototype.clear=function(){},n.exports=o},{}],8:[function(r,n,i){const o=r("xtend"),a=r("readable-stream").Readable,s={objectMode:!0},u={clean:!0};function l(c){if(!(this instanceof l))return new l(c);this.options=c||{},this.options=o(u,c),this._inflights=new Map}l.prototype.put=function(c,f){return this._inflights.set(c.messageId,c),f&&f(),this},l.prototype.createStream=function(){const c=new a(s),f=[];let d=!1,h=0;return this._inflights.forEach(function(m,g){f.push(m)}),c._read=function(){!d&&hthis.max?!1:(this.aliasToTopic[s]=a,this.length=Object.keys(this.aliasToTopic).length,!0)},o.prototype.getTopicByAlias=function(a){return this.aliasToTopic[a]},o.prototype.clear=function(){this.aliasToTopic={}},n.exports=o},{}],10:[function(r,n,i){const o=r("lru-cache"),a=r("number-allocator").NumberAllocator;function s(u){if(!(this instanceof s))return new s(u);u>0&&(this.aliasToTopic=new o({max:u}),this.topicToAlias={},this.numberAllocator=new a(1,u),this.max=u,this.length=0)}s.prototype.put=function(u,l){if(l===0||l>this.max)return!1;const c=this.aliasToTopic.get(l);return c&&delete this.topicToAlias[c],this.aliasToTopic.set(l,u),this.topicToAlias[u]=l,this.numberAllocator.use(l),this.length=this.aliasToTopic.length,!0},s.prototype.getTopicByAlias=function(u){return this.aliasToTopic.get(u)},s.prototype.getAliasByTopic=function(u){const l=this.topicToAlias[u];return typeof l<"u"&&this.aliasToTopic.get(l),l},s.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},s.prototype.getLruAlias=function(){const u=this.numberAllocator.firstVacant();return u||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},n.exports=s},{"lru-cache":37,"number-allocator":46}],11:[function(r,n,i){function o(s){const u=s.split("/");for(let l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");var w=v.indexOf("=");w===-1&&(w=p);var x=w===p?0:4-w%4;return[w,x]}function d(v){var p=f(v),w=p[0],x=p[1];return(w+x)*3/4-x}function h(v,p,w){return(p+w)*3/4-w}function m(v){var p,w=f(v),x=w[0],_=w[1],O=new s(h(v,x,_)),P=0,A=_>0?x-4:x,L;for(L=0;L>16&255,O[P++]=p>>8&255,O[P++]=p&255;return _===2&&(p=a[v.charCodeAt(L)]<<2|a[v.charCodeAt(L+1)]>>4,O[P++]=p&255),_===1&&(p=a[v.charCodeAt(L)]<<10|a[v.charCodeAt(L+1)]<<4|a[v.charCodeAt(L+2)]>>2,O[P++]=p>>8&255,O[P++]=p&255),O}function g(v){return o[v>>18&63]+o[v>>12&63]+o[v>>6&63]+o[v&63]}function b(v,p,w){for(var x,_=[],O=p;OA?A:P+O));return x===1?(p=v[w-1],_.push(o[p>>2]+o[p<<4&63]+"==")):x===2&&(p=(v[w-2]<<8)+v[w-1],_.push(o[p>>10]+o[p>>4&63]+o[p<<2&63]+"=")),_.join("")}},{}],14:[function(r,n,i){const{Buffer:o}=r("buffer"),a=Symbol.for("BufferList");function s(u){if(!(this instanceof s))return new s(u);s._init.call(this,u)}s._init=function(l){Object.defineProperty(this,a,{value:!0}),this._bufs=[],this.length=0,l&&this.append(l)},s.prototype._new=function(l){return new s(l)},s.prototype._offset=function(l){if(l===0)return[0,0];let c=0;for(let f=0;fthis.length||l<0)return;const c=this._offset(l);return this._bufs[c[0]][c[1]]},s.prototype.slice=function(l,c){return typeof l=="number"&&l<0&&(l+=this.length),typeof c=="number"&&c<0&&(c+=this.length),this.copy(null,0,l,c)},s.prototype.copy=function(l,c,f,d){if((typeof f!="number"||f<0)&&(f=0),(typeof d!="number"||d>this.length)&&(d=this.length),f>=this.length||d<=0)return l||o.alloc(0);const h=!!l,m=this._offset(f),g=d-f;let b=g,y=h&&c||0,v=m[1];if(f===0&&d===this.length){if(!h)return this._bufs.length===1?this._bufs[0]:o.concat(this._bufs,this.length);for(let p=0;pw)this._bufs[p].copy(l,y,v),y+=w;else{this._bufs[p].copy(l,y,v,v+b),y+=w;break}b-=w,v&&(v=0)}return l.length>y?l.slice(0,y):l},s.prototype.shallowSlice=function(l,c){if(l=l||0,c=typeof c!="number"?this.length:c,l<0&&(l+=this.length),c<0&&(c+=this.length),l===c)return this._new();const f=this._offset(l),d=this._offset(c),h=this._bufs.slice(f[0],d[0]+1);return d[1]===0?h.pop():h[h.length-1]=h[h.length-1].slice(0,d[1]),f[1]!==0&&(h[0]=h[0].slice(f[1])),this._new(h)},s.prototype.toString=function(l,c,f){return this.slice(c,f).toString(l)},s.prototype.consume=function(l){if(l=Math.trunc(l),Number.isNaN(l)||l<=0)return this;for(;this._bufs.length;)if(l>=this._bufs[0].length)l-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(l),this.length-=l;break}return this},s.prototype.duplicate=function(){const l=this._new();for(let c=0;cthis.length?this.length:l;const f=this._offset(l);let d=f[0],h=f[1];for(;d=u.length){const b=m.indexOf(u,h);if(b!==-1)return this._reverseOffset([d,b]);h=m.length-u.length+1}else{const b=this._reverseOffset([d,h]);if(this._match(b,u))return b;h++}h=0}return-1},s.prototype._match=function(u,l){if(this.length-uu)throw new RangeError('The value "'+M+'" is invalid for option "size"');var E=new Uint8Array(M);return E.__proto__=f.prototype,E}function f(M,E,k){if(typeof M=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(M)}return d(M,E,k)}typeof Symbol<"u"&&Symbol.species!=null&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192;function d(M,E,k){if(typeof M=="string")return b(M,E);if(ArrayBuffer.isView(M))return y(M);if(M==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(j(M,ArrayBuffer)||M&&j(M.buffer,ArrayBuffer))return v(M,E,k);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var F=M.valueOf&&M.valueOf();if(F!=null&&F!==M)return f.from(F,E,k);var G=p(M);if(G)return G;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return f.from(M[Symbol.toPrimitive]("string"),E,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}f.from=function(M,E,k){return d(M,E,k)},f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array;function h(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function m(M,E,k){return h(M),M<=0?c(M):E!==void 0?typeof k=="string"?c(M).fill(E,k):c(M).fill(E):c(M)}f.alloc=function(M,E,k){return m(M,E,k)};function g(M){return h(M),c(M<0?0:w(M)|0)}f.allocUnsafe=function(M){return g(M)},f.allocUnsafeSlow=function(M){return g(M)};function b(M,E){if((typeof E!="string"||E==="")&&(E="utf8"),!f.isEncoding(E))throw new TypeError("Unknown encoding: "+E);var k=_(M,E)|0,F=c(k),G=F.write(M,E);return G!==k&&(F=F.slice(0,G)),F}function y(M){for(var E=M.length<0?0:w(M.length)|0,k=c(E),F=0;F=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return M|0}function x(M){return+M!=M&&(M=0),f.alloc(+M)}f.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==f.prototype},f.compare=function(E,k){if(j(E,Uint8Array)&&(E=f.from(E,E.offset,E.byteLength)),j(k,Uint8Array)&&(k=f.from(k,k.offset,k.byteLength)),!f.isBuffer(E)||!f.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===k)return 0;for(var F=E.length,G=k.length,ue=0,le=Math.min(F,G);ue2&&arguments[2]===!0;if(!F&&k===0)return 0;for(var G=!1;;)switch(E){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return W(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return ee(M).length;default:if(G)return F?-1:W(M).length;E=(""+E).toLowerCase(),G=!0}}f.byteLength=_;function O(M,E,k){var F=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,E>>>=0,k<=E))return"";for(M||(M="utf8");;)switch(M){case"hex":return oe(this,E,k);case"utf8":case"utf-8":return R(this,E,k);case"ascii":return q(this,E,k);case"latin1":case"binary":return re(this,E,k);case"base64":return Q(this,E,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,E,k);default:if(F)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),F=!0}}f.prototype._isBuffer=!0;function P(M,E,k){var F=M[E];M[E]=M[k],M[k]=F}f.prototype.swap16=function(){var E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;kk&&(E+=" ... "),""},f.prototype.compare=function(E,k,F,G,ue){if(j(E,Uint8Array)&&(E=f.from(E,E.offset,E.byteLength)),!f.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(k===void 0&&(k=0),F===void 0&&(F=E?E.length:0),G===void 0&&(G=0),ue===void 0&&(ue=this.length),k<0||F>E.length||G<0||ue>this.length)throw new RangeError("out of range index");if(G>=ue&&k>=F)return 0;if(G>=ue)return-1;if(k>=F)return 1;if(k>>>=0,F>>>=0,G>>>=0,ue>>>=0,this===E)return 0;for(var le=ue-G,pe=F-k,ge=Math.min(le,pe),Ee=this.slice(G,ue),Ue=E.slice(k,F),Ce=0;Ce2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,U(k)&&(k=G?0:M.length-1),k<0&&(k=M.length+k),k>=M.length){if(G)return-1;k=M.length-1}else if(k<0)if(G)k=0;else return-1;if(typeof E=="string"&&(E=f.from(E,F)),f.isBuffer(E))return E.length===0?-1:L(M,E,k,F,G);if(typeof E=="number")return E=E&255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(M,E,k):Uint8Array.prototype.lastIndexOf.call(M,E,k):L(M,[E],k,F,G);throw new TypeError("val must be string, number or Buffer")}function L(M,E,k,F,G){var ue=1,le=M.length,pe=E.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(M.length<2||E.length<2)return-1;ue=2,le/=2,pe/=2,k/=2}function ge(qr,Er){return ue===1?qr[Er]:qr.readUInt16BE(Er*ue)}var Ee;if(G){var Ue=-1;for(Ee=k;Eele&&(k=le-pe),Ee=k;Ee>=0;Ee--){for(var Ce=!0,Hr=0;HrG&&(F=G)):F=G;var ue=E.length;F>ue/2&&(F=ue/2);for(var le=0;le>>0,isFinite(F)?(F=F>>>0,G===void 0&&(G="utf8")):(G=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-k;if((F===void 0||F>ue)&&(F=ue),E.length>0&&(F<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");for(var le=!1;;)switch(G){case"hex":return S(this,E,k,F);case"utf8":case"utf-8":return T(this,E,k,F);case"ascii":return C(this,E,k,F);case"latin1":case"binary":return I(this,E,k,F);case"base64":return D(this,E,k,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,E,k,F);default:if(le)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),le=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(M,E,k){return E===0&&k===M.length?a.fromByteArray(M):a.fromByteArray(M.slice(E,k))}function R(M,E,k){k=Math.min(M.length,k);for(var F=[],G=E;G239?4:ue>223?3:ue>191?2:1;if(G+pe<=k){var ge,Ee,Ue,Ce;switch(pe){case 1:ue<128&&(le=ue);break;case 2:ge=M[G+1],(ge&192)===128&&(Ce=(ue&31)<<6|ge&63,Ce>127&&(le=Ce));break;case 3:ge=M[G+1],Ee=M[G+2],(ge&192)===128&&(Ee&192)===128&&(Ce=(ue&15)<<12|(ge&63)<<6|Ee&63,Ce>2047&&(Ce<55296||Ce>57343)&&(le=Ce));break;case 4:ge=M[G+1],Ee=M[G+2],Ue=M[G+3],(ge&192)===128&&(Ee&192)===128&&(Ue&192)===128&&(Ce=(ue&15)<<18|(ge&63)<<12|(Ee&63)<<6|Ue&63,Ce>65535&&Ce<1114112&&(le=Ce))}}le===null?(le=65533,pe=1):le>65535&&(le-=65536,F.push(le>>>10&1023|55296),le=56320|le&1023),F.push(le),G+=pe}return B(F)}var N=4096;function B(M){var E=M.length;if(E<=N)return String.fromCharCode.apply(String,M);for(var k="",F=0;FF)&&(k=F);for(var G="",ue=E;ueF&&(E=F),k<0?(k+=F,k<0&&(k=0)):k>F&&(k=F),kk)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(E,k,F){E=E>>>0,k=k>>>0,F||K(E,k,this.length);for(var G=this[E],ue=1,le=0;++le>>0,k=k>>>0,F||K(E,k,this.length);for(var G=this[E+--k],ue=1;k>0&&(ue*=256);)G+=this[E+--k]*ue;return G},f.prototype.readUInt8=function(E,k){return E=E>>>0,k||K(E,1,this.length),this[E]},f.prototype.readUInt16LE=function(E,k){return E=E>>>0,k||K(E,2,this.length),this[E]|this[E+1]<<8},f.prototype.readUInt16BE=function(E,k){return E=E>>>0,k||K(E,2,this.length),this[E]<<8|this[E+1]},f.prototype.readUInt32LE=function(E,k){return E=E>>>0,k||K(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},f.prototype.readUInt32BE=function(E,k){return E=E>>>0,k||K(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},f.prototype.readIntLE=function(E,k,F){E=E>>>0,k=k>>>0,F||K(E,k,this.length);for(var G=this[E],ue=1,le=0;++le=ue&&(G-=Math.pow(2,8*k)),G},f.prototype.readIntBE=function(E,k,F){E=E>>>0,k=k>>>0,F||K(E,k,this.length);for(var G=k,ue=1,le=this[E+--G];G>0&&(ue*=256);)le+=this[E+--G]*ue;return ue*=128,le>=ue&&(le-=Math.pow(2,8*k)),le},f.prototype.readInt8=function(E,k){return E=E>>>0,k||K(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},f.prototype.readInt16LE=function(E,k){E=E>>>0,k||K(E,2,this.length);var F=this[E]|this[E+1]<<8;return F&32768?F|4294901760:F},f.prototype.readInt16BE=function(E,k){E=E>>>0,k||K(E,2,this.length);var F=this[E+1]|this[E]<<8;return F&32768?F|4294901760:F},f.prototype.readInt32LE=function(E,k){return E=E>>>0,k||K(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},f.prototype.readInt32BE=function(E,k){return E=E>>>0,k||K(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},f.prototype.readFloatLE=function(E,k){return E=E>>>0,k||K(E,4,this.length),s.read(this,E,!0,23,4)},f.prototype.readFloatBE=function(E,k){return E=E>>>0,k||K(E,4,this.length),s.read(this,E,!1,23,4)},f.prototype.readDoubleLE=function(E,k){return E=E>>>0,k||K(E,8,this.length),s.read(this,E,!0,52,8)},f.prototype.readDoubleBE=function(E,k){return E=E>>>0,k||K(E,8,this.length),s.read(this,E,!1,52,8)};function ie(M,E,k,F,G,ue){if(!f.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>G||EM.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(E,k,F,G){if(E=+E,k=k>>>0,F=F>>>0,!G){var ue=Math.pow(2,8*F)-1;ie(this,E,k,F,ue,0)}var le=1,pe=0;for(this[k]=E&255;++pe>>0,F=F>>>0,!G){var ue=Math.pow(2,8*F)-1;ie(this,E,k,F,ue,0)}var le=F-1,pe=1;for(this[k+le]=E&255;--le>=0&&(pe*=256);)this[k+le]=E/pe&255;return k+F},f.prototype.writeUInt8=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,1,255,0),this[k]=E&255,k+1},f.prototype.writeUInt16LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,65535,0),this[k]=E&255,this[k+1]=E>>>8,k+2},f.prototype.writeUInt16BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,65535,0),this[k]=E>>>8,this[k+1]=E&255,k+2},f.prototype.writeUInt32LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,4294967295,0),this[k+3]=E>>>24,this[k+2]=E>>>16,this[k+1]=E>>>8,this[k]=E&255,k+4},f.prototype.writeUInt32BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,4294967295,0),this[k]=E>>>24,this[k+1]=E>>>16,this[k+2]=E>>>8,this[k+3]=E&255,k+4},f.prototype.writeIntLE=function(E,k,F,G){if(E=+E,k=k>>>0,!G){var ue=Math.pow(2,8*F-1);ie(this,E,k,F,ue-1,-ue)}var le=0,pe=1,ge=0;for(this[k]=E&255;++le>0)-ge&255;return k+F},f.prototype.writeIntBE=function(E,k,F,G){if(E=+E,k=k>>>0,!G){var ue=Math.pow(2,8*F-1);ie(this,E,k,F,ue-1,-ue)}var le=F-1,pe=1,ge=0;for(this[k+le]=E&255;--le>=0&&(pe*=256);)E<0&&ge===0&&this[k+le+1]!==0&&(ge=1),this[k+le]=(E/pe>>0)-ge&255;return k+F},f.prototype.writeInt8=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,1,127,-128),E<0&&(E=255+E+1),this[k]=E&255,k+1},f.prototype.writeInt16LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,32767,-32768),this[k]=E&255,this[k+1]=E>>>8,k+2},f.prototype.writeInt16BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,32767,-32768),this[k]=E>>>8,this[k+1]=E&255,k+2},f.prototype.writeInt32LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,2147483647,-2147483648),this[k]=E&255,this[k+1]=E>>>8,this[k+2]=E>>>16,this[k+3]=E>>>24,k+4},f.prototype.writeInt32BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[k]=E>>>24,this[k+1]=E>>>16,this[k+2]=E>>>8,this[k+3]=E&255,k+4};function ne(M,E,k,F,G,ue){if(k+F>M.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function fe(M,E,k,F,G){return E=+E,k=k>>>0,G||ne(M,E,k,4),s.write(M,E,k,F,23,4),k+4}f.prototype.writeFloatLE=function(E,k,F){return fe(this,E,k,!0,F)},f.prototype.writeFloatBE=function(E,k,F){return fe(this,E,k,!1,F)};function se(M,E,k,F,G){return E=+E,k=k>>>0,G||ne(M,E,k,8),s.write(M,E,k,F,52,8),k+8}f.prototype.writeDoubleLE=function(E,k,F){return se(this,E,k,!0,F)},f.prototype.writeDoubleBE=function(E,k,F){return se(this,E,k,!1,F)},f.prototype.copy=function(E,k,F,G){if(!f.isBuffer(E))throw new TypeError("argument should be a Buffer");if(F||(F=0),!G&&G!==0&&(G=this.length),k>=E.length&&(k=E.length),k||(k=0),G>0&&G=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),E.length-k=0;--le)E[le+k]=this[le+F];else Uint8Array.prototype.set.call(E,this.subarray(F,G),k);return ue},f.prototype.fill=function(E,k,F,G){if(typeof E=="string"){if(typeof k=="string"?(G=k,k=0,F=this.length):typeof F=="string"&&(G=F,F=this.length),G!==void 0&&typeof G!="string")throw new TypeError("encoding must be a string");if(typeof G=="string"&&!f.isEncoding(G))throw new TypeError("Unknown encoding: "+G);if(E.length===1){var ue=E.charCodeAt(0);(G==="utf8"&&ue<128||G==="latin1")&&(E=ue)}}else typeof E=="number"&&(E=E&255);if(k<0||this.length>>0,F=F===void 0?this.length:F>>>0,E||(E=0);var le;if(typeof E=="number")for(le=k;le55295&&k<57344){if(!G){if(k>56319){(E-=3)>-1&&ue.push(239,191,189);continue}else if(le+1===F){(E-=3)>-1&&ue.push(239,191,189);continue}G=k;continue}if(k<56320){(E-=3)>-1&&ue.push(239,191,189),G=k;continue}k=(G-55296<<10|k-56320)+65536}else G&&(E-=3)>-1&&ue.push(239,191,189);if(G=null,k<128){if((E-=1)<0)break;ue.push(k)}else if(k<2048){if((E-=2)<0)break;ue.push(k>>6|192,k&63|128)}else if(k<65536){if((E-=3)<0)break;ue.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((E-=4)<0)break;ue.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return ue}function H(M){for(var E=[],k=0;k>8,G=k%256,ue.push(G),ue.push(F);return ue}function ee(M){return a.toByteArray(V(M))}function ae(M,E,k,F){for(var G=0;G=E.length||G>=M.length);++G)E[G+k]=M[G];return G}function j(M,E){return M instanceof E||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===E.name}function U(M){return M!==M}}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":13,buffer:17,ieee754:23}],18:[function(r,n,i){(function(o){(function(){i.formatArgs=s,i.save=u,i.load=l,i.useColors=a,i.storage=c(),i.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),i.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;d.splice(1,0,h,"color: inherit");let m=0,g=0;d[0].replace(/%[a-zA-Z%]/g,b=>{b!=="%%"&&(m++,b==="%c"&&(g=m))}),d.splice(g,0,h)}i.log=console.debug||console.log||(()=>{});function u(d){try{d?i.storage.setItem("debug",d):i.storage.removeItem("debug")}catch{}}function l(){let d;try{d=i.storage.getItem("debug")}catch{}return!d&&typeof o<"u"&&"env"in o&&(d={}.DEBUG),d}function c(){try{return localStorage}catch{}}n.exports=r("./common")(i);const{formatters:f}=n.exports;f.j=function(d){try{return JSON.stringify(d)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}}).call(this)}).call(this,r("_process"))},{"./common":19,_process:50}],19:[function(r,n,i){function o(a){u.debug=u,u.default=u,u.coerce=m,u.disable=f,u.enable=c,u.enabled=d,u.humanize=r("ms"),u.destroy=g,Object.keys(a).forEach(b=>{u[b]=a[b]}),u.names=[],u.skips=[],u.formatters={};function s(b){let y=0;for(let v=0;v{if(T==="%%")return"%";L++;const I=u.formatters[C];if(typeof I=="function"){const D=_[L];T=I.call(O,D),_.splice(L,1),L--}return T}),u.formatArgs.call(O,_),(O.log||u.log).apply(O,_)}return x.namespace=b,x.useColors=u.useColors(),x.color=u.selectColor(b),x.extend=l,x.destroy=u.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(p!==u.namespaces&&(p=u.namespaces,w=u.enabled(b)),w),set:_=>{v=_}}),typeof u.init=="function"&&u.init(x),x}function l(b,y){const v=u(this.namespace+(typeof y>"u"?":":y)+b);return v.log=this.log,v}function c(b){u.save(b),u.namespaces=b,u.names=[],u.skips=[];let y;const v=(typeof b=="string"?b:"").split(/[\s,]+/),p=v.length;for(y=0;y"-"+y)].join(",");return u.enable(""),b}function d(b){if(b[b.length-1]==="*")return!0;let y,v;for(y=0,v=u.skips.length;y1&&(D=arguments[1]),D instanceof Error)throw D;var re=new Error('Unhandled "error" event. ('+D+")");throw re.context=D,re}if(z=B[I],!z)return!1;var oe=typeof z=="function";switch(Q=arguments.length,Q){case 1:h(z,oe,this);break;case 2:m(z,oe,this,arguments[1]);break;case 3:g(z,oe,this,arguments[1],arguments[2]);break;case 4:b(z,oe,this,arguments[1],arguments[2],arguments[3]);break;default:for(R=new Array(Q-1),N=1;N0&&N.length>Q)){N.warned=!0;var B=new Error("Possible EventEmitter memory leak detected. "+N.length+' "'+String(I)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');B.name="MaxListenersExceededWarning",B.emitter=C,B.type=I,B.count=N.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",B.name,B.message)}return C}u.prototype.addListener=function(I,D){return v(this,I,D,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(I,D){return v(this,I,D,!0)};function p(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var C=new Array(arguments.length),I=0;I=0;N--)if(z[N]===D||z[N].listener===D){B=z[N].listener,R=N;break}if(R<0)return this;R===0?z.shift():O(z,R),z.length===1&&(Q[I]=z[0]),Q.removeListener&&this.emit("removeListener",I,B||D)}return this},u.prototype.removeAllListeners=function(I){var D,z,Q;if(z=this._events,!z)return this;if(!z.removeListener)return arguments.length===0?(this._events=o(null),this._eventsCount=0):z[I]&&(--this._eventsCount===0?this._events=o(null):delete z[I]),this;if(arguments.length===0){var R=a(z),N;for(Q=0;Q=0;Q--)this.removeListener(I,D[Q]);return this};function x(C,I,D){var z=C._events;if(!z)return[];var Q=z[I];return Q?typeof Q=="function"?D?[Q.listener||Q]:[Q]:D?A(Q):P(Q,Q.length):[]}u.prototype.listeners=function(I){return x(this,I,!0)},u.prototype.rawListeners=function(I){return x(this,I,!1)},u.listenerCount=function(C,I){return typeof C.listenerCount=="function"?C.listenerCount(I):_.call(C,I)},u.prototype.listenerCount=_;function _(C){var I=this._events;if(I){var D=I[C];if(typeof D=="function")return 1;if(D)return D.length}return 0}u.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function O(C,I){for(var D=I,z=D+1,Q=C.length;z */i.read=function(o,a,s,u,l){var c,f,d=l*8-u-1,h=(1<>1,g=-7,b=s?l-1:0,y=s?-1:1,v=o[a+b];for(b+=y,c=v&(1<<-g)-1,v>>=-g,g+=d;g>0;c=c*256+o[a+b],b+=y,g-=8);for(f=c&(1<<-g)-1,c>>=-g,g+=u;g>0;f=f*256+o[a+b],b+=y,g-=8);if(c===0)c=1-m;else{if(c===h)return f?NaN:(v?-1:1)*(1/0);f=f+Math.pow(2,u),c=c-m}return(v?-1:1)*f*Math.pow(2,c-u)},i.write=function(o,a,s,u,l,c){var f,d,h,m=c*8-l-1,g=(1<>1,y=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=u?0:c-1,p=u?1:-1,w=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(d=isNaN(a)?1:0,f=g):(f=Math.floor(Math.log(a)/Math.LN2),a*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+b>=1?a+=y/h:a+=y*Math.pow(2,1-b),a*h>=2&&(f++,h/=2),f+b>=g?(d=0,f=g):f+b>=1?(d=(a*h-1)*Math.pow(2,l),f=f+b):(d=a*Math.pow(2,b-1)*Math.pow(2,l),f=0));l>=8;o[s+v]=d&255,v+=p,d/=256,l-=8);for(f=f<0;o[s+v]=f&255,v+=p,f/=256,m-=8);o[s+v-p]|=w*128}},{}],24:[function(r,n,i){typeof Object.create=="function"?n.exports=function(a,s){s&&(a.super_=s,a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(a,s){if(s){a.super_=s;var u=function(){};u.prototype=s.prototype,a.prototype=new u,a.prototype.constructor=a}}},{}],25:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});var o=function(){function a(s,u){this.color=!0,this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0,this.leftChild=void 0,this.rightChild=void 0,this.key=s,this.value=u}return a.prototype.rotateLeft=function(){var s=this.parent,u=this.brother,l=this.leftChild,c=this.rightChild;if(!c)throw new Error("unknown error");var f=c.leftChild,d=c.rightChild;return s&&(s.leftChild===this?s.leftChild=c:s.rightChild===this&&(s.rightChild=c)),c.parent=s,c.brother=u,c.leftChild=this,c.rightChild=d,u&&(u.brother=c),this.parent=c,this.brother=d,this.leftChild=l,this.rightChild=f,d&&(d.parent=c,d.brother=this),l&&(l.parent=this,l.brother=f),f&&(f.parent=this,f.brother=l),c},a.prototype.rotateRight=function(){var s=this.parent,u=this.brother,l=this.leftChild;if(!l)throw new Error("unknown error");var c=this.rightChild,f=l.leftChild,d=l.rightChild;return s&&(s.leftChild===this?s.leftChild=l:s.rightChild===this&&(s.rightChild=l)),l.parent=s,l.brother=u,l.leftChild=f,l.rightChild=this,u&&(u.brother=l),f&&(f.parent=l,f.brother=this),this.parent=l,this.brother=f,this.leftChild=d,this.rightChild=c,d&&(d.parent=this,d.brother=c),c&&(c.parent=this,c.brother=d),l},a.prototype.remove=function(){if(this.leftChild||this.rightChild)throw new Error("can only remove leaf node");this.parent&&(this===this.parent.leftChild?this.parent.leftChild=void 0:this===this.parent.rightChild&&(this.parent.rightChild=void 0)),this.brother&&(this.brother.brother=void 0),this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0},a.TreeNodeColorType={red:!0,black:!1},a}();Object.freeze(o),i.default=o},{}],26:[function(r,n,i){var o=this&&this.__generator||function(s,u){var l={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},c,f,d,h;return h={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(b){return function(y){return g([b,y])}}function g(b){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,f&&(d=b[0]&2?f.return:b[0]?f.throw||((d=f.return)&&d.call(f),0):f.next)&&!(d=d.call(f,b[1])).done)return d;switch(f=0,d&&(b=[b[0]&2,d.value]),b[0]){case 0:case 1:d=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,f=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(d=l.trys,!(d=d.length>0&&d[d.length-1])&&(b[0]===6||b[0]===2)){l=0;continue}if(b[0]===3&&(!d||b[1]>d[0]&&b[1]x)throw new Error("pos should more than 0 and less than queue's size");var _=Math.floor(w/a.bucketSize),O=w%a.bucketSize;return{curNodeBucketIndex:_,curNodePointerIndex:O}};this.getElementByPos=function(v){var p=b(v),w=p.curNodeBucketIndex,x=p.curNodePointerIndex;return l[w][x]},this.eraseElementByPos=function(v){var p=this;if(v<0||v>g)throw new Error("pos should more than 0 and less than queue's size");if(v===0)this.popFront();else if(v===this.size())this.popBack();else{for(var w=[],x=v+1;x0?--h:c0&&--g)},this.setElementByPos=function(v,p){var w=b(v),x=w.curNodeBucketIndex,_=w.curNodePointerIndex;l[x][_]=p},this.insert=function(v,p,w){var x=this;if(w===void 0&&(w=1),v===0)for(;w--;)this.pushFront(p);else if(v===this.size())for(;w--;)this.pushBack(p);else{for(var _=[],O=v;O0?--f:c>0&&(--c,f=a.bucketSize-1)),++g,l[c][f]=v},this.popFront=function(){this.empty()||(this.size()!==1&&(f0&&--g)},this.shrinkToFit=function(){var v=this,p=[];this.forEach(function(O){p.push(O)});var w=p.length;l=[];for(var x=Math.ceil(w/a.bucketSize),_=0;_0&&g[g.length-1])&&(p[0]===6||p[0]===2)){d=0;continue}if(p[0]===3&&(!g||p[1]>g[0]&&p[1]=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../LinkList/LinkList"),u=r("../Map/Map");l.initSize=1<<4,l.maxSize=1<<30,l.sigma=.75,l.treeifyThreshold=8,l.untreeifyThreshold=6,l.minTreeifySize=64;function l(c,f,d){var h=this;if(c===void 0&&(c=[]),f===void 0&&(f=l.initSize),d=d||function(v){var p,w,x=0,_="";if(typeof v=="number")x=Math.floor(v),x=(x<<5)-x,x=x&x;else{typeof v!="string"?_=JSON.stringify(v):_=v;try{for(var O=a(_),P=O.next();!P.done;P=O.next()){var A=P.value,L=A.charCodeAt(0);x=(x<<5)-x+L,x=x&x}}catch(S){p={error:S}}finally{try{P&&!P.done&&(w=O.return)&&w.call(O)}finally{if(p)throw p.error}}}return x^=x>>>16,x},f&f-1)throw new Error("initBucketNum must be 2 to the power of n");var m=0,g=[],b=Math.max(l.initSize,Math.min(l.maxSize,f));this.size=function(){return m},this.empty=function(){return m===0},this.clear=function(){m=0,b=f,g=[]},this.forEach=function(v){var p=0;g.forEach(function(w){w.forEach(function(x){v(x,p++)})})};var y=function(v){if(!(v>=l.maxSize)){b=v*2;var p=[];g.forEach(function(w,x){if(!w.empty()){if(w instanceof s.default&&w.size()===1){var _=w.front(),O=_.key,P=_.value;p[d(O)&b-1]=new s.default([{key:O,value:P}])}else if(w instanceof u.default){var A=new s.default,L=new s.default;w.forEach(function(C){var I=d(C.key);I&v?L.pushBack(C):A.pushBack(C)}),A.size()>l.untreeifyThreshold?p[x]=new u.default(A):A.size()&&(p[x]=A),L.size()>l.untreeifyThreshold?p[x+v]=new u.default(L):L.size()&&(p[x+v]=L)}else{var S=new s.default,T=new s.default;w.forEach(function(C){var I=d(C.key);I&v?T.pushBack(C):S.pushBack(C)}),S.size()&&(p[x]=S),T.size()&&(p[x+v]=T)}g[x].clear()}}),g=p}};this.setElement=function(v,p){var w,x;if(v==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(p==null){this.eraseElementByKey(v);return}var _=d(v)&b-1;if(!g[_])++m,g[_]=new s.default([{key:v,value:p}]);else{var O=g[_].size();if(g[_]instanceof s.default){try{for(var P=a(g[_]),A=P.next();!A.done;A=P.next()){var L=A.value;if(L.key===v){L.value=p;return}}}catch(T){w={error:T}}finally{try{A&&!A.done&&(x=P.return)&&x.call(P)}finally{if(w)throw w.error}}g[_].pushBack({key:v,value:p}),g[_].size()>=l.treeifyThreshold&&(g[_]=new u.default(g[_]))}else g[_].setElement(v,p);var S=g[_].size();m+=S-O}m>b*l.sigma&&y.call(this,b)},this.getElementByKey=function(v){var p,w,x=d(v)&b-1;if(g[x]){if(g[x]instanceof u.default)return g[x].getElementByKey(v);try{for(var _=a(g[x]),O=_.next();!O.done;O=_.next()){var P=O.value;if(P.key===v)return P.value}}catch(A){p={error:A}}finally{try{O&&!O.done&&(w=_.return)&&w.call(_)}finally{if(p)throw p.error}}}},this.eraseElementByKey=function(v){var p,w,x=d(v)&b-1;if(g[x]){var _=g[x].size();if(g[x]instanceof u.default)g[x].eraseElementByKey(v),g[x].size()<=l.untreeifyThreshold&&(g[x]=new s.default(g[x]));else{var O=-1;try{for(var P=a(g[x]),A=P.next();!A.done;A=P.next()){var L=A.value;if(++O,L.key===v){g[x].eraseElementByPos(O);break}}}catch(T){p={error:T}}finally{try{A&&!A.done&&(w=P.return)&&w.call(P)}finally{if(p)throw p.error}}}var S=g[x].size();m+=S-_}},this.find=function(v){var p,w,x=d(v)&b-1;if(!g[x])return!1;if(g[x]instanceof u.default)return g[x].find(v);try{for(var _=a(g[x]),O=_.next();!O.done;O=_.next()){var P=O.value;if(P.key===v)return!0}}catch(A){p={error:A}}finally{try{O&&!O.done&&(w=_.return)&&w.call(_)}finally{if(p)throw p.error}}return!1},this[Symbol.iterator]=function(){return function(){var v,p,w,x,_,O,P;return o(this,function(A){switch(A.label){case 0:v=0,A.label=1;case 1:if(!(v=b)return[3,10];A.label=2;case 2:A.trys.push([2,7,8,9]),p=(O=void 0,a(g[v])),w=p.next(),A.label=3;case 3:return w.done?[3,6]:(x=w.value,[4,x]);case 4:A.sent(),A.label=5;case 5:return w=p.next(),[3,3];case 6:return[3,9];case 7:return _=A.sent(),O={error:_},[3,9];case 8:try{w&&!w.done&&(P=p.return)&&P.call(p)}finally{if(O)throw O.error}return[7];case 9:return++v,[3,1];case 10:return[2]}})}()},c.forEach(function(v){var p=v.key,w=v.value;return h.setElement(p,w)}),Object.freeze(this)}Object.freeze(l),i.default=l},{"../LinkList/LinkList":29,"../Map/Map":30}],28:[function(r,n,i){var o=this&&this.__generator||function(c,f){var d={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},h,m,g,b;return b={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function y(p){return function(w){return v([p,w])}}function v(p){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,m&&(g=p[0]&2?m.return:p[0]?m.throw||((g=m.return)&&g.call(m),0):m.next)&&!(g=g.call(m,p[1])).done)return g;switch(m=0,g&&(p=[p[0]&2,g.value]),p[0]){case 0:case 1:g=p;break;case 4:return d.label++,{value:p[1],done:!1};case 5:d.label++,m=p[1],p=[0];continue;case 7:p=d.ops.pop(),d.trys.pop();continue;default:if(g=d.trys,!(g=g.length>0&&g[g.length-1])&&(p[0]===6||p[0]===2)){d=0;continue}if(p[0]===3&&(!g||p[1]>g[0]&&p[1]=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../Set/Set"),u=r("../LinkList/LinkList");l.initSize=1<<4,l.maxSize=1<<30,l.sigma=.75,l.treeifyThreshold=8,l.untreeifyThreshold=6,l.minTreeifySize=64;function l(c,f,d){var h=this;if(c===void 0&&(c=[]),f===void 0&&(f=l.initSize),d=d||function(v){var p=0,w="";if(typeof v=="number")p=Math.floor(v),p=(p<<5)-p,p=p&p;else{typeof v!="string"?w=JSON.stringify(v):w=v;for(var x=0;x>>16,p},f&f-1)throw new Error("initBucketNum must be 2 to the power of n");var m=0,g=[],b=Math.max(l.initSize,Math.min(l.maxSize,f));this.size=function(){return m},this.empty=function(){return m===0},this.clear=function(){m=0,b=f,g=[]},this.forEach=function(v){var p=0;g.forEach(function(w){w.forEach(function(x){v(x,p++)})})};var y=function(v){if(!(v>=l.maxSize)){b=v*2;var p=[];g.forEach(function(w,x){if(!w.empty()){if(w instanceof u.default&&w.size()===1){var _=w.front();if(_===void 0)throw new Error("unknown error");p[d(_)&b-1]=new u.default([_])}else if(w instanceof s.default){var O=new u.default,P=new u.default;w.forEach(function(S){var T=d(S);T&v?P.pushBack(S):O.pushBack(S)}),O.size()>l.untreeifyThreshold?p[x]=new s.default(O):O.size()&&(p[x]=O),P.size()>l.untreeifyThreshold?p[x+v]=new s.default(P):P.size()&&(p[x+v]=P)}else{var A=new u.default,L=new u.default;w.forEach(function(S){var T=d(S);T&v?L.pushBack(S):A.pushBack(S)}),A.size()&&(p[x]=A),L.size()&&(p[x+v]=L)}g[x].clear()}}),g=p}};this.insert=function(v){if(v==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");var p=d(v)&b-1;if(!g[p])g[p]=new u.default([v]),++m;else{var w=g[p].size();if(g[p]instanceof u.default){if(g[p].find(v))return;g[p].pushBack(v),g[p].size()>=l.treeifyThreshold&&(g[p]=new s.default(g[p]))}else g[p].insert(v);var x=g[p].size();m+=x-w}m>b*l.sigma&&y.call(this,b)},this.eraseElementByValue=function(v){var p=d(v)&b-1;if(g[p]){var w=g[p].size();g[p].eraseElementByValue(v),g[p]instanceof s.default&&g[p].size()<=l.untreeifyThreshold&&(g[p]=new u.default(g[p]));var x=g[p].size();m+=x-w}},this.find=function(v){var p=d(v)&b-1;return g[p]?g[p].find(v):!1},this[Symbol.iterator]=function(){return function(){var v,p,w,x,_,O,P;return o(this,function(A){switch(A.label){case 0:v=0,A.label=1;case 1:if(!(v=b)return[3,10];A.label=2;case 2:A.trys.push([2,7,8,9]),p=(O=void 0,a(g[v])),w=p.next(),A.label=3;case 3:return w.done?[3,6]:(x=w.value,[4,x]);case 4:A.sent(),A.label=5;case 5:return w=p.next(),[3,3];case 6:return[3,9];case 7:return _=A.sent(),O={error:_},[3,9];case 8:try{w&&!w.done&&(P=p.return)&&P.call(p)}finally{if(O)throw O.error}return[7];case 9:return++v,[3,1];case 10:return[2]}})}()},c.forEach(function(v){return h.insert(v)}),Object.freeze(this)}Object.freeze(l),i.default=l},{"../LinkList/LinkList":29,"../Set/Set":33}],29:[function(r,n,i){var o=this&&this.__generator||function(u,l){var c={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},f,d,h,m;return m={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function g(y){return function(v){return b([y,v])}}function b(y){if(f)throw new TypeError("Generator is already executing.");for(;c;)try{if(f=1,d&&(h=y[0]&2?d.return:y[0]?d.throw||((h=d.return)&&h.call(d),0):d.next)&&!(h=h.call(d,y[1])).done)return h;switch(d=0,h&&(y=[y[0]&2,h.value]),y[0]){case 0:case 1:h=y;break;case 4:return c.label++,{value:y[1],done:!1};case 5:c.label++,d=y[1],y=[0];continue;case 7:y=c.ops.pop(),c.trys.pop();continue;default:if(h=c.trys,!(h=h.length>0&&h[h.length-1])&&(y[0]===6||y[0]===2)){c=0;continue}if(y[0]===3&&(!h||y[1]>h[0]&&y[1]=c)throw new Error("pos must more then 0 and less then the list length");for(var m=f;h--&&m;)m=m.next;if(!m||m.value===void 0)throw new Error("unknown error");return m.value},this.eraseElementByPos=function(h){if(h<0||h>=c)throw new Error("erase pos must more then 0 and less then the list length");if(h===0)this.popFront();else if(h===c-1)this.popBack();else{for(var m=f;h--;){if(!(m!=null&&m.next))throw new Error("unknown error");m=m.next}if(!m||!m.pre||!m.next)throw new Error("unknown error");var g=m.pre,b=m.next;b.pre=g,g.next=b,c>0&&--c}},this.eraseElementByValue=function(h){for(;f&&f.value===h;)this.popFront();for(;d&&d.value===h;)this.popBack();if(f)for(var m=f;m;){if(m.value===h){var g=m.pre,b=m.next;b&&(b.pre=g),g&&(g.next=b),c>0&&--c}m=m.next}},this.pushBack=function(h){if(h==null)throw new Error("you can't push null or undefined here");++c;var m=new a(h);d?(d.next=m,m.pre=d,d=m):f=d=m},this.popBack=function(){d&&(c>0&&--c,d&&(f===d?f=d=void 0:(d=d.pre,d&&(d.next=void 0))))},this.setElementByPos=function(h,m){if(m==null)throw new Error("you can't set null or undefined here");if(h<0||h>=c)throw new Error("pos must more then 0 and less then the list length");for(var g=f;h--;){if(!g)throw new Error("unknown error");g=g.next}g&&(g.value=m)},this.insert=function(h,m,g){if(g===void 0&&(g=1),m==null)throw new Error("you can't insert null or undefined here");if(h<0||h>c)throw new Error("insert pos must more then 0 and less then or equal to the list length");if(g<0)throw new Error("insert size must more than 0");if(h===0)for(;g--;)this.pushFront(m);else if(h===c)for(;g--;)this.pushBack(m);else{for(var b=f,y=1;y0&&--c;h.next=m.next,h.next&&(h.next.pre=h),h=h.next}},this.sort=function(h){var m=[];this.forEach(function(b){m.push(b)}),m.sort(h);var g=f;m.forEach(function(b){g&&(g.value=b,g=g.next)})},this.pushFront=function(h){if(h==null)throw new Error("you can't push null or undefined here");++c;var m=new a(h);f?(m.next=f,f.pre=m,f=m):f=d=m},this.popFront=function(){f&&(c>0&&--c,f&&(f===d?f=d=void 0:(f=f.next,f&&(f.pre=void 0))))},this.merge=function(h){var m=this,g=f;h.forEach(function(b){for(;g&&g.value!==void 0&&g.value<=b;)g=g.next;if(g===void 0)m.pushBack(b),g=d;else if(g===f)m.pushFront(b),g=f;else{++c;var y=g.pre;y&&(y.next=new a(b),y.next.pre=y,y.next.next=g,g&&(g.pre=y.next))}})},this[Symbol.iterator]=function(){return function(){var h;return o(this,function(m){switch(m.label){case 0:h=f,m.label=1;case 1:if(h===void 0)return[3,3];if(!h.value)throw new Error("unknown error");return[4,h.value];case 2:return m.sent(),h=h.next,[3,1];case 3:return[2]}})}()},u.forEach(function(h){return l.pushBack(h)}),Object.freeze(this)}Object.freeze(s),i.default=s},{}],30:[function(r,n,i){var o=this&&this.__generator||function(l,c){var f={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,h,m,g;return g={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function b(v){return function(p){return y([v,p])}}function y(v){if(d)throw new TypeError("Generator is already executing.");for(;f;)try{if(d=1,h&&(m=v[0]&2?h.return:v[0]?h.throw||((m=h.return)&&m.call(h),0):h.next)&&!(m=m.call(h,v[1])).done)return m;switch(h=0,m&&(v=[v[0]&2,m.value]),v[0]){case 0:case 1:m=v;break;case 4:return f.label++,{value:v[1],done:!1};case 5:f.label++,h=v[1],v=[0];continue;case 7:v=f.ops.pop(),f.trys.pop();continue;default:if(m=f.trys,!(m=m.length>0&&m[m.length-1])&&(v[0]===6||v[0]===2)){f=0;continue}if(v[0]===3&&(!m||v[1]>m[0]&&v[1]=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../Base/TreeNode");function u(l,c){var f=this;l===void 0&&(l=[]),c=c||function(S,T){return ST?1:0};var d=0,h=new s.default;h.color=s.default.TreeNodeColorType.black,this.size=function(){return d},this.empty=function(){return d===0},this.clear=function(){d=0,h.key=h.value=void 0,h.leftChild=h.rightChild=h.brother=void 0};var m=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.leftChild?m(S.leftChild):S},g=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.rightChild?g(S.rightChild):S};this.front=function(){if(!this.empty()){var S=m(h);if(S.key===void 0||S.value===void 0)throw new Error("unknown error");return{key:S.key,value:S.value}}},this.back=function(){if(!this.empty()){var S=g(h);if(S.key===void 0||S.value===void 0)throw new Error("unknown error");return{key:S.key,value:S.value}}},this.forEach=function(S){var T,C,I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;S(Q,I++)}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}},this.getElementByPos=function(S){var T,C;if(S<0||S>=this.size())throw new Error("pos must more than 0 and less than set's size");var I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;if(I===S)return Q;++I}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}throw new Error("unknown Error")};var b=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C===0?{key:S.key,value:S.value}:C<0?b(S.rightChild,T):b(S.leftChild,T)||{key:S.key,value:S.value}}};this.lowerBound=function(S){return b(h,S)};var y=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C<=0?y(S.rightChild,T):y(S.leftChild,T)||{key:S.key,value:S.value}}};this.upperBound=function(S){return y(h,S)};var v=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C===0?{key:S.key,value:S.value}:C>0?v(S.leftChild,T):v(S.rightChild,T)||{key:S.key,value:S.value}}};this.reverseLowerBound=function(S){return v(h,S)};var p=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C>=0?p(S.leftChild,T):p(S.rightChild,T)||{key:S.key,value:S.value}}};this.reverseUpperBound=function(S){return p(h,S)};var w=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(S.color===s.default.TreeNodeColorType.red){S.color=s.default.TreeNodeColorType.black;return}var C=S.brother;if(!C)throw new Error("unknown error");if(S===T.leftChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateLeft();h===T&&(h=I),w(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=T.rotateLeft();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=C.rotateRight();h===C&&(h=I),w(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,w(T))}else if(S===T.rightChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateRight();h===T&&(h=I),w(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=T.rotateRight();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=C.rotateLeft();h===C&&(h=I),w(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,w(T))}},x=function(S){for(var T=S;T.leftChild||T.rightChild;){if(T.rightChild){T=m(T.rightChild);var C=S.key;S.key=T.key,T.key=C;var I=S.value;S.value=T.value,T.value=I,S=T}if(T.leftChild){T=g(T.leftChild);var C=S.key;S.key=T.key,T.key=C;var I=S.value;S.value=T.value,T.value=I,S=T}}w(T),T&&T.remove(),--d,h.color=s.default.TreeNodeColorType.black},_=function(S,T){if(!S||S.key===void 0)return!1;var C=_(S.leftChild,T);return C||T(S)?!0:_(S.rightChild,T)};this.eraseElementByPos=function(S){if(S<0||S>=d)throw new Error("pos must more than 0 and less than set's size");var T=0;_(h,function(C){return S===T?(x(C),!0):(++T,!1)})},this.eraseElementByKey=function(S){if(!this.empty()){var T=A(h,S);T===void 0||T.key===void 0||c(T.key,S)!==0||x(T)}};var O=function(S,T){if(!S||S.key===void 0)throw new Error("unknown error");var C=c(T,S.key);return C<0?S.leftChild?O(S.leftChild,T):(S.leftChild=new s.default,S.leftChild.parent=S,S.leftChild.brother=S.rightChild,S.rightChild&&(S.rightChild.brother=S.leftChild),S.leftChild):C>0?S.rightChild?O(S.rightChild,T):(S.rightChild=new s.default,S.rightChild.parent=S,S.rightChild.brother=S.leftChild,S.leftChild&&(S.leftChild.brother=S.rightChild),S.rightChild):S},P=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(T.color!==s.default.TreeNodeColorType.black&&T.color===s.default.TreeNodeColorType.red){var C=T.brother,I=T.parent;if(!I)throw new Error("unknown error");if(C&&C.color===s.default.TreeNodeColorType.red)C.color=T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red,P(I);else if(!C||C.color===s.default.TreeNodeColorType.black){if(T===I.leftChild){if(S===T.leftChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateRight();I===h&&(h=D)}else if(S===T.rightChild){var D=T.rotateLeft();I===h&&(h=D),P(T)}}else if(T===I.rightChild){if(S===T.leftChild){var D=T.rotateRight();I===h&&(h=D),P(T)}else if(S===T.rightChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateLeft();I===h&&(h=D)}}}}};this.setElement=function(S,T){if(S==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(T==null){this.eraseElementByKey(S);return}if(this.empty()){++d,h.key=S,h.value=T,h.color=s.default.TreeNodeColorType.black;return}var C=O(h,S);if(C.key!==void 0&&c(C.key,S)===0){C.value=T;return}++d,C.key=S,C.value=T,P(C),h.color=s.default.TreeNodeColorType.black};var A=function(S,T){if(!(!S||S.key===void 0)){var C=c(T,S.key);return C<0?A(S.leftChild,T):C>0?A(S.rightChild,T):S}};this.find=function(S){return!!A(h,S)},this.getElementByKey=function(S){var T=A(h,S);if((T==null?void 0:T.key)===void 0||(T==null?void 0:T.value)===void 0)throw new Error("unknown error");return T.value},this.union=function(S){var T=this;S.forEach(function(C){var I=C.key,D=C.value;return T.setElement(I,D)})},this.getHeight=function(){if(this.empty())return 0;var S=function(T){return T?Math.max(S(T.leftChild),S(T.rightChild))+1:1};return S(h)};var L=function(S){return o(this,function(T){switch(T.label){case 0:return!S||S.key===void 0||S.value===void 0?[2]:[5,a(L(S.leftChild))];case 1:return T.sent(),[4,{key:S.key,value:S.value}];case 2:return T.sent(),[5,a(L(S.rightChild))];case 3:return T.sent(),[2]}})};this[Symbol.iterator]=function(){return L(h)},l.forEach(function(S){var T=S.key,C=S.value;return f.setElement(T,C)}),Object.freeze(this)}Object.freeze(u),i.default=u},{"../Base/TreeNode":25}],31:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});function o(a,s){a===void 0&&(a=[]),s=s||function(d,h){return d>h?-1:d=l)throw new Error("unknown error");if(h<0||h>=l)throw new Error("unknown error");var m=u[d];u[d]=u[h],u[h]=m},f=function(d){if(d<0||d>=l)throw new Error("unknown error");var h=d*2+1,m=d*2+2;h0&&c(d,h),m0&&c(d,m)};(function(){for(var d=Math.floor((l-1)/2);d>=0;--d)for(var h=d,m=h*2+1;m0&&(y=b),s(u[h],u[y])<=0)break;c(h,y),h=y,m=h*2+1}})(),this.size=function(){return l},this.empty=function(){return l===0},this.clear=function(){l=0,u.length=0},this.push=function(d){if(u.push(d),++l,l!==1)for(var h=l-1;h>0;){var m=Math.floor((h-1)/2);if(s(u[m],d)<=0)break;f(m),h=m}},this.pop=function(){if(!this.empty()){if(this.size()===1){--l;return}var d=u[l-1];--l;for(var h=0;h=this.size())break;var b=m;if(g0&&(b=g),s(u[b],d)>=0)break;u[h]=u[b],h=b}u[h]=d}},this.top=function(){return u[0]},Object.freeze(this)}Object.freeze(o),i.default=o},{}],32:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});var o=r("../LinkList/LinkList");function a(s){s===void 0&&(s=[]);var u=new o.default(s);this.size=function(){return u.size()},this.empty=function(){return u.empty()},this.clear=function(){u.clear()},this.push=function(l){u.pushBack(l)},this.pop=function(){u.popFront()},this.front=function(){return u.front()},Object.freeze(this)}Object.freeze(a),i.default=a},{"../LinkList/LinkList":29}],33:[function(r,n,i){var o=this&&this.__generator||function(l,c){var f={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,h,m,g;return g={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function b(v){return function(p){return y([v,p])}}function y(v){if(d)throw new TypeError("Generator is already executing.");for(;f;)try{if(d=1,h&&(m=v[0]&2?h.return:v[0]?h.throw||((m=h.return)&&m.call(h),0):h.next)&&!(m=m.call(h,v[1])).done)return m;switch(h=0,m&&(v=[v[0]&2,m.value]),v[0]){case 0:case 1:m=v;break;case 4:return f.label++,{value:v[1],done:!1};case 5:f.label++,h=v[1],v=[0];continue;case 7:v=f.ops.pop(),f.trys.pop();continue;default:if(m=f.trys,!(m=m.length>0&&m[m.length-1])&&(v[0]===6||v[0]===2)){f=0;continue}if(v[0]===3&&(!m||v[1]>m[0]&&v[1]=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../Base/TreeNode");function u(l,c){var f=this;l===void 0&&(l=[]),c=c||function(S,T){return ST?1:0};var d=0,h=new s.default;h.color=s.default.TreeNodeColorType.black,this.size=function(){return d},this.empty=function(){return d===0},this.clear=function(){d=0,h.key=void 0,h.leftChild=h.rightChild=h.brother=h.parent=void 0,h.color=s.default.TreeNodeColorType.black};var m=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.leftChild?m(S.leftChild):S},g=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.rightChild?g(S.rightChild):S};this.front=function(){if(!this.empty()){var S=m(h);return S.key}},this.back=function(){if(!this.empty()){var S=g(h);return S.key}},this.forEach=function(S){var T,C,I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;S(Q,I++)}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}},this.getElementByPos=function(S){var T,C;if(S<0||S>=this.size())throw new Error("pos must more than 0 and less than set's size");var I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;if(I===S)return Q;++I}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}throw new Error("unknown error")};var b=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(S.color===s.default.TreeNodeColorType.red){S.color=s.default.TreeNodeColorType.black;return}var C=S.brother;if(!C)throw new Error("unknown error");if(S===T.leftChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateLeft();h===T&&(h=I),b(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=T.rotateLeft();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=C.rotateRight();h===C&&(h=I),b(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,b(T))}else if(S===T.rightChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateRight();h===T&&(h=I),b(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=T.rotateRight();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=C.rotateLeft();h===C&&(h=I),b(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,b(T))}},y=function(S){for(var T=S;T.leftChild||T.rightChild;){if(T.rightChild){T=m(T.rightChild);var C=S.key;S.key=T.key,T.key=C,S=T}if(T.leftChild){T=g(T.leftChild);var C=S.key;S.key=T.key,T.key=C,S=T}}b(T),T&&T.remove(),--d,h.color=s.default.TreeNodeColorType.black},v=function(S,T){if(!S||S.key===void 0)return!1;var C=v(S.leftChild,T);return C||T(S)?!0:v(S.rightChild,T)};this.eraseElementByPos=function(S){if(S<0||S>=d)throw new Error("pos must more than 0 and less than set's size");var T=0;v(h,function(C){return S===T?(y(C),!0):(++T,!1)})},this.eraseElementByValue=function(S){if(!this.empty()){var T=x(h,S);T===void 0||T.key===void 0||c(T.key,S)!==0||y(T)}};var p=function(S,T){if(!S||S.key===void 0)throw new Error("unknown error");var C=c(T,S.key);return C<0?S.leftChild?p(S.leftChild,T):(S.leftChild=new s.default,S.leftChild.parent=S,S.leftChild.brother=S.rightChild,S.rightChild&&(S.rightChild.brother=S.leftChild),S.leftChild):C>0?S.rightChild?p(S.rightChild,T):(S.rightChild=new s.default,S.rightChild.parent=S,S.rightChild.brother=S.leftChild,S.leftChild&&(S.leftChild.brother=S.rightChild),S.rightChild):S},w=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(T.color!==s.default.TreeNodeColorType.black&&T.color===s.default.TreeNodeColorType.red){var C=T.brother,I=T.parent;if(!I)throw new Error("unknown error");if(C&&C.color===s.default.TreeNodeColorType.red)C.color=T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red,w(I);else if(!C||C.color===s.default.TreeNodeColorType.black){if(T===I.leftChild){if(S===T.leftChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateRight();I===h&&(h=D)}else if(S===T.rightChild){var D=T.rotateLeft();I===h&&(h=D),w(T)}}else if(T===I.rightChild){if(S===T.leftChild){var D=T.rotateRight();I===h&&(h=D),w(T)}else if(S===T.rightChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateLeft();I===h&&(h=D)}}}}};this.insert=function(S){if(S==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(this.empty()){++d,h.key=S,h.color=s.default.TreeNodeColorType.black;return}var T=p(h,S);T.key!==void 0&&c(T.key,S)===0||(++d,T.key=S,w(T),h.color=s.default.TreeNodeColorType.black)};var x=function(S,T){if(!(!S||S.key===void 0)){var C=c(T,S.key);return C<0?x(S.leftChild,T):C>0?x(S.rightChild,T):S}};this.find=function(S){var T=x(h,S);return T!==void 0&&T.key!==void 0&&c(T.key,S)===0};var _=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C===0)return S.key;if(C<0)return _(S.rightChild,T);var I=_(S.leftChild,T);return I!==void 0?I:S.key}};this.lowerBound=function(S){return _(h,S)};var O=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C<=0)return O(S.rightChild,T);var I=O(S.leftChild,T);return I!==void 0?I:S.key}};this.upperBound=function(S){return O(h,S)};var P=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C===0)return S.key;if(C>0)return P(S.leftChild,T);var I=P(S.rightChild,T);return I!==void 0?I:S.key}};this.reverseLowerBound=function(S){return P(h,S)};var A=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C>=0)return A(S.leftChild,T);var I=A(S.rightChild,T);return I!==void 0?I:S.key}};this.reverseUpperBound=function(S){return A(h,S)},this.union=function(S){var T=this;S.forEach(function(C){return T.insert(C)})},this.getHeight=function(){if(this.empty())return 0;var S=function(T){return T?Math.max(S(T.leftChild),S(T.rightChild))+1:1};return S(h)};var L=function(S){return o(this,function(T){switch(T.label){case 0:return!S||S.key===void 0?[2]:[5,a(L(S.leftChild))];case 1:return T.sent(),[4,S.key];case 2:return T.sent(),[5,a(L(S.rightChild))];case 3:return T.sent(),[2]}})};this[Symbol.iterator]=function(){return L(h)},l.forEach(function(S){return f.insert(S)}),Object.freeze(this)}Object.freeze(u),i.default=u},{"../Base/TreeNode":25}],34:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});function o(a){var s=this;a===void 0&&(a=[]);var u=0,l=[];this.size=function(){return u},this.empty=function(){return u===0},this.clear=function(){u=0,l.length=0},this.push=function(c){l.push(c),++u},this.pop=function(){l.pop(),u>0&&--u},this.top=function(){return l[u-1]},a.forEach(function(c){return s.push(c)}),Object.freeze(this)}Object.freeze(o),i.default=o},{}],35:[function(r,n,i){var o=this&&this.__generator||function(c,f){var d={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},h,m,g,b;return b={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function y(p){return function(w){return v([p,w])}}function v(p){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,m&&(g=p[0]&2?m.return:p[0]?m.throw||((g=m.return)&&g.call(m),0):m.next)&&!(g=g.call(m,p[1])).done)return g;switch(m=0,g&&(p=[p[0]&2,g.value]),p[0]){case 0:case 1:g=p;break;case 4:return d.label++,{value:p[1],done:!1};case 5:d.label++,m=p[1],p=[0];continue;case 7:p=d.ops.pop(),d.trys.pop();continue;default:if(g=d.trys,!(g=g.length>0&&g[g.length-1])&&(p[0]===6||p[0]===2)){d=0;continue}if(p[0]===3&&(!g||p[1]>g[0]&&p[1]0)&&!(m=h.next()).done;)g.push(m.value)}catch(y){b={error:y}}finally{try{m&&!m.done&&(d=h.return)&&d.call(h)}finally{if(b)throw b.error}}return g},s=this&&this.__spreadArray||function(c,f,d){if(d||arguments.length===2)for(var h=0,m=f.length,g;h=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});function l(c){var f=this;c===void 0&&(c=[]);var d=0,h=[];this.size=function(){return d},this.empty=function(){return d===0},this.clear=function(){d=0,h.length=0},this.front=function(){if(!this.empty())return h[0]},this.back=function(){if(!this.empty())return h[d-1]},this.forEach=function(m){h.forEach(m)},this.getElementByPos=function(m){if(m<0||m>=d)throw new Error("pos must more than 0 and less than vector's size");return h[m]},this.eraseElementByPos=function(m){if(m<0||m>=d)throw new Error("pos must more than 0 and less than vector's size");for(var g=m;gb;)this.popBack()},this.pushBack=function(m){h.push(m),++d},this.popBack=function(){h.pop(),d>0&&--d},this.setElementByPos=function(m,g){if(m<0||m>=d)throw new Error("pos must more than 0 and less than vector's size");h[m]=g},this.insert=function(m,g,b){if(b===void 0&&(b=1),m<0||m>d)throw new Error("pos must more than 0 and less than or equal to vector's size");h.splice.apply(h,s([m,0],a(new Array(b).fill(g)),!1)),d+=b},this.find=function(m){return h.includes(m)},this.reverse=function(){h.reverse()},this.unique=function(){var m,g=[];this.forEach(function(y,v){(v===0||y!==m)&&(g.push(y),m=y)}),g.forEach(function(y,v){h[v]=y});for(var b=g.length;d>b;)this.popBack()},this.sort=function(m){h.sort(m)},this[Symbol.iterator]=function(){return function(){return o(this,function(m){switch(m.label){case 0:return[5,u(h)];case 1:return[2,m.sent()]}})}()},c.forEach(function(m){return f.pushBack(m)}),Object.freeze(this)}Object.freeze(l),i.default=l},{}],36:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.HashMap=i.HashSet=i.Map=i.Set=i.PriorityQueue=i.Deque=i.LinkList=i.Queue=i.Stack=i.Vector=void 0;var o=r("./Vector/Vector");i.Vector=o.default;var a=r("./Stack/Stack");i.Stack=a.default;var s=r("./Queue/Queue");i.Queue=s.default;var u=r("./LinkList/LinkList");i.LinkList=u.default;var l=r("./Deque/Deque");i.Deque=l.default;var c=r("./PriorityQueue/PriorityQueue");i.PriorityQueue=c.default;var f=r("./Set/Set");i.Set=f.default;var d=r("./Map/Map");i.Map=d.default;var h=r("./HashSet/HashSet");i.HashSet=h.default;var m=r("./HashMap/HashMap");i.HashMap=m.default},{"./Deque/Deque":26,"./HashMap/HashMap":27,"./HashSet/HashSet":28,"./LinkList/LinkList":29,"./Map/Map":30,"./PriorityQueue/PriorityQueue":31,"./Queue/Queue":32,"./Set/Set":33,"./Stack/Stack":34,"./Vector/Vector":35}],37:[function(r,n,i){const o=r("yallist"),a=Symbol("max"),s=Symbol("length"),u=Symbol("lengthCalculator"),l=Symbol("allowStale"),c=Symbol("maxAge"),f=Symbol("dispose"),d=Symbol("noDisposeOnSet"),h=Symbol("lruList"),m=Symbol("cache"),g=Symbol("updateAgeOnGet"),b=()=>1;class y{constructor(A){if(typeof A=="number"&&(A={max:A}),A||(A={}),A.max&&(typeof A.max!="number"||A.max<0))throw new TypeError("max must be a non-negative number");this[a]=A.max||1/0;const L=A.length||b;if(this[u]=typeof L!="function"?b:L,this[l]=A.stale||!1,A.maxAge&&typeof A.maxAge!="number")throw new TypeError("maxAge must be a number");this[c]=A.maxAge||0,this[f]=A.dispose,this[d]=A.noDisposeOnSet||!1,this[g]=A.updateAgeOnGet||!1,this.reset()}set max(A){if(typeof A!="number"||A<0)throw new TypeError("max must be a non-negative number");this[a]=A||1/0,w(this)}get max(){return this[a]}set allowStale(A){this[l]=!!A}get allowStale(){return this[l]}set maxAge(A){if(typeof A!="number")throw new TypeError("maxAge must be a non-negative number");this[c]=A,w(this)}get maxAge(){return this[c]}set lengthCalculator(A){typeof A!="function"&&(A=b),A!==this[u]&&(this[u]=A,this[s]=0,this[h].forEach(L=>{L.length=this[u](L.value,L.key),this[s]+=L.length})),w(this)}get lengthCalculator(){return this[u]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(A,L){L=L||this;for(let S=this[h].tail;S!==null;){const T=S.prev;O(this,A,S,L),S=T}}forEach(A,L){L=L||this;for(let S=this[h].head;S!==null;){const T=S.next;O(this,A,S,L),S=T}}keys(){return this[h].toArray().map(A=>A.key)}values(){return this[h].toArray().map(A=>A.value)}reset(){this[f]&&this[h]&&this[h].length&&this[h].forEach(A=>this[f](A.key,A.value)),this[m]=new Map,this[h]=new o,this[s]=0}dump(){return this[h].map(A=>p(this,A)?!1:{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A)}dumpLru(){return this[h]}set(A,L,S){if(S=S||this[c],S&&typeof S!="number")throw new TypeError("maxAge must be a number");const T=S?Date.now():0,C=this[u](L,A);if(this[m].has(A)){if(C>this[a])return x(this,this[m].get(A)),!1;const z=this[m].get(A).value;return this[f]&&(this[d]||this[f](A,z.value)),z.now=T,z.maxAge=S,z.value=L,this[s]+=C-z.length,z.length=C,this.get(A),w(this),!0}const I=new _(A,L,C,T,S);return I.length>this[a]?(this[f]&&this[f](A,L),!1):(this[s]+=I.length,this[h].unshift(I),this[m].set(A,this[h].head),w(this),!0)}has(A){if(!this[m].has(A))return!1;const L=this[m].get(A).value;return!p(this,L)}get(A){return v(this,A,!0)}peek(A){return v(this,A,!1)}pop(){const A=this[h].tail;return A?(x(this,A),A.value):null}del(A){x(this,this[m].get(A))}load(A){this.reset();const L=Date.now();for(let S=A.length-1;S>=0;S--){const T=A[S],C=T.e||0;if(C===0)this.set(T.k,T.v);else{const I=C-L;I>0&&this.set(T.k,T.v,I)}}}prune(){this[m].forEach((A,L)=>v(this,L,!1))}}const v=(P,A,L)=>{const S=P[m].get(A);if(S){const T=S.value;if(p(P,T)){if(x(P,S),!P[l])return}else L&&(P[g]&&(S.value.now=Date.now()),P[h].unshiftNode(S));return T.value}},p=(P,A)=>{if(!A||!A.maxAge&&!P[c])return!1;const L=Date.now()-A.now;return A.maxAge?L>A.maxAge:P[c]&&L>P[c]},w=P=>{if(P[s]>P[a])for(let A=P[h].tail;P[s]>P[a]&&A!==null;){const L=A.prev;x(P,A),A=L}},x=(P,A)=>{if(A){const L=A.value;P[f]&&P[f](L.key,L.value),P[s]-=L.length,P[m].delete(L.key),P[h].removeNode(A)}};class _{constructor(A,L,S,T,C){this.key=A,this.value=L,this.length=S,this.now=T,this.maxAge=C||0}}const O=(P,A,L,S)=>{let T=L.value;p(P,T)&&(x(P,L),P[l]||(T=void 0)),T&&A.call(S,T.value,T.key,P)};n.exports=y},{yallist:83}],38:[function(r,n,i){(function(o){(function(){const a=n.exports;a.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},a.codes={};for(const u in a.types){const l=a.types[u];a.codes[l]=u}a.CMD_SHIFT=4,a.CMD_MASK=240,a.DUP_MASK=8,a.QOS_MASK=3,a.QOS_SHIFT=1,a.RETAIN_MASK=1,a.VARBYTEINT_MASK=127,a.VARBYTEINT_FIN_MASK=128,a.VARBYTEINT_MAX=268435455,a.SESSIONPRESENT_MASK=1,a.SESSIONPRESENT_HEADER=o.from([a.SESSIONPRESENT_MASK]),a.CONNACK_HEADER=o.from([a.codes.connack<[0,1].map(c=>[0,1].map(f=>{const d=o.alloc(1);return d.writeUInt8(a.codes[u]<o.from([u])),a.EMPTY={pingreq:o.from([a.codes.pingreq<<4,0]),pingresp:o.from([a.codes.pingresp<<4,0]),disconnect:o.from([a.codes.disconnect<<4,0])}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],39:[function(r,n,i){(function(o){(function(){const a=r("./writeToStream"),s=r("events");function u(c,f){const d=new l;return a(c,d,f),d.concat()}class l extends s{constructor(){super(),this._array=new Array(20),this._i=0}write(f){return this._array[this._i++]=f,!0}concat(){let f=0;const d=new Array(this._array.length),h=this._array;let m=0,g;for(g=0;g>8,0),m.writeUInt8(h&255,0+1),m}function c(){for(let h=0;h<65536;h++)s[h]=l(h)}function f(h){let g=0,b=0;const y=o.allocUnsafe(4);do g=h%128|0,h=h/128|0,h>0&&(g=g|128),y.writeUInt8(g,b++);while(h>0&&b<4);return h>0&&(b=0),u?y.subarray(0,b):y.slice(0,b)}function d(h){const m=o.allocUnsafe(4);return m.writeUInt32BE(h,0),m}n.exports={cache:s,generateCache:c,generateNumber:l,genBufVariableByteInt:f,generate4ByteBuffer:d}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],42:[function(r,n,i){class o{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}n.exports=o},{}],43:[function(r,n,i){const o=r("bl"),a=r("events"),s=r("./packet"),u=r("./constants"),l=r("debug")("mqtt-packet:parser");class c extends a{constructor(){super(),this.parser=this.constructor.parser}static parser(d){return this instanceof c?(this.settings=d||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new c().parser(d)}_resetState(){l("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new s,this.error=null,this._list=o(),this._stateCounter=0}parse(d){for(this.error&&this._resetState(),this._list.append(d),l("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,l("parse: state complete. _stateCounter is now: %d",this._stateCounter),l("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return l("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const d=this._list.readUInt8(0);return this.packet.cmd=u.types[d>>u.CMD_SHIFT],this.packet.retain=(d&u.RETAIN_MASK)!==0,this.packet.qos=d>>u.QOS_SHIFT&u.QOS_MASK,this.packet.dup=(d&u.DUP_MASK)!==0,l("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const d=this._parseVarByteNum(!0);return d&&(this.packet.length=d.value,this._list.consume(d.bytes)),l("_parseLength %d",d.value),!!d}_parsePayload(){l("_parsePayload: payload %O",this._list);let d=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}d=!0}return l("_parsePayload complete result: %s",d),d}_parseConnect(){l("_parseConnect");let d,h,m,g;const b={},y=this.packet,v=this._parseString();if(v===null)return this._emitError(new Error("Cannot parse protocolId"));if(v!=="MQTT"&&v!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(y.protocolId=v,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(y.protocolVersion=this._list.readUInt8(this._pos),y.protocolVersion>=128&&(y.bridgeMode=!0,y.protocolVersion=y.protocolVersion-128),y.protocolVersion!==3&&y.protocolVersion!==4&&y.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(b.username=this._list.readUInt8(this._pos)&u.USERNAME_MASK,b.password=this._list.readUInt8(this._pos)&u.PASSWORD_MASK,b.will=this._list.readUInt8(this._pos)&u.WILL_FLAG_MASK,b.will&&(y.will={},y.will.retain=(this._list.readUInt8(this._pos)&u.WILL_RETAIN_MASK)!==0,y.will.qos=(this._list.readUInt8(this._pos)&u.WILL_QOS_MASK)>>u.WILL_QOS_SHIFT),y.clean=(this._list.readUInt8(this._pos)&u.CLEAN_SESSION_MASK)!==0,this._pos++,y.keepalive=this._parseNum(),y.keepalive===-1)return this._emitError(new Error("Packet too short"));if(y.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(y.properties=w)}const p=this._parseString();if(p===null)return this._emitError(new Error("Packet too short"));if(y.clientId=p,l("_parseConnect: packet.clientId: %s",y.clientId),b.will){if(y.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(y.will.properties=w)}if(d=this._parseString(),d===null)return this._emitError(new Error("Cannot parse will topic"));if(y.will.topic=d,l("_parseConnect: packet.will.topic: %s",y.will.topic),h=this._parseBuffer(),h===null)return this._emitError(new Error("Cannot parse will payload"));y.will.payload=h,l("_parseConnect: packet.will.paylaod: %s",y.will.payload)}if(b.username){if(g=this._parseString(),g===null)return this._emitError(new Error("Cannot parse username"));y.username=g,l("_parseConnect: packet.username: %s",y.username)}if(b.password){if(m=this._parseBuffer(),m===null)return this._emitError(new Error("Cannot parse password"));y.password=m}return this.settings=y,l("_parseConnect: complete"),y}_parseConnack(){l("_parseConnack");const d=this.packet;if(this._list.length<1)return null;if(d.sessionPresent=!!(this._list.readUInt8(this._pos++)&u.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?d.reasonCode=this._list.readUInt8(this._pos++):d.reasonCode=0;else{if(this._list.length<2)return null;d.returnCode=this._list.readUInt8(this._pos++)}if(d.returnCode===-1||d.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}l("_parseConnack: complete")}_parsePublish(){l("_parsePublish");const d=this.packet;if(d.topic=this._parseString(),d.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(d.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}d.payload=this._list.slice(this._pos,d.length),l("_parsePublish: payload from buffer list: %o",d.payload)}}_parseSubscribe(){l("_parseSubscribe");const d=this.packet;let h,m,g,b,y,v,p;if(d.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(d.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(d.properties=w)}for(;this._pos=d.length)return this._emitError(new Error("Malformed Subscribe Payload"));m=this._parseByte(),g=m&u.SUBSCRIBE_OPTIONS_QOS_MASK,v=(m>>u.SUBSCRIBE_OPTIONS_NL_SHIFT&u.SUBSCRIBE_OPTIONS_NL_MASK)!==0,y=(m>>u.SUBSCRIBE_OPTIONS_RAP_SHIFT&u.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,b=m>>u.SUBSCRIBE_OPTIONS_RH_SHIFT&u.SUBSCRIBE_OPTIONS_RH_MASK,p={topic:h,qos:g},this.settings.protocolVersion===5?(p.nl=v,p.rap=y,p.rh=b):this.settings.bridgeMode&&(p.rh=0,p.rap=!0,p.nl=!0),l("_parseSubscribe: push subscription `%s` to subscription",p),d.subscriptions.push(p)}}}_parseSuback(){l("_parseSuback");const d=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}for(;this._pos2?(d.reasonCode=this._parseByte(),l("_parseConfirmation: packet.reasonCode `%d`",d.reasonCode)):d.reasonCode=0,d.length>3)){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}return!0}_parseDisconnect(){const d=this.packet;if(l("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?d.reasonCode=this._parseByte():d.reasonCode=0;const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}return l("_parseDisconnect result: true"),!0}_parseAuth(){l("_parseAuth");const d=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));d.reasonCode=this._parseByte();const h=this._parseProperties();return Object.getOwnPropertyNames(h).length&&(d.properties=h),l("_parseAuth: result: true"),!0}_parseMessageId(){const d=this.packet;return d.messageId=this._parseNum(),d.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(l("_parseMessageId: packet.messageId %d",d.messageId),!0)}_parseString(d){const h=this._parseNum(),m=h+this._pos;if(h===-1||m>this._list.length||m>this.packet.length)return null;const g=this._list.toString("utf8",this._pos,m);return this._pos+=h,l("_parseString: result: %s",g),g}_parseStringPair(){return l("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const d=this._parseNum(),h=d+this._pos;if(d===-1||h>this._list.length||h>this.packet.length)return null;const m=this._list.slice(this._pos,h);return this._pos+=d,l("_parseBuffer: result: %o",m),m}_parseNum(){if(this._list.length-this._pos<2)return-1;const d=this._list.readUInt16BE(this._pos);return this._pos+=2,l("_parseNum: result: %s",d),d}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const d=this._list.readUInt32BE(this._pos);return this._pos+=4,l("_parse4ByteNum: result: %s",d),d}_parseVarByteNum(d){l("_parseVarByteNum");const h=4;let m=0,g=1,b=0,y=!1,v;const p=this._pos?this._pos:0;for(;m=m&&this._emitError(new Error("Invalid variable byte integer")),p&&(this._pos+=m),y=y?d?{bytes:m,value:b}:b:!1,l("_parseVarByteNum: result: %o",y),y}_parseByte(){let d;return this._pos=4)&&(U||ae))F+=o.byteLength(U)+2;else{if(Z<4)return V.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(ae*1===0)return V.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof j!="number"||j<0||j>65535||j%1!==0)return V.emit("error",new Error("Invalid keepalive")),!1;if(F+=2,F+=1,Z===5){var G=Y(V,k);if(!G)return!1;F+=G.length}if(ee){if(typeof ee!="object")return V.emit("error",new Error("Invalid will")),!1;if(!ee.topic||typeof ee.topic!="string")return V.emit("error",new Error("Invalid will topic")),!1;if(F+=o.byteLength(ee.topic)+2,F+=2,ee.payload)if(ee.payload.length>=0)typeof ee.payload=="string"?F+=o.byteLength(ee.payload):F+=ee.payload.length;else return V.emit("error",new Error("Invalid will payload")),!1;var ue={};if(Z===5){if(ue=Y(V,ee.properties),!ue)return!1;F+=ue.length}}let le=!1;if(M!=null)if(se(M))le=!0,F+=o.byteLength(M)+2;else return V.emit("error",new Error("Invalid username")),!1;if(E!=null){if(!le)return V.emit("error",new Error("Username is required to use password")),!1;if(se(E))F+=fe(E)+2;else return V.emit("error",new Error("Invalid password")),!1}V.write(a.CONNECT_HEADER),Q(V,F),oe(V,H),W.bridgeMode&&(Z+=128),V.write(Z===131?a.VERSION131:Z===132?a.VERSION132:Z===4?a.VERSION4:Z===5?a.VERSION5:a.VERSION3);let pe=0;return pe|=M!=null?a.USERNAME_MASK:0,pe|=E!=null?a.PASSWORD_MASK:0,pe|=ee&&ee.retain?a.WILL_RETAIN_MASK:0,pe|=ee&&ee.qos?ee.qos<0&&y(V,U),k!=null&&k.write(),f("publish: payload: %o",j),V.write(j)}function P(X,V,te){const W=te?te.protocolVersion:4,H=X||{},Z=H.cmd||"puback",ee=H.messageId,ae=H.dup&&Z==="pubrel"?a.DUP_MASK:0;let j=0;const U=H.reasonCode,M=H.properties;let E=W===5?3:2;if(Z==="pubrel"&&(j=1),typeof ee!="number")return V.emit("error",new Error("Invalid messageId")),!1;let k=null;if(W===5&&typeof M=="object"){if(k=K(V,M,te,E),!k)return!1;E+=k.length}return V.write(a.ACKS[Z][j][ae][0]),Q(V,E),y(V,ee),W===5&&V.write(o.from([U])),k!==null&&k.write(),!0}function A(X,V,te){f("subscribe: packet: ");const W=te?te.protocolVersion:4,H=X||{},Z=H.dup?a.DUP_MASK:0,ee=H.messageId,ae=H.subscriptions,j=H.properties;let U=0;if(typeof ee!="number")return V.emit("error",new Error("Invalid messageId")),!1;U+=2;let M=null;if(W===5){if(M=Y(V,j),!M)return!1;U+=M.length}if(typeof ae=="object"&&ae.length)for(let k=0;k2)return V.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}U+=o.byteLength(F)+2+1}else return V.emit("error",new Error("Invalid subscriptions")),!1;f("subscribe: writing to stream: %o",a.SUBSCRIBE_HEADER),V.write(a.SUBSCRIBE_HEADER[1][Z?1:0][0]),Q(V,U),y(V,ee),M!==null&&M.write();let E=!0;for(const k of ae){const F=k.topic,G=k.qos,ue=+k.nl,le=+k.rap,pe=k.rh;let ge;R(V,F),ge=a.SUBSCRIBE_OPTIONS_QOS[G],W===5&&(ge|=ue?a.SUBSCRIBE_OPTIONS_NL:0,ge|=le?a.SUBSCRIBE_OPTIONS_RAP:0,ge|=pe?a.SUBSCRIBE_OPTIONS_RH[pe]:0),E=V.write(o.from([ge]))}return E}function L(X,V,te){const W=te?te.protocolVersion:4,H=X||{},Z=H.messageId,ee=H.granted,ae=H.properties;let j=0;if(typeof Z!="number")return V.emit("error",new Error("Invalid messageId")),!1;if(j+=2,typeof ee=="object"&&ee.length)for(let M=0;Ma.VARBYTEINT_MAX)return X.emit("error",new Error(`Invalid variable byte integer: ${V}`)),!1;let te=z[V];return te||(te=g(V),V<16384&&(z[V]=te)),f("writeVarByteInt: writing to stream: %o",te),X.write(te)}function R(X,V){const te=o.byteLength(V);return y(X,te),f("writeString: %s",V),X.write(V,"utf8")}function N(X,V,te){R(X,V),R(X,te)}function B(X,V){return f("writeNumberCached: number: %d",V),f("writeNumberCached: %o",d[V]),X.write(d[V])}function q(X,V){const te=h(V);return f("writeNumberGenerated: %o",te),X.write(te)}function re(X,V){const te=b(V);return f("write4ByteNumber: %o",te),X.write(te)}function oe(X,V){typeof V=="string"?R(X,V):V?(y(X,V.length),X.write(V)):y(X,0)}function Y(X,V){if(typeof V!="object"||V.length!=null)return{length:1,write(){ne(X,{},0)}};let te=0;function W(Z,ee){const ae=a.propertiesTypes[Z];let j=0;switch(ae){case"byte":{if(typeof ee!="boolean")return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+1;break}case"int8":{if(typeof ee!="number"||ee<0||ee>255)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+1;break}case"binary":{if(ee&&ee===null)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+o.byteLength(ee)+2;break}case"int16":{if(typeof ee!="number"||ee<0||ee>65535)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+2;break}case"int32":{if(typeof ee!="number"||ee<0||ee>4294967295)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+4;break}case"var":{if(typeof ee!="number"||ee<0||ee>268435455)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+o.byteLength(g(ee));break}case"string":{if(typeof ee!="string")return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+2+o.byteLength(ee.toString());break}case"pair":{if(typeof ee!="object")return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=Object.getOwnPropertyNames(ee).reduce((U,M)=>{const E=ee[M];return Array.isArray(E)?U+=E.reduce((k,F)=>(k+=1+2+o.byteLength(M.toString())+2+o.byteLength(F.toString()),k),0):U+=1+2+o.byteLength(M.toString())+2+o.byteLength(ee[M].toString()),U},0);break}default:return X.emit("error",new Error(`Invalid property ${Z}: ${ee}`)),!1}return j}if(V)for(const Z in V){let ee=0,ae=0;const j=V[Z];if(Array.isArray(j))for(let U=0;UZ;){const ae=H.shift();if(ae&&V[ae])delete V[ae],ee=Y(X,V);else return!1}return ee}function ie(X,V,te){switch(a.propertiesTypes[V]){case"byte":{X.write(o.from([a.properties[V]])),X.write(o.from([+te]));break}case"int8":{X.write(o.from([a.properties[V]])),X.write(o.from([te]));break}case"binary":{X.write(o.from([a.properties[V]])),oe(X,te);break}case"int16":{X.write(o.from([a.properties[V]])),y(X,te);break}case"int32":{X.write(o.from([a.properties[V]])),re(X,te);break}case"var":{X.write(o.from([a.properties[V]])),Q(X,te);break}case"string":{X.write(o.from([a.properties[V]])),R(X,te);break}case"pair":{Object.getOwnPropertyNames(te).forEach(H=>{const Z=te[H];Array.isArray(Z)?Z.forEach(ee=>{X.write(o.from([a.properties[V]])),N(X,H.toString(),ee.toString())}):(X.write(o.from([a.properties[V]])),N(X,H.toString(),Z.toString()))});break}default:return X.emit("error",new Error(`Invalid property ${V} value: ${te}`)),!1}}function ne(X,V,te){Q(X,te);for(const W in V)if(Object.prototype.hasOwnProperty.call(V,W)&&V[W]!==null){const H=V[W];if(Array.isArray(H))for(let Z=0;Z0)return f(g);if(y==="number"&&isFinite(g))return b.long?h(g):d(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function f(g){if(g=String(g),!(g.length>100)){var b=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(b){var y=parseFloat(b[1]),v=(b[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return y*c;case"weeks":case"week":case"w":return y*l;case"days":case"day":case"d":return y*u;case"hours":case"hour":case"hrs":case"hr":case"h":return y*s;case"minutes":case"minute":case"mins":case"min":case"m":return y*a;case"seconds":case"second":case"secs":case"sec":case"s":return y*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function d(g){var b=Math.abs(g);return b>=u?Math.round(g/u)+"d":b>=s?Math.round(g/s)+"h":b>=a?Math.round(g/a)+"m":b>=o?Math.round(g/o)+"s":g+"ms"}function h(g){var b=Math.abs(g);return b>=u?m(g,b,u,"day"):b>=s?m(g,b,s,"hour"):b>=a?m(g,b,a,"minute"):b>=o?m(g,b,o,"second"):g+" ms"}function m(g,b,y,v){var p=b>=y*1.5;return Math.round(g/y)+" "+v+(p?"s":"")}},{}],46:[function(r,n,i){const o=r("./lib/number-allocator.js");n.exports.NumberAllocator=o},{"./lib/number-allocator.js":47}],47:[function(r,n,i){const o=r("js-sdsl").Set,a=r("debug")("number-allocator:trace"),s=r("debug")("number-allocator:error");function u(c,f){this.low=c,this.high=f}u.prototype.equals=function(c){return this.low===c.low&&this.high===c.high},u.prototype.compare=function(c){return this.lowd.compare(h)),a("Create"),this.clear()}l.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},l.prototype.alloc=function(){if(this.ss.size()===0)return a("alloc():empty"),null;const c=this.ss.front(),f=c.low;return f+1<=c.high?++c.low:this.ss.eraseElementByPos(0),a("alloc():"+f),f},l.prototype.use=function(c){const f=new u(c,c),d=this.ss.lowerBound(f);if(d){if(d.equals(f))return this.ss.eraseElementByValue(d),a("use():"+c),!0;if(d.low>c)return!1;if(d.low===c)return++d.low,a("use():"+c),!0;if(d.high===c)return--d.high,a("use():"+c),!0;const h=d.low;return d.low=c+1,this.ss.insert(new u(h,c-1)),a("use():"+c),!0}return a("use():failed"),!1},l.prototype.free=function(c){if(cthis.max){s("free():"+c+" is out of range");return}const f=new u(c,c),d=this.ss.lowerBound(f);if(d){if(d.low<=c&&c<=d.high){s("free():"+c+" has already been vacant");return}if(d===this.ss.front())c+1===d.low?--d.low:this.ss.insert(f);else{const h=this.ss.reverseLowerBound(f);h.high+1===c?c+1===d.low?(this.ss.eraseElementByValue(h),d.low=h.low):h.high=c:c+1===d.low?d.low=c:this.ss.insert(f)}}else{if(d===this.ss.front()){this.ss.insert(f);return}const h=this.ss.reverseLowerBound(f);h.high+1===c?h.high=c:this.ss.insert(f)}a("free():"+c)},l.prototype.clear=function(){a("clear()"),this.ss.clear(),this.ss.insert(new u(this.min,this.max))},l.prototype.intervalCount=function(){return this.ss.size()},l.prototype.dump=function(){console.log("length:"+this.ss.size());for(const c of this.ss)console.log(c)},n.exports=l},{debug:18,"js-sdsl":36}],48:[function(r,n,i){var o=r("wrappy");n.exports=o(a),n.exports.strict=o(s),a.proto=a(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function a(u){var l=function(){return l.called?l.value:(l.called=!0,l.value=u.apply(this,arguments))};return l.called=!1,l}function s(u){var l=function(){if(l.called)throw new Error(l.onceError);return l.called=!0,l.value=u.apply(this,arguments)},c=u.name||"Function wrapped with `once`";return l.onceError=c+" shouldn't be called more than once",l.called=!1,l}},{wrappy:79}],49:[function(r,n,i){(function(o){(function(){typeof o>"u"||!o.version||o.version.indexOf("v0.")===0||o.version.indexOf("v1.")===0&&o.version.indexOf("v1.8.")!==0?n.exports={nextTick:a}:n.exports=o;function a(s,u,l,c){if(typeof s!="function")throw new TypeError('"callback" argument must be a function');var f=arguments.length,d,h;switch(f){case 0:case 1:return o.nextTick(s);case 2:return o.nextTick(function(){s.call(null,u)});case 3:return o.nextTick(function(){s.call(null,u,l)});case 4:return o.nextTick(function(){s.call(null,u,l,c)});default:for(d=new Array(f-1),h=0;h1)for(var _=1;_= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=d-h,A=Math.floor,L=String.fromCharCode,S;function T(Y){throw new RangeError(O[Y])}function C(Y,K){for(var ie=Y.length,ne=[];ie--;)ne[ie]=K(Y[ie]);return ne}function I(Y,K){var ie=Y.split("@"),ne="";ie.length>1&&(ne=ie[0]+"@",Y=ie[1]),Y=Y.replace(_,".");var fe=Y.split("."),se=C(fe,K).join(".");return ne+se}function D(Y){for(var K=[],ie=0,ne=Y.length,fe,se;ie=55296&&fe<=56319&&ie65535&&(K-=65536,ie+=L(K>>>10&1023|55296),K=56320|K&1023),ie+=L(K),ie}).join("")}function Q(Y){return Y-48<10?Y-22:Y-65<26?Y-65:Y-97<26?Y-97:d}function R(Y,K){return Y+22+75*(Y<26)-((K!=0)<<5)}function N(Y,K,ie){var ne=0;for(Y=ie?A(Y/b):Y>>1,Y+=A(Y/K);Y>P*m>>1;ne+=d)Y=A(Y/P);return A(ne+(P+1)*Y/(Y+g))}function B(Y){var K=[],ie=Y.length,ne,fe=0,se=v,X=y,V,te,W,H,Z,ee,ae,j,U;for(V=Y.lastIndexOf(p),V<0&&(V=0),te=0;te=128&&T("not-basic"),K.push(Y.charCodeAt(te));for(W=V>0?V+1:0;W=ie&&T("invalid-input"),ae=Q(Y.charCodeAt(W++)),(ae>=d||ae>A((f-fe)/Z))&&T("overflow"),fe+=ae*Z,j=ee<=X?h:ee>=X+m?m:ee-X,!(aeA(f/U)&&T("overflow"),Z*=U;ne=K.length+1,X=N(fe-H,ne,H==0),A(fe/ne)>f-se&&T("overflow"),se+=A(fe/ne),fe%=ne,K.splice(fe++,0,se)}return z(K)}function q(Y){var K,ie,ne,fe,se,X,V,te,W,H,Z,ee=[],ae,j,U,M;for(Y=D(Y),ae=Y.length,K=v,ie=0,se=y,X=0;X=K&&ZA((f-ie)/j)&&T("overflow"),ie+=(V-K)*j,K=V,X=0;Xf&&T("overflow"),Z==K){for(te=ie,W=d;H=W<=se?h:W>=se+m?m:W-se,!(te0&&m>h&&(m=h);for(var g=0;g=0?(v=b.substr(0,y),p=b.substr(y+1)):(v=b,p=""),w=decodeURIComponent(v),x=decodeURIComponent(p),o(f,w)?a(f[w])?f[w].push(x):f[w]=[f[w],x]:f[w]=x}return f};var a=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"}},{}],53:[function(r,n,i){var o=function(l){switch(typeof l){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};n.exports=function(l,c,f,d){return c=c||"&",f=f||"=",l===null&&(l=void 0),typeof l=="object"?s(u(l),function(h){var m=encodeURIComponent(o(h))+f;return a(l[h])?s(l[h],function(g){return m+encodeURIComponent(o(g))}).join(c):m+encodeURIComponent(o(l[h]))}).join(c):d?encodeURIComponent(o(d))+f+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function s(l,c){if(l.map)return l.map(c);for(var f=[],d=0;d2?"one of ".concat(h," ").concat(d.slice(0,m-1).join(", "),", or ")+d[m-1]:m===2?"one of ".concat(h," ").concat(d[0]," or ").concat(d[1]):"of ".concat(h," ").concat(d[0])}else return"of ".concat(h," ").concat(String(d))}function l(d,h,m){return d.substr(!m||m<0?0:+m,h.length)===h}function c(d,h,m){return(m===void 0||m>d.length)&&(m=d.length),d.substring(m-h.length,m)===h}function f(d,h,m){return typeof m!="number"&&(m=0),m+h.length>d.length?!1:d.indexOf(h,m)!==-1}s("ERR_INVALID_OPT_VALUE",function(d,h){return'The value "'+h+'" is invalid for option "'+d+'"'},TypeError),s("ERR_INVALID_ARG_TYPE",function(d,h,m){var g;typeof h=="string"&&l(h,"not ")?(g="must not be",h=h.replace(/^not /,"")):g="must be";var b;if(c(d," argument"))b="The ".concat(d," ").concat(g," ").concat(u(h,"type"));else{var y=f(d,".")?"property":"argument";b='The "'.concat(d,'" ').concat(y," ").concat(g," ").concat(u(h,"type"))}return b+=". Received type ".concat(typeof m),b},TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.codes=a},{}],56:[function(r,n,i){(function(o){(function(){var a=Object.keys||function(g){var b=[];for(var y in g)b.push(y);return b};n.exports=d;var s=r("./_stream_readable"),u=r("./_stream_writable");r("inherits")(d,s);for(var l=a(u.prototype),c=0;c0)if(typeof U!="string"&&!F.objectMode&&Object.getPrototypeOf(U)!==c.prototype&&(U=d(U)),E)F.endEmitted?T(j,new P):R(j,F,U,!0);else if(F.ended)T(j,new _);else{if(F.destroyed)return!1;F.reading=!1,F.decoder&&!M?(U=F.decoder.write(U),F.objectMode||U.length!==0?R(j,F,U,!1):ie(j,F)):R(j,F,U,!1)}else E||(F.reading=!1,ie(j,F))}return!F.ended&&(F.length=B?j=B:(j--,j|=j>>>1,j|=j>>>2,j|=j>>>4,j|=j>>>8,j|=j>>>16,j++),j}function re(j,U){return j<=0||U.length===0&&U.ended?0:U.objectMode?1:j!==j?U.flowing&&U.length?U.buffer.head.data.length:U.length:(j>U.highWaterMark&&(U.highWaterMark=q(j)),j<=U.length?j:U.ended?U.length:(U.needReadable=!0,0))}z.prototype.read=function(j){g("read",j),j=parseInt(j,10);var U=this._readableState,M=j;if(j!==0&&(U.emittedReadable=!1),j===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return g("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?Z(this):Y(this),null;if(j=re(j,U),j===0&&U.ended)return U.length===0&&Z(this),null;var E=U.needReadable;g("need readable",E),(U.length===0||U.length-j0?k=H(j,U):k=null,k===null?(U.needReadable=U.length<=U.highWaterMark,j=0):(U.length-=j,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),M!==j&&U.ended&&Z(this)),k!==null&&this.emit("data",k),k};function oe(j,U){if(g("onEofChunk"),!U.ended){if(U.decoder){var M=U.decoder.end();M&&M.length&&(U.buffer.push(M),U.length+=U.objectMode?1:M.length)}U.ended=!0,U.sync?Y(j):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,K(j)))}}function Y(j){var U=j._readableState;g("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(g("emitReadable",U.flowing),U.emittedReadable=!0,o.nextTick(K,j))}function K(j){var U=j._readableState;g("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(j.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,W(j)}function ie(j,U){U.readingMore||(U.readingMore=!0,o.nextTick(ne,j,U))}function ne(j,U){for(;!U.reading&&!U.ended&&(U.length1&&ae(E.pipes,j)!==-1)&&!pe&&(g("false write response, pause",E.awaitDrain),E.awaitDrain++),M.pause())}function Ue(Er){g("onerror",Er),qr(),j.removeListener("error",Ue),u(j,"error")===0&&T(j,Er)}I(j,"error",Ue);function Ce(){j.removeListener("finish",Hr),qr()}j.once("close",Ce);function Hr(){g("onfinish"),j.removeListener("close",Ce),qr()}j.once("finish",Hr);function qr(){g("unpipe"),M.unpipe(j)}return j.emit("pipe",M),E.flowing||(g("pipe resume"),M.resume()),j};function fe(j){return function(){var M=j._readableState;g("pipeOnDrain",M.awaitDrain),M.awaitDrain&&M.awaitDrain--,M.awaitDrain===0&&u(j,"data")&&(M.flowing=!0,W(j))}}z.prototype.unpipe=function(j){var U=this._readableState,M={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return j&&j!==U.pipes?this:(j||(j=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,j&&j.emit("unpipe",this,M),this);if(!j){var E=U.pipes,k=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var F=0;F0,E.flowing!==!1&&this.resume()):j==="readable"&&!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.flowing=!1,E.emittedReadable=!1,g("on readable",E.length,E.reading),E.length?Y(this):E.reading||o.nextTick(X,this)),M},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(j,U){var M=l.prototype.removeListener.call(this,j,U);return j==="readable"&&o.nextTick(se,this),M},z.prototype.removeAllListeners=function(j){var U=l.prototype.removeAllListeners.apply(this,arguments);return(j==="readable"||j===void 0)&&o.nextTick(se,this),U};function se(j){var U=j._readableState;U.readableListening=j.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:j.listenerCount("data")>0&&j.resume()}function X(j){g("readable nexttick read 0"),j.read(0)}z.prototype.resume=function(){var j=this._readableState;return j.flowing||(g("resume"),j.flowing=!j.readableListening,V(this,j)),j.paused=!1,this};function V(j,U){U.resumeScheduled||(U.resumeScheduled=!0,o.nextTick(te,j,U))}function te(j,U){g("resume",U.reading),U.reading||j.read(0),U.resumeScheduled=!1,j.emit("resume"),W(j),U.flowing&&!U.reading&&j.read(0)}z.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function W(j){var U=j._readableState;for(g("flow",U.flowing);U.flowing&&j.read()!==null;);}z.prototype.wrap=function(j){var U=this,M=this._readableState,E=!1;j.on("end",function(){if(g("wrapped end"),M.decoder&&!M.ended){var G=M.decoder.end();G&&G.length&&U.push(G)}U.push(null)}),j.on("data",function(G){if(g("wrapped data"),M.decoder&&(G=M.decoder.write(G)),!(M.objectMode&&G==null)&&!(!M.objectMode&&(!G||!G.length))){var ue=U.push(G);ue||(E=!0,j.pause())}});for(var k in j)this[k]===void 0&&typeof j[k]=="function"&&(this[k]=function(ue){return function(){return j[ue].apply(j,arguments)}}(k));for(var F=0;F=U.length?(U.decoder?M=U.buffer.join(""):U.buffer.length===1?M=U.buffer.first():M=U.buffer.concat(U.length),U.buffer.clear()):M=U.buffer.consume(j,U.decoder),M}function Z(j){var U=j._readableState;g("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,o.nextTick(ee,U,j))}function ee(j,U){if(g("endReadableNT",j.endEmitted,j.length),!j.endEmitted&&j.length===0&&(j.endEmitted=!0,U.readable=!1,U.emit("end"),j.autoDestroy)){var M=U._writableState;(!M||M.autoDestroy&&M.finished)&&U.destroy()}}typeof Symbol=="function"&&(z.from=function(j,U){return S===void 0&&(S=r("./internal/streams/from")),S(z,j,U)});function ae(j,U){for(var M=0,E=j.length;M-1))throw new L(H);return this._writableState.defaultEncoding=H,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function R(W,H,Z){return!W.objectMode&&W.decodeStrings!==!1&&typeof H=="string"&&(H=f.from(H,Z)),H}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(W,H,Z,ee,ae,j){if(!Z){var U=R(H,ee,ae);ee!==U&&(Z=!0,ae="buffer",ee=U)}var M=H.objectMode?1:ee.length;H.length+=M;var E=H.length0?this.tail.next=w:this.head=w,this.tail=w,++this.length}},{key:"unshift",value:function(p){var w={data:p,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var w=this.head,x=""+w.data;w=w.next;)x+=p+w.data;return x}},{key:"concat",value:function(p){if(this.length===0)return d.alloc(0);for(var w=d.allocUnsafe(p>>>0),x=this.head,_=0;x;)b(x.data,w,_),_+=x.data.length,x=x.next;return w}},{key:"consume",value:function(p,w){var x;return pO.length?O.length:p;if(P===O.length?_+=O:_+=O.slice(0,p),p-=P,p===0){P===O.length?(++x,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=O.slice(P));break}++x}return this.length-=x,_}},{key:"_getBuffer",value:function(p){var w=d.allocUnsafe(p),x=this.head,_=1;for(x.data.copy(w),p-=x.data.length;x=x.next;){var O=x.data,P=p>O.length?O.length:p;if(O.copy(w,w.length-p,0,P),p-=P,p===0){P===O.length?(++_,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=O.slice(P));break}++_}return this.length-=_,w}},{key:g,value:function(p,w){return m(this,a({},w,{depth:0,customInspect:!1}))}}]),y}()},{buffer:17,util:16}],63:[function(r,n,i){(function(o){(function(){function a(d,h){var m=this,g=this._readableState&&this._readableState.destroyed,b=this._writableState&&this._writableState.destroyed;return g||b?(h?h(d):d&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(c,this,d)):o.nextTick(c,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(y){!h&&y?m._writableState?m._writableState.errorEmitted?o.nextTick(u,m):(m._writableState.errorEmitted=!0,o.nextTick(s,m,y)):o.nextTick(s,m,y):h?(o.nextTick(u,m),h(y)):o.nextTick(u,m)}),this)}function s(d,h){c(d,h),u(d)}function u(d){d._writableState&&!d._writableState.emitClose||d._readableState&&!d._readableState.emitClose||d.emit("close")}function l(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function c(d,h){d.emit("error",h)}function f(d,h){var m=d._readableState,g=d._writableState;m&&m.autoDestroy||g&&g.autoDestroy?d.destroy(h):d.emit("error",h)}n.exports={destroy:a,undestroy:l,errorOrDestroy:f}}).call(this)}).call(this,r("_process"))},{_process:50}],64:[function(r,n,i){var o=r("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(c){var f=!1;return function(){if(!f){f=!0;for(var d=arguments.length,h=new Array(d),m=0;m0;return d(O,A,L,function(S){x||(x=S),S&&_.forEach(h),!A&&(_.forEach(h),w(x))})});return v.reduce(m)}n.exports=b},{"../../../errors":55,"./end-of-stream":64}],67:[function(r,n,i){var o=r("../../../errors").codes.ERR_INVALID_OPT_VALUE;function a(u,l,c){return u.highWaterMark!=null?u.highWaterMark:l?u[c]:null}function s(u,l,c,f){var d=a(l,f,c);if(d!=null){if(!(isFinite(d)&&Math.floor(d)===d)||d<0){var h=f?c:"highWaterMark";throw new o(h,d)}return Math.floor(d)}return u.objectMode?16:16*1024}n.exports={getHighWaterMark:s}},{"../../../errors":55}],68:[function(r,n,i){n.exports=r("events").EventEmitter},{events:22}],69:[function(r,n,i){i=n.exports=r("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=r("./lib/_stream_writable.js"),i.Duplex=r("./lib/_stream_duplex.js"),i.Transform=r("./lib/_stream_transform.js"),i.PassThrough=r("./lib/_stream_passthrough.js"),i.finished=r("./lib/internal/streams/end-of-stream.js"),i.pipeline=r("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":56,"./lib/_stream_passthrough.js":57,"./lib/_stream_readable.js":58,"./lib/_stream_transform.js":59,"./lib/_stream_writable.js":60,"./lib/internal/streams/end-of-stream.js":64,"./lib/internal/streams/pipeline.js":66}],70:[function(r,n,i){function o(s,u,l){var c=this;this._callback=s,this._args=l,this._interval=setInterval(s,u,this._args),this.reschedule=function(f){f||(f=c._interval),c._interval&&clearInterval(c._interval),c._interval=setInterval(c._callback,f,c._args)},this.clear=function(){c._interval&&(clearInterval(c._interval),c._interval=void 0)},this.destroy=function(){c._interval&&clearInterval(c._interval),c._callback=void 0,c._interval=void 0,c._args=void 0}}function a(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var s;if(arguments.length>0){s=new Array(arguments.length-2);for(var u=0;u */var o=r("buffer"),a=o.Buffer;function s(l,c){for(var f in l)c[f]=l[f]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?n.exports=o:(s(o,i),i.Buffer=u);function u(l,c,f){return a(l,c,f)}u.prototype=Object.create(a.prototype),s(a,u),u.from=function(l,c,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return a(l,c,f)},u.alloc=function(l,c,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var d=a(l);return c!==void 0?typeof f=="string"?d.fill(c,f):d.fill(c):d.fill(0),d},u.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a(l)},u.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(l)}},{buffer:17}],74:[function(r,n,i){n.exports=o;function o(s){var u=s._readableState;return u?u.objectMode||typeof s._duplexState=="number"?s.read():s.read(a(u)):null}function a(s){return s.buffer.length?s.buffer.head?s.buffer.head.data.length:s.buffer[0].length:s.length}},{}],75:[function(r,n,i){var o=r("safe-buffer").Buffer,a=o.isEncoding||function(_){switch(_=""+_,_&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(_){if(!_)return"utf8";for(var O;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(O)return;_=(""+_).toLowerCase(),O=!0}}function u(_){var O=s(_);if(typeof O!="string"&&(o.isEncoding===a||!a(_)))throw new Error("Unknown encoding: "+_);return O||_}i.StringDecoder=l;function l(_){this.encoding=u(_);var O;switch(this.encoding){case"utf16le":this.text=b,this.end=y,O=4;break;case"utf8":this.fillLast=h,O=4;break;case"base64":this.text=v,this.end=p,O=3;break;default:this.write=w,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(O)}l.prototype.write=function(_){if(_.length===0)return"";var O,P;if(this.lastNeed){if(O=this.fillLast(_),O===void 0)return"";P=this.lastNeed,this.lastNeed=0}else P=0;return P<_.length?O?O+this.text(_,P):this.text(_,P):O||""},l.prototype.end=g,l.prototype.text=m,l.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function c(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function f(_,O,P){var A=O.length-1;if(A=0?(L>0&&(_.lastNeed=L-1),L):--A=0?(L>0&&(_.lastNeed=L-2),L):--A=0?(L>0&&(L===2?L=0:_.lastNeed=L-3),L):0))}function d(_,O,P){if((O[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return _.lastNeed=2,"�"}}function h(_){var O=this.lastTotal-this.lastNeed,P=d(this,_);if(P!==void 0)return P;if(this.lastNeed<=_.length)return _.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,O,0,_.length),this.lastNeed-=_.length}function m(_,O){var P=f(this,_,O);if(!this.lastNeed)return _.toString("utf8",O);this.lastTotal=P;var A=_.length-(P-this.lastNeed);return _.copy(this.lastChar,0,A),_.toString("utf8",O,A)}function g(_){var O=_&&_.length?this.write(_):"";return this.lastNeed?O+"�":O}function b(_,O){if((_.length-O)%2===0){var P=_.toString("utf16le",O);if(P){var A=P.charCodeAt(P.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],P.slice(0,-1)}return P}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",O,_.length-1)}function y(_){var O=_&&_.length?this.write(_):"";if(this.lastNeed){var P=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,P)}return O}function v(_,O){var P=(_.length-O)%3;return P===0?_.toString("base64",O):(this.lastNeed=3-P,this.lastTotal=3,P===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",O,_.length-P))}function p(_){var O=_&&_.length?this.write(_):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function w(_){return _.toString(this.encoding)}function x(_){return _&&_.length?this.write(_):""}},{"safe-buffer":73}],76:[function(r,n,i){var o=r("punycode"),a=r("./util");i.parse=O,i.resolve=A,i.resolveObject=L,i.format=P,i.Url=s;function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var u=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",` -`," "],d=["{","}","|","\\","^","`"].concat(f),h=["'"].concat(d),m=["%","/","?",";","#"].concat(h),g=["/","?","#"],b=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=r("querystring");function O(S,T,C){if(S&&a.isObject(S)&&S instanceof s)return S;var I=new s;return I.parse(S,T,C),I}s.prototype.parse=function(S,T,C){if(!a.isString(S))throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var I=S.indexOf("?"),D=I!==-1&&I127?te+="x":te+=V[W];if(!te.match(y)){var Z=se.slice(0,Y),ee=se.slice(Y+1),ae=V.match(v);ae&&(Z.push(ae[1]),ee.unshift(ae[2])),ee.length&&(R="/"+ee.join(".")+R),this.hostname=Z.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),fe||(this.hostname=o.toASCII(this.hostname));var j=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+j,this.href+=this.host,fe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!p[q])for(var Y=0,X=h.length;Y0?C.host.split("@"):!1;te&&(C.auth=te.shift(),C.host=C.hostname=te.shift())}return C.search=S.search,C.query=S.query,(!a.isNull(C.pathname)||!a.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!se.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var W=se.slice(-1)[0],H=(C.host||S.host||se.length>1)&&(W==="."||W==="..")||W==="",Z=0,ee=se.length;ee>=0;ee--)W=se[ee],W==="."?se.splice(ee,1):W===".."?(se.splice(ee,1),Z++):Z&&(se.splice(ee,1),Z--);if(!ne&&!fe)for(;Z--;Z)se.unshift("..");ne&&se[0]!==""&&(!se[0]||se[0].charAt(0)!=="/")&&se.unshift(""),H&&se.join("/").substr(-1)!=="/"&&se.push("");var ae=se[0]===""||se[0]&&se[0].charAt(0)==="/";if(V){C.hostname=C.host=ae?"":se.length?se.shift():"";var te=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;te&&(C.auth=te.shift(),C.host=C.hostname=te.shift())}return ne=ne||C.host&&se.length,ne&&!ae&&se.unshift(""),se.length?C.pathname=se.join("/"):(C.pathname=null,C.path=null),(!a.isNull(C.pathname)||!a.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=S.auth||C.auth,C.slashes=C.slashes||S.slashes,C.href=C.format(),C},s.prototype.parseHost=function(){var S=this.host,T=l.exec(S);T&&(T=T[0],T!==":"&&(this.port=T.substr(1)),S=S.substr(0,S.length-T.length)),S&&(this.hostname=S)}},{"./util":77,punycode:51,querystring:54}],77:[function(r,n,i){n.exports={isString:function(o){return typeof o=="string"},isObject:function(o){return typeof o=="object"&&o!==null},isNull:function(o){return o===null},isNullOrUndefined:function(o){return o==null}}},{}],78:[function(r,n,i){(function(o){(function(){n.exports=a;function a(u,l){if(s("noDeprecation"))return u;var c=!1;function f(){if(!c){if(s("throwDeprecation"))throw new Error(l);s("traceDeprecation")?console.trace(l):console.warn(l),c=!0}return u.apply(this,arguments)}return f}function s(u){try{if(!o.localStorage)return!1}catch{return!1}var l=o.localStorage[u];return l==null?!1:String(l).toLowerCase()==="true"}}).call(this)}).call(this,typeof Me<"u"?Me:typeof self<"u"?self:typeof window<"u"?window:{})},{}],79:[function(r,n,i){n.exports=o;function o(a,s){if(a&&s)return o(a)(s);if(typeof a!="function")throw new TypeError("need wrapper function");return Object.keys(a).forEach(function(l){u[l]=a[l]}),u;function u(){for(var l=new Array(arguments.length),c=0;c0)for(var d=0,h=arguments.length;d1)d=f;else if(this.head)h=this.head.next,d=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var m=0;h!==null;m++)d=c(d,h.value,m),h=h.next;return d},o.prototype.reduceReverse=function(c,f){var d,h=this.tail;if(arguments.length>1)d=f;else if(this.tail)h=this.tail.prev,d=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var m=this.length-1;h!==null;m--)d=c(d,h.value,m),h=h.prev;return d},o.prototype.toArray=function(){for(var c=new Array(this.length),f=0,d=this.head;d!==null;f++)c[f]=d.value,d=d.next;return c},o.prototype.toArrayReverse=function(){for(var c=new Array(this.length),f=0,d=this.tail;d!==null;f++)c[f]=d.value,d=d.prev;return c},o.prototype.slice=function(c,f){f=f||this.length,f<0&&(f+=this.length),c=c||0,c<0&&(c+=this.length);var d=new o;if(fthis.length&&(f=this.length);for(var h=0,m=this.head;m!==null&&hthis.length&&(f=this.length);for(var h=this.length,m=this.tail;m!==null&&h>f;h--)m=m.prev;for(;m!==null&&h>c;h--,m=m.prev)d.push(m.value);return d},o.prototype.splice=function(c,f,...d){c>this.length&&(c=this.length-1),c<0&&(c=this.length+c);for(var h=0,m=this.head;m!==null&&he.topic),oR=$a.doorStates.map(e=>e.topic),fd=cd.connect($a.url);fd.on("connect",function(){lb.concat(oR).forEach(function(e){fd.subscribe(e)})});fd.on("message",function(e,t,r){lb.indexOf(e)>-1&&xu.dispatch(XC({topic:e,data:t.toString(),message:{...r,payload:r.payload.toJSON()}}));const n=$a.doorStates.filter(i=>i.topic===e).shift();n&&xu.dispatch(ZC({property:n.type,value:n.mapper(t.toString())}))});var dd={},aR={get exports(){return dd},set exports(e){dd=e}};/*! +`,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!wr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);xn(e,r,e.position,!1)}return!0}function im(e,t){var r,n=e.tag,i=e.anchor,o=[],a,s=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!wt(a))));){if(s=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Yi(e,t,rb,!1,!0),o.push(e.result),ze(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)he(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(a=e.line,s=e.lineStart,u=e.position),Yi(e,t,Iu,!0,i)&&(b?m=e.result:g=e.result),b||(Ii(e,f,d,h,m,g,a,s,u),h=m=g=null),ze(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&v!==0)he(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f"),e.result!==null&&m.kind!==e.kind&&he(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):he(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function XP(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!wt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&he(e,"directive name must not be less than one character in length");a!==0;){for(;Qn(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!wr(a));break}if(wr(a))break;for(r=e.position;a!==0&&!wt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Nh(e),Pn.call(rm,n)?rm[n](e,n,i):Mu(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):o&&he(e,"directives end mark is expected"),Yi(e,e.lineIndent-1,Iu,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&NP.test(e.input.slice(t,e.position))&&Mu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Al(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var n=ub(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;inR(e)},interpolation:{escapeValue:!1}});const $a={url:"wss://spitfire.initlab.org:8083/mqtt",sensors:[{label:"Big room",topic:"sensors-xiaomi-ble/big-room/temperature"},{label:"Small room",topic:"sensors-xiaomi-ble/small-room/temperature"},{label:"Kitchen",topic:"sensors-xiaomi-ble/kitchen/temperature"}],doorStates:[{type:"locked",topic:"NetControl/initLab/out/ch28",mapper:e=>JSON.parse(e).value.raw===1},{type:"unlocked",topic:"NetControl/initLab/out/ch29",mapper:e=>JSON.parse(e).value.raw===1},{type:"closed",topic:"NetControl/initLab/out/ch30",mapper:e=>JSON.parse(e).value.raw===1}]},iR={temperature:{dashboard:{id:"C-7GPzXMk",name:"temperatures"},panels:[4,5,10]},humidity:{dashboard:{id:"d19kszuGk",name:"humidity"},panels:[4,5,10]}};var fd={},oR={get exports(){return fd},set exports(e){fd=e}};(function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof Ri=="function"&&Ri;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var d=new Error("Cannot find module '"+l+"'");throw d.code="MODULE_NOT_FOUND",d}var h=i[l]={exports:{}};n[l][0].call(h.exports,function(m){var g=n[l][1][m];return a(g||m)},h,h.exports,r,n,i,o)}return i[l].exports}for(var s=typeof Ri=="function"&&Ri,u=0;u"u")return new Error("Unregistered Topic Alias");if(q=R.topicAliasSend.getTopicByAlias(B),typeof q>"u")return new Error("Unregistered Topic Alias");N.topic=q}B&&delete N.properties.topicAlias}function T(R,N,B){p("sendPacket :: packet: %O",N),p("sendPacket :: emitting `packetsend`"),R.emit("packetsend",N),p("sendPacket :: writing to stream");const q=f.writeToStream(N,R.stream,R.options);p("sendPacket :: writeToStream result %s",q),!q&&B&&B!==z?(p("sendPacket :: handle events on `drain` once through callback."),R.stream.once("drain",B)):B&&(p("sendPacket :: invoking cb"),B())}function C(R){R&&(p("flush: queue exists? %b",!!R),Object.keys(R).forEach(function(N){typeof R[N].cb=="function"&&(R[N].cb(new Error("Connection closed")),delete R[N])}))}function I(R){R&&(p("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(R).forEach(function(N){R[N].volatile&&typeof R[N].cb=="function"&&(R[N].cb(new Error("Connection closed")),delete R[N])}))}function D(R,N,B,q){p("storeAndSend :: store packet with cmd %s to outgoingStore",N.cmd);let re=N,oe;if(re.cmd==="publish"&&(re=b(N),oe=S(R,re),oe))return B&&B(oe);R.outgoingStore.put(re,function(K){if(K)return B&&B(K);q(),T(R,N,B)})}function z(R){p("nop ::",R)}function Q(R,N){let B;const q=this;if(!(this instanceof Q))return new Q(R,N);this.options=N||{};for(B in _)typeof this.options[B]>"u"?this.options[B]=_[B]:this.options[B]=N[B];p("MqttClient :: options.protocol",N.protocol),p("MqttClient :: options.protocolVersion",N.protocolVersion),p("MqttClient :: options.username",N.username),p("MqttClient :: options.keepalive",N.keepalive),p("MqttClient :: options.reconnectPeriod",N.reconnectPeriod),p("MqttClient :: options.rejectUnauthorized",N.rejectUnauthorized),p("MqttClient :: options.topicAliasMaximum",N.topicAliasMaximum),this.options.clientId=typeof N.clientId=="string"?N.clientId:A(),p("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=N.protocolVersion===5&&N.customHandleAcks?N.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=R,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new d:this.options.messageIdProvider,this.outgoingStore=N.outgoingStore||new u,this.incomingStore=N.incomingStore||new u,this.queueQoSZero=N.queueQoSZero===void 0?!0:N.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,N.topicAliasMaximum>0&&(N.topicAliasMaximum>65535?p("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new l(N.topicAliasMaximum)),this.on("connect",function(){const re=this.queue;function oe(){const Y=re.shift();p("deliver :: entry %o",Y);let K=null;if(!Y){q._resubscribe();return}K=Y.packet,p("deliver :: call _sendPacket for %o",K);let ie=!0;K.messageId&&K.messageId!==0&&(q.messageIdProvider.register(K.messageId)||(ie=!1)),ie?q._sendPacket(K,function(ne){Y.cb&&Y.cb(ne),oe()}):(p("messageId: %d has already used. The message is skipped and removed.",K.messageId),oe())}p("connect :: sending queued packets"),oe()}),this.on("close",function(){p("close :: connected set to `false`"),this.connected=!1,p("close :: clearing connackTimer"),clearTimeout(this.connackTimer),p("close :: clearing ping timer"),q.pingTimer!==null&&(q.pingTimer.clear(),q.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),p("close :: calling _setupReconnect"),this._setupReconnect()}),s.call(this),p("MqttClient :: setting up stream"),this._setupStream()}m(Q,s),Q.prototype._setupStream=function(){const R=this,N=new h,B=f.parser(this.options);let q=null;const re=[];p("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),p("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),B.on("packet",function(ne){p("parser :: on packet push to packets array."),re.push(ne)});function oe(){if(re.length)w(Y);else{const ne=q;q=null,ne()}}function Y(){p("work :: getting next packet in queue");const ne=re.shift();if(ne)p("work :: packet pulled from queue"),R._handlePacket(ne,oe);else{p("work :: no packets in queue");const fe=q;q=null,p("work :: done flag is %s",!!fe),fe&&fe()}}N._write=function(ne,fe,se){q=se,p("writable stream :: parsing buffer"),B.parse(ne),Y()};function K(ne){p("streamErrorHandler :: error",ne.message),O.includes(ne.code)?(p("streamErrorHandler :: emitting error"),R.emit("error",ne)):z(ne)}p("_setupStream :: pipe stream to writable stream"),this.stream.pipe(N),this.stream.on("error",K),this.stream.on("close",function(){p("(%s)stream :: on close",R.options.clientId),I(R.outgoing),p("stream: emit close to MqttClient"),R.emit("close")}),p("_setupStream: sending packet `connect`");const ie=Object.create(this.options);if(ie.cmd="connect",this.topicAliasRecv&&(ie.properties||(ie.properties={}),this.topicAliasRecv&&(ie.properties.topicAliasMaximum=this.topicAliasRecv.max)),T(this,ie),B.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return R.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const ne=v({cmd:"auth",reasonCode:0},this.options.authPacket);T(this,ne)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){p("!!connectTimeout hit!! Calling _cleanUp with force `true`"),R._cleanUp(!0)},this.options.connectTimeout)},Q.prototype._handlePacket=function(R,N){const B=this.options;if(B.protocolVersion===5&&B.properties&&B.properties.maximumPacketSize&&B.properties.maximumPacketSize0||!K())&&this._storeProcessingQueue.push({invoke:K,cbStorePut:B.cbStorePut,callback:q}),this},Q.prototype.subscribe=function(){const R=this,N=new Array(arguments.length);for(let se=0;se0){const W={qos:te.qos};K===5&&(W.nl=te.nl||!1,W.rap=te.rap||!1,W.rh=te.rh||0,W.properties=te.properties),R._resubscribeTopics[te.topic]=W,V.push(te.topic)}}),R.messageIdToTopic[X.messageId]=V}return R.outgoing[X.messageId]={volatile:!0,cb:function(V,te){if(!V){const W=te.granted;for(let H=0;H0||!fe())&&this._storeProcessingQueue.push({invoke:fe,callback:oe}),this},Q.prototype.unsubscribe=function(){const R=this,N=new Array(arguments.length);for(let K=0;K0||!Y())&&this._storeProcessingQueue.push({invoke:Y,callback:q}),this},Q.prototype.end=function(R,N,B){const q=this;p("end :: (%s)",this.options.clientId),(R==null||typeof R!="boolean")&&(B=N||z,N=R,R=!1,typeof N!="object"&&(B=N,N=null,typeof B!="function"&&(B=z))),typeof N!="object"&&(B=N,N=null),p("end :: cb? %s",!!B),B=B||z;function re(){p("end :: closeStores: closing incoming and outgoing stores"),q.disconnected=!0,q.incomingStore.close(function(Y){q.outgoingStore.close(function(K){if(p("end :: closeStores: emitting end"),q.emit("end"),B){const ie=Y||K;p("end :: closeStores: invoking callback with args"),B(ie)}})}),q._deferredReconnect&&q._deferredReconnect()}function oe(){p("end :: (%s) :: finish :: calling _cleanUp with force %s",q.options.clientId,R),q._cleanUp(R,()=>{p("end :: finish :: calling process.nextTick on closeStores"),w(re.bind(q))},N)}return this.disconnecting?(B(),this):(this._clearReconnect(),this.disconnecting=!0,!R&&Object.keys(this.outgoing).length>0?(p("end :: (%s) :: calling finish in 10ms once outgoing is empty",q.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,oe,10))):(p("end :: (%s) :: immediately calling finish",q.options.clientId),oe()),this)},Q.prototype.removeOutgoingMessage=function(R){const N=this.outgoing[R]?this.outgoing[R].cb:null;return delete this.outgoing[R],this.outgoingStore.del({messageId:R},function(){N(new Error("Message removed"))}),this},Q.prototype.reconnect=function(R){p("client reconnect");const N=this,B=function(){R?(N.options.incomingStore=R.incomingStore,N.options.outgoingStore=R.outgoingStore):(N.options.incomingStore=null,N.options.outgoingStore=null),N.incomingStore=N.options.incomingStore||new u,N.outgoingStore=N.options.outgoingStore||new u,N.disconnecting=!1,N.disconnected=!1,N._deferredReconnect=null,N._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=B:B(),this},Q.prototype._reconnect=function(){p("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),p("client already connected. disconnecting first.")):(p("_reconnect: calling _setupStream"),this._setupStream())},Q.prototype._setupReconnect=function(){const R=this;!R.disconnecting&&!R.reconnectTimer&&R.options.reconnectPeriod>0?(this.reconnecting||(p("_setupReconnect :: emit `offline` state"),this.emit("offline"),p("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),p("_setupReconnect :: setting reconnectTimer for %d ms",R.options.reconnectPeriod),R.reconnectTimer=setInterval(function(){p("reconnectTimer :: reconnect triggered!"),R._reconnect()},R.options.reconnectPeriod)):p("_setupReconnect :: doing nothing...")},Q.prototype._clearReconnect=function(){p("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},Q.prototype._cleanUp=function(R,N){const B=arguments[2];if(N&&(p("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",N)),p("_cleanUp :: forced? %s",R),R)this.options.reconnectPeriod===0&&this.options.clean&&C(this.outgoing),p("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const q=v({cmd:"disconnect"},B);p("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(q,x.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(p("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(p("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),N&&!this.connected&&(p("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",N),N())},Q.prototype._sendPacket=function(R,N,B){p("_sendPacket :: (%s) :: start",this.options.clientId),B=B||z,N=N||z;const q=L(this,R);if(q){N(q);return}if(!this.connected){if(R.cmd==="auth"){this._shiftPingInterval(),T(this,R,N);return}p("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(R,N,B);return}switch(this._shiftPingInterval(),R.cmd){case"publish":break;case"pubrel":D(this,R,N,B);return;default:T(this,R,N);return}switch(R.qos){case 2:case 1:D(this,R,N,B);break;case 0:default:T(this,R,N);break}p("_sendPacket :: (%s) :: end",this.options.clientId)},Q.prototype._storePacket=function(R,N,B){p("_storePacket :: packet: %o",R),p("_storePacket :: cb? %s",!!N),B=B||z;let q=R;if(q.cmd==="publish"){q=b(R);const re=S(this,q);if(re)return N&&N(re)}(q.qos||0)===0&&this.queueQoSZero||q.cmd!=="publish"?this.queue.push({packet:q,cb:N}):q.qos>0?(N=this.outgoing[q.messageId]?this.outgoing[q.messageId].cb:null,this.outgoingStore.put(q,function(re){if(re)return N&&N(re);B()})):N&&N(new Error("No connection to broker"))},Q.prototype._setupPingTimer=function(){p("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const R=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=g(function(){R._checkPing()},this.options.keepalive*1e3))},Q.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)},Q.prototype._checkPing=function(){p("_checkPing :: checking ping..."),this.pingResp?(p("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(p("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},Q.prototype._handlePingresp=function(){this.pingResp=!0},Q.prototype._handleConnack=function(R){p("_handleConnack");const N=this.options,q=N.protocolVersion===5?R.reasonCode:R.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,R.properties){if(R.properties.topicAliasMaximum){if(R.properties.topicAliasMaximum>65535){this.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}R.properties.topicAliasMaximum>0&&(this.topicAliasSend=new c(R.properties.topicAliasMaximum))}R.properties.serverKeepAlive&&N.keepalive&&(N.keepalive=R.properties.serverKeepAlive,this._shiftPingInterval()),R.properties.maximumPacketSize&&(N.properties||(N.properties={}),N.properties.maximumPacketSize=R.properties.maximumPacketSize)}if(q===0)this.reconnecting=!1,this._onConnect(R);else if(q>0){const re=new Error("Connection refused: "+P[q]);re.code=q,this.emit("error",re)}},Q.prototype._handleAuth=function(R){const B=this.options.protocolVersion,q=B===5?R.reasonCode:R.returnCode;if(B!==5){const oe=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+B);oe.code=q,this.emit("error",oe);return}const re=this;this.handleAuth(R,function(oe,Y){if(oe){re.emit("error",oe);return}if(q===24)re.reconnecting=!1,re._sendPacket(Y);else{const K=new Error("Connection refused: "+P[q]);oe.code=q,re.emit("error",K)}})},Q.prototype.handleAuth=function(R,N){N()},Q.prototype._handlePublish=function(R,N){p("_handlePublish: packet %o",R),N=typeof N<"u"?N:z;let B=R.topic.toString();const q=R.payload,re=R.qos,oe=R.messageId,Y=this,K=this.options,ie=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let ne;if(R.properties&&(ne=R.properties.topicAlias),typeof ne<"u")if(B.length===0)if(ne>0&&ne<=65535){const fe=this.topicAliasRecv.getTopicByAlias(ne);if(fe)B=fe,p("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",B,ne);else{p("_handlePublish :: unregistered topic alias. alias: %d",ne),this.emit("error",new Error("Received unregistered Topic Alias"));return}}else{p("_handlePublish :: topic alias out of range. alias: %d",ne),this.emit("error",new Error("Received Topic Alias is out of range"));return}else if(this.topicAliasRecv.put(B,ne))p("_handlePublish :: registered topic: %s - alias: %d",B,ne);else{p("_handlePublish :: topic alias out of range. alias: %d",ne),this.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(p("_handlePublish: qos %d",re),re){case 2:{K.customHandleAcks(B,q,R,function(ne,fe){if(ne instanceof Error||(fe=ne,ne=null),ne)return Y.emit("error",ne);if(ie.indexOf(fe)===-1)return Y.emit("error",new Error("Wrong reason code for pubrec"));fe?Y._sendPacket({cmd:"pubrec",messageId:oe,reasonCode:fe},N):Y.incomingStore.put(R,function(){Y._sendPacket({cmd:"pubrec",messageId:oe},N)})});break}case 1:{K.customHandleAcks(B,q,R,function(ne,fe){if(ne instanceof Error||(fe=ne,ne=null),ne)return Y.emit("error",ne);if(ie.indexOf(fe)===-1)return Y.emit("error",new Error("Wrong reason code for puback"));fe||Y.emit("message",B,q,R),Y.handleMessage(R,function(se){if(se)return N&&N(se);Y._sendPacket({cmd:"puback",messageId:oe,reasonCode:fe},N)})});break}case 0:this.emit("message",B,q,R),this.handleMessage(R,N);break;default:p("_handlePublish: unknown QoS. Doing nothing.");break}},Q.prototype.handleMessage=function(R,N){N()},Q.prototype._handleAck=function(R){const N=R.messageId,B=R.cmd;let q=null;const re=this.outgoing[N]?this.outgoing[N].cb:null,oe=this;let Y;if(!re){p("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(p("_handleAck :: packet type",B),B){case"pubcomp":case"puback":{const K=R.reasonCode;K&&K>0&&K!==16&&(Y=new Error("Publish error: "+P[K]),Y.code=K,re(Y,R)),delete this.outgoing[N],this.outgoingStore.del(R,re),this.messageIdProvider.deallocate(N),this._invokeStoreProcessingQueue();break}case"pubrec":{q={cmd:"pubrel",qos:2,messageId:N};const K=R.reasonCode;K&&K>0&&K!==16?(Y=new Error("Publish error: "+P[K]),Y.code=K,re(Y,R)):this._sendPacket(q);break}case"suback":{delete this.outgoing[N],this.messageIdProvider.deallocate(N);for(let K=0;K0)if(this.options.resubscribe)if(this.options.protocolVersion===5){p("_resubscribe: protocolVersion 5");for(let N=0;N0){const R=this._storeProcessingQueue[0];if(R&&R.invoke())return this._storeProcessingQueue.shift(),!0}return!1},Q.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););},Q.prototype._flushStoreProcessingQueue=function(){for(const R of this._storeProcessingQueue)R.cbStorePut&&R.cbStorePut(new Error("Connection closed")),R.callback&&R.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)},n.exports=Q}).call(this)}).call(this,r("_process"),typeof Me<"u"?Me:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-message-id-provider":7,"./store":8,"./topic-alias-recv":9,"./topic-alias-send":10,"./validations":11,_process:50,debug:18,events:22,inherits:24,"mqtt-packet":40,"readable-stream":69,reinterval:70,"rfdc/default":71,xtend:81}],2:[function(r,n,i){const{Buffer:o}=r("buffer"),a=r("readable-stream").Transform,s=r("duplexify");let u,l,c,f=!1;function d(){const y=new a;return y._write=function(v,p,w){u.sendSocketMessage({data:v.buffer,success:function(){w()},fail:function(){w(new Error)}})},y._flush=function(p){u.closeSocket({success:function(){p()}})},y}function h(y){y.hostname||(y.hostname="localhost"),y.path||(y.path="/"),y.wsOptions||(y.wsOptions={})}function m(y,v){const p=y.protocol==="alis"?"wss":"ws";let w=p+"://"+y.hostname+y.path;return y.port&&y.port!==80&&y.port!==443&&(w=p+"://"+y.hostname+":"+y.port+y.path),typeof y.transformWsUrl=="function"&&(w=y.transformWsUrl(w,y,v)),w}function g(){f||(f=!0,u.onSocketOpen(function(){c.setReadable(l),c.setWritable(l),c.emit("connect")}),u.onSocketMessage(function(y){if(typeof y.data=="string"){const v=o.from(y.data,"base64");l.push(v)}else{const v=new FileReader;v.addEventListener("load",function(){let p=v.result;p instanceof ArrayBuffer?p=o.from(p):p=o.from(p,"utf8"),l.push(p)}),v.readAsArrayBuffer(y.data)}}),u.onSocketClose(function(){c.end(),c.destroy()}),u.onSocketError(function(y){c.destroy(y)}))}function b(y,v){if(v.hostname=v.hostname||v.host,!v.hostname)throw new Error("Could not determine host. Specify host manually.");const p=v.protocolId==="MQIsdp"&&v.protocolVersion===3?"mqttv3.1":"mqtt";h(v);const w=m(v,y);return u=v.my,u.connectSocket({url:w,protocols:p}),l=d(),c=s.obj(),g(),c}n.exports=b},{buffer:17,duplexify:20,"readable-stream":69}],3:[function(r,n,i){const o=r("net"),a=r("debug")("mqttjs:tcp");function s(u,l){l.port=l.port||1883,l.hostname=l.hostname||l.host||"localhost";const c=l.port,f=l.hostname;return a("port %d and host %s",c,f),o.createConnection(c,f)}n.exports=s},{debug:18,net:16}],4:[function(r,n,i){const o=r("tls"),a=r("net"),s=r("debug")("mqttjs:tls");function u(l,c){c.port=c.port||8883,c.host=c.hostname||c.host||"localhost",a.isIP(c.host)===0&&(c.servername=c.host),c.rejectUnauthorized=c.rejectUnauthorized!==!1,delete c.path,s("port %d host %s rejectUnauthorized %b",c.port,c.host,c.rejectUnauthorized);const f=o.connect(c);f.on("secureConnect",function(){c.rejectUnauthorized&&!f.authorized?f.emit("error",new Error("TLS not authorized")):f.removeListener("error",d)});function d(h){c.rejectUnauthorized&&l.emit("error",h),f.end()}return f.on("error",d),f}n.exports=u},{debug:18,net:16,tls:16}],5:[function(r,n,i){(function(o){(function(){const{Buffer:a}=r("buffer"),s=r("ws"),u=r("debug")("mqttjs:ws"),l=r("duplexify"),c=r("readable-stream").Transform,f=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],d=typeof o<"u"&&o.title==="browser"||typeof __webpack_require__=="function";function h(w,x){let _=w.protocol+"://"+w.hostname+":"+w.port+w.path;return typeof w.transformWsUrl=="function"&&(_=w.transformWsUrl(_,w,x)),_}function m(w){const x=w;return w.hostname||(x.hostname="localhost"),w.port||(w.protocol==="wss"?x.port=443:x.port=80),w.path||(x.path="/"),w.wsOptions||(x.wsOptions={}),!d&&w.protocol==="wss"&&f.forEach(function(_){Object.prototype.hasOwnProperty.call(w,_)&&!Object.prototype.hasOwnProperty.call(w.wsOptions,_)&&(x.wsOptions[_]=w[_])}),x}function g(w){const x=m(w);if(x.hostname||(x.hostname=x.host),!x.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");const _=new URL(document.URL);x.hostname=_.hostname,x.port||(x.port=_.port)}return x.objectMode===void 0&&(x.objectMode=!(x.binary===!0||x.binary===void 0)),x}function b(w,x,_){u("createWebSocket"),u("protocol: "+_.protocolId+" "+_.protocolVersion);const O=_.protocolId==="MQIsdp"&&_.protocolVersion===3?"mqttv3.1":"mqtt";return u("creating new Websocket for url: "+x+" and protocol: "+O),new s(x,[O],_.wsOptions)}function y(w,x){const _=x.protocolId==="MQIsdp"&&x.protocolVersion===3?"mqttv3.1":"mqtt",O=h(x,w),P=new WebSocket(O,[_]);return P.binaryType="arraybuffer",P}function v(w,x){u("streamBuilder");const _=m(x),O=h(_,w),P=b(w,O,_),A=s.createWebSocketStream(P,_.wsOptions);return A.url=O,P.on("close",()=>{A.destroy()}),A}function p(w,x){u("browserStreamBuilder");let _;const P=g(x).browserBufferSize||1024*512,A=x.browserBufferTimeout||1e3,L=!x.objectMode,S=y(w,x),T=I(x,B,q);x.objectMode||(T._writev=N),T.on("close",()=>{S.close()});const C=typeof S.addEventListener<"u";S.readyState===S.OPEN?_=T:(_=_=l(void 0,void 0,x),x.objectMode||(_._writev=N),C?S.addEventListener("open",D):S.onopen=D),_.socket=S,C?(S.addEventListener("close",z),S.addEventListener("error",Q),S.addEventListener("message",R)):(S.onclose=z,S.onerror=Q,S.onmessage=R);function I(re,oe,Y){const K=new c({objectModeMode:re.objectMode});return K._write=oe,K._flush=Y,K}function D(){_.setReadable(T),_.setWritable(T),_.emit("connect")}function z(){_.end(),_.destroy()}function Q(re){_.destroy(re)}function R(re){let oe=re.data;oe instanceof ArrayBuffer?oe=a.from(oe):oe=a.from(oe,"utf8"),T.push(oe)}function N(re,oe){const Y=new Array(re.length);for(let K=0;KP&&setTimeout(B,A,re,oe,Y),L&&typeof re=="string"&&(re=a.from(re,"utf8"));try{S.send(re)}catch(K){return Y(K)}Y()}function q(re){S.close(),re()}return _}d?n.exports=p:n.exports=v}).call(this)}).call(this,r("_process"))},{_process:50,buffer:17,debug:18,duplexify:20,"readable-stream":69,ws:80}],6:[function(r,n,i){const{Buffer:o}=r("buffer"),a=r("readable-stream").Transform,s=r("duplexify");let u,l,c;function f(){const b=new a;return b._write=function(y,v,p){u.send({data:y.buffer,success:function(){p()},fail:function(w){p(new Error(w))}})},b._flush=function(v){u.close({success:function(){v()}})},b}function d(b){b.hostname||(b.hostname="localhost"),b.path||(b.path="/"),b.wsOptions||(b.wsOptions={})}function h(b,y){const v=b.protocol==="wxs"?"wss":"ws";let p=v+"://"+b.hostname+b.path;return b.port&&b.port!==80&&b.port!==443&&(p=v+"://"+b.hostname+":"+b.port+b.path),typeof b.transformWsUrl=="function"&&(p=b.transformWsUrl(p,b,y)),p}function m(){u.onOpen(function(){c.setReadable(l),c.setWritable(l),c.emit("connect")}),u.onMessage(function(b){let y=b.data;y instanceof ArrayBuffer?y=o.from(y):y=o.from(y,"utf8"),l.push(y)}),u.onClose(function(){c.end(),c.destroy()}),u.onError(function(b){c.destroy(new Error(b.errMsg))})}function g(b,y){if(y.hostname=y.hostname||y.host,!y.hostname)throw new Error("Could not determine host. Specify host manually.");const v=y.protocolId==="MQIsdp"&&y.protocolVersion===3?"mqttv3.1":"mqtt";d(y);const p=h(y,b);u=wx.connectSocket({url:p,protocols:[v]}),l=f(),c=s.obj(),c._destroy=function(x,_){u.close({success:function(){_&&_(x)}})};const w=c.destroy;return c.destroy=function(){c.destroy=w;const x=this;setTimeout(function(){u.close({fail:function(){x._destroy(new Error)}})},0)}.bind(c),m(),c}n.exports=g},{buffer:17,duplexify:20,"readable-stream":69}],7:[function(r,n,i){function o(){if(!(this instanceof o))return new o;this.nextId=Math.max(1,Math.floor(Math.random()*65535))}o.prototype.allocate=function(){const a=this.nextId++;return this.nextId===65536&&(this.nextId=1),a},o.prototype.getLastAllocated=function(){return this.nextId===1?65535:this.nextId-1},o.prototype.register=function(a){return!0},o.prototype.deallocate=function(a){},o.prototype.clear=function(){},n.exports=o},{}],8:[function(r,n,i){const o=r("xtend"),a=r("readable-stream").Readable,s={objectMode:!0},u={clean:!0};function l(c){if(!(this instanceof l))return new l(c);this.options=c||{},this.options=o(u,c),this._inflights=new Map}l.prototype.put=function(c,f){return this._inflights.set(c.messageId,c),f&&f(),this},l.prototype.createStream=function(){const c=new a(s),f=[];let d=!1,h=0;return this._inflights.forEach(function(m,g){f.push(m)}),c._read=function(){!d&&hthis.max?!1:(this.aliasToTopic[s]=a,this.length=Object.keys(this.aliasToTopic).length,!0)},o.prototype.getTopicByAlias=function(a){return this.aliasToTopic[a]},o.prototype.clear=function(){this.aliasToTopic={}},n.exports=o},{}],10:[function(r,n,i){const o=r("lru-cache"),a=r("number-allocator").NumberAllocator;function s(u){if(!(this instanceof s))return new s(u);u>0&&(this.aliasToTopic=new o({max:u}),this.topicToAlias={},this.numberAllocator=new a(1,u),this.max=u,this.length=0)}s.prototype.put=function(u,l){if(l===0||l>this.max)return!1;const c=this.aliasToTopic.get(l);return c&&delete this.topicToAlias[c],this.aliasToTopic.set(l,u),this.topicToAlias[u]=l,this.numberAllocator.use(l),this.length=this.aliasToTopic.length,!0},s.prototype.getTopicByAlias=function(u){return this.aliasToTopic.get(u)},s.prototype.getAliasByTopic=function(u){const l=this.topicToAlias[u];return typeof l<"u"&&this.aliasToTopic.get(l),l},s.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},s.prototype.getLruAlias=function(){const u=this.numberAllocator.firstVacant();return u||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},n.exports=s},{"lru-cache":37,"number-allocator":46}],11:[function(r,n,i){function o(s){const u=s.split("/");for(let l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");var w=v.indexOf("=");w===-1&&(w=p);var x=w===p?0:4-w%4;return[w,x]}function d(v){var p=f(v),w=p[0],x=p[1];return(w+x)*3/4-x}function h(v,p,w){return(p+w)*3/4-w}function m(v){var p,w=f(v),x=w[0],_=w[1],O=new s(h(v,x,_)),P=0,A=_>0?x-4:x,L;for(L=0;L>16&255,O[P++]=p>>8&255,O[P++]=p&255;return _===2&&(p=a[v.charCodeAt(L)]<<2|a[v.charCodeAt(L+1)]>>4,O[P++]=p&255),_===1&&(p=a[v.charCodeAt(L)]<<10|a[v.charCodeAt(L+1)]<<4|a[v.charCodeAt(L+2)]>>2,O[P++]=p>>8&255,O[P++]=p&255),O}function g(v){return o[v>>18&63]+o[v>>12&63]+o[v>>6&63]+o[v&63]}function b(v,p,w){for(var x,_=[],O=p;OA?A:P+O));return x===1?(p=v[w-1],_.push(o[p>>2]+o[p<<4&63]+"==")):x===2&&(p=(v[w-2]<<8)+v[w-1],_.push(o[p>>10]+o[p>>4&63]+o[p<<2&63]+"=")),_.join("")}},{}],14:[function(r,n,i){const{Buffer:o}=r("buffer"),a=Symbol.for("BufferList");function s(u){if(!(this instanceof s))return new s(u);s._init.call(this,u)}s._init=function(l){Object.defineProperty(this,a,{value:!0}),this._bufs=[],this.length=0,l&&this.append(l)},s.prototype._new=function(l){return new s(l)},s.prototype._offset=function(l){if(l===0)return[0,0];let c=0;for(let f=0;fthis.length||l<0)return;const c=this._offset(l);return this._bufs[c[0]][c[1]]},s.prototype.slice=function(l,c){return typeof l=="number"&&l<0&&(l+=this.length),typeof c=="number"&&c<0&&(c+=this.length),this.copy(null,0,l,c)},s.prototype.copy=function(l,c,f,d){if((typeof f!="number"||f<0)&&(f=0),(typeof d!="number"||d>this.length)&&(d=this.length),f>=this.length||d<=0)return l||o.alloc(0);const h=!!l,m=this._offset(f),g=d-f;let b=g,y=h&&c||0,v=m[1];if(f===0&&d===this.length){if(!h)return this._bufs.length===1?this._bufs[0]:o.concat(this._bufs,this.length);for(let p=0;pw)this._bufs[p].copy(l,y,v),y+=w;else{this._bufs[p].copy(l,y,v,v+b),y+=w;break}b-=w,v&&(v=0)}return l.length>y?l.slice(0,y):l},s.prototype.shallowSlice=function(l,c){if(l=l||0,c=typeof c!="number"?this.length:c,l<0&&(l+=this.length),c<0&&(c+=this.length),l===c)return this._new();const f=this._offset(l),d=this._offset(c),h=this._bufs.slice(f[0],d[0]+1);return d[1]===0?h.pop():h[h.length-1]=h[h.length-1].slice(0,d[1]),f[1]!==0&&(h[0]=h[0].slice(f[1])),this._new(h)},s.prototype.toString=function(l,c,f){return this.slice(c,f).toString(l)},s.prototype.consume=function(l){if(l=Math.trunc(l),Number.isNaN(l)||l<=0)return this;for(;this._bufs.length;)if(l>=this._bufs[0].length)l-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(l),this.length-=l;break}return this},s.prototype.duplicate=function(){const l=this._new();for(let c=0;cthis.length?this.length:l;const f=this._offset(l);let d=f[0],h=f[1];for(;d=u.length){const b=m.indexOf(u,h);if(b!==-1)return this._reverseOffset([d,b]);h=m.length-u.length+1}else{const b=this._reverseOffset([d,h]);if(this._match(b,u))return b;h++}h=0}return-1},s.prototype._match=function(u,l){if(this.length-uu)throw new RangeError('The value "'+M+'" is invalid for option "size"');var E=new Uint8Array(M);return E.__proto__=f.prototype,E}function f(M,E,k){if(typeof M=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(M)}return d(M,E,k)}typeof Symbol<"u"&&Symbol.species!=null&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192;function d(M,E,k){if(typeof M=="string")return b(M,E);if(ArrayBuffer.isView(M))return y(M);if(M==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(j(M,ArrayBuffer)||M&&j(M.buffer,ArrayBuffer))return v(M,E,k);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var F=M.valueOf&&M.valueOf();if(F!=null&&F!==M)return f.from(F,E,k);var G=p(M);if(G)return G;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return f.from(M[Symbol.toPrimitive]("string"),E,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}f.from=function(M,E,k){return d(M,E,k)},f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array;function h(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function m(M,E,k){return h(M),M<=0?c(M):E!==void 0?typeof k=="string"?c(M).fill(E,k):c(M).fill(E):c(M)}f.alloc=function(M,E,k){return m(M,E,k)};function g(M){return h(M),c(M<0?0:w(M)|0)}f.allocUnsafe=function(M){return g(M)},f.allocUnsafeSlow=function(M){return g(M)};function b(M,E){if((typeof E!="string"||E==="")&&(E="utf8"),!f.isEncoding(E))throw new TypeError("Unknown encoding: "+E);var k=_(M,E)|0,F=c(k),G=F.write(M,E);return G!==k&&(F=F.slice(0,G)),F}function y(M){for(var E=M.length<0?0:w(M.length)|0,k=c(E),F=0;F=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return M|0}function x(M){return+M!=M&&(M=0),f.alloc(+M)}f.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==f.prototype},f.compare=function(E,k){if(j(E,Uint8Array)&&(E=f.from(E,E.offset,E.byteLength)),j(k,Uint8Array)&&(k=f.from(k,k.offset,k.byteLength)),!f.isBuffer(E)||!f.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===k)return 0;for(var F=E.length,G=k.length,ue=0,le=Math.min(F,G);ue2&&arguments[2]===!0;if(!F&&k===0)return 0;for(var G=!1;;)switch(E){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return W(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return ee(M).length;default:if(G)return F?-1:W(M).length;E=(""+E).toLowerCase(),G=!0}}f.byteLength=_;function O(M,E,k){var F=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,E>>>=0,k<=E))return"";for(M||(M="utf8");;)switch(M){case"hex":return oe(this,E,k);case"utf8":case"utf-8":return R(this,E,k);case"ascii":return q(this,E,k);case"latin1":case"binary":return re(this,E,k);case"base64":return Q(this,E,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,E,k);default:if(F)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),F=!0}}f.prototype._isBuffer=!0;function P(M,E,k){var F=M[E];M[E]=M[k],M[k]=F}f.prototype.swap16=function(){var E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;kk&&(E+=" ... "),""},f.prototype.compare=function(E,k,F,G,ue){if(j(E,Uint8Array)&&(E=f.from(E,E.offset,E.byteLength)),!f.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(k===void 0&&(k=0),F===void 0&&(F=E?E.length:0),G===void 0&&(G=0),ue===void 0&&(ue=this.length),k<0||F>E.length||G<0||ue>this.length)throw new RangeError("out of range index");if(G>=ue&&k>=F)return 0;if(G>=ue)return-1;if(k>=F)return 1;if(k>>>=0,F>>>=0,G>>>=0,ue>>>=0,this===E)return 0;for(var le=ue-G,pe=F-k,ge=Math.min(le,pe),Ee=this.slice(G,ue),Ue=E.slice(k,F),Ce=0;Ce2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,U(k)&&(k=G?0:M.length-1),k<0&&(k=M.length+k),k>=M.length){if(G)return-1;k=M.length-1}else if(k<0)if(G)k=0;else return-1;if(typeof E=="string"&&(E=f.from(E,F)),f.isBuffer(E))return E.length===0?-1:L(M,E,k,F,G);if(typeof E=="number")return E=E&255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(M,E,k):Uint8Array.prototype.lastIndexOf.call(M,E,k):L(M,[E],k,F,G);throw new TypeError("val must be string, number or Buffer")}function L(M,E,k,F,G){var ue=1,le=M.length,pe=E.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(M.length<2||E.length<2)return-1;ue=2,le/=2,pe/=2,k/=2}function ge(qr,Er){return ue===1?qr[Er]:qr.readUInt16BE(Er*ue)}var Ee;if(G){var Ue=-1;for(Ee=k;Eele&&(k=le-pe),Ee=k;Ee>=0;Ee--){for(var Ce=!0,Hr=0;HrG&&(F=G)):F=G;var ue=E.length;F>ue/2&&(F=ue/2);for(var le=0;le>>0,isFinite(F)?(F=F>>>0,G===void 0&&(G="utf8")):(G=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-k;if((F===void 0||F>ue)&&(F=ue),E.length>0&&(F<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");for(var le=!1;;)switch(G){case"hex":return S(this,E,k,F);case"utf8":case"utf-8":return T(this,E,k,F);case"ascii":return C(this,E,k,F);case"latin1":case"binary":return I(this,E,k,F);case"base64":return D(this,E,k,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,E,k,F);default:if(le)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),le=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(M,E,k){return E===0&&k===M.length?a.fromByteArray(M):a.fromByteArray(M.slice(E,k))}function R(M,E,k){k=Math.min(M.length,k);for(var F=[],G=E;G239?4:ue>223?3:ue>191?2:1;if(G+pe<=k){var ge,Ee,Ue,Ce;switch(pe){case 1:ue<128&&(le=ue);break;case 2:ge=M[G+1],(ge&192)===128&&(Ce=(ue&31)<<6|ge&63,Ce>127&&(le=Ce));break;case 3:ge=M[G+1],Ee=M[G+2],(ge&192)===128&&(Ee&192)===128&&(Ce=(ue&15)<<12|(ge&63)<<6|Ee&63,Ce>2047&&(Ce<55296||Ce>57343)&&(le=Ce));break;case 4:ge=M[G+1],Ee=M[G+2],Ue=M[G+3],(ge&192)===128&&(Ee&192)===128&&(Ue&192)===128&&(Ce=(ue&15)<<18|(ge&63)<<12|(Ee&63)<<6|Ue&63,Ce>65535&&Ce<1114112&&(le=Ce))}}le===null?(le=65533,pe=1):le>65535&&(le-=65536,F.push(le>>>10&1023|55296),le=56320|le&1023),F.push(le),G+=pe}return B(F)}var N=4096;function B(M){var E=M.length;if(E<=N)return String.fromCharCode.apply(String,M);for(var k="",F=0;FF)&&(k=F);for(var G="",ue=E;ueF&&(E=F),k<0?(k+=F,k<0&&(k=0)):k>F&&(k=F),kk)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(E,k,F){E=E>>>0,k=k>>>0,F||K(E,k,this.length);for(var G=this[E],ue=1,le=0;++le>>0,k=k>>>0,F||K(E,k,this.length);for(var G=this[E+--k],ue=1;k>0&&(ue*=256);)G+=this[E+--k]*ue;return G},f.prototype.readUInt8=function(E,k){return E=E>>>0,k||K(E,1,this.length),this[E]},f.prototype.readUInt16LE=function(E,k){return E=E>>>0,k||K(E,2,this.length),this[E]|this[E+1]<<8},f.prototype.readUInt16BE=function(E,k){return E=E>>>0,k||K(E,2,this.length),this[E]<<8|this[E+1]},f.prototype.readUInt32LE=function(E,k){return E=E>>>0,k||K(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},f.prototype.readUInt32BE=function(E,k){return E=E>>>0,k||K(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},f.prototype.readIntLE=function(E,k,F){E=E>>>0,k=k>>>0,F||K(E,k,this.length);for(var G=this[E],ue=1,le=0;++le=ue&&(G-=Math.pow(2,8*k)),G},f.prototype.readIntBE=function(E,k,F){E=E>>>0,k=k>>>0,F||K(E,k,this.length);for(var G=k,ue=1,le=this[E+--G];G>0&&(ue*=256);)le+=this[E+--G]*ue;return ue*=128,le>=ue&&(le-=Math.pow(2,8*k)),le},f.prototype.readInt8=function(E,k){return E=E>>>0,k||K(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},f.prototype.readInt16LE=function(E,k){E=E>>>0,k||K(E,2,this.length);var F=this[E]|this[E+1]<<8;return F&32768?F|4294901760:F},f.prototype.readInt16BE=function(E,k){E=E>>>0,k||K(E,2,this.length);var F=this[E+1]|this[E]<<8;return F&32768?F|4294901760:F},f.prototype.readInt32LE=function(E,k){return E=E>>>0,k||K(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},f.prototype.readInt32BE=function(E,k){return E=E>>>0,k||K(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},f.prototype.readFloatLE=function(E,k){return E=E>>>0,k||K(E,4,this.length),s.read(this,E,!0,23,4)},f.prototype.readFloatBE=function(E,k){return E=E>>>0,k||K(E,4,this.length),s.read(this,E,!1,23,4)},f.prototype.readDoubleLE=function(E,k){return E=E>>>0,k||K(E,8,this.length),s.read(this,E,!0,52,8)},f.prototype.readDoubleBE=function(E,k){return E=E>>>0,k||K(E,8,this.length),s.read(this,E,!1,52,8)};function ie(M,E,k,F,G,ue){if(!f.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>G||EM.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(E,k,F,G){if(E=+E,k=k>>>0,F=F>>>0,!G){var ue=Math.pow(2,8*F)-1;ie(this,E,k,F,ue,0)}var le=1,pe=0;for(this[k]=E&255;++pe>>0,F=F>>>0,!G){var ue=Math.pow(2,8*F)-1;ie(this,E,k,F,ue,0)}var le=F-1,pe=1;for(this[k+le]=E&255;--le>=0&&(pe*=256);)this[k+le]=E/pe&255;return k+F},f.prototype.writeUInt8=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,1,255,0),this[k]=E&255,k+1},f.prototype.writeUInt16LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,65535,0),this[k]=E&255,this[k+1]=E>>>8,k+2},f.prototype.writeUInt16BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,65535,0),this[k]=E>>>8,this[k+1]=E&255,k+2},f.prototype.writeUInt32LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,4294967295,0),this[k+3]=E>>>24,this[k+2]=E>>>16,this[k+1]=E>>>8,this[k]=E&255,k+4},f.prototype.writeUInt32BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,4294967295,0),this[k]=E>>>24,this[k+1]=E>>>16,this[k+2]=E>>>8,this[k+3]=E&255,k+4},f.prototype.writeIntLE=function(E,k,F,G){if(E=+E,k=k>>>0,!G){var ue=Math.pow(2,8*F-1);ie(this,E,k,F,ue-1,-ue)}var le=0,pe=1,ge=0;for(this[k]=E&255;++le>0)-ge&255;return k+F},f.prototype.writeIntBE=function(E,k,F,G){if(E=+E,k=k>>>0,!G){var ue=Math.pow(2,8*F-1);ie(this,E,k,F,ue-1,-ue)}var le=F-1,pe=1,ge=0;for(this[k+le]=E&255;--le>=0&&(pe*=256);)E<0&&ge===0&&this[k+le+1]!==0&&(ge=1),this[k+le]=(E/pe>>0)-ge&255;return k+F},f.prototype.writeInt8=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,1,127,-128),E<0&&(E=255+E+1),this[k]=E&255,k+1},f.prototype.writeInt16LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,32767,-32768),this[k]=E&255,this[k+1]=E>>>8,k+2},f.prototype.writeInt16BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,2,32767,-32768),this[k]=E>>>8,this[k+1]=E&255,k+2},f.prototype.writeInt32LE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,2147483647,-2147483648),this[k]=E&255,this[k+1]=E>>>8,this[k+2]=E>>>16,this[k+3]=E>>>24,k+4},f.prototype.writeInt32BE=function(E,k,F){return E=+E,k=k>>>0,F||ie(this,E,k,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[k]=E>>>24,this[k+1]=E>>>16,this[k+2]=E>>>8,this[k+3]=E&255,k+4};function ne(M,E,k,F,G,ue){if(k+F>M.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function fe(M,E,k,F,G){return E=+E,k=k>>>0,G||ne(M,E,k,4),s.write(M,E,k,F,23,4),k+4}f.prototype.writeFloatLE=function(E,k,F){return fe(this,E,k,!0,F)},f.prototype.writeFloatBE=function(E,k,F){return fe(this,E,k,!1,F)};function se(M,E,k,F,G){return E=+E,k=k>>>0,G||ne(M,E,k,8),s.write(M,E,k,F,52,8),k+8}f.prototype.writeDoubleLE=function(E,k,F){return se(this,E,k,!0,F)},f.prototype.writeDoubleBE=function(E,k,F){return se(this,E,k,!1,F)},f.prototype.copy=function(E,k,F,G){if(!f.isBuffer(E))throw new TypeError("argument should be a Buffer");if(F||(F=0),!G&&G!==0&&(G=this.length),k>=E.length&&(k=E.length),k||(k=0),G>0&&G=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),E.length-k=0;--le)E[le+k]=this[le+F];else Uint8Array.prototype.set.call(E,this.subarray(F,G),k);return ue},f.prototype.fill=function(E,k,F,G){if(typeof E=="string"){if(typeof k=="string"?(G=k,k=0,F=this.length):typeof F=="string"&&(G=F,F=this.length),G!==void 0&&typeof G!="string")throw new TypeError("encoding must be a string");if(typeof G=="string"&&!f.isEncoding(G))throw new TypeError("Unknown encoding: "+G);if(E.length===1){var ue=E.charCodeAt(0);(G==="utf8"&&ue<128||G==="latin1")&&(E=ue)}}else typeof E=="number"&&(E=E&255);if(k<0||this.length>>0,F=F===void 0?this.length:F>>>0,E||(E=0);var le;if(typeof E=="number")for(le=k;le55295&&k<57344){if(!G){if(k>56319){(E-=3)>-1&&ue.push(239,191,189);continue}else if(le+1===F){(E-=3)>-1&&ue.push(239,191,189);continue}G=k;continue}if(k<56320){(E-=3)>-1&&ue.push(239,191,189),G=k;continue}k=(G-55296<<10|k-56320)+65536}else G&&(E-=3)>-1&&ue.push(239,191,189);if(G=null,k<128){if((E-=1)<0)break;ue.push(k)}else if(k<2048){if((E-=2)<0)break;ue.push(k>>6|192,k&63|128)}else if(k<65536){if((E-=3)<0)break;ue.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((E-=4)<0)break;ue.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return ue}function H(M){for(var E=[],k=0;k>8,G=k%256,ue.push(G),ue.push(F);return ue}function ee(M){return a.toByteArray(V(M))}function ae(M,E,k,F){for(var G=0;G=E.length||G>=M.length);++G)E[G+k]=M[G];return G}function j(M,E){return M instanceof E||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===E.name}function U(M){return M!==M}}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":13,buffer:17,ieee754:23}],18:[function(r,n,i){(function(o){(function(){i.formatArgs=s,i.save=u,i.load=l,i.useColors=a,i.storage=c(),i.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),i.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;d.splice(1,0,h,"color: inherit");let m=0,g=0;d[0].replace(/%[a-zA-Z%]/g,b=>{b!=="%%"&&(m++,b==="%c"&&(g=m))}),d.splice(g,0,h)}i.log=console.debug||console.log||(()=>{});function u(d){try{d?i.storage.setItem("debug",d):i.storage.removeItem("debug")}catch{}}function l(){let d;try{d=i.storage.getItem("debug")}catch{}return!d&&typeof o<"u"&&"env"in o&&(d={}.DEBUG),d}function c(){try{return localStorage}catch{}}n.exports=r("./common")(i);const{formatters:f}=n.exports;f.j=function(d){try{return JSON.stringify(d)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}}).call(this)}).call(this,r("_process"))},{"./common":19,_process:50}],19:[function(r,n,i){function o(a){u.debug=u,u.default=u,u.coerce=m,u.disable=f,u.enable=c,u.enabled=d,u.humanize=r("ms"),u.destroy=g,Object.keys(a).forEach(b=>{u[b]=a[b]}),u.names=[],u.skips=[],u.formatters={};function s(b){let y=0;for(let v=0;v{if(T==="%%")return"%";L++;const I=u.formatters[C];if(typeof I=="function"){const D=_[L];T=I.call(O,D),_.splice(L,1),L--}return T}),u.formatArgs.call(O,_),(O.log||u.log).apply(O,_)}return x.namespace=b,x.useColors=u.useColors(),x.color=u.selectColor(b),x.extend=l,x.destroy=u.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(p!==u.namespaces&&(p=u.namespaces,w=u.enabled(b)),w),set:_=>{v=_}}),typeof u.init=="function"&&u.init(x),x}function l(b,y){const v=u(this.namespace+(typeof y>"u"?":":y)+b);return v.log=this.log,v}function c(b){u.save(b),u.namespaces=b,u.names=[],u.skips=[];let y;const v=(typeof b=="string"?b:"").split(/[\s,]+/),p=v.length;for(y=0;y"-"+y)].join(",");return u.enable(""),b}function d(b){if(b[b.length-1]==="*")return!0;let y,v;for(y=0,v=u.skips.length;y1&&(D=arguments[1]),D instanceof Error)throw D;var re=new Error('Unhandled "error" event. ('+D+")");throw re.context=D,re}if(z=B[I],!z)return!1;var oe=typeof z=="function";switch(Q=arguments.length,Q){case 1:h(z,oe,this);break;case 2:m(z,oe,this,arguments[1]);break;case 3:g(z,oe,this,arguments[1],arguments[2]);break;case 4:b(z,oe,this,arguments[1],arguments[2],arguments[3]);break;default:for(R=new Array(Q-1),N=1;N0&&N.length>Q)){N.warned=!0;var B=new Error("Possible EventEmitter memory leak detected. "+N.length+' "'+String(I)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');B.name="MaxListenersExceededWarning",B.emitter=C,B.type=I,B.count=N.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",B.name,B.message)}return C}u.prototype.addListener=function(I,D){return v(this,I,D,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(I,D){return v(this,I,D,!0)};function p(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var C=new Array(arguments.length),I=0;I=0;N--)if(z[N]===D||z[N].listener===D){B=z[N].listener,R=N;break}if(R<0)return this;R===0?z.shift():O(z,R),z.length===1&&(Q[I]=z[0]),Q.removeListener&&this.emit("removeListener",I,B||D)}return this},u.prototype.removeAllListeners=function(I){var D,z,Q;if(z=this._events,!z)return this;if(!z.removeListener)return arguments.length===0?(this._events=o(null),this._eventsCount=0):z[I]&&(--this._eventsCount===0?this._events=o(null):delete z[I]),this;if(arguments.length===0){var R=a(z),N;for(Q=0;Q=0;Q--)this.removeListener(I,D[Q]);return this};function x(C,I,D){var z=C._events;if(!z)return[];var Q=z[I];return Q?typeof Q=="function"?D?[Q.listener||Q]:[Q]:D?A(Q):P(Q,Q.length):[]}u.prototype.listeners=function(I){return x(this,I,!0)},u.prototype.rawListeners=function(I){return x(this,I,!1)},u.listenerCount=function(C,I){return typeof C.listenerCount=="function"?C.listenerCount(I):_.call(C,I)},u.prototype.listenerCount=_;function _(C){var I=this._events;if(I){var D=I[C];if(typeof D=="function")return 1;if(D)return D.length}return 0}u.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function O(C,I){for(var D=I,z=D+1,Q=C.length;z */i.read=function(o,a,s,u,l){var c,f,d=l*8-u-1,h=(1<>1,g=-7,b=s?l-1:0,y=s?-1:1,v=o[a+b];for(b+=y,c=v&(1<<-g)-1,v>>=-g,g+=d;g>0;c=c*256+o[a+b],b+=y,g-=8);for(f=c&(1<<-g)-1,c>>=-g,g+=u;g>0;f=f*256+o[a+b],b+=y,g-=8);if(c===0)c=1-m;else{if(c===h)return f?NaN:(v?-1:1)*(1/0);f=f+Math.pow(2,u),c=c-m}return(v?-1:1)*f*Math.pow(2,c-u)},i.write=function(o,a,s,u,l,c){var f,d,h,m=c*8-l-1,g=(1<>1,y=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=u?0:c-1,p=u?1:-1,w=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(d=isNaN(a)?1:0,f=g):(f=Math.floor(Math.log(a)/Math.LN2),a*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+b>=1?a+=y/h:a+=y*Math.pow(2,1-b),a*h>=2&&(f++,h/=2),f+b>=g?(d=0,f=g):f+b>=1?(d=(a*h-1)*Math.pow(2,l),f=f+b):(d=a*Math.pow(2,b-1)*Math.pow(2,l),f=0));l>=8;o[s+v]=d&255,v+=p,d/=256,l-=8);for(f=f<0;o[s+v]=f&255,v+=p,f/=256,m-=8);o[s+v-p]|=w*128}},{}],24:[function(r,n,i){typeof Object.create=="function"?n.exports=function(a,s){s&&(a.super_=s,a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(a,s){if(s){a.super_=s;var u=function(){};u.prototype=s.prototype,a.prototype=new u,a.prototype.constructor=a}}},{}],25:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});var o=function(){function a(s,u){this.color=!0,this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0,this.leftChild=void 0,this.rightChild=void 0,this.key=s,this.value=u}return a.prototype.rotateLeft=function(){var s=this.parent,u=this.brother,l=this.leftChild,c=this.rightChild;if(!c)throw new Error("unknown error");var f=c.leftChild,d=c.rightChild;return s&&(s.leftChild===this?s.leftChild=c:s.rightChild===this&&(s.rightChild=c)),c.parent=s,c.brother=u,c.leftChild=this,c.rightChild=d,u&&(u.brother=c),this.parent=c,this.brother=d,this.leftChild=l,this.rightChild=f,d&&(d.parent=c,d.brother=this),l&&(l.parent=this,l.brother=f),f&&(f.parent=this,f.brother=l),c},a.prototype.rotateRight=function(){var s=this.parent,u=this.brother,l=this.leftChild;if(!l)throw new Error("unknown error");var c=this.rightChild,f=l.leftChild,d=l.rightChild;return s&&(s.leftChild===this?s.leftChild=l:s.rightChild===this&&(s.rightChild=l)),l.parent=s,l.brother=u,l.leftChild=f,l.rightChild=this,u&&(u.brother=l),f&&(f.parent=l,f.brother=this),this.parent=l,this.brother=f,this.leftChild=d,this.rightChild=c,d&&(d.parent=this,d.brother=c),c&&(c.parent=this,c.brother=d),l},a.prototype.remove=function(){if(this.leftChild||this.rightChild)throw new Error("can only remove leaf node");this.parent&&(this===this.parent.leftChild?this.parent.leftChild=void 0:this===this.parent.rightChild&&(this.parent.rightChild=void 0)),this.brother&&(this.brother.brother=void 0),this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0},a.TreeNodeColorType={red:!0,black:!1},a}();Object.freeze(o),i.default=o},{}],26:[function(r,n,i){var o=this&&this.__generator||function(s,u){var l={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},c,f,d,h;return h={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(b){return function(y){return g([b,y])}}function g(b){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,f&&(d=b[0]&2?f.return:b[0]?f.throw||((d=f.return)&&d.call(f),0):f.next)&&!(d=d.call(f,b[1])).done)return d;switch(f=0,d&&(b=[b[0]&2,d.value]),b[0]){case 0:case 1:d=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,f=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(d=l.trys,!(d=d.length>0&&d[d.length-1])&&(b[0]===6||b[0]===2)){l=0;continue}if(b[0]===3&&(!d||b[1]>d[0]&&b[1]x)throw new Error("pos should more than 0 and less than queue's size");var _=Math.floor(w/a.bucketSize),O=w%a.bucketSize;return{curNodeBucketIndex:_,curNodePointerIndex:O}};this.getElementByPos=function(v){var p=b(v),w=p.curNodeBucketIndex,x=p.curNodePointerIndex;return l[w][x]},this.eraseElementByPos=function(v){var p=this;if(v<0||v>g)throw new Error("pos should more than 0 and less than queue's size");if(v===0)this.popFront();else if(v===this.size())this.popBack();else{for(var w=[],x=v+1;x0?--h:c0&&--g)},this.setElementByPos=function(v,p){var w=b(v),x=w.curNodeBucketIndex,_=w.curNodePointerIndex;l[x][_]=p},this.insert=function(v,p,w){var x=this;if(w===void 0&&(w=1),v===0)for(;w--;)this.pushFront(p);else if(v===this.size())for(;w--;)this.pushBack(p);else{for(var _=[],O=v;O0?--f:c>0&&(--c,f=a.bucketSize-1)),++g,l[c][f]=v},this.popFront=function(){this.empty()||(this.size()!==1&&(f0&&--g)},this.shrinkToFit=function(){var v=this,p=[];this.forEach(function(O){p.push(O)});var w=p.length;l=[];for(var x=Math.ceil(w/a.bucketSize),_=0;_0&&g[g.length-1])&&(p[0]===6||p[0]===2)){d=0;continue}if(p[0]===3&&(!g||p[1]>g[0]&&p[1]=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../LinkList/LinkList"),u=r("../Map/Map");l.initSize=1<<4,l.maxSize=1<<30,l.sigma=.75,l.treeifyThreshold=8,l.untreeifyThreshold=6,l.minTreeifySize=64;function l(c,f,d){var h=this;if(c===void 0&&(c=[]),f===void 0&&(f=l.initSize),d=d||function(v){var p,w,x=0,_="";if(typeof v=="number")x=Math.floor(v),x=(x<<5)-x,x=x&x;else{typeof v!="string"?_=JSON.stringify(v):_=v;try{for(var O=a(_),P=O.next();!P.done;P=O.next()){var A=P.value,L=A.charCodeAt(0);x=(x<<5)-x+L,x=x&x}}catch(S){p={error:S}}finally{try{P&&!P.done&&(w=O.return)&&w.call(O)}finally{if(p)throw p.error}}}return x^=x>>>16,x},f&f-1)throw new Error("initBucketNum must be 2 to the power of n");var m=0,g=[],b=Math.max(l.initSize,Math.min(l.maxSize,f));this.size=function(){return m},this.empty=function(){return m===0},this.clear=function(){m=0,b=f,g=[]},this.forEach=function(v){var p=0;g.forEach(function(w){w.forEach(function(x){v(x,p++)})})};var y=function(v){if(!(v>=l.maxSize)){b=v*2;var p=[];g.forEach(function(w,x){if(!w.empty()){if(w instanceof s.default&&w.size()===1){var _=w.front(),O=_.key,P=_.value;p[d(O)&b-1]=new s.default([{key:O,value:P}])}else if(w instanceof u.default){var A=new s.default,L=new s.default;w.forEach(function(C){var I=d(C.key);I&v?L.pushBack(C):A.pushBack(C)}),A.size()>l.untreeifyThreshold?p[x]=new u.default(A):A.size()&&(p[x]=A),L.size()>l.untreeifyThreshold?p[x+v]=new u.default(L):L.size()&&(p[x+v]=L)}else{var S=new s.default,T=new s.default;w.forEach(function(C){var I=d(C.key);I&v?T.pushBack(C):S.pushBack(C)}),S.size()&&(p[x]=S),T.size()&&(p[x+v]=T)}g[x].clear()}}),g=p}};this.setElement=function(v,p){var w,x;if(v==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(p==null){this.eraseElementByKey(v);return}var _=d(v)&b-1;if(!g[_])++m,g[_]=new s.default([{key:v,value:p}]);else{var O=g[_].size();if(g[_]instanceof s.default){try{for(var P=a(g[_]),A=P.next();!A.done;A=P.next()){var L=A.value;if(L.key===v){L.value=p;return}}}catch(T){w={error:T}}finally{try{A&&!A.done&&(x=P.return)&&x.call(P)}finally{if(w)throw w.error}}g[_].pushBack({key:v,value:p}),g[_].size()>=l.treeifyThreshold&&(g[_]=new u.default(g[_]))}else g[_].setElement(v,p);var S=g[_].size();m+=S-O}m>b*l.sigma&&y.call(this,b)},this.getElementByKey=function(v){var p,w,x=d(v)&b-1;if(g[x]){if(g[x]instanceof u.default)return g[x].getElementByKey(v);try{for(var _=a(g[x]),O=_.next();!O.done;O=_.next()){var P=O.value;if(P.key===v)return P.value}}catch(A){p={error:A}}finally{try{O&&!O.done&&(w=_.return)&&w.call(_)}finally{if(p)throw p.error}}}},this.eraseElementByKey=function(v){var p,w,x=d(v)&b-1;if(g[x]){var _=g[x].size();if(g[x]instanceof u.default)g[x].eraseElementByKey(v),g[x].size()<=l.untreeifyThreshold&&(g[x]=new s.default(g[x]));else{var O=-1;try{for(var P=a(g[x]),A=P.next();!A.done;A=P.next()){var L=A.value;if(++O,L.key===v){g[x].eraseElementByPos(O);break}}}catch(T){p={error:T}}finally{try{A&&!A.done&&(w=P.return)&&w.call(P)}finally{if(p)throw p.error}}}var S=g[x].size();m+=S-_}},this.find=function(v){var p,w,x=d(v)&b-1;if(!g[x])return!1;if(g[x]instanceof u.default)return g[x].find(v);try{for(var _=a(g[x]),O=_.next();!O.done;O=_.next()){var P=O.value;if(P.key===v)return!0}}catch(A){p={error:A}}finally{try{O&&!O.done&&(w=_.return)&&w.call(_)}finally{if(p)throw p.error}}return!1},this[Symbol.iterator]=function(){return function(){var v,p,w,x,_,O,P;return o(this,function(A){switch(A.label){case 0:v=0,A.label=1;case 1:if(!(v=b)return[3,10];A.label=2;case 2:A.trys.push([2,7,8,9]),p=(O=void 0,a(g[v])),w=p.next(),A.label=3;case 3:return w.done?[3,6]:(x=w.value,[4,x]);case 4:A.sent(),A.label=5;case 5:return w=p.next(),[3,3];case 6:return[3,9];case 7:return _=A.sent(),O={error:_},[3,9];case 8:try{w&&!w.done&&(P=p.return)&&P.call(p)}finally{if(O)throw O.error}return[7];case 9:return++v,[3,1];case 10:return[2]}})}()},c.forEach(function(v){var p=v.key,w=v.value;return h.setElement(p,w)}),Object.freeze(this)}Object.freeze(l),i.default=l},{"../LinkList/LinkList":29,"../Map/Map":30}],28:[function(r,n,i){var o=this&&this.__generator||function(c,f){var d={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},h,m,g,b;return b={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function y(p){return function(w){return v([p,w])}}function v(p){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,m&&(g=p[0]&2?m.return:p[0]?m.throw||((g=m.return)&&g.call(m),0):m.next)&&!(g=g.call(m,p[1])).done)return g;switch(m=0,g&&(p=[p[0]&2,g.value]),p[0]){case 0:case 1:g=p;break;case 4:return d.label++,{value:p[1],done:!1};case 5:d.label++,m=p[1],p=[0];continue;case 7:p=d.ops.pop(),d.trys.pop();continue;default:if(g=d.trys,!(g=g.length>0&&g[g.length-1])&&(p[0]===6||p[0]===2)){d=0;continue}if(p[0]===3&&(!g||p[1]>g[0]&&p[1]=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../Set/Set"),u=r("../LinkList/LinkList");l.initSize=1<<4,l.maxSize=1<<30,l.sigma=.75,l.treeifyThreshold=8,l.untreeifyThreshold=6,l.minTreeifySize=64;function l(c,f,d){var h=this;if(c===void 0&&(c=[]),f===void 0&&(f=l.initSize),d=d||function(v){var p=0,w="";if(typeof v=="number")p=Math.floor(v),p=(p<<5)-p,p=p&p;else{typeof v!="string"?w=JSON.stringify(v):w=v;for(var x=0;x>>16,p},f&f-1)throw new Error("initBucketNum must be 2 to the power of n");var m=0,g=[],b=Math.max(l.initSize,Math.min(l.maxSize,f));this.size=function(){return m},this.empty=function(){return m===0},this.clear=function(){m=0,b=f,g=[]},this.forEach=function(v){var p=0;g.forEach(function(w){w.forEach(function(x){v(x,p++)})})};var y=function(v){if(!(v>=l.maxSize)){b=v*2;var p=[];g.forEach(function(w,x){if(!w.empty()){if(w instanceof u.default&&w.size()===1){var _=w.front();if(_===void 0)throw new Error("unknown error");p[d(_)&b-1]=new u.default([_])}else if(w instanceof s.default){var O=new u.default,P=new u.default;w.forEach(function(S){var T=d(S);T&v?P.pushBack(S):O.pushBack(S)}),O.size()>l.untreeifyThreshold?p[x]=new s.default(O):O.size()&&(p[x]=O),P.size()>l.untreeifyThreshold?p[x+v]=new s.default(P):P.size()&&(p[x+v]=P)}else{var A=new u.default,L=new u.default;w.forEach(function(S){var T=d(S);T&v?L.pushBack(S):A.pushBack(S)}),A.size()&&(p[x]=A),L.size()&&(p[x+v]=L)}g[x].clear()}}),g=p}};this.insert=function(v){if(v==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");var p=d(v)&b-1;if(!g[p])g[p]=new u.default([v]),++m;else{var w=g[p].size();if(g[p]instanceof u.default){if(g[p].find(v))return;g[p].pushBack(v),g[p].size()>=l.treeifyThreshold&&(g[p]=new s.default(g[p]))}else g[p].insert(v);var x=g[p].size();m+=x-w}m>b*l.sigma&&y.call(this,b)},this.eraseElementByValue=function(v){var p=d(v)&b-1;if(g[p]){var w=g[p].size();g[p].eraseElementByValue(v),g[p]instanceof s.default&&g[p].size()<=l.untreeifyThreshold&&(g[p]=new u.default(g[p]));var x=g[p].size();m+=x-w}},this.find=function(v){var p=d(v)&b-1;return g[p]?g[p].find(v):!1},this[Symbol.iterator]=function(){return function(){var v,p,w,x,_,O,P;return o(this,function(A){switch(A.label){case 0:v=0,A.label=1;case 1:if(!(v=b)return[3,10];A.label=2;case 2:A.trys.push([2,7,8,9]),p=(O=void 0,a(g[v])),w=p.next(),A.label=3;case 3:return w.done?[3,6]:(x=w.value,[4,x]);case 4:A.sent(),A.label=5;case 5:return w=p.next(),[3,3];case 6:return[3,9];case 7:return _=A.sent(),O={error:_},[3,9];case 8:try{w&&!w.done&&(P=p.return)&&P.call(p)}finally{if(O)throw O.error}return[7];case 9:return++v,[3,1];case 10:return[2]}})}()},c.forEach(function(v){return h.insert(v)}),Object.freeze(this)}Object.freeze(l),i.default=l},{"../LinkList/LinkList":29,"../Set/Set":33}],29:[function(r,n,i){var o=this&&this.__generator||function(u,l){var c={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},f,d,h,m;return m={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function g(y){return function(v){return b([y,v])}}function b(y){if(f)throw new TypeError("Generator is already executing.");for(;c;)try{if(f=1,d&&(h=y[0]&2?d.return:y[0]?d.throw||((h=d.return)&&h.call(d),0):d.next)&&!(h=h.call(d,y[1])).done)return h;switch(d=0,h&&(y=[y[0]&2,h.value]),y[0]){case 0:case 1:h=y;break;case 4:return c.label++,{value:y[1],done:!1};case 5:c.label++,d=y[1],y=[0];continue;case 7:y=c.ops.pop(),c.trys.pop();continue;default:if(h=c.trys,!(h=h.length>0&&h[h.length-1])&&(y[0]===6||y[0]===2)){c=0;continue}if(y[0]===3&&(!h||y[1]>h[0]&&y[1]=c)throw new Error("pos must more then 0 and less then the list length");for(var m=f;h--&&m;)m=m.next;if(!m||m.value===void 0)throw new Error("unknown error");return m.value},this.eraseElementByPos=function(h){if(h<0||h>=c)throw new Error("erase pos must more then 0 and less then the list length");if(h===0)this.popFront();else if(h===c-1)this.popBack();else{for(var m=f;h--;){if(!(m!=null&&m.next))throw new Error("unknown error");m=m.next}if(!m||!m.pre||!m.next)throw new Error("unknown error");var g=m.pre,b=m.next;b.pre=g,g.next=b,c>0&&--c}},this.eraseElementByValue=function(h){for(;f&&f.value===h;)this.popFront();for(;d&&d.value===h;)this.popBack();if(f)for(var m=f;m;){if(m.value===h){var g=m.pre,b=m.next;b&&(b.pre=g),g&&(g.next=b),c>0&&--c}m=m.next}},this.pushBack=function(h){if(h==null)throw new Error("you can't push null or undefined here");++c;var m=new a(h);d?(d.next=m,m.pre=d,d=m):f=d=m},this.popBack=function(){d&&(c>0&&--c,d&&(f===d?f=d=void 0:(d=d.pre,d&&(d.next=void 0))))},this.setElementByPos=function(h,m){if(m==null)throw new Error("you can't set null or undefined here");if(h<0||h>=c)throw new Error("pos must more then 0 and less then the list length");for(var g=f;h--;){if(!g)throw new Error("unknown error");g=g.next}g&&(g.value=m)},this.insert=function(h,m,g){if(g===void 0&&(g=1),m==null)throw new Error("you can't insert null or undefined here");if(h<0||h>c)throw new Error("insert pos must more then 0 and less then or equal to the list length");if(g<0)throw new Error("insert size must more than 0");if(h===0)for(;g--;)this.pushFront(m);else if(h===c)for(;g--;)this.pushBack(m);else{for(var b=f,y=1;y0&&--c;h.next=m.next,h.next&&(h.next.pre=h),h=h.next}},this.sort=function(h){var m=[];this.forEach(function(b){m.push(b)}),m.sort(h);var g=f;m.forEach(function(b){g&&(g.value=b,g=g.next)})},this.pushFront=function(h){if(h==null)throw new Error("you can't push null or undefined here");++c;var m=new a(h);f?(m.next=f,f.pre=m,f=m):f=d=m},this.popFront=function(){f&&(c>0&&--c,f&&(f===d?f=d=void 0:(f=f.next,f&&(f.pre=void 0))))},this.merge=function(h){var m=this,g=f;h.forEach(function(b){for(;g&&g.value!==void 0&&g.value<=b;)g=g.next;if(g===void 0)m.pushBack(b),g=d;else if(g===f)m.pushFront(b),g=f;else{++c;var y=g.pre;y&&(y.next=new a(b),y.next.pre=y,y.next.next=g,g&&(g.pre=y.next))}})},this[Symbol.iterator]=function(){return function(){var h;return o(this,function(m){switch(m.label){case 0:h=f,m.label=1;case 1:if(h===void 0)return[3,3];if(!h.value)throw new Error("unknown error");return[4,h.value];case 2:return m.sent(),h=h.next,[3,1];case 3:return[2]}})}()},u.forEach(function(h){return l.pushBack(h)}),Object.freeze(this)}Object.freeze(s),i.default=s},{}],30:[function(r,n,i){var o=this&&this.__generator||function(l,c){var f={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,h,m,g;return g={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function b(v){return function(p){return y([v,p])}}function y(v){if(d)throw new TypeError("Generator is already executing.");for(;f;)try{if(d=1,h&&(m=v[0]&2?h.return:v[0]?h.throw||((m=h.return)&&m.call(h),0):h.next)&&!(m=m.call(h,v[1])).done)return m;switch(h=0,m&&(v=[v[0]&2,m.value]),v[0]){case 0:case 1:m=v;break;case 4:return f.label++,{value:v[1],done:!1};case 5:f.label++,h=v[1],v=[0];continue;case 7:v=f.ops.pop(),f.trys.pop();continue;default:if(m=f.trys,!(m=m.length>0&&m[m.length-1])&&(v[0]===6||v[0]===2)){f=0;continue}if(v[0]===3&&(!m||v[1]>m[0]&&v[1]=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../Base/TreeNode");function u(l,c){var f=this;l===void 0&&(l=[]),c=c||function(S,T){return ST?1:0};var d=0,h=new s.default;h.color=s.default.TreeNodeColorType.black,this.size=function(){return d},this.empty=function(){return d===0},this.clear=function(){d=0,h.key=h.value=void 0,h.leftChild=h.rightChild=h.brother=void 0};var m=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.leftChild?m(S.leftChild):S},g=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.rightChild?g(S.rightChild):S};this.front=function(){if(!this.empty()){var S=m(h);if(S.key===void 0||S.value===void 0)throw new Error("unknown error");return{key:S.key,value:S.value}}},this.back=function(){if(!this.empty()){var S=g(h);if(S.key===void 0||S.value===void 0)throw new Error("unknown error");return{key:S.key,value:S.value}}},this.forEach=function(S){var T,C,I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;S(Q,I++)}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}},this.getElementByPos=function(S){var T,C;if(S<0||S>=this.size())throw new Error("pos must more than 0 and less than set's size");var I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;if(I===S)return Q;++I}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}throw new Error("unknown Error")};var b=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C===0?{key:S.key,value:S.value}:C<0?b(S.rightChild,T):b(S.leftChild,T)||{key:S.key,value:S.value}}};this.lowerBound=function(S){return b(h,S)};var y=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C<=0?y(S.rightChild,T):y(S.leftChild,T)||{key:S.key,value:S.value}}};this.upperBound=function(S){return y(h,S)};var v=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C===0?{key:S.key,value:S.value}:C>0?v(S.leftChild,T):v(S.rightChild,T)||{key:S.key,value:S.value}}};this.reverseLowerBound=function(S){return v(h,S)};var p=function(S,T){if(!(!S||S.key===void 0||S.value===void 0)){var C=c(S.key,T);return C>=0?p(S.leftChild,T):p(S.rightChild,T)||{key:S.key,value:S.value}}};this.reverseUpperBound=function(S){return p(h,S)};var w=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(S.color===s.default.TreeNodeColorType.red){S.color=s.default.TreeNodeColorType.black;return}var C=S.brother;if(!C)throw new Error("unknown error");if(S===T.leftChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateLeft();h===T&&(h=I),w(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=T.rotateLeft();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=C.rotateRight();h===C&&(h=I),w(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,w(T))}else if(S===T.rightChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateRight();h===T&&(h=I),w(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=T.rotateRight();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=C.rotateLeft();h===C&&(h=I),w(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,w(T))}},x=function(S){for(var T=S;T.leftChild||T.rightChild;){if(T.rightChild){T=m(T.rightChild);var C=S.key;S.key=T.key,T.key=C;var I=S.value;S.value=T.value,T.value=I,S=T}if(T.leftChild){T=g(T.leftChild);var C=S.key;S.key=T.key,T.key=C;var I=S.value;S.value=T.value,T.value=I,S=T}}w(T),T&&T.remove(),--d,h.color=s.default.TreeNodeColorType.black},_=function(S,T){if(!S||S.key===void 0)return!1;var C=_(S.leftChild,T);return C||T(S)?!0:_(S.rightChild,T)};this.eraseElementByPos=function(S){if(S<0||S>=d)throw new Error("pos must more than 0 and less than set's size");var T=0;_(h,function(C){return S===T?(x(C),!0):(++T,!1)})},this.eraseElementByKey=function(S){if(!this.empty()){var T=A(h,S);T===void 0||T.key===void 0||c(T.key,S)!==0||x(T)}};var O=function(S,T){if(!S||S.key===void 0)throw new Error("unknown error");var C=c(T,S.key);return C<0?S.leftChild?O(S.leftChild,T):(S.leftChild=new s.default,S.leftChild.parent=S,S.leftChild.brother=S.rightChild,S.rightChild&&(S.rightChild.brother=S.leftChild),S.leftChild):C>0?S.rightChild?O(S.rightChild,T):(S.rightChild=new s.default,S.rightChild.parent=S,S.rightChild.brother=S.leftChild,S.leftChild&&(S.leftChild.brother=S.rightChild),S.rightChild):S},P=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(T.color!==s.default.TreeNodeColorType.black&&T.color===s.default.TreeNodeColorType.red){var C=T.brother,I=T.parent;if(!I)throw new Error("unknown error");if(C&&C.color===s.default.TreeNodeColorType.red)C.color=T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red,P(I);else if(!C||C.color===s.default.TreeNodeColorType.black){if(T===I.leftChild){if(S===T.leftChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateRight();I===h&&(h=D)}else if(S===T.rightChild){var D=T.rotateLeft();I===h&&(h=D),P(T)}}else if(T===I.rightChild){if(S===T.leftChild){var D=T.rotateRight();I===h&&(h=D),P(T)}else if(S===T.rightChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateLeft();I===h&&(h=D)}}}}};this.setElement=function(S,T){if(S==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(T==null){this.eraseElementByKey(S);return}if(this.empty()){++d,h.key=S,h.value=T,h.color=s.default.TreeNodeColorType.black;return}var C=O(h,S);if(C.key!==void 0&&c(C.key,S)===0){C.value=T;return}++d,C.key=S,C.value=T,P(C),h.color=s.default.TreeNodeColorType.black};var A=function(S,T){if(!(!S||S.key===void 0)){var C=c(T,S.key);return C<0?A(S.leftChild,T):C>0?A(S.rightChild,T):S}};this.find=function(S){return!!A(h,S)},this.getElementByKey=function(S){var T=A(h,S);if((T==null?void 0:T.key)===void 0||(T==null?void 0:T.value)===void 0)throw new Error("unknown error");return T.value},this.union=function(S){var T=this;S.forEach(function(C){var I=C.key,D=C.value;return T.setElement(I,D)})},this.getHeight=function(){if(this.empty())return 0;var S=function(T){return T?Math.max(S(T.leftChild),S(T.rightChild))+1:1};return S(h)};var L=function(S){return o(this,function(T){switch(T.label){case 0:return!S||S.key===void 0||S.value===void 0?[2]:[5,a(L(S.leftChild))];case 1:return T.sent(),[4,{key:S.key,value:S.value}];case 2:return T.sent(),[5,a(L(S.rightChild))];case 3:return T.sent(),[2]}})};this[Symbol.iterator]=function(){return L(h)},l.forEach(function(S){var T=S.key,C=S.value;return f.setElement(T,C)}),Object.freeze(this)}Object.freeze(u),i.default=u},{"../Base/TreeNode":25}],31:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});function o(a,s){a===void 0&&(a=[]),s=s||function(d,h){return d>h?-1:d=l)throw new Error("unknown error");if(h<0||h>=l)throw new Error("unknown error");var m=u[d];u[d]=u[h],u[h]=m},f=function(d){if(d<0||d>=l)throw new Error("unknown error");var h=d*2+1,m=d*2+2;h0&&c(d,h),m0&&c(d,m)};(function(){for(var d=Math.floor((l-1)/2);d>=0;--d)for(var h=d,m=h*2+1;m0&&(y=b),s(u[h],u[y])<=0)break;c(h,y),h=y,m=h*2+1}})(),this.size=function(){return l},this.empty=function(){return l===0},this.clear=function(){l=0,u.length=0},this.push=function(d){if(u.push(d),++l,l!==1)for(var h=l-1;h>0;){var m=Math.floor((h-1)/2);if(s(u[m],d)<=0)break;f(m),h=m}},this.pop=function(){if(!this.empty()){if(this.size()===1){--l;return}var d=u[l-1];--l;for(var h=0;h=this.size())break;var b=m;if(g0&&(b=g),s(u[b],d)>=0)break;u[h]=u[b],h=b}u[h]=d}},this.top=function(){return u[0]},Object.freeze(this)}Object.freeze(o),i.default=o},{}],32:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});var o=r("../LinkList/LinkList");function a(s){s===void 0&&(s=[]);var u=new o.default(s);this.size=function(){return u.size()},this.empty=function(){return u.empty()},this.clear=function(){u.clear()},this.push=function(l){u.pushBack(l)},this.pop=function(){u.popFront()},this.front=function(){return u.front()},Object.freeze(this)}Object.freeze(a),i.default=a},{"../LinkList/LinkList":29}],33:[function(r,n,i){var o=this&&this.__generator||function(l,c){var f={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,h,m,g;return g={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function b(v){return function(p){return y([v,p])}}function y(v){if(d)throw new TypeError("Generator is already executing.");for(;f;)try{if(d=1,h&&(m=v[0]&2?h.return:v[0]?h.throw||((m=h.return)&&m.call(h),0):h.next)&&!(m=m.call(h,v[1])).done)return m;switch(h=0,m&&(v=[v[0]&2,m.value]),v[0]){case 0:case 1:m=v;break;case 4:return f.label++,{value:v[1],done:!1};case 5:f.label++,h=v[1],v=[0];continue;case 7:v=f.ops.pop(),f.trys.pop();continue;default:if(m=f.trys,!(m=m.length>0&&m[m.length-1])&&(v[0]===6||v[0]===2)){f=0;continue}if(v[0]===3&&(!m||v[1]>m[0]&&v[1]=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var s=r("../Base/TreeNode");function u(l,c){var f=this;l===void 0&&(l=[]),c=c||function(S,T){return ST?1:0};var d=0,h=new s.default;h.color=s.default.TreeNodeColorType.black,this.size=function(){return d},this.empty=function(){return d===0},this.clear=function(){d=0,h.key=void 0,h.leftChild=h.rightChild=h.brother=h.parent=void 0,h.color=s.default.TreeNodeColorType.black};var m=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.leftChild?m(S.leftChild):S},g=function(S){if(!S||S.key===void 0)throw new Error("unknown error");return S.rightChild?g(S.rightChild):S};this.front=function(){if(!this.empty()){var S=m(h);return S.key}},this.back=function(){if(!this.empty()){var S=g(h);return S.key}},this.forEach=function(S){var T,C,I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;S(Q,I++)}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}},this.getElementByPos=function(S){var T,C;if(S<0||S>=this.size())throw new Error("pos must more than 0 and less than set's size");var I=0;try{for(var D=a(this),z=D.next();!z.done;z=D.next()){var Q=z.value;if(I===S)return Q;++I}}catch(R){T={error:R}}finally{try{z&&!z.done&&(C=D.return)&&C.call(D)}finally{if(T)throw T.error}}throw new Error("unknown error")};var b=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(S.color===s.default.TreeNodeColorType.red){S.color=s.default.TreeNodeColorType.black;return}var C=S.brother;if(!C)throw new Error("unknown error");if(S===T.leftChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateLeft();h===T&&(h=I),b(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=T.rotateLeft();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=C.rotateRight();h===C&&(h=I),b(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,b(T))}else if(S===T.rightChild){if(C.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.black,T.color=s.default.TreeNodeColorType.red;var I=T.rotateRight();h===T&&(h=I),b(S)}else if(C.color===s.default.TreeNodeColorType.black)if(C.leftChild&&C.leftChild.color===s.default.TreeNodeColorType.red){C.color=T.color,T.color=s.default.TreeNodeColorType.black,C.leftChild&&(C.leftChild.color=s.default.TreeNodeColorType.black);var I=T.rotateRight();h===T&&(h=I),S.color=s.default.TreeNodeColorType.black}else if((!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&C.rightChild&&C.rightChild.color===s.default.TreeNodeColorType.red){C.color=s.default.TreeNodeColorType.red,C.rightChild&&(C.rightChild.color=s.default.TreeNodeColorType.black);var I=C.rotateLeft();h===C&&(h=I),b(S)}else(!C.leftChild||C.leftChild.color===s.default.TreeNodeColorType.black)&&(!C.rightChild||C.rightChild.color===s.default.TreeNodeColorType.black)&&(C.color=s.default.TreeNodeColorType.red,b(T))}},y=function(S){for(var T=S;T.leftChild||T.rightChild;){if(T.rightChild){T=m(T.rightChild);var C=S.key;S.key=T.key,T.key=C,S=T}if(T.leftChild){T=g(T.leftChild);var C=S.key;S.key=T.key,T.key=C,S=T}}b(T),T&&T.remove(),--d,h.color=s.default.TreeNodeColorType.black},v=function(S,T){if(!S||S.key===void 0)return!1;var C=v(S.leftChild,T);return C||T(S)?!0:v(S.rightChild,T)};this.eraseElementByPos=function(S){if(S<0||S>=d)throw new Error("pos must more than 0 and less than set's size");var T=0;v(h,function(C){return S===T?(y(C),!0):(++T,!1)})},this.eraseElementByValue=function(S){if(!this.empty()){var T=x(h,S);T===void 0||T.key===void 0||c(T.key,S)!==0||y(T)}};var p=function(S,T){if(!S||S.key===void 0)throw new Error("unknown error");var C=c(T,S.key);return C<0?S.leftChild?p(S.leftChild,T):(S.leftChild=new s.default,S.leftChild.parent=S,S.leftChild.brother=S.rightChild,S.rightChild&&(S.rightChild.brother=S.leftChild),S.leftChild):C>0?S.rightChild?p(S.rightChild,T):(S.rightChild=new s.default,S.rightChild.parent=S,S.rightChild.brother=S.leftChild,S.leftChild&&(S.leftChild.brother=S.rightChild),S.rightChild):S},w=function(S){var T=S.parent;if(!T){if(S===h)return;throw new Error("unknown error")}if(T.color!==s.default.TreeNodeColorType.black&&T.color===s.default.TreeNodeColorType.red){var C=T.brother,I=T.parent;if(!I)throw new Error("unknown error");if(C&&C.color===s.default.TreeNodeColorType.red)C.color=T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red,w(I);else if(!C||C.color===s.default.TreeNodeColorType.black){if(T===I.leftChild){if(S===T.leftChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateRight();I===h&&(h=D)}else if(S===T.rightChild){var D=T.rotateLeft();I===h&&(h=D),w(T)}}else if(T===I.rightChild){if(S===T.leftChild){var D=T.rotateRight();I===h&&(h=D),w(T)}else if(S===T.rightChild){T.color=s.default.TreeNodeColorType.black,I.color=s.default.TreeNodeColorType.red;var D=I.rotateLeft();I===h&&(h=D)}}}}};this.insert=function(S){if(S==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(this.empty()){++d,h.key=S,h.color=s.default.TreeNodeColorType.black;return}var T=p(h,S);T.key!==void 0&&c(T.key,S)===0||(++d,T.key=S,w(T),h.color=s.default.TreeNodeColorType.black)};var x=function(S,T){if(!(!S||S.key===void 0)){var C=c(T,S.key);return C<0?x(S.leftChild,T):C>0?x(S.rightChild,T):S}};this.find=function(S){var T=x(h,S);return T!==void 0&&T.key!==void 0&&c(T.key,S)===0};var _=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C===0)return S.key;if(C<0)return _(S.rightChild,T);var I=_(S.leftChild,T);return I!==void 0?I:S.key}};this.lowerBound=function(S){return _(h,S)};var O=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C<=0)return O(S.rightChild,T);var I=O(S.leftChild,T);return I!==void 0?I:S.key}};this.upperBound=function(S){return O(h,S)};var P=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C===0)return S.key;if(C>0)return P(S.leftChild,T);var I=P(S.rightChild,T);return I!==void 0?I:S.key}};this.reverseLowerBound=function(S){return P(h,S)};var A=function(S,T){if(!(!S||S.key===void 0)){var C=c(S.key,T);if(C>=0)return A(S.leftChild,T);var I=A(S.rightChild,T);return I!==void 0?I:S.key}};this.reverseUpperBound=function(S){return A(h,S)},this.union=function(S){var T=this;S.forEach(function(C){return T.insert(C)})},this.getHeight=function(){if(this.empty())return 0;var S=function(T){return T?Math.max(S(T.leftChild),S(T.rightChild))+1:1};return S(h)};var L=function(S){return o(this,function(T){switch(T.label){case 0:return!S||S.key===void 0?[2]:[5,a(L(S.leftChild))];case 1:return T.sent(),[4,S.key];case 2:return T.sent(),[5,a(L(S.rightChild))];case 3:return T.sent(),[2]}})};this[Symbol.iterator]=function(){return L(h)},l.forEach(function(S){return f.insert(S)}),Object.freeze(this)}Object.freeze(u),i.default=u},{"../Base/TreeNode":25}],34:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0});function o(a){var s=this;a===void 0&&(a=[]);var u=0,l=[];this.size=function(){return u},this.empty=function(){return u===0},this.clear=function(){u=0,l.length=0},this.push=function(c){l.push(c),++u},this.pop=function(){l.pop(),u>0&&--u},this.top=function(){return l[u-1]},a.forEach(function(c){return s.push(c)}),Object.freeze(this)}Object.freeze(o),i.default=o},{}],35:[function(r,n,i){var o=this&&this.__generator||function(c,f){var d={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},h,m,g,b;return b={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function y(p){return function(w){return v([p,w])}}function v(p){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,m&&(g=p[0]&2?m.return:p[0]?m.throw||((g=m.return)&&g.call(m),0):m.next)&&!(g=g.call(m,p[1])).done)return g;switch(m=0,g&&(p=[p[0]&2,g.value]),p[0]){case 0:case 1:g=p;break;case 4:return d.label++,{value:p[1],done:!1};case 5:d.label++,m=p[1],p=[0];continue;case 7:p=d.ops.pop(),d.trys.pop();continue;default:if(g=d.trys,!(g=g.length>0&&g[g.length-1])&&(p[0]===6||p[0]===2)){d=0;continue}if(p[0]===3&&(!g||p[1]>g[0]&&p[1]0)&&!(m=h.next()).done;)g.push(m.value)}catch(y){b={error:y}}finally{try{m&&!m.done&&(d=h.return)&&d.call(h)}finally{if(b)throw b.error}}return g},s=this&&this.__spreadArray||function(c,f,d){if(d||arguments.length===2)for(var h=0,m=f.length,g;h=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});function l(c){var f=this;c===void 0&&(c=[]);var d=0,h=[];this.size=function(){return d},this.empty=function(){return d===0},this.clear=function(){d=0,h.length=0},this.front=function(){if(!this.empty())return h[0]},this.back=function(){if(!this.empty())return h[d-1]},this.forEach=function(m){h.forEach(m)},this.getElementByPos=function(m){if(m<0||m>=d)throw new Error("pos must more than 0 and less than vector's size");return h[m]},this.eraseElementByPos=function(m){if(m<0||m>=d)throw new Error("pos must more than 0 and less than vector's size");for(var g=m;gb;)this.popBack()},this.pushBack=function(m){h.push(m),++d},this.popBack=function(){h.pop(),d>0&&--d},this.setElementByPos=function(m,g){if(m<0||m>=d)throw new Error("pos must more than 0 and less than vector's size");h[m]=g},this.insert=function(m,g,b){if(b===void 0&&(b=1),m<0||m>d)throw new Error("pos must more than 0 and less than or equal to vector's size");h.splice.apply(h,s([m,0],a(new Array(b).fill(g)),!1)),d+=b},this.find=function(m){return h.includes(m)},this.reverse=function(){h.reverse()},this.unique=function(){var m,g=[];this.forEach(function(y,v){(v===0||y!==m)&&(g.push(y),m=y)}),g.forEach(function(y,v){h[v]=y});for(var b=g.length;d>b;)this.popBack()},this.sort=function(m){h.sort(m)},this[Symbol.iterator]=function(){return function(){return o(this,function(m){switch(m.label){case 0:return[5,u(h)];case 1:return[2,m.sent()]}})}()},c.forEach(function(m){return f.pushBack(m)}),Object.freeze(this)}Object.freeze(l),i.default=l},{}],36:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.HashMap=i.HashSet=i.Map=i.Set=i.PriorityQueue=i.Deque=i.LinkList=i.Queue=i.Stack=i.Vector=void 0;var o=r("./Vector/Vector");i.Vector=o.default;var a=r("./Stack/Stack");i.Stack=a.default;var s=r("./Queue/Queue");i.Queue=s.default;var u=r("./LinkList/LinkList");i.LinkList=u.default;var l=r("./Deque/Deque");i.Deque=l.default;var c=r("./PriorityQueue/PriorityQueue");i.PriorityQueue=c.default;var f=r("./Set/Set");i.Set=f.default;var d=r("./Map/Map");i.Map=d.default;var h=r("./HashSet/HashSet");i.HashSet=h.default;var m=r("./HashMap/HashMap");i.HashMap=m.default},{"./Deque/Deque":26,"./HashMap/HashMap":27,"./HashSet/HashSet":28,"./LinkList/LinkList":29,"./Map/Map":30,"./PriorityQueue/PriorityQueue":31,"./Queue/Queue":32,"./Set/Set":33,"./Stack/Stack":34,"./Vector/Vector":35}],37:[function(r,n,i){const o=r("yallist"),a=Symbol("max"),s=Symbol("length"),u=Symbol("lengthCalculator"),l=Symbol("allowStale"),c=Symbol("maxAge"),f=Symbol("dispose"),d=Symbol("noDisposeOnSet"),h=Symbol("lruList"),m=Symbol("cache"),g=Symbol("updateAgeOnGet"),b=()=>1;class y{constructor(A){if(typeof A=="number"&&(A={max:A}),A||(A={}),A.max&&(typeof A.max!="number"||A.max<0))throw new TypeError("max must be a non-negative number");this[a]=A.max||1/0;const L=A.length||b;if(this[u]=typeof L!="function"?b:L,this[l]=A.stale||!1,A.maxAge&&typeof A.maxAge!="number")throw new TypeError("maxAge must be a number");this[c]=A.maxAge||0,this[f]=A.dispose,this[d]=A.noDisposeOnSet||!1,this[g]=A.updateAgeOnGet||!1,this.reset()}set max(A){if(typeof A!="number"||A<0)throw new TypeError("max must be a non-negative number");this[a]=A||1/0,w(this)}get max(){return this[a]}set allowStale(A){this[l]=!!A}get allowStale(){return this[l]}set maxAge(A){if(typeof A!="number")throw new TypeError("maxAge must be a non-negative number");this[c]=A,w(this)}get maxAge(){return this[c]}set lengthCalculator(A){typeof A!="function"&&(A=b),A!==this[u]&&(this[u]=A,this[s]=0,this[h].forEach(L=>{L.length=this[u](L.value,L.key),this[s]+=L.length})),w(this)}get lengthCalculator(){return this[u]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(A,L){L=L||this;for(let S=this[h].tail;S!==null;){const T=S.prev;O(this,A,S,L),S=T}}forEach(A,L){L=L||this;for(let S=this[h].head;S!==null;){const T=S.next;O(this,A,S,L),S=T}}keys(){return this[h].toArray().map(A=>A.key)}values(){return this[h].toArray().map(A=>A.value)}reset(){this[f]&&this[h]&&this[h].length&&this[h].forEach(A=>this[f](A.key,A.value)),this[m]=new Map,this[h]=new o,this[s]=0}dump(){return this[h].map(A=>p(this,A)?!1:{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A)}dumpLru(){return this[h]}set(A,L,S){if(S=S||this[c],S&&typeof S!="number")throw new TypeError("maxAge must be a number");const T=S?Date.now():0,C=this[u](L,A);if(this[m].has(A)){if(C>this[a])return x(this,this[m].get(A)),!1;const z=this[m].get(A).value;return this[f]&&(this[d]||this[f](A,z.value)),z.now=T,z.maxAge=S,z.value=L,this[s]+=C-z.length,z.length=C,this.get(A),w(this),!0}const I=new _(A,L,C,T,S);return I.length>this[a]?(this[f]&&this[f](A,L),!1):(this[s]+=I.length,this[h].unshift(I),this[m].set(A,this[h].head),w(this),!0)}has(A){if(!this[m].has(A))return!1;const L=this[m].get(A).value;return!p(this,L)}get(A){return v(this,A,!0)}peek(A){return v(this,A,!1)}pop(){const A=this[h].tail;return A?(x(this,A),A.value):null}del(A){x(this,this[m].get(A))}load(A){this.reset();const L=Date.now();for(let S=A.length-1;S>=0;S--){const T=A[S],C=T.e||0;if(C===0)this.set(T.k,T.v);else{const I=C-L;I>0&&this.set(T.k,T.v,I)}}}prune(){this[m].forEach((A,L)=>v(this,L,!1))}}const v=(P,A,L)=>{const S=P[m].get(A);if(S){const T=S.value;if(p(P,T)){if(x(P,S),!P[l])return}else L&&(P[g]&&(S.value.now=Date.now()),P[h].unshiftNode(S));return T.value}},p=(P,A)=>{if(!A||!A.maxAge&&!P[c])return!1;const L=Date.now()-A.now;return A.maxAge?L>A.maxAge:P[c]&&L>P[c]},w=P=>{if(P[s]>P[a])for(let A=P[h].tail;P[s]>P[a]&&A!==null;){const L=A.prev;x(P,A),A=L}},x=(P,A)=>{if(A){const L=A.value;P[f]&&P[f](L.key,L.value),P[s]-=L.length,P[m].delete(L.key),P[h].removeNode(A)}};class _{constructor(A,L,S,T,C){this.key=A,this.value=L,this.length=S,this.now=T,this.maxAge=C||0}}const O=(P,A,L,S)=>{let T=L.value;p(P,T)&&(x(P,L),P[l]||(T=void 0)),T&&A.call(S,T.value,T.key,P)};n.exports=y},{yallist:83}],38:[function(r,n,i){(function(o){(function(){const a=n.exports;a.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},a.codes={};for(const u in a.types){const l=a.types[u];a.codes[l]=u}a.CMD_SHIFT=4,a.CMD_MASK=240,a.DUP_MASK=8,a.QOS_MASK=3,a.QOS_SHIFT=1,a.RETAIN_MASK=1,a.VARBYTEINT_MASK=127,a.VARBYTEINT_FIN_MASK=128,a.VARBYTEINT_MAX=268435455,a.SESSIONPRESENT_MASK=1,a.SESSIONPRESENT_HEADER=o.from([a.SESSIONPRESENT_MASK]),a.CONNACK_HEADER=o.from([a.codes.connack<[0,1].map(c=>[0,1].map(f=>{const d=o.alloc(1);return d.writeUInt8(a.codes[u]<o.from([u])),a.EMPTY={pingreq:o.from([a.codes.pingreq<<4,0]),pingresp:o.from([a.codes.pingresp<<4,0]),disconnect:o.from([a.codes.disconnect<<4,0])}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],39:[function(r,n,i){(function(o){(function(){const a=r("./writeToStream"),s=r("events");function u(c,f){const d=new l;return a(c,d,f),d.concat()}class l extends s{constructor(){super(),this._array=new Array(20),this._i=0}write(f){return this._array[this._i++]=f,!0}concat(){let f=0;const d=new Array(this._array.length),h=this._array;let m=0,g;for(g=0;g>8,0),m.writeUInt8(h&255,0+1),m}function c(){for(let h=0;h<65536;h++)s[h]=l(h)}function f(h){let g=0,b=0;const y=o.allocUnsafe(4);do g=h%128|0,h=h/128|0,h>0&&(g=g|128),y.writeUInt8(g,b++);while(h>0&&b<4);return h>0&&(b=0),u?y.subarray(0,b):y.slice(0,b)}function d(h){const m=o.allocUnsafe(4);return m.writeUInt32BE(h,0),m}n.exports={cache:s,generateCache:c,generateNumber:l,genBufVariableByteInt:f,generate4ByteBuffer:d}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],42:[function(r,n,i){class o{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}n.exports=o},{}],43:[function(r,n,i){const o=r("bl"),a=r("events"),s=r("./packet"),u=r("./constants"),l=r("debug")("mqtt-packet:parser");class c extends a{constructor(){super(),this.parser=this.constructor.parser}static parser(d){return this instanceof c?(this.settings=d||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new c().parser(d)}_resetState(){l("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new s,this.error=null,this._list=o(),this._stateCounter=0}parse(d){for(this.error&&this._resetState(),this._list.append(d),l("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,l("parse: state complete. _stateCounter is now: %d",this._stateCounter),l("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return l("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const d=this._list.readUInt8(0);return this.packet.cmd=u.types[d>>u.CMD_SHIFT],this.packet.retain=(d&u.RETAIN_MASK)!==0,this.packet.qos=d>>u.QOS_SHIFT&u.QOS_MASK,this.packet.dup=(d&u.DUP_MASK)!==0,l("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const d=this._parseVarByteNum(!0);return d&&(this.packet.length=d.value,this._list.consume(d.bytes)),l("_parseLength %d",d.value),!!d}_parsePayload(){l("_parsePayload: payload %O",this._list);let d=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}d=!0}return l("_parsePayload complete result: %s",d),d}_parseConnect(){l("_parseConnect");let d,h,m,g;const b={},y=this.packet,v=this._parseString();if(v===null)return this._emitError(new Error("Cannot parse protocolId"));if(v!=="MQTT"&&v!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(y.protocolId=v,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(y.protocolVersion=this._list.readUInt8(this._pos),y.protocolVersion>=128&&(y.bridgeMode=!0,y.protocolVersion=y.protocolVersion-128),y.protocolVersion!==3&&y.protocolVersion!==4&&y.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(b.username=this._list.readUInt8(this._pos)&u.USERNAME_MASK,b.password=this._list.readUInt8(this._pos)&u.PASSWORD_MASK,b.will=this._list.readUInt8(this._pos)&u.WILL_FLAG_MASK,b.will&&(y.will={},y.will.retain=(this._list.readUInt8(this._pos)&u.WILL_RETAIN_MASK)!==0,y.will.qos=(this._list.readUInt8(this._pos)&u.WILL_QOS_MASK)>>u.WILL_QOS_SHIFT),y.clean=(this._list.readUInt8(this._pos)&u.CLEAN_SESSION_MASK)!==0,this._pos++,y.keepalive=this._parseNum(),y.keepalive===-1)return this._emitError(new Error("Packet too short"));if(y.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(y.properties=w)}const p=this._parseString();if(p===null)return this._emitError(new Error("Packet too short"));if(y.clientId=p,l("_parseConnect: packet.clientId: %s",y.clientId),b.will){if(y.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(y.will.properties=w)}if(d=this._parseString(),d===null)return this._emitError(new Error("Cannot parse will topic"));if(y.will.topic=d,l("_parseConnect: packet.will.topic: %s",y.will.topic),h=this._parseBuffer(),h===null)return this._emitError(new Error("Cannot parse will payload"));y.will.payload=h,l("_parseConnect: packet.will.paylaod: %s",y.will.payload)}if(b.username){if(g=this._parseString(),g===null)return this._emitError(new Error("Cannot parse username"));y.username=g,l("_parseConnect: packet.username: %s",y.username)}if(b.password){if(m=this._parseBuffer(),m===null)return this._emitError(new Error("Cannot parse password"));y.password=m}return this.settings=y,l("_parseConnect: complete"),y}_parseConnack(){l("_parseConnack");const d=this.packet;if(this._list.length<1)return null;if(d.sessionPresent=!!(this._list.readUInt8(this._pos++)&u.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?d.reasonCode=this._list.readUInt8(this._pos++):d.reasonCode=0;else{if(this._list.length<2)return null;d.returnCode=this._list.readUInt8(this._pos++)}if(d.returnCode===-1||d.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}l("_parseConnack: complete")}_parsePublish(){l("_parsePublish");const d=this.packet;if(d.topic=this._parseString(),d.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(d.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}d.payload=this._list.slice(this._pos,d.length),l("_parsePublish: payload from buffer list: %o",d.payload)}}_parseSubscribe(){l("_parseSubscribe");const d=this.packet;let h,m,g,b,y,v,p;if(d.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(d.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(d.properties=w)}for(;this._pos=d.length)return this._emitError(new Error("Malformed Subscribe Payload"));m=this._parseByte(),g=m&u.SUBSCRIBE_OPTIONS_QOS_MASK,v=(m>>u.SUBSCRIBE_OPTIONS_NL_SHIFT&u.SUBSCRIBE_OPTIONS_NL_MASK)!==0,y=(m>>u.SUBSCRIBE_OPTIONS_RAP_SHIFT&u.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,b=m>>u.SUBSCRIBE_OPTIONS_RH_SHIFT&u.SUBSCRIBE_OPTIONS_RH_MASK,p={topic:h,qos:g},this.settings.protocolVersion===5?(p.nl=v,p.rap=y,p.rh=b):this.settings.bridgeMode&&(p.rh=0,p.rap=!0,p.nl=!0),l("_parseSubscribe: push subscription `%s` to subscription",p),d.subscriptions.push(p)}}}_parseSuback(){l("_parseSuback");const d=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}for(;this._pos2?(d.reasonCode=this._parseByte(),l("_parseConfirmation: packet.reasonCode `%d`",d.reasonCode)):d.reasonCode=0,d.length>3)){const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}return!0}_parseDisconnect(){const d=this.packet;if(l("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?d.reasonCode=this._parseByte():d.reasonCode=0;const h=this._parseProperties();Object.getOwnPropertyNames(h).length&&(d.properties=h)}return l("_parseDisconnect result: true"),!0}_parseAuth(){l("_parseAuth");const d=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));d.reasonCode=this._parseByte();const h=this._parseProperties();return Object.getOwnPropertyNames(h).length&&(d.properties=h),l("_parseAuth: result: true"),!0}_parseMessageId(){const d=this.packet;return d.messageId=this._parseNum(),d.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(l("_parseMessageId: packet.messageId %d",d.messageId),!0)}_parseString(d){const h=this._parseNum(),m=h+this._pos;if(h===-1||m>this._list.length||m>this.packet.length)return null;const g=this._list.toString("utf8",this._pos,m);return this._pos+=h,l("_parseString: result: %s",g),g}_parseStringPair(){return l("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const d=this._parseNum(),h=d+this._pos;if(d===-1||h>this._list.length||h>this.packet.length)return null;const m=this._list.slice(this._pos,h);return this._pos+=d,l("_parseBuffer: result: %o",m),m}_parseNum(){if(this._list.length-this._pos<2)return-1;const d=this._list.readUInt16BE(this._pos);return this._pos+=2,l("_parseNum: result: %s",d),d}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const d=this._list.readUInt32BE(this._pos);return this._pos+=4,l("_parse4ByteNum: result: %s",d),d}_parseVarByteNum(d){l("_parseVarByteNum");const h=4;let m=0,g=1,b=0,y=!1,v;const p=this._pos?this._pos:0;for(;m=m&&this._emitError(new Error("Invalid variable byte integer")),p&&(this._pos+=m),y=y?d?{bytes:m,value:b}:b:!1,l("_parseVarByteNum: result: %o",y),y}_parseByte(){let d;return this._pos=4)&&(U||ae))F+=o.byteLength(U)+2;else{if(Z<4)return V.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(ae*1===0)return V.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof j!="number"||j<0||j>65535||j%1!==0)return V.emit("error",new Error("Invalid keepalive")),!1;if(F+=2,F+=1,Z===5){var G=Y(V,k);if(!G)return!1;F+=G.length}if(ee){if(typeof ee!="object")return V.emit("error",new Error("Invalid will")),!1;if(!ee.topic||typeof ee.topic!="string")return V.emit("error",new Error("Invalid will topic")),!1;if(F+=o.byteLength(ee.topic)+2,F+=2,ee.payload)if(ee.payload.length>=0)typeof ee.payload=="string"?F+=o.byteLength(ee.payload):F+=ee.payload.length;else return V.emit("error",new Error("Invalid will payload")),!1;var ue={};if(Z===5){if(ue=Y(V,ee.properties),!ue)return!1;F+=ue.length}}let le=!1;if(M!=null)if(se(M))le=!0,F+=o.byteLength(M)+2;else return V.emit("error",new Error("Invalid username")),!1;if(E!=null){if(!le)return V.emit("error",new Error("Username is required to use password")),!1;if(se(E))F+=fe(E)+2;else return V.emit("error",new Error("Invalid password")),!1}V.write(a.CONNECT_HEADER),Q(V,F),oe(V,H),W.bridgeMode&&(Z+=128),V.write(Z===131?a.VERSION131:Z===132?a.VERSION132:Z===4?a.VERSION4:Z===5?a.VERSION5:a.VERSION3);let pe=0;return pe|=M!=null?a.USERNAME_MASK:0,pe|=E!=null?a.PASSWORD_MASK:0,pe|=ee&&ee.retain?a.WILL_RETAIN_MASK:0,pe|=ee&&ee.qos?ee.qos<0&&y(V,U),k!=null&&k.write(),f("publish: payload: %o",j),V.write(j)}function P(X,V,te){const W=te?te.protocolVersion:4,H=X||{},Z=H.cmd||"puback",ee=H.messageId,ae=H.dup&&Z==="pubrel"?a.DUP_MASK:0;let j=0;const U=H.reasonCode,M=H.properties;let E=W===5?3:2;if(Z==="pubrel"&&(j=1),typeof ee!="number")return V.emit("error",new Error("Invalid messageId")),!1;let k=null;if(W===5&&typeof M=="object"){if(k=K(V,M,te,E),!k)return!1;E+=k.length}return V.write(a.ACKS[Z][j][ae][0]),Q(V,E),y(V,ee),W===5&&V.write(o.from([U])),k!==null&&k.write(),!0}function A(X,V,te){f("subscribe: packet: ");const W=te?te.protocolVersion:4,H=X||{},Z=H.dup?a.DUP_MASK:0,ee=H.messageId,ae=H.subscriptions,j=H.properties;let U=0;if(typeof ee!="number")return V.emit("error",new Error("Invalid messageId")),!1;U+=2;let M=null;if(W===5){if(M=Y(V,j),!M)return!1;U+=M.length}if(typeof ae=="object"&&ae.length)for(let k=0;k2)return V.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}U+=o.byteLength(F)+2+1}else return V.emit("error",new Error("Invalid subscriptions")),!1;f("subscribe: writing to stream: %o",a.SUBSCRIBE_HEADER),V.write(a.SUBSCRIBE_HEADER[1][Z?1:0][0]),Q(V,U),y(V,ee),M!==null&&M.write();let E=!0;for(const k of ae){const F=k.topic,G=k.qos,ue=+k.nl,le=+k.rap,pe=k.rh;let ge;R(V,F),ge=a.SUBSCRIBE_OPTIONS_QOS[G],W===5&&(ge|=ue?a.SUBSCRIBE_OPTIONS_NL:0,ge|=le?a.SUBSCRIBE_OPTIONS_RAP:0,ge|=pe?a.SUBSCRIBE_OPTIONS_RH[pe]:0),E=V.write(o.from([ge]))}return E}function L(X,V,te){const W=te?te.protocolVersion:4,H=X||{},Z=H.messageId,ee=H.granted,ae=H.properties;let j=0;if(typeof Z!="number")return V.emit("error",new Error("Invalid messageId")),!1;if(j+=2,typeof ee=="object"&&ee.length)for(let M=0;Ma.VARBYTEINT_MAX)return X.emit("error",new Error(`Invalid variable byte integer: ${V}`)),!1;let te=z[V];return te||(te=g(V),V<16384&&(z[V]=te)),f("writeVarByteInt: writing to stream: %o",te),X.write(te)}function R(X,V){const te=o.byteLength(V);return y(X,te),f("writeString: %s",V),X.write(V,"utf8")}function N(X,V,te){R(X,V),R(X,te)}function B(X,V){return f("writeNumberCached: number: %d",V),f("writeNumberCached: %o",d[V]),X.write(d[V])}function q(X,V){const te=h(V);return f("writeNumberGenerated: %o",te),X.write(te)}function re(X,V){const te=b(V);return f("write4ByteNumber: %o",te),X.write(te)}function oe(X,V){typeof V=="string"?R(X,V):V?(y(X,V.length),X.write(V)):y(X,0)}function Y(X,V){if(typeof V!="object"||V.length!=null)return{length:1,write(){ne(X,{},0)}};let te=0;function W(Z,ee){const ae=a.propertiesTypes[Z];let j=0;switch(ae){case"byte":{if(typeof ee!="boolean")return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+1;break}case"int8":{if(typeof ee!="number"||ee<0||ee>255)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+1;break}case"binary":{if(ee&&ee===null)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+o.byteLength(ee)+2;break}case"int16":{if(typeof ee!="number"||ee<0||ee>65535)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+2;break}case"int32":{if(typeof ee!="number"||ee<0||ee>4294967295)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+4;break}case"var":{if(typeof ee!="number"||ee<0||ee>268435455)return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+o.byteLength(g(ee));break}case"string":{if(typeof ee!="string")return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=1+2+o.byteLength(ee.toString());break}case"pair":{if(typeof ee!="object")return X.emit("error",new Error(`Invalid ${Z}: ${ee}`)),!1;j+=Object.getOwnPropertyNames(ee).reduce((U,M)=>{const E=ee[M];return Array.isArray(E)?U+=E.reduce((k,F)=>(k+=1+2+o.byteLength(M.toString())+2+o.byteLength(F.toString()),k),0):U+=1+2+o.byteLength(M.toString())+2+o.byteLength(ee[M].toString()),U},0);break}default:return X.emit("error",new Error(`Invalid property ${Z}: ${ee}`)),!1}return j}if(V)for(const Z in V){let ee=0,ae=0;const j=V[Z];if(Array.isArray(j))for(let U=0;UZ;){const ae=H.shift();if(ae&&V[ae])delete V[ae],ee=Y(X,V);else return!1}return ee}function ie(X,V,te){switch(a.propertiesTypes[V]){case"byte":{X.write(o.from([a.properties[V]])),X.write(o.from([+te]));break}case"int8":{X.write(o.from([a.properties[V]])),X.write(o.from([te]));break}case"binary":{X.write(o.from([a.properties[V]])),oe(X,te);break}case"int16":{X.write(o.from([a.properties[V]])),y(X,te);break}case"int32":{X.write(o.from([a.properties[V]])),re(X,te);break}case"var":{X.write(o.from([a.properties[V]])),Q(X,te);break}case"string":{X.write(o.from([a.properties[V]])),R(X,te);break}case"pair":{Object.getOwnPropertyNames(te).forEach(H=>{const Z=te[H];Array.isArray(Z)?Z.forEach(ee=>{X.write(o.from([a.properties[V]])),N(X,H.toString(),ee.toString())}):(X.write(o.from([a.properties[V]])),N(X,H.toString(),Z.toString()))});break}default:return X.emit("error",new Error(`Invalid property ${V} value: ${te}`)),!1}}function ne(X,V,te){Q(X,te);for(const W in V)if(Object.prototype.hasOwnProperty.call(V,W)&&V[W]!==null){const H=V[W];if(Array.isArray(H))for(let Z=0;Z0)return f(g);if(y==="number"&&isFinite(g))return b.long?h(g):d(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function f(g){if(g=String(g),!(g.length>100)){var b=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(b){var y=parseFloat(b[1]),v=(b[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return y*c;case"weeks":case"week":case"w":return y*l;case"days":case"day":case"d":return y*u;case"hours":case"hour":case"hrs":case"hr":case"h":return y*s;case"minutes":case"minute":case"mins":case"min":case"m":return y*a;case"seconds":case"second":case"secs":case"sec":case"s":return y*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function d(g){var b=Math.abs(g);return b>=u?Math.round(g/u)+"d":b>=s?Math.round(g/s)+"h":b>=a?Math.round(g/a)+"m":b>=o?Math.round(g/o)+"s":g+"ms"}function h(g){var b=Math.abs(g);return b>=u?m(g,b,u,"day"):b>=s?m(g,b,s,"hour"):b>=a?m(g,b,a,"minute"):b>=o?m(g,b,o,"second"):g+" ms"}function m(g,b,y,v){var p=b>=y*1.5;return Math.round(g/y)+" "+v+(p?"s":"")}},{}],46:[function(r,n,i){const o=r("./lib/number-allocator.js");n.exports.NumberAllocator=o},{"./lib/number-allocator.js":47}],47:[function(r,n,i){const o=r("js-sdsl").Set,a=r("debug")("number-allocator:trace"),s=r("debug")("number-allocator:error");function u(c,f){this.low=c,this.high=f}u.prototype.equals=function(c){return this.low===c.low&&this.high===c.high},u.prototype.compare=function(c){return this.lowd.compare(h)),a("Create"),this.clear()}l.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},l.prototype.alloc=function(){if(this.ss.size()===0)return a("alloc():empty"),null;const c=this.ss.front(),f=c.low;return f+1<=c.high?++c.low:this.ss.eraseElementByPos(0),a("alloc():"+f),f},l.prototype.use=function(c){const f=new u(c,c),d=this.ss.lowerBound(f);if(d){if(d.equals(f))return this.ss.eraseElementByValue(d),a("use():"+c),!0;if(d.low>c)return!1;if(d.low===c)return++d.low,a("use():"+c),!0;if(d.high===c)return--d.high,a("use():"+c),!0;const h=d.low;return d.low=c+1,this.ss.insert(new u(h,c-1)),a("use():"+c),!0}return a("use():failed"),!1},l.prototype.free=function(c){if(cthis.max){s("free():"+c+" is out of range");return}const f=new u(c,c),d=this.ss.lowerBound(f);if(d){if(d.low<=c&&c<=d.high){s("free():"+c+" has already been vacant");return}if(d===this.ss.front())c+1===d.low?--d.low:this.ss.insert(f);else{const h=this.ss.reverseLowerBound(f);h.high+1===c?c+1===d.low?(this.ss.eraseElementByValue(h),d.low=h.low):h.high=c:c+1===d.low?d.low=c:this.ss.insert(f)}}else{if(d===this.ss.front()){this.ss.insert(f);return}const h=this.ss.reverseLowerBound(f);h.high+1===c?h.high=c:this.ss.insert(f)}a("free():"+c)},l.prototype.clear=function(){a("clear()"),this.ss.clear(),this.ss.insert(new u(this.min,this.max))},l.prototype.intervalCount=function(){return this.ss.size()},l.prototype.dump=function(){console.log("length:"+this.ss.size());for(const c of this.ss)console.log(c)},n.exports=l},{debug:18,"js-sdsl":36}],48:[function(r,n,i){var o=r("wrappy");n.exports=o(a),n.exports.strict=o(s),a.proto=a(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function a(u){var l=function(){return l.called?l.value:(l.called=!0,l.value=u.apply(this,arguments))};return l.called=!1,l}function s(u){var l=function(){if(l.called)throw new Error(l.onceError);return l.called=!0,l.value=u.apply(this,arguments)},c=u.name||"Function wrapped with `once`";return l.onceError=c+" shouldn't be called more than once",l.called=!1,l}},{wrappy:79}],49:[function(r,n,i){(function(o){(function(){typeof o>"u"||!o.version||o.version.indexOf("v0.")===0||o.version.indexOf("v1.")===0&&o.version.indexOf("v1.8.")!==0?n.exports={nextTick:a}:n.exports=o;function a(s,u,l,c){if(typeof s!="function")throw new TypeError('"callback" argument must be a function');var f=arguments.length,d,h;switch(f){case 0:case 1:return o.nextTick(s);case 2:return o.nextTick(function(){s.call(null,u)});case 3:return o.nextTick(function(){s.call(null,u,l)});case 4:return o.nextTick(function(){s.call(null,u,l,c)});default:for(d=new Array(f-1),h=0;h1)for(var _=1;_= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=d-h,A=Math.floor,L=String.fromCharCode,S;function T(Y){throw new RangeError(O[Y])}function C(Y,K){for(var ie=Y.length,ne=[];ie--;)ne[ie]=K(Y[ie]);return ne}function I(Y,K){var ie=Y.split("@"),ne="";ie.length>1&&(ne=ie[0]+"@",Y=ie[1]),Y=Y.replace(_,".");var fe=Y.split("."),se=C(fe,K).join(".");return ne+se}function D(Y){for(var K=[],ie=0,ne=Y.length,fe,se;ie=55296&&fe<=56319&&ie65535&&(K-=65536,ie+=L(K>>>10&1023|55296),K=56320|K&1023),ie+=L(K),ie}).join("")}function Q(Y){return Y-48<10?Y-22:Y-65<26?Y-65:Y-97<26?Y-97:d}function R(Y,K){return Y+22+75*(Y<26)-((K!=0)<<5)}function N(Y,K,ie){var ne=0;for(Y=ie?A(Y/b):Y>>1,Y+=A(Y/K);Y>P*m>>1;ne+=d)Y=A(Y/P);return A(ne+(P+1)*Y/(Y+g))}function B(Y){var K=[],ie=Y.length,ne,fe=0,se=v,X=y,V,te,W,H,Z,ee,ae,j,U;for(V=Y.lastIndexOf(p),V<0&&(V=0),te=0;te=128&&T("not-basic"),K.push(Y.charCodeAt(te));for(W=V>0?V+1:0;W=ie&&T("invalid-input"),ae=Q(Y.charCodeAt(W++)),(ae>=d||ae>A((f-fe)/Z))&&T("overflow"),fe+=ae*Z,j=ee<=X?h:ee>=X+m?m:ee-X,!(aeA(f/U)&&T("overflow"),Z*=U;ne=K.length+1,X=N(fe-H,ne,H==0),A(fe/ne)>f-se&&T("overflow"),se+=A(fe/ne),fe%=ne,K.splice(fe++,0,se)}return z(K)}function q(Y){var K,ie,ne,fe,se,X,V,te,W,H,Z,ee=[],ae,j,U,M;for(Y=D(Y),ae=Y.length,K=v,ie=0,se=y,X=0;X=K&&ZA((f-ie)/j)&&T("overflow"),ie+=(V-K)*j,K=V,X=0;Xf&&T("overflow"),Z==K){for(te=ie,W=d;H=W<=se?h:W>=se+m?m:W-se,!(te0&&m>h&&(m=h);for(var g=0;g=0?(v=b.substr(0,y),p=b.substr(y+1)):(v=b,p=""),w=decodeURIComponent(v),x=decodeURIComponent(p),o(f,w)?a(f[w])?f[w].push(x):f[w]=[f[w],x]:f[w]=x}return f};var a=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"}},{}],53:[function(r,n,i){var o=function(l){switch(typeof l){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};n.exports=function(l,c,f,d){return c=c||"&",f=f||"=",l===null&&(l=void 0),typeof l=="object"?s(u(l),function(h){var m=encodeURIComponent(o(h))+f;return a(l[h])?s(l[h],function(g){return m+encodeURIComponent(o(g))}).join(c):m+encodeURIComponent(o(l[h]))}).join(c):d?encodeURIComponent(o(d))+f+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function s(l,c){if(l.map)return l.map(c);for(var f=[],d=0;d2?"one of ".concat(h," ").concat(d.slice(0,m-1).join(", "),", or ")+d[m-1]:m===2?"one of ".concat(h," ").concat(d[0]," or ").concat(d[1]):"of ".concat(h," ").concat(d[0])}else return"of ".concat(h," ").concat(String(d))}function l(d,h,m){return d.substr(!m||m<0?0:+m,h.length)===h}function c(d,h,m){return(m===void 0||m>d.length)&&(m=d.length),d.substring(m-h.length,m)===h}function f(d,h,m){return typeof m!="number"&&(m=0),m+h.length>d.length?!1:d.indexOf(h,m)!==-1}s("ERR_INVALID_OPT_VALUE",function(d,h){return'The value "'+h+'" is invalid for option "'+d+'"'},TypeError),s("ERR_INVALID_ARG_TYPE",function(d,h,m){var g;typeof h=="string"&&l(h,"not ")?(g="must not be",h=h.replace(/^not /,"")):g="must be";var b;if(c(d," argument"))b="The ".concat(d," ").concat(g," ").concat(u(h,"type"));else{var y=f(d,".")?"property":"argument";b='The "'.concat(d,'" ').concat(y," ").concat(g," ").concat(u(h,"type"))}return b+=". Received type ".concat(typeof m),b},TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.codes=a},{}],56:[function(r,n,i){(function(o){(function(){var a=Object.keys||function(g){var b=[];for(var y in g)b.push(y);return b};n.exports=d;var s=r("./_stream_readable"),u=r("./_stream_writable");r("inherits")(d,s);for(var l=a(u.prototype),c=0;c0)if(typeof U!="string"&&!F.objectMode&&Object.getPrototypeOf(U)!==c.prototype&&(U=d(U)),E)F.endEmitted?T(j,new P):R(j,F,U,!0);else if(F.ended)T(j,new _);else{if(F.destroyed)return!1;F.reading=!1,F.decoder&&!M?(U=F.decoder.write(U),F.objectMode||U.length!==0?R(j,F,U,!1):ie(j,F)):R(j,F,U,!1)}else E||(F.reading=!1,ie(j,F))}return!F.ended&&(F.length=B?j=B:(j--,j|=j>>>1,j|=j>>>2,j|=j>>>4,j|=j>>>8,j|=j>>>16,j++),j}function re(j,U){return j<=0||U.length===0&&U.ended?0:U.objectMode?1:j!==j?U.flowing&&U.length?U.buffer.head.data.length:U.length:(j>U.highWaterMark&&(U.highWaterMark=q(j)),j<=U.length?j:U.ended?U.length:(U.needReadable=!0,0))}z.prototype.read=function(j){g("read",j),j=parseInt(j,10);var U=this._readableState,M=j;if(j!==0&&(U.emittedReadable=!1),j===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return g("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?Z(this):Y(this),null;if(j=re(j,U),j===0&&U.ended)return U.length===0&&Z(this),null;var E=U.needReadable;g("need readable",E),(U.length===0||U.length-j0?k=H(j,U):k=null,k===null?(U.needReadable=U.length<=U.highWaterMark,j=0):(U.length-=j,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),M!==j&&U.ended&&Z(this)),k!==null&&this.emit("data",k),k};function oe(j,U){if(g("onEofChunk"),!U.ended){if(U.decoder){var M=U.decoder.end();M&&M.length&&(U.buffer.push(M),U.length+=U.objectMode?1:M.length)}U.ended=!0,U.sync?Y(j):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,K(j)))}}function Y(j){var U=j._readableState;g("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(g("emitReadable",U.flowing),U.emittedReadable=!0,o.nextTick(K,j))}function K(j){var U=j._readableState;g("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(j.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,W(j)}function ie(j,U){U.readingMore||(U.readingMore=!0,o.nextTick(ne,j,U))}function ne(j,U){for(;!U.reading&&!U.ended&&(U.length1&&ae(E.pipes,j)!==-1)&&!pe&&(g("false write response, pause",E.awaitDrain),E.awaitDrain++),M.pause())}function Ue(Er){g("onerror",Er),qr(),j.removeListener("error",Ue),u(j,"error")===0&&T(j,Er)}I(j,"error",Ue);function Ce(){j.removeListener("finish",Hr),qr()}j.once("close",Ce);function Hr(){g("onfinish"),j.removeListener("close",Ce),qr()}j.once("finish",Hr);function qr(){g("unpipe"),M.unpipe(j)}return j.emit("pipe",M),E.flowing||(g("pipe resume"),M.resume()),j};function fe(j){return function(){var M=j._readableState;g("pipeOnDrain",M.awaitDrain),M.awaitDrain&&M.awaitDrain--,M.awaitDrain===0&&u(j,"data")&&(M.flowing=!0,W(j))}}z.prototype.unpipe=function(j){var U=this._readableState,M={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return j&&j!==U.pipes?this:(j||(j=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,j&&j.emit("unpipe",this,M),this);if(!j){var E=U.pipes,k=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var F=0;F0,E.flowing!==!1&&this.resume()):j==="readable"&&!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.flowing=!1,E.emittedReadable=!1,g("on readable",E.length,E.reading),E.length?Y(this):E.reading||o.nextTick(X,this)),M},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(j,U){var M=l.prototype.removeListener.call(this,j,U);return j==="readable"&&o.nextTick(se,this),M},z.prototype.removeAllListeners=function(j){var U=l.prototype.removeAllListeners.apply(this,arguments);return(j==="readable"||j===void 0)&&o.nextTick(se,this),U};function se(j){var U=j._readableState;U.readableListening=j.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:j.listenerCount("data")>0&&j.resume()}function X(j){g("readable nexttick read 0"),j.read(0)}z.prototype.resume=function(){var j=this._readableState;return j.flowing||(g("resume"),j.flowing=!j.readableListening,V(this,j)),j.paused=!1,this};function V(j,U){U.resumeScheduled||(U.resumeScheduled=!0,o.nextTick(te,j,U))}function te(j,U){g("resume",U.reading),U.reading||j.read(0),U.resumeScheduled=!1,j.emit("resume"),W(j),U.flowing&&!U.reading&&j.read(0)}z.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function W(j){var U=j._readableState;for(g("flow",U.flowing);U.flowing&&j.read()!==null;);}z.prototype.wrap=function(j){var U=this,M=this._readableState,E=!1;j.on("end",function(){if(g("wrapped end"),M.decoder&&!M.ended){var G=M.decoder.end();G&&G.length&&U.push(G)}U.push(null)}),j.on("data",function(G){if(g("wrapped data"),M.decoder&&(G=M.decoder.write(G)),!(M.objectMode&&G==null)&&!(!M.objectMode&&(!G||!G.length))){var ue=U.push(G);ue||(E=!0,j.pause())}});for(var k in j)this[k]===void 0&&typeof j[k]=="function"&&(this[k]=function(ue){return function(){return j[ue].apply(j,arguments)}}(k));for(var F=0;F=U.length?(U.decoder?M=U.buffer.join(""):U.buffer.length===1?M=U.buffer.first():M=U.buffer.concat(U.length),U.buffer.clear()):M=U.buffer.consume(j,U.decoder),M}function Z(j){var U=j._readableState;g("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,o.nextTick(ee,U,j))}function ee(j,U){if(g("endReadableNT",j.endEmitted,j.length),!j.endEmitted&&j.length===0&&(j.endEmitted=!0,U.readable=!1,U.emit("end"),j.autoDestroy)){var M=U._writableState;(!M||M.autoDestroy&&M.finished)&&U.destroy()}}typeof Symbol=="function"&&(z.from=function(j,U){return S===void 0&&(S=r("./internal/streams/from")),S(z,j,U)});function ae(j,U){for(var M=0,E=j.length;M-1))throw new L(H);return this._writableState.defaultEncoding=H,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function R(W,H,Z){return!W.objectMode&&W.decodeStrings!==!1&&typeof H=="string"&&(H=f.from(H,Z)),H}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(W,H,Z,ee,ae,j){if(!Z){var U=R(H,ee,ae);ee!==U&&(Z=!0,ae="buffer",ee=U)}var M=H.objectMode?1:ee.length;H.length+=M;var E=H.length0?this.tail.next=w:this.head=w,this.tail=w,++this.length}},{key:"unshift",value:function(p){var w={data:p,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var w=this.head,x=""+w.data;w=w.next;)x+=p+w.data;return x}},{key:"concat",value:function(p){if(this.length===0)return d.alloc(0);for(var w=d.allocUnsafe(p>>>0),x=this.head,_=0;x;)b(x.data,w,_),_+=x.data.length,x=x.next;return w}},{key:"consume",value:function(p,w){var x;return pO.length?O.length:p;if(P===O.length?_+=O:_+=O.slice(0,p),p-=P,p===0){P===O.length?(++x,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=O.slice(P));break}++x}return this.length-=x,_}},{key:"_getBuffer",value:function(p){var w=d.allocUnsafe(p),x=this.head,_=1;for(x.data.copy(w),p-=x.data.length;x=x.next;){var O=x.data,P=p>O.length?O.length:p;if(O.copy(w,w.length-p,0,P),p-=P,p===0){P===O.length?(++_,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=O.slice(P));break}++_}return this.length-=_,w}},{key:g,value:function(p,w){return m(this,a({},w,{depth:0,customInspect:!1}))}}]),y}()},{buffer:17,util:16}],63:[function(r,n,i){(function(o){(function(){function a(d,h){var m=this,g=this._readableState&&this._readableState.destroyed,b=this._writableState&&this._writableState.destroyed;return g||b?(h?h(d):d&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(c,this,d)):o.nextTick(c,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(y){!h&&y?m._writableState?m._writableState.errorEmitted?o.nextTick(u,m):(m._writableState.errorEmitted=!0,o.nextTick(s,m,y)):o.nextTick(s,m,y):h?(o.nextTick(u,m),h(y)):o.nextTick(u,m)}),this)}function s(d,h){c(d,h),u(d)}function u(d){d._writableState&&!d._writableState.emitClose||d._readableState&&!d._readableState.emitClose||d.emit("close")}function l(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function c(d,h){d.emit("error",h)}function f(d,h){var m=d._readableState,g=d._writableState;m&&m.autoDestroy||g&&g.autoDestroy?d.destroy(h):d.emit("error",h)}n.exports={destroy:a,undestroy:l,errorOrDestroy:f}}).call(this)}).call(this,r("_process"))},{_process:50}],64:[function(r,n,i){var o=r("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(c){var f=!1;return function(){if(!f){f=!0;for(var d=arguments.length,h=new Array(d),m=0;m0;return d(O,A,L,function(S){x||(x=S),S&&_.forEach(h),!A&&(_.forEach(h),w(x))})});return v.reduce(m)}n.exports=b},{"../../../errors":55,"./end-of-stream":64}],67:[function(r,n,i){var o=r("../../../errors").codes.ERR_INVALID_OPT_VALUE;function a(u,l,c){return u.highWaterMark!=null?u.highWaterMark:l?u[c]:null}function s(u,l,c,f){var d=a(l,f,c);if(d!=null){if(!(isFinite(d)&&Math.floor(d)===d)||d<0){var h=f?c:"highWaterMark";throw new o(h,d)}return Math.floor(d)}return u.objectMode?16:16*1024}n.exports={getHighWaterMark:s}},{"../../../errors":55}],68:[function(r,n,i){n.exports=r("events").EventEmitter},{events:22}],69:[function(r,n,i){i=n.exports=r("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=r("./lib/_stream_writable.js"),i.Duplex=r("./lib/_stream_duplex.js"),i.Transform=r("./lib/_stream_transform.js"),i.PassThrough=r("./lib/_stream_passthrough.js"),i.finished=r("./lib/internal/streams/end-of-stream.js"),i.pipeline=r("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":56,"./lib/_stream_passthrough.js":57,"./lib/_stream_readable.js":58,"./lib/_stream_transform.js":59,"./lib/_stream_writable.js":60,"./lib/internal/streams/end-of-stream.js":64,"./lib/internal/streams/pipeline.js":66}],70:[function(r,n,i){function o(s,u,l){var c=this;this._callback=s,this._args=l,this._interval=setInterval(s,u,this._args),this.reschedule=function(f){f||(f=c._interval),c._interval&&clearInterval(c._interval),c._interval=setInterval(c._callback,f,c._args)},this.clear=function(){c._interval&&(clearInterval(c._interval),c._interval=void 0)},this.destroy=function(){c._interval&&clearInterval(c._interval),c._callback=void 0,c._interval=void 0,c._args=void 0}}function a(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var s;if(arguments.length>0){s=new Array(arguments.length-2);for(var u=0;u */var o=r("buffer"),a=o.Buffer;function s(l,c){for(var f in l)c[f]=l[f]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?n.exports=o:(s(o,i),i.Buffer=u);function u(l,c,f){return a(l,c,f)}u.prototype=Object.create(a.prototype),s(a,u),u.from=function(l,c,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return a(l,c,f)},u.alloc=function(l,c,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var d=a(l);return c!==void 0?typeof f=="string"?d.fill(c,f):d.fill(c):d.fill(0),d},u.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a(l)},u.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(l)}},{buffer:17}],74:[function(r,n,i){n.exports=o;function o(s){var u=s._readableState;return u?u.objectMode||typeof s._duplexState=="number"?s.read():s.read(a(u)):null}function a(s){return s.buffer.length?s.buffer.head?s.buffer.head.data.length:s.buffer[0].length:s.length}},{}],75:[function(r,n,i){var o=r("safe-buffer").Buffer,a=o.isEncoding||function(_){switch(_=""+_,_&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(_){if(!_)return"utf8";for(var O;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(O)return;_=(""+_).toLowerCase(),O=!0}}function u(_){var O=s(_);if(typeof O!="string"&&(o.isEncoding===a||!a(_)))throw new Error("Unknown encoding: "+_);return O||_}i.StringDecoder=l;function l(_){this.encoding=u(_);var O;switch(this.encoding){case"utf16le":this.text=b,this.end=y,O=4;break;case"utf8":this.fillLast=h,O=4;break;case"base64":this.text=v,this.end=p,O=3;break;default:this.write=w,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(O)}l.prototype.write=function(_){if(_.length===0)return"";var O,P;if(this.lastNeed){if(O=this.fillLast(_),O===void 0)return"";P=this.lastNeed,this.lastNeed=0}else P=0;return P<_.length?O?O+this.text(_,P):this.text(_,P):O||""},l.prototype.end=g,l.prototype.text=m,l.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function c(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function f(_,O,P){var A=O.length-1;if(A=0?(L>0&&(_.lastNeed=L-1),L):--A=0?(L>0&&(_.lastNeed=L-2),L):--A=0?(L>0&&(L===2?L=0:_.lastNeed=L-3),L):0))}function d(_,O,P){if((O[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return _.lastNeed=2,"�"}}function h(_){var O=this.lastTotal-this.lastNeed,P=d(this,_);if(P!==void 0)return P;if(this.lastNeed<=_.length)return _.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,O,0,_.length),this.lastNeed-=_.length}function m(_,O){var P=f(this,_,O);if(!this.lastNeed)return _.toString("utf8",O);this.lastTotal=P;var A=_.length-(P-this.lastNeed);return _.copy(this.lastChar,0,A),_.toString("utf8",O,A)}function g(_){var O=_&&_.length?this.write(_):"";return this.lastNeed?O+"�":O}function b(_,O){if((_.length-O)%2===0){var P=_.toString("utf16le",O);if(P){var A=P.charCodeAt(P.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],P.slice(0,-1)}return P}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",O,_.length-1)}function y(_){var O=_&&_.length?this.write(_):"";if(this.lastNeed){var P=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,P)}return O}function v(_,O){var P=(_.length-O)%3;return P===0?_.toString("base64",O):(this.lastNeed=3-P,this.lastTotal=3,P===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",O,_.length-P))}function p(_){var O=_&&_.length?this.write(_):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function w(_){return _.toString(this.encoding)}function x(_){return _&&_.length?this.write(_):""}},{"safe-buffer":73}],76:[function(r,n,i){var o=r("punycode"),a=r("./util");i.parse=O,i.resolve=A,i.resolveObject=L,i.format=P,i.Url=s;function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var u=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",` +`," "],d=["{","}","|","\\","^","`"].concat(f),h=["'"].concat(d),m=["%","/","?",";","#"].concat(h),g=["/","?","#"],b=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=r("querystring");function O(S,T,C){if(S&&a.isObject(S)&&S instanceof s)return S;var I=new s;return I.parse(S,T,C),I}s.prototype.parse=function(S,T,C){if(!a.isString(S))throw new TypeError("Parameter 'url' must be a string, not "+typeof S);var I=S.indexOf("?"),D=I!==-1&&I127?te+="x":te+=V[W];if(!te.match(y)){var Z=se.slice(0,Y),ee=se.slice(Y+1),ae=V.match(v);ae&&(Z.push(ae[1]),ee.unshift(ae[2])),ee.length&&(R="/"+ee.join(".")+R),this.hostname=Z.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),fe||(this.hostname=o.toASCII(this.hostname));var j=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+j,this.href+=this.host,fe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!p[q])for(var Y=0,X=h.length;Y0?C.host.split("@"):!1;te&&(C.auth=te.shift(),C.host=C.hostname=te.shift())}return C.search=S.search,C.query=S.query,(!a.isNull(C.pathname)||!a.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!se.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var W=se.slice(-1)[0],H=(C.host||S.host||se.length>1)&&(W==="."||W==="..")||W==="",Z=0,ee=se.length;ee>=0;ee--)W=se[ee],W==="."?se.splice(ee,1):W===".."?(se.splice(ee,1),Z++):Z&&(se.splice(ee,1),Z--);if(!ne&&!fe)for(;Z--;Z)se.unshift("..");ne&&se[0]!==""&&(!se[0]||se[0].charAt(0)!=="/")&&se.unshift(""),H&&se.join("/").substr(-1)!=="/"&&se.push("");var ae=se[0]===""||se[0]&&se[0].charAt(0)==="/";if(V){C.hostname=C.host=ae?"":se.length?se.shift():"";var te=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;te&&(C.auth=te.shift(),C.host=C.hostname=te.shift())}return ne=ne||C.host&&se.length,ne&&!ae&&se.unshift(""),se.length?C.pathname=se.join("/"):(C.pathname=null,C.path=null),(!a.isNull(C.pathname)||!a.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=S.auth||C.auth,C.slashes=C.slashes||S.slashes,C.href=C.format(),C},s.prototype.parseHost=function(){var S=this.host,T=l.exec(S);T&&(T=T[0],T!==":"&&(this.port=T.substr(1)),S=S.substr(0,S.length-T.length)),S&&(this.hostname=S)}},{"./util":77,punycode:51,querystring:54}],77:[function(r,n,i){n.exports={isString:function(o){return typeof o=="string"},isObject:function(o){return typeof o=="object"&&o!==null},isNull:function(o){return o===null},isNullOrUndefined:function(o){return o==null}}},{}],78:[function(r,n,i){(function(o){(function(){n.exports=a;function a(u,l){if(s("noDeprecation"))return u;var c=!1;function f(){if(!c){if(s("throwDeprecation"))throw new Error(l);s("traceDeprecation")?console.trace(l):console.warn(l),c=!0}return u.apply(this,arguments)}return f}function s(u){try{if(!o.localStorage)return!1}catch{return!1}var l=o.localStorage[u];return l==null?!1:String(l).toLowerCase()==="true"}}).call(this)}).call(this,typeof Me<"u"?Me:typeof self<"u"?self:typeof window<"u"?window:{})},{}],79:[function(r,n,i){n.exports=o;function o(a,s){if(a&&s)return o(a)(s);if(typeof a!="function")throw new TypeError("need wrapper function");return Object.keys(a).forEach(function(l){u[l]=a[l]}),u;function u(){for(var l=new Array(arguments.length),c=0;c0)for(var d=0,h=arguments.length;d1)d=f;else if(this.head)h=this.head.next,d=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var m=0;h!==null;m++)d=c(d,h.value,m),h=h.next;return d},o.prototype.reduceReverse=function(c,f){var d,h=this.tail;if(arguments.length>1)d=f;else if(this.tail)h=this.tail.prev,d=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var m=this.length-1;h!==null;m--)d=c(d,h.value,m),h=h.prev;return d},o.prototype.toArray=function(){for(var c=new Array(this.length),f=0,d=this.head;d!==null;f++)c[f]=d.value,d=d.next;return c},o.prototype.toArrayReverse=function(){for(var c=new Array(this.length),f=0,d=this.tail;d!==null;f++)c[f]=d.value,d=d.prev;return c},o.prototype.slice=function(c,f){f=f||this.length,f<0&&(f+=this.length),c=c||0,c<0&&(c+=this.length);var d=new o;if(fthis.length&&(f=this.length);for(var h=0,m=this.head;m!==null&&hthis.length&&(f=this.length);for(var h=this.length,m=this.tail;m!==null&&h>f;h--)m=m.prev;for(;m!==null&&h>c;h--,m=m.prev)d.push(m.value);return d},o.prototype.splice=function(c,f,...d){c>this.length&&(c=this.length-1),c<0&&(c=this.length+c);for(var h=0,m=this.head;m!==null&&he.topic),aR=$a.doorStates.map(e=>e.topic),dd=fd.connect($a.url);dd.on("connect",function(){lb.concat(aR).forEach(function(e){dd.subscribe(e)})});dd.on("message",function(e,t,r){lb.indexOf(e)>-1&&xu.dispatch(JC({topic:e,data:t.toString(),message:{...r,payload:r.payload.toJSON()}}));const n=$a.doorStates.filter(i=>i.topic===e).shift();n&&xu.dispatch(ek({property:n.type,value:n.mapper(t.toString())}))});var hd={},sR={get exports(){return hd},set exports(e){hd=e}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i1?c-1:0),d=1;d{o.target===e&&(i(),t(o))},r+n)}function bo(...e){return e.filter(t=>t!=null).reduce((t,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?r:function(...i){t.apply(this,i),r.apply(this,i)}},null)}function mb(e){e.offsetHeight}var sm=function(t){return!t||typeof t=="function"?t:function(r){t.current=r}};function AR(e,t){var r=sm(e),n=sm(t);return function(i){r&&r(i),n&&n(i)}}function Nl(e,t){return $.useMemo(function(){return AR(e,t)},[e,t])}function IR(e){return e&&"setState"in e?Pi.findDOMNode(e):e??null}const MR=Pt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:u,...l},c)=>{const f=$.useRef(null),d=Nl(f,u),h=_=>{d(IR(_))},m=_=>O=>{_&&f.current&&_(f.current,O)},g=$.useCallback(m(e),[e]),b=$.useCallback(m(t),[t]),y=$.useCallback(m(r),[r]),v=$.useCallback(m(n),[n]),p=$.useCallback(m(i),[i]),w=$.useCallback(m(o),[o]),x=$.useCallback(m(a),[a]);return J(Wr,{ref:c,...l,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:w,onExiting:p,addEndListener:x,nodeRef:f,children:typeof s=="function"?(_,O)=>s(_,{...O,ref:h}):Pt.cloneElement(s,{ref:h})})}),Fh=MR,LR={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function yb(e,t){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,n=t[r],i=LR[e];return n+parseInt(Nr(t,i[0]),10)+parseInt(Nr(t,i[1]),10)}const NR={[en]:"collapse",[Oa]:"collapsing",[Jt]:"collapsing",[Rr]:"collapse show"},DR={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:yb},wb=Pt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,className:o,children:a,dimension:s="height",getDimensionValue:u=yb,...l},c)=>{const f=typeof s=="function"?s():s,d=$.useMemo(()=>bo(y=>{y.style[f]="0"},e),[f,e]),h=$.useMemo(()=>bo(y=>{const v=`scroll${f[0].toUpperCase()}${f.slice(1)}`;y.style[f]=`${y[v]}px`},t),[f,t]),m=$.useMemo(()=>bo(y=>{y.style[f]=null},r),[f,r]),g=$.useMemo(()=>bo(y=>{y.style[f]=`${u(f,y)}px`,mb(y)},n),[n,u,f]),b=$.useMemo(()=>bo(y=>{y.style[f]=null},i),[f,i]);return J(Fh,{ref:c,addEndListener:jh,...l,"aria-expanded":l.role?l.in:null,onEnter:d,onEntering:h,onEntered:m,onExit:g,onExiting:b,childRef:a.ref,children:(y,v)=>Pt.cloneElement(a,{...v,className:be(o,a.props.className,NR[y],f==="width"&&"collapse-horizontal")})})});wb.defaultProps=DR;const jR=wb;function FR(e){var t=$.useRef(e);return $.useEffect(function(){t.current=e},[e]),t}function Ye(e){var t=FR(e);return $.useCallback(function(){return t.current&&t.current.apply(t,arguments)},[t])}function BR(){return $.useState(null)}function UR(e,t,r,n){n===void 0&&(n=!1);var i=Ye(r);$.useEffect(function(){var o=typeof e=="function"?e():e;return o.addEventListener(t,i,n),function(){return o.removeEventListener(t,i,n)}},[e])}function bb(){var e=$.useRef(!0),t=$.useRef(function(){return e.current});return $.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t.current}function Sb(e){var t=$.useRef(null);return $.useEffect(function(){t.current=e}),t.current}var $R=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",zR=typeof document<"u";const xb=zR||$R?$.useLayoutEffect:$.useEffect,WR=["as","disabled"];function HR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function qR(e){return!e||e.trim()==="#"}function Bh({tagName:e,disabled:t,href:r,target:n,rel:i,role:o,onClick:a,tabIndex:s=0,type:u}){e||(r!=null||n!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},l];const c=d=>{if((t||e==="a"&&qR(r))&&d.preventDefault(),t){d.stopPropagation();return}a==null||a(d)},f=d=>{d.key===" "&&(d.preventDefault(),c(d))};return e==="a"&&(r||(r="#"),t&&(r=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:s,href:r,target:e==="a"?n:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:c,onKeyDown:f},l]}const Uh=$.forwardRef((e,t)=>{let{as:r,disabled:n}=e,i=HR(e,WR);const[o,{tagName:a}]=Bh(Object.assign({tagName:r,disabled:n},i));return J(a,Object.assign({},i,o,{ref:t}))});Uh.displayName="Button";const VR=["onKeyDown"];function QR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function KR(e){return!e||e.trim()==="#"}const $h=$.forwardRef((e,t)=>{let{onKeyDown:r}=e,n=QR(e,VR);const[i]=Bh(Object.assign({tagName:"a"},n)),o=Ye(a=>{i.onKeyDown(a),r==null||r(a)});return KR(n.href)||n.role==="button"?J("a",Object.assign({ref:t},n,i,{onKeyDown:o})):J("a",Object.assign({ref:t},n,{onKeyDown:r}))});$h.displayName="Anchor";const YR={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},GR={[Jt]:"show",[Rr]:"show"},zh=$.forwardRef(({className:e,children:t,transitionClasses:r={},...n},i)=>{const o=$.useCallback((a,s)=>{mb(a),n.onEnter==null||n.onEnter(a,s)},[n]);return J(Fh,{ref:i,addEndListener:jh,...n,onEnter:o,childRef:t.ref,children:(a,s)=>$.cloneElement(t,{...s,className:be("fade",e,t.props.className,GR[a],r[a])})})});zh.defaultProps=YR;zh.displayName="Fade";const XR=zh,JR={"aria-label":Tt.string,onClick:Tt.func,variant:Tt.oneOf(["white"])},ZR={"aria-label":"Close"},Dl=$.forwardRef(({className:e,variant:t,...r},n)=>J("button",{ref:n,type:"button",className:be("btn-close",t&&`btn-close-${t}`,e),...r}));Dl.displayName="CloseButton";Dl.propTypes=JR;Dl.defaultProps=ZR;const e2=Dl,Wh=e=>$.forwardRef((t,r)=>J("div",{...t,ref:r,className:be(t.className,e)}));var t2=/-(.)/g;function r2(e){return e.replace(t2,function(t,r){return r.toUpperCase()})}const n2=e=>e[0].toUpperCase()+r2(e).slice(1);function kt(e,{displayName:t=n2(e),Component:r,defaultProps:n}={}){const i=$.forwardRef(({className:o,bsPrefix:a,as:s=r||"div",...u},l)=>{const c=Pe(a,e);return J(s,{ref:l,className:be(o,c),...u})});return i.defaultProps=n,i.displayName=t,i}const i2={variant:"primary",active:!1,disabled:!1},Hh=$.forwardRef(({as:e,bsPrefix:t,variant:r,size:n,active:i,className:o,...a},s)=>{const u=Pe(t,"btn"),[l,{tagName:c}]=Bh({tagName:e,...a});return J(c,{...l,...a,ref:s,className:be(o,u,i&&"active",r&&`${u}-${r}`,n&&`${u}-${n}`,a.href&&a.disabled&&"disabled")})});Hh.displayName="Button";Hh.defaultProps=i2;const qo=Hh,o2={vertical:!1,role:"group"},qh=$.forwardRef(({bsPrefix:e,size:t,vertical:r,className:n,as:i="div",...o},a)=>{const s=Pe(e,"btn-group");let u=s;return r&&(u=`${s}-vertical`),J(i,{...o,ref:a,className:be(n,u,t&&`${s}-${t}`)})});qh.displayName="ButtonGroup";qh.defaultProps=o2;const a2=qh,_b=$.forwardRef(({bsPrefix:e,className:t,variant:r,as:n="img",...i},o)=>{const a=Pe(e,"card-img");return J(n,{ref:o,className:be(r?`${a}-${r}`:a,t),...i})});_b.displayName="CardImg";const s2=_b,Eb=$.createContext(null);Eb.displayName="CardHeaderContext";const Cb=Eb,kb=$.forwardRef(({bsPrefix:e,className:t,as:r="div",...n},i)=>{const o=Pe(e,"card-header"),a=$.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return J(Cb.Provider,{value:a,children:J(r,{ref:i,...n,className:be(t,o)})})});kb.displayName="CardHeader";const u2=kb,l2=Wh("h5"),c2=Wh("h6"),Ob=kt("card-body"),f2=kt("card-title",{Component:l2}),d2=kt("card-subtitle",{Component:c2}),h2=kt("card-link",{Component:"a"}),p2=kt("card-text",{Component:"p"}),v2=kt("card-footer"),g2=kt("card-img-overlay"),m2={body:!1},Vh=$.forwardRef(({bsPrefix:e,className:t,bg:r,text:n,border:i,body:o,children:a,as:s="div",...u},l)=>{const c=Pe(e,"card");return J(s,{ref:l,...u,className:be(t,c,r&&`bg-${r}`,n&&`text-${n}`,i&&`border-${i}`),children:o?J(Ob,{children:a}):a})});Vh.displayName="Card";Vh.defaultProps=m2;const hr=Object.assign(Vh,{Img:s2,Title:f2,Subtitle:d2,Body:Ob,Link:h2,Text:p2,Header:u2,Footer:v2,ImgOverlay:g2});function y2(e){var t=$.useRef(e);return t.current=e,t}function w2(e){var t=y2(e);$.useEffect(function(){return function(){return t.current()}},[])}function b2({as:e,bsPrefix:t,className:r,...n}){t=Pe(t,"col");const i=fb(),o=db(),a=[],s=[];return i.forEach(u=>{const l=n[u];delete n[u];let c,f,d;typeof l=="object"&&l!=null?{span:c,offset:f,order:d}=l:c=l;const h=u!==o?`-${u}`:"";c&&a.push(c===!0?`${t}${h}`:`${t}${h}-${c}`),d!=null&&s.push(`order${h}-${d}`),f!=null&&s.push(`offset${h}-${f}`)}),[{...n,className:be(r,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const Tb=$.forwardRef((e,t)=>{const[{className:r,...n},{as:i="div",bsPrefix:o,spans:a}]=b2(e);return J(i,{...n,ref:t,className:be(r,!a.length&&o)})});Tb.displayName="Col";const Ve=Tb;var S2=Function.prototype.bind.call(Function.prototype.call,[].slice);function Tr(e,t){return S2(e.querySelectorAll(t))}function Pb(){var e=$.useReducer(function(r){return!r},!1),t=e[1];return t}const jl=$.createContext(null);var um=Object.prototype.hasOwnProperty;function lm(e,t,r){for(r of e.keys())if(Vo(r,t))return r}function Vo(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Vo(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=lm(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=lm(t,i),!i)||!Vo(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(um.call(e,r)&&++n&&!um.call(t,r)||!(r in t)||!Vo(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function x2(e){var t=bb();return[e[0],$.useCallback(function(r){if(t())return e[1](r)},[t,e[1]])]}var Et="top",Wt="bottom",Ht="right",Ct="left",Qh="auto",za=[Et,Wt,Ht,Ct],Gi="start",Ta="end",_2="clippingParents",Rb="viewport",So="popper",E2="reference",cm=za.reduce(function(e,t){return e.concat([t+"-"+Gi,t+"-"+Ta])},[]),Ab=[].concat(za,[Qh]).reduce(function(e,t){return e.concat([t,t+"-"+Gi,t+"-"+Ta])},[]),C2="beforeRead",k2="read",O2="afterRead",T2="beforeMain",P2="main",R2="afterMain",A2="beforeWrite",I2="write",M2="afterWrite",L2=[C2,k2,O2,T2,P2,R2,A2,I2,M2];function br(e){return e.split("-")[0]}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ei(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function Sr(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kh(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Kn=Math.max,Lu=Math.min,Xi=Math.round;function vd(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ib(){return!/^((?!chrome|android).)*safari/i.test(vd())}function Ji(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Sr(e)&&(i=e.offsetWidth>0&&Xi(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Xi(n.height)/e.offsetHeight||1);var a=ei(e)?Vt(e):window,s=a.visualViewport,u=!Ib()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/i,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/i,d=n.height/o;return{width:f,height:d,top:c,right:l+f,bottom:c+d,left:l,x:l,y:c}}function Yh(e){var t=Ji(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Mb(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Kh(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rn(e){return e?(e.nodeName||"").toLowerCase():null}function $r(e){return Vt(e).getComputedStyle(e)}function N2(e){return["table","td","th"].indexOf(Rn(e))>=0}function Nn(e){return((ei(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fl(e){return Rn(e)==="html"?e:e.assignedSlot||e.parentNode||(Kh(e)?e.host:null)||Nn(e)}function fm(e){return!Sr(e)||$r(e).position==="fixed"?null:e.offsetParent}function D2(e){var t=/firefox/i.test(vd()),r=/Trident/i.test(vd());if(r&&Sr(e)){var n=$r(e);if(n.position==="fixed")return null}var i=Fl(e);for(Kh(i)&&(i=i.host);Sr(i)&&["html","body"].indexOf(Rn(i))<0;){var o=$r(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Wa(e){for(var t=Vt(e),r=fm(e);r&&N2(r)&&$r(r).position==="static";)r=fm(r);return r&&(Rn(r)==="html"||Rn(r)==="body"&&$r(r).position==="static")?t:r||D2(e)||t}function Gh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qo(e,t,r){return Kn(e,Lu(t,r))}function j2(e,t,r){var n=Qo(e,t,r);return n>r?r:n}function Lb(){return{top:0,right:0,bottom:0,left:0}}function Nb(e){return Object.assign({},Lb(),e)}function Db(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var F2=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Nb(typeof t!="number"?t:Db(t,za))};function B2(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=br(r.placement),u=Gh(s),l=[Ct,Ht].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!a)){var f=F2(i.padding,r),d=Yh(o),h=u==="y"?Et:Ct,m=u==="y"?Wt:Ht,g=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],b=a[u]-r.rects.reference[u],y=Wa(o),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,p=g/2-b/2,w=f[h],x=v-d[c]-f[m],_=v/2-d[c]/2+p,O=Qo(w,_,x),P=u;r.modifiersData[n]=(t={},t[P]=O,t.centerOffset=O-_,t)}}function U2(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Mb(t.elements.popper,i)&&(t.elements.arrow=i))}const $2={name:"arrow",enabled:!0,phase:"main",fn:B2,effect:U2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zi(e){return e.split("-")[1]}var z2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W2(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:Xi(t*i)/i||0,y:Xi(r*i)/i||0}}function dm(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,m=a.y,g=m===void 0?0:m,b=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),p=Ct,w=Et,x=window;if(l){var _=Wa(r),O="clientHeight",P="clientWidth";if(_===Vt(r)&&(_=Nn(r),$r(_).position!=="static"&&s==="absolute"&&(O="scrollHeight",P="scrollWidth")),_=_,i===Et||(i===Ct||i===Ht)&&o===Ta){w=Wt;var A=f&&_===x&&x.visualViewport?x.visualViewport.height:_[O];g-=A-n.height,g*=u?1:-1}if(i===Ct||(i===Et||i===Wt)&&o===Ta){p=Ht;var L=f&&_===x&&x.visualViewport?x.visualViewport.width:_[P];h-=L-n.width,h*=u?1:-1}}var S=Object.assign({position:s},l&&z2),T=c===!0?W2({x:h,y:g}):{x:h,y:g};if(h=T.x,g=T.y,u){var C;return Object.assign({},S,(C={},C[w]=v?"0":"",C[p]=y?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",C))}return Object.assign({},S,(t={},t[w]=v?g+"px":"",t[p]=y?h+"px":"",t.transform="",t))}function H2(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:br(t.placement),variation:Zi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,dm(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,dm(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const q2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H2,data:{}};var hs={passive:!0};function V2(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,u=Vt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,hs)}),s&&u.addEventListener("resize",r.update,hs),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,hs)}),s&&u.removeEventListener("resize",r.update,hs)}}const Q2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:V2,data:{}};var K2={left:"right",right:"left",bottom:"top",top:"bottom"};function Rs(e){return e.replace(/left|right|bottom|top/g,function(t){return K2[t]})}var Y2={start:"end",end:"start"};function hm(e){return e.replace(/start|end/g,function(t){return Y2[t]})}function Xh(e){var t=Vt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Jh(e){return Ji(Nn(e)).left+Xh(e).scrollLeft}function G2(e,t){var r=Vt(e),n=Nn(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=Ib();(l||!l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+Jh(e),y:u}}function X2(e){var t,r=Nn(e),n=Xh(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Kn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Kn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Jh(e),u=-n.scrollTop;return $r(i||r).direction==="rtl"&&(s+=Kn(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function Zh(e){var t=$r(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function jb(e){return["html","body","#document"].indexOf(Rn(e))>=0?e.ownerDocument.body:Sr(e)&&Zh(e)?e:jb(Fl(e))}function Ko(e,t){var r;t===void 0&&(t=[]);var n=jb(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Vt(n),a=i?[o].concat(o.visualViewport||[],Zh(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Ko(Fl(a)))}function gd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J2(e,t){var r=Ji(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function pm(e,t,r){return t===Rb?gd(G2(e,r)):ei(t)?J2(t,r):gd(X2(Nn(e)))}function Z2(e){var t=Ko(Fl(e)),r=["absolute","fixed"].indexOf($r(e).position)>=0,n=r&&Sr(e)?Wa(e):e;return ei(n)?t.filter(function(i){return ei(i)&&Mb(i,n)&&Rn(i)!=="body"}):[]}function eA(e,t,r,n){var i=t==="clippingParents"?Z2(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(u,l){var c=pm(e,l,n);return u.top=Kn(c.top,u.top),u.right=Lu(c.right,u.right),u.bottom=Lu(c.bottom,u.bottom),u.left=Kn(c.left,u.left),u},pm(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fb(e){var t=e.reference,r=e.element,n=e.placement,i=n?br(n):null,o=n?Zi(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(i){case Et:u={x:a,y:t.y-r.height};break;case Wt:u={x:a,y:t.y+t.height};break;case Ht:u={x:t.x+t.width,y:s};break;case Ct:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?Gh(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Gi:u[l]=u[l]-(t[c]/2-r[c]/2);break;case Ta:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function Pa(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?_2:s,l=r.rootBoundary,c=l===void 0?Rb:l,f=r.elementContext,d=f===void 0?So:f,h=r.altBoundary,m=h===void 0?!1:h,g=r.padding,b=g===void 0?0:g,y=Nb(typeof b!="number"?b:Db(b,za)),v=d===So?E2:So,p=e.rects.popper,w=e.elements[m?v:d],x=eA(ei(w)?w:w.contextElement||Nn(e.elements.popper),u,c,a),_=Ji(e.elements.reference),O=Fb({reference:_,element:p,strategy:"absolute",placement:i}),P=gd(Object.assign({},p,O)),A=d===So?P:_,L={top:x.top-A.top+y.top,bottom:A.bottom-x.bottom+y.bottom,left:x.left-A.left+y.left,right:A.right-x.right+y.right},S=e.modifiersData.offset;if(d===So&&S){var T=S[i];Object.keys(L).forEach(function(C){var I=[Ht,Wt].indexOf(C)>=0?1:-1,D=[Et,Wt].indexOf(C)>=0?"y":"x";L[C]+=T[D]*I})}return L}function tA(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?Ab:u,c=Zi(n),f=c?s?cm:cm.filter(function(m){return Zi(m)===c}):za,d=f.filter(function(m){return l.indexOf(m)>=0});d.length===0&&(d=f);var h=d.reduce(function(m,g){return m[g]=Pa(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[br(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function rA(e){if(br(e)===Qh)return[];var t=Rs(e);return[hm(e),t,hm(t)]}function nA(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,g=r.allowedAutoPlacements,b=t.options.placement,y=br(b),v=y===b,p=u||(v||!m?[Rs(b)]:rA(b)),w=[b].concat(p).reduce(function(Y,K){return Y.concat(br(K)===Qh?tA(t,{placement:K,boundary:c,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:g}):K)},[]),x=t.rects.reference,_=t.rects.popper,O=new Map,P=!0,A=w[0],L=0;L=0,D=I?"width":"height",z=Pa(t,{placement:S,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),Q=I?C?Ht:Ct:C?Wt:Et;x[D]>_[D]&&(Q=Rs(Q));var R=Rs(Q),N=[];if(o&&N.push(z[T]<=0),s&&N.push(z[Q]<=0,z[R]<=0),N.every(function(Y){return Y})){A=S,P=!1;break}O.set(S,N)}if(P)for(var B=m?3:1,q=function(K){var ie=w.find(function(ne){var fe=O.get(ne);if(fe)return fe.slice(0,K).every(function(se){return se})});if(ie)return A=ie,"break"},re=B;re>0;re--){var oe=q(re);if(oe==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const iA={name:"flip",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"],data:{_skip:!1}};function vm(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function gm(e){return[Et,Ht,Wt,Ct].some(function(t){return e[t]>=0})}function oA(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Pa(t,{elementContext:"reference"}),s=Pa(t,{altBoundary:!0}),u=vm(a,n),l=vm(s,i,o),c=gm(u),f=gm(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const aA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oA};function sA(e,t,r){var n=br(e),i=[Ct,Et].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ct,Ht].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function uA(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=Ab.reduce(function(c,f){return c[f]=sA(f,t.rects,o),c},{}),s=a[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}const lA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uA};function cA(e){var t=e.state,r=e.name;t.modifiersData[r]=Fb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const fA={name:"popperOffsets",enabled:!0,phase:"read",fn:cA,data:{}};function dA(e){return e==="x"?"y":"x"}function hA(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,m=r.tetherOffset,g=m===void 0?0:m,b=Pa(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),y=br(t.placement),v=Zi(t.placement),p=!v,w=Gh(y),x=dA(w),_=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(_){if(o){var C,I=w==="y"?Et:Ct,D=w==="y"?Wt:Ht,z=w==="y"?"height":"width",Q=_[w],R=Q+b[I],N=Q-b[D],B=h?-P[z]/2:0,q=v===Gi?O[z]:P[z],re=v===Gi?-P[z]:-O[z],oe=t.elements.arrow,Y=h&&oe?Yh(oe):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Lb(),ie=K[I],ne=K[D],fe=Qo(0,O[z],Y[z]),se=p?O[z]/2-B-fe-ie-L.mainAxis:q-fe-ie-L.mainAxis,X=p?-O[z]/2+B+fe+ne+L.mainAxis:re+fe+ne+L.mainAxis,V=t.elements.arrow&&Wa(t.elements.arrow),te=V?w==="y"?V.clientTop||0:V.clientLeft||0:0,W=(C=S==null?void 0:S[w])!=null?C:0,H=Q+se-W-te,Z=Q+X-W,ee=Qo(h?Lu(R,H):R,Q,h?Kn(N,Z):N);_[w]=ee,T[w]=ee-Q}if(s){var ae,j=w==="x"?Et:Ct,U=w==="x"?Wt:Ht,M=_[x],E=x==="y"?"height":"width",k=M+b[j],F=M-b[U],G=[Et,Ct].indexOf(y)!==-1,ue=(ae=S==null?void 0:S[x])!=null?ae:0,le=G?k:M-O[E]-P[E]-ue+L.altAxis,pe=G?M+O[E]+P[E]-ue-L.altAxis:F,ge=h&&G?j2(le,M,pe):Qo(h?le:k,M,h?pe:F);_[x]=ge,T[x]=ge-M}t.modifiersData[n]=T}}const pA={name:"preventOverflow",enabled:!0,phase:"main",fn:hA,requiresIfExists:["offset"]};function vA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gA(e){return e===Vt(e)||!Sr(e)?Xh(e):vA(e)}function mA(e){var t=e.getBoundingClientRect(),r=Xi(t.width)/e.offsetWidth||1,n=Xi(t.height)/e.offsetHeight||1;return r!==1||n!==1}function yA(e,t,r){r===void 0&&(r=!1);var n=Sr(t),i=Sr(t)&&mA(t),o=Nn(t),a=Ji(e,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Rn(t)!=="body"||Zh(o))&&(s=gA(t)),Sr(t)?(u=Ji(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Jh(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function wA(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&i(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function bA(e){var t=wA(e);return L2.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function SA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function xA(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var mm={placement:"bottom",modifiers:[],strategy:"absolute"};function ym(){for(var e=arguments.length,t=new Array(e),r=0;r=0)&&(r[i]=e[i]);return r}const OA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},TA={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,i=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&i==="tooltip"&&"setAttribute"in n){const o=n.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",o?`${o},${r.id}`:r.id)}}},PA=[];function RA(e,t,r={}){let{enabled:n=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=PA}=r,s=kA(r,CA);const u=$.useRef(a),l=$.useRef(),c=$.useCallback(()=>{var b;(b=l.current)==null||b.update()},[]),f=$.useCallback(()=>{var b;(b=l.current)==null||b.forceUpdate()},[]),[d,h]=x2($.useState({placement:i,update:c,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),m=$.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:b})=>{const y={},v={};Object.keys(b.elements).forEach(p=>{y[p]=b.styles[p],v[p]=b.attributes[p]}),h({state:b,styles:y,attributes:v,update:c,forceUpdate:f,placement:b.placement})}}),[c,f,h]),g=$.useMemo(()=>(Vo(u.current,a)||(u.current=a),u.current),[a]);return $.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:i,strategy:o,modifiers:[...g,m,OA]})},[o,i,m,n,g]),$.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=EA(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,TA,m]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,h(b=>Object.assign({},b,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),d}function Nu(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const wm=()=>{};function AA(e){return e.button===0}function IA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Dc=e=>e&&("current"in e?e.current:e),bm={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function MA(e,t=wm,{disabled:r,clickTrigger:n="click"}={}){const i=$.useRef(!1),o=$.useRef(!1),a=$.useCallback(l=>{const c=Dc(e);i.current=!c||IA(l)||!AA(l)||!!Nu(c,l.target)||o.current,o.current=!1},[e]),s=Ye(l=>{const c=Dc(e);c&&Nu(c,l.target)&&(o.current=!0)}),u=Ye(l=>{i.current||t(l)});$.useEffect(()=>{if(r||e==null)return;const l=Ml(Dc(e));let c=(l.defaultView||window).event,f=null;bm[n]&&(f=ln(l,bm[n],s,!0));const d=ln(l,n,a,!0),h=ln(l,n,g=>{if(g===c){c=void 0;return}u(g)});let m=[];return"ontouchstart"in l.documentElement&&(m=[].slice.call(l.body.children).map(g=>ln(g,"mousemove",wm))),()=>{f==null||f(),d(),h(),m.forEach(g=>g())}},[e,r,n,a,s,u])}function LA(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function NA(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function DA({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:u={}}){var l,c,f,d,h;const m=LA(u.modifiers);return Object.assign({},u,{placement:r,enabled:e,strategy:o?"fixed":u.strategy,modifiers:NA(Object.assign({},m,{eventListeners:{enabled:t,options:(l=m.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},(c=m.preventOverflow)==null?void 0:c.options):(f=m.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:i},(d=m.offset)==null?void 0:d.options)},arrow:Object.assign({},m.arrow,{enabled:!!s,options:Object.assign({},(h=m.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!n},m.flip)}))})}const jA=["children"];function FA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}const BA=()=>{};function Bb(e={}){const t=$.useContext(jl),[r,n]=BR(),i=$.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:u=!1,placement:l,popperConfig:c={},enableEventListeners:f=!0,usePopper:d=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const m=_=>{t==null||t.toggle(!1,_)},{placement:g,setMenu:b,menuElement:y,toggleElement:v}=t||{},p=RA(v,y,DA({placement:l||g||"bottom-start",enabled:d,enableEvents:f??h,offset:a,flip:o,fixed:u,arrowElement:r,popperConfig:c})),w=Object.assign({ref:b||BA,"aria-labelledby":v==null?void 0:v.id},p.attributes.popper,{style:p.styles.popper}),x={show:h,placement:g,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:d?p:null,arrowProps:d?Object.assign({ref:n},p.attributes.arrow,{style:p.styles.arrow}):{}};return MA(y,m,{clickTrigger:s,disabled:!h}),[w,x]}const UA={usePopper:!0};function ep(e){let{children:t}=e,r=FA(e,jA);const[n,i]=Bb(r);return J(Ke,{children:t(n,i)})}ep.displayName="DropdownMenu";ep.defaultProps=UA;const Ub={prefix:String(Math.round(Math.random()*1e10)),current:0},$A=Pt.createContext(Ub);let zA=Boolean(typeof window<"u"&&window.document&&window.document.createElement);function WA(e){let t=$.useContext($A);return t===Ub&&!zA&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server."),$.useMemo(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}const $b=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Sm=()=>{};function zb(){const e=WA(),{show:t=!1,toggle:r=Sm,setToggle:n,menuElement:i}=$.useContext(jl)||{},o=$.useCallback(s=>{r(!t,s)},[t,r]),a={id:e,ref:n||Sm,onClick:o,"aria-expanded":!!t};return i&&$b(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:r}]}function Wb({children:e}){const[t,r]=zb();return J(Ke,{children:e(t,r)})}Wb.displayName="DropdownToggle";const ti=$.createContext(null),Ra=(e,t=null)=>e!=null?String(e):t||null,Bl=$.createContext(null);Bl.displayName="NavContext";const HA="data-rr-ui-",qA="rrUi";function uo(e){return`${HA}${e}`}function VA(e){return`${qA}${e}`}const QA=["eventKey","disabled","onClick","active","as"];function KA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Hb({key:e,href:t,active:r,disabled:n,onClick:i}){const o=$.useContext(ti),a=$.useContext(Bl),{activeKey:s}=a||{},u=Ra(e,t),l=r==null&&e!=null?Ra(s)===u:r;return[{onClick:Ye(f=>{n||(i==null||i(f),o&&!f.isPropagationStopped()&&o(u,f))}),"aria-disabled":n||void 0,"aria-selected":l,[uo("dropdown-item")]:""},{isActive:l}]}const qb=$.forwardRef((e,t)=>{let{eventKey:r,disabled:n,onClick:i,active:o,as:a=Uh}=e,s=KA(e,QA);const[u]=Hb({key:r,href:s.href,disabled:n,onClick:i,active:o});return J(a,Object.assign({},s,{ref:t},u))});qb.displayName="DropdownItem";const Vb=$.createContext(Ll?window:void 0);Vb.Provider;function tp(){return $.useContext(Vb)}function xm(){const e=Pb(),t=$.useRef(null),r=$.useCallback(n=>{t.current=n,e()},[e]);return[t,r]}function Ha({defaultShow:e,show:t,onSelect:r,onToggle:n,itemSelector:i=`* [${uo("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const u=tp(),[l,c]=cb(t,e,n),[f,d]=xm(),h=f.current,[m,g]=xm(),b=m.current,y=Sb(l),v=$.useRef(null),p=$.useRef(!1),w=$.useContext(ti),x=$.useCallback((S,T,C=T==null?void 0:T.type)=>{c(S,{originalEvent:T,source:C})},[c]),_=Ye((S,T)=>{r==null||r(S,T),x(!1,T,"select"),T.isPropagationStopped()||w==null||w(S,T)}),O=$.useMemo(()=>({toggle:x,placement:a,show:l,menuElement:h,toggleElement:b,setMenu:d,setToggle:g}),[x,a,l,h,b,d,g]);h&&y&&!l&&(p.current=h.contains(h.ownerDocument.activeElement));const P=Ye(()=>{b&&b.focus&&b.focus()}),A=Ye(()=>{const S=v.current;let T=o;if(T==null&&(T=f.current&&$b(f.current)?"keyboard":!1),T===!1||T==="keyboard"&&!/^key.+$/.test(S))return;const C=Tr(f.current,i)[0];C&&C.focus&&C.focus()});$.useEffect(()=>{l?A():p.current&&(p.current=!1,P())},[l,p,P,A]),$.useEffect(()=>{v.current=null});const L=(S,T)=>{if(!f.current)return null;const C=Tr(f.current,i);let I=C.indexOf(S)+T;return I=Math.max(0,Math.min(I,C.length)),C[I]};return UR($.useCallback(()=>u.document,[u]),"keydown",S=>{var T,C;const{key:I}=S,D=S.target,z=(T=f.current)==null?void 0:T.contains(D),Q=(C=m.current)==null?void 0:C.contains(D);if(/input|textarea/i.test(D.tagName)&&(I===" "||I!=="Escape"&&z||I==="Escape"&&D.type==="search")||!z&&!Q||I==="Tab"&&(!f.current||!l))return;v.current=S.type;const N={originalEvent:S,source:S.type};switch(I){case"ArrowUp":{const B=L(D,-1);B&&B.focus&&B.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!l)c(!0,N);else{const B=L(D,1);B&&B.focus&&B.focus()}return;case"Tab":gb(D.ownerDocument,"keyup",B=>{var q;(B.key==="Tab"&&!B.target||!((q=f.current)!=null&&q.contains(B.target)))&&c(!1,N)},{once:!0});break;case"Escape":I==="Escape"&&(S.preventDefault(),S.stopPropagation()),c(!1,N);break}}),J(ti.Provider,{value:_,children:J(jl.Provider,{value:O,children:s})})}Ha.displayName="Dropdown";Ha.Menu=ep;Ha.Toggle=Wb;Ha.Item=qb;const Qb=$.createContext({});Qb.displayName="DropdownContext";const Kb=Qb,Yb=$.forwardRef(({bsPrefix:e,className:t,eventKey:r,disabled:n=!1,onClick:i,active:o,as:a=$h,...s},u)=>{const l=Pe(e,"dropdown-item"),[c,f]=Hb({key:r,href:s.href,disabled:n,onClick:i,active:o});return J(a,{...s,...c,ref:u,className:be(t,l,f.isActive&&"active",n&&"disabled")})});Yb.displayName="DropdownItem";const YA=Yb,Gb=$.createContext(null);Gb.displayName="InputGroupContext";const Xb=Gb,Jb=$.createContext(null);Jb.displayName="NavbarContext";const ai=Jb;function Zb(e,t){return e}const GA={flip:!0};function e1(e,t,r){const n=r?"top-end":"top-start",i=r?"top-start":"top-end",o=r?"bottom-end":"bottom-start",a=r?"bottom-start":"bottom-end",s=r?"right-start":"left-start",u=r?"right-end":"left-end",l=r?"left-start":"right-start",c=r?"left-end":"right-end";let f=e?a:o;return t==="up"?f=e?i:n:t==="end"?f=e?c:l:t==="start"?f=e?u:s:t==="down-centered"?f="bottom":t==="up-centered"&&(f="top"),f}const rp=$.forwardRef(({bsPrefix:e,className:t,align:r,rootCloseEvent:n,flip:i,show:o,renderOnMount:a,as:s="div",popperConfig:u,variant:l,...c},f)=>{let d=!1;const h=$.useContext(ai),m=Pe(e,"dropdown-menu"),{align:g,drop:b,isRTL:y}=$.useContext(Kb);r=r||g;const v=$.useContext(Xb),p=[];if(r)if(typeof r=="object"){const S=Object.keys(r);if(S.length){const T=S[0],C=r[T];d=C==="start",p.push(`${m}-${T}-${C}`)}}else r==="end"&&(d=!0);const w=e1(d,b,y),[x,{hasShown:_,popper:O,show:P,toggle:A}]=Bb({flip:i,rootCloseEvent:n,show:o,usePopper:!h&&p.length===0,offset:[0,2],popperConfig:u,placement:w});if(x.ref=Nl(Zb(f),x.ref),xb(()=>{P&&(O==null||O.update())},[P]),!_&&!a&&!v)return null;typeof s!="string"&&(x.show=P,x.close=()=>A==null?void 0:A(!1),x.align=r);let L=c.style;return O!=null&&O.placement&&(L={...c.style,...x.style},c["x-placement"]=O.placement),J(s,{...c,...x,style:L,...(p.length||h)&&{"data-bs-popper":"static"},className:be(t,m,P&&"show",d&&`${m}-end`,l&&`${m}-${l}`,...p)})});rp.displayName="DropdownMenu";rp.defaultProps=GA;const XA=rp,t1=$.forwardRef(({bsPrefix:e,split:t,className:r,childBsPrefix:n,as:i=qo,...o},a)=>{const s=Pe(e,"dropdown-toggle"),u=$.useContext(jl);n!==void 0&&(o.bsPrefix=n);const[l]=zb();return l.ref=Nl(l.ref,Zb(a)),J(i,{className:be(r,s,t&&`${s}-split`,(u==null?void 0:u.show)&&"show"),...l,...o})});t1.displayName="DropdownToggle";const JA=t1,ZA=kt("dropdown-header",{defaultProps:{role:"heading"}}),eI=kt("dropdown-divider",{Component:"hr",defaultProps:{role:"separator"}}),tI=kt("dropdown-item-text",{Component:"span"}),rI={navbar:!1,align:"start",autoClose:!0,drop:"down"},np=$.forwardRef((e,t)=>{const{bsPrefix:r,drop:n,show:i,className:o,align:a,onSelect:s,onToggle:u,focusFirstItemOnShow:l,as:c="div",navbar:f,autoClose:d,...h}=Dh(e,{show:"onToggle"}),m=$.useContext(Xb),g=Pe(r,"dropdown"),b=dR(),y=O=>d===!1?O==="click":d==="inside"?O!=="rootClose":d==="outside"?O!=="select":!0,v=Ye((O,P)=>{P.originalEvent.currentTarget===document&&(P.source!=="keydown"||P.originalEvent.key==="Escape")&&(P.source="rootClose"),y(P.source)&&(u==null||u(O,P))}),w=e1(a==="end",n,b),x=$.useMemo(()=>({align:a,drop:n,isRTL:b}),[a,n,b]),_={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return J(Kb.Provider,{value:x,children:J(Ha,{placement:w,show:i,onSelect:s,onToggle:v,focusFirstItemOnShow:l,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:m?h.children:J(c,{...h,ref:t,className:be(o,i&&"show",_[n])})})})});np.displayName="Dropdown";np.defaultProps=rI;const Hn=Object.assign(np,{Toggle:JA,Menu:XA,Item:YA,ItemText:tI,Divider:eI,Header:ZA}),nI={fluid:!1},ip=$.forwardRef(({bsPrefix:e,fluid:t,as:r="div",className:n,...i},o)=>{const a=Pe(e,"container"),s=typeof t=="string"?`-${t}`:"-fluid";return J(r,{ref:o,...i,className:be(n,t?`${a}${s}`:a)})});ip.displayName="Container";ip.defaultProps=nI;const Ul=ip;Tt.string,Tt.bool,Tt.bool,Tt.bool,Tt.bool;const iI={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1},op=$.forwardRef(({bsPrefix:e,className:t,fluid:r,rounded:n,roundedCircle:i,thumbnail:o,...a},s)=>(e=Pe(e,"img"),J("img",{ref:s,...a,className:be(t,r&&`${e}-fluid`,n&&"rounded",i&&"rounded-circle",o&&`${e}-thumbnail`)})));op.displayName="Image";op.defaultProps=iI;const ap=op,r1=$.createContext(null),oI=["as","active","eventKey"];function aI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function n1({key:e,onClick:t,active:r,id:n,role:i,disabled:o}){const a=$.useContext(ti),s=$.useContext(Bl),u=$.useContext(r1);let l=r;const c={role:i};if(s){!i&&s.role==="tablist"&&(c.role="tab");const f=s.getControllerId(e??null),d=s.getControlledId(e??null);c[uo("event-key")]=e,c.id=f||n,l=r==null&&e!=null?s.activeKey===e:r,(l||!(u!=null&&u.unmountOnExit)&&!(u!=null&&u.mountOnEnter))&&(c["aria-controls"]=d)}return c.role==="tab"&&(c["aria-selected"]=l,l||(c.tabIndex=-1),o&&(c.tabIndex=-1,c["aria-disabled"]=!0)),c.onClick=Ye(f=>{o||(t==null||t(f),e!=null&&a&&!f.isPropagationStopped()&&a(e,f))}),[c,{isActive:l}]}const i1=$.forwardRef((e,t)=>{let{as:r=Uh,active:n,eventKey:i}=e,o=aI(e,oI);const[a,s]=n1(Object.assign({key:Ra(i,o.href),active:n},o));return a[uo("active")]=s.isActive,J(r,Object.assign({},o,a,{ref:t}))});i1.displayName="NavItem";const sI=["as","onSelect","activeKey","role","onKeyDown"];function uI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}const _m=()=>{},Em=uo("event-key"),o1=$.forwardRef((e,t)=>{let{as:r="div",onSelect:n,activeKey:i,role:o,onKeyDown:a}=e,s=uI(e,sI);const u=Pb(),l=$.useRef(!1),c=$.useContext(ti),f=$.useContext(r1);let d,h;f&&(o=o||"tablist",i=f.activeKey,d=f.getControlledId,h=f.getControllerId);const m=$.useRef(null),g=p=>{const w=m.current;if(!w)return null;const x=Tr(w,`[${Em}]:not([aria-disabled=true])`),_=w.querySelector("[aria-selected=true]");if(!_||_!==document.activeElement)return null;const O=x.indexOf(_);if(O===-1)return null;let P=O+p;return P>=x.length&&(P=0),P<0&&(P=x.length-1),x[P]},b=(p,w)=>{p!=null&&(n==null||n(p,w),c==null||c(p,w))},y=p=>{if(a==null||a(p),!f)return;let w;switch(p.key){case"ArrowLeft":case"ArrowUp":w=g(-1);break;case"ArrowRight":case"ArrowDown":w=g(1);break;default:return}w&&(p.preventDefault(),b(w.dataset[VA("EventKey")]||null,p),l.current=!0,u())};$.useEffect(()=>{if(m.current&&l.current){const p=m.current.querySelector(`[${Em}][aria-selected=true]`);p==null||p.focus()}l.current=!1});const v=Nl(t,m);return J(ti.Provider,{value:b,children:J(Bl.Provider,{value:{role:o,activeKey:Ra(i),getControlledId:d||_m,getControllerId:h||_m},children:J(r,Object.assign({},s,{onKeyDown:y,ref:v,role:o}))})})});o1.displayName="Nav";const lI=Object.assign(o1,{Item:i1});function jc(e){e===void 0&&(e=Ml());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function cI(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Cm=uo("modal-open");class sp{constructor({ownerDocument:t,handleContainerOverflow:r=!0,isRTL:n=!1}={}){this.handleContainerOverflow=r,this.isRTL=n,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return cI(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const r={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[n]:i.style[n]},t.scrollBarWidth&&(r[n]=`${parseInt(Nr(i,n)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Cm,""),Nr(i,r)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const r=this.getElement();r.removeAttribute(Cm),Object.assign(r.style,t.style)}add(t){let r=this.modals.indexOf(t);return r!==-1||(r=this.modals.length,this.modals.push(t),this.setModalAttributes(t),r!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),r}remove(t){const r=this.modals.indexOf(t);r!==-1&&(this.modals.splice(r,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Fc=(e,t)=>Ll?e==null?(t||Ml()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function fI(e,t){const r=tp(),[n,i]=$.useState(()=>Fc(e,r==null?void 0:r.document));if(!n){const o=Fc(e);o&&i(o)}return $.useEffect(()=>{t&&n&&t(n)},[t,n]),$.useEffect(()=>{const o=Fc(e);o!==n&&i(o)},[e,n]),n}const dI=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function hI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}let Bc;function pI(e){return Bc||(Bc=new sp({ownerDocument:e==null?void 0:e.document})),Bc}function vI(e){const t=tp(),r=e||pI(t),n=$.useRef({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>r.add(n.current),remove:()=>r.remove(n.current),isTopModal:()=>r.isTopModal(n.current),setDialogRef:$.useCallback(i=>{n.current.dialog=i},[]),setBackdropRef:$.useCallback(i=>{n.current.backdrop=i},[])})}const a1=$.forwardRef((e,t)=>{let{show:r=!1,role:n="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:u=!0,onBackdropClick:l,onEscapeKeyDown:c,transition:f,backdropTransition:d,autoFocus:h=!0,enforceFocus:m=!0,restoreFocus:g=!0,restoreFocusOptions:b,renderDialog:y,renderBackdrop:v=W=>J("div",Object.assign({},W)),manager:p,container:w,onShow:x,onHide:_=()=>{},onExit:O,onExited:P,onExiting:A,onEnter:L,onEntering:S,onEntered:T}=e,C=hI(e,dI);const I=fI(w),D=vI(p),z=bb(),Q=Sb(r),[R,N]=$.useState(!r),B=$.useRef(null);$.useImperativeHandle(t,()=>D,[D]),Ll&&!Q&&r&&(B.current=jc()),!f&&!r&&!R?N(!0):r&&R&&N(!1);const q=Ye(()=>{if(D.add(),ne.current=ln(document,"keydown",K),ie.current=ln(document,"focus",()=>setTimeout(oe),!0),x&&x(),h){const W=jc(document);D.dialog&&W&&!Nu(D.dialog,W)&&(B.current=W,D.dialog.focus())}}),re=Ye(()=>{if(D.remove(),ne.current==null||ne.current(),ie.current==null||ie.current(),g){var W;(W=B.current)==null||W.focus==null||W.focus(b),B.current=null}});$.useEffect(()=>{!r||!I||q()},[r,I,q]),$.useEffect(()=>{R&&re()},[R,re]),w2(()=>{re()});const oe=Ye(()=>{if(!m||!z()||!D.isTopModal())return;const W=jc();D.dialog&&W&&!Nu(D.dialog,W)&&D.dialog.focus()}),Y=Ye(W=>{W.target===W.currentTarget&&(l==null||l(W),s===!0&&_())}),K=Ye(W=>{u&&W.keyCode===27&&D.isTopModal()&&(c==null||c(W),W.defaultPrevented||_())}),ie=$.useRef(),ne=$.useRef(),fe=(...W)=>{N(!0),P==null||P(...W)},se=f;if(!I||!(r||se&&!R))return null;const X=Object.assign({role:n,ref:D.setDialogRef,"aria-modal":n==="dialog"?!0:void 0},C,{style:o,className:i,tabIndex:-1});let V=y?y(X):J("div",Object.assign({},X,{children:$.cloneElement(a,{role:"document"})}));se&&(V=J(se,{appear:!0,unmountOnExit:!0,in:!!r,onExit:O,onExiting:A,onExited:fe,onEnter:L,onEntering:S,onEntered:T,children:V}));let te=null;if(s){const W=d;te=v({ref:D.setBackdropRef,onClick:Y}),W&&(te=J(W,{appear:!0,in:!!r,children:te}))}return J(Ke,{children:Pi.createPortal(ve(Ke,{children:[te,V]}),I)})});a1.displayName="Modal";const gI=Object.assign(a1,{Manager:sp});function mI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function yI(e,t){e.classList?e.classList.add(t):mI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function km(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function wI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=km(e.className,t):e.setAttribute("class",km(e.className&&e.className.baseVal||"",t))}const pi={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class s1 extends sp{adjustAndStore(t,r,n){const i=r.style[t];r.dataset[t]=i,Nr(r,{[t]:`${parseFloat(Nr(r,t))+n}px`})}restore(t,r){const n=r.dataset[t];n!==void 0&&(delete r.dataset[t],Nr(r,{[t]:n}))}setContainerStyle(t){super.setContainerStyle(t);const r=this.getElement();if(yI(r,"modal-open"),!t.scrollBarWidth)return;const n=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Tr(r,pi.FIXED_CONTENT).forEach(o=>this.adjustAndStore(n,o,t.scrollBarWidth)),Tr(r,pi.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Tr(r,pi.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const r=this.getElement();wI(r,"modal-open");const n=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Tr(r,pi.FIXED_CONTENT).forEach(o=>this.restore(n,o)),Tr(r,pi.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Tr(r,pi.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Uc;function bI(e){return Uc||(Uc=new s1(e)),Uc}const SI=s1,xI=$.createContext({onHide(){}}),u1=xI,_I={closeLabel:"Close",closeButton:!1},l1=$.forwardRef(({closeLabel:e,closeVariant:t,closeButton:r,onHide:n,children:i,...o},a)=>{const s=$.useContext(u1),u=Ye(()=>{s==null||s.onHide(),n==null||n()});return ve("div",{ref:a,...o,children:[i,r&&J(e2,{"aria-label":e,variant:t,onClick:u})]})});l1.defaultProps=_I;const EI=l1;var md={},CI={get exports(){return md},set exports(e){md=e}},Du={},kI={get exports(){return Du},set exports(e){Du=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){function i(a,s,u,l,c,f){var d=l||"<>",h=f||u;if(s[u]==null)return a?new Error("Required "+c+" `"+h+"` was not specified "+("in `"+d+"`.")):null;for(var m=arguments.length,g=Array(m>6?m-6:0),b=6;b{e=Pe(e,"nav-link");const[s,u]=n1({key:Ra(i,o.href),active:n,...o});return J(r,{...o,...s,ref:a,className:be(t,e,o.disabled&&"disabled",u.isActive&&"active")})});up.displayName="NavLink";up.defaultProps=TI;const c1=up,PI={justify:!1,fill:!1},lp=$.forwardRef((e,t)=>{const{as:r="div",bsPrefix:n,variant:i,fill:o,justify:a,navbar:s,navbarScroll:u,className:l,activeKey:c,...f}=Dh(e,{activeKey:"onSelect"}),d=Pe(n,"nav");let h,m,g=!1;const b=$.useContext(ai),y=$.useContext(Cb);return b?(h=b.bsPrefix,g=s??!0):y&&({cardHeaderBsPrefix:m}=y),J(lI,{as:r,ref:t,activeKey:c,className:be(l,{[d]:!g,[`${h}-nav`]:g,[`${h}-nav-scroll`]:g&&u,[`${m}-${i}`]:!!m,[`${d}-${i}`]:!!i,[`${d}-fill`]:o,[`${d}-justified`]:a}),...f})});lp.displayName="Nav";lp.defaultProps=PI;const vi=Object.assign(lp,{Item:OI,Link:c1}),f1=$.forwardRef(({bsPrefix:e,className:t,as:r,...n},i)=>{e=Pe(e,"navbar-brand");const o=r||(n.href?"a":"span");return J(o,{...n,ref:i,className:be(t,e)})});f1.displayName="NavbarBrand";const RI=f1,d1=$.forwardRef(({children:e,bsPrefix:t,...r},n)=>{t=Pe(t,"navbar-collapse");const i=$.useContext(ai);return J(jR,{in:!!(i&&i.expanded),...r,children:J("div",{ref:n,className:t,children:e})})});d1.displayName="NavbarCollapse";const AI=d1,II={label:"Toggle navigation"},cp=$.forwardRef(({bsPrefix:e,className:t,children:r,label:n,as:i="button",onClick:o,...a},s)=>{e=Pe(e,"navbar-toggler");const{onToggle:u,expanded:l}=$.useContext(ai)||{},c=Ye(f=>{o&&o(f),u&&u()});return i==="button"&&(a.type="button"),J(i,{...a,ref:s,onClick:c,"aria-label":n,className:be(t,e,!l&&"collapsed"),children:r||J("span",{className:`${e}-icon`})})});cp.displayName="NavbarToggle";cp.defaultProps=II;const MI=cp;var yd=new WeakMap,Om=function(t,r){if(!(!t||!r)){var n=yd.get(r)||new Map;yd.set(r,n);var i=n.get(t);return i||(i=r.matchMedia(t),i.refCount=0,n.set(i.media,i)),i}};function LI(e,t){t===void 0&&(t=typeof window>"u"?void 0:window);var r=Om(e,t),n=$.useState(function(){return r?r.matches:!1}),i=n[0],o=n[1];return xb(function(){var a=Om(e,t);if(!a)return o(!1);var s=yd.get(t),u=function(){o(a.matches)};return a.refCount++,a.addListener(u),u(),function(){a.removeListener(u),a.refCount--,a.refCount<=0&&(s==null||s.delete(a.media)),a=void 0}},[e]),i}function NI(e){var t=Object.keys(e);function r(s,u){return s===u?u:s?s+" and "+u:u}function n(s){return t[Math.min(t.indexOf(s)+1,t.length-1)]}function i(s){var u=n(s),l=e[u];return typeof l=="number"?l=l-.2+"px":l="calc("+l+" - 0.2px)","(max-width: "+l+")"}function o(s){var u=e[s];return typeof u=="number"&&(u=u+"px"),"(min-width: "+u+")"}function a(s,u,l){var c;if(typeof s=="object")c=s,l=u,u=!0;else{var f;u=u||!0,c=(f={},f[s]=u,f)}var d=$.useMemo(function(){return Object.entries(c).reduce(function(h,m){var g=m[0],b=m[1];return(b==="up"||b===!0)&&(h=r(h,o(g))),(b==="down"||b===!0)&&(h=r(h,i(g))),h},"")},[JSON.stringify(c)]);return LI(d,l)}return a}var DI=NI({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});const jI=kt("offcanvas-body"),FI={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1},BI={[Jt]:"show",[Rr]:"show"},fp=$.forwardRef(({bsPrefix:e,className:t,children:r,...n},i)=>(e=Pe(e,"offcanvas"),J(Fh,{ref:i,addEndListener:jh,...n,childRef:r.ref,children:(o,a)=>$.cloneElement(r,{...a,className:be(t,r.props.className,(o===Jt||o===Oa)&&`${e}-toggling`,BI[o])})})));fp.defaultProps=FI;fp.displayName="OffcanvasToggling";const UI=fp,$I={closeLabel:"Close",closeButton:!1},dp=$.forwardRef(({bsPrefix:e,className:t,...r},n)=>(e=Pe(e,"offcanvas-header"),J(EI,{ref:n,...r,className:be(t,e)})));dp.displayName="OffcanvasHeader";dp.defaultProps=$I;const zI=dp,WI=Wh("h5"),HI=kt("offcanvas-title",{Component:WI}),qI={show:!1,backdrop:!0,keyboard:!0,scroll:!1,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,placement:"start",renderStaticNode:!1};function VI(e){return J(UI,{...e})}function QI(e){return J(XR,{...e})}const hp=$.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":n,placement:i,responsive:o,show:a,backdrop:s,keyboard:u,scroll:l,onEscapeKeyDown:c,onShow:f,onHide:d,container:h,autoFocus:m,enforceFocus:g,restoreFocus:b,restoreFocusOptions:y,onEntered:v,onExit:p,onExiting:w,onEnter:x,onEntering:_,onExited:O,backdropClassName:P,manager:A,renderStaticNode:L,...S},T)=>{const C=$.useRef();e=Pe(e,"offcanvas");const{onToggle:I}=$.useContext(ai)||{},[D,z]=$.useState(!1),Q=DI(o||"xs","up");$.useEffect(()=>{z(o?a&&!Q:a)},[a,o,Q]);const R=Ye(()=>{I==null||I(),d==null||d()}),N=$.useMemo(()=>({onHide:R}),[R]);function B(){return A||(l?(C.current||(C.current=new SI({handleContainerOverflow:!1})),C.current):bI())}const q=(K,...ie)=>{K&&(K.style.visibility="visible"),x==null||x(K,...ie)},re=(K,...ie)=>{K&&(K.style.visibility=""),O==null||O(...ie)},oe=$.useCallback(K=>J("div",{...K,className:be(`${e}-backdrop`,P)}),[P,e]),Y=K=>J("div",{...K,...S,className:be(t,o?`${e}-${o}`:e,`${e}-${i}`),"aria-labelledby":n,children:r});return ve(Ke,{children:[!D&&(o||L)&&Y({}),J(u1.Provider,{value:N,children:J(gI,{show:D,ref:T,backdrop:s,container:h,keyboard:u,autoFocus:m,enforceFocus:g&&!l,restoreFocus:b,restoreFocusOptions:y,onEscapeKeyDown:c,onShow:f,onHide:R,onEnter:q,onEntering:_,onEntered:v,onExit:p,onExiting:w,onExited:re,manager:B(),transition:VI,backdropTransition:QI,renderBackdrop:oe,renderDialog:Y})})]})});hp.displayName="Offcanvas";hp.defaultProps=qI;const KI=Object.assign(hp,{Body:jI,Header:zI,Title:HI}),h1=$.forwardRef((e,t)=>{const r=$.useContext(ai);return J(KI,{ref:t,show:!!(r!=null&&r.expanded),...e,renderStaticNode:!0})});h1.displayName="NavbarOffcanvas";const YI=h1,GI=kt("navbar-text",{Component:"span"}),XI={expand:!0,variant:"light",collapseOnSelect:!1},pp=$.forwardRef((e,t)=>{const{bsPrefix:r,expand:n,variant:i,bg:o,fixed:a,sticky:s,className:u,as:l="nav",expanded:c,onToggle:f,onSelect:d,collapseOnSelect:h,...m}=Dh(e,{expanded:"onToggle"}),g=Pe(r,"navbar"),b=$.useCallback((...p)=>{d==null||d(...p),h&&c&&(f==null||f(!1))},[d,h,c,f]);m.role===void 0&&l!=="nav"&&(m.role="navigation");let y=`${g}-expand`;typeof n=="string"&&(y=`${y}-${n}`);const v=$.useMemo(()=>({onToggle:()=>f==null?void 0:f(!c),bsPrefix:g,expanded:!!c,expand:n}),[g,c,n,f]);return J(ai.Provider,{value:v,children:J(ti.Provider,{value:b,children:J(l,{ref:t,...m,className:be(u,g,n&&y,i&&`${g}-${i}`,o&&`bg-${o}`,s&&`sticky-${s}`,a&&`fixed-${a}`)})})})});pp.defaultProps=XI;pp.displayName="Navbar";const xo=Object.assign(pp,{Brand:RI,Collapse:AI,Offcanvas:YI,Text:GI,Toggle:MI}),p1=$.forwardRef(({id:e,title:t,children:r,bsPrefix:n,className:i,rootCloseEvent:o,menuRole:a,disabled:s,active:u,renderMenuOnMount:l,menuVariant:c,...f},d)=>{const h=Pe(void 0,"nav-item");return ve(Hn,{ref:d,...f,className:be(i,h),children:[J(Hn.Toggle,{id:e,eventKey:null,active:u,disabled:s,childBsPrefix:n,as:c1,children:t}),J(Hn.Menu,{role:a,renderOnMount:l,rootCloseEvent:o,variant:c,children:r})]})});p1.displayName="NavDropdown";const Dn=Object.assign(p1,{Item:Hn.Item,ItemText:Hn.ItemText,Divider:Hn.Divider,Header:Hn.Header}),v1=$.forwardRef(({bsPrefix:e,className:t,as:r="div",...n},i)=>{const o=Pe(e,"row"),a=fb(),s=db(),u=`${o}-cols`,l=[];return a.forEach(c=>{const f=n[c];delete n[c];let d;f!=null&&typeof f=="object"?{cols:d}=f:d=f;const h=c!==s?`-${c}`:"";d!=null&&l.push(`${u}${h}-${d}`)}),J(r,{ref:i,...n,className:be(t,o,...l)})});v1.displayName="Row";const st=v1,g1=$.forwardRef(({bsPrefix:e,variant:t,animation:r="border",size:n,as:i="div",className:o,...a},s)=>{e=Pe(e,"spinner");const u=`${e}-${r}`;return J(i,{ref:s,...a,className:be(o,u,n&&`${u}-${n}`,t&&`text-${t}`)})});g1.displayName="Spinner";const JI=g1;const ZI=({users:e})=>{const{t}=Ln();return e.length>0?J(st,{className:"mb-3 row-cols-1 row-cols-sm-2 row-cols-lg-4 gy-3",children:e.map(r=>J(Ve,{children:ve(hr,{className:"h-100",children:[J(hr.Header,{children:r.picture&&J(ap,{fluid:!0,src:r.picture.replace("s=128","s=242"),alt:"avatar",className:"w-100"})}),ve(hr.Body,{className:"text-center",children:[ve("h5",{children:[r.name,r.username&&J("div",{className:"small",children:r.username})]}),ve(a2,{children:[r.twitter&&J(qo,{href:"https://twitter.com/"+r.twitter,target:"_blank",children:J("i",{className:"fab fa-twitter fa-2x"})}),r.github&&J(qo,{variant:"default",href:"https://github.com/"+r.github,target:"_blank",children:J("i",{className:"fab fa-github fa-2x"})}),r.url&&J(qo,{variant:"info",href:r.url,target:"_blank",children:J("i",{className:"fas fa-link fa-2x"})})]})]})]})},r.picture))}):J(st,{className:"mb-3",children:ve(Ve,{className:"text-center no_users",children:[J("i",{className:"far fa-frown"}),J("h5",{className:"mt-2",children:t("views.users.everybodys_gone")})]})})},ir=({large:e})=>J(JI,{size:e?null:"sm"});ir.defaultProps={large:!1};ir.propTypes={large:Tt.bool};function ri(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ct(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function As(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?As=function(r){return typeof r}:As=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},As(e)}function ur(e){ct(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||As(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function eM(e,t){ct(2,arguments);var r=ur(e).getTime(),n=ri(t);return new Date(r+n)}var tM={};function $l(){return tM}function rM(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Is(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Is=function(r){return typeof r}:Is=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Is(e)}function nM(e){return ct(1,arguments),e instanceof Date||Is(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function iM(e){if(ct(1,arguments),!nM(e)&&typeof e!="number")return!1;var t=ur(e);return!isNaN(Number(t))}function oM(e,t){ct(2,arguments);var r=ri(t);return eM(e,-r)}var aM=864e5;function sM(e){ct(1,arguments);var t=ur(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/aM)+1}function ju(e){ct(1,arguments);var t=1,r=ur(e),n=r.getUTCDay(),i=(n=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function uM(e){ct(1,arguments);var t=m1(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ju(r);return n}var lM=6048e5;function cM(e){ct(1,arguments);var t=ur(e),r=ju(t).getTime()-uM(t).getTime();return Math.round(r/lM)+1}function Fu(e,t){var r,n,i,o,a,s,u,l;ct(1,arguments);var c=$l(),f=ri((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=ur(e),h=d.getUTCDay(),m=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var g=Fu(m,t),b=new Date(0);b.setUTCFullYear(f,0,h),b.setUTCHours(0,0,0,0);var y=Fu(b,t);return c.getTime()>=g.getTime()?f+1:c.getTime()>=y.getTime()?f:f-1}function fM(e,t){var r,n,i,o,a,s,u,l;ct(1,arguments);var c=$l(),f=ri((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=y1(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Fu(h,t);return m}var dM=6048e5;function hM(e,t){ct(1,arguments);var r=ur(e),n=Fu(r,t).getTime()-fM(r,t).getTime();return Math.round(n/dM)+1}function me(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return me(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):me(n+1,2)},d:function(t,r){return me(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return me(t.getUTCHours()%12||12,r.length)},H:function(t,r){return me(t.getUTCHours(),r.length)},m:function(t,r){return me(t.getUTCMinutes(),r.length)},s:function(t,r){return me(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return me(o,r.length)}};const Yr=pM;var gi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vM={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return Yr.y(t,r)},Y:function(t,r,n,i){var o=y1(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return me(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):me(a,r.length)},R:function(t,r){var n=m1(t);return me(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return me(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return me(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return me(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return Yr.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return me(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=hM(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,r.length)},I:function(t,r,n){var i=cM(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):me(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Yr.d(t,r)},D:function(t,r,n){var i=sM(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):me(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return me(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return me(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return me(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=gi.noon:i===0?o=gi.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=gi.evening:i>=12?o=gi.afternoon:i>=4?o=gi.morning:o=gi.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Yr.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Yr.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):me(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):me(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Yr.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Yr.s(t,r)},S:function(t,r){return Yr.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Pm(a);case"XXXX":case"XX":return Un(a);case"XXXXX":case"XXX":default:return Un(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Pm(a);case"xxxx":case"xx":return Un(a);case"xxxxx":case"xxx":default:return Un(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Tm(a,":");case"OOOO":default:return"GMT"+Un(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Tm(a,":");case"zzzz":default:return"GMT"+Un(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return me(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return me(a,r.length)}};function Tm(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t||"";return r+String(i)+a+me(o,2)}function Pm(e,t){if(e%60===0){var r=e>0?"-":"+";return r+me(Math.abs(e)/60,2)}return Un(e,t)}function Un(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=me(Math.floor(i/60),2),a=me(i%60,2);return n+o+r+a}const gM=vM;var Rm=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},w1=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},mM=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return Rm(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Rm(i,r)).replace("{{time}}",w1(o,r))},yM={p:w1,P:mM};const wM=yM;var bM=["D","DD"],SM=["YY","YYYY"];function xM(e){return bM.indexOf(e)!==-1}function _M(e){return SM.indexOf(e)!==-1}function Am(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var EM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},CM=function(t,r,n){var i,o=EM[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const kM=CM;function $c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var OM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},TM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},RM={date:$c({formats:OM,defaultWidth:"full"}),time:$c({formats:TM,defaultWidth:"full"}),dateTime:$c({formats:PM,defaultWidth:"full"})};const AM=RM;var IM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},MM=function(t,r,n,i){return IM[t]};const LM=MM;function _o(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var NM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},DM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},BM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$M=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zM={ordinalNumber:$M,era:_o({values:NM,defaultWidth:"wide"}),quarter:_o({values:DM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:_o({values:jM,defaultWidth:"wide"}),day:_o({values:FM,defaultWidth:"wide"}),dayPeriod:_o({values:BM,defaultWidth:"wide",formattingValues:UM,defaultFormattingWidth:"wide"})};const WM=zM;function Eo(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?qM(s,function(f){return f.test(a)}):HM(s,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(a.length);return{value:l,rest:c}}}function HM(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function qM(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var QM=/^(\d+)(th|st|nd|rd)?/i,KM=/\d+/i,YM={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},GM={any:[/^b/i,/^(a|c)/i]},XM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},JM={any:[/1/i,/2/i,/3/i,/4/i]},ZM={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},iL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oL={ordinalNumber:VM({matchPattern:QM,parsePattern:KM,valueCallback:function(t){return parseInt(t,10)}}),era:Eo({matchPatterns:YM,defaultMatchWidth:"wide",parsePatterns:GM,defaultParseWidth:"any"}),quarter:Eo({matchPatterns:XM,defaultMatchWidth:"wide",parsePatterns:JM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Eo({matchPatterns:ZM,defaultMatchWidth:"wide",parsePatterns:eL,defaultParseWidth:"any"}),day:Eo({matchPatterns:tL,defaultMatchWidth:"wide",parsePatterns:rL,defaultParseWidth:"any"}),dayPeriod:Eo({matchPatterns:nL,defaultMatchWidth:"any",parsePatterns:iL,defaultParseWidth:"any"})};const aL=oL;var sL={code:"en-US",formatDistance:kM,formatLong:AM,formatRelative:LM,localize:WM,match:aL,options:{weekStartsOn:0,firstWeekContainsDate:1}};const uL=sL;var lL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fL=/^'([^]*?)'?$/,dL=/''/g,hL=/[a-zA-Z]/;function pL(e,t,r){var n,i,o,a,s,u,l,c,f,d,h,m,g,b,y,v,p,w;ct(2,arguments);var x=String(t),_=$l(),O=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:uL,P=ri((o=(a=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=ri((h=(m=(g=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(y=r.locale)===null||y===void 0||(v=y.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&g!==void 0?g:_.weekStartsOn)!==null&&m!==void 0?m:(p=_.locale)===null||p===void 0||(w=p.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&h!==void 0?h:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var L=ur(e);if(!iM(L))throw new RangeError("Invalid time value");var S=rM(L),T=oM(L,S),C={firstWeekContainsDate:P,weekStartsOn:A,locale:O,_originalDate:L},I=x.match(cL).map(function(D){var z=D[0];if(z==="p"||z==="P"){var Q=wM[z];return Q(D,O.formatLong)}return D}).join("").match(lL).map(function(D){if(D==="''")return"'";var z=D[0];if(z==="'")return vL(D);var Q=gM[z];if(Q)return!(r!=null&&r.useAdditionalWeekYearTokens)&&_M(D)&&Am(D,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&xM(D)&&Am(D,t,String(e)),Q(T,D,O.localize,C);if(z.match(hL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return D}).join("");return I}function vL(e){var t=e.match(fL);return t?t[1].replace(dL,"'"):e}function gL(e,t){var r,n;ct(1,arguments);var i=ur(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){var f=me(i.getDate(),2),d=me(i.getMonth()+1,2),h=me(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var g=Math.abs(m),b=me(Math.floor(g/60),2),y=me(g%60,2),v=m<0?"+":"-";u="".concat(v).concat(b,":").concat(y)}else u="Z";var p=me(i.getHours(),2),w=me(i.getMinutes(),2),x=me(i.getSeconds(),2),_=s===""?"":"T",O=[p,w,x].join(c);s="".concat(s).concat(_).concat(O).concat(u)}return s}const b1=()=>{const{t:e}=Ln(),{data:t,error:r,isLoading:n,isSuccess:i,isError:o,fulfilledTimeStamp:a}=QC(void 0,{pollingInterval:6e4}),s=$.useMemo(()=>new Date(a),[a]),u=i?t.length:0;return ve(Ke,{children:[ve(st,{as:"header",className:"row-cols row-cols-1 row-cols-lg-2 mt-2",children:[J(Ve,{children:J("h2",{children:e("views.users.whos_in_the_lab")})}),ve(Ve,{className:"text-end",children:[n&&J(ir,{}),i&&J("h2",{children:ve("div",{className:"small text-muted",children:[e("views.users.people_at_about_html."+(u===1?"one":"other")).replace("%{count}",u.toString(10))," ",J("time",{dateTime:gL(s),children:pL(s,"HH:mm")})]})})]})]}),n&&J(st,{className:"mb-3",children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})}),i&&J(ZI,{users:t}),o&&J(st,{className:"mb-3",children:J(Ve,{children:r})})]})};const mL={Temperature:["°C",1],Humidity:["%",1]},S1=({label:e,topic:t})=>{const r=ha(GC(t)),n=mL.Temperature,i=(r==null?void 0:r.data)&&parseFloat(r.data).toFixed(n[1])+n[0];return J(Ve,{children:J(hr,{bg:"primary",text:"white",children:J(hr.Body,{children:J(Ul,{children:ve(st,{children:[J(Ve,{xs:3,children:J("i",{className:"fas fa-thermometer-half fa-5x"})}),ve(Ve,{xs:9,className:"text-end",children:[J("div",{className:"huge",children:i||J(ir,{})}),J("div",{children:e})]})]})})})})})};S1.propTypes={label:Tt.string.isRequired,topic:Tt.string.isRequired};const yL=()=>{const{t:e}=Ln();return ve(Ke,{children:[J(st,{children:J(Ve,{children:J("h3",{children:e("views.dashboard.sensor_readings")})})}),J(st,{className:"row-cols-1 row-cols-lg-3 g-3",children:$a.sensors.map((t,r)=>J(S1,{...t},r))})]})},wL=()=>ve(Ke,{children:[J(b1,{}),J(yL,{})]});const bL="/fauna-frontend/assets/logo-6c62b912.svg",SL=()=>J("i",{className:"fa-solid fa-triangle-exclamation"}),xL=()=>J("i",{className:"fas fa-lock"}),_L=()=>J("i",{className:"fas fa-unlock"}),EL=()=>J("i",{className:"fa-solid fa-gear fa-spin"}),CL=()=>J("i",{className:"fas fa-door-closed"}),kL=()=>J("i",{className:"fas fa-door-open"}),OL=()=>{const{t:e}=Ln(),t=ha(JC("closed")),r=ha(Aw()),n="https://fauna.initlab.org/",i=Cw()!==null;return J(xo,{bg:"primary",variant:"dark",expand:"lg",className:"py-0",children:ve(Ul,{children:[J(xo.Brand,{as:li,to:"/",children:J(ap,{src:bL,className:"logo",alt:"Fauna"})}),J(xo.Text,{className:"flex-grow-1 flex-lg-grow-0 text-end pe-3 pe-lg-0",children:t?J(CL,{}):J(kL,{})}),J(xo.Toggle,{"aria-controls":"basic-navbar-nav"}),J(xo.Collapse,{id:"basic-navbar-nav",children:ve(vi,{className:"flex-grow-1",children:[ve(vi.Link,{as:li,to:"/doors",children:[r==="uninitialized"&&ve(Ke,{children:[J(ir,{})," ..."]}),r==="locked"&&ve(Ke,{children:[J(xL,{})," ",e("views.doors.locked")]}),r==="unlocked"&&ve(Ke,{children:[J(_L,{})," ",e("views.doors.unlocked")]}),r==="busy"&&ve(Ke,{children:[J(EL,{})," ..."]}),r==="invalid"&&ve(Ke,{children:[J(SL,{})," ",e("views.doors.unknown")]})]}),ve(vi.Link,{as:li,to:"/users/present",children:[J("i",{className:"fas fa-street-view"})," ",e("views.navigation.presence")]}),ve(vi.Link,{as:li,to:"/sensors",children:[J("i",{className:"fas fa-chart-line"})," ",e("views.navigation.sensors")]}),i&&ve(Ke,{children:[ve(vi.Link,{href:n+"fauna/users",children:[J("i",{className:"fas fa-users"})," ",e("views.navigation.labbers")]}),ve(Dn,{title:ve(Ke,{children:[J("i",{className:"fas fa-user"})," ",e("views.navigation.account")]}),className:"ms-0 ms-lg-auto",children:[J(Dn.Item,{href:n+"users/edit",children:e("views.navigation.view_edit")}),J(Dn.Item,{href:n+"user/network_devices",children:e("views.navigation.network_devices")}),J(Dn.Item,{href:n+"oauth/applications",children:e("views.navigation.oauth_application_management")}),J(Dn.Item,{href:n+"oauth/authorized_applications",children:e("views.navigation.oauth_token_management")}),J(Dn.Divider,{}),J(Dn.Item,{as:li,to:"/logout",children:e("views.navigation.sign_out")})]})]}),!i&&ve(vi.Link,{as:li,to:"/login",className:"ms-0 ms-lg-auto",children:[J("i",{className:"fas fa-sign-in"})," ",e("views.navigation.sign_in")]})]})})]})})};const TL=()=>{const{t:e}=Ln();return J("footer",{children:J(Ul,{children:ve(st,{children:[J(Ve,{xs:12,sm:6,children:ve("p",{className:"my-4",children:[e("views.footer.license").replace("init Lab Fauna","init Lab Fauna Frontend")," ",J("a",{href:"https://github.com/initLab/fauna-frontend/blob/master/LICENSE",children:"MIT License"})]})}),J(Ve,{xs:12,sm:6,children:ve("p",{className:"my-4 right",children:[e("views.footer.source_code")," ",J("a",{href:"https://github.com/initLab/fauna-frontend/",children:"GitHub"})]})})]})})})},PL=()=>{const{t:e}=Ln();return ve(Ke,{children:[J(st,{children:J("h2",{children:e("views.sensors.title")})}),Object.entries(nR).map(([t,r])=>ve($.Fragment,{children:[J(st,{children:J("h3",{children:e("views.sensors."+t)})}),J(st,{className:"row-cols row-cols-lg-3",children:r.panels.map(n=>J(Ve,{children:J("a",{href:"https://stats.initlab.org/d/"+r.dashboard.id+"/"+r.dashboard.name,target:"_blank",children:J(ap,{src:"https://stats.initlab.org/render/d-solo/"+r.dashboard.id+"/"+r.dashboard.name+"?orgId=1&panelId="+n+"&width=350&height=200&tz=Europe%2FSofia",height:200})})},n))})]},t))]})};const RL={open:{variant:"success",icon:"fa fa-sign-in"},lock:{variant:"danger",icon:"fa fa-lock"},unlock:{variant:"info",icon:"fa fa-unlock"}},AL=({action:e,onClick:t})=>{const{t:r}=Ln(),n=RL[e];return ve(qo,{variant:n.variant,className:"door-button",onClick:t,children:[J("i",{className:n.icon}),J("div",{children:r("views.doors."+e)})]})},IL=()=>{const{t:e}=Ln(),{data:t,error:r,isLoading:n,isSuccess:i,isError:o}=KC(),a=$.useMemo(()=>i?t.filter(f=>f.supported_actions.length>0):[],[t,i]),[s]=YC(),u="building_door",l=ha(Aw()),c=$.useCallback(f=>{const d=f.supported_actions;return f.id!==u?d:l==="unlocked"?d.filter(h=>h!=="unlock"):l==="locked"?d.filter(h=>["open","lock"].indexOf(h)===-1):[]},[u,l]);return ve(st,{className:"row-cols row-cols-1 gap-4",children:[n&&J(Ve,{className:"text-center",children:J(ir,{large:!0})}),i&&J(Ke,{children:a.length>0?a.map(f=>{const d=c(f);return J(Ve,{children:ve(hr,{children:[J(hr.Header,{className:"bg-primary text-light text-start",children:f.name}),ve(hr.Body,{className:"d-flex flex-column flex-lg-row justify-content-center align-items-center gap-4",children:[d.map(h=>J(AL,{action:h,onClick:()=>s({doorId:f.id,action:h})},h)),f.id===u&&l==="busy"&&J(ir,{large:!0})]})]})},f.id)}):J(Ve,{children:J(hr,{children:J(hr.Body,{className:"d-flex flex-column flex-lg-row gap-4",children:e("views.doors.no_access")})})})}),o&&r.status===401&&J(Gk,{to:"/login"})]})},ML=()=>{const e=$.useRef(!1),[t,r]=$.useState(null),n=Tl();return $.useEffect(()=>{e.current||(e.current=!0,(async()=>{const i=await Ew.exchangeForAccessToken(window.location.href);try{kw(i),n("/",{replace:!0})}catch(o){r(o.message)}})())},[n]),t||J(st,{children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})})},LL=()=>{const e=$.useRef(!1),t=Tl();return $.useEffect(()=>{e.current||(e.current=!0,(async()=>(await BC(),t("/")))())},[]),J(st,{children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})})},NL=()=>{const e=$.useRef(!1);return $.useEffect(()=>{e.current||(e.current=!0,window.location.replace(Ew.authorizeUrl()))},[]),J(st,{children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})})};function DL(){return ve(Ke,{children:[J(OL,{}),J("main",{children:J(Ul,{as:"section",className:"mt-4",children:ve(Jk,{children:[J(Gr,{path:"/",element:J(wL,{})}),J(Gr,{path:"/doors",element:J(IL,{})}),J(Gr,{path:"/users/present",element:J(b1,{})}),J(Gr,{path:"/sensors",element:J(PL,{})}),J(Gr,{path:"/oauth-callback",element:J(ML,{})}),J(Gr,{path:"/login",element:J(NL,{})}),J(Gr,{path:"/logout",element:J(LL,{})})]})})}),J(TL,{})]})}Wc.createRoot(document.getElementById("root")).render(J(Pt.StrictMode,{children:J(F_,{store:xu,children:J(nO,{basename:"/fauna-frontend/",children:J(DL,{})})})})); -//# sourceMappingURL=index-4165adb1.js.map +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i1?c-1:0),d=1;d{o.target===e&&(i(),t(o))},r+n)}function bo(...e){return e.filter(t=>t!=null).reduce((t,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?r:function(...i){t.apply(this,i),r.apply(this,i)}},null)}function mb(e){e.offsetHeight}var um=function(t){return!t||typeof t=="function"?t:function(r){t.current=r}};function IR(e,t){var r=um(e),n=um(t);return function(i){r&&r(i),n&&n(i)}}function Nl(e,t){return $.useMemo(function(){return IR(e,t)},[e,t])}function MR(e){return e&&"setState"in e?Pi.findDOMNode(e):e??null}const LR=Pt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:u,...l},c)=>{const f=$.useRef(null),d=Nl(f,u),h=_=>{d(MR(_))},m=_=>O=>{_&&f.current&&_(f.current,O)},g=$.useCallback(m(e),[e]),b=$.useCallback(m(t),[t]),y=$.useCallback(m(r),[r]),v=$.useCallback(m(n),[n]),p=$.useCallback(m(i),[i]),w=$.useCallback(m(o),[o]),x=$.useCallback(m(a),[a]);return J(Wr,{ref:c,...l,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:w,onExiting:p,addEndListener:x,nodeRef:f,children:typeof s=="function"?(_,O)=>s(_,{...O,ref:h}):Pt.cloneElement(s,{ref:h})})}),Bh=LR,NR={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function yb(e,t){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,n=t[r],i=NR[e];return n+parseInt(Nr(t,i[0]),10)+parseInt(Nr(t,i[1]),10)}const DR={[en]:"collapse",[Oa]:"collapsing",[Jt]:"collapsing",[Rr]:"collapse show"},jR={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:yb},wb=Pt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,className:o,children:a,dimension:s="height",getDimensionValue:u=yb,...l},c)=>{const f=typeof s=="function"?s():s,d=$.useMemo(()=>bo(y=>{y.style[f]="0"},e),[f,e]),h=$.useMemo(()=>bo(y=>{const v=`scroll${f[0].toUpperCase()}${f.slice(1)}`;y.style[f]=`${y[v]}px`},t),[f,t]),m=$.useMemo(()=>bo(y=>{y.style[f]=null},r),[f,r]),g=$.useMemo(()=>bo(y=>{y.style[f]=`${u(f,y)}px`,mb(y)},n),[n,u,f]),b=$.useMemo(()=>bo(y=>{y.style[f]=null},i),[f,i]);return J(Bh,{ref:c,addEndListener:Fh,...l,"aria-expanded":l.role?l.in:null,onEnter:d,onEntering:h,onEntered:m,onExit:g,onExiting:b,childRef:a.ref,children:(y,v)=>Pt.cloneElement(a,{...v,className:be(o,a.props.className,DR[y],f==="width"&&"collapse-horizontal")})})});wb.defaultProps=jR;const FR=wb;function BR(e){var t=$.useRef(e);return $.useEffect(function(){t.current=e},[e]),t}function Ke(e){var t=BR(e);return $.useCallback(function(){return t.current&&t.current.apply(t,arguments)},[t])}function UR(){return $.useState(null)}function $R(e,t,r,n){n===void 0&&(n=!1);var i=Ke(r);$.useEffect(function(){var o=typeof e=="function"?e():e;return o.addEventListener(t,i,n),function(){return o.removeEventListener(t,i,n)}},[e])}function bb(){var e=$.useRef(!0),t=$.useRef(function(){return e.current});return $.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t.current}function Sb(e){var t=$.useRef(null);return $.useEffect(function(){t.current=e}),t.current}var zR=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",WR=typeof document<"u";const xb=WR||zR?$.useLayoutEffect:$.useEffect,HR=["as","disabled"];function qR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function VR(e){return!e||e.trim()==="#"}function Uh({tagName:e,disabled:t,href:r,target:n,rel:i,role:o,onClick:a,tabIndex:s=0,type:u}){e||(r!=null||n!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},l];const c=d=>{if((t||e==="a"&&VR(r))&&d.preventDefault(),t){d.stopPropagation();return}a==null||a(d)},f=d=>{d.key===" "&&(d.preventDefault(),c(d))};return e==="a"&&(r||(r="#"),t&&(r=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:s,href:r,target:e==="a"?n:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:c,onKeyDown:f},l]}const $h=$.forwardRef((e,t)=>{let{as:r,disabled:n}=e,i=qR(e,HR);const[o,{tagName:a}]=Uh(Object.assign({tagName:r,disabled:n},i));return J(a,Object.assign({},i,o,{ref:t}))});$h.displayName="Button";const QR=["onKeyDown"];function KR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function YR(e){return!e||e.trim()==="#"}const zh=$.forwardRef((e,t)=>{let{onKeyDown:r}=e,n=KR(e,QR);const[i]=Uh(Object.assign({tagName:"a"},n)),o=Ke(a=>{i.onKeyDown(a),r==null||r(a)});return YR(n.href)||n.role==="button"?J("a",Object.assign({ref:t},n,i,{onKeyDown:o})):J("a",Object.assign({ref:t},n,{onKeyDown:r}))});zh.displayName="Anchor";const GR={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},XR={[Jt]:"show",[Rr]:"show"},Wh=$.forwardRef(({className:e,children:t,transitionClasses:r={},...n},i)=>{const o=$.useCallback((a,s)=>{mb(a),n.onEnter==null||n.onEnter(a,s)},[n]);return J(Bh,{ref:i,addEndListener:Fh,...n,onEnter:o,childRef:t.ref,children:(a,s)=>$.cloneElement(t,{...s,className:be("fade",e,t.props.className,XR[a],r[a])})})});Wh.defaultProps=GR;Wh.displayName="Fade";const JR=Wh,ZR={"aria-label":Tt.string,onClick:Tt.func,variant:Tt.oneOf(["white"])},e2={"aria-label":"Close"},Dl=$.forwardRef(({className:e,variant:t,...r},n)=>J("button",{ref:n,type:"button",className:be("btn-close",t&&`btn-close-${t}`,e),...r}));Dl.displayName="CloseButton";Dl.propTypes=ZR;Dl.defaultProps=e2;const t2=Dl,Hh=e=>$.forwardRef((t,r)=>J("div",{...t,ref:r,className:be(t.className,e)}));var r2=/-(.)/g;function n2(e){return e.replace(r2,function(t,r){return r.toUpperCase()})}const i2=e=>e[0].toUpperCase()+n2(e).slice(1);function kt(e,{displayName:t=i2(e),Component:r,defaultProps:n}={}){const i=$.forwardRef(({className:o,bsPrefix:a,as:s=r||"div",...u},l)=>{const c=Pe(a,e);return J(s,{ref:l,className:be(o,c),...u})});return i.defaultProps=n,i.displayName=t,i}const o2={variant:"primary",active:!1,disabled:!1},qh=$.forwardRef(({as:e,bsPrefix:t,variant:r,size:n,active:i,className:o,...a},s)=>{const u=Pe(t,"btn"),[l,{tagName:c}]=Uh({tagName:e,...a});return J(c,{...l,...a,ref:s,className:be(o,u,i&&"active",r&&`${u}-${r}`,n&&`${u}-${n}`,a.href&&a.disabled&&"disabled")})});qh.displayName="Button";qh.defaultProps=o2;const qo=qh,a2={vertical:!1,role:"group"},Vh=$.forwardRef(({bsPrefix:e,size:t,vertical:r,className:n,as:i="div",...o},a)=>{const s=Pe(e,"btn-group");let u=s;return r&&(u=`${s}-vertical`),J(i,{...o,ref:a,className:be(n,u,t&&`${s}-${t}`)})});Vh.displayName="ButtonGroup";Vh.defaultProps=a2;const s2=Vh,_b=$.forwardRef(({bsPrefix:e,className:t,variant:r,as:n="img",...i},o)=>{const a=Pe(e,"card-img");return J(n,{ref:o,className:be(r?`${a}-${r}`:a,t),...i})});_b.displayName="CardImg";const u2=_b,Eb=$.createContext(null);Eb.displayName="CardHeaderContext";const Cb=Eb,kb=$.forwardRef(({bsPrefix:e,className:t,as:r="div",...n},i)=>{const o=Pe(e,"card-header"),a=$.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return J(Cb.Provider,{value:a,children:J(r,{ref:i,...n,className:be(t,o)})})});kb.displayName="CardHeader";const l2=kb,c2=Hh("h5"),f2=Hh("h6"),Ob=kt("card-body"),d2=kt("card-title",{Component:c2}),h2=kt("card-subtitle",{Component:f2}),p2=kt("card-link",{Component:"a"}),v2=kt("card-text",{Component:"p"}),g2=kt("card-footer"),m2=kt("card-img-overlay"),y2={body:!1},Qh=$.forwardRef(({bsPrefix:e,className:t,bg:r,text:n,border:i,body:o,children:a,as:s="div",...u},l)=>{const c=Pe(e,"card");return J(s,{ref:l,...u,className:be(t,c,r&&`bg-${r}`,n&&`text-${n}`,i&&`border-${i}`),children:o?J(Ob,{children:a}):a})});Qh.displayName="Card";Qh.defaultProps=y2;const hr=Object.assign(Qh,{Img:u2,Title:d2,Subtitle:h2,Body:Ob,Link:p2,Text:v2,Header:l2,Footer:g2,ImgOverlay:m2});function w2(e){var t=$.useRef(e);return t.current=e,t}function b2(e){var t=w2(e);$.useEffect(function(){return function(){return t.current()}},[])}function S2({as:e,bsPrefix:t,className:r,...n}){t=Pe(t,"col");const i=fb(),o=db(),a=[],s=[];return i.forEach(u=>{const l=n[u];delete n[u];let c,f,d;typeof l=="object"&&l!=null?{span:c,offset:f,order:d}=l:c=l;const h=u!==o?`-${u}`:"";c&&a.push(c===!0?`${t}${h}`:`${t}${h}-${c}`),d!=null&&s.push(`order${h}-${d}`),f!=null&&s.push(`offset${h}-${f}`)}),[{...n,className:be(r,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const Tb=$.forwardRef((e,t)=>{const[{className:r,...n},{as:i="div",bsPrefix:o,spans:a}]=S2(e);return J(i,{...n,ref:t,className:be(r,!a.length&&o)})});Tb.displayName="Col";const Ve=Tb;var x2=Function.prototype.bind.call(Function.prototype.call,[].slice);function Tr(e,t){return x2(e.querySelectorAll(t))}function Pb(){var e=$.useReducer(function(r){return!r},!1),t=e[1];return t}const jl=$.createContext(null);var lm=Object.prototype.hasOwnProperty;function cm(e,t,r){for(r of e.keys())if(Vo(r,t))return r}function Vo(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Vo(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=cm(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=cm(t,i),!i)||!Vo(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(lm.call(e,r)&&++n&&!lm.call(t,r)||!(r in t)||!Vo(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function _2(e){var t=bb();return[e[0],$.useCallback(function(r){if(t())return e[1](r)},[t,e[1]])]}var Et="top",Wt="bottom",Ht="right",Ct="left",Kh="auto",za=[Et,Wt,Ht,Ct],Gi="start",Ta="end",E2="clippingParents",Rb="viewport",So="popper",C2="reference",fm=za.reduce(function(e,t){return e.concat([t+"-"+Gi,t+"-"+Ta])},[]),Ab=[].concat(za,[Kh]).reduce(function(e,t){return e.concat([t,t+"-"+Gi,t+"-"+Ta])},[]),k2="beforeRead",O2="read",T2="afterRead",P2="beforeMain",R2="main",A2="afterMain",I2="beforeWrite",M2="write",L2="afterWrite",N2=[k2,O2,T2,P2,R2,A2,I2,M2,L2];function br(e){return e.split("-")[0]}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ei(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function Sr(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yh(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Kn=Math.max,Lu=Math.min,Xi=Math.round;function gd(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ib(){return!/^((?!chrome|android).)*safari/i.test(gd())}function Ji(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Sr(e)&&(i=e.offsetWidth>0&&Xi(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Xi(n.height)/e.offsetHeight||1);var a=ei(e)?Vt(e):window,s=a.visualViewport,u=!Ib()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/i,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/i,d=n.height/o;return{width:f,height:d,top:c,right:l+f,bottom:c+d,left:l,x:l,y:c}}function Gh(e){var t=Ji(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Mb(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Yh(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rn(e){return e?(e.nodeName||"").toLowerCase():null}function $r(e){return Vt(e).getComputedStyle(e)}function D2(e){return["table","td","th"].indexOf(Rn(e))>=0}function Nn(e){return((ei(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fl(e){return Rn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yh(e)?e.host:null)||Nn(e)}function dm(e){return!Sr(e)||$r(e).position==="fixed"?null:e.offsetParent}function j2(e){var t=/firefox/i.test(gd()),r=/Trident/i.test(gd());if(r&&Sr(e)){var n=$r(e);if(n.position==="fixed")return null}var i=Fl(e);for(Yh(i)&&(i=i.host);Sr(i)&&["html","body"].indexOf(Rn(i))<0;){var o=$r(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Wa(e){for(var t=Vt(e),r=dm(e);r&&D2(r)&&$r(r).position==="static";)r=dm(r);return r&&(Rn(r)==="html"||Rn(r)==="body"&&$r(r).position==="static")?t:r||j2(e)||t}function Xh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qo(e,t,r){return Kn(e,Lu(t,r))}function F2(e,t,r){var n=Qo(e,t,r);return n>r?r:n}function Lb(){return{top:0,right:0,bottom:0,left:0}}function Nb(e){return Object.assign({},Lb(),e)}function Db(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var B2=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Nb(typeof t!="number"?t:Db(t,za))};function U2(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=br(r.placement),u=Xh(s),l=[Ct,Ht].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!a)){var f=B2(i.padding,r),d=Gh(o),h=u==="y"?Et:Ct,m=u==="y"?Wt:Ht,g=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],b=a[u]-r.rects.reference[u],y=Wa(o),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,p=g/2-b/2,w=f[h],x=v-d[c]-f[m],_=v/2-d[c]/2+p,O=Qo(w,_,x),P=u;r.modifiersData[n]=(t={},t[P]=O,t.centerOffset=O-_,t)}}function $2(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Mb(t.elements.popper,i)&&(t.elements.arrow=i))}const z2={name:"arrow",enabled:!0,phase:"main",fn:U2,effect:$2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zi(e){return e.split("-")[1]}var W2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H2(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:Xi(t*i)/i||0,y:Xi(r*i)/i||0}}function hm(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,m=a.y,g=m===void 0?0:m,b=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),p=Ct,w=Et,x=window;if(l){var _=Wa(r),O="clientHeight",P="clientWidth";if(_===Vt(r)&&(_=Nn(r),$r(_).position!=="static"&&s==="absolute"&&(O="scrollHeight",P="scrollWidth")),_=_,i===Et||(i===Ct||i===Ht)&&o===Ta){w=Wt;var A=f&&_===x&&x.visualViewport?x.visualViewport.height:_[O];g-=A-n.height,g*=u?1:-1}if(i===Ct||(i===Et||i===Wt)&&o===Ta){p=Ht;var L=f&&_===x&&x.visualViewport?x.visualViewport.width:_[P];h-=L-n.width,h*=u?1:-1}}var S=Object.assign({position:s},l&&W2),T=c===!0?H2({x:h,y:g}):{x:h,y:g};if(h=T.x,g=T.y,u){var C;return Object.assign({},S,(C={},C[w]=v?"0":"",C[p]=y?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",C))}return Object.assign({},S,(t={},t[w]=v?g+"px":"",t[p]=y?h+"px":"",t.transform="",t))}function q2(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:br(t.placement),variation:Zi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hm(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hm(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const V2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:q2,data:{}};var hs={passive:!0};function Q2(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,u=Vt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,hs)}),s&&u.addEventListener("resize",r.update,hs),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,hs)}),s&&u.removeEventListener("resize",r.update,hs)}}const K2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Q2,data:{}};var Y2={left:"right",right:"left",bottom:"top",top:"bottom"};function Rs(e){return e.replace(/left|right|bottom|top/g,function(t){return Y2[t]})}var G2={start:"end",end:"start"};function pm(e){return e.replace(/start|end/g,function(t){return G2[t]})}function Jh(e){var t=Vt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Zh(e){return Ji(Nn(e)).left+Jh(e).scrollLeft}function X2(e,t){var r=Vt(e),n=Nn(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=Ib();(l||!l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+Zh(e),y:u}}function J2(e){var t,r=Nn(e),n=Jh(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Kn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Kn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Zh(e),u=-n.scrollTop;return $r(i||r).direction==="rtl"&&(s+=Kn(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function ep(e){var t=$r(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function jb(e){return["html","body","#document"].indexOf(Rn(e))>=0?e.ownerDocument.body:Sr(e)&&ep(e)?e:jb(Fl(e))}function Ko(e,t){var r;t===void 0&&(t=[]);var n=jb(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Vt(n),a=i?[o].concat(o.visualViewport||[],ep(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Ko(Fl(a)))}function md(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z2(e,t){var r=Ji(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function vm(e,t,r){return t===Rb?md(X2(e,r)):ei(t)?Z2(t,r):md(J2(Nn(e)))}function eA(e){var t=Ko(Fl(e)),r=["absolute","fixed"].indexOf($r(e).position)>=0,n=r&&Sr(e)?Wa(e):e;return ei(n)?t.filter(function(i){return ei(i)&&Mb(i,n)&&Rn(i)!=="body"}):[]}function tA(e,t,r,n){var i=t==="clippingParents"?eA(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(u,l){var c=vm(e,l,n);return u.top=Kn(c.top,u.top),u.right=Lu(c.right,u.right),u.bottom=Lu(c.bottom,u.bottom),u.left=Kn(c.left,u.left),u},vm(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fb(e){var t=e.reference,r=e.element,n=e.placement,i=n?br(n):null,o=n?Zi(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(i){case Et:u={x:a,y:t.y-r.height};break;case Wt:u={x:a,y:t.y+t.height};break;case Ht:u={x:t.x+t.width,y:s};break;case Ct:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?Xh(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Gi:u[l]=u[l]-(t[c]/2-r[c]/2);break;case Ta:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function Pa(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?E2:s,l=r.rootBoundary,c=l===void 0?Rb:l,f=r.elementContext,d=f===void 0?So:f,h=r.altBoundary,m=h===void 0?!1:h,g=r.padding,b=g===void 0?0:g,y=Nb(typeof b!="number"?b:Db(b,za)),v=d===So?C2:So,p=e.rects.popper,w=e.elements[m?v:d],x=tA(ei(w)?w:w.contextElement||Nn(e.elements.popper),u,c,a),_=Ji(e.elements.reference),O=Fb({reference:_,element:p,strategy:"absolute",placement:i}),P=md(Object.assign({},p,O)),A=d===So?P:_,L={top:x.top-A.top+y.top,bottom:A.bottom-x.bottom+y.bottom,left:x.left-A.left+y.left,right:A.right-x.right+y.right},S=e.modifiersData.offset;if(d===So&&S){var T=S[i];Object.keys(L).forEach(function(C){var I=[Ht,Wt].indexOf(C)>=0?1:-1,D=[Et,Wt].indexOf(C)>=0?"y":"x";L[C]+=T[D]*I})}return L}function rA(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?Ab:u,c=Zi(n),f=c?s?fm:fm.filter(function(m){return Zi(m)===c}):za,d=f.filter(function(m){return l.indexOf(m)>=0});d.length===0&&(d=f);var h=d.reduce(function(m,g){return m[g]=Pa(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[br(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function nA(e){if(br(e)===Kh)return[];var t=Rs(e);return[pm(e),t,pm(t)]}function iA(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,g=r.allowedAutoPlacements,b=t.options.placement,y=br(b),v=y===b,p=u||(v||!m?[Rs(b)]:nA(b)),w=[b].concat(p).reduce(function(Y,K){return Y.concat(br(K)===Kh?rA(t,{placement:K,boundary:c,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:g}):K)},[]),x=t.rects.reference,_=t.rects.popper,O=new Map,P=!0,A=w[0],L=0;L=0,D=I?"width":"height",z=Pa(t,{placement:S,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),Q=I?C?Ht:Ct:C?Wt:Et;x[D]>_[D]&&(Q=Rs(Q));var R=Rs(Q),N=[];if(o&&N.push(z[T]<=0),s&&N.push(z[Q]<=0,z[R]<=0),N.every(function(Y){return Y})){A=S,P=!1;break}O.set(S,N)}if(P)for(var B=m?3:1,q=function(K){var ie=w.find(function(ne){var fe=O.get(ne);if(fe)return fe.slice(0,K).every(function(se){return se})});if(ie)return A=ie,"break"},re=B;re>0;re--){var oe=q(re);if(oe==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const oA={name:"flip",enabled:!0,phase:"main",fn:iA,requiresIfExists:["offset"],data:{_skip:!1}};function gm(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function mm(e){return[Et,Ht,Wt,Ct].some(function(t){return e[t]>=0})}function aA(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Pa(t,{elementContext:"reference"}),s=Pa(t,{altBoundary:!0}),u=gm(a,n),l=gm(s,i,o),c=mm(u),f=mm(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const sA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aA};function uA(e,t,r){var n=br(e),i=[Ct,Et].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ct,Ht].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function lA(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=Ab.reduce(function(c,f){return c[f]=uA(f,t.rects,o),c},{}),s=a[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}const cA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lA};function fA(e){var t=e.state,r=e.name;t.modifiersData[r]=Fb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const dA={name:"popperOffsets",enabled:!0,phase:"read",fn:fA,data:{}};function hA(e){return e==="x"?"y":"x"}function pA(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,m=r.tetherOffset,g=m===void 0?0:m,b=Pa(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),y=br(t.placement),v=Zi(t.placement),p=!v,w=Xh(y),x=hA(w),_=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(_){if(o){var C,I=w==="y"?Et:Ct,D=w==="y"?Wt:Ht,z=w==="y"?"height":"width",Q=_[w],R=Q+b[I],N=Q-b[D],B=h?-P[z]/2:0,q=v===Gi?O[z]:P[z],re=v===Gi?-P[z]:-O[z],oe=t.elements.arrow,Y=h&&oe?Gh(oe):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Lb(),ie=K[I],ne=K[D],fe=Qo(0,O[z],Y[z]),se=p?O[z]/2-B-fe-ie-L.mainAxis:q-fe-ie-L.mainAxis,X=p?-O[z]/2+B+fe+ne+L.mainAxis:re+fe+ne+L.mainAxis,V=t.elements.arrow&&Wa(t.elements.arrow),te=V?w==="y"?V.clientTop||0:V.clientLeft||0:0,W=(C=S==null?void 0:S[w])!=null?C:0,H=Q+se-W-te,Z=Q+X-W,ee=Qo(h?Lu(R,H):R,Q,h?Kn(N,Z):N);_[w]=ee,T[w]=ee-Q}if(s){var ae,j=w==="x"?Et:Ct,U=w==="x"?Wt:Ht,M=_[x],E=x==="y"?"height":"width",k=M+b[j],F=M-b[U],G=[Et,Ct].indexOf(y)!==-1,ue=(ae=S==null?void 0:S[x])!=null?ae:0,le=G?k:M-O[E]-P[E]-ue+L.altAxis,pe=G?M+O[E]+P[E]-ue-L.altAxis:F,ge=h&&G?F2(le,M,pe):Qo(h?le:k,M,h?pe:F);_[x]=ge,T[x]=ge-M}t.modifiersData[n]=T}}const vA={name:"preventOverflow",enabled:!0,phase:"main",fn:pA,requiresIfExists:["offset"]};function gA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mA(e){return e===Vt(e)||!Sr(e)?Jh(e):gA(e)}function yA(e){var t=e.getBoundingClientRect(),r=Xi(t.width)/e.offsetWidth||1,n=Xi(t.height)/e.offsetHeight||1;return r!==1||n!==1}function wA(e,t,r){r===void 0&&(r=!1);var n=Sr(t),i=Sr(t)&&yA(t),o=Nn(t),a=Ji(e,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Rn(t)!=="body"||ep(o))&&(s=mA(t)),Sr(t)?(u=Ji(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Zh(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function bA(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&i(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function SA(e){var t=bA(e);return N2.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function xA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function _A(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var ym={placement:"bottom",modifiers:[],strategy:"absolute"};function wm(){for(var e=arguments.length,t=new Array(e),r=0;r=0)&&(r[i]=e[i]);return r}const TA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},PA={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,i=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&i==="tooltip"&&"setAttribute"in n){const o=n.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",o?`${o},${r.id}`:r.id)}}},RA=[];function AA(e,t,r={}){let{enabled:n=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=RA}=r,s=OA(r,kA);const u=$.useRef(a),l=$.useRef(),c=$.useCallback(()=>{var b;(b=l.current)==null||b.update()},[]),f=$.useCallback(()=>{var b;(b=l.current)==null||b.forceUpdate()},[]),[d,h]=_2($.useState({placement:i,update:c,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),m=$.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:b})=>{const y={},v={};Object.keys(b.elements).forEach(p=>{y[p]=b.styles[p],v[p]=b.attributes[p]}),h({state:b,styles:y,attributes:v,update:c,forceUpdate:f,placement:b.placement})}}),[c,f,h]),g=$.useMemo(()=>(Vo(u.current,a)||(u.current=a),u.current),[a]);return $.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:i,strategy:o,modifiers:[...g,m,TA]})},[o,i,m,n,g]),$.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=CA(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,PA,m]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,h(b=>Object.assign({},b,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),d}function Nu(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const bm=()=>{};function IA(e){return e.button===0}function MA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Dc=e=>e&&("current"in e?e.current:e),Sm={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function LA(e,t=bm,{disabled:r,clickTrigger:n="click"}={}){const i=$.useRef(!1),o=$.useRef(!1),a=$.useCallback(l=>{const c=Dc(e);i.current=!c||MA(l)||!IA(l)||!!Nu(c,l.target)||o.current,o.current=!1},[e]),s=Ke(l=>{const c=Dc(e);c&&Nu(c,l.target)&&(o.current=!0)}),u=Ke(l=>{i.current||t(l)});$.useEffect(()=>{if(r||e==null)return;const l=Ml(Dc(e));let c=(l.defaultView||window).event,f=null;Sm[n]&&(f=ln(l,Sm[n],s,!0));const d=ln(l,n,a,!0),h=ln(l,n,g=>{if(g===c){c=void 0;return}u(g)});let m=[];return"ontouchstart"in l.documentElement&&(m=[].slice.call(l.body.children).map(g=>ln(g,"mousemove",bm))),()=>{f==null||f(),d(),h(),m.forEach(g=>g())}},[e,r,n,a,s,u])}function NA(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function DA(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function jA({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:u={}}){var l,c,f,d,h;const m=NA(u.modifiers);return Object.assign({},u,{placement:r,enabled:e,strategy:o?"fixed":u.strategy,modifiers:DA(Object.assign({},m,{eventListeners:{enabled:t,options:(l=m.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},(c=m.preventOverflow)==null?void 0:c.options):(f=m.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:i},(d=m.offset)==null?void 0:d.options)},arrow:Object.assign({},m.arrow,{enabled:!!s,options:Object.assign({},(h=m.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!n},m.flip)}))})}const FA=["children"];function BA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}const UA=()=>{};function Bb(e={}){const t=$.useContext(jl),[r,n]=UR(),i=$.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:u=!1,placement:l,popperConfig:c={},enableEventListeners:f=!0,usePopper:d=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const m=_=>{t==null||t.toggle(!1,_)},{placement:g,setMenu:b,menuElement:y,toggleElement:v}=t||{},p=AA(v,y,jA({placement:l||g||"bottom-start",enabled:d,enableEvents:f??h,offset:a,flip:o,fixed:u,arrowElement:r,popperConfig:c})),w=Object.assign({ref:b||UA,"aria-labelledby":v==null?void 0:v.id},p.attributes.popper,{style:p.styles.popper}),x={show:h,placement:g,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:d?p:null,arrowProps:d?Object.assign({ref:n},p.attributes.arrow,{style:p.styles.arrow}):{}};return LA(y,m,{clickTrigger:s,disabled:!h}),[w,x]}const $A={usePopper:!0};function tp(e){let{children:t}=e,r=BA(e,FA);const[n,i]=Bb(r);return J(Je,{children:t(n,i)})}tp.displayName="DropdownMenu";tp.defaultProps=$A;const Ub={prefix:String(Math.round(Math.random()*1e10)),current:0},zA=Pt.createContext(Ub);let WA=Boolean(typeof window<"u"&&window.document&&window.document.createElement);function HA(e){let t=$.useContext(zA);return t===Ub&&!WA&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server."),$.useMemo(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}const $b=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},xm=()=>{};function zb(){const e=HA(),{show:t=!1,toggle:r=xm,setToggle:n,menuElement:i}=$.useContext(jl)||{},o=$.useCallback(s=>{r(!t,s)},[t,r]),a={id:e,ref:n||xm,onClick:o,"aria-expanded":!!t};return i&&$b(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:r}]}function Wb({children:e}){const[t,r]=zb();return J(Je,{children:e(t,r)})}Wb.displayName="DropdownToggle";const ti=$.createContext(null),Ra=(e,t=null)=>e!=null?String(e):t||null,Bl=$.createContext(null);Bl.displayName="NavContext";const qA="data-rr-ui-",VA="rrUi";function uo(e){return`${qA}${e}`}function QA(e){return`${VA}${e}`}const KA=["eventKey","disabled","onClick","active","as"];function YA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Hb({key:e,href:t,active:r,disabled:n,onClick:i}){const o=$.useContext(ti),a=$.useContext(Bl),{activeKey:s}=a||{},u=Ra(e,t),l=r==null&&e!=null?Ra(s)===u:r;return[{onClick:Ke(f=>{n||(i==null||i(f),o&&!f.isPropagationStopped()&&o(u,f))}),"aria-disabled":n||void 0,"aria-selected":l,[uo("dropdown-item")]:""},{isActive:l}]}const qb=$.forwardRef((e,t)=>{let{eventKey:r,disabled:n,onClick:i,active:o,as:a=$h}=e,s=YA(e,KA);const[u]=Hb({key:r,href:s.href,disabled:n,onClick:i,active:o});return J(a,Object.assign({},s,{ref:t},u))});qb.displayName="DropdownItem";const Vb=$.createContext(Ll?window:void 0);Vb.Provider;function rp(){return $.useContext(Vb)}function _m(){const e=Pb(),t=$.useRef(null),r=$.useCallback(n=>{t.current=n,e()},[e]);return[t,r]}function Ha({defaultShow:e,show:t,onSelect:r,onToggle:n,itemSelector:i=`* [${uo("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const u=rp(),[l,c]=cb(t,e,n),[f,d]=_m(),h=f.current,[m,g]=_m(),b=m.current,y=Sb(l),v=$.useRef(null),p=$.useRef(!1),w=$.useContext(ti),x=$.useCallback((S,T,C=T==null?void 0:T.type)=>{c(S,{originalEvent:T,source:C})},[c]),_=Ke((S,T)=>{r==null||r(S,T),x(!1,T,"select"),T.isPropagationStopped()||w==null||w(S,T)}),O=$.useMemo(()=>({toggle:x,placement:a,show:l,menuElement:h,toggleElement:b,setMenu:d,setToggle:g}),[x,a,l,h,b,d,g]);h&&y&&!l&&(p.current=h.contains(h.ownerDocument.activeElement));const P=Ke(()=>{b&&b.focus&&b.focus()}),A=Ke(()=>{const S=v.current;let T=o;if(T==null&&(T=f.current&&$b(f.current)?"keyboard":!1),T===!1||T==="keyboard"&&!/^key.+$/.test(S))return;const C=Tr(f.current,i)[0];C&&C.focus&&C.focus()});$.useEffect(()=>{l?A():p.current&&(p.current=!1,P())},[l,p,P,A]),$.useEffect(()=>{v.current=null});const L=(S,T)=>{if(!f.current)return null;const C=Tr(f.current,i);let I=C.indexOf(S)+T;return I=Math.max(0,Math.min(I,C.length)),C[I]};return $R($.useCallback(()=>u.document,[u]),"keydown",S=>{var T,C;const{key:I}=S,D=S.target,z=(T=f.current)==null?void 0:T.contains(D),Q=(C=m.current)==null?void 0:C.contains(D);if(/input|textarea/i.test(D.tagName)&&(I===" "||I!=="Escape"&&z||I==="Escape"&&D.type==="search")||!z&&!Q||I==="Tab"&&(!f.current||!l))return;v.current=S.type;const N={originalEvent:S,source:S.type};switch(I){case"ArrowUp":{const B=L(D,-1);B&&B.focus&&B.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!l)c(!0,N);else{const B=L(D,1);B&&B.focus&&B.focus()}return;case"Tab":gb(D.ownerDocument,"keyup",B=>{var q;(B.key==="Tab"&&!B.target||!((q=f.current)!=null&&q.contains(B.target)))&&c(!1,N)},{once:!0});break;case"Escape":I==="Escape"&&(S.preventDefault(),S.stopPropagation()),c(!1,N);break}}),J(ti.Provider,{value:_,children:J(jl.Provider,{value:O,children:s})})}Ha.displayName="Dropdown";Ha.Menu=tp;Ha.Toggle=Wb;Ha.Item=qb;const Qb=$.createContext({});Qb.displayName="DropdownContext";const Kb=Qb,Yb=$.forwardRef(({bsPrefix:e,className:t,eventKey:r,disabled:n=!1,onClick:i,active:o,as:a=zh,...s},u)=>{const l=Pe(e,"dropdown-item"),[c,f]=Hb({key:r,href:s.href,disabled:n,onClick:i,active:o});return J(a,{...s,...c,ref:u,className:be(t,l,f.isActive&&"active",n&&"disabled")})});Yb.displayName="DropdownItem";const GA=Yb,Gb=$.createContext(null);Gb.displayName="InputGroupContext";const Xb=Gb,Jb=$.createContext(null);Jb.displayName="NavbarContext";const ai=Jb;function Zb(e,t){return e}const XA={flip:!0};function e1(e,t,r){const n=r?"top-end":"top-start",i=r?"top-start":"top-end",o=r?"bottom-end":"bottom-start",a=r?"bottom-start":"bottom-end",s=r?"right-start":"left-start",u=r?"right-end":"left-end",l=r?"left-start":"right-start",c=r?"left-end":"right-end";let f=e?a:o;return t==="up"?f=e?i:n:t==="end"?f=e?c:l:t==="start"?f=e?u:s:t==="down-centered"?f="bottom":t==="up-centered"&&(f="top"),f}const np=$.forwardRef(({bsPrefix:e,className:t,align:r,rootCloseEvent:n,flip:i,show:o,renderOnMount:a,as:s="div",popperConfig:u,variant:l,...c},f)=>{let d=!1;const h=$.useContext(ai),m=Pe(e,"dropdown-menu"),{align:g,drop:b,isRTL:y}=$.useContext(Kb);r=r||g;const v=$.useContext(Xb),p=[];if(r)if(typeof r=="object"){const S=Object.keys(r);if(S.length){const T=S[0],C=r[T];d=C==="start",p.push(`${m}-${T}-${C}`)}}else r==="end"&&(d=!0);const w=e1(d,b,y),[x,{hasShown:_,popper:O,show:P,toggle:A}]=Bb({flip:i,rootCloseEvent:n,show:o,usePopper:!h&&p.length===0,offset:[0,2],popperConfig:u,placement:w});if(x.ref=Nl(Zb(f),x.ref),xb(()=>{P&&(O==null||O.update())},[P]),!_&&!a&&!v)return null;typeof s!="string"&&(x.show=P,x.close=()=>A==null?void 0:A(!1),x.align=r);let L=c.style;return O!=null&&O.placement&&(L={...c.style,...x.style},c["x-placement"]=O.placement),J(s,{...c,...x,style:L,...(p.length||h)&&{"data-bs-popper":"static"},className:be(t,m,P&&"show",d&&`${m}-end`,l&&`${m}-${l}`,...p)})});np.displayName="DropdownMenu";np.defaultProps=XA;const JA=np,t1=$.forwardRef(({bsPrefix:e,split:t,className:r,childBsPrefix:n,as:i=qo,...o},a)=>{const s=Pe(e,"dropdown-toggle"),u=$.useContext(jl);n!==void 0&&(o.bsPrefix=n);const[l]=zb();return l.ref=Nl(l.ref,Zb(a)),J(i,{className:be(r,s,t&&`${s}-split`,(u==null?void 0:u.show)&&"show"),...l,...o})});t1.displayName="DropdownToggle";const ZA=t1,eI=kt("dropdown-header",{defaultProps:{role:"heading"}}),tI=kt("dropdown-divider",{Component:"hr",defaultProps:{role:"separator"}}),rI=kt("dropdown-item-text",{Component:"span"}),nI={navbar:!1,align:"start",autoClose:!0,drop:"down"},ip=$.forwardRef((e,t)=>{const{bsPrefix:r,drop:n,show:i,className:o,align:a,onSelect:s,onToggle:u,focusFirstItemOnShow:l,as:c="div",navbar:f,autoClose:d,...h}=jh(e,{show:"onToggle"}),m=$.useContext(Xb),g=Pe(r,"dropdown"),b=hR(),y=O=>d===!1?O==="click":d==="inside"?O!=="rootClose":d==="outside"?O!=="select":!0,v=Ke((O,P)=>{P.originalEvent.currentTarget===document&&(P.source!=="keydown"||P.originalEvent.key==="Escape")&&(P.source="rootClose"),y(P.source)&&(u==null||u(O,P))}),w=e1(a==="end",n,b),x=$.useMemo(()=>({align:a,drop:n,isRTL:b}),[a,n,b]),_={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return J(Kb.Provider,{value:x,children:J(Ha,{placement:w,show:i,onSelect:s,onToggle:v,focusFirstItemOnShow:l,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:m?h.children:J(c,{...h,ref:t,className:be(o,i&&"show",_[n])})})})});ip.displayName="Dropdown";ip.defaultProps=nI;const Hn=Object.assign(ip,{Toggle:ZA,Menu:JA,Item:GA,ItemText:rI,Divider:tI,Header:eI}),iI={fluid:!1},op=$.forwardRef(({bsPrefix:e,fluid:t,as:r="div",className:n,...i},o)=>{const a=Pe(e,"container"),s=typeof t=="string"?`-${t}`:"-fluid";return J(r,{ref:o,...i,className:be(n,t?`${a}${s}`:a)})});op.displayName="Container";op.defaultProps=iI;const Ul=op;Tt.string,Tt.bool,Tt.bool,Tt.bool,Tt.bool;const oI={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1},ap=$.forwardRef(({bsPrefix:e,className:t,fluid:r,rounded:n,roundedCircle:i,thumbnail:o,...a},s)=>(e=Pe(e,"img"),J("img",{ref:s,...a,className:be(t,r&&`${e}-fluid`,n&&"rounded",i&&"rounded-circle",o&&`${e}-thumbnail`)})));ap.displayName="Image";ap.defaultProps=oI;const sp=ap,r1=$.createContext(null),aI=["as","active","eventKey"];function sI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function n1({key:e,onClick:t,active:r,id:n,role:i,disabled:o}){const a=$.useContext(ti),s=$.useContext(Bl),u=$.useContext(r1);let l=r;const c={role:i};if(s){!i&&s.role==="tablist"&&(c.role="tab");const f=s.getControllerId(e??null),d=s.getControlledId(e??null);c[uo("event-key")]=e,c.id=f||n,l=r==null&&e!=null?s.activeKey===e:r,(l||!(u!=null&&u.unmountOnExit)&&!(u!=null&&u.mountOnEnter))&&(c["aria-controls"]=d)}return c.role==="tab"&&(c["aria-selected"]=l,l||(c.tabIndex=-1),o&&(c.tabIndex=-1,c["aria-disabled"]=!0)),c.onClick=Ke(f=>{o||(t==null||t(f),e!=null&&a&&!f.isPropagationStopped()&&a(e,f))}),[c,{isActive:l}]}const i1=$.forwardRef((e,t)=>{let{as:r=$h,active:n,eventKey:i}=e,o=sI(e,aI);const[a,s]=n1(Object.assign({key:Ra(i,o.href),active:n},o));return a[uo("active")]=s.isActive,J(r,Object.assign({},o,a,{ref:t}))});i1.displayName="NavItem";const uI=["as","onSelect","activeKey","role","onKeyDown"];function lI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}const Em=()=>{},Cm=uo("event-key"),o1=$.forwardRef((e,t)=>{let{as:r="div",onSelect:n,activeKey:i,role:o,onKeyDown:a}=e,s=lI(e,uI);const u=Pb(),l=$.useRef(!1),c=$.useContext(ti),f=$.useContext(r1);let d,h;f&&(o=o||"tablist",i=f.activeKey,d=f.getControlledId,h=f.getControllerId);const m=$.useRef(null),g=p=>{const w=m.current;if(!w)return null;const x=Tr(w,`[${Cm}]:not([aria-disabled=true])`),_=w.querySelector("[aria-selected=true]");if(!_||_!==document.activeElement)return null;const O=x.indexOf(_);if(O===-1)return null;let P=O+p;return P>=x.length&&(P=0),P<0&&(P=x.length-1),x[P]},b=(p,w)=>{p!=null&&(n==null||n(p,w),c==null||c(p,w))},y=p=>{if(a==null||a(p),!f)return;let w;switch(p.key){case"ArrowLeft":case"ArrowUp":w=g(-1);break;case"ArrowRight":case"ArrowDown":w=g(1);break;default:return}w&&(p.preventDefault(),b(w.dataset[QA("EventKey")]||null,p),l.current=!0,u())};$.useEffect(()=>{if(m.current&&l.current){const p=m.current.querySelector(`[${Cm}][aria-selected=true]`);p==null||p.focus()}l.current=!1});const v=Nl(t,m);return J(ti.Provider,{value:b,children:J(Bl.Provider,{value:{role:o,activeKey:Ra(i),getControlledId:d||Em,getControllerId:h||Em},children:J(r,Object.assign({},s,{onKeyDown:y,ref:v,role:o}))})})});o1.displayName="Nav";const cI=Object.assign(o1,{Item:i1});function jc(e){e===void 0&&(e=Ml());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function fI(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const km=uo("modal-open");class up{constructor({ownerDocument:t,handleContainerOverflow:r=!0,isRTL:n=!1}={}){this.handleContainerOverflow=r,this.isRTL=n,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return fI(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const r={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[n]:i.style[n]},t.scrollBarWidth&&(r[n]=`${parseInt(Nr(i,n)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(km,""),Nr(i,r)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const r=this.getElement();r.removeAttribute(km),Object.assign(r.style,t.style)}add(t){let r=this.modals.indexOf(t);return r!==-1||(r=this.modals.length,this.modals.push(t),this.setModalAttributes(t),r!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),r}remove(t){const r=this.modals.indexOf(t);r!==-1&&(this.modals.splice(r,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Fc=(e,t)=>Ll?e==null?(t||Ml()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function dI(e,t){const r=rp(),[n,i]=$.useState(()=>Fc(e,r==null?void 0:r.document));if(!n){const o=Fc(e);o&&i(o)}return $.useEffect(()=>{t&&n&&t(n)},[t,n]),$.useEffect(()=>{const o=Fc(e);o!==n&&i(o)},[e,n]),n}const hI=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function pI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}let Bc;function vI(e){return Bc||(Bc=new up({ownerDocument:e==null?void 0:e.document})),Bc}function gI(e){const t=rp(),r=e||vI(t),n=$.useRef({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>r.add(n.current),remove:()=>r.remove(n.current),isTopModal:()=>r.isTopModal(n.current),setDialogRef:$.useCallback(i=>{n.current.dialog=i},[]),setBackdropRef:$.useCallback(i=>{n.current.backdrop=i},[])})}const a1=$.forwardRef((e,t)=>{let{show:r=!1,role:n="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:u=!0,onBackdropClick:l,onEscapeKeyDown:c,transition:f,backdropTransition:d,autoFocus:h=!0,enforceFocus:m=!0,restoreFocus:g=!0,restoreFocusOptions:b,renderDialog:y,renderBackdrop:v=W=>J("div",Object.assign({},W)),manager:p,container:w,onShow:x,onHide:_=()=>{},onExit:O,onExited:P,onExiting:A,onEnter:L,onEntering:S,onEntered:T}=e,C=pI(e,hI);const I=dI(w),D=gI(p),z=bb(),Q=Sb(r),[R,N]=$.useState(!r),B=$.useRef(null);$.useImperativeHandle(t,()=>D,[D]),Ll&&!Q&&r&&(B.current=jc()),!f&&!r&&!R?N(!0):r&&R&&N(!1);const q=Ke(()=>{if(D.add(),ne.current=ln(document,"keydown",K),ie.current=ln(document,"focus",()=>setTimeout(oe),!0),x&&x(),h){const W=jc(document);D.dialog&&W&&!Nu(D.dialog,W)&&(B.current=W,D.dialog.focus())}}),re=Ke(()=>{if(D.remove(),ne.current==null||ne.current(),ie.current==null||ie.current(),g){var W;(W=B.current)==null||W.focus==null||W.focus(b),B.current=null}});$.useEffect(()=>{!r||!I||q()},[r,I,q]),$.useEffect(()=>{R&&re()},[R,re]),b2(()=>{re()});const oe=Ke(()=>{if(!m||!z()||!D.isTopModal())return;const W=jc();D.dialog&&W&&!Nu(D.dialog,W)&&D.dialog.focus()}),Y=Ke(W=>{W.target===W.currentTarget&&(l==null||l(W),s===!0&&_())}),K=Ke(W=>{u&&W.keyCode===27&&D.isTopModal()&&(c==null||c(W),W.defaultPrevented||_())}),ie=$.useRef(),ne=$.useRef(),fe=(...W)=>{N(!0),P==null||P(...W)},se=f;if(!I||!(r||se&&!R))return null;const X=Object.assign({role:n,ref:D.setDialogRef,"aria-modal":n==="dialog"?!0:void 0},C,{style:o,className:i,tabIndex:-1});let V=y?y(X):J("div",Object.assign({},X,{children:$.cloneElement(a,{role:"document"})}));se&&(V=J(se,{appear:!0,unmountOnExit:!0,in:!!r,onExit:O,onExiting:A,onExited:fe,onEnter:L,onEntering:S,onEntered:T,children:V}));let te=null;if(s){const W=d;te=v({ref:D.setBackdropRef,onClick:Y}),W&&(te=J(W,{appear:!0,in:!!r,children:te}))}return J(Je,{children:Pi.createPortal(ve(Je,{children:[te,V]}),I)})});a1.displayName="Modal";const mI=Object.assign(a1,{Manager:up});function yI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function wI(e,t){e.classList?e.classList.add(t):yI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Om(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Om(e.className,t):e.setAttribute("class",Om(e.className&&e.className.baseVal||"",t))}const pi={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class s1 extends up{adjustAndStore(t,r,n){const i=r.style[t];r.dataset[t]=i,Nr(r,{[t]:`${parseFloat(Nr(r,t))+n}px`})}restore(t,r){const n=r.dataset[t];n!==void 0&&(delete r.dataset[t],Nr(r,{[t]:n}))}setContainerStyle(t){super.setContainerStyle(t);const r=this.getElement();if(wI(r,"modal-open"),!t.scrollBarWidth)return;const n=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Tr(r,pi.FIXED_CONTENT).forEach(o=>this.adjustAndStore(n,o,t.scrollBarWidth)),Tr(r,pi.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Tr(r,pi.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const r=this.getElement();bI(r,"modal-open");const n=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Tr(r,pi.FIXED_CONTENT).forEach(o=>this.restore(n,o)),Tr(r,pi.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Tr(r,pi.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Uc;function SI(e){return Uc||(Uc=new s1(e)),Uc}const xI=s1,_I=$.createContext({onHide(){}}),u1=_I,EI={closeLabel:"Close",closeButton:!1},l1=$.forwardRef(({closeLabel:e,closeVariant:t,closeButton:r,onHide:n,children:i,...o},a)=>{const s=$.useContext(u1),u=Ke(()=>{s==null||s.onHide(),n==null||n()});return ve("div",{ref:a,...o,children:[i,r&&J(t2,{"aria-label":e,variant:t,onClick:u})]})});l1.defaultProps=EI;const CI=l1;var yd={},kI={get exports(){return yd},set exports(e){yd=e}},Du={},OI={get exports(){return Du},set exports(e){Du=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){function i(a,s,u,l,c,f){var d=l||"<>",h=f||u;if(s[u]==null)return a?new Error("Required "+c+" `"+h+"` was not specified "+("in `"+d+"`.")):null;for(var m=arguments.length,g=Array(m>6?m-6:0),b=6;b{e=Pe(e,"nav-link");const[s,u]=n1({key:Ra(i,o.href),active:n,...o});return J(r,{...o,...s,ref:a,className:be(t,e,o.disabled&&"disabled",u.isActive&&"active")})});lp.displayName="NavLink";lp.defaultProps=PI;const c1=lp,RI={justify:!1,fill:!1},cp=$.forwardRef((e,t)=>{const{as:r="div",bsPrefix:n,variant:i,fill:o,justify:a,navbar:s,navbarScroll:u,className:l,activeKey:c,...f}=jh(e,{activeKey:"onSelect"}),d=Pe(n,"nav");let h,m,g=!1;const b=$.useContext(ai),y=$.useContext(Cb);return b?(h=b.bsPrefix,g=s??!0):y&&({cardHeaderBsPrefix:m}=y),J(cI,{as:r,ref:t,activeKey:c,className:be(l,{[d]:!g,[`${h}-nav`]:g,[`${h}-nav-scroll`]:g&&u,[`${m}-${i}`]:!!m,[`${d}-${i}`]:!!i,[`${d}-fill`]:o,[`${d}-justified`]:a}),...f})});cp.displayName="Nav";cp.defaultProps=RI;const vi=Object.assign(cp,{Item:TI,Link:c1}),f1=$.forwardRef(({bsPrefix:e,className:t,as:r,...n},i)=>{e=Pe(e,"navbar-brand");const o=r||(n.href?"a":"span");return J(o,{...n,ref:i,className:be(t,e)})});f1.displayName="NavbarBrand";const AI=f1,d1=$.forwardRef(({children:e,bsPrefix:t,...r},n)=>{t=Pe(t,"navbar-collapse");const i=$.useContext(ai);return J(FR,{in:!!(i&&i.expanded),...r,children:J("div",{ref:n,className:t,children:e})})});d1.displayName="NavbarCollapse";const II=d1,MI={label:"Toggle navigation"},fp=$.forwardRef(({bsPrefix:e,className:t,children:r,label:n,as:i="button",onClick:o,...a},s)=>{e=Pe(e,"navbar-toggler");const{onToggle:u,expanded:l}=$.useContext(ai)||{},c=Ke(f=>{o&&o(f),u&&u()});return i==="button"&&(a.type="button"),J(i,{...a,ref:s,onClick:c,"aria-label":n,className:be(t,e,!l&&"collapsed"),children:r||J("span",{className:`${e}-icon`})})});fp.displayName="NavbarToggle";fp.defaultProps=MI;const LI=fp;var wd=new WeakMap,Tm=function(t,r){if(!(!t||!r)){var n=wd.get(r)||new Map;wd.set(r,n);var i=n.get(t);return i||(i=r.matchMedia(t),i.refCount=0,n.set(i.media,i)),i}};function NI(e,t){t===void 0&&(t=typeof window>"u"?void 0:window);var r=Tm(e,t),n=$.useState(function(){return r?r.matches:!1}),i=n[0],o=n[1];return xb(function(){var a=Tm(e,t);if(!a)return o(!1);var s=wd.get(t),u=function(){o(a.matches)};return a.refCount++,a.addListener(u),u(),function(){a.removeListener(u),a.refCount--,a.refCount<=0&&(s==null||s.delete(a.media)),a=void 0}},[e]),i}function DI(e){var t=Object.keys(e);function r(s,u){return s===u?u:s?s+" and "+u:u}function n(s){return t[Math.min(t.indexOf(s)+1,t.length-1)]}function i(s){var u=n(s),l=e[u];return typeof l=="number"?l=l-.2+"px":l="calc("+l+" - 0.2px)","(max-width: "+l+")"}function o(s){var u=e[s];return typeof u=="number"&&(u=u+"px"),"(min-width: "+u+")"}function a(s,u,l){var c;if(typeof s=="object")c=s,l=u,u=!0;else{var f;u=u||!0,c=(f={},f[s]=u,f)}var d=$.useMemo(function(){return Object.entries(c).reduce(function(h,m){var g=m[0],b=m[1];return(b==="up"||b===!0)&&(h=r(h,o(g))),(b==="down"||b===!0)&&(h=r(h,i(g))),h},"")},[JSON.stringify(c)]);return NI(d,l)}return a}var jI=DI({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});const FI=kt("offcanvas-body"),BI={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1},UI={[Jt]:"show",[Rr]:"show"},dp=$.forwardRef(({bsPrefix:e,className:t,children:r,...n},i)=>(e=Pe(e,"offcanvas"),J(Bh,{ref:i,addEndListener:Fh,...n,childRef:r.ref,children:(o,a)=>$.cloneElement(r,{...a,className:be(t,r.props.className,(o===Jt||o===Oa)&&`${e}-toggling`,UI[o])})})));dp.defaultProps=BI;dp.displayName="OffcanvasToggling";const $I=dp,zI={closeLabel:"Close",closeButton:!1},hp=$.forwardRef(({bsPrefix:e,className:t,...r},n)=>(e=Pe(e,"offcanvas-header"),J(CI,{ref:n,...r,className:be(t,e)})));hp.displayName="OffcanvasHeader";hp.defaultProps=zI;const WI=hp,HI=Hh("h5"),qI=kt("offcanvas-title",{Component:HI}),VI={show:!1,backdrop:!0,keyboard:!0,scroll:!1,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,placement:"start",renderStaticNode:!1};function QI(e){return J($I,{...e})}function KI(e){return J(JR,{...e})}const pp=$.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":n,placement:i,responsive:o,show:a,backdrop:s,keyboard:u,scroll:l,onEscapeKeyDown:c,onShow:f,onHide:d,container:h,autoFocus:m,enforceFocus:g,restoreFocus:b,restoreFocusOptions:y,onEntered:v,onExit:p,onExiting:w,onEnter:x,onEntering:_,onExited:O,backdropClassName:P,manager:A,renderStaticNode:L,...S},T)=>{const C=$.useRef();e=Pe(e,"offcanvas");const{onToggle:I}=$.useContext(ai)||{},[D,z]=$.useState(!1),Q=jI(o||"xs","up");$.useEffect(()=>{z(o?a&&!Q:a)},[a,o,Q]);const R=Ke(()=>{I==null||I(),d==null||d()}),N=$.useMemo(()=>({onHide:R}),[R]);function B(){return A||(l?(C.current||(C.current=new xI({handleContainerOverflow:!1})),C.current):SI())}const q=(K,...ie)=>{K&&(K.style.visibility="visible"),x==null||x(K,...ie)},re=(K,...ie)=>{K&&(K.style.visibility=""),O==null||O(...ie)},oe=$.useCallback(K=>J("div",{...K,className:be(`${e}-backdrop`,P)}),[P,e]),Y=K=>J("div",{...K,...S,className:be(t,o?`${e}-${o}`:e,`${e}-${i}`),"aria-labelledby":n,children:r});return ve(Je,{children:[!D&&(o||L)&&Y({}),J(u1.Provider,{value:N,children:J(mI,{show:D,ref:T,backdrop:s,container:h,keyboard:u,autoFocus:m,enforceFocus:g&&!l,restoreFocus:b,restoreFocusOptions:y,onEscapeKeyDown:c,onShow:f,onHide:R,onEnter:q,onEntering:_,onEntered:v,onExit:p,onExiting:w,onExited:re,manager:B(),transition:QI,backdropTransition:KI,renderBackdrop:oe,renderDialog:Y})})]})});pp.displayName="Offcanvas";pp.defaultProps=VI;const YI=Object.assign(pp,{Body:FI,Header:WI,Title:qI}),h1=$.forwardRef((e,t)=>{const r=$.useContext(ai);return J(YI,{ref:t,show:!!(r!=null&&r.expanded),...e,renderStaticNode:!0})});h1.displayName="NavbarOffcanvas";const GI=h1,XI=kt("navbar-text",{Component:"span"}),JI={expand:!0,variant:"light",collapseOnSelect:!1},vp=$.forwardRef((e,t)=>{const{bsPrefix:r,expand:n,variant:i,bg:o,fixed:a,sticky:s,className:u,as:l="nav",expanded:c,onToggle:f,onSelect:d,collapseOnSelect:h,...m}=jh(e,{expanded:"onToggle"}),g=Pe(r,"navbar"),b=$.useCallback((...p)=>{d==null||d(...p),h&&c&&(f==null||f(!1))},[d,h,c,f]);m.role===void 0&&l!=="nav"&&(m.role="navigation");let y=`${g}-expand`;typeof n=="string"&&(y=`${y}-${n}`);const v=$.useMemo(()=>({onToggle:()=>f==null?void 0:f(!c),bsPrefix:g,expanded:!!c,expand:n}),[g,c,n,f]);return J(ai.Provider,{value:v,children:J(ti.Provider,{value:b,children:J(l,{ref:t,...m,className:be(u,g,n&&y,i&&`${g}-${i}`,o&&`bg-${o}`,s&&`sticky-${s}`,a&&`fixed-${a}`)})})})});vp.defaultProps=JI;vp.displayName="Navbar";const xo=Object.assign(vp,{Brand:AI,Collapse:II,Offcanvas:GI,Text:XI,Toggle:LI}),p1=$.forwardRef(({id:e,title:t,children:r,bsPrefix:n,className:i,rootCloseEvent:o,menuRole:a,disabled:s,active:u,renderMenuOnMount:l,menuVariant:c,...f},d)=>{const h=Pe(void 0,"nav-item");return ve(Hn,{ref:d,...f,className:be(i,h),children:[J(Hn.Toggle,{id:e,eventKey:null,active:u,disabled:s,childBsPrefix:n,as:c1,children:t}),J(Hn.Menu,{role:a,renderOnMount:l,rootCloseEvent:o,variant:c,children:r})]})});p1.displayName="NavDropdown";const Dn=Object.assign(p1,{Item:Hn.Item,ItemText:Hn.ItemText,Divider:Hn.Divider,Header:Hn.Header}),v1=$.forwardRef(({bsPrefix:e,className:t,as:r="div",...n},i)=>{const o=Pe(e,"row"),a=fb(),s=db(),u=`${o}-cols`,l=[];return a.forEach(c=>{const f=n[c];delete n[c];let d;f!=null&&typeof f=="object"?{cols:d}=f:d=f;const h=c!==s?`-${c}`:"";d!=null&&l.push(`${u}${h}-${d}`)}),J(r,{ref:i,...n,className:be(t,o,...l)})});v1.displayName="Row";const st=v1,g1=$.forwardRef(({bsPrefix:e,variant:t,animation:r="border",size:n,as:i="div",className:o,...a},s)=>{e=Pe(e,"spinner");const u=`${e}-${r}`;return J(i,{ref:s,...a,className:be(o,u,n&&`${u}-${n}`,t&&`text-${t}`)})});g1.displayName="Spinner";const ZI=g1;const eM=({users:e})=>{const{t}=Ln();return e.length>0?J(st,{className:"mb-3 row-cols-1 row-cols-sm-2 row-cols-lg-4 gy-3",children:e.map(r=>J(Ve,{children:ve(hr,{className:"h-100",children:[J(hr.Header,{children:r.picture&&J(sp,{fluid:!0,src:r.picture.replace("s=128","s=242"),alt:"avatar",className:"w-100"})}),ve(hr.Body,{className:"text-center",children:[ve("h5",{children:[r.name,r.username&&J("div",{className:"small",children:r.username})]}),ve(s2,{children:[r.twitter&&J(qo,{href:"https://twitter.com/"+r.twitter,target:"_blank",children:J("i",{className:"fab fa-twitter fa-2x"})}),r.github&&J(qo,{variant:"default",href:"https://github.com/"+r.github,target:"_blank",children:J("i",{className:"fab fa-github fa-2x"})}),r.url&&J(qo,{variant:"info",href:r.url,target:"_blank",children:J("i",{className:"fas fa-link fa-2x"})})]})]})]})},r.picture))}):J(st,{className:"mb-3",children:ve(Ve,{className:"text-center no_users",children:[J("i",{className:"far fa-frown"}),J("h5",{className:"mt-2",children:t("views.users.everybodys_gone")})]})})},ir=({large:e})=>J(ZI,{size:e?null:"sm"});ir.defaultProps={large:!1};ir.propTypes={large:Tt.bool};function ri(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ct(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function As(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?As=function(r){return typeof r}:As=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},As(e)}function ur(e){ct(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||As(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function tM(e,t){ct(2,arguments);var r=ur(e).getTime(),n=ri(t);return new Date(r+n)}var rM={};function $l(){return rM}function nM(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Is(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Is=function(r){return typeof r}:Is=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Is(e)}function iM(e){return ct(1,arguments),e instanceof Date||Is(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oM(e){if(ct(1,arguments),!iM(e)&&typeof e!="number")return!1;var t=ur(e);return!isNaN(Number(t))}function aM(e,t){ct(2,arguments);var r=ri(t);return tM(e,-r)}var sM=864e5;function uM(e){ct(1,arguments);var t=ur(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/sM)+1}function ju(e){ct(1,arguments);var t=1,r=ur(e),n=r.getUTCDay(),i=(n=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function lM(e){ct(1,arguments);var t=m1(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ju(r);return n}var cM=6048e5;function fM(e){ct(1,arguments);var t=ur(e),r=ju(t).getTime()-lM(t).getTime();return Math.round(r/cM)+1}function Fu(e,t){var r,n,i,o,a,s,u,l;ct(1,arguments);var c=$l(),f=ri((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=ur(e),h=d.getUTCDay(),m=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var g=Fu(m,t),b=new Date(0);b.setUTCFullYear(f,0,h),b.setUTCHours(0,0,0,0);var y=Fu(b,t);return c.getTime()>=g.getTime()?f+1:c.getTime()>=y.getTime()?f:f-1}function dM(e,t){var r,n,i,o,a,s,u,l;ct(1,arguments);var c=$l(),f=ri((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=y1(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Fu(h,t);return m}var hM=6048e5;function pM(e,t){ct(1,arguments);var r=ur(e),n=Fu(r,t).getTime()-dM(r,t).getTime();return Math.round(n/hM)+1}function me(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return me(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):me(n+1,2)},d:function(t,r){return me(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return me(t.getUTCHours()%12||12,r.length)},H:function(t,r){return me(t.getUTCHours(),r.length)},m:function(t,r){return me(t.getUTCMinutes(),r.length)},s:function(t,r){return me(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return me(o,r.length)}};const Yr=vM;var gi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gM={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return Yr.y(t,r)},Y:function(t,r,n,i){var o=y1(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return me(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):me(a,r.length)},R:function(t,r){var n=m1(t);return me(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return me(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return me(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return me(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return Yr.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return me(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=pM(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,r.length)},I:function(t,r,n){var i=fM(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):me(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Yr.d(t,r)},D:function(t,r,n){var i=uM(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):me(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return me(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return me(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return me(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=gi.noon:i===0?o=gi.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=gi.evening:i>=12?o=gi.afternoon:i>=4?o=gi.morning:o=gi.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Yr.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Yr.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):me(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):me(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Yr.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Yr.s(t,r)},S:function(t,r){return Yr.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Rm(a);case"XXXX":case"XX":return Un(a);case"XXXXX":case"XXX":default:return Un(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Rm(a);case"xxxx":case"xx":return Un(a);case"xxxxx":case"xxx":default:return Un(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Pm(a,":");case"OOOO":default:return"GMT"+Un(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Pm(a,":");case"zzzz":default:return"GMT"+Un(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return me(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return me(a,r.length)}};function Pm(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t||"";return r+String(i)+a+me(o,2)}function Rm(e,t){if(e%60===0){var r=e>0?"-":"+";return r+me(Math.abs(e)/60,2)}return Un(e,t)}function Un(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=me(Math.floor(i/60),2),a=me(i%60,2);return n+o+r+a}const mM=gM;var Am=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},w1=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},yM=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return Am(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Am(i,r)).replace("{{time}}",w1(o,r))},wM={p:w1,P:yM};const bM=wM;var SM=["D","DD"],xM=["YY","YYYY"];function _M(e){return SM.indexOf(e)!==-1}function EM(e){return xM.indexOf(e)!==-1}function Im(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var CM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kM=function(t,r,n){var i,o=CM[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const OM=kM;function $c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var TM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},PM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},RM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AM={date:$c({formats:TM,defaultWidth:"full"}),time:$c({formats:PM,defaultWidth:"full"}),dateTime:$c({formats:RM,defaultWidth:"full"})};const IM=AM;var MM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},LM=function(t,r,n,i){return MM[t]};const NM=LM;function _o(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var DM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},FM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},BM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},UM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$M={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zM=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},WM={ordinalNumber:zM,era:_o({values:DM,defaultWidth:"wide"}),quarter:_o({values:jM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:_o({values:FM,defaultWidth:"wide"}),day:_o({values:BM,defaultWidth:"wide"}),dayPeriod:_o({values:UM,defaultWidth:"wide",formattingValues:$M,defaultFormattingWidth:"wide"})};const HM=WM;function Eo(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?VM(s,function(f){return f.test(a)}):qM(s,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(a.length);return{value:l,rest:c}}}function qM(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function VM(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var KM=/^(\d+)(th|st|nd|rd)?/i,YM=/\d+/i,GM={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},XM={any:[/^b/i,/^(a|c)/i]},JM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZM={any:[/1/i,/2/i,/3/i,/4/i]},eL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},rL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},iL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},oL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},aL={ordinalNumber:QM({matchPattern:KM,parsePattern:YM,valueCallback:function(t){return parseInt(t,10)}}),era:Eo({matchPatterns:GM,defaultMatchWidth:"wide",parsePatterns:XM,defaultParseWidth:"any"}),quarter:Eo({matchPatterns:JM,defaultMatchWidth:"wide",parsePatterns:ZM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Eo({matchPatterns:eL,defaultMatchWidth:"wide",parsePatterns:tL,defaultParseWidth:"any"}),day:Eo({matchPatterns:rL,defaultMatchWidth:"wide",parsePatterns:nL,defaultParseWidth:"any"}),dayPeriod:Eo({matchPatterns:iL,defaultMatchWidth:"any",parsePatterns:oL,defaultParseWidth:"any"})};const sL=aL;var uL={code:"en-US",formatDistance:OM,formatLong:IM,formatRelative:NM,localize:HM,match:sL,options:{weekStartsOn:0,firstWeekContainsDate:1}};const lL=uL;var cL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dL=/^'([^]*?)'?$/,hL=/''/g,pL=/[a-zA-Z]/;function vL(e,t,r){var n,i,o,a,s,u,l,c,f,d,h,m,g,b,y,v,p,w;ct(2,arguments);var x=String(t),_=$l(),O=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:lL,P=ri((o=(a=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=ri((h=(m=(g=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(y=r.locale)===null||y===void 0||(v=y.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&g!==void 0?g:_.weekStartsOn)!==null&&m!==void 0?m:(p=_.locale)===null||p===void 0||(w=p.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&h!==void 0?h:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var L=ur(e);if(!oM(L))throw new RangeError("Invalid time value");var S=nM(L),T=aM(L,S),C={firstWeekContainsDate:P,weekStartsOn:A,locale:O,_originalDate:L},I=x.match(fL).map(function(D){var z=D[0];if(z==="p"||z==="P"){var Q=bM[z];return Q(D,O.formatLong)}return D}).join("").match(cL).map(function(D){if(D==="''")return"'";var z=D[0];if(z==="'")return gL(D);var Q=mM[z];if(Q)return!(r!=null&&r.useAdditionalWeekYearTokens)&&EM(D)&&Im(D,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&_M(D)&&Im(D,t,String(e)),Q(T,D,O.localize,C);if(z.match(pL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return D}).join("");return I}function gL(e){var t=e.match(dL);return t?t[1].replace(hL,"'"):e}function mL(e,t){var r,n;ct(1,arguments);var i=ur(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){var f=me(i.getDate(),2),d=me(i.getMonth()+1,2),h=me(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var g=Math.abs(m),b=me(Math.floor(g/60),2),y=me(g%60,2),v=m<0?"+":"-";u="".concat(v).concat(b,":").concat(y)}else u="Z";var p=me(i.getHours(),2),w=me(i.getMinutes(),2),x=me(i.getSeconds(),2),_=s===""?"":"T",O=[p,w,x].join(c);s="".concat(s).concat(_).concat(O).concat(u)}return s}const b1=()=>{const{t:e}=Ln(),{data:t,error:r,isLoading:n,isSuccess:i,isError:o,fulfilledTimeStamp:a}=QC(void 0,{pollingInterval:6e4}),s=$.useMemo(()=>new Date(a),[a]),u=i?t.length:0;return ve(Je,{children:[ve(st,{as:"header",className:"row-cols row-cols-1 row-cols-lg-2 mt-2",children:[J(Ve,{children:J("h2",{children:e("views.users.whos_in_the_lab")})}),ve(Ve,{className:"text-end",children:[n&&J(ir,{}),i&&J("h2",{children:ve("div",{className:"small text-muted",children:[e("views.users.people_at_about_html."+(u===1?"one":"other")).replace("%{count}",u.toString(10))," ",J("time",{dateTime:mL(s),children:vL(s,"HH:mm")})]})})]})]}),n&&J(st,{className:"mb-3",children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})}),i&&J(eM,{users:t}),o&&J(st,{className:"mb-3",children:J(Ve,{children:r})})]})};const yL={Temperature:["°C",1],Humidity:["%",1]},S1=({label:e,topic:t})=>{const r=ha(XC(t)),n=yL.Temperature,i=(r==null?void 0:r.data)&&parseFloat(r.data).toFixed(n[1])+n[0];return J(Ve,{children:J(hr,{bg:"primary",text:"white",children:J(hr.Body,{children:J(Ul,{children:ve(st,{children:[J(Ve,{xs:3,children:J("i",{className:"fas fa-thermometer-half fa-5x"})}),ve(Ve,{xs:9,className:"text-end",children:[J("div",{className:"huge",children:i||J(ir,{})}),J("div",{children:e})]})]})})})})})};S1.propTypes={label:Tt.string.isRequired,topic:Tt.string.isRequired};const wL=()=>{const{t:e}=Ln();return ve(Je,{children:[J(st,{children:J(Ve,{children:J("h3",{children:e("views.dashboard.sensor_readings")})})}),J(st,{className:"row-cols-1 row-cols-lg-3 g-3",children:$a.sensors.map((t,r)=>J(S1,{...t},r))})]})},bL=()=>ve(Je,{children:[J(b1,{}),J(wL,{})]});const SL="/fauna-frontend/assets/logo-6c62b912.svg",xL=()=>J("i",{className:"fa-solid fa-triangle-exclamation"}),_L=()=>J("i",{className:"fas fa-lock"}),EL=()=>J("i",{className:"fas fa-unlock"}),CL=()=>J("i",{className:"fa-solid fa-gear fa-spin"}),kL=()=>J("i",{className:"fas fa-door-closed"}),OL=()=>J("i",{className:"fas fa-door-open"}),TL=()=>{const{t:e}=Ln(),t=ha(ZC("closed")),r=ha(Aw()),n="https://fauna.initlab.org/",i=kw()!==null,{data:o,isSuccess:a}=KC(void 0,{skip:!i}),s=a&&o.roles.includes("board_member");return J(xo,{bg:"primary",variant:"dark",expand:"lg",className:"py-0",children:ve(Ul,{children:[J(xo.Brand,{as:li,to:"/",children:J(sp,{src:SL,className:"logo",alt:"Fauna"})}),J(xo.Text,{className:"flex-grow-1 flex-lg-grow-0 text-end pe-3 pe-lg-0",children:t?J(kL,{}):J(OL,{})}),J(xo.Toggle,{"aria-controls":"basic-navbar-nav"}),J(xo.Collapse,{id:"basic-navbar-nav",children:ve(vi,{className:"flex-grow-1",children:[ve(vi.Link,{as:li,to:"/doors",children:[r==="uninitialized"&&ve(Je,{children:[J(ir,{})," ..."]}),r==="locked"&&ve(Je,{children:[J(_L,{})," ",e("views.doors.locked")]}),r==="unlocked"&&ve(Je,{children:[J(EL,{})," ",e("views.doors.unlocked")]}),r==="busy"&&ve(Je,{children:[J(CL,{})," ..."]}),r==="invalid"&&ve(Je,{children:[J(xL,{})," ",e("views.doors.unknown")]})]}),ve(vi.Link,{as:li,to:"/users/present",children:[J("i",{className:"fas fa-street-view"})," ",e("views.navigation.presence")]}),ve(vi.Link,{as:li,to:"/sensors",children:[J("i",{className:"fas fa-chart-line"})," ",e("views.navigation.sensors")]}),s&&ve(vi.Link,{href:n+"fauna/users",children:[J("i",{className:"fas fa-users"})," ",e("views.navigation.labbers")]}),i?ve(Dn,{title:ve(Je,{children:[J("i",{className:"fas fa-user"})," ",e("views.navigation.account")]}),className:"ms-0 ms-lg-auto",children:[J(Dn.Item,{href:n+"users/edit",children:e("views.navigation.view_edit")}),J(Dn.Item,{href:n+"user/network_devices",children:e("views.navigation.network_devices")}),J(Dn.Item,{href:n+"oauth/applications",children:e("views.navigation.oauth_application_management")}),J(Dn.Item,{href:n+"oauth/authorized_applications",children:e("views.navigation.oauth_token_management")}),J(Dn.Divider,{}),J(Dn.Item,{as:li,to:"/logout",children:e("views.navigation.sign_out")})]}):ve(vi.Link,{as:li,to:"/login",className:"ms-0 ms-lg-auto",children:[J("i",{className:"fas fa-sign-in"})," ",e("views.navigation.sign_in")]})]})})]})})};const PL=()=>{const{t:e}=Ln();return J("footer",{children:J(Ul,{children:ve(st,{children:[J(Ve,{xs:12,sm:6,children:ve("p",{className:"my-4",children:[e("views.footer.license").replace("init Lab Fauna","init Lab Fauna Frontend")," ",J("a",{href:"https://github.com/initLab/fauna-frontend/blob/master/LICENSE",children:"MIT License"})]})}),J(Ve,{xs:12,sm:6,children:ve("p",{className:"my-4 right",children:[e("views.footer.source_code")," ",J("a",{href:"https://github.com/initLab/fauna-frontend/",children:"GitHub"})]})})]})})})},RL=()=>{const{t:e}=Ln();return ve(Je,{children:[J(st,{children:J("h2",{children:e("views.sensors.title")})}),Object.entries(iR).map(([t,r])=>ve($.Fragment,{children:[J(st,{children:J("h3",{children:e("views.sensors."+t)})}),J(st,{className:"row-cols row-cols-lg-3",children:r.panels.map(n=>J(Ve,{children:J("a",{href:"https://stats.initlab.org/d/"+r.dashboard.id+"/"+r.dashboard.name,target:"_blank",children:J(sp,{src:"https://stats.initlab.org/render/d-solo/"+r.dashboard.id+"/"+r.dashboard.name+"?orgId=1&panelId="+n+"&width=350&height=200&tz=Europe%2FSofia",height:200})})},n))})]},t))]})};const AL={open:{variant:"success",icon:"fa fa-sign-in"},lock:{variant:"danger",icon:"fa fa-lock"},unlock:{variant:"info",icon:"fa fa-unlock"}},IL=({action:e,onClick:t})=>{const{t:r}=Ln(),n=AL[e];return ve(qo,{variant:n.variant,className:"door-button",onClick:t,children:[J("i",{className:n.icon}),J("div",{children:r("views.doors."+e)})]})},ML=()=>{const{t:e}=Ln(),{data:t,error:r,isLoading:n,isSuccess:i,isError:o}=YC(),a=$.useMemo(()=>i?t.filter(f=>f.supported_actions.length>0):[],[t,i]),[s]=GC(),u="building_door",l=ha(Aw()),c=$.useCallback(f=>{const d=f.supported_actions;return f.id!==u?d:l==="unlocked"?d.filter(h=>h!=="unlock"):l==="locked"?d.filter(h=>["open","lock"].indexOf(h)===-1):[]},[u,l]);return ve(st,{className:"row-cols row-cols-1 gap-4",children:[n&&J(Ve,{className:"text-center",children:J(ir,{large:!0})}),i&&J(Je,{children:a.length>0?a.map(f=>{const d=c(f);return J(Ve,{children:ve(hr,{children:[J(hr.Header,{className:"bg-primary text-light text-start",children:f.name}),ve(hr.Body,{className:"d-flex flex-column flex-lg-row justify-content-center align-items-center gap-4",children:[d.map(h=>J(IL,{action:h,onClick:()=>s({doorId:f.id,action:h})},h)),f.id===u&&l==="busy"&&J(ir,{large:!0})]})]})},f.id)}):J(Ve,{children:J(hr,{children:J(hr.Body,{className:"d-flex flex-column flex-lg-row gap-4",children:e("views.doors.no_access")})})})}),o&&r.status===401&&J(Xk,{to:"/login"})]})},LL=()=>{const e=$.useRef(!1),[t,r]=$.useState(null),n=Tl();return $.useEffect(()=>{e.current||(e.current=!0,(async()=>{const i=await Cw.exchangeForAccessToken(window.location.href);try{Ow(i),n("/",{replace:!0})}catch(o){r(o.message)}})())},[n]),t||J(st,{children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})})},NL=()=>{const e=$.useRef(!1),t=Tl();return $.useEffect(()=>{e.current||(e.current=!0,(async()=>(await BC(),t("/")))())},[]),J(st,{children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})})},DL=()=>{const e=$.useRef(!1);return $.useEffect(()=>{e.current||(e.current=!0,window.location.replace(Cw.authorizeUrl()))},[]),J(st,{children:J(Ve,{className:"text-center",children:J(ir,{large:!0})})})};function jL(){return ve(Je,{children:[J(TL,{}),J("main",{children:J(Ul,{as:"section",className:"mt-4",children:ve(Zk,{children:[J(Gr,{path:"/",element:J(bL,{})}),J(Gr,{path:"/doors",element:J(ML,{})}),J(Gr,{path:"/users/present",element:J(b1,{})}),J(Gr,{path:"/sensors",element:J(RL,{})}),J(Gr,{path:"/oauth-callback",element:J(LL,{})}),J(Gr,{path:"/login",element:J(DL,{})}),J(Gr,{path:"/logout",element:J(NL,{})})]})})}),J(PL,{})]})}Wc.createRoot(document.getElementById("root")).render(J(Pt.StrictMode,{children:J(F_,{store:xu,children:J(iO,{basename:"/fauna-frontend/",children:J(jL,{})})})})); +//# sourceMappingURL=index-17eb84ff.js.map diff --git a/assets/index-17eb84ff.js.gz b/assets/index-17eb84ff.js.gz new file mode 100644 index 0000000000000000000000000000000000000000..5ba307da92a9ffc6cceafb75aa162aa03c7068b3 GIT binary patch literal 218509 zcmV(=K-s?^iwFP!000021Kho9TieL8F#7%d6-FnAS6Z|k8*;Uyc!vNJX1HW9Y#WWWLM-+rp9@3JA8wb%PR=j?ehxYhSdb#+yBRrP3=4yzmX=i`4Xe}Qte1@ZYM%3K)JWGtudIqBz4X@C z*WMIGG;bv({rYJjsuV?&Mv^wt0E#ASVd%wt6wM|Tmhvfy2da@QJihpg53ANCua2+N z_eGZTqMGmUa#$pJ1vRED33}Q3y37Z4B`H_=U@QsCuy8-?-tu%dn0It%6SulCq+CU0<(S;-}7d(WO?SP|XSw;3?4p7-gWw|Qsd;Ze zpA9VCE_!m2lU9;e{IW=@`T9C^Uw?&GO2886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x4w z6laxM&l%MCM9c~awWmULG}O8jGTp2V6N{yxa8d8nub=k1kDt6ceWKB6^t*3sJwcmj zQ})djuSML{cYXEaFpY-Z1)e+qd)3itf95C8(}9uW2lQzE?=DZ)ZHUMv0|{5L5hCK` z!3d0ePz3!q{P@5;gC)f|UpD;IdKx)n9Hd*Y-rI=PXe3(}J^3Y1E;2G`nckEyc7jqg z>B_E%6DNstO0!Fmh_gkR?>3A=62)!a5II=tq#LmCK=ivVt~J8jVQd%&P_paVox4;| zcrqFwW$%&=uYK>A_T7nx9BS{i+jo<%_LCG3!hYU+dK!*=s5<{@!B@^f0bl&Fq^|Fi z9HP+J~NrjNuTDX^Ex|=&+TUjE=6q_DglTukaj#^P>ahU$EA#5M`{NQ4Gc<{_LX6^@4}KZ zJ#ejQPP0F7C8-npAs$hSPez?*tjcy~&;ps!N8?;M@tEMTc(a3*TCuZ~P0w}Fw^ej> zYGY@fpUY@d^E)>!`Ico);5w?|4;+5hssrV;Oyw;Rjk zjr0fwXM**u*F{~*r>T$H89^YPpV%JI496DRA&E7>*v;g?wRmn^YKlQQ@+!e~{ z+n!j;88Zi$TEztn9t_4F4jOxjJGv zk-Ph=KZdPgp2HUYMT*!T7)W{(tT6{&$V9w))O|4%*8*SPzkI c(Cqx`4Su^n8nr&rO5nf#9~kp_vK0jj0Miewi~s-t literal 0 HcmV?d00001 diff --git a/assets/index-17eb84ff.js.map b/assets/index-17eb84ff.js.map new file mode 100644 index 0000000..832ed59 --- /dev/null +++ b/assets/index-17eb84ff.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index-17eb84ff.js","sources":["../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/index.js","../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.js","../../node_modules/scheduler/cjs/scheduler.production.min.js","../../node_modules/scheduler/index.js","../../node_modules/react-dom/cjs/react-dom.production.min.js","../../node_modules/react-dom/index.js","../../node_modules/react-dom/client.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js","../../node_modules/use-sync-external-store/shim/with-selector.js","../../node_modules/react-redux/es/utils/batch.js","../../node_modules/react-redux/es/components/Context.js","../../node_modules/react-redux/es/hooks/useReduxContext.js","../../node_modules/react-redux/es/utils/useSyncExternalStore.js","../../node_modules/react-redux/es/hooks/useSelector.js","../../node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/react-is/index.js","../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/react-redux/node_modules/react-is/index.js","../../node_modules/react-redux/es/utils/Subscription.js","../../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js","../../node_modules/react-redux/es/utils/shallowEqual.js","../../node_modules/react-redux/es/components/Provider.js","../../node_modules/react-redux/es/hooks/useStore.js","../../node_modules/react-redux/es/hooks/useDispatch.js","../../node_modules/react-redux/es/index.js","../../node_modules/immer/dist/immer.esm.js","../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../../node_modules/redux/es/redux.js","../../node_modules/reselect/es/defaultMemoize.js","../../node_modules/reselect/es/index.js","../../node_modules/redux-thunk/es/index.js","../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js","../../node_modules/@reduxjs/toolkit/dist/query/rtk-query.esm.js","../../node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js","../../__vite-browser-external","../../node_modules/crypto-js/core.js","../../node_modules/crypto-js/sha256.js","../../node_modules/crypto-js/enc-base64.js","../../node_modules/crypto-js/lib-typedarrays.js","../../node_modules/js-pkce/dist/PKCE.js","../../src/oauth.js","../../src/authStorage.js","../../node_modules/tslib/tslib.es6.js","../../node_modules/async-mutex/es6/errors.js","../../node_modules/async-mutex/es6/Semaphore.js","../../node_modules/async-mutex/es6/Mutex.js","../../node_modules/async-mutex/es6/withTimeout.js","../../node_modules/async-mutex/es6/tryAcquire.js","../../src/features/apiSlice.js","../../src/features/sensorSlice.js","../../src/features/doorSlice.js","../../src/app/store.js","../../node_modules/@remix-run/router/dist/router.js","../../node_modules/react-router/dist/index.js","../../node_modules/react-router-dom/dist/index.js","../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../../node_modules/@babel/runtime/helpers/esm/createClass.js","../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/inherits.js","../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../../node_modules/@babel/runtime/helpers/esm/toArray.js","../../node_modules/i18next/dist/esm/i18next.js","../../node_modules/i18next-http-backend/esm/utils.js","../../node_modules/cross-fetch/dist/browser-ponyfill.js","../../node_modules/i18next-http-backend/esm/getFetch.cjs","../../node_modules/i18next-http-backend/esm/request.js","../../node_modules/i18next-http-backend/esm/index.js","../../node_modules/react-i18next/dist/es/utils.js","../../node_modules/react-i18next/dist/es/unescape.js","../../node_modules/react-i18next/dist/es/defaults.js","../../node_modules/react-i18next/dist/es/i18nInstance.js","../../node_modules/react-i18next/dist/es/initReactI18next.js","../../node_modules/react-i18next/dist/es/context.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../../node_modules/react-i18next/dist/es/useTranslation.js","../../node_modules/js-yaml/dist/js-yaml.mjs","../../src/i18n.js","../../src/config.js","../../node_modules/mqtt/dist/mqtt.js","../../src/mqtt.js","../../node_modules/classnames/index.js","../../node_modules/uncontrollable/lib/esm/utils.js","../../node_modules/uncontrollable/lib/esm/hook.js","../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../node_modules/react-bootstrap/esm/ThemeProvider.js","../../node_modules/dom-helpers/esm/ownerDocument.js","../../node_modules/dom-helpers/esm/ownerWindow.js","../../node_modules/dom-helpers/esm/getComputedStyle.js","../../node_modules/dom-helpers/esm/hyphenate.js","../../node_modules/dom-helpers/esm/hyphenateStyle.js","../../node_modules/dom-helpers/esm/isTransform.js","../../node_modules/dom-helpers/esm/css.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../node_modules/react-transition-group/esm/config.js","../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../node_modules/react-transition-group/esm/utils/reflow.js","../../node_modules/react-transition-group/esm/Transition.js","../../node_modules/dom-helpers/esm/canUseDOM.js","../../node_modules/dom-helpers/esm/addEventListener.js","../../node_modules/dom-helpers/esm/removeEventListener.js","../../node_modules/dom-helpers/esm/listen.js","../../node_modules/dom-helpers/esm/triggerEvent.js","../../node_modules/dom-helpers/esm/transitionEnd.js","../../node_modules/react-bootstrap/esm/transitionEndListener.js","../../node_modules/react-bootstrap/esm/createChainedFunction.js","../../node_modules/react-bootstrap/esm/triggerBrowserReflow.js","../../node_modules/@restart/hooks/esm/useMergedRefs.js","../../node_modules/react-bootstrap/esm/safeFindDOMNode.js","../../node_modules/react-bootstrap/esm/TransitionWrapper.js","../../node_modules/react-bootstrap/esm/Collapse.js","../../node_modules/@restart/hooks/esm/useCommittedRef.js","../../node_modules/@restart/hooks/esm/useEventCallback.js","../../node_modules/@restart/hooks/esm/useCallbackRef.js","../../node_modules/@restart/hooks/esm/useEventListener.js","../../node_modules/@restart/hooks/esm/useMounted.js","../../node_modules/@restart/hooks/esm/usePrevious.js","../../node_modules/@restart/hooks/esm/useIsomorphicEffect.js","../../node_modules/@restart/ui/esm/Button.js","../../node_modules/@restart/ui/esm/Anchor.js","../../node_modules/react-bootstrap/esm/Fade.js","../../node_modules/react-bootstrap/esm/CloseButton.js","../../node_modules/react-bootstrap/esm/divWithClassName.js","../../node_modules/dom-helpers/esm/camelize.js","../../node_modules/react-bootstrap/esm/createWithBsPrefix.js","../../node_modules/react-bootstrap/esm/Button.js","../../node_modules/react-bootstrap/esm/ButtonGroup.js","../../node_modules/react-bootstrap/esm/CardImg.js","../../node_modules/react-bootstrap/esm/CardHeaderContext.js","../../node_modules/react-bootstrap/esm/CardHeader.js","../../node_modules/react-bootstrap/esm/Card.js","../../node_modules/@restart/hooks/esm/useUpdatedRef.js","../../node_modules/@restart/hooks/esm/useWillUnmount.js","../../node_modules/react-bootstrap/esm/Col.js","../../node_modules/dom-helpers/esm/querySelectorAll.js","../../node_modules/@restart/hooks/esm/useForceUpdate.js","../../node_modules/@restart/ui/esm/DropdownContext.js","../../node_modules/dequal/dist/index.mjs","../../node_modules/@restart/hooks/esm/useSafeState.js","../../node_modules/@popperjs/core/lib/enums.js","../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../node_modules/@popperjs/core/lib/utils/math.js","../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../node_modules/@popperjs/core/lib/utils/within.js","../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../node_modules/@popperjs/core/lib/utils/debounce.js","../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../node_modules/@popperjs/core/lib/createPopper.js","../../node_modules/@restart/ui/esm/popper.js","../../node_modules/@restart/ui/esm/usePopper.js","../../node_modules/dom-helpers/esm/contains.js","../../node_modules/@restart/ui/esm/useClickOutside.js","../../node_modules/@restart/ui/esm/mergeOptionsWithPopperConfig.js","../../node_modules/@restart/ui/esm/DropdownMenu.js","../../node_modules/@react-aria/ssr/dist/module.js","../../node_modules/@restart/ui/esm/DropdownToggle.js","../../node_modules/@restart/ui/esm/SelectableContext.js","../../node_modules/@restart/ui/esm/NavContext.js","../../node_modules/@restart/ui/esm/DataKey.js","../../node_modules/@restart/ui/esm/DropdownItem.js","../../node_modules/@restart/ui/esm/useWindow.js","../../node_modules/@restart/ui/esm/Dropdown.js","../../node_modules/react-bootstrap/esm/DropdownContext.js","../../node_modules/react-bootstrap/esm/DropdownItem.js","../../node_modules/react-bootstrap/esm/InputGroupContext.js","../../node_modules/react-bootstrap/esm/NavbarContext.js","../../node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js","../../node_modules/react-bootstrap/esm/DropdownMenu.js","../../node_modules/react-bootstrap/esm/DropdownToggle.js","../../node_modules/react-bootstrap/esm/Dropdown.js","../../node_modules/react-bootstrap/esm/Container.js","../../node_modules/react-bootstrap/esm/Image.js","../../node_modules/@restart/ui/esm/TabContext.js","../../node_modules/@restart/ui/esm/NavItem.js","../../node_modules/@restart/ui/esm/Nav.js","../../node_modules/dom-helpers/esm/activeElement.js","../../node_modules/@restart/ui/esm/getScrollbarWidth.js","../../node_modules/@restart/ui/esm/ModalManager.js","../../node_modules/@restart/ui/esm/useWaitForDOMRef.js","../../node_modules/@restart/ui/esm/Modal.js","../../node_modules/dom-helpers/esm/hasClass.js","../../node_modules/dom-helpers/esm/addClass.js","../../node_modules/dom-helpers/esm/removeClass.js","../../node_modules/react-bootstrap/esm/BootstrapModalManager.js","../../node_modules/react-bootstrap/esm/ModalContext.js","../../node_modules/react-bootstrap/esm/AbstractModalHeader.js","../../node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js","../../node_modules/prop-types-extra/lib/all.js","../../node_modules/react-bootstrap/esm/NavItem.js","../../node_modules/react-bootstrap/esm/NavLink.js","../../node_modules/react-bootstrap/esm/Nav.js","../../node_modules/react-bootstrap/esm/NavbarBrand.js","../../node_modules/react-bootstrap/esm/NavbarCollapse.js","../../node_modules/react-bootstrap/esm/NavbarToggle.js","../../node_modules/@restart/hooks/esm/useMediaQuery.js","../../node_modules/@restart/hooks/esm/useBreakpoint.js","../../node_modules/react-bootstrap/esm/OffcanvasBody.js","../../node_modules/react-bootstrap/esm/OffcanvasToggling.js","../../node_modules/react-bootstrap/esm/OffcanvasHeader.js","../../node_modules/react-bootstrap/esm/OffcanvasTitle.js","../../node_modules/react-bootstrap/esm/Offcanvas.js","../../node_modules/react-bootstrap/esm/NavbarOffcanvas.js","../../node_modules/react-bootstrap/esm/Navbar.js","../../node_modules/react-bootstrap/esm/NavDropdown.js","../../node_modules/react-bootstrap/esm/Row.js","../../node_modules/react-bootstrap/esm/Spinner.js","../../src/widgets/PresentUsers/PresentUsers.jsx","../../src/widgets/icons/LoadingIcon.jsx","../../node_modules/date-fns/esm/_lib/toInteger/index.js","../../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../../node_modules/date-fns/esm/toDate/index.js","../../node_modules/date-fns/esm/addMilliseconds/index.js","../../node_modules/date-fns/esm/_lib/defaultOptions/index.js","../../node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","../../node_modules/date-fns/esm/isDate/index.js","../../node_modules/date-fns/esm/isValid/index.js","../../node_modules/date-fns/esm/subMilliseconds/index.js","../../node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js","../../node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js","../../node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js","../../node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js","../../node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js","../../node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js","../../node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js","../../node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js","../../node_modules/date-fns/esm/_lib/getUTCWeek/index.js","../../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","../../node_modules/date-fns/esm/_lib/format/lightFormatters/index.js","../../node_modules/date-fns/esm/_lib/format/formatters/index.js","../../node_modules/date-fns/esm/_lib/format/longFormatters/index.js","../../node_modules/date-fns/esm/_lib/protectedTokens/index.js","../../node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js","../../node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js","../../node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js","../../node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js","../../node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js","../../node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js","../../node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js","../../node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js","../../node_modules/date-fns/esm/locale/en-US/_lib/match/index.js","../../node_modules/date-fns/esm/locale/en-US/index.js","../../node_modules/date-fns/esm/format/index.js","../../node_modules/date-fns/esm/formatISO/index.js","../../src/widgets/PresentUsersWrapper/PresentUsersWrapper.jsx","../../src/widgets/SensorReading/SensorReading.jsx","../../src/widgets/SensorReadingsWrapper/SensorReadingsWrapper.jsx","../../src/pages/Dashboard.jsx","../../src/assets/logo.svg","../../src/widgets/icons/WarningIcon.jsx","../../src/widgets/icons/LockIcon.jsx","../../src/widgets/icons/UnlockIcon.jsx","../../src/widgets/icons/BusyIcon.jsx","../../src/widgets/icons/DoorClosedIcon.jsx","../../src/widgets/icons/DoorOpenIcon.jsx","../../src/layout/NavBar.jsx","../../src/layout/Footer.jsx","../../src/pages/Sensors.jsx","../../src/widgets/DoorButton/DoorButton.jsx","../../src/pages/Doors.jsx","../../src/pages/OauthCallback.jsx","../../src/pages/Logout.jsx","../../src/pages/Login.jsx","../../src/App.jsx","../../src/main.jsx"],"sourcesContent":["/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)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,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,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(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 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(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3 batch = newBatch; // Supply a getter just to skip dealing with ESM bindings\n\nexport const getBatch = () => batch;","import { createContext } from 'react';\nexport const ReactReduxContext = /*#__PURE__*/createContext(null);\n\nif (process.env.NODE_ENV !== 'production') {\n ReactReduxContext.displayName = 'ReactRedux';\n}\n\nexport default ReactReduxContext;","import { useContext } from 'react';\nimport { ReactReduxContext } from '../components/Context';\n\n/**\r\n * A hook to access the value of the `ReactReduxContext`. This is a low-level\r\n * hook that you should usually not need to call directly.\r\n *\r\n * @returns {any} the value of the `ReactReduxContext`\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useReduxContext } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n * const { store } = useReduxContext()\r\n * return
{store.getState()}
\r\n * }\r\n */\nexport function useReduxContext() {\n const contextValue = useContext(ReactReduxContext);\n\n if (process.env.NODE_ENV !== 'production' && !contextValue) {\n throw new Error('could not find react-redux context value; please ensure the component is wrapped in a ');\n }\n\n return contextValue;\n}","export const notInitialized = () => {\n throw new Error('uSES not initialized!');\n};","import { useContext, useDebugValue } from 'react';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\nimport { ReactReduxContext } from '../components/Context';\nimport { notInitialized } from '../utils/useSyncExternalStore';\nlet useSyncExternalStoreWithSelector = notInitialized;\nexport const initializeUseSelector = fn => {\n useSyncExternalStoreWithSelector = fn;\n};\n\nconst refEquality = (a, b) => a === b;\n/**\r\n * Hook factory, which creates a `useSelector` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useSelector` hook bound to the specified context.\r\n */\n\n\nexport function createSelectorHook(context = ReactReduxContext) {\n const useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : () => useContext(context);\n return function useSelector(selector, equalityFn = refEquality) {\n if (process.env.NODE_ENV !== 'production') {\n if (!selector) {\n throw new Error(`You must pass a selector to useSelector`);\n }\n\n if (typeof selector !== 'function') {\n throw new Error(`You must pass a function as a selector to useSelector`);\n }\n\n if (typeof equalityFn !== 'function') {\n throw new Error(`You must pass a function as an equality function to useSelector`);\n }\n }\n\n const {\n store,\n subscription,\n getServerState\n } = useReduxContext();\n const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, selector, equalityFn);\n useDebugValue(selectedState);\n return selectedState;\n };\n}\n/**\r\n * A hook to access the redux store's state. This hook takes a selector function\r\n * as an argument. The selector is called with the store state.\r\n *\r\n * This hook takes an optional equality comparison function as the second parameter\r\n * that allows you to customize the way the selected state is compared to determine\r\n * whether the component needs to be re-rendered.\r\n *\r\n * @param {Function} selector the selector function\r\n * @param {Function=} equalityFn the function that will be used to determine equality\r\n *\r\n * @returns {any} the selected state\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useSelector } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n * const counter = useSelector(state => state.counter)\r\n * return
{counter}
\r\n * }\r\n */\n\nexport const useSelector = /*#__PURE__*/createSelectorHook();","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { getBatch } from './batch'; // encapsulates the subscription logic for connecting a component to the redux store, as\n// well as nesting subscriptions of descendant components, so that we can ensure the\n// ancestor components re-render before descendants\n\nfunction createListenerCollection() {\n const batch = getBatch();\n let first = null;\n let last = null;\n return {\n clear() {\n first = null;\n last = null;\n },\n\n notify() {\n batch(() => {\n let listener = first;\n\n while (listener) {\n listener.callback();\n listener = listener.next;\n }\n });\n },\n\n get() {\n let listeners = [];\n let listener = first;\n\n while (listener) {\n listeners.push(listener);\n listener = listener.next;\n }\n\n return listeners;\n },\n\n subscribe(callback) {\n let isSubscribed = true;\n let listener = last = {\n callback,\n next: null,\n prev: last\n };\n\n if (listener.prev) {\n listener.prev.next = listener;\n } else {\n first = listener;\n }\n\n return function unsubscribe() {\n if (!isSubscribed || first === null) return;\n isSubscribed = false;\n\n if (listener.next) {\n listener.next.prev = listener.prev;\n } else {\n last = listener.prev;\n }\n\n if (listener.prev) {\n listener.prev.next = listener.next;\n } else {\n first = listener.next;\n }\n };\n }\n\n };\n}\n\nconst nullListeners = {\n notify() {},\n\n get: () => []\n};\nexport function createSubscription(store, parentSub) {\n let unsubscribe;\n let listeners = nullListeners;\n\n function addNestedSub(listener) {\n trySubscribe();\n return listeners.subscribe(listener);\n }\n\n function notifyNestedSubs() {\n listeners.notify();\n }\n\n function handleChangeWrapper() {\n if (subscription.onStateChange) {\n subscription.onStateChange();\n }\n }\n\n function isSubscribed() {\n return Boolean(unsubscribe);\n }\n\n function trySubscribe() {\n if (!unsubscribe) {\n unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);\n listeners = createListenerCollection();\n }\n }\n\n function tryUnsubscribe() {\n if (unsubscribe) {\n unsubscribe();\n unsubscribe = undefined;\n listeners.clear();\n listeners = nullListeners;\n }\n }\n\n const subscription = {\n addNestedSub,\n notifyNestedSubs,\n handleChangeWrapper,\n isSubscribed,\n trySubscribe,\n tryUnsubscribe,\n getListeners: () => listeners\n };\n return subscription;\n}","import { useEffect, useLayoutEffect } from 'react'; // React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store\n// subscription callback always has the selector from the latest render commit\n// available, otherwise a store update may happen between render and the effect,\n// which may cause missed updates; we also must ensure the store subscription\n// is created synchronously, otherwise a store update may occur before the\n// subscription is created and an inconsistent state may be observed\n// Matches logic in React's `shared/ExecutionEnvironment` file\n\nexport const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');\nexport const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;","function is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nexport default function shallowEqual(objA, objB) {\n if (is(objA, objB)) return true;\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n const keysA = Object.keys(objA);\n const keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return false;\n\n for (let i = 0; i < keysA.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}","import React, { useMemo } from 'react';\nimport { ReactReduxContext } from './Context';\nimport { createSubscription } from '../utils/Subscription';\nimport { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';\n\nfunction Provider({\n store,\n context,\n children,\n serverState\n}) {\n const contextValue = useMemo(() => {\n const subscription = createSubscription(store);\n return {\n store,\n subscription,\n getServerState: serverState ? () => serverState : undefined\n };\n }, [store, serverState]);\n const previousState = useMemo(() => store.getState(), [store]);\n useIsomorphicLayoutEffect(() => {\n const {\n subscription\n } = contextValue;\n subscription.onStateChange = subscription.notifyNestedSubs;\n subscription.trySubscribe();\n\n if (previousState !== store.getState()) {\n subscription.notifyNestedSubs();\n }\n\n return () => {\n subscription.tryUnsubscribe();\n subscription.onStateChange = undefined;\n };\n }, [contextValue, previousState]);\n const Context = context || ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype\n\n return /*#__PURE__*/React.createElement(Context.Provider, {\n value: contextValue\n }, children);\n}\n\nexport default Provider;","import { useContext } from 'react';\nimport { ReactReduxContext } from '../components/Context';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\n/**\r\n * Hook factory, which creates a `useStore` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useStore` hook bound to the specified context.\r\n */\n\nexport function createStoreHook(context = ReactReduxContext) {\n const useReduxContext = // @ts-ignore\n context === ReactReduxContext ? useDefaultReduxContext : () => useContext(context);\n return function useStore() {\n const {\n store\n } = useReduxContext(); // @ts-ignore\n\n return store;\n };\n}\n/**\r\n * A hook to access the redux store.\r\n *\r\n * @returns {any} the redux store\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useStore } from 'react-redux'\r\n *\r\n * export const ExampleComponent = () => {\r\n * const store = useStore()\r\n * return
{store.getState()}
\r\n * }\r\n */\n\nexport const useStore = /*#__PURE__*/createStoreHook();","import { ReactReduxContext } from '../components/Context';\nimport { useStore as useDefaultStore, createStoreHook } from './useStore';\n/**\r\n * Hook factory, which creates a `useDispatch` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useDispatch` hook bound to the specified context.\r\n */\n\nexport function createDispatchHook(context = ReactReduxContext) {\n const useStore = // @ts-ignore\n context === ReactReduxContext ? useDefaultStore : createStoreHook(context);\n return function useDispatch() {\n const store = useStore(); // @ts-ignore\n\n return store.dispatch;\n };\n}\n/**\r\n * A hook to access the redux `dispatch` function.\r\n *\r\n * @returns {any|function} redux store's `dispatch` function\r\n *\r\n * @example\r\n *\r\n * import React, { useCallback } from 'react'\r\n * import { useDispatch } from 'react-redux'\r\n *\r\n * export const CounterComponent = ({ value }) => {\r\n * const dispatch = useDispatch()\r\n * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])\r\n * return (\r\n *
\r\n * {value}\r\n * \r\n *
\r\n * )\r\n * }\r\n */\n\nexport const useDispatch = /*#__PURE__*/createDispatchHook();","// The primary entry point assumes we're working with standard ReactDOM/RN, but\n// older versions that do not include `useSyncExternalStore` (React 16.9 - 17.x).\n// Because of that, the useSyncExternalStore compat shim is needed.\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { unstable_batchedUpdates as batch } from './utils/reactBatchedUpdates';\nimport { setBatch } from './utils/batch';\nimport { initializeUseSelector } from './hooks/useSelector';\nimport { initializeConnect } from './components/connect';\ninitializeUseSelector(useSyncExternalStoreWithSelector);\ninitializeConnect(useSyncExternalStore); // Enable batched updates in our subscriptions for use\n// with standard React renderers (ReactDOM, React Native)\n\nsetBatch(batch);\nexport { batch };\nexport * from './exports';","function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?(n.delete(r),n.add(t)):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||\"object\"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return\"production\"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b(\"Patches\"),n.u=[],n.s=[],n.v=r)}function O(n){g(n),n.p.forEach(S),n.p=null}function g(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.O=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.g||b(\"ES5\").S(e,r,o),o?(i[Q].P&&(O(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b(\"Patches\").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b(\"Patches\").R(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if(\"production\"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r(v))return;e.m=!1}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function R(n,r,t){var e=s(r)?b(\"MapSet\").N(r,t):v(r)?b(\"MapSet\").T(r,t):n.g?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b(\"ES5\").J(r,t);return(t?t.A:_()).p.push(e),e}function D(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b(\"ES5\").K(u)))return u.t;u.I=!0,e=F(r,c),u.I=!1}else e=F(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return\"production\"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];\"production\"!==process.env.NODE_ENV&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e1?t-1:0),o=1;o1?t-1:0),o=1;o=0;e--){var i=t[e];if(0===i.path.length&&\"replace\"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b(\"Patches\").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);export default fn;export{un as Immer,pn as applyPatches,K as castDraft,$ as castImmutable,ln as createDraft,D as current,J as enableAllPlugins,N as enableES5,C as enableMapSet,T as enablePatches,dn as finishDraft,d as freeze,L as immerable,r as isDraft,t as isDraftable,H as nothing,e as original,fn as produce,cn as produceWithPatches,sn as setAutoFreeze,vn as setUseProxies};\n//# sourceMappingURL=immer.esm.js.map\n","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\n\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nfunction formatProdErrorMessage(code) {\n return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + 'use the non-minified dev environment for full errors. ';\n}\n\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = (function () {\n return typeof Symbol === 'function' && Symbol.observable || '@@observable';\n})();\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nfunction miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\n\nfunction ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isError(val) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\n\nfunction isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\n\nfunction kindOf(val) {\n var typeOfVal = typeof val;\n\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n\n return typeOfVal;\n}\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"Expected the enhancer to be a function. Instead, received: '\" + kindOf(enhancer) + \"'\");\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"Expected the root reducer to be a function. Instead, received: '\" + kindOf(reducer) + \"'\");\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"Expected the listener to be a function. Instead, received: '\" + kindOf(listener) + \"'\");\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"Actions must be plain objects. Instead, the actual type was: '\" + kindOf(action) + \"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.\");\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : \"Expected the nextReducer to be a function. Instead, received: '\" + kindOf(nextReducer));\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"Expected the observer to be an object. Instead, received: '\" + kindOf(observer) + \"'\");\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nvar legacy_createStore = createStore;\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + kindOf(inputState) + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle '\" + ActionTypes.INIT + \"' or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"When called with an action of type \" + (actionType ? \"\\\"\" + String(actionType) + \"\\\"\" : '(unknown type)') + \", the slice reducer for key \\\"\" + _key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\");\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"bindActionCreators expected an object or a function, but instead received: '\" + kindOf(actionCreators) + \"'. \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread(_objectSpread({}, store), {}, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore, legacy_createStore };\n","// Cache implementation based on Erik Rasmussen's `lru-memoize`:\n// https://github.com/erikras/lru-memoize\nvar NOT_FOUND = 'NOT_FOUND';\n\nfunction createSingletonCache(equals) {\n var entry;\n return {\n get: function get(key) {\n if (entry && equals(entry.key, key)) {\n return entry.value;\n }\n\n return NOT_FOUND;\n },\n put: function put(key, value) {\n entry = {\n key: key,\n value: value\n };\n },\n getEntries: function getEntries() {\n return entry ? [entry] : [];\n },\n clear: function clear() {\n entry = undefined;\n }\n };\n}\n\nfunction createLruCache(maxSize, equals) {\n var entries = [];\n\n function get(key) {\n var cacheIndex = entries.findIndex(function (entry) {\n return equals(key, entry.key);\n }); // We found a cached entry\n\n if (cacheIndex > -1) {\n var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top\n\n if (cacheIndex > 0) {\n entries.splice(cacheIndex, 1);\n entries.unshift(entry);\n }\n\n return entry.value;\n } // No entry found in cache, return sentinel\n\n\n return NOT_FOUND;\n }\n\n function put(key, value) {\n if (get(key) === NOT_FOUND) {\n // TODO Is unshift slow?\n entries.unshift({\n key: key,\n value: value\n });\n\n if (entries.length > maxSize) {\n entries.pop();\n }\n }\n }\n\n function getEntries() {\n return entries;\n }\n\n function clear() {\n entries = [];\n }\n\n return {\n get: get,\n put: put,\n getEntries: getEntries,\n clear: clear\n };\n}\n\nexport var defaultEqualityCheck = function defaultEqualityCheck(a, b) {\n return a === b;\n};\nexport function createCacheKeyComparator(equalityCheck) {\n return function areArgumentsShallowlyEqual(prev, next) {\n if (prev === null || next === null || prev.length !== next.length) {\n return false;\n } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.\n\n\n var length = prev.length;\n\n for (var i = 0; i < length; i++) {\n if (!equalityCheck(prev[i], next[i])) {\n return false;\n }\n }\n\n return true;\n };\n}\n// defaultMemoize now supports a configurable cache size with LRU behavior,\n// and optional comparison of the result value with existing values\nexport function defaultMemoize(func, equalityCheckOrOptions) {\n var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {\n equalityCheck: equalityCheckOrOptions\n };\n var _providedOptions$equa = providedOptions.equalityCheck,\n equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,\n _providedOptions$maxS = providedOptions.maxSize,\n maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,\n resultEqualityCheck = providedOptions.resultEqualityCheck;\n var comparator = createCacheKeyComparator(equalityCheck);\n var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons\n\n function memoized() {\n var value = cache.get(arguments);\n\n if (value === NOT_FOUND) {\n // @ts-ignore\n value = func.apply(null, arguments);\n\n if (resultEqualityCheck) {\n var entries = cache.getEntries();\n var matchingEntry = entries.find(function (entry) {\n return resultEqualityCheck(entry.value, value);\n });\n\n if (matchingEntry) {\n value = matchingEntry.value;\n }\n }\n\n cache.put(arguments, value);\n }\n\n return value;\n }\n\n memoized.clearCache = function () {\n return cache.clear();\n };\n\n return memoized;\n}","import { defaultMemoize, defaultEqualityCheck } from './defaultMemoize';\nexport { defaultMemoize, defaultEqualityCheck };\n\nfunction getDependencies(funcs) {\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;\n\n if (!dependencies.every(function (dep) {\n return typeof dep === 'function';\n })) {\n var dependencyTypes = dependencies.map(function (dep) {\n return typeof dep === 'function' ? \"function \" + (dep.name || 'unnamed') + \"()\" : typeof dep;\n }).join(', ');\n throw new Error(\"createSelector expects all input-selectors to be functions, but received the following types: [\" + dependencyTypes + \"]\");\n }\n\n return dependencies;\n}\n\nexport function createSelectorCreator(memoize) {\n for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n memoizeOptionsFromArgs[_key - 1] = arguments[_key];\n }\n\n var createSelector = function createSelector() {\n for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n funcs[_key2] = arguments[_key2];\n }\n\n var _recomputations = 0;\n\n var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.\n // So, start by declaring the default value here.\n // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)\n\n\n var directlyPassedOptions = {\n memoizeOptions: undefined\n }; // Normally, the result func or \"output selector\" is the last arg\n\n var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object\n\n if (typeof resultFunc === 'object') {\n directlyPassedOptions = resultFunc; // and pop the real result func off\n\n resultFunc = funcs.pop();\n }\n\n if (typeof resultFunc !== 'function') {\n throw new Error(\"createSelector expects an output function after the inputs, but received: [\" + typeof resultFunc + \"]\");\n } // Determine which set of options we're using. Prefer options passed directly,\n // but fall back to options given to createSelectorCreator.\n\n\n var _directlyPassedOption = directlyPassedOptions,\n _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,\n memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer\n // is an array. In most libs I've looked at, it's an equality function or options object.\n // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full\n // user-provided array of options. Otherwise, it must be just the _first_ arg, and so\n // we wrap it in an array so we can apply it.\n\n var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];\n var dependencies = getDependencies(funcs);\n var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {\n _recomputations++; // apply arguments instead of spreading for performance.\n\n return resultFunc.apply(null, arguments);\n }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.\n\n var selector = memoize(function dependenciesChecker() {\n var params = [];\n var length = dependencies.length;\n\n for (var i = 0; i < length; i++) {\n // apply arguments instead of spreading and mutate a local list of params for performance.\n // @ts-ignore\n params.push(dependencies[i].apply(null, arguments));\n } // apply arguments instead of spreading for performance.\n\n\n _lastResult = memoizedResultFunc.apply(null, params);\n return _lastResult;\n });\n Object.assign(selector, {\n resultFunc: resultFunc,\n memoizedResultFunc: memoizedResultFunc,\n dependencies: dependencies,\n lastResult: function lastResult() {\n return _lastResult;\n },\n recomputations: function recomputations() {\n return _recomputations;\n },\n resetRecomputations: function resetRecomputations() {\n return _recomputations = 0;\n }\n });\n return selector;\n }; // @ts-ignore\n\n\n return createSelector;\n}\nexport var createSelector = /* #__PURE__ */createSelectorCreator(defaultMemoize);\n// Manual definition of state and output arguments\nexport var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {\n if (selectorCreator === void 0) {\n selectorCreator = createSelector;\n }\n\n if (typeof selectors !== 'object') {\n throw new Error('createStructuredSelector expects first argument to be an object ' + (\"where each property is a selector, instead received a \" + typeof selectors));\n }\n\n var objectKeys = Object.keys(selectors);\n var resultSelector = selectorCreator( // @ts-ignore\n objectKeys.map(function (key) {\n return selectors[key];\n }), function () {\n for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n values[_key3] = arguments[_key3];\n }\n\n return values.reduce(function (composition, value, index) {\n composition[objectKeys[index]] = value;\n return composition;\n }, {});\n });\n return resultSelector;\n};","/** A function that accepts a potential \"extra argument\" value to be injected later,\r\n * and returns an instance of the thunk middleware that uses that value\r\n */\nfunction createThunkMiddleware(extraArgument) {\n // Standard Redux middleware definition pattern:\n // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware\n var middleware = function middleware(_ref) {\n var dispatch = _ref.dispatch,\n getState = _ref.getState;\n return function (next) {\n return function (action) {\n // The thunk middleware looks for any functions that were passed to `store.dispatch`.\n // If this \"action\" is really a function, call it and return the result.\n if (typeof action === 'function') {\n // Inject the store's `dispatch` and `getState` methods, as well as any \"extra arg\"\n return action(dispatch, getState, extraArgument);\n } // Otherwise, pass the action down the middleware chain as usual\n\n\n return next(action);\n };\n };\n };\n\n return middleware;\n}\n\nvar thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version\n// with whatever \"extra arg\" they want to inject into their thunks\n\nthunk.withExtraArgument = createThunkMiddleware;\nexport default thunk;","var __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n};\r\nvar __defProp = Object.defineProperty;\r\nvar __defProps = Object.defineProperties;\r\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\r\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\r\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\r\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\r\nvar __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };\r\nvar __spreadValues = function (a, b) {\r\n for (var prop in b || (b = {}))\r\n if (__hasOwnProp.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n if (__getOwnPropSymbols)\r\n for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {\r\n var prop = _c[_i];\r\n if (__propIsEnum.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n }\r\n return a;\r\n};\r\nvar __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };\r\nvar __async = function (__this, __arguments, generator) {\r\n return new Promise(function (resolve, reject) {\r\n var fulfilled = function (value) {\r\n try {\r\n step(generator.next(value));\r\n }\r\n catch (e) {\r\n reject(e);\r\n }\r\n };\r\n var rejected = function (value) {\r\n try {\r\n step(generator.throw(value));\r\n }\r\n catch (e) {\r\n reject(e);\r\n }\r\n };\r\n var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };\r\n step((generator = generator.apply(__this, __arguments)).next());\r\n });\r\n};\r\n// src/index.ts\r\nimport { enableES5 } from \"immer\";\r\nexport * from \"redux\";\r\nimport { default as default2, current as current2, freeze, original, isDraft as isDraft4 } from \"immer\";\r\nimport { createSelector as createSelector2 } from \"reselect\";\r\n// src/createDraftSafeSelector.ts\r\nimport { current, isDraft } from \"immer\";\r\nimport { createSelector } from \"reselect\";\r\nvar createDraftSafeSelector = function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var selector = createSelector.apply(void 0, args);\r\n var wrappedSelector = function (value) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return selector.apply(void 0, __spreadArray([isDraft(value) ? current(value) : value], rest));\r\n };\r\n return wrappedSelector;\r\n};\r\n// src/configureStore.ts\r\nimport { createStore, compose as compose2, applyMiddleware, combineReducers } from \"redux\";\r\n// src/devtoolsExtension.ts\r\nimport { compose } from \"redux\";\r\nvar composeWithDevTools = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {\r\n if (arguments.length === 0)\r\n return void 0;\r\n if (typeof arguments[0] === \"object\")\r\n return compose;\r\n return compose.apply(null, arguments);\r\n};\r\nvar devToolsEnhancer = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {\r\n return function (noop2) {\r\n return noop2;\r\n };\r\n};\r\n// src/isPlainObject.ts\r\nfunction isPlainObject(value) {\r\n if (typeof value !== \"object\" || value === null)\r\n return false;\r\n var proto = Object.getPrototypeOf(value);\r\n if (proto === null)\r\n return true;\r\n var baseProto = proto;\r\n while (Object.getPrototypeOf(baseProto) !== null) {\r\n baseProto = Object.getPrototypeOf(baseProto);\r\n }\r\n return proto === baseProto;\r\n}\r\n// src/getDefaultMiddleware.ts\r\nimport thunkMiddleware from \"redux-thunk\";\r\n// src/utils.ts\r\nimport createNextState, { isDraftable } from \"immer\";\r\nfunction getTimeMeasureUtils(maxDelay, fnName) {\r\n var elapsed = 0;\r\n return {\r\n measureTime: function (fn) {\r\n var started = Date.now();\r\n try {\r\n return fn();\r\n }\r\n finally {\r\n var finished = Date.now();\r\n elapsed += finished - started;\r\n }\r\n },\r\n warnIfExceeded: function () {\r\n if (elapsed > maxDelay) {\r\n console.warn(fnName + \" took \" + elapsed + \"ms, which is more than the warning threshold of \" + maxDelay + \"ms. \\nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\\nIt is disabled in production builds, so you don't need to worry about that.\");\r\n }\r\n }\r\n };\r\n}\r\nvar MiddlewareArray = /** @class */ (function (_super) {\r\n __extends(MiddlewareArray, _super);\r\n function MiddlewareArray() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var _this = _super.apply(this, args) || this;\r\n Object.setPrototypeOf(_this, MiddlewareArray.prototype);\r\n return _this;\r\n }\r\n Object.defineProperty(MiddlewareArray, Symbol.species, {\r\n get: function () {\r\n return MiddlewareArray;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n MiddlewareArray.prototype.concat = function () {\r\n var arr = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n arr[_i] = arguments[_i];\r\n }\r\n return _super.prototype.concat.apply(this, arr);\r\n };\r\n MiddlewareArray.prototype.prepend = function () {\r\n var arr = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n arr[_i] = arguments[_i];\r\n }\r\n if (arr.length === 1 && Array.isArray(arr[0])) {\r\n return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();\r\n }\r\n return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();\r\n };\r\n return MiddlewareArray;\r\n}(Array));\r\nfunction freezeDraftable(val) {\r\n return isDraftable(val) ? createNextState(val, function () {\r\n }) : val;\r\n}\r\n// src/immutableStateInvariantMiddleware.ts\r\nvar isProduction = process.env.NODE_ENV === \"production\";\r\nvar prefix = \"Invariant failed\";\r\nfunction invariant(condition, message) {\r\n if (condition) {\r\n return;\r\n }\r\n if (isProduction) {\r\n throw new Error(prefix);\r\n }\r\n throw new Error(prefix + \": \" + (message || \"\"));\r\n}\r\nfunction stringify(obj, serializer, indent, decycler) {\r\n return JSON.stringify(obj, getSerialize(serializer, decycler), indent);\r\n}\r\nfunction getSerialize(serializer, decycler) {\r\n var stack = [], keys = [];\r\n if (!decycler)\r\n decycler = function (_, value) {\r\n if (stack[0] === value)\r\n return \"[Circular ~]\";\r\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\";\r\n };\r\n return function (key, value) {\r\n if (stack.length > 0) {\r\n var thisPos = stack.indexOf(this);\r\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);\r\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);\r\n if (~stack.indexOf(value))\r\n value = decycler.call(this, key, value);\r\n }\r\n else\r\n stack.push(value);\r\n return serializer == null ? value : serializer.call(this, key, value);\r\n };\r\n}\r\nfunction isImmutableDefault(value) {\r\n return typeof value !== \"object\" || value == null || Object.isFrozen(value);\r\n}\r\nfunction trackForMutations(isImmutable, ignorePaths, obj) {\r\n var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);\r\n return {\r\n detectMutations: function () {\r\n return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);\r\n }\r\n };\r\n}\r\nfunction trackProperties(isImmutable, ignorePaths, obj, path) {\r\n if (ignorePaths === void 0) { ignorePaths = []; }\r\n if (path === void 0) { path = \"\"; }\r\n var tracked = { value: obj };\r\n if (!isImmutable(obj)) {\r\n tracked.children = {};\r\n for (var key in obj) {\r\n var childPath = path ? path + \".\" + key : key;\r\n if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {\r\n continue;\r\n }\r\n tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);\r\n }\r\n }\r\n return tracked;\r\n}\r\nfunction detectMutations(isImmutable, ignorePaths, trackedProperty, obj, sameParentRef, path) {\r\n if (ignorePaths === void 0) { ignorePaths = []; }\r\n if (sameParentRef === void 0) { sameParentRef = false; }\r\n if (path === void 0) { path = \"\"; }\r\n var prevObj = trackedProperty ? trackedProperty.value : void 0;\r\n var sameRef = prevObj === obj;\r\n if (sameParentRef && !sameRef && !Number.isNaN(obj)) {\r\n return { wasMutated: true, path: path };\r\n }\r\n if (isImmutable(prevObj) || isImmutable(obj)) {\r\n return { wasMutated: false };\r\n }\r\n var keysToDetect = {};\r\n for (var key in trackedProperty.children) {\r\n keysToDetect[key] = true;\r\n }\r\n for (var key in obj) {\r\n keysToDetect[key] = true;\r\n }\r\n for (var key in keysToDetect) {\r\n var childPath = path ? path + \".\" + key : key;\r\n if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {\r\n continue;\r\n }\r\n var result = detectMutations(isImmutable, ignorePaths, trackedProperty.children[key], obj[key], sameRef, childPath);\r\n if (result.wasMutated) {\r\n return result;\r\n }\r\n }\r\n return { wasMutated: false };\r\n}\r\nfunction createImmutableStateInvariantMiddleware(options) {\r\n if (options === void 0) { options = {}; }\r\n if (process.env.NODE_ENV === \"production\") {\r\n return function () { return function (next) { return function (action) { return next(action); }; }; };\r\n }\r\n var _c = options.isImmutable, isImmutable = _c === void 0 ? isImmutableDefault : _c, ignoredPaths = options.ignoredPaths, _d = options.warnAfter, warnAfter = _d === void 0 ? 32 : _d, ignore = options.ignore;\r\n ignoredPaths = ignoredPaths || ignore;\r\n var track = trackForMutations.bind(null, isImmutable, ignoredPaths);\r\n return function (_c) {\r\n var getState = _c.getState;\r\n var state = getState();\r\n var tracker = track(state);\r\n var result;\r\n return function (next) { return function (action) {\r\n var measureUtils = getTimeMeasureUtils(warnAfter, \"ImmutableStateInvariantMiddleware\");\r\n measureUtils.measureTime(function () {\r\n state = getState();\r\n result = tracker.detectMutations();\r\n tracker = track(state);\r\n invariant(!result.wasMutated, \"A state mutation was detected between dispatches, in the path '\" + (result.path || \"\") + \"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)\");\r\n });\r\n var dispatchedAction = next(action);\r\n measureUtils.measureTime(function () {\r\n state = getState();\r\n result = tracker.detectMutations();\r\n tracker = track(state);\r\n result.wasMutated && invariant(!result.wasMutated, \"A state mutation was detected inside a dispatch, in the path: \" + (result.path || \"\") + \". Take a look at the reducer(s) handling the action \" + stringify(action) + \". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)\");\r\n });\r\n measureUtils.warnIfExceeded();\r\n return dispatchedAction;\r\n }; };\r\n };\r\n}\r\n// src/serializableStateInvariantMiddleware.ts\r\nfunction isPlain(val) {\r\n var type = typeof val;\r\n return val == null || type === \"string\" || type === \"boolean\" || type === \"number\" || Array.isArray(val) || isPlainObject(val);\r\n}\r\nfunction findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths) {\r\n if (path === void 0) { path = \"\"; }\r\n if (isSerializable === void 0) { isSerializable = isPlain; }\r\n if (ignoredPaths === void 0) { ignoredPaths = []; }\r\n var foundNestedSerializable;\r\n if (!isSerializable(value)) {\r\n return {\r\n keyPath: path || \"\",\r\n value: value\r\n };\r\n }\r\n if (typeof value !== \"object\" || value === null) {\r\n return false;\r\n }\r\n var entries = getEntries != null ? getEntries(value) : Object.entries(value);\r\n var hasIgnoredPaths = ignoredPaths.length > 0;\r\n for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {\r\n var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];\r\n var nestedPath = path ? path + \".\" + key : key;\r\n if (hasIgnoredPaths && ignoredPaths.indexOf(nestedPath) >= 0) {\r\n continue;\r\n }\r\n if (!isSerializable(nestedValue)) {\r\n return {\r\n keyPath: nestedPath,\r\n value: nestedValue\r\n };\r\n }\r\n if (typeof nestedValue === \"object\") {\r\n foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths);\r\n if (foundNestedSerializable) {\r\n return foundNestedSerializable;\r\n }\r\n }\r\n }\r\n return false;\r\n}\r\nfunction createSerializableStateInvariantMiddleware(options) {\r\n if (options === void 0) { options = {}; }\r\n if (process.env.NODE_ENV === \"production\") {\r\n return function () { return function (next) { return function (action) { return next(action); }; }; };\r\n }\r\n var _c = options.isSerializable, isSerializable = _c === void 0 ? isPlain : _c, getEntries = options.getEntries, _d = options.ignoredActions, ignoredActions = _d === void 0 ? [] : _d, _e = options.ignoredActionPaths, ignoredActionPaths = _e === void 0 ? [\"meta.arg\", \"meta.baseQueryMeta\"] : _e, _f = options.ignoredPaths, ignoredPaths = _f === void 0 ? [] : _f, _g = options.warnAfter, warnAfter = _g === void 0 ? 32 : _g, _h = options.ignoreState, ignoreState = _h === void 0 ? false : _h, _j = options.ignoreActions, ignoreActions = _j === void 0 ? false : _j;\r\n return function (storeAPI) { return function (next) { return function (action) {\r\n var result = next(action);\r\n var measureUtils = getTimeMeasureUtils(warnAfter, \"SerializableStateInvariantMiddleware\");\r\n if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {\r\n measureUtils.measureTime(function () {\r\n var foundActionNonSerializableValue = findNonSerializableValue(action, \"\", isSerializable, getEntries, ignoredActionPaths);\r\n if (foundActionNonSerializableValue) {\r\n var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;\r\n console.error(\"A non-serializable value was detected in an action, in the path: `\" + keyPath + \"`. Value:\", value, \"\\nTake a look at the logic that dispatched this action: \", action, \"\\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)\", \"\\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)\");\r\n }\r\n });\r\n }\r\n if (!ignoreState) {\r\n measureUtils.measureTime(function () {\r\n var state = storeAPI.getState();\r\n var foundStateNonSerializableValue = findNonSerializableValue(state, \"\", isSerializable, getEntries, ignoredPaths);\r\n if (foundStateNonSerializableValue) {\r\n var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;\r\n console.error(\"A non-serializable value was detected in the state, in the path: `\" + keyPath + \"`. Value:\", value, \"\\nTake a look at the reducer(s) handling this action type: \" + action.type + \".\\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)\");\r\n }\r\n });\r\n measureUtils.warnIfExceeded();\r\n }\r\n return result;\r\n }; }; };\r\n}\r\n// src/getDefaultMiddleware.ts\r\nfunction isBoolean(x) {\r\n return typeof x === \"boolean\";\r\n}\r\nfunction curryGetDefaultMiddleware() {\r\n return function curriedGetDefaultMiddleware(options) {\r\n return getDefaultMiddleware(options);\r\n };\r\n}\r\nfunction getDefaultMiddleware(options) {\r\n if (options === void 0) { options = {}; }\r\n var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e;\r\n var middlewareArray = new MiddlewareArray();\r\n if (thunk) {\r\n if (isBoolean(thunk)) {\r\n middlewareArray.push(thunkMiddleware);\r\n }\r\n else {\r\n middlewareArray.push(thunkMiddleware.withExtraArgument(thunk.extraArgument));\r\n }\r\n }\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (immutableCheck) {\r\n var immutableOptions = {};\r\n if (!isBoolean(immutableCheck)) {\r\n immutableOptions = immutableCheck;\r\n }\r\n middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));\r\n }\r\n if (serializableCheck) {\r\n var serializableOptions = {};\r\n if (!isBoolean(serializableCheck)) {\r\n serializableOptions = serializableCheck;\r\n }\r\n middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));\r\n }\r\n }\r\n return middlewareArray;\r\n}\r\n// src/configureStore.ts\r\nvar IS_PRODUCTION = process.env.NODE_ENV === \"production\";\r\nfunction configureStore(options) {\r\n var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();\r\n var _c = options || {}, _d = _c.reducer, reducer = _d === void 0 ? void 0 : _d, _e = _c.middleware, middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e, _f = _c.devTools, devTools = _f === void 0 ? true : _f, _g = _c.preloadedState, preloadedState = _g === void 0 ? void 0 : _g, _h = _c.enhancers, enhancers = _h === void 0 ? void 0 : _h;\r\n var rootReducer;\r\n if (typeof reducer === \"function\") {\r\n rootReducer = reducer;\r\n }\r\n else if (isPlainObject(reducer)) {\r\n rootReducer = combineReducers(reducer);\r\n }\r\n else {\r\n throw new Error('\"reducer\" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');\r\n }\r\n var finalMiddleware = middleware;\r\n if (typeof finalMiddleware === \"function\") {\r\n finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);\r\n if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {\r\n throw new Error(\"when using a middleware builder function, an array of middleware must be returned\");\r\n }\r\n }\r\n if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== \"function\"; })) {\r\n throw new Error(\"each middleware provided to configureStore must be a function\");\r\n }\r\n var middlewareEnhancer = applyMiddleware.apply(void 0, finalMiddleware);\r\n var finalCompose = compose2;\r\n if (devTools) {\r\n finalCompose = composeWithDevTools(__spreadValues({\r\n trace: !IS_PRODUCTION\r\n }, typeof devTools === \"object\" && devTools));\r\n }\r\n var storeEnhancers = [middlewareEnhancer];\r\n if (Array.isArray(enhancers)) {\r\n storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);\r\n }\r\n else if (typeof enhancers === \"function\") {\r\n storeEnhancers = enhancers(storeEnhancers);\r\n }\r\n var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);\r\n return createStore(rootReducer, preloadedState, composedEnhancer);\r\n}\r\n// src/createAction.ts\r\nfunction createAction(type, prepareAction) {\r\n function actionCreator() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n if (prepareAction) {\r\n var prepared = prepareAction.apply(void 0, args);\r\n if (!prepared) {\r\n throw new Error(\"prepareAction did not return an object\");\r\n }\r\n return __spreadValues(__spreadValues({\r\n type: type,\r\n payload: prepared.payload\r\n }, \"meta\" in prepared && { meta: prepared.meta }), \"error\" in prepared && { error: prepared.error });\r\n }\r\n return { type: type, payload: args[0] };\r\n }\r\n actionCreator.toString = function () { return \"\" + type; };\r\n actionCreator.type = type;\r\n actionCreator.match = function (action) { return action.type === type; };\r\n return actionCreator;\r\n}\r\nfunction isFSA(action) {\r\n return isPlainObject(action) && typeof action.type === \"string\" && Object.keys(action).every(isValidKey);\r\n}\r\nfunction isValidKey(key) {\r\n return [\"type\", \"payload\", \"error\", \"meta\"].indexOf(key) > -1;\r\n}\r\nfunction getType(actionCreator) {\r\n return \"\" + actionCreator;\r\n}\r\n// src/createReducer.ts\r\nimport createNextState2, { isDraft as isDraft2, isDraftable as isDraftable2 } from \"immer\";\r\n// src/mapBuilders.ts\r\nfunction executeReducerBuilderCallback(builderCallback) {\r\n var actionsMap = {};\r\n var actionMatchers = [];\r\n var defaultCaseReducer;\r\n var builder = {\r\n addCase: function (typeOrActionCreator, reducer) {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (actionMatchers.length > 0) {\r\n throw new Error(\"`builder.addCase` should only be called before calling `builder.addMatcher`\");\r\n }\r\n if (defaultCaseReducer) {\r\n throw new Error(\"`builder.addCase` should only be called before calling `builder.addDefaultCase`\");\r\n }\r\n }\r\n var type = typeof typeOrActionCreator === \"string\" ? typeOrActionCreator : typeOrActionCreator.type;\r\n if (type in actionsMap) {\r\n throw new Error(\"addCase cannot be called with two reducers for the same action type\");\r\n }\r\n actionsMap[type] = reducer;\r\n return builder;\r\n },\r\n addMatcher: function (matcher, reducer) {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (defaultCaseReducer) {\r\n throw new Error(\"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`\");\r\n }\r\n }\r\n actionMatchers.push({ matcher: matcher, reducer: reducer });\r\n return builder;\r\n },\r\n addDefaultCase: function (reducer) {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (defaultCaseReducer) {\r\n throw new Error(\"`builder.addDefaultCase` can only be called once\");\r\n }\r\n }\r\n defaultCaseReducer = reducer;\r\n return builder;\r\n }\r\n };\r\n builderCallback(builder);\r\n return [actionsMap, actionMatchers, defaultCaseReducer];\r\n}\r\n// src/createReducer.ts\r\nfunction isStateFunction(x) {\r\n return typeof x === \"function\";\r\n}\r\nvar hasWarnedAboutObjectNotation = false;\r\nfunction createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {\r\n if (actionMatchers === void 0) { actionMatchers = []; }\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (typeof mapOrBuilderCallback === \"object\") {\r\n if (!hasWarnedAboutObjectNotation) {\r\n hasWarnedAboutObjectNotation = true;\r\n console.warn(\"The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer\");\r\n }\r\n }\r\n }\r\n var _c = typeof mapOrBuilderCallback === \"function\" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];\r\n var getInitialState;\r\n if (isStateFunction(initialState)) {\r\n getInitialState = function () { return freezeDraftable(initialState()); };\r\n }\r\n else {\r\n var frozenInitialState_1 = freezeDraftable(initialState);\r\n getInitialState = function () { return frozenInitialState_1; };\r\n }\r\n function reducer(state, action) {\r\n if (state === void 0) { state = getInitialState(); }\r\n var caseReducers = __spreadArray([\r\n actionsMap[action.type]\r\n ], finalActionMatchers.filter(function (_c) {\r\n var matcher = _c.matcher;\r\n return matcher(action);\r\n }).map(function (_c) {\r\n var reducer2 = _c.reducer;\r\n return reducer2;\r\n }));\r\n if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {\r\n caseReducers = [finalDefaultCaseReducer];\r\n }\r\n return caseReducers.reduce(function (previousState, caseReducer) {\r\n if (caseReducer) {\r\n if (isDraft2(previousState)) {\r\n var draft = previousState;\r\n var result = caseReducer(draft, action);\r\n if (result === void 0) {\r\n return previousState;\r\n }\r\n return result;\r\n }\r\n else if (!isDraftable2(previousState)) {\r\n var result = caseReducer(previousState, action);\r\n if (result === void 0) {\r\n if (previousState === null) {\r\n return previousState;\r\n }\r\n throw Error(\"A case reducer on a non-draftable value must not return undefined\");\r\n }\r\n return result;\r\n }\r\n else {\r\n return createNextState2(previousState, function (draft) {\r\n return caseReducer(draft, action);\r\n });\r\n }\r\n }\r\n return previousState;\r\n }, state);\r\n }\r\n reducer.getInitialState = getInitialState;\r\n return reducer;\r\n}\r\n// src/createSlice.ts\r\nvar hasWarnedAboutObjectNotation2 = false;\r\nfunction getType2(slice, actionKey) {\r\n return slice + \"/\" + actionKey;\r\n}\r\nfunction createSlice(options) {\r\n var name = options.name;\r\n if (!name) {\r\n throw new Error(\"`name` is a required option for createSlice\");\r\n }\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\r\n if (options.initialState === void 0) {\r\n console.error(\"You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`\");\r\n }\r\n }\r\n var initialState = typeof options.initialState == \"function\" ? options.initialState : freezeDraftable(options.initialState);\r\n var reducers = options.reducers || {};\r\n var reducerNames = Object.keys(reducers);\r\n var sliceCaseReducersByName = {};\r\n var sliceCaseReducersByType = {};\r\n var actionCreators = {};\r\n reducerNames.forEach(function (reducerName) {\r\n var maybeReducerWithPrepare = reducers[reducerName];\r\n var type = getType2(name, reducerName);\r\n var caseReducer;\r\n var prepareCallback;\r\n if (\"reducer\" in maybeReducerWithPrepare) {\r\n caseReducer = maybeReducerWithPrepare.reducer;\r\n prepareCallback = maybeReducerWithPrepare.prepare;\r\n }\r\n else {\r\n caseReducer = maybeReducerWithPrepare;\r\n }\r\n sliceCaseReducersByName[reducerName] = caseReducer;\r\n sliceCaseReducersByType[type] = caseReducer;\r\n actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);\r\n });\r\n function buildReducer() {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (typeof options.extraReducers === \"object\") {\r\n if (!hasWarnedAboutObjectNotation2) {\r\n hasWarnedAboutObjectNotation2 = true;\r\n console.warn(\"The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice\");\r\n }\r\n }\r\n }\r\n var _c = typeof options.extraReducers === \"function\" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _d = _c[0], extraReducers = _d === void 0 ? {} : _d, _e = _c[1], actionMatchers = _e === void 0 ? [] : _e, _f = _c[2], defaultCaseReducer = _f === void 0 ? void 0 : _f;\r\n var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);\r\n return createReducer(initialState, function (builder) {\r\n for (var key in finalCaseReducers) {\r\n builder.addCase(key, finalCaseReducers[key]);\r\n }\r\n for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {\r\n var m = actionMatchers_1[_i];\r\n builder.addMatcher(m.matcher, m.reducer);\r\n }\r\n if (defaultCaseReducer) {\r\n builder.addDefaultCase(defaultCaseReducer);\r\n }\r\n });\r\n }\r\n var _reducer;\r\n return {\r\n name: name,\r\n reducer: function (state, action) {\r\n if (!_reducer)\r\n _reducer = buildReducer();\r\n return _reducer(state, action);\r\n },\r\n actions: actionCreators,\r\n caseReducers: sliceCaseReducersByName,\r\n getInitialState: function () {\r\n if (!_reducer)\r\n _reducer = buildReducer();\r\n return _reducer.getInitialState();\r\n }\r\n };\r\n}\r\n// src/entities/entity_state.ts\r\nfunction getInitialEntityState() {\r\n return {\r\n ids: [],\r\n entities: {}\r\n };\r\n}\r\nfunction createInitialStateFactory() {\r\n function getInitialState(additionalState) {\r\n if (additionalState === void 0) { additionalState = {}; }\r\n return Object.assign(getInitialEntityState(), additionalState);\r\n }\r\n return { getInitialState: getInitialState };\r\n}\r\n// src/entities/state_selectors.ts\r\nfunction createSelectorsFactory() {\r\n function getSelectors(selectState) {\r\n var selectIds = function (state) { return state.ids; };\r\n var selectEntities = function (state) { return state.entities; };\r\n var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });\r\n var selectId = function (_, id) { return id; };\r\n var selectById = function (entities, id) { return entities[id]; };\r\n var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });\r\n if (!selectState) {\r\n return {\r\n selectIds: selectIds,\r\n selectEntities: selectEntities,\r\n selectAll: selectAll,\r\n selectTotal: selectTotal,\r\n selectById: createDraftSafeSelector(selectEntities, selectId, selectById)\r\n };\r\n }\r\n var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);\r\n return {\r\n selectIds: createDraftSafeSelector(selectState, selectIds),\r\n selectEntities: selectGlobalizedEntities,\r\n selectAll: createDraftSafeSelector(selectState, selectAll),\r\n selectTotal: createDraftSafeSelector(selectState, selectTotal),\r\n selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)\r\n };\r\n }\r\n return { getSelectors: getSelectors };\r\n}\r\n// src/entities/state_adapter.ts\r\nimport createNextState3, { isDraft as isDraft3 } from \"immer\";\r\nfunction createSingleArgumentStateOperator(mutator) {\r\n var operator = createStateOperator(function (_, state) { return mutator(state); });\r\n return function operation(state) {\r\n return operator(state, void 0);\r\n };\r\n}\r\nfunction createStateOperator(mutator) {\r\n return function operation(state, arg) {\r\n function isPayloadActionArgument(arg2) {\r\n return isFSA(arg2);\r\n }\r\n var runMutator = function (draft) {\r\n if (isPayloadActionArgument(arg)) {\r\n mutator(arg.payload, draft);\r\n }\r\n else {\r\n mutator(arg, draft);\r\n }\r\n };\r\n if (isDraft3(state)) {\r\n runMutator(state);\r\n return state;\r\n }\r\n else {\r\n return createNextState3(state, runMutator);\r\n }\r\n };\r\n}\r\n// src/entities/utils.ts\r\nfunction selectIdValue(entity, selectId) {\r\n var key = selectId(entity);\r\n if (process.env.NODE_ENV !== \"production\" && key === void 0) {\r\n console.warn(\"The entity passed to the `selectId` implementation returned undefined.\", \"You should probably provide your own `selectId` implementation.\", \"The entity that was passed:\", entity, \"The `selectId` implementation:\", selectId.toString());\r\n }\r\n return key;\r\n}\r\nfunction ensureEntitiesArray(entities) {\r\n if (!Array.isArray(entities)) {\r\n entities = Object.values(entities);\r\n }\r\n return entities;\r\n}\r\nfunction splitAddedUpdatedEntities(newEntities, selectId, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n var added = [];\r\n var updated = [];\r\n for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {\r\n var entity = newEntities_1[_i];\r\n var id = selectIdValue(entity, selectId);\r\n if (id in state.entities) {\r\n updated.push({ id: id, changes: entity });\r\n }\r\n else {\r\n added.push(entity);\r\n }\r\n }\r\n return [added, updated];\r\n}\r\n// src/entities/unsorted_state_adapter.ts\r\nfunction createUnsortedStateAdapter(selectId) {\r\n function addOneMutably(entity, state) {\r\n var key = selectIdValue(entity, selectId);\r\n if (key in state.entities) {\r\n return;\r\n }\r\n state.ids.push(key);\r\n state.entities[key] = entity;\r\n }\r\n function addManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {\r\n var entity = newEntities_2[_i];\r\n addOneMutably(entity, state);\r\n }\r\n }\r\n function setOneMutably(entity, state) {\r\n var key = selectIdValue(entity, selectId);\r\n if (!(key in state.entities)) {\r\n state.ids.push(key);\r\n }\r\n state.entities[key] = entity;\r\n }\r\n function setManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {\r\n var entity = newEntities_3[_i];\r\n setOneMutably(entity, state);\r\n }\r\n }\r\n function setAllMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n state.ids = [];\r\n state.entities = {};\r\n addManyMutably(newEntities, state);\r\n }\r\n function removeOneMutably(key, state) {\r\n return removeManyMutably([key], state);\r\n }\r\n function removeManyMutably(keys, state) {\r\n var didMutate = false;\r\n keys.forEach(function (key) {\r\n if (key in state.entities) {\r\n delete state.entities[key];\r\n didMutate = true;\r\n }\r\n });\r\n if (didMutate) {\r\n state.ids = state.ids.filter(function (id) { return id in state.entities; });\r\n }\r\n }\r\n function removeAllMutably(state) {\r\n Object.assign(state, {\r\n ids: [],\r\n entities: {}\r\n });\r\n }\r\n function takeNewKey(keys, update, state) {\r\n var original2 = state.entities[update.id];\r\n var updated = Object.assign({}, original2, update.changes);\r\n var newKey = selectIdValue(updated, selectId);\r\n var hasNewKey = newKey !== update.id;\r\n if (hasNewKey) {\r\n keys[update.id] = newKey;\r\n delete state.entities[update.id];\r\n }\r\n state.entities[newKey] = updated;\r\n return hasNewKey;\r\n }\r\n function updateOneMutably(update, state) {\r\n return updateManyMutably([update], state);\r\n }\r\n function updateManyMutably(updates, state) {\r\n var newKeys = {};\r\n var updatesPerEntity = {};\r\n updates.forEach(function (update) {\r\n if (update.id in state.entities) {\r\n updatesPerEntity[update.id] = {\r\n id: update.id,\r\n changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)\r\n };\r\n }\r\n });\r\n updates = Object.values(updatesPerEntity);\r\n var didMutateEntities = updates.length > 0;\r\n if (didMutateEntities) {\r\n var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;\r\n if (didMutateIds) {\r\n state.ids = Object.keys(state.entities);\r\n }\r\n }\r\n }\r\n function upsertOneMutably(entity, state) {\r\n return upsertManyMutably([entity], state);\r\n }\r\n function upsertManyMutably(newEntities, state) {\r\n var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];\r\n updateManyMutably(updated, state);\r\n addManyMutably(added, state);\r\n }\r\n return {\r\n removeAll: createSingleArgumentStateOperator(removeAllMutably),\r\n addOne: createStateOperator(addOneMutably),\r\n addMany: createStateOperator(addManyMutably),\r\n setOne: createStateOperator(setOneMutably),\r\n setMany: createStateOperator(setManyMutably),\r\n setAll: createStateOperator(setAllMutably),\r\n updateOne: createStateOperator(updateOneMutably),\r\n updateMany: createStateOperator(updateManyMutably),\r\n upsertOne: createStateOperator(upsertOneMutably),\r\n upsertMany: createStateOperator(upsertManyMutably),\r\n removeOne: createStateOperator(removeOneMutably),\r\n removeMany: createStateOperator(removeManyMutably)\r\n };\r\n}\r\n// src/entities/sorted_state_adapter.ts\r\nfunction createSortedStateAdapter(selectId, sort) {\r\n var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;\r\n function addOneMutably(entity, state) {\r\n return addManyMutably([entity], state);\r\n }\r\n function addManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });\r\n if (models.length !== 0) {\r\n merge(models, state);\r\n }\r\n }\r\n function setOneMutably(entity, state) {\r\n return setManyMutably([entity], state);\r\n }\r\n function setManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n if (newEntities.length !== 0) {\r\n merge(newEntities, state);\r\n }\r\n }\r\n function setAllMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n state.entities = {};\r\n state.ids = [];\r\n addManyMutably(newEntities, state);\r\n }\r\n function updateOneMutably(update, state) {\r\n return updateManyMutably([update], state);\r\n }\r\n function updateManyMutably(updates, state) {\r\n var appliedUpdates = false;\r\n for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {\r\n var update = updates_1[_i];\r\n var entity = state.entities[update.id];\r\n if (!entity) {\r\n continue;\r\n }\r\n appliedUpdates = true;\r\n Object.assign(entity, update.changes);\r\n var newId = selectId(entity);\r\n if (update.id !== newId) {\r\n delete state.entities[update.id];\r\n state.entities[newId] = entity;\r\n }\r\n }\r\n if (appliedUpdates) {\r\n resortEntities(state);\r\n }\r\n }\r\n function upsertOneMutably(entity, state) {\r\n return upsertManyMutably([entity], state);\r\n }\r\n function upsertManyMutably(newEntities, state) {\r\n var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];\r\n updateManyMutably(updated, state);\r\n addManyMutably(added, state);\r\n }\r\n function areArraysEqual(a, b) {\r\n if (a.length !== b.length) {\r\n return false;\r\n }\r\n for (var i = 0; i < a.length && i < b.length; i++) {\r\n if (a[i] === b[i]) {\r\n continue;\r\n }\r\n return false;\r\n }\r\n return true;\r\n }\r\n function merge(models, state) {\r\n models.forEach(function (model) {\r\n state.entities[selectId(model)] = model;\r\n });\r\n resortEntities(state);\r\n }\r\n function resortEntities(state) {\r\n var allEntities = Object.values(state.entities);\r\n allEntities.sort(sort);\r\n var newSortedIds = allEntities.map(selectId);\r\n var ids = state.ids;\r\n if (!areArraysEqual(ids, newSortedIds)) {\r\n state.ids = newSortedIds;\r\n }\r\n }\r\n return {\r\n removeOne: removeOne,\r\n removeMany: removeMany,\r\n removeAll: removeAll,\r\n addOne: createStateOperator(addOneMutably),\r\n updateOne: createStateOperator(updateOneMutably),\r\n upsertOne: createStateOperator(upsertOneMutably),\r\n setOne: createStateOperator(setOneMutably),\r\n setMany: createStateOperator(setManyMutably),\r\n setAll: createStateOperator(setAllMutably),\r\n addMany: createStateOperator(addManyMutably),\r\n updateMany: createStateOperator(updateManyMutably),\r\n upsertMany: createStateOperator(upsertManyMutably)\r\n };\r\n}\r\n// src/entities/create_adapter.ts\r\nfunction createEntityAdapter(options) {\r\n if (options === void 0) { options = {}; }\r\n var _c = __spreadValues({\r\n sortComparer: false,\r\n selectId: function (instance) { return instance.id; }\r\n }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;\r\n var stateFactory = createInitialStateFactory();\r\n var selectorsFactory = createSelectorsFactory();\r\n var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);\r\n return __spreadValues(__spreadValues(__spreadValues({\r\n selectId: selectId,\r\n sortComparer: sortComparer\r\n }, stateFactory), selectorsFactory), stateAdapter);\r\n}\r\n// src/nanoid.ts\r\nvar urlAlphabet = \"ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW\";\r\nvar nanoid = function (size) {\r\n if (size === void 0) { size = 21; }\r\n var id = \"\";\r\n var i = size;\r\n while (i--) {\r\n id += urlAlphabet[Math.random() * 64 | 0];\r\n }\r\n return id;\r\n};\r\n// src/createAsyncThunk.ts\r\nvar commonProperties = [\r\n \"name\",\r\n \"message\",\r\n \"stack\",\r\n \"code\"\r\n];\r\nvar RejectWithValue = /** @class */ (function () {\r\n function RejectWithValue(payload, meta) {\r\n this.payload = payload;\r\n this.meta = meta;\r\n }\r\n return RejectWithValue;\r\n}());\r\nvar FulfillWithMeta = /** @class */ (function () {\r\n function FulfillWithMeta(payload, meta) {\r\n this.payload = payload;\r\n this.meta = meta;\r\n }\r\n return FulfillWithMeta;\r\n}());\r\nvar miniSerializeError = function (value) {\r\n if (typeof value === \"object\" && value !== null) {\r\n var simpleError = {};\r\n for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {\r\n var property = commonProperties_1[_i];\r\n if (typeof value[property] === \"string\") {\r\n simpleError[property] = value[property];\r\n }\r\n }\r\n return simpleError;\r\n }\r\n return { message: String(value) };\r\n};\r\nvar createAsyncThunk = (function () {\r\n function createAsyncThunk2(typePrefix, payloadCreator, options) {\r\n var fulfilled = createAction(typePrefix + \"/fulfilled\", function (payload, requestId, arg, meta) { return ({\r\n payload: payload,\r\n meta: __spreadProps(__spreadValues({}, meta || {}), {\r\n arg: arg,\r\n requestId: requestId,\r\n requestStatus: \"fulfilled\"\r\n })\r\n }); });\r\n var pending = createAction(typePrefix + \"/pending\", function (requestId, arg, meta) { return ({\r\n payload: void 0,\r\n meta: __spreadProps(__spreadValues({}, meta || {}), {\r\n arg: arg,\r\n requestId: requestId,\r\n requestStatus: \"pending\"\r\n })\r\n }); });\r\n var rejected = createAction(typePrefix + \"/rejected\", function (error, requestId, arg, payload, meta) { return ({\r\n payload: payload,\r\n error: (options && options.serializeError || miniSerializeError)(error || \"Rejected\"),\r\n meta: __spreadProps(__spreadValues({}, meta || {}), {\r\n arg: arg,\r\n requestId: requestId,\r\n rejectedWithValue: !!payload,\r\n requestStatus: \"rejected\",\r\n aborted: (error == null ? void 0 : error.name) === \"AbortError\",\r\n condition: (error == null ? void 0 : error.name) === \"ConditionError\"\r\n })\r\n }); });\r\n var displayedWarning = false;\r\n var AC = typeof AbortController !== \"undefined\" ? AbortController : /** @class */ (function () {\r\n function class_1() {\r\n this.signal = {\r\n aborted: false,\r\n addEventListener: function () {\r\n },\r\n dispatchEvent: function () {\r\n return false;\r\n },\r\n onabort: function () {\r\n },\r\n removeEventListener: function () {\r\n },\r\n reason: void 0,\r\n throwIfAborted: function () {\r\n }\r\n };\r\n }\r\n class_1.prototype.abort = function () {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (!displayedWarning) {\r\n displayedWarning = true;\r\n console.info(\"This platform does not implement AbortController. \\nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.\");\r\n }\r\n }\r\n };\r\n return class_1;\r\n }());\r\n function actionCreator(arg) {\r\n return function (dispatch, getState, extra) {\r\n var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();\r\n var abortController = new AC();\r\n var abortReason;\r\n var started = false;\r\n function abort(reason) {\r\n abortReason = reason;\r\n abortController.abort();\r\n }\r\n var promise2 = function () {\r\n return __async(this, null, function () {\r\n var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n _c.trys.push([0, 4, , 5]);\r\n conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });\r\n if (!isThenable(conditionResult)) return [3 /*break*/, 2];\r\n return [4 /*yield*/, conditionResult];\r\n case 1:\r\n conditionResult = _c.sent();\r\n _c.label = 2;\r\n case 2:\r\n if (conditionResult === false || abortController.signal.aborted) {\r\n throw {\r\n name: \"ConditionError\",\r\n message: \"Aborted due to condition callback returning false.\"\r\n };\r\n }\r\n started = true;\r\n abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener(\"abort\", function () { return reject({\r\n name: \"AbortError\",\r\n message: abortReason || \"Aborted\"\r\n }); }); });\r\n dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra })));\r\n return [4 /*yield*/, Promise.race([\r\n abortedPromise,\r\n Promise.resolve(payloadCreator(arg, {\r\n dispatch: dispatch,\r\n getState: getState,\r\n extra: extra,\r\n requestId: requestId,\r\n signal: abortController.signal,\r\n abort: abort,\r\n rejectWithValue: function (value, meta) {\r\n return new RejectWithValue(value, meta);\r\n },\r\n fulfillWithValue: function (value, meta) {\r\n return new FulfillWithMeta(value, meta);\r\n }\r\n })).then(function (result) {\r\n if (result instanceof RejectWithValue) {\r\n throw result;\r\n }\r\n if (result instanceof FulfillWithMeta) {\r\n return fulfilled(result.payload, requestId, arg, result.meta);\r\n }\r\n return fulfilled(result, requestId, arg);\r\n })\r\n ])];\r\n case 3:\r\n finalAction = _c.sent();\r\n return [3 /*break*/, 5];\r\n case 4:\r\n err_1 = _c.sent();\r\n finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);\r\n return [3 /*break*/, 5];\r\n case 5:\r\n skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;\r\n if (!skipDispatch) {\r\n dispatch(finalAction);\r\n }\r\n return [2 /*return*/, finalAction];\r\n }\r\n });\r\n });\r\n }();\r\n return Object.assign(promise2, {\r\n abort: abort,\r\n requestId: requestId,\r\n arg: arg,\r\n unwrap: function () {\r\n return promise2.then(unwrapResult);\r\n }\r\n });\r\n };\r\n }\r\n return Object.assign(actionCreator, {\r\n pending: pending,\r\n rejected: rejected,\r\n fulfilled: fulfilled,\r\n typePrefix: typePrefix\r\n });\r\n }\r\n createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };\r\n return createAsyncThunk2;\r\n})();\r\nfunction unwrapResult(action) {\r\n if (action.meta && action.meta.rejectedWithValue) {\r\n throw action.payload;\r\n }\r\n if (action.error) {\r\n throw action.error;\r\n }\r\n return action.payload;\r\n}\r\nfunction isThenable(value) {\r\n return value !== null && typeof value === \"object\" && typeof value.then === \"function\";\r\n}\r\n// src/tsHelpers.ts\r\nvar hasMatchFunction = function (v) {\r\n return v && typeof v.match === \"function\";\r\n};\r\n// src/matchers.ts\r\nvar matches = function (matcher, action) {\r\n if (hasMatchFunction(matcher)) {\r\n return matcher.match(action);\r\n }\r\n else {\r\n return matcher(action);\r\n }\r\n};\r\nfunction isAnyOf() {\r\n var matchers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n matchers[_i] = arguments[_i];\r\n }\r\n return function (action) {\r\n return matchers.some(function (matcher) { return matches(matcher, action); });\r\n };\r\n}\r\nfunction isAllOf() {\r\n var matchers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n matchers[_i] = arguments[_i];\r\n }\r\n return function (action) {\r\n return matchers.every(function (matcher) { return matches(matcher, action); });\r\n };\r\n}\r\nfunction hasExpectedRequestMetadata(action, validStatus) {\r\n if (!action || !action.meta)\r\n return false;\r\n var hasValidRequestId = typeof action.meta.requestId === \"string\";\r\n var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;\r\n return hasValidRequestId && hasValidRequestStatus;\r\n}\r\nfunction isAsyncThunkArray(a) {\r\n return typeof a[0] === \"function\" && \"pending\" in a[0] && \"fulfilled\" in a[0] && \"rejected\" in a[0];\r\n}\r\nfunction isPending() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"pending\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isPending()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isRejected() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"rejected\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isRejected()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isRejectedWithValue() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n var hasFlag = function (action) {\r\n return action && action.meta && action.meta.rejectedWithValue;\r\n };\r\n if (asyncThunks.length === 0) {\r\n return function (action) {\r\n var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);\r\n return combinedMatcher(action);\r\n };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isRejectedWithValue()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isFulfilled() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"fulfilled\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isFulfilled()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isAsyncThunkAction() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"pending\", \"fulfilled\", \"rejected\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isAsyncThunkAction()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = [];\r\n for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {\r\n var asyncThunk = asyncThunks_1[_i];\r\n matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);\r\n }\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\n// src/listenerMiddleware/utils.ts\r\nvar assertFunction = function (func, expected) {\r\n if (typeof func !== \"function\") {\r\n throw new TypeError(expected + \" is not a function\");\r\n }\r\n};\r\nvar noop = function () {\r\n};\r\nvar catchRejection = function (promise2, onError) {\r\n if (onError === void 0) { onError = noop; }\r\n promise2.catch(onError);\r\n return promise2;\r\n};\r\nvar addAbortSignalListener = function (abortSignal, callback) {\r\n abortSignal.addEventListener(\"abort\", callback, { once: true });\r\n};\r\nvar abortControllerWithReason = function (abortController, reason) {\r\n var signal = abortController.signal;\r\n if (signal.aborted) {\r\n return;\r\n }\r\n if (!(\"reason\" in signal)) {\r\n Object.defineProperty(signal, \"reason\", {\r\n enumerable: true,\r\n value: reason,\r\n configurable: true,\r\n writable: true\r\n });\r\n }\r\n ;\r\n abortController.abort(reason);\r\n};\r\n// src/listenerMiddleware/exceptions.ts\r\nvar task = \"task\";\r\nvar listener = \"listener\";\r\nvar completed = \"completed\";\r\nvar cancelled = \"cancelled\";\r\nvar taskCancelled = \"task-\" + cancelled;\r\nvar taskCompleted = \"task-\" + completed;\r\nvar listenerCancelled = listener + \"-\" + cancelled;\r\nvar listenerCompleted = listener + \"-\" + completed;\r\nvar TaskAbortError = /** @class */ (function () {\r\n function TaskAbortError(code) {\r\n this.code = code;\r\n this.name = \"TaskAbortError\";\r\n this.message = task + \" \" + cancelled + \" (reason: \" + code + \")\";\r\n }\r\n return TaskAbortError;\r\n}());\r\n// src/listenerMiddleware/task.ts\r\nvar validateActive = function (signal) {\r\n if (signal.aborted) {\r\n throw new TaskAbortError(signal.reason);\r\n }\r\n};\r\nvar promisifyAbortSignal = function (signal) {\r\n return catchRejection(new Promise(function (_, reject) {\r\n var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };\r\n if (signal.aborted) {\r\n notifyRejection();\r\n }\r\n else {\r\n addAbortSignalListener(signal, notifyRejection);\r\n }\r\n }));\r\n};\r\nvar runTask = function (task2, cleanUp) { return __async(void 0, null, function () {\r\n var value, error_1;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n _c.trys.push([0, 3, 4, 5]);\r\n return [4 /*yield*/, Promise.resolve()];\r\n case 1:\r\n _c.sent();\r\n return [4 /*yield*/, task2()];\r\n case 2:\r\n value = _c.sent();\r\n return [2 /*return*/, {\r\n status: \"ok\",\r\n value: value\r\n }];\r\n case 3:\r\n error_1 = _c.sent();\r\n return [2 /*return*/, {\r\n status: error_1 instanceof TaskAbortError ? \"cancelled\" : \"rejected\",\r\n error: error_1\r\n }];\r\n case 4:\r\n cleanUp == null ? void 0 : cleanUp();\r\n return [7 /*endfinally*/];\r\n case 5: return [2 /*return*/];\r\n }\r\n });\r\n}); };\r\nvar createPause = function (signal) {\r\n return function (promise2) {\r\n return catchRejection(Promise.race([promisifyAbortSignal(signal), promise2]).then(function (output) {\r\n validateActive(signal);\r\n return output;\r\n }));\r\n };\r\n};\r\nvar createDelay = function (signal) {\r\n var pause = createPause(signal);\r\n return function (timeoutMs) {\r\n return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));\r\n };\r\n};\r\n// src/listenerMiddleware/index.ts\r\nvar assign = Object.assign;\r\nvar INTERNAL_NIL_TOKEN = {};\r\nvar alm = \"listenerMiddleware\";\r\nvar createFork = function (parentAbortSignal) {\r\n var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };\r\n return function (taskExecutor) {\r\n assertFunction(taskExecutor, \"taskExecutor\");\r\n var childAbortController = new AbortController();\r\n linkControllers(childAbortController);\r\n var result = runTask(function () { return __async(void 0, null, function () {\r\n var result2;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n validateActive(parentAbortSignal);\r\n validateActive(childAbortController.signal);\r\n return [4 /*yield*/, taskExecutor({\r\n pause: createPause(childAbortController.signal),\r\n delay: createDelay(childAbortController.signal),\r\n signal: childAbortController.signal\r\n })];\r\n case 1:\r\n result2 = _c.sent();\r\n validateActive(childAbortController.signal);\r\n return [2 /*return*/, result2];\r\n }\r\n });\r\n }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });\r\n return {\r\n result: createPause(parentAbortSignal)(result),\r\n cancel: function () {\r\n abortControllerWithReason(childAbortController, taskCancelled);\r\n }\r\n };\r\n };\r\n};\r\nvar createTakePattern = function (startListening, signal) {\r\n var take = function (predicate, timeout) { return __async(void 0, null, function () {\r\n var unsubscribe, tuplePromise, promises, output;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n validateActive(signal);\r\n unsubscribe = function () {\r\n };\r\n tuplePromise = new Promise(function (resolve) {\r\n unsubscribe = startListening({\r\n predicate: predicate,\r\n effect: function (action, listenerApi) {\r\n listenerApi.unsubscribe();\r\n resolve([\r\n action,\r\n listenerApi.getState(),\r\n listenerApi.getOriginalState()\r\n ]);\r\n }\r\n });\r\n });\r\n promises = [\r\n promisifyAbortSignal(signal),\r\n tuplePromise\r\n ];\r\n if (timeout != null) {\r\n promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));\r\n }\r\n _c.label = 1;\r\n case 1:\r\n _c.trys.push([1, , 3, 4]);\r\n return [4 /*yield*/, Promise.race(promises)];\r\n case 2:\r\n output = _c.sent();\r\n validateActive(signal);\r\n return [2 /*return*/, output];\r\n case 3:\r\n unsubscribe();\r\n return [7 /*endfinally*/];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n }); };\r\n return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };\r\n};\r\nvar getListenerEntryPropsFrom = function (options) {\r\n var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;\r\n if (type) {\r\n predicate = createAction(type).match;\r\n }\r\n else if (actionCreator) {\r\n type = actionCreator.type;\r\n predicate = actionCreator.match;\r\n }\r\n else if (matcher) {\r\n predicate = matcher;\r\n }\r\n else if (predicate) {\r\n }\r\n else {\r\n throw new Error(\"Creating or removing a listener requires one of the known fields for matching an action\");\r\n }\r\n assertFunction(effect, \"options.listener\");\r\n return { predicate: predicate, type: type, effect: effect };\r\n};\r\nvar createListenerEntry = function (options) {\r\n var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;\r\n var id = nanoid();\r\n var entry = {\r\n id: id,\r\n effect: effect,\r\n type: type,\r\n predicate: predicate,\r\n pending: new Set(),\r\n unsubscribe: function () {\r\n throw new Error(\"Unsubscribe not initialized\");\r\n }\r\n };\r\n return entry;\r\n};\r\nvar createClearListenerMiddleware = function (listenerMap) {\r\n return function () {\r\n listenerMap.forEach(cancelActiveListeners);\r\n listenerMap.clear();\r\n };\r\n};\r\nvar safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {\r\n try {\r\n errorHandler(errorToNotify, errorInfo);\r\n }\r\n catch (errorHandlerError) {\r\n setTimeout(function () {\r\n throw errorHandlerError;\r\n }, 0);\r\n }\r\n};\r\nvar addListener = createAction(alm + \"/add\");\r\nvar clearAllListeners = createAction(alm + \"/removeAll\");\r\nvar removeListener = createAction(alm + \"/remove\");\r\nvar defaultErrorHandler = function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n console.error.apply(console, __spreadArray([alm + \"/error\"], args));\r\n};\r\nvar cancelActiveListeners = function (entry) {\r\n entry.pending.forEach(function (controller) {\r\n abortControllerWithReason(controller, listenerCancelled);\r\n });\r\n};\r\nfunction createListenerMiddleware(middlewareOptions) {\r\n var _this = this;\r\n if (middlewareOptions === void 0) { middlewareOptions = {}; }\r\n var listenerMap = new Map();\r\n var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;\r\n assertFunction(onError, \"onError\");\r\n var insertEntry = function (entry) {\r\n entry.unsubscribe = function () { return listenerMap.delete(entry.id); };\r\n listenerMap.set(entry.id, entry);\r\n return function (cancelOptions) {\r\n entry.unsubscribe();\r\n if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {\r\n cancelActiveListeners(entry);\r\n }\r\n };\r\n };\r\n var findListenerEntry = function (comparator) {\r\n for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {\r\n var entry = _c[_i];\r\n if (comparator(entry)) {\r\n return entry;\r\n }\r\n }\r\n return void 0;\r\n };\r\n var startListening = function (options) {\r\n var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });\r\n if (!entry) {\r\n entry = createListenerEntry(options);\r\n }\r\n return insertEntry(entry);\r\n };\r\n var stopListening = function (options) {\r\n var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;\r\n var entry = findListenerEntry(function (entry2) {\r\n var matchPredicateOrType = typeof type === \"string\" ? entry2.type === type : entry2.predicate === predicate;\r\n return matchPredicateOrType && entry2.effect === effect;\r\n });\r\n if (entry) {\r\n entry.unsubscribe();\r\n if (options.cancelActive) {\r\n cancelActiveListeners(entry);\r\n }\r\n }\r\n return !!entry;\r\n };\r\n var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {\r\n var internalTaskController, take, listenerError_1;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n internalTaskController = new AbortController();\r\n take = createTakePattern(startListening, internalTaskController.signal);\r\n _c.label = 1;\r\n case 1:\r\n _c.trys.push([1, 3, 4, 5]);\r\n entry.pending.add(internalTaskController);\r\n return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {\r\n getOriginalState: getOriginalState,\r\n condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },\r\n take: take,\r\n delay: createDelay(internalTaskController.signal),\r\n pause: createPause(internalTaskController.signal),\r\n extra: extra,\r\n signal: internalTaskController.signal,\r\n fork: createFork(internalTaskController.signal),\r\n unsubscribe: entry.unsubscribe,\r\n subscribe: function () {\r\n listenerMap.set(entry.id, entry);\r\n },\r\n cancelActiveListeners: function () {\r\n entry.pending.forEach(function (controller, _, set) {\r\n if (controller !== internalTaskController) {\r\n abortControllerWithReason(controller, listenerCancelled);\r\n set.delete(controller);\r\n }\r\n });\r\n }\r\n })))];\r\n case 2:\r\n _c.sent();\r\n return [3 /*break*/, 5];\r\n case 3:\r\n listenerError_1 = _c.sent();\r\n if (!(listenerError_1 instanceof TaskAbortError)) {\r\n safelyNotifyError(onError, listenerError_1, {\r\n raisedBy: \"effect\"\r\n });\r\n }\r\n return [3 /*break*/, 5];\r\n case 4:\r\n abortControllerWithReason(internalTaskController, listenerCompleted);\r\n entry.pending.delete(internalTaskController);\r\n return [7 /*endfinally*/];\r\n case 5: return [2 /*return*/];\r\n }\r\n });\r\n }); };\r\n var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);\r\n var middleware = function (api) { return function (next) { return function (action) {\r\n if (addListener.match(action)) {\r\n return startListening(action.payload);\r\n }\r\n if (clearAllListeners.match(action)) {\r\n clearListenerMiddleware();\r\n return;\r\n }\r\n if (removeListener.match(action)) {\r\n return stopListening(action.payload);\r\n }\r\n var originalState = api.getState();\r\n var getOriginalState = function () {\r\n if (originalState === INTERNAL_NIL_TOKEN) {\r\n throw new Error(alm + \": getOriginalState can only be called synchronously\");\r\n }\r\n return originalState;\r\n };\r\n var result;\r\n try {\r\n result = next(action);\r\n if (listenerMap.size > 0) {\r\n var currentState = api.getState();\r\n var listenerEntries = Array.from(listenerMap.values());\r\n for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {\r\n var entry = listenerEntries_1[_i];\r\n var runListener = false;\r\n try {\r\n runListener = entry.predicate(action, currentState, originalState);\r\n }\r\n catch (predicateError) {\r\n runListener = false;\r\n safelyNotifyError(onError, predicateError, {\r\n raisedBy: \"predicate\"\r\n });\r\n }\r\n if (!runListener) {\r\n continue;\r\n }\r\n notifyListener(entry, action, api, getOriginalState);\r\n }\r\n }\r\n }\r\n finally {\r\n originalState = INTERNAL_NIL_TOKEN;\r\n }\r\n return result;\r\n }; }; };\r\n return {\r\n middleware: middleware,\r\n startListening: startListening,\r\n stopListening: stopListening,\r\n clearListeners: clearListenerMiddleware\r\n };\r\n}\r\n// src/autoBatchEnhancer.ts\r\nvar SHOULD_AUTOBATCH = \"RTK_autoBatch\";\r\nvar prepareAutoBatched = function () { return function (payload) {\r\n var _c;\r\n return ({\r\n payload: payload,\r\n meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)\r\n });\r\n}; };\r\nvar promise;\r\nvar queueMicrotaskShim = typeof queueMicrotask === \"function\" ? queueMicrotask.bind(typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : globalThis) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {\r\n throw err;\r\n}, 0); }); };\r\nvar createQueueWithTimer = function (timeout) {\r\n return function (notify) {\r\n setTimeout(notify, timeout);\r\n };\r\n};\r\nvar rAF = typeof window !== \"undefined\" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);\r\nvar autoBatchEnhancer = function (options) {\r\n if (options === void 0) { options = { type: \"raf\" }; }\r\n return function (next) { return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var store = next.apply(void 0, args);\r\n var notifying = true;\r\n var shouldNotifyAtEndOfTick = false;\r\n var notificationQueued = false;\r\n var listeners = new Set();\r\n var queueCallback = options.type === \"tick\" ? queueMicrotaskShim : options.type === \"raf\" ? rAF : options.type === \"callback\" ? options.queueNotification : createQueueWithTimer(options.timeout);\r\n var notifyListeners = function () {\r\n notificationQueued = false;\r\n if (shouldNotifyAtEndOfTick) {\r\n shouldNotifyAtEndOfTick = false;\r\n listeners.forEach(function (l) { return l(); });\r\n }\r\n };\r\n return Object.assign({}, store, {\r\n subscribe: function (listener2) {\r\n var wrappedListener = function () { return notifying && listener2(); };\r\n var unsubscribe = store.subscribe(wrappedListener);\r\n listeners.add(listener2);\r\n return function () {\r\n unsubscribe();\r\n listeners.delete(listener2);\r\n };\r\n },\r\n dispatch: function (action) {\r\n var _a;\r\n try {\r\n notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);\r\n shouldNotifyAtEndOfTick = !notifying;\r\n if (shouldNotifyAtEndOfTick) {\r\n if (!notificationQueued) {\r\n notificationQueued = true;\r\n queueCallback(notifyListeners);\r\n }\r\n }\r\n return store.dispatch(action);\r\n }\r\n finally {\r\n notifying = true;\r\n }\r\n }\r\n });\r\n }; };\r\n};\r\n// src/index.ts\r\nenableES5();\r\nexport { MiddlewareArray, SHOULD_AUTOBATCH, TaskAbortError, addListener, autoBatchEnhancer, clearAllListeners, configureStore, createAction, createAsyncThunk, createDraftSafeSelector, createEntityAdapter, createImmutableStateInvariantMiddleware, createListenerMiddleware, default2 as createNextState, createReducer, createSelector2 as createSelector, createSerializableStateInvariantMiddleware, createSlice, current2 as current, findNonSerializableValue, freeze, getDefaultMiddleware, getType, isAllOf, isAnyOf, isAsyncThunkAction, isDraft4 as isDraft, isFulfilled, isImmutableDefault, isPending, isPlain, isPlainObject, isRejected, isRejectedWithValue, miniSerializeError, nanoid, original, prepareAutoBatched, removeListener, unwrapResult };\r\n//# sourceMappingURL=redux-toolkit.esm.js.map","var __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n};\r\nvar __defProp = Object.defineProperty;\r\nvar __defProps = Object.defineProperties;\r\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\r\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\r\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\r\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\r\nvar __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };\r\nvar __spreadValues = function (a, b) {\r\n for (var prop in b || (b = {}))\r\n if (__hasOwnProp.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n if (__getOwnPropSymbols)\r\n for (var _j = 0, _k = __getOwnPropSymbols(b); _j < _k.length; _j++) {\r\n var prop = _k[_j];\r\n if (__propIsEnum.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n }\r\n return a;\r\n};\r\nvar __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };\r\nvar __objRest = function (source, exclude) {\r\n var target = {};\r\n for (var prop in source)\r\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\r\n target[prop] = source[prop];\r\n if (source != null && __getOwnPropSymbols)\r\n for (var _j = 0, _k = __getOwnPropSymbols(source); _j < _k.length; _j++) {\r\n var prop = _k[_j];\r\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\r\n target[prop] = source[prop];\r\n }\r\n return target;\r\n};\r\nvar __async = function (__this, __arguments, generator) {\r\n return new Promise(function (resolve, reject) {\r\n var fulfilled = function (value) {\r\n try {\r\n step(generator.next(value));\r\n }\r\n catch (e) {\r\n reject(e);\r\n }\r\n };\r\n var rejected = function (value) {\r\n try {\r\n step(generator.throw(value));\r\n }\r\n catch (e) {\r\n reject(e);\r\n }\r\n };\r\n var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };\r\n step((generator = generator.apply(__this, __arguments)).next());\r\n });\r\n};\r\n// src/query/core/apiState.ts\r\nvar QueryStatus;\r\n(function (QueryStatus2) {\r\n QueryStatus2[\"uninitialized\"] = \"uninitialized\";\r\n QueryStatus2[\"pending\"] = \"pending\";\r\n QueryStatus2[\"fulfilled\"] = \"fulfilled\";\r\n QueryStatus2[\"rejected\"] = \"rejected\";\r\n})(QueryStatus || (QueryStatus = {}));\r\nfunction getRequestStatusFlags(status) {\r\n return {\r\n status: status,\r\n isUninitialized: status === QueryStatus.uninitialized,\r\n isLoading: status === QueryStatus.pending,\r\n isSuccess: status === QueryStatus.fulfilled,\r\n isError: status === QueryStatus.rejected\r\n };\r\n}\r\n// src/query/utils/isAbsoluteUrl.ts\r\nfunction isAbsoluteUrl(url) {\r\n return new RegExp(\"(^|:)//\").test(url);\r\n}\r\n// src/query/utils/joinUrls.ts\r\nvar withoutTrailingSlash = function (url) { return url.replace(/\\/$/, \"\"); };\r\nvar withoutLeadingSlash = function (url) { return url.replace(/^\\//, \"\"); };\r\nfunction joinUrls(base, url) {\r\n if (!base) {\r\n return url;\r\n }\r\n if (!url) {\r\n return base;\r\n }\r\n if (isAbsoluteUrl(url)) {\r\n return url;\r\n }\r\n var delimiter = base.endsWith(\"/\") || !url.startsWith(\"?\") ? \"/\" : \"\";\r\n base = withoutTrailingSlash(base);\r\n url = withoutLeadingSlash(url);\r\n return \"\" + base + delimiter + url;\r\n}\r\n// src/query/utils/flatten.ts\r\nvar flatten = function (arr) { return [].concat.apply([], arr); };\r\n// src/query/utils/isOnline.ts\r\nfunction isOnline() {\r\n return typeof navigator === \"undefined\" ? true : navigator.onLine === void 0 ? true : navigator.onLine;\r\n}\r\n// src/query/utils/isDocumentVisible.ts\r\nfunction isDocumentVisible() {\r\n if (typeof document === \"undefined\") {\r\n return true;\r\n }\r\n return document.visibilityState !== \"hidden\";\r\n}\r\n// src/query/utils/copyWithStructuralSharing.ts\r\nimport { isPlainObject as _iPO } from \"@reduxjs/toolkit\";\r\nvar isPlainObject = _iPO;\r\nfunction copyWithStructuralSharing(oldObj, newObj) {\r\n if (oldObj === newObj || !(isPlainObject(oldObj) && isPlainObject(newObj) || Array.isArray(oldObj) && Array.isArray(newObj))) {\r\n return newObj;\r\n }\r\n var newKeys = Object.keys(newObj);\r\n var oldKeys = Object.keys(oldObj);\r\n var isSameObject = newKeys.length === oldKeys.length;\r\n var mergeObj = Array.isArray(newObj) ? [] : {};\r\n for (var _j = 0, newKeys_1 = newKeys; _j < newKeys_1.length; _j++) {\r\n var key = newKeys_1[_j];\r\n mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);\r\n if (isSameObject)\r\n isSameObject = oldObj[key] === mergeObj[key];\r\n }\r\n return isSameObject ? oldObj : mergeObj;\r\n}\r\n// src/query/fetchBaseQuery.ts\r\nimport { isPlainObject as isPlainObject2 } from \"@reduxjs/toolkit\";\r\nvar defaultFetchFn = function () {\r\n var args = [];\r\n for (var _j = 0; _j < arguments.length; _j++) {\r\n args[_j] = arguments[_j];\r\n }\r\n return fetch.apply(void 0, args);\r\n};\r\nvar defaultValidateStatus = function (response) { return response.status >= 200 && response.status <= 299; };\r\nvar defaultIsJsonContentType = function (headers) { return /ion\\/(vnd\\.api\\+)?json/.test(headers.get(\"content-type\") || \"\"); };\r\nfunction stripUndefined(obj) {\r\n if (!isPlainObject2(obj)) {\r\n return obj;\r\n }\r\n var copy = __spreadValues({}, obj);\r\n for (var _j = 0, _k = Object.entries(copy); _j < _k.length; _j++) {\r\n var _l = _k[_j], k = _l[0], v = _l[1];\r\n if (v === void 0)\r\n delete copy[k];\r\n }\r\n return copy;\r\n}\r\nfunction fetchBaseQuery(_a) {\r\n var _this = this;\r\n if (_a === void 0) { _a = {}; }\r\n var _b = _a, baseUrl = _b.baseUrl, _j = _b.prepareHeaders, prepareHeaders = _j === void 0 ? function (x) { return x; } : _j, _k = _b.fetchFn, fetchFn = _k === void 0 ? defaultFetchFn : _k, paramsSerializer = _b.paramsSerializer, _l = _b.isJsonContentType, isJsonContentType = _l === void 0 ? defaultIsJsonContentType : _l, _m = _b.jsonContentType, jsonContentType = _m === void 0 ? \"application/json\" : _m, defaultTimeout = _b.timeout, globalValidateStatus = _b.validateStatus, baseFetchOptions = __objRest(_b, [\r\n \"baseUrl\",\r\n \"prepareHeaders\",\r\n \"fetchFn\",\r\n \"paramsSerializer\",\r\n \"isJsonContentType\",\r\n \"jsonContentType\",\r\n \"timeout\",\r\n \"validateStatus\"\r\n ]);\r\n if (typeof fetch === \"undefined\" && fetchFn === defaultFetchFn) {\r\n console.warn(\"Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments.\");\r\n }\r\n return function (arg, api) { return __async(_this, null, function () {\r\n var signal, getState, extra, endpoint, forced, type, meta, _a2, url, _j, method, _k, headers, _l, body, _m, params, _o, responseHandler, _p, validateStatus, _q, timeout, rest, config, _r, isJsonifiable, divider, query, request, requestClone, response, timedOut, timeoutId, e_1, responseClone, resultData, responseText, handleResponseError_1, e_2;\r\n return __generator(this, function (_s) {\r\n switch (_s.label) {\r\n case 0:\r\n signal = api.signal, getState = api.getState, extra = api.extra, endpoint = api.endpoint, forced = api.forced, type = api.type;\r\n _a2 = typeof arg == \"string\" ? { url: arg } : arg, url = _a2.url, _j = _a2.method, method = _j === void 0 ? \"GET\" : _j, _k = _a2.headers, headers = _k === void 0 ? new Headers(baseFetchOptions.headers) : _k, _l = _a2.body, body = _l === void 0 ? void 0 : _l, _m = _a2.params, params = _m === void 0 ? void 0 : _m, _o = _a2.responseHandler, responseHandler = _o === void 0 ? \"json\" : _o, _p = _a2.validateStatus, validateStatus = _p === void 0 ? globalValidateStatus != null ? globalValidateStatus : defaultValidateStatus : _p, _q = _a2.timeout, timeout = _q === void 0 ? defaultTimeout : _q, rest = __objRest(_a2, [\r\n \"url\",\r\n \"method\",\r\n \"headers\",\r\n \"body\",\r\n \"params\",\r\n \"responseHandler\",\r\n \"validateStatus\",\r\n \"timeout\"\r\n ]);\r\n config = __spreadValues(__spreadProps(__spreadValues({}, baseFetchOptions), {\r\n method: method,\r\n signal: signal,\r\n body: body\r\n }), rest);\r\n headers = new Headers(stripUndefined(headers));\r\n _r = config;\r\n return [4 /*yield*/, prepareHeaders(headers, {\r\n getState: getState,\r\n extra: extra,\r\n endpoint: endpoint,\r\n forced: forced,\r\n type: type\r\n })];\r\n case 1:\r\n _r.headers = (_s.sent()) || headers;\r\n isJsonifiable = function (body2) { return typeof body2 === \"object\" && (isPlainObject2(body2) || Array.isArray(body2) || typeof body2.toJSON === \"function\"); };\r\n if (!config.headers.has(\"content-type\") && isJsonifiable(body)) {\r\n config.headers.set(\"content-type\", jsonContentType);\r\n }\r\n if (isJsonifiable(body) && isJsonContentType(config.headers)) {\r\n config.body = JSON.stringify(body);\r\n }\r\n if (params) {\r\n divider = ~url.indexOf(\"?\") ? \"&\" : \"?\";\r\n query = paramsSerializer ? paramsSerializer(params) : new URLSearchParams(stripUndefined(params));\r\n url += divider + query;\r\n }\r\n url = joinUrls(baseUrl, url);\r\n request = new Request(url, config);\r\n requestClone = request.clone();\r\n meta = { request: requestClone };\r\n timedOut = false, timeoutId = timeout && setTimeout(function () {\r\n timedOut = true;\r\n api.abort();\r\n }, timeout);\r\n _s.label = 2;\r\n case 2:\r\n _s.trys.push([2, 4, 5, 6]);\r\n return [4 /*yield*/, fetchFn(request)];\r\n case 3:\r\n response = _s.sent();\r\n return [3 /*break*/, 6];\r\n case 4:\r\n e_1 = _s.sent();\r\n return [2 /*return*/, {\r\n error: {\r\n status: timedOut ? \"TIMEOUT_ERROR\" : \"FETCH_ERROR\",\r\n error: String(e_1)\r\n },\r\n meta: meta\r\n }];\r\n case 5:\r\n if (timeoutId)\r\n clearTimeout(timeoutId);\r\n return [7 /*endfinally*/];\r\n case 6:\r\n responseClone = response.clone();\r\n meta.response = responseClone;\r\n responseText = \"\";\r\n _s.label = 7;\r\n case 7:\r\n _s.trys.push([7, 9, , 10]);\r\n return [4 /*yield*/, Promise.all([\r\n handleResponse(response, responseHandler).then(function (r) { return resultData = r; }, function (e) { return handleResponseError_1 = e; }),\r\n responseClone.text().then(function (r) { return responseText = r; }, function () {\r\n })\r\n ])];\r\n case 8:\r\n _s.sent();\r\n if (handleResponseError_1)\r\n throw handleResponseError_1;\r\n return [3 /*break*/, 10];\r\n case 9:\r\n e_2 = _s.sent();\r\n return [2 /*return*/, {\r\n error: {\r\n status: \"PARSING_ERROR\",\r\n originalStatus: response.status,\r\n data: responseText,\r\n error: String(e_2)\r\n },\r\n meta: meta\r\n }];\r\n case 10: return [2 /*return*/, validateStatus(response, resultData) ? {\r\n data: resultData,\r\n meta: meta\r\n } : {\r\n error: {\r\n status: response.status,\r\n data: resultData\r\n },\r\n meta: meta\r\n }];\r\n }\r\n });\r\n }); };\r\n function handleResponse(response, responseHandler) {\r\n return __async(this, null, function () {\r\n var text;\r\n return __generator(this, function (_j) {\r\n switch (_j.label) {\r\n case 0:\r\n if (typeof responseHandler === \"function\") {\r\n return [2 /*return*/, responseHandler(response)];\r\n }\r\n if (responseHandler === \"content-type\") {\r\n responseHandler = isJsonContentType(response.headers) ? \"json\" : \"text\";\r\n }\r\n if (!(responseHandler === \"json\")) return [3 /*break*/, 2];\r\n return [4 /*yield*/, response.text()];\r\n case 1:\r\n text = _j.sent();\r\n return [2 /*return*/, text.length ? JSON.parse(text) : null];\r\n case 2: return [2 /*return*/, response.text()];\r\n }\r\n });\r\n });\r\n }\r\n}\r\n// src/query/HandledError.ts\r\nvar HandledError = /** @class */ (function () {\r\n function HandledError(value, meta) {\r\n if (meta === void 0) { meta = void 0; }\r\n this.value = value;\r\n this.meta = meta;\r\n }\r\n return HandledError;\r\n}());\r\n// src/query/retry.ts\r\nfunction defaultBackoff(attempt, maxRetries) {\r\n if (attempt === void 0) { attempt = 0; }\r\n if (maxRetries === void 0) { maxRetries = 5; }\r\n return __async(this, null, function () {\r\n var attempts, timeout;\r\n return __generator(this, function (_j) {\r\n switch (_j.label) {\r\n case 0:\r\n attempts = Math.min(attempt, maxRetries);\r\n timeout = ~~((Math.random() + 0.4) * (300 << attempts));\r\n return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(function (res) { return resolve(res); }, timeout); })];\r\n case 1:\r\n _j.sent();\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n}\r\nfunction fail(e) {\r\n throw Object.assign(new HandledError({ error: e }), {\r\n throwImmediately: true\r\n });\r\n}\r\nvar EMPTY_OPTIONS = {};\r\nvar retryWithBackoff = function (baseQuery, defaultOptions) { return function (args, api, extraOptions) { return __async(void 0, null, function () {\r\n var possibleMaxRetries, maxRetries, defaultRetryCondition, options, retry2, result, e_3;\r\n return __generator(this, function (_j) {\r\n switch (_j.label) {\r\n case 0:\r\n possibleMaxRetries = [\r\n 5,\r\n (defaultOptions || EMPTY_OPTIONS).maxRetries,\r\n (extraOptions || EMPTY_OPTIONS).maxRetries\r\n ].filter(function (x) { return x !== void 0; });\r\n maxRetries = possibleMaxRetries.slice(-1)[0];\r\n defaultRetryCondition = function (_, __, _j) {\r\n var attempt = _j.attempt;\r\n return attempt <= maxRetries;\r\n };\r\n options = __spreadValues(__spreadValues({\r\n maxRetries: maxRetries,\r\n backoff: defaultBackoff,\r\n retryCondition: defaultRetryCondition\r\n }, defaultOptions), extraOptions);\r\n retry2 = 0;\r\n _j.label = 1;\r\n case 1:\r\n if (!true) return [3 /*break*/, 7];\r\n _j.label = 2;\r\n case 2:\r\n _j.trys.push([2, 4, , 6]);\r\n return [4 /*yield*/, baseQuery(args, api, extraOptions)];\r\n case 3:\r\n result = _j.sent();\r\n if (result.error) {\r\n throw new HandledError(result);\r\n }\r\n return [2 /*return*/, result];\r\n case 4:\r\n e_3 = _j.sent();\r\n retry2++;\r\n if (e_3.throwImmediately) {\r\n if (e_3 instanceof HandledError) {\r\n return [2 /*return*/, e_3.value];\r\n }\r\n throw e_3;\r\n }\r\n if (e_3 instanceof HandledError && !options.retryCondition(e_3.value.error, args, {\r\n attempt: retry2,\r\n baseQueryApi: api,\r\n extraOptions: extraOptions\r\n })) {\r\n return [2 /*return*/, e_3.value];\r\n }\r\n return [4 /*yield*/, options.backoff(retry2, options.maxRetries)];\r\n case 5:\r\n _j.sent();\r\n return [3 /*break*/, 6];\r\n case 6: return [3 /*break*/, 1];\r\n case 7: return [2 /*return*/];\r\n }\r\n });\r\n}); }; };\r\nvar retry = /* @__PURE__ */ Object.assign(retryWithBackoff, { fail: fail });\r\n// src/query/core/setupListeners.ts\r\nimport { createAction } from \"@reduxjs/toolkit\";\r\nvar onFocus = /* @__PURE__ */ createAction(\"__rtkq/focused\");\r\nvar onFocusLost = /* @__PURE__ */ createAction(\"__rtkq/unfocused\");\r\nvar onOnline = /* @__PURE__ */ createAction(\"__rtkq/online\");\r\nvar onOffline = /* @__PURE__ */ createAction(\"__rtkq/offline\");\r\nvar initialized = false;\r\nfunction setupListeners(dispatch, customHandler) {\r\n function defaultHandler() {\r\n var handleFocus = function () { return dispatch(onFocus()); };\r\n var handleFocusLost = function () { return dispatch(onFocusLost()); };\r\n var handleOnline = function () { return dispatch(onOnline()); };\r\n var handleOffline = function () { return dispatch(onOffline()); };\r\n var handleVisibilityChange = function () {\r\n if (window.document.visibilityState === \"visible\") {\r\n handleFocus();\r\n }\r\n else {\r\n handleFocusLost();\r\n }\r\n };\r\n if (!initialized) {\r\n if (typeof window !== \"undefined\" && window.addEventListener) {\r\n window.addEventListener(\"visibilitychange\", handleVisibilityChange, false);\r\n window.addEventListener(\"focus\", handleFocus, false);\r\n window.addEventListener(\"online\", handleOnline, false);\r\n window.addEventListener(\"offline\", handleOffline, false);\r\n initialized = true;\r\n }\r\n }\r\n var unsubscribe = function () {\r\n window.removeEventListener(\"focus\", handleFocus);\r\n window.removeEventListener(\"visibilitychange\", handleVisibilityChange);\r\n window.removeEventListener(\"online\", handleOnline);\r\n window.removeEventListener(\"offline\", handleOffline);\r\n initialized = false;\r\n };\r\n return unsubscribe;\r\n }\r\n return customHandler ? customHandler(dispatch, { onFocus: onFocus, onFocusLost: onFocusLost, onOffline: onOffline, onOnline: onOnline }) : defaultHandler();\r\n}\r\n// src/query/core/buildSelectors.ts\r\nimport { createNextState as createNextState2, createSelector } from \"@reduxjs/toolkit\";\r\n// src/query/endpointDefinitions.ts\r\nvar DefinitionType;\r\n(function (DefinitionType2) {\r\n DefinitionType2[\"query\"] = \"query\";\r\n DefinitionType2[\"mutation\"] = \"mutation\";\r\n})(DefinitionType || (DefinitionType = {}));\r\nfunction isQueryDefinition(e) {\r\n return e.type === DefinitionType.query;\r\n}\r\nfunction isMutationDefinition(e) {\r\n return e.type === DefinitionType.mutation;\r\n}\r\nfunction calculateProvidedBy(description, result, error, queryArg, meta, assertTagTypes) {\r\n if (isFunction(description)) {\r\n return description(result, error, queryArg, meta).map(expandTagDescription).map(assertTagTypes);\r\n }\r\n if (Array.isArray(description)) {\r\n return description.map(expandTagDescription).map(assertTagTypes);\r\n }\r\n return [];\r\n}\r\nfunction isFunction(t) {\r\n return typeof t === \"function\";\r\n}\r\nfunction expandTagDescription(description) {\r\n return typeof description === \"string\" ? { type: description } : description;\r\n}\r\n// src/query/core/buildSlice.ts\r\nimport { combineReducers, createAction as createAction2, createSlice, isAnyOf, isFulfilled as isFulfilled2, isRejectedWithValue as isRejectedWithValue2, createNextState, prepareAutoBatched } from \"@reduxjs/toolkit\";\r\n// src/query/utils/isNotNullish.ts\r\nfunction isNotNullish(v) {\r\n return v != null;\r\n}\r\n// src/query/core/buildInitiate.ts\r\nvar forceQueryFnSymbol = Symbol(\"forceQueryFn\");\r\nvar isUpsertQuery = function (arg) { return typeof arg[forceQueryFnSymbol] === \"function\"; };\r\nfunction buildInitiate(_j) {\r\n var serializeQueryArgs = _j.serializeQueryArgs, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk, api = _j.api, context = _j.context;\r\n var runningQueries = new Map();\r\n var runningMutations = new Map();\r\n var _k = api.internalActions, unsubscribeQueryResult = _k.unsubscribeQueryResult, removeMutationResult = _k.removeMutationResult, updateSubscriptionOptions = _k.updateSubscriptionOptions;\r\n return {\r\n buildInitiateQuery: buildInitiateQuery,\r\n buildInitiateMutation: buildInitiateMutation,\r\n getRunningQueryThunk: getRunningQueryThunk,\r\n getRunningMutationThunk: getRunningMutationThunk,\r\n getRunningQueriesThunk: getRunningQueriesThunk,\r\n getRunningMutationsThunk: getRunningMutationsThunk,\r\n getRunningOperationPromises: getRunningOperationPromises,\r\n removalWarning: removalWarning\r\n };\r\n function removalWarning() {\r\n throw new Error(\"This method had to be removed due to a conceptual bug in RTK.\\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.\");\r\n }\r\n function getRunningOperationPromises() {\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\r\n removalWarning();\r\n }\r\n else {\r\n var extract = function (v) { return Array.from(v.values()).flatMap(function (queriesForStore) { return queriesForStore ? Object.values(queriesForStore) : []; }); };\r\n return __spreadArray(__spreadArray([], extract(runningQueries)), extract(runningMutations)).filter(isNotNullish);\r\n }\r\n }\r\n function getRunningQueryThunk(endpointName, queryArgs) {\r\n return function (dispatch) {\r\n var _a;\r\n var endpointDefinition = context.endpointDefinitions[endpointName];\r\n var queryCacheKey = serializeQueryArgs({\r\n queryArgs: queryArgs,\r\n endpointDefinition: endpointDefinition,\r\n endpointName: endpointName\r\n });\r\n return (_a = runningQueries.get(dispatch)) == null ? void 0 : _a[queryCacheKey];\r\n };\r\n }\r\n function getRunningMutationThunk(_endpointName, fixedCacheKeyOrRequestId) {\r\n return function (dispatch) {\r\n var _a;\r\n return (_a = runningMutations.get(dispatch)) == null ? void 0 : _a[fixedCacheKeyOrRequestId];\r\n };\r\n }\r\n function getRunningQueriesThunk() {\r\n return function (dispatch) { return Object.values(runningQueries.get(dispatch) || {}).filter(isNotNullish); };\r\n }\r\n function getRunningMutationsThunk() {\r\n return function (dispatch) { return Object.values(runningMutations.get(dispatch) || {}).filter(isNotNullish); };\r\n }\r\n function middlewareWarning(dispatch) {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (middlewareWarning.triggered)\r\n return;\r\n var registered = dispatch(api.internalActions.internal_probeSubscription({\r\n queryCacheKey: \"DOES_NOT_EXIST\",\r\n requestId: \"DUMMY_REQUEST_ID\"\r\n }));\r\n middlewareWarning.triggered = true;\r\n if (typeof registered !== \"boolean\") {\r\n throw new Error(\"Warning: Middleware for RTK-Query API at reducerPath \\\"\" + api.reducerPath + \"\\\" has not been added to the store.\\nYou must add the middleware for RTK-Query to function correctly!\");\r\n }\r\n }\r\n }\r\n function buildInitiateQuery(endpointName, endpointDefinition) {\r\n var queryAction = function (arg, _j) {\r\n var _k = _j === void 0 ? {} : _j, _l = _k.subscribe, subscribe = _l === void 0 ? true : _l, forceRefetch = _k.forceRefetch, subscriptionOptions = _k.subscriptionOptions, _m = forceQueryFnSymbol, forceQueryFn = _k[_m];\r\n return function (dispatch, getState) {\r\n var _j;\r\n var _a;\r\n var queryCacheKey = serializeQueryArgs({\r\n queryArgs: arg,\r\n endpointDefinition: endpointDefinition,\r\n endpointName: endpointName\r\n });\r\n var thunk = queryThunk((_j = {\r\n type: \"query\",\r\n subscribe: subscribe,\r\n forceRefetch: forceRefetch,\r\n subscriptionOptions: subscriptionOptions,\r\n endpointName: endpointName,\r\n originalArgs: arg,\r\n queryCacheKey: queryCacheKey\r\n },\r\n _j[forceQueryFnSymbol] = forceQueryFn,\r\n _j));\r\n var selector = api.endpoints[endpointName].select(arg);\r\n var thunkResult = dispatch(thunk);\r\n var stateAfter = selector(getState());\r\n middlewareWarning(dispatch);\r\n var requestId = thunkResult.requestId, abort = thunkResult.abort;\r\n var skippedSynchronously = stateAfter.requestId !== requestId;\r\n var runningQuery = (_a = runningQueries.get(dispatch)) == null ? void 0 : _a[queryCacheKey];\r\n var selectFromState = function () { return selector(getState()); };\r\n var statePromise = Object.assign(forceQueryFn ? thunkResult.then(selectFromState) : skippedSynchronously && !runningQuery ? Promise.resolve(stateAfter) : Promise.all([runningQuery, thunkResult]).then(selectFromState), {\r\n arg: arg,\r\n requestId: requestId,\r\n subscriptionOptions: subscriptionOptions,\r\n queryCacheKey: queryCacheKey,\r\n abort: abort,\r\n unwrap: function () {\r\n return __async(this, null, function () {\r\n var result;\r\n return __generator(this, function (_j) {\r\n switch (_j.label) {\r\n case 0: return [4 /*yield*/, statePromise];\r\n case 1:\r\n result = _j.sent();\r\n if (result.isError) {\r\n throw result.error;\r\n }\r\n return [2 /*return*/, result.data];\r\n }\r\n });\r\n });\r\n },\r\n refetch: function () { return dispatch(queryAction(arg, { subscribe: false, forceRefetch: true })); },\r\n unsubscribe: function () {\r\n if (subscribe)\r\n dispatch(unsubscribeQueryResult({\r\n queryCacheKey: queryCacheKey,\r\n requestId: requestId\r\n }));\r\n },\r\n updateSubscriptionOptions: function (options) {\r\n statePromise.subscriptionOptions = options;\r\n dispatch(updateSubscriptionOptions({\r\n endpointName: endpointName,\r\n requestId: requestId,\r\n queryCacheKey: queryCacheKey,\r\n options: options\r\n }));\r\n }\r\n });\r\n if (!runningQuery && !skippedSynchronously && !forceQueryFn) {\r\n var running_1 = runningQueries.get(dispatch) || {};\r\n running_1[queryCacheKey] = statePromise;\r\n runningQueries.set(dispatch, running_1);\r\n statePromise.then(function () {\r\n delete running_1[queryCacheKey];\r\n if (!Object.keys(running_1).length) {\r\n runningQueries.delete(dispatch);\r\n }\r\n });\r\n }\r\n return statePromise;\r\n };\r\n };\r\n return queryAction;\r\n }\r\n function buildInitiateMutation(endpointName) {\r\n return function (arg, _j) {\r\n var _k = _j === void 0 ? {} : _j, _l = _k.track, track = _l === void 0 ? true : _l, fixedCacheKey = _k.fixedCacheKey;\r\n return function (dispatch, getState) {\r\n var thunk = mutationThunk({\r\n type: \"mutation\",\r\n endpointName: endpointName,\r\n originalArgs: arg,\r\n track: track,\r\n fixedCacheKey: fixedCacheKey\r\n });\r\n var thunkResult = dispatch(thunk);\r\n middlewareWarning(dispatch);\r\n var requestId = thunkResult.requestId, abort = thunkResult.abort, unwrap = thunkResult.unwrap;\r\n var returnValuePromise = thunkResult.unwrap().then(function (data) { return ({ data: data }); }).catch(function (error) { return ({ error: error }); });\r\n var reset = function () {\r\n dispatch(removeMutationResult({ requestId: requestId, fixedCacheKey: fixedCacheKey }));\r\n };\r\n var ret = Object.assign(returnValuePromise, {\r\n arg: thunkResult.arg,\r\n requestId: requestId,\r\n abort: abort,\r\n unwrap: unwrap,\r\n unsubscribe: reset,\r\n reset: reset\r\n });\r\n var running = runningMutations.get(dispatch) || {};\r\n runningMutations.set(dispatch, running);\r\n running[requestId] = ret;\r\n ret.then(function () {\r\n delete running[requestId];\r\n if (!Object.keys(running).length) {\r\n runningMutations.delete(dispatch);\r\n }\r\n });\r\n if (fixedCacheKey) {\r\n running[fixedCacheKey] = ret;\r\n ret.then(function () {\r\n if (running[fixedCacheKey] === ret) {\r\n delete running[fixedCacheKey];\r\n if (!Object.keys(running).length) {\r\n runningMutations.delete(dispatch);\r\n }\r\n }\r\n });\r\n }\r\n return ret;\r\n };\r\n };\r\n }\r\n}\r\n// src/query/core/buildThunks.ts\r\nimport { isAllOf, isFulfilled, isPending, isRejected, isRejectedWithValue } from \"@reduxjs/toolkit\";\r\nimport { isDraftable, produceWithPatches } from \"immer\";\r\nimport { createAsyncThunk, SHOULD_AUTOBATCH } from \"@reduxjs/toolkit\";\r\nfunction defaultTransformResponse(baseQueryReturnValue) {\r\n return baseQueryReturnValue;\r\n}\r\nfunction buildThunks(_j) {\r\n var _this = this;\r\n var reducerPath = _j.reducerPath, baseQuery = _j.baseQuery, endpointDefinitions = _j.context.endpointDefinitions, serializeQueryArgs = _j.serializeQueryArgs, api = _j.api;\r\n var patchQueryData = function (endpointName, args, patches) { return function (dispatch) {\r\n var endpointDefinition = endpointDefinitions[endpointName];\r\n dispatch(api.internalActions.queryResultPatched({\r\n queryCacheKey: serializeQueryArgs({\r\n queryArgs: args,\r\n endpointDefinition: endpointDefinition,\r\n endpointName: endpointName\r\n }),\r\n patches: patches\r\n }));\r\n }; };\r\n var updateQueryData = function (endpointName, args, updateRecipe) { return function (dispatch, getState) {\r\n var _j, _k;\r\n var currentState = api.endpoints[endpointName].select(args)(getState());\r\n var ret = {\r\n patches: [],\r\n inversePatches: [],\r\n undo: function () { return dispatch(api.util.patchQueryData(endpointName, args, ret.inversePatches)); }\r\n };\r\n if (currentState.status === QueryStatus.uninitialized) {\r\n return ret;\r\n }\r\n if (\"data\" in currentState) {\r\n if (isDraftable(currentState.data)) {\r\n var _l = produceWithPatches(currentState.data, updateRecipe), patches = _l[1], inversePatches = _l[2];\r\n (_j = ret.patches).push.apply(_j, patches);\r\n (_k = ret.inversePatches).push.apply(_k, inversePatches);\r\n }\r\n else {\r\n var value = updateRecipe(currentState.data);\r\n ret.patches.push({ op: \"replace\", path: [], value: value });\r\n ret.inversePatches.push({\r\n op: \"replace\",\r\n path: [],\r\n value: currentState.data\r\n });\r\n }\r\n }\r\n dispatch(api.util.patchQueryData(endpointName, args, ret.patches));\r\n return ret;\r\n }; };\r\n var upsertQueryData = function (endpointName, args, value) { return function (dispatch) {\r\n var _j;\r\n return dispatch(api.endpoints[endpointName].initiate(args, (_j = {\r\n subscribe: false,\r\n forceRefetch: true\r\n },\r\n _j[forceQueryFnSymbol] = function () { return ({\r\n data: value\r\n }); },\r\n _j)));\r\n }; };\r\n var executeEndpoint = function (_0, _1) { return __async(_this, [_0, _1], function (arg, _j) {\r\n var endpointDefinition, transformResponse, result, baseQueryApi_1, forceQueryFn, what, err, _k, _l, key, _m, error_1, catchedError, transformErrorResponse, _o, e_4;\r\n var _p, _q;\r\n var signal = _j.signal, abort = _j.abort, rejectWithValue = _j.rejectWithValue, fulfillWithValue = _j.fulfillWithValue, dispatch = _j.dispatch, getState = _j.getState, extra = _j.extra;\r\n return __generator(this, function (_r) {\r\n switch (_r.label) {\r\n case 0:\r\n endpointDefinition = endpointDefinitions[arg.endpointName];\r\n _r.label = 1;\r\n case 1:\r\n _r.trys.push([1, 8, , 13]);\r\n transformResponse = defaultTransformResponse;\r\n result = void 0;\r\n baseQueryApi_1 = {\r\n signal: signal,\r\n abort: abort,\r\n dispatch: dispatch,\r\n getState: getState,\r\n extra: extra,\r\n endpoint: arg.endpointName,\r\n type: arg.type,\r\n forced: arg.type === \"query\" ? isForcedQuery(arg, getState()) : void 0\r\n };\r\n forceQueryFn = arg.type === \"query\" ? arg[forceQueryFnSymbol] : void 0;\r\n if (!forceQueryFn) return [3 /*break*/, 2];\r\n result = forceQueryFn();\r\n return [3 /*break*/, 6];\r\n case 2:\r\n if (!endpointDefinition.query) return [3 /*break*/, 4];\r\n return [4 /*yield*/, baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi_1, endpointDefinition.extraOptions)];\r\n case 3:\r\n result = _r.sent();\r\n if (endpointDefinition.transformResponse) {\r\n transformResponse = endpointDefinition.transformResponse;\r\n }\r\n return [3 /*break*/, 6];\r\n case 4: return [4 /*yield*/, endpointDefinition.queryFn(arg.originalArgs, baseQueryApi_1, endpointDefinition.extraOptions, function (arg2) { return baseQuery(arg2, baseQueryApi_1, endpointDefinition.extraOptions); })];\r\n case 5:\r\n result = _r.sent();\r\n _r.label = 6;\r\n case 6:\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\r\n what = endpointDefinition.query ? \"`baseQuery`\" : \"`queryFn`\";\r\n err = void 0;\r\n if (!result) {\r\n err = what + \" did not return anything.\";\r\n }\r\n else if (typeof result !== \"object\") {\r\n err = what + \" did not return an object.\";\r\n }\r\n else if (result.error && result.data) {\r\n err = what + \" returned an object containing both `error` and `result`.\";\r\n }\r\n else if (result.error === void 0 && result.data === void 0) {\r\n err = what + \" returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`\";\r\n }\r\n else {\r\n for (_k = 0, _l = Object.keys(result); _k < _l.length; _k++) {\r\n key = _l[_k];\r\n if (key !== \"error\" && key !== \"data\" && key !== \"meta\") {\r\n err = \"The object returned by \" + what + \" has the unknown property \" + key + \".\";\r\n break;\r\n }\r\n }\r\n }\r\n if (err) {\r\n console.error(\"Error encountered handling the endpoint \" + arg.endpointName + \".\\n \" + err + \"\\n It needs to return an object with either the shape `{ data: }` or `{ error: }` that may contain an optional `meta` property.\\n Object returned was:\", result);\r\n }\r\n }\r\n if (result.error)\r\n throw new HandledError(result.error, result.meta);\r\n _m = fulfillWithValue;\r\n return [4 /*yield*/, transformResponse(result.data, result.meta, arg.originalArgs)];\r\n case 7: return [2 /*return*/, _m.apply(void 0, [_r.sent(), (_p = {\r\n fulfilledTimeStamp: Date.now(),\r\n baseQueryMeta: result.meta\r\n },\r\n _p[SHOULD_AUTOBATCH] = true,\r\n _p)])];\r\n case 8:\r\n error_1 = _r.sent();\r\n catchedError = error_1;\r\n if (!(catchedError instanceof HandledError)) return [3 /*break*/, 12];\r\n transformErrorResponse = defaultTransformResponse;\r\n if (endpointDefinition.query && endpointDefinition.transformErrorResponse) {\r\n transformErrorResponse = endpointDefinition.transformErrorResponse;\r\n }\r\n _r.label = 9;\r\n case 9:\r\n _r.trys.push([9, 11, , 12]);\r\n _o = rejectWithValue;\r\n return [4 /*yield*/, transformErrorResponse(catchedError.value, catchedError.meta, arg.originalArgs)];\r\n case 10: return [2 /*return*/, _o.apply(void 0, [_r.sent(), (_q = { baseQueryMeta: catchedError.meta }, _q[SHOULD_AUTOBATCH] = true, _q)])];\r\n case 11:\r\n e_4 = _r.sent();\r\n catchedError = e_4;\r\n return [3 /*break*/, 12];\r\n case 12:\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV !== \"production\") {\r\n console.error(\"An unhandled error occurred processing a request for the endpoint \\\"\" + arg.endpointName + \"\\\".\\nIn the case of an unhandled error, no tags will be \\\"provided\\\" or \\\"invalidated\\\".\", catchedError);\r\n }\r\n else {\r\n console.error(catchedError);\r\n }\r\n throw catchedError;\r\n case 13: return [2 /*return*/];\r\n }\r\n });\r\n }); };\r\n function isForcedQuery(arg, state) {\r\n var _a, _b, _c, _d;\r\n var requestState = (_b = (_a = state[reducerPath]) == null ? void 0 : _a.queries) == null ? void 0 : _b[arg.queryCacheKey];\r\n var baseFetchOnMountOrArgChange = (_c = state[reducerPath]) == null ? void 0 : _c.config.refetchOnMountOrArgChange;\r\n var fulfilledVal = requestState == null ? void 0 : requestState.fulfilledTimeStamp;\r\n var refetchVal = (_d = arg.forceRefetch) != null ? _d : arg.subscribe && baseFetchOnMountOrArgChange;\r\n if (refetchVal) {\r\n return refetchVal === true || (Number(new Date()) - Number(fulfilledVal)) / 1e3 >= refetchVal;\r\n }\r\n return false;\r\n }\r\n var queryThunk = createAsyncThunk(reducerPath + \"/executeQuery\", executeEndpoint, {\r\n getPendingMeta: function () {\r\n var _j;\r\n return _j = { startedTimeStamp: Date.now() }, _j[SHOULD_AUTOBATCH] = true, _j;\r\n },\r\n condition: function (queryThunkArgs, _j) {\r\n var getState = _j.getState;\r\n var _a, _b, _c;\r\n var state = getState();\r\n var requestState = (_b = (_a = state[reducerPath]) == null ? void 0 : _a.queries) == null ? void 0 : _b[queryThunkArgs.queryCacheKey];\r\n var fulfilledVal = requestState == null ? void 0 : requestState.fulfilledTimeStamp;\r\n var currentArg = queryThunkArgs.originalArgs;\r\n var previousArg = requestState == null ? void 0 : requestState.originalArgs;\r\n var endpointDefinition = endpointDefinitions[queryThunkArgs.endpointName];\r\n if (isUpsertQuery(queryThunkArgs)) {\r\n return true;\r\n }\r\n if ((requestState == null ? void 0 : requestState.status) === \"pending\") {\r\n return false;\r\n }\r\n if (isForcedQuery(queryThunkArgs, state)) {\r\n return true;\r\n }\r\n if (isQueryDefinition(endpointDefinition) && ((_c = endpointDefinition == null ? void 0 : endpointDefinition.forceRefetch) == null ? void 0 : _c.call(endpointDefinition, {\r\n currentArg: currentArg,\r\n previousArg: previousArg,\r\n endpointState: requestState,\r\n state: state\r\n }))) {\r\n return true;\r\n }\r\n if (fulfilledVal) {\r\n return false;\r\n }\r\n return true;\r\n },\r\n dispatchConditionRejection: true\r\n });\r\n var mutationThunk = createAsyncThunk(reducerPath + \"/executeMutation\", executeEndpoint, {\r\n getPendingMeta: function () {\r\n var _j;\r\n return _j = { startedTimeStamp: Date.now() }, _j[SHOULD_AUTOBATCH] = true, _j;\r\n }\r\n });\r\n var hasTheForce = function (options) { return \"force\" in options; };\r\n var hasMaxAge = function (options) { return \"ifOlderThan\" in options; };\r\n var prefetch = function (endpointName, arg, options) { return function (dispatch, getState) {\r\n var force = hasTheForce(options) && options.force;\r\n var maxAge = hasMaxAge(options) && options.ifOlderThan;\r\n var queryAction = function (force2) {\r\n if (force2 === void 0) { force2 = true; }\r\n return api.endpoints[endpointName].initiate(arg, { forceRefetch: force2 });\r\n };\r\n var latestStateValue = api.endpoints[endpointName].select(arg)(getState());\r\n if (force) {\r\n dispatch(queryAction());\r\n }\r\n else if (maxAge) {\r\n var lastFulfilledTs = latestStateValue == null ? void 0 : latestStateValue.fulfilledTimeStamp;\r\n if (!lastFulfilledTs) {\r\n dispatch(queryAction());\r\n return;\r\n }\r\n var shouldRetrigger = (Number(new Date()) - Number(new Date(lastFulfilledTs))) / 1e3 >= maxAge;\r\n if (shouldRetrigger) {\r\n dispatch(queryAction());\r\n }\r\n }\r\n else {\r\n dispatch(queryAction(false));\r\n }\r\n }; };\r\n function matchesEndpoint(endpointName) {\r\n return function (action) {\r\n var _a, _b;\r\n return ((_b = (_a = action == null ? void 0 : action.meta) == null ? void 0 : _a.arg) == null ? void 0 : _b.endpointName) === endpointName;\r\n };\r\n }\r\n function buildMatchThunkActions(thunk, endpointName) {\r\n return {\r\n matchPending: isAllOf(isPending(thunk), matchesEndpoint(endpointName)),\r\n matchFulfilled: isAllOf(isFulfilled(thunk), matchesEndpoint(endpointName)),\r\n matchRejected: isAllOf(isRejected(thunk), matchesEndpoint(endpointName))\r\n };\r\n }\r\n return {\r\n queryThunk: queryThunk,\r\n mutationThunk: mutationThunk,\r\n prefetch: prefetch,\r\n updateQueryData: updateQueryData,\r\n upsertQueryData: upsertQueryData,\r\n patchQueryData: patchQueryData,\r\n buildMatchThunkActions: buildMatchThunkActions\r\n };\r\n}\r\nfunction calculateProvidedByThunk(action, type, endpointDefinitions, assertTagType) {\r\n return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][type], isFulfilled(action) ? action.payload : void 0, isRejectedWithValue(action) ? action.payload : void 0, action.meta.arg.originalArgs, \"baseQueryMeta\" in action.meta ? action.meta.baseQueryMeta : void 0, assertTagType);\r\n}\r\n// src/query/core/buildSlice.ts\r\nimport { applyPatches } from \"immer\";\r\nfunction updateQuerySubstateIfExists(state, queryCacheKey, update) {\r\n var substate = state[queryCacheKey];\r\n if (substate) {\r\n update(substate);\r\n }\r\n}\r\nfunction getMutationCacheKey(id) {\r\n var _a;\r\n return (_a = \"arg\" in id ? id.arg.fixedCacheKey : id.fixedCacheKey) != null ? _a : id.requestId;\r\n}\r\nfunction updateMutationSubstateIfExists(state, id, update) {\r\n var substate = state[getMutationCacheKey(id)];\r\n if (substate) {\r\n update(substate);\r\n }\r\n}\r\nvar initialState = {};\r\nfunction buildSlice(_j) {\r\n var reducerPath = _j.reducerPath, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk, _k = _j.context, definitions = _k.endpointDefinitions, apiUid = _k.apiUid, extractRehydrationInfo = _k.extractRehydrationInfo, hasRehydrationInfo = _k.hasRehydrationInfo, assertTagType = _j.assertTagType, config = _j.config;\r\n var resetApiState = createAction2(reducerPath + \"/resetApiState\");\r\n var querySlice = createSlice({\r\n name: reducerPath + \"/queries\",\r\n initialState: initialState,\r\n reducers: {\r\n removeQueryResult: {\r\n reducer: function (draft, _j) {\r\n var queryCacheKey = _j.payload.queryCacheKey;\r\n delete draft[queryCacheKey];\r\n },\r\n prepare: prepareAutoBatched()\r\n },\r\n queryResultPatched: function (draft, _j) {\r\n var _k = _j.payload, queryCacheKey = _k.queryCacheKey, patches = _k.patches;\r\n updateQuerySubstateIfExists(draft, queryCacheKey, function (substate) {\r\n substate.data = applyPatches(substate.data, patches.concat());\r\n });\r\n }\r\n },\r\n extraReducers: function (builder) {\r\n builder.addCase(queryThunk.pending, function (draft, _j) {\r\n var meta = _j.meta, arg = _j.meta.arg;\r\n var _a, _b;\r\n var upserting = isUpsertQuery(arg);\r\n if (arg.subscribe || upserting) {\r\n (_b = draft[_a = arg.queryCacheKey]) != null ? _b : draft[_a] = {\r\n status: QueryStatus.uninitialized,\r\n endpointName: arg.endpointName\r\n };\r\n }\r\n updateQuerySubstateIfExists(draft, arg.queryCacheKey, function (substate) {\r\n substate.status = QueryStatus.pending;\r\n substate.requestId = upserting && substate.requestId ? substate.requestId : meta.requestId;\r\n if (arg.originalArgs !== void 0) {\r\n substate.originalArgs = arg.originalArgs;\r\n }\r\n substate.startedTimeStamp = meta.startedTimeStamp;\r\n });\r\n }).addCase(queryThunk.fulfilled, function (draft, _j) {\r\n var meta = _j.meta, payload = _j.payload;\r\n updateQuerySubstateIfExists(draft, meta.arg.queryCacheKey, function (substate) {\r\n var _a;\r\n if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg))\r\n return;\r\n var merge = definitions[meta.arg.endpointName].merge;\r\n substate.status = QueryStatus.fulfilled;\r\n if (merge) {\r\n if (substate.data !== void 0) {\r\n var fulfilledTimeStamp_1 = meta.fulfilledTimeStamp, arg_1 = meta.arg, baseQueryMeta_1 = meta.baseQueryMeta, requestId_1 = meta.requestId;\r\n var newData = createNextState(substate.data, function (draftSubstateData) {\r\n return merge(draftSubstateData, payload, {\r\n arg: arg_1.originalArgs,\r\n baseQueryMeta: baseQueryMeta_1,\r\n fulfilledTimeStamp: fulfilledTimeStamp_1,\r\n requestId: requestId_1\r\n });\r\n });\r\n substate.data = newData;\r\n }\r\n else {\r\n substate.data = payload;\r\n }\r\n }\r\n else {\r\n substate.data = ((_a = definitions[meta.arg.endpointName].structuralSharing) != null ? _a : true) ? copyWithStructuralSharing(substate.data, payload) : payload;\r\n }\r\n delete substate.error;\r\n substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;\r\n });\r\n }).addCase(queryThunk.rejected, function (draft, _j) {\r\n var _k = _j.meta, condition = _k.condition, arg = _k.arg, requestId = _k.requestId, error = _j.error, payload = _j.payload;\r\n updateQuerySubstateIfExists(draft, arg.queryCacheKey, function (substate) {\r\n if (condition) {\r\n }\r\n else {\r\n if (substate.requestId !== requestId)\r\n return;\r\n substate.status = QueryStatus.rejected;\r\n substate.error = payload != null ? payload : error;\r\n }\r\n });\r\n }).addMatcher(hasRehydrationInfo, function (draft, action) {\r\n var queries = extractRehydrationInfo(action).queries;\r\n for (var _j = 0, _k = Object.entries(queries); _j < _k.length; _j++) {\r\n var _l = _k[_j], key = _l[0], entry = _l[1];\r\n if ((entry == null ? void 0 : entry.status) === QueryStatus.fulfilled || (entry == null ? void 0 : entry.status) === QueryStatus.rejected) {\r\n draft[key] = entry;\r\n }\r\n }\r\n });\r\n }\r\n });\r\n var mutationSlice = createSlice({\r\n name: reducerPath + \"/mutations\",\r\n initialState: initialState,\r\n reducers: {\r\n removeMutationResult: {\r\n reducer: function (draft, _j) {\r\n var payload = _j.payload;\r\n var cacheKey = getMutationCacheKey(payload);\r\n if (cacheKey in draft) {\r\n delete draft[cacheKey];\r\n }\r\n },\r\n prepare: prepareAutoBatched()\r\n }\r\n },\r\n extraReducers: function (builder) {\r\n builder.addCase(mutationThunk.pending, function (draft, _j) {\r\n var meta = _j.meta, _k = _j.meta, requestId = _k.requestId, arg = _k.arg, startedTimeStamp = _k.startedTimeStamp;\r\n if (!arg.track)\r\n return;\r\n draft[getMutationCacheKey(meta)] = {\r\n requestId: requestId,\r\n status: QueryStatus.pending,\r\n endpointName: arg.endpointName,\r\n startedTimeStamp: startedTimeStamp\r\n };\r\n }).addCase(mutationThunk.fulfilled, function (draft, _j) {\r\n var payload = _j.payload, meta = _j.meta;\r\n if (!meta.arg.track)\r\n return;\r\n updateMutationSubstateIfExists(draft, meta, function (substate) {\r\n if (substate.requestId !== meta.requestId)\r\n return;\r\n substate.status = QueryStatus.fulfilled;\r\n substate.data = payload;\r\n substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;\r\n });\r\n }).addCase(mutationThunk.rejected, function (draft, _j) {\r\n var payload = _j.payload, error = _j.error, meta = _j.meta;\r\n if (!meta.arg.track)\r\n return;\r\n updateMutationSubstateIfExists(draft, meta, function (substate) {\r\n if (substate.requestId !== meta.requestId)\r\n return;\r\n substate.status = QueryStatus.rejected;\r\n substate.error = payload != null ? payload : error;\r\n });\r\n }).addMatcher(hasRehydrationInfo, function (draft, action) {\r\n var mutations = extractRehydrationInfo(action).mutations;\r\n for (var _j = 0, _k = Object.entries(mutations); _j < _k.length; _j++) {\r\n var _l = _k[_j], key = _l[0], entry = _l[1];\r\n if (((entry == null ? void 0 : entry.status) === QueryStatus.fulfilled || (entry == null ? void 0 : entry.status) === QueryStatus.rejected) && key !== (entry == null ? void 0 : entry.requestId)) {\r\n draft[key] = entry;\r\n }\r\n }\r\n });\r\n }\r\n });\r\n var invalidationSlice = createSlice({\r\n name: reducerPath + \"/invalidation\",\r\n initialState: initialState,\r\n reducers: {},\r\n extraReducers: function (builder) {\r\n builder.addCase(querySlice.actions.removeQueryResult, function (draft, _j) {\r\n var queryCacheKey = _j.payload.queryCacheKey;\r\n for (var _k = 0, _l = Object.values(draft); _k < _l.length; _k++) {\r\n var tagTypeSubscriptions = _l[_k];\r\n for (var _m = 0, _o = Object.values(tagTypeSubscriptions); _m < _o.length; _m++) {\r\n var idSubscriptions = _o[_m];\r\n var foundAt = idSubscriptions.indexOf(queryCacheKey);\r\n if (foundAt !== -1) {\r\n idSubscriptions.splice(foundAt, 1);\r\n }\r\n }\r\n }\r\n }).addMatcher(hasRehydrationInfo, function (draft, action) {\r\n var _a, _b, _c, _d;\r\n var provided = extractRehydrationInfo(action).provided;\r\n for (var _j = 0, _k = Object.entries(provided); _j < _k.length; _j++) {\r\n var _l = _k[_j], type = _l[0], incomingTags = _l[1];\r\n for (var _m = 0, _o = Object.entries(incomingTags); _m < _o.length; _m++) {\r\n var _p = _o[_m], id = _p[0], cacheKeys = _p[1];\r\n var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || \"__internal_without_id\"]) != null ? _d : _b[_c] = [];\r\n for (var _q = 0, cacheKeys_1 = cacheKeys; _q < cacheKeys_1.length; _q++) {\r\n var queryCacheKey = cacheKeys_1[_q];\r\n var alreadySubscribed = subscribedQueries.includes(queryCacheKey);\r\n if (!alreadySubscribed) {\r\n subscribedQueries.push(queryCacheKey);\r\n }\r\n }\r\n }\r\n }\r\n }).addMatcher(isAnyOf(isFulfilled2(queryThunk), isRejectedWithValue2(queryThunk)), function (draft, action) {\r\n var _a, _b, _c, _d;\r\n var providedTags = calculateProvidedByThunk(action, \"providesTags\", definitions, assertTagType);\r\n var queryCacheKey = action.meta.arg.queryCacheKey;\r\n for (var _j = 0, _k = Object.values(draft); _j < _k.length; _j++) {\r\n var tagTypeSubscriptions = _k[_j];\r\n for (var _l = 0, _m = Object.values(tagTypeSubscriptions); _l < _m.length; _l++) {\r\n var idSubscriptions = _m[_l];\r\n var foundAt = idSubscriptions.indexOf(queryCacheKey);\r\n if (foundAt !== -1) {\r\n idSubscriptions.splice(foundAt, 1);\r\n }\r\n }\r\n }\r\n for (var _o = 0, providedTags_1 = providedTags; _o < providedTags_1.length; _o++) {\r\n var _p = providedTags_1[_o], type = _p.type, id = _p.id;\r\n var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || \"__internal_without_id\"]) != null ? _d : _b[_c] = [];\r\n var alreadySubscribed = subscribedQueries.includes(queryCacheKey);\r\n if (!alreadySubscribed) {\r\n subscribedQueries.push(queryCacheKey);\r\n }\r\n }\r\n });\r\n }\r\n });\r\n var subscriptionSlice = createSlice({\r\n name: reducerPath + \"/subscriptions\",\r\n initialState: initialState,\r\n reducers: {\r\n updateSubscriptionOptions: function (d, a) {\r\n },\r\n unsubscribeQueryResult: function (d, a) {\r\n },\r\n internal_probeSubscription: function (d, a) {\r\n }\r\n }\r\n });\r\n var internalSubscriptionsSlice = createSlice({\r\n name: reducerPath + \"/internalSubscriptions\",\r\n initialState: initialState,\r\n reducers: {\r\n subscriptionsUpdated: function (state, action) {\r\n return applyPatches(state, action.payload);\r\n }\r\n }\r\n });\r\n var configSlice = createSlice({\r\n name: reducerPath + \"/config\",\r\n initialState: __spreadValues({\r\n online: isOnline(),\r\n focused: isDocumentVisible(),\r\n middlewareRegistered: false\r\n }, config),\r\n reducers: {\r\n middlewareRegistered: function (state, _j) {\r\n var payload = _j.payload;\r\n state.middlewareRegistered = state.middlewareRegistered === \"conflict\" || apiUid !== payload ? \"conflict\" : true;\r\n }\r\n },\r\n extraReducers: function (builder) {\r\n builder.addCase(onOnline, function (state) {\r\n state.online = true;\r\n }).addCase(onOffline, function (state) {\r\n state.online = false;\r\n }).addCase(onFocus, function (state) {\r\n state.focused = true;\r\n }).addCase(onFocusLost, function (state) {\r\n state.focused = false;\r\n }).addMatcher(hasRehydrationInfo, function (draft) { return __spreadValues({}, draft); });\r\n }\r\n });\r\n var combinedReducer = combineReducers({\r\n queries: querySlice.reducer,\r\n mutations: mutationSlice.reducer,\r\n provided: invalidationSlice.reducer,\r\n subscriptions: internalSubscriptionsSlice.reducer,\r\n config: configSlice.reducer\r\n });\r\n var reducer = function (state, action) { return combinedReducer(resetApiState.match(action) ? void 0 : state, action); };\r\n var actions = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, configSlice.actions), querySlice.actions), subscriptionSlice.actions), internalSubscriptionsSlice.actions), mutationSlice.actions), {\r\n unsubscribeMutationResult: mutationSlice.actions.removeMutationResult,\r\n resetApiState: resetApiState\r\n });\r\n return { reducer: reducer, actions: actions };\r\n}\r\n// src/query/core/buildSelectors.ts\r\nvar skipToken = /* @__PURE__ */ Symbol.for(\"RTKQ/skipToken\");\r\nvar skipSelector = skipToken;\r\nvar initialSubState = {\r\n status: QueryStatus.uninitialized\r\n};\r\nvar defaultQuerySubState = /* @__PURE__ */ createNextState2(initialSubState, function () {\r\n});\r\nvar defaultMutationSubState = /* @__PURE__ */ createNextState2(initialSubState, function () {\r\n});\r\nfunction buildSelectors(_j) {\r\n var serializeQueryArgs = _j.serializeQueryArgs, reducerPath = _j.reducerPath;\r\n var selectSkippedQuery = function (state) { return defaultQuerySubState; };\r\n var selectSkippedMutation = function (state) { return defaultMutationSubState; };\r\n return { buildQuerySelector: buildQuerySelector, buildMutationSelector: buildMutationSelector, selectInvalidatedBy: selectInvalidatedBy };\r\n function withRequestFlags(substate) {\r\n return __spreadValues(__spreadValues({}, substate), getRequestStatusFlags(substate.status));\r\n }\r\n function selectInternalState(rootState) {\r\n var state = rootState[reducerPath];\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (!state) {\r\n if (selectInternalState.triggered)\r\n return state;\r\n selectInternalState.triggered = true;\r\n console.error(\"Error: No data found at `state.\" + reducerPath + \"`. Did you forget to add the reducer to the store?\");\r\n }\r\n }\r\n return state;\r\n }\r\n function buildQuerySelector(endpointName, endpointDefinition) {\r\n return function (queryArgs) {\r\n var serializedArgs = serializeQueryArgs({\r\n queryArgs: queryArgs,\r\n endpointDefinition: endpointDefinition,\r\n endpointName: endpointName\r\n });\r\n var selectQuerySubstate = function (state) {\r\n var _a, _b, _c;\r\n return (_c = (_b = (_a = selectInternalState(state)) == null ? void 0 : _a.queries) == null ? void 0 : _b[serializedArgs]) != null ? _c : defaultQuerySubState;\r\n };\r\n var finalSelectQuerySubState = queryArgs === skipToken ? selectSkippedQuery : selectQuerySubstate;\r\n return createSelector(finalSelectQuerySubState, withRequestFlags);\r\n };\r\n }\r\n function buildMutationSelector() {\r\n return function (id) {\r\n var _a;\r\n var mutationId;\r\n if (typeof id === \"object\") {\r\n mutationId = (_a = getMutationCacheKey(id)) != null ? _a : skipToken;\r\n }\r\n else {\r\n mutationId = id;\r\n }\r\n var selectMutationSubstate = function (state) {\r\n var _a2, _b, _c;\r\n return (_c = (_b = (_a2 = selectInternalState(state)) == null ? void 0 : _a2.mutations) == null ? void 0 : _b[mutationId]) != null ? _c : defaultMutationSubState;\r\n };\r\n var finalSelectMutationSubstate = mutationId === skipToken ? selectSkippedMutation : selectMutationSubstate;\r\n return createSelector(finalSelectMutationSubstate, withRequestFlags);\r\n };\r\n }\r\n function selectInvalidatedBy(state, tags) {\r\n var _a;\r\n var apiState = state[reducerPath];\r\n var toInvalidate = new Set();\r\n for (var _j = 0, _k = tags.map(expandTagDescription); _j < _k.length; _j++) {\r\n var tag = _k[_j];\r\n var provided = apiState.provided[tag.type];\r\n if (!provided) {\r\n continue;\r\n }\r\n var invalidateSubscriptions = (_a = tag.id !== void 0 ? provided[tag.id] : flatten(Object.values(provided))) != null ? _a : [];\r\n for (var _l = 0, invalidateSubscriptions_1 = invalidateSubscriptions; _l < invalidateSubscriptions_1.length; _l++) {\r\n var invalidate = invalidateSubscriptions_1[_l];\r\n toInvalidate.add(invalidate);\r\n }\r\n }\r\n return flatten(Array.from(toInvalidate.values()).map(function (queryCacheKey) {\r\n var querySubState = apiState.queries[queryCacheKey];\r\n return querySubState ? [\r\n {\r\n queryCacheKey: queryCacheKey,\r\n endpointName: querySubState.endpointName,\r\n originalArgs: querySubState.originalArgs\r\n }\r\n ] : [];\r\n }));\r\n }\r\n}\r\n// src/query/defaultSerializeQueryArgs.ts\r\nimport { isPlainObject as isPlainObject3 } from \"@reduxjs/toolkit\";\r\nvar defaultSerializeQueryArgs = function (_j) {\r\n var endpointName = _j.endpointName, queryArgs = _j.queryArgs;\r\n return endpointName + \"(\" + JSON.stringify(queryArgs, function (key, value) { return isPlainObject3(value) ? Object.keys(value).sort().reduce(function (acc, key2) {\r\n acc[key2] = value[key2];\r\n return acc;\r\n }, {}) : value; }) + \")\";\r\n};\r\n// src/query/createApi.ts\r\nimport { nanoid } from \"@reduxjs/toolkit\";\r\nimport { defaultMemoize } from \"reselect\";\r\nfunction buildCreateApi() {\r\n var modules = [];\r\n for (var _j = 0; _j < arguments.length; _j++) {\r\n modules[_j] = arguments[_j];\r\n }\r\n return function baseCreateApi(options) {\r\n var extractRehydrationInfo = defaultMemoize(function (action) {\r\n var _a, _b;\r\n return (_b = options.extractRehydrationInfo) == null ? void 0 : _b.call(options, action, {\r\n reducerPath: (_a = options.reducerPath) != null ? _a : \"api\"\r\n });\r\n });\r\n var optionsWithDefaults = __spreadProps(__spreadValues({\r\n reducerPath: \"api\",\r\n keepUnusedDataFor: 60,\r\n refetchOnMountOrArgChange: false,\r\n refetchOnFocus: false,\r\n refetchOnReconnect: false\r\n }, options), {\r\n extractRehydrationInfo: extractRehydrationInfo,\r\n serializeQueryArgs: function (queryArgsApi) {\r\n var finalSerializeQueryArgs = defaultSerializeQueryArgs;\r\n if (\"serializeQueryArgs\" in queryArgsApi.endpointDefinition) {\r\n var endpointSQA_1 = queryArgsApi.endpointDefinition.serializeQueryArgs;\r\n finalSerializeQueryArgs = function (queryArgsApi2) {\r\n var initialResult = endpointSQA_1(queryArgsApi2);\r\n if (typeof initialResult === \"string\") {\r\n return initialResult;\r\n }\r\n else {\r\n return defaultSerializeQueryArgs(__spreadProps(__spreadValues({}, queryArgsApi2), {\r\n queryArgs: initialResult\r\n }));\r\n }\r\n };\r\n }\r\n else if (options.serializeQueryArgs) {\r\n finalSerializeQueryArgs = options.serializeQueryArgs;\r\n }\r\n return finalSerializeQueryArgs(queryArgsApi);\r\n },\r\n tagTypes: __spreadArray([], options.tagTypes || [])\r\n });\r\n var context = {\r\n endpointDefinitions: {},\r\n batch: function (fn) {\r\n fn();\r\n },\r\n apiUid: nanoid(),\r\n extractRehydrationInfo: extractRehydrationInfo,\r\n hasRehydrationInfo: defaultMemoize(function (action) { return extractRehydrationInfo(action) != null; })\r\n };\r\n var api = {\r\n injectEndpoints: injectEndpoints,\r\n enhanceEndpoints: function (_j) {\r\n var addTagTypes = _j.addTagTypes, endpoints = _j.endpoints;\r\n if (addTagTypes) {\r\n for (var _k = 0, addTagTypes_1 = addTagTypes; _k < addTagTypes_1.length; _k++) {\r\n var eT = addTagTypes_1[_k];\r\n if (!optionsWithDefaults.tagTypes.includes(eT)) {\r\n ;\r\n optionsWithDefaults.tagTypes.push(eT);\r\n }\r\n }\r\n }\r\n if (endpoints) {\r\n for (var _l = 0, _m = Object.entries(endpoints); _l < _m.length; _l++) {\r\n var _o = _m[_l], endpointName = _o[0], partialDefinition = _o[1];\r\n if (typeof partialDefinition === \"function\") {\r\n partialDefinition(context.endpointDefinitions[endpointName]);\r\n }\r\n else {\r\n Object.assign(context.endpointDefinitions[endpointName] || {}, partialDefinition);\r\n }\r\n }\r\n }\r\n return api;\r\n }\r\n };\r\n var initializedModules = modules.map(function (m) { return m.init(api, optionsWithDefaults, context); });\r\n function injectEndpoints(inject) {\r\n var evaluatedEndpoints = inject.endpoints({\r\n query: function (x) { return __spreadProps(__spreadValues({}, x), { type: DefinitionType.query }); },\r\n mutation: function (x) { return __spreadProps(__spreadValues({}, x), { type: DefinitionType.mutation }); }\r\n });\r\n for (var _j = 0, _k = Object.entries(evaluatedEndpoints); _j < _k.length; _j++) {\r\n var _l = _k[_j], endpointName = _l[0], definition = _l[1];\r\n if (!inject.overrideExisting && endpointName in context.endpointDefinitions) {\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\r\n console.error(\"called `injectEndpoints` to override already-existing endpointName \" + endpointName + \" without specifying `overrideExisting: true`\");\r\n }\r\n continue;\r\n }\r\n context.endpointDefinitions[endpointName] = definition;\r\n for (var _m = 0, initializedModules_1 = initializedModules; _m < initializedModules_1.length; _m++) {\r\n var m = initializedModules_1[_m];\r\n m.injectEndpoint(endpointName, definition);\r\n }\r\n }\r\n return api;\r\n }\r\n return api.injectEndpoints({ endpoints: options.endpoints });\r\n };\r\n}\r\n// src/query/fakeBaseQuery.ts\r\nfunction fakeBaseQuery() {\r\n return function () {\r\n throw new Error(\"When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.\");\r\n };\r\n}\r\n// src/query/core/buildMiddleware/index.ts\r\nimport { createAction as createAction3 } from \"@reduxjs/toolkit\";\r\n// src/query/core/buildMiddleware/cacheCollection.ts\r\nfunction isObjectEmpty(obj) {\r\n for (var k in obj) {\r\n return false;\r\n }\r\n return true;\r\n}\r\nvar THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1;\r\nvar buildCacheCollectionHandler = function (_j) {\r\n var reducerPath = _j.reducerPath, api = _j.api, context = _j.context, internalState = _j.internalState;\r\n var _k = api.internalActions, removeQueryResult = _k.removeQueryResult, unsubscribeQueryResult = _k.unsubscribeQueryResult;\r\n function anySubscriptionsRemainingForKey(queryCacheKey) {\r\n var subscriptions = internalState.currentSubscriptions[queryCacheKey];\r\n return !!subscriptions && !isObjectEmpty(subscriptions);\r\n }\r\n var currentRemovalTimeouts = {};\r\n var handler = function (action, mwApi, internalState2) {\r\n var _a;\r\n if (unsubscribeQueryResult.match(action)) {\r\n var state = mwApi.getState()[reducerPath];\r\n var queryCacheKey = action.payload.queryCacheKey;\r\n handleUnsubscribe(queryCacheKey, (_a = state.queries[queryCacheKey]) == null ? void 0 : _a.endpointName, mwApi, state.config);\r\n }\r\n if (api.util.resetApiState.match(action)) {\r\n for (var _j = 0, _k = Object.entries(currentRemovalTimeouts); _j < _k.length; _j++) {\r\n var _l = _k[_j], key = _l[0], timeout = _l[1];\r\n if (timeout)\r\n clearTimeout(timeout);\r\n delete currentRemovalTimeouts[key];\r\n }\r\n }\r\n if (context.hasRehydrationInfo(action)) {\r\n var state = mwApi.getState()[reducerPath];\r\n var queries = context.extractRehydrationInfo(action).queries;\r\n for (var _m = 0, _o = Object.entries(queries); _m < _o.length; _m++) {\r\n var _p = _o[_m], queryCacheKey = _p[0], queryState = _p[1];\r\n handleUnsubscribe(queryCacheKey, queryState == null ? void 0 : queryState.endpointName, mwApi, state.config);\r\n }\r\n }\r\n };\r\n function handleUnsubscribe(queryCacheKey, endpointName, api2, config) {\r\n var _a;\r\n var endpointDefinition = context.endpointDefinitions[endpointName];\r\n var keepUnusedDataFor = (_a = endpointDefinition == null ? void 0 : endpointDefinition.keepUnusedDataFor) != null ? _a : config.keepUnusedDataFor;\r\n if (keepUnusedDataFor === Infinity) {\r\n return;\r\n }\r\n var finalKeepUnusedDataFor = Math.max(0, Math.min(keepUnusedDataFor, THIRTY_TWO_BIT_MAX_TIMER_SECONDS));\r\n if (!anySubscriptionsRemainingForKey(queryCacheKey)) {\r\n var currentTimeout = currentRemovalTimeouts[queryCacheKey];\r\n if (currentTimeout) {\r\n clearTimeout(currentTimeout);\r\n }\r\n currentRemovalTimeouts[queryCacheKey] = setTimeout(function () {\r\n if (!anySubscriptionsRemainingForKey(queryCacheKey)) {\r\n api2.dispatch(removeQueryResult({ queryCacheKey: queryCacheKey }));\r\n }\r\n delete currentRemovalTimeouts[queryCacheKey];\r\n }, finalKeepUnusedDataFor * 1e3);\r\n }\r\n }\r\n return handler;\r\n};\r\n// src/query/core/buildMiddleware/invalidationByTags.ts\r\nimport { isAnyOf as isAnyOf2, isFulfilled as isFulfilled3, isRejectedWithValue as isRejectedWithValue3 } from \"@reduxjs/toolkit\";\r\nvar buildInvalidationByTagsHandler = function (_j) {\r\n var reducerPath = _j.reducerPath, context = _j.context, endpointDefinitions = _j.context.endpointDefinitions, mutationThunk = _j.mutationThunk, api = _j.api, assertTagType = _j.assertTagType, refetchQuery = _j.refetchQuery;\r\n var removeQueryResult = api.internalActions.removeQueryResult;\r\n var isThunkActionWithTags = isAnyOf2(isFulfilled3(mutationThunk), isRejectedWithValue3(mutationThunk));\r\n var handler = function (action, mwApi) {\r\n if (isThunkActionWithTags(action)) {\r\n invalidateTags(calculateProvidedByThunk(action, \"invalidatesTags\", endpointDefinitions, assertTagType), mwApi);\r\n }\r\n if (api.util.invalidateTags.match(action)) {\r\n invalidateTags(calculateProvidedBy(action.payload, void 0, void 0, void 0, void 0, assertTagType), mwApi);\r\n }\r\n };\r\n function invalidateTags(tags, mwApi) {\r\n var rootState = mwApi.getState();\r\n var state = rootState[reducerPath];\r\n var toInvalidate = api.util.selectInvalidatedBy(rootState, tags);\r\n context.batch(function () {\r\n var _a;\r\n var valuesArray = Array.from(toInvalidate.values());\r\n for (var _j = 0, valuesArray_1 = valuesArray; _j < valuesArray_1.length; _j++) {\r\n var queryCacheKey = valuesArray_1[_j].queryCacheKey;\r\n var querySubState = state.queries[queryCacheKey];\r\n var subscriptionSubState = (_a = state.subscriptions[queryCacheKey]) != null ? _a : {};\r\n if (querySubState) {\r\n if (Object.keys(subscriptionSubState).length === 0) {\r\n mwApi.dispatch(removeQueryResult({\r\n queryCacheKey: queryCacheKey\r\n }));\r\n }\r\n else if (querySubState.status !== QueryStatus.uninitialized) {\r\n mwApi.dispatch(refetchQuery(querySubState, queryCacheKey));\r\n }\r\n }\r\n }\r\n });\r\n }\r\n return handler;\r\n};\r\n// src/query/core/buildMiddleware/polling.ts\r\nvar buildPollingHandler = function (_j) {\r\n var reducerPath = _j.reducerPath, queryThunk = _j.queryThunk, api = _j.api, refetchQuery = _j.refetchQuery, internalState = _j.internalState;\r\n var currentPolls = {};\r\n var handler = function (action, mwApi) {\r\n if (api.internalActions.updateSubscriptionOptions.match(action) || api.internalActions.unsubscribeQueryResult.match(action)) {\r\n updatePollingInterval(action.payload, mwApi);\r\n }\r\n if (queryThunk.pending.match(action) || queryThunk.rejected.match(action) && action.meta.condition) {\r\n updatePollingInterval(action.meta.arg, mwApi);\r\n }\r\n if (queryThunk.fulfilled.match(action) || queryThunk.rejected.match(action) && !action.meta.condition) {\r\n startNextPoll(action.meta.arg, mwApi);\r\n }\r\n if (api.util.resetApiState.match(action)) {\r\n clearPolls();\r\n }\r\n };\r\n function startNextPoll(_j, api2) {\r\n var queryCacheKey = _j.queryCacheKey;\r\n var state = api2.getState()[reducerPath];\r\n var querySubState = state.queries[queryCacheKey];\r\n var subscriptions = internalState.currentSubscriptions[queryCacheKey];\r\n if (!querySubState || querySubState.status === QueryStatus.uninitialized)\r\n return;\r\n var lowestPollingInterval = findLowestPollingInterval(subscriptions);\r\n if (!Number.isFinite(lowestPollingInterval))\r\n return;\r\n var currentPoll = currentPolls[queryCacheKey];\r\n if (currentPoll == null ? void 0 : currentPoll.timeout) {\r\n clearTimeout(currentPoll.timeout);\r\n currentPoll.timeout = void 0;\r\n }\r\n var nextPollTimestamp = Date.now() + lowestPollingInterval;\r\n var currentInterval = currentPolls[queryCacheKey] = {\r\n nextPollTimestamp: nextPollTimestamp,\r\n pollingInterval: lowestPollingInterval,\r\n timeout: setTimeout(function () {\r\n currentInterval.timeout = void 0;\r\n api2.dispatch(refetchQuery(querySubState, queryCacheKey));\r\n }, lowestPollingInterval)\r\n };\r\n }\r\n function updatePollingInterval(_j, api2) {\r\n var queryCacheKey = _j.queryCacheKey;\r\n var state = api2.getState()[reducerPath];\r\n var querySubState = state.queries[queryCacheKey];\r\n var subscriptions = internalState.currentSubscriptions[queryCacheKey];\r\n if (!querySubState || querySubState.status === QueryStatus.uninitialized) {\r\n return;\r\n }\r\n var lowestPollingInterval = findLowestPollingInterval(subscriptions);\r\n if (!Number.isFinite(lowestPollingInterval)) {\r\n cleanupPollForKey(queryCacheKey);\r\n return;\r\n }\r\n var currentPoll = currentPolls[queryCacheKey];\r\n var nextPollTimestamp = Date.now() + lowestPollingInterval;\r\n if (!currentPoll || nextPollTimestamp < currentPoll.nextPollTimestamp) {\r\n startNextPoll({ queryCacheKey: queryCacheKey }, api2);\r\n }\r\n }\r\n function cleanupPollForKey(key) {\r\n var existingPoll = currentPolls[key];\r\n if (existingPoll == null ? void 0 : existingPoll.timeout) {\r\n clearTimeout(existingPoll.timeout);\r\n }\r\n delete currentPolls[key];\r\n }\r\n function clearPolls() {\r\n for (var _j = 0, _k = Object.keys(currentPolls); _j < _k.length; _j++) {\r\n var key = _k[_j];\r\n cleanupPollForKey(key);\r\n }\r\n }\r\n function findLowestPollingInterval(subscribers) {\r\n if (subscribers === void 0) { subscribers = {}; }\r\n var lowestPollingInterval = Number.POSITIVE_INFINITY;\r\n for (var key in subscribers) {\r\n if (!!subscribers[key].pollingInterval) {\r\n lowestPollingInterval = Math.min(subscribers[key].pollingInterval, lowestPollingInterval);\r\n }\r\n }\r\n return lowestPollingInterval;\r\n }\r\n return handler;\r\n};\r\n// src/query/core/buildMiddleware/windowEventHandling.ts\r\nvar buildWindowEventHandler = function (_j) {\r\n var reducerPath = _j.reducerPath, context = _j.context, api = _j.api, refetchQuery = _j.refetchQuery, internalState = _j.internalState;\r\n var removeQueryResult = api.internalActions.removeQueryResult;\r\n var handler = function (action, mwApi) {\r\n if (onFocus.match(action)) {\r\n refetchValidQueries(mwApi, \"refetchOnFocus\");\r\n }\r\n if (onOnline.match(action)) {\r\n refetchValidQueries(mwApi, \"refetchOnReconnect\");\r\n }\r\n };\r\n function refetchValidQueries(api2, type) {\r\n var state = api2.getState()[reducerPath];\r\n var queries = state.queries;\r\n var subscriptions = internalState.currentSubscriptions;\r\n context.batch(function () {\r\n for (var _j = 0, _k = Object.keys(subscriptions); _j < _k.length; _j++) {\r\n var queryCacheKey = _k[_j];\r\n var querySubState = queries[queryCacheKey];\r\n var subscriptionSubState = subscriptions[queryCacheKey];\r\n if (!subscriptionSubState || !querySubState)\r\n continue;\r\n var shouldRefetch = Object.values(subscriptionSubState).some(function (sub) { return sub[type] === true; }) || Object.values(subscriptionSubState).every(function (sub) { return sub[type] === void 0; }) && state.config[type];\r\n if (shouldRefetch) {\r\n if (Object.keys(subscriptionSubState).length === 0) {\r\n api2.dispatch(removeQueryResult({\r\n queryCacheKey: queryCacheKey\r\n }));\r\n }\r\n else if (querySubState.status !== QueryStatus.uninitialized) {\r\n api2.dispatch(refetchQuery(querySubState, queryCacheKey));\r\n }\r\n }\r\n }\r\n });\r\n }\r\n return handler;\r\n};\r\n// src/query/core/buildMiddleware/cacheLifecycle.ts\r\nimport { isAsyncThunkAction, isFulfilled as isFulfilled4 } from \"@reduxjs/toolkit\";\r\nvar neverResolvedError = new Error(\"Promise never resolved before cacheEntryRemoved.\");\r\nvar buildCacheLifecycleHandler = function (_j) {\r\n var api = _j.api, reducerPath = _j.reducerPath, context = _j.context, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk, internalState = _j.internalState;\r\n var isQueryThunk = isAsyncThunkAction(queryThunk);\r\n var isMutationThunk = isAsyncThunkAction(mutationThunk);\r\n var isFulfilledThunk = isFulfilled4(queryThunk, mutationThunk);\r\n var lifecycleMap = {};\r\n var handler = function (action, mwApi, stateBefore) {\r\n var cacheKey = getCacheKey(action);\r\n if (queryThunk.pending.match(action)) {\r\n var oldState = stateBefore[reducerPath].queries[cacheKey];\r\n var state = mwApi.getState()[reducerPath].queries[cacheKey];\r\n if (!oldState && state) {\r\n handleNewKey(action.meta.arg.endpointName, action.meta.arg.originalArgs, cacheKey, mwApi, action.meta.requestId);\r\n }\r\n }\r\n else if (mutationThunk.pending.match(action)) {\r\n var state = mwApi.getState()[reducerPath].mutations[cacheKey];\r\n if (state) {\r\n handleNewKey(action.meta.arg.endpointName, action.meta.arg.originalArgs, cacheKey, mwApi, action.meta.requestId);\r\n }\r\n }\r\n else if (isFulfilledThunk(action)) {\r\n var lifecycle = lifecycleMap[cacheKey];\r\n if (lifecycle == null ? void 0 : lifecycle.valueResolved) {\r\n lifecycle.valueResolved({\r\n data: action.payload,\r\n meta: action.meta.baseQueryMeta\r\n });\r\n delete lifecycle.valueResolved;\r\n }\r\n }\r\n else if (api.internalActions.removeQueryResult.match(action) || api.internalActions.removeMutationResult.match(action)) {\r\n var lifecycle = lifecycleMap[cacheKey];\r\n if (lifecycle) {\r\n delete lifecycleMap[cacheKey];\r\n lifecycle.cacheEntryRemoved();\r\n }\r\n }\r\n else if (api.util.resetApiState.match(action)) {\r\n for (var _j = 0, _k = Object.entries(lifecycleMap); _j < _k.length; _j++) {\r\n var _l = _k[_j], cacheKey2 = _l[0], lifecycle = _l[1];\r\n delete lifecycleMap[cacheKey2];\r\n lifecycle.cacheEntryRemoved();\r\n }\r\n }\r\n };\r\n function getCacheKey(action) {\r\n if (isQueryThunk(action))\r\n return action.meta.arg.queryCacheKey;\r\n if (isMutationThunk(action))\r\n return action.meta.requestId;\r\n if (api.internalActions.removeQueryResult.match(action))\r\n return action.payload.queryCacheKey;\r\n if (api.internalActions.removeMutationResult.match(action))\r\n return getMutationCacheKey(action.payload);\r\n return \"\";\r\n }\r\n function handleNewKey(endpointName, originalArgs, queryCacheKey, mwApi, requestId) {\r\n var endpointDefinition = context.endpointDefinitions[endpointName];\r\n var onCacheEntryAdded = endpointDefinition == null ? void 0 : endpointDefinition.onCacheEntryAdded;\r\n if (!onCacheEntryAdded)\r\n return;\r\n var lifecycle = {};\r\n var cacheEntryRemoved = new Promise(function (resolve) {\r\n lifecycle.cacheEntryRemoved = resolve;\r\n });\r\n var cacheDataLoaded = Promise.race([\r\n new Promise(function (resolve) {\r\n lifecycle.valueResolved = resolve;\r\n }),\r\n cacheEntryRemoved.then(function () {\r\n throw neverResolvedError;\r\n })\r\n ]);\r\n cacheDataLoaded.catch(function () {\r\n });\r\n lifecycleMap[queryCacheKey] = lifecycle;\r\n var selector = api.endpoints[endpointName].select(endpointDefinition.type === DefinitionType.query ? originalArgs : queryCacheKey);\r\n var extra = mwApi.dispatch(function (_, __, extra2) { return extra2; });\r\n var lifecycleApi = __spreadProps(__spreadValues({}, mwApi), {\r\n getCacheEntry: function () { return selector(mwApi.getState()); },\r\n requestId: requestId,\r\n extra: extra,\r\n updateCachedData: endpointDefinition.type === DefinitionType.query ? function (updateRecipe) { return mwApi.dispatch(api.util.updateQueryData(endpointName, originalArgs, updateRecipe)); } : void 0,\r\n cacheDataLoaded: cacheDataLoaded,\r\n cacheEntryRemoved: cacheEntryRemoved\r\n });\r\n var runningHandler = onCacheEntryAdded(originalArgs, lifecycleApi);\r\n Promise.resolve(runningHandler).catch(function (e) {\r\n if (e === neverResolvedError)\r\n return;\r\n throw e;\r\n });\r\n }\r\n return handler;\r\n};\r\n// src/query/core/buildMiddleware/queryLifecycle.ts\r\nimport { isPending as isPending2, isRejected as isRejected2, isFulfilled as isFulfilled5 } from \"@reduxjs/toolkit\";\r\nvar buildQueryLifecycleHandler = function (_j) {\r\n var api = _j.api, context = _j.context, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk;\r\n var isPendingThunk = isPending2(queryThunk, mutationThunk);\r\n var isRejectedThunk = isRejected2(queryThunk, mutationThunk);\r\n var isFullfilledThunk = isFulfilled5(queryThunk, mutationThunk);\r\n var lifecycleMap = {};\r\n var handler = function (action, mwApi) {\r\n var _a, _b, _c;\r\n if (isPendingThunk(action)) {\r\n var _j = action.meta, requestId = _j.requestId, _k = _j.arg, endpointName_1 = _k.endpointName, originalArgs_1 = _k.originalArgs;\r\n var endpointDefinition = context.endpointDefinitions[endpointName_1];\r\n var onQueryStarted = endpointDefinition == null ? void 0 : endpointDefinition.onQueryStarted;\r\n if (onQueryStarted) {\r\n var lifecycle_1 = {};\r\n var queryFulfilled = new Promise(function (resolve, reject) {\r\n lifecycle_1.resolve = resolve;\r\n lifecycle_1.reject = reject;\r\n });\r\n queryFulfilled.catch(function () {\r\n });\r\n lifecycleMap[requestId] = lifecycle_1;\r\n var selector_1 = api.endpoints[endpointName_1].select(endpointDefinition.type === DefinitionType.query ? originalArgs_1 : requestId);\r\n var extra = mwApi.dispatch(function (_, __, extra2) { return extra2; });\r\n var lifecycleApi = __spreadProps(__spreadValues({}, mwApi), {\r\n getCacheEntry: function () { return selector_1(mwApi.getState()); },\r\n requestId: requestId,\r\n extra: extra,\r\n updateCachedData: endpointDefinition.type === DefinitionType.query ? function (updateRecipe) { return mwApi.dispatch(api.util.updateQueryData(endpointName_1, originalArgs_1, updateRecipe)); } : void 0,\r\n queryFulfilled: queryFulfilled\r\n });\r\n onQueryStarted(originalArgs_1, lifecycleApi);\r\n }\r\n }\r\n else if (isFullfilledThunk(action)) {\r\n var _l = action.meta, requestId = _l.requestId, baseQueryMeta = _l.baseQueryMeta;\r\n (_a = lifecycleMap[requestId]) == null ? void 0 : _a.resolve({\r\n data: action.payload,\r\n meta: baseQueryMeta\r\n });\r\n delete lifecycleMap[requestId];\r\n }\r\n else if (isRejectedThunk(action)) {\r\n var _m = action.meta, requestId = _m.requestId, rejectedWithValue = _m.rejectedWithValue, baseQueryMeta = _m.baseQueryMeta;\r\n (_c = lifecycleMap[requestId]) == null ? void 0 : _c.reject({\r\n error: (_b = action.payload) != null ? _b : action.error,\r\n isUnhandledError: !rejectedWithValue,\r\n meta: baseQueryMeta\r\n });\r\n delete lifecycleMap[requestId];\r\n }\r\n };\r\n return handler;\r\n};\r\n// src/query/core/buildMiddleware/devMiddleware.ts\r\nvar buildDevCheckHandler = function (_j) {\r\n var api = _j.api, apiUid = _j.context.apiUid, reducerPath = _j.reducerPath;\r\n return function (action, mwApi) {\r\n var _a, _b;\r\n if (api.util.resetApiState.match(action)) {\r\n mwApi.dispatch(api.internalActions.middlewareRegistered(apiUid));\r\n }\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\r\n if (api.internalActions.middlewareRegistered.match(action) && action.payload === apiUid && ((_b = (_a = mwApi.getState()[reducerPath]) == null ? void 0 : _a.config) == null ? void 0 : _b.middlewareRegistered) === \"conflict\") {\r\n console.warn(\"There is a mismatch between slice and middleware for the reducerPath \\\"\" + reducerPath + \"\\\".\\nYou can only have one api per reducer path, this will lead to crashes in various situations!\" + (reducerPath === \"api\" ? \"\\nIf you have multiple apis, you *have* to specify the reducerPath option when using createApi!\" : \"\"));\r\n }\r\n }\r\n };\r\n};\r\n// src/query/core/buildMiddleware/batchActions.ts\r\nimport { produceWithPatches as produceWithPatches2 } from \"immer\";\r\nvar promise;\r\nvar queueMicrotaskShim = typeof queueMicrotask === \"function\" ? queueMicrotask.bind(typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : globalThis) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {\r\n throw err;\r\n}, 0); }); };\r\nvar buildBatchedActionsHandler = function (_j) {\r\n var api = _j.api, queryThunk = _j.queryThunk, internalState = _j.internalState;\r\n var subscriptionsPrefix = api.reducerPath + \"/subscriptions\";\r\n var previousSubscriptions = null;\r\n var dispatchQueued = false;\r\n var _k = api.internalActions, updateSubscriptionOptions = _k.updateSubscriptionOptions, unsubscribeQueryResult = _k.unsubscribeQueryResult;\r\n var actuallyMutateSubscriptions = function (mutableState, action) {\r\n var _a, _b, _c, _d, _e, _f, _g, _h, _i;\r\n if (updateSubscriptionOptions.match(action)) {\r\n var _j = action.payload, queryCacheKey = _j.queryCacheKey, requestId = _j.requestId, options = _j.options;\r\n if ((_a = mutableState == null ? void 0 : mutableState[queryCacheKey]) == null ? void 0 : _a[requestId]) {\r\n mutableState[queryCacheKey][requestId] = options;\r\n }\r\n return true;\r\n }\r\n if (unsubscribeQueryResult.match(action)) {\r\n var _k = action.payload, queryCacheKey = _k.queryCacheKey, requestId = _k.requestId;\r\n if (mutableState[queryCacheKey]) {\r\n delete mutableState[queryCacheKey][requestId];\r\n }\r\n return true;\r\n }\r\n if (api.internalActions.removeQueryResult.match(action)) {\r\n delete mutableState[action.payload.queryCacheKey];\r\n return true;\r\n }\r\n if (queryThunk.pending.match(action)) {\r\n var _l = action.meta, arg = _l.arg, requestId = _l.requestId;\r\n if (arg.subscribe) {\r\n var substate = (_c = mutableState[_b = arg.queryCacheKey]) != null ? _c : mutableState[_b] = {};\r\n substate[requestId] = (_e = (_d = arg.subscriptionOptions) != null ? _d : substate[requestId]) != null ? _e : {};\r\n return true;\r\n }\r\n }\r\n if (queryThunk.rejected.match(action)) {\r\n var _m = action.meta, condition = _m.condition, arg = _m.arg, requestId = _m.requestId;\r\n if (condition && arg.subscribe) {\r\n var substate = (_g = mutableState[_f = arg.queryCacheKey]) != null ? _g : mutableState[_f] = {};\r\n substate[requestId] = (_i = (_h = arg.subscriptionOptions) != null ? _h : substate[requestId]) != null ? _i : {};\r\n return true;\r\n }\r\n }\r\n return false;\r\n };\r\n return function (action, mwApi) {\r\n var _a, _b;\r\n if (!previousSubscriptions) {\r\n previousSubscriptions = JSON.parse(JSON.stringify(internalState.currentSubscriptions));\r\n }\r\n if (api.internalActions.internal_probeSubscription.match(action)) {\r\n var _j = action.payload, queryCacheKey = _j.queryCacheKey, requestId = _j.requestId;\r\n var hasSubscription = !!((_a = internalState.currentSubscriptions[queryCacheKey]) == null ? void 0 : _a[requestId]);\r\n return [false, hasSubscription];\r\n }\r\n var didMutate = actuallyMutateSubscriptions(internalState.currentSubscriptions, action);\r\n if (didMutate) {\r\n if (!dispatchQueued) {\r\n queueMicrotaskShim(function () {\r\n var newSubscriptions = JSON.parse(JSON.stringify(internalState.currentSubscriptions));\r\n var _j = produceWithPatches2(previousSubscriptions, function () { return newSubscriptions; }), patches = _j[1];\r\n mwApi.next(api.internalActions.subscriptionsUpdated(patches));\r\n previousSubscriptions = newSubscriptions;\r\n dispatchQueued = false;\r\n });\r\n dispatchQueued = true;\r\n }\r\n var isSubscriptionSliceAction = !!((_b = action.type) == null ? void 0 : _b.startsWith(subscriptionsPrefix));\r\n var isAdditionalSubscriptionAction = queryThunk.rejected.match(action) && action.meta.condition && !!action.meta.arg.subscribe;\r\n var actionShouldContinue = !isSubscriptionSliceAction && !isAdditionalSubscriptionAction;\r\n return [actionShouldContinue, false];\r\n }\r\n return [true, false];\r\n };\r\n};\r\n// src/query/core/buildMiddleware/index.ts\r\nfunction buildMiddleware(input) {\r\n var reducerPath = input.reducerPath, queryThunk = input.queryThunk, api = input.api, context = input.context;\r\n var apiUid = context.apiUid;\r\n var actions = {\r\n invalidateTags: createAction3(reducerPath + \"/invalidateTags\")\r\n };\r\n var isThisApiSliceAction = function (action) {\r\n return !!action && typeof action.type === \"string\" && action.type.startsWith(reducerPath + \"/\");\r\n };\r\n var handlerBuilders = [\r\n buildDevCheckHandler,\r\n buildCacheCollectionHandler,\r\n buildInvalidationByTagsHandler,\r\n buildPollingHandler,\r\n buildCacheLifecycleHandler,\r\n buildQueryLifecycleHandler\r\n ];\r\n var middleware = function (mwApi) {\r\n var initialized2 = false;\r\n var internalState = {\r\n currentSubscriptions: {}\r\n };\r\n var builderArgs = __spreadProps(__spreadValues({}, input), {\r\n internalState: internalState,\r\n refetchQuery: refetchQuery\r\n });\r\n var handlers = handlerBuilders.map(function (build) { return build(builderArgs); });\r\n var batchedActionsHandler = buildBatchedActionsHandler(builderArgs);\r\n var windowEventsHandler = buildWindowEventHandler(builderArgs);\r\n return function (next) {\r\n return function (action) {\r\n if (!initialized2) {\r\n initialized2 = true;\r\n mwApi.dispatch(api.internalActions.middlewareRegistered(apiUid));\r\n }\r\n var mwApiWithNext = __spreadProps(__spreadValues({}, mwApi), { next: next });\r\n var stateBefore = mwApi.getState();\r\n var _j = batchedActionsHandler(action, mwApiWithNext, stateBefore), actionShouldContinue = _j[0], hasSubscription = _j[1];\r\n var res;\r\n if (actionShouldContinue) {\r\n res = next(action);\r\n }\r\n else {\r\n res = hasSubscription;\r\n }\r\n if (!!mwApi.getState()[reducerPath]) {\r\n windowEventsHandler(action, mwApiWithNext, stateBefore);\r\n if (isThisApiSliceAction(action) || context.hasRehydrationInfo(action)) {\r\n for (var _k = 0, handlers_1 = handlers; _k < handlers_1.length; _k++) {\r\n var handler = handlers_1[_k];\r\n handler(action, mwApiWithNext, stateBefore);\r\n }\r\n }\r\n }\r\n return res;\r\n };\r\n };\r\n };\r\n return { middleware: middleware, actions: actions };\r\n function refetchQuery(querySubState, queryCacheKey, override) {\r\n if (override === void 0) { override = {}; }\r\n return queryThunk(__spreadValues({\r\n type: \"query\",\r\n endpointName: querySubState.endpointName,\r\n originalArgs: querySubState.originalArgs,\r\n subscribe: false,\r\n forceRefetch: true,\r\n queryCacheKey: queryCacheKey\r\n }, override));\r\n }\r\n}\r\n// src/query/tsHelpers.ts\r\nfunction assertCast(v) {\r\n}\r\nfunction safeAssign(target) {\r\n var args = [];\r\n for (var _j = 1; _j < arguments.length; _j++) {\r\n args[_j - 1] = arguments[_j];\r\n }\r\n Object.assign.apply(Object, __spreadArray([target], args));\r\n}\r\n// src/query/core/module.ts\r\nimport { enablePatches } from \"immer\";\r\nvar coreModuleName = /* @__PURE__ */ Symbol();\r\nvar coreModule = function () { return ({\r\n name: coreModuleName,\r\n init: function (api, _j, context) {\r\n var baseQuery = _j.baseQuery, tagTypes = _j.tagTypes, reducerPath = _j.reducerPath, serializeQueryArgs = _j.serializeQueryArgs, keepUnusedDataFor = _j.keepUnusedDataFor, refetchOnMountOrArgChange = _j.refetchOnMountOrArgChange, refetchOnFocus = _j.refetchOnFocus, refetchOnReconnect = _j.refetchOnReconnect;\r\n enablePatches();\r\n assertCast(serializeQueryArgs);\r\n var assertTagType = function (tag) {\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\r\n if (!tagTypes.includes(tag.type)) {\r\n console.error(\"Tag type '\" + tag.type + \"' was used, but not specified in `tagTypes`!\");\r\n }\r\n }\r\n return tag;\r\n };\r\n Object.assign(api, {\r\n reducerPath: reducerPath,\r\n endpoints: {},\r\n internalActions: {\r\n onOnline: onOnline,\r\n onOffline: onOffline,\r\n onFocus: onFocus,\r\n onFocusLost: onFocusLost\r\n },\r\n util: {}\r\n });\r\n var _k = buildThunks({\r\n baseQuery: baseQuery,\r\n reducerPath: reducerPath,\r\n context: context,\r\n api: api,\r\n serializeQueryArgs: serializeQueryArgs\r\n }), queryThunk = _k.queryThunk, mutationThunk = _k.mutationThunk, patchQueryData = _k.patchQueryData, updateQueryData = _k.updateQueryData, upsertQueryData = _k.upsertQueryData, prefetch = _k.prefetch, buildMatchThunkActions = _k.buildMatchThunkActions;\r\n var _l = buildSlice({\r\n context: context,\r\n queryThunk: queryThunk,\r\n mutationThunk: mutationThunk,\r\n reducerPath: reducerPath,\r\n assertTagType: assertTagType,\r\n config: {\r\n refetchOnFocus: refetchOnFocus,\r\n refetchOnReconnect: refetchOnReconnect,\r\n refetchOnMountOrArgChange: refetchOnMountOrArgChange,\r\n keepUnusedDataFor: keepUnusedDataFor,\r\n reducerPath: reducerPath\r\n }\r\n }), reducer = _l.reducer, sliceActions = _l.actions;\r\n safeAssign(api.util, {\r\n patchQueryData: patchQueryData,\r\n updateQueryData: updateQueryData,\r\n upsertQueryData: upsertQueryData,\r\n prefetch: prefetch,\r\n resetApiState: sliceActions.resetApiState\r\n });\r\n safeAssign(api.internalActions, sliceActions);\r\n var _m = buildMiddleware({\r\n reducerPath: reducerPath,\r\n context: context,\r\n queryThunk: queryThunk,\r\n mutationThunk: mutationThunk,\r\n api: api,\r\n assertTagType: assertTagType\r\n }), middleware = _m.middleware, middlewareActions = _m.actions;\r\n safeAssign(api.util, middlewareActions);\r\n safeAssign(api, { reducer: reducer, middleware: middleware });\r\n var _o = buildSelectors({\r\n serializeQueryArgs: serializeQueryArgs,\r\n reducerPath: reducerPath\r\n }), buildQuerySelector = _o.buildQuerySelector, buildMutationSelector = _o.buildMutationSelector, selectInvalidatedBy = _o.selectInvalidatedBy;\r\n safeAssign(api.util, { selectInvalidatedBy: selectInvalidatedBy });\r\n var _p = buildInitiate({\r\n queryThunk: queryThunk,\r\n mutationThunk: mutationThunk,\r\n api: api,\r\n serializeQueryArgs: serializeQueryArgs,\r\n context: context\r\n }), buildInitiateQuery = _p.buildInitiateQuery, buildInitiateMutation = _p.buildInitiateMutation, getRunningMutationThunk = _p.getRunningMutationThunk, getRunningMutationsThunk = _p.getRunningMutationsThunk, getRunningQueriesThunk = _p.getRunningQueriesThunk, getRunningQueryThunk = _p.getRunningQueryThunk, getRunningOperationPromises = _p.getRunningOperationPromises, removalWarning = _p.removalWarning;\r\n safeAssign(api.util, {\r\n getRunningOperationPromises: getRunningOperationPromises,\r\n getRunningOperationPromise: removalWarning,\r\n getRunningMutationThunk: getRunningMutationThunk,\r\n getRunningMutationsThunk: getRunningMutationsThunk,\r\n getRunningQueryThunk: getRunningQueryThunk,\r\n getRunningQueriesThunk: getRunningQueriesThunk\r\n });\r\n return {\r\n name: coreModuleName,\r\n injectEndpoint: function (endpointName, definition) {\r\n var _a, _b;\r\n var anyApi = api;\r\n (_b = (_a = anyApi.endpoints)[endpointName]) != null ? _b : _a[endpointName] = {};\r\n if (isQueryDefinition(definition)) {\r\n safeAssign(anyApi.endpoints[endpointName], {\r\n name: endpointName,\r\n select: buildQuerySelector(endpointName, definition),\r\n initiate: buildInitiateQuery(endpointName, definition)\r\n }, buildMatchThunkActions(queryThunk, endpointName));\r\n }\r\n else if (isMutationDefinition(definition)) {\r\n safeAssign(anyApi.endpoints[endpointName], {\r\n name: endpointName,\r\n select: buildMutationSelector(),\r\n initiate: buildInitiateMutation(endpointName)\r\n }, buildMatchThunkActions(mutationThunk, endpointName));\r\n }\r\n }\r\n };\r\n }\r\n}); };\r\n// src/query/core/index.ts\r\nvar createApi = /* @__PURE__ */ buildCreateApi(coreModule());\r\nexport { QueryStatus, buildCreateApi, copyWithStructuralSharing, coreModule, createApi, defaultSerializeQueryArgs, fakeBaseQuery, fetchBaseQuery, retry, setupListeners, skipSelector, skipToken };\r\n//# sourceMappingURL=rtk-query.esm.js.map","var __spreadArray = (this && this.__spreadArray) || function (to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n};\r\nvar __defProp = Object.defineProperty;\r\nvar __defProps = Object.defineProperties;\r\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\r\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\r\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\r\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\r\nvar __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };\r\nvar __spreadValues = function (a, b) {\r\n for (var prop in b || (b = {}))\r\n if (__hasOwnProp.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n if (__getOwnPropSymbols)\r\n for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {\r\n var prop = _c[_i];\r\n if (__propIsEnum.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n }\r\n return a;\r\n};\r\nvar __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };\r\n// src/query/react/index.ts\r\nimport { coreModule, buildCreateApi } from \"@reduxjs/toolkit/query\";\r\n// src/query/react/buildHooks.ts\r\nimport { createSelector } from \"@reduxjs/toolkit\";\r\nimport { useCallback, useDebugValue, useEffect as useEffect3, useLayoutEffect, useMemo as useMemo2, useRef as useRef3, useState } from \"react\";\r\nimport { QueryStatus, skipToken } from \"@reduxjs/toolkit/query\";\r\nimport { shallowEqual as shallowEqual2 } from \"react-redux\";\r\n// src/query/react/useSerializedStableValue.ts\r\nimport { useEffect, useRef, useMemo } from \"react\";\r\nfunction useStableQueryArgs(queryArgs, serialize, endpointDefinition, endpointName) {\r\n var incoming = useMemo(function () { return ({\r\n queryArgs: queryArgs,\r\n serialized: typeof queryArgs == \"object\" ? serialize({ queryArgs: queryArgs, endpointDefinition: endpointDefinition, endpointName: endpointName }) : queryArgs\r\n }); }, [queryArgs, serialize, endpointDefinition, endpointName]);\r\n var cache = useRef(incoming);\r\n useEffect(function () {\r\n if (cache.current.serialized !== incoming.serialized) {\r\n cache.current = incoming;\r\n }\r\n }, [incoming]);\r\n return cache.current.serialized === incoming.serialized ? cache.current.queryArgs : queryArgs;\r\n}\r\n// src/query/react/constants.ts\r\nvar UNINITIALIZED_VALUE = Symbol();\r\n// src/query/react/useShallowStableValue.ts\r\nimport { useEffect as useEffect2, useRef as useRef2 } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nfunction useShallowStableValue(value) {\r\n var cache = useRef2(value);\r\n useEffect2(function () {\r\n if (!shallowEqual(cache.current, value)) {\r\n cache.current = value;\r\n }\r\n }, [value]);\r\n return shallowEqual(cache.current, value) ? cache.current : value;\r\n}\r\n// src/query/defaultSerializeQueryArgs.ts\r\nimport { isPlainObject } from \"@reduxjs/toolkit\";\r\nvar defaultSerializeQueryArgs = function (_c) {\r\n var endpointName = _c.endpointName, queryArgs = _c.queryArgs;\r\n return endpointName + \"(\" + JSON.stringify(queryArgs, function (key, value) { return isPlainObject(value) ? Object.keys(value).sort().reduce(function (acc, key2) {\r\n acc[key2] = value[key2];\r\n return acc;\r\n }, {}) : value; }) + \")\";\r\n};\r\n// src/query/react/buildHooks.ts\r\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" && !!window.document && !!window.document.createElement ? useLayoutEffect : useEffect3;\r\nvar defaultMutationStateSelector = function (x) { return x; };\r\nvar noPendingQueryStateSelector = function (selected) {\r\n if (selected.isUninitialized) {\r\n return __spreadProps(__spreadValues({}, selected), {\r\n isUninitialized: false,\r\n isFetching: true,\r\n isLoading: selected.data !== void 0 ? false : true,\r\n status: QueryStatus.pending\r\n });\r\n }\r\n return selected;\r\n};\r\nfunction buildHooks(_c) {\r\n var api = _c.api, _d = _c.moduleOptions, batch = _d.batch, useDispatch = _d.useDispatch, useSelector = _d.useSelector, useStore = _d.useStore, unstable__sideEffectsInRender = _d.unstable__sideEffectsInRender, serializeQueryArgs = _c.serializeQueryArgs, context = _c.context;\r\n var usePossiblyImmediateEffect = unstable__sideEffectsInRender ? function (cb) { return cb(); } : useEffect3;\r\n return { buildQueryHooks: buildQueryHooks, buildMutationHook: buildMutationHook, usePrefetch: usePrefetch };\r\n function queryStatePreSelector(currentState, lastResult, queryArgs) {\r\n if ((lastResult == null ? void 0 : lastResult.endpointName) && currentState.isUninitialized) {\r\n var endpointName = lastResult.endpointName;\r\n var endpointDefinition = context.endpointDefinitions[endpointName];\r\n if (serializeQueryArgs({\r\n queryArgs: lastResult.originalArgs,\r\n endpointDefinition: endpointDefinition,\r\n endpointName: endpointName\r\n }) === serializeQueryArgs({\r\n queryArgs: queryArgs,\r\n endpointDefinition: endpointDefinition,\r\n endpointName: endpointName\r\n }))\r\n lastResult = void 0;\r\n }\r\n if (queryArgs === skipToken) {\r\n lastResult = void 0;\r\n }\r\n var data = currentState.isSuccess ? currentState.data : lastResult == null ? void 0 : lastResult.data;\r\n if (data === void 0)\r\n data = currentState.data;\r\n var hasData = data !== void 0;\r\n var isFetching = currentState.isLoading;\r\n var isLoading = !hasData && isFetching;\r\n var isSuccess = currentState.isSuccess || isFetching && hasData;\r\n return __spreadProps(__spreadValues({}, currentState), {\r\n data: data,\r\n currentData: currentState.data,\r\n isFetching: isFetching,\r\n isLoading: isLoading,\r\n isSuccess: isSuccess\r\n });\r\n }\r\n function usePrefetch(endpointName, defaultOptions) {\r\n var dispatch = useDispatch();\r\n var stableDefaultOptions = useShallowStableValue(defaultOptions);\r\n return useCallback(function (arg, options) { return dispatch(api.util.prefetch(endpointName, arg, __spreadValues(__spreadValues({}, stableDefaultOptions), options))); }, [endpointName, dispatch, stableDefaultOptions]);\r\n }\r\n function buildQueryHooks(name) {\r\n var useQuerySubscription = function (arg, _c) {\r\n var _d = _c === void 0 ? {} : _c, refetchOnReconnect = _d.refetchOnReconnect, refetchOnFocus = _d.refetchOnFocus, refetchOnMountOrArgChange = _d.refetchOnMountOrArgChange, _e = _d.skip, skip = _e === void 0 ? false : _e, _f = _d.pollingInterval, pollingInterval = _f === void 0 ? 0 : _f;\r\n var initiate = api.endpoints[name].initiate;\r\n var dispatch = useDispatch();\r\n var stableArg = useStableQueryArgs(skip ? skipToken : arg, defaultSerializeQueryArgs, context.endpointDefinitions[name], name);\r\n var stableSubscriptionOptions = useShallowStableValue({\r\n refetchOnReconnect: refetchOnReconnect,\r\n refetchOnFocus: refetchOnFocus,\r\n pollingInterval: pollingInterval\r\n });\r\n var lastRenderHadSubscription = useRef3(false);\r\n var promiseRef = useRef3();\r\n var _g = promiseRef.current || {}, queryCacheKey = _g.queryCacheKey, requestId = _g.requestId;\r\n var currentRenderHasSubscription = false;\r\n if (queryCacheKey && requestId) {\r\n var returnedValue = dispatch(api.internalActions.internal_probeSubscription({\r\n queryCacheKey: queryCacheKey,\r\n requestId: requestId\r\n }));\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (typeof returnedValue !== \"boolean\") {\r\n throw new Error(\"Warning: Middleware for RTK-Query API at reducerPath \\\"\" + api.reducerPath + \"\\\" has not been added to the store.\\n You must add the middleware for RTK-Query to function correctly!\");\r\n }\r\n }\r\n currentRenderHasSubscription = !!returnedValue;\r\n }\r\n var subscriptionRemoved = !currentRenderHasSubscription && lastRenderHadSubscription.current;\r\n usePossiblyImmediateEffect(function () {\r\n lastRenderHadSubscription.current = currentRenderHasSubscription;\r\n });\r\n usePossiblyImmediateEffect(function () {\r\n promiseRef.current = void 0;\r\n }, [subscriptionRemoved]);\r\n usePossiblyImmediateEffect(function () {\r\n var _a;\r\n var lastPromise = promiseRef.current;\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"removeMeOnCompilation\") {\r\n console.log(subscriptionRemoved);\r\n }\r\n if (stableArg === skipToken) {\r\n lastPromise == null ? void 0 : lastPromise.unsubscribe();\r\n promiseRef.current = void 0;\r\n return;\r\n }\r\n var lastSubscriptionOptions = (_a = promiseRef.current) == null ? void 0 : _a.subscriptionOptions;\r\n if (!lastPromise || lastPromise.arg !== stableArg) {\r\n lastPromise == null ? void 0 : lastPromise.unsubscribe();\r\n var promise = dispatch(initiate(stableArg, {\r\n subscriptionOptions: stableSubscriptionOptions,\r\n forceRefetch: refetchOnMountOrArgChange\r\n }));\r\n promiseRef.current = promise;\r\n }\r\n else if (stableSubscriptionOptions !== lastSubscriptionOptions) {\r\n lastPromise.updateSubscriptionOptions(stableSubscriptionOptions);\r\n }\r\n }, [\r\n dispatch,\r\n initiate,\r\n refetchOnMountOrArgChange,\r\n stableArg,\r\n stableSubscriptionOptions,\r\n subscriptionRemoved\r\n ]);\r\n useEffect3(function () {\r\n return function () {\r\n var _a;\r\n (_a = promiseRef.current) == null ? void 0 : _a.unsubscribe();\r\n promiseRef.current = void 0;\r\n };\r\n }, []);\r\n return useMemo2(function () { return ({\r\n refetch: function () {\r\n var _a;\r\n if (!promiseRef.current)\r\n throw new Error(\"Cannot refetch a query that has not been started yet.\");\r\n return (_a = promiseRef.current) == null ? void 0 : _a.refetch();\r\n }\r\n }); }, []);\r\n };\r\n var useLazyQuerySubscription = function (_c) {\r\n var _d = _c === void 0 ? {} : _c, refetchOnReconnect = _d.refetchOnReconnect, refetchOnFocus = _d.refetchOnFocus, _e = _d.pollingInterval, pollingInterval = _e === void 0 ? 0 : _e;\r\n var initiate = api.endpoints[name].initiate;\r\n var dispatch = useDispatch();\r\n var _f = useState(UNINITIALIZED_VALUE), arg = _f[0], setArg = _f[1];\r\n var promiseRef = useRef3();\r\n var stableSubscriptionOptions = useShallowStableValue({\r\n refetchOnReconnect: refetchOnReconnect,\r\n refetchOnFocus: refetchOnFocus,\r\n pollingInterval: pollingInterval\r\n });\r\n usePossiblyImmediateEffect(function () {\r\n var _a, _b;\r\n var lastSubscriptionOptions = (_a = promiseRef.current) == null ? void 0 : _a.subscriptionOptions;\r\n if (stableSubscriptionOptions !== lastSubscriptionOptions) {\r\n (_b = promiseRef.current) == null ? void 0 : _b.updateSubscriptionOptions(stableSubscriptionOptions);\r\n }\r\n }, [stableSubscriptionOptions]);\r\n var subscriptionOptionsRef = useRef3(stableSubscriptionOptions);\r\n usePossiblyImmediateEffect(function () {\r\n subscriptionOptionsRef.current = stableSubscriptionOptions;\r\n }, [stableSubscriptionOptions]);\r\n var trigger = useCallback(function (arg2, preferCacheValue) {\r\n if (preferCacheValue === void 0) { preferCacheValue = false; }\r\n var promise;\r\n batch(function () {\r\n var _a;\r\n (_a = promiseRef.current) == null ? void 0 : _a.unsubscribe();\r\n promiseRef.current = promise = dispatch(initiate(arg2, {\r\n subscriptionOptions: subscriptionOptionsRef.current,\r\n forceRefetch: !preferCacheValue\r\n }));\r\n setArg(arg2);\r\n });\r\n return promise;\r\n }, [dispatch, initiate]);\r\n useEffect3(function () {\r\n return function () {\r\n var _a;\r\n (_a = promiseRef == null ? void 0 : promiseRef.current) == null ? void 0 : _a.unsubscribe();\r\n };\r\n }, []);\r\n useEffect3(function () {\r\n if (arg !== UNINITIALIZED_VALUE && !promiseRef.current) {\r\n trigger(arg, true);\r\n }\r\n }, [arg, trigger]);\r\n return useMemo2(function () { return [trigger, arg]; }, [trigger, arg]);\r\n };\r\n var useQueryState = function (arg, _c) {\r\n var _d = _c === void 0 ? {} : _c, _e = _d.skip, skip = _e === void 0 ? false : _e, selectFromResult = _d.selectFromResult;\r\n var select = api.endpoints[name].select;\r\n var stableArg = useStableQueryArgs(skip ? skipToken : arg, serializeQueryArgs, context.endpointDefinitions[name], name);\r\n var lastValue = useRef3();\r\n var selectDefaultResult = useMemo2(function () { return createSelector([\r\n select(stableArg),\r\n function (_, lastResult) { return lastResult; },\r\n function (_) { return stableArg; }\r\n ], queryStatePreSelector); }, [select, stableArg]);\r\n var querySelector = useMemo2(function () { return selectFromResult ? createSelector([selectDefaultResult], selectFromResult) : selectDefaultResult; }, [selectDefaultResult, selectFromResult]);\r\n var currentState = useSelector(function (state) { return querySelector(state, lastValue.current); }, shallowEqual2);\r\n var store = useStore();\r\n var newLastValue = selectDefaultResult(store.getState(), lastValue.current);\r\n useIsomorphicLayoutEffect(function () {\r\n lastValue.current = newLastValue;\r\n }, [newLastValue]);\r\n return currentState;\r\n };\r\n return {\r\n useQueryState: useQueryState,\r\n useQuerySubscription: useQuerySubscription,\r\n useLazyQuerySubscription: useLazyQuerySubscription,\r\n useLazyQuery: function (options) {\r\n var _c = useLazyQuerySubscription(options), trigger = _c[0], arg = _c[1];\r\n var queryStateResults = useQueryState(arg, __spreadProps(__spreadValues({}, options), {\r\n skip: arg === UNINITIALIZED_VALUE\r\n }));\r\n var info = useMemo2(function () { return ({ lastArg: arg }); }, [arg]);\r\n return useMemo2(function () { return [trigger, queryStateResults, info]; }, [trigger, queryStateResults, info]);\r\n },\r\n useQuery: function (arg, options) {\r\n var querySubscriptionResults = useQuerySubscription(arg, options);\r\n var queryStateResults = useQueryState(arg, __spreadValues({\r\n selectFromResult: arg === skipToken || (options == null ? void 0 : options.skip) ? void 0 : noPendingQueryStateSelector\r\n }, options));\r\n var data = queryStateResults.data, status = queryStateResults.status, isLoading = queryStateResults.isLoading, isSuccess = queryStateResults.isSuccess, isError = queryStateResults.isError, error = queryStateResults.error;\r\n useDebugValue({ data: data, status: status, isLoading: isLoading, isSuccess: isSuccess, isError: isError, error: error });\r\n return useMemo2(function () { return __spreadValues(__spreadValues({}, queryStateResults), querySubscriptionResults); }, [queryStateResults, querySubscriptionResults]);\r\n }\r\n };\r\n }\r\n function buildMutationHook(name) {\r\n return function (_c) {\r\n var _d = _c === void 0 ? {} : _c, _e = _d.selectFromResult, selectFromResult = _e === void 0 ? defaultMutationStateSelector : _e, fixedCacheKey = _d.fixedCacheKey;\r\n var _f = api.endpoints[name], select = _f.select, initiate = _f.initiate;\r\n var dispatch = useDispatch();\r\n var _g = useState(), promise = _g[0], setPromise = _g[1];\r\n useEffect3(function () { return function () {\r\n if (!(promise == null ? void 0 : promise.arg.fixedCacheKey)) {\r\n promise == null ? void 0 : promise.reset();\r\n }\r\n }; }, [promise]);\r\n var triggerMutation = useCallback(function (arg) {\r\n var promise2 = dispatch(initiate(arg, { fixedCacheKey: fixedCacheKey }));\r\n setPromise(promise2);\r\n return promise2;\r\n }, [dispatch, initiate, fixedCacheKey]);\r\n var requestId = (promise || {}).requestId;\r\n var mutationSelector = useMemo2(function () { return createSelector([select({ fixedCacheKey: fixedCacheKey, requestId: promise == null ? void 0 : promise.requestId })], selectFromResult); }, [select, promise, selectFromResult, fixedCacheKey]);\r\n var currentState = useSelector(mutationSelector, shallowEqual2);\r\n var originalArgs = fixedCacheKey == null ? promise == null ? void 0 : promise.arg.originalArgs : void 0;\r\n var reset = useCallback(function () {\r\n batch(function () {\r\n if (promise) {\r\n setPromise(void 0);\r\n }\r\n if (fixedCacheKey) {\r\n dispatch(api.internalActions.removeMutationResult({\r\n requestId: requestId,\r\n fixedCacheKey: fixedCacheKey\r\n }));\r\n }\r\n });\r\n }, [dispatch, fixedCacheKey, promise, requestId]);\r\n var endpointName = currentState.endpointName, data = currentState.data, status = currentState.status, isLoading = currentState.isLoading, isSuccess = currentState.isSuccess, isError = currentState.isError, error = currentState.error;\r\n useDebugValue({\r\n endpointName: endpointName,\r\n data: data,\r\n status: status,\r\n isLoading: isLoading,\r\n isSuccess: isSuccess,\r\n isError: isError,\r\n error: error\r\n });\r\n var finalState = useMemo2(function () { return __spreadProps(__spreadValues({}, currentState), { originalArgs: originalArgs, reset: reset }); }, [currentState, originalArgs, reset]);\r\n return useMemo2(function () { return [triggerMutation, finalState]; }, [triggerMutation, finalState]);\r\n };\r\n }\r\n}\r\n// src/query/endpointDefinitions.ts\r\nvar DefinitionType;\r\n(function (DefinitionType2) {\r\n DefinitionType2[\"query\"] = \"query\";\r\n DefinitionType2[\"mutation\"] = \"mutation\";\r\n})(DefinitionType || (DefinitionType = {}));\r\nfunction isQueryDefinition(e) {\r\n return e.type === DefinitionType.query;\r\n}\r\nfunction isMutationDefinition(e) {\r\n return e.type === DefinitionType.mutation;\r\n}\r\n// src/query/utils/capitalize.ts\r\nfunction capitalize(str) {\r\n return str.replace(str[0], str[0].toUpperCase());\r\n}\r\n// src/query/tsHelpers.ts\r\nfunction safeAssign(target) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n Object.assign.apply(Object, __spreadArray([target], args));\r\n}\r\n// src/query/react/module.ts\r\nimport { useDispatch as rrUseDispatch, useSelector as rrUseSelector, useStore as rrUseStore, batch as rrBatch } from \"react-redux\";\r\nvar reactHooksModuleName = /* @__PURE__ */ Symbol();\r\nvar reactHooksModule = function (_c) {\r\n var _d = _c === void 0 ? {} : _c, _e = _d.batch, batch = _e === void 0 ? rrBatch : _e, _f = _d.useDispatch, useDispatch = _f === void 0 ? rrUseDispatch : _f, _g = _d.useSelector, useSelector = _g === void 0 ? rrUseSelector : _g, _h = _d.useStore, useStore = _h === void 0 ? rrUseStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j;\r\n return ({\r\n name: reactHooksModuleName,\r\n init: function (api, _c, context) {\r\n var serializeQueryArgs = _c.serializeQueryArgs;\r\n var anyApi = api;\r\n var _d = buildHooks({\r\n api: api,\r\n moduleOptions: {\r\n batch: batch,\r\n useDispatch: useDispatch,\r\n useSelector: useSelector,\r\n useStore: useStore,\r\n unstable__sideEffectsInRender: unstable__sideEffectsInRender\r\n },\r\n serializeQueryArgs: serializeQueryArgs,\r\n context: context\r\n }), buildQueryHooks = _d.buildQueryHooks, buildMutationHook = _d.buildMutationHook, usePrefetch = _d.usePrefetch;\r\n safeAssign(anyApi, { usePrefetch: usePrefetch });\r\n safeAssign(context, { batch: batch });\r\n return {\r\n injectEndpoint: function (endpointName, definition) {\r\n if (isQueryDefinition(definition)) {\r\n var _c = buildQueryHooks(endpointName), useQuery = _c.useQuery, useLazyQuery = _c.useLazyQuery, useLazyQuerySubscription = _c.useLazyQuerySubscription, useQueryState = _c.useQueryState, useQuerySubscription = _c.useQuerySubscription;\r\n safeAssign(anyApi.endpoints[endpointName], {\r\n useQuery: useQuery,\r\n useLazyQuery: useLazyQuery,\r\n useLazyQuerySubscription: useLazyQuerySubscription,\r\n useQueryState: useQueryState,\r\n useQuerySubscription: useQuerySubscription\r\n });\r\n api[\"use\" + capitalize(endpointName) + \"Query\"] = useQuery;\r\n api[\"useLazy\" + capitalize(endpointName) + \"Query\"] = useLazyQuery;\r\n }\r\n else if (isMutationDefinition(definition)) {\r\n var useMutation = buildMutationHook(endpointName);\r\n safeAssign(anyApi.endpoints[endpointName], {\r\n useMutation: useMutation\r\n });\r\n api[\"use\" + capitalize(endpointName) + \"Mutation\"] = useMutation;\r\n }\r\n }\r\n };\r\n }\r\n });\r\n};\r\n// src/query/react/index.ts\r\nexport * from \"@reduxjs/toolkit/query\";\r\n// src/query/react/ApiProvider.tsx\r\nimport { configureStore } from \"@reduxjs/toolkit\";\r\nimport { useEffect as useEffect4 } from \"react\";\r\nimport React from \"react\";\r\nimport { Provider } from \"react-redux\";\r\nimport { setupListeners } from \"@reduxjs/toolkit/query\";\r\nfunction ApiProvider(props) {\r\n var store = React.useState(function () {\r\n var _c;\r\n return configureStore({\r\n reducer: (_c = {},\r\n _c[props.api.reducerPath] = props.api.reducer,\r\n _c),\r\n middleware: function (gDM) { return gDM().concat(props.api.middleware); }\r\n });\r\n })[0];\r\n useEffect4(function () { return props.setupListeners === false ? void 0 : setupListeners(store.dispatch, props.setupListeners); }, [props.setupListeners]);\r\n return /* @__PURE__ */ React.createElement(Provider, {\r\n store: store,\r\n context: props.context\r\n }, props.children);\r\n}\r\n// src/query/react/index.ts\r\nvar createApi = /* @__PURE__ */ buildCreateApi(coreModule(), reactHooksModule());\r\nexport { ApiProvider, createApi, reactHooksModule };\r\n//# sourceMappingURL=rtk-query-react.esm.js.map","export default {}",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory();\n\t}\n}(this, function () {\n\n\t/*globals window, global, require*/\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\n\t var crypto;\n\n\t // Native crypto from window (Browser)\n\t if (typeof window !== 'undefined' && window.crypto) {\n\t crypto = window.crypto;\n\t }\n\n\t // Native crypto in web worker (Browser)\n\t if (typeof self !== 'undefined' && self.crypto) {\n\t crypto = self.crypto;\n\t }\n\n\t // Native crypto from worker\n\t if (typeof globalThis !== 'undefined' && globalThis.crypto) {\n\t crypto = globalThis.crypto;\n\t }\n\n\t // Native (experimental IE 11) crypto from window (Browser)\n\t if (!crypto && typeof window !== 'undefined' && window.msCrypto) {\n\t crypto = window.msCrypto;\n\t }\n\n\t // Native crypto from global (NodeJS)\n\t if (!crypto && typeof global !== 'undefined' && global.crypto) {\n\t crypto = global.crypto;\n\t }\n\n\t // Native crypto import via require (NodeJS)\n\t if (!crypto && typeof require === 'function') {\n\t try {\n\t crypto = require('crypto');\n\t } catch (err) {}\n\t }\n\n\t /*\n\t * Cryptographically secure pseudorandom number generator\n\t *\n\t * As Math.random() is cryptographically not safe to use\n\t */\n\t var cryptoSecureRandomInt = function () {\n\t if (crypto) {\n\t // Use getRandomValues method (Browser)\n\t if (typeof crypto.getRandomValues === 'function') {\n\t try {\n\t return crypto.getRandomValues(new Uint32Array(1))[0];\n\t } catch (err) {}\n\t }\n\n\t // Use randomBytes method (NodeJS)\n\t if (typeof crypto.randomBytes === 'function') {\n\t try {\n\t return crypto.randomBytes(4).readInt32LE();\n\t } catch (err) {}\n\t }\n\t }\n\n\t throw new Error('Native crypto module could not be used to get secure random number.');\n\t };\n\n\t /*\n\t * Local polyfill of Object.create\n\n\t */\n\t var create = Object.create || (function () {\n\t function F() {}\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }());\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var j = 0; j < thatSigBytes; j += 4) {\n\t thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t for (var i = 0; i < nBytes; i += 4) {\n\t words.push(cryptoSecureRandomInt());\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t var processedWords;\n\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var C_enc = C.enc;\n\n\t /**\n\t * Base64 encoding strategy.\n\t */\n\t var Base64 = C_enc.Base64 = {\n\t /**\n\t * Converts a word array to a Base64 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Base64 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var base64String = CryptoJS.enc.Base64.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\t var map = this._map;\n\n\t // Clamp excess bits\n\t wordArray.clamp();\n\n\t // Convert\n\t var base64Chars = [];\n\t for (var i = 0; i < sigBytes; i += 3) {\n\t var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\n\t var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\n\n\t var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\n\n\t for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\n\t base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\n\t }\n\t }\n\n\t // Add padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t while (base64Chars.length % 4) {\n\t base64Chars.push(paddingChar);\n\t }\n\t }\n\n\t return base64Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Base64 string to a word array.\n\t *\n\t * @param {string} base64Str The Base64 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Base64.parse(base64String);\n\t */\n\t parse: function (base64Str) {\n\t // Shortcuts\n\t var base64StrLength = base64Str.length;\n\t var map = this._map;\n\t var reverseMap = this._reverseMap;\n\n\t if (!reverseMap) {\n\t reverseMap = this._reverseMap = [];\n\t for (var j = 0; j < map.length; j++) {\n\t reverseMap[map.charCodeAt(j)] = j;\n\t }\n\t }\n\n\t // Ignore padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t var paddingIndex = base64Str.indexOf(paddingChar);\n\t if (paddingIndex !== -1) {\n\t base64StrLength = paddingIndex;\n\t }\n\t }\n\n\t // Convert\n\t return parseLoop(base64Str, base64StrLength, reverseMap);\n\n\t },\n\n\t _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\n\t };\n\n\t function parseLoop(base64Str, base64StrLength, reverseMap) {\n\t var words = [];\n\t var nBytes = 0;\n\t for (var i = 0; i < base64StrLength; i++) {\n\t if (i % 4) {\n\t var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\n\t var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\n\t var bitsCombined = bits1 | bits2;\n\t words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\n\t nBytes++;\n\t }\n\t }\n\t return WordArray.create(words, nBytes);\n\t }\n\t}());\n\n\n\treturn CryptoJS.enc.Base64;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Check if typed arrays are supported\n\t if (typeof ArrayBuffer != 'function') {\n\t return;\n\t }\n\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\n\t // Reference original init\n\t var superInit = WordArray.init;\n\n\t // Augment WordArray.init to handle typed arrays\n\t var subInit = WordArray.init = function (typedArray) {\n\t // Convert buffers to uint8\n\t if (typedArray instanceof ArrayBuffer) {\n\t typedArray = new Uint8Array(typedArray);\n\t }\n\n\t // Convert other array views to uint8\n\t if (\n\t typedArray instanceof Int8Array ||\n\t (typeof Uint8ClampedArray !== \"undefined\" && typedArray instanceof Uint8ClampedArray) ||\n\t typedArray instanceof Int16Array ||\n\t typedArray instanceof Uint16Array ||\n\t typedArray instanceof Int32Array ||\n\t typedArray instanceof Uint32Array ||\n\t typedArray instanceof Float32Array ||\n\t typedArray instanceof Float64Array\n\t ) {\n\t typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);\n\t }\n\n\t // Handle Uint8Array\n\t if (typedArray instanceof Uint8Array) {\n\t // Shortcut\n\t var typedArrayByteLength = typedArray.byteLength;\n\n\t // Extract bytes\n\t var words = [];\n\t for (var i = 0; i < typedArrayByteLength; i++) {\n\t words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);\n\t }\n\n\t // Initialize this word array\n\t superInit.call(this, words, typedArrayByteLength);\n\t } else {\n\t // Else call normal init\n\t superInit.apply(this, arguments);\n\t }\n\t };\n\n\t subInit.prototype = WordArray;\n\t}());\n\n\n\treturn CryptoJS.lib.WordArray;\n\n}));","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar sha256_1 = __importDefault(require(\"crypto-js/sha256\"));\nvar enc_base64_1 = __importDefault(require(\"crypto-js/enc-base64\"));\nvar lib_typedarrays_1 = __importDefault(require(\"crypto-js/lib-typedarrays\"));\nvar PKCE = /** @class */ (function () {\n /**\n * Initialize the instance with configuration\n * @param {IConfig} config\n */\n function PKCE(config) {\n this.state = '';\n this.codeVerifier = '';\n this.config = config;\n }\n /**\n * Generate the authorize url\n * @param {object} additionalParams include additional parameters in the query\n * @return Promise\n */\n PKCE.prototype.authorizeUrl = function (additionalParams) {\n if (additionalParams === void 0) { additionalParams = {}; }\n var codeChallenge = this.pkceChallengeFromVerifier();\n var queryString = new URLSearchParams(Object.assign({\n response_type: 'code',\n client_id: this.config.client_id,\n state: this.getState(additionalParams.state || null),\n scope: this.config.requested_scopes,\n redirect_uri: this.config.redirect_uri,\n code_challenge: codeChallenge,\n code_challenge_method: 'S256',\n }, additionalParams)).toString();\n return \"\".concat(this.config.authorization_endpoint, \"?\").concat(queryString);\n };\n /**\n * Given the return url, get a token from the oauth server\n * @param url current urlwith params from server\n * @param {object} additionalParams include additional parameters in the request body\n * @return {Promise}\n */\n PKCE.prototype.exchangeForAccessToken = function (url, additionalParams) {\n var _this = this;\n if (additionalParams === void 0) { additionalParams = {}; }\n return this.parseAuthResponseUrl(url).then(function (q) {\n return fetch(_this.config.token_endpoint, {\n method: 'POST',\n body: new URLSearchParams(Object.assign({\n grant_type: 'authorization_code',\n code: q.code,\n client_id: _this.config.client_id,\n redirect_uri: _this.config.redirect_uri,\n code_verifier: _this.getCodeVerifier(),\n }, additionalParams)),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',\n },\n }).then(function (response) { return response.json(); });\n });\n };\n /**\n * Get the current codeVerifier or generate a new one\n * @return {string}\n */\n PKCE.prototype.getCodeVerifier = function () {\n if (this.codeVerifier === '') {\n this.codeVerifier = this.randomStringFromStorage('pkce_code_verifier');\n }\n return this.codeVerifier;\n };\n /**\n * Get the current state or generate a new one\n * @return {string}\n */\n PKCE.prototype.getState = function (explicit) {\n if (explicit === void 0) { explicit = null; }\n var stateKey = 'pkce_state';\n if (explicit !== null) {\n this.getStore().setItem(stateKey, explicit);\n }\n if (this.state === '') {\n this.state = this.randomStringFromStorage(stateKey);\n }\n return this.state;\n };\n /**\n * Get the query params as json from a auth response url\n * @param {string} url a url expected to have AuthResponse params\n * @return {Promise}\n */\n PKCE.prototype.parseAuthResponseUrl = function (url) {\n var params = new URL(url).searchParams;\n return this.validateAuthResponse({\n error: params.get('error'),\n query: params.get('query'),\n state: params.get('state'),\n code: params.get('code'),\n });\n };\n /**\n * Generate a code challenge\n * @return {Promise}\n */\n PKCE.prototype.pkceChallengeFromVerifier = function () {\n var hashed = (0, sha256_1.default)(this.getCodeVerifier());\n return enc_base64_1.default.stringify(hashed).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n };\n /**\n * Get a random string from storage or store a new one and return it's value\n * @param {string} key\n * @return {string}\n */\n PKCE.prototype.randomStringFromStorage = function (key) {\n var fromStorage = this.getStore().getItem(key);\n if (fromStorage === null) {\n this.getStore().setItem(key, lib_typedarrays_1.default.random(64));\n }\n return this.getStore().getItem(key) || '';\n };\n /**\n * Validates params from auth response\n * @param {AuthResponse} queryParams\n * @return {Promise}\n */\n PKCE.prototype.validateAuthResponse = function (queryParams) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n if (queryParams.error) {\n return reject({ error: queryParams.error });\n }\n if (queryParams.state !== _this.getState()) {\n return reject({ error: 'Invalid State' });\n }\n return resolve(queryParams);\n });\n };\n /**\n * Get the storage (sessionStorage / localStorage) to use, defaults to sessionStorage\n * @return {Storage}\n */\n PKCE.prototype.getStore = function () {\n var _a;\n return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.storage) || sessionStorage;\n };\n return PKCE;\n}());\nexports.default = PKCE;\n","import PKCE from 'js-pkce';\nimport { getToken } from './authStorage.js';\n\nconst baseUrl = import.meta.env.VITE_BACKEND_URL + 'oauth/';\n\nexport const urls = {\n authorize: baseUrl + 'authorize',\n token: baseUrl + 'token',\n revoke: baseUrl + 'revoke',\n};\n\nconst clientId = import.meta.env.VITE_OAUTH_CLIENT_ID;\n\nexport const scopes = ['public', 'account_data_read', 'door_control'].join(' ');\n\nexport const pkce = new PKCE({\n client_id: clientId,\n redirect_uri: window.location.protocol + '//' + window.location.host + import.meta.env.BASE_URL + 'oauth-callback',\n authorization_endpoint: urls.authorize,\n token_endpoint: urls.token,\n requested_scopes: scopes,\n});\n\nexport const revokeToken = async token => fetch(urls.revoke, {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer ' + getToken(),\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n client_id: clientId,\n token,\n }),\n});\n","import { scopes } from './oauth.js';\n\nconst ACCESS_TOKEN_KEY = 'accessToken';\nconst ACCESS_TOKEN_EXPIRE_KEY = 'accessTokenExpire';\nconst REFRESH_TOKEN_KEY = 'refreshToken';\n\nexport const getToken = () => localStorage.getItem(ACCESS_TOKEN_KEY);\n\nexport const getTokenExpireTimestamp = () => localStorage.getItem(ACCESS_TOKEN_EXPIRE_KEY);\n\nexport const getRefreshToken = () => localStorage.getItem(REFRESH_TOKEN_KEY);\n\nexport const setTokens = tokenResponse => {\n if (tokenResponse.hasOwnProperty('error') && tokenResponse.hasOwnProperty('error_description')) {\n throw new Error(tokenResponse.error_description);\n }\n\n if (\n !tokenResponse.hasOwnProperty('access_token') ||\n !tokenResponse.hasOwnProperty('created_at') ||\n !tokenResponse.hasOwnProperty('expires_in') ||\n !tokenResponse.hasOwnProperty('refresh_token') ||\n !tokenResponse.hasOwnProperty('scope') ||\n !tokenResponse.hasOwnProperty('token_type') ||\n tokenResponse.token_type !== 'Bearer' ||\n tokenResponse.scope !== scopes\n ) {\n throw new Error('Incomplete response, missing fields');\n }\n\n localStorage.setItem(ACCESS_TOKEN_KEY, tokenResponse.access_token);\n localStorage.setItem(ACCESS_TOKEN_EXPIRE_KEY, tokenResponse.created_at + tokenResponse.expires_in);\n localStorage.setItem(REFRESH_TOKEN_KEY, tokenResponse.refresh_token);\n};\n\nexport const clearTokens = () => {\n localStorage.removeItem(ACCESS_TOKEN_KEY);\n localStorage.removeItem(ACCESS_TOKEN_EXPIRE_KEY);\n localStorage.removeItem(REFRESH_TOKEN_KEY);\n}\n\nexport const logout = async () => {\n // TODO\n // await revokeToken(getRefreshToken());\n // await revokeToken(getToken());\n clearTokens();\n};\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","export var E_TIMEOUT = new Error('timeout while waiting for mutex to become available');\nexport var E_ALREADY_LOCKED = new Error('mutex already locked');\nexport var E_CANCELED = new Error('request for lock canceled');\n","import { __awaiter, __generator } from \"tslib\";\nimport { E_CANCELED } from './errors';\nvar Semaphore = /** @class */ (function () {\n function Semaphore(_value, _cancelError) {\n if (_cancelError === void 0) { _cancelError = E_CANCELED; }\n this._value = _value;\n this._cancelError = _cancelError;\n this._weightedQueues = [];\n this._weightedWaiters = [];\n }\n Semaphore.prototype.acquire = function (weight) {\n var _this = this;\n if (weight === void 0) { weight = 1; }\n if (weight <= 0)\n throw new Error(\"invalid weight \".concat(weight, \": must be positive\"));\n return new Promise(function (resolve, reject) {\n if (!_this._weightedQueues[weight - 1])\n _this._weightedQueues[weight - 1] = [];\n _this._weightedQueues[weight - 1].push({ resolve: resolve, reject: reject });\n _this._dispatch();\n });\n };\n Semaphore.prototype.runExclusive = function (callback, weight) {\n if (weight === void 0) { weight = 1; }\n return __awaiter(this, void 0, void 0, function () {\n var _a, value, release;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this.acquire(weight)];\n case 1:\n _a = _b.sent(), value = _a[0], release = _a[1];\n _b.label = 2;\n case 2:\n _b.trys.push([2, , 4, 5]);\n return [4 /*yield*/, callback(value)];\n case 3: return [2 /*return*/, _b.sent()];\n case 4:\n release();\n return [7 /*endfinally*/];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n Semaphore.prototype.waitForUnlock = function (weight) {\n var _this = this;\n if (weight === void 0) { weight = 1; }\n if (weight <= 0)\n throw new Error(\"invalid weight \".concat(weight, \": must be positive\"));\n return new Promise(function (resolve) {\n if (!_this._weightedWaiters[weight - 1])\n _this._weightedWaiters[weight - 1] = [];\n _this._weightedWaiters[weight - 1].push(resolve);\n _this._dispatch();\n });\n };\n Semaphore.prototype.isLocked = function () {\n return this._value <= 0;\n };\n Semaphore.prototype.getValue = function () {\n return this._value;\n };\n Semaphore.prototype.setValue = function (value) {\n this._value = value;\n this._dispatch();\n };\n Semaphore.prototype.release = function (weight) {\n if (weight === void 0) { weight = 1; }\n if (weight <= 0)\n throw new Error(\"invalid weight \".concat(weight, \": must be positive\"));\n this._value += weight;\n this._dispatch();\n };\n Semaphore.prototype.cancel = function () {\n var _this = this;\n this._weightedQueues.forEach(function (queue) { return queue.forEach(function (entry) { return entry.reject(_this._cancelError); }); });\n this._weightedQueues = [];\n };\n Semaphore.prototype._dispatch = function () {\n var _a;\n for (var weight = this._value; weight > 0; weight--) {\n var queueEntry = (_a = this._weightedQueues[weight - 1]) === null || _a === void 0 ? void 0 : _a.shift();\n if (!queueEntry)\n continue;\n var previousValue = this._value;\n var previousWeight = weight;\n this._value -= weight;\n weight = this._value + 1;\n queueEntry.resolve([previousValue, this._newReleaser(previousWeight)]);\n }\n this._drainUnlockWaiters();\n };\n Semaphore.prototype._newReleaser = function (weight) {\n var _this = this;\n var called = false;\n return function () {\n if (called)\n return;\n called = true;\n _this.release(weight);\n };\n };\n Semaphore.prototype._drainUnlockWaiters = function () {\n for (var weight = this._value; weight > 0; weight--) {\n if (!this._weightedWaiters[weight - 1])\n continue;\n this._weightedWaiters[weight - 1].forEach(function (waiter) { return waiter(); });\n this._weightedWaiters[weight - 1] = [];\n }\n };\n return Semaphore;\n}());\nexport default Semaphore;\n","import { __awaiter, __generator } from \"tslib\";\nimport Semaphore from './Semaphore';\nvar Mutex = /** @class */ (function () {\n function Mutex(cancelError) {\n this._semaphore = new Semaphore(1, cancelError);\n }\n Mutex.prototype.acquire = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, releaser;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this._semaphore.acquire()];\n case 1:\n _a = _b.sent(), releaser = _a[1];\n return [2 /*return*/, releaser];\n }\n });\n });\n };\n Mutex.prototype.runExclusive = function (callback) {\n return this._semaphore.runExclusive(function () { return callback(); });\n };\n Mutex.prototype.isLocked = function () {\n return this._semaphore.isLocked();\n };\n Mutex.prototype.waitForUnlock = function () {\n return this._semaphore.waitForUnlock();\n };\n Mutex.prototype.release = function () {\n if (this._semaphore.isLocked())\n this._semaphore.release();\n };\n Mutex.prototype.cancel = function () {\n return this._semaphore.cancel();\n };\n return Mutex;\n}());\nexport default Mutex;\n","import { __awaiter, __generator } from \"tslib\";\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { E_TIMEOUT } from './errors';\nexport function withTimeout(sync, timeout, timeoutError) {\n var _this = this;\n if (timeoutError === void 0) { timeoutError = E_TIMEOUT; }\n return {\n acquire: function (weight) {\n if (weight !== undefined && weight <= 0) {\n throw new Error(\"invalid weight \".concat(weight, \": must be positive\"));\n }\n return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {\n var isTimeout, handle, ticket, release, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n isTimeout = false;\n handle = setTimeout(function () {\n isTimeout = true;\n reject(timeoutError);\n }, timeout);\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, sync.acquire(weight)];\n case 2:\n ticket = _a.sent();\n if (isTimeout) {\n release = Array.isArray(ticket) ? ticket[1] : ticket;\n release();\n }\n else {\n clearTimeout(handle);\n resolve(ticket);\n }\n return [3 /*break*/, 4];\n case 3:\n e_1 = _a.sent();\n if (!isTimeout) {\n clearTimeout(handle);\n reject(e_1);\n }\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n }); });\n },\n runExclusive: function (callback, weight) {\n return __awaiter(this, void 0, void 0, function () {\n var release, ticket;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n release = function () { return undefined; };\n _a.label = 1;\n case 1:\n _a.trys.push([1, , 7, 8]);\n return [4 /*yield*/, this.acquire(weight)];\n case 2:\n ticket = _a.sent();\n if (!Array.isArray(ticket)) return [3 /*break*/, 4];\n release = ticket[1];\n return [4 /*yield*/, callback(ticket[0])];\n case 3: return [2 /*return*/, _a.sent()];\n case 4:\n release = ticket;\n return [4 /*yield*/, callback()];\n case 5: return [2 /*return*/, _a.sent()];\n case 6: return [3 /*break*/, 8];\n case 7:\n release();\n return [7 /*endfinally*/];\n case 8: return [2 /*return*/];\n }\n });\n });\n },\n release: function (weight) {\n sync.release(weight);\n },\n cancel: function () {\n return sync.cancel();\n },\n waitForUnlock: function (weight) {\n if (weight !== undefined && weight <= 0) {\n throw new Error(\"invalid weight \".concat(weight, \": must be positive\"));\n }\n return new Promise(function (resolve, reject) {\n sync.waitForUnlock(weight).then(resolve);\n setTimeout(function () { return reject(timeoutError); }, timeout);\n });\n },\n isLocked: function () { return sync.isLocked(); },\n getValue: function () { return sync.getValue(); },\n setValue: function (value) { return sync.setValue(value); },\n };\n}\n","import { E_ALREADY_LOCKED } from './errors';\nimport { withTimeout } from './withTimeout';\n// eslint-disable-next-lisne @typescript-eslint/explicit-module-boundary-types\nexport function tryAcquire(sync, alreadyAcquiredError) {\n if (alreadyAcquiredError === void 0) { alreadyAcquiredError = E_ALREADY_LOCKED; }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return withTimeout(sync, 0, alreadyAcquiredError);\n}\n","import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';\nimport { clearTokens, getRefreshToken, getToken, getTokenExpireTimestamp, setTokens } from '../authStorage.js';\nimport { E_ALREADY_LOCKED, Mutex, tryAcquire } from 'async-mutex';\n\nconst refreshMutex = new Mutex();\nconst apiBaseUrl = import.meta.env.VITE_BACKEND_URL + 'api/';\n\nconst refreshToken = async (api, extraOptions) => {\n try {\n return await tryAcquire(refreshMutex).runExclusive(async () => {\n const refreshToken = getRefreshToken();\n\n if (refreshToken === null) {\n clearTokens();\n console.error('No refresh token found');\n return false;\n }\n\n const refreshResponse = (await anonymousBaseQuery({\n url: '../oauth/token',\n method: 'POST',\n body: {\n client_id: import.meta.env.VITE_OAUTH_CLIENT_ID,\n grant_type: 'refresh_token',\n refresh_token: refreshToken,\n },\n }, api, extraOptions))?.data;\n\n if (!refreshResponse) {\n clearTokens();\n console.error('Refreshing token failed');\n return false;\n }\n\n setTokens(refreshResponse);\n return true;\n });\n }\n catch (e) {\n if (e === E_ALREADY_LOCKED) {\n await refreshMutex.waitForUnlock();\n return true;\n }\n\n throw e;\n }\n};\n\nconst anonymousBaseQuery = fetchBaseQuery({\n baseUrl: apiBaseUrl,\n prepareHeaders: headers => {\n headers.set('accept', 'application/json');\n\n return headers;\n },\n});\n\nconst authenticatedBaseQuery = fetchBaseQuery({\n baseUrl: apiBaseUrl,\n prepareHeaders: headers => {\n headers.set('accept', 'application/json');\n\n const token = getToken();\n\n if (token) {\n headers.set('authorization', 'Bearer ' + token);\n }\n\n return headers;\n },\n});\n\nconst authenticatedBaseQueryWithReauth = async (args, api, extraOptions) => {\n const expire = getTokenExpireTimestamp();\n\n if (expire !== null && expire * 1000 < Date.now()) {\n await refreshToken(api, extraOptions);\n }\n\n let result = await authenticatedBaseQuery(args, api, extraOptions);\n\n if (result?.error?.status === 401 && await refreshToken(api, extraOptions)) {\n return authenticatedBaseQuery(args, api, extraOptions);\n }\n\n return result;\n};\n\nconst query = builder => url => builder.query({\n query: () => url,\n});\n\nexport const anonymousApiSlice = createApi({\n reducerPath: 'anonymousApi',\n baseQuery: anonymousBaseQuery,\n endpoints: builder => ({\n getPresentUsers: query(builder)('users/present'),\n }),\n});\n\nexport const authenticatedApiSlice = createApi({\n reducerPath: 'authenticatedApi',\n baseQuery: authenticatedBaseQueryWithReauth,\n endpoints: builder => ({\n getCurrentUser: query(builder)('current_user.json'),\n getDoors: query(builder)('doors.json'),\n doorAction: builder.mutation({\n query: params => ({\n url: 'doors/' + params.doorId + '/' + params.action,\n method: 'POST',\n }),\n }),\n }),\n});\n\nexport const {\n useGetPresentUsersQuery,\n} = anonymousApiSlice;\n\nexport const {\n useGetCurrentUserQuery,\n useGetDoorsQuery,\n useDoorActionMutation,\n} = authenticatedApiSlice;\n","import { createSlice } from '@reduxjs/toolkit';\n\nexport const sensorSlice = createSlice({\n name: 'sensor',\n initialState: {},\n reducers: {\n setSensor: (state, {\n payload: {\n topic,\n data,\n message,\n }\n }) => {\n state[topic] = {\n data,\n message,\n };\n },\n },\n});\n\nexport const sensorSelector = topic => state => state[sensorSlice.name][topic];\nexport const {setSensor} = sensorSlice.actions;\n","import {createSlice} from '@reduxjs/toolkit';\n\nexport const doorSlice = createSlice({\n name: 'door',\n initialState: {\n locked: null,\n unlocked: null,\n },\n reducers: {\n setState: (state, {\n payload: {\n property,\n value,\n },\n }) => {\n state[property] = value;\n },\n },\n});\n\nexport const doorStateSelector = property => state => state[doorSlice.name]?.[property];\n\nexport const doorLockStatusSelector = () => state => {\n const doorState = state[doorSlice.name];\n const locked = doorState.locked;\n const unlocked = doorState.unlocked;\n\n if (locked === null || unlocked === null) {\n return 'uninitialized';\n }\n\n if (locked && unlocked === false) {\n return 'locked';\n }\n\n if (locked === false && unlocked) {\n return 'unlocked';\n }\n\n if (locked === false && unlocked === false) {\n return 'busy';\n }\n\n if (locked && unlocked) {\n return 'invalid';\n }\n};\n\nexport const {setState} = doorSlice.actions;\n","import { configureStore } from '@reduxjs/toolkit';\nimport { setupListeners } from '@reduxjs/toolkit/query';\nimport { anonymousApiSlice, authenticatedApiSlice } from '../features/apiSlice';\nimport { sensorSlice } from '../features/sensorSlice';\nimport { doorSlice } from '../features/doorSlice.js';\n\nexport const store = configureStore({\n reducer: {\n [anonymousApiSlice.reducerPath]: anonymousApiSlice.reducer,\n [authenticatedApiSlice.reducerPath]: authenticatedApiSlice.reducer,\n [sensorSlice.name]: sensorSlice.reducer,\n [doorSlice.name]: doorSlice.reducer,\n },\n middleware: getDefaultMiddleware =>\n getDefaultMiddleware().concat(anonymousApiSlice.middleware).concat(authenticatedApiSlice.middleware),\n});\n\nsetupListeners(store.dispatch);\n","/**\n * @remix-run/router v1.2.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Types and Constants\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Actions represent the type of change to a location value.\n */\nvar Action;\n\n(function (Action) {\n /**\n * A POP indicates a change to an arbitrary index in the history stack, such\n * as a back or forward navigation. It does not describe the direction of the\n * navigation, only that the current index changed.\n *\n * Note: This is the default action for newly created history objects.\n */\n Action[\"Pop\"] = \"POP\";\n /**\n * A PUSH indicates a new entry being added to the history stack, such as when\n * a link is clicked and a new page loads. When this happens, all subsequent\n * entries in the stack are lost.\n */\n\n Action[\"Push\"] = \"PUSH\";\n /**\n * A REPLACE indicates the entry at the current index in the history stack\n * being replaced by a new one.\n */\n\n Action[\"Replace\"] = \"REPLACE\";\n})(Action || (Action = {}));\n\nconst PopStateEventType = \"popstate\";\n/**\n * Memory history stores the current location in memory. It is designed for use\n * in stateful non-browser environments like tests and React Native.\n */\n\nfunction createMemoryHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n let {\n initialEntries = [\"/\"],\n initialIndex,\n v5Compat = false\n } = options;\n let entries; // Declare so we can access from createMemoryLocation\n\n entries = initialEntries.map((entry, index) => createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n let action = Action.Pop;\n let listener = null;\n\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n\n function getCurrentLocation() {\n return entries[index];\n }\n\n function createMemoryLocation(to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n return location;\n }\n\n let history = {\n get index() {\n return index;\n },\n\n get action() {\n return action;\n },\n\n get location() {\n return getCurrentLocation();\n },\n\n createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n },\n\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation\n });\n }\n },\n\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation\n });\n }\n },\n\n go(delta) {\n action = Action.Pop;\n index = clampIndex(index + delta);\n\n if (listener) {\n listener({\n action,\n location: getCurrentLocation()\n });\n }\n },\n\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n\n };\n return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\n\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createBrowserLocation(window, globalHistory) {\n let {\n pathname,\n search,\n hash\n } = window.location;\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createBrowserHref(window, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\n\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createHashLocation(window, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window.location.hash.substr(1));\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createHashHref(window, to) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n\n function validateHashLocation(location, to) {\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n }\n\n return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\n\nfunction warning$1(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\n\n\nfunction getHistoryState(location) {\n return {\n usr: location.state,\n key: location.key\n };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\n\n\nfunction createLocation(current, to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = _extends({\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\"\n }, typeof to === \"string\" ? parsePath(to) : to, {\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n });\n\n return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\n\nfunction createPath(_ref) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = _ref;\n if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\n\nfunction parsePath(path) {\n let parsedPath = {};\n\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n\n let searchIndex = path.indexOf(\"?\");\n\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n\n if (path) {\n parsedPath.pathname = path;\n }\n }\n\n return parsedPath;\n}\nfunction createClientSideURL(location) {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base = typeof window !== \"undefined\" && typeof window.location !== \"undefined\" && window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n let href = typeof location === \"string\" ? location : createPath(location);\n invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n return new URL(href, base);\n}\n\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n if (options === void 0) {\n options = {};\n }\n\n let {\n window = document.defaultView,\n v5Compat = false\n } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener = null;\n\n function handlePop() {\n action = Action.Pop;\n\n if (listener) {\n listener({\n action,\n location: history.location\n });\n }\n }\n\n function push(to, state) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n let historyState = getHistoryState(location);\n let url = history.createHref(location); // try...catch because iOS limits us to 100 pushState calls :/\n\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location\n });\n }\n }\n\n function replace(to, state) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n let historyState = getHistoryState(location);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location\n });\n }\n }\n\n let history = {\n get action() {\n return action;\n },\n\n get location() {\n return getLocation(window, globalHistory);\n },\n\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n\n createHref(to) {\n return createHref(window, to);\n },\n\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createClientSideURL(typeof to === \"string\" ? to : createPath(to));\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n\n push,\n replace,\n\n go(n) {\n return globalHistory.go(n);\n }\n\n };\n return history;\n} //#endregion\n\nvar ResultType;\n\n(function (ResultType) {\n ResultType[\"data\"] = \"data\";\n ResultType[\"deferred\"] = \"deferred\";\n ResultType[\"redirect\"] = \"redirect\";\n ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\n\nfunction isIndexRoute(route) {\n return route.index === true;\n} // Walk the route tree generating unique IDs where necessary so we are working\n// solely with AgnosticDataRouteObject's within the Router\n\n\nfunction convertRoutesToDataRoutes(routes, parentPath, allIds) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n\n if (allIds === void 0) {\n allIds = new Set();\n }\n\n return routes.map((route, index) => {\n let treePath = [...parentPath, index];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n invariant(!allIds.has(id), \"Found a route id collision on id \\\"\" + id + \"\\\". Route \" + \"id's must be globally unique within Data Router usages\");\n allIds.add(id);\n\n if (isIndexRoute(route)) {\n let indexRoute = _extends({}, route, {\n id\n });\n\n return indexRoute;\n } else {\n let pathOrLayoutRoute = _extends({}, route, {\n id,\n children: route.children ? convertRoutesToDataRoutes(route.children, treePath, allIds) : undefined\n });\n\n return pathOrLayoutRoute;\n }\n });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/utils/match-routes\n */\n\nfunction matchRoutes(routes, locationArg, basename) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n\n if (pathname == null) {\n return null;\n }\n\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n\n for (let i = 0; matches == null && i < branches.length; ++i) {\n matches = matchRouteBranch(branches[i], // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n safelyDecodeURI(pathname));\n }\n\n return matches;\n}\n\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n if (branches === void 0) {\n branches = [];\n }\n\n if (parentsMeta === void 0) {\n parentsMeta = [];\n }\n\n if (parentPath === void 0) {\n parentPath = \"\";\n }\n\n let flattenRoute = (route, index, relativePath) => {\n let meta = {\n relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta); // Add the children before adding this route to the array so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n\n if (route.children && route.children.length > 0) {\n invariant( // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n flattenRoutes(route.children, branches, routesMeta, path);\n } // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n\n\n if (route.path == null && !route.index) {\n return;\n }\n\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n\n routes.forEach((route, index) => {\n var _route$path;\n\n // coarse-grain check for optional params\n if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\n\n\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments; // Optional path segments are denoted by a trailing `?`\n\n let isOptional = first.endsWith(\"?\"); // Compute the corresponding required segment: `foo?` -> `foo`\n\n let required = first.replace(/\\?$/, \"\");\n\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = []; // All child paths with the prefix. Do this for all children before the\n // optional version for all children so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explodes _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n\n result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\"))); // Then if this is an optional value, add all child versions without\n\n if (isOptional) {\n result.push(...restExploded);\n } // for absolute paths, ensure `/` instead of empty segment\n\n\n return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\n\nfunction rankRouteBranches(branches) {\n branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\n\nconst paramRe = /^:\\w+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\n\nconst isSplat = s => s === \"*\";\n\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n\n if (index) {\n initialScore += indexRouteValue;\n }\n\n return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\n\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ? // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1] : // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\n\nfunction matchRouteBranch(branch, pathname) {\n let {\n routesMeta\n } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end\n }, remainingPathname);\n if (!match) return null;\n Object.assign(matchedParams, match.params);\n let route = meta.route;\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n route\n });\n\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n\n return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/utils/generate-path\n */\n\n\nfunction generatePath(originalPath, params) {\n if (params === void 0) {\n params = {};\n }\n\n let path = originalPath;\n\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n path = path.replace(/\\*$/, \"/*\");\n }\n\n return path.replace(/^:(\\w+)/g, (_, key) => {\n invariant(params[key] != null, \"Missing \\\":\" + key + \"\\\" param\");\n return params[key];\n }).replace(/\\/:(\\w+)/g, (_, key) => {\n invariant(params[key] != null, \"Missing \\\":\" + key + \"\\\" param\");\n return \"/\" + params[key];\n }).replace(/(\\/?)\\*/, (_, prefix, __, str) => {\n const star = \"*\";\n\n if (params[star] == null) {\n // If no splat was provided, trim the trailing slash _unless_ it's\n // the entire path\n return str === \"/*\" ? \"/\" : \"\";\n } // Apply the splat\n\n\n return \"\" + prefix + params[star];\n });\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/utils/match-path\n */\n\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = {\n path: pattern,\n caseSensitive: false,\n end: true\n };\n }\n\n let [matcher, paramNames] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = paramNames.reduce((memo, paramName, index) => {\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n\n memo[paramName] = safelyDecodeURIComponent(captureGroups[index] || \"\", paramName);\n return memo;\n }, {});\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\n\nfunction compilePath(path, caseSensitive, end) {\n if (caseSensitive === void 0) {\n caseSensitive = false;\n }\n\n if (end === void 0) {\n end = true;\n }\n\n warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n let paramNames = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^$?{}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:(\\w+)/g, (_, paramName) => {\n paramNames.push(paramName);\n return \"/([^\\\\/]+)\";\n });\n\n if (path.endsWith(\"*\")) {\n paramNames.push(\"*\");\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else ;\n\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n return [matcher, paramNames];\n}\n\nfunction safelyDecodeURI(value) {\n try {\n return decodeURI(value);\n } catch (error) {\n warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n return value;\n }\n}\n\nfunction safelyDecodeURIComponent(value, paramName) {\n try {\n return decodeURIComponent(value);\n } catch (error) {\n warning(false, \"The value for the URL param \\\"\" + paramName + \"\\\" will not be decoded because\" + (\" the string \\\"\" + value + \"\\\" is a malformed URL segment. This is probably\") + (\" due to a bad percent encoding (\" + error + \").\"));\n return value;\n }\n}\n/**\n * @private\n */\n\n\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n } // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n\n\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n\n return pathname.slice(startIndex) || \"/\";\n}\n/**\n * @private\n */\n\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging React Router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/utils/resolve-path\n */\n\nfunction resolvePath(to, fromPathname) {\n if (fromPathname === void 0) {\n fromPathname = \"/\";\n }\n\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\n\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach(segment => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\n\nfunction getInvalidPathError(char, field, dest, path) {\n return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"]. Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * \n * \n * \n *\n * \n * \n * }> // <-- Does not contribute\n * // <-- Does not contribute\n * \n * \n */\n\n\nfunction getPathContributingMatches(matches) {\n return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n/**\n * @private\n */\n\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n if (isPathRelative === void 0) {\n isPathRelative = false;\n }\n\n let to;\n\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = _extends({}, toArg);\n invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n }\n\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from; // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n\n if (isPathRelative || toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n\n if (toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\"); // Each leading .. segment means \"go up one route\" instead of \"go up one\n // URL segment\". This is a key difference from how
works and a\n // major reason we call this a \"to\" value instead of a \"href\".\n\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n\n to.pathname = toSegments.join(\"/\");\n } // If there are more \"..\" segments than parent routes, resolve relative to\n // the root / URL.\n\n\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n\n let path = resolvePath(to, from); // Ensure the pathname has a trailing slash if the original \"to\" had one\n\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\"); // Or if this was a link to the current path which has a trailing slash\n\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n\n return path;\n}\n/**\n * @private\n */\n\nfunction getToPathname(to) {\n // Empty strings should be treated the same as / paths\n return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\n/**\n * @private\n */\n\nconst joinPaths = paths => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\n\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\n\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\n\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n */\n\nconst json = function json(data, init) {\n if (init === void 0) {\n init = {};\n }\n\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n let headers = new Headers(responseInit.headers);\n\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n\n return new Response(JSON.stringify(data), _extends({}, responseInit, {\n headers\n }));\n};\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n constructor(data) {\n this.pendingKeys = new Set();\n this.subscriber = undefined;\n invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\"); // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n\n let reject;\n this.abortPromise = new Promise((_, r) => reject = r);\n this.controller = new AbortController();\n\n let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n\n this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n\n this.controller.signal.addEventListener(\"abort\", onAbort);\n this.data = Object.entries(data).reduce((acc, _ref) => {\n let [key, value] = _ref;\n return Object.assign(acc, {\n [key]: this.trackPromise(key, value)\n });\n }, {});\n }\n\n trackPromise(key, value) {\n if (!(value instanceof Promise)) {\n return value;\n }\n\n this.pendingKeys.add(key); // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n\n let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, null, data), error => this.onSettle(promise, key, error)); // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n\n promise.catch(() => {});\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n return promise;\n }\n\n onSettle(promise, key, error, data) {\n if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n return Promise.reject(error);\n }\n\n this.pendingKeys.delete(key);\n\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n\n const subscriber = this.subscriber;\n\n if (error) {\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n subscriber && subscriber(false);\n return Promise.reject(error);\n }\n\n Object.defineProperty(promise, \"_data\", {\n get: () => data\n });\n subscriber && subscriber(false);\n return data;\n }\n\n subscribe(fn) {\n this.subscriber = fn;\n }\n\n cancel() {\n this.controller.abort();\n this.pendingKeys.forEach((v, k) => this.pendingKeys.delete(k));\n let subscriber = this.subscriber;\n subscriber && subscriber(true);\n }\n\n async resolveData(signal) {\n let aborted = false;\n\n if (!this.done) {\n let onAbort = () => this.cancel();\n\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise(resolve => {\n this.subscribe(aborted => {\n signal.removeEventListener(\"abort\", onAbort);\n\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n\n return aborted;\n }\n\n get done() {\n return this.pendingKeys.size === 0;\n }\n\n get unwrappedData() {\n invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n return Object.entries(this.data).reduce((acc, _ref2) => {\n let [key, value] = _ref2;\n return Object.assign(acc, {\n [key]: unwrapTrackedPromise(value)\n });\n }, {});\n }\n\n}\n\nfunction isTrackedPromise(value) {\n return value instanceof Promise && value._tracked === true;\n}\n\nfunction unwrapTrackedPromise(value) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n\n if (value._error) {\n throw value._error;\n }\n\n return value._data;\n}\n\nfunction defer(data) {\n return new DeferredData(data);\n}\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\n\nconst redirect = function redirect(url, init) {\n if (init === void 0) {\n init = 302;\n }\n\n let responseInit = init;\n\n if (typeof responseInit === \"number\") {\n responseInit = {\n status: responseInit\n };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, _extends({}, responseInit, {\n headers\n }));\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n */\n\nclass ErrorResponse {\n constructor(status, statusText, data, internal) {\n if (internal === void 0) {\n internal = false;\n }\n\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response throw from an action/loader\n */\n\nfunction isRouteErrorResponse(e) {\n return e instanceof ErrorResponse;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst IDLE_FETCHER = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\";\nconst isServer = !isBrowser; //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Create a router and listen to history POP navigations\n */\n\nfunction createRouter(init) {\n invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n let dataRoutes = convertRoutesToDataRoutes(init.routes); // Cleanup function for history\n\n let unlistenHistory = null; // Externally-provided functions to call on all state changes\n\n let subscribers = new Set(); // Externally-provided object to hold scroll restoration locations during routing\n\n let savedScrollPositions = null; // Externally-provided function to get scroll restoration keys\n\n let getScrollRestorationKey = null; // Externally-provided function to get current scroll position\n\n let getScrollPosition = null; // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, init.basename);\n let initialErrors = null;\n\n if (initialMatches == null) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let {\n matches,\n route\n } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = {\n [route.id]: error\n };\n }\n\n let initialized = !initialMatches.some(m => m.route.loader) || init.hydrationData != null;\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: new Map()\n }; // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n\n let pendingAction = Action.Pop; // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n\n let pendingPreventScrollReset = false; // AbortController for the active navigation\n\n let pendingNavigationController; // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n\n let isUninterruptedRevalidation = false; // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidate()\n // - X-Remix-Revalidate (from redirect)\n\n let isRevalidationRequired = false; // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n\n let cancelledDeferredRoutes = []; // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n\n let cancelledFetcherLoads = []; // AbortControllers for any in-flight fetchers\n\n let fetchControllers = new Map(); // Track loads based on the order in which they started\n\n let incrementingLoadId = 0; // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n\n let pendingNavigationLoadId = -1; // Fetchers that triggered data reloads as a result of their actions\n\n let fetchReloadIds = new Map(); // Fetchers that triggered redirect navigations from their actions\n\n let fetchRedirectIds = new Set(); // Most recent href/match for fetcher.load calls for fetchers\n\n let fetchLoadMatches = new Map(); // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n\n let activeDeferreds = new Map(); // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(_ref => {\n let {\n action: historyAction,\n location\n } = _ref;\n return startNavigation(historyAction, location);\n }); // Kick off initial data load if needed. Use Pop to avoid modifying history\n\n if (!state.initialized) {\n startNavigation(Action.Pop, state.location);\n }\n\n return router;\n } // Clean up a router and it's side effects\n\n\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n } // Subscribe to state updates for the router\n\n\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n } // Update our state and notify the calling context of the change\n\n\n function updateState(newState) {\n state = _extends({}, state, newState);\n subscribers.forEach(subscriber => subscriber(state));\n } // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n\n\n function completeNavigation(location, newState) {\n var _location$state;\n\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n let actionData;\n\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n } // Always preserve any existing loaderData from re-used routes\n\n\n let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData;\n updateState(_extends({}, newState, {\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n // Don't restore on submission navigations\n restoreScrollPosition: state.navigation.formData ? false : getSavedScrollPosition(location, newState.matches || state.matches),\n preventScrollReset: pendingPreventScrollReset\n }));\n\n if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === Action.Replace) {\n init.history.replace(location, location.state);\n } // Reset stateful navigation vars\n\n\n pendingAction = Action.Pop;\n pendingPreventScrollReset = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n cancelledFetcherLoads = [];\n } // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n\n\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(to, opts);\n let location = createLocation(state.location, path, opts && opts.state); // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n\n location = _extends({}, location, init.history.encodeLocation(location));\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n let historyAction = Action.Push;\n\n if (userReplace === true) {\n historyAction = Action.Replace;\n } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = Action.Replace;\n }\n\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n return await startNavigation(historyAction, location, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace\n });\n } // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n\n\n function revalidate() {\n interruptActiveLoads();\n updateState({\n revalidation: \"loading\"\n }); // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n\n if (state.navigation.state === \"submitting\") {\n return;\n } // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n\n\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return;\n } // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n\n\n startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n overrideNavigation: state.navigation\n });\n } // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n\n\n async function startNavigation(historyAction, location, opts) {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true; // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = matchRoutes(dataRoutes, location, init.basename); // Short circuit with a 404 on the root error boundary if we match nothing\n\n if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes); // Cancel all pending deferred on 404s since we don't keep any routes\n\n cancelActiveDeferreds();\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n });\n return;\n } // Short circuit if it's only a hash change\n\n\n if (isHashChangeOnly(state.location, location)) {\n completeNavigation(location, {\n matches\n });\n return;\n } // Create a controller/Request for this navigation\n\n\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(location, pendingNavigationController.signal, opts && opts.submission);\n let pendingActionData;\n let pendingError;\n\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingError = {\n [findNearestBoundary(matches).route.id]: opts.pendingError\n };\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n // Call action if we received an action submission\n let actionOutput = await handleAction(request, location, opts.submission, matches, {\n replace: opts.replace\n });\n\n if (actionOutput.shortCircuited) {\n return;\n }\n\n pendingActionData = actionOutput.pendingActionData;\n pendingError = actionOutput.pendingActionError;\n\n let navigation = _extends({\n state: \"loading\",\n location\n }, opts.submission);\n\n loadingNavigation = navigation; // Create a GET request for the loaders\n\n request = new Request(request.url, {\n signal: request.signal\n });\n } // Call loaders\n\n\n let {\n shortCircuited,\n loaderData,\n errors\n } = await handleLoaders(request, location, matches, loadingNavigation, opts && opts.submission, opts && opts.replace, pendingActionData, pendingError);\n\n if (shortCircuited) {\n return;\n } // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n\n\n pendingNavigationController = null;\n completeNavigation(location, _extends({\n matches\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}, {\n loaderData,\n errors\n }));\n } // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n\n\n async function handleAction(request, location, submission, matches, opts) {\n interruptActiveLoads(); // Put us in a submitting state\n\n let navigation = _extends({\n state: \"submitting\",\n location\n }, submission);\n\n updateState({\n navigation\n }); // Call our action and get the result\n\n let result;\n let actionMatch = getTargetMatch(matches, location);\n\n if (!actionMatch.route.action) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, router.basename);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n }\n\n if (isRedirectResult(result)) {\n let replace;\n\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n replace = result.location === state.location.pathname + state.location.search;\n }\n\n await startRedirectNavigation(state, result, {\n submission,\n replace\n });\n return {\n shortCircuited: true\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id); // By default, all submissions are REPLACE navigations, but if the\n // action threw an error that'll be rendered in an errorElement, we fall\n // back to PUSH so that the user can use the back button to get back to\n // the pre-submission form location to try again\n\n if ((opts && opts.replace) !== true) {\n pendingAction = Action.Push;\n }\n\n return {\n // Send back an empty object we can use to clear out any prior actionData\n pendingActionData: {},\n pendingActionError: {\n [boundaryMatch.route.id]: result.error\n }\n };\n }\n\n if (isDeferredResult(result)) {\n throw new Error(\"defer() is not supported in actions\");\n }\n\n return {\n pendingActionData: {\n [actionMatch.route.id]: result.data\n }\n };\n } // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n\n\n async function handleLoaders(request, location, matches, overrideNavigation, submission, replace, pendingActionData, pendingError) {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation;\n\n if (!loadingNavigation) {\n let navigation = _extends({\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission);\n\n loadingNavigation = navigation;\n } // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n\n\n let activeSubmission = submission ? submission : loadingNavigation.formMethod && loadingNavigation.formAction && loadingNavigation.formData && loadingNavigation.formEncType ? {\n formMethod: loadingNavigation.formMethod,\n formAction: loadingNavigation.formAction,\n formData: loadingNavigation.formData,\n formEncType: loadingNavigation.formEncType\n } : undefined;\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(state, matches, activeSubmission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches); // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n\n cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId)); // Short circuit if we have no loaders to run\n\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n completeNavigation(location, _extends({\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingError || null\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}));\n return {\n shortCircuited: true\n };\n } // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n\n\n if (!isUninterruptedRevalidation) {\n revalidatingFetchers.forEach(_ref2 => {\n let [key] = _ref2;\n let fetcher = state.fetchers.get(key);\n let revalidatingFetcher = {\n state: \"loading\",\n data: fetcher && fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, revalidatingFetcher);\n });\n let actionData = pendingActionData || state.actionData;\n updateState(_extends({\n navigation: loadingNavigation\n }, actionData ? Object.keys(actionData).length === 0 ? {\n actionData: null\n } : {\n actionData\n } : {}, revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n }\n\n pendingNavigationLoadId = ++incrementingLoadId;\n revalidatingFetchers.forEach(_ref3 => {\n let [key] = _ref3;\n return fetchControllers.set(key, pendingNavigationController);\n });\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, request);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n } // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n\n\n revalidatingFetchers.forEach(_ref4 => {\n let [key] = _ref4;\n return fetchControllers.delete(key);\n }); // If any loaders returned a redirect Response, start a new REPLACE navigation\n\n let redirect = findRedirect(results);\n\n if (redirect) {\n await startRedirectNavigation(state, redirect, {\n replace\n });\n return {\n shortCircuited: true\n };\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, matchesToLoad, loaderResults, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds); // Wire up subscribers to update loaderData as promises settle\n\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe(aborted => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n return _extends({\n loaderData,\n errors\n }, didAbortFetchLoads || revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {});\n }\n\n function getFetcher(key) {\n return state.fetchers.get(key) || IDLE_FETCHER;\n } // Trigger a fetcher load/submit for the given fetcher key\n\n\n function fetch(key, routeId, href, opts) {\n if (isServer) {\n throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n }\n\n if (fetchControllers.has(key)) abortFetcher(key);\n let matches = matchRoutes(dataRoutes, href, init.basename);\n\n if (!matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: href\n }));\n return;\n }\n\n let {\n path,\n submission\n } = normalizeNavigateOptions(href, opts, true);\n let match = getTargetMatch(matches, path);\n\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, submission);\n return;\n } // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n\n\n fetchLoadMatches.set(key, [path, match, matches]);\n handleFetcherLoader(key, routeId, path, match, matches, submission);\n } // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n\n\n async function handleFetcherAction(key, routeId, path, match, requestMatches, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n\n if (!match.route.action) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId\n });\n setFetcherError(key, routeId, error);\n return;\n } // Put this fetcher into it's submitting state\n\n\n let existingFetcher = state.fetchers.get(key);\n\n let fetcher = _extends({\n state: \"submitting\"\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, fetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the action for the fetcher\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(path, abortController.signal, submission);\n fetchControllers.set(key, abortController);\n let actionResult = await callLoaderOrAction(\"action\", fetchRequest, match, requestMatches, router.basename);\n\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n return;\n }\n\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n fetchRedirectIds.add(key);\n\n let loadingFetcher = _extends({\n state: \"loading\"\n }, submission, {\n data: undefined,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n return startRedirectNavigation(state, actionResult, {\n isFetchActionRedirect: true\n });\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n\n if (isDeferredResult(actionResult)) {\n invariant(false, \"defer() is not supported in actions\");\n } // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n\n\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(nextLocation, abortController.signal);\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(dataRoutes, state.navigation.location, init.basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n\n let loadFetcher = _extends({\n state: \"loading\",\n data: actionResult.data\n }, submission, {\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadFetcher);\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(state, matches, submission, nextLocation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, {\n [match.route.id]: actionResult.data\n }, undefined, // No need to send through errors since we short circuit above\n fetchLoadMatches); // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n\n revalidatingFetchers.filter(_ref5 => {\n let [staleKey] = _ref5;\n return staleKey !== key;\n }).forEach(_ref6 => {\n let [staleKey] = _ref6;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher = {\n state: \"loading\",\n data: existingFetcher && existingFetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(staleKey, revalidatingFetcher);\n fetchControllers.set(staleKey, abortController);\n });\n updateState({\n fetchers: new Map(state.fetchers)\n });\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n\n if (abortController.signal.aborted) {\n return;\n }\n\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach(_ref7 => {\n let [staleKey] = _ref7;\n return fetchControllers.delete(staleKey);\n });\n let redirect = findRedirect(results);\n\n if (redirect) {\n return startRedirectNavigation(state, redirect);\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, state.matches, matchesToLoad, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n let doneFetcher = {\n state: \"idle\",\n data: actionResult.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n let didAbortFetchLoads = abortStaleFetchLoads(loadId); // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState(_extends({\n errors,\n loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors)\n }, didAbortFetchLoads ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n isRevalidationRequired = false;\n }\n } // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n\n\n async function handleFetcherLoader(key, routeId, path, match, matches, submission) {\n let existingFetcher = state.fetchers.get(key); // Put this fetcher into it's loading state\n\n let loadingFetcher = _extends({\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the loader for this fetcher route match\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(path, abortController.signal);\n fetchControllers.set(key, abortController);\n let result = await callLoaderOrAction(\"loader\", fetchRequest, match, matches, router.basename); // Deferred isn't supported or fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n\n if (isDeferredResult(result)) {\n result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n } // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n\n\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n if (fetchRequest.signal.aborted) {\n return;\n } // If the loader threw a redirect Response, start a new REPLACE navigation\n\n\n if (isRedirectResult(result)) {\n await startRedirectNavigation(state, result);\n return;\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n state.fetchers.delete(key); // TODO: In remix, this would reset to IDLE_NAVIGATION if it was a catch -\n // do we need to behave any differently with our non-redirect errors?\n // What if it was a non-redirect Response?\n\n updateState({\n fetchers: new Map(state.fetchers),\n errors: {\n [boundaryMatch.route.id]: result.error\n }\n });\n return;\n }\n\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\"); // Put the fetcher back into an idle state\n\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n }\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n\n\n async function startRedirectNavigation(state, redirect, _temp) {\n var _window;\n\n let {\n submission,\n replace,\n isFetchActionRedirect\n } = _temp === void 0 ? {} : _temp;\n\n if (redirect.revalidate) {\n isRevalidationRequired = true;\n }\n\n let redirectLocation = createLocation(state.location, redirect.location, // TODO: This can be removed once we get rid of useTransition in Remix v2\n _extends({\n _isRedirect: true\n }, isFetchActionRedirect ? {\n _isFetchActionRedirect: true\n } : {}));\n invariant(redirectLocation, \"Expected a location on the redirect navigation\"); // Check if this an external redirect that goes to a new origin\n\n if (typeof ((_window = window) == null ? void 0 : _window.location) !== \"undefined\") {\n let newOrigin = createClientSideURL(redirect.location).origin;\n\n if (window.location.origin !== newOrigin) {\n if (replace) {\n window.location.replace(redirect.location);\n } else {\n window.location.assign(redirect.location);\n }\n\n return;\n }\n } // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n\n\n pendingNavigationController = null;\n let redirectHistoryAction = replace === true ? Action.Replace : Action.Push; // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n\n let {\n formMethod,\n formAction,\n formEncType,\n formData\n } = state.navigation;\n\n if (!submission && formMethod && formAction && formData && formEncType) {\n submission = {\n formMethod,\n formAction,\n formEncType,\n formData\n };\n } // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n\n\n if (redirectPreserveMethodStatusCodes.has(redirect.status) && submission && isMutationMethod(submission.formMethod)) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: _extends({}, submission, {\n formAction: redirect.location\n })\n });\n } else {\n // Otherwise, we kick off a new loading navigation, preserving the\n // submission info for the duration of this navigation\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation: {\n state: \"loading\",\n location: redirectLocation,\n formMethod: submission ? submission.formMethod : undefined,\n formAction: submission ? submission.formAction : undefined,\n formEncType: submission ? submission.formEncType : undefined,\n formData: submission ? submission.formData : undefined\n }\n });\n }\n }\n\n async function callLoadersAndMaybeResolveData(currentMatches, matches, matchesToLoad, fetchersToLoad, request) {\n // Call all navigation loaders and revalidating fetcher loaders in parallel,\n // then slice off the results into separate arrays so we can handle them\n // accordingly\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, router.basename)), ...fetchersToLoad.map(_ref8 => {\n let [, href, match, fetchMatches] = _ref8;\n return callLoaderOrAction(\"loader\", createClientSideRequest(href, request.signal), match, fetchMatches, router.basename);\n })]);\n let loaderResults = results.slice(0, matchesToLoad.length);\n let fetcherResults = results.slice(matchesToLoad.length);\n await Promise.all([resolveDeferredResults(currentMatches, matchesToLoad, loaderResults, request.signal, false, state.loaderData), resolveDeferredResults(currentMatches, fetchersToLoad.map(_ref9 => {\n let [,, match] = _ref9;\n return match;\n }), fetcherResults, request.signal, true)]);\n return {\n results,\n loaderResults,\n fetcherResults\n };\n }\n\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true; // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n\n cancelledDeferredRoutes.push(...cancelActiveDeferreds()); // Abort in-flight fetcher loads\n\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.push(key);\n abortFetcher(key);\n }\n });\n }\n\n function setFetcherError(key, routeId, error) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n });\n }\n\n function deleteFetcher(key) {\n if (fetchControllers.has(key)) abortFetcher(key);\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n state.fetchers.delete(key);\n }\n\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n invariant(controller, \"Expected fetch controller: \" + key);\n controller.abort();\n fetchControllers.delete(key);\n }\n\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = {\n state: \"idle\",\n data: fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n function markFetchRedirectsDone() {\n let doneKeys = [];\n\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n }\n }\n\n markFetchersDone(doneKeys);\n }\n\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n\n function cancelActiveDeferreds(predicate) {\n let cancelledRouteIds = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n } // Opt in to capturing and reporting scroll positions during navigations,\n // used by the component\n\n\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n\n getScrollRestorationKey = getKey || (location => location.key); // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered \n // and therefore have no savedScrollPositions available\n\n\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n\n if (y != null) {\n updateState({\n restoreScrollPosition: y\n });\n }\n }\n\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n let y = savedScrollPositions[key];\n\n if (typeof y === \"number\") {\n return y;\n }\n }\n\n return null;\n }\n\n router = {\n get basename() {\n return init.basename;\n },\n\n get state() {\n return state;\n },\n\n get routes() {\n return dataRoutes;\n },\n\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: to => init.history.createHref(to),\n encodeLocation: to => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher,\n dispose,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds\n };\n return router;\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\n\nfunction createStaticHandler(routes, opts) {\n invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n let dataRoutes = convertRoutesToDataRoutes(routes);\n let basename = (opts ? opts.basename : null) || \"/\";\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n */\n\n async function query(request, _temp2) {\n let {\n requestContext\n } = _temp2 === void 0 ? {} : _temp2;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\") {\n let error = getInternalRouterError(405, {\n method\n });\n let {\n matches: methodNotAllowedMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {}\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {}\n };\n }\n\n let result = await queryImpl(request, location, matches, requestContext);\n\n if (isResponse(result)) {\n return result;\n } // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n\n\n return _extends({\n location,\n basename\n }, result);\n }\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n */\n\n\n async function queryRoute(request, _temp3) {\n let {\n routeId,\n requestContext\n } = _temp3 === void 0 ? {} : _temp3;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\") {\n throw getInternalRouterError(405, {\n method\n });\n } else if (!matches) {\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let result = await queryImpl(request, location, matches, requestContext, match);\n\n if (isResponse(result)) {\n return result;\n }\n\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n } // Pick off the right state value to return\n\n\n let routeData = [result.actionData, result.loaderData].find(v => v);\n return Object.values(routeData || {})[0];\n }\n\n async function queryImpl(request, location, matches, requestContext, routeMatch) {\n invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, routeMatch != null);\n return result;\n }\n\n let result = await loadRouteData(request, matches, requestContext, routeMatch);\n return isResponse(result) ? result : _extends({}, result, {\n actionData: null,\n actionHeaders: {}\n });\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction, we throw\n // it to bail out and then return or throw here based on whether the user\n // returned or threw\n if (isQueryRouteResponse(e)) {\n if (e.type === ResultType.error && !isRedirectResponse(e.response)) {\n throw e.response;\n }\n\n return e.response;\n } // Redirects are always returned since they don't propagate to catch\n // boundaries\n\n\n if (isRedirectResponse(e)) {\n return e;\n }\n\n throw e;\n }\n }\n\n async function submit(request, matches, actionMatch, requestContext, isRouteRequest) {\n let result;\n\n if (!actionMatch.route.action) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n\n if (isRouteRequest) {\n throw error;\n }\n\n result = {\n type: ResultType.error,\n error\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, basename, true, isRouteRequest, requestContext);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n }\n }\n\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.status,\n headers: {\n Location: result.location\n }\n });\n }\n\n if (isDeferredResult(result)) {\n throw new Error(\"defer() is not supported in actions\");\n }\n\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: {\n [actionMatch.route.id]: result.data\n },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {}\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(request, matches, requestContext, undefined, {\n [boundaryMatch.route.id]: result.error\n }); // action status codes take precedence over loader status codes\n\n return _extends({}, context, {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : 500,\n actionData: null,\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n } // Create a GET request for the loaders\n\n\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n let context = await loadRouteData(loaderRequest, matches, requestContext);\n return _extends({}, context, result.statusCode ? {\n statusCode: result.statusCode\n } : {}, {\n actionData: {\n [actionMatch.route.id]: result.data\n },\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n\n async function loadRouteData(request, matches, requestContext, routeMatch, pendingActionError) {\n let isRouteRequest = routeMatch != null; // Short circuit if we have no loaders to run (queryRoute())\n\n if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader)) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch == null ? void 0 : routeMatch.route.id\n });\n }\n\n let requestMatches = routeMatch ? [routeMatch] : getLoaderMatchesUntilBoundary(matches, Object.keys(pendingActionError || {})[0]);\n let matchesToLoad = requestMatches.filter(m => m.route.loader); // Short circuit if we have no loaders to run (query())\n\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n [m.route.id]: null\n }), {}),\n errors: pendingActionError || null,\n statusCode: 200,\n loaderHeaders: {}\n };\n }\n\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, basename, true, isRouteRequest, requestContext))]);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n }\n\n let executedLoaders = new Set();\n results.forEach((result, i) => {\n executedLoaders.add(matchesToLoad[i].route.id); // Can't do anything with these without the Remix side of things, so just\n // cancel them for now\n\n if (isDeferredResult(result)) {\n result.deferredData.cancel();\n }\n }); // Process and commit output from loaders\n\n let context = processRouteLoaderData(matches, matchesToLoad, results, pendingActionError); // Add a null for any non-loader matches for proper revalidation on the client\n\n matches.forEach(match => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n return _extends({}, context, {\n matches\n });\n }\n\n return {\n dataRoutes,\n query,\n queryRoute\n };\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\n\nfunction getStaticContextFromError(routes, context, error) {\n let newContext = _extends({}, context, {\n statusCode: 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error\n }\n });\n\n return newContext;\n}\n\nfunction isSubmissionNavigation(opts) {\n return opts != null && \"formData\" in opts;\n} // Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\n\n\nfunction normalizeNavigateOptions(to, opts, isFetcher) {\n if (isFetcher === void 0) {\n isFetcher = false;\n }\n\n let path = typeof to === \"string\" ? to : createPath(to); // Return location verbatim on non-submission navigations\n\n if (!opts || !isSubmissionNavigation(opts)) {\n return {\n path\n };\n }\n\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, {\n method: opts.formMethod\n })\n };\n } // Create a Submission on non-GET navigations\n\n\n let submission;\n\n if (opts.formData) {\n submission = {\n formMethod: opts.formMethod || \"get\",\n formAction: stripHashFromPath(path),\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData: opts.formData\n };\n\n if (isMutationMethod(submission.formMethod)) {\n return {\n path,\n submission\n };\n }\n } // Flatten submission onto URLSearchParams for GET submissions\n\n\n let parsedPath = parsePath(path);\n\n try {\n let searchParams = convertFormDataToSearchParams(opts.formData); // Since fetcher GET submissions only run a single loader (as opposed to\n // navigation GET submissions which run all loaders), we need to preserve\n // any incoming ?index params\n\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n\n parsedPath.search = \"?\" + searchParams;\n } catch (e) {\n return {\n path,\n error: getInternalRouterError(400)\n };\n }\n\n return {\n path: createPath(parsedPath),\n submission\n };\n} // Filter out all routes below any caught error as they aren't going to\n// render so we don't need to load them\n\n\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId) {\n let boundaryMatches = matches;\n\n if (boundaryId) {\n let index = matches.findIndex(m => m.route.id === boundaryId);\n\n if (index >= 0) {\n boundaryMatches = matches.slice(0, index);\n }\n }\n\n return boundaryMatches;\n}\n\nfunction getMatchesToLoad(state, matches, submission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches) {\n let actionResult = pendingError ? Object.values(pendingError)[0] : pendingActionData ? Object.values(pendingActionData)[0] : undefined; // Pick navigation matches that are net-new or qualify for revalidation\n\n let boundaryId = pendingError ? Object.keys(pendingError)[0] : undefined;\n let boundaryMatches = getLoaderMatchesUntilBoundary(matches, boundaryId);\n let navigationMatches = boundaryMatches.filter((match, index) => match.route.loader != null && (isNewLoader(state.loaderData, state.matches[index], match) || // If this route had a pending deferred cancelled it must be revalidated\n cancelledDeferredRoutes.some(id => id === match.route.id) || shouldRevalidateLoader(state.location, state.matches[index], submission, location, match, isRevalidationRequired, actionResult))); // Pick fetcher.loads that need to be revalidated\n\n let revalidatingFetchers = [];\n fetchLoadMatches && fetchLoadMatches.forEach((_ref10, key) => {\n let [href, match, fetchMatches] = _ref10;\n\n // This fetcher was cancelled from a prior action submission - force reload\n if (cancelledFetcherLoads.includes(key)) {\n revalidatingFetchers.push([key, href, match, fetchMatches]);\n } else if (isRevalidationRequired) {\n let shouldRevalidate = shouldRevalidateLoader(href, match, submission, href, match, isRevalidationRequired, actionResult);\n\n if (shouldRevalidate) {\n revalidatingFetchers.push([key, href, match, fetchMatches]);\n }\n }\n });\n return [navigationMatches, revalidatingFetchers];\n}\n\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew = // [a] -> [a, b]\n !currentMatch || // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id; // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n\n let isMissingData = currentLoaderData[match.route.id] === undefined; // Always load if this is a net-new route or we don't yet have data\n\n return isNew || isMissingData;\n}\n\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (// param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname || // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\n\nfunction shouldRevalidateLoader(currentLocation, currentMatch, submission, location, match, isRevalidationRequired, actionResult) {\n let currentUrl = createClientSideURL(currentLocation);\n let currentParams = currentMatch.params;\n let nextUrl = createClientSideURL(location);\n let nextParams = match.params; // This is the default implementation as to when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n // Note that fetchers always provide the same current/next locations so the\n // URL-based checks here don't apply to fetcher shouldRevalidate calls\n\n let defaultShouldRevalidate = isNewRouteInstance(currentMatch, match) || // Clicked the same link, resubmitted a GET form\n currentUrl.toString() === nextUrl.toString() || // Search params affect all loaders\n currentUrl.search !== nextUrl.search || // Forced revalidation due to submission, useRevalidate, or X-Remix-Revalidate\n isRevalidationRequired;\n\n if (match.route.shouldRevalidate) {\n let routeChoice = match.route.shouldRevalidate(_extends({\n currentUrl,\n currentParams,\n nextUrl,\n nextParams\n }, submission, {\n actionResult,\n defaultShouldRevalidate\n }));\n\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n\n return defaultShouldRevalidate;\n}\n\nasync function callLoaderOrAction(type, request, match, matches, basename, isStaticRequest, isRouteRequest, requestContext) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n if (isStaticRequest === void 0) {\n isStaticRequest = false;\n }\n\n if (isRouteRequest === void 0) {\n isRouteRequest = false;\n }\n\n let resultType;\n let result; // Setup a promise we can race against so that abort signals short circuit\n\n let reject;\n let abortPromise = new Promise((_, r) => reject = r);\n\n let onReject = () => reject();\n\n request.signal.addEventListener(\"abort\", onReject);\n\n try {\n let handler = match.route[type];\n invariant(handler, \"Could not find the \" + type + \" to run on the \\\"\" + match.route.id + \"\\\" route\");\n result = await Promise.race([handler({\n request,\n params: match.params,\n context: requestContext\n }), abortPromise]);\n invariant(result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n } catch (e) {\n resultType = ResultType.error;\n result = e;\n } finally {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n\n if (isResponse(result)) {\n let status = result.status; // Process redirects\n\n if (redirectStatusCodes.has(status)) {\n let location = result.headers.get(\"Location\");\n invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\");\n let isAbsolute = /^[a-z+]+:\\/\\//i.test(location) || location.startsWith(\"//\"); // Support relative routing in internal redirects\n\n if (!isAbsolute) {\n let activeMatches = matches.slice(0, matches.indexOf(match) + 1);\n let routePathnames = getPathContributingMatches(activeMatches).map(match => match.pathnameBase);\n let resolvedLocation = resolveTo(location, routePathnames, new URL(request.url).pathname);\n invariant(createPath(resolvedLocation), \"Unable to resolve redirect location: \" + location); // Prepend the basename to the redirect location if we have one\n\n if (basename) {\n let path = resolvedLocation.pathname;\n resolvedLocation.pathname = path === \"/\" ? basename : joinPaths([basename, path]);\n }\n\n location = createPath(resolvedLocation);\n } // Don't process redirects in the router during static requests requests.\n // Instead, throw the Response and let the server handle it with an HTTP\n // redirect. We also update the Location header in place in this flow so\n // basename and relative routing is taken into account\n\n\n if (isStaticRequest) {\n result.headers.set(\"Location\", location);\n throw result;\n }\n\n return {\n type: ResultType.redirect,\n status,\n location,\n revalidate: result.headers.get(\"X-Remix-Revalidate\") !== null\n };\n } // For SSR single-route requests, we want to hand Responses back directly\n // without unwrapping. We do this with the QueryRouteResponse wrapper\n // interface so we can know whether it was returned or thrown\n\n\n if (isRouteRequest) {\n // eslint-disable-next-line no-throw-literal\n throw {\n type: resultType || ResultType.data,\n response: result\n };\n }\n\n let data;\n let contentType = result.headers.get(\"Content-Type\"); // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n data = await result.json();\n } else {\n data = await result.text();\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: new ErrorResponse(status, result.statusText, data),\n headers: result.headers\n };\n }\n\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers\n };\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: result\n };\n }\n\n if (result instanceof DeferredData) {\n return {\n type: ResultType.deferred,\n deferredData: result\n };\n }\n\n return {\n type: ResultType.data,\n data: result\n };\n} // Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\n\n\nfunction createClientSideRequest(location, signal, submission) {\n let url = createClientSideURL(stripHashFromPath(location)).toString();\n let init = {\n signal\n };\n\n if (submission && isMutationMethod(submission.formMethod)) {\n let {\n formMethod,\n formEncType,\n formData\n } = submission;\n init.method = formMethod.toUpperCase();\n init.body = formEncType === \"application/x-www-form-urlencoded\" ? convertFormDataToSearchParams(formData) : formData;\n } // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n\n\n return new Request(url, init);\n}\n\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n\n for (let [key, value] of formData.entries()) {\n invariant(typeof value === \"string\", 'File inputs are not supported with encType \"application/x-www-form-urlencoded\", ' + 'please use \"multipart/form-data\" instead.');\n searchParams.append(key, value);\n }\n\n return searchParams;\n}\n\nfunction processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds) {\n // Fill in loaderData/errors from our loaders\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {}; // Process loader results into state.loaderData/state.errors\n\n results.forEach((result, index) => {\n let id = matchesToLoad[index].route.id;\n invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n\n if (isErrorResult(result)) {\n // Look upwards from the matched route for the closest ancestor\n // error boundary, defaulting to the root match\n let boundaryMatch = findNearestBoundary(matches, id);\n let error = result.error; // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n\n if (pendingError) {\n error = Object.values(pendingError)[0];\n pendingError = undefined;\n }\n\n errors = errors || {}; // Prefer higher error values if lower errors bubble to the same boundary\n\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n } // Clear our any prior loaderData for the throwing route\n\n\n loaderData[id] = undefined; // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else if (isDeferredResult(result)) {\n activeDeferreds && activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data; // TODO: Add statusCode/headers once we wire up streaming in Remix\n } else {\n loaderData[id] = result.data; // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n\n if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n }); // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n\n if (pendingError) {\n errors = pendingError;\n loaderData[Object.keys(pendingError)[0]] = undefined;\n }\n\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\n\nfunction processLoaderData(state, matches, matchesToLoad, results, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds) {\n let {\n loaderData,\n errors\n } = processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds); // Process results from our revalidating fetchers\n\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let [key,, match] = revalidatingFetchers[index];\n invariant(fetcherResults !== undefined && fetcherResults[index] !== undefined, \"Did not find corresponding fetcher result\");\n let result = fetcherResults[index]; // Process fetcher non-redirect errors\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match.route.id);\n\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = _extends({}, errors, {\n [boundaryMatch.route.id]: result.error\n });\n }\n\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n throw new Error(\"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n throw new Error(\"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n return {\n loaderData,\n errors\n };\n}\n\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = _extends({}, newLoaderData);\n\n for (let match of matches) {\n let id = match.route.id;\n\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n }\n } else if (loaderData[id] !== undefined) {\n mergedLoaderData[id] = loaderData[id];\n }\n\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n\n return mergedLoaderData;\n} // Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\n\n\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\n\nfunction getShortCircuitMatches(routes) {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.find(r => r.index || !r.path || r.path === \"/\") || {\n id: \"__shim-error-route__\"\n };\n return {\n matches: [{\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }],\n route\n };\n}\n\nfunction getInternalRouterError(status, _temp4) {\n let {\n pathname,\n routeId,\n method\n } = _temp4 === void 0 ? {} : _temp4;\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n\n if (status === 400) {\n statusText = \"Bad Request\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else {\n errorMessage = \"Cannot submit binary form data using GET\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (method) {\n errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n }\n }\n\n return new ErrorResponse(status || 500, statusText, new Error(errorMessage), true);\n} // Find any returned redirect errors, starting from the lowest match\n\n\nfunction findRedirect(results) {\n for (let i = results.length - 1; i >= 0; i--) {\n let result = results[i];\n\n if (isRedirectResult(result)) {\n return result;\n }\n }\n}\n\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath(_extends({}, parsedPath, {\n hash: \"\"\n }));\n}\n\nfunction isHashChangeOnly(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash !== b.hash;\n}\n\nfunction isDeferredResult(result) {\n return result.type === ResultType.deferred;\n}\n\nfunction isErrorResult(result) {\n return result.type === ResultType.error;\n}\n\nfunction isRedirectResult(result) {\n return (result && result.type) === ResultType.redirect;\n}\n\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\n\nfunction isRedirectResponse(result) {\n if (!isResponse(result)) {\n return false;\n }\n\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\n\nfunction isQueryRouteResponse(obj) {\n return obj && isResponse(obj.response) && (obj.type === ResultType.data || ResultType.error);\n}\n\nfunction isValidMethod(method) {\n return validRequestMethods.has(method);\n}\n\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method);\n}\n\nasync function resolveDeferredResults(currentMatches, matchesToLoad, results, signal, isFetcher, currentLoaderData) {\n for (let index = 0; index < results.length; index++) {\n let result = results[index];\n let match = matchesToLoad[index];\n let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n\n if (isDeferredResult(result) && (isFetcher || isRevalidatingLoader)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n await resolveDeferredData(result, signal, isFetcher).then(result => {\n if (result) {\n results[index] = result || results[index];\n }\n });\n }\n }\n}\n\nasync function resolveDeferredData(result, signal, unwrap) {\n if (unwrap === void 0) {\n unwrap = false;\n }\n\n let aborted = await result.deferredData.resolveData(signal);\n\n if (aborted) {\n return;\n }\n\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e\n };\n }\n }\n\n return {\n type: ResultType.data,\n data: result.deferredData.data\n };\n}\n\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n} // Note: This should match the format exported by useMatches, so if you change\n// this please also change that :) Eventually we'll DRY this up\n\n\nfunction createUseMatchesMatch(match, loaderData) {\n let {\n route,\n pathname,\n params\n } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n handle: route.handle\n };\n}\n\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n } // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n\n\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n} //#endregion\n\nexport { AbortedDeferredError, Action, ErrorResponse, IDLE_FETCHER, IDLE_NAVIGATION, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, getPathContributingMatches as UNSAFE_getPathContributingMatches, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, defer, generatePath, getStaticContextFromError, getToPathname, invariant, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, resolvePath, resolveTo, stripBasename, warning };\n//# sourceMappingURL=router.js.map\n","/**\n * React Router v6.6.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { invariant, joinPaths, matchPath, UNSAFE_getPathContributingMatches, warning, resolveTo, parsePath, matchRoutes, Action, isRouteErrorResponse, createMemoryHistory, stripBasename, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, resolvePath } from '@remix-run/router';\nimport * as React from 'react';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n\nfunction isPolyfill(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nconst is = typeof Object.is === \"function\" ? Object.is : isPolyfill; // Intentionally not using named imports because Rollup uses dynamic\n// dispatch for CommonJS interop named imports.\n\nconst {\n useState,\n useEffect,\n useLayoutEffect,\n useDebugValue\n} = React;\nlet didWarnOld18Alpha = false;\nlet didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works\n// because of a very particular set of implementation details and assumptions\n// -- change any one of them and it will break. The most important assumption\n// is that updates are always synchronous, because concurrent rendering is\n// only available in versions of React that also have a built-in\n// useSyncExternalStore API. And we only use this shim when the built-in API\n// does not exist.\n//\n// Do not assume that the clever hacks used by this hook also work in general.\n// The point of this shim is to replace the need for hacks by other libraries.\n\nfunction useSyncExternalStore$2(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n// React do not expose a way to check if we're hydrating. So users of the shim\n// will need to track that themselves and return the correct value\n// from `getSnapshot`.\ngetServerSnapshot) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnOld18Alpha) {\n if (\"startTransition\" in React) {\n didWarnOld18Alpha = true;\n console.error(\"You are using an outdated, pre-release alpha of React 18 that \" + \"does not support useSyncExternalStore. The \" + \"use-sync-external-store shim will not work correctly. Upgrade \" + \"to a newer pre-release.\");\n }\n }\n } // Read the current snapshot from the store on every render. Again, this\n // breaks the rules of React, and only works here because of specific\n // implementation details, most importantly that updates are\n // always synchronous.\n\n\n const value = getSnapshot();\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnUncachedGetSnapshot) {\n const cachedValue = getSnapshot();\n\n if (!is(value, cachedValue)) {\n console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\");\n didWarnUncachedGetSnapshot = true;\n }\n }\n } // Because updates are synchronous, we don't queue them. Instead we force a\n // re-render whenever the subscribed state changes by updating an some\n // arbitrary useState hook. Then, during render, we call getSnapshot to read\n // the current value.\n //\n // Because we don't actually use the state returned by the useState hook, we\n // can save a bit of memory by storing other stuff in that slot.\n //\n // To implement the early bailout, we need to track some things on a mutable\n // object. Usually, we would put that in a useRef hook, but we can stash it in\n // our useState hook instead.\n //\n // To force a re-render, we call forceUpdate({inst}). That works because the\n // new object always fails an equality check.\n\n\n const [{\n inst\n }, forceUpdate] = useState({\n inst: {\n value,\n getSnapshot\n }\n }); // Track the latest getSnapshot function with a ref. This needs to be updated\n // in the layout phase so we can access it during the tearing check that\n // happens on subscribe.\n\n useLayoutEffect(() => {\n inst.value = value;\n inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the\n // commit phase if there was an interleaved mutation. In concurrent mode\n // this can happen all the time, but even in synchronous mode, an earlier\n // effect may have mutated the store.\n\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, [subscribe, value, getSnapshot]);\n useEffect(() => {\n // Check for changes right before subscribing. Subsequent changes will be\n // detected in the subscription handler.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n\n const handleStoreChange = () => {\n // TODO: Because there is no cross-renderer API for batching updates, it's\n // up to the consumer of this library to wrap their subscription event\n // with unstable_batchedUpdates. Should we try to detect when this isn't\n // the case and print a warning in development?\n // The store changed. Check if the snapshot changed since the last time we\n // read from the store.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n }; // Subscribe to the store and return a clean-up function.\n\n\n return subscribe(handleStoreChange); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [subscribe]);\n useDebugValue(value);\n return value;\n}\n\nfunction checkIfSnapshotChanged(inst) {\n const latestGetSnapshot = inst.getSnapshot;\n const prevValue = inst.value;\n\n try {\n const nextValue = latestGetSnapshot();\n return !is(prevValue, nextValue);\n } catch (error) {\n return true;\n }\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\nfunction useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {\n // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n // React do not expose a way to check if we're hydrating. So users of the shim\n // will need to track that themselves and return the correct value\n // from `getSnapshot`.\n return getSnapshot();\n}\n\n/**\n * Inlined into the react-router repo since use-sync-external-store does not\n * provide a UMD-compatible package, so we need this to be able to distribute\n * UMD react-router bundles\n */\nconst canUseDOM = !!(typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\");\nconst isServerEnvironment = !canUseDOM;\nconst shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore$2;\nconst useSyncExternalStore = \"useSyncExternalStore\" in React ? (module => module.useSyncExternalStore)(React) : shim;\n\n// Contexts for data routers\nconst DataStaticRouterContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataStaticRouterContext.displayName = \"DataStaticRouterContext\";\n}\n\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterContext.displayName = \"DataRouter\";\n}\n\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\n\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n AwaitContext.displayName = \"Await\";\n}\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n NavigationContext.displayName = \"Navigation\";\n}\n\nconst LocationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n LocationContext.displayName = \"Location\";\n}\n\nconst RouteContext = /*#__PURE__*/React.createContext({\n outlet: null,\n matches: []\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteContext.displayName = \"Route\";\n}\n\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/hooks/use-href\n */\n\nfunction useHref(to, _temp) {\n let {\n relative\n } = _temp === void 0 ? {} : _temp;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useHref() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n hash,\n pathname,\n search\n } = useResolvedPath(to, {\n relative\n });\n let joinedPathname = pathname; // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n\n return navigator.createHref({\n pathname: joinedPathname,\n search,\n hash\n });\n}\n/**\n * Returns true if this component is a descendant of a .\n *\n * @see https://reactrouter.com/hooks/use-in-router-context\n */\n\nfunction useInRouterContext() {\n return React.useContext(LocationContext) != null;\n}\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/hooks/use-location\n */\n\nfunction useLocation() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useLocation() may be used only in the context of a component.\") : invariant(false) : void 0;\n return React.useContext(LocationContext).location;\n}\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/hooks/use-navigation-type\n */\n\nfunction useNavigationType() {\n return React.useContext(LocationContext).navigationType;\n}\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * .\n *\n * @see https://reactrouter.com/hooks/use-match\n */\n\nfunction useMatch(pattern) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useMatch() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n pathname\n } = useLocation();\n return React.useMemo(() => matchPath(pattern, pathname), [pathname, pattern]);\n}\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\n/**\n * Returns an imperative method for changing the location. Used by s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/hooks/use-navigate\n */\nfunction useNavigate() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useNavigate() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n let activeRef = React.useRef(false);\n React.useEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(activeRef.current, \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\") : void 0;\n if (!activeRef.current) return;\n\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n\n let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\"); // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history. If this is a root navigation, then we\n // navigate to the raw basename which allows the basename to have full\n // control over the presence of a trailing slash on root links\n\n if (basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n\n (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n }, [basename, navigator, routePathnamesJson, locationPathname]);\n return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/hooks/use-outlet-context\n */\n\nfunction useOutletContext() {\n return React.useContext(OutletContext);\n}\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by to render child routes.\n *\n * @see https://reactrouter.com/hooks/use-outlet\n */\n\nfunction useOutlet(context) {\n let outlet = React.useContext(RouteContext).outlet;\n\n if (outlet) {\n return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n value: context\n }, outlet);\n }\n\n return outlet;\n}\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/hooks/use-params\n */\n\nfunction useParams() {\n let {\n matches\n } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/hooks/use-resolved-path\n */\n\nfunction useResolvedPath(to, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an to render their child route's\n * element.\n *\n * @see https://reactrouter.com/hooks/use-routes\n */\n\nfunction useRoutes(routes, locationArg) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useRoutes() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n navigator\n } = React.useContext(NavigationContext);\n let dataRouterStateContext = React.useContext(DataRouterStateContext);\n let {\n matches: parentMatches\n } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n\n if (process.env.NODE_ENV !== \"production\") {\n // You won't get a warning about 2 different under a \n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // \n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // } />\n // } />\n // \n //\n // function Blog() {\n // return (\n // \n // } />\n // \n // );\n // }\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (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\\n\" + (\"Please change the parent to .\"));\n }\n\n let locationFromContext = useLocation();\n let location;\n\n if (locationArg) {\n var _parsedLocationArg$pa;\n\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"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 \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : invariant(false) : void 0;\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n\n let pathname = location.pathname || \"/\";\n let remainingPathname = parentPathnameBase === \"/\" ? pathname : pathname.slice(parentPathnameBase.length) || \"/\";\n let matches = matchRoutes(routes, {\n pathname: remainingPathname\n });\n\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(matches == null || matches[matches.length - 1].route.element !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" does not have an element. \" + \"This means it will render an with a null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n }\n\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n })), parentMatches, dataRouterStateContext || undefined); // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n\n\n if (locationArg && renderedMatches) {\n return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n value: {\n location: _extends({\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\"\n }, location),\n navigationType: Action.Pop\n }\n }, renderedMatches);\n }\n\n return renderedMatches;\n}\n\nfunction DefaultErrorElement() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = {\n padding: \"0.5rem\",\n backgroundColor: lightgrey\n };\n let codeStyles = {\n padding: \"2px 4px\",\n backgroundColor: lightgrey\n };\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unhandled Thrown Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n fontStyle: \"italic\"\n }\n }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n style: preStyles\n }, stack) : null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"errorElement\"), \" props on\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"\")));\n}\n\nclass RenderErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n error: props.error\n };\n }\n\n static getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n\n static getDerivedStateFromProps(props, state) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location) {\n return {\n error: props.error,\n location: props.location\n };\n } // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n\n\n return {\n error: props.error || state.error,\n location: state.location\n };\n }\n\n componentDidCatch(error, errorInfo) {\n console.error(\"React Router caught the following error during render\", error, errorInfo);\n }\n\n render() {\n return this.state.error ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: this.props.routeContext\n }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n value: this.state.error,\n children: this.props.component\n })) : this.props.children;\n }\n\n}\n\nfunction RenderedRoute(_ref) {\n let {\n routeContext,\n match,\n children\n } = _ref;\n let dataStaticRouterContext = React.useContext(DataStaticRouterContext); // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n\n if (dataStaticRouterContext && match.route.errorElement) {\n dataStaticRouterContext._deepestRenderedBoundaryId = match.route.id;\n }\n\n return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: routeContext\n }, children);\n}\n\nfunction _renderMatches(matches, parentMatches, dataRouterState) {\n if (parentMatches === void 0) {\n parentMatches = [];\n }\n\n if (matches == null) {\n if (dataRouterState != null && dataRouterState.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n\n let renderedMatches = matches; // If we have data errors, trim matches to the highest error boundary\n\n let errors = dataRouterState == null ? void 0 : dataRouterState.errors;\n\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]));\n !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Could not find a matching route for the current errors: \" + errors) : invariant(false) : void 0;\n renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n }\n\n return renderedMatches.reduceRight((outlet, match, index) => {\n let error = match.route.id ? errors == null ? void 0 : errors[match.route.id] : null; // Only data routers handle errors\n\n let errorElement = dataRouterState ? match.route.errorElement || /*#__PURE__*/React.createElement(DefaultErrorElement, null) : null;\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n\n let getChildren = () => /*#__PURE__*/React.createElement(RenderedRoute, {\n match: match,\n routeContext: {\n outlet,\n matches\n }\n }, error ? errorElement : match.route.element !== undefined ? match.route.element : outlet); // Only wrap in an error boundary within data router usages when we have an\n // errorElement on this route. Otherwise let it bubble up to an ancestor\n // errorElement\n\n\n return dataRouterState && (match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n location: dataRouterState.location,\n component: errorElement,\n error: error,\n children: getChildren(),\n routeContext: {\n outlet: null,\n matches\n }\n }) : getChildren();\n }, null);\n}\nvar DataRouterHook;\n\n(function (DataRouterHook) {\n DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterHook || (DataRouterHook = {}));\n\nvar DataRouterStateHook;\n\n(function (DataRouterStateHook) {\n DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterStateHook || (DataRouterStateHook = {}));\n\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/routers/picking-a-router.\";\n}\n\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return ctx;\n}\n\nfunction useDataRouterState(hookName) {\n let state = React.useContext(DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return state;\n}\n\nfunction useRouteContext(hookName) {\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return route;\n}\n\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : invariant(false) : void 0;\n return thisRoute.route.id;\n}\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\n\n\nfunction useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\n\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return {\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation\n };\n}\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\n\nfunction useMatches() {\n let {\n matches,\n loaderData\n } = useDataRouterState(DataRouterStateHook.UseMatches);\n return React.useMemo(() => matches.map(match => {\n let {\n pathname,\n params\n } = match; // Note: This structure matches that created by createUseMatchesMatch\n // in the @remix-run/router , so if you change this please also change\n // that :) Eventually we'll DRY this up\n\n return {\n id: match.route.id,\n pathname,\n params,\n data: loaderData[match.route.id],\n handle: match.route.handle\n };\n }), [matches, loaderData]);\n}\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\n\nfunction useLoaderData() {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n\n if (state.errors && state.errors[routeId] != null) {\n console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n return undefined;\n }\n\n return state.loaderData[routeId];\n}\n/**\n * Returns the loaderData for the given routeId\n */\n\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n/**\n * Returns the action data for the nearest ancestor Route action\n */\n\nfunction useActionData() {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"useActionData must be used inside a RouteContext\") : invariant(false) : void 0;\n return Object.values((state == null ? void 0 : state.actionData) || {})[0];\n}\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * errorElement to display a proper error message.\n */\n\nfunction useRouteError() {\n var _state$errors;\n\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError); // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n\n if (error) {\n return error;\n } // Otherwise look for errors from our data router state\n\n\n return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n/**\n * Returns the happy-path data from the nearest ancestor value\n */\n\nfunction useAsyncValue() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._data;\n}\n/**\n * Returns the error from the nearest ancestor value\n */\n\nfunction useAsyncError() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._error;\n}\nconst alreadyWarned = {};\n\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n process.env.NODE_ENV !== \"production\" ? warning(false, message) : void 0;\n }\n}\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router\n } = _ref;\n // Sync router state to our component state to force re-renders\n let state = useSyncExternalStore(router.subscribe, () => router.state, // We have to provide this so React@18 doesn't complain during hydration,\n // but we pass our serialized hydration data into the router so state here\n // is already synced with what the server saw\n () => router.state);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\";\n return /*#__PURE__*/React.createElement(DataRouterContext.Provider, {\n value: {\n router,\n navigator,\n static: false,\n // Do we need this?\n basename\n }\n }, /*#__PURE__*/React.createElement(DataRouterStateContext.Provider, {\n value: state\n }, /*#__PURE__*/React.createElement(Router, {\n basename: router.basename,\n location: router.state.location,\n navigationType: router.state.historyAction,\n navigator: navigator\n }, router.state.initialized ? /*#__PURE__*/React.createElement(Routes, null) : fallbackElement)));\n}\n\n/**\n * A that stores all entries in memory.\n *\n * @see https://reactrouter.com/router-components/memory-router\n */\nfunction MemoryRouter(_ref2) {\n let {\n basename,\n children,\n initialEntries,\n initialIndex\n } = _ref2;\n let historyRef = React.useRef();\n\n if (historyRef.current == null) {\n historyRef.current = createMemoryHistory({\n initialEntries,\n initialIndex,\n v5Compat: true\n });\n }\n\n let history = historyRef.current;\n let [state, setState] = React.useState({\n action: history.action,\n location: history.location\n });\n React.useLayoutEffect(() => history.listen(setState), [history]);\n return /*#__PURE__*/React.createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n });\n}\n\n/**\n * Changes the current location.\n *\n * Note: This API is mostly useful in React.Component subclasses that are not\n * able to use hooks. In functional components, we recommend you use the\n * `useNavigate` hook instead.\n *\n * @see https://reactrouter.com/components/navigate\n */\nfunction Navigate(_ref3) {\n let {\n to,\n replace,\n state,\n relative\n } = _ref3;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of\n // the router loaded. We can help them understand how to avoid that.\n \" may be used only in the context of a component.\") : invariant(false) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!React.useContext(NavigationContext).static, \" 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.\") : void 0;\n let dataRouterState = React.useContext(DataRouterStateContext);\n let navigate = useNavigate();\n React.useEffect(() => {\n // Avoid kicking off multiple navigations if we're in the middle of a\n // data-router navigation, since components get re-rendered when we enter\n // a submitting/loading state\n if (dataRouterState && dataRouterState.navigation.state !== \"idle\") {\n return;\n }\n\n navigate(to, {\n replace,\n state,\n relative\n });\n });\n return null;\n}\n\n/**\n * Renders the child route's element, if there is one.\n *\n * @see https://reactrouter.com/components/outlet\n */\nfunction Outlet(props) {\n return useOutlet(props.context);\n}\n\n/**\n * Declares an element that should be rendered at a certain URL path.\n *\n * @see https://reactrouter.com/components/route\n */\nfunction Route(_props) {\n process.env.NODE_ENV !== \"production\" ? invariant(false, \"A is only ever to be used as the child of element, \" + \"never rendered directly. Please wrap your in a .\") : invariant(false) ;\n}\n\n/**\n * Provides location context for the rest of the app.\n *\n * Note: You usually won't render a directly. Instead, you'll render a\n * router that is more specific to your environment such as a \n * in web browsers or a for server rendering.\n *\n * @see https://reactrouter.com/router-components/router\n */\nfunction Router(_ref4) {\n let {\n basename: basenameProp = \"/\",\n children = null,\n location: locationProp,\n navigationType = Action.Pop,\n navigator,\n static: staticProp = false\n } = _ref4;\n !!useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You cannot render a inside another .\" + \" You should never have more than one in your app.\") : invariant(false) : void 0; // Preserve trailing slashes on basename, so we can let the user control\n // the enforcement of trailing slashes throughout the app\n\n let basename = basenameProp.replace(/^\\/*/, \"/\");\n let navigationContext = React.useMemo(() => ({\n basename,\n navigator,\n static: staticProp\n }), [basename, navigator, staticProp]);\n\n if (typeof locationProp === \"string\") {\n locationProp = parsePath(locationProp);\n }\n\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\",\n state = null,\n key = \"default\"\n } = locationProp;\n let location = React.useMemo(() => {\n let trailingPathname = stripBasename(pathname, basename);\n\n if (trailingPathname == null) {\n return null;\n }\n\n return {\n pathname: trailingPathname,\n search,\n hash,\n state,\n key\n };\n }, [basename, pathname, search, hash, state, key]);\n process.env.NODE_ENV !== \"production\" ? warning(location != null, \" is not able to match the URL \" + (\"\\\"\" + pathname + search + hash + \"\\\" because it does not start with the \") + \"basename, so the won't render anything.\") : void 0;\n\n if (location == null) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(NavigationContext.Provider, {\n value: navigationContext\n }, /*#__PURE__*/React.createElement(LocationContext.Provider, {\n children: children,\n value: {\n location,\n navigationType\n }\n }));\n}\n\n/**\n * A container for a nested tree of elements that renders the branch\n * that best matches the current location.\n *\n * @see https://reactrouter.com/components/routes\n */\nfunction Routes(_ref5) {\n let {\n children,\n location\n } = _ref5;\n let dataRouterContext = React.useContext(DataRouterContext); // When in a DataRouterContext _without_ children, we use the router routes\n // directly. If we have children, then we're in a descendant tree and we\n // need to use child routes.\n\n let routes = dataRouterContext && !children ? dataRouterContext.router.routes : createRoutesFromChildren(children);\n return useRoutes(routes, location);\n}\n\n/**\n * Component to use for rendering lazily loaded data from returning defer()\n * in a loader function\n */\nfunction Await(_ref6) {\n let {\n children,\n errorElement,\n resolve\n } = _ref6;\n return /*#__PURE__*/React.createElement(AwaitErrorBoundary, {\n resolve: resolve,\n errorElement: errorElement\n }, /*#__PURE__*/React.createElement(ResolveAwait, null, children));\n}\nvar AwaitRenderStatus;\n\n(function (AwaitRenderStatus) {\n AwaitRenderStatus[AwaitRenderStatus[\"pending\"] = 0] = \"pending\";\n AwaitRenderStatus[AwaitRenderStatus[\"success\"] = 1] = \"success\";\n AwaitRenderStatus[AwaitRenderStatus[\"error\"] = 2] = \"error\";\n})(AwaitRenderStatus || (AwaitRenderStatus = {}));\n\nconst neverSettledPromise = new Promise(() => {});\n\nclass AwaitErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n error: null\n };\n }\n\n static getDerivedStateFromError(error) {\n return {\n error\n };\n }\n\n componentDidCatch(error, errorInfo) {\n console.error(\" caught the following error during render\", error, errorInfo);\n }\n\n render() {\n let {\n children,\n errorElement,\n resolve\n } = this.props;\n let promise = null;\n let status = AwaitRenderStatus.pending;\n\n if (!(resolve instanceof Promise)) {\n // Didn't get a promise - provide as a resolved promise\n status = AwaitRenderStatus.success;\n promise = Promise.resolve();\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n Object.defineProperty(promise, \"_data\", {\n get: () => resolve\n });\n } else if (this.state.error) {\n // Caught a render error, provide it as a rejected promise\n status = AwaitRenderStatus.error;\n let renderError = this.state.error;\n promise = Promise.reject().catch(() => {}); // Avoid unhandled rejection warnings\n\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n Object.defineProperty(promise, \"_error\", {\n get: () => renderError\n });\n } else if (resolve._tracked) {\n // Already tracked promise - check contents\n promise = resolve;\n status = promise._error !== undefined ? AwaitRenderStatus.error : promise._data !== undefined ? AwaitRenderStatus.success : AwaitRenderStatus.pending;\n } else {\n // Raw (untracked) promise - track it\n status = AwaitRenderStatus.pending;\n Object.defineProperty(resolve, \"_tracked\", {\n get: () => true\n });\n promise = resolve.then(data => Object.defineProperty(resolve, \"_data\", {\n get: () => data\n }), error => Object.defineProperty(resolve, \"_error\", {\n get: () => error\n }));\n }\n\n if (status === AwaitRenderStatus.error && promise._error instanceof AbortedDeferredError) {\n // Freeze the UI by throwing a never resolved promise\n throw neverSettledPromise;\n }\n\n if (status === AwaitRenderStatus.error && !errorElement) {\n // No errorElement, throw to the nearest route-level error boundary\n throw promise._error;\n }\n\n if (status === AwaitRenderStatus.error) {\n // Render via our errorElement\n return /*#__PURE__*/React.createElement(AwaitContext.Provider, {\n value: promise,\n children: errorElement\n });\n }\n\n if (status === AwaitRenderStatus.success) {\n // Render children with resolved value\n return /*#__PURE__*/React.createElement(AwaitContext.Provider, {\n value: promise,\n children: children\n });\n } // Throw to the suspense boundary\n\n\n throw promise;\n }\n\n}\n/**\n * @private\n * Indirection to leverage useAsyncValue for a render-prop API on \n */\n\n\nfunction ResolveAwait(_ref7) {\n let {\n children\n } = _ref7;\n let data = useAsyncValue();\n\n if (typeof children === \"function\") {\n return children(data);\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, children);\n} ///////////////////////////////////////////////////////////////////////////////\n// UTILS\n///////////////////////////////////////////////////////////////////////////////\n\n/**\n * Creates a route config from a React \"children\" object, which is usually\n * either a `` element or an array of them. Used internally by\n * `` to create a route config from its children.\n *\n * @see https://reactrouter.com/utils/create-routes-from-children\n */\n\n\nfunction createRoutesFromChildren(children, parentPath) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n\n let routes = [];\n React.Children.forEach(children, (element, index) => {\n if (! /*#__PURE__*/React.isValidElement(element)) {\n // Ignore non-elements. This allows people to more easily inline\n // conditionals in their route config.\n return;\n }\n\n if (element.type === React.Fragment) {\n // Transparently support React.Fragment and its children.\n routes.push.apply(routes, createRoutesFromChildren(element.props.children, parentPath));\n return;\n }\n\n !(element.type === Route) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"[\" + (typeof element.type === \"string\" ? element.type : element.type.name) + \"] is not a component. All component children of must be a or \") : invariant(false) : void 0;\n !(!element.props.index || !element.props.children) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"An index route cannot have child routes.\") : invariant(false) : void 0;\n let treePath = [...parentPath, index];\n let route = {\n id: element.props.id || treePath.join(\"-\"),\n caseSensitive: element.props.caseSensitive,\n element: element.props.element,\n index: element.props.index,\n path: element.props.path,\n loader: element.props.loader,\n action: element.props.action,\n errorElement: element.props.errorElement,\n hasErrorBoundary: element.props.errorElement != null,\n shouldRevalidate: element.props.shouldRevalidate,\n handle: element.props.handle\n };\n\n if (element.props.children) {\n route.children = createRoutesFromChildren(element.props.children, treePath);\n }\n\n routes.push(route);\n });\n return routes;\n}\n/**\n * Renders the result of `matchRoutes()` into a React element.\n */\n\nfunction renderMatches(matches) {\n return _renderMatches(matches);\n}\n/**\n * @private\n * Walk the route tree and add hasErrorBoundary if it's not provided, so that\n * users providing manual route arrays can just specify errorElement\n */\n\nfunction enhanceManualRouteObjects(routes) {\n return routes.map(route => {\n let routeClone = _extends({}, route);\n\n if (routeClone.hasErrorBoundary == null) {\n routeClone.hasErrorBoundary = routeClone.errorElement != null;\n }\n\n if (routeClone.children) {\n routeClone.children = enhanceManualRouteObjects(routeClone.children);\n }\n\n return routeClone;\n });\n}\n\nfunction createMemoryRouter(routes, opts) {\n return createRouter({\n basename: opts == null ? void 0 : opts.basename,\n history: createMemoryHistory({\n initialEntries: opts == null ? void 0 : opts.initialEntries,\n initialIndex: opts == null ? void 0 : opts.initialIndex\n }),\n hydrationData: opts == null ? void 0 : opts.hydrationData,\n routes: enhanceManualRouteObjects(routes)\n }).initialize();\n} ///////////////////////////////////////////////////////////////////////////////\n\nexport { Await, MemoryRouter, Navigate, Outlet, Route, Router, RouterProvider, Routes, DataRouterContext as UNSAFE_DataRouterContext, DataRouterStateContext as UNSAFE_DataRouterStateContext, DataStaticRouterContext as UNSAFE_DataStaticRouterContext, LocationContext as UNSAFE_LocationContext, NavigationContext as UNSAFE_NavigationContext, RouteContext as UNSAFE_RouteContext, enhanceManualRouteObjects as UNSAFE_enhanceManualRouteObjects, createMemoryRouter, createRoutesFromChildren, createRoutesFromChildren as createRoutesFromElements, renderMatches, useActionData, useAsyncError, useAsyncValue, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };\n//# sourceMappingURL=index.js.map\n","/**\n * React Router DOM v6.6.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport { UNSAFE_enhanceManualRouteObjects, Router, useHref, useResolvedPath, useLocation, UNSAFE_DataRouterStateContext, UNSAFE_NavigationContext, useNavigate, createPath, UNSAFE_RouteContext, useMatches, useNavigation, UNSAFE_DataRouterContext } from 'react-router';\nexport { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, RouterProvider, Routes, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_DataStaticRouterContext, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, UNSAFE_enhanceManualRouteObjects, createMemoryRouter, createPath, createRoutesFromChildren, createRoutesFromElements, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, renderMatches, resolvePath, useActionData, useAsyncError, useAsyncValue, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes } from 'react-router';\nimport { createRouter, createBrowserHistory, createHashHistory, ErrorResponse, invariant, joinPaths } from '@remix-run/router';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nconst defaultMethod = \"get\";\nconst defaultEncType = \"application/x-www-form-urlencoded\";\nfunction isHtmlElement(object) {\n return object != null && typeof object.tagName === \"string\";\n}\nfunction isButtonElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"button\";\n}\nfunction isFormElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"form\";\n}\nfunction isInputElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"input\";\n}\n\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nfunction shouldProcessLinkClick(event, target) {\n return event.button === 0 && ( // Ignore everything but left clicks\n !target || target === \"_self\") && // Let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // Ignore clicks with modifier keys\n ;\n}\n/**\n * Creates a URLSearchParams object using the given initializer.\n *\n * This is identical to `new URLSearchParams(init)` except it also\n * supports arrays as values in the object form of the initializer\n * instead of just strings. This is convenient when you need multiple\n * values for a given key, but don't want to use an array initializer.\n *\n * For example, instead of:\n *\n * let searchParams = new URLSearchParams([\n * ['sort', 'name'],\n * ['sort', 'price']\n * ]);\n *\n * you can do:\n *\n * let searchParams = createSearchParams({\n * sort: ['name', 'price']\n * });\n */\n\nfunction createSearchParams(init) {\n if (init === void 0) {\n init = \"\";\n }\n\n return new URLSearchParams(typeof init === \"string\" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo, key) => {\n let value = init[key];\n return memo.concat(Array.isArray(value) ? value.map(v => [key, v]) : [[key, value]]);\n }, []));\n}\nfunction getSearchParamsForLocation(locationSearch, defaultSearchParams) {\n let searchParams = createSearchParams(locationSearch);\n\n for (let key of defaultSearchParams.keys()) {\n if (!searchParams.has(key)) {\n defaultSearchParams.getAll(key).forEach(value => {\n searchParams.append(key, value);\n });\n }\n }\n\n return searchParams;\n}\nfunction getFormSubmissionInfo(target, defaultAction, options) {\n let method;\n let action;\n let encType;\n let formData;\n\n if (isFormElement(target)) {\n let submissionTrigger = options.submissionTrigger;\n method = options.method || target.getAttribute(\"method\") || defaultMethod;\n action = options.action || target.getAttribute(\"action\") || defaultAction;\n encType = options.encType || target.getAttribute(\"enctype\") || defaultEncType;\n formData = new FormData(target);\n\n if (submissionTrigger && submissionTrigger.name) {\n formData.append(submissionTrigger.name, submissionTrigger.value);\n }\n } else if (isButtonElement(target) || isInputElement(target) && (target.type === \"submit\" || target.type === \"image\")) {\n let form = target.form;\n\n if (form == null) {\n throw new Error(\"Cannot submit a \n * \n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export default !!(typeof window !== 'undefined' && window.document && window.document.createElement);","/* eslint-disable no-return-assign */\nimport canUseDOM from './canUseDOM';\nexport var optionsSupported = false;\nexport var onceSupported = false;\n\ntry {\n var options = {\n get passive() {\n return optionsSupported = true;\n },\n\n get once() {\n // eslint-disable-next-line no-multi-assign\n return onceSupported = optionsSupported = true;\n }\n\n };\n\n if (canUseDOM) {\n window.addEventListener('test', options, options);\n window.removeEventListener('test', options, true);\n }\n} catch (e) {\n /* */\n}\n\n/**\n * An `addEventListener` ponyfill, supports the `once` option\n * \n * @param node the element\n * @param eventName the event name\n * @param handle the handler\n * @param options event options\n */\nfunction addEventListener(node, eventName, handler, options) {\n if (options && typeof options !== 'boolean' && !onceSupported) {\n var once = options.once,\n capture = options.capture;\n var wrappedHandler = handler;\n\n if (!onceSupported && once) {\n wrappedHandler = handler.__once || function onceHandler(event) {\n this.removeEventListener(eventName, onceHandler, capture);\n handler.call(this, event);\n };\n\n handler.__once = wrappedHandler;\n }\n\n node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture);\n }\n\n node.addEventListener(eventName, handler, options);\n}\n\nexport default addEventListener;","/**\n * A `removeEventListener` ponyfill\n * \n * @param node the element\n * @param eventName the event name\n * @param handle the handler\n * @param options event options\n */\nfunction removeEventListener(node, eventName, handler, options) {\n var capture = options && typeof options !== 'boolean' ? options.capture : options;\n node.removeEventListener(eventName, handler, capture);\n\n if (handler.__once) {\n node.removeEventListener(eventName, handler.__once, capture);\n }\n}\n\nexport default removeEventListener;","import addEventListener from './addEventListener';\nimport removeEventListener from './removeEventListener';\n\nfunction listen(node, eventName, handler, options) {\n addEventListener(node, eventName, handler, options);\n return function () {\n removeEventListener(node, eventName, handler, options);\n };\n}\n\nexport default listen;","/**\n * Triggers an event on a given element.\n * \n * @param node the element\n * @param eventName the event name to trigger\n * @param bubbles whether the event should bubble up\n * @param cancelable whether the event should be cancelable\n */\nexport default function triggerEvent(node, eventName, bubbles, cancelable) {\n if (bubbles === void 0) {\n bubbles = false;\n }\n\n if (cancelable === void 0) {\n cancelable = true;\n }\n\n if (node) {\n var event = document.createEvent('HTMLEvents');\n event.initEvent(eventName, bubbles, cancelable);\n node.dispatchEvent(event);\n }\n}","import css from './css';\nimport listen from './listen';\nimport triggerEvent from './triggerEvent';\n\nfunction parseDuration(node) {\n var str = css(node, 'transitionDuration') || '';\n var mult = str.indexOf('ms') === -1 ? 1000 : 1;\n return parseFloat(str) * mult;\n}\n\nfunction emulateTransitionEnd(element, duration, padding) {\n if (padding === void 0) {\n padding = 5;\n }\n\n var called = false;\n var handle = setTimeout(function () {\n if (!called) triggerEvent(element, 'transitionend', true);\n }, duration + padding);\n var remove = listen(element, 'transitionend', function () {\n called = true;\n }, {\n once: true\n });\n return function () {\n clearTimeout(handle);\n remove();\n };\n}\n\nexport default function transitionEnd(element, handler, duration, padding) {\n if (duration == null) duration = parseDuration(element) || 0;\n var removeEmulate = emulateTransitionEnd(element, duration, padding);\n var remove = listen(element, 'transitionend', handler);\n return function () {\n removeEmulate();\n remove();\n };\n}","import css from 'dom-helpers/css';\nimport transitionEnd from 'dom-helpers/transitionEnd';\nfunction parseDuration(node, property) {\n const str = css(node, property) || '';\n const mult = str.indexOf('ms') === -1 ? 1000 : 1;\n return parseFloat(str) * mult;\n}\nexport default function transitionEndListener(element, handler) {\n const duration = parseDuration(element, 'transitionDuration');\n const delay = parseDuration(element, 'transitionDelay');\n const remove = transitionEnd(element, e => {\n if (e.target === element) {\n remove();\n handler(e);\n }\n }, duration + delay);\n}","/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nfunction createChainedFunction(...funcs) {\n return funcs.filter(f => f != null).reduce((acc, f) => {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n if (acc === null) return f;\n return function chainedFunction(...args) {\n // @ts-ignore\n acc.apply(this, args);\n // @ts-ignore\n f.apply(this, args);\n };\n }, null);\n}\nexport default createChainedFunction;","// reading a dimension prop will cause the browser to recalculate,\n// which will let our animations work\nexport default function triggerBrowserReflow(node) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n node.offsetHeight;\n}","import { useMemo } from 'react';\n\nvar toFnRef = function toFnRef(ref) {\n return !ref || typeof ref === 'function' ? ref : function (value) {\n ref.current = value;\n };\n};\n\nexport function mergeRefs(refA, refB) {\n var a = toFnRef(refA);\n var b = toFnRef(refB);\n return function (value) {\n if (a) a(value);\n if (b) b(value);\n };\n}\n/**\n * Create and returns a single callback ref composed from two other Refs.\n *\n * ```tsx\n * const Button = React.forwardRef((props, ref) => {\n * const [element, attachRef] = useCallbackRef();\n * const mergedRef = useMergedRefs(ref, attachRef);\n *\n * return \n * ```\n */\n\nexport default function useForceUpdate() {\n // The toggling state value is designed to defeat React optimizations for skipping\n // updates when they are stricting equal to the last state value\n var _useReducer = useReducer(function (state) {\n return !state;\n }, false),\n dispatch = _useReducer[1];\n\n return dispatch;\n}","import * as React from 'react';\nconst DropdownContext = /*#__PURE__*/React.createContext(null);\nexport default DropdownContext;","var has = Object.prototype.hasOwnProperty;\n\nfunction find(iter, tar, key) {\n\tfor (key of iter.keys()) {\n\t\tif (dequal(key, tar)) return key;\n\t}\n}\n\nexport function dequal(foo, bar) {\n\tvar ctor, len, tmp;\n\tif (foo === bar) return true;\n\n\tif (foo && bar && (ctor=foo.constructor) === bar.constructor) {\n\t\tif (ctor === Date) return foo.getTime() === bar.getTime();\n\t\tif (ctor === RegExp) return foo.toString() === bar.toString();\n\n\t\tif (ctor === Array) {\n\t\t\tif ((len=foo.length) === bar.length) {\n\t\t\t\twhile (len-- && dequal(foo[len], bar[len]));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ctor === Set) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len;\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!bar.has(tmp)) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === Map) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len[0];\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!dequal(len[1], bar.get(tmp))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === ArrayBuffer) {\n\t\t\tfoo = new Uint8Array(foo);\n\t\t\tbar = new Uint8Array(bar);\n\t\t} else if (ctor === DataView) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo.getInt8(len) === bar.getInt8(len));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ArrayBuffer.isView(foo)) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo[len] === bar[len]);\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (!ctor || typeof foo === 'object') {\n\t\t\tlen = 0;\n\t\t\tfor (ctor in foo) {\n\t\t\t\tif (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;\n\t\t\t\tif (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;\n\t\t\t}\n\t\t\treturn Object.keys(bar).length === len;\n\t\t}\n\t}\n\n\treturn foo !== foo && bar !== bar;\n}\n","import { useCallback } from 'react';\nimport useMounted from './useMounted';\n\nfunction useSafeState(state) {\n var isMounted = useMounted();\n return [state[0], useCallback(function (nextState) {\n if (!isMounted()) return;\n return state[1](nextState);\n }, [isMounted, state[1]])];\n}\n\nexport default useSafeState;","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!isHTMLElement(arrowElement)) {\n console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref) {\n var x = _ref.x,\n y = _ref.y;\n var win = window;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n if (process.env.NODE_ENV !== \"production\") {\n var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n\n if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n return transitionProperty.indexOf(property) >= 0;\n })) {\n console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n }\n }\n\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, \"auto\" cannot be used to allow \"bottom-start\".', 'Use \"auto-start\" instead.'].join(' '));\n }\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport getComputedStyle from \"./dom-utils/getComputedStyle.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport validateModifiers from \"./utils/validateModifiers.js\";\nimport uniqueBy from \"./utils/uniqueBy.js\";\nimport getBasePlacement from \"./utils/getBasePlacement.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nimport { auto } from \"./enums.js\";\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n\n if (process.env.NODE_ENV !== \"production\") {\n var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n var name = _ref.name;\n return name;\n });\n validateModifiers(modifiers);\n\n if (getBasePlacement(state.options.placement) === auto) {\n var flipModifier = state.orderedModifiers.find(function (_ref2) {\n var name = _ref2.name;\n return name === 'flip';\n });\n\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n\n var _getComputedStyle = getComputedStyle(popper),\n marginTop = _getComputedStyle.marginTop,\n marginRight = _getComputedStyle.marginRight,\n marginBottom = _getComputedStyle.marginBottom,\n marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n\n\n if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n return parseFloat(margin);\n })) {\n console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n }\n }\n\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (process.env.NODE_ENV !== \"production\") {\n __debug_loops__ += 1;\n\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref3) {\n var name = _ref3.name,\n _ref3$options = _ref3.options,\n options = _ref3$options === void 0 ? {} : _ref3$options,\n effect = _ref3.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import arrow from '@popperjs/core/lib/modifiers/arrow';\nimport computeStyles from '@popperjs/core/lib/modifiers/computeStyles';\nimport eventListeners from '@popperjs/core/lib/modifiers/eventListeners';\nimport flip from '@popperjs/core/lib/modifiers/flip';\nimport hide from '@popperjs/core/lib/modifiers/hide';\nimport offset from '@popperjs/core/lib/modifiers/offset';\nimport popperOffsets from '@popperjs/core/lib/modifiers/popperOffsets';\nimport preventOverflow from '@popperjs/core/lib/modifiers/preventOverflow';\nimport { placements } from '@popperjs/core/lib/enums';\nimport { popperGenerator } from '@popperjs/core/lib/popper-base'; // For the common JS build we will turn this file into a bundle with no imports.\n// This is b/c the Popper lib is all esm files, and would break in a common js only environment\n\nexport const createPopper = popperGenerator({\n defaultModifiers: [hide, popperOffsets, computeStyles, eventListeners, offset, flip, preventOverflow, arrow]\n});\nexport { placements };","const _excluded = [\"enabled\", \"placement\", \"strategy\", \"modifiers\"];\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { dequal } from 'dequal';\nimport useSafeState from '@restart/hooks/useSafeState';\nimport { createPopper } from './popper';\nconst disabledApplyStylesModifier = {\n name: 'applyStyles',\n enabled: false,\n phase: 'afterWrite',\n fn: () => undefined\n}; // until docjs supports type exports...\n\nconst ariaDescribedByModifier = {\n name: 'ariaDescribedBy',\n enabled: true,\n phase: 'afterWrite',\n effect: ({\n state\n }) => () => {\n const {\n reference,\n popper\n } = state.elements;\n\n if ('removeAttribute' in reference) {\n const ids = (reference.getAttribute('aria-describedby') || '').split(',').filter(id => id.trim() !== popper.id);\n if (!ids.length) reference.removeAttribute('aria-describedby');else reference.setAttribute('aria-describedby', ids.join(','));\n }\n },\n fn: ({\n state\n }) => {\n var _popper$getAttribute;\n\n const {\n popper,\n reference\n } = state.elements;\n const role = (_popper$getAttribute = popper.getAttribute('role')) == null ? void 0 : _popper$getAttribute.toLowerCase();\n\n if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {\n const ids = reference.getAttribute('aria-describedby');\n\n if (ids && ids.split(',').indexOf(popper.id) !== -1) {\n return;\n }\n\n reference.setAttribute('aria-describedby', ids ? `${ids},${popper.id}` : popper.id);\n }\n }\n};\nconst EMPTY_MODIFIERS = [];\n/**\n * Position an element relative some reference element using Popper.js\n *\n * @param referenceElement\n * @param popperElement\n * @param {object} options\n * @param {object=} options.modifiers Popper.js modifiers\n * @param {boolean=} options.enabled toggle the popper functionality on/off\n * @param {string=} options.placement The popper element placement relative to the reference element\n * @param {string=} options.strategy the positioning strategy\n * @param {function=} options.onCreate called when the popper is created\n * @param {function=} options.onUpdate called when the popper is updated\n *\n * @returns {UsePopperState} The popper state\n */\n\nfunction usePopper(referenceElement, popperElement, _ref = {}) {\n let {\n enabled = true,\n placement = 'bottom',\n strategy = 'absolute',\n modifiers = EMPTY_MODIFIERS\n } = _ref,\n config = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n const prevModifiers = useRef(modifiers);\n const popperInstanceRef = useRef();\n const update = useCallback(() => {\n var _popperInstanceRef$cu;\n\n (_popperInstanceRef$cu = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu.update();\n }, []);\n const forceUpdate = useCallback(() => {\n var _popperInstanceRef$cu2;\n\n (_popperInstanceRef$cu2 = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu2.forceUpdate();\n }, []);\n const [popperState, setState] = useSafeState(useState({\n placement,\n update,\n forceUpdate,\n attributes: {},\n styles: {\n popper: {},\n arrow: {}\n }\n }));\n const updateModifier = useMemo(() => ({\n name: 'updateStateModifier',\n enabled: true,\n phase: 'write',\n requires: ['computeStyles'],\n fn: ({\n state\n }) => {\n const styles = {};\n const attributes = {};\n Object.keys(state.elements).forEach(element => {\n styles[element] = state.styles[element];\n attributes[element] = state.attributes[element];\n });\n setState({\n state,\n styles,\n attributes,\n update,\n forceUpdate,\n placement: state.placement\n });\n }\n }), [update, forceUpdate, setState]);\n const nextModifiers = useMemo(() => {\n if (!dequal(prevModifiers.current, modifiers)) {\n prevModifiers.current = modifiers;\n }\n\n return prevModifiers.current;\n }, [modifiers]);\n useEffect(() => {\n if (!popperInstanceRef.current || !enabled) return;\n popperInstanceRef.current.setOptions({\n placement,\n strategy,\n modifiers: [...nextModifiers, updateModifier, disabledApplyStylesModifier]\n });\n }, [strategy, placement, updateModifier, enabled, nextModifiers]);\n useEffect(() => {\n if (!enabled || referenceElement == null || popperElement == null) {\n return undefined;\n }\n\n popperInstanceRef.current = createPopper(referenceElement, popperElement, Object.assign({}, config, {\n placement,\n strategy,\n modifiers: [...nextModifiers, ariaDescribedByModifier, updateModifier]\n }));\n return () => {\n if (popperInstanceRef.current != null) {\n popperInstanceRef.current.destroy();\n popperInstanceRef.current = undefined;\n setState(s => Object.assign({}, s, {\n attributes: {},\n styles: {\n popper: {}\n }\n }));\n }\n }; // This is only run once to _create_ the popper\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [enabled, referenceElement, popperElement]);\n return popperState;\n}\n\nexport default usePopper;","/* eslint-disable no-bitwise, no-cond-assign */\n\n/**\n * Checks if an element contains another given element.\n * \n * @param context the context element\n * @param node the element to check\n */\nexport default function contains(context, node) {\n // HTML DOM and SVG DOM may have different support levels,\n // so we need to check on context instead of a document root element.\n if (context.contains) return context.contains(node);\n if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);\n}","import contains from 'dom-helpers/contains';\nimport listen from 'dom-helpers/listen';\nimport ownerDocument from 'dom-helpers/ownerDocument';\nimport { useCallback, useEffect, useRef } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport warning from 'warning';\n\nconst noop = () => {};\n\nfunction isLeftClickEvent(event) {\n return event.button === 0;\n}\n\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nexport const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);\nconst InitialTriggerEvents = {\n click: 'mousedown',\n mouseup: 'mousedown',\n pointerup: 'pointerdown'\n};\n/**\n * The `useClickOutside` hook registers your callback on the document that fires\n * when a pointer event is registered outside of the provided ref or element.\n *\n * @param {Ref| HTMLElement} ref The element boundary\n * @param {function} onClickOutside\n * @param {object=} options\n * @param {boolean=} options.disabled\n * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on\n */\n\nfunction useClickOutside(ref, onClickOutside = noop, {\n disabled,\n clickTrigger = 'click'\n} = {}) {\n const preventMouseClickOutsideRef = useRef(false);\n const waitingForTrigger = useRef(false);\n const handleMouseCapture = useCallback(e => {\n const currentTarget = getRefTarget(ref);\n warning(!!currentTarget, 'ClickOutside captured a close event but does not have a ref to compare it to. ' + 'useClickOutside(), should be passed a ref that resolves to a DOM node');\n preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target) || waitingForTrigger.current;\n waitingForTrigger.current = false;\n }, [ref]);\n const handleInitialMouse = useEventCallback(e => {\n const currentTarget = getRefTarget(ref);\n\n if (currentTarget && contains(currentTarget, e.target)) {\n waitingForTrigger.current = true;\n }\n });\n const handleMouse = useEventCallback(e => {\n if (!preventMouseClickOutsideRef.current) {\n onClickOutside(e);\n }\n });\n useEffect(() => {\n if (disabled || ref == null) return undefined;\n const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately\n // https://github.com/facebook/react/issues/20074\n\n let currentEvent = (doc.defaultView || window).event;\n let removeInitialTriggerListener = null;\n\n if (InitialTriggerEvents[clickTrigger]) {\n removeInitialTriggerListener = listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);\n } // Use capture for this listener so it fires before React's listener, to\n // avoid false positives in the contains() check below if the target DOM\n // element is removed in the React mouse callback.\n\n\n const removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);\n const removeMouseListener = listen(doc, clickTrigger, e => {\n // skip if this event is the same as the one running when we added the handlers\n if (e === currentEvent) {\n currentEvent = undefined;\n return;\n }\n\n handleMouse(e);\n });\n let mobileSafariHackListeners = [];\n\n if ('ontouchstart' in doc.documentElement) {\n mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => listen(el, 'mousemove', noop));\n }\n\n return () => {\n removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();\n removeMouseCaptureListener();\n removeMouseListener();\n mobileSafariHackListeners.forEach(remove => remove());\n };\n }, [ref, disabled, clickTrigger, handleMouseCapture, handleInitialMouse, handleMouse]);\n}\n\nexport default useClickOutside;","export function toModifierMap(modifiers) {\n const result = {};\n\n if (!Array.isArray(modifiers)) {\n return modifiers || result;\n } // eslint-disable-next-line no-unused-expressions\n\n\n modifiers == null ? void 0 : modifiers.forEach(m => {\n result[m.name] = m;\n });\n return result;\n}\nexport function toModifierArray(map = {}) {\n if (Array.isArray(map)) return map;\n return Object.keys(map).map(k => {\n map[k].name = k;\n return map[k];\n });\n}\nexport default function mergeOptionsWithPopperConfig({\n enabled,\n enableEvents,\n placement,\n flip,\n offset,\n fixed,\n containerPadding,\n arrowElement,\n popperConfig = {}\n}) {\n var _modifiers$eventListe, _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;\n\n const modifiers = toModifierMap(popperConfig.modifiers);\n return Object.assign({}, popperConfig, {\n placement,\n enabled,\n strategy: fixed ? 'fixed' : popperConfig.strategy,\n modifiers: toModifierArray(Object.assign({}, modifiers, {\n eventListeners: {\n enabled: enableEvents,\n options: (_modifiers$eventListe = modifiers.eventListeners) == null ? void 0 : _modifiers$eventListe.options\n },\n preventOverflow: Object.assign({}, modifiers.preventOverflow, {\n options: containerPadding ? Object.assign({\n padding: containerPadding\n }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options\n }),\n offset: {\n options: Object.assign({\n offset\n }, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)\n },\n arrow: Object.assign({}, modifiers.arrow, {\n enabled: !!arrowElement,\n options: Object.assign({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {\n element: arrowElement\n })\n }),\n flip: Object.assign({\n enabled: !!flip\n }, modifiers.flip)\n }))\n });\n}","const _excluded = [\"children\"];\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { useContext, useRef } from 'react';\nimport * as React from 'react';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport DropdownContext from './DropdownContext';\nimport usePopper from './usePopper';\nimport useClickOutside from './useClickOutside';\nimport mergeOptionsWithPopperConfig from './mergeOptionsWithPopperConfig';\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nconst noop = () => {};\n/**\n * @memberOf Dropdown\n * @param {object} options\n * @param {boolean} options.flip Automatically adjust the menu `drop` position based on viewport edge detection\n * @param {[number, number]} options.offset Define an offset distance between the Menu and the Toggle\n * @param {boolean} options.show Display the menu manually, ignored in the context of a `Dropdown`\n * @param {boolean} options.usePopper opt in/out of using PopperJS to position menus. When disabled you must position it yourself.\n * @param {string} options.rootCloseEvent The pointer event to listen for when determining \"clicks outside\" the menu for triggering a close.\n * @param {object} options.popperConfig Options passed to the [`usePopper`](/api/usePopper) hook.\n */\n\n\nexport function useDropdownMenu(options = {}) {\n const context = useContext(DropdownContext);\n const [arrowElement, attachArrowRef] = useCallbackRef();\n const hasShownRef = useRef(false);\n const {\n flip,\n offset,\n rootCloseEvent,\n fixed = false,\n placement: placementOverride,\n popperConfig = {},\n enableEventListeners = true,\n usePopper: shouldUsePopper = !!context\n } = options;\n const show = (context == null ? void 0 : context.show) == null ? !!options.show : context.show;\n\n if (show && !hasShownRef.current) {\n hasShownRef.current = true;\n }\n\n const handleClose = e => {\n context == null ? void 0 : context.toggle(false, e);\n };\n\n const {\n placement,\n setMenu,\n menuElement,\n toggleElement\n } = context || {};\n const popper = usePopper(toggleElement, menuElement, mergeOptionsWithPopperConfig({\n placement: placementOverride || placement || 'bottom-start',\n enabled: shouldUsePopper,\n enableEvents: enableEventListeners == null ? show : enableEventListeners,\n offset,\n flip,\n fixed,\n arrowElement,\n popperConfig\n }));\n const menuProps = Object.assign({\n ref: setMenu || noop,\n 'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id\n }, popper.attributes.popper, {\n style: popper.styles.popper\n });\n const metadata = {\n show,\n placement,\n hasShown: hasShownRef.current,\n toggle: context == null ? void 0 : context.toggle,\n popper: shouldUsePopper ? popper : null,\n arrowProps: shouldUsePopper ? Object.assign({\n ref: attachArrowRef\n }, popper.attributes.arrow, {\n style: popper.styles.arrow\n }) : {}\n };\n useClickOutside(menuElement, handleClose, {\n clickTrigger: rootCloseEvent,\n disabled: !show\n });\n return [menuProps, metadata];\n}\nconst defaultProps = {\n usePopper: true\n};\n\n/**\n * Also exported as `` from `Dropdown`.\n *\n * @displayName DropdownMenu\n * @memberOf Dropdown\n */\nfunction DropdownMenu(_ref) {\n let {\n children\n } = _ref,\n options = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n const [props, meta] = useDropdownMenu(options);\n return /*#__PURE__*/_jsx(_Fragment, {\n children: children(props, meta)\n });\n}\n\nDropdownMenu.displayName = 'DropdownMenu';\nDropdownMenu.defaultProps = defaultProps;\n/** @component */\n\nexport default DropdownMenu;","import $89yE2$react, {useContext as $89yE2$useContext, useMemo as $89yE2$useMemo, useState as $89yE2$useState, useLayoutEffect as $89yE2$useLayoutEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is\n// guarded by a check that it only runs on the client side.\n// eslint-disable-next-line rulesdir/useLayoutEffectRule\n\n// Default context value to use in case there is no SSRProvider. This is fine for\n// client-only apps. In order to support multiple copies of React Aria potentially\n// being on the page at once, the prefix is set to a random number. SSRProvider\n// will reset this to zero for consistency between server and client, so in the\n// SSR case multiple copies of React Aria is not supported.\nconst $704cf1d3b684cc5c$var$defaultContext = {\n prefix: String(Math.round(Math.random() * 10000000000)),\n current: 0\n};\nconst $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (0, $89yE2$react).createContext($704cf1d3b684cc5c$var$defaultContext);\nfunction $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae(props) {\n let cur = (0, $89yE2$useContext)($704cf1d3b684cc5c$var$SSRContext);\n let value = (0, $89yE2$useMemo)(()=>({\n // If this is the first SSRProvider, start with an empty string prefix, otherwise\n // append and increment the counter.\n prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? \"\" : `${cur.prefix}-${++cur.current}`,\n current: 0\n }), [\n cur\n ]);\n return /*#__PURE__*/ (0, $89yE2$react).createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {\n value: value\n }, props.children);\n}\nlet $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {\n let ctx = (0, $89yE2$useContext)($704cf1d3b684cc5c$var$SSRContext);\n // If we are rendering in a non-DOM environment, and there's no SSRProvider,\n // provide a warning to hint to the developer to add one.\n if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn(\"When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.\");\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return (0, $89yE2$useMemo)(()=>defaultId || `react-aria${ctx.prefix}-${++ctx.current}`, [\n defaultId\n ]);\n}\nfunction $704cf1d3b684cc5c$export$535bd6ca7f90a273() {\n let cur = (0, $89yE2$useContext)($704cf1d3b684cc5c$var$SSRContext);\n let isInSSRContext = cur !== $704cf1d3b684cc5c$var$defaultContext;\n let [isSSR, setIsSSR] = (0, $89yE2$useState)(isInSSRContext);\n // If on the client, and the component was initially server rendered,\n // then schedule a layout effect to update the component after hydration.\n if (typeof window !== \"undefined\" && isInSSRContext) // This if statement technically breaks the rules of hooks, but is safe\n // because the condition never changes after mounting.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n (0, $89yE2$useLayoutEffect)(()=>{\n setIsSSR(false);\n }, []);\n return isSSR;\n}\n\n\n\n\nexport {$704cf1d3b684cc5c$export$9f8ac96af4b1b2ae as SSRProvider, $704cf1d3b684cc5c$export$619500959fc48b26 as useSSRSafeId, $704cf1d3b684cc5c$export$535bd6ca7f90a273 as useIsSSR};\n//# sourceMappingURL=module.js.map\n","import { useContext, useCallback } from 'react';\nimport * as React from 'react';\nimport { useSSRSafeId } from './ssr';\nimport DropdownContext from './DropdownContext';\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const isRoleMenu = el => {\n var _el$getAttribute;\n\n return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';\n};\n\nconst noop = () => {};\n/**\n * Wires up Dropdown toggle functionality, returning a set a props to attach\n * to the element that functions as the dropdown toggle (generally a button).\n *\n * @memberOf Dropdown\n */\n\n\nexport function useDropdownToggle() {\n const id = useSSRSafeId();\n const {\n show = false,\n toggle = noop,\n setToggle,\n menuElement\n } = useContext(DropdownContext) || {};\n const handleClick = useCallback(e => {\n toggle(!show, e);\n }, [show, toggle]);\n const props = {\n id,\n ref: setToggle || noop,\n onClick: handleClick,\n 'aria-expanded': !!show\n }; // This is maybe better down in an effect, but\n // the component is going to update anyway when the menu element\n // is set so might return new props.\n\n if (menuElement && isRoleMenu(menuElement)) {\n props['aria-haspopup'] = true;\n }\n\n return [props, {\n show,\n toggle\n }];\n}\n\n/**\n * Also exported as `` from `Dropdown`.\n *\n * @displayName DropdownToggle\n * @memberOf Dropdown\n */\nfunction DropdownToggle({\n children\n}) {\n const [props, meta] = useDropdownToggle();\n return /*#__PURE__*/_jsx(_Fragment, {\n children: children(props, meta)\n });\n}\n\nDropdownToggle.displayName = 'DropdownToggle';\n/** @component */\n\nexport default DropdownToggle;","import * as React from 'react';\nconst SelectableContext = /*#__PURE__*/React.createContext(null);\nexport const makeEventKey = (eventKey, href = null) => {\n if (eventKey != null) return String(eventKey);\n return href || null;\n};\nexport default SelectableContext;","import * as React from 'react';\nconst NavContext = /*#__PURE__*/React.createContext(null);\nNavContext.displayName = 'NavContext';\nexport default NavContext;","export const ATTRIBUTE_PREFIX = `data-rr-ui-`;\nexport const PROPERTY_PREFIX = `rrUi`;\nexport function dataAttr(property) {\n return `${ATTRIBUTE_PREFIX}${property}`;\n}\nexport function dataProp(property) {\n return `${PROPERTY_PREFIX}${property}`;\n}","const _excluded = [\"eventKey\", \"disabled\", \"onClick\", \"active\", \"as\"];\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport NavContext from './NavContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\n/**\n * Create a dropdown item. Returns a set of props for the dropdown item component\n * including an `onClick` handler that prevents selection when the item is disabled\n */\nexport function useDropdownItem({\n key,\n href,\n active,\n disabled,\n onClick\n}) {\n const onSelectCtx = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const {\n activeKey\n } = navContext || {};\n const eventKey = makeEventKey(key, href);\n const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;\n const handleClick = useEventCallback(event => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(event);\n\n if (onSelectCtx && !event.isPropagationStopped()) {\n onSelectCtx(eventKey, event);\n }\n });\n return [{\n onClick: handleClick,\n 'aria-disabled': disabled || undefined,\n 'aria-selected': isActive,\n [dataAttr('dropdown-item')]: ''\n }, {\n isActive\n }];\n}\nconst DropdownItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n eventKey,\n disabled,\n onClick,\n active,\n as: Component = Button\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n const [dropdownItemProps] = useDropdownItem({\n key: eventKey,\n href: props.href,\n disabled,\n onClick,\n active\n });\n return /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n ref: ref\n }, dropdownItemProps));\n});\nDropdownItem.displayName = 'DropdownItem';\nexport default DropdownItem;","import { createContext, useContext } from 'react';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nconst Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);\nexport const WindowProvider = Context.Provider;\n/**\n * The document \"window\" placed in React context. Helpful for determining\n * SSR context, or when rendering into an iframe.\n *\n * @returns the current window\n */\n\nexport default function useWindow() {\n return useContext(Context);\n}","import qsa from 'dom-helpers/querySelectorAll';\nimport addEventListener from 'dom-helpers/addEventListener';\nimport { useCallback, useRef, useEffect, useMemo, useContext } from 'react';\nimport * as React from 'react';\nimport { useUncontrolledProp } from 'uncontrollable';\nimport usePrevious from '@restart/hooks/usePrevious';\nimport useForceUpdate from '@restart/hooks/useForceUpdate';\nimport useEventListener from '@restart/hooks/useEventListener';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport DropdownContext from './DropdownContext';\nimport DropdownMenu from './DropdownMenu';\nimport DropdownToggle, { isRoleMenu } from './DropdownToggle';\nimport DropdownItem from './DropdownItem';\nimport SelectableContext from './SelectableContext';\nimport { dataAttr } from './DataKey';\nimport useWindow from './useWindow';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nfunction useRefWithUpdate() {\n const forceUpdate = useForceUpdate();\n const ref = useRef(null);\n const attachRef = useCallback(element => {\n ref.current = element; // ensure that a menu set triggers an update for consumers\n\n forceUpdate();\n }, [forceUpdate]);\n return [ref, attachRef];\n}\n/**\n * @displayName Dropdown\n * @public\n */\n\n\nfunction Dropdown({\n defaultShow,\n show: rawShow,\n onSelect,\n onToggle: rawOnToggle,\n itemSelector = `* [${dataAttr('dropdown-item')}]`,\n focusFirstItemOnShow,\n placement = 'bottom-start',\n children\n}) {\n const window = useWindow();\n const [show, onToggle] = useUncontrolledProp(rawShow, defaultShow, rawOnToggle); // We use normal refs instead of useCallbackRef in order to populate the\n // the value as quickly as possible, otherwise the effect to focus the element\n // may run before the state value is set\n\n const [menuRef, setMenu] = useRefWithUpdate();\n const menuElement = menuRef.current;\n const [toggleRef, setToggle] = useRefWithUpdate();\n const toggleElement = toggleRef.current;\n const lastShow = usePrevious(show);\n const lastSourceEvent = useRef(null);\n const focusInDropdown = useRef(false);\n const onSelectCtx = useContext(SelectableContext);\n const toggle = useCallback((nextShow, event, source = event == null ? void 0 : event.type) => {\n onToggle(nextShow, {\n originalEvent: event,\n source\n });\n }, [onToggle]);\n const handleSelect = useEventCallback((key, event) => {\n onSelect == null ? void 0 : onSelect(key, event);\n toggle(false, event, 'select');\n\n if (!event.isPropagationStopped()) {\n onSelectCtx == null ? void 0 : onSelectCtx(key, event);\n }\n });\n const context = useMemo(() => ({\n toggle,\n placement,\n show,\n menuElement,\n toggleElement,\n setMenu,\n setToggle\n }), [toggle, placement, show, menuElement, toggleElement, setMenu, setToggle]);\n\n if (menuElement && lastShow && !show) {\n focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);\n }\n\n const focusToggle = useEventCallback(() => {\n if (toggleElement && toggleElement.focus) {\n toggleElement.focus();\n }\n });\n const maybeFocusFirst = useEventCallback(() => {\n const type = lastSourceEvent.current;\n let focusType = focusFirstItemOnShow;\n\n if (focusType == null) {\n focusType = menuRef.current && isRoleMenu(menuRef.current) ? 'keyboard' : false;\n }\n\n if (focusType === false || focusType === 'keyboard' && !/^key.+$/.test(type)) {\n return;\n }\n\n const first = qsa(menuRef.current, itemSelector)[0];\n if (first && first.focus) first.focus();\n });\n useEffect(() => {\n if (show) maybeFocusFirst();else if (focusInDropdown.current) {\n focusInDropdown.current = false;\n focusToggle();\n } // only `show` should be changing\n }, [show, focusInDropdown, focusToggle, maybeFocusFirst]);\n useEffect(() => {\n lastSourceEvent.current = null;\n });\n\n const getNextFocusedChild = (current, offset) => {\n if (!menuRef.current) return null;\n const items = qsa(menuRef.current, itemSelector);\n let index = items.indexOf(current) + offset;\n index = Math.max(0, Math.min(index, items.length));\n return items[index];\n };\n\n useEventListener(useCallback(() => window.document, [window]), 'keydown', event => {\n var _menuRef$current, _toggleRef$current;\n\n const {\n key\n } = event;\n const target = event.target;\n const fromMenu = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(target);\n const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target); // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400\n // in inscrutability\n\n const isInput = /input|textarea/i.test(target.tagName);\n\n if (isInput && (key === ' ' || key !== 'Escape' && fromMenu || key === 'Escape' && target.type === 'search')) {\n return;\n }\n\n if (!fromMenu && !fromToggle) {\n return;\n }\n\n if (key === 'Tab' && (!menuRef.current || !show)) {\n return;\n }\n\n lastSourceEvent.current = event.type;\n const meta = {\n originalEvent: event,\n source: event.type\n };\n\n switch (key) {\n case 'ArrowUp':\n {\n const next = getNextFocusedChild(target, -1);\n if (next && next.focus) next.focus();\n event.preventDefault();\n return;\n }\n\n case 'ArrowDown':\n event.preventDefault();\n\n if (!show) {\n onToggle(true, meta);\n } else {\n const next = getNextFocusedChild(target, 1);\n if (next && next.focus) next.focus();\n }\n\n return;\n\n case 'Tab':\n // on keydown the target is the element being tabbed FROM, we need that\n // to know if this event is relevant to this dropdown (e.g. in this menu).\n // On `keyup` the target is the element being tagged TO which we use to check\n // if focus has left the menu\n addEventListener(target.ownerDocument, 'keyup', e => {\n var _menuRef$current2;\n\n if (e.key === 'Tab' && !e.target || !((_menuRef$current2 = menuRef.current) != null && _menuRef$current2.contains(e.target))) {\n onToggle(false, meta);\n }\n }, {\n once: true\n });\n break;\n\n case 'Escape':\n if (key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n }\n\n onToggle(false, meta);\n break;\n\n default:\n }\n });\n return /*#__PURE__*/_jsx(SelectableContext.Provider, {\n value: handleSelect,\n children: /*#__PURE__*/_jsx(DropdownContext.Provider, {\n value: context,\n children: children\n })\n });\n}\n\nDropdown.displayName = 'Dropdown';\nDropdown.Menu = DropdownMenu;\nDropdown.Toggle = DropdownToggle;\nDropdown.Item = DropdownItem;\nexport default Dropdown;","import * as React from 'react';\nconst DropdownContext = /*#__PURE__*/React.createContext({});\nDropdownContext.displayName = 'DropdownContext';\nexport default DropdownContext;","import classNames from 'classnames';\nimport * as React from 'react';\nimport { useDropdownItem } from '@restart/ui/DropdownItem';\nimport Anchor from '@restart/ui/Anchor';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownItem = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n eventKey,\n disabled = false,\n onClick,\n active,\n as: Component = Anchor,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');\n const [dropdownItemProps, meta] = useDropdownItem({\n key: eventKey,\n href: props.href,\n disabled,\n onClick,\n active\n });\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ...dropdownItemProps,\n ref: ref,\n className: classNames(className, prefix, meta.isActive && 'active', disabled && 'disabled')\n });\n});\nDropdownItem.displayName = 'DropdownItem';\nexport default DropdownItem;","import * as React from 'react';\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'InputGroupContext';\nexport default context;","import * as React from 'react';\n\n// TODO: check\n\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'NavbarContext';\nexport default context;","import invariant from 'invariant';\nimport { useCallback } from 'react';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nexport default function useWrappedRefWithWarning(ref, componentName) {\n // @ts-ignore\n if (!(process.env.NODE_ENV !== \"production\")) return ref;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const warningRef = useCallback(refValue => {\n !(refValue == null || !refValue.isReactComponent) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${componentName} injected a ref to a provided \\`as\\` component that resolved to a component instance instead of a DOM element. ` + 'Use `React.forwardRef` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element') : invariant(false) : void 0;\n }, [componentName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useMergedRefs(warningRef, ref);\n}","import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport { useDropdownMenu } from '@restart/ui/DropdownMenu';\nimport useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport warning from 'warning';\nimport DropdownContext from './DropdownContext';\nimport InputGroupContext from './InputGroupContext';\nimport NavbarContext from './NavbarContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport useWrappedRefWithWarning from './useWrappedRefWithWarning';\nimport { alignPropType } from './types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultProps = {\n flip: true\n};\nexport function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {\n const topStart = isRTL ? 'top-end' : 'top-start';\n const topEnd = isRTL ? 'top-start' : 'top-end';\n const bottomStart = isRTL ? 'bottom-end' : 'bottom-start';\n const bottomEnd = isRTL ? 'bottom-start' : 'bottom-end';\n const leftStart = isRTL ? 'right-start' : 'left-start';\n const leftEnd = isRTL ? 'right-end' : 'left-end';\n const rightStart = isRTL ? 'left-start' : 'right-start';\n const rightEnd = isRTL ? 'left-end' : 'right-end';\n let placement = alignEnd ? bottomEnd : bottomStart;\n if (dropDirection === 'up') placement = alignEnd ? topEnd : topStart;else if (dropDirection === 'end') placement = alignEnd ? rightEnd : rightStart;else if (dropDirection === 'start') placement = alignEnd ? leftEnd : leftStart;else if (dropDirection === 'down-centered') placement = 'bottom';else if (dropDirection === 'up-centered') placement = 'top';\n return placement;\n}\nconst DropdownMenu = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n align,\n rootCloseEvent,\n flip,\n show: showProps,\n renderOnMount,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n popperConfig,\n variant,\n ...props\n}, ref) => {\n let alignEnd = false;\n const isNavbar = useContext(NavbarContext);\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');\n const {\n align: contextAlign,\n drop,\n isRTL\n } = useContext(DropdownContext);\n align = align || contextAlign;\n const isInputGroup = useContext(InputGroupContext);\n const alignClasses = [];\n if (align) {\n if (typeof align === 'object') {\n const keys = Object.keys(align);\n process.env.NODE_ENV !== \"production\" ? warning(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;\n if (keys.length) {\n const brkPoint = keys[0];\n const direction = align[brkPoint];\n\n // .dropdown-menu-end is required for responsively aligning\n // left in addition to align left classes.\n alignEnd = direction === 'start';\n alignClasses.push(`${prefix}-${brkPoint}-${direction}`);\n }\n } else if (align === 'end') {\n alignEnd = true;\n }\n }\n const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);\n const [menuProps, {\n hasShown,\n popper,\n show,\n toggle\n }] = useDropdownMenu({\n flip,\n rootCloseEvent,\n show: showProps,\n usePopper: !isNavbar && alignClasses.length === 0,\n offset: [0, 2],\n popperConfig,\n placement\n });\n menuProps.ref = useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);\n useIsomorphicEffect(() => {\n // Popper's initial position for the menu is incorrect when\n // renderOnMount=true. Need to call update() to correct it.\n if (show) popper == null ? void 0 : popper.update();\n }, [show]);\n if (!hasShown && !renderOnMount && !isInputGroup) return null;\n\n // For custom components provide additional, non-DOM, props;\n if (typeof Component !== 'string') {\n menuProps.show = show;\n menuProps.close = () => toggle == null ? void 0 : toggle(false);\n menuProps.align = align;\n }\n let style = props.style;\n if (popper != null && popper.placement) {\n // we don't need the default popper style,\n // menus are display: none when not shown.\n style = {\n ...props.style,\n ...menuProps.style\n };\n props['x-placement'] = popper.placement;\n }\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ...menuProps,\n style: style\n // Bootstrap css requires this data attrib to style responsive menus.\n ,\n ...((alignClasses.length || isNavbar) && {\n 'data-bs-popper': 'static'\n }),\n className: classNames(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)\n });\n});\nDropdownMenu.displayName = 'DropdownMenu';\nDropdownMenu.defaultProps = defaultProps;\nexport default DropdownMenu;","import useMergedRefs from '@restart/hooks/useMergedRefs';\nimport DropdownContext from '@restart/ui/DropdownContext';\nimport { useDropdownToggle } from '@restart/ui/DropdownToggle';\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport Button from './Button';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport useWrappedRefWithWarning from './useWrappedRefWithWarning';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownToggle = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n split,\n className,\n childBsPrefix,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = Button,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');\n const dropdownContext = useContext(DropdownContext);\n if (childBsPrefix !== undefined) {\n props.bsPrefix = childBsPrefix;\n }\n const [toggleProps] = useDropdownToggle();\n toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle'));\n\n // This intentionally forwards size and variant (if set) to the\n // underlying component, to allow it to render size and style variants.\n return /*#__PURE__*/_jsx(Component, {\n className: classNames(className, prefix, split && `${prefix}-split`, (dropdownContext == null ? void 0 : dropdownContext.show) && 'show'),\n ...toggleProps,\n ...props\n });\n});\nDropdownToggle.displayName = 'DropdownToggle';\nexport default DropdownToggle;","import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport BaseDropdown from '@restart/ui/Dropdown';\nimport { useUncontrolled } from 'uncontrollable';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport DropdownContext from './DropdownContext';\nimport DropdownItem from './DropdownItem';\nimport DropdownMenu, { getDropdownMenuPlacement } from './DropdownMenu';\nimport DropdownToggle from './DropdownToggle';\nimport InputGroupContext from './InputGroupContext';\nimport { useBootstrapPrefix, useIsRTL } from './ThemeProvider';\nimport createWithBsPrefix from './createWithBsPrefix';\nimport { alignPropType } from './types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownHeader = createWithBsPrefix('dropdown-header', {\n defaultProps: {\n role: 'heading'\n }\n});\nconst DropdownDivider = createWithBsPrefix('dropdown-divider', {\n Component: 'hr',\n defaultProps: {\n role: 'separator'\n }\n});\nconst DropdownItemText = createWithBsPrefix('dropdown-item-text', {\n Component: 'span'\n});\nconst defaultProps = {\n navbar: false,\n align: 'start',\n autoClose: true,\n drop: 'down'\n};\nconst Dropdown = /*#__PURE__*/React.forwardRef((pProps, ref) => {\n const {\n bsPrefix,\n drop,\n show,\n className,\n align,\n onSelect,\n onToggle,\n focusFirstItemOnShow,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n navbar: _4,\n autoClose,\n ...props\n } = useUncontrolled(pProps, {\n show: 'onToggle'\n });\n const isInputGroup = useContext(InputGroupContext);\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown');\n const isRTL = useIsRTL();\n const isClosingPermitted = source => {\n // autoClose=false only permits close on button click\n if (autoClose === false) return source === 'click';\n\n // autoClose=inside doesn't permit close on rootClose\n if (autoClose === 'inside') return source !== 'rootClose';\n\n // autoClose=outside doesn't permit close on select\n if (autoClose === 'outside') return source !== 'select';\n return true;\n };\n const handleToggle = useEventCallback((nextShow, meta) => {\n if (meta.originalEvent.currentTarget === document && (meta.source !== 'keydown' || meta.originalEvent.key === 'Escape')) meta.source = 'rootClose';\n if (isClosingPermitted(meta.source)) onToggle == null ? void 0 : onToggle(nextShow, meta);\n });\n const alignEnd = align === 'end';\n const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);\n const contextValue = useMemo(() => ({\n align,\n drop,\n isRTL\n }), [align, drop, isRTL]);\n const directionClasses = {\n down: prefix,\n 'down-centered': `${prefix}-center`,\n up: 'dropup',\n 'up-centered': 'dropup-center dropup',\n end: 'dropend',\n start: 'dropstart'\n };\n return /*#__PURE__*/_jsx(DropdownContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(BaseDropdown, {\n placement: placement,\n show: show,\n onSelect: onSelect,\n onToggle: handleToggle,\n focusFirstItemOnShow: focusFirstItemOnShow,\n itemSelector: `.${prefix}-item:not(.disabled):not(:disabled)`,\n children: isInputGroup ? props.children : /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n className: classNames(className, show && 'show', directionClasses[drop])\n })\n })\n });\n});\nDropdown.displayName = 'Dropdown';\nDropdown.defaultProps = defaultProps;\nexport default Object.assign(Dropdown, {\n Toggle: DropdownToggle,\n Menu: DropdownMenu,\n Item: DropdownItem,\n ItemText: DropdownItemText,\n Divider: DropdownDivider,\n Header: DropdownHeader\n});","import classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultProps = {\n fluid: false\n};\nconst Container = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n fluid,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n className,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'container');\n const suffix = typeof fluid === 'string' ? `-${fluid}` : '-fluid';\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...props,\n className: classNames(className, fluid ? `${prefix}${suffix}` : prefix)\n });\n});\nContainer.displayName = 'Container';\nContainer.defaultProps = defaultProps;\nexport default Container;","import classNames from 'classnames';\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const propTypes = {\n /**\n * @default 'img'\n */\n bsPrefix: PropTypes.string,\n /**\n * Sets image as fluid image.\n */\n fluid: PropTypes.bool,\n /**\n * Sets image shape as rounded.\n */\n rounded: PropTypes.bool,\n /**\n * Sets image shape as circle.\n */\n roundedCircle: PropTypes.bool,\n /**\n * Sets image shape as thumbnail.\n */\n thumbnail: PropTypes.bool\n};\nconst defaultProps = {\n fluid: false,\n rounded: false,\n roundedCircle: false,\n thumbnail: false\n};\nconst Image = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n fluid,\n rounded,\n roundedCircle,\n thumbnail,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'img');\n return /*#__PURE__*/_jsx(\"img\", {\n // eslint-disable-line jsx-a11y/alt-text\n ref: ref,\n ...props,\n className: classNames(className, fluid && `${bsPrefix}-fluid`, rounded && `rounded`, roundedCircle && `rounded-circle`, thumbnail && `${bsPrefix}-thumbnail`)\n });\n});\nImage.displayName = 'Image';\nImage.defaultProps = defaultProps;\nexport default Image;","import * as React from 'react';\nconst TabContext = /*#__PURE__*/React.createContext(null);\nexport default TabContext;","const _excluded = [\"as\", \"active\", \"eventKey\"];\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport TabContext from './TabContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function useNavItem({\n key,\n onClick,\n active,\n id,\n role,\n disabled\n}) {\n const parentOnSelect = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const tabContext = useContext(TabContext);\n let isActive = active;\n const props = {\n role\n };\n\n if (navContext) {\n if (!role && navContext.role === 'tablist') props.role = 'tab';\n const contextControllerId = navContext.getControllerId(key != null ? key : null);\n const contextControlledId = navContext.getControlledId(key != null ? key : null); // @ts-ignore\n\n props[dataAttr('event-key')] = key;\n props.id = contextControllerId || id;\n isActive = active == null && key != null ? navContext.activeKey === key : active;\n /**\n * Simplified scenario for `mountOnEnter`.\n *\n * While it would make sense to keep 'aria-controls' for tabs that have been mounted at least\n * once, it would also complicate the code quite a bit, for very little gain.\n * The following implementation is probably good enough.\n *\n * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561\n */\n\n if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;\n }\n\n if (props.role === 'tab') {\n props['aria-selected'] = isActive;\n\n if (!isActive) {\n props.tabIndex = -1;\n }\n\n if (disabled) {\n props.tabIndex = -1;\n props['aria-disabled'] = true;\n }\n }\n\n props.onClick = useEventCallback(e => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(e);\n\n if (key == null) {\n return;\n }\n\n if (parentOnSelect && !e.isPropagationStopped()) {\n parentOnSelect(key, e);\n }\n });\n return [props, {\n isActive\n }];\n}\nconst NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n as: Component = Button,\n active,\n eventKey\n } = _ref,\n options = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n const [props, meta] = useNavItem(Object.assign({\n key: makeEventKey(eventKey, options.href),\n active\n }, options)); // @ts-ignore\n\n props[dataAttr('active')] = meta.isActive;\n return /*#__PURE__*/_jsx(Component, Object.assign({}, options, props, {\n ref: ref\n }));\n});\nNavItem.displayName = 'NavItem';\nexport default NavItem;","const _excluded = [\"as\", \"onSelect\", \"activeKey\", \"role\", \"onKeyDown\"];\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport qsa from 'dom-helpers/querySelectorAll';\nimport * as React from 'react';\nimport { useContext, useEffect, useRef } from 'react';\nimport useForceUpdate from '@restart/hooks/useForceUpdate';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport TabContext from './TabContext';\nimport { dataAttr, dataProp } from './DataKey';\nimport NavItem from './NavItem';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = () => {};\n\nconst EVENT_KEY_ATTR = dataAttr('event-key');\nconst Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n onSelect,\n activeKey,\n role,\n onKeyDown\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n // A ref and forceUpdate for refocus, b/c we only want to trigger when needed\n // and don't want to reset the set in the effect\n const forceUpdate = useForceUpdate();\n const needsRefocusRef = useRef(false);\n const parentOnSelect = useContext(SelectableContext);\n const tabContext = useContext(TabContext);\n let getControlledId, getControllerId;\n\n if (tabContext) {\n role = role || 'tablist';\n activeKey = tabContext.activeKey; // TODO: do we need to duplicate these?\n\n getControlledId = tabContext.getControlledId;\n getControllerId = tabContext.getControllerId;\n }\n\n const listNode = useRef(null);\n\n const getNextActiveTab = offset => {\n const currentListNode = listNode.current;\n if (!currentListNode) return null;\n const items = qsa(currentListNode, `[${EVENT_KEY_ATTR}]:not([aria-disabled=true])`);\n const activeChild = currentListNode.querySelector('[aria-selected=true]');\n if (!activeChild || activeChild !== document.activeElement) return null;\n const index = items.indexOf(activeChild);\n if (index === -1) return null;\n let nextIndex = index + offset;\n if (nextIndex >= items.length) nextIndex = 0;\n if (nextIndex < 0) nextIndex = items.length - 1;\n return items[nextIndex];\n };\n\n const handleSelect = (key, event) => {\n if (key == null) return;\n onSelect == null ? void 0 : onSelect(key, event);\n parentOnSelect == null ? void 0 : parentOnSelect(key, event);\n };\n\n const handleKeyDown = event => {\n onKeyDown == null ? void 0 : onKeyDown(event);\n\n if (!tabContext) {\n return;\n }\n\n let nextActiveChild;\n\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n nextActiveChild = getNextActiveTab(-1);\n break;\n\n case 'ArrowRight':\n case 'ArrowDown':\n nextActiveChild = getNextActiveTab(1);\n break;\n\n default:\n return;\n }\n\n if (!nextActiveChild) return;\n event.preventDefault();\n handleSelect(nextActiveChild.dataset[dataProp('EventKey')] || null, event);\n needsRefocusRef.current = true;\n forceUpdate();\n };\n\n useEffect(() => {\n if (listNode.current && needsRefocusRef.current) {\n const activeChild = listNode.current.querySelector(`[${EVENT_KEY_ATTR}][aria-selected=true]`);\n activeChild == null ? void 0 : activeChild.focus();\n }\n\n needsRefocusRef.current = false;\n });\n const mergedRef = useMergedRefs(ref, listNode);\n return /*#__PURE__*/_jsx(SelectableContext.Provider, {\n value: handleSelect,\n children: /*#__PURE__*/_jsx(NavContext.Provider, {\n value: {\n role,\n // used by NavLink to determine it's role\n activeKey: makeEventKey(activeKey),\n getControlledId: getControlledId || noop,\n getControllerId: getControllerId || noop\n },\n children: /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n onKeyDown: handleKeyDown,\n ref: mergedRef,\n role: role\n }))\n })\n });\n});\nNav.displayName = 'Nav';\nexport default Object.assign(Nav, {\n Item: NavItem\n});","import ownerDocument from './ownerDocument';\n/**\n * Returns the actively focused element safely.\n *\n * @param doc the document to check\n */\n\nexport default function activeElement(doc) {\n if (doc === void 0) {\n doc = ownerDocument();\n }\n\n // Support: IE 9 only\n // IE9 throws an \"Unspecified error\" accessing document.activeElement from an