vendor: 20,304 bytes, lines 1-34
1function QN(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(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 r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function jP(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function YN(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var UP={exports:{}},kp={},BP={exports:{}},je={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Xc=Symbol.for("react.element"),XN=Symbol.for("react.portal"),ZN=Symbol.for("react.fragment"),JN=Symbol.for("react.strict_mode"),e$=Symbol.for("react.profiler"),t$=Symbol.for("react.provider"),n$=Symbol.for("react.context"),r$=Symbol.for("react.forward_ref"),i$=Symbol.for("react.suspense"),o$=Symbol.for("react.memo"),s$=Symbol.for("react.lazy"),F_=Symbol.iterator;function a$(t){return t===null||typeof t!="object"?null:(t=F_&&t[F_]||t["@@iterator"],typeof t=="function"?t:null)}var zP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},WP=Object.assign,HP={};function Il(t,e,n){this.props=t,this.context=e,this.refs=HP,this.updater=n||zP}Il.prototype.isReactComponent={};Il.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Il.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function KP(){}KP.prototype=Il.prototype;function _w(t,e,n){this.props=t,this.context=e,this.refs=HP,this.updater=n||zP}var Sw=_w.prototype=new KP;Sw.constructor=_w;WP(Sw,Il.prototype);Sw.isPureReactComponent=!0;var j_=Array.isArray,GP=Object.prototype.hasOwnProperty,Cw={current:null},qP={key:!0,ref:!0,__self:!0,__source:!0};function QP(t,e,n){var r,i={},o=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)GP.call(e,r)&&!qP.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Xc,type:t,key:o,ref:s,props:i,_owner:Cw.current}}function l$(t,e){return{$$typeof:Xc,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function xw(t){return typeof t=="object"&&t!==null&&t.$$typeof===Xc}function u$(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var U_=/\/+/g;function vg(t,e){return typeof t=="object"&&t!==null&&t.key!=null?u$(""+t.key):e.toString(36)}function Mf(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Xc:case XN:s=!0}}if(s)return s=t,i=i(s),t=r===""?"."+vg(s,0):r,j_(i)?(n="",t!=null&&(n=t.replace(U_,"$&/")+"/"),Mf(i,e,n,"",function(u){return u})):i!=null&&(xw(i)&&(i=l$(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(U_,"$&/")+"/")+t)),e.push(i)),1;if(s=0,r=r===""?".":r+":",j_(t))for(var a=0;a<t.length;a++){o=t[a];var l=r+vg(o,a);s+=Mf(o,e,n,l,i)}else if(l=a$(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=r+vg(o,a++),s+=Mf(o,e,n,l,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function zd(t,e,n){if(t==null)return t;var r=[],i=0;return Mf(t,r,"","",function(o){return e.call(n,o,i++)}),r}function c$(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var An={current:null},Df={transition:null},d$={ReactCurrentDispatcher:An,ReactCurrentBatchConfig:Df,ReactCurrentOwner:Cw};je.Children={map:zd,forEach:function(t,e,n){zd(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return zd(t,function(){e++}),e},toArray:function(t){return zd(t,function(e){return e})||[]},only:function(t){if(!xw(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};je.Component=Il;je.Fragment=ZN;je.Profiler=e$;je.PureComponent=_w;je.StrictMode=JN;je.Suspense=i$;je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d$;je.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=WP({},t.props),i=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=Cw.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)GP.call(e,l)&&!qP.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Xc,type:t.type,key:i,ref:o,props:r,_owner:s}};je.createContext=function(t){return t={$$typeof:n$,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:t$,_context:t},t.Consumer=t};je.createElement=QP;je.createFactory=function(t){var e=QP.bind(null,t);return e.type=t,e};je.createRef=function(){return{current:null}};je.forwardRef=function(t){return{$$typeof:r$,render:t}};je.isValidElement=xw;je.lazy=function(t){return{$$typeof:s$,_payload:{_status:-1,_result:t},_init:c$}};je.memo=function(t,e){return{$$typeof:o$,type:t,compare:e===void 0?null:e}};je.startTransition=function(t){var e=Df.transition;Df.transition={};try{t()}finally{Df.transition=e}};je.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};je.useCallback=function(t,e){return An.current.useCallback(t,e)};je.useContext=function(t){return An.current.useContext(t)};je.useDebugValue=function(){};je.useDeferredValue=function(t){return An.current.useDeferredValue(t)};je.useEffect=function(t,e){return An.current.useEffect(t,e)};je.useId=function(){return An.current.useId()};je.useImperativeHandle=function(t,e,n){return An.current.useImperativeHandle(t,e,n)};je.useInsertionEffect=function(t,e){return An.current.useInsertionEffect(t,e)};je.useLayoutEffect=function(t,e){return An.current.useLayoutEffect(t,e)};je.useMemo=function(t,e){return An.current.useMemo(t,e)};je.useReducer=function(t,e,n){return An.current.useReducer(t,e,n)};je.useRef=function(t){return An.current.useRef(t)};je.useState=function(t){return An.current.useState(t)};je.useSyncExternalStore=function(t,e,n){return An.current.useSyncExternalStore(t,e,n)};je.useTransition=function(){return An.current.useTransition()};je.version="18.2.0";BP.exports=je;var f=BP.exports;const Oe=jP(f),YP=QN({__proto__:null,default:Oe},[f]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var f$=f,h$=Symbol.for("react.element"),p$=Symbol.for("react.fragment"),m$=Object.prototype.hasOwnProperty,g$=f$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v$={key:!0,ref:!0,__self:!0,__source:!0};function XP(t,e,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)m$.call(e,r)&&!v$.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:h$,type:t,key:o,ref:s,props:i,_owner:g$.current}}kp.Fragment=p$;kp.jsx=XP;kp.jsxs=XP;UP.exports=kp;var T=UP.exports,Jv={},ZP={exports:{}},nr={},JP={exports:{}},eI={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(t){function e(D,B){var K=D.length;D.push(B);e:for(;0<K;){var x=K-1>>>1,$=D[x];if(0<i($,B))D[x]=B,D[K]=$,K=x;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var B=D[0],K=D.pop();if(K!==B){D[0]=K;e:for(var x=0,$=D.length,G=$>>>1;x<G;){var Z=2*(x+1)-1,te=D[Z],F=Z+1,Y=D[F];if(0>i(te,K))F<$&&0>i(Y,te)?(D[x]=Y,D[F]=K,x=F):(D[x]=te,D[Z]=K,x=Z);else if(F<$&&0>i(Y,K))D[x]=Y,D[F]=K,x=F;else break e}}return B}function i(D,B){var K=D.sortIndex-B.sortIndex;return K!==0?K:D.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,h=3,p=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,w=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 y(D){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=D)r(u),B.sortIndex=B.expirationTime,e(l,B);else break;B=n(u)}}function E(D){if(g=!1,y(D),!m)if(n(l)!==null)m=!0,j(C);else{var B=n(u);B!==null&&U(E,B.startTime-D)}}function C(D,B){m=!1,g&&(g=!1,w(_),_=-1),p=!0;var K=h;try{for(y(B),d=n(l);d!==null&&(!(d.expirationTime>B)||D&&!I());){var x=d.callback;if(typeof x=="function"){d.callback=null,h=d.priorityLevel;var $=x(d.expirationTime<=B);B=t.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&r(l),y(B)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var Z=n(u);Z!==null&&U(E,Z.startTime-B),G=!1}return G}finally{d=null,h=K,p=!1}}var S=!1,P=null,_=-1,k=5,L=-1;function I(){return!(t.unstable_now()-L<k)}function M(){if(P!==null){var D=t.unstable_now();L=D;var B=!0;try{B=P(!0,D)}finally{B?R():(S=!1,P=null)}}else S=!1}var R;if(typeof v=="function")R=function(){v(M)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,O=A.port2;A.port1.onmessage=M,R=function(){O.postMessage(null)}}else R=function(){b(M,0)};function j(D){P=D,S||(S=!0,R())}function U(D,B){_=b(function(){D(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(D){D.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,j(C))},t.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<D?Math.floor(1e3/D):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(D){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var K=h;h=B;try{return D()}finally{h=K}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(D,B){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var K=h;h=D;try{return B()}finally{h=K}},t.unstable_scheduleCallback=function(D,B,K){var x=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?x+K:x):K=x,D){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=K+$,D={id:c++,callback:B,priorityLevel:D,startTime:K,expirationTime:$,sortIndex:-1},K>x?(D.sortIndex=K,e(u,D),n(l)===null&&D===n(u)&&(g?(w(_),_=-1):g=!0,U(E,K-x))):(D.sortIndex=$,e(l,D),m||p||(m=!0,j(C))),D},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(D){var B=h;return function(){var K=h;h=B;try{return D.apply(this,arguments)}finally{h=K}}}})(eI);JP.exports=eI;var y$=JP.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var tI=f,Qn=y$;function Q(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var nI=new Set,rc={};function Ys(t,e){sl(t,e),sl(t+"Capture",e)}function sl(t,e){for(rc[t]=e,t=0;t<e.length;t++)nI.add(e[t])}var Di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ey=Object.prototype.hasOwnProperty,w$=/^[: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]*$/,B_={},z_={};function b$(t){return ey.call(z_,t)?!0:ey.call(B_,t)?!1:w$.test(t)?z_[t]=!0:(B_[t]=!0,!1)}function E$(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function _$(t,e,n,r){if(e===null||typeof e>"u"||E$(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Mn(t,e,n,r,i,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ln[t]=new Mn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ln[e]=new Mn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ln[t]=new Mn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ln[t]=new Mn(t,2,!1,t,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(t){ln[t]=new Mn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ln[t]=new Mn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ln[t]=new Mn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ln[t]=new Mn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ln[t]=new Mn(t,5,!1,t.toLowerCase(),null,!1,!1)});var Tw=/[\-:]([a-z])/g;function Pw(t){return t[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(t){var e=t.replace(Tw,Pw);ln[e]=new Mn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Tw,Pw);ln[e]=new Mn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Tw,Pw);ln[e]=new Mn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ln[t]=new Mn(t,1,!1,t.toLowerCase(),null,!1,!1)});ln.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ln[t]=new Mn(t,1,!1,t.toLowerCase(),null,!0,!0)});function Iw(t,e,n,r){var i=ln.hasOwnProperty(e)?ln[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(_$(e,n,i,r)&&(n=null),r||i===null?b$(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Hi=tI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wd=Symbol.for("react.element"),xa=Symbol.for("react.portal"),Ta=Symbol.for("react.fragment"),Lw=Symbol.for("react.strict_mode"),ty=Symbol.for("react.profiler"),rI=Symbol.for("react.provider"),iI=Symbol.for("react.context"),Rw=Symbol.for("react.forward_ref"),ny=Symbol.for("react.suspense"),ry=Symbol.for("react.suspense_list"),kw=Symbol.for("react.memo"),no=Symbol.for("react.lazy"),oI=Symbol.for("react.offscreen"),W_=Symbol.iterator;function Xl(t){return t===null||typeof t!="object"?null:(t=W_&&t[W_]||t["@@iterator"],typeof t=="function"?t:null)}var Pt=Object.assign,yg;function _u(t){if(yg===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);yg=e&&e[1]||""}return` 34`+yg+t}var wg=!1;function bg(t,e){if(!t||wg)return"";wg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}
vendor: 8,477 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),o=r.stack.split(` 36`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=` 37`+i[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{wg=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?_u(t):""}function S$(t){switch(t.tag){case 5:return _u(t.type);case 16:return _u("Lazy");case 13:return _u("Suspense");case 19:return _u("SuspenseList");case 0:case 2:case 15:return t=bg(t.type,!1),t;case 11:return t=bg(t.type.render,!1),t;case 1:return t=bg(t.type,!0),t;default:return""}}function iy(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ta:return"Fragment";case xa:return"Portal";case ty:return"Profiler";case Lw:return"StrictMode";case ny:return"Suspense";case ry:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case iI:return(t.displayName||"Context")+".Consumer";case rI:return(t._context.displayName||"Context")+".Provider";case Rw:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case kw:return e=t.displayName||null,e!==null?e:iy(t.type)||"Memo";case no:e=t._payload,t=t._init;try{return iy(t(e))}catch{}}return null}function C$(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return iy(e);case 8:return e===Lw?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Vo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function sI(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function x$(t){var e=sI(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hd(t){t._valueTracker||(t._valueTracker=x$(t))}function aI(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=sI(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function uh(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function oy(t,e){var n=e.checked;return Pt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function H_(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Vo(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function lI(t,e){e=e.checked,e!=null&&Iw(t,"checked",e,!1)}function sy(t,e){lI(t,e);var n=Vo(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ay(t,e.type,n):e.hasOwnProperty("defaultValue")&&ay(t,e.type,Vo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function K_(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function ay(t,e,n){(e!=="number"||uh(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Su=Array.isArray;function Ka(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Vo(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function ly(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Q(91));return Pt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function G_(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Q(92));if(Su(n)){if(1<n.length)throw Error(Q(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Vo(n)}}function uI(t,e){var n=Vo(e.value),r=Vo(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function q_(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function cI(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function uy(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?cI(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Kd,dI=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Kd=Kd||document.createElement("div"),Kd.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Kd.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ic(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Nu={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},T$=["Webkit","ms","Moz","O"];Object.keys(Nu).forEach(function(t){T$.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Nu[e]=Nu[t]})});function fI(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Nu.hasOwnProperty(t)&&Nu[t]?(""+e).trim():e+"px"}function hI(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=fI(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var P$=Pt({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 cy(t,e){if(e){if(P$[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Q(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Q(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Q(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Q(62))}}function dy(t,e){if(t.indexOf("-")===-1)return typeof e.is=="str
37ing";switch(t){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 fy=null;function Aw(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var hy=null,Ga=null,qa=null;function Q_(t){if(t=ed(t)){if(typeof hy!="function")throw Error(Q(280));var e=t.stateNode;e&&(e=Np(e),hy(t.stateNode,t.type,e))}}function pI(t){Ga?qa?qa.push(t):qa=[t]:Ga=t}function mI(){if(Ga){var t=Ga,e=qa;if(qa=Ga=null,Q_(t),e)for(t=0;t<e.length;t++)Q_(e[t])}}function gI(t,e){return t(e)}function vI(){}var Eg=!1;function yI(t,e,n){if(Eg)return t(e,n);Eg=!0;try{return gI(t,e,n)}finally{Eg=!1,(Ga!==null||qa!==null)&&(vI(),mI())}}function oc(t,e){var n=t.stateNode;if(n===null)return null;var r=Np(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Q(231,e,typeof n));return n}var py=!1;if(Di)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){py=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{py=!1}function I$(t,e,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var $u=!1,ch=null,dh=!1,my=null,L$={onError:function(t){$u=!0,ch=t}};function R$(t,e,n,r,i,o,s,a,l){$u=!1,ch=null,I$.apply(L$,arguments)}function k$(t,e,n,r,i,o,s,a,l){if(R$.apply(this,arguments),$u){if($u){var u=ch;$u=!1,ch=null}else throw Error(Q(198));dh||(dh=!0,my=u)}}function Xs(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function wI(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Y_(t){if(Xs(t)!==t)throw Error(Q(188))}function A$(t){var e=t.alternate;if(!e){if(e=Xs(t),e===null)throw Error(Q(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Y_(i),t;if(o===r)return Y_(i),e;o=o.sibling}throw Error(Q(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(Q(189))}}if(n.alternate!==r)throw Error(Q(190))}if(n.tag!==3)throw Error(Q(188));return n.stateNode.current===n?t:e}function bI(t){return t=A$(t),t!==null?EI(t):null}function EI(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=EI(t);if(e!==null)return e;t=t.sibling}return null}var _I=Qn.unstable_scheduleCallback,X_=Qn.unstable_cancelCallback,M$=Qn.unstable_shouldYield,D$=Qn.unstable_requestPaint,Ot=Qn.unstable_now,O$=Qn.unstable_getCurrentPriorityLevel,Mw=Qn.unstable_ImmediatePriority,SI=Qn.unstable_UserBlockingPriority,fh=Qn.unstable_NormalPriority,N$=Qn.unstable_LowPriority,CI=Qn.unstable_IdlePriority,Ap=null,ri=null;function $$(t){if(ri&&typeof ri.onCommitFiberRoot=="function")try{ri.onCommitFiberRoot(Ap,t,void 0,(t.current.flags&128)===128)}catch{}}var Or=Math.clz32?Math.clz32:j$,V$=Math.log,F$=Math.LN2;function j$(t){return t>>>=0,t===0?32:31-(V$(t)/F$|0)|0}var Gd=64,qd=4194304;function Cu(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function hh(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Cu(a):(o&=s,o!==0&&(r=Cu(o)))}else s=n&~i,s!==0?r=Cu(s):o!==0&&(r=Cu(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Or(e),i=1<<n,r|=t[n],e&=~i;return r}function U$(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function B$(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var s=31-Or(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=U$(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function gy(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function xI(){var t=Gd;return Gd<<=1,!(Gd&4194240)&&(Gd=64),t}function _g(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Zc(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Or(e),t[e]=n}function z$(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Or(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}function Dw(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Or(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var et=0;function TI(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}
vendor: 5,042 bytes, line 37
37var PI,Ow,II,LI,RI,vy=!1,Qd=[],wo=null,bo=null,Eo=null,sc=new Map,ac=new Map,so=[],W$="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Z_(t,e){switch(t){case"focusin":case"focusout":wo=null;break;case"dragenter":case"dragleave":bo=null;break;case"mouseover":case"mouseout":Eo=null;break;case"pointerover":case"pointerout":sc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ac.delete(e.pointerId)}}function Jl(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=ed(e),e!==null&&Ow(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function H$(t,e,n,r,i){switch(e){case"focusin":return wo=Jl(wo,t,e,n,r,i),!0;case"dragenter":return bo=Jl(bo,t,e,n,r,i),!0;case"mouseover":return Eo=Jl(Eo,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return sc.set(o,Jl(sc.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ac.set(o,Jl(ac.get(o)||null,t,e,n,r,i)),!0}return!1}function kI(t){var e=ps(t.target);if(e!==null){var n=Xs(e);if(n!==null){if(e=n.tag,e===13){if(e=wI(n),e!==null){t.blockedOn=e,RI(t.priority,function(){II(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Of(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=yy(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);fy=r,n.target.dispatchEvent(r),fy=null}else return e=ed(n),e!==null&&Ow(e),t.blockedOn=n,!1;e.shift()}return!0}function J_(t,e,n){Of(t)&&n.delete(e)}function K$(){vy=!1,wo!==null&&Of(wo)&&(wo=null),bo!==null&&Of(bo)&&(bo=null),Eo!==null&&Of(Eo)&&(Eo=null),sc.forEach(J_),ac.forEach(J_)}function eu(t,e){t.blockedOn===e&&(t.blockedOn=null,vy||(vy=!0,Qn.unstable_scheduleCallback(Qn.unstable_NormalPriority,K$)))}function lc(t){function e(i){return eu(i,t)}if(0<Qd.length){eu(Qd[0],t);for(var n=1;n<Qd.length;n++){var r=Qd[n];r.blockedOn===t&&(r.blockedOn=null)}}for(wo!==null&&eu(wo,t),bo!==null&&eu(bo,t),Eo!==null&&eu(Eo,t),sc.forEach(e),ac.forEach(e),n=0;n<so.length;n++)r=so[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<so.length&&(n=so[0],n.blockedOn===null);)kI(n),n.blockedOn===null&&so.shift()}var Qa=Hi.ReactCurrentBatchConfig,ph=!0;function G$(t,e,n,r){var i=et,o=Qa.transition;Qa.transition=null;try{et=1,Nw(t,e,n,r)}finally{et=i,Qa.transition=o}}function q$(t,e,n,r){var i=et,o=Qa.transition;Qa.transition=null;try{et=4,Nw(t,e,n,r)}finally{et=i,Qa.transition=o}}function Nw(t,e,n,r){if(ph){var i=yy(t,e,n,r);if(i===null)Ag(t,e,r,mh,n),Z_(t,r);else if(H$(i,t,e,n,r))r.stopPropagation();else if(Z_(t,r),e&4&&-1<W$.indexOf(t)){for(;i!==null;){var o=ed(i);if(o!==null&&PI(o),o=yy(t,e,n,r),o===null&&Ag(t,e,r,mh,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ag(t,e,r,null,n)}}var mh=null;function yy(t,e,n,r){if(mh=null,t=Aw(r),t=ps(t),t!==null)if(e=Xs(t),e===null)t=null;else if(n=e.tag,n===13){if(t=wI(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return mh=t,null}function AI(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(O$()){case Mw:return 1;case SI:return 4;case fh:case N$:return 16;case CI:return 536870912;default:return 16}default:return 16}}var mo=null,$w=null,Nf=null;function MI(){if(Nf)return Nf;var t,e=$w,n=e.length,r,i="value"in mo?mo.value:mo.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var s=n-t;for(r=1;r<=s&&e[n-r]===i[o-r];r++);return Nf=i.slice(t,1<r?1-r:void 0)}function $f(t){var e=t.keyCode;
vendor: 11,136 bytes, line 37
37return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Yd(){return!0}function e1(){return!1}function rr(t){function e(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Yd:e1,this.isPropagationStopped=e1,this}return Pt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yd)},persist:function(){},isPersistent:Yd}),e}var Ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vw=rr(Ll),Jc=Pt({},Ll,{view:0,detail:0}),Q$=rr(Jc),Sg,Cg,tu,Mp=Pt({},Jc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fw,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==tu&&(tu&&t.type==="mousemove"?(Sg=t.screenX-tu.screenX,Cg=t.screenY-tu.screenY):Cg=Sg=0,tu=t),Sg)},movementY:function(t){return"movementY"in t?t.movementY:Cg}}),t1=rr(Mp),Y$=Pt({},Mp,{dataTransfer:0}),X$=rr(Y$),Z$=Pt({},Jc,{relatedTarget:0}),xg=rr(Z$),J$=Pt({},Ll,{animationName:0,elapsedTime:0,pseudoElement:0}),eV=rr(J$),tV=Pt({},Ll,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),nV=rr(tV),rV=Pt({},Ll,{data:0}),n1=rr(rV),iV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oV={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},sV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aV(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=sV[t])?!!e[t]:!1}function Fw(){return aV}var lV=Pt({},Jc,{key:function(t){if(t.key){var e=iV[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=$f(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?oV[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fw,charCode:function(t){return t.type==="keypress"?$f(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$f(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),uV=rr(lV),cV=Pt({},Mp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),r1=rr(cV),dV=Pt({},Jc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fw}),fV=rr(dV),hV=Pt({},Ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),pV=rr(hV),mV=Pt({},Mp,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),gV=rr(mV),vV=[9,13,27,32],jw=Di&&"CompositionEvent"in window,Vu=null;Di&&"documentMode"in document&&(Vu=document.documentMode);var yV=Di&&"TextEvent"in window&&!Vu,DI=Di&&(!jw||Vu&&8<Vu&&11>=Vu),i1=String.fromCharCode(32),o1=!1;function OI(t,e){switch(t){case"keyup":return vV.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NI(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pa=!1;function wV(t,e){switch(t){case"compositionend":return NI(e);case"keypress":return e.which!==32?null:(o1=!0,i1);case"textInput":return t=e.data,t===i1&&o1?null:t;default:return null}}function bV(t,e){if(Pa)return t==="compositionend"||!jw&&OI(t,e)?(t=MI(),Nf=$w=mo=null,Pa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return DI&&e.locale!=="ko"?null:e.data;default:return null}}var EV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function s1(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!EV[t.type]:e==="textarea"}function $I(t,e,n,r){pI(r),e=gh(e,"onChange"),0<e.length&&(n=new Vw("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Fu=null,uc=null;function _V(t){qI(t,0)}function Dp(t){var e=Ra(t);if(aI(e))return t}function SV(t,e){if(t==="change")return e}var VI=!1;if(Di){var Tg;if(Di){var Pg="oninput"in document;if(!Pg){var a1=document.createElement("div");a1.setAttribute("oninput","return;"),Pg=typeof a1.oninput=="function"}Tg=Pg}else Tg=!1;VI=Tg&&(!document.documentMode||9<document.documentMode)}function l1(){Fu&&(Fu.detachEvent("onpropertychange",FI),uc=Fu=null)}function FI(t){if(t.propertyName==="value"&&Dp(uc)){var e=[];$I(e,uc,t,Aw(t)),yI(_V,e)}}function CV(t,e,n){t==="focusin"?(l1(),Fu=e,uc=n,Fu.attachEvent("onpropertychange",FI)):t==="focusout"&&l1()}function xV(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Dp(uc)}function TV(t,e){if(t==="click")return Dp(e)}function PV(t,e){if(t==="input"||t==="change")return Dp(e)}function IV(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Vr=typeof Object.is=="function"?Object.is:IV;function cc(t,e){if(Vr(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ey.call(e,i)||!Vr(t[i],e[i]))return!1}return!0}function u1(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function c1(t,e){var n=u1(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=u1(n)}}function jI(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jI(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function UI(){for(var t=window,e=uh();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=uh(t.document)}return e}function Uw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function LV(t){var e=UI(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&jI(n.ownerDocument.documentElement,n)){if(r!==null&&Uw(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=c1(n,o);var s=c1(n,r);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var RV=Di&&"documentMode"in document&&11>=document.documentMode,Ia=null,wy=null,ju=null,by=!1;function d1(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;by||Ia==null||Ia!==uh(r)||(r=Ia,"selectionStart"in r&&Uw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ju&&cc(ju,r)||(ju=r,r=gh(wy,"onSelect"),0<r.length&&(e=new Vw("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Ia)))}function Xd(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var La={animationend:Xd("Animation","AnimationEnd"),animationiteration:Xd("Animation","AnimationIteration"),animationstart:Xd("Animation","AnimationStart"),transitionend:Xd("Transition","TransitionEnd")},Ig={},BI={};Di&&(BI=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function Op(t){if(Ig[t])return Ig[t];if(!La[t])return t;var e=La[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in BI)return Ig[t]=e[n];return t}var zI=Op("animationend"),WI=Op("animationiteration"),HI=Op("animationstart"),KI=Op("transitionend"),GI=new Map,f1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function qo(t,e){GI.set(t,e),Ys(e,[t])}for(var Lg=0;Lg<f1.length;Lg++){var Rg=f1[Lg],kV=Rg.toLowerCase(),AV=Rg[0].toUpperCase()+Rg.slice(1);qo(kV,"on"+AV)}qo(zI,"onAnimationEnd");qo(WI,"onAnimationIteration");qo(HI,"onAnimationStart");qo("dblclick","onDoubleClick");qo("focusin","onFocus");qo("focusout","onBlur");qo(KI,"onTransitionEnd");sl("onMouseEnter",["mouseout","mouseover"]);sl("onMouseLeave",["mouseout","mouseover"]);sl("onPointerEnter",["pointerout","pointerover"]);sl("onPointerLeave",["pointerout","pointerover"]);Ys("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,388 bytes, line 37
37Ys("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ys("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ys("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ys("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ys("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MV=new Set("cancel close invalid load scroll toggle".split(" ").concat(xu));function h1(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,k$(r,e,void 0,t),t.currentTarget=null}function qI(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;h1(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;h1(i,a,u),o=l}}}if(dh)throw t=my,dh=!1,my=null,t}function ft(t,e){var n=e[xy];n===void 0&&(n=e[xy]=new Set);var r=t+"__bubble";n.has(r)||(QI(e,t,2,!1),n.add(r))}function kg(t,e,n){var r=0;e&&(r|=4),QI(n,t,r,e)}var Zd="_reactListening"+Math.random().toString(36).slice(2);function dc(t){if(!t[Zd]){t[Zd]=!0,nI.forEach(function(n){n!=="selectionchange"&&(MV.has(n)||kg(n,!1,t),kg(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zd]||(e[Zd]=!0,kg("selectionchange",!1,e))}}function QI(t,e,n,r){switch(AI(e)){case 1:var i=G$;break;case 4:i=q$;break;default:i=Nw}n=i.bind(null,e,n,t),i=void 0,!py||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Ag(t,e,n,r,i){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ps(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}yI(function(){var u=o,c=Aw(n),d=[];e:{var h=GI.get(t);if(h!==void 0){var p=Vw,m=t;switch(t){case"keypress":if($f(n)===0)break e;case"keydown":case"keyup":p=uV;break;case"focusin":m="focus",p=xg;break;case"focusout":m="blur",p=xg;break;case"beforeblur":case"afterblur":p=xg;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=t1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=X$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=fV;break;case zI:case WI:case HI:p=eV;break;case KI:p=pV;break;case"scroll":p=Q$;break;case"wheel":p=gV;break;case"copy":case"cut":case"paste":p=nV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=r1}var g=(e&4)!==0,b=!g&&t==="scroll",w=g?h!==null?h+"Capture":null:h;g=[];for(var v=u,y;v!==null;){y=v;var E=y.stateNode;if(y.tag===5&&E!==null&&(y=E,w!==null&&(E=oc(v,w),E!=null&&g.push(fc(v,E,y)))),b)break;v=v.return}0<g.length&&(h=new p(h,m,null,n,c),d.push({event:h,listeners:g}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",h&&n!==fy&&(m=n.relatedTarget||n.fromElement)&&(ps(m)||m[Oi]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?ps(m):null,m!==null&&(b=Xs(m),m!==b||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(g=t1,E="onMouseLeave",w="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(g=r1,E="onPointerLeave",w="onPointerEnter",v="pointer"),b=p==null?h:Ra(p),y=m==null?h:Ra(m),h=new g(E,v+"leave",p,n,c
vendor: 4,595 bytes, lines 37-38
37),h.target=b,h.relatedTarget=y,E=null,ps(c)===u&&(g=new g(w,v+"enter",m,n,c),g.target=y,g.relatedTarget=b,E=g),b=E,p&&m)t:{for(g=p,w=m,v=0,y=g;y;y=fa(y))v++;for(y=0,E=w;E;E=fa(E))y++;for(;0<v-y;)g=fa(g),v--;for(;0<y-v;)w=fa(w),y--;for(;v--;){if(g===w||w!==null&&g===w.alternate)break t;g=fa(g),w=fa(w)}g=null}else g=null;p!==null&&p1(d,h,p,g,!1),m!==null&&b!==null&&p1(d,b,m,g,!0)}}e:{if(h=u?Ra(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var C=SV;else if(s1(h))if(VI)C=PV;else{C=xV;var S=CV}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=TV);if(C&&(C=C(t,u))){$I(d,C,n,c);break e}S&&S(t,h,u),t==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&ay(h,"number",h.value)}switch(S=u?Ra(u):window,t){case"focusin":(s1(S)||S.contentEditable==="true")&&(Ia=S,wy=u,ju=null);break;case"focusout":ju=wy=Ia=null;break;case"mousedown":by=!0;break;case"contextmenu":case"mouseup":case"dragend":by=!1,d1(d,n,c);break;case"selectionchange":if(RV)break;case"keydown":case"keyup":d1(d,n,c)}var P;if(jw)e:{switch(t){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Pa?OI(t,n)&&(_="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(DI&&n.locale!=="ko"&&(Pa||_!=="onCompositionStart"?_==="onCompositionEnd"&&Pa&&(P=MI()):(mo=c,$w="value"in mo?mo.value:mo.textContent,Pa=!0)),S=gh(u,_),0<S.length&&(_=new n1(_,t,null,n,c),d.push({event:_,listeners:S}),P?_.data=P:(P=NI(n),P!==null&&(_.data=P)))),(P=yV?wV(t,n):bV(t,n))&&(u=gh(u,"onBeforeInput"),0<u.length&&(c=new n1("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}qI(d,e)})}function fc(t,e,n){return{instance:t,listener:e,currentTarget:n}}function gh(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=oc(t,n),o!=null&&r.unshift(fc(t,o,i)),o=oc(t,e),o!=null&&r.push(fc(t,o,i))),t=t.return}return r}function fa(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function p1(t,e,n,r,i){for(var o=e._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=oc(n,o),l!=null&&s.unshift(fc(n,l,a))):i||(l=oc(n,o),l!=null&&s.push(fc(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var DV=/\r\n?/g,OV=/\u0000|\uFFFD/g;function m1(t){return(typeof t=="string"?t:""+t).replace(DV,` 38`).replace(OV,"")}function Jd(t,e,n){if(e=m1(e),m1(t)!==e&&n)throw Error(Q(425))}function vh(){}var Ey=null,_y=null;function Sy(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Cy=typeof setTimeout=="function"?setTimeout:void 0,NV=typeof clearTimeout=="function"?clearTimeout:void 0,g1=typeof Promise=="function"?Promise:void 0,$V=typeof queueMicrotask=="function"?queueMicrotask:typeof g1<"u"?function(t){return g1.resolve(null).then(t).catch(VV)}:Cy;function VV(t){setTimeout(function(){throw t})}function Mg(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),lc(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);lc(e)}function _o(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function v1(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Rl=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Rl,hc="__reactProps$"+Rl,Oi="__reactContainer$"+Rl,xy="__reactEvents$"+Rl,FV="__reactListeners$"+Rl,jV="__reactHandles$"+Rl;function ps(t){var e=t[Xr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Oi]||n[Xr]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=v1(t);t!==null;){if(n=t[Xr])return n;t=v1(t)}return e}t=n,n=t.parentNode}return null}function ed(t){return t=t[Xr]||t[Oi],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ra(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Q(33))}function Np(t){return t[hc]||null}var Ty=[],ka=-1;function Qo(t){return{current:t}}function vt(t){0>ka||(t.current=Ty[ka],Ty[ka]=null,ka--)}function lt(t,e){ka++,Ty[ka]=t.current,t.current=e}var Fo={}
vendor: 7,754 bytes, line 38
38,En=Qo(Fo),$n=Qo(!1),Ms=Fo;function al(t,e){var n=t.type.contextTypes;if(!n)return Fo;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Vn(t){return t=t.childContextTypes,t!=null}function yh(){vt($n),vt(En)}function y1(t,e,n){if(En.current!==Fo)throw Error(Q(168));lt(En,e),lt($n,n)}function YI(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Q(108,C$(t)||"Unknown",i));return Pt({},n,r)}function wh(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fo,Ms=En.current,lt(En,t),lt($n,$n.current),!0}function w1(t,e,n){var r=t.stateNode;if(!r)throw Error(Q(169));n?(t=YI(t,e,Ms),r.__reactInternalMemoizedMergedChildContext=t,vt($n),vt(En),lt(En,t)):vt($n),lt($n,n)}var Ei=null,$p=!1,Dg=!1;function XI(t){Ei===null?Ei=[t]:Ei.push(t)}function UV(t){$p=!0,XI(t)}function Yo(){if(!Dg&&Ei!==null){Dg=!0;var t=0,e=et;try{var n=Ei;for(et=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Ei=null,$p=!1}catch(i){throw Ei!==null&&(Ei=Ei.slice(t+1)),_I(Mw,Yo),i}finally{et=e,Dg=!1}}return null}var Aa=[],Ma=0,bh=null,Eh=0,fr=[],hr=0,Ds=null,Si=1,Ci="";function ls(t,e){Aa[Ma++]=Eh,Aa[Ma++]=bh,bh=t,Eh=e}function ZI(t,e,n){fr[hr++]=Si,fr[hr++]=Ci,fr[hr++]=Ds,Ds=t;var r=Si;t=Ci;var i=32-Or(r)-1;r&=~(1<<i),n+=1;var o=32-Or(e)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Si=1<<32-Or(e)+i|n<<i|r,Ci=o+t}else Si=1<<o|n<<i|r,Ci=t}function Bw(t){t.return!==null&&(ls(t,1),ZI(t,1,0))}function zw(t){for(;t===bh;)bh=Aa[--Ma],Aa[Ma]=null,Eh=Aa[--Ma],Aa[Ma]=null;for(;t===Ds;)Ds=fr[--hr],fr[hr]=null,Ci=fr[--hr],fr[hr]=null,Si=fr[--hr],fr[hr]=null}var qn=null,Gn=null,St=!1,kr=null;function JI(t,e){var n=gr(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function b1(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,qn=t,Gn=_o(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,qn=t,Gn=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Ds!==null?{id:Si,overflow:Ci}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=gr(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,qn=t,Gn=null,!0):!1;default:return!1}}function Py(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Iy(t){if(St){var e=Gn;if(e){var n=e;if(!b1(t,e)){if(Py(t))throw Error(Q(418));e=_o(n.nextSibling);var r=qn;e&&b1(t,e)?JI(r,n):(t.flags=t.flags&-4097|2,St=!1,qn=t)}}else{if(Py(t))throw Error(Q(418));t.flags=t.flags&-4097|2,St=!1,qn=t}}}function E1(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;qn=t}function ef(t){if(t!==qn)return!1;if(!St)return E1(t),St=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Sy(t.type,t.memoizedProps)),e&&(e=Gn)){if(Py(t))throw eL(),Error(Q(418));for(;e;)JI(t,e),e=_o(e.nextSibling)}if(E1(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Q(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Gn=_o(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Gn=null}}else Gn=qn?_o(t.stateNode.nextSibling):null;return!0}function eL(){for(var t=Gn;t;)t=_o(t.nextSibling)}function ll(){Gn=qn=null,St=!1}function Ww(t){kr===null?kr=[t]:kr.push(t)}var BV=Hi.ReactCurrentBatchConfig;function Ir(t,e){if(t&&t.defaultProps){e=Pt({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var _h=Qo(null),Sh=null,Da=null,Hw=null;function Kw(){Hw=Da=Sh=null}function Gw(t){var e=_h.current;vt(_h),t._currentValue=e}function Ly(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Ya(t,e){Sh=t,Hw=Da=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Nn=!0),t.firstContext=null)}function br(t){var e=t._currentValue;if(Hw!==t)if(t={context:t,memoizedValue:e,next:null},Da===null){if(Sh===null)throw Error(Q(308));Da=t,Sh.dependencies={lanes:0,firstContext:t}}else Da=Da.next=t;return e}var ms=null;function qw(t){ms===null?ms=[t]:ms.push(t)}function tL(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,qw(e)):(n.next=i.next,i.next=n),e.interleaved=n,Ni(t,r)}function Ni(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var ro=!1;function Qw(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nL(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ri(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function So(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Ke&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Ni(t,n)}return i=r.interleaved,i===null?(e.next=e,qw(r)):(e.next=i.next,i.next=e),r.interleaved=e,Ni(t,n)}function Vf(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Dw(t,n)}}function _1(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ch(t,e,n,r){var i=t.updateQueue;ro=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,c=u=l=null,a=o;do{var h=a.lane,p=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=t,g=a;switch(h=e,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(p,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(p,d,h):m,h==null)break e;d=Pt({},d,h);break e;case 2:ro=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,e=i.shared.interleaved,e!==null){i=e;do s|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);Ns|=s,t.lanes=s,t.memoizedState=d}}function S1(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;
vendor: 5,698 bytes, line 38
38if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Q(191,i));i.call(r)}}}var rL=new tI.Component().refs;function Ry(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Pt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Vp={isMounted:function(t){return(t=t._reactInternals)?Xs(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ln(),i=xo(t),o=Ri(r,i);o.payload=e,n!=null&&(o.callback=n),e=So(t,o,i),e!==null&&(Nr(e,t,i,r),Vf(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ln(),i=xo(t),o=Ri(r,i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=So(t,o,i),e!==null&&(Nr(e,t,i,r),Vf(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ln(),r=xo(t),i=Ri(n,r);i.tag=2,e!=null&&(i.callback=e),e=So(t,i,r),e!==null&&(Nr(e,t,r,n),Vf(e,t,r))}};function C1(t,e,n,r,i,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,s):e.prototype&&e.prototype.isPureReactComponent?!cc(n,r)||!cc(i,o):!0}function iL(t,e,n){var r=!1,i=Fo,o=e.contextType;return typeof o=="object"&&o!==null?o=br(o):(i=Vn(e)?Ms:En.current,r=e.contextTypes,o=(r=r!=null)?al(t,i):Fo),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Vp,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function x1(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Vp.enqueueReplaceState(e,e.state,null)}function ky(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=rL,Qw(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=br(o):(o=Vn(e)?Ms:En.current,i.context=al(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(Ry(t,e,o,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Vp.enqueueReplaceState(i,i.state,null),Ch(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function nu(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Q(309));var r=n.stateNode}if(!r)throw Error(Q(147,t));var i=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(s){var a=i.refs;a===rL&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},e._stringRef=o,e)}if(typeof t!="string")throw Error(Q(284));if(!n._owner)throw Error(Q(290,t))}return t}function tf(t,e){throw t=Object.prototype.toString.call(e),Error(Q(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function T1(t){var e=t._init;return e(t._payload)}function oL(t){function e(w,v){if(t){var y=w.deletions;y===null?(w.deletions=[v],w.flags|=16):y.push(v)}}function n(w,v){if(!t)return null;for(;v!==null;)e(w,v),v=v.sibling;return null}function r(w,v){for(w=new Map;v!==null;)v.key!==null?w.set(v.key,v):w.set(v.index,v),v=v.sibling;return w}function i(w,v){return w=To(w,v),w.index=0,w.sibling=null,w}function o(w,v,y){return w.index=y,t?(y=w.alternate,y!==null?(y=y.index,y<v?(w.flags|=2,v):y):(w.flags|=2,v)):(w.flags|=1048576,v)}function s(w){return t&&w.alternate===null&&(w.flags|=2),w}function a(w,v,y,E){return v===null||v.tag!==6?(v=Ug(y,w.mode,E),v.return=w,v):(v=i(v,y),v.return=w,v)}function l(w,v,y,E){var C=y.type;return C===Ta?c(w,v,y.props.children,E,y.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===no&&T1(C)===v.type)?(E=i(v,y.props),E.ref=nu(w,v,y),E.return=w,E):(E=Wf(y.type,y.key,y.props,null,w.mode,E),E.ref=nu(w,v,y),E.return=w,E)}function u(w,v,y,E){return v===null||v.tag!==4||v.stateNode.containerInfo!==y.containerInfo||v.stateNode.implementation!==y.implementation?(v=Bg(y,w.mode,E),v.return=w,v):(v=i(v,y.children||[]),v.return=w,v)}function c(w,v,y,E,C){return v===null||v.tag!==7?(v=Ls(y,w.mode,E,C),v.return=w,v):(v=i(v,y),v.return=w,v)}function d(w,v,y){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ug(""+v,w.mode,y),v.return=w,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Wd:return y=Wf(v.type,v.key,v.props,null,w.mode,y),y.ref=nu(w,null,v),y.return=w,y;case xa:return v=Bg(v,w.mode,y),v.return=w,v;case no:var E=v._init;return d(w,E(v._payload),y)}if(Su(v)||Xl(v))return v=Ls(v,w.mode,y,null),v.return=w,v;tf(w,v)}return null}function h(w,v,y,E){var C=v!==null?v.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:a(w,v,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Wd:return y.key===C?l(w,v,y,E):null;case xa:return y.key===C?u(w,v,y,E):null;case no:return C=y._init,h(w,v,C(y._payload),E)}if(Su(y)||Xl(y))return C!==null?null:c(w,v,y,E,null);tf(w,y)}return null}function p(w,v,y,E,C){if(typeof E=="string"&&E!==""||typeof E=="number")return w=w.get(y)||null,a(v,w,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Wd:return w=w.get(E.key===null?y:E.key)||null,l(v,w,E,C);case xa:return w=w.get(E.key===null?y:E.key)||null,u(v,w,E,C);case no:var S=E._init;return p(w,v,y,S(E._payload),C)}if(Su(E)||Xl(E))return w=w.get(y)||null,c(v,w,E,C,null);tf(v,E)}return null}function m(w,v,y,E){for(var C=null,S=null,P=v,_=v=0,k=null;P!==null&&_<y.length;_++){P.index>
vendor: 20,840 bytes, lines 38-40
38_?(k=P,P=null):k=P.sibling;var L=h(w,P,y[_],E);if(L===null){P===null&&(P=k);break}t&&P&&L.alternate===null&&e(w,P),v=o(L,v,_),S===null?C=L:S.sibling=L,S=L,P=k}if(_===y.length)return n(w,P),St&&ls(w,_),C;if(P===null){for(;_<y.length;_++)P=d(w,y[_],E),P!==null&&(v=o(P,v,_),S===null?C=P:S.sibling=P,S=P);return St&&ls(w,_),C}for(P=r(w,P);_<y.length;_++)k=p(P,w,_,y[_],E),k!==null&&(t&&k.alternate!==null&&P.delete(k.key===null?_:k.key),v=o(k,v,_),S===null?C=k:S.sibling=k,S=k);return t&&P.forEach(function(I){return e(w,I)}),St&&ls(w,_),C}function g(w,v,y,E){var C=Xl(y);if(typeof C!="function")throw Error(Q(150));if(y=C.call(y),y==null)throw Error(Q(151));for(var S=C=null,P=v,_=v=0,k=null,L=y.next();P!==null&&!L.done;_++,L=y.next()){P.index>_?(k=P,P=null):k=P.sibling;var I=h(w,P,L.value,E);if(I===null){P===null&&(P=k);break}t&&P&&I.alternate===null&&e(w,P),v=o(I,v,_),S===null?C=I:S.sibling=I,S=I,P=k}if(L.done)return n(w,P),St&&ls(w,_),C;if(P===null){for(;!L.done;_++,L=y.next())L=d(w,L.value,E),L!==null&&(v=o(L,v,_),S===null?C=L:S.sibling=L,S=L);return St&&ls(w,_),C}for(P=r(w,P);!L.done;_++,L=y.next())L=p(P,w,_,L.value,E),L!==null&&(t&&L.alternate!==null&&P.delete(L.key===null?_:L.key),v=o(L,v,_),S===null?C=L:S.sibling=L,S=L);return t&&P.forEach(function(M){return e(w,M)}),St&&ls(w,_),C}function b(w,v,y,E){if(typeof y=="object"&&y!==null&&y.type===Ta&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Wd:e:{for(var C=y.key,S=v;S!==null;){if(S.key===C){if(C=y.type,C===Ta){if(S.tag===7){n(w,S.sibling),v=i(S,y.props.children),v.return=w,w=v;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===no&&T1(C)===S.type){n(w,S.sibling),v=i(S,y.props),v.ref=nu(w,S,y),v.return=w,w=v;break e}n(w,S);break}else e(w,S);S=S.sibling}y.type===Ta?(v=Ls(y.props.children,w.mode,E,y.key),v.return=w,w=v):(E=Wf(y.type,y.key,y.props,null,w.mode,E),E.ref=nu(w,v,y),E.return=w,w=E)}return s(w);case xa:e:{for(S=y.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(w,v.sibling),v=i(v,y.children||[]),v.return=w,w=v;break e}else{n(w,v);break}else e(w,v);v=v.sibling}v=Bg(y,w.mode,E),v.return=w,w=v}return s(w);case no:return S=y._init,b(w,v,S(y._payload),E)}if(Su(y))return m(w,v,y,E);if(Xl(y))return g(w,v,y,E);tf(w,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(w,v.sibling),v=i(v,y),v.return=w,w=v):(n(w,v),v=Ug(y,w.mode,E),v.return=w,w=v),s(w)):n(w,v)}return b}var ul=oL(!0),sL=oL(!1),td={},ii=Qo(td),pc=Qo(td),mc=Qo(td);function gs(t){if(t===td)throw Error(Q(174));return t}function Yw(t,e){switch(lt(mc,e),lt(pc,t),lt(ii,td),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:uy(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=uy(e,t)}vt(ii),lt(ii,e)}function cl(){vt(ii),vt(pc),vt(mc)}function aL(t){gs(mc.current);var e=gs(ii.current),n=uy(e,t.type);e!==n&&(lt(pc,t),lt(ii,n))}function Xw(t){pc.current===t&&(vt(ii),vt(pc))}var Ct=Qo(0);function xh(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Og=[];function Zw(){for(var t=0;t<Og.length;t++)Og[t]._workInProgressVersionPrimary=null;Og.length=0}var Ff=Hi.ReactCurrentDispatcher,Ng=Hi.ReactCurrentBatchConfig,Os=0,Tt=null,zt=null,qt=null,Th=!1,Uu=!1,gc=0,zV=0;function cn(){throw Error(Q(321))}function Jw(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Vr(t[n],e[n]))return!1;return!0}function eb(t,e,n,r,i,o){if(Os=o,Tt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ff.current=t===null||t.memoizedState===null?GV:qV,t=n(r,i),Uu){o=0;do{if(Uu=!1,gc=0,25<=o)throw Error(Q(301));o+=1,qt=zt=null,e.updateQueue=null,Ff.current=QV,t=n(r,i)}while(Uu)}if(Ff.current=Ph,e=zt!==null&&zt.next!==null,Os=0,qt=zt=Tt=null,Th=!1,e)throw Error(Q(300));return t}function tb(){var t=gc!==0;return gc=0,t}function qr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?Tt.memoizedState=qt=t:qt=qt.next=t,qt}function Er(){if(zt===null){var t=Tt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=qt===null?Tt.memoizedState:qt.next;if(e!==null)qt=e,zt=t;else{if(t===null)throw Error(Q(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},qt===null?Tt.memoizedState=qt=t:qt=qt.next=t}return qt}function vc(t,e){return typeof e=="function"?e(t):e}function $g(t){var e=Er(),n=e.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=t;var r=zt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((Os&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,Tt.lanes|=c,Ns|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Vr(r,e.memoizedState)||(Nn=!0),e.memoizedState=r,e.baseState=s,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do o=i.lane,Tt.lanes|=o,Ns|=o,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Vg(t){var e=Er(),n=e.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=t(o,s.action),s=s.next;while(s!==i);Vr(o,e.memoizedState)||(Nn=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function lL(){}function uL(t,e){var n=Tt,r=Er(),i=e(),o=!Vr(r.memoizedState,i);if(o&&(r.memoizedState=i,Nn=!0),r=r.queue,nb(fL.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||qt!==null&&qt.memoizedState.tag&1){if(n.flags|=2048,yc(9,dL.bind(null,n,r,i,e),void 0,null),Qt===null)throw Error(Q(349));Os&30||cL(n,e,i)}return i}function cL(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Tt.updateQueue,e===null?(e={lastEffect:null,stores:null},Tt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function dL(t,e,n,r){e.value=n,e.getSnapshot=r,hL(e)&&pL(t)}function fL(t,e,n){return n(function(){hL(e)&&pL(t)})}function hL(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Vr(t,n)}catch{return!0}}function pL(t){var e=Ni(t,1);e!==null&&Nr(e,t,1,-1)}function P1(t){var e=qr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vc,lastRenderedState:t},e.queue=t,t=t.dispatch=KV.bind(null,Tt,t),[e.memoizedState,t]}function yc(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Tt.updateQueue,e===null?(e={lastEffect:null,stores:null},Tt.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function mL(){return Er().memoizedState}function jf(t,e,n,r){var i=qr();Tt.flags|=t,i.memoizedState=yc(1|e,n,void 0,r===void 0?null:r)}function Fp(t,e,n,r){var i=Er();r=r===void 0?null:r;var o=void 0;if(zt!==null){var s=zt.memoizedState;if(o=s.destroy,r!==null&&Jw(r,s.deps)){i.memoizedState=yc(e,n,o,r);return}}Tt.flags|=t,i.memoizedState=yc(1|e,n,o,r)}function I1(t,e){return jf(8390656,8,t,e)}function nb(t,e){return Fp(2048,8,t,e)}function gL(t,e){return Fp(4,2,t,e)}function vL(t,e){return Fp(4,4,t,e)}function yL(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function wL(t,e,n){return n=n!=null?n.concat([t]):null,Fp(4,4,yL.bind(null,e,t),n)}function rb(){}function bL(t,e){var n=Er();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Jw(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function EL(t,e){var n=Er();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Jw(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function _L(t,e,n){return Os&21?(Vr(n,e)||(n=xI(),Tt.lanes|=n,Ns|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Nn=!0),t.memoizedState=n)}function WV(t,e){var n=et;et=n!==0&&4>n?n:4,t(!0);var r=Ng.transition;Ng.transition={};try{t(!1),e()}finally{et=n,Ng.transition=r}}function SL(){return Er().memoizedState}function HV(t,e,n){var r=xo(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CL(t))xL(e,n);else if(n=tL(t,e,n,r),n!==null){var i=Ln();Nr(n,t,r,i),TL(n,e,r)}}function KV(t,e,n){var r=xo(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CL(t))xL(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Vr(a,s)){var l=e.interleaved;l===null?(i.next=i,qw(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=tL(t,e,i,r),n!==null&&(i=Ln(),Nr(n,t,r,i),TL(n,e,r))}}function CL(t){var e=t.alternate;return t===Tt||e!==null&&e===Tt}function xL(t,e){Uu=Th=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function TL(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Dw(t,n)}}var Ph={readContext:br,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useInsertionEffect:cn,useLayoutEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useMutableSource:cn,useSyncExternalStore:cn,useId:cn,unstable_isNewReconciler:!1},GV={readContext:br,useCallback:function(t,e){return qr().memoizedState=[t,e===void 0?null:e],t},useContext:br,useEffect:I1,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,jf(4194308,4,yL.bind(null,e,t),n)},useLayoutEffect:function(t,e){return jf(4194308,4,t,e)},useInsertionEffect:function(t,e){return jf(4,2,t,e)},useMemo:function(t,e){var n=qr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=qr();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=HV.bind(null,Tt,t),[r.memoizedState,t]},useRef:function(t){var e=qr();return t={current:t},e.memoizedState=t},useState:P1,useDebugValue:rb,useDeferredValue:function(t){return qr().memoizedState=t},useTransition:function(){var t=P1(!1),e=t[0];return t=WV.bind(null,t[1]),qr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Tt,i=qr();if(St){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=e(),Qt===null)throw Error(Q(349));Os&30||cL(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,I1(fL.bind(null,r,o,t),[t]),r.flags|=2048,yc(9,dL.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=qr(),e=Qt.identifierPrefix;if(St){var n=Ci,r=Si;n=(r&~(1<<32-Or(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=gc++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=zV++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},qV={readContext:br,useCallback:bL,useContext:br,useEffect:nb,useImperativeHandle:wL,useInsertionEffect:gL,useLayoutEffect:vL,useMemo:EL,useReducer:$g,useRef:mL,useState:function(){return $g(vc)},useDebugValue:rb,useDeferredValue:function(t){var e=Er();return _L(e,zt.memoizedState,t)},useTransition:function(){var t=$g(vc)[0],e=Er().memoizedState;return[t,e]},useMutableSource:lL,useSyncExternalStore:uL,useId:SL,unstable_isNewReconciler:!1},QV={readContext:br,useCallback:bL,useContext:br,useEffect:nb,useImperativeHandle:wL,useInsertionEffect:gL,useLayoutEffect:vL,useMemo:EL,useReducer:Vg,useRef:mL,useState:function(){return Vg(vc)},useDebugValue:rb,useDeferredValue:function(t){var e=Er();return zt===null?e.memoizedState=t:_L(e,zt.memoizedState,t)},useTransition:function(){var t=Vg(vc)[0],e=Er().memoizedState;return[t,e]},useMutableSource:lL,useSyncExternalStore:uL,useId:SL,unstable_isNewReconciler:!1};function dl(t,e){try{var n="",r=e;do n+=S$(r),r=r.return;while(r);var i=n}catch(o){i=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:t,source:e,stack:i,digest:null}}function Fg(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Ay(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var YV=typeof WeakMap=="function"?WeakMap:Map;function PL(t,e,n){n=Ri(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Lh||(Lh=!0,By=r),Ay(t,e)},n}function IL(t,e,n){n=Ri(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Ay(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ay(t,e),typeof r!="function"&&(Co===null?Co=new Set([this]):Co.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}function L1(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new YV;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=c4.bind(null,t,e,n),e.then(t,t))}function R1(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function k1(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Ri(-1,1),e.tag=2,So(n,e,1))),n.lanes|=1),t)}var XV=Hi.ReactCurrentOwner,Nn=!1;function Pn(t,e,n,r){e.child=t===null?sL(e,null,n,r):ul(e,t.child,n,r)}function A1(t,e,n,r,i){n=n.render;var o=e.ref;return Ya(e,i),r=eb(t,e,n,r,o,i),n=tb(),t!==null&&!Nn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,$i(t,e,i)):(St&&n&&Bw(e),e.flags|=1,Pn(t,e,r,i),e.child)}function M1(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!db(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,LL(t,e,o,r,i)):(t=Wf(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:cc,n(s,r)&&t.ref===e.ref)return $i(t,e,i)}return e.flags|=1,t=To(o,r),t.ref=e.ref,t.return=e,e.child=t}function LL(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if(cc(o,r)&&t.ref===e.ref)if(Nn=!1,e.pendingProps=r=o,(t.lanes&i)!==0)t.flags&131072&&(Nn=!0);else return e.lanes=t.lanes,$i(t,e,i)}return My(t,e,n,r,i)}function RL(t,e,n){var r=e.pendingProps,i=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(Na,Hn),Hn|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,lt(Na,Hn),Hn|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,lt(Na,Hn),Hn|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,lt(Na,Hn),Hn|=r;return Pn(t,e,i,n),e.child}function kL(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function My(t,e,n,r,i){var o=Vn(n)?Ms:En.current;return o=al(e,o),Ya(e,i),n=eb(t,e,n,r,o,i),r=tb(),t!==null&&!Nn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,$i(t,e,i)):(St&&r&&Bw(e),e.flags|=1,Pn(t,e,n,i),e.child)}function D1(t,e,n,r,i){if(Vn(n)){var o=!0;wh(e)}else o=!1;if(Ya(e,i),e.stateNode===null)Uf(t,e),iL(e,n,r),ky(e,n,r,i),r=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=br(u):(u=Vn(n)?Ms:En.current,u=al(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&x1(e,s,r,u),ro=!1;var h=e.memoizedState;s.state=h,Ch(e,r,s,i),l=e.memoizedState,a!==r||h!==l||$n.current||ro?(typeof c=="function"&&(Ry(e,n,c,r),l=e.memoizedState),(a=ro||C1(e,n,a,r,h,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{s=e.stateNode,nL(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Ir(e.type,a),s.props=u,d=e.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=br(l):(l=Vn(n)?Ms:En.current,l=al(e,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||h!==l)&&x1(e,s,r,l),ro=!1,h=e.memoizedState,s.state=h,Ch(e,r,s,i);var m=e.memoizedState;a!==d||h!==m||$n.current||ro?(typeof p=="function"&&(Ry(e,n,p,r),m=e.memoizedState),(u=ro||C1(e,n,u,r,h,m,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=m),s.props=r,s.state=m,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Dy(t,e,n,r,o,i)}function Dy(t,e,n,r,i,o){kL(t,e);var s=(e.flags&128)!==0;if(!r&&!s)return i&&w1(e,n,!1),$i(t,e,o);r=e.stateNode,XV.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&s?(e.child=ul(e,t.child,null,o),e.child=ul(e,null,a,o)):Pn(t,e,a,o),e.memoizedState=r.state,i&&w1(e,n,!0),e.child}function AL(t){var e=t.stateNode;e.pendingContext?y1(t,e.pendingContext,e.pendingContext!==e.context):e.context&&y1(t,e.context,!1),Yw(t,e.containerInfo)}function O1(t,e,n,r,i){return ll(),Ww(i),e.flags|=256,Pn(t,e,n,r),e.child}var Oy={dehydrated:null,treeContext:null,retryLane:0};function Ny(t){return{baseLanes:t,cachePool:null,transitions:null}}function ML(t,e,n){var r=e.pendingProps,i=Ct.current,o=!1,s=(e.flags&128)!==0,a;if((a=s)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),lt(Ct,i&1),t===null)return Iy(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(s=r.children,t=r.fallback,o?(r=e.mode,o=e.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Bp(s,r,0,null),t=Ls(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=Ny(n),e.memoizedState=Oy,t):ib(e,s));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ZV(t,e,s,r,a,i,n);if(o){o=r.fallback,s=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=To(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=To(a,o):(o=Ls(o,s,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,s=t.child.memoizedState,s=s===null?Ny(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=t.childLanes&~n,e.memoizedState=Oy,r}return o=t.child,t=o.sibling,r=To(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function ib(t,e){return e=Bp({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function nf(t,e,n,r){return r!==null&&Ww(r),ul(e,t.child,null,n),t=ib(e,e.pen
vendor: 4,915 bytes, line 40
40dingProps.children),t.flags|=2,e.memoizedState=null,t}function ZV(t,e,n,r,i,o,s){if(n)return e.flags&256?(e.flags&=-257,r=Fg(Error(Q(422))),nf(t,e,s,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,i=e.mode,r=Bp({mode:"visible",children:r.children},i,0,null),o=Ls(o,i,s,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&ul(e,t.child,null,s),e.child.memoizedState=Ny(s),e.memoizedState=Oy,o);if(!(e.mode&1))return nf(t,e,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Q(419)),r=Fg(o,r,void 0),nf(t,e,s,r)}if(a=(s&t.childLanes)!==0,Nn||a){if(r=Qt,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Ni(t,i),Nr(r,t,i,-1))}return cb(),r=Fg(Error(Q(421))),nf(t,e,s,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=d4.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,Gn=_o(i.nextSibling),qn=e,St=!0,kr=null,t!==null&&(fr[hr++]=Si,fr[hr++]=Ci,fr[hr++]=Ds,Si=t.id,Ci=t.overflow,Ds=e),e=ib(e,r.children),e.flags|=4096,e)}function N1(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Ly(t.return,e,n)}function jg(t,e,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function DL(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Pn(t,e,r.children,n),r=Ct.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&N1(t,n,e);else if(t.tag===19)N1(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(lt(Ct,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&xh(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),jg(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&xh(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}jg(e,!0,n,null,o);break;case"together":jg(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Uf(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function $i(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ns|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Q(153));if(e.child!==null){for(t=e.child,n=To(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=To(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function JV(t,e,n){switch(e.tag){case 3:AL(e),ll();break;case 5:aL(e);break;case 1:Vn(e.type)&&wh(e);break;case 4:Yw(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;lt(_h,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(lt(Ct,Ct.current&1),e.flags|=128,null):n&e.child.childLanes?ML(t,e,n):(lt(Ct,Ct.current&1),t=$i(t,e,n),t!==null?t.sibling:null);lt(Ct,Ct.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return DL(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),lt(Ct,Ct.current),r)break;return null;case 22:case 23:return e.lanes=0,RL(t,e,n)}return $i(t,e,n)}var OL,$y,NL,$L;OL=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};$y=function(){};NL=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,gs(ii.current);var o=null;switch(n){case"input":i=oy(t,i),r=oy(t,r),o=[];break;case"select":i=Pt({},i,{value:void 0}),r=Pt({},r,{value:void 0}),o=[];break;case"textarea":i=ly(t,i),r=ly(t,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=vh)}cy(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(rc.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];
vendor: 5,266 bytes, line 40
40if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(rc.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ft("scroll",t),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(e.updateQueue=u)&&(e.flags|=4)}};$L=function(t,e,n,r){n!==r&&(e.flags|=4)};function ru(t,e){if(!St)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function dn(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function e4(t,e,n){var r=e.pendingProps;switch(zw(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dn(e),null;case 1:return Vn(e.type)&&yh(),dn(e),null;case 3:return r=e.stateNode,cl(),vt($n),vt(En),Zw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(ef(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,kr!==null&&(Hy(kr),kr=null))),$y(t,e),dn(e),null;case 5:Xw(e);var i=gs(mc.current);if(n=e.type,t!==null&&e.stateNode!=null)NL(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(Q(166));return dn(e),null}if(t=gs(ii.current),ef(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[Xr]=e,r[hc]=o,t=(e.mode&1)!==0,n){case"dialog":ft("cancel",r),ft("close",r);break;case"iframe":case"object":case"embed":ft("load",r);break;case"video":case"audio":for(i=0;i<xu.length;i++)ft(xu[i],r);break;case"source":ft("error",r);break;case"img":case"image":case"link":ft("error",r),ft("load",r);break;case"details":ft("toggle",r);break;case"input":H_(r,o),ft("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ft("invalid",r);break;case"textarea":G_(r,o),ft("invalid",r)}cy(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Jd(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Jd(r.textContent,a,t),i=["children",""+a]):rc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ft("scroll",r)}switch(n){case"input":Hd(r),K_(r,o,!0);break;case"textarea":Hd(r),q_(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=vh)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=cI(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[Xr]=e,t[hc]=r,OL(t,e,!1,!1),e.stateNode=t;e:{switch(s=dy(n,r),n){case"dialog":ft("cancel",t),ft("close",t),i=r;break;case"iframe":case"object":case"embed":ft("load",t),i=r;break;case"video":case"audio":for(i=0;i<xu.length;i++)ft(xu[i],t);i=r;break;case"source":ft("error",t),i=r;break;case"img":case"image":case"link":ft("error",t),ft("load",t),i=r;break;case"details":ft("toggle",t),i=r;break;case"input":H_(t,r),i=oy(t,r),ft("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Pt({},r,{value:void 0}),ft("invalid",t);break;case"textarea":G_(t,r),i=ly(t,r),ft("invalid",t);break;default:i=r}cy(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?hI(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dI(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ic(t,l):typeof l=="number"&&ic(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(rc.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ft("scroll",t):l!=null&&Iw(t,o,l,s))}switch(n){case"input":Hd(t),K_(t,r,!1);break;case"textarea":Hd(t),q_(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Vo(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?Ka(t,!!r.multiple,o,!1):r.defaultValue!=null&&Ka(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=vh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}
vendor: 11,826 bytes, line 40
40return dn(e),null;case 6:if(t&&e.stateNode!=null)$L(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Q(166));if(n=gs(mc.current),gs(ii.current),ef(e)){if(r=e.stateNode,n=e.memoizedProps,r[Xr]=e,(o=r.nodeValue!==n)&&(t=qn,t!==null))switch(t.tag){case 3:Jd(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Jd(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xr]=e,e.stateNode=r}return dn(e),null;case 13:if(vt(Ct),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(St&&Gn!==null&&e.mode&1&&!(e.flags&128))eL(),ll(),e.flags|=98560,o=!1;else if(o=ef(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(Q(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Q(317));o[Xr]=e}else ll(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;dn(e),o=!1}else kr!==null&&(Hy(kr),kr=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Ct.current&1?Wt===0&&(Wt=3):cb())),e.updateQueue!==null&&(e.flags|=4),dn(e),null);case 4:return cl(),$y(t,e),t===null&&dc(e.stateNode.containerInfo),dn(e),null;case 10:return Gw(e.type._context),dn(e),null;case 17:return Vn(e.type)&&yh(),dn(e),null;case 19:if(vt(Ct),o=e.memoizedState,o===null)return dn(e),null;if(r=(e.flags&128)!==0,s=o.rendering,s===null)if(r)ru(o,!1);else{if(Wt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=xh(t),s!==null){for(e.flags|=128,ru(o,!1),r=s.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return lt(Ct,Ct.current&1|2),e.child}t=t.sibling}o.tail!==null&&Ot()>fl&&(e.flags|=128,r=!0,ru(o,!1),e.lanes=4194304)}else{if(!r)if(t=xh(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),ru(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!St)return dn(e),null}else 2*Ot()-o.renderingStartTime>fl&&n!==1073741824&&(e.flags|=128,r=!0,ru(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ot(),e.sibling=null,n=Ct.current,lt(Ct,r?n&1|2:n&1),e):(dn(e),null);case 22:case 23:return ub(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Hn&1073741824&&(dn(e),e.subtreeFlags&6&&(e.flags|=8192)):dn(e),null;case 24:return null;case 25:return null}throw Error(Q(156,e.tag))}function t4(t,e){switch(zw(e),e.tag){case 1:return Vn(e.type)&&yh(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return cl(),vt($n),vt(En),Zw(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Xw(e),null;case 13:if(vt(Ct),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Q(340));ll()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return vt(Ct),null;case 4:return cl(),null;case 10:return Gw(e.type._context),null;case 22:case 23:return ub(),null;case 24:return null;default:return null}}var rf=!1,gn=!1,n4=typeof WeakSet=="function"?WeakSet:Set,ne=null;function Oa(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Rt(t,e,r)}else n.current=null}function Vy(t,e,n){try{n()}catch(r){Rt(t,e,r)}}var $1=!1;function r4(t,e){if(Ey=ph,t=UI(),Uw(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===n&&++u===i&&(a=s),h===o&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_y={focusedElem:t,selectionRange:n},ph=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){e=ne;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,w=e.stateNode,v=w.getSnapshotBeforeUpdate(e.elementType===e.type?g:Ir(e.type,g),b);w.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(E){Rt(e,e.return,E)}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}return m=$1,$1=!1,m}function Bu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&Vy(e,n,o)}i=i.next}while(i!==r)}}function jp(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Fy(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function VL(t){var e=t.alternate;e!==null&&(t.alternate=null,VL(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Xr],delete e[hc],delete e[xy],delete e[FV],delete e[jV])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function FL(t){return t.tag===5||t.tag===3||t.tag===4}function V1(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||FL(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jy(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=vh));else if(r!==4&&(t=t.child,t!==null))for(jy(t,e,n),t=t.sibling;t!==null;)jy(t,e,n),t=t.sibling}function Uy(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Uy(t,e,n),t=t.sibling;t!==null;)Uy(t,e,n),t=t.sibling}var en=null,Lr=!1;function Yi(t,e,n){for(n=n.child;n!==null;)jL(t,e,n),n=n.sibling}function jL(t,e,n){if(ri&&typeof ri.onCommitFiberUnmount=="function")try{ri.onCommitFiberUnmount(Ap,n)}catch{}switch(n.tag){case 5:gn||Oa(n,e);case 6:var r=en,i=Lr;en=null,Yi(t,e,n),en=r,Lr=i,en!==null&&(Lr?(t=en,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):en.removeChild(n.stateNode));break;case 18:en!==null&&(Lr?(t=en,n=n.stateNode,t.nodeType===8?Mg(t.parentNode,n):t.nodeType===1&&Mg(t,n),lc(t)):Mg(en,n.stateNode));break;case 4:r=en,i=Lr,en=n.stateNode.containerInfo,Lr=!0,Yi(t,e,n),en=r,Lr=i;break;case 0:case 11:case 14:case 15:if(!gn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Vy(n,e,s),i=i.next}while(i!==r)}Yi(t,e,n);break;case 1:if(!gn&&(Oa(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Rt(n,e,a)}Yi(t,e,n);break;case 21:Yi(t,e,n);break;case 22:n.mode&1?(gn=(r=gn)||n.memoizedState!==null,Yi(t,e,n),gn=r):Yi(t,e,n);break;default:Yi(t,e,n)}}function F1(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new n4),e.forEach(function(r){var i=f4.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tr(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=t,s=e,a=s;e:for(;a!==null;){switch(a.tag){case 5:en=a.stateNode,Lr=!1;break e;case 3:en=a.stateNode.containerInfo,Lr=!0;break e;case 4:en=a.stateNode.containerInfo,Lr=!0;break e}a=a.return}if(en===null)throw Error(Q(160));jL(o,s,i),en=null,Lr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Rt(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)UL(e,t),e=e.sibling}function UL(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Tr(e,t),Gr(t),r&4){try{Bu(3,t,t.return),jp(3,t)}catch(g){Rt(t,t.return,g)}try{Bu(5,t,t.return)}catch(g){Rt(t,t.return,g)}}break;case 1:Tr(e,t),Gr(t),r&512&&n!==null&&Oa(n,n.return);break;case 5:if(Tr(e,t),Gr(t),r&512&&n!==null&&Oa(n,n.return),t.flags&32){var i=t.stateNode;try{ic(i,"")}catch(g){Rt(t,t.return,g)}}if(r&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,s=n!==null?n.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&lI(i,o),dy(a,s);var u=dy(a,o);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?hI(i,d):c==="dangerouslySetInnerHTML"?dI(i,d):c==="children"?ic(i,d):Iw(i,c,d,u)}switch(a){case"input":sy(i,o);break;case"textarea":uI(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Ka(i,!!o.multiple,p,!1):h!==!!o.multiple&&(o.defaultValue!=null?Ka(i,!!o.multiple,o.defaultValue,!0):Ka(i,!!o.multiple,o.multiple?[]:"",!1))}i[hc]=o}catch(g){Rt(t,t.return,g)}}break;case 6:if(Tr(e,t),Gr(t),r&4){if(t.stateNode===null)throw Error(Q(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(g){Rt(t,t.return,g)}}break;case 3:if(Tr(e,t),Gr(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lc(e.containerInfo)}catch(g){Rt(t,t.return,g)}break;case 4:Tr(e,t),Gr(t);break;case 13:Tr(e,t),Gr(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ab=Ot())),r&4&&F1(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(gn=(u=gn)||c,Tr(e,t),gn=u):Tr(e,t),Gr(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(ne=t,c=t.child;c!==null;){for(d=ne=c;ne!==null;){switch(h=ne,p=h.child,h.tag){case 0:case 11:case 14:case 15:Bu(4,h,h.return);break;case 1:Oa(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(g){Rt(r,n,g)}}break;case 5:Oa(h,h.return);break;case 22:if(h.memoizedState!==null){U1(d);continue}}p!==null?(p.return=h,ne=p):U1(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=fI("display",s))}catch(g){Rt(t,t.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){Rt(t,t.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.
vendor: 11,187 bytes, line 40
40child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Tr(e,t),Gr(t),r&4&&F1(t);break;case 21:break;default:Tr(e,t),Gr(t)}}function Gr(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(FL(n)){var r=n;break e}n=n.return}throw Error(Q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ic(i,""),r.flags&=-33);var o=V1(t);Uy(t,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=V1(t);jy(t,a,s);break;default:throw Error(Q(161))}}catch(l){Rt(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function i4(t,e,n){ne=t,BL(t)}function BL(t,e,n){for(var r=(t.mode&1)!==0;ne!==null;){var i=ne,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||rf;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||gn;a=rf;var u=gn;if(rf=s,(gn=l)&&!u)for(ne=i;ne!==null;)s=ne,l=s.child,s.tag===22&&s.memoizedState!==null?B1(i):l!==null?(l.return=s,ne=l):B1(i);for(;o!==null;)ne=o,BL(o),o=o.sibling;ne=i,rf=a,gn=u}j1(t)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ne=o):j1(t)}}function j1(t){for(;ne!==null;){var e=ne;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:gn||jp(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!gn)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Ir(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&S1(e,o,r);break;case 3:var s=e.updateQueue;if(s!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}S1(e,s,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&lc(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}gn||e.flags&512&&Fy(e)}catch(h){Rt(e,e.return,h)}}if(e===t){ne=null;break}if(n=e.sibling,n!==null){n.return=e.return,ne=n;break}ne=e.return}}function U1(t){for(;ne!==null;){var e=ne;if(e===t){ne=null;break}var n=e.sibling;if(n!==null){n.return=e.return,ne=n;break}ne=e.return}}function B1(t){for(;ne!==null;){var e=ne;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{jp(4,e)}catch(l){Rt(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){Rt(e,i,l)}}var o=e.return;try{Fy(e)}catch(l){Rt(e,o,l)}break;case 5:var s=e.return;try{Fy(e)}catch(l){Rt(e,s,l)}}}catch(l){Rt(e,e.return,l)}if(e===t){ne=null;break}var a=e.sibling;if(a!==null){a.return=e.return,ne=a;break}ne=e.return}}var o4=Math.ceil,Ih=Hi.ReactCurrentDispatcher,ob=Hi.ReactCurrentOwner,vr=Hi.ReactCurrentBatchConfig,Ke=0,Qt=null,jt=null,on=0,Hn=0,Na=Qo(0),Wt=0,wc=null,Ns=0,Up=0,sb=0,zu=null,On=null,ab=0,fl=1/0,bi=null,Lh=!1,By=null,Co=null,of=!1,go=null,Rh=0,Wu=0,zy=null,Bf=-1,zf=0;function Ln(){return Ke&6?Ot():Bf!==-1?Bf:Bf=Ot()}function xo(t){return t.mode&1?Ke&2&&on!==0?on&-on:BV.transition!==null?(zf===0&&(zf=xI()),zf):(t=et,t!==0||(t=window.event,t=t===void 0?16:AI(t.type)),t):1}function Nr(t,e,n,r){if(50<Wu)throw Wu=0,zy=null,Error(Q(185));Zc(t,n,r),(!(Ke&2)||t!==Qt)&&(t===Qt&&(!(Ke&2)&&(Up|=n),Wt===4&&ao(t,on)),Fn(t,r),n===1&&Ke===0&&!(e.mode&1)&&(fl=Ot()+500,$p&&Yo()))}function Fn(t,e){var n=t.callbackNode;B$(t,e);var r=hh(t,t===Qt?on:0);if(r===0)n!==null&&X_(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&X_(n),e===1)t.tag===0?UV(z1.bind(null,t)):XI(z1.bind(null,t)),$V(function(){!(Ke&6)&&Yo()}),n=null;else{switch(TI(r)){case 1:n=Mw;break;case 4:n=SI;break;case 16:n=fh;break;case 536870912:n=CI;break;default:n=fh}n=YL(n,zL.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function zL(t,e){if(Bf=-1,zf=0,Ke&6)throw Error(Q(327));var n=t.callbackNode;if(Xa()&&t.callbackNode!==n)return null;var r=hh(t,t===Qt?on:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=kh(t,r);else{e=r;var i=Ke;Ke|=2;var o=HL();(Qt!==t||on!==e)&&(bi=null,fl=Ot()+500,Is(t,e));do try{l4();break}catch(a){WL(t,a)}while(1);Kw(),Ih.current=o,Ke=i,jt!==null?e=0:(Qt=null,on=0,e=Wt)}if(e!==0){if(e===2&&(i=gy(t),i!==0&&(r=i,e=Wy(t,i))),e===1)throw n=wc,Is(t,0),ao(t,r),Fn(t,Ot()),n;if(e===6)ao(t,r);else{if(i=t.current.alternate,!(r&30)&&!s4(i)&&(e=kh(t,r),e===2&&(o=gy(t),o!==0&&(r=o,e=Wy(t,o))),e===1))throw n=wc,Is(t,0),ao(t,r),Fn(t,Ot()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(Q(345));case 2:us(t,On,bi);break;case 3:if(ao(t,r),(r&130023424)===r&&(e=ab+500-Ot(),10<e)){if(hh(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Ln(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Cy(us.bind(null,t,On,bi),e);break}us(t,On,bi);break;case 4:if(ao(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var s=31-Or(r);o=1<<s,s=e[s],s>i&&(i=s),r&=~o}if(r=i,r=Ot()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o4(r/1960))-r,10<r){t.timeoutHandle=Cy(us.bind(null,t,On,bi),r);break}us(t,On,bi);break;case 5:us(t,On,bi);break;default:throw Error(Q(329))}}}return Fn(t,Ot()),t.callbackNode===n?zL.bind(null,t):null}function Wy(t,e){var n=zu;return t.current.memoizedState.isDehydrated&&(Is(t,e).flags|=256),t=kh(t,e),t!==2&&(e=On,On=n,e!==null&&Hy(e)),t}function Hy(t){On===null?On=t:On.push.apply(On,t)}function s4(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Vr(o(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ao(t,e){for(e&=~sb,e&=~Up,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Or(e),r=1<<n;t[n]=-1,e&=~r}}function z1(t){if(Ke&6)throw Error(Q(327));Xa();var e=hh(t,0);if(!(e&1))return Fn(t,Ot()),null;var n=kh(t,e);if(t.tag!==0&&n===2){var r=gy(t);r!==0&&(e=r,n=Wy(t,r))}if(n===1)throw n=wc,Is(t,0),ao(t,e),Fn(t,Ot()),n;if(n===6)throw Error(Q(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,us(t,On,bi),Fn(t,Ot()),null}function lb(t,e){var n=Ke;Ke|=1;try{return t(e)}finally{Ke=n,Ke===0&&(fl=Ot()+500,$p&&Yo())}}function $s(t){go!==null&&go.tag===0&&!(Ke&6)&&Xa();var e=Ke;Ke|=1;var n=vr.transition,r=et;try{if(vr.transition=null,et=1,t)return t()}finally{et=r,vr.transition=n,Ke=e,!(Ke&6)&&Yo()}}function ub(){Hn=Na.current,vt(Na)}function Is(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,NV(n)),jt!==null)for(n=jt.return;n!==null;){var r=n;switch(zw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yh();break;case 3:cl(),vt($n),vt(En),Zw();break;case 5:Xw(r);break;case 4:cl();break;case 13:vt(Ct);break;case 19:vt(Ct);break;case 10:Gw(r.type._context);break;case 22:case 23:ub()}n=n.return}if(Qt=t,jt=t=To(t.current,null),on=Hn=e,Wt=0,wc=null,sb=Up=Ns=0,On=zu=null,ms!==null){for(e=0;e<ms.length;e++)if(n=ms[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}ms=null}return t}function WL(t,e){do{var n=jt;try{if(Kw(),Ff.current=Ph,Th){for(var r=Tt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Th=!1}if(Os=0,qt=zt=Tt=null,Uu=!1,gc=0,ob.current=null,n===null||n.return===null){Wt=1,wc=e,jt=null;break}e:{var o=t,s=n.return,a=n,l=e;if(e=on,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=R1(s);if(p!==null){p.flags&=-257,k1(p,s,a,o,e),p.mode&1&&L1(o,u,e),e=p,l=u;var m=e.updateQueue;if(m===null){var g=new Set;g.add(l),e.updateQueue=g}else m.add(l);break e}else{if(!(e&1)){L1(o,u,e),cb();break e}l=Error(Q(426))}}else if(St&&a.mode&1){var b=R1(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),k1(b,s,a,o,e),Ww(dl(l,a));break e}}o=l=dl(l,a),Wt!==4&&(Wt=2),zu===null?zu=[o]:zu.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var w=PL(o,l,e);_1(o,w);break e;case 1:a=l;var v=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Co===null||!Co.has(y)))){o.flags|=65536,e&=-e,o.lanes|=e;var E=IL(o,a,e);_1(o,E);break e}}o=o.return}while(o!==null)}GL(n)}catch(C){e=C,jt===n&&n!==null&&(jt=n=n.return);continue}break}while(1)}function HL(){var t=Ih.current;return Ih.current=Ph,t===null?Ph:t}function cb(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),Qt===null||!(Ns&268435455)&&!(Up&268435455)||ao(Qt,on)}function kh(t,e){var n=Ke;Ke|=2;var r=HL();(Qt!==t||on!==e)&&(bi=null,Is(t,e));do try{a4();break}catch(i){WL(t,i)}while(1);if(Kw(),Ke=n,Ih.current=r,jt!==null)throw Error(Q(261));return Qt=null,on=0,Wt}function a4(){for(;jt!==null;)KL(jt)}function l4(){for(;jt!==null&&!M$();)KL(jt)}function KL(t){var e=QL(t.alternate,t,Hn);t.memoizedProps=t.pendingProps,e===null?GL(t):jt=e,ob.current=null}function GL(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=t4(n,e),n!==null){n.flags&=32767,jt=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Wt=6,jt=null;return}}else if(n=e4(n,e,Hn),n!==null){jt=n;return}if(e=e.sibling,e!==null){jt=e;return}jt=e=t}while(e!==null);Wt===0&&(Wt=5)}function us(t,e,n){var r=et,i=vr.transition;try{vr.transition=null,et=1,u4(t,e,n,r)}finally{vr.transition=i,et=r}return null}function u4(t,e,n,r){do Xa();while(go!==null);if(Ke&6)throw Error(Q(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Q(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(z$(t,o),t===Qt&&(jt=Qt=null,on=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||of||(of=!0,YL(fh,function(){return Xa(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=vr.transition,vr.transition=null;var s=et;et=1;var a=Ke;Ke|=4,ob.current=null,r4(t,n),UL(n,t),LV(_y),ph=!!Ey,_y=Ey=null,t.current=n,i4(n),D$(),Ke=a,et=s,vr.transition=o}else t.current=n;if(of&&(of=!1,go=t,Rh=i),o=t.pendingLanes,o===0&&(Co=null),$$(n.stateNode),Fn(t,Ot()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Lh)throw Lh=!1,t=By,By=null,t;return Rh&1&&t.tag!==0&&Xa(),o=t.pendingLanes,o&1?t===zy?Wu++:(Wu=0,zy=t):Wu=0,Yo(),null}function Xa(){if(go!==null){var t=TI(Rh),e=vr.transition,n=et;try{if(vr.transition=null,et=16>t?16:t,go===null)var r=!1;else{if(t=go,go=null,Rh=0,Ke&6)throw Error(Q(331));var i=Ke;for(Ke|=4,ne=t.current;ne!==null;){var o=ne,s=o.child;
vendor: 4,671 bytes, line 40
40if(ne.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(ne=u;ne!==null;){var c=ne;switch(c.tag){case 0:case 11:case 15:Bu(8,c,o)}var d=c.child;if(d!==null)d.return=c,ne=d;else for(;ne!==null;){c=ne;var h=c.sibling,p=c.return;if(VL(c),c===u){ne=null;break}if(h!==null){h.return=p,ne=h;break}ne=p}}}var m=o.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}ne=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,ne=s;else e:for(;ne!==null;){if(o=ne,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Bu(9,o,o.return)}var w=o.sibling;if(w!==null){w.return=o.return,ne=w;break e}ne=o.return}}var v=t.current;for(ne=v;ne!==null;){s=ne;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,ne=y;else e:for(s=v;ne!==null;){if(a=ne,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:jp(9,a)}}catch(C){Rt(a,a.return,C)}if(a===s){ne=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,ne=E;break e}ne=a.return}}if(Ke=i,Yo(),ri&&typeof ri.onPostCommitFiberRoot=="function")try{ri.onPostCommitFiberRoot(Ap,t)}catch{}r=!0}return r}finally{et=n,vr.transition=e}}return!1}function W1(t,e,n){e=dl(n,e),e=PL(t,e,1),t=So(t,e,1),e=Ln(),t!==null&&(Zc(t,1,e),Fn(t,e))}function Rt(t,e,n){if(t.tag===3)W1(t,t,n);else for(;e!==null;){if(e.tag===3){W1(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Co===null||!Co.has(r))){t=dl(n,t),t=IL(e,t,1),e=So(e,t,1),t=Ln(),e!==null&&(Zc(e,1,t),Fn(e,t));break}}e=e.return}}function c4(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ln(),t.pingedLanes|=t.suspendedLanes&n,Qt===t&&(on&n)===n&&(Wt===4||Wt===3&&(on&130023424)===on&&500>Ot()-ab?Is(t,0):sb|=n),Fn(t,e)}function qL(t,e){e===0&&(t.mode&1?(e=qd,qd<<=1,!(qd&130023424)&&(qd=4194304)):e=1);var n=Ln();t=Ni(t,e),t!==null&&(Zc(t,e,n),Fn(t,n))}function d4(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),qL(t,n)}function f4(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Q(314))}r!==null&&r.delete(e),qL(t,n)}var QL;QL=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||$n.current)Nn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Nn=!1,JV(t,e,n);Nn=!!(t.flags&131072)}else Nn=!1,St&&e.flags&1048576&&ZI(e,Eh,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Uf(t,e),t=e.pendingProps;var i=al(e,En.current);Ya(e,n),i=eb(null,e,r,t,i,n);var o=tb();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Vn(r)?(o=!0,wh(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Qw(e),i.updater=Vp,e.stateNode=i,i._reactInternals=e,ky(e,r,t,n),e=Dy(null,e,r,!0,o,n)):(e.tag=0,St&&o&&Bw(e),Pn(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Uf(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=p4(r),t=Ir(r,t),i){case 0:e=My(null,e,r,t,n);break e;case 1:e=D1(null,e,r,t,n);break e;case 11:e=A1(null,e,r,t,n);break e;case 14:e=M1(null,e,r,Ir(r.type,t),n);break e}throw Error(Q(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ir(r,i),My(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ir(r,i),D1(t,e,r,i,n);case 3:e:{if(AL(e),t===null)throw Error(Q(387));r=e.pendingProps,o=e.memoizedState,i=o.element,nL(t,e),Ch(e,r,null,n);var s=e.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=dl(Error(Q(423)),e),e=O1(t,e,r,n,i);break e}else if(r!==i){i=dl(Error(Q(424)),e),e=O1(t,e,r,n,i);break e}else for(Gn=_o(e.stateNode.containerInfo.firstChild),qn=e,St=!0,kr=null,n=sL(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ll(),r===i){e=$i(t,e,n);break e}Pn(t,e,r,n)}e=e.child}return e;case 5:return aL(e),t===null&&Iy(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,s=i.children,Sy(r,i)?s=null:o!==null&&Sy(r,o)&&(e.flags|=32),kL(t,e),Pn(t,e,s,n),e.child;case 6:return t===null&&Iy(e),null;case 13:return ML(t,e,n);case 4:return Yw(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ul(e,null,r,n):Pn(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ir(r,i),A1(t,e,r,i,n);case 7:return Pn(t,e,e.pendingProps,n),e.child;case 8:return Pn(t,e,e.pendingProps.children,n),e.child;case 12:return Pn(t,e,e.pendingProps.children,n),e.child;
vendor: 2,882 bytes, line 40
40case 10:e:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,s=i.value,lt(_h,r._currentValue),r._currentValue=s,o!==null)if(Vr(o.value,s)){if(o.children===i.children&&!$n.current){e=$i(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ri(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ly(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ly(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Pn(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Ya(e,n),i=br(i),r=r(i),e.flags|=1,Pn(t,e,r,n),e.child;case 14:return r=e.type,i=Ir(r,e.pendingProps),i=Ir(r.type,i),M1(t,e,r,i,n);case 15:return LL(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ir(r,i),Uf(t,e),e.tag=1,Vn(r)?(t=!0,wh(e)):t=!1,Ya(e,n),iL(e,r,i),ky(e,r,i,n),Dy(null,e,r,!0,t,n);case 19:return DL(t,e,n);case 22:return RL(t,e,n)}throw Error(Q(156,e.tag))};function YL(t,e){return _I(t,e)}function h4(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gr(t,e,n,r){return new h4(t,e,n,r)}function db(t){return t=t.prototype,!(!t||!t.isReactComponent)}function p4(t){if(typeof t=="function")return db(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Rw)return 11;if(t===kw)return 14}return 2}function To(t,e){var n=t.alternate;return n===null?(n=gr(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Wf(t,e,n,r,i,o){var s=2;if(r=t,typeof t=="function")db(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case Ta:return Ls(n.children,i,o,e);case Lw:s=8,i|=8;break;case ty:return t=gr(12,n,e,i|2),t.elementType=ty,t.lanes=o,t;
vendor: 6,257 bytes, line 40
40case ny:return t=gr(13,n,e,i),t.elementType=ny,t.lanes=o,t;case ry:return t=gr(19,n,e,i),t.elementType=ry,t.lanes=o,t;case oI:return Bp(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case rI:s=10;break e;case iI:s=9;break e;case Rw:s=11;break e;case kw:s=14;break e;case no:s=16,r=null;break e}throw Error(Q(130,t==null?t:typeof t,""))}return e=gr(s,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function Ls(t,e,n,r){return t=gr(7,t,r,e),t.lanes=n,t}function Bp(t,e,n,r){return t=gr(22,t,r,e),t.elementType=oI,t.lanes=n,t.stateNode={isHidden:!1},t}function Ug(t,e,n){return t=gr(6,t,null,e),t.lanes=n,t}function Bg(t,e,n){return e=gr(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function m4(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_g(0),this.expirationTimes=_g(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_g(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fb(t,e,n,r,i,o,s,a,l){return t=new m4(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=gr(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qw(o),t}function g4(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xa,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function XL(t){if(!t)return Fo;t=t._reactInternals;e:{if(Xs(t)!==t||t.tag!==1)throw Error(Q(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Vn(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Q(171))}if(t.tag===1){var n=t.type;if(Vn(n))return YI(t,n,e)}return e}function ZL(t,e,n,r,i,o,s,a,l){return t=fb(n,r,!0,t,i,o,s,a,l),t.context=XL(null),n=t.current,r=Ln(),i=xo(n),o=Ri(r,i),o.callback=e??null,So(n,o,i),t.current.lanes=i,Zc(t,i,r),Fn(t,r),t}function zp(t,e,n,r){var i=e.current,o=Ln(),s=xo(i);return n=XL(n),e.context===null?e.context=n:e.pendingContext=n,e=Ri(o,s),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=So(i,e,s),t!==null&&(Nr(t,i,s,o),Vf(t,i,s)),s}function Ah(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function H1(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function hb(t,e){H1(t,e),(t=t.alternate)&&H1(t,e)}function v4(){return null}var JL=typeof reportError=="function"?reportError:function(t){console.error(t)};function pb(t){this._internalRoot=t}Wp.prototype.render=pb.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Q(409));zp(t,e,null,null)};Wp.prototype.unmount=pb.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;$s(function(){zp(null,t,null,null)}),e[Oi]=null}};function Wp(t){this._internalRoot=t}Wp.prototype.unstable_scheduleHydration=function(t){if(t){var e=LI();t={blockedOn:null,target:t,priority:e};for(var n=0;n<so.length&&e!==0&&e<so[n].priority;n++);so.splice(n,0,t),n===0&&kI(t)}};function mb(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Hp(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function K1(){}function y4(t,e,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Ah(s);o.call(u)}}var s=ZL(e,r,t,0,null,!1,!1,"",K1);return t._reactRootContainer=s,t[Oi]=s.current,dc(t.nodeType===8?t.parentNode:t),$s(),s}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ah(l);a.call(u)}}var l=fb(t,0,!1,null,null,!1,!1,"",K1);return t._reactRootContainer=l,t[Oi]=l.current,dc(t.nodeType===8?t.parentNode:t),$s(function(){zp(e,l,n,r)}),l}function Kp(t,e,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Ah(s);a.call(l)}}zp(e,s,t,i)}else s=y4(n,e,t,i,r);return Ah(s)}PI=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Cu(e.pendingLanes);n!==0&&(Dw(e,n|1),Fn(e,Ot()),!(Ke&6)&&(fl=Ot()+500,Yo()))}break;case 13:$s(function(){var r=Ni(t,1);if(r!==null){var i=Ln();Nr(r,t,1,i)}}),hb(t,1)}};Ow=function(t){if(t.tag===13){var e=Ni(t,134217728);if(e!==null){var n=Ln();Nr(e,t,134217728,n)}hb(t,134217728)}};II=function(t){if(t.tag===13){var e=xo(t),n=Ni(t,e);if(n!==null){var r=Ln();Nr(n,t,e,r)}hb(t,e)}};LI=function(){return et};RI=function(t,e){var n=et;try{return et=t,e()}finally{et=n}};hy=function(t,e,n){switch(e){case"input":if(sy(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Np(r);if(!i)throw Error(Q(90));aI(r),sy(r,i)}}}break;case"textarea":uI(t,n);break;case"select":e=n.value,e!=null&&Ka(t,!!n.multiple,e,!1)}};gI=lb;vI=$s;var w4={usingClientEntryPoint:!1,Events:[ed,Ra,Np,pI,mI,lb]},iu={findFiberByHostInstance:ps,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},b4={bundleType:iu.bundleType,version:iu.version,rendererPackageName:iu.rendererPackageName,rendererConfig:iu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hi.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=bI(t),t===null?null:t.stateNode},findFiberByHostInstance:iu.findFiberByHostInstance||v4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sf.isDisabled&&sf.supportsFiber)try{Ap=sf.inject(b4),ri=sf}catch{}}nr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w4;nr.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mb(e))throw Error(Q(200));return g4(t,e,null,n)};nr.createRoot=function(t,e){if(!mb(t))throw Error(Q(299));var n=!1,r="",i=JL;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=fb(t,1,!1,null,null,n,!1,r,i),t[Oi]=e.current,dc(t.nodeType===8?t.parentNode:t),new pb(e)};nr.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Q(188)):(t=Object.keys(t).join(","),Error(Q(268,t)));return t=bI(e),t=t===null?null:t.stateNode,t};nr.flushSync=function(t){return $s(t)};nr.hydrate=function(t,e,n){if(!Hp(e))throw Error(Q(200));return Kp(null,t,e,!0,n)};nr.hydrateRoot=function(t,e,n){if(!mb(t))throw Error(Q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=JL;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),e=ZL(e,null,t,1,n??null,i,!1,o,s),t[Oi]=e.current,dc(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Wp(e)};nr.render=function(t,e,n){if(!Hp(e))throw Error(Q(200));return Kp(null,t,e,!1,n)};nr.unmountComponentAtNode=function(t){if(!Hp(t))throw Error(Q(40));return t._reactRootContainer?($s(function(){Kp(null,null,t,!1,function(){t._reactRootContainer=null,t[Oi]=null})}),!0):!1};nr.unstable_batchedUpdates=lb;nr.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Hp(n))throw Error(Q(200));if(t==null||t._reactInternals===void 0)throw Error(Q(38));return Kp(t,e,n,!1,r)};nr.version="18.2.0-next-9e3b772b8-20220608";function eR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eR)}catch(t){console.error(t)}}eR(),ZP.exports=nr;var Ki=ZP.exports;const E4=jP(Ki);var G1=Ki;Jv.createRoot=G1.createRoot,Jv.hydrateRoot=G1.hydrateRoot;const Mh={prefix:String(Math.round(Math.random()*1e10)),current:0},tR=Oe.createContext(Mh),_4=Oe.createContext(!1);let S4=!!(typeof window<"u"&&window.document&&window.document.createElement),zg=new WeakMap;function C4(t=!1){let e=f.useContext(tR),n=f.useRef(null);if(n.current===null&&!t){var r,i;let o=(r=Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(i=r.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let s=zg.get(o);s==null?zg.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==s.state&&(e.current=s.id,zg.delete(o))}n.current=++e.current}return n.current}function x4(t){let e=f.useContext(tR);e===Mh&&!S4&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=C4(!!t),r=`react-aria${e.prefix}`;return t||`${r}-${n}`}function T4(t){let e=Oe.useId(),[n]=f.useState(gb()),r=n?"react-aria":`react-aria${Mh.prefix}`;return t||`${r}-${e}`}const P4=typeof Oe.useId=="function"?T4:x4;function I4(){return!1}function L4(){return!0}function R4(t){return()=>{}}function gb(){return typeof Oe.useSyncExternalStore=="function"?Oe.useSyncExternalStore(R4,I4,L4):f.useContext(_4)}function k4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function A4(t,e,n){k4(t,e),e.set(t,n)}function vb(t,e,n){let[r,i]=f.useState(t||e),o=f.useRef(t!==void 0),s=t!==void 0;f.useEffect(()=>{let u=o.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?t:r,l=f.useCallback((u,...c)=>{let d=(h,...p)=>{n&&(Object.is(a,h)||n(h,...p)),s||(a=h)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...m)=>{let g=u(s?a:p,...m);return d(g,...c),s?p:g})):(s||i(u),d(u,...c))},[s,a,n]);return[a,l]}function nR(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=nR(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function M4(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=nR(t))&&(r&&(r+=" "),r+=e);return r}const Rn=typeof document<"u"?Oe.useLayoutEffect:()=>{};function _i(t){const e=f.useRef(null);return Rn(()=>{e.current=t},[t]),f.useCallback((...n)=>{const r=e.current;return r(...n)},[])}function D4(t){let[e,n]=f.useState(t),r=f.useRef(null),i=_i(()=>{let s=r.current.next();if(s.done){r.current=null;return}e===s.value?i():n(s.value)});Rn(()=>{r.current&&i()});let o=_i(s=>{r.current=s(e),i()});return[e,o]}let Dh=new Map;function Oh(t){let[e,n]=f.useState(t),r=f.useRef(null),i=P4(e),o=f.useCallback(s=>{r.current=s},[]);return Dh.set(i,o),Rn(()=>{let s=i;return()=>{Dh.delete(s)}},[i]),f.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function O4(t,e){if(t===e)return t;let n=Dh.get(t);if(n)return n(e),e;let r=Dh.get(e);return r?(r(t),t):e}function q1(t=[]){let e=Oh(),[n,r]=D4(e),i=f.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return Rn(i,[e,i,...t]),n}
40function nd(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}function Yt(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=nd(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?e[i]=M4(o,s):i==="id"&&o&&s?e.id=O4(o,s):e[i]=s!==void 0?s:o}}return e}const N4=new Set(["id"]),$4=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),V4=new Set(["href","target","rel","download","ping","referrerPolicy"]),F4=/^(data-.*)$/;function rR(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(N4.has(s)||n&&$4.has(s)||r&&V4.has(s)||i!=null&&i.has(s)||F4.test(s))&&(o[s]=t[s]);return o}function vs(t){if(j4())t.focus({preventScroll:!0});else{let e=U4(t);t.focus(),B4(e)}}let af=null;function j4(){if(af==null){af=!1;try{var t=document.createElement("div");t.focus({get preventScroll(){return af=!0,!0}})}catch{}}return af}function U4(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function B4(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Gp(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function yb(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function bc(){return yb(/^Mac/i)}function z4(){return yb(/^iPhone/i)}function iR(){return yb(/^iPad/i)||bc()&&navigator.maxTouchPoints>1}function oR(){return z4()||iR()}function W4(){return Gp(/AppleWebKit/i)&&!H4()}function H4(){return Gp(/Chrome/i)}function sR(){return Gp(/Android/i)}function K4(){return Gp(/Firefox/i)}function Ec(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=e;K4()&&(!((r=window.event)===null||r===void 0||(i=r.type)===null||i===void 0)&&i.startsWith("key"))&&t.target==="_blank"&&(bc()?o=!0:s=!0);let u=W4()&&bc()&&!iR()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});Ec.isOpening=n,vs(t),t.dispatchEvent(u),Ec.isOpening=!1}Ec.isOpening=!1;let ya=new Map,Ky=new Set;function Q1(){if(typeof window>"u")return;let t=n=>{let r=ya.get(n.target);r||(r=new Set,ya.set(n.target,r),n.target.addEventListener("transitioncancel",e)),r.add(n.propertyName)},e=n=>{let r=ya.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",e),ya.delete(n.target)),ya.size===0)){for(let i of Ky)i();Ky.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?Q1():document.addEventListener("DOMContentLoaded",Q1));function aR(t){requestAnimationFrame(()=>{ya.size===0?t():Ky.add(t)})}function G4(){let t=f.useRef(new Map),e=f.useCallback((i,o,s,a)=>{let l=a!=null&&a.once?(...u)=>{t.current.delete(s),s(...u)}:s;t.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,s,a)},[]),n=f.useCallback((i,o,s,a)=>{var l;let u=((l=t.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),t.current.delete(s)},[]),r=f.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return f.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function q4(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Oh(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function Q4(){return typeof window.ResizeObserver<"u"}function Y4(t){const{ref:e,onResize:n}=t;f.useEffect(()=>{let r=e==null?void 0:e.current;if(r)if(Q4()){const i=new window.ResizeObserver(o=>{o.length&&n()});return i.observe(r),()=>{r&&i.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e])}function lR(t,e){Rn(()=>
40{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref.current=null}})}function Gy(t){return t.mozInputSource===0&&t.isTrusted?!0:sR()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function X4(t){return!sR()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Z4(t,e,n){let r=f.useRef(e),i=_i(()=>{n&&n(r.current)});f.useEffect(()=>{var o;let s=t==null||(o=t.current)===null||o===void 0?void 0:o.form;return s==null||s.addEventListener("reset",i),()=>{s==null||s.removeEventListener("reset",i)}},[t,i])}const J4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),eF=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function uR(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize().script;return J4.has(n)}let e=t.split("-")[0];return eF.has(e)}function cR(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:uR(t)?"rtl":"ltr"}}let qy=cR(),Tu=new Set;function Y1(){qy=cR();for(let t of Tu)t(qy)}function tF(){let t=gb(),[e,n]=f.useState(qy);return f.useEffect(()=>(Tu.size===0&&window.addEventListener("languagechange",Y1),Tu.add(n),()=>{Tu.delete(n),Tu.size===0&&window.removeEventListener("languagechange",Y1)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const nF=Oe.createContext(null);function rF(t){let{locale:e,children:n}=t,r=tF(),i=e?{locale:e,direction:uR(e)?"rtl":"ltr"}:r;return Oe.createElement(nF.Provider,{value:i},n)}var Zr=function(){return Zr=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zr.apply(this,arguments)};function rd(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function iF(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function oF(t,e){return e.get?e.get.call(t):e.value}function dR(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function sF(t,e){var n=dR(t,e,"get");return oF(t,n)}function aF(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function X1(t,e,n){var r=dR(t,e,"set");return aF(t,r,n),n}let $a="default",Qy="",Hf=new WeakMap;function Z1(t){oR()?($a==="default"&&(Qy=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),$a="disabled"):(t instanceof HTMLElement||t instanceof SVGElement)&&(Hf.set(t,t.style.userSelect),t.style.userSelect="none")}function lf(t){if(oR()){if($a!=="disabled")return;$a="restoring",setTimeout(()=>{aR(()=>{$a==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Qy||""),Qy="",$a="default")})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Hf.has(t)){let e=Hf.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Hf.delete(t)}}const wb=Oe.createContext(null);wb.displayName="PressResponderContext";function lF(t){let e=f.useContext(wb);if(e){let{register:n,...r}=e;t=Yt(r,t),n()}return lR(e,t.ref),t}var uf=new WeakMap;class cf{continuePropagation(){X1(this,uf,!1)}get shouldStopPropagation(){return sF(this,uf)}constructor(e,n,r){A4(this,uf,{writable:!0,value:void 0}),X1(this,uf,!0),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const J1=Symbol("linkClicked");function fR(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=lF(t),[p,m]=f.useState(!1),g=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:w}=G4(),v=_i((_,k)=>{let L=g.current;if(s||L.didFirePressStart)return;let I=!0;if(L.isTriggeringEvent=!0,r){let M=new cf("pressstart",k,_);r(M),I=M.shouldStopPropagation}return n&&n(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,m(!0),I}),y=_i((_,k,L=!0)=>{let I=g.current;if(!I.didFirePressStart)return;I.ignoreClickAfterPress=!0,I.didFirePressStart=!1,I.isTriggeringEvent=!0;let M=!0;if(i){let R=new cf("pressend",k,_);i(R),M=R.shouldStopPropagation}if(n&&n(!1),m(!1),e&&L&&!s){let R=new cf("press",k,_);e(R),M&&(M=R.shouldStopPropagation)}return I.isTriggeringEvent=!1,M}),E=_i((_,k)=>{let L=g.current;
40if(!s){if(o){L.isTriggeringEvent=!0;let I=new cf("pressup",k,_);return o(I),L.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}}),C=_i(_=>{let k=g.current;k.isPressed&&(k.isOverTarget&&y(yi(k.target,_),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,w(),c||lf(k.target))}),S=_i(_=>{u&&C(_)}),P=f.useMemo(()=>{let _=g.current,k={onKeyDown(I){if(Wg(I.nativeEvent,I.currentTarget)&&I.currentTarget.contains(I.target)){tS(I.target,I.key)&&I.preventDefault();let M=!0;!_.isPressed&&!I.repeat&&(_.target=I.currentTarget,_.isPressed=!0,M=v(I,"keyboard"),b(document,"keyup",L,!1)),M&&I.stopPropagation(),I.metaKey&&bc()&&_.metaKeyEvents.set(I.key,I.nativeEvent)}else I.key==="Meta"&&(_.metaKeyEvents=new Map)},onKeyUp(I){Wg(I.nativeEvent,I.currentTarget)&&!I.repeat&&I.currentTarget.contains(I.target)&&E(yi(_.target,I),"keyboard")},onClick(I){if(!(I&&!I.currentTarget.contains(I.target))&&I&&I.button===0&&!_.isTriggeringEvent&&!Ec.isOpening){let M=!0;if(s&&I.preventDefault(),!_.ignoreClickAfterPress&&!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||Gy(I.nativeEvent))){!s&&!l&&vs(I.currentTarget);let R=v(I,"virtual"),A=E(I,"virtual"),O=y(I,"virtual");M=R&&A&&O}_.ignoreEmulatedMouseEvents=!1,_.ignoreClickAfterPress=!1,M&&I.stopPropagation()}}},L=I=>{var M;if(_.isPressed&&Wg(I,_.target)){var R;tS(I.target,I.key)&&I.preventDefault();let A=I.target,O=y(yi(_.target,I),"keyboard",_.target.contains(A));w(),O&&I.stopPropagation(),I.key!=="Enter"&&bb(_.target)&&_.target.contains(A)&&!I[J1]&&(I[J1]=!0,Ec(_.target,I,!1)),_.isPressed=!1,(R=_.metaKeyEvents)===null||R===void 0||R.delete(I.key)}else if(I.key==="Meta"&&(!((M=_.metaKeyEvents)===null||M===void 0)&&M.size)){let A=_.metaKeyEvents;_.metaKeyEvents=null;for(let O of A.values())_.target.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){k.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(X4(A.nativeEvent)){_.pointerType="virtual";return}Hg(A.currentTarget)&&A.preventDefault(),_.pointerType=A.pointerType;let O=!0;_.isPressed||(_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=A.pointerId,_.target=A.currentTarget,!s&&!l&&vs(A.currentTarget),c||Z1(_.target),O=v(A,_.pointerType),b(document,"pointermove",I,!1),b(document,"pointerup",M,!1),b(document,"pointercancel",R,!1)),O&&A.stopPropagation()},k.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(Hg(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},k.onPointerUp=A=>{!A.currentTarget.contains(A.target)||_.pointerType==="virtual"||A.button===0&&ha(A,A.currentTarget)&&E(A,_.pointerType||A.pointerType)};let I=A=>{A.pointerId===_.activePointerId&&(ha(A,_.target)?_.isOverTarget||(_.isOverTarget=!0,v(yi(_.target,A),_.pointerType)):_.isOverTarget&&(_.isOverTarget=!1,y(yi(_.target,A),_.pointerType,!1),S(A)))},M=A=>{A.pointerId===_.activePointerId&&_.isPressed&&A.button===0&&(ha(A,_.target)?y(yi(_.target,A),_.pointerType):_.isOverTarget&&y(yi(_.target,A),_.pointerType,!1),_.isPressed=!1,_.isOverTarget=!1,_.activePointerId=null,_.pointerType=null,w(),c||lf(_.target))},R=A=>{C(A)};k.onDragStart=A=>{A.currentTarget.contains(A.target)&&C(A)}}else{k.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Hg(R.currentTarget)&&R.preventDefault(),_.ignoreEmulatedMouseEvents){R.stopPropagation();return}_.isPressed=!0,_.isOverTarget=!0,_.target=R.currentTarget,_.pointerType=Gy(R.nativeEvent)?"virtual":"mouse",!s&&!l&&vs(R.currentTarget),v(R,_.pointerType)&&R.stopPropagation(),b(document,"mouseup",I,!1)},k.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let A=!0;_.isPressed&&!_.ignoreEmulatedMouseEvents&&(_.isOverTarget=!0,A=v(R,_.pointerType)),A&&R.stopPropagation()},k.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let A=!0;_.isPressed&&!_.ignoreEmulatedMouseEvents&&(_.isOverTarget=!1,A=y(R,_.pointerType,!1),S(R)),A&&R.stopPropagation()},k.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!_.ignoreEmulatedMouseEvents&&R.button===0&&E(R,_.pointerType||"mouse")};let I=R=>{if(R.button===0){if(_.isPressed=!1,w(),_.ignoreEmulatedMouseEvents){_.ignoreEmulatedMouseEvents=!1;return}ha(R,_.target)?y(yi(_.target,R),_.pointerType):_.isOverTarget&&y(yi(_.target,R),_.pointerType,!1),_.isOverTarget=!1}};k.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let A=uF(R.nativeEvent);if(!A)return;_.activePointerId=A.identifier,_.ignoreEmulatedMouseEvents=!0,_.isOverTarget=!0,_.isPressed=!0,_.target=R.currentTarget,_.pointerType="touch",!s&&!l&&vs(R.currentTarget),c||Z1(_.target),v(R,_.pointerType)&&R.stopPropagation(),b(window,"scroll",M,!0)},k.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!_.isPressed){R.stopPropagation();return}let A=eS(R.nativeEvent,_.activePointerId),O=!0;A&&ha(A,R.currentTarget)?_.isOverTarget||(_.isOverTarget=!0,O=v(R,_.pointerType)):_.isOverTarget&&(_.isOverTarget=!1,O=y(R,_.pointerType,!1),S(R)),O&&R.stopPropagation()},k.onTouchEnd=R=>
40{if(!R.currentTarget.contains(R.target))return;if(!_.isPressed){R.stopPropagation();return}let A=eS(R.nativeEvent,_.activePointerId),O=!0;A&&ha(A,R.currentTarget)?(E(R,_.pointerType),O=y(R,_.pointerType)):_.isOverTarget&&(O=y(R,_.pointerType,!1)),O&&R.stopPropagation(),_.isPressed=!1,_.activePointerId=null,_.isOverTarget=!1,_.ignoreEmulatedMouseEvents=!0,c||lf(_.target),w()},k.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),_.isPressed&&C(R))};let M=R=>{_.isPressed&&R.target.contains(_.target)&&C({currentTarget:_.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};k.onDragStart=R=>{R.currentTarget.contains(R.target)&&C(R)}}return k},[b,s,l,w,c,C,S,y,v,E]);return f.useEffect(()=>()=>{c||lf(g.current.target)},[c]),{isPressed:a||p,pressProps:Yt(h,P)}}function bb(t){return t.tagName==="A"&&t.hasAttribute("href")}function Wg(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof HTMLInputElement&&!hR(i,n)||i instanceof HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&bb(i))&&n!=="Enter")}function uF(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function eS(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function yi(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function cF(t){let e=t.width/2||t.radiusX||0,n=t.height/2||t.radiusY||0;return{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function dF(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function ha(t,e){let n=e.getBoundingClientRect(),r=cF(t);return dF(n,r)}function Hg(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function tS(t,e){return t instanceof HTMLInputElement?!hR(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!bb(t)}const fF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hR(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":fF.has(t.type)}function hF({children:t}){return Oe.createElement(wb.Provider,{value:void 0},t)}class pF{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function pR(t){let e=f.useRef({isFocused:!1,observer:null});Rn(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=_i(r=>{t==null||t(r)});return f.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=s=>{e.current.isFocused=!1,i.disabled&&n(new pF("blur",s)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){e.current.observer.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function mR(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=f.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=pR(o),a=f.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}let kl=null,Yy=new Set,nS=!1,Vs=!1,Xy=!1;const mF={Tab:!0,Escape:!0};function Eb(t,e){for(let n of Yy)n(t,e)}function gF(t){return!(t.metaKey||!bc()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function rS(t){Vs=!0,gF(t)&&(kl="keyboard",Eb("keyboard",t))}function pa(t){kl="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Vs=!0,Eb("pointer",t))}function vF(t){Gy(t)&&(Vs=!0,kl="virtual")}function yF(t){t.target===window||t.target===document||(!Vs&&!Xy&&(kl="virtual",Eb("virtual",t)),Vs=!1,Xy=!1)}function wF(){Vs=!1,Xy=!0}function Zy(){if(typeof window>"u"||nS)return;
40let t=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Vs=!0,t.apply(this,arguments)},document.addEventListener("keydown",rS,!0),document.addEventListener("keyup",rS,!0),document.addEventListener("click",vF,!0),window.addEventListener("focus",yF,!0),window.addEventListener("blur",wF,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",pa,!0),document.addEventListener("pointermove",pa,!0),document.addEventListener("pointerup",pa,!0)):(document.addEventListener("mousedown",pa,!0),document.addEventListener("mousemove",pa,!0),document.addEventListener("mouseup",pa,!0)),nS=!0}typeof document<"u"&&(document.readyState!=="loading"?Zy():document.addEventListener("DOMContentLoaded",Zy));function gR(){return kl!=="pointer"}function bF(){return kl}function EF(t,e,n){return!(t&&e==="keyboard"&&n instanceof KeyboardEvent&&!mF[n.key])}function _F(t,e,n){Zy(),f.useEffect(()=>{let r=(i,o)=>{EF(n==null?void 0:n.isTextInput,i,o)&&t(gR())};return Yy.add(r),()=>{Yy.delete(r)}},e)}function vR(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=f.useRef({isFocusWithin:!1}),s=f.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=pR(s),l=f.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Nh=!1,Kg=0;function Jy(){Nh=!0,setTimeout(()=>{Nh=!1},50)}function iS(t){t.pointerType==="touch"&&Jy()}function SF(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",iS):document.addEventListener("touchend",Jy),Kg++,()=>{Kg--,!(Kg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",iS):document.removeEventListener("touchend",Jy))}}function qp(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,s]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(SF,[]);let{hoverProps:l,triggerHoverEnd:u}=f.useMemo(()=>{let c=(p,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let g=p.currentTarget;a.target=g,e&&e({type:"hoverstart",target:g,pointerType:m}),n&&n(!0),s(!0)},d=(p,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let g=p.currentTarget;r&&r({type:"hoverend",target:g,pointerType:m}),n&&n(!1),s(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=p=>{Nh&&p.pointerType==="mouse"||c(p,p.pointerType)},h.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(h.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!Nh&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:h,triggerHoverEnd:d}},[e,n,r,i,a]);return f.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function oS(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){e=!1}};t(r),e&&n.stopPropagation()}}function CF(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:oS(t.onKeyDown),onKeyUp:oS(t.onKeyUp)}}}function yR(t){if(bF()==="virtual"){let e=document.activeElement;aR(()=>{document.activeElement===e&&document.contains(t)&&vs(t)})}else vs(t)}function xF(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return!1;let{display:e,visibility:n}=t.style,r=e!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:i}=t.ownerDocument.defaultView;let{display:o,visibility:s}=i(t);r=o!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function TF(t,e){return!t.hasAttribute("hidden")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function wR(t,e){return t.nodeName!=="#comment"&&xF(t)&&TF(t,e)&&(!t.parentElement||wR(t.parentElement,t))}const sS=Oe.createContext(null);let _t=null;
40function PF(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=f.useRef(),s=f.useRef(),a=f.useRef([]),{parentNode:l}=f.useContext(sS)||{},u=f.useMemo(()=>new t0({scopeRef:a}),[a]);Rn(()=>{let h=l||Dt.root;if(Dt.getTreeNode(h.scopeRef)&&_t&&!$h(_t,h.scopeRef)){let p=Dt.getTreeNode(_t);p&&(h=p)}h.addChild(u),Dt.addNode(u)},[u,l]),Rn(()=>{let h=Dt.getTreeNode(a);h.contain=n},[n]),Rn(()=>{let h=o.current.nextSibling,p=[];for(;h&&h!==s.current;)p.push(h),h=h.nextSibling;a.current=p},[e]),MF(a,r,n),kF(a,n),OF(a,r,n),AF(a,i),f.useEffect(()=>{if(a){let h=document.activeElement,p=null;if(yn(h,a.current)){for(let m of Dt.traverse())yn(h,m.scopeRef.current)&&(p=m);p===Dt.getTreeNode(a)&&(_t=p.scopeRef)}return()=>{let m=Dt.getTreeNode(a).parent.scopeRef;(a===_t||$h(a,_t))&&(!m||Dt.getTreeNode(m))&&(_t=m),Dt.removeTreeNode(a)}}},[a]);let c=f.useMemo(()=>IF(a),[]),d=f.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return Oe.createElement(sS.Provider,{value:d},Oe.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,Oe.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function IF(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:s}=e,a=r||document.activeElement,l=n[0].previousElementSibling,u=vo(ys(n),{tabbable:i,accept:s},n);u.currentNode=yn(a,n)?a:l;let c=u.nextNode();return!c&&o&&(u.currentNode=l,c=u.nextNode()),c&&xi(c,!0),c},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:s}=e,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,u=vo(ys(n),{tabbable:i,accept:s},n);u.currentNode=yn(a,n)?a:l;let c=u.previousNode();return!c&&o&&(u.currentNode=l,c=u.previousNode()),c&&xi(c,!0),c},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=vo(ys(n),{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let s=o.nextNode();return s&&xi(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=vo(ys(n),{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let s=o.previousNode();return s&&xi(s,!0),s}}}const _b=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],LF=_b.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";_b.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const RF=_b.join(':not([hidden]):not([tabindex="-1"]),');function ys(t){return t[0].parentElement}function Pu(t){let e=Dt.getTreeNode(_t);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function kF(t,e){let n=f.useRef(),r=f.useRef(null);Rn(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=null);return}let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Pu(t))return;let u=document.activeElement,c=t.current;if(!yn(u,c))return;let d=vo(ys(c),{tabbable:!0},c);d.currentNode=u;let h=l.shiftKey?d.previousNode():d.nextNode();h||(d.currentNode=l.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,h=l.shiftKey?d.previousNode():d.nextNode()),l.preventDefault(),h&&xi(h,!0)},s=l=>{(!_t||$h(_t,t))&&yn(l.target,t.current)?(_t=t,n.current=l.target):Pu(t)&&!e0(l.target,t)?n.current?n.current.focus():_t&&Vh(_t.current):Pu(t)&&(n.current=l.target)},a=l=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{Pu(t)&&!e0(document.activeElement,t)&&(_t=t,document.body.contains(l.target)?(n.current=l.target,n.current.focus()):_t&&Vh(_t.current))})};return document.addEventListener("keydown",o,!1),document.addEventListener("focusin",s,!1),i.forEach(l=>
40l.addEventListener("focusin",s,!1)),i.forEach(l=>l.addEventListener("focusout",a,!1)),()=>{document.removeEventListener("keydown",o,!1),document.removeEventListener("focusin",s,!1),i.forEach(l=>l.removeEventListener("focusin",s,!1)),i.forEach(l=>l.removeEventListener("focusout",a,!1))}},[t,e]),Rn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function bR(t){return e0(t)}function yn(t,e){return e.some(n=>n.contains(t))}function e0(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Dt.traverse(Dt.getTreeNode(e)))if(yn(t,n.current))return!0;return!1}function $h(t,e){var n;let r=(n=Dt.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function xi(t,e=!1){if(t!=null&&!e)try{yR(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Vh(t,e=!0){let n=t[0].previousElementSibling,r=vo(ys(t),{tabbable:e},t);r.currentNode=n;let i=r.nextNode();e&&!i&&(r=vo(ys(t),{tabbable:!1},t),r.currentNode=n,i=r.nextNode()),xi(i)}function AF(t,e){const n=Oe.useRef(e);f.useEffect(()=>{n.current&&(_t=t,yn(document.activeElement,_t.current)||Vh(t.current)),n.current=!1},[t])}function MF(t,e,n){Rn(()=>
40{if(e||n)return;let r=t.current,i=o=>{let s=o.target;yn(s,t.current)?_t=t:bR(s)||(_t=null)};return document.addEventListener("focusin",i,!1),r.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),r.forEach(o=>o.removeEventListener("focusin",i,!1))}},[t,e,n])}function DF(t){let e=Dt.getTreeNode(_t);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function OF(t,e,n){const r=f.useRef(typeof document<"u"?document.activeElement:null);Rn(()=>{let i=t.current;if(!e||n)return;let o=()=>{(!_t||$h(_t,t))&&yn(document.activeElement,t.current)&&(_t=t)};return document.addEventListener("focusin",o,!1),i.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{document.removeEventListener("focusin",o,!1),i.forEach(s=>s.removeEventListener("focusin",o,!1))}},[t,n]),Rn(()=>{if(!e)return;let i=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!Pu(t))return;let s=document.activeElement;if(!yn(s,t.current))return;let a=Dt.getTreeNode(t).nodeToRestore,l=vo(document.body,{tabbable:!0});l.currentNode=s;let u=o.shiftKey?l.previousNode():l.nextNode();if((!document.body.contains(a)||a===document.body)&&(a=null,Dt.getTreeNode(t).nodeToRestore=null),(!u||!yn(u,t.current))&&a){l.currentNode=a;do u=o.shiftKey?l.previousNode():l.nextNode();while(yn(u,t.current));o.preventDefault(),o.stopPropagation(),u?xi(u,!0):bR(a)?xi(a,!0):s.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0)}},[t,e,n]),Rn(()=>{if(e)return Dt.getTreeNode(t).nodeToRestore=r.current,()=>{let i=Dt.getTreeNode(t).nodeToRestore;if(e&&i&&(yn(document.activeElement,t.current)||document.activeElement===document.body&&DF(t))){let o=Dt.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let s=o.getTreeNode(t);for(;s;){if(s.nodeToRestore&&document.body.contains(s.nodeToRestore)){xi(s.nodeToRestore);return}s=s.parent}for(s=o.getTreeNode(t);s;){if(s.scopeRef&&Dt.getTreeNode(s.scopeRef)){Vh(s.scopeRef.current,!0);return}s=s.parent}}})}}},[t,e])}function vo(t,e,n){let r=e!=null&&e.tabbable?RF:LF,i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&wR(o)&&(!n||yn(o,n))&&(!(e!=null&&e.accept)||e.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}class Sb{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null),o=new t0({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e),r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef.current&&yn(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r.removeChild(n),i.size>0&&i.forEach(o=>r.addChild(o)),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){let e=new Sb;for(let n of this.traverse())e.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new t0({scopeRef:null}),this.fastMap.set(null,this.root)}}class t0{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let Dt=new Sb;function _c(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=f.useRef({isFocused:!1,isFocusVisible:e||gR()}),[o,s]=f.useState(!1),[a,l]=f.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=f.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=f.useCallback(p=>{i.current.isFocused=p,s(p),u()},[u]);_F(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:d}=mR({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=vR({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:a,focusProps:r?h:d}}let NF=Oe.createContext(null);function $F(t){let e=f.useContext(NF)||{};lR(e,t);let{ref:n,...r}=e;return r}function ER(t,e){let{focusProps:n}=mR(t),{keyboardProps:r}=CF(t),i=Yt(n,r),o=$F(e),s=t.isDisabled?{}:o,a=f.useRef(t.autoFocus);return f.useEffect(()=>{a.current&&e.current&&yR(e.current),a.current=!1},[e]),{focusableProps:Yt({...i,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},s)}}const n0=Oe.createContext(null);function VF(t){let{children:e}
40=t,n=f.useContext(n0),[r,i]=f.useState(0),o=f.useMemo(()=>({parent:n,modalCount:r,addModal(){i(s=>s+1),n&&n.addModal()},removeModal(){i(s=>s-1),n&&n.removeModal()}}),[n,r]);return Oe.createElement(n0.Provider,{value:o},e)}function FF(){let t=f.useContext(n0);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:null}}}function jF(t){let{modalProviderProps:e}=FF();return Oe.createElement("div",{"data-overlay-container":!0,...t,...e})}function UF(t){return Oe.createElement(VF,null,Oe.createElement(jF,t))}const BF=Oe.createContext(null);function zF(t){let e=gb(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=f.useState(!1),s=f.useMemo(()=>({contain:i,setContain:o}),[i,o]);if(!n)return null;let a=t.children;return t.disableFocusManagement||(a=Oe.createElement(PF,{restoreFocus:!0,contain:i&&!r},a)),a=Oe.createElement(BF.Provider,{value:s},Oe.createElement(hF,null,a)),E4.createPortal(a,n)}var WF=({children:t,locale:e="en-US",...n})=>T.jsx(rF,{locale:e,children:T.jsx(UF,{...n,children:t})});function Cn(t){return f.forwardRef(t)}var id=(t,e,n=!0)=>{if(!e)return[t,{}];const r=e.reduce((i,o)=>o in t?{...i,[o]:t[o]}:i,{});return n?[Object.keys(t).filter(o=>!e.includes(o)).reduce((o,s)=>({...o,[s]:t[s]}),{}),r]:[t,r]},aS=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,xn=t=>!t||typeof t!="object"||Object.keys(t).length===0,HF=(t,e)=>JSON.stringify(t)===JSON.stringify(e);function _R(t,e){t.forEach(function(n){Array.isArray(n)?_R(n,e):e.push(n)})}function SR(t){let e=[];return _R(t,e),e}var KF=(...t)=>SR(t).filter(Boolean),CR=(t,e)=>{let n={},r=Object.keys(t),i=Object.keys(e);for(let o of r)if(i.includes(o)){let s=t[o],a=e[o];typeof s=="object"&&typeof a=="object"?n[o]=CR(s,a):n[o]=a+" "+s}else n[o]=t[o];for(let o of i)r.includes(o)||(n[o]=e[o]);return n},lS=t=>!t||typeof t!="string"?t:t.replace(/\s+/g," ").trim();function GF(){for(var t=0,e,n,r="";t<arguments.length;)(e=arguments[t++])&&(n=xR(e))&&(r&&(r+=" "),r+=n);return r}function xR(t){if(typeof t=="string")return t;for(var e,n="",r=0;r<t.length;r++)t[r]&&(e=xR(t[r]))&&(n&&(n+=" "),n+=e);return n}var Cb="-";function qF(t){var e=YF(t),n=t.conflictingClassGroups,r=t.conflictingClassGroupModifiers,i=r===void 0?{}:r;function o(a){var l=a.split(Cb);return l[0]===""&&l.length!==1&&l.shift(),TR(l,e)||QF(a)}function s(a,l){var u=n[a]||[];return l&&i[a]?[].concat(u,i[a]):u}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function TR(t,e){var s;if(t.length===0)return e.classGroupId;var n=t[0],r=e.nextPart.get(n),i=r?TR(t.slice(1),r):void 0;if(i)return i;if(e.validators.length!==0){var o=t.join(Cb);return(s=e.validators.find(function(a){var l=a.validator;return l(o)}))==null?void 0:s.classGroupId}}var uS=/^\[(.+)\]$/;function QF(t){if(uS.test(t)){var e=uS.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function YF(t){var e=t.theme,n=t.prefix,r={nextPart:new Map,validators:[]},i=ZF(Object.entries(t.classGroups),n);return i.forEach(function(o){var s=o[0],a=o[1];r0(a,r,s,e)}),r}function r0(t,e,n,r){t.forEach(function(i){if(typeof i=="string"){var o=i===""?e:cS(e,i);o.classGroupId=n;return}if(typeof i=="function"){if(XF(i)){r0(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(function(s){var a=s[0],l=s[1];r0(l,cS(e,a),n,r)})})}function cS(t,e){var n=t;return e.split(Cb).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function XF(t){return t.isThemeGetter}function ZF(t,e){return e?t.map(function(n){var r=n[0],i=n[1],o=i.map(function(s){return typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(a){var l=a[0],u=a[1];return[e+l,u]})):s});return[r,o]}):t}function JF(t){if(t<1)return{get:function(){},set:function(){}};var e=0,n=new Map,r=new Map;function i(o,s){n.set(o,s),e++,e>t&&(e=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):i(s,a)}}}var PR="!";function ej(t){var e=t.separator||":",n=e.length===1,r=e[0],i=e.length;return function(s){for(var a=[],l=0,u=0,c,d=0;d<s.length;d++){var h=s[d];if(l===0){if(h===r&&(n||s.slice(d,d+i)===e)){a.push(s.slice(u,d)),u=d+i;continue}if(h==="/"){c=d;continue}}h==="["?l++:h==="]"&&l--}var p=a.length===0?s:s.substring(u),m=p.startsWith(PR),g=m?p.substring(1):p,b=c&&c>
40u?c-u:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}}}function tj(t){if(t.length<=1)return t;var e=[],n=[];return t.forEach(function(r){var i=r[0]==="[";i?(e.push.apply(e,n.sort().concat([r])),n=[]):n.push(r)}),e.push.apply(e,n.sort()),e}function nj(t){return{cache:JF(t.cacheSize),splitModifiers:ej(t),...qF(t)}}var rj=/\s+/;function ij(t,e){var n=e.splitModifiers,r=e.getClassGroupId,i=e.getConflictingClassGroupIds,o=new Set;return t.trim().split(rj).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,h=r(d?c.substring(0,d):c),p=!!d;if(!h){if(!d)return{isTailwindClass:!1,originalClassName:s};if(h=r(c),!h)return{isTailwindClass:!1,originalClassName:s};p=!1}var m=tj(l).join(":"),g=u?m+PR:m;return{isTailwindClass:!0,modifierId:g,classGroupId:h,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return o.has(c)?!1:(o.add(c),i(l,u).forEach(function(d){return o.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function i0(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i,o,s=a;function a(u){var c=e[0],d=e.slice(1),h=d.reduce(function(p,m){return m(p)},c());return r=nj(h),i=r.cache.get,o=r.cache.set,s=l,l(u)}function l(u){var c=i(u);if(c)return c;var d=ij(u,r);return o(u,d),d}return function(){return s(GF.apply(null,arguments))}}function dt(t){var e=function(r){return r[t]||[]};return e.isThemeGetter=!0,e}var IR=/^\[(?:([a-z-]+):)?(.+)\]$/i,oj=/^\d+\/\d+$/,sj=new Set(["px","full","screen"]),aj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,uj=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Pr(t){return ws(t)||sj.has(t)||oj.test(t)||o0(t)}function o0(t){return Zs(t,"length",mj)}function cj(t){return Zs(t,"size",LR)}function dj(t){return Zs(t,"position",LR)}function fj(t){return Zs(t,"url",gj)}function df(t){return Zs(t,"number",ws)}function ws(t){return!Number.isNaN(Number(t))}function hj(t){return t.endsWith("%")&&ws(t.slice(0,-1))}function ou(t){return dS(t)||Zs(t,"number",dS)}function Ve(t){return IR.test(t)}function su(){return!0}function Xi(t){return aj.test(t)}function pj(t){return Zs(t,"",vj)}function Zs(t,e,n){var r=IR.exec(t);return r?r[1]?r[1]===e:n(r[2]):!1}function mj(t){return lj.test(t)}function LR(){return!1}function gj(t){return t.startsWith("url(")}function dS(t){return Number.isInteger(Number(t))}function vj(t){return uj.test(t)}function s0(){var t=dt("colors"),e=dt("spacing"),n=dt("blur"),r=dt("brightness"),i=dt("borderColor"),o=dt("borderRadius"),s=dt("borderSpacing"),a=dt("borderWidth"),l=dt("contrast"),u=dt("grayscale"),c=dt("hueRotate"),d=dt("invert"),h=dt("gap"),p=dt("gradientColorStops"),m=dt("gradientColorStopPositions"),g=dt("inset"),b=dt("margin"),w=dt("opacity"),v=dt("padding"),y=dt("saturate"),E=dt("scale"),C=dt("sepia"),S=dt("skew"),P=dt("space"),_=dt("translate"),k=function(){return["auto","contain","none"]},L=function(){return["auto","hidden","clip","visible","scroll"]},I=function(){return["auto",Ve,e]},M=function(){return[Ve,e]},R=function(){return["",Pr]},A=function(){return["auto",ws,Ve]},O=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},j=function(){return["solid","dashed","dotted","double","none"]},U=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},D=function(){return["start","end","center","between","around","evenly","stretch"]},B=function(){return["","0",Ve]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},x=function(){return[ws,df]},$=function(){return[ws,Ve]};return{cacheSize:500,theme:{colors:[su],spacing:[Pr],blur:["none","",Xi,Ve],brightness:x(),borderColor:[t],borderRadius:["n
40one","","full",Xi,Ve],borderSpacing:M(),borderWidth:R(),contrast:x(),grayscale:B(),hueRotate:$(),invert:B(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[hj,o0],inset:I(),margin:I(),opacity:x(),padding:M(),saturate:x(),scale:x(),sepia:B(),skew:$(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Ve]}],container:["container"],columns:[{columns:[Xi]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(O(),[Ve])}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ou]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ve]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ou]}],"grid-cols":[{"grid-cols":[su]}],"col-start-end":[{col:["auto",{span:["full",ou]},Ve]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[su]}],"row-start-end":[{row:["auto",{span:[ou]},Ve]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ve]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(D())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(D(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(D(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Ve,e]}],"min-w":[{"min-w":["min","max","fit",Ve,Pr]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Xi]},Xi,Ve]}],h:[{h:[Ve,e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ve,Pr]}],"max-h":[{"max-h":[Ve,e,"min","max","fit"]}],"font-size":[{text:["base",Xi,o0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",df]}],"font-family":[{font:[su]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ve]}],"line-clamp":[{"line-clamp":["none",ws,df]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ve,Pr]}],"list-image":[{"list-image":["none",Ve]}],"list-style-type":[{list:["none","disc","decimal",Ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(j(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Pr]}],"underline-offset":[{"underline-offset":["auto",Ve,Pr]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(O(),[dj])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fj]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}
vendor: 5,070 bytes, line 40
40],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[].concat(j(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:j()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(j())}],"outline-offset":[{"outline-offset":[Ve,Pr]}],"outline-w":[{outline:[Pr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Pr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Xi,pj]}],"shadow-color":[{shadow:[su]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":U()}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xi,Ve]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ve]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",Ve]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[ou,Ve]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ve]}],accent:[{accent:["auto",t]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ve]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
40],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ve]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Pr,df]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function yj(t,e){for(var n in e)RR(t,n,e[n]);return t}var wj=Object.prototype.hasOwnProperty,bj=new Set(["string","number","boolean"]);function RR(t,e,n){if(!wj.call(t,e)||bj.has(typeof n)||n===null){t[e]=n;return}if(Array.isArray(n)&&Array.isArray(t[e])){t[e]=t[e].concat(n);return}if(typeof n=="object"&&typeof t[e]=="object"){if(t[e]===null){t[e]=n;return}for(var r in n)RR(t[e],r,n[r])}}function Ej(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return typeof t=="function"?i0.apply(void 0,[s0,t].concat(n)):i0.apply(void 0,[function(){return yj(s0(),t)}].concat(n))}var _j=i0(s0),Sj={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},kR=t=>t||void 0,Fh=(...t)=>kR(SR(t).filter(Boolean).join(" ")),Gg=null,jh={},a0=!1,au=(...t)=>e=>e.twMerge?((!Gg||a0)&&(a0=!1,Gg=xn(jh)?_j:Ej(jh)),kR(Gg(Fh(t)))):Fh(t),fS=(t,e)=>{for(let n in e)t.hasOwnProperty(n)?t[n]=Fh(t[n],e[n]):t[n]=e[n];return t},Cj=(t,e)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:a={}}
vendor: 4,706 bytes, line 40
40=t,l={...Sj,...e},u=n!=null&&n.base?Fh(n.base,t==null?void 0:t.base):t==null?void 0:t.base,c=n!=null&&n.variants&&!xn(n.variants)?CR(i,n.variants):i,d=n!=null&&n.defaultVariants&&!xn(n.defaultVariants)?{...n.defaultVariants,...a}:a;!xn(l.twMergeConfig)&&!HF(l.twMergeConfig,jh)&&(a0=!0,jh=l.twMergeConfig);let h=xn(r)?{}:{base:t==null?void 0:t.base,...r},p=xn(n==null?void 0:n.slots)?h:fS(n==null?void 0:n.slots,xn(h)?{base:t==null?void 0:t.base}:h),m=b=>{if(xn(c)&&xn(r)&&xn(n==null?void 0:n.slots))return au(u,b==null?void 0:b.class,b==null?void 0:b.className)(l);if(o&&!Array.isArray(o))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof o}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let w=(I,M,R=[],A)=>{let O=R;if(typeof M=="string")O=O.concat(lS(M).split(" ").map(j=>`${I}:${j}`));else if(Array.isArray(M))O=O.concat(M.reduce((j,U)=>j.concat(`${I}:${U}`),[]));else if(typeof M=="object"&&typeof A=="string"){for(let j in M)if(M.hasOwnProperty(j)&&j===A){let U=M[j];if(U&&typeof U=="string"){let D=lS(U);O[A]?O[A]=O[A].concat(D.split(" ").map(B=>`${I}:${B}`)):O[A]=D.split(" ").map(B=>`${I}:${B}`)}else Array.isArray(U)&&U.length>0&&(O[A]=U.reduce((D,B)=>D.concat(`${I}:${B}`),[]))}}return O},v=(I,M=c,R=null,A=null)=>{var O;let j=M[I];if(!j||xn(j))return null;let U=(O=A==null?void 0:A[I])!=null?O:b==null?void 0:b[I];if(U===null)return null;let D=aS(U),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,K=d==null?void 0:d[I],x=[];if(typeof D=="object"&&B)for(let[G,Z]of Object.entries(D)){let te=j[Z];if(G==="initial"){K=Z;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(G)||(x=w(G,te,x,R))}let $=j[D]||j[aS(K)];return typeof x=="object"&&typeof R=="string"&&x[R]?fS(x,$):x.length>0?(x.push($),x):$},y=()=>c?Object.keys(c).map(I=>v(I,c)):null,E=(I,M)=>{if(!c||typeof c!="object")return null;let R=new Array;for(let A in c){let O=v(A,c,I,M),j=I==="base"&&typeof O=="string"?O:O&&O[I];j&&(R[R.length]=j)}return R},C={};for(let I in b)b[I]!==void 0&&(C[I]=b[I]);let S=(I,M)=>{var R;let A=typeof(b==null?void 0:b[I])=="object"?{[I]:(R=b[I])==null?void 0:R.initial}:{};return{...d,...C,...A,...M}},P=(I=[],M)=>{let R=[];for(let{class:A,className:O,...j}of I){let U=!0;for(let[D,B]of Object.entries(j)){let K=S(D,M);if(Array.isArray(B)){if(!B.includes(K[D])){U=!1;break}}else if(K[D]!==B){U=!1;break}}U&&(A&&R.push(A),O&&R.push(O))}return R},_=I=>{let M=P(o,I),R=P(n==null?void 0:n.compoundVariants,I);return KF(R,M)},k=I=>{let M=_(I);if(!Array.isArray(M))return M;let R={};for(let A of M)if(typeof A=="string"&&(R.base=au(R.base,A)(l)),typeof A=="object")for(let[O,j]of Object.entries(A))R[O]=au(R[O],j)(l);return R},L=I=>{if(s.length<1)return null;let M={};for(let{slots:R=[],class:A,className:O,...j}of s){if(!xn(j)){let U=!0;for(let D of Object.keys(j)){let B=S(D,I)[D];if(B===void 0||B!==j[D]){U=!1;break}}if(!U)continue}for(let U of R)M[U]=M[U]||[],M[U].push([A,O])}return M};if(!xn(r)||!xn(n==null?void 0:n.slots)){let I={};if(typeof p=="object"&&!xn(p))for(let M of Object.keys(p))I[M]=R=>{var A,O;return au(p[M],E(M,R),((A=k(R))!=null?A:[])[M],((O=L(R))!=null?O:[])[M],R==null?void 0:R.class,R==null?void 0:R.className)(l)};return I}return au(u,y(),_(),b==null?void 0:b.class,b==null?void 0:b.className)(l)},g=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return m.variantKeys=g(),m.extend=n,m.base=u,m.slots=p,m.variants=c,m.defaultVariants=d,m.compoundSlots=s,m.compoundVariants=o,m},xj=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],qg=xj.map(t=>`unit-${t}`),ff=["small","medium","large"],Xo=(t,e)=>{var n,r,i;return Cj(t,{...e,twMerge:(n=e==null?void 0:e.twMerge)!=null?n:!0,twMergeConfig:{...e==null?void 0:e.twMergeConfig,theme:{...(r=e==null?void 0:e.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...qg],borderWidth:ff,borderRadius:ff},classGroups:{...(i=e==null?void 0:e.twMergeConfig)==null?void 0:i.classGroups,shadow:[{shadow:ff}],"font-size":[{text:["tiny",...ff]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...qg]}],"min-h":[{"min-h":["unit",...qg]}]}}})},hS=Xo({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],
40circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),Qp=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Tj=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Pj={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Ij={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Lj={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},Rj={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground
40/10 text-foreground"},kj={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},Aj={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Mj={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},Ie={solid:Pj,shadow:Ij,bordered:Lj,flat:Rj,faded:kj,light:Aj,ghost:Mj},pS=Xo({slots:{base:"group flex flex-col",label:"block text-small font-medium text-foreground-600",mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex h-full items-center w-full gap-1.5 box-border",input:"w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...Qp],helperWrapper:"flex relative flex-col gap-1.5 pt-1 px-1",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"]},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"]}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{label:"text-foreground pb-1.5",mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"text-foreground pr-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"}},isLabelPlaceholder:{true:{label:"absolute z-10 pointer-events-none"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"placeholder:text-danger text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{inputWrapper:"!h-auto",input:"resize-none py-2"}},disableAnimation:{true:{inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","transition-all","!duration-200","!ease-out","motion-reduce:transition-none"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dar
40k:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Tj]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{isLabelPlaceholder:!0,labelPlacement:["inside","outside"],class:{label:["font-normal","group-data-[filled-within=true]:font-medium","group-data-[filled-within=true]:pointer-events-auto"]}},{isLabelPlaceholder:!0,labelPlacement:"outside",class:{base:"group relative justify-end",label:["pb-0","z-20","opacity-60","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-0","group-data-[filled-within=true]:opacity-100"]}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:["sm","md"],class:{label:["text-small","group-data-[filled-within=true]:text-tiny"],input:"pt-4"}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"],input:"pt-4"}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"],input:"pt-4"}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:text-small","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"],input:"pt-5"}},{isLabelPlaceholder:!0,labelPlacement:"outside",size:"sm",class:{label:["left-2","text-small","group-data-[filled-within=true]:text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"]}},{isLabelPlaceholder:!0,labelPlacement:"outside",size:"md",class:{label:["left-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"]}},{isLabelPlaceholder:!0,labelPlacement:"outside",size:"lg",class:{label:["left-3","text-medium","group-data-[filled-within=true]:text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"]}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}}]}),mS=Xo({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...Qp],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-
40px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height)_-_1px)]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}}),Dj=Xo({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),gS=Xo({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1,disableAnimation:!1},compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),Oj=Xo({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...Qp],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 roun
40ded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:Ie.solid.default},{variant:"solid",color:"primary",class:Ie.solid.primary},{variant:"solid",color:"secondary",class:Ie.solid.secondary},{variant:"solid",color:"success",class:Ie.solid.success},{variant:"solid",color:"warning",class:Ie.solid.warning},{variant:"solid",color:"danger",class:Ie.solid.danger},{variant:"shadow",color:"default",class:Ie.shadow.default},{variant:"shadow",color:"primary",class:Ie.shadow.primary},{variant:"shadow",color:"secondary",class:Ie.shadow.secondary},{variant:"shadow",color:"success",class:Ie.shadow.success},{variant:"shadow",color:"warning",class:Ie.shadow.warning},{variant:"shadow",color:"danger",class:Ie.shadow.danger},{variant:"bordered",color:"default",class:Ie.bordered.default},{variant:"bordered",color:"primary",class:Ie.bordered.primary},{variant:"bordered",color:"secondary",class:Ie.bordered.secondary},{variant:"bordered",color:"success",class:Ie.bordered.success},{variant:"bordered",color:"warning",class:Ie.bordered.warning},{variant:"bordered",color:"danger",class:Ie.bordered.danger},{variant:"flat",color:"default",class:Ie.flat.default},{variant:"flat",color:"primary",class:Ie.flat.primary},{variant:"flat",color:"secondary",class:Ie.flat.secondary},{variant:"flat",color:"success",class:Ie.flat.success},{variant:"flat",color:"warning",class:Ie.flat.warning},{variant:"flat",color:"danger",class:Ie.flat.danger},{variant:"faded",color:"default",class:Ie.faded.default},{variant:"faded",color:"primary",class:Ie.faded.primary},{variant:"faded",color:"secondary",class:Ie.faded.secondary},{variant:"faded",color:"success",class:Ie.faded.success},{variant:"faded",color:"warning",class:Ie.faded.warning},{variant:"faded",color:"danger",class:Ie.faded.danger},{variant:"light",color:"default",class:[Ie.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[Ie.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[Ie.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[Ie.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[Ie.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[Ie.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:Ie.ghost.default},{variant:"ghost",color:"primary",class:Ie.ghost.primary},{variant:"ghost",color:"secondary",class:Ie.ghost.secondary},{variant:"ghost",color:"success",class:Ie.ghost.success},{variant:"ghost",color:"warning",class:Ie.ghost.warning},{variant:"ghost",color:"danger",class:Ie.ghost.danger},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-l-small last:rounded-r-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-l-medium last:rounded-r-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-l-large last:rounded-r-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-l-full last:rounded-r-full"},{isInGroup:!0,variant:["bordered","ghost"],class:"[&:not(:first-child)]:ml-[calc(theme(borderWidth.medium)*-1)]"},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"}]});Xo({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var vS=Xo({slots:{base:["flex","flex-col","relative","overflow-hidden","height-auto","outline-none","text-foreground","box-border","bg-content1",...Qp],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-5","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}}
40,isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,disableAnimation:!1,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,disableAnimation:!1,isFooterBlurred:!1}}),Nj=(...t)=>{let e=" ";for(const n of t)if(typeof n=="string"&&n.length>0){e=n;break}return e};function AR(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=AR(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function pt(...t){for(var e=0,n,r,i="";e<t.length;)(n=t[e++])&&(r=AR(n))&&(i&&(i+=" "),i+=r);return i}function $j(t){return`${t}-${Math.floor(Math.random()*1e6)}`}var _e=t=>t?"true":void 0;function xb(t={}){const{strict:e=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=t,i=f.createContext(void 0);i.displayName=r;function o(){var s;const a=f.useContext(i);if(!a&&e){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,o),l}return a}return[i.Provider,o,i]}function Un(t){const e=f.useRef(null);return f.useImperativeHandle(t,()=>e.current),e}var Vj=Object.create,MR=Object.defineProperty,Fj=Object.getOwnPropertyDescriptor,DR=Object.getOwnPropertyNames,jj=Object.getPrototypeOf,Uj=Object.prototype.hasOwnProperty,OR=(t,e)=>function(){return e||(0,t[DR(t)[0]])((e={exports:{}}).exports,e),e.exports},Bj=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of DR(e))!Uj.call(t,i)&&i!==n&&MR(t,i,{get:()=>e[i],enumerable:!(r=Fj(e,i))||r.enumerable});return t},zj=(t,e,n)=>(n=t!=null?Vj(jj(t)):{},Bj(e||!t||!t.__esModule?MR(n,"default",{value:t,enumerable:!0}):n,t)),Wj=OR({"../../../node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.production.min.js"(t){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;function p(x){return x===null||typeof x!="object"?null:(x=h&&x[h]||x["@@iterator"],typeof x=="function"?x:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function w(x,$,G){this.props=x,this.context=$,this.refs=b,this.updater=G||m}w.prototype.isReactComponent={},w.prototype.setState=function(x,$){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,$,"setState")},w.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function v(){}v.prototype=w.prototype;function y(x,$,G){this.props=x,this.context=$,this.refs=b,this.updater=G||m}var E=y.prototype=new v;E.constructor=y,g(E,w.prototype),E.isPureReactComponent=!0;var C=Array.isArray,S=Object.prototype.hasOwnProperty,P={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(x,$,G){var Z,te={},F=null,Y=null;if($!=null)for(Z in $.ref!==void 0&&(Y=$.ref),$.key!==void 0&&(F=""+$.key),$)S.call($,Z)&&!_.hasOwnProperty(Z)&&(te[Z]=$[Z]);var re=arguments.length-2;if(re===1)te.children=G;else if(1<re){for(var X=Array(re),fe=0;fe<re;fe++)X[fe]=arguments[fe+2];te.children=X}if(x&&x.defaultProps)for(Z in re=x.defaultProps,re)te[Z]===void 0&&(te[Z]=re[Z]);return{$$typeof:e,type:x,key:F,ref:Y,props:te,_owner:P.current}}function L(x,$){return{$$typeof:e,type:x.type,key:$,ref:x.ref,props:x.props,_owner:x._owner}}function I(x){return typeof x=="object"&&x!==null&&x.$$typeof===e}function M(x){var $={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return $[G]})}var R=/\/+/g;function A(x,$){return typeof x=="object"&&x!==null&&x.key!=null?M(""+x.key):$.toString(36)}function O(x,$,G,Z,te){var F=typeof x;(F==="undefined"||F==="boolean")&&(x=null);var Y=!1;if(x===null)Y=!0;else switch(F){case"string":case"number":Y=!0;break;case"object":switch(x.$$typeof){case e:case n:Y=!0}}if(Y)return Y=x,te=te(Y),x=Z===""?"."+A(Y,0):Z,C(te)?(G="",x!=null&&(G=x.replace(R,"$&/")+"/"),O(te,$,G,"",function(fe){return fe})):te!=null&&(I(te)&&(te=L(te,G+(!te.key||Y&&Y.key===te.key?"":(""+te.key).replace(R,"$&/")+"/")+x)),$.push(te)),1;if(Y=0,Z=Z===""?".":Z+":",C(x))for(var re=0;re<x.length;re++){F=x[re];var X=Z+A(F,re);Y+=O(F,$,G,X,te)}else if(X=p(x),typeof X=="function")for(x=X.call(x),re=0;!(F=x.next()).done;)F=F.value,X=Z+A(F,re++),Y+=O(F,$,G,X,te);else if(F==="object")throw $=String(x),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return Y}function j(x,$,G){if(x==null)return x;var Z=[],te=0;return O(x,Z,"","",function(F){return $.call(G,F,te++)}),Z}function U(x){if(x._status===-1){var $=x._result;$=$(),$.then(function(G){(x._status===0||x._status===-1)&&(x._status=1,x._result=G)},function(G){(x._status===0||x._status===-1)&&(x._status=2,x._result=G)}),x._status===-1&&(x._status=0,x._result=$)}if(x._status===1)return x._result.default;throw x._result}var D={current:null},B={transition:null},K={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:B,ReactCurrentOwner:P};t.Children={map:j,forEach:function(x,$,G){j(x,function(){$.apply(this,arguments)},G)},count:function(x){var $=0;return j(x,function(){$++}),$},toArray:function(x){return j(x,function($){return $})||[]},only:function(x){if(!I(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},t.Component=w,t.Fragment=r,t.Profiler=o,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INT
vendor: 4,116 bytes, lines 40-56
40ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,t.cloneElement=function(x,$,G){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var Z=g({},x.props),te=x.key,F=x.ref,Y=x._owner;if($!=null){if($.ref!==void 0&&(F=$.ref,Y=P.current),$.key!==void 0&&(te=""+$.key),x.type&&x.type.defaultProps)var re=x.type.defaultProps;for(X in $)S.call($,X)&&!_.hasOwnProperty(X)&&(Z[X]=$[X]===void 0&&re!==void 0?re[X]:$[X])}var X=arguments.length-2;if(X===1)Z.children=G;else if(1<X){re=Array(X);for(var fe=0;fe<X;fe++)re[fe]=arguments[fe+2];Z.children=re}return{$$typeof:e,type:x.type,key:te,ref:F,props:Z,_owner:Y}},t.createContext=function(x){return x={$$typeof:a,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:s,_context:x},x.Consumer=x},t.createElement=k,t.createFactory=function(x){var $=k.bind(null,x);return $.type=x,$},t.createRef=function(){return{current:null}},t.forwardRef=function(x){return{$$typeof:l,render:x}},t.isValidElement=I,t.lazy=function(x){return{$$typeof:d,_payload:{_status:-1,_result:x},_init:U}},t.memo=function(x,$){return{$$typeof:c,type:x,compare:$===void 0?null:$}},t.startTransition=function(x){var $=B.transition;B.transition={};try{x()}finally{B.transition=$}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(x,$){return D.current.useCallback(x,$)},t.useContext=function(x){return D.current.useContext(x)},t.useDebugValue=function(){},t.useDeferredValue=function(x){return D.current.useDeferredValue(x)},t.useEffect=function(x,$){return D.current.useEffect(x,$)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(x,$,G){return D.current.useImperativeHandle(x,$,G)},t.useInsertionEffect=function(x,$){return D.current.useInsertionEffect(x,$)},t.useLayoutEffect=function(x,$){return D.current.useLayoutEffect(x,$)},t.useMemo=function(x,$){return D.current.useMemo(x,$)},t.useReducer=function(x,$,G){return D.current.useReducer(x,$,G)},t.useRef=function(x){return D.current.useRef(x)},t.useState=function(x){return D.current.useState(x)},t.useSyncExternalStore=function(x,$,G){return D.current.useSyncExternalStore(x,$,G)},t.useTransition=function(){return D.current.useTransition()},t.version="18.2.0"}}),Hj=OR({"../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"(t,e){e.exports=Wj()}}),yS=zj(Hj()),Kj=(t,e)=>{let n=[];const r=yS.Children.map(t,o=>(0,yS.isValidElement)(o)&&o.type===e?(n.push(o),null):o),i=n.length>=0?n:void 0;return[r,i]};/** 41 * @license React 42 * react.development.js 43 * 44 * Copyright (c) Facebook, Inc. and its affiliates. 45 * 46 * This source code is licensed under the MIT license found in the 47 * LICENSE file in the root directory of this source tree. 48 *//** 49 * @license React 50 * react.production.min.js 51 * 52 * Copyright (c) Facebook, Inc. and its affiliates. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE file in the root directory of this source tree. 56 */var Gj=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","readOnly","rel","required","rows","rowSpan","
56sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),qj=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Qj=/^(data-.*)$/,Yj=/^(aria-.*)$/,Qg=/^(on[A-Z].*)$/;function hl(t,e={}){let{labelable:n=!0,enabled:r=!0,propNames:i,omitPropNames:o,omitEventNames:s}=e,a={};if(!r)return t;for(const l in t)o!=null&&o.has(l)||s!=null&&s.has(l)&&Qg.test(l)||Qg.test(l)&&!qj.has(l)||(Object.prototype.hasOwnProperty.call(t,l)&&(Gj.has(l)||n&&Yj.test(l)||i!=null&&i.has(l)||Qj.test(l))||Qg.test(l))&&(a[l]=t[l]);return a}var Xj=t=>T.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...t,children:T.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})});const NR=f.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Yp=f.createContext({}),Xp=f.createContext(null),Zp=typeof document<"u",Tb=Zp?f.useLayoutEffect:f.useEffect,$R=f.createContext({strict:!1});function Zj(t,e,n,r){const{visualElement:i}=f.useContext(Yp),o=f.useContext($R),s=f.useContext(Xp),a=f.useContext(NR).reducedMotion,l=f.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;f.useInsertionEffect(()=>{u&&u.update(n,s)});const c=f.useRef(!!window.HandoffAppearAnimations);return Tb(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function Va(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Jj(t,e,n){return f.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Va(n)&&(n.current=r))},[e])}function Sc(t){return typeof t=="string"||Array.isArray(t)}function Jp(t){return typeof t=="object"&&typeof t.start=="function"}const Pb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ib=["initial",...Pb];function em(t){return Jp(t.animate)||Ib.some(e=>Sc(t[e]))}function VR(t){return!!(em(t)||t.variants)}function e3(t,e){if(em(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Sc(n)?n:void 0,animate:Sc(r)?r:void 0}}return t.inherit!==!1?e:{}}function t3(t){const{initial:e,animate:n}=e3(t,f.useContext(Yp));return f.useMemo(()=>({initial:e,animate:n}),[wS(e),wS(n)])}function wS(t){return Array.isArray(t)?t.join(" "):t}const bS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Cc={};for(const t in bS)Cc[t]={isEnabled:e=>bS[t].some(n=>!!e[n])};function n3(t){for(const e in t)Cc[e]={...Cc[e],...t[e]}}const Lb=f.createContext({}),FR=f.createContext({}),r3=Symbol.for("motionComponentSymbol");function i3({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&n3(t);function o(a,l){let u;const c={...f.useContext(NR),...a,layoutId:o3(a)},{isStatic:d}=c,h=t3(a),p=r(a,d);if(!d&&Zp){h.visualElement=Zj(i,p,c,e);const m=f.useContext(FR),g=f.useContext($R).strict;h.visualElement&&(u=h.visualElement.loadFeatures(c,g,t,m))}return f.createElement(Yp.Provider,{value:h},u&&h.visualElement?f.createElement(u,{visualElement:h.visualElement,...c}):null,n(i,a,Jj(p,h.visualElement,l),p,d,h.visualElement))}const s=f.forwardRef(o);return s[r3]=i,s}function o3({layoutId:t}){const e=f.useContext(Lb).id;return e&&t!==void 0?e+"-"+t:t}function s3(t){function e(r,i={}){return i3(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const a3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Rb(t){return typeof t!="string"||t.includes("-")?!1:!!(a3.indexOf(t)>-1||/[A-Z]/.test(t))}const Uh={};function l3(t){Object.assign(Uh,t)}const od=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Js=new Set(od);function jR(t,{layout:e,layoutId:n}){return Js.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Uh[t]||t==="opacity")}const jn=t=>!!(t&&t.getVelocity),u3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},c3=od.length;function d3(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<c3;s++){const a=od[s];if(t[a]!==void 0){const l=u3[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const UR=t=>e=>typeof e=="string"&&e.startsWith(t),BR=UR("--"),l0=UR("var(--"),f3=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
56:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,h3=(t,e)=>e&&typeof t=="number"?e.transform(t):t,jo=(t,e,n)=>Math.min(Math.max(n,t),e),ea={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Hu={...ea,transform:t=>jo(0,1,t)},hf={...ea,default:1},Ku=t=>Math.round(t*1e5)/1e5,tm=/(-)?([\d]*\.?[\d])+/g,zR=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,p3=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function sd(t){return typeof t=="string"}const ad=t=>({test:e=>sd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),eo=ad("deg"),oi=ad("%"),me=ad("px"),m3=ad("vh"),g3=ad("vw"),ES={...oi,parse:t=>oi.parse(t)/100,transform:t=>oi.transform(t*100)},_S={...ea,transform:Math.round},WR={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,size:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:eo,skewX:eo,skewY:eo,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Hu,originX:ES,originY:ES,originZ:me,zIndex:_S,fillOpacity:Hu,strokeOpacity:Hu,numOctaves:_S};function kb(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let l=!1,u=!1,c=!0;for(const d in e){const h=e[d];if(BR(d)){o[d]=h;continue}const p=WR[d],m=h3(h,p);if(Js.has(d)){if(l=!0,s[d]=m,!c)continue;h!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):i[d]=m}if(e.transform||(l||r?i.transform=d3(t.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:h="50%",originZ:p=0}=a;i.transformOrigin=`${d} ${h} ${p}`}}const Ab=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HR(t,e,n){for(const r in e)!jn(e[r])&&!jR(r,n)&&(t[r]=e[r])}function v3({transformTemplate:t},e,n){return f.useMemo(()=>{const r=Ab();return kb(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function y3(t,e,n){const r=t.style||{},i={};return HR(i,r,t),Object.assign(i,v3(t,e,n)),t.transformValues?t.transformValues(i):i}function w3(t,e,n){const r={},i=y3(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const b3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Bh(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||b3.has(t)}let KR=t=>!Bh(t);function E3(t){t&&(KR=e=>e.startsWith("on")?!Bh(e):t(e))}try{E3(require("@emotion/is-prop-valid").default)}catch{}function _3(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(KR(i)||n===!0&&Bh(i)||!e&&!Bh(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function SS(t,e,n){return typeof t=="string"?t:me.transform(e+n*t)}function S3(t,e,n){const r=SS(e,t.x,t.width),i=SS(n,t.y,t.height);return`${r} ${i}`}const C3={offset:"stroke-dashoffset",array:"stroke-dasharray"},x3={offset:"strokeDashoffset",array:"strokeDasharray"};function T3(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?C3:x3;t[o.offset]=me.transform(-r);const s=me.transform(e),a=me.transform(n);t[o.array]=`${s} ${a}`}function Mb(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u}
56,c,d,h){if(kb(t,u,c,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:m,dimensions:g}=t;p.transform&&(g&&(m.transform=p.transform),delete p.transform),g&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=S3(g,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(p.x=e),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&T3(p,s,a,l,!1)}const GR=()=>({...Ab(),attrs:{}}),Db=t=>typeof t=="string"&&t.toLowerCase()==="svg";function P3(t,e,n,r){const i=f.useMemo(()=>{const o=GR();return Mb(o,e,{enableHardwareAcceleration:!1},Db(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};HR(o,t.style,t),i.style={...o,...i.style}}return i}function I3(t=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Rb(n)?P3:w3)(r,o,s,n),c={..._3(r,typeof n=="string",t),...l,ref:i},{children:d}=r,h=f.useMemo(()=>jn(d)?d.get():d,[d]);return f.createElement(n,{...c,children:h})}}const Ob=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function qR(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const QR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function YR(t,e,n,r){qR(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(QR.has(i)?i:Ob(i),e.attrs[i])}function Nb(t,e){const{style:n}=t,r={};for(const i in n)(jn(n[i])||e.style&&jn(e.style[i])||jR(i,t))&&(r[i]=n[i]);return r}function XR(t,e){const n=Nb(t,e);for(const r in t)if(jn(t[r])||jn(e[r])){const i=od.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function $b(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function ZR(t){const e=f.useRef(null);return e.current===null&&(e.current=t()),e.current}const zh=t=>Array.isArray(t),L3=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),R3=t=>zh(t)?t[t.length-1]||0:t;function Kf(t){const e=jn(t)?t.get():t;return L3(e)?e.toValue():e}function k3({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:A3(r,i,o,t),renderState:e()};return n&&(s.mount=a=>n(r,a,s)),s}const JR=t=>(e,n)=>{const r=f.useContext(Yp),i=f.useContext(Xp),o=()=>k3(t,e,r,i);return n?o():ZR(o)};function A3(t,e,n,r){const i={},o=r(t,{});for(const h in o)i[h]=Kf(o[h]);let{initial:s,animate:a}=t;const l=em(t),u=VR(t);e&&u&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Jp(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=$b(t,p);if(!m)return;const{transitionEnd:g,transition:b,...w}=m;for(const v in w){let y=w[v];if(Array.isArray(y)){const E=c?y.length-1:0;y=y[E]}y!==null&&(i[v]=y)}for(const v in g)i[v]=g[v]}),i}const kt=t=>t;class CS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function M3(t){let e=new CS,n=new CS,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,h=d?e:n;return u&&s.add(l),h.add(l)&&d&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let u=0;u<r;u++){const c=e.order[u];c(l),s.has(c)&&(a.schedule(c),t())}i=!1,o&&(o=!1,a.process(l))}};return a}const pf=["prepare","read","update","preRender","render","postRender"],D3=40;function O3(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=pf.reduce((d,h)=>(d[h]=M3(()=>n=!0),d),{}),s=d=>o[d].process(i),a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,D3),1),i.timestamp=d,i.isProcessing=!0,pf.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:pf.reduce((d,h)=>{const p=o[h];return d[h]=(m,g=!1,b=!1)=>(n||l(),p.schedule(m,g,b)),d},{}),cancel:d=>pf.forEach(h=>o[h].cancel(d)),state:i,steps:o}}const{schedule:ut,cancel:Vi,state:Kt,steps:Yg}=O3(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),N3={useVisualState:JR({scrapeMotionValuesFromProps:XR,createRenderState:GR,onMount:(t,e,{renderState:n,latestValues:r})=>{ut.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ut.render(()=>{Mb(n,r,{enableHardwareAcceleration:!1},Db(e.tagName),t.transformTemplate),YR(e,n)})}})},$3={useVisualState:JR({scrapeMotionValuesFromProps:Nb,createRenderState:Ab})};function V3(t,{forwardMotionProps:e=!1},n,r){return{...Rb(t)?N3:$3,preloadedFeatures:n,useRender:I3(e),createVisualElement:r,Component:t}}function Ti(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const ek=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function nm(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const F3=t=>e=>ek(e)&&t(e,nm(e));function ki(t,e,n,r){return Ti(t,e,F3(n),r)}const j3=(t,e)=>n=>e(t(n)),Po=(...t)=>t.reduce(j3);function tk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const xS=tk("dragHorizontal"),TS=tk("dragVertical");function nk(t){let e=!1;if(t==="y")e=TS();else if(t==="x")e=xS();else{const n=xS(),r=TS();n&&r?e=()=>{n(),r()}
56:(n&&n(),r&&r())}return e}function rk(){const t=nk(!0);return t?(t(),!1):!0}class Zo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function PS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||rk())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&ut.update(()=>a[r](o,s))};return ki(t.current,n,i,{passive:!t.getProps()[r]})}class U3 extends Zo{mount(){this.unmount=Po(PS(this.node,!0),PS(this.node,!1))}unmount(){}}class B3 extends Zo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Po(Ti(this.node.current,"focus",()=>this.onFocus()),Ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ik=(t,e)=>e?t===e?!0:ik(t,e.parentElement):!1;function Xg(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,nm(n))}class z3 extends Zo{constructor(){super(...arguments),this.removeStartListeners=kt,this.removeEndListeners=kt,this.removeAccessibleListeners=kt,this.startPointerPress=(e,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=ki(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();ut.update(()=>{ik(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=ki(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Po(o,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Xg("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ut.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Ti(this.node.current,"keyup",s),Xg("down",(a,l)=>{this.startPress(a,l)})},n=Ti(this.node.current,"keydown",e),r=()=>{this.isPressing&&Xg("cancel",(o,s)=>this.cancelPress(o,s))},i=Ti(this.node.current,"blur",r);this.removeAccessibleListeners=Po(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ut.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ut.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=ki(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Ti(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Po(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const u0=new WeakMap,Zg=new WeakMap,W3=t=>{const e=u0.get(t.target);e&&e(t)},H3=t=>{t.forEach(W3)};function K3({root:t,...e}){const n=t||document;Zg.has(n)||Zg.set(n,{});const r=Zg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(H3,{root:t,...e})),r[i]}function G3(t,e,n){const r=K3(e);return u0.set(t,n),r.observe(t),()=>{u0.delete(t),r.unobserve(t)}}const q3={some:0,all:1};class Q3 extends Zo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:q3[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),h=u?c:d;h&&h(l)};return G3(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Y3(e,n))&&this.startObserver()}unmount(){}}function Y3({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const X3={inView:{Feature:Q3},tap:{Feature:z3},focus:{Feature:B3},hover:{Feature:U3}};function ok(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Z3(t){const e={};
56return t.values.forEach((n,r)=>e[r]=n.get()),e}function J3(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function rm(t,e,n){const r=t.getProps();return $b(r,e,n!==void 0?n:r.custom,Z3(t),J3(t))}const eU="framerAppearId",tU="data-"+Ob(eU);let nU=kt,Vb=kt;const Io=t=>t*1e3,Ai=t=>t/1e3,rU={current:!1},sk=t=>Array.isArray(t)&&typeof t[0]=="number";function ak(t){return!!(!t||typeof t=="string"&&lk[t]||sk(t)||Array.isArray(t)&&t.every(ak))}const Iu=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,lk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Iu([0,.65,.55,1]),circOut:Iu([.55,0,1,.45]),backIn:Iu([.31,.01,.66,-.59]),backOut:Iu([.33,1.53,.69,.99])};function uk(t){if(t)return sk(t)?Iu(t):Array.isArray(t)?t.map(uk):lk[t]}function iU(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=uk(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function oU(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const ck=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,sU=1e-7,aU=12;function lU(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=ck(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>sU&&++a<aU);return s}function ld(t,e,n,r){if(t===e&&n===r)return kt;const i=o=>lU(o,0,1,t,n);return o=>o===0||o===1?o:ck(i(o),e,r)}const uU=ld(.42,0,1,1),cU=ld(0,0,.58,1),dk=ld(.42,0,.58,1),dU=t=>Array.isArray(t)&&typeof t[0]!="number",fk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,hk=t=>e=>1-t(1-e),pk=t=>1-Math.sin(Math.acos(t)),Fb=hk(pk),fU=fk(Fb),mk=ld(.33,1.53,.69,.99),jb=hk(mk),hU=fk(jb),pU=t=>(t*=2)<1?.5*jb(t):.5*(2-Math.pow(2,-10*(t-1))),mU={linear:kt,easeIn:uU,easeInOut:dk,easeOut:cU,circIn:pk,circInOut:fU,circOut:Fb,backIn:jb,backInOut:hU,backOut:mk,anticipate:pU},IS=t=>{if(Array.isArray(t)){Vb(t.length===4);const[e,n,r,i]=t;return ld(e,n,r,i)}else if(typeof t=="string")return mU[t];return t},Ub=(t,e)=>n=>!!(sd(n)&&p3.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),gk=(t,e,n)=>r=>{if(!sd(r))return r;const[i,o,s,a]=r.match(tm);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},gU=t=>jo(0,255,t),Jg={...ea,transform:t=>Math.round(gU(t))},bs={test:Ub("rgb","red"),parse:gk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Jg.transform(t)+", "+Jg.transform(e)+", "+Jg.transform(n)+", "+Ku(Hu.transform(r))+")"};function vU(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const c0={test:Ub("#"),parse:vU,transform:bs.transform},Fa={test:Ub("hsl","hue"),parse:gk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+oi.transform(Ku(e))+", "+oi.transform(Ku(n))+", "+Ku(Hu.transform(r))+")"},Tn={test:t=>bs.test(t)||c0.test(t)||Fa.test(t),parse:t=>bs.test(t)?bs.parse(t):Fa.test(t)?Fa.parse(t):c0.parse(t),transform:t=>sd(t)?t:t.hasOwnProperty("red")?bs.transform(t):Fa.transform(t)},xt=(t,e,n)=>-n*t+n*e+t;function ev(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function yU({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ev(l,a,t+1/3),o=ev(l,a,t),s=ev(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const tv=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},wU=[c0,bs,Fa],bU=t=>wU.find(e=>e.test(t));function LS(t){const e=bU(t);let n=e.parse(t);return e===Fa&&(n=yU(n)),n}const vk=(t,e)=>{const n=LS(t),r=LS(e),i={...n};return o=>(i.red=tv(n.red,r.red,o),i.green=tv(n.green,r.green,o),i.blue=tv(n.blue,r.blue,o),i.alpha=xt(n.alpha,r.alpha,o),bs.transform(i))};function EU(t){var e,n;return isNaN(t)&&sd(t)&&(((e=t.match(tm))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(zR))===null||n===void 0?void 0:n.length)||0)>0}const yk={regex:f3,countKey:"Vars",token:"${v}",parse:kt},wk={regex:zR,countKey:"Colors",token:"${c}",parse:Tn.parse},bk={regex:tm,countKey:"Numbers",token:"${n}",parse:ea.parse};function nv(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function Wh(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&nv(n,yk),nv(n,wk),nv(n,bk),n}function Ek(t){return Wh(t).values}function _k(t){const{values:e,numColors:n,numVars:r,tokenised:i}=Wh(t),o=e.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(yk.token,s[l]):l<r+n?a=a.replace(wk.token,Tn.transform(s[l])):a=a.replace(bk.token,Ku(s[l]));return a}}const _U=t=>typeof t=="number"?0:t;function SU(t){const e=Ek(t);return _k(t)(e.map(_U))}const Uo={test:EU,parse:Ek,createTransformer:_k,getAnimatableNone:SU},Sk=(t,e)=>n=>`${n>0?e:t}`;function Ck(t,e){return typeof t=="number"?n=>xt(t,e,n):Tn.test(t)?vk(t,e):t.startsWith("var(")?Sk(t,e):Tk(t,e)}const xk=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,s)=>Ck(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},CU=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Ck(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Tk=(t,e)=>{const n=Uo.createTransformer(e),r=Wh(t),i=Wh(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Po(xk(r.values,i.values),n):Sk(t,e)},xc=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},RS=(t,e)=>n=>xt(t,e,n);function xU(t){return typeof t=="number"?RS:typeof t=="string"?Tn.test(t)?vk:Tk:Array.isArray(t)?xk:typeof t=="object"?CU:RS}function TU(t,e,n){const r=[],i=n||xU(t[0]),o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||kt:e;a=Po(l,a)}r.push(a)}return r}function Pk(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Vb(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());
56const s=TU(e,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;c<t.length-2&&!(u<t[c+1]);c++);const d=xc(t[c],t[c+1],u);return s[c](d)};return n?u=>l(jo(t[0],t[o-1],u)):l}function PU(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=xc(0,e,r);t.push(xt(n,1,i))}}function IU(t){const e=[0];return PU(e,t.length-1),e}function LU(t,e){return t.map(n=>n*e)}function RU(t,e){return t.map(()=>e||dk).splice(0,t.length-1)}function Hh({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=dU(r)?r.map(IS):IS(r),o={done:!1,value:e[0]},s=LU(n&&n.length===e.length?n:IU(e),t),a=Pk(s,e,{ease:Array.isArray(i)?i:RU(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function Ik(t,e){return e?t*(1e3/e):0}const kU=5;function Lk(t,e,n){const r=Math.max(e-kU,0);return Ik(n-t(r),e-r)}const rv=.001,AU=.01,kS=10,MU=.05,DU=1;function OU({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;nU(t<=Io(kS));let s=1-e;s=jo(MU,DU,s),t=jo(AU,kS,Ai(t)),s<1?(i=u=>{const c=u*s,d=c*t,h=c-n,p=d0(u,s),m=Math.exp(-d);return rv-h/p*m},o=u=>{const d=u*s*t,h=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*t,m=Math.exp(-d),g=d0(Math.pow(u,2),s);return(-i(u)+rv>0?-1:1)*((h-p)*m)/g}):(i=u=>{const c=Math.exp(-u*t),d=(u-n)*t+1;return-rv+c*d},o=u=>{const c=Math.exp(-u*t),d=(n-u)*(t*t);return c*d});const a=5/t,l=$U(i,o,a);if(t=Io(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:t}}}const NU=12;function $U(t,e,n){let r=n;for(let i=1;i<NU;i++)r=r-t(r)/e(r);return r}function d0(t,e){return t*Math.sqrt(1-e*e)}const VU=["duration","bounce"],FU=["stiffness","damping","mass"];function AS(t,e){return e.some(n=>t[n]!==void 0)}function jU(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!AS(t,FU)&&AS(t,VU)){const n=OU(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function Rk({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:h}=jU(r),p=c?-Ai(c):0,m=l/(2*Math.sqrt(a*u)),g=o-i,b=Ai(Math.sqrt(a/u)),w=Math.abs(g)<5;n||(n=w?.01:2),e||(e=w?.005:.5);let v;if(m<1){const y=d0(b,m);v=E=>{const C=Math.exp(-m*b*E);return o-C*((p+m*b*g)/y*Math.sin(y*E)+g*Math.cos(y*E))}}else if(m===1)v=y=>o-Math.exp(-b*y)*(g+(p+b*g)*y);else{const y=b*Math.sqrt(m*m-1);v=E=>{const C=Math.exp(-m*b*E),S=Math.min(y*E,300);return o-C*((p+m*b*g)*Math.sinh(S)+y*g*Math.cosh(S))/y}}return{calculatedDuration:h&&d||null,next:y=>{const E=v(y);if(h)s.done=y>=d;else{let C=p;y!==0&&(m<1?C=Lk(v,y,E):C=0);const S=Math.abs(C)<=n,P=Math.abs(o-E)<=e;s.done=S&&P}return s.value=s.done?o:E,s}}}function MS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],h={done:!1,value:d},p=_=>a!==void 0&&_<a||l!==void 0&&_>l,m=_=>a===void 0?l:l===void 0||Math.abs(a-_)<Math.abs(l-_)?a:l;let g=n*e;const b=d+g,w=s===void 0?b:s(b);w!==b&&(g=w-d);const v=_=>-g*Math.exp(-_/r),y=_=>w+v(_),E=_=>{const k=v(_),L=y(_);h.done=Math.abs(k)<=u,h.value=h.done?w:L};let C,S;const P=_=>{p(h.value)&&(C=_,S=Rk({keyframes:[h.value,m(h.value)],velocity:Lk(y,_,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:_=>{let k=!1;return!S&&C===void 0&&(k=!0,E(_),P(_)),C!==void 0&&_>C?S.next(_-C):(!k&&E(_),h)}}}const UU=t=>{const e=({timestamp:n})=>t(n);return{start:()=>ut.update(e,!0),stop:()=>Vi(e),now:()=>Kt.isProcessing?Kt.timestamp:performance.now()}},DS=2e4;function OS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<DS;)e+=n,r=t.next(e);return e>=DS?1/0:e}const BU={decay:MS,inertia:MS,tween:Hh,keyframes:Hh,spring:Rk};function Kh({autoplay:t=!0,delay:e=0,driver:n=UU,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let p=1,m=!1,g,b;const w=()=>{b=new Promise(x=>{g=x})};w();let v;const y=BU[i]||Hh;let E;y!==Hh&&typeof r[0]!="number"&&(E=Pk([0,100],r,{clamp:!1}),r=[0,100]);const C=y({...h,keyframes:r});let S;a==="mirror"&&(S=y({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}
56));let P="idle",_=null,k=null,L=null;C.calculatedDuration===null&&o&&(C.calculatedDuration=OS(C));const{calculatedDuration:I}=C;let M=1/0,R=1/0;I!==null&&(M=I+s,R=M*(o+1)-s);let A=0;const O=x=>{if(k===null)return;p>0&&(k=Math.min(k,x)),p<0&&(k=Math.min(x-R/p,k)),_!==null?A=_:A=Math.round(x-k)*p;const $=A-e*(p>=0?1:-1),G=p>=0?$<0:$>R;A=Math.max($,0),P==="finished"&&_===null&&(A=R);let Z=A,te=C;if(o){const X=A/M;let fe=Math.floor(X),Te=X%1;!Te&&X>=1&&(Te=1),Te===1&&fe--,fe=Math.min(fe,o+1);const Me=!!(fe%2);Me&&(a==="reverse"?(Te=1-Te,s&&(Te-=s/M)):a==="mirror"&&(te=S));let De=jo(0,1,Te);A>R&&(De=a==="reverse"&&Me?1:0),Z=De*M}const F=G?{done:!1,value:r[0]}:te.next(Z);E&&(F.value=E(F.value));let{done:Y}=F;!G&&I!==null&&(Y=p>=0?A>=R:A<=0);const re=_===null&&(P==="finished"||P==="running"&&Y);return d&&d(F.value),re&&D(),F},j=()=>{v&&v.stop(),v=void 0},U=()=>{P="idle",j(),g(),w(),k=L=null},D=()=>{P="finished",c&&c(),j(),g()},B=()=>{if(m)return;v||(v=n(O));const x=v.now();l&&l(),_!==null?k=x-_:(!k||P==="finished")&&(k=x),P==="finished"&&w(),L=k,_=null,P="running",v.start()};t&&B();const K={then(x,$){return b.then(x,$)},get time(){return Ai(A)},set time(x){x=Io(x),A=x,_!==null||!v||p===0?_=x:k=v.now()-x/p},get duration(){const x=C.calculatedDuration===null?OS(C):C.calculatedDuration;return Ai(x)},get speed(){return p},set speed(x){x===p||!v||(p=x,K.time=Ai(A))},get state(){return P},play:B,pause:()=>{P="paused",_=A},stop:()=>{m=!0,P!=="idle"&&(P="idle",u&&u(),U())},cancel:()=>{L!==null&&O(L),U()},complete:()=>{P="finished"},sample:x=>(k=0,O(x))};return K}function zU(t){let e;return()=>(e===void 0&&(e=t()),e)}const WU=zU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),HU=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),mf=10,KU=2e4,GU=(t,e)=>e.type==="spring"||t==="backgroundColor"||!ak(e.ease);function qU(t,e,{onUpdate:n,onComplete:r,...i}){if(!(WU()&&HU.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(v=>{a=v})};u();let{keyframes:c,duration:d=300,ease:h,times:p}=i;if(GU(e,i)){const v=Kh({...i,repeat:0,delay:0});let y={done:!1,value:c[0]};const E=[];let C=0;for(;!y.done&&C<KU;)y=v.sample(C),E.push(y.value),C+=mf;p=void 0,c=E,d=C-mf,h="linear"}const m=iU(t.owner.current,e,c,{...i,duration:d,ease:h,times:p});i.syncStart&&(m.startTime=Kt.isProcessing?Kt.timestamp:document.timeline?document.timeline.currentTime:performance.now());const g=()=>m.cancel(),b=()=>{ut.update(g),a(),u()};return m.onfinish=()=>{t.set(oU(c,i)),r&&r(),b()},{then(v,y){return l.then(v,y)},attachTimeline(v){return m.timeline=v,m.onfinish=null,kt},get time(){return Ai(m.currentTime||0)},set time(v){m.currentTime=Io(v)},get speed(){return m.playbackRate},set speed(v){m.playbackRate=v},get duration(){return Ai(d)},play:()=>{s||(m.play(),Vi(g))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:v}=m;if(v){const y=Kh({...i,autoplay:!1});t.setWithVelocity(y.sample(v-mf).value,y.sample(v).value,mf)}b()},complete:()=>m.finish(),cancel:b}}function QU({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:kt,pause:kt,stop:kt,then:o=>(o(),Promise.resolve()),cancel:kt,complete:kt});return e?Kh({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const YU={type:"spring",stiffness:500,damping:25,restSpeed:10},XU=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ZU={type:"keyframes",duration:.8},JU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e5=(t,{keyframes:e})=>e.length>2?ZU:Js.has(t)?t.startsWith("scale")?XU(e[1]):YU:JU,f0=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Uo.test(e)||e==="0")&&!e.startsWith("url(")),t5=new Set(["brightness","contrast","saturate","opacity"]);function n5(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(tm)||[];if(!r)return t;const i=n.replace(r,"");let o=t5.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const r5=/([a-z-]*)\(.*?\)/g,h0={...Uo,getAnimatableNone:t=>{const e=t.match(r5);return e?e.map(n5).join(" "):t}},i5={...WR,color:Tn,backgroundColor:Tn,outlineColor:Tn,fill:Tn,stroke:Tn,borderColor:Tn,borderTopColor:Tn,borderRightColor:Tn,borderBottomColor:Tn,borderLeftColor:Tn,filter:h0,WebkitFilter:h0},Bb=t=>i5[t];function kk(t,e){let n=Bb(t);return n!==h0&&(n=Uo),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ak=t=>/^0[^.\s]+$/.test(t);function o5(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Ak(t)}function s5(t,e,n,r){const i=f0(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:t.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),o5(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const c=l[u];o[c]=kk(e,a)}return o}function a5({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Mk(t,e){return t[e]||t.default||t}const zb=(t,e,n,r={})=>i=>{const o=Mk(r,t)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Io(s);const l=s5(e,t,n,o),u=l[0],c=l[l.length-1],d=f0(t,u),h=f0(t,c);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{e.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(a5(o)||(p={...p,...e5(t,p)}),p.duration&&(p.duration=Io(p.duration)),p.repeatDelay&&(p.repeatDelay=Io(p.repeatDelay)),!d||!h||rU.current||o.type===!1)return QU(p);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUp
56date){const m=qU(e,t,p);if(m)return m}return Kh(p)};function Gh(t){return!!(jn(t)&&t.add)}const Dk=t=>/^\-?\d*\.?\d+$/.test(t);function Wb(t,e){t.indexOf(e)===-1&&t.push(e)}function Hb(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Kb{constructor(){this.subscriptions=[]}add(e){return Wb(this.subscriptions,e),()=>Hb(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const l5=t=>!isNaN(parseFloat(t));class u5{constructor(e,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Kt;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,ut.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ut.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=l5(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Kb);const r=this.events[e].add(n);return e==="change"?()=>{r(),ut.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ik(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pl(t,e){return new u5(t,e)}const Ok=t=>e=>e.test(t),c5={test:t=>t==="auto",parse:t=>t},Nk=[ea,me,oi,eo,g3,m3,c5],lu=t=>Nk.find(Ok(t)),d5=[...Nk,Tn,Uo],f5=t=>d5.find(Ok(t));function h5(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,pl(n))}function p5(t,e){const n=rm(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=R3(o[s]);h5(t,s,a)}}function m5(t,e,n){var r,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=e[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(i=(r=n[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&i!==void 0?i:e[l]),c!=null&&(typeof c=="string"&&(Dk(c)||Ak(c))?c=parseFloat(c):!f5(c)&&Uo.test(u)&&(c=kk(l,u)),t.addValue(l,pl(c,{owner:t})),n[l]===void 0&&(n[l]=c),c!==null&&t.setBaseTarget(l,c))}}function g5(t,e){return e?(e[t]||e.default||e).from:void 0}function v5(t,e,n){const r={};for(const i in t){const o=g5(i,e);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function y5({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function $k(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(o=r);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const d in a){const h=t.getValue(d),p=a[d];if(!h||p===void 0||c&&y5(c,d))continue;const m={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!h.hasAnimated){const b=t.getProps()[tU];b&&(m.elapsed=window.HandoffAppearAnimations(b,d,h,ut),m.syncStart=!0)}h.start(zb(d,h,p,t.shouldReduceMotion&&Js.has(d)?{type:!1}:m));const g=h.animation;Gh(l)&&(l.add(d),g.then(()=>l.remove(d))),u.push(g)}return s&&Promise.all(u).then(()=>{s&&p5(t,s)}),u}function p0(t,e,n={}){const r=rm(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all($k(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return w5(t,e,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function w5(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;
vendor: 8,867 bytes, line 56
56return Array.from(t.variantChildren).sort(b5).forEach((u,c)=>{u.notify("AnimationStart",e),s.push(p0(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(s)}function b5(t,e){return t.sortNodePosition(e)}function E5(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>p0(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=p0(t,e,n);else{const i=typeof e=="function"?rm(t,e,n.custom):e;r=Promise.all($k(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const _5=[...Pb].reverse(),S5=Pb.length;function C5(t){return e=>Promise.all(e.map(({animation:n,options:r})=>E5(t,n,r)))}function x5(t){let e=C5(t);const n=P5();let r=!0;const i=(l,u)=>{const c=rm(t,u);if(c){const{transition:d,transitionEnd:h,...p}=c;l={...l,...p,...h}}return l};function o(l){e=l(t)}function s(l,u){const c=t.getProps(),d=t.getVariantContext(!0)||{},h=[],p=new Set;let m={},g=1/0;for(let w=0;w<S5;w++){const v=_5[w],y=n[v],E=c[v]!==void 0?c[v]:d[v],C=Sc(E),S=v===u?y.isActive:null;S===!1&&(g=w);let P=E===d[v]&&E!==c[v]&&C;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...m},!y.isActive&&S===null||!E&&!y.prevProp||Jp(E)||typeof E=="boolean")continue;const _=T5(y.prevProp,E);let k=_||v===u&&y.isActive&&!P&&C||w>g&&C;const L=Array.isArray(E)?E:[E];let I=L.reduce(i,{});S===!1&&(I={});const{prevResolvedValues:M={}}=y,R={...M,...I},A=O=>{k=!0,p.delete(O),y.needsAnimating[O]=!0};for(const O in R){const j=I[O],U=M[O];m.hasOwnProperty(O)||(j!==U?zh(j)&&zh(U)?!ok(j,U)||_?A(O):y.protectedKeys[O]=!0:j!==void 0?A(O):p.add(O):j!==void 0&&p.has(O)?A(O):y.protectedKeys[O]=!0)}y.prevProp=E,y.prevResolvedValues=I,y.isActive&&(m={...m,...I}),r&&t.blockInitialAnimation&&(k=!1),k&&!P&&h.push(...L.map(O=>({animation:O,options:{type:v,...l}})))}if(p.size){const w={};p.forEach(v=>{const y=t.getBaseTarget(v);y!==void 0&&(w[v]=y)}),h.push({animation:w})}let b=!!h.length;return r&&c.initial===!1&&!t.manuallyAnimateOnMount&&(b=!1),r=!1,b?e(h):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=t.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const h=s(c,l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function T5(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ok(e,t):!1}function ss(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function P5(){return{animate:ss(!0),whileInView:ss(),whileHover:ss(),whileTap:ss(),whileDrag:ss(),whileFocus:ss(),exit:ss()}}class I5 extends Zo{constructor(e){super(e),e.animationState||(e.animationState=x5(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Jp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let L5=0;class R5 extends Zo{constructor(){super(...arguments),this.id=L5++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const k5={animation:{Feature:I5},exit:{Feature:R5}},NS=(t,e)=>Math.abs(t-e);function A5(t,e){const n=NS(t.x,e.x),r=NS(t.y,e.y);return Math.sqrt(n**2+r**2)}class Vk{constructor(e,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=ov(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=A5(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:h}=u,{timestamp:p}=Kt;this.history.push({...h,timestamp:p});const{onStart:m,onMove:g}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=iv(c,this.transformPagePoint),ut.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:h}=this.handlers,p=ov(u.type==="pointercancel"?this.lastMoveEventInfo:iv(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),h&&h(u,p)},!ek(e))return;this.handlers=n,this.transformPagePoint=r;const i=nm(e),o=iv(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=Kt;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(e,ov(o,this.history)),this.removeListeners=Po(ki(window,"pointermove",this.handlePointerMove),ki(window,"pointerup",this.handlePointerUp),ki(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vi(this.updatePoint)}}function iv(t,e){return e?{point:e(t.point)}:t}function $S(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ov({point:t},e){return{point:t,delta:$S(t,Fk(e)),offset:$S(t,M5(e)),velocity:D5(e,.1)}}function M5(t){return t[0]}function Fk(t){return t[t.length-1]}function D5(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Fk(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Io(e)));)n--;if(!r)return{x:0,y:0};const o=Ai(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Yn(t){return t.max-t.min}function m0(t,e=0,n=.01){return Math.abs(t-e)<=n}function VS(t,e,n,r=.5){t.origin=r,t.originPoint=xt(e.min,e.max,t.origin),t.scale=Yn(n)/Yn(e),(m0(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=xt(n.min,n.max,t.origin)-t.originPoint,(m0(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Gu(t,e,n,r){VS(t.x,e.x,n.x,r?r.originX:void 0),VS(t.y,e.y,n.y,r?r.originY:void 0)}function FS(t,e,n){t.min=n.min+e.min,t.max=t.min+Yn(e)}function O5(t,e,n){FS(t.x,e.x,n.x),FS(t.y,e.y,n.y)}function jS(t,e,n){t.min=e.min-n.min,t.max=t.min+Yn(e)}function qu(t,e,n){jS(t.x,e.x,n.x),jS(t.y,e.y,n.y)}function N5(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?xt(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?xt(n,t,r.max):Math.min(t,n)),t}function US(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function $5(t,{top:e,left:n,bottom:r,right:i}){return{x:US(t.x,n,i),y:US(t.y,e,r)}}function BS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function V5(t,e){return{x:BS(t.x,e.x),y:BS(t.y,e.y)}}function F5(t,e){let n=.5;const r=Yn(t),i=Yn(e);return i>r?n=xc(e.min,e.max-r,t.min):r>i&&(n=xc(t.min,t.max-i,e.min)),jo(0,1,n)}function j5(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const g0=.35;function U5(t=g0){return t===!1?t=0:t===!0&&(t=g0),{x:zS(t,"left","right"),y:zS(t,"top","bottom")}}function zS(t,e,n){return{min:WS(t,e),max:WS(t,n)}}function WS(t,e){return typeof t=="number"?t:t[e]||0}const HS=()=>({translate:0,scale:1,origin:0,originPoint:0}),ja=()=>({x:HS(),y:HS()}),KS=()=>({min:0,max:0}),Vt=()=>({x:KS(),y:KS()});function Qr(t){return[t("x"),t("y")]}function jk({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function B5({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function z5(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function sv(t){return t===void 0||t===1}function v0({scale:t,scaleX:e,scaleY:n}){return!sv(t)||!sv(e)||!sv(n)}function cs(t){return v0(t)||Uk(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Uk(t){return GS(t.x)||GS(t.y)}function GS(t){return t&&t!=="0%"}function qh(t,e,n){const r=t-n,i=e*r;return n+i}function qS(t,e,n,r,i){return i!==void 0&&(t=qh(t,i,r)),qh(t,n,r)+e}function y0(t,e=0,n=1,r,i){t.min=qS(t.min,e,n,r,i),t.max=qS(t.max,e,n,r,i)}function Bk(t,{x:e,y:n}){y0(t.x,e.translate,e.scale,e.originPoint),y0(t.y,n.translate,n.scale,n.originPoint)}function W5(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ua(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Bk(t,s)),r&&cs(o.latestValues)&&Ua(t,o.latestValues))}e.x=QS(e.x),e.y=QS(e.y)}function QS(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function io(t,e){t.min=t.min+e,t.max=t.max+e}
vendor: 5,256 bytes, line 56
56function YS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,s=xt(t.min,t.max,o);y0(t,e[n],e[r],s,e.scale)}const H5=["x","scaleX","originX"],K5=["y","scaleY","originY"];function Ua(t,e){YS(t.x,e,H5),YS(t.y,e,K5)}function zk(t,e){return jk(z5(t.getBoundingClientRect(),e))}function G5(t,e,n){const r=zk(t,n),{scroll:i}=e;return i&&(io(r.x,i.offset.x),io(r.y,i.offset.y)),r}const q5=new WeakMap;class Q5{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Vt(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(nm(l,"page").point)},o=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:h}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=nk(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(m=>{let g=this.getAxisMotionValue(m).get()||0;if(oi.test(g)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[m];w&&(g=Yn(w)*(parseFloat(g)/100))}}this.originPoint[m]=g}),h&&ut.update(()=>h(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:h,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=Y5(m),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new Vk(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ut.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!gf(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=N5(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;e&&Va(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=$5(r.layoutBox,e):this.constraints=!1,this.elastic=U5(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Qr(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=j5(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Va(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=G5(r,i.root,this.visualElement.getTransformPagePoint());let s=V5(i.layout.layoutBox,o);if(n){const a=n(B5(s));this.hasMutatedConstraints=!!a,a&&(s=jk(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Qr(c=>{if(!gf(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:r?e[c]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(zb(e,r,0,n))}stopAnimation(){Qr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-xt(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Va(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=F5({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(s=>{if(!gf(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];
vendor: 30,428 bytes, line 56
56a.set(xt(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;q5.set(this.visualElement,this);const e=this.visualElement.current,n=ki(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Va(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Ti(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=g0,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function gf(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Y5(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class X5 extends Zo{constructor(e){super(e),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new Q5(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const XS=t=>(e,n)=>{t&&ut.update(()=>t(e,n))};class Z5 extends Zo{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(e){this.session=new Vk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:XS(e),onStart:XS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&ut.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=ki(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function J5(){const t=f.useContext(Xp);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=f.useId();return f.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Gf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ZS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const uu={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(me.test(t))t=parseFloat(t);else return t;const n=ZS(t,e.target.x),r=ZS(t,e.target.y);return`${n}% ${r}%`}},e6={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Uo.parse(t);if(i.length>5)return r;const o=Uo.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const u=xt(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class t6 extends Oe.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;l3(n6),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Gf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||ut.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Wk(t){const[e,n]=J5(),r=f.useContext(Lb);return Oe.createElement(t6,{...t,layoutGroup:r,switchLayoutGroup:f.useContext(FR),isPresent:e,safeToRemove:n})}const n6={borderRadius:{...uu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:uu,borderTopRightRadius:uu,borderBottomLeftRadius:uu,borderBottomRightRadius:uu,boxShadow:e6},Hk=["TopLeft","TopRight","BottomLeft","BottomRight"],r6=Hk.length,JS=t=>typeof t=="string"?parseFloat(t):t,eC=t=>typeof t=="number"||me.test(t);function i6(t,e,n,r,i,o){i?(t.opacity=xt(0,n.opacity!==void 0?n.opacity:1,o6(r)),t.opacityExit=xt(e.opacity!==void 0?e.opacity:1,0,s6(r))):o&&(t.opacity=xt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<r6;s++){const a=`border${Hk[s]}Radius`;let l=tC(e,a),u=tC(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||eC(l)===eC(u)?(t[a]=Math.max(xt(JS(l),JS(u),r),0),(oi.test(u)||oi.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=xt(e.rotate||0,n.rotate||0,r))}function tC(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const o6=Kk(0,.5,Fb),s6=Kk(.5,.95,kt);function Kk(t,e,n){return r=>r<t?0:r>e?1:n(xc(t,e,r))}function nC(t,e){t.min=e.min,t.max=e.max}function lr(t,e){nC(t.x,e.x),nC(t.y,e.y)}function rC(t,e,n,r,i){return t-=e,t=qh(t,1/n,r),i!==void 0&&(t=qh(t,1/i,r)),t}function a6(t,e=0,n=1,r=.5,i,o=t,s=t){if(oi.test(e)&&(e=parseFloat(e),e=xt(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=xt(o.min,o.max,r);t===o&&(a-=e),t.min=rC(t.min,e,n,a,i),t.max=rC(t.max,e,n,a,i)}function iC(t,e,[n,r,i],o,s){a6(t,e[n],e[r],e[i],e.scale,o,s)}const l6=["x","scaleX","originX"],u6=["y","scaleY","originY"];function oC(t,e,n,r){iC(t.x,e,l6,n?n.x:void 0,r?r.x:void 0),iC(t.y,e,u6,n?n.y:void 0,r?r.y:void 0)}function sC(t){return t.translate===0&&t.scale===1}function Gk(t){return sC(t.x)&&sC(t.y)}function c6(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function qk(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function aC(t){return Yn(t.x)/Yn(t.y)}class d6{constructor(){this.members=[]}add(e){Wb(this.members,e),e.scheduleRender()}remove(e){if(Hb(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lC(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const f6=(t,e)=>t.depth-e.depth;class h6{constructor(){this.children=[],this.isDirty=!1}add(e){Wb(this.children,e),this.isDirty=!0}remove(e){Hb(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(f6),this.isDirty=!1,this.children.forEach(e)}}function p6(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Vi(r),t(o-e))};return ut.read(r,!0),()=>Vi(r)}function m6(t){window.MotionDebug&&window.MotionDebug.record(t)}function g6(t){return t instanceof SVGElement&&t.tagName!=="svg"}function v6(t,e,n){const r=jn(t)?t:pl(t);return r.start(zb("",r,e,n)),r.animation}const uC=["","X","Y","Z"],cC=1e3;let y6=0;const ds={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Qk({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=y6++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{ds.totalNodes=ds.resolvedTargetDeltas=ds.recalculatedProjection=0,this.nodes.forEach(E6),this.nodes.forEach(T6),this.nodes.forEach(P6),this.nodes.forEach(_6),m6(ds)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new h6)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Kb),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=g6(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let d;const h=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=p6(h,250),Gf.hasAnimatedSinceResize&&(Gf.hasAnimatedSinceResize=!1,this.nodes.forEach(fC))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||A6,{onLayoutAnimationStart:b,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!qk(this.targetLayout,m)||p,y=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,y);const E={...Mk(g,"layout"),onPlay:b,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||fC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(I6),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(dC);return}this.isUpdating||this.nodes.forEach(C6),this.isUpdating=!1,this.nodes.forEach(x6),this.nodes.forEach(w6),this.nodes.forEach(b6),this.clearAllSnapshots();const a=performance.now();Kt.delta=jo(0,1e3/60,a-Kt.timestamp),Kt.timestamp=a,Kt.isProcessing=!0,Yg.update.process(Kt),Yg.preRender.process(Kt),Yg.render.process(Kt),Kt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(S6),this.sharedNodes.forEach(L6)}scheduleUpdateProjection(){ut.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ut.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Vt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Gk(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||cs(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),M6(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Vt();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(io(a.x,l.offset.x),io(a.y,l.offset.y)),a}removeElementScroll(s){const a=Vt();lr(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;if(u!==this.root&&c&&d.layoutScroll){if(c.isRoot){lr(a,s);const{scroll:h}=this.root;h&&(io(a.x,-h.offset.x),io(a.y,-h.offset.y))}io(a.x,c.offset.x),io(a.y,c.offset.y)}}return a}applyTransform(s,a=!1){const l=Vt();lr(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ua(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),cs(c.latestValues)&&Ua(l,c.latestValues)}return cs(this.latestValues)&&Ua(l,this.latestValues),l}removeTransform(s){const a=Vt();lr(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!cs(u.latestValues))continue;v0(u.latestValues)&&u.updateSnapshot();const c=Vt(),d=u.measurePageBox();lr(c,d),oC(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return cs(this.latestValues)&&oC(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Kt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Kt.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Vt(),this.relativeTargetOrigin=Vt(),qu(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Vt(),this.targetWithTransforms=Vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),O5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):lr(this.target,this.layout.layoutBox),Bk(this.target,this.targetDelta)):lr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Vt(),this.relativeTargetOrigin=Vt(),qu(this.relativeTargetOrigin,this.target,p.target),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ds.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||v0(this.parent.latestValues)||Uk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Kt.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;lr(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;W5(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=ja(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ja(),this.projectionDeltaWithTransform=ja());const g=this.projectionTransform;Gu(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=lC(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==h||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ds.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=ja();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Vt(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,b=this.getStack(),w=!b||b.members.length<=1,v=!!(g&&!w&&this.options.crossfade===!0&&!this.path.some(k6));this.animationProgress=0;let y;this.mixTargetDelta=E=>{const C=E/1e3;hC(d.x,s.x,C),hC(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),R6(this.relativeTarget,this.relativeTargetOrigin,h,C),y&&c6(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Vt()),lr(y,this.relativeTarget)),g&&(this.animationValues=c,i6(c,u,this.latestValues,C,v,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ut.update(()=>{Gf.hasAnimatedSinceResize=!0,this.currentAnimation=v6(0,cC,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(cC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Yk(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Vt();const d=Yn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=Yn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}lr(a,l),Ua(a,c),Gu(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new d6),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c<uC.length;c++){const d="rotate"+uC[c];l[d]&&(u[d]=l[d],s.setStaticValue(d,0))}s.render();for(const c in u)s.setStaticValue(c,u[c]);s.scheduleRender()}getProjectionStyles(s={}){var a,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Kf(s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Kf(s.pointerEvents)||""),this.hasProjected&&!cs(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=lC(this.projectionDeltaWithTransform,this.treeScale,h),c&&(u.transform=c(h,u.transform));const{x:p,y:m}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in Uh){if(h[g]===void 0)continue;const{correct:b,applyTo:w}=Uh[g],v=u.transform==="none"?h[g]:b(h[g],d);if(w){const y=w.length;for(let E=0;E<y;E++)u[w[E]]=v}else u[g]=v}return this.options.layoutId&&(u.pointerEvents=d===this?Kf(s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(dC),this.root.sharedNodes.clear()}}}function w6(t){t.updateLayout()}function b6(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?Qr(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=Yn(h);h.min=r[d].min,h.max=h.min+p}):Yk(o,n.layoutBox,r)&&Qr(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=Yn(r[d]);h.max=h.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+p)});const a=ja();Gu(a,r,n.layoutBox);const l=ja();s?Gu(l,t.applyTransform(i,!0),n.measuredBox):Gu(l,r,n.layoutBox);const u=!Gk(a);let c=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const m=Vt();qu(m,n.layoutBox,h.layoutBox);const g=Vt();qu(g,r,p.layoutBox),qk(m,g)||(c=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function E6(t){ds.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function _6(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function S6(t){t.clearSnapshot()}function dC(t){t.clearMeasurements()}function C6(t){t.isLayoutDirty=!1}function x6(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function fC(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function T6(t){t.resolveTargetDelta()}function P6(t){t.calcProjection()}function I6(t){t.resetRotation()}function L6(t){t.removeLeadSnapshot()}function hC(t,e,n){t.translate=xt(e.translate,0,n),t.scale=xt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function pC(t,e,n,r){t.min=xt(e.min,n.min,r),t.max=xt(e.max,n.max,r)}function R6(t,e,n,r){pC(t.x,e.x,n.x,r),pC(t.y,e.y,n.y,r)}function k6(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const A6={duration:.45,ease:[.4,0,.1,1]},mC=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),gC=mC("applewebkit/")&&!mC("chrome/")?Math.round:kt;function vC(t){t.min=gC(t.min),t.max=gC(t.max)}function M6(t){vC(t.x),vC(t.y)}function Yk(t,e,n){return t==="position"||t==="preserve-aspect"&&!m0(aC(e),aC(n),.2)}const D6=Qk({attachResizeListener:(t,e)=>Ti(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),av={current:void 0},Xk=Qk({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!av.current){const t=new D6({});t.mount(window),t.setOptions({layoutScroll:!0}),av.current=t}return av.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),O6={pan:{Feature:Z5},drag:{Feature:X5,ProjectionNode:Xk,MeasureLayout:Wk}},N6=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $6(t){const e=N6.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function w0(t,e,n=1){const[r,i]=$6(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return Dk(s)?parseFloat(s):s}else return l0(i)?w0(i,e,n+1):i}function V6(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}
56),t.values.forEach(i=>{const o=i.get();if(!l0(o))return;const s=w0(o,r);s&&i.set(s)});for(const i in e){const o=e[i];if(!l0(o))continue;const s=w0(o,r);s&&(e[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const F6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zk=t=>F6.has(t),j6=t=>Object.keys(t).some(Zk),yC=t=>t===ea||t===me,wC=(t,e)=>parseFloat(t.split(", ")[e]),bC=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return wC(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?wC(o[1],t):0}},U6=new Set(["x","y","z"]),B6=od.filter(t=>!U6.has(t));function z6(t){const e=[];return B6.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const ml={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:bC(4,13),y:bC(5,14)};ml.translateX=ml.x;ml.translateY=ml.y;const W6=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(u=>{a[u]=ml[u](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(u=>{const c=e.getValue(u);c&&c.jump(a[u]),t[u]=ml[u](l,o)}),t},H6=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(Zk);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=t.getValue(l);if(!t.hasValue(l))return;let c=n[l],d=lu(c);const h=e[l];let p;if(zh(h)){const m=h.length,g=h[0]===null?1:0;c=h[g],d=lu(c);for(let b=g;b<m&&h[b]!==null;b++)p?Vb(lu(h[b])===p):p=lu(h[b])}else p=lu(h);if(d!==p)if(yC(d)&&yC(p)){const m=u.get();typeof m=="string"&&u.set(parseFloat(m)),typeof h=="string"?e[l]=parseFloat(h):Array.isArray(h)&&p===me&&(e[l]=h.map(parseFloat))}else d!=null&&d.transform&&(p!=null&&p.transform)&&(c===0||h===0)?c===0?u.set(p.transform(c)):e[l]=d.transform(h):(s||(o=z6(t),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:e[l],u.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=W6(e,t,a);return o.length&&o.forEach(([c,d])=>{t.getValue(c).set(d)}),t.render(),Zp&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:e,transitionEnd:r}};function K6(t,e,n,r){return j6(e)?H6(t,e,n,r):{target:e,transitionEnd:r}}const G6=(t,e,n,r)=>{const i=V6(t,e,r);return e=i.target,r=i.transitionEnd,K6(t,e,n,r)},b0={current:null},Jk={current:!1};function q6(){if(Jk.current=!0,!!Zp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>b0.current=t.matches;t.addListener(e),e()}else b0.current=!1}function Q6(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(jn(o))t.addValue(i,o),Gh(r)&&r.add(i);else if(jn(s))t.addValue(i,pl(o,{owner:t})),Gh(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,pl(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const EC=new WeakMap,eA=Object.keys(Cc),Y6=eA.length,_C=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],X6=Ib.length;class Z6{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ut.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=em(n),this.isVariantNode=VR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const h=c[d];a[d]!==void 0&&jn(h)&&(h.set(a[d],!1),Gh(u)&&u.add(d))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,EC.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
56h((n,r)=>this.bindToMotionValue(r,n)),Jk.current||q6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:b0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){EC.delete(this.current),this.projection&&this.projection.unmount(),Vi(this.notifyUpdate),Vi(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Js.has(e),i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&ut.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let s,a;for(let l=0;l<Y6;l++){const u=eA[l],{isEnabled:c,Feature:d,ProjectionNode:h,MeasureLayout:p}=Cc[u];h&&(s=h),c(n)&&(!this.features[u]&&d&&(this.features[u]=new d(this)),p&&(a=p))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||d&&Va(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:p})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Vt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_C.length;r++){const i=_C[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Q6(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<X6;r++){const i=Ib[r],o=this.props[i];(Sc(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=pl(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=$b(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!jn(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Kb),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class tA extends Z6{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let s=v5(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){m5(this,r,s);const a=G6(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function J6(t){return window.getComputedStyle(t)}class eB extends tA{readValueFromInstance(e,n){if(Js.has(n)){const r=Bb(n);return r&&r.default||0}else{const r=J6(e),i=(BR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return zk(e,n)}build(e,n,r,i){kb(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Nb(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;jn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){qR(e,n,r,i)}}class tB extends tA{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Js.has(n)){const r=Bb(n);return r&&r.default||0}return n=QR.has(n)?n:Ob(n),e.getAttribute(n)}measureInstanceViewportBox(){return Vt()}scrapeMotionValuesFromProps(e,n){return XR(e,n)}build(e,n,r,i){Mb(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){YR(e,n,r,i)}mount(e){this.isSVGTag=Db(e.tagName),super.mount(e)}}const nB=(t,e)=>Rb(t)?new tB(e,{enableHardwareAcceleration:!1}):new eB(e,{enableHardwareAcceleration:!0}),rB={layout:{ProjectionNode:Xk,MeasureLayout:Wk}},iB={...k5,...X3,...O6,...rB},Gb=s3((t,e)=>V3(t,e,iB,nB));function nA(){const t=f.useRef(!1);return Tb(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function oB(){const t=nA(),[e,n]=f.useState(0),r=f.useCallback(()=>{t.current&&n(e+1)},[e]);return[f.useCallback(()=>ut.postRender(r),[r]),e]}class sB extends f.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function aB({children:t,isPresent:e}){const n=f.useId(),r=f.useRef(null),i=f.useRef({width:0,height:0,top:0,left:0});return f.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(e||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 57 [data-motion-pop-id="${n}"] { 58 position: absolute !important; 59 width: ${o}px !important; 60 height: ${s}px !important; 61 top: ${a}px !important; 62 left: ${l}px !important; 63 } 64 `),()=>{document.head.removeChild(u)}},[e]),f.createElement(sB,{isPresent:e,childRef:r,sizeRef:i},f.cloneElement(t,{ref:r}))}const lv=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=ZR(lB),l=f.useId(),u=f.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?void 0:[n]);return f.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),f.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(t=f.createElement(aB,{isPresent:n},t)),f.createElement(Xp.Provider,{value:u},t)};function lB(){return new Map}function uB(t){return f.useEffect(()=>()=>t(),[])}const wa=t=>t.key||"";function cB(t,e){t.forEach(n=>{const r=wa(n);e.set(r,n)})}function dB(t){const e=[];
64return f.Children.forEach(t,n=>{f.isValidElement(n)&&e.push(n)}),e}const rA=({children:t,custom:e,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=f.useContext(Lb).forceRender||oB()[0],l=nA(),u=dB(t);let c=u;const d=f.useRef(new Map).current,h=f.useRef(c),p=f.useRef(new Map).current,m=f.useRef(!0);if(Tb(()=>{m.current=!1,cB(u,p),h.current=c}),uB(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return f.createElement(f.Fragment,null,c.map(v=>f.createElement(lv,{key:wa(v),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},v)));c=[...c];const g=h.current.map(wa),b=u.map(wa),w=g.length;for(let v=0;v<w;v++){const y=g[v];b.indexOf(y)===-1&&!d.has(y)&&d.set(y,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((v,y)=>{if(b.indexOf(y)!==-1)return;const E=p.get(y);if(!E)return;const C=g.indexOf(y);let S=v;if(!S){const P=()=>{p.delete(y),d.delete(y);const _=h.current.findIndex(k=>k.key===y);if(h.current.splice(_,1),!d.size){if(h.current=u,l.current===!1)return;a(),r&&r()}};S=f.createElement(lv,{key:wa(E),isPresent:!1,onExitComplete:P,custom:e,presenceAffectsLayout:o,mode:s},E),d.set(y,S)}c.splice(C,0,S)}
64),c=c.map(v=>{const y=v.key;return d.has(y)?v:f.createElement(lv,{key:wa(v),isPresent:!0,presenceAffectsLayout:o,mode:s},v)}),f.createElement(f.Fragment,null,d.size?c:c.map(v=>f.cloneElement(v)))};var SC={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};function fB(t){let e=hl(t,{enabled:typeof t.elementType=="string"}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}function hB(t){const{as:e,className:n,orientation:r,...i}=t;let o=e||"hr";o==="hr"&&r==="vertical"&&(o="div");const{separatorProps:s}=fB({elementType:typeof o=="string"?o:"hr",orientation:r}),a=f.useMemo(()=>Dj({orientation:r,className:n}),[r,n]),l=f.useCallback((u={})=>({className:a,role:"separator","data-orientation":r,...s,...i,...u}),[a,r,s,i]);return{Component:o,getDividerProps:l}}var iA=Cn((t,e)=>{const{Component:n,getDividerProps:r}=hB({...t});return T.jsx(n,{ref:e,...r()})});iA.displayName="NextUI.Divider";var CC=iA,pB=globalThis!=null&&globalThis.document?f.useLayoutEffect:f.useEffect;function mB(t={}){const{loading:e,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=t,[u,c]=f.useState("pending");f.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=f.useRef(),h=f.useCallback(()=>{if(!n)return;p();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),e&&(m.loading=e),m.onload=g=>{p(),c("loaded"),i==null||i(g)},m.onerror=g=>{p(),c("failed"),o==null||o(g)},d.current=m},[n,s,r,a,i,o,e]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return pB(()=>{if(!l)return u==="loading"&&h(),()=>{p()}},[u,h,l]),l?"loaded":u}var[rne,gB]=xb({name:"ButtonGroupContext",strict:!1});function qb(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:s,onPressChange:a,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:c,href:d,target:h,rel:p,type:m="button",allowTextSelectionOnPress:g}=t,b;n==="button"?b={type:m,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:d,target:n==="a"?h:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:w,isPressed:v}=fR({onPressStart:o,onPressEnd:s,onPressChange:a,onPress:i,isDisabled:r,preventFocusOnPress:l,allowTextSelectionOnPress:g,ref:e}),{focusableProps:y}=ER(t,e);u&&(y.tabIndex=r?-1:y.tabIndex);let E=Yt(y,w,rR(t,{labelable:!0}));return{isPressed:v,buttonProps:Yt(b,E,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:C=>{c&&c(C)}})}}var vB=(t,e,n)=>Math.min(Math.max(t,e),n),oA=t=>{const{ripples:e=[],motionProps:n,color:r="currentColor",style:i,onClear:o}=t;return T.jsx(T.Fragment,{children:e.map(s=>{const a=vB(.01*s.size,.2,s.size>100?.75:.5);return T.jsx(rA,{mode:"popLayout",children:T.jsx(Gb.span,{animate:{transform:"scale(2)",opacity:0}
64,className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...i},transition:{duration:a},onAnimationEnd:()=>o(s.key),onTransitionEnd:()=>o(s.key),...n})},s.key)})})};oA.displayName="NextUI.Ripple";var sA=oA;function aA(t={}){const[e,n]=f.useState([]),r=f.useCallback(o=>{const s=o.currentTarget,a=Math.max(s.clientWidth,s.clientHeight),l=s.getBoundingClientRect();n(u=>[...u,{key:$j(u.length.toString()),size:a,x:o.clientX-l.x-a/2,y:o.clientY-l.y-a/2}])},[]),i=f.useCallback(o=>{n(s=>s.filter(a=>a.key!==o))},[]);return{ripples:e,onClick:r,onClear:i,...t}}function yB(t){var e,n,r,i,o,s,a,l;const u=gB(),c=!!u,{ref:d,as:h,children:p,startContent:m,endContent:g,autoFocus:b,className:w,spinner:v,fullWidth:y=(e=u==null?void 0:u.fullWidth)!=null?e:!1,size:E=(n=u==null?void 0:u.size)!=null?n:"md",color:C=(r=u==null?void 0:u.color)!=null?r:"default",variant:S=(i=u==null?void 0:u.variant)!=null?i:"solid",disableAnimation:P=(o=u==null?void 0:u.disableAnimation)!=null?o:!1,radius:_=u==null?void 0:u.radius,disableRipple:k=(s=u==null?void 0:u.disableRipple)!=null?s:!1,isDisabled:L=(a=u==null?void 0:u.isDisabled)!=null?a:!1,isIconOnly:I=(l=u==null?void 0:u.isIconOnly)!=null?l:!1,isLoading:M=!1,spinnerPlacement:R="start",onPress:A,onClick:O,...j}=t,U=h||"button",D=typeof U=="string",B=Un(d),{isFocusVisible:K,isFocused:x,focusProps:$}=_c({autoFocus:b}),G=L||M,Z=f.useMemo(()=>Oj({size:E,color:C,variant:S,radius:_,fullWidth:y,isDisabled:G,isInGroup:c,disableAnimation:P,isIconOnly:I,className:w}),[E,C,S,_,y,G,c,I,P,w]),{onClick:te,onClear:F,ripples:Y}=aA(),re=f.useCallback(ae=>{k||G||P||B.current&&te(ae)},[k,G,P,B,te]),{buttonProps:X,isPressed:fe}=qb({elementType:h,isDisabled:G,onPress:A,onClick:nd(O,re),...j},B),{isHovered:Te,hoverProps:Me}=qp({isDisabled:G}),De=f.useCallback((ae={})=>({"data-disabled":_e(G),"data-focus":_e(x),"data-pressed":_e(fe),"data-focus-visible":_e(K),"data-hover":_e(Te),"data-loading":_e(M),...Yt(X,$,Me,hl(j,{enabled:D}),hl(ae))}),[M,G,x,fe,D,K,Te,X,$,Me,j]),Je=ae=>f.isValidElement(ae)?f.cloneElement(ae,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,qe=Je(m),$e=Je(g),ot=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[E],[E]),We=f.useCallback(()=>({ripples:Y,onClear:F}),[Y,F]);return{Component:U,children:p,domRef:B,spinner:v,styles:Z,startContent:qe,endContent:$e,isLoading:M,spinnerPlacement:R,spinnerSize:ot,disableRipple:k,getButtonProps:De,getRippleProps:We}}function wB(t){const[e,n]=id(t,hS.variantKeys),{children:r,className:i,classNames:o,label:s,...a}=e,l=f.useMemo(()=>hS({...n}),[...Object.values(n)]),u=pt(o==null?void 0:o.base,i),c=s||r,d=f.useMemo(()=>c&&typeof c=="string"?c:a["aria-label"]?"":"Loading",[r,c,a["aria-label"]]),h=f.useCallback(()=>({"aria-label":d,className:l.base({class:u}),...a}),[d,l,u,a]);return{label:c,slots:l,classNames:o,getSpinnerProps:h}}var lA=Cn((t,e)=>{const{slots:n,classNames:r,label:i,getSpinnerProps:o}=wB({...t});return T.jsxs("div",{ref:e,...o(),children:[T.jsxs("div",{className:n.wrapper({class:r==null?void 0:r.wrapper}),children:[T.jsx("i",{className:n.circle1({class:r==null?void 0:r.circle1})}),T.jsx("i",{className:n.circle2({class:r==null?void 0:r.circle2})})]}),i&&T.jsx("span",{className:n.label(),children:i})]})});lA.displayName="NextUI.Spinner";var Qb=lA,uA=Cn((t,e)=>{const{Component:n,domRef:r,children:i,styles:o,spinnerSize:s,spinner:a=T.jsx(Qb,{color:"current",size:s}),spinnerPlacement:l,startContent:u,endContent:c,isLoading:d,disableRipple:h,getButtonProps:p,getRippleProps:m}=yB({...t,ref:e});return T.jsxs(n,{ref:r,className:o,...p(),children:[u,d&&l==="start"&&a,i,d&&l==="end"&&a,c,!h&&T.jsx(sA,{...m()})]})});uA.displayName="NextUI.Button";var im=uA,[bB,Yb]=xb({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),cA=Cn((t,e)=>{var n;const{as:r,className:i,children:o,...s}=t,a=r||"div",l=Un(e),{slots:u,classNames:c}=Yb(),d=pt(c==null?void 0:c.body,i);return T.jsx(a,{ref:l,className:(n=u.body)==null?void 0:n.call(u,{class:d}),...s,children:o})});
64cA.displayName="NextUI.CardBody";var E0=cA,dA=Cn((t,e)=>{var n;const{as:r,className:i,children:o,...s}=t,a=r||"div",l=Un(e),{slots:u,classNames:c}=Yb(),d=pt(c==null?void 0:c.footer,i);return T.jsx(a,{ref:l,className:(n=u.footer)==null?void 0:n.call(u,{class:d}),...s,children:o})});dA.displayName="NextUI.CardFooter";var fA=dA,hA=Cn((t,e)=>{var n;const{as:r,className:i,children:o,...s}=t,a=r||"div",l=Un(e),{slots:u,classNames:c}=Yb(),d=pt(c==null?void 0:c.header,i);return T.jsx(a,{ref:l,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...s,children:o})});hA.displayName="NextUI.CardHeader";var EB=hA;function _B(t){const[e,n]=id(t,vS.variantKeys),{ref:r,as:i,children:o,disableRipple:s=!1,onClick:a,onPress:l,autoFocus:u,className:c,classNames:d,allowTextSelectionOnPress:h=!0,...p}=e,m=Un(r),g=i||(t.isPressable?"button":"div"),b=typeof g=="string",w=pt(d==null?void 0:d.base,c),{onClick:v,onClear:y,ripples:E}=aA(),C=U=>{!t.disableAnimation&&!s&&m.current&&v(U)},{buttonProps:S,isPressed:P}=qb({onPress:l,elementType:i,isDisabled:!t.isPressable,onClick:nd(a,C),allowTextSelectionOnPress:h,...p},m),{hoverProps:_,isHovered:k}=qp({isDisabled:!t.isHoverable,...p}),{isFocusVisible:L,isFocused:I,focusProps:M}=_c({autoFocus:u}),R=f.useMemo(()=>vS({...n}),[...Object.values(n)]),A=f.useMemo(()=>({isDisabled:t.isDisabled,isFooterBlurred:t.isFooterBlurred,disableAnimation:t.disableAnimation,fullWidth:t.fullWidth,slots:R,classNames:d}),[R,d,t.isDisabled,t.isFooterBlurred,t.disableAnimation,t.fullWidth]),O=f.useCallback((U={})=>({ref:m,className:R.base({class:w}),tabIndex:t.isPressable?0:-1,"data-hover":_e(k),"data-pressed":_e(P),"data-focus":_e(I),"data-focus-visible":_e(L),"data-disabled":_e(t.isDisabled),...Yt(t.isPressable?{...S,...M,role:"button"}:{},t.isHoverable?_:{},hl(p,{enabled:b}),hl(U))}),[m,R,w,b,t.isPressable,t.isHoverable,t.isDisabled,k,P,L,S,M,_,p]),j=f.useCallback(()=>({ripples:E,onClear:y}),[E,y]);return{context:A,domRef:m,Component:g,classNames:d,children:o,isHovered:k,isPressed:P,isPressable:t.isPressable,isHoverable:t.isHoverable,disableAnimation:t.disableAnimation,disableRipple:s,handleClick:C,isFocusVisible:L,getCardProps:O,getRippleProps:j}}var pA=Cn((t,e)=>{const{children:n,context:r,Component:i,isPressable:o,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:u}=_B({...t,ref:e});return T.jsxs(i,{...l(),children:[T.jsx(bB,{value:r,children:n}),o&&!s&&!a&&T.jsx(sA,{...u()})]})});pA.displayName="NextUI.Card";var mA=pA;function SB(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Oh(e);let s=Oh(),a={};n?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:o==="label"?e:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=q4({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function CB(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:s}=SB(t),a=q1([!!e,!!n,r,i]),l=q1([!!e,!!n,r,i]);return s=Yt(s,{"aria-describedby":[a,l,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function xB(t={}){let{isReadOnly:e}=t,[n,r]=vb(t.isSelected,t.defaultSelected||!1,t.onChange);function i(s){e||r(s)}function o(){e||r(!n)}return{isSelected:n,setSelected:i,toggle:o}}function TB(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,validationState:s,isInvalid:a=!1,type:l="text",value:u,defaultValue:c,onChange:d=()=>{}}=t,{focusableProps:h}=ER(t,e),{labelProps:p,fieldProps:m,descriptionProps:g,errorMessageProps:b}=CB(t),w=rR(t,{labelable:!0});const v={type:l,pattern:t.pattern};var y;return Z4(e,(y=u??c)!==null&&y!==void 0?y:"",d),{labelProps:p,inputProps:Yt(w,n==="input"&&v,{disabled:r,readOnly:o,"aria-required":i||void 0,"aria-invalid":a||s==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],value:t.value,defaultValue:t.value?void 0:t.defaultValue,onChange:E=>d(E.target.value),autoComplete:t.autoComplete,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...h,...m}),descriptionProps:g,errorMessageProps:b}}function PB(t){const[e,n]=id(t,pS.variantKeys),{ref:r,as:i,label:o,description:s,errorMessage:a,className:l,classNames:u,autoFocus:c,startContent:d,endContent:h,onClear:p,onChange:m,validationState:g,onValueChange:b=()=>{},...w}=e,v=f.useCallback(ve=>{b(ve??"")},[b]),[y,E]=vb(e.value,e.defaultValue,v),[C,S]=f.useState(!1),P=i||"div",_=!!y,k=_||C,L=pt(u==null?void 0:u.base,l,_?"is-filled":""),I=t.isMultiline,M=Un(r),R=f.useCallback(()=>{E(""),M.current&&(M.current.value="",M.current.focus()),p==null||p()},[M,E,p]),{labelProps:A,inputProps:O,descriptionProps:j,errorMessageProps:U}=TB({...t,"aria-label":Nj(t==null?void 0:t["aria-label"],t==null?void 0:t.label,t==null?void 0:t.placeholder),inputElementType:I?"textarea":"input",onChange:E},M),{isFocusVisible:D,isFocused:B,focusProps:K}=_c({autoFocus:c,isTextInput:!0}),{isHovered:x,hoverProps:$}=qp({isDisabled:!!(t!=null&&t.isDisabled)}
64),{focusProps:G,isFocusVisible:Z}=_c(),{focusWithinProps:te}=vR({onFocusWithinChange:S}),{pressProps:F}=fR({isDisabled:!!(t!=null&&t.isDisabled),onPress:R}),Y=g==="invalid"||t.isInvalid,re=f.useMemo(()=>{var ve;return(!t.labelPlacement||t.labelPlacement==="inside")&&!o?"outside":(ve=t.labelPlacement)!=null?ve:"inside"},[t.labelPlacement,o]),X=!e.placeholder&&re!=="outside-left"&&!I,fe=!!p||t.isClearable,Te=!!o||!!s||!!a,Me=!!e.placeholder,De=!!s||!!a,Je=re==="outside"||re==="outside-left",qe=re==="inside",$e=!!d,ot=Je?re==="outside-left"||Me||re==="outside"&&$e:!1,We=re==="outside"&&!Me&&!$e,ae=f.useMemo(()=>pS({...n,isInvalid:Y,isClearable:fe,labelPlacement:re,isLabelPlaceholder:X&&!$e}),[...Object.values(n),Y,re,fe,X,$e]),Ce=f.useCallback((ve={})=>({className:ae.base({class:L}),"data-filled":_e(_),"data-filled-within":_e(k),"data-focus-within":_e(C),"data-focus-visible":_e(D),"data-readonly":_e(t.isReadOnly),"data-focus":_e(B),"data-hover":_e(x),"data-required":_e(t.isRequired),"data-invalid":_e(Y),"data-disabled":_e(t.isDisabled),"data-has-elements":_e(Te),"data-has-helper":_e(De),...te,...ve}),[ae,L,_,B,x,Y,De,Te,C,D,k,te,t.isReadOnly,t.isRequired,t.isDisabled]),xe=f.useCallback((ve={})=>({className:ae.label({class:u==null?void 0:u.label}),...A,...ve}),[ae,A,u==null?void 0:u.label]),wt=f.useCallback((ve={})=>({ref:M,"data-filled":_e(_),"data-filled-within":_e(k),className:ae.input({class:pt(u==null?void 0:u.input,y?"is-filled":"")}),...Yt(K,O,hl(w,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(O))}),ve),required:t.isRequired,"aria-readonly":_e(t.isReadOnly),"aria-required":_e(t.isRequired),onChange:nd(O.onChange,m)}),[ae,y,K,O,w,_,k,u==null?void 0:u.input,t.isReadOnly,t.isRequired,m]),ct=f.useCallback((ve={})=>({"data-hover":_e(x),"data-focus-visible":_e(D),"data-focus":_e(B),className:ae.inputWrapper({class:pt(u==null?void 0:u.inputWrapper,y?"is-filled":"")}),onClick:gi=>{var is;gi.target===gi.currentTarget&&((is=M.current)==null||is.focus())},...Yt(ve,$),style:{cursor:"text",...ve.style}}),[ae,x,D,B,y,u==null?void 0:u.inputWrapper]),de=f.useCallback((ve={})=>({...ve,className:ae.innerWrapper({class:pt(u==null?void 0:u.innerWrapper,ve==null?void 0:ve.className)})}),[ae,u==null?void 0:u.innerWrapper]),un=f.useCallback((ve={})=>({...ve,className:ae.mainWrapper({class:pt(u==null?void 0:u.mainWrapper,ve==null?void 0:ve.className)})}),[ae,u==null?void 0:u.mainWrapper]),zr=f.useCallback((ve={})=>({...ve,className:ae.helperWrapper({class:pt(u==null?void 0:u.helperWrapper,ve==null?void 0:ve.className)})}),[ae,u==null?void 0:u.helperWrapper]),zn=f.useCallback((ve={})=>({...ve,...j,className:ae.description({class:pt(u==null?void 0:u.description,ve==null?void 0:ve.className)})}),[ae,u==null?void 0:u.description]),Wr=f.useCallback((ve={})=>({...ve,...U,className:ae.errorMessage({class:pt(u==null?void 0:u.errorMessage,ve==null?void 0:ve.className)})}),[ae,U,u==null?void 0:u.errorMessage]),He=f.useCallback((ve={})=>({...ve,role:"button",tabIndex:0,"data-focus-visible":_e(Z),className:ae.clearButton({class:pt(u==null?void 0:u.clearButton,ve==null?void 0:ve.className)}),...Yt(F,G)}),[ae,Z,F,G,u==null?void 0:u.clearButton]);return{Component:P,classNames:u,domRef:M,label:o,description:s,startContent:d,endContent:h,labelPlacement:re,isClearable:fe,isInvalid:Y,hasHelper:De,hasStartContent:$e,isLabelOutside:ot,isLabelOutsideAsPlaceholder:We,shouldLabelBeOutside:Je,shouldLabelBeInside:qe,hasPlaceholder:Me,errorMessage:a,getBaseProps:Ce,getLabelProps:xe,getInputProps:wt,getMainWrapperProps:un,getInputWrapperProps:ct,getInnerWrapperProps:de,getHelperWrapperProps:zr,getDescriptionProps:zn,getErrorMessageProps:Wr,getClearButtonProps:He}}var gA=Cn((t,e)=>{const{Component:n,label:r,description:i,isClearable:o,startContent:s,endContent:a,labelPlacement:l,hasPlaceholder:u,hasHelper:c,isLabelOutside:d,isLabelOutsideAsPlaceholder:h,shouldLabelBeOutside:p,errorMessage:m,getBaseProps:g,getLabelProps:b,getInputProps:w,getInnerWrapperProps:v,getInputWrapperProps:y,getMainWrapperProps:E,getHelperWrapperProps:C,getDescriptionProps:S,getErrorMessageProps:P,getClearButtonProps:_}=PB({...t,ref:e}),k=r?T.jsx("label",{...b(),children:r}):null,L=f.useMemo(()=>o?T.jsx("span",{..._(),children:a||T.jsx(Xj,{})}):a,[o,_]),I=f.useMemo(()=>c?T.jsx("div",{...C(),children:m?T.jsx("div",{...P(),children:m}):i?T.jsx("div",{...S(),children:i}):null}):null,[c,m,i,C,P,S]),M=f.useMemo(()=>s||L?T.jsxs("div",{...v(),children:[s,T.jsx("input",{...w()}),L]}):T.jsx("input",{...w()}),[s,L,w,v]),R=f.useMemo(()=>p?T.jsxs("div",{...E(),children:[T.jsxs("div",{...y(),children:[h?k:null,M]}),I]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{...y(),children:[k,M]}),I]}),[l,I,p,h,u,k,M,m,i,E,y,P,S]);return T.jsxs(n,{...g(),children:[d?k:null,R]})});gA.displayName="NextUI.Input";var Rs=gA,qf="right-scroll-bar-position",Qf="width-before-scroll-bar",IB="with-scroll-bars-hidden",LB="--removed-body-scroll-bar-size";function RB(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function kB(t,e){var n=f.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}
vendor: 4,122 bytes, lines 64-79
64function AB(t,e){return kB(e||null,function(n){return t.forEach(function(r){return RB(r,n)})})}function MB(t){return t}function DB(t,e){e===void 0&&(e=MB);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var s=e(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function OB(t){t===void 0&&(t={});var e=DB(null);return e.options=Zr({async:!0,ssr:!1},t),e}var vA=function(t){var e=t.sideCar,n=rd(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Zr({},n))};vA.isSideCarExport=!0;function NB(t,e){return t.useMedium(e),vA}var yA=OB(),uv=function(){},om=f.forwardRef(function(t,e){var n=f.useRef(null),r=f.useState({onScrollCapture:uv,onWheelCapture:uv,onTouchMoveCapture:uv}),i=r[0],o=r[1],s=t.forwardProps,a=t.children,l=t.className,u=t.removeScrollBar,c=t.enabled,d=t.shards,h=t.sideCar,p=t.noIsolation,m=t.inert,g=t.allowPinchZoom,b=t.as,w=b===void 0?"div":b,v=t.gapMode,y=rd(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,C=AB([n,e]),S=Zr(Zr({},y),i);return f.createElement(f.Fragment,null,c&&f.createElement(E,{sideCar:yA,removeScrollBar:u,shards:d,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:v}),s?f.cloneElement(f.Children.only(a),Zr(Zr({},S),{ref:C})):f.createElement(w,Zr({},S,{className:l,ref:C}),a))});om.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};om.classNames={fullWidth:Qf,zeroRight:qf};var xC,$B=function(){if(xC)return xC;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VB(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=$B();return e&&t.setAttribute("nonce",e),t}function FB(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function jB(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var UB=function(){var t=0,e=null;return{add:function(n){t==0&&(e=VB())&&(FB(e,n),jB(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},BB=function(){var t=UB();return function(e,n){f.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},wA=function(){var t=BB(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},zB={left:0,top:0,right:0,gap:0},cv=function(t){return parseInt(t||"",10)||0},WB=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[cv(n),cv(r),cv(i)]},HB=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return zB;var e=WB(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},KB=wA(),GB=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),` 65 .`.concat(IB,` { 66 overflow: hidden `).concat(r,`; 67 padding-right: `).concat(a,"px ").concat(r,`; 68 } 69 body { 70 overflow: hidden `).concat(r,`; 71 overscroll-behavior: contain; 72 `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&` 73 padding-left: `.concat(i,`px; 74 padding-top: `).concat(o,`px; 75 padding-right: `).concat(s,`px; 76 margin-left:0; 77 margin-top:0; 78 margin-right: `).concat(a,"px ").concat(r,`; 79 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
79")].filter(Boolean).join(""),` 80 } 81 82 .`).concat(qf,` { 83 right: `).concat(a,"px ").concat(r,`; 84 } 85 86 .`).concat(Qf,` { 87 margin-right: `).concat(a,"px ").concat(r,`; 88 } 89 90 .`).concat(qf," .").concat(qf,` { 91 right: 0 `).concat(r,`; 92 } 93 94 .`).concat(Qf," .").concat(Qf,` { 95 margin-right: 0 `).concat(r,`; 96 } 97 98 body { 99 `).concat(LB,": ").concat(a,`px; 100 } 101`)},qB=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r,o=f.useMemo(function(){return HB(i)},[i]);return f.createElement(KB,{styles:GB(o,!e,i,n?"":"!important")})},_0=!1;if(typeof window<"u")try{var vf=Object.defineProperty({},"passive",{get:function(){return _0=!0,!0}});window.addEventListener("test",vf,vf),window.removeEventListener("test",vf,vf)}catch{_0=!1}var ma=_0?{passive:!1}:!1,QB=function(t){return t.tagName==="TEXTAREA"},bA=function(t,e){var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!QB(t)&&n[e]==="visible")},YB=function(t){return bA(t,"overflowY")},XB=function(t){return bA(t,"overflowX")},TC=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=EA(t,r);if(i){var o=_A(t,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ZB=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},JB=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},EA=function(t,e){return t==="v"?YB(e):XB(e)},_A=function(t,e){return t==="v"?ZB(e):JB(e)},e9=function(t,e){return t==="h"&&e==="rtl"?-1:1},t9=function(t,e,n,r,i){var o=e9(t,window.getComputedStyle(e).direction),s=o*r,a=n.target,l=e.contains(a),u=!1,c=s>0,d=0,h=0;do{var p=_A(t,a),m=p[0],g=p[1],b=p[2],w=g-b-o*m;(m||w)&&EA(t,a)&&(d+=w,h+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(c&&(i&&Math.abs(d)<1||!i&&s>d)||!c&&(i&&Math.abs(h)<1||!i&&-s>h))&&(u=!0),u},yf=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},PC=function(t){return[t.deltaX,t.deltaY]},IC=function(t){return t&&"current"in t?t.current:t},n9=function(t,e){return t[0]===e[0]&&t[1]===e[1]},r9=function(t){return` 102 .block-interactivity-`.concat(t,` {pointer-events: none;} 103 .allow-interactivity-`).concat(t,` {pointer-events: all;} 104`)},i9=0,ga=[];function o9(t){var e=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),i=f.useState(i9++)[0],o=f.useState(wA)[0],s=f.useRef(t);f.useEffect(function(){s.current=t},[t]),f.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var g=iF([t.lockRef.current],(t.shards||[]).map(IC),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=f.useCallback(function(g,b){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var w=yf(g),v=n.current,y="deltaX"in g?g.deltaX:v[0]-w[0],E="deltaY"in g?g.deltaY:v[1]-w[1],C,S=g.target,P=Math.abs(y)>Math.abs(E)?"h":"v";if("touches"in g&&P==="h"&&S.type==="range")return!1;var _=TC(P,S);if(!_)return!0;if(_?C=P:(C=P==="v"?"h":"v",_=TC(P,S)),!_)return!1;if(!r.current&&"changedTouches"in g&&(y||E)&&(r.current=C),!C)return!0;var k=r.current||C;return t9(k,b,g,k==="h"?y:E,!0)},[]),l=f.useCallback(function(g){var b=g;if(!(!ga.length||ga[ga.length-1]!==o)){var w="deltaY"in b?PC(b):yf(b),v=e.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&n9(C.delta,w)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var y=(s.current.shards||[]).map(IC).filter(Boolean).filter(function(C){return C.contains(b.target)}),E=y.length>0?a(b,y[0]):!s.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),u=f.useCallback(function(g,b,w,v){var y={name:g,delta:b,target:w,should:v,shadowParent:s9(w)};e.current.push(y),setTimeout(function(){e.current=e.current.filter(function(E){return E!==y})},1)},[]),c=f.useCallback(function(g){n.current=yf(g),r.current=void 0},[]),d=f.useCallback(function(g){u(g.type,PC(g),g.target,a(g,t.lockRef.current))},[]),h=f.useCallback(function(g){u(g.type,yf(g),g.target,a(g,t.lockRef.current))},[]);f.useEffect(function(){return ga.push(o),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ma),document.addEventListener("touchmove",l,ma),document.addEventListener("touchstart",c,ma),function(){ga=ga.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,ma),document.removeEventListener("touchmove",l,ma),document.removeEventListener("touchstart",c,ma)}},[]);var p=t.removeScrollBar,m=t.inert;return f.createElement(f.Fragment,null,m?f.createElement(o,{styles:r9(i)}):null,p?f.createElement(qB,{gapMode:t.gapMode}):null)}function s9(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const a9=NB(yA,o9);var SA=f.forwardRef(function(t,e){return f.createElement(om,Zr({},t,{ref:e,sideCar:a9}))});SA.classNames=om.classNames;const l9=SA;function u9(t){const[e,n]=id(t,gS.variantKeys),{ref:r,as:i,src:o,className:s,classNames:a,loading:l,isBlurred:u,fallbackSrc:c,isLoading:d,disableSkeleton:h=!!c,removeWrapper:p=!1,onError:m,onLoad:g,srcSet:b,sizes:w,crossOrigin:v,...y}=e,E=mB({src:o,loading:l,onError:m,onLoad:g,ignoreFallback:!1,srcSet:b,sizes:w,crossOrigin:v}),C=E==="loaded"&&!d,S=E==="loading"||d,P=t.isZoomed,_=i||"img",k=Un(r),{w:L}=f.useMemo(()=>({w:e.width?typeof e.width=="number"?`${e.width}px`:e.width:"fit-content"}),[e==null?void 0:e.width]),I=(!o||!C)&&!!c,M=S&&!h,R=f.useMemo(()=>gS({...n,showSkeleton:M}),[...Object.values(n),M]),A=pt(s,a==null?void 0:a.img),O=(D={})=>{const B=pt(A,D==null?void 0:D.className);return{src:o,ref:k,"data-loaded":_e(C),className:R.img({class:B}),loading:l,srcSet:b,sizes:w,crossOrigin:v,...y}},j=f.useCallback(()=>{const D=I?{backgroundImage:`url(${c})`}:{};return{className:R.wrapper({class:a==null?void 0:a.wrapper}),style:{...D,maxWidth:L}}},[R,I,c,a==null?void 0:a.wrapper]),U=f.useCallback(()=>({src:o,"aria-hidden":_e(!0),className:R.blurredImg({class:a==null?void 0:a.blurredImg})}),[R,o,a==null?void 0:a.blurredImg]);return{Component:_,domRef:k,slots:R,classNames:a,isBlurred:u,disableSkeleton:h,fallbackSrc:c,removeWrapper:p,isZoomed:P,isLoading:S,getImgProps:O,getWrapperProps:j,getBlurredImgProps:U}}var CA=Cn((t,e)=>{const{Component:n,domRef:r,slots:i,classNames:o,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:h,getBlurredImgProps:p}=u9({...t,ref:e}),m=T.jsx(n,{ref:r,...d()});if(u)return m;const g=T.jsx("div",{className:i.zoomedWrapper({class:o==null?void 0:o.zoomedWrapper}),children:m});return s?T.jsxs("div",{...h(),children:[a?g:m,f.cloneElement(m,p())]}):a||!c||l?T.jsxs("div",{...h(),children:[" ",a?g:m]}):m});CA.displayName="NextUI.Image";
104var Qh=CA,[c9,Al]=xb({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),d9={enter:{height:"calc(100vh - var(--navbar-height) - 1px)",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},xA=Cn((t,e)=>{var n,r;const{className:i,children:o,portalContainer:s,motionProps:a,style:l,...u}=t,c=Un(e),{slots:d,isMenuOpen:h,height:p,disableAnimation:m,classNames:g}=Al(),b=pt(g==null?void 0:g.menu,i),w=f.useCallback(({children:y})=>T.jsx(l9,{forwardProps:!0,enabled:h,removeScrollBar:!1,children:y}),[h]),v=m?T.jsx(w,{children:T.jsx("ul",{ref:c,className:(n=d.menu)==null?void 0:n.call(d,{class:b}),"data-open":_e(h),style:{"--navbar-height":p},...u,children:o})}):T.jsx(rA,{mode:"wait",children:h?T.jsx(w,{children:T.jsx(Gb.ul,{ref:c,layoutScroll:!0,animate:"enter",className:(r=d.menu)==null?void 0:r.call(d,{class:b}),"data-open":_e(h),exit:"exit",initial:"exit",style:{"--navbar-height":p,...l},variants:d9,...Yt(a,u),children:o})}):null});return T.jsx(zF,{portalContainer:s,children:v})});xA.displayName="NextUI.NavbarMenu";var TA=xA,f9={visible:{y:0,transition:{ease:SC.easeOut}},hidden:{y:"-100%",transition:{ease:SC.easeIn}}},h9=typeof window<"u";function LC(t){return h9?t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var p9=t=>{const{elementRef:e,delay:n=30,callback:r,isEnabled:i}=t,o=f.useRef(i?LC(e==null?void 0:e.current):{x:0,y:0});let s=null;const a=()=>{const l=LC(e==null?void 0:e.current);typeof r=="function"&&r({prevPos:o.current,currPos:l}),o.current=l,s=null};return f.useEffect(()=>{if(!i)return;const l=()=>{n?s===null&&(s=setTimeout(a,n)):a()},u=(e==null?void 0:e.current)||window;return u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)},[e==null?void 0:e.current,n,i]),o.current};function m9(t){var e;const[n,r]=id(t,mS.variantKeys),{ref:i,as:o,parentRef:s,height:a="4rem",shouldHideOnScroll:l=!1,disableScrollHandler:u=!1,onScrollPositionChange:c,isMenuOpen:d,isMenuDefaultOpen:h,onMenuOpenChange:p=()=>{},motionProps:m,className:g,classNames:b,...w}=n,v=o||"nav",y=Un(i),E=f.useRef(0),C=f.useRef(0),[S,P]=f.useState(!1),_=f.useCallback(j=>{p(j||!1)},[p]),[k,L]=vb(d,h,_),I=()=>{if(y.current){const j=y.current.offsetWidth;j!==E.current&&(E.current=j)}};Y4({ref:y,onResize:()=>{var j;((j=y.current)==null?void 0:j.offsetWidth)!==E.current&&(I(),L(!1))}}),f.useEffect(()=>{var j;I(),C.current=((j=y.current)==null?void 0:j.offsetHeight)||0},[]);const M=f.useMemo(()=>mS({...r,hideOnScroll:l}),[...Object.values(r),l]),R=pt(b==null?void 0:b.base,g);p9({elementRef:s,isEnabled:l||!u,callback:({prevPos:j,currPos:U})=>{c==null||c(U.y),l&&P(D=>{const B=U.y>j.y&&U.y>C.current;return B!==D?B:D})}});const A=(j={})=>({...Yt(w,j),"data-hidden":_e(S),"data-menu-open":_e(k),ref:y,className:M.base({class:pt(R,j==null?void 0:j.className)}),style:{"--navbar-height":a,...j==null?void 0:j.style}}),O=(j={})=>({...j,"data-menu-open":_e(k),className:M.wrapper({class:pt(b==null?void 0:b.wrapper,j==null?void 0:j.className)})});return{Component:v,slots:M,domRef:y,height:a,isHidden:S,disableAnimation:(e=t.disableAnimation)!=null?e:!1,shouldHideOnScroll:l,isMenuOpen:k,classNames:b,setIsMenuOpen:L,motionProps:m,getBaseProps:A,getWrapperProps:O}}var PA=Cn((t,e)=>{const{children:n,...r}=t,i=m9({...r,ref:e}),o=i.Component,[s,a]=Kj(n,TA),l=T.jsxs(T.Fragment,{children:[T.jsx("header",{...i.getWrapperProps(),children:s}),a]});return T.jsx(c9,{value:i,children:i.shouldHideOnScroll?T.jsx(Gb.nav,{animate:i.isHidden?"hidden":"visible",initial:!1,variants:f9,...Yt(i.getBaseProps(),i.motionProps),children:l}):T.jsx(o,{...i.getBaseProps(),children:l})})});PA.displayName="NextUI.Navbar";var g9=PA,IA=Cn((t,e)=>{var n;const{as:r,className:i,children:o,...s}=t,a=r||"div",l=Un(e),{slots:u,classNames:c}=Al(),d=pt(c==null?void 0:c.brand,i);return T.jsx(a,{ref:l,className:(n=u.brand)==null?void 0:n.call(u,{class:d}),...s,children:o})});IA.displayName="NextUI.NavbarBrand";var v9=IA,LA=Cn((t,e)=>{var n;const{as:r,className:i,children:o,justify:s="start",...a}=t,l=r||"ul",u=Un(e),{slots:c,classNames:d}=Al(),h=pt(d==null?void 0:d.content,i);return T.jsx(l,{ref:u,className:(n=c.content)==null?void 0:n.call(c,{class:h}),"data-justify":s,...a,children:o})});
104LA.displayName="NextUI.NavbarContent";var RC=LA,RA=Cn((t,e)=>{var n;const{as:r,className:i,children:o,isActive:s,...a}=t,l=r||"li",u=Un(e),{slots:c,classNames:d}=Al(),h=pt(d==null?void 0:d.item,i);return T.jsx(l,{ref:u,className:(n=c.item)==null?void 0:n.call(c,{class:h}),"data-active":_e(s),...a,children:o})});RA.displayName="NextUI.NavbarItem";var cu=RA,kA=Cn((t,e)=>{var n;const{className:r,children:i,...o}=t,s=Un(e),{slots:a,isMenuOpen:l,classNames:u}=Al(),c=pt(u==null?void 0:u.menuItem,r);return T.jsx("li",{ref:s,className:(n=a.menuItem)==null?void 0:n.call(a,{class:c}),"data-open":_e(l),...o,children:i})});kA.displayName="NextUI.NavbarMenuItem";var du=kA;function y9(t,e,n){const{isSelected:r}=e,{isPressed:i,buttonProps:o}=qb({...t,onPress:nd(e.toggle,t.onPress)},n);return{isPressed:i,buttonProps:Yt(o,{"aria-pressed":r})}}var AA=Cn((t,e)=>{var n;const{as:r,icon:i,className:o,onChange:s,autoFocus:a,srOnlyText:l,...u}=t,c=r||"button",d=Un(e),{slots:h,classNames:p,isMenuOpen:m,setIsMenuOpen:g}=Al(),w=xB({...u,isSelected:m,onChange:I=>{s==null||s(I),g(I)}}),{buttonProps:v,isPressed:y}=y9(t,w,d),{isFocusVisible:E,focusProps:C}=_c({autoFocus:a}),{isHovered:S,hoverProps:P}=qp({}),_=pt(p==null?void 0:p.toggle,o),k=f.useMemo(()=>typeof i=="function"?i(m??!1):i||T.jsx("span",{className:h.toggleIcon({class:p==null?void 0:p.toggleIcon})}),[i,h.toggleIcon,p==null?void 0:p.toggleIcon]),L=f.useMemo(()=>l||(w.isSelected?"close navigation menu":"open navigation menu"),[l,m]);return T.jsxs(c,{ref:d,className:(n=h.toggle)==null?void 0:n.call(h,{class:_}),"data-focus-visible":_e(E),"data-hover":_e(S),"data-open":_e(m),"data-pressed":_e(y),...Yt(v,C,P,u),children:[T.jsx("span",{className:h.srOnly(),children:L}),k]})});AA.displayName="NextUI.NavbarMenuToggle";var w9=AA;/** 105 * @remix-run/router v1.10.0 106 * 107 * Copyright (c) Remix Software Inc. 108 * 109 * This source code is licensed under the MIT license found in the 110 * LICENSE.md file in the root directory of this source tree. 111 * 112 * @license MIT 113 */function ht(){return ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ht.apply(this,arguments)}var at;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(at||(at={}));const kC="popstate";function MA(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:n,v5Compat:r=!1}=t,i;i=e.map((p,m)=>c(p,typeof p=="string"?null:p.state,m===0?"default":void 0));
113let o=l(n??i.length-1),s=at.Pop,a=null;function l(p){return Math.min(Math.max(p,0),i.length-1)}function u(){return i[o]}function c(p,m,g){m===void 0&&(m=null);let b=Fs(i?u().pathname:"/",p,m,g);return hi(b.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(p)),b}function d(p){return typeof p=="string"?p:Fr(p)}return{get index(){return o},get action(){return s},get location(){return u()},createHref:d,createURL(p){return new URL(d(p),"http://localhost")},encodeLocation(p){let m=typeof p=="string"?_r(p):p;return{pathname:m.pathname||"",search:m.search||"",hash:m.hash||""}},push(p,m){s=at.Push;let g=c(p,m);o+=1,i.splice(o,i.length,g),r&&a&&a({action:s,location:g,delta:1})},replace(p,m){s=at.Replace;let g=c(p,m);i[o]=g,r&&a&&a({action:s,location:g,delta:0})},go(p){s=at.Pop;let m=l(o+p),g=i[m];o=m,a&&a({action:s,location:g,delta:p})},listen(p){return a=p,()=>{a=null}}}}function DA(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:s,hash:a}=r.location;return Fs("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Fr(i)}return NA(e,n,null,t)}function OA(t){t===void 0&&(t={});function e(i,o){let{pathname:s="/",search:a="",hash:l=""}=_r(i.location.hash.substr(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),Fs("",{pathname:s,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let s=i.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let l=i.location.href,u=l.indexOf("#");a=u===-1?l:l.slice(0,u)}return a+"#"+(typeof o=="string"?o:Fr(o))}function r(i,o){hi(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return NA(e,n,r,t)}function le(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function hi(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function b9(){return Math.random().toString(36).substr(2,8)}function AC(t,e){return{usr:t.state,key:t.key,idx:e}}function Fs(t,e,n,r){return n===void 0&&(n=null),ht({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?_r(e):e,{state:n,key:e&&e.key||r||b9()})}function Fr(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function _r(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function NA(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=at.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(ht({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=at.Pop;let b=c(),w=b==null?null:b-u;u=b,l&&l({action:a,location:g.location,delta:w})}function h(b,w){a=at.Push;let v=Fs(g.location,b,w);n&&n(v,b),u=c()+1;let y=AC(v,u),E=g.createHref(v);try{s.pushState(y,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(E)}o&&l&&l({action:a,location:g.location,delta:1})}function p(b,w){a=at.Replace;let v=Fs(g.location,b,w);n&&n(v,b),u=c();let y=AC(v,u),E=g.createHref(v);s.replaceState(y,"",E),o&&l&&l({action:a,location:g.location,delta:0})}function m(b){let w=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof b=="string"?b:Fr(b);return le(w,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,w)}let g={get action(){return a},get location(){return t(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(kC,d),l=b,()=>{i.removeEventListener(kC,d),l=null}},createHref(b){return e(i,b)},createURL:m,encodeLocation(b){let w=m(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:p,go(b){return s.go(b)}};return g}var Mt;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mt||(Mt={}));
vendor: 2,831 bytes, line 113
113const E9=new Set(["lazy","caseSensitive","path","id","index","children"]);function _9(t){return t.index===!0}function S0(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((i,o)=>{let s=[...n,o],a=typeof i.id=="string"?i.id:s.join("-");if(le(i.index!==!0||!i.children,"Cannot specify children on an index route"),le(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),_9(i)){let l=ht({},i,e(i),{id:a});return r[a]=l,l}else{let l=ht({},i,e(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=S0(i.children,e,s,r)),l}})}function Es(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?_r(e):e,i=Xn(r.pathname||"/",n);if(i==null)return null;let o=VA(t);S9(o);let s=null;for(let a=0;s==null&&a<o.length;++a)s=A9(o[a],O9(i));return s}function $A(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],handle:n.handle}}function VA(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(le(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=si([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(le(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),VA(o.children,e,c,u)),!(o.path==null&&!o.index)&&e.push({path:u,score:R9(u,o.index),routesMeta:c})};return t.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of FA(o.path))i(o,s,l)}),e}function FA(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=FA(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function S9(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:k9(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const C9=/^:\w+$/,x9=3,T9=2,P9=1,I9=10,L9=-2,MC=t=>t==="*";function R9(t,e){let n=t.split("/"),r=n.length;return n.some(MC)&&(r+=L9),e&&(r+=T9),n.filter(i=>!MC(i)).reduce((i,o)=>i+(C9.test(o)?x9:o===""?P9:I9),r)}function k9(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function A9(t,e){let{routesMeta:n}=t,r={},i="/",o=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,u=i==="/"?e:e.slice(i.length)||"/",c=Tc({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;
113Object.assign(r,c.params);let d=a.route;o.push({params:r,pathname:si([i,c.pathname]),pathnameBase:V9(si([i,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(i=si([i,c.pathnameBase]))}return o}function M9(t,e){e===void 0&&(e={});let n=t;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(hi(!1,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".')),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",i=s=>s==null?"":typeof s=="string"?s:String(s),o=n.split(/\/+/).map((s,a,l)=>{if(a===l.length-1&&s==="*")return i(e["*"]);const c=s.match(/^:(\w+)(\??)$/);if(c){const[,d,h]=c;let p=e[d];return le(h==="?"||p!=null,'Missing ":'+d+'" param'),i(p)}return s.replace(/\?$/g,"")}).filter(s=>!!s);return r+o.join("/")}function Tc(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=D9(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,d)=>{if(c==="*"){let h=a[d]||"";s=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}return u[c]=N9(a[d]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:t}}function D9(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),hi(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return t.endsWith("*")?(r.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function O9(t){try{return decodeURI(t)}catch(e){return hi(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function N9(t,e){try{return decodeURIComponent(t)}catch(n){return hi(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function Xn(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function jA(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?_r(t):t;return{pathname:n?n.startsWith("/")?n:$9(n,e):e,search:F9(r),hash:j9(i)}}function $9(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function dv(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ud(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function sm(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=_r(t):(i=ht({},t),le(!i.pathname||!i.pathname.includes("?"),dv("?","pathname","search",i)),le(!i.pathname||!i.pathname.includes("#"),dv("#","pathname","hash",i)),le(!i.search||!i.search.includes("#"),dv("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let d=e.length-1;if(s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=jA(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const si=t=>t.join("/").replace(/\/\/+/g,"/"),V9=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),F9=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,j9=t=>
113!t||t==="#"?"":t.startsWith("#")?t:"#"+t,U9=function(e,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n,i=new Headers(r.headers);return i.has("Content-Type")||i.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),ht({},r,{headers:i}))};class Yh extends Error{}class B9{constructor(e,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],le(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,s)=>r=s),this.controller=new AbortController;let i=()=>r(new Yh("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(e).reduce((o,s)=>{let[a,l]=s;return Object.assign(o,{[a]:this.trackPromise(a,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(e,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,e,void 0,i),i=>this.onSettle(r,e,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,n,r,i){if(this.controller.signal.aborted&&r instanceof Yh)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r===void 0&&i===void 0){let o=new Error('Deferred data for key "'+n+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>o}),this.emit(!1,n),Promise.reject(o)}return i===void 0?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>i}),this.emit(!1,n),i)}emit(e,n){this.subscribers.forEach(r=>r(e,n))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(e){let n=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(o=>{e.removeEventListener("abort",r),(o||this.done)&&i(o)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return le(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,n)=>{let[r,i]=n;return Object.assign(e,{[r]:W9(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function z9(t){return t instanceof Promise&&t._tracked===!0}function W9(t){if(!z9(t))return t;if(t._error)throw t._error;return t._data}
113const H9=function(e,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n;return new B9(e,r)},UA=function(e,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let i=new Headers(r.headers);return i.set("Location",e),new Response(null,ht({},r,{headers:i}))},K9=(t,e)=>{let n=UA(t,e);return n.headers.set("X-Remix-Reload-Document","true"),n};class Xb{constructor(e,n,r,i){i===void 0&&(i=!1),this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Zb(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const BA=["post","put","patch","delete"],G9=new Set(BA),q9=["get",...BA],Q9=new Set(q9),Y9=new Set([301,302,303,307,308]),X9=new Set([307,308]),fv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z9={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ba={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},zA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J9=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),WA="remix-router-transitions";function Jb(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;le(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let N=t.detectErrorBoundary;i=V=>({hasErrorBoundary:N(V)})}else i=J9;let o={},s=S0(t.routes,i,void 0,o),a,l=t.basename||"/",u=ht({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),c=null,d=new Set,h=null,p=null,m=null,g=t.hydrationData!=null,b=Es(s,t.history.location,l),w=null;if(b==null){let N=dr(404,{pathname:t.history.location.pathname}),{matches:V,route:W}=UC(s);b=V,w={[W.id]:N}}let v=!b.some(N=>N.route.lazy)&&(!b.some(N=>N.route.loader)||t.hydrationData!=null),y,E={historyAction:t.history.action,location:t.history.location,matches:b,initialized:v,navigation:fv,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||w,fetchers:new Map,blockers:new Map},C=at.Pop,S=!1,P,_=!1,k=new Map,L=null,I=!1,M=!1,R=[],A=[],O=new Map,j=0,U=-1,D=new Map,B=new Set,K=new Map,x=new Map,$=new Map,G=!1;function Z(){if(c=t.history.listen(N=>{let{action:V,location:W,delta:ee}=N;if(G){G=!1;return}hi($.size===0||ee!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ge=ve({currentLocation:E.location,nextLocation:W,historyAction:V});if(ge&&ee!=null){G=!0,t.history.go(ee*-1),He(ge,{state:"blocked",location:W,proceed(){He(ge,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),t.history.go(ee)},reset(){let pe=new Map(E.blockers);pe.set(ge,ba),Y({blockers:pe})}});return}return Te(V,W)}),n){cz(e,k);let N=()=>dz(e,k);e.addEventListener("pagehide",N),L=()=>e.removeEventListener("pagehide",N)}return E.initialized||Te(at.Pop,E.location),y}function te(){c&&c(),L&&L(),d.clear(),P&&P.abort(),E.fetchers.forEach((N,V)=>wt(V)),E.blockers.forEach((N,V)=>Wr(V))}function F(N){return d.add(N),()=>d.delete(N)}function Y(N,V){E=ht({},E,N),d.forEach(W=>W(E,{unstable_viewTransitionOpts:V}))}function re(N,V){var W,ee;let ge=E.actionData!=null&&E.navigation.formMethod!=null&&Rr(E.navigation.formMethod)&&E.navigation.state==="loading"&&((W=N.state)==null?void 0:W._isRedirect)!==!0,pe;V.actionData?Object.keys(V.actionData).length>0?pe=V.actionData:pe=null:ge?pe=E.actionData:pe=null;let be=V.loaderData?jC(E.loaderData,V.loaderData,V.matches||[],V.errors):E.loaderData,he=E.blockers;he.size>0&&(he=new Map(he),he.forEach((st,ke)=>he.set(ke,ba)));let se=S===!0||E.navigation.formMethod!=null&&Rr(E.navigation.formMethod)&&((ee=N.state)==null?void 0:ee._isRedirect)!==!0;a&&(s=a,a=void 0),I||C===at.Pop||(C===at.Push?t.history.push(N,N.state):C===at.Replace&&t.history.replace(N,N.state));let Xe;if(C===at.Pop){let st=k.get(E.location.pathname);st&&st.has(N.pathname)?Xe={currentLocation:E.location,nextLocation:N}:k.has(N.pathname)&&(Xe={currentLocation:N,nextLocation:E.location})}else if(_){let st=k.get(E.location.pathname);st?st.add(N.pathname):(st=new Set([N.pathname]),k.set(E.location.pathname,st)),Xe={currentLocation:E.location,nextLocation:N}}Y(ht({},V,{actionData:pe,loaderData:be,historyAction:C,location:N,initialized:!0,navigation:fv,revalidation:"idle",restoreScrollPosition:ql(N,V.matches||E.matches),preventScrollReset:se,blockers:he}),Xe),C=at.Pop,S=!1,_=!1,I=!1,M=!1,R=[],A=[]}async function X(N,V){if(typeof N=="number"){t.history.go(N);return}
113let W=C0(E.location,E.matches,l,u.v7_prependBasename,N,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:ee,submission:ge,error:pe}=DC(u.v7_normalizeFormMethod,!1,W,V),be=E.location,he=Fs(E.location,ee,V&&V.state);he=ht({},he,t.history.encodeLocation(he));let se=V&&V.replace!=null?V.replace:void 0,Xe=at.Push;se===!0?Xe=at.Replace:se===!1||ge!=null&&Rr(ge.formMethod)&&ge.formAction===E.location.pathname+E.location.search&&(Xe=at.Replace);let st=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,ke=ve({currentLocation:be,nextLocation:he,historyAction:Xe});if(ke){He(ke,{state:"blocked",location:he,proceed(){He(ke,{state:"proceeding",proceed:void 0,reset:void 0,location:he}),X(N,V)},reset(){let Ze=new Map(E.blockers);Ze.set(ke,ba),Y({blockers:Ze})}});return}return await Te(Xe,he,{submission:ge,pendingError:pe,preventScrollReset:st,replace:V&&V.replace,enableViewTransition:V&&V.unstable_viewTransition})}function fe(){if(Ce(),Y({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){Te(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}Te(C||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function Te(N,V,W){P&&P.abort(),P=null,C=N,I=(W&&W.startUninterruptedRevalidation)===!0,Fd(E.location,E.matches),S=(W&&W.preventScrollReset)===!0,_=(W&&W.enableViewTransition)===!0;let ee=a||s,ge=W&&W.overrideNavigation,pe=Es(ee,V,l);if(!pe){let Ze=dr(404,{pathname:V.pathname}),{matches:bt,route:or}=UC(ee);gi(),re(V,{matches:bt,loaderData:{},errors:{[or.id]:Ze}});return}if(E.initialized&&!M&&iz(E.location,V)&&!(W&&W.submission&&Rr(W.submission.formMethod))){re(V,{matches:pe});return}P=new AbortController;let be=hu(t.history,V,P.signal,W&&W.submission),he,se;if(W&&W.pendingError)se={[Ba(pe).route.id]:W.pendingError};else if(W&&W.submission&&Rr(W.submission.formMethod)){let Ze=await Me(be,V,W.submission,pe,{replace:W.replace});if(Ze.shortCircuited)return;he=Ze.pendingActionData,se=Ze.pendingActionError,ge=hv(V,W.submission),be=new Request(be.url,{signal:be.signal})}let{shortCircuited:Xe,loaderData:st,errors:ke}=await De(be,V,pe,ge,W&&W.submission,W&&W.fetcherSubmission,W&&W.replace,he,se);Xe||(P=null,re(V,ht({matches:pe},he?{actionData:he}:{},{loaderData:st,errors:ke})))}async function Me(N,V,W,ee,ge){ge===void 0&&(ge={}),Ce();let pe=lz(V,W);Y({navigation:pe});let be,he=T0(ee,V);if(!he.route.action&&!he.route.lazy)be={type:Mt.error,error:dr(405,{method:N.method,pathname:V.pathname,routeId:he.route.id})};else if(be=await fu("action",N,he,ee,o,i,l),N.signal.aborted)return{shortCircuited:!0};if(Za(be)){let se;return ge&&ge.replace!=null?se=ge.replace:se=be.location===E.location.pathname+E.location.search,await We(E,be,{submission:W,replace:se}),{shortCircuited:!0}}if(Qu(be)){let se=Ba(ee,he.route.id);return(ge&&ge.replace)!==!0&&(C=at.Push),{pendingActionData:{},pendingActionError:{[se.route.id]:be.error}}}if(_s(be))throw dr(400,{type:"defer-action"});return{pendingActionData:{[he.route.id]:be.data}}}async function De(N,V,W,ee,ge,pe,be,he,se){let Xe=ee||hv(V,ge),st=ge||pe||WC(Xe),ke=a||s,[Ze,bt]=OC(t.history,E,W,st,V,M,R,A,K,B,ke,l,he,se);if(gi(Qe=>!(W&&W.some(Dn=>Dn.route.id===Qe))||Ze&&Ze.some(Dn=>Dn.route.id===Qe)),U=++j,Ze.length===0&&bt.length===0){let Qe=un();return re(V,ht({matches:W,loaderData:{},errors:se||null},he?{actionData:he}:{},Qe?{fetchers:new Map(E.fetchers)}:{})),{shortCircuited:!0}}if(!I){bt.forEach(Dn=>{let Wn=E.fetchers.get(Dn.key),da=pu(void 0,Wn?Wn.data:void 0);E.fetchers.set(Dn.key,da)});let Qe=he||E.actionData;Y(ht({navigation:Xe},Qe?Object.keys(Qe).length===0?{actionData:null}:{actionData:Qe}:{},bt.length>0?{fetchers:new Map(E.fetchers)}:{}))}bt.forEach(Qe=>{O.has(Qe.key)&&ct(Qe.key),Qe.controller&&O.set(Qe.key,Qe.controller)});let or=()=>bt.forEach(Qe=>ct(Qe.key));P&&P.signal.addEventListener("abort",or);let{results:Hr,loaderResults:qi,fetcherResults:Qi}=await ae(E.matches,W,Ze,bt,N);if(N.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",or),bt.forEach(Qe=>O.delete(Qe.key));let sr=BC(Hr);if(sr){if(sr.idx>=Ze.length){let Qe=bt[sr.idx-Ze.length].key;B.add(Qe)}return await We(E,sr.result,{replace:be}),{shortCircuited:!0}}let{loaderData:ar,errors:vi}=FC(E,W,Ze,qi,se,bt,Qi,x);x.forEach((Qe,Dn)=>{Qe.subscribe(Wn=>{(Wn||Qe.done)&&x.delete(Dn)})});let la=un(),ua=zr(U),ca=la||ua||bt.length>0;return ht({loaderData:ar,errors:vi},ca?{fetchers:new Map(E.fetchers)}:{})}function Je(N){return E.fetchers.get(N)||Z9}function qe(N,V,W,ee){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");O.has(N)&&ct(N);
113let ge=a||s,pe=C0(E.location,E.matches,l,u.v7_prependBasename,W,V,ee==null?void 0:ee.relative),be=Es(ge,pe,l);if(!be){xe(N,V,dr(404,{pathname:pe}));return}let{path:he,submission:se,error:Xe}=DC(u.v7_normalizeFormMethod,!0,pe,ee);if(Xe){xe(N,V,Xe);return}let st=T0(be,he);if(S=(ee&&ee.preventScrollReset)===!0,se&&Rr(se.formMethod)){$e(N,V,he,st,be,se);return}K.set(N,{routeId:V,path:he}),ot(N,V,he,st,be,se)}async function $e(N,V,W,ee,ge,pe){if(Ce(),K.delete(N),!ee.route.action&&!ee.route.lazy){let Lt=dr(405,{method:pe.formMethod,pathname:W,routeId:V});xe(N,V,Lt);return}let be=E.fetchers.get(N),he=uz(pe,be);E.fetchers.set(N,he),Y({fetchers:new Map(E.fetchers)});let se=new AbortController,Xe=hu(t.history,W,se.signal,pe);O.set(N,se);let st=j,ke=await fu("action",Xe,ee,ge,o,i,l);if(Xe.signal.aborted){O.get(N)===se&&O.delete(N);return}if(Za(ke))if(O.delete(N),U>st){let Lt=Ea(void 0);E.fetchers.set(N,Lt),Y({fetchers:new Map(E.fetchers)});return}else{B.add(N);let Lt=pu(pe);return E.fetchers.set(N,Lt),Y({fetchers:new Map(E.fetchers)}),We(E,ke,{fetcherSubmission:pe})}if(Qu(ke)){xe(N,V,ke.error);return}if(_s(ke))throw dr(400,{type:"defer-action"});let Ze=E.navigation.location||E.location,bt=hu(t.history,Ze,se.signal),or=a||s,Hr=E.navigation.state!=="idle"?Es(or,E.navigation.location,l):E.matches;le(Hr,"Didn't find any matches after fetcher action");let qi=++j;D.set(N,qi);let Qi=pu(pe,ke.data);E.fetchers.set(N,Qi);let[sr,ar]=OC(t.history,E,Hr,pe,Ze,M,R,A,K,B,or,l,{[ee.route.id]:ke.data},void 0);ar.filter(Lt=>
113Lt.key!==N).forEach(Lt=>{let Kr=Lt.key,Ql=E.fetchers.get(Kr),Ud=pu(void 0,Ql?Ql.data:void 0);E.fetchers.set(Kr,Ud),O.has(Kr)&&ct(Kr),Lt.controller&&O.set(Kr,Lt.controller)}),Y({fetchers:new Map(E.fetchers)});let vi=()=>ar.forEach(Lt=>ct(Lt.key));se.signal.addEventListener("abort",vi);let{results:la,loaderResults:ua,fetcherResults:ca}=await ae(E.matches,Hr,sr,ar,bt);if(se.signal.aborted)return;se.signal.removeEventListener("abort",vi),D.delete(N),O.delete(N),ar.forEach(Lt=>O.delete(Lt.key));let Qe=BC(la);if(Qe){if(Qe.idx>=sr.length){let Lt=ar[Qe.idx-sr.length].key;B.add(Lt)}return We(E,Qe.result)}let{loaderData:Dn,errors:Wn}=FC(E,E.matches,sr,ua,void 0,ar,ca,x);if(E.fetchers.has(N)){let Lt=Ea(ke.data);E.fetchers.set(N,Lt)}let da=zr(qi);E.navigation.state==="loading"&&qi>U?(le(C,"Expected pending action"),P&&P.abort(),re(E.navigation.location,{matches:Hr,loaderData:Dn,errors:Wn,fetchers:new Map(E.fetchers)})):(Y(ht({errors:Wn,loaderData:jC(E.loaderData,Dn,Hr,Wn)},da||ar.length>0?{fetchers:new Map(E.fetchers)}:{})),M=!1)}async function ot(N,V,W,ee,ge,pe){let be=E.fetchers.get(N),he=pu(pe,be?be.data:void 0);E.fetchers.set(N,he),Y({fetchers:new Map(E.fetchers)});let se=new AbortController,Xe=hu(t.history,W,se.signal);O.set(N,se);let st=j,ke=await fu("loader",Xe,ee,ge,o,i,l);if(_s(ke)&&(ke=await GA(ke,Xe.signal,!0)||ke),O.get(N)===se&&O.delete(N),Xe.signal.aborted)return;if(Za(ke))if(U>st){let bt=Ea(void 0);E.fetchers.set(N,bt),Y({fetchers:new Map(E.fetchers)});return}else{B.add(N),await We(E,ke);return}if(Qu(ke)){let bt=Ba(E.matches,V);E.fetchers.delete(N),Y({fetchers:new Map(E.fetchers),errors:{[bt.route.id]:ke.error}});return}le(!_s(ke),"Unhandled fetcher deferred data");let Ze=Ea(ke.data);E.fetchers.set(N,Ze),Y({fetchers:new Map(E.fetchers)})}async function We(N,V,W){let{submission:ee,fetcherSubmission:ge,replace:pe}=W===void 0?{}:W;V.revalidate&&(M=!0);let be=Fs(N.location,V.location,{_isRedirect:!0});if(le(be,"Expected a location on the redirect navigation"),n){let Ze=!1;if(V.reloadDocument)Ze=!0;else if(zA.test(V.location)){const bt=t.history.createURL(V.location);Ze=bt.origin!==e.location.origin||Xn(bt.pathname,l)==null}if(Ze){pe?e.location.replace(V.location):e.location.assign(V.location);return}}P=null;let he=pe===!0?at.Replace:at.Push,{formMethod:se,formAction:Xe,formEncType:st}=N.navigation;!ee&&!ge&&se&&Xe&&st&&(ee=WC(N.navigation));let ke=ee||ge;if(X9.has(V.status)&&ke&&Rr(ke.formMethod))await Te(he,be,{submission:ht({},ke,{formAction:V.location}),preventScrollReset:S});else{let Ze=hv(be,ee);await Te(he,be,{overrideNavigation:Ze,fetcherSubmission:ge,preventScrollReset:S})}}async function ae(N,V,W,ee,ge){let pe=await Promise.all([...W.map(se=>fu("loader",ge,se,V,o,i,l)),...ee.map(se=>se.matches&&se.match&&se.controller?fu("loader",hu(t.history,se.path,se.controller.signal),se.match,se.matches,o,i,l):{type:Mt.error,error:dr(404,{pathname:se.path})})]),be=pe.slice(0,W.length),he=pe.slice(W.length);return await Promise.all([zC(N,W,be,be.map(()=>ge.signal),!1,E.loaderData),zC(N,ee.map(se=>se.match),he,ee.map(se=>se.controller?se.controller.signal:null),!0)]),{results:pe,loaderResults:be,fetcherResults:he}}function Ce(){M=!0,R.push(...gi()),K.forEach((N,V)=>{O.has(V)&&(A.push(V),ct(V))})}function xe(N,V,W){let ee=Ba(E.matches,V);wt(N),Y({errors:{[ee.route.id]:W},fetchers:new Map(E.fetchers)})}function wt(N){let V=E.fetchers.get(N);O.has(N)&&!(V&&V.state==="loading"&&D.has(N))&&ct(N),K.delete(N),D.delete(N),B.delete(N),E.fetchers.delete(N)}function ct(N){let V=O.get(N);le(V,"Expected fetch controller: "+N),V.abort(),O.delete(N)}function de(N){for(let V of N){let W=Je(V),ee=Ea(W.data);E.fetchers.set(V,ee)}}function un(){let N=[],V=!1;for(let W of B){let ee=E.fetchers.get(W);le(ee,"Expected fetcher: "+W),ee.state==="loading"&&(B.delete(W),N.push(W),V=!0)}return de(N),V}function zr(N){let V=[];for(let[W,ee]of D)if(ee<N){let ge=E.fetchers.get(W);le(ge,"Expected fetcher: "+W),ge.state==="loading"&&(ct(W),D.delete(W),V.push(W))}return de(V),V.length>0}function zn(N,V){let W=E.blockers.get(N)||ba;return $.get(N)!==V&&$.set(N,V),W}function Wr(N){E.blockers.delete(N),$.delete(N)}function He(N,V){let W=E.blockers.get(N)||ba;
vendor: 4,208 bytes, lines 113-114
113le(W.state==="unblocked"&&V.state==="blocked"||W.state==="blocked"&&V.state==="blocked"||W.state==="blocked"&&V.state==="proceeding"||W.state==="blocked"&&V.state==="unblocked"||W.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+W.state+" -> "+V.state);let ee=new Map(E.blockers);ee.set(N,V),Y({blockers:ee})}function ve(N){let{currentLocation:V,nextLocation:W,historyAction:ee}=N;if($.size===0)return;$.size>1&&hi(!1,"A router only supports one blocker at a time");let ge=Array.from($.entries()),[pe,be]=ge[ge.length-1],he=E.blockers.get(pe);if(!(he&&he.state==="proceeding")&&be({currentLocation:V,nextLocation:W,historyAction:ee}))return pe}function gi(N){let V=[];return x.forEach((W,ee)=>{(!N||N(ee))&&(W.cancel(),V.push(ee),x.delete(ee))}),V}function is(N,V,W){if(h=N,m=V,p=W||null,!g&&E.navigation===fv){g=!0;let ee=ql(E.location,E.matches);ee!=null&&Y({restoreScrollPosition:ee})}return()=>{h=null,m=null,p=null}}function os(N,V){return p&&p(N,V.map(ee=>$A(ee,E.loaderData)))||N.key}function Fd(N,V){if(h&&m){let W=os(N,V);h[W]=m()}}function ql(N,V){if(h){let W=os(N,V),ee=h[W];if(typeof ee=="number")return ee}return null}function jd(N){o={},a=S0(N,i,void 0,o)}return y={get basename(){return l},get state(){return E},get routes(){return s},get window(){return e},initialize:Z,subscribe:F,enableScrollRestoration:is,navigate:X,fetch:qe,revalidate:fe,createHref:N=>t.history.createHref(N),encodeLocation:N=>t.history.encodeLocation(N),getFetcher:Je,deleteFetcher:wt,dispose:te,getBlocker:zn,deleteBlocker:Wr,_internalFetchControllers:O,_internalActiveDeferreds:x,_internalSetRoutes:jd},y}function ez(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function C0(t,e,n,r,i,o,s){let a,l;if(o!=null&&s!=="path"){a=[];for(let c of e)if(a.push(c),c.route.id===o){l=c;break}}else a=e,l=e[e.length-1];let u=sm(i||".",ud(a).map(c=>c.pathnameBase),Xn(t.pathname,n)||t.pathname,s==="path");return i==null&&(u.search=t.search,u.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!eE(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:si([n,u.pathname])),Fr(u)}function DC(t,e,n,r){if(!r||!ez(r))return{path:n};if(r.formMethod&&!az(r.formMethod))return{path:n,error:dr(405,{method:r.formMethod})};let i=()=>({path:n,error:dr(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=t?o.toUpperCase():o.toLowerCase(),a=KA(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Rr(s))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,m)=>{let[g,b]=m;return""+p+g+"="+b+` 114`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Rr(s))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}le(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=x0(r.formData),u=r.formData;else if(r.body instanceof FormData)l=x0(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=VC(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=VC(l)}catch{return i()}let c={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Rr(c.formMethod))return{path:n,submission:c};let d=_r(n);return e&&d.search&&eE(d.search)&&l.append("index",""),d.search="?"+l,{path:Fr(d),submission:c}}function tz(t,e){let n=t;if(e){let r=t.findIndex(i=>i.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function OC(t,e,n,r,i,o,s,a,l,u,c,d,h,p){let m=p?Object.values(p)[0]:h?Object.values(h)[0]:void 0,g=t.createURL(e.location),b=t.createURL(i),w=p?Object.keys(p)[0]:void 0,y=tz(n,w).filter((C,S)=>{if(C.route.lazy)return!0;if(C.route.loader==null)return!1;if(nz(e.loaderData,e.matches[S],C)||s.some(k=>k===C.route.id))return!0;let P=e.matches[S],_=C;
114return NC(C,ht({currentUrl:g,currentParams:P.params,nextUrl:b,nextParams:_.params},r,{actionResult:m,defaultShouldRevalidate:o||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||HA(P,_)}))}),E=[];return l.forEach((C,S)=>{if(!n.some(I=>I.route.id===C.routeId))return;let P=Es(c,C.path,d);if(!P){E.push({key:S,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let _=e.fetchers.get(S),k=T0(P,C.path),L=!1;u.has(S)?L=!1:a.includes(S)?L=!0:_&&_.state!=="idle"&&_.data===void 0?L=o:L=NC(k,ht({currentUrl:g,currentParams:e.matches[e.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:m,defaultShouldRevalidate:o})),L&&E.push({key:S,routeId:C.routeId,path:C.path,matches:P,match:k,controller:new AbortController})}),[y,E]}function nz(t,e,n){let r=!e||n.route.id!==e.route.id,i=t[n.route.id]===void 0;return r||i}function HA(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function NC(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function $C(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let i=n[t.id];le(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";hi(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!E9.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,ht({},e(i),{lazy:void 0}))}async function fu(t,e,n,r,i,o,s,a){a===void 0&&(a={});let l,u,c,d=m=>{let g,b=new Promise((w,v)=>g=v);return c=()=>g(),e.signal.addEventListener("abort",c),Promise.race([m({request:e,params:n.params,context:a.requestContext}),b])};try{let m=n.route[t];if(n.route.lazy)if(m){let g,b=await Promise.all([d(m).catch(w=>{g=w}),$C(n.route,o,i)]);if(g)throw g;u=b[0]}else if(await $C(n.route,o,i),m=n.route[t],m)u=await d(m);else if(t==="action"){let g=new URL(e.url),b=g.pathname+g.search;throw dr(405,{method:e.method,pathname:b,routeId:n.route.id})}else return{type:Mt.data,data:void 0};else if(m)u=await d(m);else{let g=new URL(e.url),b=g.pathname+g.search;throw dr(404,{pathname:b})}le(u!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(m){l=Mt.error,u=m}finally{c&&e.signal.removeEventListener("abort",c)}if(sz(u)){let m=u.status;if(Y9.has(m)){let w=u.headers.get("Location");if(le(w,"Redirects returned/thrown from loaders/actions must have a Location header"),!zA.test(w))w=C0(new URL(e.url),r.slice(0,r.indexOf(n)+1),s,!0,w);else if(!a.isStaticRequest){let v=new URL(e.url),y=w.startsWith("//")?new URL(v.protocol+w):new URL(w),E=Xn(y.pathname,s)!=null;y.origin===v.origin&&E&&(w=y.pathname+y.search+y.hash)}if(a.isStaticRequest)throw u.headers.set("Location",w),u;return{type:Mt.redirect,status:m,location:w,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:l===Mt.error?Mt.error:Mt.data,response:u};let g,b=u.headers.get("Content-Type");return b&&/\bapplication\/json\b/.test(b)?g=await u.json():g=await u.text(),l===Mt.error?{type:l,error:new Xb(m,u.statusText,g),headers:u.headers}:{type:Mt.data,data:g,statusCode:u.status,headers:u.headers}}if(l===Mt.error)return{type:l,error:u};if(oz(u)){var h,p;return{type:Mt.deferred,deferredData:u,statusCode:(h=u.init)==null?void 0:h.status,headers:((p=u.init)==null?void 0:p.headers)&&new Headers(u.init.headers)}}return{type:Mt.data,data:u}}function hu(t,e,n,r){let i=t.createURL(KA(e)).toString(),o={signal:n};if(r&&Rr(r.formMethod)){let{formMethod:s,formEncType:a}=r;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=x0(r.formData):o.body=r.formData}
vendor: 9,347 bytes, lines 114-123
114return new Request(i,o)}function x0(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function VC(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function rz(t,e,n,r,i){let o={},s=null,a,l=!1,u={};return n.forEach((c,d)=>{let h=e[d].route.id;if(le(!Za(c),"Cannot handle redirect results in processLoaderData"),Qu(c)){let p=Ba(t,h),m=c.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[p.route.id]==null&&(s[p.route.id]=m),o[h]=void 0,l||(l=!0,a=Zb(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else _s(c)?(i.set(h,c.deferredData),o[h]=c.deferredData.data):o[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(a=c.statusCode),c.headers&&(u[h]=c.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:u}}function FC(t,e,n,r,i,o,s,a){let{loaderData:l,errors:u}=rz(e,n,r,i,a);for(let c=0;c<o.length;c++){let{key:d,match:h,controller:p}=o[c];le(s!==void 0&&s[c]!==void 0,"Did not find corresponding fetcher result");let m=s[c];if(!(p&&p.signal.aborted))if(Qu(m)){let g=Ba(t.matches,h==null?void 0:h.route.id);u&&u[g.route.id]||(u=ht({},u,{[g.route.id]:m.error})),t.fetchers.delete(d)}else if(Za(m))le(!1,"Unhandled fetcher revalidation redirect");else if(_s(m))le(!1,"Unhandled fetcher deferred data");else{let g=Ea(m.data);t.fetchers.set(d,g)}}return{loaderData:l,errors:u}}function jC(t,e,n,r){let i=ht({},e);for(let o of n){let s=o.route.id;if(e.hasOwnProperty(s)?e[s]!==void 0&&(i[s]=e[s]):t[s]!==void 0&&o.route.loader&&(i[s]=t[s]),r&&r.hasOwnProperty(s))break}return i}function Ba(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function UC(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function dr(t,e){let{pathname:n,routeId:r,method:i,type:o}=e===void 0?{}:e,s="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(s="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):t===403?(s="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):t===404?(s="Not Found",a='No route matches URL "'+n+'"'):t===405&&(s="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new Xb(t||500,s,new Error(a),!0)}function BC(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(Za(n))return{result:n,idx:e}}}function KA(t){let e=typeof t=="string"?_r(t):t;return Fr(ht({},e,{hash:""}))}function iz(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function _s(t){return t.type===Mt.deferred}function Qu(t){return t.type===Mt.error}function Za(t){return(t&&t.type)===Mt.redirect}function oz(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function sz(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function az(t){return Q9.has(t.toLowerCase())}function Rr(t){return G9.has(t.toLowerCase())}async function zC(t,e,n,r,i,o){for(let s=0;s<n.length;s++){let a=n[s],l=e[s];if(!l)continue;let u=t.find(d=>d.route.id===l.route.id),c=u!=null&&!HA(u,l)&&(o&&o[l.route.id])!==void 0;if(_s(a)&&(i||c)){let d=r[s];le(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await GA(a,d,i).then(h=>{h&&(n[s]=h||n[s])})}}}async function GA(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Mt.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Mt.error,error:i}}return{type:Mt.data,data:t.deferredData.data}}}function eE(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function T0(t,e){let n=typeof e=="string"?_r(e).search:e.search;if(t[t.length-1].route.index&&eE(n||""))return t[t.length-1];let r=ud(t);return r[r.length-1]}function WC(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:o,json:s}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:e,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function hv(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function lz(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function pu(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function uz(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Ea(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function cz(t,e){try{let n=t.sessionStorage.getItem(WA);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&e.set(i,new Set(o||[]))}}catch{}}function dz(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(WA,JSON.stringify(n))}catch(r){hi(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** 115 * React Router v6.17.0 116 * 117 * Copyright (c) Remix Software Inc. 118 * 119 * This source code is licensed under the MIT license found in the 120 * LICENSE.md file in the root directory of this source tree. 121 * 122 * @license MIT 123 */function js(){return js=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},js.apply(this,arguments)}const Ml=f.createContext(null),cd=f.createContext(null),Xh=f.createContext(null),Sr=f.createContext(null),Dl=f.createContext(null),Bn=f.createContext({outlet:null,matches:[],isDataRoute:!1}),qA=f.createContext(null);function QA(t,e){let{relative:n}=e===void 0?{}:e;Jo()||le(!1);let{basename:r,navigator:i}=f.useContext(Sr),{hash:o,pathname:s,search:a}=Ol(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:si([r,s])),i.createHref({pathname:l,search:a,hash:o})}function Jo(){return f.useContext(Dl)!=null}function Cr(){return Jo()||le(!1),f.useContext(Dl).location}function fz(){return f.useContext(Dl).navigationType}function hz(t){Jo()||le(!1);let{pathname:e}=Cr();return f.useMemo(()=>Tc(t,e),[e,t])}function YA(t){f.useContext(Sr).static||f.useLayoutEffect(t)}function ta(){let{isDataRoute:t}=f.useContext(Bn);return t?Iz():pz()}function pz(){Jo()||le(!1);let t=f.useContext(Ml),{basename:e,navigator:n}=f.useContext(Sr),{matches:r}=f.useContext(Bn),{pathname:i}=Cr(),o=JSON.stringify(ud(r).map(l=>l.pathnameBase)),s=f.useRef(!1);return YA(()=>{s.current=!0}),f.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let c=sm(l,JSON.parse(o),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:si([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,o,i,t])}const XA=f.createContext(null);function mz(){return f.useContext(XA)}function ZA(t){let e=f.useContext(Bn).outlet;return e&&f.createElement(XA.Provider,{value:t},e)}function gz(){let{matches:t}=f.useContext(Bn),e=t[t.length-1];return e?e.params:{}}function Ol(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=f.useContext(Bn),{pathname:i}=Cr(),o=JSON.stringify(ud(r).map(s=>s.pathnameBase));return f.useMemo(()=>sm(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function JA(t,e){return eM(t,e)}function eM(t,e,n){Jo()||le(!1);let{navigator:r}=f.useContext(Sr),{matches:i}=f.useContext(Bn),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Cr(),u;if(e){var c;let g=typeof e=="string"?_r(e):e;a==="/"||(c=g.pathname)!=null&&c.startsWith(a)||le(!1),u=g}else u=l;let d=u.pathname||"/",h=a==="/"?d:d.slice(a.length)||"/",p=Es(t,{pathname:h}),m=tM(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:si([a,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?a:si([a,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n);return e&&m?f.createElement(Dl.Provider,{value:{location:js({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:at.Pop}},m):m}
123function vz(){let t=oM(),e=Zb(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},e),n?f.createElement("pre",{style:i},n):null,o)}const yz=f.createElement(vz,null);class wz extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?f.createElement(Bn.Provider,{value:this.props.routeContext},f.createElement(qA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bz(t){let{routeContext:e,match:n,children:r}=t,i=f.useContext(Ml);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(Bn.Provider,{value:e},r)}function tM(t,e,n){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),t==null){var i;if((i=n)!=null&&i.errors)t=n.matches;else return null}let o=t,s=(r=n)==null?void 0:r.errors;if(s!=null){let a=o.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id]));a>=0||le(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,l,u)=>{let c=l.route.id?s==null?void 0:s[l.route.id]:null,d=null;n&&(d=l.route.errorElement||yz);let h=e.concat(o.slice(0,u+1)),p=()=>{let m;return c?m=d:l.route.Component?m=f.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,f.createElement(bz,{match:l,routeContext:{outlet:a,matches:h,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?f.createElement(wz,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var am=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(am||{}),Zn=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Zn||{});function tE(t){let e=f.useContext(Ml);return e||le(!1),e}function es(t){let e=f.useContext(cd);return e||le(!1),e}function Ez(t){let e=f.useContext(Bn);return e||le(!1),e}function lm(t){let e=Ez(),n=e.matches[e.matches.length-1];return n.route.id||le(!1),n.route.id}function nM(){return lm(Zn.UseRouteId)}function rM(){return es(Zn.UseNavigation).navigation}function _z(){let t=tE(am.UseRevalidator),e=es(Zn.UseRevalidator);return f.useMemo(()=>({revalidate:t.router.revalidate,state:e.revalidation}),[t.router.revalidate,e.revalidation])}function iM(){let{matches:t,loaderData:e}=es(Zn.UseMatches);return f.useMemo(()=>t.map(n=>$A(n,e)),[t,e])}function Sz(){let t=es(Zn.UseLoaderData),e=lm(Zn.UseLoaderData);if(t.errors&&t.errors[e]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+e+")");return}return t.loaderData[e]}function Cz(t){return es(Zn.UseRouteLoaderData).loaderData[t]}function xz(){let t=es(Zn.UseActionData);return f.useContext(Bn)||le(!1),Object.values((t==null?void 0:t.actionData)||{})[0]}function oM(){var t;let e=f.useContext(qA),n=es(Zn.UseRouteError),r=lm(Zn.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function sM(){let t=f.useContext(Xh);return t==null?void 0:t._data}function Tz(){let t=f.useContext(Xh);return t==null?void 0:t._error}let Pz=0;function aM(t){let{router:e,basename:n}=tE(am.UseBlocker),r=es(Zn.UseBlocker),[i,o]=f.useState(""),s=f.useCallback(a=>
123{if(typeof t!="function")return!!t;if(n==="/")return t(a);let{currentLocation:l,nextLocation:u,historyAction:c}=a;return t({currentLocation:js({},l,{pathname:Xn(l.pathname,n)||l.pathname}),nextLocation:js({},u,{pathname:Xn(u.pathname,n)||u.pathname}),historyAction:c})},[n,t]);return f.useEffect(()=>{let a=String(++Pz);return o(a),()=>e.deleteBlocker(a)},[e]),f.useEffect(()=>{i!==""&&e.getBlocker(i,s)},[e,i,s]),i&&r.blockers.has(i)?r.blockers.get(i):ba}function Iz(){let{router:t}=tE(am.UseNavigateStable),e=lm(Zn.UseNavigateStable),n=f.useRef(!1);return YA(()=>{n.current=!0}),f.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,js({fromRouteId:e},o)))},[t,e])}const Lz="startTransition",HC=YP[Lz];function Rz(t){let{basename:e,children:n,initialEntries:r,initialIndex:i,future:o}=t,s=f.useRef();s.current==null&&(s.current=MA({initialEntries:r,initialIndex:i,v5Compat:!0}));let a=s.current,[l,u]=f.useState({action:a.action,location:a.location}),{v7_startTransition:c}=o||{},d=f.useCallback(h=>{c&&HC?HC(()=>u(h)):u(h)},[u,c]);return f.useLayoutEffect(()=>a.listen(d),[a,d]),f.createElement(Nl,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:a})}function lM(t){let{to:e,replace:n,state:r,relative:i}=t;Jo()||le(!1);let{matches:o}=f.useContext(Bn),{pathname:s}=Cr(),a=ta(),l=sm(e,ud(o).map(c=>c.pathnameBase),s,i==="path"),u=JSON.stringify(l);return f.useEffect(()=>a(JSON.parse(u),{replace:n,state:r,relative:i}),[a,u,i,n,r]),null}function nE(t){return ZA(t.context)}function Yr(t){le(!1)}function Nl(t){let{basename:e="/",children:n=null,location:r,navigationType:i=at.Pop,navigator:o,static:s=!1}=t;Jo()&&le(!1);let a=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=_r(r));let{pathname:u="/",search:c="",hash:d="",state:h=null,key:p="default"}=r,m=f.useMemo(()=>{let g=Xn(u,a);return g==null?null:{location:{pathname:g,search:c,hash:d,state:h,key:p},navigationType:i}},[a,u,c,d,h,p,i]);return m==null?null:f.createElement(Sr.Provider,{value:l},f.createElement(Dl.Provider,{children:n,value:m}))}function uM(t){let{children:e,location:n}=t;return JA(Pc(e),n)}function kz(t){let{children:e,errorElement:n,resolve:r}=t;return f.createElement(Mz,{resolve:r,errorElement:n},f.createElement(Dz,null,e))}var ur=function(t){return t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error",t}(ur||{});const Az=new Promise(()=>{});class Mz extends f.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,n){console.error("<Await> caught the following error during render",e,n)}render(){let{children:e,errorElement:n,resolve:r}=this.props,i=null,o=ur.pending;if(!(r instanceof Promise))o=ur.success,i=Promise.resolve(),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_data",{get:()=>r});else if(this.state.error){o=ur.error;let s=this.state.error;i=Promise.reject().catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_error",{get:()=>s})}else r._tracked?(i=r,o=i._error!==void 0?ur.error:i._data!==void 0?ur.success:ur.pending):(o=ur.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),i=r.then(s=>Object.defineProperty(r,"_data",{get:()=>s}),s=>Object.defineProperty(r,"_error",{get:()=>s})));if(o===ur.error&&i._error instanceof Yh)throw Az;if(o===ur.error&&!n)throw i._error;if(o===ur.error)return f.createElement(Xh.Provider,{value:i,children:n});if(o===ur.success)return f.createElement(Xh.Provider,{value:i,children:e});throw i}}function Dz(t){let{children:e}=t,n=sM(),r=typeof e=="function"?e(n):e;return f.createElement(f.Fragment,null,r)}function Pc(t,e){e===void 0&&(e=[]);let n=[];return f.Children.forEach(t,(r,i)=>{if(!f.isValidElement(r))return;let o=[...e,i];if(r.type===f.Fragment){n.push.apply(n,Pc(r.props.children,o));return}r.type!==Yr&&le(!1),!r.props.index||!r.props.children||le(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,
123shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Pc(r.props.children,o)),n.push(s)}),n}function Oz(t){return tM(t)}function rE(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:f.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:f.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}function Nz(t,e){return Jb({basename:e==null?void 0:e.basename,future:js({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:MA({initialEntries:e==null?void 0:e.initialEntries,initialIndex:e==null?void 0:e.initialIndex}),hydrationData:e==null?void 0:e.hydrationData,routes:t,mapRouteProperties:rE}).initialize()}/** 124 * React Router DOM v6.17.0 125 * 126 * Copyright (c) Remix Software Inc. 127 * 128 * This source code is licensed under the MIT license found in the 129 * LICENSE.md file in the root directory of this source tree. 130 * 131 * @license MIT 132 */function Jn(){return Jn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jn.apply(this,arguments)}function iE(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}const Yf="get",pv="application/x-www-form-urlencoded";function um(t){return t!=null&&typeof t.tagName=="string"}function $z(t){return um(t)&&t.tagName.toLowerCase()==="button"}function Vz(t){return um(t)&&t.tagName.toLowerCase()==="form"}function Fz(t){return um(t)&&t.tagName.toLowerCase()==="input"}function jz(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Uz(t,e){return t.button===0&&(!e||e==="_self")&&!jz(t)}function Zh(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Bz(t,e){let n=Zh(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(o=>{n.append(i,o)})}),n}let wf=null;function zz(){if(wf===null)try{new FormData(document.createElement("form"),0),wf=!1}catch{wf=!0}return wf}const Wz=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mv(t){return t!=null&&!Wz.has(t)?null:t}function cM(t,e){let n,r,i,o,s;if(Vz(t)){let a=t.getAttribute("action");r=a?Xn(a,e):null,n=t.getAttribute("method")||Yf,i=mv(t.getAttribute("enctype"))||pv,o=new FormData(t)}else if($z(t)||Fz(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(r=l?Xn(l,e):null,n=t.getAttribute("formmethod")||a.getAttribute("method")||Yf,i=mv(t.getAttribute("formenctype"))||mv(a.getAttribute("enctype"))||pv,o=new FormData(a,t),!zz()){let{name:u,type:c,value:d}=t;if(c==="image"){let h=u?u+".":"";o.append(h+"x","0"),o.append(h+"y","0")}else u&&o.append(u,d)}}else{if(um(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yf,r=null,i=pv,s=t}return o&&i==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:s}}const Hz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Kz=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Gz=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset","unstable_viewTransition"];function qz(t,e){return Jb({basename:e==null?void 0:e.basename,future:Jn({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:DA({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||dM(),routes:t,mapRouteProperties:rE,window:e==null?void 0:e.window}).initialize()}function Qz(t,e){return Jb({basename:e==null?void 0:e.basename,future:Jn({}
132,e==null?void 0:e.future,{v7_prependBasename:!0}),history:OA({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||dM(),routes:t,mapRouteProperties:rE,window:e==null?void 0:e.window}).initialize()}function dM(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Jn({},e,{errors:Yz(e.errors)})),e}function Yz(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new Xb(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let s=new o(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const oE=f.createContext({isTransitioning:!1}),Xz="startTransition",Bo=YP[Xz];function Zz(t){Bo?Bo(t):t()}let Jz=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function e8(t){let{fallbackElement:e,router:n,future:r}=t,[i,o]=f.useState(n.state),[s,a]=f.useState(),[l,u]=f.useState({isTransitioning:!1}),[c,d]=f.useState(),[h,p]=f.useState(),[m,g]=f.useState(),{v7_startTransition:b}=r||{},w=f.useCallback(S=>{b?Zz(S):S()},[b]),v=f.useCallback((S,P)=>{let{unstable_viewTransitionOpts:_}=P;!_||n.window==null||typeof n.window.document.startViewTransition!="function"?w(()=>o(S)):h&&c?(c.resolve(),h.skipTransition(),g({state:S,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(a(S),u({isTransitioning:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[w,h,c,n.window]);f.useLayoutEffect(()=>n.subscribe(v),[n,v]),f.useEffect(()=>{l.isTransitioning&&d(new Jz)},[l.isTransitioning]),f.useEffect(()=>{if(c&&s&&n.window){let S=s,P=c.promise,_=n.window.document.startViewTransition(async()=>{w(()=>o(S)),await P});_.finished.finally(()=>{d(void 0),p(void 0),a(void 0),u({isTransitioning:!1})}),p(_)}},[w,s,c,n.window]),f.useEffect(()=>{c&&s&&i.location.key===s.location.key&&c.resolve()},[c,h,i.location,s]),f.useEffect(()=>{!l.isTransitioning&&m&&(a(m.state),u({isTransitioning:!0,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]);let y=f.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:S=>n.navigate(S),push:(S,P,_)=>n.navigate(S,{state:P,preventScrollReset:_==null?void 0:_.preventScrollReset}),replace:(S,P,_)=>n.navigate(S,{replace:!0,state:P,preventScrollReset:_==null?void 0:_.preventScrollReset})}),[n]),E=n.basename||"/",C=f.useMemo(()=>({router:n,navigator:y,static:!1,basename:E}),[n,y,E]);return f.createElement(f.Fragment,null,f.createElement(Ml.Provider,{value:C},f.createElement(cd.Provider,{value:i},f.createElement(oE.Provider,{value:l},f.createElement(Nl,{basename:E,location:i.location,navigationType:i.historyAction,navigator:y},i.initialized?f.createElement(t8,{routes:n.routes,state:i}):e)))),null)}function t8(t){let{routes:e,state:n}=t;return eM(e,void 0,n)}function fM(t){let{basename:e,children:n,future:r,window:i}=t,o=f.useRef();o.current==null&&(o.current=DA({window:i,v5Compat:!0}));let s=o.current,[a,l]=f.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=f.useCallback(d=>{u&&Bo?Bo(()=>l(d)):l(d)},[l,u]);return f.useLayoutEffect(()=>s.listen(c),[s,c]),f.createElement(Nl,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s})}function n8(t){let{basename:e,children:n,future:r,window:i}=t,o=f.useRef();o.current==null&&(o.current=OA({window:i,v5Compat:!0}));let s=o.current,[a,l]=f.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=f.useCallback(d=>{u&&Bo?Bo(()=>l(d)):l(d)},[l,u]);return f.useLayoutEffect(()=>s.listen(c),[s,c]),f.createElement(Nl,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s})}function r8(t){let{basename:e,children:n,future:r,history:i}=t,[o,s]=f.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},l=f.useCallback(u=>{a&&Bo?Bo(()=>s(u)):s(u)},[s,a]);return f.useLayoutEffect(()=>i.listen(l),[i,l]),f.createElement(Nl,{basename:e,children:n,location:o.location,navigationType:o.action,navigator:i})}const i8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hn=f.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}
132=e,h=iE(e,Hz),{basename:p}=f.useContext(Sr),m,g=!1;if(typeof u=="string"&&o8.test(u)&&(m=u,i8))try{let y=new URL(window.location.href),E=u.startsWith("//")?new URL(y.protocol+u):new URL(u),C=Xn(E.pathname,p);E.origin===y.origin&&C!=null?u=C+E.search+E.hash:g=!0}catch{}let b=QA(u,{relative:i}),w=mM(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function v(y){r&&r(y),y.defaultPrevented||w(y)}return f.createElement("a",Jn({},h,{href:m||b,onClick:g||o?r:v,ref:n,target:l}))}),s8=f.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,unstable_viewTransition:u,children:c}=e,d=iE(e,Kz),h=Ol(l,{relative:d.relative}),p=Cr(),m=f.useContext(cd),{navigator:g}=f.useContext(Sr),b=m!=null&&EM(h)&&u===!0,w=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,v=p.pathname,y=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(v=v.toLowerCase(),y=y?y.toLowerCase():null,w=w.toLowerCase());let E=v===w||!s&&v.startsWith(w)&&v.charAt(w.length)==="/",C=y!=null&&(y===w||!s&&y.startsWith(w)&&y.charAt(w.length)==="/"),S={isActive:E,isPending:C,isTransitioning:b},P=E?r:void 0,_;typeof o=="function"?_=o(S):_=[o,E?"active":null,C?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let k=typeof a=="function"?a(S):a;return f.createElement(hn,Jn({},d,{"aria-current":P,className:_,ref:n,style:k,to:l,unstable_viewTransition:u}),typeof c=="function"?c(S):c)}),a8=f.forwardRef((t,e)=>{let n=vM();return f.createElement(hM,Jn({},t,{submit:n,ref:e}))}),hM=f.forwardRef((t,e)=>{let{reloadDocument:n,replace:r,state:i,method:o=Yf,action:s,onSubmit:a,submit:l,relative:u,preventScrollReset:c,unstable_viewTransition:d}=t,h=iE(t,Gz),p=o.toLowerCase()==="get"?"get":"post",m=wM(s,{relative:u}),g=b=>{if(a&&a(b),b.defaultPrevented)return;b.preventDefault();let w=b.nativeEvent.submitter,v=(w==null?void 0:w.getAttribute("formmethod"))||o;l(w||b.currentTarget,{method:v,replace:r,state:i,relative:u,preventScrollReset:c,unstable_viewTransition:d})};return f.createElement("form",Jn({ref:e,method:p,action:m,onSubmit:n?a:g},h))});function l8(t){let{getKey:e,storageKey:n}=t;return bM({getKey:e,storageKey:n}),null}var Us;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Us||(Us={}));var Jh;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Jh||(Jh={}));function dd(t){let e=f.useContext(Ml);return e||le(!1),e}function pM(t){let e=f.useContext(cd);return e||le(!1),e}function mM(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=e===void 0?{}:e,l=ta(),u=Cr(),c=Ol(t,{relative:s});return f.useCallback(d=>{if(Uz(d,n)){d.preventDefault();let h=r!==void 0?r:Fr(u)===Fr(c);l(t,{replace:h,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}}
132,[u,l,c,r,i,n,t,o,s,a])}function u8(t){let e=f.useRef(Zh(t)),n=f.useRef(!1),r=Cr(),i=f.useMemo(()=>Bz(r.search,n.current?null:e.current),[r.search]),o=ta(),s=f.useCallback((a,l)=>{const u=Zh(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,l)},[o,i]);return[i,s]}function gM(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function vM(){let{router:t}=dd(Us.UseSubmit),{basename:e}=f.useContext(Sr),n=nM();return f.useCallback(function(r,i){i===void 0&&(i={}),gM();let{action:o,method:s,encType:a,formData:l,body:u}=cM(r,e);t.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||s,formEncType:i.encType||a,replace:i.replace,state:i.state,fromRouteId:n,unstable_viewTransition:i.unstable_viewTransition})},[t,e,n])}function yM(t,e){let{router:n}=dd(Us.UseSubmitFetcher),{basename:r}=f.useContext(Sr);return f.useCallback(function(i,o){o===void 0&&(o={}),gM();let{action:s,method:a,encType:l,formData:u,body:c}=cM(i,r);e==null&&le(!1),n.fetch(t,e,o.action||s,{preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||a,formEncType:o.encType||l})},[n,r,t,e])}function wM(t,e){let{relative:n}=e===void 0?{}:e,{basename:r}=f.useContext(Sr),i=f.useContext(Bn);i||le(!1);let[o]=i.matches.slice(-1),s=Jn({},Ol(t||".",{relative:n})),a=Cr();if(t==null&&(s.search=a.search,o.route.index)){let l=new URLSearchParams(s.search);l.delete("index"),s.search=l.toString()?"?"+l.toString():""}return(!t||t===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:si([r,s.pathname])),Fr(s)}function c8(t,e){return f.forwardRef((r,i)=>{let o=yM(t,e);return f.createElement(hM,Jn({},r,{ref:i,submit:o}))})}let d8=0;function f8(){var t;let{router:e}=dd(Us.UseFetcher),n=f.useContext(Bn);n||le(!1);let r=(t=n.matches[n.matches.length-1])==null?void 0:t.route.id;r==null&&le(!1);let[i]=f.useState(()=>String(++d8)),[o]=f.useState(()=>(r||le(!1),c8(i,r))),[s]=f.useState(()=>c=>{e||le(!1),r||le(!1),e.fetch(i,r,c)}),a=yM(i,r),l=e.getFetcher(i),u=f.useMemo(()=>Jn({Form:o,submit:a,load:s},l),[l,o,a,s]);return f.useEffect(()=>()=>{if(!e){console.warn("No router available to clean up from useFetcher()");return}e.deleteFetcher(i)},[e,i]),u}function h8(){return[...pM(Jh.UseFetchers).fetchers.values()]}const KC="react-router-scroll-positions";let bf={};function bM(t){let{getKey:e,storageKey:n}=t===void 0?{}:t,{router:r}=dd(Us.UseScrollRestoration),{restoreScrollPosition:i,preventScrollReset:o}=pM(Jh.UseScrollRestoration),{basename:s}=f.useContext(Sr),a=Cr(),l=iM(),u=rM();f.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),m8(f.useCallback(()=>{if(u.state==="idle"){let c=(e?e(a,l):null)||a.key;bf[c]=window.scrollY}try{sessionStorage.setItem(n||KC,JSON.stringify(bf))}catch{}window.history.scrollRestoration="auto"},[n,e,u.state,a,l])),typeof document<"u"&&(f.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(n||KC);c&&(bf=JSON.parse(c))}catch{}},[n]),f.useLayoutEffect(()=>{let c=e&&s!=="/"?(h,p)=>e(Jn({},h,{pathname:Xn(h.pathname,s)||h.pathname}),p):e,d=r==null?void 0:r.enableScrollRestoration(bf,()=>window.scrollY,c);return()=>d&&d()},[r,s,e]),f.useLayoutEffect(()=>{if(i!==!1){if(typeof i=="number"){window.scrollTo(0,i);return}if(a.hash){let c=document.getElementById(decodeURIComponent(a.hash.slice(1)));if(c){c.scrollIntoView();return}}o!==!0&&window.scrollTo(0,0)}},[a,i,o]))}function p8(t,e){let{capture:n}=e||{};f.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("beforeunload",t,r),()=>{window.removeEventListener("beforeunload",t,r)}},[t,n])}function m8(t,e){let{capture:n}=e||{};f.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",t,r),()=>{window.removeEventListener("pagehide",t,r)}},[t,n])}function g8(t){let{when:e,message:n}=t,r=aM(e);f.useEffect(()=>{r.state==="blocked"&&(window.confirm(n)?setTimeout(r.proceed,0):r.reset())},[r,n]),f.useEffect(()=>{r.state==="blocked"&&!e&&r.reset()},[r,e])}function EM(t,e){e===void 0&&(e={});let n=f.useContext(oE);n==null&&le(!1);let{basename:r}=dd(Us.useViewTransitionState),i=Ol(t,{relative:e.relative});if(!n.isTransitioning)return!1;let o=Xn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Xn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Tc(i.pathname,s)!=null||Tc(i.pathname,o)!=null}const v8=Object.freeze(Object.defineProperty({__proto__:null,AbortedDeferredError:Yh,Await:kz,BrowserRouter:fM,Form:a8,HashRouter:n8,Link:hn,MemoryRouter:Rz,NavLink:s8,Navigate:lM,get NavigationType(){return at},Outlet:nE,Route:Yr,Router:Nl,RouterProvider:e8,Routes:uM,ScrollRestoration:l8,UNSAFE_DataRouterContext:Ml,UNSAFE_DataRouterStateContext:cd,UNSAFE_LocationContext:Dl,UNSAFE_NavigationContext:Sr,UNSAFE_RouteContext:Bn,UNSAFE_ViewTransitionContext:oE,UNSAFE_useRouteId:nM,UNSAFE_useScrollRestoration:bM,createBrowserRouter:qz,createHashRouter:Qz,createMemoryRouter:Nz,createPath:Fr,createRoutesFromChildren:Pc,createRoutesFromElements:Pc,createSearchParams:Zh,defer:H9,generatePath:M9,isRouteErrorResponse:Zb,json:U9,matchPath:Tc,matchRoutes:Es,parsePath:_r,redirect:UA,redirectDocument:K9,renderMatches:Oz,resolvePath:jA,unstable_HistoryRouter:r8,unstable_useBlocker:aM,unstable_usePrompt:g8,unstable_useViewTransitionState:EM,useActionData:xz,useAsyncError:Tz,useAsyncValue:sM,useBeforeUnload:p8,useFetcher:f8,useFetchers:h8,useFormAction:wM,useHref:QA,useInRouterContext:Jo,useLinkClickHandler:mM,useLoaderData:Sz,useLocation:Cr,useMatch:hz,useMatches:iM,useNavigate:ta,useNavigation:rM,useNavigationType:fz,useOutlet:ZA,useOutletContext:mz,useParams:gz,useResolvedPath:Ol,useRevalidator:_z,useRouteError:oM,useRouteLoaderData:Cz,useRoutes:JA,useSearchParams:u8,useSubmit:vM},Symbol.toStringTag,{value:"Module"})),y8="/assets/main_logo-962320cd.svg",w8="/assets/videoBg-5904056f.mp4";/** 133 * @license 134 * Copyright 2017 Google LLC 135 * 136 * Licensed under the Apache License, Version 2.0 (the "License");
137 * you may not use this file except in compliance with the License. 138 * You may obtain a copy of the License at 139 * 140 * http://www.apache.org/licenses/LICENSE-2.0 141 * 142 * Unless required by applicable law or agreed to in writing, software 143 * distributed under the License is distributed on an "AS IS" BASIS, 144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 145 * See the License for the specific language governing permissions and 146 * limitations under the License. 147 *//** 148 * @license 149 * Copyright 2017 Google LLC 150 * 151 * Licensed under the Apache License, Version 2.0 (the "License"); 152 * you may not use this file except in compliance with the License. 153 * You may obtain a copy of the License at 154 * 155 * http://www.apache.org/licenses/LICENSE-2.0 156 * 157 * Unless required by applicable law or agreed to in writing, software 158 * distributed under the License is distributed on an "AS IS" BASIS, 159 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 160 * See the License for the specific language governing permissions and 161 * limitations under the License. 162 */const _M=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},b8=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],s=t[n++],a=t[n++],l=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const o=t[n++],s=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return e.join("")},SM={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],s=i+1<t.length,a=s?t[i+1]:0,l=i+2<t.length,u=l?t[i+2]:0,c=o>>2,d=(o&3)<<4|a>>4;let h=(a&15)<<2|u>>6,p=u&63;l||(p=64,s||(h=64)),r.push(n[c],n[d],n[h],n[p])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(_M(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):b8(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0;++i;const u=i<t.length?n[t.charAt(i)]:64;++i;const d=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||a==null||u==null||d==null)throw new E8;const h=o<<2|a>>4;if(r.push(h),u!==64){const p=a<<4&240|u>>2;if(r.push(p),d!==64){const m=u<<6&192|d;r.push(m)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class E8 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const _8=function(t){const e=_M(t);return SM.encodeByteArray(e,!0)},ep=function(t){return _8(t).replace(/\./g,"")},CM=function(t){try{return SM.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 163 * @license 164 * Copyright 2022 Google LLC 165 * 166 * Licensed under the Apache License, Version 2.0 (the "License");
167 * you may not use this file except in compliance with the License. 168 * You may obtain a copy of the License at 169 * 170 * http://www.apache.org/licenses/LICENSE-2.0 171 * 172 * Unless required by applicable law or agreed to in writing, software 173 * distributed under the License is distributed on an "AS IS" BASIS, 174 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 175 * See the License for the specific language governing permissions and 176 * limitations under the License. 177 */function S8(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 178 * @license 179 * Copyright 2022 Google LLC 180 * 181 * Licensed under the Apache License, Version 2.0 (the "License"); 182 * you may not use this file except in compliance with the License. 183 * You may obtain a copy of the License at 184 * 185 * http://www.apache.org/licenses/LICENSE-2.0 186 * 187 * Unless required by applicable law or agreed to in writing, software 188 * distributed under the License is distributed on an "AS IS" BASIS, 189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 190 * See the License for the specific language governing permissions and 191 * limitations under the License. 192 */const C8=()=>S8().__FIREBASE_DEFAULTS__,x8=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t={}.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},T8=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&CM(t[1]);return e&&JSON.parse(e)},sE=()=>{try{return C8()||x8()||T8()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},xM=t=>{var e,n;return(n=(e=sE())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},P8=t=>{const e=xM(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},TM=()=>{var t;return(t=sE())===null||t===void 0?void 0:t.config},PM=t=>{var e;return(e=sE())===null||e===void 0?void 0:e[`_${t}`]};/** 193 * @license 194 * Copyright 2017 Google LLC 195 * 196 * Licensed under the Apache License, Version 2.0 (the "License"); 197 * you may not use this file except in compliance with the License. 198 * You may obtain a copy of the License at 199 * 200 * http://www.apache.org/licenses/LICENSE-2.0 201 * 202 * Unless required by applicable law or agreed to in writing, software 203 * distributed under the License is distributed on an "AS IS" BASIS, 204 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 205 * See the License for the specific language governing permissions and 206 * limitations under the License. 207 */class I8{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}/** 208 * @license 209 * Copyright 2021 Google LLC 210 * 211 * Licensed under the Apache License, Version 2.0 (the "License"); 212 * you may not use this file except in compliance with the License. 213 * You may obtain a copy of the License at 214 * 215 * http://www.apache.org/licenses/LICENSE-2.0 216 * 217 * Unless required by applicable law or agreed to in writing, software 218 * distributed under the License is distributed on an "AS IS" BASIS, 219 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 220 * See the License for the specific language governing permissions and 221 * limitations under the License. 222 */function L8(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=e||"demo-project",i=t.iat||0,o=t.sub||t.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},t),a="";return[ep(JSON.stringify(n)),ep(JSON.stringify(s)),a].join(".")}/** 223 * @license 224 * Copyright 2017 Google LLC 225 * 226 * Licensed under the Apache License, Version 2.0 (the "License");
227 * you may not use this file except in compliance with the License. 228 * You may obtain a copy of the License at 229 * 230 * http://www.apache.org/licenses/LICENSE-2.0 231 * 232 * Unless required by applicable law or agreed to in writing, software 233 * distributed under the License is distributed on an "AS IS" BASIS, 234 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 235 * See the License for the specific language governing permissions and 236 * limitations under the License. 237 */function _n(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function R8(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(_n())}function k8(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function A8(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function M8(){const t=_n();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function D8(){try{return typeof indexedDB=="object"}catch{return!1}}function O8(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}/** 238 * @license 239 * Copyright 2017 Google LLC 240 * 241 * Licensed under the Apache License, Version 2.0 (the "License"); 242 * you may not use this file except in compliance with the License. 243 * You may obtain a copy of the License at 244 * 245 * http://www.apache.org/licenses/LICENSE-2.0 246 * 247 * Unless required by applicable law or agreed to in writing, software 248 * distributed under the License is distributed on an "AS IS" BASIS, 249 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 250 * See the License for the specific language governing permissions and 251 * limitations under the License. 252 */const N8="FirebaseError";class Gi extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=N8,Object.setPrototypeOf(this,Gi.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,fd.prototype.create)}}class fd{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],s=o?$8(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new Gi(i,a,r)}}function $8(t,e){return t.replace(V8,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const V8=/\{\$([^}]+)}/g;function F8(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function tp(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],s=e[i];if(GC(o)&&GC(s)){if(!tp(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function GC(t){return t!==null&&typeof t=="object"}/** 253 * @license 254 * Copyright 2017 Google LLC 255 * 256 * Licensed under the Apache License, Version 2.0 (the "License"); 257 * you may not use this file except in compliance with the License. 258 * You may obtain a copy of the License at 259 * 260 * http://www.apache.org/licenses/LICENSE-2.0 261 * 262 * Unless required by applicable law or agreed to in writing, software 263 * distributed under the License is distributed on an "AS IS" BASIS, 264 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 265 * See the License for the specific language governing permissions and 266 * limitations under the License. 267 */function hd(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function Lu(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[i,o]=r.split("=");e[decodeURIComponent(i)]=decodeURIComponent(o)}}),e}function Ru(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function j8(t,e){const n=new U8(t,e);return n.subscribe.bind(n)}class U8{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
267ise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let i;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");B8(e,["next","error","complete"])?i=e:i={next:e,error:n,complete:r},i.next===void 0&&(i.next=gv),i.error===void 0&&(i.error=gv),i.complete===void 0&&(i.complete=gv);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),o}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function B8(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function gv(){}/** 268 * @license 269 * Copyright 2021 Google LLC 270 * 271 * Licensed under the Apache License, Version 2.0 (the "License"); 272 * you may not use this file except in compliance with the License. 273 * You may obtain a copy of the License at 274 * 275 * http://www.apache.org/licenses/LICENSE-2.0 276 * 277 * Unless required by applicable law or agreed to in writing, software 278 * distributed under the License is distributed on an "AS IS" BASIS, 279 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 280 * See the License for the specific language governing permissions and 281 * limitations under the License. 282 */function kn(t){return t&&t._delegate?t._delegate:t}class Bs{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 283 * @license 284 * Copyright 2019 Google LLC 285 * 286 * Licensed under the Apache License, Version 2.0 (the "License"); 287 * you may not use this file except in compliance with the License. 288 * You may obtain a copy of the License at 289 * 290 * http://www.apache.org/licenses/LICENSE-2.0 291 * 292 * Unless required by applicable law or agreed to in writing, software 293 * distributed under the License is distributed on an "AS IS" BASIS, 294 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 295 * See the License for the specific language governing permissions and 296 * limitations under the License. 297 */const fs="[DEFAULT]";/** 298 * @license 299 * Copyright 2019 Google LLC 300 * 301 * Licensed under the Apache License, Version 2.0 (the "License"); 302 * you may not use this file except in compliance with the License. 303 * You may obtain a copy of the License at 304 * 305 * http://www.apache.org/licenses/LICENSE-2.0 306 * 307 * Unless required by applicable law or agreed to in writing, software 308 * distributed under the License is distributed on an "AS IS" BASIS, 309 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 310 * See the License for the specific language governing permissions and 311 * limitations under the License. 312 */let z8=class{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new I8;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(H8(e))try{this.getOrInitializeService({instanceIdentifier:fs})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=fs){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=fs){return this.instances.has(e)}getOptions(e=fs){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&e(s,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:W8(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=fs){return this.component?this.component.multipleInstances?e:fs:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function W8(t){return t===fs?void 0:t}function H8(t){return t.instantiationMode==="EAGER"}/** 313 * @license 314 * Copyright 2019 Google LLC 315 * 316 * Licensed under the Apache License, Version 2.0 (the "License");
317 * you may not use this file except in compliance with the License. 318 * You may obtain a copy of the License at 319 * 320 * http://www.apache.org/licenses/LICENSE-2.0 321 * 322 * Unless required by applicable law or agreed to in writing, software 323 * distributed under the License is distributed on an "AS IS" BASIS, 324 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 325 * See the License for the specific language governing permissions and 326 * limitations under the License. 327 */class K8{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new z8(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/** 328 * @license 329 * Copyright 2017 Google LLC 330 * 331 * Licensed under the Apache License, Version 2.0 (the "License"); 332 * you may not use this file except in compliance with the License. 333 * You may obtain a copy of the License at 334 * 335 * http://www.apache.org/licenses/LICENSE-2.0 336 * 337 * Unless required by applicable law or agreed to in writing, software 338 * distributed under the License is distributed on an "AS IS" BASIS, 339 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 340 * See the License for the specific language governing permissions and 341 * limitations under the License. 342 */var Ue;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ue||(Ue={}));const G8={debug:Ue.DEBUG,verbose:Ue.VERBOSE,info:Ue.INFO,warn:Ue.WARN,error:Ue.ERROR,silent:Ue.SILENT},q8=Ue.INFO,Q8={[Ue.DEBUG]:"log",[Ue.VERBOSE]:"log",[Ue.INFO]:"info",[Ue.WARN]:"warn",[Ue.ERROR]:"error"},Y8=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=Q8[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class aE{constructor(e){this.name=e,this._logLevel=q8,this._logHandler=Y8,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Ue))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?G8[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Ue.DEBUG,...e),this._logHandler(this,Ue.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Ue.VERBOSE,...e),this._logHandler(this,Ue.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Ue.INFO,...e),this._logHandler(this,Ue.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Ue.WARN,...e),this._logHandler(this,Ue.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Ue.ERROR,...e),this._logHandler(this,Ue.ERROR,...e)}}const X8=(t,e)=>e.some(n=>t instanceof n);let qC,QC;function Z8(){return qC||(qC=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function J8(){return QC||(QC=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const IM=new WeakMap,P0=new WeakMap,LM=new WeakMap,vv=new WeakMap,lE=new WeakMap;function e7(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{n(Lo(t.result)),i()},s=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",s)});return e.then(n=>{n instanceof IDBCursor&&IM.set(n,t)}).catch(()=>{}),lE.set(e,t),e}function t7(t){if(P0.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});P0.set(t,e)}let I0={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return P0.get(t);if(e==="objectStoreNames")return t.objectStoreNames||LM.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Lo(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function n7(t){I0=t(I0)}function r7(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(yv(this),e,...n);return LM.set(r,e.sort?e.sort():[e]),Lo(r)}:J8().includes(t)?function(...e){return t.apply(yv(this),e),Lo(IM.get(this))}:function(...e){return Lo(t.apply(yv(this),e))}}function i7(t){return typeof t=="function"?r7(t):(t instanceof IDBTransaction&&t7(t),X8(t,Z8())?new Proxy(t,I0):t)}function Lo(t){if(t instanceof IDBRequest)return e7(t);if(vv.has(t))return vv.get(t);const e=i7(t);return e!==t&&(vv.set(t,e),lE.set(e,t)),e}const yv=t=>lE.get(t);function o7(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(t,e),a=Lo(s);return r&&s.addEventListener("upgradeneeded",l=>{r(Lo(s.result),l.oldVersion,l.newVersion,Lo(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const s7=["get","getKey","getAll","getAllKeys","count"],a7=["put","add","delete","clear"],wv=new Map;function YC(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(wv.get(e))return wv.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=a7.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||s7.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let u=l.store;
342return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return wv.set(e,o),o}n7(t=>({...t,get:(e,n,r)=>YC(e,n)||t.get(e,n,r),has:(e,n)=>!!YC(e,n)||t.has(e,n)}));/** 343 * @license 344 * Copyright 2019 Google LLC 345 * 346 * Licensed under the Apache License, Version 2.0 (the "License"); 347 * you may not use this file except in compliance with the License. 348 * You may obtain a copy of the License at 349 * 350 * http://www.apache.org/licenses/LICENSE-2.0 351 * 352 * Unless required by applicable law or agreed to in writing, software 353 * distributed under the License is distributed on an "AS IS" BASIS, 354 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 355 * See the License for the specific language governing permissions and 356 * limitations under the License. 357 */class l7{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(u7(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function u7(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const L0="@firebase/app",XC="0.9.20";/** 358 * @license 359 * Copyright 2019 Google LLC 360 * 361 * Licensed under the Apache License, Version 2.0 (the "License"); 362 * you may not use this file except in compliance with the License. 363 * You may obtain a copy of the License at 364 * 365 * http://www.apache.org/licenses/LICENSE-2.0 366 * 367 * Unless required by applicable law or agreed to in writing, software 368 * distributed under the License is distributed on an "AS IS" BASIS, 369 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 370 * See the License for the specific language governing permissions and 371 * limitations under the License. 372 */const zs=new aE("@firebase/app"),c7="@firebase/app-compat",d7="@firebase/analytics-compat",f7="@firebase/analytics",h7="@firebase/app-check-compat",p7="@firebase/app-check",m7="@firebase/auth",g7="@firebase/auth-compat",v7="@firebase/database",y7="@firebase/database-compat",w7="@firebase/functions",b7="@firebase/functions-compat",E7="@firebase/installations",_7="@firebase/installations-compat",S7="@firebase/messaging",C7="@firebase/messaging-compat",x7="@firebase/performance",T7="@firebase/performance-compat",P7="@firebase/remote-config",I7="@firebase/remote-config-compat",L7="@firebase/storage",R7="@firebase/storage-compat",k7="@firebase/firestore",A7="@firebase/firestore-compat",M7="firebase",D7="10.5.0";/** 373 * @license 374 * Copyright 2019 Google LLC 375 * 376 * Licensed under the Apache License, Version 2.0 (the "License"); 377 * you may not use this file except in compliance with the License. 378 * You may obtain a copy of the License at 379 * 380 * http://www.apache.org/licenses/LICENSE-2.0 381 * 382 * Unless required by applicable law or agreed to in writing, software 383 * distributed under the License is distributed on an "AS IS" BASIS, 384 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 385 * See the License for the specific language governing permissions and 386 * limitations under the License. 387 */const R0="[DEFAULT]",O7={[L0]:"fire-core",[c7]:"fire-core-compat",[f7]:"fire-analytics",[d7]:"fire-analytics-compat",[p7]:"fire-app-check",[h7]:"fire-app-check-compat",[m7]:"fire-auth",[g7]:"fire-auth-compat",[v7]:"fire-rtdb",[y7]:"fire-rtdb-compat",[w7]:"fire-fn",[b7]:"fire-fn-compat",[E7]:"fire-iid",[_7]:"fire-iid-compat",[S7]:"fire-fcm",[C7]:"fire-fcm-compat",[x7]:"fire-perf",[T7]:"fire-perf-compat",[P7]:"fire-rc",[I7]:"fire-rc-compat",[L7]:"fire-gcs",[R7]:"fire-gcs-compat",[k7]:"fire-fst",[A7]:"fire-fst-compat","fire-js":"fire-js",[M7]:"fire-js-all"};/** 388 * @license 389 * Copyright 2019 Google LLC 390 * 391 * Licensed under the Apache License, Version 2.0 (the "License"); 392 * you may not use this file except in compliance with the License. 393 * You may obtain a copy of the License at 394 * 395 * http://www.apache.org/licenses/LICENSE-2.0 396 * 397 * Unless required by applicable law or agreed to in writing, software 398 * distributed under the License is distributed on an "AS IS" BASIS, 399 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 400 * See the License for the specific language governing permissions and 401 * limitations under the License. 402 */const np=new Map,k0=new Map;function N7(t,e){try{t.container.addComponent(e)}catch(n){zs.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function gl(t){const e=t.name;if(k0.has(e))return zs.debug(`There were multiple attempts to register component ${e}.`),!1;k0.set(e,t);for(const n of np.values())N7(n,t);return!0}function uE(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/** 403 * @license 404 * Copyright 2019 Google LLC 405 * 406 * Licensed under the Apache License, Version 2.0 (the "License");
407 * you may not use this file except in compliance with the License. 408 * You may obtain a copy of the License at 409 * 410 * http://www.apache.org/licenses/LICENSE-2.0 411 * 412 * Unless required by applicable law or agreed to in writing, software 413 * distributed under the License is distributed on an "AS IS" BASIS, 414 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 415 * See the License for the specific language governing permissions and 416 * limitations under the License. 417 */const $7={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Ro=new fd("app","Firebase",$7);/** 418 * @license 419 * Copyright 2019 Google LLC 420 * 421 * Licensed under the Apache License, Version 2.0 (the "License"); 422 * you may not use this file except in compliance with the License. 423 * You may obtain a copy of the License at 424 * 425 * http://www.apache.org/licenses/LICENSE-2.0 426 * 427 * Unless required by applicable law or agreed to in writing, software 428 * distributed under the License is distributed on an "AS IS" BASIS, 429 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 430 * See the License for the specific language governing permissions and 431 * limitations under the License. 432 */class V7{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Bs("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Ro.create("app-deleted",{appName:this._name})}}/** 433 * @license 434 * Copyright 2019 Google LLC 435 * 436 * Licensed under the Apache License, Version 2.0 (the "License"); 437 * you may not use this file except in compliance with the License. 438 * You may obtain a copy of the License at 439 * 440 * http://www.apache.org/licenses/LICENSE-2.0 441 * 442 * Unless required by applicable law or agreed to in writing, software 443 * distributed under the License is distributed on an "AS IS" BASIS, 444 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 445 * See the License for the specific language governing permissions and 446 * limitations under the License. 447 */const $l=D7;function RM(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:R0,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw Ro.create("bad-app-name",{appName:String(i)});if(n||(n=TM()),!n)throw Ro.create("no-options");const o=np.get(i);if(o){if(tp(n,o.options)&&tp(r,o.config))return o;throw Ro.create("duplicate-app",{appName:i})}const s=new K8(i);for(const l of k0.values())s.addComponent(l);const a=new V7(n,r,s);return np.set(i,a),a}function kM(t=R0){const e=np.get(t);if(!e&&t===R0&&TM())return RM();if(!e)throw Ro.create("no-app",{appName:t});return e}function ko(t,e,n){var r;let i=(r=O7[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${e}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),zs.warn(a.join(" "));return}gl(new Bs(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** 448 * @license 449 * Copyright 2021 Google LLC 450 * 451 * Licensed under the Apache License, Version 2.0 (the "License");
452 * you may not use this file except in compliance with the License. 453 * You may obtain a copy of the License at 454 * 455 * http://www.apache.org/licenses/LICENSE-2.0 456 * 457 * Unless required by applicable law or agreed to in writing, software 458 * distributed under the License is distributed on an "AS IS" BASIS, 459 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 460 * See the License for the specific language governing permissions and 461 * limitations under the License. 462 */const F7="firebase-heartbeat-database",j7=1,Ic="firebase-heartbeat-store";let bv=null;function AM(){return bv||(bv=o7(F7,j7,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Ic)}}}).catch(t=>{throw Ro.create("idb-open",{originalErrorMessage:t.message})})),bv}async function U7(t){try{return await(await AM()).transaction(Ic).objectStore(Ic).get(MM(t))}catch(e){if(e instanceof Gi)zs.warn(e.message);else{const n=Ro.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});zs.warn(n.message)}}}async function ZC(t,e){try{const r=(await AM()).transaction(Ic,"readwrite");await r.objectStore(Ic).put(e,MM(t)),await r.done}catch(n){if(n instanceof Gi)zs.warn(n.message);else{const r=Ro.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});zs.warn(r.message)}}}function MM(t){return`${t.name}!${t.options.appId}`}/** 463 * @license 464 * Copyright 2021 Google LLC 465 * 466 * Licensed under the Apache License, Version 2.0 (the "License"); 467 * you may not use this file except in compliance with the License. 468 * You may obtain a copy of the License at 469 * 470 * http://www.apache.org/licenses/LICENSE-2.0 471 * 472 * Unless required by applicable law or agreed to in writing, software 473 * distributed under the License is distributed on an "AS IS" BASIS, 474 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 475 * See the License for the specific language governing permissions and 476 * limitations under the License. 477 */const B7=1024,z7=30*24*60*60*1e3;class W7{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new K7(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=JC();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const o=new Date(i.date).valueOf();return Date.now()-o<=z7}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=JC(),{heartbeatsToSend:n,unsentEntries:r}=H7(this._heartbeatsCache.heartbeats),i=ep(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function JC(){return new Date().toISOString().substring(0,10)}function H7(t,e=B7){const n=[];let r=t.slice();for(const i of t){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),ex(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),ex(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class K7{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return D8()?O8().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await U7(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return ZC(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return ZC(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function ex(t){return ep(JSON.stringify({version:2,heartbeats:t})).length}/** 478 * @license 479 * Copyright 2019 Google LLC 480 * 481 * Licensed under the Apache License, Version 2.0 (the "License");
482 * you may not use this file except in compliance with the License. 483 * You may obtain a copy of the License at 484 * 485 * http://www.apache.org/licenses/LICENSE-2.0 486 * 487 * Unless required by applicable law or agreed to in writing, software 488 * distributed under the License is distributed on an "AS IS" BASIS, 489 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 490 * See the License for the specific language governing permissions and 491 * limitations under the License. 492 */function G7(t){gl(new Bs("platform-logger",e=>new l7(e),"PRIVATE")),gl(new Bs("heartbeat",e=>new W7(e),"PRIVATE")),ko(L0,XC,t),ko(L0,XC,"esm2017"),ko("fire-js","")}G7("");var q7="firebase",Q7="10.5.0";/** 493 * @license 494 * Copyright 2020 Google LLC 495 * 496 * Licensed under the Apache License, Version 2.0 (the "License"); 497 * you may not use this file except in compliance with the License. 498 * You may obtain a copy of the License at 499 * 500 * http://www.apache.org/licenses/LICENSE-2.0 501 * 502 * Unless required by applicable law or agreed to in writing, software 503 * distributed under the License is distributed on an "AS IS" BASIS, 504 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 505 * See the License for the specific language governing permissions and 506 * limitations under the License. 507 */ko(q7,Q7,"app");function tx(t){return t!==void 0&&t.enterprise!==void 0}class Y7{constructor(e){if(this.siteKey="",this.emailPasswordEnabled=!1,e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.emailPasswordEnabled=e.recaptchaEnforcementState.some(n=>n.provider==="EMAIL_PASSWORD_PROVIDER"&&n.enforcementState!=="OFF")}}function DM(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const X7=DM,OM=new fd("auth","Firebase",DM());/** 508 * @license 509 * Copyright 2020 Google LLC 510 * 511 * Licensed under the Apache License, Version 2.0 (the "License"); 512 * you may not use this file except in compliance with the License. 513 * You may obtain a copy of the License at 514 * 515 * http://www.apache.org/licenses/LICENSE-2.0 516 * 517 * Unless required by applicable law or agreed to in writing, software 518 * distributed under the License is distributed on an "AS IS" BASIS, 519 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 520 * See the License for the specific language governing permissions and 521 * limitations under the License. 522 */const rp=new aE("@firebase/auth");function Z7(t,...e){rp.logLevel<=Ue.WARN&&rp.warn(`Auth (${$l}): ${t}`,...e)}function Xf(t,...e){rp.logLevel<=Ue.ERROR&&rp.error(`Auth (${$l}): ${t}`,...e)}/** 523 * @license 524 * Copyright 2020 Google LLC 525 * 526 * Licensed under the Apache License, Version 2.0 (the "License"); 527 * you may not use this file except in compliance with the License. 528 * You may obtain a copy of the License at 529 * 530 * http://www.apache.org/licenses/LICENSE-2.0 531 * 532 * Unless required by applicable law or agreed to in writing, software 533 * distributed under the License is distributed on an "AS IS" BASIS, 534 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 535 * See the License for the specific language governing permissions and 536 * limitations under the License. 537 */function jr(t,...e){throw cE(t,...e)}function ai(t,...e){return cE(t,...e)}function J7(t,e,n){const r=Object.assign(Object.assign({},X7()),{[e]:n});return new fd("auth","Firebase",r).create(e,{appName:t.name})}function cE(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return OM.create(t,...e)}function ye(t,e,...n){if(!t)throw cE(e,...n)}function Pi(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Xf(e),new Error(e)}function Fi(t,e){t||Pi(e)}/** 538 * @license 539 * Copyright 2020 Google LLC 540 * 541 * Licensed under the Apache License, Version 2.0 (the "License"); 542 * you may not use this file except in compliance with the License. 543 * You may obtain a copy of the License at 544 * 545 * http://www.apache.org/licenses/LICENSE-2.0 546 * 547 * Unless required by applicable law or agreed to in writing, softw
547are 548 * distributed under the License is distributed on an "AS IS" BASIS, 549 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 550 * See the License for the specific language governing permissions and 551 * limitations under the License. 552 */function A0(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function eW(){return nx()==="http:"||nx()==="https:"}function nx(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/** 553 * @license 554 * Copyright 2020 Google LLC 555 * 556 * Licensed under the Apache License, Version 2.0 (the "License"); 557 * you may not use this file except in compliance with the License. 558 * You may obtain a copy of the License at 559 * 560 * http://www.apache.org/licenses/LICENSE-2.0 561 * 562 * Unless required by applicable law or agreed to in writing, software 563 * distributed under the License is distributed on an "AS IS" BASIS, 564 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 565 * See the License for the specific language governing permissions and 566 * limitations under the License. 567 */function tW(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(eW()||k8()||"connection"in navigator)?navigator.onLine:!0}function nW(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 568 * @license 569 * Copyright 2020 Google LLC 570 * 571 * Licensed under the Apache License, Version 2.0 (the "License"); 572 * you may not use this file except in compliance with the License. 573 * You may obtain a copy of the License at 574 * 575 * http://www.apache.org/licenses/LICENSE-2.0 576 * 577 * Unless required by applicable law or agreed to in writing, software 578 * distributed under the License is distributed on an "AS IS" BASIS, 579 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 580 * See the License for the specific language governing permissions and 581 * limitations under the License. 582 */class pd{constructor(e,n){this.shortDelay=e,this.longDelay=n,Fi(n>e,"Short delay should be less than long delay!"),this.isMobile=R8()||A8()}get(){return tW()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 583 * @license 584 * Copyright 2020 Google LLC 585 * 586 * Licensed under the Apache License, Version 2.0 (the "License"); 587 * you may not use this file except in compliance with the License. 588 * You may obtain a copy of the License at 589 * 590 * http://www.apache.org/licenses/LICENSE-2.0 591 * 592 * Unless required by applicable law or agreed to in writing, software 593 * distributed under the License is distributed on an "AS IS" BASIS, 594 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 595 * See the License for the specific language governing permissions and 596 * limitations under the License. 597 */function dE(t,e){Fi(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/** 598 * @license 599 * Copyright 2020 Google LLC 600 * 601 * Licensed under the Apache License, Version 2.0 (the "License"); 602 * you may not use this file except in compliance with the License. 603 * You may obtain a copy of the License at 604 * 605 * http://www.apache.org/licenses/LICENSE-2.0 606 * 607 * Unless required by applicable law or agreed to in writing, software 608 * distributed under the License is distributed on an "AS IS" BASIS, 609 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 610 * See the License for the specific language governing permissions and 611 * limitations under the License. 612 */class NM{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;Pi("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;Pi("Could not find Headers implementation, make sure you call FetchProvi
612der.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;Pi("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 613 * @license 614 * Copyright 2020 Google LLC 615 * 616 * Licensed under the Apache License, Version 2.0 (the "License"); 617 * you may not use this file except in compliance with the License. 618 * You may obtain a copy of the License at 619 * 620 * http://www.apache.org/licenses/LICENSE-2.0 621 * 622 * Unless required by applicable law or agreed to in writing, software 623 * distributed under the License is distributed on an "AS IS" BASIS, 624 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 625 * See the License for the specific language governing permissions and 626 * limitations under the License. 627 */const rW={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 628 * @license 629 * Copyright 2020 Google LLC 630 * 631 * Licensed under the Apache License, Version 2.0 (the "License"); 632 * you may not use this file except in compliance with the License. 633 * You may obtain a copy of the License at 634 * 635 * http://www.apache.org/licenses/LICENSE-2.0 636 * 637 * Unless required by applicable law or agreed to in writing, software 638 * distributed under the License is distributed on an "AS IS" BASIS, 639 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 640 * See the License for the specific language governing permissions and 641 * limitations under the License. 642 */const iW=new pd(3e4,6e4);function na(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function ra(t,e,n,r,i={}){return $M(t,i,async()=>{let o={},s={};r&&(e==="GET"?s=r:o={body:JSON.stringify(r)});const a=hd(Object.assign({key:t.config.apiKey},s)).slice(1),l=await t._getAdditionalHeaders();return l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode),NM.fetch()(VM(t,t.config.apiHost,n,a),Object.assign({method:e,headers:l,referrerPolicy:"no-referrer"},o))})}async function $M(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},rW),e);try{const i=new oW(t),o=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const s=await o.json();if("needConfirmation"in s)throw Ef(t,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const a=o.ok?s.errorMessage:s.error.message,[l,u]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Ef(t,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw Ef(t,"email-already-in-use",s);if(l==="USER_DISABLED")throw Ef(t,"user-disabled",s);const c=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(u)throw J7(t,c,u);jr(t,c)}}catch(i){if(i instanceof Gi)throw i;jr(t,"network-request-failed",{message:String(i)})}}async function md(t,e,n,r,i={}){const o=await ra(t,e,n,r,i);return"mfaPendingCredential"in o&&jr(t,"multi-factor-auth-required",{_serverResponse:o}),o}
642function VM(t,e,n,r){const i=`${e}${n}?${r}`;return t.config.emulator?dE(t.config,i):`${t.config.apiScheme}://${i}`}class oW{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(ai(this.auth,"network-request-failed")),iW.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Ef(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=ai(t,e,r);return i.customData._tokenResponse=n,i}async function sW(t,e){return ra(t,"GET","/v2/recaptchaConfig",na(t,e))}/** 643 * @license 644 * Copyright 2020 Google LLC 645 * 646 * Licensed under the Apache License, Version 2.0 (the "License"); 647 * you may not use this file except in compliance with the License. 648 * You may obtain a copy of the License at 649 * 650 * http://www.apache.org/licenses/LICENSE-2.0 651 * 652 * Unless required by applicable law or agreed to in writing, software 653 * distributed under the License is distributed on an "AS IS" BASIS, 654 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 655 * See the License for the specific language governing permissions and 656 * limitations under the License. 657 */async function aW(t,e){return ra(t,"POST","/v1/accounts:delete",e)}async function lW(t,e){return ra(t,"POST","/v1/accounts:lookup",e)}/** 658 * @license 659 * Copyright 2020 Google LLC 660 * 661 * Licensed under the Apache License, Version 2.0 (the "License"); 662 * you may not use this file except in compliance with the License. 663 * You may obtain a copy of the License at 664 * 665 * http://www.apache.org/licenses/LICENSE-2.0 666 * 667 * Unless required by applicable law or agreed to in writing, software 668 * distributed under the License is distributed on an "AS IS" BASIS, 669 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 670 * See the License for the specific language governing permissions and 671 * limitations under the License. 672 */function Yu(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function uW(t,e=!1){const n=kn(t),r=await n.getIdToken(e),i=fE(r);ye(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o=typeof i.firebase=="object"?i.firebase:void 0,s=o==null?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:Yu(Ev(i.auth_time)),issuedAtTime:Yu(Ev(i.iat)),expirationTime:Yu(Ev(i.exp)),signInProvider:s||null,signInSecondFactor:(o==null?void 0:o.sign_in_second_factor)||null}}function Ev(t){return Number(t)*1e3}function fE(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return Xf("JWT malformed, contained fewer than 3 sections"),null;try{const i=CM(n);return i?JSON.parse(i):(Xf("Failed to decode base64 JWT payload"),null)}catch(i){return Xf("Caught error parsing JWT payload as JSON",i==null?void 0:i.toString()),null}}function cW(t){const e=fE(t);return ye(e,"internal-error"),ye(typeof e.exp<"u","internal-error"),ye(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** 673 * @license 674 * Copyright 2020 Google LLC 675 * 676 * Licensed under the Apache License, Version 2.0 (the "License"); 677 * you may not use this file except in compliance with the License. 678 * You may obtain a copy of the License at 679 * 680 * http://www.apache.org/licenses/LICENSE-2.0 681 * 682 * Unless required by applicable law or agreed to in writing, software 683 * distributed under the License is distributed on an "AS IS" BASIS, 684 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 685 * See the License for the specific language governing permissions and 686 * limitations under the License. 687 */async function Lc(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Gi&&dW(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function dW({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 688 * @license 689 * Copyright 2020 Google LLC 690 * 691 * Licensed under the Apache License, Version 2.0 (the "License"); 692 * you may not use this file except in compliance with the License. 693 * You may obtain a copy of the License at 694 * 695 * http://www.apache.org/licenses/LICENSE-2.0 696 * 697 * Unless required by applicable law or agreed to in writing, softw
697are 698 * distributed under the License is distributed on an "AS IS" BASIS, 699 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 700 * See the License for the specific language governing permissions and 701 * limitations under the License. 702 */class fW{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(e==null?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 703 * @license 704 * Copyright 2020 Google LLC 705 * 706 * Licensed under the Apache License, Version 2.0 (the "License"); 707 * you may not use this file except in compliance with the License. 708 * You may obtain a copy of the License at 709 * 710 * http://www.apache.org/licenses/LICENSE-2.0 711 * 712 * Unless required by applicable law or agreed to in writing, software 713 * distributed under the License is distributed on an "AS IS" BASIS, 714 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 715 * See the License for the specific language governing permissions and 716 * limitations under the License. 717 */class FM{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Yu(this.lastLoginAt),this.creationTime=Yu(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 718 * @license 719 * Copyright 2019 Google LLC 720 * 721 * Licensed under the Apache License, Version 2.0 (the "License"); 722 * you may not use this file except in compliance with the License. 723 * You may obtain a copy of the License at 724 * 725 * http://www.apache.org/licenses/LICENSE-2.0 726 * 727 * Unless required by applicable law or agreed to in writing, software 728 * distributed under the License is distributed on an "AS IS" BASIS, 729 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 730 * See the License for the specific language governing permissions and 731 * limitations under the License. 732 */async function ip(t){var e;const n=t.auth,r=await t.getIdToken(),i=await Lc(t,lW(n,{idToken:r}));ye(i==null?void 0:i.users.length,n,"internal-error");const o=i.users[0];t._notifyReloadListener(o);const s=!((e=o.providerUserInfo)===null||e===void 0)&&e.length?mW(o.providerUserInfo):[],a=pW(t.providerData,s),l=t.isAnonymous,u=!(t.email&&o.passwordHash)&&!(a!=null&&a.length),c=l?u:!1,d={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new FM(o.createdAt,o.lastLoginAt),isAnonymous:c};Object.assign(t,d)}async function hW(t){const e=kn(t);await ip(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function pW(t,e){return[...t.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function mW(t){return t.map(e=>{var{providerId:n}=e,r=rd(e,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** 733 * @license 734 * Copyright 2020 Google LLC 735 * 736 * Licensed under the Apache License, Version 2.0 (the "License"); 737 * you may not use this file except in compliance with the License. 738 * You may obtain a copy of the License at 739 * 740 * http://www.apache.org/licenses/LICENSE-2.0 741 * 742 * Unless required by applicable law or agreed to in writing, software 743 * distributed under the License is distributed on an "AS IS" BASIS, 744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 745 * See the License for the specific language governing permissions and 746 * limitations under the License. 747 */async function gW(t,e){const n=await $M(t,{},async()=>{const r=hd({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:o}=t.config,s=VM(t,i,"/v1/token",`key=${o}`),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",NM.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}/** 748 * @license 749 * Copyright 2020 Google LLC 750 * 751 * Licensed under the Apache License, Version 2.0 (the "License");
752 * you may not use this file except in compliance with the License. 753 * You may obtain a copy of the License at 754 * 755 * http://www.apache.org/licenses/LICENSE-2.0 756 * 757 * Unless required by applicable law or agreed to in writing, software 758 * distributed under the License is distributed on an "AS IS" BASIS, 759 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 760 * See the License for the specific language governing permissions and 761 * limitations under the License. 762 */class Rc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){ye(e.idToken,"internal-error"),ye(typeof e.idToken<"u","internal-error"),ye(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):cW(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}async getToken(e,n=!1){return ye(!this.accessToken||this.refreshToken,e,"user-token-expired"),!n&&this.accessToken&&!this.isExpired?this.accessToken:this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:i,expiresIn:o}=await gW(e,n);this.updateTokensAndExpiration(r,i,Number(o))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:i,expirationTime:o}=n,s=new Rc;return r&&(ye(typeof r=="string","internal-error",{appName:e}),s.refreshToken=r),i&&(ye(typeof i=="string","internal-error",{appName:e}),s.accessToken=i),o&&(ye(typeof o=="number","internal-error",{appName:e}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Rc,this.toJSON())}_performRefresh(){return Pi("not implemented")}}/** 763 * @license 764 * Copyright 2020 Google LLC 765 * 766 * Licensed under the Apache License, Version 2.0 (the "License"); 767 * you may not use this file except in compliance with the License. 768 * You may obtain a copy of the License at 769 * 770 * http://www.apache.org/licenses/LICENSE-2.0 771 * 772 * Unless required by applicable law or agreed to in writing, software 773 * distributed under the License is distributed on an "AS IS" BASIS, 774 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 775 * See the License for the specific language governing permissions and 776 * limitations under the License. 777 */function Zi(t,e){ye(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class ks{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,o=rd(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new fW(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new FM(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(e){const n=await Lc(this,this.stsTokenManager.getToken(this.auth,e));return ye(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return uW(this,e)}reload(){return hW(this)}_assign(e){this!==e&&(ye(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new ks(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){ye(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await ip(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await Lc(this,aW(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
777nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var r,i,o,s,a,l,u,c;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,h=(i=n.email)!==null&&i!==void 0?i:void 0,p=(o=n.phoneNumber)!==null&&o!==void 0?o:void 0,m=(s=n.photoURL)!==null&&s!==void 0?s:void 0,g=(a=n.tenantId)!==null&&a!==void 0?a:void 0,b=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,w=(u=n.createdAt)!==null&&u!==void 0?u:void 0,v=(c=n.lastLoginAt)!==null&&c!==void 0?c:void 0,{uid:y,emailVerified:E,isAnonymous:C,providerData:S,stsTokenManager:P}=n;ye(y&&P,e,"internal-error");const _=Rc.fromJSON(this.name,P);ye(typeof y=="string",e,"internal-error"),Zi(d,e.name),Zi(h,e.name),ye(typeof E=="boolean",e,"internal-error"),ye(typeof C=="boolean",e,"internal-error"),Zi(p,e.name),Zi(m,e.name),Zi(g,e.name),Zi(b,e.name),Zi(w,e.name),Zi(v,e.name);const k=new ks({uid:y,auth:e,email:h,emailVerified:E,displayName:d,isAnonymous:C,photoURL:m,phoneNumber:p,tenantId:g,stsTokenManager:_,createdAt:w,lastLoginAt:v});return S&&Array.isArray(S)&&(k.providerData=S.map(L=>Object.assign({},L))),b&&(k._redirectEventId=b),k}static async _fromIdTokenResponse(e,n,r=!1){const i=new Rc;i.updateFromServerResponse(n);const o=new ks({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await ip(o),o}}/** 778 * @license 779 * Copyright 2020 Google LLC 780 * 781 * Licensed under the Apache License, Version 2.0 (the "License"); 782 * you may not use this file except in compliance with the License. 783 * You may obtain a copy of the License at 784 * 785 * http://www.apache.org/licenses/LICENSE-2.0 786 * 787 * Unless required by applicable law or agreed to in writing, software 788 * distributed under the License is distributed on an "AS IS" BASIS, 789 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 790 * See the License for the specific language governing permissions and 791 * limitations under the License. 792 */const rx=new Map;function Ii(t){Fi(t instanceof Function,"Expected a class definition");let e=rx.get(t);return e?(Fi(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,rx.set(t,e),e)}/** 793 * @license 794 * Copyright 2019 Google LLC 795 * 796 * Licensed under the Apache License, Version 2.0 (the "License"); 797 * you may not use this file except in compliance with the License. 798 * You may obtain a copy of the License at 799 * 800 * http://www.apache.org/licenses/LICENSE-2.0 801 * 802 * Unless required by applicable law or agreed to in writing, software 803 * distributed under the License is distributed on an "AS IS" BASIS, 804 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 805 * See the License for the specific language governing permissions and 806 * limitations under the License. 807 */class jM{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}jM.type="NONE";const ix=jM;/** 808 * @license 809 * Copyright 2019 Google LLC 810 * 811 * Licensed under the Apache License, Version 2.0 (the "License"); 812 * you may not use this file except in compliance with the License. 813 * You may obtain a copy of the License at 814 * 815 * http://www.apache.org/licenses/LICENSE-2.0 816 * 817 * Unless required by applicable law or agreed to in writing, software 818 * distributed under the License is distributed on an "AS IS" BASIS, 819 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 820 * See the License for the specific language governing permissions and 821 * limitations under the License. 822 */function Zf(t,e,n){return`firebase:${t}:${e}:${n}`}class Ja{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=Zf(this.userKey,i.apiKey,o),this.fullPersistenceKey=Zf("persistence",i.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?ks._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new Ja(Ii(ix),e,r);const i=(await Promise.all(n.map(async u=>
822{if(await u._isAvailable())return u}))).filter(u=>u);let o=i[0]||Ii(ix);const s=Zf(r,e.config.apiKey,e.name);let a=null;for(const u of n)try{const c=await u._get(s);if(c){const d=ks._fromJSON(e,c);u!==o&&(a=d),o=u;break}}catch{}const l=i.filter(u=>u._shouldAllowMigration);return!o._shouldAllowMigration||!l.length?new Ja(o,e,r):(o=l[0],a&&await o._set(s,a.toJSON()),await Promise.all(n.map(async u=>{if(u!==o)try{await u._remove(s)}catch{}})),new Ja(o,e,r))}}/** 823 * @license 824 * Copyright 2020 Google LLC 825 * 826 * Licensed under the Apache License, Version 2.0 (the "License"); 827 * you may not use this file except in compliance with the License. 828 * You may obtain a copy of the License at 829 * 830 * http://www.apache.org/licenses/LICENSE-2.0 831 * 832 * Unless required by applicable law or agreed to in writing, software 833 * distributed under the License is distributed on an "AS IS" BASIS, 834 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 835 * See the License for the specific language governing permissions and 836 * limitations under the License. 837 */function ox(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(zM(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(UM(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(HM(e))return"Blackberry";if(KM(e))return"Webos";if(hE(e))return"Safari";if((e.includes("chrome/")||BM(e))&&!e.includes("edge/"))return"Chrome";if(WM(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function UM(t=_n()){return/firefox\//i.test(t)}function hE(t=_n()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function BM(t=_n()){return/crios\//i.test(t)}function zM(t=_n()){return/iemobile/i.test(t)}function WM(t=_n()){return/android/i.test(t)}function HM(t=_n()){return/blackberry/i.test(t)}function KM(t=_n()){return/webos/i.test(t)}function cm(t=_n()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function vW(t=_n()){var e;return cm(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function yW(){return M8()&&document.documentMode===10}function GM(t=_n()){return cm(t)||WM(t)||KM(t)||HM(t)||/windows phone/i.test(t)||zM(t)}function wW(){try{return!!(window&&window!==window.top)}catch{return!1}}/** 838 * @license 839 * Copyright 2020 Google LLC 840 * 841 * Licensed under the Apache License, Version 2.0 (the "License"); 842 * you may not use this file except in compliance with the License. 843 * You may obtain a copy of the License at 844 * 845 * http://www.apache.org/licenses/LICENSE-2.0 846 * 847 * Unless required by applicable law or agreed to in writing, software 848 * distributed under the License is distributed on an "AS IS" BASIS, 849 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 850 * See the License for the specific language governing permissions and 851 * limitations under the License. 852 */function qM(t,e=[]){let n;switch(t){case"Browser":n=ox(_n());break;case"Worker":n=`${ox(_n())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${$l}/${r}`}/** 853 * @license 854 * Copyright 2022 Google LLC 855 * 856 * Licensed under the Apache License, Version 2.0 (the "License"); 857 * you may not use this file except in compliance with the License. 858 * You may obtain a copy of the License at 859 * 860 * http://www.apache.org/licenses/LICENSE-2.0 861 * 862 * Unless required by applicable law or agreed to in writing, software 863 * distributed under the License is distributed on an "AS IS" BASIS, 864 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 865 * See the License for the specific language governing permissions and 866 * limitations under the License. 867 */class bW{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=o=>new Promise((s,a)=>{try{const l=e(o);s(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** 868 * @license 869 * Copyright 2023 Google LLC 870 * 871 * Licensed under the Apache License, Version 2.0 (the "License");
872 * you may not use this file except in compliance with the License. 873 * You may obtain a copy of the License at 874 * 875 * http://www.apache.org/licenses/LICENSE-2.0 876 * 877 * Unless required by applicable law or agreed to in writing, software 878 * distributed under the License is distributed on an "AS IS" BASIS, 879 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 880 * See the License for the specific language governing permissions and 881 * limitations under the License. 882 */async function EW(t,e={}){return ra(t,"GET","/v2/passwordPolicy",na(t,e))}/** 883 * @license 884 * Copyright 2023 Google LLC 885 * 886 * Licensed under the Apache License, Version 2.0 (the "License"); 887 * you may not use this file except in compliance with the License. 888 * You may obtain a copy of the License at 889 * 890 * http://www.apache.org/licenses/LICENSE-2.0 891 * 892 * Unless required by applicable law or agreed to in writing, software 893 * distributed under the License is distributed on an "AS IS" BASIS, 894 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 895 * See the License for the specific language governing permissions and 896 * limitations under the License. 897 */const _W=6;class SW{constructor(e){var n,r,i,o;const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:_W,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(i=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&i!==void 0?i:"",this.forceUpgradeOnSignin=(o=e.forceUpgradeOnSignin)!==null&&o!==void 0?o:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,i,o,s,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,l),this.validatePasswordCharacterOptions(e,l),l.isValid&&(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(i=l.containsLowercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(o=l.containsUppercaseLetter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(s=l.containsNumericCharacter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),i&&(n.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,
897!1,!1,!1);let r;for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}/** 898 * @license 899 * Copyright 2020 Google LLC 900 * 901 * Licensed under the Apache License, Version 2.0 (the "License"); 902 * you may not use this file except in compliance with the License. 903 * You may obtain a copy of the License at 904 * 905 * http://www.apache.org/licenses/LICENSE-2.0 906 * 907 * Unless required by applicable law or agreed to in writing, software 908 * distributed under the License is distributed on an "AS IS" BASIS, 909 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 910 * See the License for the specific language governing permissions and 911 * limitations under the License. 912 */class CW{constructor(e,n,r,i){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new sx(this),this.idTokenSubscription=new sx(this),this.beforeStateQueue=new bW(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=OM,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Ii(n)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await Ja.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var n;const r=await this.assertedPersistence.getCurrentUser();let i=r,o=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=i==null?void 0:i._redirectEventId,l=await this.tryRedirectSignIn(e);(!s||s===a)&&(l!=null&&l.user)&&(i=l.user,o=!0)}if(!i)return this.directlySetCurrentUser(null);if(!i._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(i)}catch(s){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return ye(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await ip(e)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=nW()}async _delete(){this._deleted=!0}
912async updateCurrentUser(e){const n=e?kn(e):null;return n&&ye(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&ye(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(Ii(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await EW(this),n=new SW(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new fd("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&Ii(e)||this._popupRedirectResolver;ye(n,this,"argument-error"),this.redirectPersistenceManager=await Ja.create(this,[Ii(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,i){if(this._deleted)return()=>{};const o=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(ye(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),typeof n=="function"){const l=e.addObserver(n,r,i);return()=>{s=!0,l()}}else{const l=e.addObserver(n);return()=>{s=!0,l()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return ye(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=qM(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(n["X-Firebase-AppCheck"]=i),n}async _getAppCheckToken(){var e;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n!=null&&n.error&&Z7(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function ia(t){return kn(t)}class sx{constructor(e){this.auth=e,this.observer=null,this.addObserver=j8(n=>this.observer=n)}get next(){return ye(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 913 * @license 914 * Copyright 2020 Google LLC 915 * 916 * Licensed under the Apache License, Version 2.0 (the "License");
917 * you may not use this file except in compliance with the License. 918 * You may obtain a copy of the License at 919 * 920 * http://www.apache.org/licenses/LICENSE-2.0 921 * 922 * Unless required by applicable law or agreed to in writing, software 923 * distributed under the License is distributed on an "AS IS" BASIS, 924 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 925 * See the License for the specific language governing permissions and 926 * limitations under the License. 927 */function xW(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}function QM(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const o=ai("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",xW().appendChild(r)})}function TW(t){return`__${t}${Math.floor(Math.random()*1e6)}`}const PW="https://www.google.com/recaptcha/enterprise.js?render=",IW="recaptcha-enterprise",LW="NO_RECAPTCHA";class RW{constructor(e){this.type=IW,this.auth=ia(e)}async verify(e="verify",n=!1){async function r(o){if(!n){if(o.tenantId==null&&o._agentRecaptchaConfig!=null)return o._agentRecaptchaConfig.siteKey;if(o.tenantId!=null&&o._tenantRecaptchaConfigs[o.tenantId]!==void 0)return o._tenantRecaptchaConfigs[o.tenantId].siteKey}return new Promise(async(s,a)=>{sW(o,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const u=new Y7(l);return o.tenantId==null?o._agentRecaptchaConfig=u:o._tenantRecaptchaConfigs[o.tenantId]=u,s(u.siteKey)}}).catch(l=>{a(l)})})}function i(o,s,a){const l=window.grecaptcha;tx(l)?l.enterprise.ready(()=>{l.enterprise.execute(o,{action:e}).then(u=>{s(u)}).catch(()=>{s(LW)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((o,s)=>{r(this.auth).then(a=>{if(!n&&tx(window.grecaptcha))i(a,o,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}QM(PW+a).then(()=>{i(a,o,s)}).catch(l=>{s(l)})}}).catch(a=>{s(a)})})}}async function op(t,e,n,r=!1){const i=new RW(t);let o;try{o=await i.verify(n)}catch{o=await i.verify(n,!0)}const s=Object.assign({},e);return r?Object.assign(s,{captchaResp:o}):Object.assign(s,{captchaResponse:o}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}/** 928 * @license 929 * Copyright 2020 Google LLC 930 * 931 * Licensed under the Apache License, Version 2.0 (the "License"); 932 * you may not use this file except in compliance with the License. 933 * You may obtain a copy of the License at 934 * 935 * http://www.apache.org/licenses/LICENSE-2.0 936 * 937 * Unless required by applicable law or agreed to in writing, software 938 * distributed under the License is distributed on an "AS IS" BASIS, 939 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 940 * See the License for the specific language governing permissions and 941 * limitations under the License. 942 */function kW(t,e){const n=uE(t,"auth");if(n.isInitialized()){const i=n.getImmediate(),o=n.getOptions();if(tp(o,e??{}))return i;jr(i,"already-initialized")}return n.initialize({options:e})}function AW(t,e){const n=(e==null?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Ii);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e==null?void 0:e.popupRedirectResolver)}function MW(t,e,n){const r=ia(t);ye(r._canInitEmulator,r,"emulator-config-failed"),ye(/^https?:\/\//.test(e),r,"invali
942d-emulator-scheme");const i=!!(n!=null&&n.disableWarnings),o=YM(e),{host:s,port:a}=DW(e),l=a===null?"":`:${a}`;r.config.emulator={url:`${o}//${s}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||OW()}function YM(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function DW(t){const e=YM(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const o=i[1];return{host:o,port:ax(r.substr(o.length+1))}}else{const[o,s]=r.split(":");return{host:o,port:ax(s)}}}function ax(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function OW(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** 943 * @license 944 * Copyright 2020 Google LLC 945 * 946 * Licensed under the Apache License, Version 2.0 (the "License"); 947 * you may not use this file except in compliance with the License. 948 * You may obtain a copy of the License at 949 * 950 * http://www.apache.org/licenses/LICENSE-2.0 951 * 952 * Unless required by applicable law or agreed to in writing, software 953 * distributed under the License is distributed on an "AS IS" BASIS, 954 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 955 * See the License for the specific language governing permissions and 956 * limitations under the License. 957 */class pE{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Pi("not implemented")}_getIdTokenResponse(e){return Pi("not implemented")}_linkToIdToken(e,n){return Pi("not implemented")}_getReauthenticationResolver(e){return Pi("not implemented")}}async function NW(t,e){return ra(t,"POST","/v1/accounts:update",e)}/** 958 * @license 959 * Copyright 2020 Google LLC 960 * 961 * Licensed under the Apache License, Version 2.0 (the "License"); 962 * you may not use this file except in compliance with the License. 963 * You may obtain a copy of the License at 964 * 965 * http://www.apache.org/licenses/LICENSE-2.0 966 * 967 * Unless required by applicable law or agreed to in writing, software 968 * distributed under the License is distributed on an "AS IS" BASIS, 969 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 970 * See the License for the specific language governing permissions and 971 * limitations under the License. 972 */async function _v(t,e){return md(t,"POST","/v1/accounts:signInWithPassword",na(t,e))}/** 973 * @license 974 * Copyright 2020 Google LLC 975 * 976 * Licensed under the Apache License, Version 2.0 (the "License"); 977 * you may not use this file except in compliance with the License. 978 * You may obtain a copy of the License at 979 * 980 * http://www.apache.org/licenses/LICENSE-2.0 981 * 982 * Unless required by applicable law or agreed to in writing, software 983 * distributed under the License is distributed on an "AS IS" BASIS, 984 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 985 * See the License for the specific language governing permissions and 986 * limitations under the License. 987 */async function $W(t,e){return md(t,"POST","/v1/accounts:signInWithEmailLink",na(t,e))}async function VW(t,e){return md(t,"POST","/v1/accounts:signInWithEmailLink",na(t,e))}/** 988 * @license 989 * Copyright 2020 Google LLC 990 * 991 * Licensed under the Apache License, Version 2.0 (the "License"); 992 * you may not use this file except in compliance with the License. 993 * You may obtain a copy of the License at 994 * 995 * http://www.apache.org/licenses/LICENSE-2.0 996 * 997 * Unless required by applicable law or agreed to in writing, softw
997are 998 * distributed under the License is distributed on an "AS IS" BASIS, 999 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1000 * See the License for the specific language governing permissions and 1001 * limitations under the License. 1002 */class kc extends pE{constructor(e,n,r,i=null){super("password",r),this._email=e,this._password=n,this._tenantId=i}static _fromEmailAndPassword(e,n){return new kc(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new kc(e,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if(n!=null&&n.email&&(n!=null&&n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){var n;switch(this.signInMethod){case"password":const r={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};if(!((n=e._getRecaptchaConfig())===null||n===void 0)&&n.emailPasswordEnabled){const i=await op(e,r,"signInWithPassword");return _v(e,i)}else return _v(e,r).catch(async i=>{if(i.code==="auth/missing-recaptcha-token"){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const o=await op(e,r,"signInWithPassword");return _v(e,o)}else return Promise.reject(i)});case"emailLink":return $W(e,{email:this._email,oobCode:this._password});default:jr(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":return NW(e,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return VW(e,{idToken:n,email:this._email,oobCode:this._password});default:jr(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/** 1003 * @license 1004 * Copyright 2020 Google LLC 1005 * 1006 * Licensed under the Apache License, Version 2.0 (the "License"); 1007 * you may not use this file except in compliance with the License. 1008 * You may obtain a copy of the License at 1009 * 1010 * http://www.apache.org/licenses/LICENSE-2.0 1011 * 1012 * Unless required by applicable law or agreed to in writing, software 1013 * distributed under the License is distributed on an "AS IS" BASIS, 1014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1015 * See the License for the specific language governing permissions and 1016 * limitations under the License. 1017 */async function el(t,e){return md(t,"POST","/v1/accounts:signInWithIdp",na(t,e))}/** 1018 * @license 1019 * Copyright 2020 Google LLC 1020 * 1021 * Licensed under the Apache License, Version 2.0 (the "License"); 1022 * you may not use this file except in compliance with the License. 1023 * You may obtain a copy of the License at 1024 * 1025 * http://www.apache.org/licenses/LICENSE-2.0 1026 * 1027 * Unless required by applicable law or agreed to in writing, software 1028 * distributed under the License is distributed on an "AS IS" BASIS, 1029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1030 * See the License for the specific language governing permissions and 1031 * limitations under the License. 1032 */const FW="http://localhost";class Ws extends pE{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new Ws(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):jr("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1032once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i}=n,o=rd(n,["providerId","signInMethod"]);if(!r||!i)return null;const s=new Ws(r,i);return s.idToken=o.idToken||void 0,s.accessToken=o.accessToken||void 0,s.secret=o.secret,s.nonce=o.nonce,s.pendingToken=o.pendingToken||null,s}_getIdTokenResponse(e){const n=this.buildRequest();return el(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,el(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,el(e,n)}buildRequest(){const e={requestUri:FW,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=hd(n)}return e}}/** 1033 * @license 1034 * Copyright 2020 Google LLC 1035 * 1036 * Licensed under the Apache License, Version 2.0 (the "License"); 1037 * you may not use this file except in compliance with the License. 1038 * You may obtain a copy of the License at 1039 * 1040 * http://www.apache.org/licenses/LICENSE-2.0 1041 * 1042 * Unless required by applicable law or agreed to in writing, software 1043 * distributed under the License is distributed on an "AS IS" BASIS, 1044 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1045 * See the License for the specific language governing permissions and 1046 * limitations under the License. 1047 */function jW(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function UW(t){const e=Lu(Ru(t)).link,n=e?Lu(Ru(e)).deep_link_id:null,r=Lu(Ru(t)).deep_link_id;return(r?Lu(Ru(r)).link:null)||r||n||e||t}class mE{constructor(e){var n,r,i,o,s,a;const l=Lu(Ru(e)),u=(n=l.apiKey)!==null&&n!==void 0?n:null,c=(r=l.oobCode)!==null&&r!==void 0?r:null,d=jW((i=l.mode)!==null&&i!==void 0?i:null);ye(u&&c&&d,"argument-error"),this.apiKey=u,this.operation=d,this.code=c,this.continueUrl=(o=l.continueUrl)!==null&&o!==void 0?o:null,this.languageCode=(s=l.languageCode)!==null&&s!==void 0?s:null,this.tenantId=(a=l.tenantId)!==null&&a!==void 0?a:null}static parseLink(e){const n=UW(e);try{return new mE(n)}catch{return null}}}/** 1048 * @license 1049 * Copyright 2020 Google LLC 1050 * 1051 * Licensed under the Apache License, Version 2.0 (the "License"); 1052 * you may not use this file except in compliance with the License. 1053 * You may obtain a copy of the License at 1054 * 1055 * http://www.apache.org/licenses/LICENSE-2.0 1056 * 1057 * Unless required by applicable law or agreed to in writing, software 1058 * distributed under the License is distributed on an "AS IS" BASIS, 1059 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1060 * See the License for the specific language governing permissions and 1061 * limitations under the License. 1062 */class Vl{constructor(){this.providerId=Vl.PROVIDER_ID}static credential(e,n){return kc._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=mE.parseLink(n);return ye(r,"argument-error"),kc._fromEmailAndCode(e,r.code,r.tenantId)}}Vl.PROVIDER_ID="password";Vl.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Vl.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/** 1063 * @license 1064 * Copyright 2020 Google LLC 1065 * 1066 * Licensed under the Apache License, Version 2.0 (the "License"); 1067 * you may not use this file except in compliance with the License. 1068 * You may obtain a copy of the License at 1069 * 1070 * http://www.apache.org/licenses/LICENSE-2.0 1071 * 1072 * Unless required by applicable law or agreed to in writing, software 1073 * distributed under the License is distributed on an "AS IS" BASIS, 1074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1075 * See the License for the specific language governing permissions and 1076 * limitations under the License. 1077 */class XM{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** 1078 * @license 1079 * Copyright 2019 Google LLC 1080 * 1081 * Licensed under the Apache License, Version 2.0 (the "License");
1082 * you may not use this file except in compliance with the License. 1083 * You may obtain a copy of the License at 1084 * 1085 * http://www.apache.org/licenses/LICENSE-2.0 1086 * 1087 * Unless required by applicable law or agreed to in writing, software 1088 * distributed under the License is distributed on an "AS IS" BASIS, 1089 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1090 * See the License for the specific language governing permissions and 1091 * limitations under the License. 1092 */class gd extends XM{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/** 1093 * @license 1094 * Copyright 2020 Google LLC 1095 * 1096 * Licensed under the Apache License, Version 2.0 (the "License"); 1097 * you may not use this file except in compliance with the License. 1098 * You may obtain a copy of the License at 1099 * 1100 * http://www.apache.org/licenses/LICENSE-2.0 1101 * 1102 * Unless required by applicable law or agreed to in writing, software 1103 * distributed under the License is distributed on an "AS IS" BASIS, 1104 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1105 * See the License for the specific language governing permissions and 1106 * limitations under the License. 1107 */class lo extends gd{constructor(){super("facebook.com")}static credential(e){return Ws._fromParams({providerId:lo.PROVIDER_ID,signInMethod:lo.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return lo.credentialFromTaggedObject(e)}static credentialFromError(e){return lo.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return lo.credential(e.oauthAccessToken)}catch{return null}}}lo.FACEBOOK_SIGN_IN_METHOD="facebook.com";lo.PROVIDER_ID="facebook.com";/** 1108 * @license 1109 * Copyright 2020 Google LLC 1110 * 1111 * Licensed under the Apache License, Version 2.0 (the "License"); 1112 * you may not use this file except in compliance with the License. 1113 * You may obtain a copy of the License at 1114 * 1115 * http://www.apache.org/licenses/LICENSE-2.0 1116 * 1117 * Unless required by applicable law or agreed to in writing, software 1118 * distributed under the License is distributed on an "AS IS" BASIS, 1119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1120 * See the License for the specific language governing permissions and 1121 * limitations under the License. 1122 */class uo extends gd{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return Ws._fromParams({providerId:uo.PROVIDER_ID,signInMethod:uo.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return uo.credentialFromTaggedObject(e)}static credentialFromError(e){return uo.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return uo.credential(n,r)}catch{return null}}}uo.GOOGLE_SIGN_IN_METHOD="google.com";uo.PROVIDER_ID="google.com";/** 1123 * @license 1124 * Copyright 2020 Google LLC 1125 * 1126 * Licensed under the Apache License, Version 2.0 (the "License"); 1127 * you may not use this file except in compliance with the License. 1128 * You may obtain a copy of the License at 1129 * 1130 * http://www.apache.org/licenses/LICENSE-2.0 1131 * 1132 * Unless required by applicable law or agreed to in writing, software 1133 * distributed under the License is distributed on an "AS IS" BASIS, 1134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1135 * See the License for the specific language governing permissions and 1136 * limitations under the License. 1137 */class co extends gd{constructor(){super("github.com")}static credential(e){return Ws._fromParams({providerId:co.PROVIDER_ID,signInMethod:co.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return co.credentialFromTaggedObject(e)}static credentialFromError(e){return co.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return co.credential(e.oauthAccessToken)}catch{return null}}}co.GITHUB_SIGN_IN_METHOD="github.com";co.PROVIDER_ID="github.com";/** 1138 * @license 1139 * Copyright 2020 Google LLC 1140 * 1141 * Licensed under the Apache License, Version 2.0 (the "License");
1142 * you may not use this file except in compliance with the License. 1143 * You may obtain a copy of the License at 1144 * 1145 * http://www.apache.org/licenses/LICENSE-2.0 1146 * 1147 * Unless required by applicable law or agreed to in writing, software 1148 * distributed under the License is distributed on an "AS IS" BASIS, 1149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1150 * See the License for the specific language governing permissions and 1151 * limitations under the License. 1152 */class fo extends gd{constructor(){super("twitter.com")}static credential(e,n){return Ws._fromParams({providerId:fo.PROVIDER_ID,signInMethod:fo.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return fo.credentialFromTaggedObject(e)}static credentialFromError(e){return fo.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return fo.credential(n,r)}catch{return null}}}fo.TWITTER_SIGN_IN_METHOD="twitter.com";fo.PROVIDER_ID="twitter.com";/** 1153 * @license 1154 * Copyright 2020 Google LLC 1155 * 1156 * Licensed under the Apache License, Version 2.0 (the "License"); 1157 * you may not use this file except in compliance with the License. 1158 * You may obtain a copy of the License at 1159 * 1160 * http://www.apache.org/licenses/LICENSE-2.0 1161 * 1162 * Unless required by applicable law or agreed to in writing, software 1163 * distributed under the License is distributed on an "AS IS" BASIS, 1164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1165 * See the License for the specific language governing permissions and 1166 * limitations under the License. 1167 */async function Sv(t,e){return md(t,"POST","/v1/accounts:signUp",na(t,e))}/** 1168 * @license 1169 * Copyright 2020 Google LLC 1170 * 1171 * Licensed under the Apache License, Version 2.0 (the "License"); 1172 * you may not use this file except in compliance with the License. 1173 * You may obtain a copy of the License at 1174 * 1175 * http://www.apache.org/licenses/LICENSE-2.0 1176 * 1177 * Unless required by applicable law or agreed to in writing, software 1178 * distributed under the License is distributed on an "AS IS" BASIS, 1179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1180 * See the License for the specific language governing permissions and 1181 * limitations under the License. 1182 */class Hs{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,i=!1){const o=await ks._fromIdTokenResponse(e,r,i),s=lx(r);return new Hs({user:o,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const i=lx(r);return new Hs({user:e,providerId:i,_tokenResponse:r,operationType:n})}}function lx(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 1183 * @license 1184 * Copyright 2020 Google LLC 1185 * 1186 * Licensed under the Apache License, Version 2.0 (the "License"); 1187 * you may not use this file except in compliance with the License. 1188 * You may obtain a copy of the License at 1189 * 1190 * http://www.apache.org/licenses/LICENSE-2.0 1191 * 1192 * Unless required by applicable law or agreed to in writing, software 1193 * distributed under the License is distributed on an "AS IS" BASIS, 1194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1195 * See the License for the specific language governing permissions and 1196 * limitations under the License. 1197 */class sp extends Gi{constructor(e,n,r,i){var o;super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,sp.prototype),this.customData={appName:e.name,tenantId:(o=e.tenantId)!==null&&o!==void 0?o:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,i){return new sp(e,n,r,i)}}function ZM(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?sp._fromErrorAndOperation(t,o,e,r):o})}async function BW(t,e,n=!1){const r=await Lc(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return Hs._forOperation(t,"link",r)}/** 1198 * @license 1199 * Copyright 2019 Google LLC 1200 * 1201 * Licensed under the Apache License, Version 2.0 (the "License");
1202 * you may not use this file except in compliance with the License. 1203 * You may obtain a copy of the License at 1204 * 1205 * http://www.apache.org/licenses/LICENSE-2.0 1206 * 1207 * Unless required by applicable law or agreed to in writing, software 1208 * distributed under the License is distributed on an "AS IS" BASIS, 1209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1210 * See the License for the specific language governing permissions and 1211 * limitations under the License. 1212 */async function zW(t,e,n=!1){const{auth:r}=t,i="reauthenticate";try{const o=await Lc(t,ZM(r,i,e,t),n);ye(o.idToken,r,"internal-error");const s=fE(o.idToken);ye(s,r,"internal-error");const{sub:a}=s;return ye(t.uid===a,r,"user-mismatch"),Hs._forOperation(t,i,o)}catch(o){throw(o==null?void 0:o.code)==="auth/user-not-found"&&jr(r,"user-mismatch"),o}}/** 1213 * @license 1214 * Copyright 2020 Google LLC 1215 * 1216 * Licensed under the Apache License, Version 2.0 (the "License"); 1217 * you may not use this file except in compliance with the License. 1218 * You may obtain a copy of the License at 1219 * 1220 * http://www.apache.org/licenses/LICENSE-2.0 1221 * 1222 * Unless required by applicable law or agreed to in writing, software 1223 * distributed under the License is distributed on an "AS IS" BASIS, 1224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1225 * See the License for the specific language governing permissions and 1226 * limitations under the License. 1227 */async function JM(t,e,n=!1){const r="signIn",i=await ZM(t,r,e),o=await Hs._fromIdTokenResponse(t,r,i);return n||await t._updateCurrentUser(o.user),o}async function WW(t,e){return JM(ia(t),e)}/** 1228 * @license 1229 * Copyright 2020 Google LLC 1230 * 1231 * Licensed under the Apache License, Version 2.0 (the "License"); 1232 * you may not use this file except in compliance with the License. 1233 * You may obtain a copy of the License at 1234 * 1235 * http://www.apache.org/licenses/LICENSE-2.0 1236 * 1237 * Unless required by applicable law or agreed to in writing, software 1238 * distributed under the License is distributed on an "AS IS" BASIS, 1239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1240 * See the License for the specific language governing permissions and 1241 * limitations under the License. 1242 */async function eD(t){const e=ia(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}async function HW(t,e,n){var r;const i=ia(t),o={returnSecureToken:!0,email:e,password:n,clientType:"CLIENT_TYPE_WEB"};let s;if(!((r=i._getRecaptchaConfig())===null||r===void 0)&&r.emailPasswordEnabled){const u=await op(i,o,"signUpPassword");s=Sv(i,u)}else s=Sv(i,o).catch(async u=>{if(u.code==="auth/missing-recaptcha-token"){console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");const c=await op(i,o,"signUpPassword");
1242return Sv(i,c)}throw u});const a=await s.catch(u=>{throw u.code==="auth/password-does-not-meet-requirements"&&eD(t),u}),l=await Hs._fromIdTokenResponse(i,"signIn",a);return await i._updateCurrentUser(l.user),l}function KW(t,e,n){return WW(kn(t),Vl.credential(e,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&eD(t),r})}function GW(t,e,n,r){return kn(t).onIdTokenChanged(e,n,r)}function qW(t,e,n){return kn(t).beforeAuthStateChanged(e,n)}function QW(t,e,n,r){return kn(t).onAuthStateChanged(e,n,r)}function YW(t){return kn(t).signOut()}const ap="__sak";/** 1243 * @license 1244 * Copyright 2019 Google LLC 1245 * 1246 * Licensed under the Apache License, Version 2.0 (the "License"); 1247 * you may not use this file except in compliance with the License. 1248 * You may obtain a copy of the License at 1249 * 1250 * http://www.apache.org/licenses/LICENSE-2.0 1251 * 1252 * Unless required by applicable law or agreed to in writing, software 1253 * distributed under the License is distributed on an "AS IS" BASIS, 1254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1255 * See the License for the specific language governing permissions and 1256 * limitations under the License. 1257 */class tD{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(ap,"1"),this.storage.removeItem(ap),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1258 * @license 1259 * Copyright 2020 Google LLC 1260 * 1261 * Licensed under the Apache License, Version 2.0 (the "License"); 1262 * you may not use this file except in compliance with the License. 1263 * You may obtain a copy of the License at 1264 * 1265 * http://www.apache.org/licenses/LICENSE-2.0 1266 * 1267 * Unless required by applicable law or agreed to in writing, software 1268 * distributed under the License is distributed on an "AS IS" BASIS, 1269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1270 * See the License for the specific language governing permissions and 1271 * limitations under the License. 1272 */function XW(){const t=_n();return hE(t)||cm(t)}const ZW=1e3,JW=10;class nD extends tD{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=XW()&&wW(),this.fallbackToPolling=GM(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&e(n,i,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((s,a,l)=>{this.notifyListeners(s,l)});return}const r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const s=this.storage.getItem(r);if(e.newValue!==s)e.newValue!==null?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}const i=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},o=this.storage.getItem(r);yW()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,JW):i()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},ZW)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
1272ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}nD.type="LOCAL";const eH=nD;/** 1273 * @license 1274 * Copyright 2020 Google LLC 1275 * 1276 * Licensed under the Apache License, Version 2.0 (the "License"); 1277 * you may not use this file except in compliance with the License. 1278 * You may obtain a copy of the License at 1279 * 1280 * http://www.apache.org/licenses/LICENSE-2.0 1281 * 1282 * Unless required by applicable law or agreed to in writing, software 1283 * distributed under the License is distributed on an "AS IS" BASIS, 1284 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1285 * See the License for the specific language governing permissions and 1286 * limitations under the License. 1287 */class rD extends tD{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}rD.type="SESSION";const iD=rD;/** 1288 * @license 1289 * Copyright 2019 Google LLC 1290 * 1291 * Licensed under the Apache License, Version 2.0 (the "License"); 1292 * you may not use this file except in compliance with the License. 1293 * You may obtain a copy of the License at 1294 * 1295 * http://www.apache.org/licenses/LICENSE-2.0 1296 * 1297 * Unless required by applicable law or agreed to in writing, software 1298 * distributed under the License is distributed on an "AS IS" BASIS, 1299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1300 * See the License for the specific language governing permissions and 1301 * limitations under the License. 1302 */function tH(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 1303 * @license 1304 * Copyright 2019 Google LLC 1305 * 1306 * Licensed under the Apache License, Version 2.0 (the "License"); 1307 * you may not use this file except in compliance with the License. 1308 * You may obtain a copy of the License at 1309 * 1310 * http://www.apache.org/licenses/LICENSE-2.0 1311 * 1312 * Unless required by applicable law or agreed to in writing, software 1313 * distributed under the License is distributed on an "AS IS" BASIS, 1314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1315 * See the License for the specific language governing permissions and 1316 * limitations under the License. 1317 */class dm{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(i=>i.isListeningto(e));if(n)return n;const r=new dm(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:i,data:o}=n.data,s=this.handlersMap[i];if(!(s!=null&&s.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const a=Array.from(s).map(async u=>u(n.origin,o)),l=await tH(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:l})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}dm.receivers=[];/** 1318 * @license 1319 * Copyright 2020 Google LLC 1320 * 1321 * Licensed under the Apache License, Version 2.0 (the "License"); 1322 * you may not use this file except in compliance with the License. 1323 * You may obtain a copy of the License at 1324 * 1325 * http://www.apache.org/licenses/LICENSE-2.0 1326 * 1327 * Unless required by applicable law or agreed to in writing, software 1328 * distributed under the License is distributed on an "AS IS" BASIS, 1329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1330 * See the License for the specific language governing permissions and 1331 * limitations under the License. 1332 */function gE(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}/** 1333 * @license 1334 * Copyright 2019 Google LLC 1335 * 1336 * Licensed under the Apache License, Version 2.0 (the "License");
1337 * you may not use this file except in compliance with the License. 1338 * You may obtain a copy of the License at 1339 * 1340 * http://www.apache.org/licenses/LICENSE-2.0 1341 * 1342 * Unless required by applicable law or agreed to in writing, software 1343 * distributed under the License is distributed on an "AS IS" BASIS, 1344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1345 * See the License for the specific language governing permissions and 1346 * limitations under the License. 1347 */class nH{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let o,s;return new Promise((a,l)=>{const u=gE("",20);i.port1.start();const c=setTimeout(()=>{l(new Error("unsupported_event"))},r);s={messageChannel:i,onMessage(d){const h=d;if(h.data.eventId===u)switch(h.data.status){case"ack":clearTimeout(c),o=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),a(h.data.response);break;default:clearTimeout(c),clearTimeout(o),l(new Error("invalid_response"));break}}},this.handlers.add(s),i.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:u,data:n},[i.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/** 1348 * @license 1349 * Copyright 2020 Google LLC 1350 * 1351 * Licensed under the Apache License, Version 2.0 (the "License"); 1352 * you may not use this file except in compliance with the License. 1353 * You may obtain a copy of the License at 1354 * 1355 * http://www.apache.org/licenses/LICENSE-2.0 1356 * 1357 * Unless required by applicable law or agreed to in writing, software 1358 * distributed under the License is distributed on an "AS IS" BASIS, 1359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1360 * See the License for the specific language governing permissions and 1361 * limitations under the License. 1362 */function li(){return window}function rH(t){li().location.href=t}/** 1363 * @license 1364 * Copyright 2020 Google LLC. 1365 * 1366 * Licensed under the Apache License, Version 2.0 (the "License"); 1367 * you may not use this file except in compliance with the License. 1368 * You may obtain a copy of the License at 1369 * 1370 * http://www.apache.org/licenses/LICENSE-2.0 1371 * 1372 * Unless required by applicable law or agreed to in writing, software 1373 * distributed under the License is distributed on an "AS IS" BASIS, 1374 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1375 * See the License for the specific language governing permissions and 1376 * limitations under the License. 1377 */function oD(){return typeof li().WorkerGlobalScope<"u"&&typeof li().importScripts=="function"}async function iH(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function oH(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function sH(){return oD()?self:null}/** 1378 * @license 1379 * Copyright 2019 Google LLC 1380 * 1381 * Licensed under the Apache License, Version 2.0 (the "License"); 1382 * you may not use this file except in compliance with the License. 1383 * You may obtain a copy of the License at 1384 * 1385 * http://www.apache.org/licenses/LICENSE-2.0 1386 * 1387 * Unless required by applicable law or agreed to in writing, software 1388 * distributed under the License is distributed on an "AS IS" BASIS, 1389 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1390 * See the License for the specific language governing permissions and 1391 * limitations under the License. 1392 */const sD="firebaseLocalStorageDb",aH=1,lp="firebaseLocalStorage",aD="fbase_key";class vd{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function fm(t,e){return t.transaction([lp],e?"readwrite":"readonly").objectStore(lp)}function lH(){const t=indexedDB.deleteDatabase(sD);
1392return new vd(t).toPromise()}function M0(){const t=indexedDB.open(sD,aH);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(lp,{keyPath:aD})}catch(i){n(i)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(lp)?e(r):(r.close(),await lH(),e(await M0()))})})}async function ux(t,e,n){const r=fm(t,!0).put({[aD]:e,value:n});return new vd(r).toPromise()}async function uH(t,e){const n=fm(t,!1).get(e),r=await new vd(n).toPromise();return r===void 0?null:r.value}function cx(t,e){const n=fm(t,!0).delete(e);return new vd(n).toPromise()}const cH=800,dH=3;class lD{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await M0(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>dH)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return oD()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=dm._getInstance(sH()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1392)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await iH(),!this.activeServiceWorker)return;this.sender=new nH(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((e=r[0])===null||e===void 0)&&e.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||oH()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await M0();return await ux(e,ap,"1"),await cx(e,ap),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>ux(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>uH(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>cx(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(i=>{const o=fm(i,!1).getAll();return new vd(o).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;for(const{fbase_key:i,value:o}of e)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(o)&&(this.notifyListeners(i,o),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),cH)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
vendor: 4,318 bytes, lines 1392-1441
1392ject.keys(this.listeners).length===0&&this.stopPolling()}}lD.type="LOCAL";const fH=lD;new pd(3e4,6e4);/** 1393 * @license 1394 * Copyright 2021 Google LLC 1395 * 1396 * Licensed under the Apache License, Version 2.0 (the "License"); 1397 * you may not use this file except in compliance with the License. 1398 * You may obtain a copy of the License at 1399 * 1400 * http://www.apache.org/licenses/LICENSE-2.0 1401 * 1402 * Unless required by applicable law or agreed to in writing, software 1403 * distributed under the License is distributed on an "AS IS" BASIS, 1404 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1405 * See the License for the specific language governing permissions and 1406 * limitations under the License. 1407 */function hH(t,e){return e?Ii(e):(ye(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 1408 * @license 1409 * Copyright 2019 Google LLC 1410 * 1411 * Licensed under the Apache License, Version 2.0 (the "License"); 1412 * you may not use this file except in compliance with the License. 1413 * You may obtain a copy of the License at 1414 * 1415 * http://www.apache.org/licenses/LICENSE-2.0 1416 * 1417 * Unless required by applicable law or agreed to in writing, software 1418 * distributed under the License is distributed on an "AS IS" BASIS, 1419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1420 * See the License for the specific language governing permissions and 1421 * limitations under the License. 1422 */class vE extends pE{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return el(e,this._buildIdpRequest())}_linkToIdToken(e,n){return el(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return el(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function pH(t){return JM(t.auth,new vE(t),t.bypassAuthState)}function mH(t){const{auth:e,user:n}=t;return ye(n,e,"internal-error"),zW(n,new vE(t),t.bypassAuthState)}async function gH(t){const{auth:e,user:n}=t;return ye(n,e,"internal-error"),BW(n,new vE(t),t.bypassAuthState)}/** 1423 * @license 1424 * Copyright 2020 Google LLC 1425 * 1426 * Licensed under the Apache License, Version 2.0 (the "License"); 1427 * you may not use this file except in compliance with the License. 1428 * You may obtain a copy of the License at 1429 * 1430 * http://www.apache.org/licenses/LICENSE-2.0 1431 * 1432 * Unless required by applicable law or agreed to in writing, software 1433 * distributed under the License is distributed on an "AS IS" BASIS, 1434 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1435 * See the License for the specific language governing permissions and 1436 * limitations under the License. 1437 */class uD{constructor(e,n,r,i,o=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:i,tenantId:o,error:s,type:a}=e;if(s){this.reject(s);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:o||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(u){this.reject(u)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return pH;case"linkViaPopup":case"linkViaRedirect":return gH;case"reauthViaPopup":case"reauthViaRedirect":return mH;default:jr(this.auth,"internal-error")}}resolve(e){Fi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Fi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1438 * @license 1439 * Copyright 2020 Google LLC 1440 * 1441 * Licensed under the Apache License, Version 2.0 (the "License");
1442 * you may not use this file except in compliance with the License. 1443 * You may obtain a copy of the License at 1444 * 1445 * http://www.apache.org/licenses/LICENSE-2.0 1446 * 1447 * Unless required by applicable law or agreed to in writing, software 1448 * distributed under the License is distributed on an "AS IS" BASIS, 1449 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1450 * See the License for the specific language governing permissions and 1451 * limitations under the License. 1452 */const vH=new pd(2e3,1e4);class za extends uD{constructor(e,n,r,i,o){super(e,n,i,o),this.provider=r,this.authWindow=null,this.pollId=null,za.currentPopupAction&&za.currentPopupAction.cancel(),za.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return ye(e,this.auth,"internal-error"),e}async onExecution(){Fi(this.filter.length===1,"Popup operations only handle one event");const e=gE();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(ai(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(ai(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,za.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(ai(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,vH.get())};e()}}za.currentPopupAction=null;/** 1453 * @license 1454 * Copyright 2020 Google LLC 1455 * 1456 * Licensed under the Apache License, Version 2.0 (the "License"); 1457 * you may not use this file except in compliance with the License. 1458 * You may obtain a copy of the License at 1459 * 1460 * http://www.apache.org/licenses/LICENSE-2.0 1461 * 1462 * Unless required by applicable law or agreed to in writing, software 1463 * distributed under the License is distributed on an "AS IS" BASIS, 1464 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1465 * See the License for the specific language governing permissions and 1466 * limitations under the License. 1467 */const yH="pendingRedirect",Jf=new Map;class wH extends uD{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=Jf.get(this.auth._key());if(!e){try{const r=await bH(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}Jf.set(this.auth._key(),e)}return this.bypassAuthState||Jf.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function bH(t,e){const n=SH(e),r=_H(t);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function EH(t,e){Jf.set(t._key(),e)}function _H(t){return Ii(t._redirectPersistence)}function SH(t){return Zf(yH,t.config.apiKey,t.name)}async function CH(t,e,n=!1){const r=ia(t),i=hH(r,e),s=await new wH(r,i,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,e)),s}/** 1468 * @license 1469 * Copyright 2020 Google LLC 1470 * 1471 * Licensed under the Apache License, Version 2.0 (the "License"); 1472 * you may not use this file except in compliance with the License. 1473 * You may obtain a copy of the License at 1474 * 1475 * http://www.apache.org/licenses/LICENSE-2.0 1476 * 1477 * Unless required by applicable law or agreed to in writing, softw
1477are 1478 * distributed under the License is distributed on an "AS IS" BASIS, 1479 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1480 * See the License for the specific language governing permissions and 1481 * limitations under the License. 1482 */const xH=10*60*1e3;class TH{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!PH(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!cD(e)){const i=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(ai(this.auth,i))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=xH&&this.cachedEventUids.clear(),this.cachedEventUids.has(dx(e))}saveEventToCache(e){this.cachedEventUids.add(dx(e)),this.lastProcessedEventTime=Date.now()}}function dx(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function cD({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function PH(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return cD(t);default:return!1}}/** 1483 * @license 1484 * Copyright 2020 Google LLC 1485 * 1486 * Licensed under the Apache License, Version 2.0 (the "License"); 1487 * you may not use this file except in compliance with the License. 1488 * You may obtain a copy of the License at 1489 * 1490 * http://www.apache.org/licenses/LICENSE-2.0 1491 * 1492 * Unless required by applicable law or agreed to in writing, software 1493 * distributed under the License is distributed on an "AS IS" BASIS, 1494 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1495 * See the License for the specific language governing permissions and 1496 * limitations under the License. 1497 */async function IH(t,e={}){return ra(t,"GET","/v1/projects",e)}/** 1498 * @license 1499 * Copyright 2020 Google LLC 1500 * 1501 * Licensed under the Apache License, Version 2.0 (the "License"); 1502 * you may not use this file except in compliance with the License. 1503 * You may obtain a copy of the License at 1504 * 1505 * http://www.apache.org/licenses/LICENSE-2.0 1506 * 1507 * Unless required by applicable law or agreed to in writing, software 1508 * distributed under the License is distributed on an "AS IS" BASIS, 1509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1510 * See the License for the specific language governing permissions and 1511 * limitations under the License. 1512 */const LH=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,RH=/^https?/;async function kH(t){if(t.config.emulator)return;const{authorizedDomains:e}=await IH(t);for(const n of e)try{if(AH(n))return}catch{}jr(t,"unauthorized-domain")}function AH(t){const e=A0(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const s=new URL(t);return s.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!RH.test(n))return!1;if(LH.test(t))return r===t;const i=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/** 1513 * @license 1514 * Copyright 2020 Google LLC. 1515 * 1516 * Licensed under the Apache License, Version 2.0 (the "License"); 1517 * you may not use this file except in compliance with the License. 1518 * You may obtain a copy of the License at 1519 * 1520 * http://www.apache.org/licenses/LICENSE-2.0 1521 * 1522 * Unless required by applicable law or agreed to in writing, softw
1522are 1523 * distributed under the License is distributed on an "AS IS" BASIS, 1524 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1525 * See the License for the specific language governing permissions and 1526 * limitations under the License. 1527 */const MH=new pd(3e4,6e4);function fx(){const t=li().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function DH(t){return new Promise((e,n)=>{var r,i,o;function s(){fx(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{fx(),n(ai(t,"network-request-failed"))},timeout:MH.get()})}if(!((i=(r=li().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)e(gapi.iframes.getContext());else if(!((o=li().gapi)===null||o===void 0)&&o.load)s();else{const a=TW("iframefcb");return li()[a]=()=>{gapi.load?s():n(ai(t,"network-request-failed"))},QM(`https://apis.google.com/js/api.js?onload=${a}`).catch(l=>n(l))}}).catch(e=>{throw eh=null,e})}let eh=null;function OH(t){return eh=eh||DH(t),eh}/** 1528 * @license 1529 * Copyright 2020 Google LLC. 1530 * 1531 * Licensed under the Apache License, Version 2.0 (the "License"); 1532 * you may not use this file except in compliance with the License. 1533 * You may obtain a copy of the License at 1534 * 1535 * http://www.apache.org/licenses/LICENSE-2.0 1536 * 1537 * Unless required by applicable law or agreed to in writing, software 1538 * distributed under the License is distributed on an "AS IS" BASIS, 1539 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1540 * See the License for the specific language governing permissions and 1541 * limitations under the License. 1542 */const NH=new pd(5e3,15e3),$H="__/auth/iframe",VH="emulator/auth/iframe",FH={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},jH=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function UH(t){const e=t.config;ye(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?dE(e,VH):`https://${t.config.authDomain}/${$H}`,r={apiKey:e.apiKey,appName:t.name,v:$l},i=jH.get(t.config.apiHost);i&&(r.eid=i);const o=t._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${hd(r).slice(1)}`}async function BH(t){const e=await OH(t),n=li().gapi;return ye(n,t,"internal-error"),e.open({where:document.body,url:UH(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:FH,dontclear:!0},r=>new Promise(async(i,o)=>{await r.restyle({setHideOnLeave:!1});const s=ai(t,"network-request-failed"),a=li().setTimeout(()=>{o(s)},NH.get());function l(){li().clearTimeout(a),i(r)}r.ping(l).then(l,()=>{o(s)})}))}/** 1543 * @license 1544 * Copyright 2020 Google LLC. 1545 * 1546 * Licensed under the Apache License, Version 2.0 (the "License"); 1547 * you may not use this file except in compliance with the License. 1548 * You may obtain a copy of the License at 1549 * 1550 * http://www.apache.org/licenses/LICENSE-2.0 1551 * 1552 * Unless required by applicable law or agreed to in writing, software 1553 * distributed under the License is distributed on an "AS IS" BASIS, 1554 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1555 * See the License for the specific language governing permissions and 1556 * limitations under the License. 1557 */const zH={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},WH=500,HH=600,KH="_blank",GH="http://localhost";class hx{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function qH(t,e,n,r=WH,i=HH){const o=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},zH),{width:r.toString(),height:i.toString(),top:o,left:s}),u=_n().toLowerCase();n&&(a=BM(u)?KH:n),UM(u)&&(e=e||GH,l.scrollbars="yes");const c=Object.entries(l).reduce((h,[p,m])=>`${h}${p}=${m},`,"");if(vW(u)&&a!=="_self")return QH(e||"",a),new hx(null);const d=window.open(e||"",a,c);ye(d,t,"popup-blocked");try{d.focus()}catch{}return new hx(d)}function QH(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");
1557r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** 1558 * @license 1559 * Copyright 2021 Google LLC 1560 * 1561 * Licensed under the Apache License, Version 2.0 (the "License"); 1562 * you may not use this file except in compliance with the License. 1563 * You may obtain a copy of the License at 1564 * 1565 * http://www.apache.org/licenses/LICENSE-2.0 1566 * 1567 * Unless required by applicable law or agreed to in writing, software 1568 * distributed under the License is distributed on an "AS IS" BASIS, 1569 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1570 * See the License for the specific language governing permissions and 1571 * limitations under the License. 1572 */const YH="__/auth/handler",XH="emulator/auth/handler",ZH=encodeURIComponent("fac");async function px(t,e,n,r,i,o){ye(t.config.authDomain,t,"auth-domain-config-required"),ye(t.config.apiKey,t,"invalid-api-key");const s={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:$l,eventId:i};if(e instanceof XM){e.setDefaultLanguage(t.languageCode),s.providerId=e.providerId||"",F8(e.getCustomParameters())||(s.customParameters=JSON.stringify(e.getCustomParameters()));for(const[c,d]of Object.entries(o||{}))s[c]=d}if(e instanceof gd){const c=e.getScopes().filter(d=>d!=="");c.length>0&&(s.scopes=c.join(","))}t.tenantId&&(s.tid=t.tenantId);const a=s;for(const c of Object.keys(a))a[c]===void 0&&delete a[c];const l=await t._getAppCheckToken(),u=l?`#${ZH}=${encodeURIComponent(l)}`:"";return`${JH(t)}?${hd(a).slice(1)}${u}`}function JH({config:t}){return t.emulator?dE(t,XH):`https://${t.authDomain}/${YH}`}/** 1573 * @license 1574 * Copyright 2020 Google LLC 1575 * 1576 * Licensed under the Apache License, Version 2.0 (the "License"); 1577 * you may not use this file except in compliance with the License. 1578 * You may obtain a copy of the License at 1579 * 1580 * http://www.apache.org/licenses/LICENSE-2.0 1581 * 1582 * Unless required by applicable law or agreed to in writing, software 1583 * distributed under the License is distributed on an "AS IS" BASIS, 1584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1585 * See the License for the specific language governing permissions and 1586 * limitations under the License. 1587 */const Cv="webStorageSupport";class eK{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=iD,this._completeRedirectFn=CH,this._overrideRedirectResult=EH}async _openPopup(e,n,r,i){var o;Fi((o=this.eventManagers[e._key()])===null||o===void 0?void 0:o.manager,"_initialize() not called before _openPopup()");const s=await px(e,n,r,A0(),i);return qH(e,s,gE())}async _openRedirect(e,n,r,i){await this._originValidation(e);const o=await px(e,n,r,A0(),i);return rH(o),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:i,promise:o}=this.eventManagers[n];return i?Promise.resolve(i):(Fi(o,"If manager is not set, promise should be"),o)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await BH(e),r=new TH(e);return n.register("authEvent",i=>(ye(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(Cv,{type:Cv},i=>{var o;const s=(o=i==null?void 0:i[0])===null||o===void 0?void 0:o[Cv];s!==void 0&&n(!!s),jr(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=kH(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return GM()||hE()||cm()}}const tK=eK;var mx="@firebase/auth",gx="1.3.0";/** 1588 * @license 1589 * Copyright 2020 Google LLC 1590 * 1591 * Licensed under the Apache License, Version 2.0 (the "License"); 1592 * you may not use this file except in compliance with the License. 1593 * You may obtain a copy of the License at 1594 * 1595 * http://www.apache.org/licenses/LICENSE-2.0 1596 * 1597 * Unless required by applicable law or agreed to in writing, softw
1597are 1598 * distributed under the License is distributed on an "AS IS" BASIS, 1599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1600 * See the License for the specific language governing permissions and 1601 * limitations under the License. 1602 */class nK{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){ye(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1603 * @license 1604 * Copyright 2020 Google LLC 1605 * 1606 * Licensed under the Apache License, Version 2.0 (the "License"); 1607 * you may not use this file except in compliance with the License. 1608 * You may obtain a copy of the License at 1609 * 1610 * http://www.apache.org/licenses/LICENSE-2.0 1611 * 1612 * Unless required by applicable law or agreed to in writing, software 1613 * distributed under the License is distributed on an "AS IS" BASIS, 1614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1615 * See the License for the specific language governing permissions and 1616 * limitations under the License. 1617 */function rK(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function iK(t){gl(new Bs("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;ye(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:qM(t)},u=new CW(r,i,o,l);return AW(u,n),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),gl(new Bs("auth-internal",e=>{const n=ia(e.getProvider("auth").getImmediate());return(r=>new nK(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),ko(mx,gx,rK(t)),ko(mx,gx,"esm2017")}/** 1618 * @license 1619 * Copyright 2021 Google LLC 1620 * 1621 * Licensed under the Apache License, Version 2.0 (the "License"); 1622 * you may not use this file except in compliance with the License. 1623 * You may obtain a copy of the License at 1624 * 1625 * http://www.apache.org/licenses/LICENSE-2.0 1626 * 1627 * Unless required by applicable law or agreed to in writing, software 1628 * distributed under the License is distributed on an "AS IS" BASIS, 1629 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1630 * See the License for the specific language governing permissions and 1631 * limitations under the License. 1632 */const oK=5*60,sK=PM("authIdTokenMaxAge")||oK;let vx=null;const aK=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>sK)return;const i=n==null?void 0:n.token;vx!==i&&(vx=i,await fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function lK(t=kM()){const e=uE(t,"auth");if(e.isInitialized())return e.getImmediate();const n=kW(t,{popupRedirectResolver:tK,persistence:[fH,eH,iD]}),r=PM("authTokenSyncURL");if(r){const o=aK(r);qW(n,o,()=>o(n.currentUser)),GW(n,s=>o(s))}const i=xM("auth");return i&&MW(n,`http://${i}`),n}iK("Browser");var uK=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J,yE=yE||{},Ee=uK||self;function hm(t){var e=typeof t;return e=e!="object"?e:t?Array.isArray(t)?"array":e:"null",e=="array"||e=="object"&&typeof t.length=="number"}function yd(t){var e=typeof t;return e=="object"&&t!=null||e=="function"}function cK(t){return Object.prototype.hasOwnProperty.call(t,xv)&&t[xv]||(t[xv]=++dK)}var xv="closure_uid_"+(1e9*Math.random()>>>0),dK=0;function fK(t,e,n){return t.call.apply(t.bind,arguments)}function hK(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,r),t.apply(e,i)}}return function(){return t.apply(e,arguments)}}function wn(t,e,n){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?wn=fK:wn=hK,wn.apply(null,arguments)}
1632function _f(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice();return r.push.apply(r,arguments),t.apply(this,r)}}function Zt(t,e){function n(){}n.prototype=e.prototype,t.$=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.ac=function(r,i,o){for(var s=Array(arguments.length-2),a=2;a<arguments.length;a++)s[a-2]=arguments[a];return e.prototype[i].apply(r,s)}}function ts(){this.s=this.s,this.o=this.o}var pK=0;ts.prototype.s=!1;ts.prototype.sa=function(){!this.s&&(this.s=!0,this.N(),pK!=0)&&cK(this)};ts.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const dD=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(typeof t=="string")return typeof e!="string"||e.length!=1?-1:t.indexOf(e,0);for(let n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1};function wE(t){const e=t.length;if(0<e){const n=Array(e);for(let r=0;r<e;r++)n[r]=t[r];return n}return[]}function yx(t,e){for(let n=1;n<arguments.length;n++){const r=arguments[n];if(hm(r)){const i=t.length||0,o=r.length||0;t.length=i+o;for(let s=0;s<o;s++)t[i+s]=r[s]}else t.push(r)}}function bn(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}bn.prototype.h=function(){this.defaultPrevented=!0};var mK=function(){if(!Ee.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{Ee.addEventListener("test",()=>{},e),Ee.removeEventListener("test",()=>{},e)}catch{}return t}();function Ac(t){return/^[\s\xa0]*$/.test(t)}function pm(){var t=Ee.navigator;return t&&(t=t.userAgent)?t:""}function Jr(t){return pm().indexOf(t)!=-1}function bE(t){return bE[" "](t),t}bE[" "]=function(){};function gK(t,e){var n=lG;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}var vK=Jr("Opera"),vl=Jr("Trident")||Jr("MSIE"),fD=Jr("Edge"),D0=fD||vl,hD=Jr("Gecko")&&!(pm().toLowerCase().indexOf("webkit")!=-1&&!Jr("Edge"))&&!(Jr("Trident")||Jr("MSIE"))&&!Jr("Edge"),yK=pm().toLowerCase().indexOf("webkit")!=-1&&!Jr("Edge");function pD(){var t=Ee.document;return t?t.documentMode:void 0}var O0;e:{var Tv="",Pv=function(){var t=pm();if(hD)return/rv:([^\);]+)(\)|;)/.exec(t);if(fD)return/Edge\/([\d\.]+)/.exec(t);if(vl)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(yK)return/WebKit\/(\S+)/.exec(t);if(vK)return/(?:Version)[ \/]?(\S+)/.exec(t)}();if(Pv&&(Tv=Pv?Pv[1]:""),vl){var Iv=pD();if(Iv!=null&&Iv>parseFloat(Tv)){O0=String(Iv);break e}}O0=Tv}var N0;if(Ee.document&&vl){var wx=pD();N0=wx||parseInt(O0,10)||void 0}else N0=void 0;var wK=N0;function Mc(t,e){if(bn.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(hD){e:{try{bE(e.nodeName);var i=!0;break e}catch{}i=!1}i||(e=null)}}else n=="mouseover"?e=t.fromElement:n=="mouseout"&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=r.clientX!==void 0?r.clientX:r.pageX,this.clientY=r.clientY!==void 0?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=typeof t.pointerType=="string"?t.pointerType:bK[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&Mc.$.h.call(this)}}Zt(Mc,bn);var bK={2:"touch",3:"pen",4:"mouse"};Mc.prototype.h=function(){Mc.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var wd="closure_listenable_"+(1e6*Math.random()|0),EK=0;function _K(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.la=i,this.key=++EK,this.fa=this.ia=!1}function mm(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function EE(t,e,n){for(const r in t)e.call(n,t[r],r,t)}function SK(t,e){for(const n in t)e.call(void 0,t[n],n,t)}function mD(t){const e={};for(const n in t)e[n]=t[n];return e}const bx="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1632ing toString valueOf".split(" ");function gD(t,e){let n,r;for(let i=1;i<arguments.length;i++){r=arguments[i];for(n in r)t[n]=r[n];for(let o=0;o<bx.length;o++)n=bx[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function gm(t){this.src=t,this.g={},this.h=0}gm.prototype.add=function(t,e,n,r,i){var o=t.toString();t=this.g[o],t||(t=this.g[o]=[],this.h++);var s=V0(t,e,r,i);return-1<s?(e=t[s],n||(e.ia=!1)):(e=new _K(e,this.src,o,!!r,i),e.ia=n,t.push(e)),e};function $0(t,e){var n=e.type;if(n in t.g){var r=t.g[n],i=dD(r,e),o;(o=0<=i)&&Array.prototype.splice.call(r,i,1),o&&(mm(e),t.g[n].length==0&&(delete t.g[n],t.h--))}}function V0(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.fa&&o.listener==e&&o.capture==!!n&&o.la==r)return i}return-1}var _E="closure_lm_"+(1e6*Math.random()|0),Lv={};function vD(t,e,n,r,i){if(r&&r.once)return wD(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)vD(t,e[o],n,r,i);return null}return n=xE(n),t&&t[wd]?t.O(e,n,yd(r)?!!r.capture:!!r,i):yD(t,e,n,!1,r,i)}function yD(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var s=yd(i)?!!i.capture:!!i,a=CE(t);if(a||(t[_E]=a=new gm(t)),n=a.add(e,n,r,s,o),n.proxy)return n;if(r=CK(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)mK||(i=s),i===void 0&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(ED(e.toString()),r);else if(t.addListener&&t.removeListener)t.addListener(r);else throw Error("addEventListener and attachEvent are unavailable.");return n}function CK(){function t(n){return e.call(t.src,t.listener,n)}const e=xK;return t}function wD(t,e,n,r,i){if(Array.isArray(e)){for(var o=0;o<e.length;o++)wD(t,e[o],n,r,i);return null}return n=xE(n),t&&t[wd]?t.P(e,n,yd(r)?!!r.capture:!!r,i):yD(t,e,n,!0,r,i)}function bD(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)bD(t,e[o],n,r,i);else r=yd(r)?!!r.capture:!!r,n=xE(n),t&&t[wd]?(t=t.i,e=String(e).toString(),e in t.g&&(o=t.g[e],n=V0(o,n,r,i),-1<n&&(mm(o[n]),Array.prototype.splice.call(o,n,1),o.length==0&&(delete t.g[e],t.h--)))):t&&(t=CE(t))&&(e=t.g[e.toString()],t=-1,e&&(t=V0(e,n,r,i)),(n=-1<t?e[t]:null)&&SE(n))}function SE(t){if(typeof t!="number"&&t&&!t.fa){var e=t.src;if(e&&e[wd])$0(e.i,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(ED(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=CE(e))?($0(n,t),n.h==0&&(n.src=null,e[_E]=null)):mm(t)}}}function ED(t){return t in Lv?Lv[t]:Lv[t]="on"+t}function xK(t,e){if(t.fa)t=!0;else{e=new Mc(e,this);var n=t.listener,r=t.la||t.src;t.ia&&SE(t),t=n.call(r,e)}return t}function CE(t){return t=t[_E],t instanceof gm?t:null}var Rv="__closure_events_fn_"+(1e9*Math.random()>>>0);function xE(t){return typeof t=="function"?t:(t[Rv]||(t[Rv]=function(e){return t.handleEvent(e)}),t[Rv])}function Xt(){ts.call(this),this.i=new gm(this),this.S=this,this.J=null}Zt(Xt,ts);Xt.prototype[wd]=!0;Xt.prototype.removeEventListener=function(t,e,n,r){bD(this,t,e,n,r)};function sn(t,e){var n,r=t.J;if(r)for(n=[];r;r=r.J)n.push(r);if(t=t.S,r=e.type||e,typeof e=="string")e=new bn(e,t);else if(e instanceof bn)e.target=e.target||t;else{var i=e;e=new bn(r,t),gD(e,i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var s=e.g=n[o];i=Sf(s,r,!0,e)&&i}if(s=e.g=t,i=Sf(s,r,!0,e)&&i,i=Sf(s,r,!1,e)&&i,n)for(o=0;o<n.length;o++)s=e.g=n[o],i=Sf(s,r,!1,e)&&i}Xt.prototype.N=function(){if(Xt.$.N.call(this),this.i){var t=this.i,e;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)mm(n[r]);delete t.g[e],t.h--}}this.J=null};Xt.prototype.O=function(t,e,n,r){return this.i.add(String(t),e,!1,n,r)};Xt.prototype.P=function(t,e,n,r){return this.i.add(String(t),e,!0,n,r)};function Sf(t,e,n,r){if(e=t.i.g[String(e)],!e)return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var s=e[o];if(s&&!s.fa&&s.capture==n){var a=s.listener,l=s.la||s.src;s.ia&&$0(t.i,s),i=a.call(l,r)!==!1&&i}}return i&&!r.defaultPrevented}var TE=Ee.JSON.stringify;class TK{constructor(e,n){this.i=e,this.j=n,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}function PK(){var t=PE;let e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}class IK{constructor(){this.h=this.g=null}add(e,n){const r=_D.get();r.set(e,n),this.h?this.h.next=r:this.g=r,this.h=r}}var _D=new TK(()=>new LK,t=>t.reset());class LK{constructor(){this.next=this.g=this.h=null}set(e,n){this.h=e,this.g=n,this.next=null}reset(){this.next=this.g=this.h=null}}function RK(t){var e=1;t=t.split(":");const n=[];for(;0<e&&t.length;)n.push(t.shift()),e--;return t.length&&n.push(t.join(":")),n}function kK(t){Ee.setTimeout(()=>{throw t},0)}let Dc,Oc=!1,PE=new IK,SD=()=>{const t=Ee.Promise.resolve(void 0);Dc=()=>
1632{t.then(AK)}};var AK=()=>{for(var t;t=PK();){try{t.h.call(t.g)}catch(n){kK(n)}var e=_D;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}Oc=!1};function vm(t,e){Xt.call(this),this.h=t||1,this.g=e||Ee,this.j=wn(this.qb,this),this.l=Date.now()}Zt(vm,Xt);J=vm.prototype;J.ga=!1;J.T=null;J.qb=function(){if(this.ga){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-t):(this.T&&(this.g.clearTimeout(this.T),this.T=null),sn(this,"tick"),this.ga&&(IE(this),this.start()))}};J.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())};function IE(t){t.ga=!1,t.T&&(t.g.clearTimeout(t.T),t.T=null)}J.N=function(){vm.$.N.call(this),IE(this),delete this.g};function LE(t,e,n){if(typeof t=="function")n&&(t=wn(t,n));else if(t&&typeof t.handleEvent=="function")t=wn(t.handleEvent,t);else throw Error("Invalid listener argument");return 2147483647<Number(e)?-1:Ee.setTimeout(t,e||0)}function CD(t){t.g=LE(()=>{t.g=null,t.i&&(t.i=!1,CD(t))},t.j);const e=t.h;t.h=null,t.m.apply(null,e)}class MK extends ts{constructor(e,n){super(),this.m=e,this.j=n,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:CD(this)}N(){super.N(),this.g&&(Ee.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Nc(t){ts.call(this),this.h=t,this.g={}}Zt(Nc,ts);var Ex=[];function xD(t,e,n,r){Array.isArray(n)||(n&&(Ex[0]=n.toString()),n=Ex);for(var i=0;i<n.length;i++){var o=vD(e,n[i],r||t.handleEvent,!1,t.h||t);if(!o)break;t.g[o.key]=o}}function TD(t){EE(t.g,function(e,n){this.g.hasOwnProperty(n)&&SE(e)},t),t.g={}}Nc.prototype.N=function(){Nc.$.N.call(this),TD(this)};Nc.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};function ym(){this.g=!0}ym.prototype.Ea=function(){this.g=!1};function DK(t,e,n,r,i,o){t.info(function(){if(t.g)if(o)for(var s="",a=o.split("&"),l=0;l<a.length;l++){var u=a[l].split("=");if(1<u.length){var c=u[0];u=u[1];var d=c.split("_");s=2<=d.length&&d[1]=="type"?s+(c+"="+u+"&"):s+(c+"=redacted&")}}else s=null;else s=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+` 1633`+n+` 1634`+s})}function OK(t,e,n,r,i,o,s){t.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+` 1635`+n+` 1636`+o+" "+s})}function Wa(t,e,n,r){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+$K(t,n)+(r?" "+r:"")})}function NK(t,e){t.info(function(){return"TIMEOUT: "+e})}ym.prototype.info=function(){};function $K(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n){for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if(o!="noop"&&o!="stop"&&o!="close")for(var s=1;s<i.length;s++)i[s]=""}}}}return TE(n)}catch{return e}}var oa={},_x=null;function wm(){return _x=_x||new Xt}oa.Ta="serverreachability";function PD(t){bn.call(this,oa.Ta,t)}Zt(PD,bn);function $c(t){const e=wm();sn(e,new PD(e))}oa.STAT_EVENT="statevent";function ID(t,e){bn.call(this,oa.STAT_EVENT,t),this.stat=e}Zt(ID,bn);function In(t){const e=wm();sn(e,new ID(e,t))}oa.Ua="timingevent";function LD(t,e){bn.call(this,oa.Ua,t),this.size=e}Zt(LD,bn);function bd(t,e){if(typeof t!="function")throw Error("Fn must not be null and must be a function");return Ee.setTimeout(function(){t()},e)}var bm={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},RD={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function RE(){}RE.prototype.h=null;function Sx(t){return t.h||(t.h=t.i())}function kD(){}var Ed={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function kE(){bn.call(this,"d")}Zt(kE,bn);function AE(){bn.call(this,"c")}Zt(AE,bn);var F0;function Em(){}Zt(Em,RE);Em.prototype.g=function(){return new XMLHttpRequest};Em.prototype.i=function(){return{}};F0=new Em;function _d(t,e,n,r){this.l=t,this.j=e,this.m=n,this.W=r||1,this.U=new Nc(this),this.P=VK,t=D0?125:void 0,this.V=new vm(t),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new AD}function AD(){this.i=null,this.g="",this.h=!1}var VK=45e3,j0={},up={};J=_d.prototype;J.setTimeout=function(t){this.P=t};function U0(t,e,n){t.L=1,t.v=Sm(ji(e)),t.s=n,t.S=!0,MD(t,null)}function MD(t,e){t.G=Date.now(),Sd(t),t.A=ji(t.v);var n=t.A,r=t.W;Array.isArray(r)||(r=[String(r)]),UD(n.i,"t",r),t.C=0,n=t.l.J,t.h=new AD,t.g=lO(t.l,n?e:null,!t.s),0<t.O&&(t.M=new MK(wn(t.Pa,t,t.g),t.O)),xD(t.U,t.g,"readystatechange",t.nb),e=t.I?mD(t.I):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ha(t.A,t.u,t.s,e)):(t.u="GET",t.g.ha(t.A,t.u,null,e)),$c(),DK(t.j,t.u,t.A,t.m,t.W,t.s)}J.nb=function(t){t=t.target;const e=this.M;e&&ei(t)==3?e.l():this.Pa(t)};J.Pa=function(t){try{if(t==this.g)e:{const c=ei(this.g);var e=this.g.Ia();const d=this.g.da();if(!(3>c)&&(c!=3||D0||this.g&&(this.h.h||this.g.ja()||Px(this.g)))){this.J||c!=4||e==7||(e==8||0>=d?$c(3):$c(2)),_m(this);var n=this.g.da();this.ca=n;t:if(DD(this)){var r=Px(this.g);t="";var i=r.length,o=ei(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){Ss(this),Xu(this);var s="";break t}this.h.i=new Ee.TextDecoder}for(e=0;e<i;e++)this.h.h=!0,t+=this.h.i.decode(r[e],{stream:o&&e==i-1});r.splice(0,i),this.h.g+=t,this.C=0,s=this.h.g}else s=this.g.ja();if(this.i=n==200,OK(this.j,this.u,this.A,this.m,this.W,c,n),this.i){if(this.aa&&
1636!this.K){t:{if(this.g){var a,l=this.g;if((a=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Ac(a)){var u=a;break t}}u=null}if(n=u)Wa(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,B0(this,n);else{this.i=!1,this.o=3,In(12),Ss(this),Xu(this);break e}}this.S?(OD(this,c,s),D0&&this.i&&c==3&&(xD(this.U,this.V,"tick",this.mb),this.V.start())):(Wa(this.j,this.m,s,null),B0(this,s)),c==4&&Ss(this),this.i&&!this.J&&(c==4?iO(this.l,this):(this.i=!1,Sd(this)))}else oG(this.g),n==400&&0<s.indexOf("Unknown SID")?(this.o=3,In(12)):(this.o=0,In(13)),Ss(this),Xu(this)}}}catch{}finally{}};function DD(t){return t.g?t.u=="GET"&&t.L!=2&&t.l.Ha:!1}function OD(t,e,n){let r=!0,i;for(;!t.J&&t.C<n.length;)if(i=FK(t,n),i==up){e==4&&(t.o=4,In(14),r=!1),Wa(t.j,t.m,null,"[Incomplete Response]");break}else if(i==j0){t.o=4,In(15),Wa(t.j,t.m,n,"[Invalid Chunk]"),r=!1;break}else Wa(t.j,t.m,i,null),B0(t,i);DD(t)&&i!=up&&i!=j0&&(t.h.g="",t.C=0),e!=4||n.length!=0||t.h.h||(t.o=1,In(16),r=!1),t.i=t.i&&r,r?0<n.length&&!t.ba&&(t.ba=!0,e=t.l,e.g==t&&e.ca&&!e.M&&(e.l.info("Great, no buffering proxy detected. Bytes received: "+n.length),VE(e),e.M=!0,In(11))):(Wa(t.j,t.m,n,"[Invalid Chunked Response]"),Ss(t),Xu(t))}J.mb=function(){if(this.g){var t=ei(this.g),e=this.g.ja();this.C<e.length&&(_m(this),OD(this,t,e),this.i&&t!=4&&Sd(this))}};function FK(t,e){var n=t.C,r=e.indexOf(` 1637`,n);return r==-1?up:(n=Number(e.substring(n,r)),isNaN(n)?j0:(r+=1,r+n>e.length?up:(e=e.slice(r,r+n),t.C=r+n,e)))}J.cancel=function(){this.J=!0,Ss(this)};function Sd(t){t.Y=Date.now()+t.P,ND(t,t.P)}function ND(t,e){if(t.B!=null)throw Error("WatchDog timer not null");t.B=bd(wn(t.lb,t),e)}function _m(t){t.B&&(Ee.clearTimeout(t.B),t.B=null)}J.lb=function(){this.B=null;const t=Date.now();0<=t-this.Y?(NK(this.j,this.A),this.L!=2&&($c(),In(17)),Ss(this),this.o=2,Xu(this)):ND(this,this.Y-t)};function Xu(t){t.l.H==0||t.J||iO(t.l,t)}function Ss(t){_m(t);var e=t.M;e&&typeof e.sa=="function"&&e.sa(),t.M=null,IE(t.V),TD(t.U),t.g&&(e=t.g,t.g=null,e.abort(),e.sa())}function B0(t,e){try{var n=t.l;if(n.H!=0&&(n.g==t||z0(n.i,t))){if(!t.K&&z0(n.i,t)&&n.H==3){try{var r=n.Ja.g.parse(e)}catch{r=null}if(Array.isArray(r)&&r.length==3){var i=r;if(i[0]==0){e:if(!n.u){if(n.g)if(n.g.G+3e3<t.G)fp(n),Pm(n);else break e;$E(n),In(18)}}else n.Fa=i[1],0<n.Fa-n.V&&37500>i[2]&&n.G&&n.A==0&&!n.v&&(n.v=bd(wn(n.ib,n),6e3));if(1>=WD(n.i)&&n.oa){try{n.oa()}catch{}n.oa=void 0}}else Cs(n,11)}else if((t.K||n.g==t)&&fp(n),!Ac(e))for(i=n.Ja.g.parse(e),e=0;e<i.length;e++){let u=i[e];if(n.V=u[0],u=u[1],n.H==2)if(u[0]=="c"){n.K=u[1],n.pa=u[2];const c=u[3];c!=null&&(n.ra=c,n.l.info("VER="+n.ra));const d=u[4];d!=null&&(n.Ga=d,n.l.info("SVER="+n.Ga));const h=u[5];h!=null&&typeof h=="number"&&0<h&&(r=1.5*h,n.L=r,n.l.info("backChannelRequestTimeoutMs_="+r)),r=n;const p=t.g;if(p){const m=p.g?p.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(m){var o=r.i;o.g||m.indexOf("spdy")==-1&&m.indexOf("quic")==-1&&m.indexOf("h2")==-1||(o.j=o.l,o.g=new Set,o.h&&(ME(o,o.h),o.h=null))}if(r.F){const g=p.g?p.g.getResponseHeader("X-HTTP-Session-Id"):null;g&&(r.Da=g,mt(r.I,r.F,g))}}n.H=3,n.h&&n.h.Ba(),n.ca&&(n.S=Date.now()-t.G,n.l.info("Handshake RTT: "+n.S+"ms")),r=n;var s=t;if(r.wa=aO(r,r.J?r.pa:null,r.Y),s.K){HD(r.i,s);var a=s,l=r.L;l&&a.setTimeout(l),a.B&&(_m(a),Sd(a)),r.g=s}else nO(r);0<n.j.length&&Im(n)}else u[0]!="stop"&&u[0]!="close"||Cs(n,7);else n.H==3&&(u[0]=="stop"||u[0]=="close"?u[0]=="stop"?Cs(n,7):NE(n):u[0]!="noop"&&n.h&&n.h.Aa(u),n.A=0)}}$c(4)}catch{}}function jK(t){if(t.Z&&typeof t.Z=="function")return t.Z();if(typeof Map<"u"&&t instanceof Map||typeof Set<"u"&&t instanceof Set)return Array.from(t.values());if(typeof t=="string")return t.split("");if(hm(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}e=[],n=0;for(r in t)e[n++]=t[r];return e}function UK(t){if(t.ta&&typeof t.ta=="function")return t.ta();if(!t.Z||typeof t.Z!="function"){if(typeof Map<"u"&&t instanceof Map)return Array.from(t.keys());if(!(typeof Set<"u"&&t instanceof Set)){if(hm(t)||typeof t=="string"){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}e=[],n=0;for(const r in t)e[n++]=r;return e}}}function $D(t,e){if(t.forEach&&typeof t.forEach=="function")t.forEach(e,void 0);else if(hm(t)||typeof t=="string")Array.prototype.forEach.call(t,e,void 0);else for(var n=UK(t),r=jK(t),i=r.length,o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}var VD=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function BK(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function As(t){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,t instanceof As){this.h=t.h,cp(this,t.j),this.s=t.s,this.g=t.g,dp(this,t.m),this.l=t.l;var e=t.i,n=new Vc;n.i=e.i,e.g&&(n.g=new Map(e.g),n.h=e.h),Cx(this,n),this.o=t.o}else t&&(e=String(t).match(VD))?(this.h=!1,cp(this,e[1]||"",!0),this.s=ku(e[2]||""),this.g=ku(e[3]||"",!0),dp(this,e[4]),this.l=ku(e[5]||"",!0),Cx(this,e[6]||"",!0),this.o=ku(e[7]||"")):(this.h=!1,this.i=new Vc(null,this.h))}As.prototype.toString=function(){var t=[],e=this.j;e&&t.push(Au(e,xx,!0),":");var n=this.g;
vendor: 2,025 bytes, line 1637
1637return(n||e=="file")&&(t.push("//"),(e=this.s)&&t.push(Au(e,xx,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.m,n!=null&&t.push(":",String(n))),(n=this.l)&&(this.g&&n.charAt(0)!="/"&&t.push("/"),t.push(Au(n,n.charAt(0)=="/"?HK:WK,!0))),(n=this.i.toString())&&t.push("?",n),(n=this.o)&&t.push("#",Au(n,GK)),t.join("")};function ji(t){return new As(t)}function cp(t,e,n){t.j=n?ku(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function dp(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.m=e}else t.m=null}function Cx(t,e,n){e instanceof Vc?(t.i=e,qK(t.i,t.h)):(n||(e=Au(e,KK)),t.i=new Vc(e,t.h))}function mt(t,e,n){t.i.set(e,n)}function Sm(t){return mt(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function ku(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Au(t,e,n){return typeof t=="string"?(t=encodeURI(t).replace(e,zK),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function zK(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(t&15).toString(16)}var xx=/[#\/\?@]/g,WK=/[#\?:]/g,HK=/[#\?]/g,KK=/[#\?@]/g,GK=/#/g;function Vc(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function ns(t){t.g||(t.g=new Map,t.h=0,t.i&&BK(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}J=Vc.prototype;J.add=function(t,e){ns(this),this.i=null,t=Fl(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this};function FD(t,e){ns(t),e=Fl(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function jD(t,e){return ns(t),e=Fl(t,e),t.g.has(e)}J.forEach=function(t,e){ns(this),this.g.forEach(function(n,r){n.forEach(function(i){t.call(e,i,r,this)},this)},this)};J.ta=function(){ns(this);const t=Array.from(this.g.values()),e=Array.from(this.g.keys()),n=[];for(let r=0;r<e.length;r++){const i=t[r];for(let o=0;o<i.length;o++)n.push(e[r])}return n};J.Z=function(t){ns(this);let e=[];
1637if(typeof t=="string")jD(this,t)&&(e=e.concat(this.g.get(Fl(this,t))));else{t=Array.from(this.g.values());for(let n=0;n<t.length;n++)e=e.concat(t[n])}return e};J.set=function(t,e){return ns(this),this.i=null,t=Fl(this,t),jD(this,t)&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this};J.get=function(t,e){return t?(t=this.Z(t),0<t.length?String(t[0]):e):e};function UD(t,e,n){FD(t,e),0<n.length&&(t.i=null,t.g.set(Fl(t,e),wE(n)),t.h+=n.length)}J.toString=function(){if(this.i)return this.i;if(!this.g)return"";const t=[],e=Array.from(this.g.keys());for(var n=0;n<e.length;n++){var r=e[n];const o=encodeURIComponent(String(r)),s=this.Z(r);for(r=0;r<s.length;r++){var i=o;s[r]!==""&&(i+="="+encodeURIComponent(String(s[r]))),t.push(i)}}return this.i=t.join("&")};function Fl(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}function qK(t,e){e&&!t.j&&(ns(t),t.i=null,t.g.forEach(function(n,r){var i=r.toLowerCase();r!=i&&(FD(this,r),UD(this,i,n))},t)),t.j=e}var QK=class{constructor(t,e){this.g=t,this.map=e}};function BD(t){this.l=t||YK,Ee.PerformanceNavigationTiming?(t=Ee.performance.getEntriesByType("navigation"),t=0<t.length&&(t[0].nextHopProtocol=="hq"||t[0].nextHopProtocol=="h2")):t=!!(Ee.g&&Ee.g.Ka&&Ee.g.Ka()&&Ee.g.Ka().dc),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var YK=10;function zD(t){return t.h?!0:t.g?t.g.size>=t.j:!1}function WD(t){return t.h?1:t.g?t.g.size:0}function z0(t,e){return t.h?t.h==e:t.g?t.g.has(e):!1}function ME(t,e){t.g?t.g.add(e):t.h=e}function HD(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}BD.prototype.cancel=function(){if(this.i=KD(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const t of this.g.values())t.cancel();this.g.clear()}};function KD(t){if(t.h!=null)return t.i.concat(t.h.F);if(t.g!=null&&t.g.size!==0){let e=t.i;for(const n of t.g.values())e=e.concat(n.F);return e}return wE(t.i)}var XK=class{stringify(t){return Ee.JSON.stringify(t,void 0)}parse(t){return Ee.JSON.parse(t,void 0)}};function ZK(){this.g=new XK}function JK(t,e,n){const r=n||"";try{$D(t,function(i,o){let s=i;yd(i)&&(s=TE(i)),e.push(r+o+"="+encodeURIComponent(s))})}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function eG(t,e){const n=new ym;if(Ee.Image){const r=new Image;r.onload=_f(Cf,n,r,"TestLoadImage: loaded",!0,e),r.onerror=_f(Cf,n,r,"TestLoadImage: error",!1,e),r.onabort=_f(Cf,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=_f(Cf,n,r,"TestLoadImage: timeout",!1,e),Ee.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=t}else e(!1)}function Cf(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch{}}function Cm(t){this.l=t.ec||null,this.j=t.ob||!1}Zt(Cm,RE);Cm.prototype.g=function(){return new xm(this.l,this.j)};Cm.prototype.i=function(t){return function(){return t}}({});function xm(t,e){Xt.call(this),this.F=t,this.u=e,this.m=void 0,this.readyState=DE,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}Zt(xm,Xt);var DE=0;J=xm.prototype;J.open=function(t,e){if(this.readyState!=DE)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,Fc(this)};J.send=function(t){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.F||Ee).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))};J.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,Cd(this)),this.readyState=DE};J.$a=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Fc(this)),this.g&&(this.readyState=3,Fc(this),this.g)))if(this.responseType==="arraybuffer")t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof Ee.ReadableStream<"u"&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;GD(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))};function GD(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}J.Xa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?Cd(this):Fc(this),this.readyState==3&&GD(this)}};J.Za=function(t){this.g&&(this.response=this.responseText=t,Cd(this))};J.Ya=function(t){this.g&&(this.response=t,Cd(this))};J.ka=function(){this.g&&Cd(this)};function Cd(t){t.readyState=4,t.l=null,t.j=null,t.A=null,Fc(t)}J.setRequestHeader=function(t,e){this.v.append(t,e)};J.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""};J.getAllResponseHeaders=function(){if(!this.h)return"";const t=[],e=this.h.entries();for(var n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join(`\r 1638`)};function Fc(t){t.onreadystatechange&&t.onreadystatechange.call(t)}Object.defineProperty(xm.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(t){this.m=t?"include":"same-origin"}});var tG=Ee.JSON.parse;function At(t){Xt.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=qD,this.L=this.M=!1}Zt(At,Xt);var qD="",nG=/^https?$/i,rG=["POST","PUT"];J=At.prototype;J.Oa=function(t){this.M=t};J.ha=function(t,e,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+t);e=e?e.toUpperCase():"GET",this.I=t,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():F0.g(),this.C=this.u?Sx(this.u):Sx(F0),this.g.onreadystatechange=wn(this.La,this);try{this.G=!0,this.g.open(e,String(t),!0),this.G=!1}catch(o){Tx(this,o);return}if(t=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)n.set(i,r[i]);else if(typeof r.keys=="function"&&typeof r.get=="function")for(const o of r.keys())n.set(o,r.get(o));else throw Error("Unknown input type for opt_headers: "+String(r));r=Array.from(n.keys()).find(o=>o.toLowerCase()=="content-type"),i=Ee.FormData&&t instanceof Ee.FormData,!(0<=dD(rG,e))||r||i||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[o,s]of n)this.g.setRequestHeader(o,s);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{XD(this),0<this.B&&((this.L=iG(this.g))?(this.g.timeout=this.B,this.g.ontimeout=wn(this.ua,this)):this.A=LE(this.ua,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(o){Tx(this,o)}};function iG(t){return vl&&typeof t.timeout=="number"&&t.ontimeout!==void 0}J.ua=function(){typeof yE<"u"&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,sn(this,"timeout"),this.abort(8))};function Tx(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,QD(t),Tm(t)}function QD(t){t.F||(t.F=!0,sn(t,"complete"),sn(t,"error"))}J.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,sn(this,"complete"),sn(this,"abort"),Tm(this))};J.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Tm(this,!0)),At.$.N.call(this)};J.La=function(){this.s||(this.G||this.v||this.l?YD(this):this.kb())};J.kb=function(){YD(this)};function YD(t){if(t.h&&typeof yE<"u"&&(!t.C[1]||ei(t)!=4||t.da()!=2)){if(t.v&&ei(t)==4)LE(t.La,0,t);else if(sn(t,"readystatechange"),ei(t)==4){t.h=!1;try{const s=t.da();e:switch(s){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e=!0;break e;default:e=!1}var n;if(!(n=e)){var r;if(r=s===0){var i=String(t.I).match(VD)[1]||null;!i&&Ee.self&&Ee.self.location&&(i=Ee.self.location.protocol.slice(0,-1)),r=!nG.test(i?i.toLowerCase():"")}n=r}if(n)sn(t,"complete"),sn(t,"success");else{t.m=6;try{var o=2<ei(t)?t.g.statusText:""}catch{o=""}t.j=o+" ["+t.da()+"]",QD(t)}}finally{Tm(t)}
vendor: 21,342 bytes, lines 1638-1644
1638}}}function Tm(t,e){if(t.g){XD(t);const n=t.g,r=t.C[0]?()=>{}:null;t.g=null,t.C=null,e||sn(t,"ready");try{n.onreadystatechange=r}catch{}}}function XD(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(Ee.clearTimeout(t.A),t.A=null)}J.isActive=function(){return!!this.g};function ei(t){return t.g?t.g.readyState:0}J.da=function(){try{return 2<ei(this)?this.g.status:-1}catch{return-1}};J.ja=function(){try{return this.g?this.g.responseText:""}catch{return""}};J.Wa=function(t){if(this.g){var e=this.g.responseText;return t&&e.indexOf(t)==0&&(e=e.substring(t.length)),tG(e)}};function Px(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.K){case qD:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch{return null}}function oG(t){const e={};t=(t.g&&2<=ei(t)&&t.g.getAllResponseHeaders()||"").split(`\r 1639`);for(let r=0;r<t.length;r++){if(Ac(t[r]))continue;var n=RK(t[r]);const i=n[0];if(n=n[1],typeof n!="string")continue;n=n.trim();const o=e[i]||[];e[i]=o,o.push(n)}SK(e,function(r){return r.join(", ")})}J.Ia=function(){return this.m};J.Sa=function(){return typeof this.j=="string"?this.j:String(this.j)};function ZD(t){let e="";return EE(t,function(n,r){e+=r,e+=":",e+=n,e+=`\r 1640`}),e}function OE(t,e,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=ZD(n),typeof t=="string"?n!=null&&encodeURIComponent(String(n)):mt(t,e,n))}function mu(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function JD(t){this.Ga=0,this.j=[],this.l=new ym,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=mu("failFast",!1,t),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=mu("baseRetryDelayMs",5e3,t),this.hb=mu("retryDelaySeedMs",1e4,t),this.eb=mu("forwardChannelMaxRetries",2,t),this.xa=mu("forwardChannelRequestTimeoutMs",2e4,t),this.va=t&&t.xmlHttpFactory||void 0,this.Ha=t&&t.useFetchStreams||!1,this.L=void 0,this.J=t&&t.supportsCrossDomainXhr||!1,this.K="",this.i=new BD(t&&t.concurrentRequestLimit),this.Ja=new ZK,this.P=t&&t.fastHandshake||!1,this.O=t&&t.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=t&&t.bc||!1,t&&t.Ea&&this.l.Ea(),t&&t.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&t&&t.detectBufferingProxy||!1,this.qa=void 0,t&&t.longPollingTimeout&&0<t.longPollingTimeout&&(this.qa=t.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}J=JD.prototype;J.ra=8;J.H=1;function NE(t){if(eO(t),t.H==3){var e=t.W++,n=ji(t.I);if(mt(n,"SID",t.K),mt(n,"RID",e),mt(n,"TYPE","terminate"),xd(t,n),e=new _d(t,t.l,e),e.L=2,e.v=Sm(ji(n)),n=!1,Ee.navigator&&Ee.navigator.sendBeacon)try{n=Ee.navigator.sendBeacon(e.v.toString(),"")}catch{}!n&&Ee.Image&&(new Image().src=e.v,n=!0),n||(e.g=lO(e.l,null),e.g.ha(e.v)),e.G=Date.now(),Sd(e)}sO(t)}function Pm(t){t.g&&(VE(t),t.g.cancel(),t.g=null)}function eO(t){Pm(t),t.u&&(Ee.clearTimeout(t.u),t.u=null),fp(t),t.i.cancel(),t.m&&(typeof t.m=="number"&&Ee.clearTimeout(t.m),t.m=null)}function Im(t){if(!zD(t.i)&&!t.m){t.m=!0;var e=t.Na;Dc||SD(),Oc||(Dc(),Oc=!0),PE.add(e,t),t.C=0}}function sG(t,e){return WD(t.i)>=t.i.j-(t.m?1:0)?!1:t.m?(t.j=e.F.concat(t.j),!0):t.H==1||t.H==2||t.C>=(t.cb?0:t.eb)?!1:(t.m=bd(wn(t.Na,t,e),oO(t,t.C)),t.C++,!0)}J.Na=function(t){if(this.m)if(this.m=null,this.H==1){if(!t){this.W=Math.floor(1e5*Math.random()),t=this.W++;const i=new _d(this,this.l,t);let o=this.s;if(this.U&&(o?(o=mD(o),gD(o,this.U)):o=this.U),this.o!==null||this.O||(i.I=o,o=null),this.P)e:{for(var e=0,n=0;n<this.j.length;n++){t:{var r=this.j[n];if("__data__"in r.map&&(r=r.map.__data__,typeof r=="string")){r=r.length;break t}r=void 0}if(r===void 0)break;if(e+=r,4096<e){e=n;break e}if(e===4096||n===this.j.length-1){e=n+1;break e}}e=1e3}else e=1e3;e=tO(this,i,e),n=ji(this.I),mt(n,"RID",t),mt(n,"CVER",22),this.F&&mt(n,"X-HTTP-Session-Id",this.F),xd(this,n),o&&(this.O?e="headers="+encodeURIComponent(String(ZD(o)))+"&"+e:this.o&&OE(n,this.o,o)),ME(this.i,i),this.bb&&mt(n,"TYPE","init"),this.P?(mt(n,"$req",e),mt(n,"SID","null"),i.aa=!0,U0(i,n,null)):U0(i,n,e),this.H=2}}else this.H==3&&(t?Ix(this,t):this.j.length==0||zD(this.i)||Ix(this))};function Ix(t,e){var n;e?n=e.m:n=t.W++;const r=ji(t.I);mt(r,"SID",t.K),mt(r,"RID",n),mt(r,"AID",t.V),xd(t,r),t.o&&t.s&&OE(r,t.o,t.s),n=new _d(t,t.l,n,t.C+1),t.o===null&&(n.I=t.s),e&&(t.j=e.F.concat(t.j)),e=tO(t,n,1e3),n.setTimeout(Math.round(.5*t.xa)+Math.round(.5*t.xa*Math.random())),ME(t.i,n),U0(n,r,e)}function xd(t,e){t.na&&EE(t.na,function(n,r){mt(e,r,n)}),t.h&&$D({},function(n,r){mt(e,r,n)})}function tO(t,e,n){n=Math.min(t.j.length,n);var r=t.h?wn(t.h.Va,t.h,t):null;e:{var i=t.j;let o=-1;for(;;){const s=["count="+n];o==-1?0<n?(o=i[0].g,s.push("ofs="+o)):o=0:s.push("ofs="+o);let a=!0;for(let l=0;l<n;l++){let u=i[l].g;const c=i[l].map;if(u-=o,0>u)o=Math.max(0,i[l].g-100),a=!1;else try{JK(c,s,"req"+u+"_")}catch{r&&r(c)}}if(a){r=s.join("&");break e}}}return t=t.j.splice(0,n),e.F=t,r}function nO(t){if(!t.g&&!t.u){t.ba=1;var e=t.Ma;Dc||SD(),Oc||(Dc(),Oc=!0),PE.add(e,t),t.A=0}}function $E(t){return t.g||t.u||3<=t.A?!1:(t.ba++,t.u=bd(wn(t.Ma,t),oO(t,t.A)),t.A++,!0)}J.Ma=function(){if(this.u=null,rO(this),this.ca&&!(this.M||this.g==null||0>=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=bd(wn(this.jb,this),t)}};J.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,In(10),Pm(this),rO(this))};function VE(t){t.B!=null&&(Ee.clearTimeout(t.B),t.B=null)}function rO(t){t.g=new _d(t,t.l,"rpc",t.ba),t.o===null&&(t.g.I=t.s),t.g.O=0;var e=ji(t.wa);mt(e,"RID","rpc"),mt(e,"SID",t.K),mt(e,"AID",t.V),mt(e,"CI",t.G?"0":"1"),!t.G&&t.qa&&mt(e,"TO",t.qa),mt(e,"TYPE","xmlhttp"),xd(t,e),t.o&&t.s&&OE(e,t.o,t.s),t.L&&t.g.setTimeout(t.L);var n=t.g;t=t.pa,n.L=1,n.v=Sm(ji(e)),n.s=null,n.S=!0,MD(n,t)}J.ib=function(){this.v!=null&&(this.v=null,Pm(this),$E(this),In(19))};function fp(t){t.v!=null&&(Ee.clearTimeout(t.v),t.v=null)}function iO(t,e){var n=null;if(t.g==e){fp(t),VE(t),t.g=null;var r=2}else if(z0(t.i,e))n=e.F,HD(t.i,e),r=1;else return;if(t.H!=0){if(e.i)if(r==1){n=e.s?e.s.length:0,e=Date.now()-e.G;var i=t.C;r=wm(),sn(r,new LD(r,n)),Im(t)}else nO(t);else if(i=e.o,i==3||i==0&&0<e.ca||!(r==1&&sG(t,e)||r==2&&$E(t)))switch(n&&0<n.length&&(e=t.i,e.i=e.i.concat(n)),i){case 1:Cs(t,5);break;case 4:Cs(t,10);break;case 3:Cs(t,6);break;default:Cs(t,2)}}}function oO(t,e){let n=t.ab+Math.floor(Math.random()*t.hb);return t.isActive()||(n*=2),n*e}function Cs(t,e){if(t.l.info("Error code "+e),e==2){var n=null;t.h&&(n=null);var r=wn(t.pb,t);n||(n=new As("//www.google.com/images/cleardot.gif"),Ee.location&&Ee.location.protocol=="http"||cp(n,"https"),Sm(n)),eG(n.toString(),r)}else In(2);t.H=0,t.h&&t.h.za(e),sO(t),eO(t)}J.pb=function(t){t?(this.l.info("Successfully pinged google.com"),In(2)):(this.l.info("Failed to ping google.com"),In(1))};function sO(t){if(t.H=0,t.ma=[],t.h){const e=KD(t.i);(e.length!=0||t.j.length!=0)&&(yx(t.ma,e),yx(t.ma,t.j),t.i.i.length=0,wE(t.j),t.j.length=0),t.h.ya()}}function aO(t,e,n){var r=n instanceof As?ji(n):new As(n);if(r.g!="")e&&(r.g=e+"."+r.g),dp(r,r.m);else{var i=Ee.location;r=i.protocol,e=e?e+"."+i.hostname:i.hostname,i=+i.port;var o=new As(null);r&&cp(o,r),e&&(o.g=e),i&&dp(o,i),n&&(o.l=n),r=o}return n=t.F,e=t.Da,n&&e&&mt(r,n,e),mt(r,"VER",t.ra),xd(t,r),r}function lO(t,e,n){if(e&&!t.J)throw Error("Can't create secondary domain capable XhrIo object.");return e=n&&t.Ha&&!t.va?new At(new Cm({ob:!0})):new At(t.va),e.Oa(t.J),e}J.isActive=function(){return!!this.h&&this.h.isActive(this)};function uO(){}J=uO.prototype;J.Ba=function(){};J.Aa=function(){};J.za=function(){};J.ya=function(){};J.isActive=function(){return!0};J.Va=function(){};function hp(){if(vl&&!(10<=Number(wK)))throw Error("Environmental error: no available transport.")}hp.prototype.g=function(t,e){return new er(t,e)};function er(t,e){Xt.call(this),this.g=new JD(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.Ca&&(t?t["X-WebChannel-Client-Profile"]=e.Ca:t={"X-WebChannel-Client-Profile":e.Ca}),this.g.U=t,(t=e&&e.cc)&&!Ac(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!Ac(e)&&(this.g.F=e,t=this.h,t!==null&&e in t&&(t=this.h,e in t&&delete t[e])),this.j=new jl(this)}Zt(er,Xt);er.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var t=this.g,e=this.l,n=this.h||void 0;In(0),t.Y=e,t.na=n||{},t.G=t.aa,t.I=aO(t,null,t.Y),Im(t)};er.prototype.close=function(){NE(this.g)};er.prototype.u=function(t){var e=this.g;if(typeof t=="string"){var n={};n.__data__=t,t=n}else this.v&&(n={},n.__data__=TE(t),t=n);e.j.push(new QK(e.fb++,t)),e.H==3&&Im(e)};er.prototype.N=function(){this.g.h=null,delete this.j,NE(this.g),delete this.g,er.$.N.call(this)};function cO(t){kE.call(this),t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var e=t.__sm__;if(e){e:{for(const n in e){t=n;break e}t=void 0}(this.i=t)&&(t=this.i,e=e!==null&&t in e?e[t]:void 0),this.data=e}else this.data=t}Zt(cO,kE);function dO(){AE.call(this),this.status=1}Zt(dO,AE);function jl(t){this.g=t}Zt(jl,uO);jl.prototype.Ba=function(){sn(this.g,"a")};jl.prototype.Aa=function(t){sn(this.g,new cO(t))};jl.prototype.za=function(t){sn(this.g,new dO)};jl.prototype.ya=function(){sn(this.g,"b")};function aG(){this.blockSize=-1}function Ur(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}Zt(Ur,aG);Ur.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0};function kv(t,e,n){n||(n=0);var r=Array(16);if(typeof e=="string")for(var i=0;16>i;++i)r[i]=e.charCodeAt(n++)|e.charCodeAt(n++)<<8|e.charCodeAt(n++)<<16|e.charCodeAt(n++)<<24;else for(i=0;16>i;++i)r[i]=e[n++]|e[n++]<<8|e[n++]<<16|e[n++]<<24;e=t.g[0],n=t.g[1],i=t.g[2];var o=t.g[3],s=e+(o^n&(i^o))+r[0]+3614090360&4294967295;e=n+(s<<7&4294967295|s>>>25),s=o+(i^e&(n^i))+r[1]+3905402710&4294967295,o=e+(s<<12&4294967295|s>>>20),s=i+(n^o&(e^n))+r[2]+606105819&4294967295,i=o+(s<<17&4294967295|s>>>15),s=n+(e^i&(o^e))+r[3]+3250441966&4294967295,n=i+(s<<22&4294967295|s>>>10),s=e+(o^n&(i^o))+r[4]+4118548399&4294967295,e=n+(s<<7&4294967295|s>>>25),s=o+(i^e&(n^i))+r[5]+1200080426&4294967295,o=e+(s<<12&4294967295|s>>>20),s=i+(n^o&(e^n))+r[6]+2821735955&4294967295,i=o+(s<<17&4294967295|s>>>15),s=n+(e^i&(o^e))+r[7]+4249261313&4294967295,n=i+(s<<22&4294967295|s>>>10),s=e+(o^n&(i^o))+r[8]+1770035416&4294967295,e=n+(s<<7&4294967295|s>>>25),s=o+(i^e&(n^i))+r[9]+2336552879&4294967295,o=e+(s<<12&4294967295|s>>>20),s=i+(n^o&(e^n))+r[10]+4294925233&4294967295,i=o+(s<<17&4294967295|s>>>15),s=n+(e^i&(o^e))+r[11]+2304563134&4294967295,n=i+(s<<22&4294967295|s>>>10),s=e+(o^n&(i^o))+r[12]+1804603682&4294967295,e=n+(s<<7&4294967295|s>>>25),s=o+(i^e&(n^i))+r[13]+4254626195&4294967295,o=e+(s<<12&4294967295|s>>>20),s=i+(n^o&(e^n))+r[14]+2792965006&4294967295,i=o+(s<<17&4294967295|s>>>15),s=n+(e^i&(o^e))+r[15]+1236535329&4294967295,n=i+(s<<22&4294967295|s>>>10),s=e+(i^o&(n^i))+r[1]+4129170786&4294967295,e=n+(s<<5&4294967295|s>>>27),s=o+(n^i&(e^n))+r[6]+3225465664&4294967295,o=e+(s<<9&4294967295|s>>>23),s=i+(e^n&(o^e))+r[11]+643717713&4294967295,i=o+(s<<14&4294967295|s>>>18),s=n+(o^e&(i^o))+r[0]+3921069994&4294967295,n=i+(s<<20&4294967295|s>>>12),s=e+(i^o&(n^i))+r[5]+3593408605&4294967295,e=n+(s<<5&4294967295|s>>>27),s=o+(n^i&(e^n))+r[10]+38016083&4294967295,o=e+(s<<9&4294967295|s>>>23),s=i+(e^n&(o^e))+r[15]+3634488961&4294967295,i=o+(s<<14&4294967295|s>>>18),s=n+(o^e&(i^o))+r[4]+3889429448&4294967295,n=i+(s<<20&4294967295|s>>>12),s=e+(i^o&(n^i))+r[9]+568446438&4294967295,e=n+(s<<5&4294967295|s>>>27),s=o+(n^i&(e^n))+r[14]+3275163606&4294967295,o=e+(s<<9&4294967295|s>>>23),s=i+(e^n&(o^e))+r[3]+4107603335&4294967295,i=o+(s<<14&4294967295|s>>>18),s=n+(o^e&(i^o))+r[8]+1163531501&4294967295,n=i+(s<<20&4294967295|s>>>12),s=e+(i^o&(n^i))+r[13]+2850285829&4294967295,e=n+(s<<5&4294967295|s>>>27),s=o+(n^i&(e^n))+r[2]+4243563512&4294967295,o=e+(s<<9&4294967295|s>>>23),s=i+(e^n&(o^e))+r[7]+1735328473&4294967295,i=o+(s<<14&4294967295|s>>>18),s=n+(o^e&(i^o))+r[12]+2368359562&4294967295,n=i+(s<<20&4294967295|s>>>12),s=e+(n^i^o)+r[5]+4294588738&4294967295,e=n+(s<<4&4294967295|s>>>28),s=o+(e^n^i)+r[8]+2272392833&4294967295,o=e+(s<<11&4294967295|s>>>21),s=i+(o^e^n)+r[11]+1839030562&4294967295,i=o+(s<<16&4294967295|s>>>16),s=n+(i^o^e)+r[14]+4259657740&4294967295,n=i+(s<<23&4294967295|s>>>9),s=e+(n^i^o)+r[1]+2763975236&4294967295,e=n+(s<<4&4294967295|s>>>28),s=o+(e^n^i)+r[4]+1272893353&4294967295,o=e+(s<<11&4294967295|s>>>21),s=i+(o^e^n)+r[7]+4139469664&4294967295,i=o+(s<<16&4294967295|s>>>16),s=n+(i^o^e)+r[10]+3200236656&4294967295,n=i+(s<<23&4294967295|s>>>9),s=e+(n^i^o)+r[13]+681279174&4294967295,e=n+(s<<4&4294967295|s>>>28),s=o+(e^n^i)+r[0]+3936430074&4294967295,o=e+(s<<11&4294967295|s>>>21),s=i+(o^e^n)+r[3]+3572445317&4294967295,i=o+(s<<16&4294967295|s>>>16),s=n+(i^o^e)+r[6]+76029189&4294967295,n=i+(s<<23&4294967295|s>>>9),s=e+(n^i^o)+r[9]+3654602809&4294967295,e=n+(s<<4&4294967295|s>>>28),s=o+(e^n^i)+r[12]+3873151461&4294967295,o=e+(s<<11&4294967295|s>>>21),s=i+(o^e^n)+r[15]+530742520&4294967295,i=o+(s<<16&4294967295|s>>>16),s=n+(i^o^e)+r[2]+3299628645&4294967295,n=i+(s<<23&4294967295|s>>>9),s=e+(i^(n|~o))+r[0]+4096336452&4294967295,e=n+(s<<6&4294967295|s>>>26),s=o+(n^(e|~i))+r[7]+1126891415&4294967295,o=e+(s<<10&4294967295|s>>>22),s=i+(e^(o|~n))+r[14]+2878612391&4294967295,i=o+(s<<15&4294967295|s>>>17),s=n+(o^(i|~e))+r[5]+4237533241&4294967295,n=i+(s<<21&4294967295|s>>>11),s=e+(i^(n|~o))+r[12]+1700485571&4294967295,e=n+(s<<6&4294967295|s>>>26),s=o+(n^(e|~i))+r[3]+2399980690&4294967295,o=e+(s<<10&4294967295|s>>>22),s=i+(e^(o|~n))+r[10]+4293915773&4294967295,i=o+(s<<15&4294967295|s>>>17),s=n+(o^(i|~e))+r[1]+2240044497&4294967295,n=i+(s<<21&4294967295|s>>>11),s=e+(i^(n|~o))+r[8]+1873313359&4294967295,e=n+(s<<6&4294967295|s>>>26),s=o+(n^(e|~i))+r[15]+4264355552&4294967295,o=e+(s<<10&4294967295|s>>>22),s=i+(e^(o|~n))+r[6]+2734768916&4294967295,i=o+(s<<15&4294967295|s>>>17),s=n+(o^(i|~e))+r[13]+1309151649&4294967295,n=i+(s<<21&4294967295|s>>>11),s=e+(i^(n|~o))+r[4]+4149444226&4294967295,e=n+(s<<6&4294967295|s>>>26),s=o+(n^(e|~i))+r[11]+3174756917&4294967295,o=e+(s<<10&4294967295|s>>>22),s=i+(e^(o|~n))+r[2]+718787259&4294967295,i=o+(s<<15&4294967295|s>>>17),s=n+(o^(i|~e))+r[9]+3951481745&4294967295,t.g[0]=t.g[0]+e&4294967295,t.g[1]=t.g[1]+(i+(s<<21&4294967295|s>>>11))&4294967295,t.g[2]=t.g[2]+i&4294967295,t.g[3]=t.g[3]+o&4294967295}Ur.prototype.j=function(t,e){e===void 0&&(e=t.length);for(var n=e-this.blockSize,r=this.m,i=this.h,o=0;o<e;){if(i==0)for(;o<=n;)kv(this,t,o),o+=this.blockSize;if(typeof t=="string"){for(;o<e;)if(r[i++]=t.charCodeAt(o++),i==this.blockSize){kv(this,r),i=0;break}}else for(;o<e;)if(r[i++]=t[o++],i==this.blockSize){kv(this,r),i=0;break}}this.h=i,this.i+=e};Ur.prototype.l=function(){var t=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var e=1;e<t.length-8;++e)t[e]=0;var n=8*this.i;for(e=t.length-8;e<t.length;++e)t[e]=n&255,n/=256;for(this.j(t),t=Array(16),e=n=0;4>e;++e)for(var r=0;32>r;r+=8)t[n++]=this.g[e]>>>r&255;return t};function tt(t,e){this.h=e;for(var n=[],r=!0,i=t.length-1;0<=i;i--){var o=t[i]|0;r&&o==e||(n[i]=o,r=!1)}this.g=n}var lG={};function FE(t){return-128<=t&&128>t?gK(t,function(e){return new tt([e|0],0>e?-1:0)}):new tt([t|0],0>t?-1:0)}function ti(t){if(isNaN(t)||!isFinite(t))return tl;if(0>t)return nn(ti(-t));for(var e=[],n=1,r=0;t>=n;r++)e[r]=t/n|0,n*=W0;return new tt(e,0)}function fO(t,e){if(t.length==0)throw Error("number format error: empty string");if(e=e||10,2>e||36<e)throw Error("radix out of range: "+e);if(t.charAt(0)=="-")return nn(fO(t.substring(1),e));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var n=ti(Math.pow(e,8)),r=tl,i=0;i<t.length;i+=8){var o=Math.min(8,t.length-i),s=parseInt(t.substring(i,i+o),e);8>o?(o=ti(Math.pow(e,o)),r=r.R(o).add(ti(s))):(r=r.R(n),r=r.add(ti(s)))}return r}var W0=4294967296,tl=FE(0),H0=FE(1),Lx=FE(16777216);J=tt.prototype;J.ea=function(){if(pr(this))return-nn(this).ea();for(var t=0,e=1,n=0;n<this.g.length;n++){var r=this.D(n);t+=(0<=r?r:W0+r)*e,e*=W0}return t};J.toString=function(t){if(t=t||10,2>t||36<t)throw Error("radix out of range: "+t);if(Li(this))return"0";if(pr(this))return"-"+nn(this).toString(t);for(var e=ti(Math.pow(t,6)),n=this,r="";;){var i=mp(n,e).g;n=pp(n,i.R(e));var o=((0<n.g.length?n.g[0]:n.h)>>>0).toString(t);if(n=i,Li(n))return o+r;for(;6>o.length;)o="0"+o;r=o+r}};J.D=function(t){return 0>t?0:t<this.g.length?this.g[t]:this.h};function Li(t){if(t.h!=0)return!1;for(var e=0;e<t.g.length;e++)if(t.g[e]!=0)return!1;return!0}function pr(t){return t.h==-1}J.X=function(t){return t=pp(this,t),pr(t)?-1:Li(t)?0:1};function nn(t){for(var e=t.g.length,n=[],r=0;r<e;r++)n[r]=~t.g[r];return new tt(n,~t.h).add(H0)}J.abs=function(){return pr(this)?nn(this):this};J.add=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],r=0,i=0;i<=e;i++){var o=r+(this.D(i)&65535)+(t.D(i)&65535),s=(o>>>16)+(this.D(i)>>>16)+(t.D(i)>>>16);r=s>>>16,o&=65535,s&=65535,n[i]=s<<16|o}return new tt(n,n[n.length-1]&-2147483648?-1:0)};function pp(t,e){return t.add(nn(e))}J.R=function(t){if(Li(this)||Li(t))return tl;if(pr(this))return pr(t)?nn(this).R(nn(t)):nn(nn(this).R(t));if(pr(t))return nn(this.R(nn(t)));if(0>this.X(Lx)&&0>t.X(Lx))return ti(this.ea()*t.ea());for(var e=this.g.length+t.g.length,n=[],r=0;r<2*e;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var i=0;i<t.g.length;i++){var o=this.D(r)>>>16,s=this.D(r)&65535,a=t.D(i)>>>16,l=t.D(i)&65535;n[2*r+2*i]+=s*l,xf(n,2*r+2*i),n[2*r+2*i+1]+=o*l,xf(n,2*r+2*i+1),n[2*r+2*i+1]+=s*a,xf(n,2*r+2*i+1),n[2*r+2*i+2]+=o*a,xf(n,2*r+2*i+2)}for(r=0;r<e;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=e;r<2*e;r++)n[r]=0;return new tt(n,0)};function xf(t,e){for(;(t[e]&65535)!=t[e];)t[e+1]+=t[e]>>>16,t[e]&=65535,e++}function gu(t,e){this.g=t,this.h=e}function mp(t,e){if(Li(e))throw Error("division by zero");if(Li(t))return new gu(tl,tl);if(pr(t))return e=mp(nn(t),e),new gu(nn(e.g),nn(e.h));if(pr(e))return e=mp(t,nn(e)),new gu(nn(e.g),e.h);if(30<t.g.length){if(pr(t)||pr(e))throw Error("slowDivide_ only works with positive integers.");for(var n=H0,r=e;0>=r.X(t);)n=Rx(n),r=Rx(r);var i=va(n,1),o=va(r,1);for(r=va(r,2),n=va(n,2);!Li(r);){var s=o.add(r);0>=s.X(t)&&(i=i.add(n),o=s),r=va(r,1),n=va(n,1)}return e=pp(t,i.R(e)),new gu(i,e)}for(i=tl;0<=t.X(e);){for(n=Math.max(1,Math.floor(t.ea()/e.ea())),r=Math.ceil(Math.log(n)/Math.LN2),r=48>=r?1:Math.pow(2,r-48),o=ti(n),s=o.R(e);pr(s)||0<s.X(t);)n-=r,o=ti(n),s=o.R(e);Li(o)&&(o=H0),i=i.add(o),t=pp(t,s)}return new gu(i,t)}J.gb=function(t){return mp(this,t).h};J.and=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],r=0;r<e;r++)n[r]=this.D(r)&t.D(r);return new tt(n,this.h&t.h)};J.or=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],r=0;r<e;r++)n[r]=this.D(r)|t.D(r);return new tt(n,this.h|t.h)};J.xor=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],r=0;r<e;r++)n[r]=this.D(r)^t.D(r);return new tt(n,this.h^t.h)};function Rx(t){for(var e=t.g.length+1,n=[],r=0;r<e;r++)n[r]=t.D(r)<<1|t.D(r-1)>>>31;return new tt(n,t.h)}function va(t,e){var n=e>>5;e%=32;for(var r=t.g.length-n,i=[],o=0;o<r;o++)i[o]=0<e?t.D(o+n)>>>e|t.D(o+n+1)<<32-e:t.D(o+n);return new tt(i,t.h)}hp.prototype.createWebChannel=hp.prototype.g;er.prototype.send=er.prototype.u;er.prototype.open=er.prototype.m;er.prototype.close=er.prototype.close;bm.NO_ERROR=0;bm.TIMEOUT=8;bm.HTTP_ERROR=6;RD.COMPLETE="complete";kD.EventType=Ed;Ed.OPEN="a";Ed.CLOSE="b";Ed.ERROR="c";Ed.MESSAGE="d";Xt.prototype.listen=Xt.prototype.O;At.prototype.listenOnce=At.prototype.P;At.prototype.getLastError=At.prototype.Sa;At.prototype.getLastErrorCode=At.prototype.Ia;At.prototype.getStatus=At.prototype.da;At.prototype.getResponseJson=At.prototype.Wa;At.prototype.getResponseText=At.prototype.ja;At.prototype.send=At.prototype.ha;At.prototype.setWithCredentials=At.prototype.Oa;Ur.prototype.digest=Ur.prototype.l;Ur.prototype.reset=Ur.prototype.reset;Ur.prototype.update=Ur.prototype.j;tt.prototype.add=tt.prototype.add;tt.prototype.multiply=tt.prototype.R;tt.prototype.modulo=tt.prototype.gb;tt.prototype.compare=tt.prototype.X;tt.prototype.toNumber=tt.prototype.ea;tt.prototype.toString=tt.prototype.toString;tt.prototype.getBits=tt.prototype.D;tt.fromNumber=ti;tt.fromString=fO;var uG=function(){return new hp},cG=function(){return wm()},Av=bm,dG=RD,fG=oa,kx={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},Tf=kD,hG=At,pG=Ur,nl=tt;const Ax="@firebase/firestore";/** 1641 * @license 1642 * Copyright 2017 Google LLC 1643 * 1644 * Licensed under the Apache License, Version 2.0 (the "License");
1645 * you may not use this file except in compliance with the License. 1646 * You may obtain a copy of the License at 1647 * 1648 * http://www.apache.org/licenses/LICENSE-2.0 1649 * 1650 * Unless required by applicable law or agreed to in writing, software 1651 * distributed under the License is distributed on an "AS IS" BASIS, 1652 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1653 * See the License for the specific language governing permissions and 1654 * limitations under the License. 1655 */class mn{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}mn.UNAUTHENTICATED=new mn(null),mn.GOOGLE_CREDENTIALS=new mn("google-credentials-uid"),mn.FIRST_PARTY=new mn("first-party-uid"),mn.MOCK_USER=new mn("mock-user");/** 1656 * @license 1657 * Copyright 2017 Google LLC 1658 * 1659 * Licensed under the Apache License, Version 2.0 (the "License"); 1660 * you may not use this file except in compliance with the License. 1661 * You may obtain a copy of the License at 1662 * 1663 * http://www.apache.org/licenses/LICENSE-2.0 1664 * 1665 * Unless required by applicable law or agreed to in writing, software 1666 * distributed under the License is distributed on an "AS IS" BASIS, 1667 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1668 * See the License for the specific language governing permissions and 1669 * limitations under the License. 1670 */let Ul="10.5.0";/** 1671 * @license 1672 * Copyright 2017 Google LLC 1673 * 1674 * Licensed under the Apache License, Version 2.0 (the "License"); 1675 * you may not use this file except in compliance with the License. 1676 * You may obtain a copy of the License at 1677 * 1678 * http://www.apache.org/licenses/LICENSE-2.0 1679 * 1680 * Unless required by applicable law or agreed to in writing, software 1681 * distributed under the License is distributed on an "AS IS" BASIS, 1682 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1683 * See the License for the specific language governing permissions and 1684 * limitations under the License. 1685 */const Ks=new aE("@firebase/firestore");function vu(){return Ks.logLevel}function ie(t,...e){if(Ks.logLevel<=Ue.DEBUG){const n=e.map(jE);Ks.debug(`Firestore (${Ul}): ${t}`,...n)}}function Ui(t,...e){if(Ks.logLevel<=Ue.ERROR){const n=e.map(jE);Ks.error(`Firestore (${Ul}): ${t}`,...n)}}function yl(t,...e){if(Ks.logLevel<=Ue.WARN){const n=e.map(jE);Ks.warn(`Firestore (${Ul}): ${t}`,...n)}}function jE(t){if(typeof t=="string")return t;try{/** 1686* @license 1687* Copyright 2020 Google LLC 1688* 1689* Licensed under the Apache License, Version 2.0 (the "License"); 1690* you may not use this file except in compliance with the License. 1691* You may obtain a copy of the License at 1692* 1693* http://www.apache.org/licenses/LICENSE-2.0 1694* 1695* Unless required by applicable law or agreed to in writing, software 1696* distributed under the License is distributed on an "AS IS" BASIS, 1697* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1698* See the License for the specific language governing permissions and 1699* limitations under the License. 1700*/return function(n){return JSON.stringify(n)}(t)}catch{return t}}/** 1701 * @license 1702 * Copyright 2017 Google LLC 1703 * 1704 * Licensed under the Apache License, Version 2.0 (the "License"); 1705 * you may not use this file except in compliance with the License. 1706 * You may obtain a copy of the License at 1707 * 1708 * http://www.apache.org/licenses/LICENSE-2.0 1709 * 1710 * Unless required by applicable law or agreed to in writing, software 1711 * distributed under the License is distributed on an "AS IS" BASIS, 1712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1713 * See the License for the specific language governing permissions and 1714 * limitations under the License. 1715 */function we(t="Unexpected state"){const e=`FIRESTORE (${Ul}) INTERNAL ASSERTION FAILED: `+t;throw Ui(e),new Error(e)}function yt(t,e){t||we()}function Le(t,e){return t}/** 1716 * @license 1717 * Copyright 2017 Google LLC 1718 * 1719 * Licensed under the Apache License, Version 2.0 (the "License"); 1720 * you may not use this file except in compliance with the License. 1721 * You may obtain a copy of the License at 1722 * 1723 * http://www.apache.org/licenses/LICENSE-2.0 1724 * 1725 * Unless required by applicable law or agreed to in writing, softw
1725are 1726 * distributed under the License is distributed on an "AS IS" BASIS, 1727 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1728 * See the License for the specific language governing permissions and 1729 * limitations under the License. 1730 */const H={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class oe extends Gi{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** 1731 * @license 1732 * Copyright 2017 Google LLC 1733 * 1734 * Licensed under the Apache License, Version 2.0 (the "License"); 1735 * you may not use this file except in compliance with the License. 1736 * You may obtain a copy of the License at 1737 * 1738 * http://www.apache.org/licenses/LICENSE-2.0 1739 * 1740 * Unless required by applicable law or agreed to in writing, software 1741 * distributed under the License is distributed on an "AS IS" BASIS, 1742 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1743 * See the License for the specific language governing permissions and 1744 * limitations under the License. 1745 */class Ao{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}/** 1746 * @license 1747 * Copyright 2017 Google LLC 1748 * 1749 * Licensed under the Apache License, Version 2.0 (the "License"); 1750 * you may not use this file except in compliance with the License. 1751 * You may obtain a copy of the License at 1752 * 1753 * http://www.apache.org/licenses/LICENSE-2.0 1754 * 1755 * Unless required by applicable law or agreed to in writing, software 1756 * distributed under the License is distributed on an "AS IS" BASIS, 1757 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1758 * See the License for the specific language governing permissions and 1759 * limitations under the License. 1760 */class hO{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class mG{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(mn.UNAUTHENTICATED))}shutdown(){}}class gG{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class vG{constructor(e){this.t=e,this.currentUser=mn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){let r=this.i;const i=l=>this.i!==r?(r=this.i,n(l)):Promise.resolve();let o=new Ao;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new Ao,e.enqueueRetryable(()=>i(this.currentUser))};const s=()=>{const l=o;e.enqueueRetryable(async()=>{await l.promise,await i(this.currentUser)})},a=l=>{ie("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.auth.addAuthTokenListener(this.o),s()};this.t.onInit(l=>a(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?a(l):(ie("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new Ao)}},0),s()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(ie("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(yt(typeof r.accessToken=="string"),new hO(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return yt(e===null||typeof e=="string"),new mn(e)}}class yG{constructor(e,n,r){this.l=e,this.h=n,this.P=r,this.type="FirstParty",this.user=mn.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class wG{constructor(e,n,r){this.l=e,this.h=n,this.P=r}getToken(){return Promise.resolve(new yG(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable(()=>n(mn.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class bG{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class EG{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){const r=o=>{o.error!=null&&ie("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${o.error.message}`);const s=o.token!==this.R;return this.R=o.token,ie("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?n(o.token):Promise.resolve()};this.o=o=>{e.enqueueRetryable(()=>r(o))};const i=o=>{ie("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=o,this.appCheck.addTokenListener(this.o)};this.A.onInit(o=>i(o)),setTimeout(()=>{if(!this.appCheck){const o=this.A.getImmediate({optional:!0});o?i(o):ie("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(yt(typeof n.token=="string"),this.R=n.token,new bG(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}/** 1761 * @license 1762 * Copyright 2020 Google LLC 1763 * 1764 * Licensed under the Apache License, Version 2.0 (the "License");
1765 * you may not use this file except in compliance with the License. 1766 * You may obtain a copy of the License at 1767 * 1768 * http://www.apache.org/licenses/LICENSE-2.0 1769 * 1770 * Unless required by applicable law or agreed to in writing, software 1771 * distributed under the License is distributed on an "AS IS" BASIS, 1772 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1773 * See the License for the specific language governing permissions and 1774 * limitations under the License. 1775 */function _G(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}/** 1776 * @license 1777 * Copyright 2017 Google LLC 1778 * 1779 * Licensed under the Apache License, Version 2.0 (the "License"); 1780 * you may not use this file except in compliance with the License. 1781 * You may obtain a copy of the License at 1782 * 1783 * http://www.apache.org/licenses/LICENSE-2.0 1784 * 1785 * Unless required by applicable law or agreed to in writing, software 1786 * distributed under the License is distributed on an "AS IS" BASIS, 1787 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1788 * See the License for the specific language governing permissions and 1789 * limitations under the License. 1790 */class pO{static V(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=Math.floor(256/e.length)*e.length;let r="";for(;r.length<20;){const i=_G(40);for(let o=0;o<i.length;++o)r.length<20&&i[o]<n&&(r+=e.charAt(i[o]%e.length))}return r}}function Ye(t,e){return t<e?-1:t>e?1:0}function wl(t,e,n){return t.length===e.length&&t.every((r,i)=>n(r,e[i]))}/** 1791 * @license 1792 * Copyright 2017 Google LLC 1793 * 1794 * Licensed under the Apache License, Version 2.0 (the "License"); 1795 * you may not use this file except in compliance with the License. 1796 * You may obtain a copy of the License at 1797 * 1798 * http://www.apache.org/licenses/LICENSE-2.0 1799 * 1800 * Unless required by applicable law or agreed to in writing, software 1801 * distributed under the License is distributed on an "AS IS" BASIS, 1802 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1803 * See the License for the specific language governing permissions and 1804 * limitations under the License. 1805 */class Ht{constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new oe(H.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new oe(H.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<-62135596800)throw new oe(H.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new oe(H.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return Ht.fromMillis(Date.now())}static fromDate(e){return Ht.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*n));return new Ht(n,r)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Ye(this.nanoseconds,e.nanoseconds):Ye(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}/** 1806 * @license 1807 * Copyright 2017 Google LLC 1808 * 1809 * Licensed under the Apache License, Version 2.0 (the "License"); 1810 * you may not use this file except in compliance with the License. 1811 * You may obtain a copy of the License at 1812 * 1813 * http://www.apache.org/licenses/LICENSE-2.0 1814 * 1815 * Unless required by applicable law or agreed to in writing, software 1816 * distributed under the License is distributed on an "AS IS" BASIS, 1817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1818 * See the License for the specific language governing permissions and 1819 * limitations under the License. 1820 */class Se{constructor(e){this.timestamp=e}static fromTimestamp(e){return new Se(e)}static min(){return new Se(new Ht(0,0))}static max(){return new Se(new Ht(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/** 1821 * @license 1822 * Copyright 2017 Google LLC 1823 * 1824 * Licensed under the Apache License, Version 2.0 (the "License");
1825 * you may not use this file except in compliance with the License. 1826 * You may obtain a copy of the License at 1827 * 1828 * http://www.apache.org/licenses/LICENSE-2.0 1829 * 1830 * Unless required by applicable law or agreed to in writing, software 1831 * distributed under the License is distributed on an "AS IS" BASIS, 1832 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1833 * See the License for the specific language governing permissions and 1834 * limitations under the License. 1835 */class jc{constructor(e,n,r){n===void 0?n=0:n>e.length&&we(),r===void 0?r=e.length-n:r>e.length-n&&we(),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return jc.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof jc?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let i=0;i<r;i++){const o=e.get(i),s=n.get(i);if(o<s)return-1;if(o>s)return 1}return e.length<n.length?-1:e.length>n.length?1:0}}class gt extends jc{construct(e,n,r){return new gt(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new oe(H.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter(i=>i.length>0))}return new gt(n)}static emptyPath(){return new gt([])}}const SG=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class rn extends jc{construct(e,n,r){return new rn(e,n,r)}static isValidIdentifier(e){return SG.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),rn.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)==="__name__"}static keyField(){return new rn(["__name__"])}static fromServerFormat(e){const n=[];let r="",i=0;const o=()=>{if(r.length===0)throw new oe(H.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let s=!1;for(;i<e.length;){const a=e[i];if(a==="\\"){if(i+1===e.length)throw new oe(H.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[i+1];if(l!=="\\"&&l!=="."&&l!=="`")throw new oe(H.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else a==="`"?(s=!s,i++):a!=="."||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new oe(H.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new rn(n)}static emptyPath(){return new rn([])}}/** 1836 * @license 1837 * Copyright 2017 Google LLC 1838 * 1839 * Licensed under the Apache License, Version 2.0 (the "License"); 1840 * you may not use this file except in compliance with the License. 1841 * You may obtain a copy of the License at 1842 * 1843 * http://www.apache.org/licenses/LICENSE-2.0 1844 * 1845 * Unless required by applicable law or agreed to in writing, software 1846 * distributed under the License is distributed on an "AS IS" BASIS, 1847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1848 * See the License for the specific language governing permissions and 1849 * limitations under the License. 1850 */class ce{constructor(e){this.path=e}static fromPath(e){return new ce(gt.fromString(e))}static fromName(e){return new ce(gt.fromString(e).popFirst(5))}static empty(){return new ce(gt.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&>.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return gt.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ce(new gt(e.slice()))}}function CG(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,i=Se.fromTimestamp(r===1e9?new Ht(n+1,0):new Ht(n,r));return new zo(i,ce.empty(),e)}function xG(t){return new zo(t.readTime,t.key,-1)}class zo{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new zo(Se.min(),ce.empty(),-1)}static max(){return new zo(Se.max(),ce.empty(),-1)}}function TG(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=ce.comparator(t.documentKey,e.documentKey),n!==0?n:Ye(t.largestBatchId,e.largestBatchId))}/** 1851 * @license 1852 * Copyright 2020 Google LLC 1853 * 1854 * Licensed under the Apache License, Version 2.0 (the "License");
1855 * you may not use this file except in compliance with the License. 1856 * You may obtain a copy of the License at 1857 * 1858 * http://www.apache.org/licenses/LICENSE-2.0 1859 * 1860 * Unless required by applicable law or agreed to in writing, software 1861 * distributed under the License is distributed on an "AS IS" BASIS, 1862 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1863 * See the License for the specific language governing permissions and 1864 * limitations under the License. 1865 */const PG="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class IG{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/** 1866 * @license 1867 * Copyright 2017 Google LLC 1868 * 1869 * Licensed under the Apache License, Version 2.0 (the "License"); 1870 * you may not use this file except in compliance with the License. 1871 * You may obtain a copy of the License at 1872 * 1873 * http://www.apache.org/licenses/LICENSE-2.0 1874 * 1875 * Unless required by applicable law or agreed to in writing, software 1876 * distributed under the License is distributed on an "AS IS" BASIS, 1877 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1878 * See the License for the specific language governing permissions and 1879 * limitations under the License. 1880 */async function Td(t){if(t.code!==H.FAILED_PRECONDITION||t.message!==PG)throw t;ie("LocalStore","Unexpectedly lost primary lease")}/** 1881 * @license 1882 * Copyright 2017 Google LLC 1883 * 1884 * Licensed under the Apache License, Version 2.0 (the "License"); 1885 * you may not use this file except in compliance with the License. 1886 * You may obtain a copy of the License at 1887 * 1888 * http://www.apache.org/licenses/LICENSE-2.0 1889 * 1890 * Unless required by applicable law or agreed to in writing, software 1891 * distributed under the License is distributed on an "AS IS" BASIS, 1892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1893 * See the License for the specific language governing permissions and 1894 * limitations under the License. 1895 */class q{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)},n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)})}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&we(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new q((r,i)=>{this.nextCallback=o=>{this.wrapSuccess(e,o).next(r,i)},this.catchCallback=o=>{this.wrapFailure(n,o).next(r,i)}})}toPromise(){return new Promise((e,n)=>{this.next(e,n)})}wrapUserFunction(e){try{const n=e();return n instanceof q?n:q.resolve(n)}catch(n){return q.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction(()=>e(n)):q.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction(()=>e(n)):q.reject(n)}static resolve(e){return new q((n,r)=>{n(e)})}static reject(e){return new q((n,r)=>{r(e)})}static waitFor(e){return new q((n,r)=>{let i=0,o=0,s=!1;e.forEach(a=>{++i,a.next(()=>{++o,s&&o===i&&n()},l=>r(l))}),s=!0,o===i&&n()})}static or(e){let n=q.resolve(!1);for(const r of e)n=n.next(i=>i?q.resolve(i):r());return n}static forEach(e,n){const r=[];return e.forEach((i,o)=>{r.push(n.call(this,i,o))}),this.waitFor(r)}static mapArray(e,n){return new q((r,i)=>{const o=e.length,s=new Array(o);let a=0;for(let l=0;l<o;l++){const u=l;n(e[u]).next(c=>{s[u]=c,++a,a===o&&r(s)},c=>i(c))}})}static doWhile(e,n){return new q((r,i)=>{const o=()=>{e()===!0?n().next(()=>{o()},i):r()};o()})}}function Pd(t){return t.name==="IndexedDbTransactionError"}/** 1896 * @license 1897 * Copyright 2018 Google LLC 1898 * 1899 * Licensed under the Apache License, Version 2.0 (the "License"); 1900 * you may not use this file except in compliance with the License. 1901 * You may obtain a copy of the License at 1902 * 1903 * http://www.apache.org/licenses/LICENSE-2.0 1904 * 1905 * Unless required by applicable law or agreed to in writing, softw
vendor: 6,848 bytes, lines 1905-1940
1905are 1906 * distributed under the License is distributed on an "AS IS" BASIS, 1907 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1908 * See the License for the specific language governing permissions and 1909 * limitations under the License. 1910 */class UE{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.oe(r),this._e=r=>n.writeSequenceNumber(r))}oe(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this._e&&this._e(e),e}}UE.ae=-1;function Lm(t){return t==null}function gp(t){return t===0&&1/t==-1/0}function LG(t){return typeof t=="number"&&Number.isInteger(t)&&!gp(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** 1911 * @license 1912 * Copyright 2017 Google LLC 1913 * 1914 * Licensed under the Apache License, Version 2.0 (the "License"); 1915 * you may not use this file except in compliance with the License. 1916 * You may obtain a copy of the License at 1917 * 1918 * http://www.apache.org/licenses/LICENSE-2.0 1919 * 1920 * Unless required by applicable law or agreed to in writing, software 1921 * distributed under the License is distributed on an "AS IS" BASIS, 1922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1923 * See the License for the specific language governing permissions and 1924 * limitations under the License. 1925 */function Mx(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function Bl(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function mO(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/** 1926 * @license 1927 * Copyright 2017 Google LLC 1928 * 1929 * Licensed under the Apache License, Version 2.0 (the "License"); 1930 * you may not use this file except in compliance with the License. 1931 * You may obtain a copy of the License at 1932 * 1933 * http://www.apache.org/licenses/LICENSE-2.0 1934 * 1935 * Unless required by applicable law or agreed to in writing, software 1936 * distributed under the License is distributed on an "AS IS" BASIS, 1937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1938 * See the License for the specific language governing permissions and 1939 * limitations under the License. 1940 */class It{constructor(e,n){this.comparator=e,this.root=n||tn.EMPTY}insert(e,n){return new It(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,tn.BLACK,null,null))}remove(e){return new It(this.comparator,this.root.remove(e,this.comparator).copy(null,null,tn.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(i===0)return n+r.left.size;i<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push(`${n}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Pf(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Pf(this.root,e,this.comparator,!1)}getReverseIterator(){return new Pf(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Pf(this.root,e,this.comparator,!0)}}class Pf{constructor(e,n,r,i){this.isReverse=i,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=n?r(e.key,n):1,n&&i&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(o===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class tn{constructor(e,n,r,i,o){this.key=e,this.value=n,this.color=r??tn.RED,this.left=i??tn.EMPTY,this.right=o??tn.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,i,o){return new tn(e??this.key,n??this.value,r??this.color,i??this.left,o??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,r){let i=this;const o=r(e,i.key);return i=o<0?i.copy(null,null,null,i.left.insert(e,n,r),null):o===0?i.copy(null,n,null,null,null):i.copy(null,null,null,null,i.right.insert(e,n,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return tn.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),n(e,i.key)===0){if(i.right.isEmpty())return tn.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,tn.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,tn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw we();const e=this.left.check();if(e!==this.right.check())throw we();return e+(this.isRed()?0:1)}}tn.EMPTY=null,tn.RED=!0,tn.BLACK=!1;
1940tn.EMPTY=new class{constructor(){this.size=0}get key(){throw we()}get value(){throw we()}get color(){throw we()}get left(){throw we()}get right(){throw we()}copy(e,n,r,i,o){return this}insert(e,n,r){return new tn(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** 1941 * @license 1942 * Copyright 2017 Google LLC 1943 * 1944 * Licensed under the Apache License, Version 2.0 (the "License"); 1945 * you may not use this file except in compliance with the License. 1946 * You may obtain a copy of the License at 1947 * 1948 * http://www.apache.org/licenses/LICENSE-2.0 1949 * 1950 * Unless required by applicable law or agreed to in writing, software 1951 * distributed under the License is distributed on an "AS IS" BASIS, 1952 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1953 * See the License for the specific language governing permissions and 1954 * limitations under the License. 1955 */class an{constructor(e){this.comparator=e,this.data=new It(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((n,r)=>(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;n(i.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new Dx(this.data.getIterator())}getIteratorFrom(e){return new Dx(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size<e.size&&(n=e,e=this),e.forEach(r=>{n=n.add(r)}),n}isEqual(e){if(!(e instanceof an)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const i=n.getNext().key,o=r.getNext().key;if(this.comparator(i,o)!==0)return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new an(this.comparator);return n.data=e,n}}class Dx{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** 1956 * @license 1957 * Copyright 2020 Google LLC 1958 * 1959 * Licensed under the Apache License, Version 2.0 (the "License"); 1960 * you may not use this file except in compliance with the License. 1961 * You may obtain a copy of the License at 1962 * 1963 * http://www.apache.org/licenses/LICENSE-2.0 1964 * 1965 * Unless required by applicable law or agreed to in writing, software 1966 * distributed under the License is distributed on an "AS IS" BASIS, 1967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1968 * See the License for the specific language governing permissions and 1969 * limitations under the License. 1970 */class Mr{constructor(e){this.fields=e,e.sort(rn.comparator)}static empty(){return new Mr([])}unionWith(e){let n=new an(rn.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new Mr(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return wl(this.fields,e.fields,(n,r)=>n.isEqual(r))}}/** 1971 * @license 1972 * Copyright 2023 Google LLC 1973 * 1974 * Licensed under the Apache License, Version 2.0 (the "License"); 1975 * you may not use this file except in compliance with the License. 1976 * You may obtain a copy of the License at 1977 * 1978 * http://www.apache.org/licenses/LICENSE-2.0 1979 * 1980 * Unless required by applicable law or agreed to in writing, software 1981 * distributed under the License is distributed on an "AS IS" BASIS, 1982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1983 * See the License for the specific language governing permissions and 1984 * limitations under the License.
1985 */class gO extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/** 1986 * @license 1987 * Copyright 2020 Google LLC 1988 * 1989 * Licensed under the Apache License, Version 2.0 (the "License"); 1990 * you may not use this file except in compliance with the License. 1991 * You may obtain a copy of the License at 1992 * 1993 * http://www.apache.org/licenses/LICENSE-2.0 1994 * 1995 * Unless required by applicable law or agreed to in writing, software 1996 * distributed under the License is distributed on an "AS IS" BASIS, 1997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1998 * See the License for the specific language governing permissions and 1999 * limitations under the License. 2000 */class Sn{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(i){try{return atob(i)}catch(o){throw typeof DOMException<"u"&&o instanceof DOMException?new gO("Invalid base64 string: "+o):o}}(e);return new Sn(n)}static fromUint8Array(e){const n=function(i){let o="";for(let s=0;s<i.length;++s)o+=String.fromCharCode(i[s]);return o}(e);return new Sn(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return function(n){return btoa(n)}(this.binaryString)}toUint8Array(){return function(n){const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Ye(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Sn.EMPTY_BYTE_STRING=new Sn("");const RG=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Wo(t){if(yt(!!t),typeof t=="string"){let e=0;const n=RG.exec(t);if(yt(!!n),n[1]){let i=n[1];i=(i+"000000000").substr(0,9),e=Number(i)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:Ft(t.seconds),nanos:Ft(t.nanos)}}function Ft(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function Gs(t){return typeof t=="string"?Sn.fromBase64String(t):Sn.fromUint8Array(t)}/** 2001 * @license 2002 * Copyright 2020 Google LLC 2003 * 2004 * Licensed under the Apache License, Version 2.0 (the "License"); 2005 * you may not use this file except in compliance with the License. 2006 * You may obtain a copy of the License at 2007 * 2008 * http://www.apache.org/licenses/LICENSE-2.0 2009 * 2010 * Unless required by applicable law or agreed to in writing, software 2011 * distributed under the License is distributed on an "AS IS" BASIS, 2012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2013 * See the License for the specific language governing permissions and 2014 * limitations under the License. 2015 */function BE(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="server_timestamp"}function zE(t){const e=t.mapValue.fields.__previous_value__;return BE(e)?zE(e):e}function Uc(t){const e=Wo(t.mapValue.fields.__local_write_time__.timestampValue);return new Ht(e.seconds,e.nanos)}/** 2016 * @license 2017 * Copyright 2017 Google LLC 2018 * 2019 * Licensed under the Apache License, Version 2.0 (the "License"); 2020 * you may not use this file except in compliance with the License. 2021 * You may obtain a copy of the License at 2022 * 2023 * http://www.apache.org/licenses/LICENSE-2.0 2024 * 2025 * Unless required by applicable law or agreed to in writing, software 2026 * distributed under the License is distributed on an "AS IS" BASIS, 2027 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2028 * See the License for the specific language governing permissions and 2029 * limitations under the License. 2030 */class kG{constructor(e,n,r,i,o,s,a,l,u){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=o,this.forceLongPolling=s,this.autoDetectLongPolling=a,this.longPollingOptions=l,this.useFetchStreams=u}}class Bc{constructor(e,n){this.projectId=e,this.database=n||"(default)"}static empty(){return new Bc("","")}get isDefaultDatabase(){return this.database==="(default)"}isEqual(e){return e instanceof Bc&&e.projectId===this.projectId&&e.database===this.database}}/** 2031 * @license 2032 * Copyright 2020 Google LLC 2033 * 2034 * Licensed under the Apache License, Version 2.0 (the "License");
2035 * you may not use this file except in compliance with the License. 2036 * You may obtain a copy of the License at 2037 * 2038 * http://www.apache.org/licenses/LICENSE-2.0 2039 * 2040 * Unless required by applicable law or agreed to in writing, software 2041 * distributed under the License is distributed on an "AS IS" BASIS, 2042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2043 * See the License for the specific language governing permissions and 2044 * limitations under the License. 2045 */const If={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function qs(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?BE(t)?4:AG(t)?9007199254740991:10:we()}function pi(t,e){if(t===e)return!0;const n=qs(t);if(n!==qs(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Uc(t).isEqual(Uc(e));case 3:return function(i,o){if(typeof i.timestampValue=="string"&&typeof o.timestampValue=="string"&&i.timestampValue.length===o.timestampValue.length)return i.timestampValue===o.timestampValue;const s=Wo(i.timestampValue),a=Wo(o.timestampValue);return s.seconds===a.seconds&&s.nanos===a.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(i,o){return Gs(i.bytesValue).isEqual(Gs(o.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(i,o){return Ft(i.geoPointValue.latitude)===Ft(o.geoPointValue.latitude)&&Ft(i.geoPointValue.longitude)===Ft(o.geoPointValue.longitude)}(t,e);case 2:return function(i,o){if("integerValue"in i&&"integerValue"in o)return Ft(i.integerValue)===Ft(o.integerValue);if("doubleValue"in i&&"doubleValue"in o){const s=Ft(i.doubleValue),a=Ft(o.doubleValue);return s===a?gp(s)===gp(a):isNaN(s)&&isNaN(a)}return!1}(t,e);case 9:return wl(t.arrayValue.values||[],e.arrayValue.values||[],pi);case 10:return function(i,o){const s=i.mapValue.fields||{},a=o.mapValue.fields||{};if(Mx(s)!==Mx(a))return!1;for(const l in s)if(s.hasOwnProperty(l)&&(a[l]===void 0||!pi(s[l],a[l])))return!1;return!0}(t,e);default:return we()}}function zc(t,e){return(t.values||[]).find(n=>pi(n,e))!==void 0}function bl(t,e){if(t===e)return 0;const n=qs(t),r=qs(e);if(n!==r)return Ye(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Ye(t.booleanValue,e.booleanValue);case 2:return function(o,s){const a=Ft(o.integerValue||o.doubleValue),l=Ft(s.integerValue||s.doubleValue);return a<l?-1:a>l?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(t,e);case 3:return Ox(t.timestampValue,e.timestampValue);case 4:return Ox(Uc(t),Uc(e));case 5:return Ye(t.stringValue,e.stringValue);case 6:return function(o,s){const a=Gs(o),l=Gs(s);return a.compareTo(l)}(t.bytesValue,e.bytesValue);case 7:return function(o,s){const a=o.split("/"),l=s.split("/");for(let u=0;u<a.length&&u<l.length;u++){const c=Ye(a[u],l[u]);if(c!==0)return c}return Ye(a.length,l.length)}(t.referenceValue,e.referenceValue);case 8:return function(o,s){const a=Ye(Ft(o.latitude),Ft(s.latitude));return a!==0?a:Ye(Ft(o.longitude),Ft(s.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(o,s){const a=o.values||[],l=s.values||[];for(let u=0;u<a.length&&u<l.length;++u){const c=bl(a[u],l[u]);if(c)return c}return Ye(a.length,l.length)}(t.arrayValue,e.arrayValue);case 10:return function(o,s){if(o===If.mapValue&&s===If.mapValue)return 0;if(o===If.mapValue)return 1;if(s===If.mapValue)return-1;const a=o.fields||{},l=Object.keys(a),u=s.fields||{},c=Object.keys(u);l.sort(),c.sort();for(let d=0;d<l.length&&d<c.length;++d){const h=Ye(l[d],c[d]);if(h!==0)return h;const p=bl(a[l[d]],u[c[d]]);if(p!==0)return p}return Ye(l.length,c.length)}(t.mapValue,e.mapValue);default:throw we()}}function Ox(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return Ye(t,e);const n=Wo(t),r=Wo(e),i=Ye(n.seconds,r.seconds);return i!==0?i:Ye(n.nanos,r.nanos)}function El(t){return K0(t)}function K0(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(n){const r=Wo(n);return`time(${r.seconds},${r.nanos})`}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?function(n){return Gs(n).toBase64()}(t.bytesValue):"referenceValue"in t?function(n){return ce.fromName(n).toString()}(t.referenceValue):"geoPointValue"in t?function(n){return`geo(${n.latitude},${n.longitude})`}(t.geoPointValue):"arrayValue"in t?function(n){let r="[",i=!0;for(const o of n.values||[])i?i=!1:r+=",",r+=K0(o);return r+"]"}(t.arrayValue):"mapValue"in t?function(n){const r=Object.keys(n.fields||{}).sort();let i="{",o=!0;for(const s of r)o?o=!1:i+=",",i+=`${s}:${K0(n.fields[s])}`;return i+"}"}(t.mapValue):we()}function Nx(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function G0(t){return!!t&&"integerValue"in t}function WE(t){return!!t&&"arrayValue"in t}function $x(t){return!!t&&"nullValue"in t}function Vx(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function th(t){return!!t&&"mapValue"in t}function Zu(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return Bl(t.mapValue.fields,(n,r)=>e.mapValue.fields[n]=Zu(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=Zu(t.arrayValue.values[n]);return e}return Object.assign({},t)}function AG(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** 2046 * @license 2047 * Copyright 2017 Google LLC 2048 * 2049 * Licensed under the Apache License, Version 2.0 (the "License");
2050 * you may not use this file except in compliance with the License. 2051 * You may obtain a copy of the License at 2052 * 2053 * http://www.apache.org/licenses/LICENSE-2.0 2054 * 2055 * Unless required by applicable law or agreed to in writing, software 2056 * distributed under the License is distributed on an "AS IS" BASIS, 2057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2058 * See the License for the specific language governing permissions and 2059 * limitations under the License. 2060 */class mr{constructor(e){this.value=e}static empty(){return new mr({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!th(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=Zu(n)}setAll(e){let n=rn.emptyPath(),r={},i=[];e.forEach((s,a)=>{if(!n.isImmediateParentOf(a)){const l=this.getFieldsMap(n);this.applyChanges(l,r,i),r={},i=[],n=a.popLast()}s?r[a.lastSegment()]=Zu(s):i.push(a.lastSegment())});const o=this.getFieldsMap(n);this.applyChanges(o,r,i)}delete(e){const n=this.field(e.popLast());th(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return pi(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let i=n.mapValue.fields[e.get(r)];th(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=i),n=i}return n.mapValue.fields}applyChanges(e,n,r){Bl(n,(i,o)=>e[i]=o);for(const i of r)delete e[i]}clone(){return new mr(Zu(this.value))}}function vO(t){const e=[];return Bl(t.fields,(n,r)=>{const i=new rn([n]);if(th(r)){const o=vO(r.mapValue).fields;
vendor: 4,180 bytes, lines 2060-2100
2060if(o.length===0)e.push(i);else for(const s of o)e.push(i.child(s))}else e.push(i)}),new Mr(e)}/** 2061 * @license 2062 * Copyright 2017 Google LLC 2063 * 2064 * Licensed under the Apache License, Version 2.0 (the "License"); 2065 * you may not use this file except in compliance with the License. 2066 * You may obtain a copy of the License at 2067 * 2068 * http://www.apache.org/licenses/LICENSE-2.0 2069 * 2070 * Unless required by applicable law or agreed to in writing, software 2071 * distributed under the License is distributed on an "AS IS" BASIS, 2072 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2073 * See the License for the specific language governing permissions and 2074 * limitations under the License. 2075 */class vn{constructor(e,n,r,i,o,s,a){this.key=e,this.documentType=n,this.version=r,this.readTime=i,this.createTime=o,this.data=s,this.documentState=a}static newInvalidDocument(e){return new vn(e,0,Se.min(),Se.min(),Se.min(),mr.empty(),0)}static newFoundDocument(e,n,r,i){return new vn(e,1,n,Se.min(),r,i,0)}static newNoDocument(e,n){return new vn(e,2,n,Se.min(),Se.min(),mr.empty(),0)}static newUnknownDocument(e,n){return new vn(e,3,n,Se.min(),Se.min(),mr.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(Se.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=mr.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=mr.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Se.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof vn&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new vn(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/** 2076 * @license 2077 * Copyright 2022 Google LLC 2078 * 2079 * Licensed under the Apache License, Version 2.0 (the "License"); 2080 * you may not use this file except in compliance with the License. 2081 * You may obtain a copy of the License at 2082 * 2083 * http://www.apache.org/licenses/LICENSE-2.0 2084 * 2085 * Unless required by applicable law or agreed to in writing, software 2086 * distributed under the License is distributed on an "AS IS" BASIS, 2087 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2088 * See the License for the specific language governing permissions and 2089 * limitations under the License. 2090 */class vp{constructor(e,n){this.position=e,this.inclusive=n}}function Fx(t,e,n){let r=0;for(let i=0;i<t.position.length;i++){const o=e[i],s=t.position[i];if(o.field.isKeyField()?r=ce.comparator(ce.fromName(s.referenceValue),n.key):r=bl(s,n.data.field(o.field)),o.dir==="desc"&&(r*=-1),r!==0)break}return r}function jx(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!pi(t.position[n],e.position[n]))return!1;return!0}/** 2091 * @license 2092 * Copyright 2022 Google LLC 2093 * 2094 * Licensed under the Apache License, Version 2.0 (the "License"); 2095 * you may not use this file except in compliance with the License. 2096 * You may obtain a copy of the License at 2097 * 2098 * http://www.apache.org/licenses/LICENSE-2.0 2099 * 2100 * Unless required by applicable law or agreed to in writing, softw
2100are 2101 * distributed under the License is distributed on an "AS IS" BASIS, 2102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2103 * See the License for the specific language governing permissions and 2104 * limitations under the License. 2105 */class yp{constructor(e,n="asc"){this.field=e,this.dir=n}}function MG(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/** 2106 * @license 2107 * Copyright 2022 Google LLC 2108 * 2109 * Licensed under the Apache License, Version 2.0 (the "License"); 2110 * you may not use this file except in compliance with the License. 2111 * You may obtain a copy of the License at 2112 * 2113 * http://www.apache.org/licenses/LICENSE-2.0 2114 * 2115 * Unless required by applicable law or agreed to in writing, software 2116 * distributed under the License is distributed on an "AS IS" BASIS, 2117 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2118 * See the License for the specific language governing permissions and 2119 * limitations under the License. 2120 */class yO{}class Ut extends yO{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,r):new OG(e,n,r):n==="array-contains"?new VG(e,r):n==="in"?new FG(e,r):n==="not-in"?new jG(e,r):n==="array-contains-any"?new UG(e,r):new Ut(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new NG(e,r):new $G(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&this.matchesComparison(bl(n,this.value)):n!==null&&qs(this.value)===qs(n)&&this.matchesComparison(bl(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return we()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Br extends yO{constructor(e,n){super(),this.filters=e,this.op=n,this.ce=null}static create(e,n){return new Br(e,n)}matches(e){return wO(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.ce!==null||(this.ce=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.ce}getFilters(){return Object.assign([],this.filters)}}function wO(t){return t.op==="and"}function bO(t){return DG(t)&&wO(t)}function DG(t){for(const e of t.filters)if(e instanceof Br)return!1;return!0}function q0(t){if(t instanceof Ut)return t.field.canonicalString()+t.op.toString()+El(t.value);if(bO(t))return t.filters.map(e=>q0(e)).join(",");{const e=t.filters.map(n=>q0(n)).join(",");return`${t.op}(${e})`}}function EO(t,e){return t instanceof Ut?function(r,i){return i instanceof Ut&&r.op===i.op&&r.field.isEqual(i.field)&&pi(r.value,i.value)}(t,e):t instanceof Br?function(r,i){return i instanceof Br&&r.op===i.op&&r.filters.length===i.filters.length?r.filters.reduce((o,s,a)=>o&&EO(s,i.filters[a]),!0):!1}(t,e):void we()}function _O(t){return t instanceof Ut?function(n){return`${n.field.canonicalString()} ${n.op} ${El(n.value)}`}(t):t instanceof Br?function(n){return n.op.toString()+" {"+n.getFilters().map(_O).join(" ,")+"}"}(t):"Filter"}class OG extends Ut{constructor(e,n,r){super(e,n,r),this.key=ce.fromName(r.referenceValue)}matches(e){const n=ce.comparator(e.key,this.key);return this.matchesComparison(n)}}class NG extends Ut{constructor(e,n){super(e,"in",n),this.keys=SO("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class $G extends Ut{constructor(e,n){super(e,"not-in",n),this.keys=SO("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function SO(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map(r=>ce.fromName(r.referenceValue))}class VG extends Ut{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return WE(n)&&zc(n.arrayValue,this.value)}}class FG extends Ut{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&zc(this.value.arrayValue,n)}}class jG extends Ut{constructor(e,n){super(e,"not-in",n)}matches(e){if(zc(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!zc(this.value.arrayValue,n)}}class UG extends Ut{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!WE(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>zc(this.value.arrayValue,r))}}/** 2121 * @license 2122 * Copyright 2019 Google LLC 2123 * 2124 * Licensed under the Apache License, Version 2.0 (the "License");
2125 * you may not use this file except in compliance with the License. 2126 * You may obtain a copy of the License at 2127 * 2128 * http://www.apache.org/licenses/LICENSE-2.0 2129 * 2130 * Unless required by applicable law or agreed to in writing, software 2131 * distributed under the License is distributed on an "AS IS" BASIS, 2132 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2133 * See the License for the specific language governing permissions and 2134 * limitations under the License. 2135 */class BG{constructor(e,n=null,r=[],i=[],o=null,s=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=i,this.limit=o,this.startAt=s,this.endAt=a,this.le=null}}function Ux(t,e=null,n=[],r=[],i=null,o=null,s=null){return new BG(t,e,n,r,i,o,s)}function HE(t){const e=Le(t);if(e.le===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(r=>q0(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>function(o){return o.field.canonicalString()+o.dir}(r)).join(","),Lm(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>El(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>El(r)).join(",")),e.le=n}return e.le}function KE(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!MG(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!EO(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!jx(t.startAt,e.startAt)&&jx(t.endAt,e.endAt)}function Q0(t){return ce.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}/** 2136 * @license 2137 * Copyright 2017 Google LLC 2138 * 2139 * Licensed under the Apache License, Version 2.0 (the "License"); 2140 * you may not use this file except in compliance with the License. 2141 * You may obtain a copy of the License at 2142 * 2143 * http://www.apache.org/licenses/LICENSE-2.0 2144 * 2145 * Unless required by applicable law or agreed to in writing, software 2146 * distributed under the License is distributed on an "AS IS" BASIS, 2147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2148 * See the License for the specific language governing permissions and 2149 * limitations under the License. 2150 */class Id{constructor(e,n=null,r=[],i=[],o=null,s="F",a=null,l=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=i,this.limit=o,this.limitType=s,this.startAt=a,this.endAt=l,this.he=null,this.Pe=null,this.Ie=null,this.startAt,this.endAt}}function zG(t,e,n,r,i,o,s,a){return new Id(t,e,n,r,i,o,s,a)}function CO(t){return new Id(t)}function Bx(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function xO(t){return t.collectionGroup!==null}function Ju(t){const e=Le(t);if(e.he===null){e.he=[];const n=new Set;for(const o of e.explicitOrderBy)e.he.push(o),n.add(o.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(s){let a=new an(rn.comparator);return s.filters.forEach(l=>{l.getFlattenedFilters().forEach(u=>{u.isInequality()&&(a=a.add(u.field))})}),a})(e).forEach(o=>{n.has(o.canonicalString())||o.isKeyField()||e.he.push(new yp(o,r))}),n.has(rn.keyField().canonicalString())||e.he.push(new yp(rn.keyField(),r))}return e.he}function ui(t){const e=Le(t);return e.Pe||(e.Pe=WG(e,Ju(t))),e.Pe}function WG(t,e){if(t.limitType==="F")return Ux(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(i=>{const o=i.dir==="desc"?"asc":"desc";return new yp(i.field,o)});const n=t.endAt?new vp(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new vp(t.startAt.position,t.startAt.inclusive):null;return Ux(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function Y0(t,e){const n=t.filters.concat([e]);return new Id(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function X0(t,e,n){return new Id(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Rm(t,e){return KE(ui(t),ui(e))&&t.limitType===e.limitType}function TO(t){return`${HE(ui(t))}|lt:${t.limitType}`}function _a(t){return`Query(target=${function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map(i=>_O(i)).join(", ")}]`),Lm(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map(i=>function(s){return`${s.field.canonicalString()} (${s.dir})`}(i)).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(i=>El(i)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(i=>El(i)).join(",")),`Target(${r})`}(ui(t))}; limitType=${t.limitType})`}function km(t,e){return e.isFoundDocument()&&function(r,i){const o=i.key.path;return r.collectionGroup!==null?i.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(o):ce.isDocumentKey(r.path)?r.path.isEqual(o):r.path.isImmediateParentOf(o)}(t,e)&&function(r,i){for(const o of Ju(r))if(!o.field.isKeyField()&&i.data.field(o.field)===null)return!1;return!0}(t,e)&&function(r,i){for(const o of r.filters)if(!o.matches(i))return!1;return!0}(t,e)&&function(r,i){return!(r.startAt&&!function(s,a,l){const u=Fx(s,a,l);return s.inclusive?u<=0:u<0}(r.startAt,Ju(r),i)||r.endAt&&!function(s,a,l){const u=Fx(s,a,l);return s.inclusive?u>=0:u>0}(r.endAt,Ju(r),i))}(t,e)}function HG(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function PO(t){return(e,n)=>{let r=!1;for(const i of Ju(t)){const o=KG(i,e,n);if(o!==0)return o;r=r||i.field.isKeyField()}return 0}}function KG(t,e,n){const r=t.field.isKeyField()?ce.comparator(e.key,n.key):function(o,s,a){const l=s.data.field(o),u=a.data.field(o);return l!==null&&u!==null?bl(l,u):we()}
2150(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return we()}}/** 2151 * @license 2152 * Copyright 2017 Google LLC 2153 * 2154 * Licensed under the Apache License, Version 2.0 (the "License"); 2155 * you may not use this file except in compliance with the License. 2156 * You may obtain a copy of the License at 2157 * 2158 * http://www.apache.org/licenses/LICENSE-2.0 2159 * 2160 * Unless required by applicable law or agreed to in writing, software 2161 * distributed under the License is distributed on an "AS IS" BASIS, 2162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2163 * See the License for the specific language governing permissions and 2164 * limitations under the License. 2165 */class zl{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[i,o]of r)if(this.equalsFn(i,e))return o}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),i=this.inner[r];if(i===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let o=0;o<i.length;o++)if(this.equalsFn(i[o][0],e))return void(i[o]=[e,n]);i.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return r.length===1?delete this.inner[n]:r.splice(i,1),this.innerSize--,!0;return!1}forEach(e){Bl(this.inner,(n,r)=>{for(const[i,o]of r)e(i,o)})}isEmpty(){return mO(this.inner)}size(){return this.innerSize}}/** 2166 * @license 2167 * Copyright 2017 Google LLC 2168 * 2169 * Licensed under the Apache License, Version 2.0 (the "License"); 2170 * you may not use this file except in compliance with the License. 2171 * You may obtain a copy of the License at 2172 * 2173 * http://www.apache.org/licenses/LICENSE-2.0 2174 * 2175 * Unless required by applicable law or agreed to in writing, software 2176 * distributed under the License is distributed on an "AS IS" BASIS, 2177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2178 * See the License for the specific language governing permissions and 2179 * limitations under the License. 2180 */const GG=new It(ce.comparator);function Bi(){return GG}const IO=new It(ce.comparator);function Mu(...t){let e=IO;for(const n of t)e=e.insert(n.key,n);return e}function LO(t){let e=IO;return t.forEach((n,r)=>e=e.insert(n,r.overlayedDocument)),e}function xs(){return ec()}function RO(){return ec()}function ec(){return new zl(t=>t.toString(),(t,e)=>t.isEqual(e))}const qG=new It(ce.comparator),QG=new an(ce.comparator);function Fe(...t){let e=QG;for(const n of t)e=e.add(n);return e}const YG=new an(Ye);function XG(){return YG}/** 2181 * @license 2182 * Copyright 2020 Google LLC 2183 * 2184 * Licensed under the Apache License, Version 2.0 (the "License"); 2185 * you may not use this file except in compliance with the License. 2186 * You may obtain a copy of the License at 2187 * 2188 * http://www.apache.org/licenses/LICENSE-2.0 2189 * 2190 * Unless required by applicable law or agreed to in writing, software 2191 * distributed under the License is distributed on an "AS IS" BASIS, 2192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2193 * See the License for the specific language governing permissions and 2194 * limitations under the License. 2195 */function kO(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:gp(e)?"-0":e}}function AO(t){return{integerValue:""+t}}function ZG(t,e){return LG(e)?AO(e):kO(t,e)}/** 2196 * @license 2197 * Copyright 2018 Google LLC 2198 * 2199 * Licensed under the Apache License, Version 2.0 (the "License"); 2200 * you may not use this file except in compliance with the License. 2201 * You may obtain a copy of the License at 2202 * 2203 * http://www.apache.org/licenses/LICENSE-2.0 2204 * 2205 * Unless required by applicable law or agreed to in writing, software 2206 * distributed under the License is distributed on an "AS IS" BASIS, 2207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2208 * See the License for the specific language governing permissions and 2209 * limitations under the License. 2210 */class Am{constructor(){this._=void 0}}function JG(t,e,n){return t instanceof wp?function(i,o){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:i.seconds,nanos:i.nanoseconds}}}};return o&&BE(o)&&(o=zE(o)),o&&(s.fields.__previous_value__=o),{mapValue:s}}(n,e):t instanceof Wc?DO(t,e):t instanceof Hc?OO(t,e):function(i,o){const s=MO(i,o),a=zx(s)+zx(i.Te);
2210return G0(s)&&G0(i.Te)?AO(a):kO(i.serializer,a)}(t,e)}function eq(t,e,n){return t instanceof Wc?DO(t,e):t instanceof Hc?OO(t,e):n}function MO(t,e){return t instanceof bp?function(r){return G0(r)||function(o){return!!o&&"doubleValue"in o}(r)}(e)?e:{integerValue:0}:null}class wp extends Am{}class Wc extends Am{constructor(e){super(),this.elements=e}}function DO(t,e){const n=NO(e);for(const r of t.elements)n.some(i=>pi(i,r))||n.push(r);return{arrayValue:{values:n}}}class Hc extends Am{constructor(e){super(),this.elements=e}}function OO(t,e){let n=NO(e);for(const r of t.elements)n=n.filter(i=>!pi(i,r));return{arrayValue:{values:n}}}class bp extends Am{constructor(e,n){super(),this.serializer=e,this.Te=n}}function zx(t){return Ft(t.integerValue||t.doubleValue)}function NO(t){return WE(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function tq(t,e){return t.field.isEqual(e.field)&&function(r,i){return r instanceof Wc&&i instanceof Wc||r instanceof Hc&&i instanceof Hc?wl(r.elements,i.elements,pi):r instanceof bp&&i instanceof bp?pi(r.Te,i.Te):r instanceof wp&&i instanceof wp}(t.transform,e.transform)}class nq{constructor(e,n){this.version=e,this.transformResults=n}}class ci{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new ci}static exists(e){return new ci(void 0,e)}static updateTime(e){return new ci(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function nh(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class Mm{}function $O(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new GE(t.key,ci.none()):new Ld(t.key,t.data,ci.none());{const n=t.data,r=mr.empty();let i=new an(rn.comparator);for(let o of e.fields)if(!i.has(o)){let s=n.field(o);s===null&&o.length>1&&(o=o.popLast(),s=n.field(o)),s===null?r.delete(o):r.set(o,s),i=i.add(o)}return new sa(t.key,r,new Mr(i.toArray()),ci.none())}}function rq(t,e,n){t instanceof Ld?function(i,o,s){const a=i.value.clone(),l=Hx(i.fieldTransforms,o,s.transformResults);a.setAll(l),o.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(t,e,n):t instanceof sa?function(i,o,s){if(!nh(i.precondition,o))return void o.convertToUnknownDocument(s.version);const a=Hx(i.fieldTransforms,o,s.transformResults),l=o.data;l.setAll(VO(i)),l.setAll(a),o.convertToFoundDocument(s.version,l).setHasCommittedMutations()}(t,e,n):function(i,o,s){o.convertToNoDocument(s.version).setHasCommittedMutations()}(0,e,n)}function tc(t,e,n,r){return t instanceof Ld?function(o,s,a,l){if(!nh(o.precondition,s))return a;const u=o.value.clone(),c=Kx(o.fieldTransforms,l,s);return u.setAll(c),s.convertToFoundDocument(s.version,u).setHasLocalMutations(),null}(t,e,n,r):t instanceof sa?function(o,s,a,l){if(!nh(o.precondition,s))return a;const u=Kx(o.fieldTransforms,l,s),c=s.data;return c.setAll(VO(o)),c.setAll(u),s.convertToFoundDocument(s.version,c).setHasLocalMutations(),a===null?null:a.unionWith(o.fieldMask.fields).unionWith(o.fieldTransforms.map(d=>d.field))}(t,e,n,r):function(o,s,a){return nh(o.precondition,s)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a}(t,e,n)}function iq(t,e){let n=null;for(const r of t.fieldTransforms){const i=e.data.field(r.field),o=MO(r.transform,i||null);o!=null&&(n===null&&(n=mr.empty()),n.set(r.field,o))}return n||null}function Wx(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(r,i){return r===void 0&&i===void 0||!(!r||!i)&&wl(r,i,(o,s)=>tq(o,s))}(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class Ld extends Mm{constructor(e,n,r,i=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=i,this.type=0}getFieldMask(){return null}}class sa extends Mm{constructor(e,n,r,i,o=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.prec
2210ondition=i,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function VO(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function Hx(t,e,n){const r=new Map;yt(t.length===n.length);for(let i=0;i<n.length;i++){const o=t[i],s=o.transform,a=e.data.field(o.field);r.set(o.field,eq(s,a,n[i]))}return r}function Kx(t,e,n){const r=new Map;for(const i of t){const o=i.transform,s=n.data.field(i.field);r.set(i.field,JG(o,s,e))}return r}class GE extends Mm{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class oq extends Mm{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/** 2211 * @license 2212 * Copyright 2017 Google LLC 2213 * 2214 * Licensed under the Apache License, Version 2.0 (the "License"); 2215 * you may not use this file except in compliance with the License. 2216 * You may obtain a copy of the License at 2217 * 2218 * http://www.apache.org/licenses/LICENSE-2.0 2219 * 2220 * Unless required by applicable law or agreed to in writing, software 2221 * distributed under the License is distributed on an "AS IS" BASIS, 2222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2223 * See the License for the specific language governing permissions and 2224 * limitations under the License. 2225 */class sq{constructor(e,n,r,i){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=i}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let i=0;i<this.mutations.length;i++){const o=this.mutations[i];o.key.isEqual(e.key)&&rq(o,e,r[i])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=tc(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=tc(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=RO();return this.mutations.forEach(i=>{const o=e.get(i.key),s=o.overlayedDocument;let a=this.applyToLocalView(s,o.mutatedFields);a=n.has(i.key)?null:a;const l=$O(s,a);l!==null&&r.set(i.key,l),s.isValidDocument()||s.convertToNoDocument(Se.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),Fe())}isEqual(e){return this.batchId===e.batchId&&wl(this.mutations,e.mutations,(n,r)=>Wx(n,r))&&wl(this.baseMutations,e.baseMutations,(n,r)=>Wx(n,r))}}class qE{constructor(e,n,r,i){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=i}static from(e,n,r){yt(e.mutations.length===r.length);let i=function(){return qG}();const o=e.mutations;for(let s=0;s<o.length;s++)i=i.insert(o[s].key,r[s].version);return new qE(e,n,r,i)}}/** 2226 * @license 2227 * Copyright 2022 Google LLC 2228 * 2229 * Licensed under the Apache License, Version 2.0 (the "License"); 2230 * you may not use this file except in compliance with the License. 2231 * You may obtain a copy of the License at 2232 * 2233 * http://www.apache.org/licenses/LICENSE-2.0 2234 * 2235 * Unless required by applicable law or agreed to in writing, software 2236 * distributed under the License is distributed on an "AS IS" BASIS, 2237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2238 * See the License for the specific language governing permissions and 2239 * limitations under the License. 2240 */class aq{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{ 2241 largestBatchId: ${this.largestBatchId}, 2242 mutation: ${this.mutation.toString()} 2243 }`}}/** 2244 * @license 2245 * Copyright 2017 Google LLC 2246 * 2247 * Licensed under the Apache License, Version 2.0 (the "License"); 2248 * you may not use this file except in compliance with the License. 2249 * You may obtain a copy of the License at 2250 * 2251 * http://www.apache.org/licenses/LICENSE-2.0 2252 * 2253 * Unless required by applicable law or agreed to in writing, software 2254 * distributed under the License is distributed on an "AS IS" BASIS, 2255 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2256 * See the License for the specific language governing permissions and 2257 * limitations under the License. 2258 */class lq{constructor(e,n){this.count=e,this.unchangedNames=n}}/** 2259 * @license 2260 * Copyright 2017 Google LLC 2261 * 2262 * Licensed under the Apache License, Version 2.0 (the "License");
2263 * you may not use this file except in compliance with the License. 2264 * You may obtain a copy of the License at 2265 * 2266 * http://www.apache.org/licenses/LICENSE-2.0 2267 * 2268 * Unless required by applicable law or agreed to in writing, software 2269 * distributed under the License is distributed on an "AS IS" BASIS, 2270 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2271 * See the License for the specific language governing permissions and 2272 * limitations under the License. 2273 */var $t,Be;function uq(t){switch(t){default:return we();case H.CANCELLED:case H.UNKNOWN:case H.DEADLINE_EXCEEDED:case H.RESOURCE_EXHAUSTED:case H.INTERNAL:case H.UNAVAILABLE:case H.UNAUTHENTICATED:return!1;case H.INVALID_ARGUMENT:case H.NOT_FOUND:case H.ALREADY_EXISTS:case H.PERMISSION_DENIED:case H.FAILED_PRECONDITION:case H.ABORTED:case H.OUT_OF_RANGE:case H.UNIMPLEMENTED:case H.DATA_LOSS:return!0}}function FO(t){if(t===void 0)return Ui("GRPC error has no .code"),H.UNKNOWN;switch(t){case $t.OK:return H.OK;case $t.CANCELLED:return H.CANCELLED;case $t.UNKNOWN:return H.UNKNOWN;case $t.DEADLINE_EXCEEDED:return H.DEADLINE_EXCEEDED;case $t.RESOURCE_EXHAUSTED:return H.RESOURCE_EXHAUSTED;case $t.INTERNAL:return H.INTERNAL;case $t.UNAVAILABLE:return H.UNAVAILABLE;case $t.UNAUTHENTICATED:return H.UNAUTHENTICATED;
2273case $t.INVALID_ARGUMENT:return H.INVALID_ARGUMENT;case $t.NOT_FOUND:return H.NOT_FOUND;case $t.ALREADY_EXISTS:return H.ALREADY_EXISTS;case $t.PERMISSION_DENIED:return H.PERMISSION_DENIED;case $t.FAILED_PRECONDITION:return H.FAILED_PRECONDITION;case $t.ABORTED:return H.ABORTED;case $t.OUT_OF_RANGE:return H.OUT_OF_RANGE;case $t.UNIMPLEMENTED:return H.UNIMPLEMENTED;case $t.DATA_LOSS:return H.DATA_LOSS;default:return we()}}(Be=$t||($t={}))[Be.OK=0]="OK",Be[Be.CANCELLED=1]="CANCELLED",Be[Be.UNKNOWN=2]="UNKNOWN",Be[Be.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Be[Be.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Be[Be.NOT_FOUND=5]="NOT_FOUND",Be[Be.ALREADY_EXISTS=6]="ALREADY_EXISTS",Be[Be.PERMISSION_DENIED=7]="PERMISSION_DENIED",Be[Be.UNAUTHENTICATED=16]="UNAUTHENTICATED",Be[Be.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Be[Be.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Be[Be.ABORTED=10]="ABORTED",Be[Be.OUT_OF_RANGE=11]="OUT_OF_RANGE",Be[Be.UNIMPLEMENTED=12]="UNIMPLEMENTED",Be[Be.INTERNAL=13]="INTERNAL",Be[Be.UNAVAILABLE=14]="UNAVAILABLE",Be[Be.DATA_LOSS=15]="DATA_LOSS";/** 2274 * @license 2275 * Copyright 2023 Google LLC 2276 * 2277 * Licensed under the Apache License, Version 2.0 (the "License"); 2278 * you may not use this file except in compliance with the License. 2279 * You may obtain a copy of the License at 2280 * 2281 * http://www.apache.org/licenses/LICENSE-2.0 2282 * 2283 * Unless required by applicable law or agreed to in writing, software 2284 * distributed under the License is distributed on an "AS IS" BASIS, 2285 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2286 * See the License for the specific language governing permissions and 2287 * limitations under the License. 2288 */function cq(){return new TextEncoder}/** 2289 * @license 2290 * Copyright 2022 Google LLC 2291 * 2292 * Licensed under the Apache License, Version 2.0 (the "License"); 2293 * you may not use this file except in compliance with the License. 2294 * You may obtain a copy of the License at 2295 * 2296 * http://www.apache.org/licenses/LICENSE-2.0 2297 * 2298 * Unless required by applicable law or agreed to in writing, software 2299 * distributed under the License is distributed on an "AS IS" BASIS, 2300 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2301 * See the License for the specific language governing permissions and 2302 * limitations under the License. 2303 */const dq=new nl([4294967295,4294967295],0);function Gx(t){const e=cq().encode(t),n=new pG;return n.update(e),new Uint8Array(n.digest())}function qx(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),i=e.getUint32(8,!0),o=e.getUint32(12,!0);return[new nl([n,r],0),new nl([i,o],0)]}class QE{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new Du(`Invalid padding: ${n}`);if(r<0)throw new Du(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new Du(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new Du(`Invalid padding when bitmap length is 0: ${n}`);this.Ee=8*e.length-n,this.de=nl.fromNumber(this.Ee)}Ae(e,n,r){let i=e.add(n.multiply(nl.fromNumber(r)));return i.compare(dq)===1&&(i=new nl([i.getBits(0),i.getBits(1)],0)),i.modulo(this.de).toNumber()}Re(e){return(this.bitmap[Math.floor(e/8)]&1<<e%8)!=0}mightContain(e){if(this.Ee===0)return!1;const n=Gx(e),[r,i]=qx(n);for(let o=0;o<this.hashCount;o++){const s=this.Ae(r,i,o);if(!this.Re(s))return!1}return!0}static create(e,n,r){const i=e%8==0?0:8-e%8,o=new Uint8Array(Math.ceil(e/8)),s=new QE(o,i,n);return r.forEach(a=>s.insert(a)),s}insert(e){if(this.Ee===0)return;const n=Gx(e),[r,i]=qx(n);for(let o=0;o<this.hashCount;o++){const s=this.Ae(r,i,o);this.Ve(s)}}Ve(e){const n=Math.floor(e/8),r=e%8;this.bitmap[n]|=1<<r}}class Du extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/** 2304 * @license 2305 * Copyright 2017 Google LLC 2306 * 2307 * Licensed under the Apache License, Version 2.0 (the "License"); 2308 * you may not use this file except in compliance with the License. 2309 * You may obtain a copy of the License at 2310 * 2311 * http://www.apache.org/licenses/LICENSE-2.0 2312 * 2313 * Unless required by applicable law or agreed to in writing, softw
2313are 2314 * distributed under the License is distributed on an "AS IS" BASIS, 2315 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2316 * See the License for the specific language governing permissions and 2317 * limitations under the License. 2318 */class Dm{constructor(e,n,r,i,o){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=o}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const i=new Map;return i.set(e,Rd.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new Dm(Se.min(),i,new It(Ye),Bi(),Fe())}}class Rd{constructor(e,n,r,i,o){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=o}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new Rd(r,n,Fe(),Fe(),Fe())}}/** 2319 * @license 2320 * Copyright 2017 Google LLC 2321 * 2322 * Licensed under the Apache License, Version 2.0 (the "License"); 2323 * you may not use this file except in compliance with the License. 2324 * You may obtain a copy of the License at 2325 * 2326 * http://www.apache.org/licenses/LICENSE-2.0 2327 * 2328 * Unless required by applicable law or agreed to in writing, software 2329 * distributed under the License is distributed on an "AS IS" BASIS, 2330 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2331 * See the License for the specific language governing permissions and 2332 * limitations under the License. 2333 */class rh{constructor(e,n,r,i){this.me=e,this.removedTargetIds=n,this.key=r,this.fe=i}}class jO{constructor(e,n){this.targetId=e,this.ge=n}}class UO{constructor(e,n,r=Sn.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=i}}class Qx{constructor(){this.pe=0,this.ye=Xx(),this.we=Sn.EMPTY_BYTE_STRING,this.Se=!1,this.be=!0}get current(){return this.Se}get resumeToken(){return this.we}get De(){return this.pe!==0}get Ce(){return this.be}ve(e){e.approximateByteSize()>0&&(this.be=!0,this.we=e)}Fe(){let e=Fe(),n=Fe(),r=Fe();return this.ye.forEach((i,o)=>{switch(o){case 0:e=e.add(i);break;case 2:n=n.add(i);break;case 1:r=r.add(i);break;default:we()}}),new Rd(this.we,this.Se,e,n,r)}Me(){this.be=!1,this.ye=Xx()}xe(e,n){this.be=!0,this.ye=this.ye.insert(e,n)}Oe(e){this.be=!0,this.ye=this.ye.remove(e)}Ne(){this.pe+=1}Be(){this.pe-=1}Le(){this.be=!0,this.Se=!0}}class fq{constructor(e){this.ke=e,this.qe=new Map,this.Qe=Bi(),this.Ke=Yx(),this.$e=new It(Ye)}Ue(e){for(const n of e.me)e.fe&&e.fe.isFoundDocument()?this.We(n,e.fe):this.Ge(n,e.key,e.fe);for(const n of e.removedTargetIds)this.Ge(n,e.key,e.fe)}ze(e){this.forEachTarget(e,n=>{const r=this.je(n);switch(e.state){case 0:this.He(n)&&r.ve(e.resumeToken);break;case 1:r.Be(),r.De||r.Me(),r.ve(e.resumeToken);break;case 2:r.Be(),r.De||this.removeTarget(n);break;case 3:this.He(n)&&(r.Le(),r.ve(e.resumeToken));break;case 4:this.He(n)&&(this.Je(n),r.ve(e.resumeToken));break;default:we()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.qe.forEach((r,i)=>{this.He(i)&&n(i)})}Ye(e){const n=e.targetId,r=e.ge.count,i=this.Ze(n);if(i){const o=i.target;if(Q0(o))if(r===0){const s=new ce(o.path);this.Ge(n,s,vn.newNoDocument(s,Se.min()))}else yt(r===1);else{const s=this.Xe(n);if(s!==r){const a=this.et(e),l=a?this.tt(a,e,s):1;if(l!==0){this.Je(n);const u=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.$e=this.$e.insert(n,u)}}}}}et(e){const n=e.ge.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:i=0},hashCount:o=0}=n;let s,a;try{s=Gs(r).toUint8Array()}catch(l){if(l instanceof gO)return yl("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new QE(s,i,o)}catch(l){return yl(l instanceof Du?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return a.Ee===0?null:a}tt(e,n,r){return n.ge.count===r-this.it(e,n.targetId)?0:2}it(e,n){const r=this.ke.getRemoteKeysForTarget(n);let i=0;return r.forEach(o=>{const s=this.ke.rt(),a=`projects/${s.projectId}/databases/${s.database}/documents/${o.path.canonicalString()}`;e.mightContain(a)||(this.Ge(n,o,null),i++)}),i}st(e){const n=new Map;this.qe.forEach((o,s)=>{const a=this.Ze(s);if(a){if(o.current&&Q0(a.target)){const l=new ce(a.target.path);this.Qe.get(l)!==null||this.ot(s,l)||this.Ge(s,l,vn.newNoDocument(l,e))}o.Ce&&(n.set(s,o.Fe()),o.Me())}});let r=Fe();this.Ke.forEach((o,s)=>{let a=!0;
2333s.forEachWhile(l=>{const u=this.Ze(l);return!u||u.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(r=r.add(o))}),this.Qe.forEach((o,s)=>s.setReadTime(e));const i=new Dm(e,n,this.$e,this.Qe,r);return this.Qe=Bi(),this.Ke=Yx(),this.$e=new It(Ye),i}We(e,n){if(!this.He(e))return;const r=this.ot(e,n.key)?2:0;this.je(e).xe(n.key,r),this.Qe=this.Qe.insert(n.key,n),this.Ke=this.Ke.insert(n.key,this._t(n.key).add(e))}Ge(e,n,r){if(!this.He(e))return;const i=this.je(e);this.ot(e,n)?i.xe(n,1):i.Oe(n),this.Ke=this.Ke.insert(n,this._t(n).delete(e)),r&&(this.Qe=this.Qe.insert(n,r))}removeTarget(e){this.qe.delete(e)}Xe(e){const n=this.je(e).Fe();return this.ke.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}Ne(e){this.je(e).Ne()}je(e){let n=this.qe.get(e);return n||(n=new Qx,this.qe.set(e,n)),n}_t(e){let n=this.Ke.get(e);return n||(n=new an(Ye),this.Ke=this.Ke.insert(e,n)),n}He(e){const n=this.Ze(e)!==null;return n||ie("WatchChangeAggregator","Detected inactive target",e),n}Ze(e){const n=this.qe.get(e);return n&&n.De?null:this.ke.ut(e)}Je(e){this.qe.set(e,new Qx),this.ke.getRemoteKeysForTarget(e).forEach(n=>{this.Ge(e,n,null)})}ot(e,n){return this.ke.getRemoteKeysForTarget(e).has(n)}}function Yx(){return new It(ce.comparator)}function Xx(){return new It(ce.comparator)}const hq=(()=>({asc:"ASCENDING",desc:"DESCENDING"}))(),pq=(()=>({"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"}))(),mq=(()=>({and:"AND",or:"OR"}))();class gq{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function Z0(t,e){return t.useProto3Json||Lm(e)?e:{value:e}}function Ep(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function BO(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function vq(t,e){return Ep(t,e.toTimestamp())}function di(t){return yt(!!t),Se.fromTimestamp(function(n){const r=Wo(n);return new Ht(r.seconds,r.nanos)}(t))}function YE(t,e){return function(r){return new gt(["projects",r.projectId,"databases",r.database])}(t).child("documents").child(e).canonicalString()}function zO(t){const e=gt.fromString(t);return yt(GO(e)),e}function J0(t,e){return YE(t.databaseId,e.path)}function Mv(t,e){const n=zO(e);if(n.get(1)!==t.databaseId.projectId)throw new oe(H.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new oe(H.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new ce(WO(n))}function ew(t,e){return YE(t.databaseId,e)}function yq(t){const e=zO(t);return e.length===4?gt.emptyPath():WO(e)}function tw(t){return new gt(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function WO(t){return yt(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function Zx(t,e,n){return{name:J0(t,e),fields:n.value.mapValue.fields}}function wq(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(u){return u==="NO_CHANGE"?0:u==="ADD"?1:u==="REMOVE"?2:u==="CURRENT"?3:u==="RESET"?4:we()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(u,c){return u.useProto3Json?(yt(c===void 0||typeof c=="string"),Sn.fromBase64String(c||"")):(yt(c===void 0||c instanceof Uint8Array),Sn.fromUint8Array(c||new Uint8Array))}(t,e.targetChange.resumeToken),s=e.targetChange.cause,a=s&&function(u){const c=u.code===void 0?H.UNKNOWN:FO(u.code);return new oe(c,u.message||"")}(s);n=new UO(r,i,o,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const i=Mv(t,r.document.name),o=di(r.document.updateTime),s=r.document.createTime?di(r.document.createTime):Se.min(),a=new mr({mapValue:{fields:r.document.fields}}),l=vn.newFoundDocument(i,o,s,a),u=r.targetIds||[],c=r.removedTargetIds||[];n=new rh(u,c,l.key,l)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const i=Mv(t,r.document),o=r.readTime?di(r.readTime):Se.min(),s=vn.newNoDocument(i,o),a=r.removedTargetIds||[];n=new rh([],a,s.key,s)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const i=Mv(t,r.document),o=r.removedTargetIds||[];n=new rh([],o,i,null)}else{if(!("filter"in e))return we();{e.filter;const r=e.filter;r.targetId;const{count:i=0,unchangedNames:o}=r,s=new lq(i,o),a=r.targetId;
2333n=new jO(a,s)}}return n}function bq(t,e){let n;if(e instanceof Ld)n={update:Zx(t,e.key,e.value)};else if(e instanceof GE)n={delete:J0(t,e.key)};else if(e instanceof sa)n={update:Zx(t,e.key,e.data),updateMask:Lq(e.fieldMask)};else{if(!(e instanceof oq))return we();n={verify:J0(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(o,s){const a=s.transform;if(a instanceof wp)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof Wc)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof Hc)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof bp)return{fieldPath:s.field.canonicalString(),increment:a.Te};throw we()}(0,r))),e.precondition.isNone||(n.currentDocument=function(i,o){return o.updateTime!==void 0?{updateTime:vq(i,o.updateTime)}:o.exists!==void 0?{exists:o.exists}:we()}(t,e.precondition)),n}function Eq(t,e){return t&&t.length>0?(yt(e!==void 0),t.map(n=>function(i,o){let s=i.updateTime?di(i.updateTime):di(o);return s.isEqual(Se.min())&&(s=di(o)),new nq(s,i.transformResults||[])}(n,e))):[]}function _q(t,e){return{documents:[ew(t,e.path)]}}function Sq(t,e){const n={structuredQuery:{}},r=e.path;e.collectionGroup!==null?(n.parent=ew(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=ew(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);const i=function(l){if(l.length!==0)return KO(Br.create(l,"and"))}(e.filters);i&&(n.structuredQuery.where=i);const o=function(l){if(l.length!==0)return l.map(u=>function(d){return{field:Sa(d.field),direction:Tq(d.dir)}}(u))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);const s=Z0(t,e.limit);return s!==null&&(n.structuredQuery.limit=s),e.startAt&&(n.structuredQuery.startAt=function(l){return{before:l.inclusive,values:l.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(l){return{before:!l.inclusive,values:l.position}}(e.endAt)),n}function Cq(t){let e=yq(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){yt(r===1);const c=n.from[0];c.allDescendants?i=c.collectionId:e=e.child(c.collectionId)}let o=[];n.where&&(o=function(d){const h=HO(d);return h instanceof Br&&bO(h)?h.getFilters():[h]}(n.where));let s=[];n.orderBy&&(s=function(d){return d.map(h=>function(m){return new yp(Ca(m.field),function(b){switch(b){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(m.direction))}(h))}(n.orderBy));let a=null;n.limit&&(a=function(d){let h;return h=typeof d=="object"?d.value:d,Lm(h)?null:h}(n.limit));let l=null;n.startAt&&(l=function(d){const h=!!d.before,p=d.values||[];return new vp(p,h)}(n.startAt));let u=null;return n.endAt&&(u=function(d){const h=!d.before,p=d.values||[];return new vp(p,h)}(n.endAt)),zG(e,i,s,o,a,"F",l,u)}function xq(t,e){const n=function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return we()}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function HO(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=Ca(n.unaryFilter.field);return Ut.create(r,"==",{doubleValue:NaN});case"IS_NULL":const i=Ca(n.unaryFilter.field);return Ut.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const o=Ca(n.unaryFilter.field);return Ut.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=Ca(n.unaryFilter.field);return Ut.create(s,"!=",{nullValue:"NULL_VALUE"});default:return we()}}(t):t.fieldFilter!==void 0?function(n){return Ut.create(Ca(n.fieldFilter.field),function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return we()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return Br.create(n.compositeFilter.filters.map(r=>HO(r)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return we()}}(n.compositeFilter.op))}(t):we()}function Tq(t){return hq[t]}function Pq(t){return pq[t]}function Iq(t){return mq[t]}function Sa(t){return{fieldPath:t.canonicalString()}}function Ca(t){return rn.fromServerFormat(t.fieldPath)}function KO(t){return t instanceof Ut?function(n){if(n.op==="=="){if(Vx(n.value))return{unaryFilter:{field:Sa(n.field),op:"IS_NAN"}};if($x(n.value))return{unaryFilter:{field:Sa(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(Vx(n.value))return{unaryFilter:{field:Sa(n.field),op:"IS_NOT_NA
2333N"}};if($x(n.value))return{unaryFilter:{field:Sa(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Sa(n.field),op:Pq(n.op),value:n.value}}}(t):t instanceof Br?function(n){const r=n.getFilters().map(i=>KO(i));return r.length===1?r[0]:{compositeFilter:{op:Iq(n.op),filters:r}}}(t):we()}function Lq(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function GO(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** 2334 * @license 2335 * Copyright 2017 Google LLC 2336 * 2337 * Licensed under the Apache License, Version 2.0 (the "License"); 2338 * you may not use this file except in compliance with the License. 2339 * You may obtain a copy of the License at 2340 * 2341 * http://www.apache.org/licenses/LICENSE-2.0 2342 * 2343 * Unless required by applicable law or agreed to in writing, software 2344 * distributed under the License is distributed on an "AS IS" BASIS, 2345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2346 * See the License for the specific language governing permissions and 2347 * limitations under the License. 2348 */class yo{constructor(e,n,r,i,o=Se.min(),s=Se.min(),a=Sn.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=l}withSequenceNumber(e){return new yo(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new yo(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new yo(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new yo(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/** 2349 * @license 2350 * Copyright 2017 Google LLC 2351 * 2352 * Licensed under the Apache License, Version 2.0 (the "License"); 2353 * you may not use this file except in compliance with the License. 2354 * You may obtain a copy of the License at 2355 * 2356 * http://www.apache.org/licenses/LICENSE-2.0 2357 * 2358 * Unless required by applicable law or agreed to in writing, software 2359 * distributed under the License is distributed on an "AS IS" BASIS, 2360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2361 * See the License for the specific language governing permissions and 2362 * limitations under the License. 2363 */class Rq{constructor(e){this.ct=e}}function kq(t){const e=Cq({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?X0(e,e.limit,"L"):e}/** 2364 * @license 2365 * Copyright 2019 Google LLC 2366 * 2367 * Licensed under the Apache License, Version 2.0 (the "License"); 2368 * you may not use this file except in compliance with the License. 2369 * You may obtain a copy of the License at 2370 * 2371 * http://www.apache.org/licenses/LICENSE-2.0 2372 * 2373 * Unless required by applicable law or agreed to in writing, software 2374 * distributed under the License is distributed on an "AS IS" BASIS, 2375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2376 * See the License for the specific language governing permissions and 2377 * limitations under the License. 2378 */class Aq{constructor(){this._n=new Mq}addToCollectionParentIndex(e,n){return this._n.add(n),q.resolve()}getCollectionParents(e,n){return q.resolve(this._n.getEntries(n))}addFieldIndex(e,n){return q.resolve()}deleteFieldIndex(e,n){return q.resolve()}deleteAllFieldIndexes(e){return q.resolve()}createTargetIndexes(e,n){return q.resolve()}getDocumentsMatchingTarget(e,n){return q.resolve(null)}getIndexType(e,n){return q.resolve(0)}getFieldIndexes(e,n){return q.resolve([])}getNextCollectionGroupToUpdate(e){return q.resolve(null)}getMinOffset(e,n){return q.resolve(zo.min())}getMinOffsetFromCollectionGroup(e,n){return q.resolve(zo.min())}updateCollectionGroup(e,n,r){return q.resolve()}updateIndexEntries(e,n){return q.resolve()}}class Mq{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n]||new an(gt.comparator),o=!i.has(r);return this.index[n]=i.add(r),o}has(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n];return i&&i.has(r)}getEntries(e){return(this.index[e]||new an(gt.comparator)).toArray()}}/** 2379 * @license 2380 * Copyright 2017 Google LLC 2381 * 2382 * Licensed under the Apache License, Version 2.0 (the "License");
2383 * you may not use this file except in compliance with the License. 2384 * You may obtain a copy of the License at 2385 * 2386 * http://www.apache.org/licenses/LICENSE-2.0 2387 * 2388 * Unless required by applicable law or agreed to in writing, software 2389 * distributed under the License is distributed on an "AS IS" BASIS, 2390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2391 * See the License for the specific language governing permissions and 2392 * limitations under the License. 2393 */class _l{constructor(e){this.On=e}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Bn(){return new _l(-1)}}/** 2394 * @license 2395 * Copyright 2017 Google LLC 2396 * 2397 * Licensed under the Apache License, Version 2.0 (the "License"); 2398 * you may not use this file except in compliance with the License. 2399 * You may obtain a copy of the License at 2400 * 2401 * http://www.apache.org/licenses/LICENSE-2.0 2402 * 2403 * Unless required by applicable law or agreed to in writing, software 2404 * distributed under the License is distributed on an "AS IS" BASIS, 2405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2406 * See the License for the specific language governing permissions and 2407 * limitations under the License. 2408 */class Dq{constructor(){this.changes=new zl(e=>e.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,vn.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?q.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}/** 2409 * @license 2410 * Copyright 2017 Google LLC 2411 * 2412 * Licensed under the Apache License, Version 2.0 (the "License"); 2413 * you may not use this file except in compliance with the License. 2414 * You may obtain a copy of the License at 2415 * 2416 * http://www.apache.org/licenses/LICENSE-2.0 2417 * 2418 * Unless required by applicable law or agreed to in writing, software 2419 * distributed under the License is distributed on an "AS IS" BASIS, 2420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2421 * See the License for the specific language governing permissions and 2422 * limitations under the License. 2423 *//** 2424 * @license 2425 * Copyright 2022 Google LLC 2426 * 2427 * Licensed under the Apache License, Version 2.0 (the "License"); 2428 * you may not use this file except in compliance with the License. 2429 * You may obtain a copy of the License at 2430 * 2431 * http://www.apache.org/licenses/LICENSE-2.0 2432 * 2433 * Unless required by applicable law or agreed to in writing, software 2434 * distributed under the License is distributed on an "AS IS" BASIS, 2435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2436 * See the License for the specific language governing permissions and 2437 * limitations under the License. 2438 */class Oq{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/** 2439 * @license 2440 * Copyright 2017 Google LLC 2441 * 2442 * Licensed under the Apache License, Version 2.0 (the "License"); 2443 * you may not use this file except in compliance with the License. 2444 * You may obtain a copy of the License at 2445 * 2446 * http://www.apache.org/licenses/LICENSE-2.0 2447 * 2448 * Unless required by applicable law or agreed to in writing, software 2449 * distributed under the License is distributed on an "AS IS" BASIS, 2450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2451 * See the License for the specific language governing permissions and 2452 * limitations under the License. 2453 */class Nq{constructor(e,n,r,i){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=i}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next(i=>(r=i,this.remoteDocumentCache.getEntry(e,n))).next(i=>(r!==null&&tc(r.mutation,i,Mr.empty(),Ht.now()),i))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,Fe()).next(()=>r))}getLocalViewOfDocuments(e,n,r=Fe()){const i=xs();return this.populateOverlays(e,i,n).next(()=>this.computeViews(e,n,i,r).next(o=>{let s=Mu();return o.forEach((a,l)=>{s=s.insert(a,l.overlayedDocument)}),s}))}getOverlayedDocuments(e,n){const r=xs();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,Fe()))}populateOverlays(e,n,r){const i=[];return r.forEach(o=>{n.has(o)||i.push(o)}),this.documentOverlayCache.getOverlays(e,i).next(o=>{o.forEach((s,a)=>{n.set(s,a)})})}computeViews(e,n,r,i){let o=Bi();const s=ec(),a=function(){return ec()}();
vendor: 4,250 bytes, lines 2453-2472
2453return n.forEach((l,u)=>{const c=r.get(u.key);i.has(u.key)&&(c===void 0||c.mutation instanceof sa)?o=o.insert(u.key,u):c!==void 0?(s.set(u.key,c.mutation.getFieldMask()),tc(c.mutation,u,c.mutation.getFieldMask(),Ht.now())):s.set(u.key,Mr.empty())}),this.recalculateAndSaveOverlays(e,o).next(l=>(l.forEach((u,c)=>s.set(u,c)),n.forEach((u,c)=>{var d;return a.set(u,new Oq(c,(d=s.get(u))!==null&&d!==void 0?d:null))}),a))}recalculateAndSaveOverlays(e,n){const r=ec();let i=new It((s,a)=>s-a),o=Fe();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(s=>{for(const a of s)a.keys().forEach(l=>{const u=n.get(l);if(u===null)return;let c=r.get(l)||Mr.empty();c=a.applyToLocalView(u,c),r.set(l,c);const d=(i.get(a.batchId)||Fe()).add(l);i=i.insert(a.batchId,d)})}).next(()=>{const s=[],a=i.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),u=l.key,c=l.value,d=RO();c.forEach(h=>{if(!o.has(h)){const p=$O(n.get(h),r.get(h));p!==null&&d.set(h,p),o=o.add(h)}}),s.push(this.documentOverlayCache.saveOverlays(e,u,d))}return q.waitFor(s)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,i){return function(s){return ce.isDocumentKey(s.path)&&s.collectionGroup===null&&s.filters.length===0}(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):xO(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,i):this.getDocumentsMatchingCollectionQuery(e,n,r,i)}getNextDocuments(e,n,r,i){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,i).next(o=>{const s=i-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,i-o.size):q.resolve(xs());let a=-1,l=o;return s.next(u=>q.forEach(u,(c,d)=>(a<d.largestBatchId&&(a=d.largestBatchId),o.get(c)?q.resolve():this.remoteDocumentCache.getEntry(e,c).next(h=>{l=l.insert(c,h)}))).next(()=>this.populateOverlays(e,u,o)).next(()=>this.computeViews(e,l,u,Fe())).next(c=>({batchId:a,changes:LO(c)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new ce(n)).next(r=>{let i=Mu();return r.isFoundDocument()&&(i=i.insert(r.key,r)),i})}getDocumentsMatchingCollectionGroupQuery(e,n,r,i){const o=n.collectionGroup;let s=Mu();return this.indexManager.getCollectionParents(e,o).next(a=>q.forEach(a,l=>{const u=function(d,h){return new Id(h,null,d.explicitOrderBy.slice(),d.filters.slice(),d.limit,d.limitType,d.startAt,d.endAt)}(n,l.child(o));return this.getDocumentsMatchingCollectionQuery(e,u,r,i).next(c=>{c.forEach((d,h)=>{s=s.insert(d,h)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,n,r,i){let o;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(s=>(o=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,o,i))).next(s=>{o.forEach((l,u)=>{const c=u.getKey();s.get(c)===null&&(s=s.insert(c,vn.newInvalidDocument(c)))});let a=Mu();return s.forEach((l,u)=>{const c=o.get(l);c!==void 0&&tc(c.mutation,u,Mr.empty(),Ht.now()),km(n,u)&&(a=a.insert(l,u))}),a})}}/** 2454 * @license 2455 * Copyright 2020 Google LLC 2456 * 2457 * Licensed under the Apache License, Version 2.0 (the "License"); 2458 * you may not use this file except in compliance with the License. 2459 * You may obtain a copy of the License at 2460 * 2461 * http://www.apache.org/licenses/LICENSE-2.0 2462 * 2463 * Unless required by applicable law or agreed to in writing, software 2464 * distributed under the License is distributed on an "AS IS" BASIS, 2465 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2466 * See the License for the specific language governing permissions and 2467 * limitations under the License. 2468 */class $q{constructor(e){this.serializer=e,this.cr=new Map,this.lr=new Map}getBundleMetadata(e,n){return q.resolve(this.cr.get(n))}saveBundleMetadata(e,n){return this.cr.set(n.id,function(i){return{id:i.id,version:i.version,createTime:di(i.createTime)}}(n)),q.resolve()}getNamedQuery(e,n){return q.resolve(this.lr.get(n))}saveNamedQuery(e,n){return this.lr.set(n.name,function(i){return{name:i.name,query:kq(i.bundledQuery),readTime:di(i.readTime)}}(n)),q.resolve()}}/** 2469 * @license 2470 * Copyright 2022 Google LLC 2471 * 2472 * Licensed under the Apache License, Version 2.0 (the "License");
2473 * you may not use this file except in compliance with the License. 2474 * You may obtain a copy of the License at 2475 * 2476 * http://www.apache.org/licenses/LICENSE-2.0 2477 * 2478 * Unless required by applicable law or agreed to in writing, software 2479 * distributed under the License is distributed on an "AS IS" BASIS, 2480 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2481 * See the License for the specific language governing permissions and 2482 * limitations under the License. 2483 */class Vq{constructor(){this.overlays=new It(ce.comparator),this.hr=new Map}getOverlay(e,n){return q.resolve(this.overlays.get(n))}getOverlays(e,n){const r=xs();return q.forEach(n,i=>this.getOverlay(e,i).next(o=>{o!==null&&r.set(i,o)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((i,o)=>{this.ht(e,n,o)}),q.resolve()}removeOverlaysForBatchId(e,n,r){const i=this.hr.get(r);return i!==void 0&&(i.forEach(o=>this.overlays=this.overlays.remove(o)),this.hr.delete(r)),q.resolve()}getOverlaysForCollection(e,n,r){const i=xs(),o=n.length+1,s=new ce(n.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const l=a.getNext().value,u=l.getKey();if(!n.isPrefixOf(u.path))break;u.path.length===o&&l.largestBatchId>r&&i.set(l.getKey(),l)}return q.resolve(i)}getOverlaysForCollectionGroup(e,n,r,i){let o=new It((u,c)=>u-c);const s=this.overlays.getIterator();for(;s.hasNext();){const u=s.getNext().value;if(u.getKey().getCollectionGroup()===n&&u.largestBatchId>r){let c=o.get(u.largestBatchId);c===null&&(c=xs(),o=o.insert(u.largestBatchId,c)),c.set(u.getKey(),u)}}const a=xs(),l=o.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((u,c)=>a.set(u,c)),!(a.size()>=i)););return q.resolve(a)}ht(e,n,r){const i=this.overlays.get(r.key);if(i!==null){const s=this.hr.get(i.largestBatchId).delete(r.key);this.hr.set(i.largestBatchId,s)}this.overlays=this.overlays.insert(r.key,new aq(n,r));let o=this.hr.get(n);o===void 0&&(o=Fe(),this.hr.set(n,o)),this.hr.set(n,o.add(r.key))}}/** 2484 * @license 2485 * Copyright 2017 Google LLC 2486 * 2487 * Licensed under the Apache License, Version 2.0 (the "License"); 2488 * you may not use this file except in compliance with the License. 2489 * You may obtain a copy of the License at 2490 * 2491 * http://www.apache.org/licenses/LICENSE-2.0 2492 * 2493 * Unless required by applicable law or agreed to in writing, software 2494 * distributed under the License is distributed on an "AS IS" BASIS, 2495 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2496 * See the License for the specific language governing permissions and 2497 * limitations under the License. 2498 */class XE{constructor(){this.Pr=new an(Gt.Ir),this.Tr=new an(Gt.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(e,n){const r=new Gt(e,n);this.Pr=this.Pr.add(r),this.Tr=this.Tr.add(r)}dr(e,n){e.forEach(r=>this.addReference(r,n))}removeReference(e,n){this.Ar(new Gt(e,n))}Rr(e,n){e.forEach(r=>this.removeReference(r,n))}Vr(e){const n=new ce(new gt([])),r=new Gt(n,e),i=new Gt(n,e+1),o=[];return this.Tr.forEachInRange([r,i],s=>{this.Ar(s),o.push(s.key)}),o}mr(){this.Pr.forEach(e=>this.Ar(e))}Ar(e){this.Pr=this.Pr.delete(e),this.Tr=this.Tr.delete(e)}gr(e){const n=new ce(new gt([])),r=new Gt(n,e),i=new Gt(n,e+1);let o=Fe();return this.Tr.forEachInRange([r,i],s=>{o=o.add(s.key)}),o}containsKey(e){const n=new Gt(e,0),r=this.Pr.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class Gt{constructor(e,n){this.key=e,this.pr=n}static Ir(e,n){return ce.comparator(e.key,n.key)||Ye(e.pr,n.pr)}static Er(e,n){return Ye(e.pr,n.pr)||ce.comparator(e.key,n.key)}}/** 2499 * @license 2500 * Copyright 2017 Google LLC 2501 * 2502 * Licensed under the Apache License, Version 2.0 (the "License"); 2503 * you may not use this file except in compliance with the License. 2504 * You may obtain a copy of the License at 2505 * 2506 * http://www.apache.org/licenses/LICENSE-2.0 2507 * 2508 * Unless required by applicable law or agreed to in writing, software 2509 * distributed under the License is distributed on an "AS IS" BASIS, 2510 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2511 * See the License for the specific language governing permissions and 2512 * limitations under the License.
2513 */class Fq{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.yr=1,this.wr=new an(Gt.Ir)}checkEmpty(e){return q.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,i){const o=this.yr;this.yr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const s=new sq(o,n,r,i);this.mutationQueue.push(s);for(const a of i)this.wr=this.wr.add(new Gt(a.key,o)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return q.resolve(s)}lookupMutationBatch(e,n){return q.resolve(this.Sr(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,i=this.br(r),o=i<0?0:i;return q.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return q.resolve(this.mutationQueue.length===0?-1:this.yr-1)}getAllMutationBatches(e){return q.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Gt(n,0),i=new Gt(n,Number.POSITIVE_INFINITY),o=[];return this.wr.forEachInRange([r,i],s=>{const a=this.Sr(s.pr);o.push(a)}),q.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new an(Ye);return n.forEach(i=>{const o=new Gt(i,0),s=new Gt(i,Number.POSITIVE_INFINITY);this.wr.forEachInRange([o,s],a=>{r=r.add(a.pr)})}),q.resolve(this.Dr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,i=r.length+1;let o=r;ce.isDocumentKey(o)||(o=o.child(""));const s=new Gt(new ce(o),0);let a=new an(Ye);return this.wr.forEachWhile(l=>{const u=l.key.path;return!!r.isPrefixOf(u)&&(u.length===i&&(a=a.add(l.pr)),!0)},s),q.resolve(this.Dr(a))}Dr(e){const n=[];return e.forEach(r=>{const i=this.Sr(r);i!==null&&n.push(i)}),n}removeMutationBatch(e,n){yt(this.Cr(n.batchId,"removed")===0),this.mutationQueue.shift();let r=this.wr;return q.forEach(n.mutations,i=>{const o=new Gt(i.key,n.batchId);return r=r.delete(o),this.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(()=>{this.wr=r})}Mn(e){}containsKey(e,n){const r=new Gt(n,0),i=this.wr.firstAfterOrEqual(r);return q.resolve(n.isEqual(i&&i.key))}performConsistencyCheck(e){return this.mutationQueue.length,q.resolve()}Cr(e,n){return this.br(e)}br(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Sr(e){const n=this.br(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** 2514 * @license 2515 * Copyright 2017 Google LLC 2516 * 2517 * Licensed under the Apache License, Version 2.0 (the "License"); 2518 * you may not use this file except in compliance with the License. 2519 * You may obtain a copy of the License at 2520 * 2521 * http://www.apache.org/licenses/LICENSE-2.0 2522 * 2523 * Unless required by applicable law or agreed to in writing, software 2524 * distributed under the License is distributed on an "AS IS" BASIS, 2525 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2526 * See the License for the specific language governing permissions and 2527 * limitations under the License. 2528 */class jq{constructor(e){this.vr=e,this.docs=function(){return new It(ce.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,i=this.docs.get(r),o=i?i.size:0,s=this.vr(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:s}),this.size+=s-o,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return q.resolve(r?r.document.mutableCopy():vn.newInvalidDocument(n))}getEntries(e,n){let r=Bi();return n.forEach(i=>{const o=this.docs.get(i);r=r.insert(i,o?o.document.mutableCopy():vn.newInvalidDocument(i))}),q.resolve(r)}getDocumentsMatchingQuery(e,n,r,i){let o=Bi();const s=n.path,a=new ce(s.child("")),l=this.docs.getIteratorFrom(a);for(;l.hasNext();){const{key:u,value:{document:c}}=l.getNext();if(!s.isPrefixOf(u.path))break;u.path.length>s.length+1||TG(xG(c),r)<=0||(i.has(c.key)||km(n,c))&&(o=o.insert(c.key,c.mutableCopy()))}return q.resolve(o)}getAllFromCollectionGroup(e,n,r,i){we()}Fr(e,n){return q.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new Uq(this)}getSize(e){return q.resolve(this.size)}}class Uq extends Dq{constructor(e){super(),this.ar=e}applyChanges(e){const n=[];
vendor: 9,710 bytes, lines 2528-2603
2528return this.changes.forEach((r,i)=>{i.isValidDocument()?n.push(this.ar.addEntry(e,i)):this.ar.removeEntry(r)}),q.waitFor(n)}getFromCache(e,n){return this.ar.getEntry(e,n)}getAllFromCache(e,n){return this.ar.getEntries(e,n)}}/** 2529 * @license 2530 * Copyright 2017 Google LLC 2531 * 2532 * Licensed under the Apache License, Version 2.0 (the "License"); 2533 * you may not use this file except in compliance with the License. 2534 * You may obtain a copy of the License at 2535 * 2536 * http://www.apache.org/licenses/LICENSE-2.0 2537 * 2538 * Unless required by applicable law or agreed to in writing, software 2539 * distributed under the License is distributed on an "AS IS" BASIS, 2540 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2541 * See the License for the specific language governing permissions and 2542 * limitations under the License. 2543 */class Bq{constructor(e){this.persistence=e,this.Mr=new zl(n=>HE(n),KE),this.lastRemoteSnapshotVersion=Se.min(),this.highestTargetId=0,this.Or=0,this.Nr=new XE,this.targetCount=0,this.Br=_l.Nn()}forEachTarget(e,n){return this.Mr.forEach((r,i)=>n(i)),q.resolve()}getLastRemoteSnapshotVersion(e){return q.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return q.resolve(this.Or)}allocateTargetId(e){return this.highestTargetId=this.Br.next(),q.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.Or&&(this.Or=n),q.resolve()}qn(e){this.Mr.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Br=new _l(n),this.highestTargetId=n),e.sequenceNumber>this.Or&&(this.Or=e.sequenceNumber)}addTargetData(e,n){return this.qn(n),this.targetCount+=1,q.resolve()}updateTargetData(e,n){return this.qn(n),q.resolve()}removeTargetData(e,n){return this.Mr.delete(n.target),this.Nr.Vr(n.targetId),this.targetCount-=1,q.resolve()}removeTargets(e,n,r){let i=0;const o=[];return this.Mr.forEach((s,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.Mr.delete(s),o.push(this.removeMatchingKeysForTargetId(e,a.targetId)),i++)}),q.waitFor(o).next(()=>i)}getTargetCount(e){return q.resolve(this.targetCount)}getTargetData(e,n){const r=this.Mr.get(n)||null;return q.resolve(r)}addMatchingKeys(e,n,r){return this.Nr.dr(n,r),q.resolve()}removeMatchingKeys(e,n,r){this.Nr.Rr(n,r);const i=this.persistence.referenceDelegate,o=[];return i&&n.forEach(s=>{o.push(i.markPotentiallyOrphaned(e,s))}),q.waitFor(o)}removeMatchingKeysForTargetId(e,n){return this.Nr.Vr(n),q.resolve()}getMatchingKeysForTargetId(e,n){const r=this.Nr.gr(n);return q.resolve(r)}containsKey(e,n){return q.resolve(this.Nr.containsKey(n))}}/** 2544 * @license 2545 * Copyright 2017 Google LLC 2546 * 2547 * Licensed under the Apache License, Version 2.0 (the "License"); 2548 * you may not use this file except in compliance with the License. 2549 * You may obtain a copy of the License at 2550 * 2551 * http://www.apache.org/licenses/LICENSE-2.0 2552 * 2553 * Unless required by applicable law or agreed to in writing, software 2554 * distributed under the License is distributed on an "AS IS" BASIS, 2555 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2556 * See the License for the specific language governing permissions and 2557 * limitations under the License. 2558 */class zq{constructor(e,n){this.Lr={},this.overlays={},this.kr=new UE(0),this.qr=!1,this.qr=!0,this.referenceDelegate=e(this),this.Qr=new Bq(this),this.indexManager=new Aq,this.remoteDocumentCache=function(i){return new jq(i)}(r=>this.referenceDelegate.Kr(r)),this.serializer=new Rq(n),this.$r=new $q(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new Vq,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.Lr[e.toKey()];return r||(r=new Fq(n,this.referenceDelegate),this.Lr[e.toKey()]=r),r}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(e,n,r){ie("MemoryPersistence","Starting transaction:",e);const i=new Wq(this.kr.next());return this.referenceDelegate.Ur(),r(i).next(o=>this.referenceDelegate.Wr(i).next(()=>o)).toPromise().then(o=>(i.raiseOnCommittedEvent(),o))}Gr(e,n){return q.or(Object.values(this.Lr).map(r=>()=>r.containsKey(e,n)))}}class Wq extends IG{constructor(e){super(),this.currentSequenceNumber=e}}class ZE{constructor(e){this.persistence=e,this.zr=new XE,this.jr=null}static Hr(e){return new ZE(e)}get Jr(){if(this.jr)return this.jr;throw we()}addReference(e,n,r){return this.zr.addReference(r,n),this.Jr.delete(r.toString()),q.resolve()}removeReference(e,n,r){return this.zr.removeReference(r,n),this.Jr.add(r.toString()),q.resolve()}markPotentiallyOrphaned(e,n){return this.Jr.add(n.toString()),q.resolve()}removeTarget(e,n){this.zr.Vr(n.targetId).forEach(i=>this.Jr.add(i.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(i=>{i.forEach(o=>this.Jr.add(o.toString()))}).next(()=>r.removeTargetData(e,n))}Ur(){this.jr=new Set}Wr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return q.forEach(this.Jr,r=>{const i=ce.fromPath(r);return this.Yr(e,i).next(o=>{o||n.removeEntry(i,Se.min())})}).next(()=>(this.jr=null,n.apply(e)))}updateLimboDocument(e,n){return this.Yr(e,n).next(r=>{r?this.Jr.delete(n.toString()):this.Jr.add(n.toString())})}Kr(e){return 0}Yr(e,n){return q.or([()=>q.resolve(this.zr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Gr(e,n)])}}/** 2559 * @license 2560 * Copyright 2017 Google LLC 2561 * 2562 * Licensed under the Apache License, Version 2.0 (the "License"); 2563 * you may not use this file except in compliance with the License. 2564 * You may obtain a copy of the License at 2565 * 2566 * http://www.apache.org/licenses/LICENSE-2.0 2567 * 2568 * Unless required by applicable law or agreed to in writing, software 2569 * distributed under the License is distributed on an "AS IS" BASIS, 2570 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2571 * See the License for the specific language governing permissions and 2572 * limitations under the License. 2573 */class JE{constructor(e,n,r,i){this.targetId=e,this.fromCache=n,this.qi=r,this.Qi=i}static Ki(e,n){let r=Fe(),i=Fe();for(const o of n.docChanges)switch(o.type){case 0:r=r.add(o.doc.key);break;case 1:i=i.add(o.doc.key)}return new JE(e,n.fromCache,r,i)}}/** 2574 * @license 2575 * Copyright 2023 Google LLC 2576 * 2577 * Licensed under the Apache License, Version 2.0 (the "License"); 2578 * you may not use this file except in compliance with the License. 2579 * You may obtain a copy of the License at 2580 * 2581 * http://www.apache.org/licenses/LICENSE-2.0 2582 * 2583 * Unless required by applicable law or agreed to in writing, software 2584 * distributed under the License is distributed on an "AS IS" BASIS, 2585 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2586 * See the License for the specific language governing permissions and 2587 * limitations under the License. 2588 */class Hq{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/** 2589 * @license 2590 * Copyright 2019 Google LLC 2591 * 2592 * Licensed under the Apache License, Version 2.0 (the "License"); 2593 * you may not use this file except in compliance with the License. 2594 * You may obtain a copy of the License at 2595 * 2596 * http://www.apache.org/licenses/LICENSE-2.0 2597 * 2598 * Unless required by applicable law or agreed to in writing, software 2599 * distributed under the License is distributed on an "AS IS" BASIS, 2600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2601 * See the License for the specific language governing permissions and 2602 * limitations under the License. 2603 */class Kq{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=8}initialize(e,n){this.zi=e,this.indexManager=n,this.$i=!0}getDocumentsMatchingQuery(e,n,r,i){const o={result:null};return this.ji(e,n).next(s=>{o.result=s}).next(()=>{if(!o.result)return this.Hi(e,n,i,r).next(s=>{o.result=s})}).next(()=>{if(o.result)return;const s=new Hq;return this.Ji(e,n,s).next(a=>{if(o.result=a,this.Ui)return this.Yi(e,n,s,a.size)})}).next(()=>o.result)}Yi(e,n,r,i){return r.documentReadCount<this.Wi?(vu()<=Ue.DEBUG&&ie("QueryEngine","SDK will not create cache indexes for query:",_a(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Wi,"documents"),q.resolve()):(vu()<=Ue.DEBUG&&ie("QueryEngine","Query:",_a(n),"scans",r.documentReadCount,"local documents and returns",i,"documents as results."),r.documentReadCount>this.Gi*i?(vu()<=Ue.DEBUG&&ie("QueryEngine","The SDK decides to create cache indexes for query:",_a(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,ui(n))):q.resolve())}ji(e,n){if(Bx(n))return q.resolve(null);let r=ui(n);return this.indexManager.getIndexType(e,r).next(i=>i===0?null:(n.limit!==null&&i===1&&(n=X0(n,null,"F"),r=ui(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(o=>{const s=Fe(...o);return this.zi.getDocuments(e,s).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const u=this.Zi(n,a);return this.Xi(n,u,s,l.readTime)?this.ji(e,X0(n,null,"F")):this.es(e,u,n,l)}))})))}Hi(e,n,r,i){return Bx(n)||i.isEqual(Se.min())?q.resolve(null):this.zi.getDocuments(e,r).next(o=>{const s=this.Zi(n,o);return this.Xi(n,s,r,i)?q.resolve(null):(vu()<=Ue.DEBUG&&ie("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),_a(n)),this.es(e,s,n,CG(i,-1)).next(a=>a))})}Zi(e,n){let r=new an(PO(e));
2603return n.forEach((i,o)=>{km(e,o)&&(r=r.add(o))}),r}Xi(e,n,r,i){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const o=e.limitType==="F"?n.last():n.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(i)>0)}Ji(e,n,r){return vu()<=Ue.DEBUG&&ie("QueryEngine","Using full collection scan to execute query:",_a(n)),this.zi.getDocumentsMatchingQuery(e,n,zo.min(),r)}es(e,n,r,i){return this.zi.getDocumentsMatchingQuery(e,r,i).next(o=>(n.forEach(s=>{o=o.insert(s.key,s)}),o))}}/** 2604 * @license 2605 * Copyright 2020 Google LLC 2606 * 2607 * Licensed under the Apache License, Version 2.0 (the "License"); 2608 * you may not use this file except in compliance with the License. 2609 * You may obtain a copy of the License at 2610 * 2611 * http://www.apache.org/licenses/LICENSE-2.0 2612 * 2613 * Unless required by applicable law or agreed to in writing, software 2614 * distributed under the License is distributed on an "AS IS" BASIS, 2615 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2616 * See the License for the specific language governing permissions and 2617 * limitations under the License. 2618 */class Gq{constructor(e,n,r,i){this.persistence=e,this.ts=n,this.serializer=i,this.ns=new It(Ye),this.rs=new zl(o=>HE(o),KE),this.ss=new Map,this.os=e.getRemoteDocumentCache(),this.Qr=e.getTargetCache(),this.$r=e.getBundleCache(),this._s(r)}_s(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Nq(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.ns))}}function qq(t,e,n,r){return new Gq(t,e,n,r)}async function qO(t,e){const n=Le(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let i;
2618return n.mutationQueue.getAllMutationBatches(r).next(o=>(i=o,n._s(e),n.mutationQueue.getAllMutationBatches(r))).next(o=>{const s=[],a=[];let l=Fe();for(const u of i){s.push(u.batchId);for(const c of u.mutations)l=l.add(c.key)}for(const u of o){a.push(u.batchId);for(const c of u.mutations)l=l.add(c.key)}return n.localDocuments.getDocuments(r,l).next(u=>({us:u,removedBatchIds:s,addedBatchIds:a}))})})}function Qq(t,e){const n=Le(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),o=n.os.newChangeBuffer({trackRemovals:!0});return function(a,l,u,c){const d=u.batch,h=d.keys();let p=q.resolve();return h.forEach(m=>{p=p.next(()=>c.getEntry(l,m)).next(g=>{const b=u.docVersions.get(m);yt(b!==null),g.version.compareTo(b)<0&&(d.applyToRemoteDocument(g,u),g.isValidDocument()&&(g.setReadTime(u.commitVersion),c.addEntry(g)))})}),p.next(()=>a.mutationQueue.removeMutationBatch(l,d))}(n,r,e,o).next(()=>o.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=Fe();for(let u=0;u<a.mutationResults.length;++u)a.mutationResults[u].transformResults.length>0&&(l=l.add(a.batch.mutations[u].key));return l}(e))).next(()=>n.localDocuments.getDocuments(r,i))})}function QO(t){const e=Le(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.Qr.getLastRemoteSnapshotVersion(n))}function Yq(t,e){const n=Le(t),r=e.snapshotVersion;let i=n.ns;return n.persistence.runTransaction("Apply remote event","readwrite-primary",o=>{const s=n.os.newChangeBuffer({trackRemovals:!0});i=n.ns;const a=[];
2618e.targetChanges.forEach((c,d)=>{const h=i.get(d);if(!h)return;a.push(n.Qr.removeMatchingKeys(o,c.removedDocuments,d).next(()=>n.Qr.addMatchingKeys(o,c.addedDocuments,d)));let p=h.withSequenceNumber(o.currentSequenceNumber);e.targetMismatches.get(d)!==null?p=p.withResumeToken(Sn.EMPTY_BYTE_STRING,Se.min()).withLastLimboFreeSnapshotVersion(Se.min()):c.resumeToken.approximateByteSize()>0&&(p=p.withResumeToken(c.resumeToken,r)),i=i.insert(d,p),function(g,b,w){return g.resumeToken.approximateByteSize()===0||b.snapshotVersion.toMicroseconds()-g.snapshotVersion.toMicroseconds()>=3e8?!0:w.addedDocuments.size+w.modifiedDocuments.size+w.removedDocuments.size>0}(h,p,c)&&a.push(n.Qr.updateTargetData(o,p))});let l=Bi(),u=Fe();if(e.documentUpdates.forEach(c=>{e.resolvedLimboDocuments.has(c)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(o,c))}),a.push(Xq(o,s,e.documentUpdates).next(c=>{l=c.cs,u=c.ls})),!r.isEqual(Se.min())){const c=n.Qr.getLastRemoteSnapshotVersion(o).next(d=>n.Qr.setTargetsMetadata(o,o.currentSequenceNumber,r));a.push(c)}return q.waitFor(a).next(()=>s.apply(o)).next(()=>n.localDocuments.getLocalViewOfDocuments(o,l,u)).next(()=>l)}).then(o=>(n.ns=i,o))}function Xq(t,e,n){let r=Fe(),i=Fe();return n.forEach(o=>r=r.add(o)),e.getEntries(t,r).next(o=>{let s=Bi();return n.forEach((a,l)=>{const u=o.get(a);l.isFoundDocument()!==u.isFoundDocument()&&(i=i.add(a)),l.isNoDocument()&&l.version.isEqual(Se.min())?(e.removeEntry(a,l.readTime),s=s.insert(a,l)):!u.isValidDocument()||l.version.compareTo(u.version)>0||l.version.compareTo(u.version)===0&&u.hasPendingWrites?(e.addEntry(l),s=s.insert(a,l)):ie("LocalStore","Ignoring outdated watch update for ",a,". Current version:",u.version," Watch version:",l.version)}),{cs:s,ls:i}})}function Zq(t,e){const n=Le(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function Jq(t,e){const n=Le(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return n.Qr.getTargetData(r,e).next(o=>o?(i=o,q.resolve(i)):n.Qr.allocateTargetId(r).next(s=>(i=new yo(e,s,"TargetPurposeListen",r.currentSequenceNumber),n.Qr.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=n.ns.get(r.targetId);return(i===null||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.ns=n.ns.insert(r.targetId,r),n.rs.set(e,r.targetId)),r})}async function nw(t,e,n){const r=Le(t),i=r.ns.get(e),o=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",o,s=>r.persistence.referenceDelegate.removeTarget(s,i))}catch(s){if(!Pd(s))throw s;ie("LocalStore",`Failed to update sequence numbers for target ${e}: ${s}`)}r.ns=r.ns.remove(e),r.rs.delete(i.target)}function Jx(t,e,n){const r=Le(t);let i=Se.min(),o=Fe();return r.persistence.runTransaction("Execute query","readwrite",s=>function(l,u,c){const d=Le(l),h=d.rs.get(c);return h!==void 0?q.resolve(d.ns.get(h)):d.Qr.getTargetData(u,c)}(r,s,ui(e)).next(a=>{if(a)return i=a.lastLimboFreeSnapshotVersion,r.Qr.getMatchingKeysForTargetId(s,a.targetId).next(l=>{o=l})}).next(()=>r.ts.getDocumentsMatchingQuery(s,e,n?i:Se.min(),n?o:Fe())).next(a=>(eQ(r,HG(e),a),{documents:a,hs:o})))}function eQ(t,e,n){let r=t.ss.get(e)||Se.min();n.forEach((i,o)=>{o.readTime.compareTo(r)>0&&(r=o.readTime)}),t.ss.set(e,r)}class eT{constructor(){this.activeTargetIds=XG()}As(e){this.activeTargetIds=this.activeTargetIds.add(e)}Rs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}ds(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class tQ{constructor(){this.no=new eT,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e){return this.no.As(e),this.ro[e]||"not-current"}updateQueryState(e,n,r){this.ro[e]=n}removeLocalQueryTarget(e){this.no.Rs(e)}isLocalQueryTarget(e){return this.no.activeTargetIds.has(e)}clearQueryState(e){delete this.ro[e]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(e){return this.no.activeTargetIds.has(e)}start(){return this.no=new eT,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** 2619 * @license 2620 * Copyright 2019 Google LLC 2621 * 2622 * Licensed under the Apache License, Version 2.0 (the "License");
2623 * you may not use this file except in compliance with the License. 2624 * You may obtain a copy of the License at 2625 * 2626 * http://www.apache.org/licenses/LICENSE-2.0 2627 * 2628 * Unless required by applicable law or agreed to in writing, software 2629 * distributed under the License is distributed on an "AS IS" BASIS, 2630 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2631 * See the License for the specific language governing permissions and 2632 * limitations under the License. 2633 */class nQ{io(e){}shutdown(){}}/** 2634 * @license 2635 * Copyright 2019 Google LLC 2636 * 2637 * Licensed under the Apache License, Version 2.0 (the "License"); 2638 * you may not use this file except in compliance with the License. 2639 * You may obtain a copy of the License at 2640 * 2641 * http://www.apache.org/licenses/LICENSE-2.0 2642 * 2643 * Unless required by applicable law or agreed to in writing, software 2644 * distributed under the License is distributed on an "AS IS" BASIS, 2645 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2646 * See the License for the specific language governing permissions and 2647 * limitations under the License. 2648 */class tT{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(e){this.uo.push(e)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){ie("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.uo)e(0)}ao(){ie("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.uo)e(1)}static C(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** 2649 * @license 2650 * Copyright 2023 Google LLC 2651 * 2652 * Licensed under the Apache License, Version 2.0 (the "License"); 2653 * you may not use this file except in compliance with the License. 2654 * You may obtain a copy of the License at 2655 * 2656 * http://www.apache.org/licenses/LICENSE-2.0 2657 * 2658 * Unless required by applicable law or agreed to in writing, software 2659 * distributed under the License is distributed on an "AS IS" BASIS, 2660 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2661 * See the License for the specific language governing permissions and 2662 * limitations under the License. 2663 */let Lf=null;function Dv(){return Lf===null?Lf=function(){return 268435456+Math.round(2147483648*Math.random())}():Lf++,"0x"+Lf.toString(16)}/** 2664 * @license 2665 * Copyright 2020 Google LLC 2666 * 2667 * Licensed under the Apache License, Version 2.0 (the "License"); 2668 * you may not use this file except in compliance with the License. 2669 * You may obtain a copy of the License at 2670 * 2671 * http://www.apache.org/licenses/LICENSE-2.0 2672 * 2673 * Unless required by applicable law or agreed to in writing, software 2674 * distributed under the License is distributed on an "AS IS" BASIS, 2675 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2676 * See the License for the specific language governing permissions and 2677 * limitations under the License. 2678 */const rQ={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};/** 2679 * @license 2680 * Copyright 2017 Google LLC 2681 * 2682 * Licensed under the Apache License, Version 2.0 (the "License"); 2683 * you may not use this file except in compliance with the License. 2684 * You may obtain a copy of the License at 2685 * 2686 * http://www.apache.org/licenses/LICENSE-2.0 2687 * 2688 * Unless required by applicable law or agreed to in writing, software 2689 * distributed under the License is distributed on an "AS IS" BASIS, 2690 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2691 * See the License for the specific language governing permissions and 2692 * limitations under the License. 2693 */class iQ{constructor(e){this.lo=e.lo,this.ho=e.ho}Po(e){this.Io=e}To(e){this.Eo=e}onMessage(e){this.Ao=e}close(){this.ho()}send(e){this.lo(e)}Ro(){this.Io()}Vo(e){this.Eo(e)}mo(e){this.Ao(e)}}/** 2694 * @license 2695 * Copyright 2017 Google LLC 2696 * 2697 * Licensed under the Apache License, Version 2.0 (the "License");
2698 * you may not use this file except in compliance with the License. 2699 * You may obtain a copy of the License at 2700 * 2701 * http://www.apache.org/licenses/LICENSE-2.0 2702 * 2703 * Unless required by applicable law or agreed to in writing, software 2704 * distributed under the License is distributed on an "AS IS" BASIS, 2705 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2706 * See the License for the specific language governing permissions and 2707 * limitations under the License. 2708 */const fn="WebChannelConnection";class oQ extends class{constructor(n){this.databaseInfo=n,this.databaseId=n.databaseId;const r=n.ssl?"https":"http",i=encodeURIComponent(this.databaseId.projectId),o=encodeURIComponent(this.databaseId.database);this.fo=r+"://"+n.host,this.po=`projects/${i}/databases/${o}`,this.yo=this.databaseId.database==="(default)"?`project_id=${i}`:`project_id=${i}&database_id=${o}`}get wo(){return!1}So(n,r,i,o,s){const a=Dv(),l=this.bo(n,r);ie("RestConnection",`Sending RPC '${n}' ${a}:`,l,i);const u={"google-cloud-resource-prefix":this.po,"x-goog-request-params":this.yo};return this.Do(u,o,s),this.Co(n,l,u,i).then(c=>(ie("RestConnection",`Received RPC '${n}' ${a}: `,c),c),c=>{throw yl("RestConnection",`RPC '${n}' ${a} failed with error: `,c,"url: ",l,"request:",i),c})}vo(n,r,i,o,s,a){return this.So(n,r,i,o,s)}Do(n,r,i){n["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+Ul}(),n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),r&&r.headers.forEach((o,s)=>n[s]=o),i&&i.headers.forEach((o,s)=>n[s]=o)}bo(n,r){const i=rQ[n];return`${this.fo}/v1/${r}:${i}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Co(e,n,r,i){const o=Dv();return new Promise((s,a)=>{const l=new hG;l.setWithCredentials(!0),l.listenOnce(dG.COMPLETE,()=>{try{switch(l.getLastErrorCode()){case Av.NO_ERROR:const c=l.getResponseJson();ie(fn,`XHR for RPC '${e}' ${o} received:`,JSON.stringify(c)),s(c);break;case Av.TIMEOUT:ie(fn,`RPC '${e}' ${o} timed out`),a(new oe(H.DEADLINE_EXCEEDED,"Request time out"));break;case Av.HTTP_ERROR:const d=l.getStatus();if(ie(fn,`RPC '${e}' ${o} failed with status:`,d,"response text:",l.getResponseText()),d>0){let h=l.getResponseJson();Array.isArray(h)&&(h=h[0]);const p=h==null?void 0:h.error;if(p&&p.status&&p.message){const m=function(b){const w=b.toLowerCase().replace(/_/g,"-");return Object.values(H).indexOf(w)>=0?w:H.UNKNOWN}(p.status);a(new oe(m,p.message))}else a(new oe(H.UNKNOWN,"Server responded with status "+l.getStatus()))}else a(new oe(H.UNAVAILABLE,"Connection failed."));break;default:we()}}finally{ie(fn,`RPC '${e}' ${o} completed.`)}});const u=JSON.stringify(i);ie(fn,`RPC '${e}' ${o} sending request:`,i),l.send(n,"POST",u,r,15)})}Fo(e,n,r){const i=Dv(),o=[this.fo,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=uG(),a=cG(),l={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},u=this.longPollingOptions.timeoutSeconds;u!==void 0&&(l.longPollingTimeout=Math.round(1e3*u)),this.useFetchStreams&&(l.useFetchStreams=!0),this.Do(l.initMessageHeaders,n,r),l.encodeInitMessageHeaders=!0;const c=o.join("");ie(fn,`Creating RPC '${e}' stream ${i}: ${c}`,l);const d=s.createWebChannel(c,l);let h=!1,p=!1;const m=new iQ({lo:b=>{p?ie(fn,`Not sending because RPC '${e}' stream ${i} is closed:`,b):(h||(ie(fn,`Opening RPC '${e}' stream ${i} transport.`),d.open(),h=!0),ie(fn,`RPC '${e}' stream ${i} sending:`,b),d.send(b))},ho:()=>d.close()}),g=(b,w,v)=>{b.listen(w,y=>{try{v(y)}catch(E){setTimeout(()=>{throw E},0)}})};return g(d,Tf.EventType.OPEN,()=>{p||ie(fn,`RPC '${e}' stream ${i} transport opened.`)}),g(d,Tf.EventType.CLOSE,()=>{p||(p=!0,ie(fn,`RPC '${e}' stream ${i} transport closed`),m.Vo())}
2708),g(d,Tf.EventType.ERROR,b=>{p||(p=!0,yl(fn,`RPC '${e}' stream ${i} transport errored:`,b),m.Vo(new oe(H.UNAVAILABLE,"The operation could not be completed")))}),g(d,Tf.EventType.MESSAGE,b=>{var w;if(!p){const v=b.data[0];yt(!!v);const y=v,E=y.error||((w=y[0])===null||w===void 0?void 0:w.error);if(E){ie(fn,`RPC '${e}' stream ${i} received error:`,E);const C=E.status;let S=function(k){const L=$t[k];if(L!==void 0)return FO(L)}(C),P=E.message;S===void 0&&(S=H.INTERNAL,P="Unknown error status: "+C+" with message "+E.message),p=!0,m.Vo(new oe(S,P)),d.close()}else ie(fn,`RPC '${e}' stream ${i} received:`,v),m.mo(v)}}),g(a,fG.STAT_EVENT,b=>{b.stat===kx.PROXY?ie(fn,`RPC '${e}' stream ${i} detected buffering proxy`):b.stat===kx.NOPROXY&&ie(fn,`RPC '${e}' stream ${i} detected no buffering proxy`)}),setTimeout(()=>{m.Ro()},0),m}}function Ov(){return typeof document<"u"?document:null}/** 2709 * @license 2710 * Copyright 2020 Google LLC 2711 * 2712 * Licensed under the Apache License, Version 2.0 (the "License"); 2713 * you may not use this file except in compliance with the License. 2714 * You may obtain a copy of the License at 2715 * 2716 * http://www.apache.org/licenses/LICENSE-2.0 2717 * 2718 * Unless required by applicable law or agreed to in writing, software 2719 * distributed under the License is distributed on an "AS IS" BASIS, 2720 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2721 * See the License for the specific language governing permissions and 2722 * limitations under the License. 2723 */function Om(t){return new gq(t,!0)}/** 2724 * @license 2725 * Copyright 2017 Google LLC 2726 * 2727 * Licensed under the Apache License, Version 2.0 (the "License"); 2728 * you may not use this file except in compliance with the License. 2729 * You may obtain a copy of the License at 2730 * 2731 * http://www.apache.org/licenses/LICENSE-2.0 2732 * 2733 * Unless required by applicable law or agreed to in writing, software 2734 * distributed under the License is distributed on an "AS IS" BASIS, 2735 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2736 * See the License for the specific language governing permissions and 2737 * limitations under the License. 2738 */class YO{constructor(e,n,r=1e3,i=1.5,o=6e4){this.oi=e,this.timerId=n,this.Mo=r,this.xo=i,this.Oo=o,this.No=0,this.Bo=null,this.Lo=Date.now(),this.reset()}reset(){this.No=0}ko(){this.No=this.Oo}qo(e){this.cancel();const n=Math.floor(this.No+this.Qo()),r=Math.max(0,Date.now()-this.Lo),i=Math.max(0,n-r);i>0&&ie("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.No} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.Bo=this.oi.enqueueAfterDelay(this.timerId,i,()=>(this.Lo=Date.now(),e())),this.No*=this.xo,this.No<this.Mo&&(this.No=this.Mo),this.No>this.Oo&&(this.No=this.Oo)}Ko(){this.Bo!==null&&(this.Bo.skipDelay(),this.Bo=null)}cancel(){this.Bo!==null&&(this.Bo.cancel(),this.Bo=null)}Qo(){return(Math.random()-.5)*this.No}}/** 2739 * @license 2740 * Copyright 2017 Google LLC 2741 * 2742 * Licensed under the Apache License, Version 2.0 (the "License"); 2743 * you may not use this file except in compliance with the License. 2744 * You may obtain a copy of the License at 2745 * 2746 * http://www.apache.org/licenses/LICENSE-2.0 2747 * 2748 * Unless required by applicable law or agreed to in writing, software 2749 * distributed under the License is distributed on an "AS IS" BASIS, 2750 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2751 * See the License for the specific language governing permissions and 2752 * limitations under the License. 2753 */class XO{constructor(e,n,r,i,o,s,a,l){this.oi=e,this.$o=r,this.Uo=i,this.connection=o,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=l,this.state=0,this.Wo=0,this.Go=null,this.zo=null,this.stream=null,this.jo=new YO(e,n)}Ho(){return this.state===1||this.state===5||this.Jo()}Jo(){return this.state===2||this.state===3}start(){this.state!==4?this.auth():this.Yo()}async stop(){this.Ho()&&await this.close(0)}Zo(){this.state=0,this.jo.reset()}Xo(){this.Jo()&&this.Go===null&&(this.Go=this.oi.enqueueAfterDelay(this.$o,6e4,()=>this.e_()))}t_(e){this.n_(),this.stream.send(e)}async e_(){if(this.Jo())return this.close(0)}
2753n_(){this.Go&&(this.Go.cancel(),this.Go=null)}r_(){this.zo&&(this.zo.cancel(),this.zo=null)}async close(e,n){this.n_(),this.r_(),this.jo.cancel(),this.Wo++,e!==4?this.jo.reset():n&&n.code===H.RESOURCE_EXHAUSTED?(Ui(n.toString()),Ui("Using maximum backoff delay to prevent overloading the backend."),this.jo.ko()):n&&n.code===H.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.i_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.To(n)}i_(){}auth(){this.state=1;const e=this.s_(this.Wo),n=this.Wo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,i])=>{this.Wo===n&&this.o_(r,i)},r=>{e(()=>{const i=new oe(H.UNKNOWN,"Fetching auth token failed: "+r.message);return this.__(i)})})}o_(e,n){const r=this.s_(this.Wo);this.stream=this.a_(e,n),this.stream.Po(()=>{r(()=>(this.state=2,this.zo=this.oi.enqueueAfterDelay(this.Uo,1e4,()=>(this.Jo()&&(this.state=3),Promise.resolve())),this.listener.Po()))}),this.stream.To(i=>{r(()=>this.__(i))}),this.stream.onMessage(i=>{r(()=>this.onMessage(i))})}Yo(){this.state=5,this.jo.qo(async()=>{this.state=0,this.start()})}__(e){return ie("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}s_(e){return n=>{this.oi.enqueueAndForget(()=>this.Wo===e?n():(ie("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class sQ extends XO{constructor(e,n,r,i,o,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,i,s),this.serializer=o}a_(e,n){return this.connection.Fo("Listen",e,n)}onMessage(e){this.jo.reset();const n=wq(this.serializer,e),r=function(o){if(!("targetChange"in o))return Se.min();const s=o.targetChange;return s.targetIds&&s.targetIds.length?Se.min():s.readTime?di(s.readTime):Se.min()}(e);return this.listener.u_(n,r)}c_(e){const n={};n.database=tw(this.serializer),n.addTarget=function(o,s){let a;const l=s.target;if(a=Q0(l)?{documents:_q(o,l)}:{query:Sq(o,l)},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=BO(o,s.resumeToken);const u=Z0(o,s.expectedCount);u!==null&&(a.expectedCount=u)}else if(s.snapshotVersion.compareTo(Se.min())>0){a.readTime=Ep(o,s.snapshotVersion.toTimestamp());const u=Z0(o,s.expectedCount);u!==null&&(a.expectedCount=u)}return a}(this.serializer,e);const r=xq(this.serializer,e);r&&(n.labels=r),this.t_(n)}l_(e){const n={};n.database=tw(this.serializer),n.removeTarget=e,this.t_(n)}}class aQ extends XO{constructor(e,n,r,i,o,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,i,s),this.serializer=o,this.h_=!1}get P_(){return this.h_}start(){this.h_=!1,this.lastStreamToken=void 0,super.start()}i_(){this.h_&&this.I_([])}a_(e,n){return this.connection.Fo("Write",e,n)}onMessage(e){if(yt(!!e.streamToken),this.lastStreamToken=e.streamToken,this.h_){this.jo.reset();const n=Eq(e.writeResults,e.commitTime),r=di(e.commitTime);return this.listener.T_(r,n)}return yt(!e.writeResults||e.writeResults.length===0),this.h_=!0,this.listener.E_()}d_(){const e={};e.database=tw(this.serializer),this.t_(e)}I_(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>bq(this.serializer,r))};this.t_(n)}}/** 2754 * @license 2755 * Copyright 2017 Google LLC 2756 * 2757 * Licensed under the Apache License, Version 2.0 (the "License"); 2758 * you may not use this file except in compliance with the License. 2759 * You may obtain a copy of the License at 2760 * 2761 * http://www.apache.org/licenses/LICENSE-2.0 2762 * 2763 * Unless required by applicable law or agreed to in writing, software 2764 * distributed under the License is distributed on an "AS IS" BASIS, 2765 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2766 * See the License for the specific language governing permissions and 2767 * limitations under the License. 2768 */class lQ extends class{}{constructor(e,n,r,i){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=i,this.A_=!1}R_(){if(this.A_)throw new oe(H.FAILED_PRECONDITION,"The client has already been terminated.")}So(e,n,r){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,o])=>this.connection.So(e,n,r,i,o)).catch(i=>{throw i.name==="FirebaseError"?(i.code===H.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new oe(H.UNKNOWN,i.toString())})}vo(e,n,r,i){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,s])=>this.connection.vo(e,n,r,o,s,i)).catch(o=>{throw o.name==="FirebaseError"?(o.code===H.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new oe(H.UNKNOWN,o.toString())})}terminate(){this.A_=!0}}class uQ{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.m_=0,this.f_=null,this.g_=!0}p_(){this.m_===0&&(this.y_("Unknown"),this.f_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.f_=null,this.w_("Backend didn't respond within 10 seconds."),this.y_("Offline"),Promise.resolve())))}S_(e){this.state==="Online"?this.y_("Unknown"):(this.m_++,this.m_>=1&&(this.b_(),this.w_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.y_("Offline")))}set(e){this.b_(),this.m_=0,e==="Online"&&(this.g_=!1),this.y_(e)}y_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}w_(e){const n=`Could not reach Cloud Firestore backend. ${e} 2769This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.g_?(Ui(n),this.g_=!1):ie("OnlineStateTracker",n)}b_(){this.f_!==null&&(this.f_.cancel(),this.f_=null)}}/** 2770 * @license 2771 * Copyright 2017 Google LLC 2772 * 2773 * Licensed under the Apache License, Version 2.0 (the "License");
2774 * you may not use this file except in compliance with the License. 2775 * You may obtain a copy of the License at 2776 * 2777 * http://www.apache.org/licenses/LICENSE-2.0 2778 * 2779 * Unless required by applicable law or agreed to in writing, software 2780 * distributed under the License is distributed on an "AS IS" BASIS, 2781 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2782 * See the License for the specific language governing permissions and 2783 * limitations under the License. 2784 */class cQ{constructor(e,n,r,i,o){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.D_=[],this.C_=new Map,this.v_=new Set,this.F_=[],this.M_=o,this.M_.io(s=>{r.enqueueAndForget(async()=>{aa(this)&&(ie("RemoteStore","Restarting streams for network reachability change."),await async function(l){const u=Le(l);u.v_.add(4),await kd(u),u.x_.set("Unknown"),u.v_.delete(4),await Nm(u)}(this))})}),this.x_=new uQ(r,i)}}async function Nm(t){if(aa(t))for(const e of t.F_)await e(!0)}async function kd(t){for(const e of t.F_)await e(!1)}function ZO(t,e){const n=Le(t);n.C_.has(e.targetId)||(n.C_.set(e.targetId,e),n_(n)?t_(n):Wl(n).Jo()&&e_(n,e))}function JO(t,e){const n=Le(t),r=Wl(n);n.C_.delete(e),r.Jo()&&e2(n,e),n.C_.size===0&&(r.Jo()?r.Xo():aa(n)&&n.x_.set("Unknown"))}function e_(t,e){if(t.O_.Ne(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Se.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}Wl(t).c_(e)}function e2(t,e){t.O_.Ne(e),Wl(t).l_(e)}function t_(t){t.O_=new fq({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),ut:e=>t.C_.get(e)||null,rt:()=>t.datastore.serializer.databaseId}),Wl(t).start(),t.x_.p_()}function n_(t){return aa(t)&&!Wl(t).Ho()&&t.C_.size>0}function aa(t){return Le(t).v_.size===0}function t2(t){t.O_=void 0}async function dQ(t){t.C_.forEach((e,n)=>{e_(t,e)})}async function fQ(t,e){t2(t),n_(t)?(t.x_.S_(e),t_(t)):t.x_.set("Unknown")}async function hQ(t,e,n){if(t.x_.set("Online"),e instanceof UO&&e.state===2&&e.cause)try{await async function(i,o){const s=o.cause;for(const a of o.targetIds)i.C_.has(a)&&(await i.remoteSyncer.rejectListen(a,s),i.C_.delete(a),i.O_.removeTarget(a))}(t,e)}catch(r){ie("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),await _p(t,r)}else if(e instanceof rh?t.O_.Ue(e):e instanceof jO?t.O_.Ye(e):t.O_.ze(e),!n.isEqual(Se.min()))try{const r=await QO(t.localStore);n.compareTo(r)>=0&&await function(o,s){const a=o.O_.st(s);
2784return a.targetChanges.forEach((l,u)=>{if(l.resumeToken.approximateByteSize()>0){const c=o.C_.get(u);c&&o.C_.set(u,c.withResumeToken(l.resumeToken,s))}}),a.targetMismatches.forEach((l,u)=>{const c=o.C_.get(l);if(!c)return;o.C_.set(l,c.withResumeToken(Sn.EMPTY_BYTE_STRING,c.snapshotVersion)),e2(o,l);const d=new yo(c.target,l,u,c.sequenceNumber);e_(o,d)}),o.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(r){ie("RemoteStore","Failed to raise snapshot:",r),await _p(t,r)}}async function _p(t,e,n){if(!Pd(e))throw e;t.v_.add(1),await kd(t),t.x_.set("Offline"),n||(n=()=>QO(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{ie("RemoteStore","Retrying IndexedDB access"),await n(),t.v_.delete(1),await Nm(t)})}function n2(t,e){return e().catch(n=>_p(t,n,e))}async function $m(t){const e=Le(t),n=Ho(e);let r=e.D_.length>0?e.D_[e.D_.length-1].batchId:-1;for(;pQ(e);)try{const i=await Zq(e.localStore,r);if(i===null){e.D_.length===0&&n.Xo();break}r=i.batchId,mQ(e,i)}catch(i){await _p(e,i)}r2(e)&&i2(e)}function pQ(t){return aa(t)&&t.D_.length<10}function mQ(t,e){t.D_.push(e);const n=Ho(t);n.Jo()&&n.P_&&n.I_(e.mutations)}function r2(t){return aa(t)&&!Ho(t).Ho()&&t.D_.length>0}function i2(t){Ho(t).start()}async function gQ(t){Ho(t).d_()}async function vQ(t){const e=Ho(t);for(const n of t.D_)e.I_(n.mutations)}async function yQ(t,e,n){const r=t.D_.shift(),i=qE.from(r,e,n);await n2(t,()=>t.remoteSyncer.applySuccessfulWrite(i)),await $m(t)}async function wQ(t,e){e&&Ho(t).P_&&await async function(r,i){if(function(s){return uq(s)&&s!==H.ABORTED}(i.code)){const o=r.D_.shift();Ho(r).Zo(),await n2(r,()=>r.remoteSyncer.rejectFailedWrite(o.batchId,i)),await $m(r)}}(t,e),r2(t)&&i2(t)}async function nT(t,e){const n=Le(t);n.asyncQueue.verifyOperationInProgress(),ie("RemoteStore","RemoteStore received new credentials");const r=aa(n);n.v_.add(3),await kd(n),r&&n.x_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.v_.delete(3),await Nm(n)}async function bQ(t,e){const n=Le(t);e?(n.v_.delete(2),await Nm(n)):e||(n.v_.add(2),await kd(n),n.x_.set("Unknown"))}function Wl(t){return t.N_||(t.N_=function(n,r,i){const o=Le(n);return o.R_(),new sQ(r,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,i)}(t.datastore,t.asyncQueue,{Po:dQ.bind(null,t),To:fQ.bind(null,t),u_:hQ.bind(null,t)}),t.F_.push(async e=>{e?(t.N_.Zo(),n_(t)?t_(t):t.x_.set("Unknown")):(await t.N_.stop(),t2(t))})),t.N_}function Ho(t){return t.B_||(t.B_=function(n,r,i){const o=Le(n);return o.R_(),new aQ(r,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,i)}(t.datastore,t.asyncQueue,{Po:gQ.bind(null,t),To:wQ.bind(null,t),E_:vQ.bind(null,t),T_:yQ.bind(null,t)}),t.F_.push(async e=>{e?(t.B_.Zo(),await $m(t)):(await t.B_.stop(),t.D_.length>0&&(ie("RemoteStore",`Stopping write stream with ${t.D_.length} pending writes`),t.D_=[]))})),t.B_}/** 2785 * @license 2786 * Copyright 2017 Google LLC 2787 * 2788 * Licensed under the Apache License, Version 2.0 (the "License"); 2789 * you may not use this file except in compliance with the License. 2790 * You may obtain a copy of the License at 2791 * 2792 * http://www.apache.org/licenses/LICENSE-2.0 2793 * 2794 * Unless required by applicable law or agreed to in writing, software 2795 * distributed under the License is distributed on an "AS IS" BASIS, 2796 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2797 * See the License for the specific language governing permissions and 2798 * limitations under the License. 2799 */class r_{constructor(e,n,r,i,o){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=o,this.deferred=new Ao,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,i,o){const s=Date.now()+r,a=new r_(e,n,s,i,o);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new oe(H.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function i_(t,e){if(Ui("AsyncQueue",`${e}: ${t}`),Pd(t))return new oe(H.UNAVAILABLE,`${e}: ${t}`);throw t}/** 2800 * @license 2801 * Copyright 2017 Google LLC 2802 * 2803 * Licensed under the Apache License, Version 2.0 (the "License");
2804 * you may not use this file except in compliance with the License. 2805 * You may obtain a copy of the License at 2806 * 2807 * http://www.apache.org/licenses/LICENSE-2.0 2808 * 2809 * Unless required by applicable law or agreed to in writing, software 2810 * distributed under the License is distributed on an "AS IS" BASIS, 2811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2812 * See the License for the specific language governing permissions and 2813 * limitations under the License. 2814 */class rl{constructor(e){this.comparator=e?(n,r)=>e(n,r)||ce.comparator(n.key,r.key):(n,r)=>ce.comparator(n.key,r.key),this.keyedMap=Mu(),this.sortedSet=new It(this.comparator)}static emptySet(e){return new rl(e.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((n,r)=>(e(n),!1))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof rl)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0}toString(){const e=[];return this.forEach(n=>{e.push(n.toString())}),e.length===0?"DocumentSet ()":`DocumentSet ( 2815 `+e.join(` 2816`)+` 2817)`}copy(e,n){const r=new rl;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}/** 2818 * @license 2819 * Copyright 2017 Google LLC 2820 * 2821 * Licensed under the Apache License, Version 2.0 (the "License"); 2822 * you may not use this file except in compliance with the License. 2823 * You may obtain a copy of the License at 2824 * 2825 * http://www.apache.org/licenses/LICENSE-2.0 2826 * 2827 * Unless required by applicable law or agreed to in writing, software 2828 * distributed under the License is distributed on an "AS IS" BASIS, 2829 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2830 * See the License for the specific language governing permissions and 2831 * limitations under the License. 2832 */class rT{constructor(){this.L_=new It(ce.comparator)}track(e){const n=e.doc.key,r=this.L_.get(n);r?e.type!==0&&r.type===3?this.L_=this.L_.insert(n,e):e.type===3&&r.type!==1?this.L_=this.L_.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.L_=this.L_.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.L_=this.L_.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.L_=this.L_.remove(n):e.type===1&&r.type===2?this.L_=this.L_.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.L_=this.L_.insert(n,{type:2,doc:e.doc}):we():this.L_=this.L_.insert(n,e)}k_(){const e=[];return this.L_.inorderTraversal((n,r)=>{e.push(r)}),e}}class Sl{constructor(e,n,r,i,o,s,a,l,u){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=o,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=u}static fromInitialDocuments(e,n,r,i,o){const s=[];return n.forEach(a=>{s.push({type:0,doc:a})}),new Sl(e,n,rl.emptySet(n),s,r,i,!0,!1,o)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Rm(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(n[i].type!==r[i].type||!n[i].doc.isEqual(r[i].doc))return!1;return!0}}/** 2833 * @license 2834 * Copyright 2017 Google LLC 2835 * 2836 * Licensed under the Apache License, Version 2.0 (the "License"); 2837 * you may not use this file except in compliance with the License. 2838 * You may obtain a copy of the License at 2839 * 2840 * http://www.apache.org/licenses/LICENSE-2.0 2841 * 2842 * Unless required by applicable law or agreed to in writing, softw
2842are 2843 * distributed under the License is distributed on an "AS IS" BASIS, 2844 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2845 * See the License for the specific language governing permissions and 2846 * limitations under the License. 2847 */class EQ{constructor(){this.q_=void 0,this.listeners=[]}}class _Q{constructor(){this.queries=new zl(e=>TO(e),Rm),this.onlineState="Unknown",this.Q_=new Set}}async function SQ(t,e){const n=Le(t),r=e.query;let i=!1,o=n.queries.get(r);if(o||(i=!0,o=new EQ),i)try{o.q_=await n.onListen(r)}catch(s){const a=i_(s,`Initialization of query '${_a(e.query)}' failed`);return void e.onError(a)}n.queries.set(r,o),o.listeners.push(e),e.K_(n.onlineState),o.q_&&e.U_(o.q_)&&o_(n)}async function CQ(t,e){const n=Le(t),r=e.query;let i=!1;const o=n.queries.get(r);if(o){const s=o.listeners.indexOf(e);s>=0&&(o.listeners.splice(s,1),i=o.listeners.length===0)}if(i)return n.queries.delete(r),n.onUnlisten(r)}function xQ(t,e){const n=Le(t);let r=!1;for(const i of e){const o=i.query,s=n.queries.get(o);if(s){for(const a of s.listeners)a.U_(i)&&(r=!0);s.q_=i}}r&&o_(n)}function TQ(t,e,n){const r=Le(t),i=r.queries.get(e);if(i)for(const o of i.listeners)o.onError(n);r.queries.delete(e)}function o_(t){t.Q_.forEach(e=>{e.next()})}class PQ{constructor(e,n,r){this.query=e,this.W_=n,this.G_=!1,this.z_=null,this.onlineState="Unknown",this.options=r||{}}U_(e){if(!this.options.includeMetadataChanges){const r=[];for(const i of e.docChanges)i.type!==3&&r.push(i);e=new Sl(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.G_?this.j_(e)&&(this.W_.next(e),n=!0):this.H_(e,this.onlineState)&&(this.J_(e),n=!0),this.z_=e,n}onError(e){this.W_.error(e)}K_(e){this.onlineState=e;let n=!1;return this.z_&&!this.G_&&this.H_(this.z_,e)&&(this.J_(this.z_),n=!0),n}H_(e,n){if(!e.fromCache)return!0;const r=n!=="Offline";return(!this.options.Y_||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}j_(e){if(e.docChanges.length>0)return!0;const n=this.z_&&this.z_.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}J_(e){e=Sl.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.G_=!0,this.W_.next(e)}}/** 2848 * @license 2849 * Copyright 2017 Google LLC 2850 * 2851 * Licensed under the Apache License, Version 2.0 (the "License"); 2852 * you may not use this file except in compliance with the License. 2853 * You may obtain a copy of the License at 2854 * 2855 * http://www.apache.org/licenses/LICENSE-2.0 2856 * 2857 * Unless required by applicable law or agreed to in writing, software 2858 * distributed under the License is distributed on an "AS IS" BASIS, 2859 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2860 * See the License for the specific language governing permissions and 2861 * limitations under the License. 2862 */class o2{constructor(e){this.key=e}}class s2{constructor(e){this.key=e}}class IQ{constructor(e,n){this.query=e,this.sa=n,this.oa=null,this.hasCachedResults=!1,this.current=!1,this._a=Fe(),this.mutatedKeys=Fe(),this.aa=PO(e),this.ua=new rl(this.aa)}get ca(){return this.sa}
2862la(e,n){const r=n?n.ha:new rT,i=n?n.ua:this.ua;let o=n?n.mutatedKeys:this.mutatedKeys,s=i,a=!1;const l=this.query.limitType==="F"&&i.size===this.query.limit?i.last():null,u=this.query.limitType==="L"&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((c,d)=>{const h=i.get(c),p=km(this.query,d)?d:null,m=!!h&&this.mutatedKeys.has(h.key),g=!!p&&(p.hasLocalMutations||this.mutatedKeys.has(p.key)&&p.hasCommittedMutations);let b=!1;h&&p?h.data.isEqual(p.data)?m!==g&&(r.track({type:3,doc:p}),b=!0):this.Pa(h,p)||(r.track({type:2,doc:p}),b=!0,(l&&this.aa(p,l)>0||u&&this.aa(p,u)<0)&&(a=!0)):!h&&p?(r.track({type:0,doc:p}),b=!0):h&&!p&&(r.track({type:1,doc:h}),b=!0,(l||u)&&(a=!0)),b&&(p?(s=s.add(p),o=g?o.add(c):o.delete(c)):(s=s.delete(c),o=o.delete(c)))}),this.query.limit!==null)for(;s.size>this.query.limit;){const c=this.query.limitType==="F"?s.last():s.first();s=s.delete(c.key),o=o.delete(c.key),r.track({type:1,doc:c})}return{ua:s,ha:r,Xi:a,mutatedKeys:o}}Pa(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r){const i=this.ua;this.ua=e.ua,this.mutatedKeys=e.mutatedKeys;const o=e.ha.k_();o.sort((u,c)=>function(h,p){const m=g=>{switch(g){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return we()}};return m(h)-m(p)}(u.type,c.type)||this.aa(u.doc,c.doc)),this.Ia(r);const s=n?this.Ta():[],a=this._a.size===0&&this.current?1:0,l=a!==this.oa;return this.oa=a,o.length!==0||l?{snapshot:new Sl(this.query,e.ua,i,o,e.mutatedKeys,a===0,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),Ea:s}:{Ea:s}}K_(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({ua:this.ua,ha:new rT,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{Ea:[]}}da(e){return!this.sa.has(e)&&!!this.ua.has(e)&&!this.ua.get(e).hasLocalMutations}Ia(e){e&&(e.addedDocuments.forEach(n=>this.sa=this.sa.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.sa=this.sa.delete(n)),this.current=e.current)}Ta(){if(!this.current)return[];const e=this._a;this._a=Fe(),this.ua.forEach(r=>{this.da(r.key)&&(this._a=this._a.add(r.key))});const n=[];return e.forEach(r=>{this._a.has(r)||n.push(new s2(r))}),this._a.forEach(r=>{e.has(r)||n.push(new o2(r))}),n}Aa(e){this.sa=e.hs,this._a=Fe();const n=this.la(e.documents);return this.applyChanges(n,!0)}Ra(){return Sl.fromInitialDocuments(this.query,this.ua,this.mutatedKeys,this.oa===0,this.hasCachedResults)}}class LQ{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class RQ{constructor(e){this.key=e,this.Va=!1}}class kQ{constructor(e,n,r,i,o,s){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=o,this.maxConcurrentLimboResolutions=s,this.ma={},this.fa=new zl(a=>TO(a),Rm),this.ga=new Map,this.pa=new Set,this.ya=new It(ce.comparator),this.wa=new Map,this.Sa=new XE,this.ba={},this.Da=new Map,this.Ca=_l.Bn(),this.onlineState="Unknown",this.va=void 0}get isPrimaryClient(){return this.va===!0}}async function AQ(t,e){const n=BQ(t);let r,i;const o=n.fa.get(e);if(o)r=o.targetId,n.sharedClientState.addLocalQueryTarget(r),i=o.view.Ra();else{const s=await Jq(n.localStore,ui(e)),a=n.sharedClientState.addLocalQueryTarget(s.targetId);r=s.targetId,i=await MQ(n,e,r,a==="current",s.resumeToken),n.isPrimaryClient&&ZO(n.remoteStore,s)}return i}async function MQ(t,e,n,r,i){t.Fa=(d,h,p)=>async function(g,b,w,v){let y=b.view.la(w);y.Xi&&(y=await Jx(g.localStore,b.query,!1).then(({documents:S})=>b.view.la(S,y)));const E=v&&v.targetChanges.get(b.targetId),C=b.view.applyChanges(y,g.isPrimaryClient,E);return oT(g,b.targetId,C.Ea),C.snapshot}(t,d,h,p);const o=await Jx(t.localStore,e,!0),s=new IQ(e,o.hs),a=s.la(o.documents),l=Rd.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",i),u=s.applyChanges(a,t.isPrimaryClient,l);oT(t,n,u.Ea);const c=new LQ(e,n,s);return t.fa.set(e,c),t.ga.has(n)?t.ga.get(n).push(e):t.ga.set(n,[e]),u.snapshot}async function DQ(t,e){const n=Le(t),r=n.fa.get(e),i=n.ga.get(r.targetId);if(i.length>1)return n.ga.set(r.targetId,i.filter(o=>!Rm(o,e))),void n.fa.delete(e);
2862n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)||await nw(n.localStore,r.targetId,!1).then(()=>{n.sharedClientState.clearQueryState(r.targetId),JO(n.remoteStore,r.targetId),rw(n,r.targetId)}).catch(Td)):(rw(n,r.targetId),await nw(n.localStore,r.targetId,!0))}async function OQ(t,e,n){const r=zQ(t);try{const i=await function(s,a){const l=Le(s),u=Ht.now(),c=a.reduce((p,m)=>p.add(m.key),Fe());let d,h;return l.persistence.runTransaction("Locally write mutations","readwrite",p=>{let m=Bi(),g=Fe();return l.os.getEntries(p,c).next(b=>{m=b,m.forEach((w,v)=>{v.isValidDocument()||(g=g.add(w))})}).next(()=>l.localDocuments.getOverlayedDocuments(p,m)).next(b=>{d=b;const w=[];for(const v of a){const y=iq(v,d.get(v.key).overlayedDocument);y!=null&&w.push(new sa(v.key,y,vO(y.value.mapValue),ci.exists(!0)))}return l.mutationQueue.addMutationBatch(p,u,w,a)}).next(b=>{h=b;const w=b.applyToLocalDocumentSet(d,g);return l.documentOverlayCache.saveOverlays(p,b.batchId,w)})}).then(()=>({batchId:h.batchId,changes:LO(d)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(s,a,l){let u=s.ba[s.currentUser.toKey()];u||(u=new It(Ye)),u=u.insert(a,l),s.ba[s.currentUser.toKey()]=u}(r,i.batchId,n),await Ad(r,i.changes),await $m(r.remoteStore)}catch(i){const o=i_(i,"Failed to persist write");n.reject(o)}}async function a2(t,e){const n=Le(t);try{const r=await Yq(n.localStore,e);
2862e.targetChanges.forEach((i,o)=>{const s=n.wa.get(o);s&&(yt(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1),i.addedDocuments.size>0?s.Va=!0:i.modifiedDocuments.size>0?yt(s.Va):i.removedDocuments.size>0&&(yt(s.Va),s.Va=!1))}),await Ad(n,r,e)}catch(r){await Td(r)}}function iT(t,e,n){const r=Le(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const i=[];r.fa.forEach((o,s)=>{const a=s.view.K_(e);a.snapshot&&i.push(a.snapshot)}),function(s,a){const l=Le(s);l.onlineState=a;let u=!1;l.queries.forEach((c,d)=>{for(const h of d.listeners)h.K_(a)&&(u=!0)}),u&&o_(l)}(r.eventManager,e),i.length&&r.ma.u_(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function NQ(t,e,n){const r=Le(t);r.sharedClientState.updateQueryState(e,"rejected",n);const i=r.wa.get(e),o=i&&i.key;if(o){let s=new It(ce.comparator);s=s.insert(o,vn.newNoDocument(o,Se.min()));const a=Fe().add(o),l=new Dm(Se.min(),new Map,new It(Ye),s,a);await a2(r,l),r.ya=r.ya.remove(o),r.wa.delete(e),s_(r)}else await nw(r.localStore,e,!1).then(()=>rw(r,e,n)).catch(Td)}async function $Q(t,e){const n=Le(t),r=e.batch.batchId;try{const i=await Qq(n.localStore,e);u2(n,r,null),l2(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await Ad(n,i)}catch(i){await Td(i)}}async function VQ(t,e,n){const r=Le(t);try{const i=await function(s,a){const l=Le(s);return l.persistence.runTransaction("Reject batch","readwrite-primary",u=>{let c;return l.mutationQueue.lookupMutationBatch(u,a).next(d=>(yt(d!==null),c=d.keys(),l.mutationQueue.removeMutationBatch(u,d))).next(()=>l.mutationQueue.performConsistencyCheck(u)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(u,c,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(u,c)).next(()=>l.localDocuments.getDocuments(u,c))})}(r.localStore,e);u2(r,e,n),l2(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await Ad(r,i)}catch(i){await Td(i)}}function l2(t,e){(t.Da.get(e)||[]).forEach(n=>{n.resolve()}),t.Da.delete(e)}function u2(t,e,n){const r=Le(t);let i=r.ba[r.currentUser.toKey()];if(i){const o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.ba[r.currentUser.toKey()]=i}}
2862function rw(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.ga.get(e))t.fa.delete(r),n&&t.ma.Ma(r,n);t.ga.delete(e),t.isPrimaryClient&&t.Sa.Vr(e).forEach(r=>{t.Sa.containsKey(r)||c2(t,r)})}function c2(t,e){t.pa.delete(e.path.canonicalString());const n=t.ya.get(e);n!==null&&(JO(t.remoteStore,n),t.ya=t.ya.remove(e),t.wa.delete(n),s_(t))}function oT(t,e,n){for(const r of n)r instanceof o2?(t.Sa.addReference(r.key,e),FQ(t,r)):r instanceof s2?(ie("SyncEngine","Document no longer in limbo: "+r.key),t.Sa.removeReference(r.key,e),t.Sa.containsKey(r.key)||c2(t,r.key)):we()}function FQ(t,e){const n=e.key,r=n.path.canonicalString();t.ya.get(n)||t.pa.has(r)||(ie("SyncEngine","New document in limbo: "+n),t.pa.add(r),s_(t))}function s_(t){for(;t.pa.size>0&&t.ya.size<t.maxConcurrentLimboResolutions;){const e=t.pa.values().next().value;t.pa.delete(e);const n=new ce(gt.fromString(e)),r=t.Ca.next();t.wa.set(r,new RQ(n)),t.ya=t.ya.insert(n,r),ZO(t.remoteStore,new yo(ui(CO(n.path)),r,"TargetPurposeLimboResolution",UE.ae))}}async function Ad(t,e,n){const r=Le(t),i=[],o=[],s=[];r.fa.isEmpty()||(r.fa.forEach((a,l)=>{s.push(r.Fa(l,e,n).then(u=>
2862{if((u||n)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(l.targetId,u!=null&&u.fromCache?"not-current":"current"),u){i.push(u);const c=JE.Ki(l.targetId,u);o.push(c)}}))}),await Promise.all(s),r.ma.u_(i),await async function(l,u){const c=Le(l);try{await c.persistence.runTransaction("notifyLocalViewChanges","readwrite",d=>q.forEach(u,h=>q.forEach(h.qi,p=>c.persistence.referenceDelegate.addReference(d,h.targetId,p)).next(()=>q.forEach(h.Qi,p=>c.persistence.referenceDelegate.removeReference(d,h.targetId,p)))))}catch(d){if(!Pd(d))throw d;ie("LocalStore","Failed to update sequence numbers: "+d)}for(const d of u){const h=d.targetId;if(!d.fromCache){const p=c.ns.get(h),m=p.snapshotVersion,g=p.withLastLimboFreeSnapshotVersion(m);c.ns=c.ns.insert(h,g)}}}(r.localStore,o))}async function jQ(t,e){const n=Le(t);if(!n.currentUser.isEqual(e)){ie("SyncEngine","User change. New user:",e.toKey());const r=await qO(n.localStore,e);n.currentUser=e,function(o,s){o.Da.forEach(a=>{a.forEach(l=>{l.reject(new oe(H.CANCELLED,s))})}),o.Da.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await Ad(n,r.us)}}function UQ(t,e){const n=Le(t),r=n.wa.get(e);if(r&&r.Va)return Fe().add(r.key);{let i=Fe();const o=n.ga.get(e);if(!o)return i;for(const s of o){const a=n.fa.get(s);i=i.unionWith(a.view.ca)}return i}}function BQ(t){const e=Le(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=a2.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=UQ.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=NQ.bind(null,e),e.ma.u_=xQ.bind(null,e.eventManager),e.ma.Ma=TQ.bind(null,e.eventManager),e}function zQ(t){const e=Le(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=$Q.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=VQ.bind(null,e),e}class sT{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=Om(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,n){return null}createIndexBackfillerScheduler(e,n){return null}createLocalStore(e){return qq(this.persistence,new Kq,e.initialUser,this.serializer)}createPersistence(e){return new zq(ZE.Hr,this.serializer)}createSharedClientState(e){return new tQ}async terminate(){this.gcScheduler&&this.gcScheduler.stop(),await this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class WQ{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>iT(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=jQ.bind(null,this.syncEngine),await bQ(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new _Q}()}createDatastore(e){const n=Om(e.databaseInfo.databaseId),r=function(o){return new oQ(o)}(e.databaseInfo);return function(o,s,a,l){return new lQ(o,s,a,l)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,i,o,s,a){return new cQ(r,i,o,s,a)}(this.localStore,this.datastore,e.asyncQueue,n=>iT(this.syncEngine,n,0),function(){return tT.C()?new tT:new nQ}())}createSyncEngine(e,n){return function(i,o,s,a,l,u,c){const d=new kQ(i,o,s,a,l,u);return c&&(d.va=!0),d}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}terminate(){return async function(n){const r=Le(n);ie("RemoteStore","RemoteStore shutting down."),r.v_.add(5),await kd(r),r.M_.shutdown(),r.x_.set("Unknown")}(this.remoteStore)}}/** 2863 * @license 2864 * Copyright 2020 Google LLC 2865 * 2866 * Licensed under the Apache License, Version 2.0 (the "License");
2867 * you may not use this file except in compliance with the License. 2868 * You may obtain a copy of the License at 2869 * 2870 * http://www.apache.org/licenses/LICENSE-2.0 2871 * 2872 * Unless required by applicable law or agreed to in writing, software 2873 * distributed under the License is distributed on an "AS IS" BASIS, 2874 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2875 * See the License for the specific language governing permissions and 2876 * limitations under the License. 2877 *//** 2878 * @license 2879 * Copyright 2017 Google LLC 2880 * 2881 * Licensed under the Apache License, Version 2.0 (the "License"); 2882 * you may not use this file except in compliance with the License. 2883 * You may obtain a copy of the License at 2884 * 2885 * http://www.apache.org/licenses/LICENSE-2.0 2886 * 2887 * Unless required by applicable law or agreed to in writing, software 2888 * distributed under the License is distributed on an "AS IS" BASIS, 2889 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2890 * See the License for the specific language governing permissions and 2891 * limitations under the License. 2892 */class HQ{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Na(this.observer.next,e)}error(e){this.observer.error?this.Na(this.observer.error,e):Ui("Uncaught Error in snapshot listener:",e.toString())}Ba(){this.muted=!0}Na(e,n){this.muted||setTimeout(()=>{this.muted||e(n)},0)}}/** 2893 * @license 2894 * Copyright 2017 Google LLC 2895 * 2896 * Licensed under the Apache License, Version 2.0 (the "License"); 2897 * you may not use this file except in compliance with the License. 2898 * You may obtain a copy of the License at 2899 * 2900 * http://www.apache.org/licenses/LICENSE-2.0 2901 * 2902 * Unless required by applicable law or agreed to in writing, software 2903 * distributed under the License is distributed on an "AS IS" BASIS, 2904 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2905 * See the License for the specific language governing permissions and 2906 * limitations under the License. 2907 */class KQ{constructor(e,n,r,i){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=i,this.user=mn.UNAUTHENTICATED,this.clientId=pO.V(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,async o=>{ie("FirestoreClient","Received user=",o.uid),await this.authCredentialListener(o),this.user=o}),this.appCheckCredentials.start(r,o=>(ie("FirestoreClient","Received new app check token=",o),this.appCheckCredentialListener(o,this.user)))}async getConfiguration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new oe(H.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Ao;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=i_(n,"Failed to shutdown persistence");e.reject(r)}}),e.promise}}async function Nv(t,e){t.asyncQueue.verifyOperationInProgress(),ie("FirestoreClient","Initializing OfflineComponentProvider");const n=await t.getConfiguration();await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(async i=>{r.isEqual(i)||(await qO(e.localStore,i),r=i)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function aT(t,e){t.asyncQueue.verifyOperationInProgress();const n=await qQ(t);ie("FirestoreClient","Initializing OnlineComponentProvider");const r=await t.getConfiguration();await e.initialize(n,r),t.setCredentialChangeListener(i=>nT(e.remoteStore,i)),t.setAppCheckTokenChangeListener((i,o)=>nT(e.remoteStore,o)),t._onlineComponents=e}function GQ(t){return t.name==="FirebaseError"?t.code===H.FAILED_PRECONDITION||t.code===H.UNIMPLEMENT
2907ED:!(typeof DOMException<"u"&&t instanceof DOMException)||t.code===22||t.code===20||t.code===11}async function qQ(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ie("FirestoreClient","Using user provided OfflineComponentProvider");try{await Nv(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!GQ(n))throw n;yl("Error using user provided cache. Falling back to memory cache: "+n),await Nv(t,new sT)}}else ie("FirestoreClient","Using default OfflineComponentProvider"),await Nv(t,new sT);return t._offlineComponents}async function d2(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ie("FirestoreClient","Using user provided OnlineComponentProvider"),await aT(t,t._uninitializedComponentsProvider._online)):(ie("FirestoreClient","Using default OnlineComponentProvider"),await aT(t,new WQ))),t._onlineComponents}function QQ(t){return d2(t).then(e=>e.syncEngine)}async function YQ(t){const e=await d2(t),n=e.eventManager;return n.onListen=AQ.bind(null,e.syncEngine),n.onUnlisten=DQ.bind(null,e.syncEngine),n}function XQ(t,e,n={}){const r=new Ao;return t.asyncQueue.enqueueAndForget(async()=>function(o,s,a,l,u){const c=new HQ({next:h=>{s.enqueueAndForget(()=>CQ(o,d)),h.fromCache&&l.source==="server"?u.reject(new oe(H.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):u.resolve(h)},error:h=>u.reject(h)}),d=new PQ(a,c,{includeMetadataChanges:!0,Y_:!0});return SQ(o,d)}(await YQ(t),t.asyncQueue,e,n,r)),r.promise}/** 2908 * @license 2909 * Copyright 2023 Google LLC 2910 * 2911 * Licensed under the Apache License, Version 2.0 (the "License"); 2912 * you may not use this file except in compliance with the License. 2913 * You may obtain a copy of the License at 2914 * 2915 * http://www.apache.org/licenses/LICENSE-2.0 2916 * 2917 * Unless required by applicable law or agreed to in writing, software 2918 * distributed under the License is distributed on an "AS IS" BASIS, 2919 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2920 * See the License for the specific language governing permissions and 2921 * limitations under the License. 2922 */function f2(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** 2923 * @license 2924 * Copyright 2020 Google LLC 2925 * 2926 * Licensed under the Apache License, Version 2.0 (the "License"); 2927 * you may not use this file except in compliance with the License. 2928 * You may obtain a copy of the License at 2929 * 2930 * http://www.apache.org/licenses/LICENSE-2.0 2931 * 2932 * Unless required by applicable law or agreed to in writing, software 2933 * distributed under the License is distributed on an "AS IS" BASIS, 2934 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2935 * See the License for the specific language governing permissions and 2936 * limitations under the License. 2937 */const lT=new Map;/** 2938 * @license 2939 * Copyright 2017 Google LLC 2940 * 2941 * Licensed under the Apache License, Version 2.0 (the "License"); 2942 * you may not use this file except in compliance with the License. 2943 * You may obtain a copy of the License at 2944 * 2945 * http://www.apache.org/licenses/LICENSE-2.0 2946 * 2947 * Unless required by applicable law or agreed to in writing, software 2948 * distributed under the License is distributed on an "AS IS" BASIS, 2949 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2950 * See the License for the specific language governing permissions and 2951 * limitations under the License. 2952 */function h2(t,e,n){if(!n)throw new oe(H.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function ZQ(t,e,n,r){if(e===!0&&r===!0)throw new oe(H.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function uT(t){if(!ce.isDocumentKey(t))throw new oe(H.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function cT(t){if(ce.isDocumentKey(t))throw new oe(H.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Vm(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=function(r){return r.constructor?r.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":we()}function Kc(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new oe(H.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Vm(t);throw new oe(H.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/** 2953 * @license 2954 * Copyright 2020 Google LLC 2955 * 2956 * Licensed under the Apache License, Version 2.0 (the "License");
2957 * you may not use this file except in compliance with the License. 2958 * You may obtain a copy of the License at 2959 * 2960 * http://www.apache.org/licenses/LICENSE-2.0 2961 * 2962 * Unless required by applicable law or agreed to in writing, software 2963 * distributed under the License is distributed on an "AS IS" BASIS, 2964 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2965 * See the License for the specific language governing permissions and 2966 * limitations under the License. 2967 */class dT{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new oe(H.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=(n=e.ssl)===null||n===void 0||n;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<1048576)throw new oe(H.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}ZQ("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=f2((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),function(o){if(o.timeoutSeconds!==void 0){if(isNaN(o.timeoutSeconds))throw new oe(H.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (must not be NaN)`);if(o.timeoutSeconds<5)throw new oe(H.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (minimum allowed value is 5)`);if(o.timeoutSeconds>30)throw new oe(H.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(r,i){return r.timeoutSeconds===i.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Fm{constructor(e,n,r,i){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new dT({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new oe(H.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!==void 0}_setSettings(e){if(this._settingsFrozen)throw new oe(H.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new dT(e),e.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new mG;switch(r.type){case"firstParty":return new wG(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new oe(H.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(n){const r=lT.get(n);r&&(ie("ComponentProvider","Removing Datastore"),lT.delete(n),r.terminate())}(this),Promise.resolve()}}function JQ(t,e,n,r={}){var i;const o=(t=Kc(t,Fm))._getSettings(),s=`${e}:${n}`;if(o.host!=="firestore.googleapis.com"&&o.host!==s&&yl("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},o),{host:s,ssl:!1})),r.mockUserToken){let a,l;if(typeof r.mockUserToken=="string")a=r.mockUserToken,l=mn.MOCK_USER;else{a=L8(r.mockUserToken,(i=t._app)===null||i===void 0?void 0:i.options.projectId);const u=r.mockUserToken.sub||r.mockUserToken.user_id;if(!u)throw new oe(H.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");l=new mn(u)}t._authCredentials=new gG(new hO(a,l))}}/** 2968 * @license 2969 * Copyright 2020 Google LLC 2970 * 2971 * Licensed under the Apache License, Version 2.0 (the "License");
2972 * you may not use this file except in compliance with the License. 2973 * You may obtain a copy of the License at 2974 * 2975 * http://www.apache.org/licenses/LICENSE-2.0 2976 * 2977 * Unless required by applicable law or agreed to in writing, software 2978 * distributed under the License is distributed on an "AS IS" BASIS, 2979 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2980 * See the License for the specific language governing permissions and 2981 * limitations under the License. 2982 */class Hl{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Hl(this.firestore,e,this._query)}}class yr{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Mo(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new yr(this.firestore,e,this._key)}}class Mo extends Hl{constructor(e,n,r){super(e,n,CO(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new yr(this.firestore,null,new ce(e))}withConverter(e){return new Mo(this.firestore,e,this._path)}}function Md(t,e,...n){if(t=kn(t),h2("collection","path",e),t instanceof Fm){const r=gt.fromString(e,...n);return cT(r),new Mo(t,null,r)}{if(!(t instanceof yr||t instanceof Mo))throw new oe(H.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(gt.fromString(e,...n));return cT(r),new Mo(t.firestore,null,r)}}function eY(t,e,...n){if(t=kn(t),arguments.length===1&&(e=pO.V()),h2("doc","path",e),t instanceof Fm){const r=gt.fromString(e,...n);return uT(r),new yr(t,null,new ce(r))}{if(!(t instanceof yr||t instanceof Mo))throw new oe(H.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(gt.fromString(e,...n));return uT(r),new yr(t.firestore,t instanceof Mo?t.converter:null,new ce(r))}}/** 2983 * @license 2984 * Copyright 2020 Google LLC 2985 * 2986 * Licensed under the Apache License, Version 2.0 (the "License"); 2987 * you may not use this file except in compliance with the License. 2988 * You may obtain a copy of the License at 2989 * 2990 * http://www.apache.org/licenses/LICENSE-2.0 2991 * 2992 * Unless required by applicable law or agreed to in writing, software 2993 * distributed under the License is distributed on an "AS IS" BASIS, 2994 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2995 * See the License for the specific language governing permissions and 2996 * limitations under the License. 2997 */class tY{constructor(){this.Ya=Promise.resolve(),this.Za=[],this.Xa=!1,this.eu=[],this.tu=null,this.nu=!1,this.ru=!1,this.iu=[],this.jo=new YO(this,"async_queue_retry"),this.su=()=>{const n=Ov();n&&ie("AsyncQueue","Visibility state changed to "+n.visibilityState),this.jo.Ko()};const e=Ov();e&&typeof e.addEventListener=="function"&&e.addEventListener("visibilitychange",this.su)}get isShuttingDown(){return this.Xa}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.ou(),this._u(e)}enterRestrictedMode(e){if(!this.Xa){this.Xa=!0,this.ru=e||!1;const n=Ov();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.su)}}enqueue(e){if(this.ou(),this.Xa)return new Promise(()=>{});const n=new Ao;return this._u(()=>this.Xa&&this.ru?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Za.push(e),this.au()))}async au(){if(this.Za.length!==0){try{await this.Za[0](),this.Za.shift(),this.jo.reset()}catch(e){if(!Pd(e))throw e;ie("AsyncQueue","Operation failed with retryable error: "+e)}this.Za.length>0&&this.jo.qo(()=>this.au())}}_u(e){const n=this.Ya.then(()=>(this.nu=!0,e().catch(r=>{this.tu=r,this.nu=!1;const i=function(s){let a=s.message||"";return s.stack&&(a=s.stack.includes(s.message)?s.stack:s.message+` 2998`+s.stack),a}(r);throw Ui("INTERNAL UNHANDLED ERROR: ",i),r}).then(r=>(this.nu=!1,r))));return this.Ya=n,n}enqueueAfterDelay(e,n,r){this.ou(),this.iu.indexOf(e)>-1&&(n=0);const i=r_.createAndSchedule(this,e,n,r,o=>this.uu(o));return this.eu.push(i),i}ou(){this.tu&&we()}verifyOperationInProgress(){}async cu(){let e;do e=this.Ya,await e;while(e!==this.Ya)}lu(e){for(const n of this.eu)if(n.timerId===e)return!0;return!1}hu(e){return this.cu().then(()=>{this.eu.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this.eu)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.cu()})}Pu(e){this.iu.push(e)}uu(e){const n=this.eu.indexOf(e);this.eu.splice(n,1)}}class jm extends Fm{constructor(e,n,r,i){super(e,n,r,i),this.type="firestore",this._queue=function(){return new tY}(),this._persistenceKey=(i==null?void 0:i.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||m2(this),this._firestoreClient.terminate()}}function nY(t,e){const n=typeof t=="object"?t:kM(),r=typeof t=="string"?t:e||"(default)",i=uE(n,"firestore").getImmediate({identifier:r});if(!i._initialized){const o=P8("firestore");o&&JQ(i,...o)}return i}function p2(t){return t._firestoreClient||m2(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function m2(t){var e,n,r;const i=t._freezeSettings(),o=function(a,l,u,c){return new kG(a,l,u,c.host,c.ssl,c.experimentalForceLongPolling,c.experimentalAutoDetectLongPolling,f2(c.experimentalLongPollingOptions),c.useFetchStreams)}(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,i);t._firestoreClient=new KQ(t._authCredentials,t._appCheckCredentials,t._queue,o),!((n=i.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=i.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.localCache.kind,_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider})}/** 2999 * @license 3000 * Copyright 2020 Google LLC 3001 * 3002 * Licensed under the Apache License, Version 2.0 (the "License");
3003 * you may not use this file except in compliance with the License. 3004 * You may obtain a copy of the License at 3005 * 3006 * http://www.apache.org/licenses/LICENSE-2.0 3007 * 3008 * Unless required by applicable law or agreed to in writing, software 3009 * distributed under the License is distributed on an "AS IS" BASIS, 3010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3011 * See the License for the specific language governing permissions and 3012 * limitations under the License. 3013 */class Cl{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Cl(Sn.fromBase64String(e))}catch(n){throw new oe(H.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new Cl(Sn.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}/** 3014 * @license 3015 * Copyright 2020 Google LLC 3016 * 3017 * Licensed under the Apache License, Version 2.0 (the "License"); 3018 * you may not use this file except in compliance with the License. 3019 * You may obtain a copy of the License at 3020 * 3021 * http://www.apache.org/licenses/LICENSE-2.0 3022 * 3023 * Unless required by applicable law or agreed to in writing, software 3024 * distributed under the License is distributed on an "AS IS" BASIS, 3025 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3026 * See the License for the specific language governing permissions and 3027 * limitations under the License. 3028 */class a_{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new oe(H.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new rn(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/** 3029 * @license 3030 * Copyright 2020 Google LLC 3031 * 3032 * Licensed under the Apache License, Version 2.0 (the "License"); 3033 * you may not use this file except in compliance with the License. 3034 * You may obtain a copy of the License at 3035 * 3036 * http://www.apache.org/licenses/LICENSE-2.0 3037 * 3038 * Unless required by applicable law or agreed to in writing, software 3039 * distributed under the License is distributed on an "AS IS" BASIS, 3040 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3041 * See the License for the specific language governing permissions and 3042 * limitations under the License. 3043 */class g2{constructor(e){this._methodName=e}}/** 3044 * @license 3045 * Copyright 2017 Google LLC 3046 * 3047 * Licensed under the Apache License, Version 2.0 (the "License"); 3048 * you may not use this file except in compliance with the License. 3049 * You may obtain a copy of the License at 3050 * 3051 * http://www.apache.org/licenses/LICENSE-2.0 3052 * 3053 * Unless required by applicable law or agreed to in writing, software 3054 * distributed under the License is distributed on an "AS IS" BASIS, 3055 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3056 * See the License for the specific language governing permissions and 3057 * limitations under the License. 3058 */class l_{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new oe(H.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new oe(H.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Ye(this._lat,e._lat)||Ye(this._long,e._long)}}/** 3059 * @license 3060 * Copyright 2017 Google LLC 3061 * 3062 * Licensed under the Apache License, Version 2.0 (the "License"); 3063 * you may not use this file except in compliance with the License. 3064 * You may obtain a copy of the License at 3065 * 3066 * http://www.apache.org/licenses/LICENSE-2.0 3067 * 3068 * Unless required by applicable law or agreed to in writing, software 3069 * distributed under the License is distributed on an "AS IS" BASIS, 3070 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3071 * See the License for the specific language governing permissions and 3072 * limitations under the License. 3073 */const rY=/^__.*__$/;class iY{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new sa(e,this.data,this.fieldMask,n,this.fieldTransforms):new Ld(e,this.data,n,this.fieldTransforms)}}function v2(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw we()}}class u_{constructor(e,n,r,i,o,s){this.settings=e,this.databaseId=n,this.serializer
vendor: 2,138 bytes, line 3073
3073=r,this.ignoreUndefinedProperties=i,o===void 0&&this.Iu(),this.fieldTransforms=o||[],this.fieldMask=s||[]}get path(){return this.settings.path}get Tu(){return this.settings.Tu}Eu(e){return new u_(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}du(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),i=this.Eu({path:r,Au:!1});return i.Ru(e),i}Vu(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),i=this.Eu({path:r,Au:!1});return i.Iu(),i}mu(e){return this.Eu({path:void 0,Au:!0})}fu(e){return Sp(e,this.settings.methodName,this.settings.gu||!1,this.path,this.settings.pu)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}Iu(){if(this.path)for(let e=0;e<this.path.length;e++)this.Ru(this.path.get(e))}Ru(e){if(e.length===0)throw this.fu("Document fields must not be empty");if(v2(this.Tu)&&rY.test(e))throw this.fu('Document fields cannot begin and end with "__"')}}class oY{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||Om(e)}yu(e,n,r,i=!1){return new u_({Tu:e,methodName:n,pu:r,path:rn.emptyPath(),Au:!1,gu:i},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function y2(t){const e=t._freezeSettings(),n=Om(t._databaseId);return new oY(t._databaseId,!!e.ignoreUndefinedProperties,n)}function sY(t,e,n,r,i,o={}){const s=t.yu(o.merge||o.mergeFields?2:0,e,n,i);E2("Data must be an object, but it was:",s,r);const a=w2(r,s);let l,u;if(o.merge)l=new Mr(s.fieldMask),u=s.fieldTransforms;else if(o.mergeFields){const c=[];for(const d of o.mergeFields){const h=lY(e,d,n);if(!s.contains(h))throw new oe(H.INVALID_ARGUMENT,`Field '${h}' is specified in your field mask but missing from your input data.`);cY(c,h)||c.push(h)}l=new Mr(c),u=s.fieldTransforms.filter(d=>l.covers(d.field))}else l=null,u=s.fieldTransforms;return new iY(new mr(a),l,u)}function aY(t,e,n,r=!1){return c_(n,t.yu(r?4:3,e))}function c_(t,e){if(b2(t=kn(t)))return E2("Unsupported field value:",e,t),w2
3073(t,e);if(t instanceof g2)return function(r,i){if(!v2(i.Tu))throw i.fu(`${r._methodName}() can only be used with update() and set()`);if(!i.path)throw i.fu(`${r._methodName}() is not currently supported inside arrays`);const o=r._toFieldTransform(i);o&&i.fieldTransforms.push(o)}(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Au&&e.Tu!==4)throw e.fu("Nested arrays are not supported");return function(r,i){const o=[];let s=0;for(const a of r){let l=c_(a,i.mu(s));l==null&&(l={nullValue:"NULL_VALUE"}),o.push(l),s++}return{arrayValue:{values:o}}}(t,e)}return function(r,i){if((r=kn(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return ZG(i.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const o=Ht.fromDate(r);return{timestampValue:Ep(i.serializer,o)}}if(r instanceof Ht){const o=new Ht(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:Ep(i.serializer,o)}}if(r instanceof l_)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof Cl)return{bytesValue:BO(i.serializer,r._byteString)};if(r instanceof yr){const o=i.databaseId,s=r.firestore._databaseId;if(!s.isEqual(o))throw i.fu(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${o.projectId}/${o.database}`);return{referenceValue:YE(r.firestore._databaseId||i.databaseId,r._key.path)}}throw i.fu(`Unsupported field value: ${Vm(r)}`)}(t,e)}function w2(t,e){const n={};return mO(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Bl(t,(r,i)=>{const o=c_(i,e.du(r));o!=null&&(n[r]=o)}),{mapValue:{fields:n}}}function b2(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Ht||t instanceof l_||t instanceof Cl||t instanceof yr||t instanceof g2)}function E2(t,e,n){if(!b2(n)||!function(i){return typeof i=="object"&&i!==null&&(Object.getPrototypeOf(i)===Object.prototype||Object.getPrototypeOf(i)===null)}(n)){const r=Vm(n);throw r==="an object"?e.fu(t+" a custom object"):e.fu(t+" "+r)}}function lY(t,e,n){if((e=kn(e))instanceof a_)return e._internalPath;if(typeof e=="string")return _2(t,e);throw Sp("Field path arguments must be of type string or ",t,!1,void 0,n)}const uY=new RegExp("[~\\*/\\[\\]]");function _2(t,e,n){if(e.search(uY)>=0)throw Sp(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new a_(...e.split("."))._internalPath}catch{throw Sp(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function Sp(t,e,n,r,i){const o=r&&!r.isEmpty(),s=i!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(o||s)&&(l+=" (found",o&&(l+=` in field ${r}`),s&&(l+=` in document ${i}`),l+=")"),new oe(H.INVALID_ARGUMENT,a+t+l)}function cY(t,e){return t.some(n=>n.isEqual(e))}/** 3074 * @license 3075 * Copyright 2020 Google LLC 3076 * 3077 * Licensed under the Apache License, Version 2.0 (the "License"); 3078 * you may not use this file except in compliance with the License. 3079 * You may obtain a copy of the License at 3080 * 3081 * http://www.apache.org/licenses/LICENSE-2.0 3082 * 3083 * Unless required by applicable law or agreed to in writing, software 3084 * distributed under the License is distributed on an "AS IS" BASIS, 3085 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3086 * See the License for the specific language governing permissions and 3087 * limitations under the License. 3088 */class S2{constructor(e,n,r,i,o){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=i,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new yr(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new dY(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const n=this._document.data.field(d_("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class dY extends S2{data(){return super.data()}}function d_(t,e){return typeof e=="string"?_2(t,e):e instanceof a_?e._internalPath:e._delegate._internalPath}/** 3089 * @license 3090 * Copyright 2020 Google LLC 3091 * 3092 * Licensed under the Apache License, Version 2.0 (the "License");
3093 * you may not use this file except in compliance with the License. 3094 * You may obtain a copy of the License at 3095 * 3096 * http://www.apache.org/licenses/LICENSE-2.0 3097 * 3098 * Unless required by applicable law or agreed to in writing, software 3099 * distributed under the License is distributed on an "AS IS" BASIS, 3100 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3101 * See the License for the specific language governing permissions and 3102 * limitations under the License. 3103 */function fY(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new oe(H.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class f_{}class hY extends f_{}function C2(t,e,...n){let r=[];e instanceof f_&&r.push(e),r=r.concat(n),function(o){const s=o.filter(l=>l instanceof h_).length,a=o.filter(l=>l instanceof Um).length;if(s>1||s>0&&a>0)throw new oe(H.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(r);for(const i of r)t=i._apply(t);return t}class Um extends hY{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new Um(e,n,r)}_apply(e){const n=this._parse(e);return x2(e._query,n),new Hl(e.firestore,e.converter,Y0(e._query,n))}_parse(e){const n=y2(e.firestore);return function(o,s,a,l,u,c,d){let h;if(u.isKeyField()){if(c==="array-contains"||c==="array-contains-any")throw new oe(H.INVALID_ARGUMENT,`Invalid Query. You can't perform '${c}' queries on documentId().`);if(c==="in"||c==="not-in"){hT(d,c);const p=[];for(const m of d)p.push(fT(l,o,m));h={arrayValue:{values:p}}}else h=fT(l,o,d)}else c!=="in"&&c!=="not-in"&&c!=="array-contains-any"||hT(d,c),h=aY(a,s,d,c==="in"||c==="not-in");return Ut.create(u,c,h)}(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function pY(t,e,n){const r=e,i=d_("where",t);return Um._create(i,r,n)}class h_ extends f_{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new h_(e,n)}_parse(e){const n=this._queryConstraints.map(r=>r._parse(e)).filter(r=>r.getFilters().length>0);return n.length===1?n[0]:Br.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:(function(i,o){let s=i;const a=o.getFlattenedFilters();for(const l of a)x2(s,l),s=Y0(s,l)}(e._query,n),new Hl(e.firestore,e.converter,Y0(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}function fT(t,e,n){if(typeof(n=kn(n))=="string"){if(n==="")throw new oe(H.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!xO(e)&&n.indexOf("/")!==-1)throw new oe(H.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=e.path.child(gt.fromString(n));if(!ce.isDocumentKey(r))throw new oe(H.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return Nx(t,new ce(r))}if(n instanceof yr)return Nx(t,n._key);throw new oe(H.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Vm(n)}.`)}function hT(t,e){if(!Array.isArray(t)||t.length===0)throw new oe(H.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function x2(t,e){const n=function(i,o){for(const s of i)for(const a of s.getFlattenedFilters())if(o.indexOf(a.op)>=0)return a.op;return null}(t.filters,function(i){switch(i){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(n!==null)throw n===e.op?new oe(H.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new oe(H.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}class mY{convertValue(e,n="none"){switch(qs(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Ft(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(Gs(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 10:return this.convertObject(e.mapValue,n);default:throw we()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return Bl(e,(i,o)=>{r[i]=this.convertValue(o,n)}),r}convertGeoPoint(e){return new l_(Ft(e.latitude),Ft(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=zE(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(Uc(e));default:return null}}convertTimestamp(e){const n=Wo(e);return new Ht(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=gt.fromString(e);yt(GO(r));const i=new Bc(r.get(1),r.get(3)),o=new ce(r.popFirst(5));return i.isEqual(n)||Ui(`Document ${o} contains a document reference within a different database (${i.projectId}/${i.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),o}}/** 3104 * @license 3105 * Copyright 2020 Google LLC 3106 * 3107 * Licensed under the Apache License, Version 2.0 (the "License");
3108 * you may not use this file except in compliance with the License. 3109 * You may obtain a copy of the License at 3110 * 3111 * http://www.apache.org/licenses/LICENSE-2.0 3112 * 3113 * Unless required by applicable law or agreed to in writing, software 3114 * distributed under the License is distributed on an "AS IS" BASIS, 3115 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3116 * See the License for the specific language governing permissions and 3117 * limitations under the License. 3118 */function gY(t,e,n){let r;return r=t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e,r}/** 3119 * @license 3120 * Copyright 2020 Google LLC 3121 * 3122 * Licensed under the Apache License, Version 2.0 (the "License"); 3123 * you may not use this file except in compliance with the License. 3124 * You may obtain a copy of the License at 3125 * 3126 * http://www.apache.org/licenses/LICENSE-2.0 3127 * 3128 * Unless required by applicable law or agreed to in writing, software 3129 * distributed under the License is distributed on an "AS IS" BASIS, 3130 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3131 * See the License for the specific language governing permissions and 3132 * limitations under the License. 3133 */class Rf{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class vY extends S2{constructor(e,n,r,i,o,s){super(e,n,r,i,s),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new ih(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(d_("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class ih extends vY{data(e={}){return super.data(e)}}class yY{constructor(e,n,r,i){this._firestore=e,this._userDataWriter=n,this._snapshot=i,this.metadata=new Rf(i.hasPendingWrites,i.fromCache),this.query=r}get docs(){const e=[];return this.forEach(n=>e.push(n)),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach(r=>{e.call(n,new ih(this._firestore,this._userDataWriter,r.key,r,new Rf(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new oe(H.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=function(i,o){if(i._snapshot.oldDocs.isEmpty()){let s=0;return i._snapshot.docChanges.map(a=>{const l=new ih(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Rf(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);return a.doc,{type:"added",doc:l,oldIndex:-1,newIndex:s++}})}{let s=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(a=>o||a.type!==3).map(a=>{const l=new ih(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Rf(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);let u=-1,c=-1;return a.type!==0&&(u=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),a.type!==1&&(s=s.add(a.doc),c=s.indexOf(a.doc.key)),{type:wY(a.type),doc:l,oldIndex:u,newIndex:c}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function wY(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return we()}}class bY extends mY{constructor(e){super(),this.firestore=e}convertBytes(e){return new Cl(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new yr(this.firestore,null,n)}}function p_(t){t=Kc(t,Hl);const e=Kc(t.firestore,jm),n=p2(e),r=new bY(e);return fY(t._query),XQ(n,t._query).then(i=>new yY(e,r,t,i))}
3133function T2(t){return I2(Kc(t.firestore,jm),[new GE(t._key,ci.none())])}function P2(t,e){const n=Kc(t.firestore,jm),r=eY(t),i=gY(t.converter,e);return I2(n,[sY(y2(t.firestore),"addDoc",r._key,i,t.converter!==null,{}).toMutation(r._key,ci.exists(!1))]).then(()=>r)}function I2(t,e){return function(r,i){const o=new Ao;return r.asyncQueue.enqueueAndForget(async()=>OQ(await QQ(r),i,o)),o.promise}(p2(t),e)}(function(e,n=!0){(function(i){Ul=i})($l),gl(new Bs("firestore",(r,{instanceIdentifier:i,options:o})=>{const s=r.getProvider("app").getImmediate(),a=new jm(new vG(r.getProvider("auth-internal")),new EG(r.getProvider("app-check-internal")),function(u,c){if(!Object.prototype.hasOwnProperty.apply(u.options,["projectId"]))throw new oe(H.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Bc(u.options.projectId,c)}(s,i),s);return o=Object.assign({useFetchStreams:n},o),a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),ko(Ax,"4.3.0",e),ko(Ax,"4.3.0","esm2017")})();let EY={data:""},_Y=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||EY,SY=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,CY=/\/\*[^]*?\*\/| +/g,pT=/\n+/g,ho=(t,e)=>{let n="",r="",i="";for(let o in t){let s=t[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?ho(s,o):o+"{"+ho(s,o[1]=="k"?"":e)+"}":typeof s=="object"?r+=ho(s,e?e.replace(/([^,])+/g,a=>o.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=ho.p?ho.p(o,s):o+":"+s+";")}return n+(e&&i?e+"{"+i+"}":i)+r},wi={},L2=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+L2(t[n]);return e}return t},xY=(t,e,n,r,i)=>{let o=L2(t),s=wi[o]||(wi[o]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(o));if(!wi[s]){let l=o!==t?t:(u=>{let c,d,h=[{}];for(;c=SY.exec(u.replace(CY,""));)c[4]?h.shift():c[3]?(d=c[3].replace(pT," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(pT," ").trim();return h[0]})(t);wi[s]=ho(i?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&wi.g?wi.g:null;return n&&(wi.g=wi[s]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(wi[s],e,r,a),s},TY=(t,e,n)=>t.reduce((r,i,o)=>{let s=e[o];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":ho(a,""):a===!1?"":a}return r+i+(s??"")},"");function Bm(t){let e=this||{},n=t.call?t(e.p):t;return xY(n.unshift?n.raw?TY(n,[].slice.call(arguments,1),e.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(e.p):i),{}):n,_Y(e.target),e.g,e.o,e.k)}let R2,iw,ow;Bm.bind({g:1});let zi=Bm.bind({k:1});function PY(t,e,n,r){ho.p=e,R2=t,iw=n,ow=r}function rs(t,e){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:iw&&iw()},a),n.o=/ *go\d+/.test(l),a.className=Bm.apply(n,r)+(l?" "+l:""),e&&(a.ref=s);let u=t;return t[0]&&(u=a.as||t,delete a.as),ow&&u[0]&&ow(a),R2(u,a)}return e?e(i):i}}var IY=t=>typeof t=="function",sw=(t,e)=>IY(t)?t(e):t,LY=(()=>{let t=0;return()=>(++t).toString()})(),RY=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),kY=20,oh=new Map,AY=1e3,mT=t=>{if(oh.has(t))return;let e=setTimeout(()=>{oh.delete(t),zm({type:4,toastId:t})},AY);oh.set(t,e)},MY=t=>{let e=oh.get(t);e&&clearTimeout(e)},aw=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,kY)};case 1:return e.toast.id&&MY(e.toast.id),{...t,toasts:t.toasts.map(o=>o.id===e.toast.id?{...o,...e.toast}:o)};case 2:let{toast:n}=e;return t.toasts.find(o=>o.id===n.id)?aw(t,{type:1,toast:n}):aw(t,{type:0,toast:n});case 3:let{toastId:r}=e;return r?mT(r):t.toasts.forEach(o=>{mT(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(o=>o.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},DY=[],$v={toasts:[],pausedAt:void 0},zm=t=>
vendor: 4,869 bytes, lines 3133-3304
3133{$v=aw($v,t),DY.forEach(e=>{e($v)})},OY=(t,e="blank",n)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(n==null?void 0:n.id)||LY()}),Dd=t=>(e,n)=>{let r=OY(e,t,n);return zm({type:2,toast:r}),r.id},Dr=(t,e)=>Dd("blank")(t,e);Dr.error=Dd("error");Dr.success=Dd("success");Dr.loading=Dd("loading");Dr.custom=Dd("custom");Dr.dismiss=t=>{zm({type:3,toastId:t})};Dr.remove=t=>zm({type:4,toastId:t});Dr.promise=(t,e,n)=>{let r=Dr.loading(e.loading,{...n,...n==null?void 0:n.loading});return t.then(i=>(Dr.success(sw(e.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Dr.error(sw(e.error,i),{id:r,...n,...n==null?void 0:n.error})}),t};var NY=zi` 3134from { 3135 transform: scale(0) rotate(45deg); 3136 opacity: 0; 3137} 3138to { 3139 transform: scale(1) rotate(45deg); 3140 opacity: 1; 3141}`,$Y=zi` 3142from { 3143 transform: scale(0); 3144 opacity: 0; 3145} 3146to { 3147 transform: scale(1); 3148 opacity: 1; 3149}`,VY=zi` 3150from { 3151 transform: scale(0) rotate(90deg); 3152 opacity: 0; 3153} 3154to { 3155 transform: scale(1) rotate(90deg); 3156 opacity: 1; 3157}`,FY=rs("div")` 3158 width: 20px; 3159 opacity: 0; 3160 height: 20px; 3161 border-radius: 10px; 3162 background: ${t=>t.primary||"#ff4b4b"}; 3163 position: relative; 3164 transform: rotate(45deg); 3165 3166 animation: ${NY} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3167 forwards; 3168 animation-delay: 100ms; 3169 3170 &:after, 3171 &:before { 3172 content: ''; 3173 animation: ${$Y} 0.15s ease-out forwards; 3174 animation-delay: 150ms; 3175 position: absolute; 3176 border-radius: 3px; 3177 opacity: 0; 3178 background: ${t=>t.secondary||"#fff"}; 3179 bottom: 9px; 3180 left: 4px; 3181 height: 2px; 3182 width: 12px; 3183 } 3184 3185 &:before { 3186 animation: ${VY} 0.15s ease-out forwards; 3187 animation-delay: 180ms; 3188 transform: rotate(90deg); 3189 } 3190`,jY=zi` 3191 from { 3192 transform: rotate(0deg); 3193 } 3194 to { 3195 transform: rotate(360deg); 3196 } 3197`,UY=rs("div")` 3198 width: 12px; 3199 height: 12px; 3200 box-sizing: border-box; 3201 border: 2px solid; 3202 border-radius: 100%; 3203 border-color: ${t=>t.secondary||"#e0e0e0"}; 3204 border-right-color: ${t=>t.primary||"#616161"}; 3205 animation: ${jY} 1s linear infinite; 3206`,BY=zi` 3207from { 3208 transform: scale(0) rotate(45deg); 3209 opacity: 0; 3210} 3211to { 3212 transform: scale(1) rotate(45deg); 3213 opacity: 1; 3214}`,zY=zi` 32150% { 3216 height: 0; 3217 width: 0; 3218 opacity: 0; 3219} 322040% { 3221 height: 0; 3222 width: 6px; 3223 opacity: 1; 3224} 3225100% { 3226 opacity: 1; 3227 height: 10px; 3228}`,WY=rs("div")` 3229 width: 20px; 3230 opacity: 0; 3231 height: 20px; 3232 border-radius: 10px; 3233 background: ${t=>t.primary||"#61d345"}; 3234 position: relative; 3235 transform: rotate(45deg); 3236 3237 animation: ${BY} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3238 forwards; 3239 animation-delay: 100ms; 3240 &:after { 3241 content: ''; 3242 box-sizing: border-box; 3243 animation: ${zY} 0.2s ease-out forwards; 3244 opacity: 0; 3245 animation-delay: 200ms; 3246 position: absolute; 3247 border-right: 2px solid; 3248 border-bottom: 2px solid; 3249 border-color: ${t=>t.secondary||"#fff"}; 3250 bottom: 6px; 3251 left: 6px; 3252 height: 10px; 3253 width: 6px; 3254 } 3255`,HY=rs("div")` 3256 position: absolute; 3257`,KY=rs("div")` 3258 position: relative; 3259 display: flex; 3260 justify-content: center; 3261 align-items: center; 3262 min-width: 20px; 3263 min-height: 20px; 3264`,GY=zi` 3265from { 3266 transform: scale(0.6); 3267 opacity: 0.4; 3268} 3269to { 3270 transform: scale(1); 3271 opacity: 1; 3272}`,qY=rs("div")` 3273 position: relative; 3274 transform: scale(0.6); 3275 opacity: 0.4; 3276 min-width: 20px; 3277 animation: ${GY} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3278 forwards; 3279`,QY=({toast:t})=>{let{icon:e,type:n,iconTheme:r}=t;return e!==void 0?typeof e=="string"?f.createElement(qY,null,e):e:n==="blank"?null:f.createElement(KY,null,f.createElement(UY,{...r}),n!=="loading"&&f.createElement(HY,null,n==="error"?f.createElement(FY,{...r}):f.createElement(WY,{...r})))},YY=t=>` 32800% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;} 3281100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 3282`,XY=t=>` 32830% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 3284100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;} 3285`,ZY="0%{opacity:0;} 100%{opacity:1;}",JY="0%{opacity:1;} 100%{opacity:0;}",eX=rs("div")` 3286 display: flex; 3287 align-items: center; 3288 background: #fff; 3289 color: #363636; 3290 line-height: 1.3; 3291 will-change: transform; 3292 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 3293 max-width: 350px; 3294 pointer-events: auto; 3295 padding: 8px 10px; 3296 border-radius: 8px; 3297`,tX=rs("div")` 3298 display: flex; 3299 justify-content: center; 3300 margin: 4px 10px; 3301 color: inherit; 3302 flex: 1 1 auto; 3303 white-space: pre-line; 3304`,nX=(t,e)=>{let n=t.includes("top")?1:-1,[r,i]=RY()?[ZY,JY]:[YY(n),XY(n)];return{animation:e?`${zi(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${zi(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}};f.memo(({toast:t,position:e,style:n,children:r})=>{let i=t.height?nX(t.position||e||"top-center",t.visible):{opacity:0}
3304,o=f.createElement(QY,{toast:t}),s=f.createElement(tX,{...t.ariaProps},sw(t.message,t));return f.createElement(eX,{className:t.className,style:{...i,...n,...t.style}},typeof r=="function"?r({icon:o,message:s}):f.createElement(f.Fragment,null,o,s))});PY(f.createElement);Bm` 3305 z-index: 9999; 3306 > * { 3307 pointer-events: auto; 3308 } 3309`;var Do=Dr;const rX={apiKey:"AIzaSyBcxmoEtAXtTW5fg3QTl51f5ttXwxTXzg8",authDomain:"countries-bootstrap-23k.firebaseapp.com",projectId:"countries-bootstrap-23k",storageBucket:"countries-bootstrap-23k.appspot.com",messagingSenderId:"278993426092",appId:"1:278993426092:web:c828834bc07118c5b33109"},k2=RM(rX),$r=lK(k2),Od=nY(k2),iX=async(t,e)=>{try{await KW($r,t,e),Do.success("Successfully logged in")}catch(n){Do.error(n.message)}},oX=async(t,e,n)=>{try{const i=(await HW($r,e,n)).user;Do.success("Registration successful"),await P2(Md(Od,"users"),{uid:i.uid,name:t,authProvider:"local",email:e})}catch(r){Do.error(r.message)}},gT=()=>{YW($r),Do.success("Logged out successfully")},sX=async(t,e)=>{try{await P2(Md(Od,`users/${t}/favourites`),{name:e})}catch(n){console.log("Error adding favourite to Firebase database",n)}},aX=async(t,e)=>{try{if(!e)return;const n=C2(Md(Od,`users/${t}/favourites`),pY("name","==",e));(await p_(n)).forEach(i=>{T2(i.ref)})}catch(n){console.log("Error removing favourite from Firebase database",n)}},lX=async t=>{try{const e=C2(Md(Od,`users/${t}/favourites`));(await p_(e)).forEach(r=>{T2(r.ref)})}catch(e){console.log("Error removing favourites from Firebase database",e)}};/*! ***************************************************************************** 3310Copyright (c) Microsoft Corporation. 3311 3312Permission to use, copy, modify, and/or distribute this software for any 3313purpose with or without fee is hereby granted. 3314 3315THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 3316REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 3317AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 3318INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 3319LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 3320OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 3321PERFORMANCE OF THIS SOFTWARE. 3322***************************************************************************** */function uX(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}function cX(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}/*! ***************************************************************************** 3323Copyright (c) Microsoft Corporation. 3324 3325Permission to use, copy, modify, and/or distribute this software for any 3326purpose with or without fee is hereby granted. 3327 3328THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 3329REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 3330AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 3331INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 3332LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 3333OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 3334PERFORMANCE OF THIS SOFTWARE. 3335***************************************************************************** */var Ha=function(){return Ha=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ha.apply(this,arguments)},A2=function(t){return{loading:t==null,value:t}},dX=function(){return function(t,e){switch(e.type){case"error":return Ha(Ha({},t),{error:e.error,loading:!1,value:void 0});case"reset":return A2(e.defaultValue);case"value":return Ha(Ha({},t),{error:void 0,loading:!1,value:e.value});default:return t}}},fX=function(t){var e=t?t():void 0,n=f.useReducer(dX(),A2(e)),r=n[0],i=n[1],o=f.useCallback(function(){var l=t?t():void 0;i({type:"reset",defaultValue:l})},[t]),s=f.useCallback(function(l){i({type:"error",error:l})},[]),a=f.useCallback(function(l){i({type:"value",value:l})},[]);return f.useMemo(function(){return{error:r.error,loading:r.loading,reset:o,setError:s,setValue:a,value:r.value}},[r.error,r.loading,o,s,a,r.value])},Wm=function(t,e){var n=fX(function(){return t.currentUser}),r=n.error,i=n.loading,o=n.setError,s=n.setValue,a=n.value;return f.useEffect(function(){var l=QW(t,function(u){return uX(void 0,void 0,void 0,function(){var c;return cX(this,function(d){switch(d.label){case 0:if(!(e!=null&&e.onUserChanged))return[3,4];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,e.onUserChanged(u)];case 2:return d.sent(),[3,4];case 3:return c=d.sent(),o(c),[3,4];case 4:return s(u),[2]}})})},o);return function(){l()}},[t]),[a,i,r]};const hX=()=>{const[t]=Wm($r),[e,n]=f.useState(!1);return T.jsxs(f.Fragment,{children:[T.jsx(T.Fragment,{children:T.jsxs(g9,{className:"flex w-full justify-between items-center sm:py-6 sm:px-6 data-[active=true]:after:bg-blue-400",isBordered:!0,isMenuOpen:e,onMenuOpenChange:n,children:[T.jsx(v9,{children:T.jsx(Qh,{src:y8,alt:"logo",width:300})}),T.jsxs(RC,{className:"sm:flex hidden flex-1 self-start justify-center",justify:"end",children:[T.jsx(cu,{children:T.jsx(hn,{to:"/",children:"Home"})}),T.jsx(cu,{children:T.jsx(hn,{to:"/countries",children:"Countries"})}),T.jsx(cu,{children:T.jsx(hn,{to:"/favourites",children:"Favourites"})}),T.jsx(cu,{children:t?T.jsx(hn,{onClick:gT,to:"",children:"Logout"}):T.jsx(hn,{to:"/login",children:"Login"})}),T.jsx(cu,{children:T.jsx(hn,{to:"/register",children:"Register"})})]}),T.jsxs(TA,{className:"flex items-center",children:[T.jsx(du,{className:"mb-5 mt-5",children:T.jsx(hn,{to:"/",children:"Home"})}),T.jsx(du,{className:"mb-5",children:T.jsx(hn,{to:"/countries",children:"Countries"})}),T.jsx(du,{className:"mb-5",children:T.jsx(hn,{to:"/favourites",children:"Favourites"})}),T.jsx(du,{className:"mb-5",children:T.jsx(hn,{to:"/register",children:"Register"})}),T.jsx(du,{children:t?T.jsx(hn,{onClick:gT,to:"",children:"Logout"}):T.jsx(hn,{to:"/login",children:"Login"})})]}),T.jsx(RC,{className:"sm:hidden flex items-center self-start justify-center",justify:"end",children:T.jsx(w9,{"aria-label":e?"Close menu":"Open menu"})})]})}),T.jsx(T.Fragment,{children:T.jsx(nE,{})})]})},pX=()=>T.jsxs("div",{className:"w-[full] h-screen",children:[T.jsx("video",{src:w8,autoPlay:!0,loop:!0,muted:!0,className:"w-screen h-screen p-0 m-0 object-cover brightness-50"}),T.jsxs("div",{className:"absolute top-0 h-screen flex flex-col justify-center items-center ml-1/2 w-screen text-white font-poppins",children:[T.jsx("p",{className:"sm:text-[10em] xs:text-[5px]",children:"Welcome"}),T.jsx("p",{className:"sm:text-[2em]",children:"To my Country Map App"})]})]});var M2={exports:{}},D2={};/** 3336 * @license React 3337 * use-sync-external-store-shim.production.min.js 3338 * 3339 * Copyright (c) Facebook, Inc. and its affiliates. 3340 * 3341 * This source code is licensed under the MIT license found in the 3342 * LICENSE file in the root directory of this source tree. 3343 */var xl=f;function mX(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var gX=typeof Object.is=="function"?Object.is:mX,vX=xl.useState,yX=xl.useEffect,wX=xl.useLayoutEffect,bX=xl.useDebugValue;function EX(t,e){var n=e(),r=vX({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return wX(function(){i.value=n,i.getSnapshot=e,Vv(i)&&o({inst:i})},[t,n,e]),yX(function(){return Vv(i)&&o({inst:i}),t(function(){Vv(i)&&o({inst:i})})},[t]),bX(n),n}function Vv(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!gX(t,n)}catch{return!0}}function _X(t,e){return e()}var SX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_X:EX;D2.useSyncExternalStore=xl.useSyncExternalStore!==void 0?xl.useSyncExternalStore:SX;M2.exports=D2;var CX=M2.exports,O2={exports:{}},N2={};
3343/** 3344 * @license React 3345 * use-sync-external-store-shim/with-selector.production.min.js 3346 * 3347 * Copyright (c) Facebook, Inc. and its affiliates. 3348 * 3349 * This source code is licensed under the MIT license found in the 3350 * LICENSE file in the root directory of this source tree. 3351 */var Hm=f,xX=CX;function TX(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var PX=typeof Object.is=="function"?Object.is:TX,IX=xX.useSyncExternalStore,LX=Hm.useRef,RX=Hm.useEffect,kX=Hm.useMemo,AX=Hm.useDebugValue;N2.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=LX(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=kX(function(){function l(p){if(!u){if(u=!0,c=p,p=r(p),i!==void 0&&s.hasValue){var m=s.value;if(i(m,p))return d=m}return d=p}if(m=d,PX(c,p))return m;var g=r(p);return i!==void 0&&i(m,g)?m:(c=p,d=g)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(e())},h===null?void 0:function(){return l(h())}]},[e,n,r,i]);var a=IX(t,o[0],o[1]);return RX(function(){s.hasValue=!0,s.value=a},[a]),AX(a),a};O2.exports=N2;var MX=O2.exports;function DX(t){t()}let $2=DX;const OX=t=>$2=t,NX=()=>$2,vT=Symbol.for("react-redux-context"),yT=typeof globalThis<"u"?globalThis:{};function $X(){var t;if(!f.createContext)return{};const e=(t=yT[vT])!=null?t:yT[vT]=new Map;let n=e.get(f.createContext);return n||(n=f.createContext(null),e.set(f.createContext,n)),n}const Ko=$X();function m_(t=Ko){return function(){return f.useContext(t)}}const V2=m_(),VX=()=>{throw new Error("uSES not initialized!")};let F2=VX;const FX=t=>{F2=t},jX=(t,e)=>t===e;function UX(t=Ko){const e=t===Ko?V2:m_(t);return function(r,i={}){const{equalityFn:o=jX,stabilityCheck:s=void 0,noopCheck:a=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:h}=e();f.useRef(!0);const p=f.useCallback({[r.name](g){return r(g)}}[r.name],[r,d,s]),m=F2(u.addNestedSub,l.getState,c||l.getState,p,o);return f.useDebugValue(m),m}}const Ts=UX();var j2={exports:{}},nt={};/** @license React v16.13.1 3352 * react-is.production.min.js 3353 * 3354 * Copyright (c) Facebook, Inc. and its affiliates. 3355 * 3356 * This source code is licensed under the MIT license found in the 3357 * LICENSE file in the root directory of this source tree. 3358 */var Jt=typeof Symbol=="function"&&Symbol.for,g_=Jt?Symbol.for("react.element"):60103,v_=Jt?Symbol.for("react.portal"):60106,Km=Jt?Symbol.for("react.fragment"):60107,Gm=Jt?Symbol.for("react.strict_mode"):60108,qm=Jt?Symbol.for("react.profiler"):60114,Qm=Jt?Symbol.for("react.provider"):60109,Ym=Jt?Symbol.for("react.context"):60110,y_=Jt?Symbol.for("react.async_mode"):60111,Xm=Jt?Symbol.for("react.concurrent_mode"):60111,Zm=Jt?Symbol.for("react.forward_ref"):60112,Jm=Jt?Symbol.for("react.suspense"):60113,BX=Jt?Symbol.for("react.suspense_list"):60120,eg=Jt?Symbol.for("react.memo"):60115,tg=Jt?Symbol.for("react.lazy"):60116,zX=Jt?Symbol.for("react.block"):60121,WX=Jt?Symbol.for("react.fundamental"):60117,HX=Jt?Symbol.for("react.responder"):60118,KX=Jt?Symbol.for("react.scope"):60119;function ir(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case g_:switch(t=t.type,t){case y_:case Xm:case Km:case qm:case Gm:case Jm:return t;default:switch(t=t&&t.$$typeof,t){case Ym:case Zm:case tg:case eg:case Qm:return t;default:return e}}case v_:return e}}}function U2(t){return ir(t)===Xm}nt.AsyncMode=y_;nt.ConcurrentMode=Xm;nt.ContextConsumer=Ym;nt.ContextProvider=Qm;nt.Element=g_;nt.ForwardRef=Zm;nt.Fragment=Km;nt.Lazy=tg;nt.Memo=eg;nt.Portal=v_;nt.Profiler=qm;nt.StrictMode=Gm;nt.Suspense=Jm;nt.isAsyncMode=function(t){return U2(t)||ir(t)===y_};nt.isConcurrentMode=U2;nt.isContextConsumer=function(t){return ir(t)===Ym};nt.isContextProvider=function(t){return ir(t)===Qm};nt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===g_};nt.isForwardRef=function(t){return ir(t)===Zm};nt.isFragment=function(t){return ir(t)===Km};nt.isLazy=function(t){return ir(t)===tg};nt.isMemo=function(t){return ir(t)===eg};nt.isPortal=function(t){return ir(t)===v_};nt.isProfiler=function(t){return ir(t)===qm};nt.isStrictMode=function(t){return ir(t)===Gm};nt.isSuspense=function(t){return ir(t)===Jm};nt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Km||t===Xm||t===qm||t===Gm||t===Jm||t===BX||typeof t=="object"&&t!==null&&(t.$$typeof===tg||t.$$typeof===eg||t.$$typeof===Qm||t.$$typeof===Ym||t.$$typeof===Zm||t.$$typeof===WX||t.$$typeof===HX||t.$$typeof===KX||t.$$typeof===zX)};nt.typeOf=ir;j2.exports=nt;var GX=j2.exports,B2=GX,qX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},QX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z2={};z2[B2.ForwardRef]=qX;z2[B2.Memo]=QX;var rt={};/** 3359 * @license React 3360 * react-is.production.min.js 3361 * 3362 * Copyright (c) Facebook, Inc. and its affiliates. 3363 * 3364 * This source code is licensed under the MIT license found in the 3365 * LICENSE file in the root directory of this source tree. 3366 */var w_=Symbol.for("react.element"),b_=Symbol.for("react.portal"),ng=Symbol.for("react.fragment"),rg=Symbol.for("react.strict_mode"),ig=Symbol.for("react.profiler"),og=Symbol.for("react.provider"),sg=Symbol.for("react.context"),YX=Symbol.for("react.server_context"),ag=Symbol.for("react.forward_ref"),lg=Symbol.for("react.suspense"),ug=Symbol.for("react.suspense_list"),cg=Symbol.for("react.memo"),dg=Symbol.for("react.lazy"),XX=Symbol.for("react.offscreen"),W2;W2=Symbol.for("react.module.reference");function xr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case w_:switch(t=t.type,t){case ng:case ig:case rg:case lg:case ug:return t;default:switch(t=t&&t.$$typeof,t){case YX:case sg:case ag:case dg:case cg:case og:return t;default:return e}}case b_:return e}}}rt.ContextConsumer=sg;rt.ContextProvider=og;rt.Element=w_;rt.ForwardRef=ag;rt.Fragment=ng;rt.Lazy=dg;rt.Memo=cg;rt.Portal=b_;rt.Profiler=ig;rt.StrictMode=rg;rt.Suspense=lg;rt.SuspenseList=ug;rt.isAsyncMode=function(){return!1};rt.isConcurrentMode=function(){return!1};rt.isContextConsumer=function(t){return xr(t)===sg};rt.isContextProvider=function(t){return xr(t)===og};rt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===w_};rt.isForwardRef=function(t){return xr(t)===ag};rt.isFragment=function(t){return xr(t)===ng};rt.isLazy=function(t){return xr(t)===dg};rt.isMemo=function(t){return xr(t)===cg};rt.isPortal=function(t){return xr(t)===b_};rt.isProfiler=function(t){return xr(t)===ig};rt.isStrictMode=function(t){return xr(t)===rg};rt.isSuspense=function(t){return xr(t)===lg};rt.isSuspenseList=function(t){return xr(t)===ug};rt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===ng||t===ig||t===rg||t===lg||t===ug||t===XX||typeof t=="object"&&t!==null&&(t.$$typeof===dg||t.$$typeof===cg||t.$$typeof===og||t.$$typeof===sg||t.$$typeof===ag||t.$$typeof===W2||t.getModuleId!==void 0)};rt.typeOf=xr;function ZX(){const t=NX();let e=null,n=null;return{clear(){e=null,n=null},notify(){t(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=e;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}const wT={notify(){},get:()=>[]};function JX(t,e){let n,r=wT,i=0,o=!1;function s(g){c();const b=r.subscribe(g);let w=!1;return()=>{w||(w=!0,b(),d())}}function a(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=e?e.addNestedSub(l):t.subscribe(l),r=ZX())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=wT)}function h(){o||(o=!0,c())}function p(){o&&(o=!1,d())}const m={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:h,tryUnsubscribe:p,getListeners:()=>r};return m}const eZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tZ=eZ?f.useLayoutEffect:f.useEffect;function nZ({store:t,context:e,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=f.useMemo(()=>{const u=JX(t);return{store:t,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[t,r,i,o]),a=f.useMemo(()=>t.getState(),[t]);tZ(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==t.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=e||Ko;return f.createElement(l.Provider,{value:s},n)}function H2(t=Ko){const e=t===Ko?V2:m_(t);return function(){const{store:r}=e();return r}}const rZ=H2();function iZ(t=Ko){const e=t===Ko?rZ:H2(t);return function(){return e().dispatch}}const E_=iZ();FX(MX.useSyncExternalStoreWithSelector);OX(Ki.unstable_batchedUpdates);var K2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},bT=Oe.createContext&&Oe.createContext(K2),Oo=globalThis&&globalThis.__assign||function(){return Oo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Oo.apply(this,arguments)},oZ=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function G2(t){return t&&t.map(function(e,n){return Oe.createElement(e.tag,Oo({key:n},e.attr),G2(e.child))})}function Nd(t){return function(e){return Oe.createElement(sZ,Oo({attr:Oo({},t.attr)},e),G2(t.child))}}function sZ(t){var e=function(n){var r=t.attr,i=t.size,o=t.title,s=oZ(t,["attr","size","title"]),a=i||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),Oe.createElement("svg",Oo({stroke:"currentColor",fill:"
3366currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Oo(Oo({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Oe.createElement("title",null,o),t.children)};return bT!==void 0?Oe.createElement(bT.Consumer,null,function(n){return e(n)}):e(K2)}function aZ(t){return Nd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 2C13.0675 2 16.426 5.03562 16.9337 8.96494L19.1842 12.5037C19.3324 12.7367 19.3025 13.0847 18.9593 13.2317L17 14.071V17C17 18.1046 16.1046 19 15 19H13.001L13 22H4L4.00025 18.3061C4.00033 17.1252 3.56351 16.0087 2.7555 15.0011 1.65707 13.6313 1 11.8924 1 10 1 5.58172 4.58172 2 9 2ZM21.1535 18.1024 19.4893 16.9929C20.4436 15.5642 21 13.8471 21 12.0001 21 10.153 20.4436 8.4359 19.4893 7.00722L21.1535 5.89771C22.32 7.64386 23 9.74254 23 12.0001 23 14.2576 22.32 16.3562 21.1535 18.1024Z"}}]})(t)}function lZ(t){return Nd({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}}]})(t)}function uZ(t){return Nd({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M327.027 65.816L229.79 128.23l9.856 5.397 86.51-55.53 146.735 83.116-84.165 54.023 4.1 2.244v6.848l65.923-42.316 13.836 7.838-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l100.033-64.21-24.828-14.062 24.827-15.937-24.828-14.064 24.827-15.937-23.537-13.333 23.842-15.305-166.135-94.106zm31.067 44.74c-21.038 10.556-49.06 12.342-68.79 4.383l-38.57 24.757 126.903 69.47 36.582-23.48c-14.41-11.376-13.21-28.35 2.942-41.67l-59.068-33.46zM227.504 147.5l-70.688 46.094 135.61 78.066 1.33-.85c2.5-1.61 6.03-3.89 10.242-6.613 8.42-5.443 19.563-12.66 30.674-19.86 16.002-10.37 24.248-15.72 31.916-20.694L227.504 147.5zm115.467 1.17a8.583 14.437 82.068 0 1 .003 0 8.583 14.437 82.068 0 1 8.32 1.945 8.583 14.437 82.068 0 1-.87 12.282 8.583 14.437 82.068 0 1-20.273 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.237zm-218.423 47.115L19.143 263.44l23.537 13.333-23.842 15.305 24.828 14.063-24.828 15.938 24.828 14.063-24.828 15.938 166.135 94.106L285.277 381.8V370.08l-99.433 63.824L39.11 350.787l14.255-9.15 131.608 74.547L285.277 351.8V340.08l-99.433 63.824L39.11 320.787l14.255-9.15 131.608 74.547L285.277 321.8V310.08l-99.433 63.824L39.11 290.787l13.27-8.52 132.9 75.28 99.997-64.188v-5.05l-5.48-3.154-93.65 60.11-146.73-83.116 94.76-60.824-9.63-5.543zm20.46 11.78l-46.92 30.115c14.41 11.374 13.21 28.348-2.942 41.67l59.068 33.46c21.037-10.557 49.057-12.342 68.787-4.384l45.965-29.504-123.96-71.358zm229.817 32.19c-8.044 5.217-15.138 9.822-30.363 19.688-11.112 7.203-22.258 14.42-30.69 19.873-4.217 2.725-7.755 5.01-10.278 6.632-.09.06-.127.08-.215.137v85.924l71.547-48.088v-84.166zm-200.99 17.48a8.583 14.437 82.068 0 1 8.32 1.947 8.583 14.437 82.068 0 1-.87 12.28 8.583 14.437 82.068 0 1-20.27 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.236z"}}]})(t)}function cZ(t){return Nd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l
3366-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"}}]})(t)}function dZ(t){return Nd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"}}]})(t)}var q2={},Q2={},Y2={exports:{}},fZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hZ=fZ,pZ=hZ;function X2(){}function Z2(){}Z2.resetWarningCache=X2;var mZ=function(){function t(r,i,o,s,a,l){if(l!==pZ){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Z2,resetWarningCache:X2};return n.PropTypes=n,n};Y2.exports=mZ();var gZ=Y2.exports;const vZ=YN(v8);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o(f),n=o(gZ),r=vZ,i=["children","onClick","replace","to","state","activeClassName","className","activeStyle","style","isActive"];function o(g){return g&&g.__esModule?g:{default:g}}function s(g,b){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(g);b&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),w.push.apply(w,v)}return w}function a(g){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?s(Object(w),!0).forEach(function(v){l(g,v,w[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):s(Object(w)).forEach(function(v){Object.defineProperty(g,v,Object.getOwnPropertyDescriptor(w,v))})}return g}function l(g,b,w){return b in g?Object.defineProperty(g,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[b]=w,g}function u(g){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},u(g)}function c(g,b){if(g==null)return{};var w=d(g,b),v,y;if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);for(y=0;y<E.length;y++)v=E[y],!(b.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(g,v)&&(w[v]=g[v])}return w}function d(g,b){if(g==null)return{};var w={},v=Object.keys(g),y,E;for(E=0;E<v.length;E++)y=v[E],!(b.indexOf(y)>=0)&&(w[y]=g[y]);return w}var h=function(b){return!!(b.metaKey||b.altKey||b.ctrlKey||b.shiftKey)},p=function(b){var w=b.children,v=b.onClick,y=b.replace,E=b.to,C=b.state,S=b.activeClassName,P=b.className,_=b.activeStyle,k=b.style,L=b.isActive,I=c(b,i),M=u(E)==="object"?E.pathname||"":E,R=(0,r.useNavigate)(),A=(0,r.useHref)(typeof E=="string"?{pathname:E}:E),O=(0,r.useMatch)(M),j=(0,r.useLocation)(),U=e.default.Children.only(w),D=!!(L?typeof L=="function"?L(O,j):L:O),B=function(x){w.props.onClick&&w.props.onClick(x),v&&v(x),!x.defaultPrevented&&x.button===0&&!h(x)&&(x.preventDefault(),R(E,{replace:y,state:C}))};return e.default.cloneElement(U,a(a({},I),{},{className:[P,U.props.className,D?S:null].join(" ").trim(),style:D?a(a({},k),_):k,href:A,onClick:B}))};p.propTypes={children:n.default.element.isRequired,onClick:n.default.func,replace:n.default.bool,to:n.default.oneOfType([n.default.string,n.default.object]).isRequired,state:n.default.object,className:n.default.string,activeClassName:n.default.string,style:n.default.objectOf(n.default.oneOfType([n.default.string,n.default.number])),activeStyle:n.default.objectOf(n.default.oneOfType([n.default.string,n.default.number])),isActive:n.default.oneOfType([n.default.func,n.default.bool])},p.defaultProps={replace:!1,activeClassName:"active",onClick:null,className:null,style:null,activeStyle:null,isActive:null};var m=p;t.default=m})(Q2);
3366(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LinkContainer",{enumerable:!0,get:function(){return e.default}});var e=n(Q2);function n(r){return r&&r.__esModule?r:{default:r}}})(q2);function Ar(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Go(t){return!!t&&!!t[Et]}function Wi(t){var e;return!!t&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===TZ}(t)||Array.isArray(t)||!!t[PT]||!!(!((e=t.constructor)===null||e===void 0)&&e[PT])||__(t)||S_(t))}function Qs(t,e,n){n===void 0&&(n=!1),Kl(t)===0?(n?Object.keys:ol)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,i){return e(i,r,t)})}function Kl(t){var e=t[Et];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:__(t)?2:S_(t)?3:0}function il(t,e){return Kl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yZ(t,e){return Kl(t)===2?t.get(e):t[e]}function J2(t,e,n){var r=Kl(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function eN(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function __(t){return CZ&&t instanceof Map}function S_(t){return xZ&&t instanceof Set}function hs(t){return t.o||t.t}function C_(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=nN(t);delete e[Et];for(var n=ol(e),r=0;r<n.length;r++){var i=n[r],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function x_(t,e){return e===void 0&&(e=!1),T_(t)||Go(t)||!Wi(t)||(Kl(t)>1&&(t.set=t.add=t.clear=t.delete=wZ),Object.freeze(t),e&&Qs(t,function(n,r){return x_(r,!0)},!0)),t}function wZ(){Ar(2)}function T_(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function fi(t){var e=dw[t];return e||Ar(18,t),e}function bZ(t,e){dw[t]||(dw[t]=e)}function lw(){return Gc}function Fv(t,e){e&&(fi("Patches"),t.u=[],t.s=[],t.v=e)}function Cp(t){uw(t),t.p.forEach(EZ),t.p=null}function uw(t){t===Gc&&(Gc=t.l)}function ET(t){return Gc={p:[],l:Gc,h:t,m:!0,_:0}}function EZ(t){var e=t[Et];e.i===0||e.i===1?e.j():e.g=!0}function jv(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.O||fi("ES5").S(e,t,r),r?(n[Et].P&&(Cp(e),Ar(4)),Wi(t)&&(t=xp(e,t),e.l||Tp(e,t)),e.u&&fi("Patches").M(n[Et].t,t,e.u,e.s)):t=xp(e,n,[]),Cp(e),e.u&&e.v(e.u,e.s),t!==tN?t:void 0}function xp(t,e,n){if(T_(e))return e;var r=e[Et];if(!r)return Qs(e,function(a,l){return _T(t,r,e,a,l,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Tp(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=C_(r.k):r.o,o=i,s=!1;r.i===3&&(o=new Set(i),i.clear(),s=!0),Qs(o,function(a,l){return _T(t,r,i,a,l,n,s)}),Tp(t,i,!1),n&&t.u&&fi("Patches").N(r,n,t.u,t.s)}return r.o}function _T(t,e,n,r,i,o,s){if(Go(i)){var a=xp(t,i,o&&e&&e.i!==3&&!il(e.R,r)?o.concat(r):void 0);if(J2(n,r,a),!Go(a))return;t.m=!1}else s&&n.add(i);if(Wi(i)&&!T_(i)){if(!t.h.D&&t._<1)return;xp(t,i),e&&e.A.l||Tp(t,i)}}function Tp(t,e,n){n===void 0&&(n=!1),!t.l&&t.h.D&&t.m&&x_(e,n)}function Uv(t,e){var n=t[Et];return(n?hs(n):t)[e]}function ST(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function po(t){t.P||(t.P=!0,t.l&&po(t.l))}function Bv(t){t.o||(t.o=C_(t.t))}function cw(t,e,n){var r=__(e)?fi("MapSet").F(e,n):S_(e)?fi("MapSet").T(e,n):t.O?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:lw(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=qc;s&&(l=[a],u=Ou);var c=Proxy.revocable(l,u),d=c.revoke,h=c.proxy;return a.k=h,a.j=d,h}(e,n):fi("ES5").J(e,n);return(n?n.A:lw()).p.push(r),r}function _Z(t){return Go(t)||Ar(22,t),function e(n){if(!Wi(n))return n;var r,i=n[Et],o=Kl(n);if(i){if(!i.P&&(i.i<4||!fi("ES5").K(i)))return i.t;i.I=!0,r=CT(n,o),i.I=!1}else r=CT(n,o);return Qs(r,function(s,a){i&&yZ(i.t,s)===a||J2(r,s,e(a))}),o===3?new Set(r):r}(t)}function CT(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return C_(t)}function SZ(){function t(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[Et];return qc.get(l,o)},set:function(l){var u=this[Et];qc.set(u,o,l)}},a}function e(o){for(var s=o.length-1;s>=0;s--){var a=o[s][Et];
3366if(!a.P)switch(a.i){case 5:r(a)&&po(a);break;case 4:n(a)&&po(a)}}}function n(o){for(var s=o.t,a=o.k,l=ol(a),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Et){var d=s[c];if(d===void 0&&!il(s,c))return!0;var h=a[c],p=h&&h[Et];if(p?p.t!==d:!eN(h,d))return!0}}var m=!!s[Et];return l.length!==ol(s).length+(m?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l<s.length;l++)if(!s.hasOwnProperty(l))return!0;return!1}var i={};bZ("ES5",{J:function(o,s){var a=Array.isArray(o),l=function(c,d){if(c){for(var h=Array(d.length),p=0;p<d.length;p++)Object.defineProperty(h,""+p,t(p,!0));return h}var m=nN(d);delete m[Et];for(var g=ol(m),b=0;b<g.length;b++){var w=g[b];m[w]=t(w,c||!!m[w].enumerable)}return Object.create(Object.getPrototypeOf(d),m)}(a,o),u={i:a?5:4,A:s?s.A:lw(),P:!1,I:!1,R:{},l:s,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,Et,{value:u,writable:!0}),l},S:function(o,s,a){a?Go(s)&&s[Et].A===o&&e(o.p):(o.u&&function l(u){if(u&&typeof u=="object"){var c=u[Et];if(c){var d=c.t,h=c.k,p=c.R,m=c.i;if(m===4)Qs(h,function(y){y!==Et&&(d[y]!==void 0||il(d,y)?p[y]||l(h[y]):(p[y]=!0,po(c)))}),Qs(d,function(y){h[y]!==void 0||il(h,y)||(p[y]=!1,po(c))});else if(m===5){if(r(c)&&(po(c),p.length=!0),h.length<d.length)for(var g=h.length;g<d.length;g++)p[g]=!1;else for(var b=d.length;b<h.length;b++)p[b]=!0;for(var w=Math.min(h.length,d.length),v=0;v<w;v++)h.hasOwnProperty(v)||(p[v]=!0),p[v]===void 0&&l(h[v])}}}}(o.p[0]),e(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var xT,Gc,P_=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",CZ=typeof Map<"u",xZ=typeof Set<"u",TT=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",tN=P_?Symbol.for("immer-nothing"):((xT={})["immer-nothing"]=!0,xT),PT=P_?Symbol.for("immer-draftable"):"__$immer_draftable",Et=P_?Symbol.for("immer-state"):"__$immer_state",TZ=""+Object.prototype.constructor,ol=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,nN=Object.getOwnPropertyDescriptors||function(t){var e={};return ol(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},dw={},qc={get:function(t,e){if(e===Et)return t;var n=hs(t);if(!il(n,e))return function(i,o,s){var a,l=ST(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0}(t,n,e);var r=n[e];return t.I||!Wi(r)?r:r===Uv(t.t,e)?(Bv(t),t.o[e]=cw(t.A.h,r,t)):r},has:function(t,e){return e in hs(t)},ownKeys:function(t){return Reflect.ownKeys(hs(t))},set:function(t,e,n){var r=ST(hs(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=Uv(hs(t),e),o=i==null?void 0:i[Et];if(o&&o.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(eN(n,i)&&(n!==void 0||il(t.t,e)))return!0;Bv(t),po(t)}return t.o[e]===n&&(n!==void 0||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return Uv(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Bv(t),po(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=hs(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Ar(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ar(12)}},Ou={};Qs(qc,function(t,e){Ou[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Ou.deleteProperty=function(t,e){return Ou.set.call(this,t,e,void 0)},Ou.set=function(t,e,n){return qc.set.call(this,t[0],e,n,t[0])};var PZ=function(){function t(n){var r=this;this.O=TT,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=r;return function(g){var b=this;g===void 0&&(g=a);for(var w=arguments.length,v=Array(w>1?w-1:0),y=1;y<w;y++)v[y-1]=arguments[y];return l.produce(g,function(E){var C;return(C=o).call.apply(C,[b,E].concat(v))})}}var u;if(typeof o!="function"&&Ar(6),s!==void 0&&typeof s!="function"&&Ar(7),Wi(i)){var c=ET(r),d=cw(r,i,void 0),h=!0;try{u=o(d),h=!1}finally{h?Cp(c):uw(c)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(g){return Fv(c,s),jv(g,c)},function(g){throw Cp(c),g}):(Fv(c,s),jv(u,c))}
3366if(!i||typeof i!="object"){if((u=o(i))===void 0&&(u=i),u===tN&&(u=void 0),r.D&&x_(u,!0),s){var p=[],m=[];fi("Patches").M(i,u,p,m),s(p,m)}return u}Ar(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(u){for(var c=arguments.length,d=Array(c>1?c-1:0),h=1;h<c;h++)d[h-1]=arguments[h];return r.produceWithPatches(u,function(p){return i.apply(void 0,[p].concat(d))})};var s,a,l=r.produce(i,o,function(u,c){s=u,a=c});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,s,a]}):[l,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){Wi(n)||Ar(8),Go(n)&&(n=_Z(n));var r=ET(this),i=cw(this,n,void 0);return i[Et].C=!0,uw(r),i},e.finishDraft=function(n,r){var i=n&&n[Et],o=i.A;return Fv(o,r),jv(void 0,o)},e.setAutoFreeze=function(n){this.D=n},e.setUseProxies=function(n){n&&!TT&&Ar(20),this.O=n},e.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=fi("Patches").$;return Go(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},t}(),tr=new PZ,rN=tr.produce;tr.produceWithPatches.bind(tr);tr.setAutoFreeze.bind(tr);tr.setUseProxies.bind(tr);tr.applyPatches.bind(tr);tr.createDraft.bind(tr);tr.finishDraft.bind(tr);function Qc(t){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qc(t)}function IZ(t,e){if(Qc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function LZ(t){var e=IZ(t,"string");return Qc(e)==="symbol"?e:String(e)}function RZ(t,e,n){return e=LZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function LT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?IT(Object(n),!0).forEach(function(r){RZ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pn(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var RT=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zv=function(){return Math.random().toString(36).substring(7).split("").join(".")},Pp={INIT:"@@redux/INIT"+zv(),REPLACE:"@@redux/REPLACE"+zv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zv()}};function kZ(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function iN(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(pn(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(pn(1));return n(iN)(t,e)}if(typeof t!="function")throw new Error(pn(2));var i=t,o=e,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function c(){if(l)throw new Error(pn(3));return o}function d(g){if(typeof g!="function")throw new Error(pn(4));if(l)throw new Error(pn(5));var b=!0;return u(),a.push(g),function(){if(b){if(l)throw new Error(pn(6));b=!1,u();var v=a.indexOf(g);a.splice(v,1),s=null}}}function h(g){if(!kZ(g))throw new Error(pn(7));if(typeof g.type>"u")throw new Error(pn(8));if(l)throw new Error(pn(9));try{l=!0,o=i(o,g)}finally{l=!1}for(var b=s=a,w=0;w<b.length;w++){var v=b[w];v()}return g}function p(g){if(typeof g!="function")throw new Error(pn(10));i=g,h({type:Pp.REPLACE})}function m(){var g,b=d;return g={subscribe:function(v){if(typeof v!="object"||v===null)throw new Error(pn(11));function y(){v.next&&v.next(c())}y();var E=b(y);return{unsubscribe:E}}},g[RT]=function(){return this},g}return h({type:Pp.INIT}),r={dispatch:h,subscribe:d,getState:c,replaceReducer:p},r[RT]=m,r}function AZ(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:Pp.INIT});if(typeof r>"u")throw new Error(pn(12));if(typeof n(void 0,{type:Pp.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pn(13))})}function MZ(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r];typeof t[i]=="function"&&(n[i]=t[i])}var o=Object.keys(n),s;try{AZ(n)}catch(a){s=a}return function(l,u){if(l===void 0&&(l={}),s)throw s;for(var c=!1,d={},h=0;h<o.length;h++){var p=o[h],m=n[p],g=l[p],b=m(g,u);if(typeof b>"u")throw u&&u.type,new Error(pn(14));d[p]=b,c=c||b!==g}return c=c||o.length!==Object.keys(l).length,c?d:l}}function Ip(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.length===0?function(r){return r}:e.length===1?e[0]:e.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function DZ(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(pn(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=Ip.apply(void 0,a)(i.dispatch),LT(LT({},i),{},{dispatch:o})}}}function oN(t){var e=function(r){var i=r.dispatch,o=r.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,t):s(a)}}};return e}var sN=oN();sN.withExtraArgument=oN;const kT=sN;var aN=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}
3366e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),OZ=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Tl=globalThis&&globalThis.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},NZ=Object.defineProperty,$Z=Object.defineProperties,VZ=Object.getOwnPropertyDescriptors,AT=Object.getOwnPropertySymbols,FZ=Object.prototype.hasOwnProperty,jZ=Object.prototype.propertyIsEnumerable,MT=function(t,e,n){return e in t?NZ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},No=function(t,e){for(var n in e||(e={}))FZ.call(e,n)&&MT(t,n,e[n]);if(AT)for(var r=0,i=AT(e);r<i.length;r++){var n=i[r];jZ.call(e,n)&&MT(t,n,e[n])}return t},Wv=function(t,e){return $Z(t,VZ(e))},UZ=function(t,e,n){return new Promise(function(r,i){var o=function(l){try{a(n.next(l))}catch(u){i(u)}},s=function(l){try{a(n.throw(l))}catch(u){i(u)}},a=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,s)};a((n=n.apply(t,e)).next())})},BZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ip:Ip.apply(null,arguments)};function zZ(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return e===n}function $o(t,e){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(e){var o=e.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return No(No({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:r[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(r){return r.type===t},n}var WZ=function(t){aN(e,t);function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.prototype.concat.apply(this,n)},e.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(e.bind.apply(e,Tl([void 0],n[0].concat(this)))):new(e.bind.apply(e,Tl([void 0],n.concat(this))))},e}(Array),HZ=function(t){aN(e,t);function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.prototype.concat.apply(this,n)},e.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(e.bind.apply(e,Tl([void 0],n[0].concat(this)))):new(e.bind.apply(e,Tl([void 0],n.concat(this))))},e}(Array);function fw(t){return Wi(t)?rN(t,function(){}):t}function KZ(t){return typeof t=="boolean"}function GZ(){return function(e){return qZ(e)}}function qZ(t){t===void 0&&(t={});var e=t.thunk,n=e===void 0?!0:e;t.immutableCheck,t.serializableCheck,t.actionCreatorCheck;var r=new WZ;return n&&(KZ(n)?r.push(kT):r.push(kT.withExtraArgument(n.extraArgument))),r}var QZ=!0;function YZ(t){var e=GZ(),n=t||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,s=o===void 0?e():o,a=n.devTools,l=a===void 0?!0:a,u=n.preloadedState,c=u===void 0?void 0:u,d=n.enhancers,h=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(zZ(i))p=MZ(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;typeof m=="function"&&(m=m(e));var g=DZ.apply(void 0,m),b=Ip;l&&(b=BZ(No({trace:!QZ},typeof l=="object"&&l)));var w=new HZ(g),v=w;Array.isArray(h)?v=Tl([g],h):typeof h=="function"&&(v=h(w));
3366var y=b.apply(void 0,v);return iN(p,c,y)}function lN(t){var e={},n=[],r,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,i},addMatcher:function(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return r=o,i}};return t(i),[e,n,r]}function XZ(t){return typeof t=="function"}function ZZ(t,e,n,r){n===void 0&&(n=[]);var i=typeof e=="function"?lN(e):[e,n,r],o=i[0],s=i[1],a=i[2],l;if(XZ(t))l=function(){return fw(t())};else{var u=fw(t);l=function(){return u}}function c(d,h){d===void 0&&(d=l());var p=Tl([o[h.type]],s.filter(function(m){var g=m.matcher;return g(h)}).map(function(m){var g=m.reducer;return g}));return p.filter(function(m){return!!m}).length===0&&(p=[a]),p.reduce(function(m,g){if(g)if(Go(m)){var b=m,w=g(b,h);return w===void 0?m:w}else{if(Wi(m))return rN(m,function(v){return g(v,h)});var w=g(m,h);if(w===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return m},d)}return c.getInitialState=l,c}function JZ(t,e){return t+"/"+e}function uN(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof t.initialState=="function"?t.initialState:fw(t.initialState),r=t.reducers||{},i=Object.keys(r),o={},s={},a={};i.forEach(function(c){var d=r[c],h=JZ(e,c),p,m;"reducer"in d?(p=d.reducer,m=d.prepare):p=d,o[c]=p,s[h]=p,a[c]=m?$o(h,m):$o(h)});function l(){var c=typeof t.extraReducers=="function"?lN(t.extraReducers):[t.extraReducers],d=c[0],h=d===void 0?{}:d,p=c[1],m=p===void 0?[]:p,g=c[2],b=g===void 0?void 0:g,w=No(No({},h),s);return ZZ(n,function(v){for(var y in w)v.addCase(y,w[y]);for(var E=0,C=m;E<C.length;E++){var S=C[E];v.addMatcher(S.matcher,S.reducer)}b&&v.addDefaultCase(b)})}var u;return{name:e,reducer:function(c,d){return u||(u=l()),u(c,d)},actions:a,caseReducers:o,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}var eJ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tJ=function(t){t===void 0&&(t=21);for(var e="",n=t;n--;)e+=eJ[Math.random()*64|0];return e},nJ=["name","message","stack","code"],Hv=function(){function t(e,n){this.payload=e,this.meta=n}return t}(),DT=function(){function t(e,n){this.payload=e,this.meta=n}return t}(),rJ=function(t){if(typeof t=="object"&&t!==null){for(var e={},n=0,r=nJ;n<r.length;n++){var i=r[n];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}};(function(){function t(e,n,r){var i=$o(e+"/fulfilled",function(u,c,d,h){return{payload:u,meta:Wv(No({},h||{}),{arg:d,requestId:c,requestStatus:"fulfilled"})}}),o=$o(e+"/pending",function(u,c,d){return{payload:void 0,meta:Wv(No({},d||{}),{arg:c,requestId:u,requestStatus:"pending"})}}),s=$o(e+"/rejected",function(u,c,d,h,p){return{payload:h,error:(r&&r.serializeError||rJ)(u||"Rejected"),meta:Wv(No({},p||{}),{arg:d,requestId:c,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"})}}),a=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function l(u){return function(c,d,h){var p=r!=null&&r.idGenerator?r.idGenerator(u):tJ(),m=new a,g;function b(v){g=v,m.abort()}var w=function(){return UZ(this,null,function(){var v,y,E,C,S,P,_;return OZ(this,function(k){switch(k.label){case 0:return k.trys.push([0,4,,5]),C=(v=r==null?void 0:r.condition)==null?void 0:v.call(r,u,{getState:d,extra:h}),oJ(C)?[4,C]:[3,2];case 1:C=k.sent(),k.label=2;case 2:if(C===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=new Promise(function(L,I){return m.signal.addEventListener("abort",function(){return I({name:"AbortError",message:g||"Aborted"})})}),c(o(p,u,(y=r==null?void 0:r.getPendingMeta)==null?void 0:y.call(r,{requestId:p,arg:u},{getState:d,extra:h}
3366))),[4,Promise.race([S,Promise.resolve(n(u,{dispatch:c,getState:d,extra:h,requestId:p,signal:m.signal,abort:b,rejectWithValue:function(L,I){return new Hv(L,I)},fulfillWithValue:function(L,I){return new DT(L,I)}})).then(function(L){if(L instanceof Hv)throw L;return L instanceof DT?i(L.payload,p,u,L.meta):i(L,p,u)})])];case 3:return E=k.sent(),[3,5];case 4:return P=k.sent(),E=P instanceof Hv?s(null,p,u,P.payload,P.meta):s(P,p,u),[3,5];case 5:return _=r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition,_||c(E),[2,E]}})})}();return Object.assign(w,{abort:b,requestId:p,arg:u,unwrap:function(){return w.then(iJ)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function iJ(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function oJ(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var I_="listenerMiddleware";$o(I_+"/add");$o(I_+"/removeAll");$o(I_+"/remove");var OT;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);SZ();const cN=uN({name:"favourites",initialState:{favourites:[],isLoading:!0},reducers:{addFavourite:(t,e)=>{t.favourites.some(r=>r===e.payload)&&(t.favourites=[...t.favourites]),t.favourites=[...t.favourites,e.payload];const n=$r.currentUser;n&&(sX(n.uid,e.payload),Do.success(`${e.payload} added to favourites`))},removeFavourite(t,e){const n=[...t.favourites];n.splice(n.findIndex(i=>i===e.payload),1),t.favourites=[...n];const r=$r.currentUser;r&&(aX(r.uid,e.payload),Do.success(`${e.payload} removed from favourites`))},clearFavourites(t,e){t.favourites=[];const n=$r.currentUser;n&&(lX(n.uid),Do.success("Favourites cleared"))},isLoading(t,e){t.isLoading=e.payload},getFavourites(t,e){t.favourites=e.payload}}}),sJ=()=>async t=>{const e=$r.currentUser;if(e){const r=(await p_(Md(Od,`users/${e.uid}/favourites`))).docs.map(i=>i.data().name);t(dJ(r)),t(cJ(!1))}},{addFavourite:aJ,removeFavourite:lJ,clearFavourites:uJ,isLoading:cJ,getFavourites:dJ}=cN.actions,fJ=cN.reducer,dN=({country:t})=>{const e=Ts(r=>r.favourites.favourites),n=E_();return T.jsx(f.Fragment,{children:T.jsx("div",{className:"mt-10",children:T.jsxs(mA,{className:"h-full",children:[T.jsx(fA,{className:"h-10 pt-10",children:e.includes(t.name.common)?T.jsx(dZ,{size:50,className:"pb-5 mt-3",color:"red",onClick:()=>n(lJ(t.name.common))}):T.jsx(cZ,{size:50,className:"pb-5 mt-3",onClick:()=>n(aJ(t.name.common))})}),T.jsx(q2.LinkContainer,{to:`/countries/${t.name.common}`,state:{country:t},children:T.jsxs("div",{children:[T.jsx(EB,{className:"",children:T.jsx(Qh,{src:t.flags.svg,className:"rounded",style:{objectFit:"contain",minHeight:"200px"}})}),T.jsxs(E0,{children:[T.jsxs("div",{className:"mb-8 font-poppins",children:[T.jsx("p",{className:"font-semibold text-lg",children:t.name.common}),T.jsx("p",{className:"italic font-extralight",children:t.capital})]}),T.jsx("div",{children:T.jsxs("p",{className:"flex items-center",children:[T.jsx(aZ,{size:35}),T.jsx("span",{className:"ml-10",children:Object.values(t.languages??{}).join(", ")})]})}),T.jsx(CC,{}),T.jsx("div",{children:T.jsxs("p",{className:"flex items-center",children:[T.jsx(lZ,{size:35}),T.jsx("span",{className:"ml-10",children:t.population.toLocaleString()})]})}),T.jsx(CC,{}),T.jsx("div",{children:T.jsxs("p",{className:"flex items-center",children:[T.jsx(uZ,{size:35}),T.jsx("span",{className:"ml-10",children:Object.values(t.currencies||{}).map(r=>r.name).join(", ")})]})})]})]})})]})})})};function fN(t,e){return function(){return t.apply(e,arguments)}}const{toString:hJ}=Object.prototype,{getPrototypeOf:L_}=Object,fg=(t=>e=>{const n=hJ.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mi=t=>(t=t.toLowerCase(),e=>fg(e)===t),hg=t=>e=>typeof e===t,{isArray:Gl}=Array,Yc=hg("undefined");function pJ(t){return t!==null&&!Yc(t)&&t.constructor!==null&&!Yc(t.constructor)&&wr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const hN=mi("ArrayBuffer");function mJ(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&hN(t.buffer),e}const gJ=hg("string"),wr=hg("function"),pN=hg("number"),pg=t=>t!==null&&typeof t=="object",vJ=t=>t===!0||t===!1,sh=t=>{if(fg(t)!=="object")return!1;const e=L_(t);
vendor: 19,969 bytes, lines 3366-3368
3366return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},yJ=mi("Date"),wJ=mi("File"),bJ=mi("Blob"),EJ=mi("FileList"),_J=t=>pg(t)&&wr(t.pipe),SJ=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||wr(t.append)&&((e=fg(t))==="formdata"||e==="object"&&wr(t.toString)&&t.toString()==="[object FormData]"))},CJ=mi("URLSearchParams"),xJ=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $d(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Gl(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(r=0;r<s;r++)a=o[r],e.call(null,t[a],a,t)}}function mN(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const gN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),vN=t=>!Yc(t)&&t!==gN;function hw(){const{caseless:t}=vN(this)&&this||{},e={},n=(r,i)=>{const o=t&&mN(e,i)||i;sh(e[o])&&sh(r)?e[o]=hw(e[o],r):sh(r)?e[o]=hw({},r):Gl(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&$d(arguments[r],n);return e}const TJ=(t,e,n,{allOwnKeys:r}={})=>($d(e,(i,o)=>{n&&wr(i)?t[o]=fN(i,n):t[o]=i},{allOwnKeys:r}),t),PJ=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),IJ=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},LJ=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&L_(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},RJ=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},kJ=t=>{if(!t)return null;if(Gl(t))return t;let e=t.length;if(!pN(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},AJ=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&L_(Uint8Array)),MJ=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},DJ=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},OJ=mi("HTMLFormElement"),NJ=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),NT=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),$J=mi("RegExp"),yN=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};$d(n,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(r[o]=s||i)}),Object.defineProperties(t,r)},VJ=t=>{yN(t,(e,n)=>{if(wr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(wr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},FJ=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Gl(t)?r(t):r(String(t).split(e)),n},jJ=()=>{},UJ=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Kv="abcdefghijklmnopqrstuvwxyz",$T="0123456789",wN={DIGIT:$T,ALPHA:Kv,ALPHA_DIGIT:Kv+Kv.toUpperCase()+$T},BJ=(t=16,e=wN.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function zJ(t){return!!(t&&wr(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const WJ=t=>{const e=new Array(10),n=(r,i)=>{if(pg(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Gl(r)?[]:{};return $d(r,(s,a)=>{const l=n(s,i+1);!Yc(l)&&(o[a]=l)}),e[i]=void 0,o}}return r};return n(t,0)},HJ=mi("AsyncFunction"),KJ=t=>t&&(pg(t)||wr(t))&&wr(t.then)&&wr(t.catch),z={isArray:Gl,isArrayBuffer:hN,isBuffer:pJ,isFormData:SJ,isArrayBufferView:mJ,isString:gJ,isNumber:pN,isBoolean:vJ,isObject:pg,isPlainObject:sh,isUndefined:Yc,isDate:yJ,isFile:wJ,isBlob:bJ,isRegExp:$J,isFunction:wr,isStream:_J,isURLSearchParams:CJ,isTypedArray:AJ,isFileList:EJ,forEach:$d,merge:hw,extend:TJ,trim:xJ,stripBOM:PJ,inherits:IJ,toFlatObject:LJ,kindOf:fg,kindOfTest:mi,endsWith:RJ,toArray:kJ,forEachEntry:MJ,matchAll:DJ,isHTMLForm:OJ,hasOwnProperty:NT,hasOwnProp:NT,reduceDescriptors:yN,freezeMethods:VJ,toObjectSet:FJ,toCamelCase:NJ,noop:jJ,toFiniteNumber:UJ,findKey:mN,global:gN,isContextDefined:vN,ALPHABET:wN,generateString:BJ,isSpecCompliantForm:zJ,toJSONObject:WJ,isAsyncFn:HJ,isThenable:KJ};function ze(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}z.inherits(ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bN=ze.prototype,EN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{EN[t]={value:t}});Object.defineProperties(ze,EN);Object.defineProperty(bN,"isAxiosError",{value:!0});ze.from=(t,e,n,r,i,o)=>{const s=Object.create(bN);return z.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ze.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const GJ=null;function pw(t){return z.isPlainObject(t)||z.isArray(t)}function _N(t){return z.endsWith(t,"[]")?t.slice(0,-2):t}function VT(t,e,n){return t?t.concat(e).map(function(i,o){return i=_N(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function qJ(t){return z.isArray(t)&&!t.some(pw)}const QJ=z.toFlatObject(z,{},null,function(e){return/^is[A-Z]/.test(e)});function mg(t,e,n){if(!z.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!z.isUndefined(b[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(e);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(z.isDate(m))return m.toISOString();if(!l&&z.isBlob(m))throw new ze("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(m)||z.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,b){let w=m;if(m&&!b&&typeof m=="object"){if(z.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(z.isArray(m)&&qJ(m)||(z.isFileList(m)||z.endsWith(g,"[]"))&&(w=z.toArray(m)))return g=_N(g),w.forEach(function(y,E){!(z.isUndefined(y)||y===null)&&e.append(s===!0?VT([g],E,o):s===null?g:g+"[]",u(y))}),!1}return pw(m)?!0:(e.append(VT(b,g,o),u(m)),!1)}const d=[],h=Object.assign(QJ,{defaultVisitor:c,convertValue:u,isVisitable:pw});function p(m,g){if(!z.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),z.forEach(m,function(w,v){(!(z.isUndefined(w)||w===null)&&i.call(e,w,z.isString(v)?v.trim():v,g,h))===!0&&p(w,g?g.concat(v):[v])}),d.pop()}}if(!z.isObject(t))throw new TypeError("data must be an object");return p(t),e}function FT(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function R_(t,e){this._pairs=[],t&&mg(t,this,e)}const SN=R_.prototype;SN.append=function(e,n){this._pairs.push([e,n])};SN.toString=function(e){const n=e?function(r){return e.call(this,r,FT)}:FT;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function YJ(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function CN(t,e,n){if(!e)return t;const r=n&&n.encode||YJ,i=n&&n.serialize;let o;if(i?o=i(e,n):o=z.isURLSearchParams(e)?e.toString():new R_(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class XJ{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){z.forEach(this.handlers,function(r){r!==null&&e(r)})}}const jT=XJ,xN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ZJ=typeof URLSearchParams<"u"?URLSearchParams:R_,JJ=typeof FormData<"u"?FormData:null,eee=typeof Blob<"u"?Blob:null,tee=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),nee=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ni={isBrowser:!0,classes:{URLSearchParams:ZJ,FormData:JJ,Blob:eee},isStandardBrowserEnv:tee,isStandardBrowserWebWorkerEnv:nee,protocols:["http","https","file","blob","url","data"]};function ree(t,e){return mg(t,new ni.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ni.isNode&&z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function iee(t){return z.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function oee(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function TN(t){function e(n,r,i,o){let s=n[o++];const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&z.isArray(i)?i.length:s,l?(z.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!z.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&z.isArray(i[s])&&(i[s]=oee(i[s])),!a)}if(z.isFormData(t)&&z.isFunction(t.entries)){const n={};return z.forEachEntry(t,(r,i)=>{e(iee(r),i,n,0)}),n}return null}function see(t,e,n){if(z.isString(t))try{return(e||JSON.parse)(t),z.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const k_={transitional:xN,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=z.isObject(e);if(o&&z.isHTMLForm(e)&&(e=new FormData(e)),z.isFormData(e))return i&&i?JSON.stringify(TN(e)):e;if(z.isArrayBuffer(e)||z.isBuffer(e)||z.isStream(e)||z.isFile(e)||z.isBlob(e))return e;if(z.isArrayBufferView(e))return e.buffer;if(z.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ree(e,this.formSerializer).toString();if((a=z.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return mg(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),see(e)):e}],transformResponse:[function(e){const n=this.transitional||k_.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&z.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?ze.from(a,ze.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ni.classes.FormData,Blob:ni.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],t=>{k_.headers[t]={}});const A_=k_,aee=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lee=t=>{const e={};let n,r,i;return t&&t.split(` 3367`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&aee[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},UT=Symbol("internals");function yu(t){return t&&String(t).trim().toLowerCase()}function ah(t){return t===!1||t==null?t:z.isArray(t)?t.map(ah):String(t)}function uee(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const cee=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Gv(t,e,n,r,i){if(z.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!z.isString(e)){if(z.isString(r))return e.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(e)}}function dee(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function fee(t,e){const n=z.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}class gg{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,l,u){const c=yu(l);if(!c)throw new Error("header name must be a non-empty string");const d=z.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=ah(a))}const s=(a,l)=>z.forEach(a,(u,c)=>o(u,c,l));return z.isPlainObject(e)||e instanceof this.constructor?s(e,n):z.isString(e)&&(e=e.trim())&&!cee(e)?s(lee(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=yu(e),e){const r=z.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return uee(i);if(z.isFunction(n))return n.call(this,i,r);if(z.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=yu(e),e){const r=z.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Gv(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=yu(s),s){const a=z.findKey(r,s);a&&(!n||Gv(r,r[a],a,n))&&(delete r[a],i=!0)}}return z.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||Gv(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return z.forEach(this,(i,o)=>{const s=z.findKey(r,o);if(s){n[s]=ah(i),delete n[o];return}const a=e?dee(o):String(o).trim();a!==o&&delete n[o],n[a]=ah(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return z.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 3368`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[UT]=this[UT]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=yu(s);r[a]||(fee(i,s),r[a]=!0)}return z.isArray(e)?e.forEach(o):o(e),this}}gg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(gg.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});z.freezeMethods(gg);const Mi=gg;function qv(t,e){const n=this||A_,r=e||n,i=Mi.from(r.headers);let o=r.data;return z.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function PN(t){return!!(t&&t.__CANCEL__)}function Vd(t,e,n){ze.call(this,t??"canceled",ze.ERR_CANCELED,e,n),this.name="CanceledError"}z.inherits(Vd,ze,{__CANCEL__:!0});function hee(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ze("Request failed with status code "+n.status,[ze.ERR_BAD_REQUEST,ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const pee=ni.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),z.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),z.isString(o)&&l.push("path="+o),z.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function mee(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function gee(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function IN(t,e){return t&&!mee(e)?gee(t,e):e}const vee=ni.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=z.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function yee(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function wee(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let d=o,h=0;for(;d!==i;)h+=n[d++],d=d%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-s<e)return;const p=c&&u-c;return p?Math.round(h*1e3/p):void 0}}function BT(t,e){let n=0;const r=wee(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};c[e?"download":"upload"]=!0,t(c)}}const bee=typeof XMLHttpRequest<"u",Eee=bee&&function(t){return new Promise(function(n,r){let i=t.data;const o=Mi.from(t.headers).normalize(),s=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}let u;z.isFormData(i)&&(ni.isStandardBrowserEnv||ni.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?z.isString(u=o.getContentType())&&o.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const d=IN(t.baseURL,t.url);c.open(t.method.toUpperCase(),CN(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function h(){if(!c)return;const m=Mi.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:t,request:c};hee(function(v){n(v),l()},function(v){r(v),l()},b),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new ze("Request aborted",ze.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new ze("Network Error",ze.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const b=t.transitional||xN;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),r(new ze(g,b.clarifyTimeoutError?ze.ETIMEDOUT:ze.ECONNABORTED,t,c)),c=null},ni.isStandardBrowserEnv){const m=(t.withCredentials||vee(d))&&t.xsrfCookieName&&pee.read(t.xsrfCookieName);m&&o.set(t.xsrfHeaderName,m)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&z.forEach(o.toJSON(),function(g,b){c.setRequestHeader(b,g)}
3368),z.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",BT(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",BT(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=m=>{c&&(r(!m||m.type?new Vd(null,t,c):m),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=yee(d);if(p&&ni.protocols.indexOf(p)===-1){r(new ze("Unsupported protocol "+p+":",ze.ERR_BAD_REQUEST,t));return}c.send(i||null)})},mw={http:GJ,xhr:Eee};z.forEach(mw,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const zT=t=>`- ${t}`,_ee=t=>z.isFunction(t)||t===null||t===!1,LN={getAdapter:t=>{t=z.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let s;if(r=n,!_ee(n)&&(r=mw[(s=String(n)).toLowerCase()],r===void 0))throw new ze(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since : 3369`+o.map(zT).join(` 3370`):" "+zT(o[0]):"as no adapter specified";throw new ze("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:mw};function Qv(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vd(null,t)}function WT(t){return Qv(t),t.headers=Mi.from(t.headers),t.data=qv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),LN.getAdapter(t.adapter||A_.adapter)(t).then(function(r){return Qv(t),r.data=qv.call(t,t.transformResponse,r),r.headers=Mi.from(r.headers),r},function(r){return PN(r)||(Qv(t),r&&r.response&&(r.response.data=qv.call(t,t.transformResponse,r.response),r.response.headers=Mi.from(r.response.headers))),Promise.reject(r)})}const HT=t=>t instanceof Mi?t.toJSON():t;function Pl(t,e){e=e||{};const n={};function r(u,c,d){return z.isPlainObject(u)&&z.isPlainObject(c)?z.merge.call({caseless:d},u,c):z.isPlainObject(c)?z.merge({},c):z.isArray(c)?c.slice():c}
vendor: 4,283 bytes, line 3370
3370function i(u,c,d){if(z.isUndefined(c)){if(!z.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!z.isUndefined(c))return r(void 0,c)}function s(u,c){if(z.isUndefined(c)){if(!z.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in e)return r(u,c);if(d in t)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(HT(u),HT(c),!0)};return z.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||i,h=d(t[c],e[c],c);z.isUndefined(h)&&d!==a||(n[c]=h)}),n}const RN="1.5.1",M_={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{M_[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const KT={};M_.transitional=function(e,n,r){function i(o,s){return"[Axios v"+RN+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new ze(i(s," has been removed"+(n?" in "+n:"")),ze.ERR_DEPRECATED);return n&&!KT[s]&&(KT[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};function See(t,e,n){if(typeof t!="object")throw new ze("options must be an object",ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],l=a===void 0||s(a,o,t);if(l!==!0)throw new ze("option "+o+" must be "+l,ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ze("Unknown option "+o,ze.ERR_BAD_OPTION)}}const gw={assertOptions:See,validators:M_},Ji=gw.validators;class Lp{constructor(e){this.defaults=e,this.interceptors={request:new jT,response:new jT}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Pl(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&gw.assertOptions(r,{silentJSONParsing:Ji.transitional(Ji.boolean),forcedJSONParsing:Ji.transitional(Ji.boolean),clarifyTimeoutError:Ji.transitional(Ji.boolean)},!1),i!=null&&(z.isFunction(i)?n.paramsSerializer={serialize:i}:gw.assertOptions(i,{encode:Ji.function,serialize:Ji.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&z.merge(o.common,o[n.method]);o&&z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Mi.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,h;if(!l){const m=[WT.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),h=m.length,c=Promise.resolve(n);d<h;)c=c.then(m[d++],m[d++]);return c}h=a.length;let p=n;for(d=0;d<h;){const m=a[d++],g=a[d++];try{p=m(p)}catch(b){g.call(this,b);break}}try{c=WT.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,h=u.length;d<h;)c=c.then(u[d++],u[d++]);return c}getUri(e){e=Pl(this.defaults,e);const n=IN(e.baseURL,e.url);return CN(n,e.params,e.paramsSerializer)}}z.forEach(["delete","get","head","options"],function(e){Lp.prototype[e]=function(n,r){return this.request(Pl(r||{},{method:e,url:n,data:(r||{}).data}))}});z.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,a){return this.request(Pl(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Lp.prototype[e]=n(),Lp.prototype[e+"Form"]=n(!0)});const lh=Lp;class D_{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new Vd(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
3370subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new D_(function(i){e=i}),cancel:e}}}const Cee=D_;function xee(t){return function(n){return t.apply(null,n)}}function Tee(t){return z.isObject(t)&&t.isAxiosError===!0}const vw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vw).forEach(([t,e])=>{vw[e]=t});const Pee=vw;function kN(t){const e=new lh(t),n=fN(lh.prototype.request,e);return z.extend(n,lh.prototype,e,{allOwnKeys:!0}),z.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return kN(Pl(t,i))},n}const Bt=kN(A_);Bt.Axios=lh;Bt.CanceledError=Vd;Bt.CancelToken=Cee;Bt.isCancel=PN;Bt.VERSION=RN;Bt.toFormData=mg;Bt.AxiosError=ze;Bt.Cancel=Bt.CanceledError;Bt.all=function(e){return Promise.all(e)};Bt.spread=xee;Bt.isAxiosError=Tee;Bt.mergeConfig=Pl;Bt.AxiosHeaders=Mi;Bt.formToJSON=t=>TN(z.isHTMLForm(t)?new FormData(t):t);Bt.getAdapter=LN.getAdapter;Bt.HttpStatusCode=Pee;Bt.default=Bt;const AN=Bt,Iee="https://restcountries.com/v3.1/all",Lee={getAll:async()=>(await AN.get(Iee)).data},MN=uN({name:"countries",initialState:{countries:[],isLoading:!0},reducers:{isLoading(t,e){t.isLoading=e.payload},getCountries(t,e){t.countries=e.payload}}}),DN=()=>async t=>{const e=await Lee.getAll();t(kee(e)),setTimeout(()=>t(Ree(!1)),1e3)},{isLoading:Ree,getCountries:kee}=MN.actions,Aee=MN.reducer,Mee=()=>{const t=E_(),e=Ts(i=>i.countries.countries);Ts(i=>i.countries.isLoading);const[n,r]=f.useState("");return f.useEffect(()=>{t(DN())},[t]),T.jsxs(f.Fragment,{children:[T.jsx("div",{className:"flex justify-center flex-wrap md:mt-[70px] mt-[30px]",children:T.jsx(Rs,{type:"search",placeholder:"Search for countries","aria-label":"Search",onChange:i=>r(i.target.value),className:"md:max-w-lg"})}),T.jsx("div",{className:"sm:grid md:grid-cols-5 xs:grid-cols-2 gap-x-7 gap-y-1 flex flex-wrap",children:e.reduce((i,o)=>o.name.common.toLowerCase().includes(n.toLowerCase())?[...i,T.jsx(dN,{country:o},o.name.common)]:i,[])})]})};/*! ***************************************************************************** 3371Copyright (c) Microsoft Corporation. 3372 3373Permission to use, copy, modify, and/or distribute this software for any 3374purpose with or without fee is hereby granted. 3375 3376THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 3377REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 3378AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 3379INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 3380LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 3381OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 3382PERFORMANCE OF THIS SOFTWARE. 3383***************************************************************************** */var yw=function(t,e){return yw=Object.
3383setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},yw(t,e)};function it(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");yw(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ue=function(){return ue=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ue.apply(this,arguments)};function O_(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Dee(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}function Oee(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ON(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nee=function(t,e,n,r,i,o,s,a){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,s,a],c=0;l=new Error(e.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},$ee=Nee,Nt=ON($ee),Re=f.createContext(null);function Vee(){Nt(!!f.useContext,"useGoogleMap is React hook and requires React version 16.8+");var t=f.useContext(Re);return Nt(!!t,"useGoogleMap needs a GoogleMap available up in the tree"),t}function Fee(t,e,n){return Object.keys(t).reduce(function(i,o){return e(i,t[o],o)},n)}function jee(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function Uee(t,e,n,r){var i={},o=function(s,a){var l=n[a];l!==e[a]&&(i[a]=l,s(r,l))};return jee(t,o),i}function Bee(t,e,n){var r=Fee(n,function(o,s,a){return typeof t[a]=="function"&&o.push(google.maps.event.addListener(e,s,t[a])),o},[]);return r}function zee(t){google.maps.event.removeListener(t)}function Ne(t){t===void 0&&(t=[]),t.forEach(zee)}function Ae(t){var e=t.updaterMap,n=t.eventMap,r=t.prevProps,i=t.nextProps,o=t.instance,s=Bee(i,o,n);return Uee(e,r,i,o),s}var GT={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},qT={extraMapTypes:function(t,e){e.forEach(function(r,i){t.mapTypes.set(String(i),r)})},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}};
3383function Wee(t){var e=t.children,n=t.options,r=t.id,i=t.mapContainerStyle,o=t.mapContainerClassName,s=t.center,a=t.onClick,l=t.onDblClick,u=t.onDrag,c=t.onDragEnd,d=t.onDragStart,h=t.onMouseMove,p=t.onMouseOut,m=t.onMouseOver,g=t.onMouseDown,b=t.onMouseUp,w=t.onRightClick,v=t.onCenterChanged,y=t.onLoad,E=t.onUnmount,C=f.useState(null),S=C[0],P=C[1],_=f.useRef(null),k=f.useState(null),L=k[0],I=k[1],M=f.useState(null),R=M[0],A=M[1],O=f.useState(null),j=O[0],U=O[1],D=f.useState(null),B=D[0],K=D[1],x=f.useState(null),$=x[0],G=x[1],Z=f.useState(null),te=Z[0],F=Z[1],Y=f.useState(null),re=Y[0],X=Y[1],fe=f.useState(null),Te=fe[0],Me=fe[1],De=f.useState(null),Je=De[0],qe=De[1],$e=f.useState(null),ot=$e[0],We=$e[1],ae=f.useState(null),Ce=ae[0],xe=ae[1],wt=f.useState(null),ct=wt[0],de=wt[1];return f.useEffect(function(){n&&S!==null&&S.setOptions(n)},[S,n]),f.useEffect(function(){S!==null&&typeof s<"u"&&S.setCenter(s)},[S,s]),f.useEffect(function(){S&&l&&(R!==null&&google.maps.event.removeListener(R),A(google.maps.event.addListener(S,"dblclick",l)))},[l]),f.useEffect(function(){S&&c&&(j!==null&&google.maps.event.removeListener(j),U(google.maps.event.addListener(S,"dragend",c)))},[c]),f.useEffect(function(){S&&d&&(B!==null&&google.maps.event.removeListener(B),K(google.maps.event.addListener(S,"dragstart",d)))},[d]),f.useEffect(function(){S&&g&&($!==null&&google.maps.event.removeListener($),G(google.maps.event.addListener(S,"mousedown",g)))},[g]),f.useEffect(function(){S&&h&&(te!==null&&google.maps.event.removeListener(te),F(google.maps.event.addListener(S,"mousemove",h)))},[h]),f.useEffect(function(){S&&p&&(re!==null&&google.maps.event.removeListener(re),X(google.maps.event.addListener(S,"mouseout",p)))},[p]),f.useEffect(function(){S&&m&&(Te!==null&&google.maps.event.removeListener(Te),Me(google.maps.event.addListener(S,"mouseover",m)))},[m]),f.useEffect(function(){S&&b&&(Je!==null&&google.maps.event.removeListener(Je),qe(google.maps.event.addListener(S,"mouseup",b)))},[b]),f.useEffect(function(){S&&w&&(ot!==null&&google.maps.event.removeListener(ot),We(google.maps.event.addListener(S,"rightclick",w)))},[w]),f.useEffect(function(){S&&a&&(Ce!==null&&google.maps.event.removeListener(Ce),xe(google.maps.event.addListener(S,"click",a)))},[a]),f.useEffect(function(){S&&u&&(ct!==null&&google.maps.event.removeListener(ct),de(google.maps.event.addListener(S,"drag",u)))},[u]),f.useEffect(function(){S&&v&&(L!==null&&google.maps.event.removeListener(L),I(google.maps.event.addListener(S,"center_changed",v)))},[a]),f.useEffect(function(){var un=_.current===null?null:new google.maps.Map(_.current,n);return P(un),un!==null&&y&&y(un),function(){un!==null&&E&&E(un)}},[]),T.jsx("div",{id:r,ref:_,style:i,className:o,children:T.jsx(Re.Provider,{value:S,children:S!==null?e:T.jsx(T.Fragment,{})})})}f.memo(Wee);var Hee=function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={map:null},n.registeredEvents=[],n.mapRef=null,n.getInstance=function(){return n.mapRef===null?null:new google.maps.Map(n.mapRef,n.props.options)},n.panTo=function(r){var i=n.getInstance();i&&i.panTo(r)},n.setMapCallback=function(){n.state.map!==null&&n.props.onLoad&&n.props.onLoad(n.state.map)},n.getRef=function(r){n.mapRef=r},n}return e.prototype.componentDidMount=function(){var n=this.getInstance();this.registeredEvents=Ae({updaterMap:qT,eventMap:GT,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{map:n}},this.setMapCallback)},e.prototype.componentDidUpdate=function(n){this.state.map!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:qT,eventMap:GT,prevProps:n,nextProps:this.props,instance:this.state.map}))},e.prototype.componentWillUnmount=function(){this.state.map!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),Ne(this.registeredEvents))},e.prototype.render=function(){return T.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:T.jsx(Re.Provider,{value:this.state.map,children:this.state.map!==null?this.props.children:T.jsx(T.Fragment,{})})})},e}(f.PureComponent),Ps=typeof document<"u";function NN(t){var e=t.url,n=t.id,r=t.nonce;return Ps?new Promise(function(o,s){var a=document.getElementById(n),l=window;if(a){var u=a.getAttribute("data-state");if(a.src===e&&u!=="error"){if(u==="ready")return o(n);var c=l.initMap,d=a.onerror;l.initMap=function(){c&&c(),o(n)},a.onerror=function(p){d&&d(p),s(p)};return}else a.remove()}var h=document.createElement("script");h.type="text/javascript",h.src=e,h.id=n,h.async=!0,h.nonce=r||"",h.onerror=function(m){h.setAttribute("data-state","error"),s(m)},l.initMap=function(){h.setAttribute("data-state","ready"),o(n)},document.head.appendChild(h)}).catch(function(i){throw console.error("injectScript error: ",i),i}):Promise.reject(new Error("document is undefined"))}function QT(t){var e=t.href;return e&&(e.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||e.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text")===0)?!0:t.tagName.toLowerCase()==="style"&&t.styleSheet&&t.styleSheet.cssText&&t.styleSheet.cssText.replace(`\r 3384`,"").indexOf(".gm-style")===0?(t.styleSheet.cssText="",!0):t.tagName.toLowerCase()==="style"&&t.innerHTML&&t.innerHTML.replace(`\r 3385`,"").indexOf(".gm-style")===0?(t.innerHTML="",!0):t.tagName.toLowerCase()==="style"&&!t.styleSheet&&!t.innerHTML}function $N(){var t=document.getElementsByTagName("head")[0];if(t){var e=t.insertBefore.bind(t);t.insertBefore=function(i,o){return QT(i)||Reflect.apply(e,t,[i,o]),i};var n=t.appendChild.bind(t);t.appendChild=function(i){return QT(i)||Reflect.apply(n,t,[i]),i}}}function VN(t){var e=t.googleMapsApiKey,n=t.googleMapsClientId,r=t.version,i=r===void 0?"weekly":r,o=t.language,s=t.regi
3385on,a=t.libraries,l=t.channel,u=t.mapIds,c=t.authReferrerPolicy,d=[];return Nt(e&&n||!(e&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?d.push("key=".concat(e)):n&&d.push("client=".concat(n)),i&&d.push("v=".concat(i)),o&&d.push("language=".concat(o)),s&&d.push("region=".concat(s)),a&&a.length&&d.push("libraries=".concat(a.sort().join(","))),l&&d.push("channel=".concat(l)),u&&u.length&&d.push("map_ids=".concat(u.join(","))),c&&d.push("auth_referrer_policy=".concat(c)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var wu=!1;function FN(){return T.jsx("div",{children:"Loading..."})}var ww={id:"script-loader",version:"weekly"};(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.check=f.createRef(),n.state={loaded:!1},n.cleanupCallback=function(){delete window.google.maps,n.injectScript()},n.isCleaningUp=function(){return Dee(n,void 0,void 0,function(){function r(i){if(!wu)i();else if(Ps)var o=window.setInterval(function(){wu||(window.clearInterval(o),i())},1)}return Oee(this,function(i){return[2,new Promise(r)]})})},n.cleanup=function(){wu=!0;var r=document.getElementById(n.props.id);r&&r.parentNode&&r.parentNode.removeChild(r),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(o){return typeof o.src=="string"&&o.src.includes("maps.googleapis")}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(o){return o.href==="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"}
3385).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(o){return o.innerText!==void 0&&o.innerText.length>0&&o.innerText.includes(".gm-")}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)})},n.injectScript=function(){n.props.preventGoogleFontsLoading&&$N(),Nt(!!n.props.id,'LoadScript requires "id" prop to be a string: %s',n.props.id);var r={id:n.props.id,nonce:n.props.nonce,url:VN(n.props)};NN(r).then(function(){n.props.onLoad&&n.props.onLoad(),n.setState(function(){return{loaded:!0}})}).catch(function(i){n.props.onError&&n.props.onError(i),console.error(` 3386 There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(n.props.googleMapsApiKey||"-",") or Client ID (").concat(n.props.googleMapsClientId||"-",`) to <LoadScript /> 3387 Otherwise it is a Network issue. 3388 `))})},n}return e.prototype.componentDidMount=function(){if(Ps){if(window.google&&window.google.maps&&!wu){console.error("google api is already presented");return}this.isCleaningUp().then(this.injectScript).catch(function(r){console.error("Error at injecting script after cleaning up: ",r)})}},e.prototype.componentDidUpdate=function(n){this.props.libraries!==n.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),Ps&&n.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))},e.prototype.componentWillUnmount=function(){var n=this;if(Ps){this.cleanup();var r=function(){n.check.current||(delete window.google,wu=!1)};window.setTimeout(r,1),this.props.onUnmount&&this.props.onUnmount()}},e.prototype.render=function(){return T.jsxs(T.Fragment,{children:[T.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||T.jsx(FN,{})]})},e.defaultProps=ww,e})(f.PureComponent);var YT;function jN(t){var e=t.id,n=e===void 0?ww.id:e,r=t.version,i=r===void 0?ww.version:r,o=t.nonce,s=t.googleMapsApiKey,a=t.googleMapsClientId,l=t.language,u=t.region,c=t.libraries,d=t.preventGoogleFontsLoading,h=t.channel,p=t.mapIds,m=t.authReferrerPolicy,g=f.useRef(!1),b=f.useState(!1),w=b[0],v=b[1],y=f.useState(void 0),E=y[0],C=y[1];f.useEffect(function(){return g.current=!0,function(){g.current=!1}},[]),f.useEffect(function(){Ps&&d&&$N()},[d]),f.useEffect(function(){w&&Nt(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[w]);var S=VN({version:i,googleMapsApiKey:s,googleMapsClientId:a,language:l,region:u,libraries:c,channel:h,mapIds:p,authReferrerPolicy:m});f.useEffect(function(){if(!Ps)return;function k(){g.current&&(v(!0),YT=S)}if(window.google&&window.google.maps&&YT===S){k();return}NN({id:n,url:S,nonce:o}).then(k).catch(function(I){g.current&&C(I),console.warn(` 3389 There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(s||"-",") or Client ID (").concat(a||"-",`) 3390 Otherwise it is a Network issue. 3391 `)),console.error(I)})},[n,S,o]);var P=f.useRef();return f.useEffect(function(){P.current&&c!==P.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),P.current=c},[c]),{isLoaded:w,loadError:E,url:S}}var Kee=T.jsx(FN,{});function Gee(t){var e=t.loadingElement,n=t.onLoad,r=t.onError,i=t.onUnmount,o=t.children,s=O_(t,["loadingElement","onLoad","onError","onUnmount","children"]),a=jN(s),l=a.isLoaded,u=a.loadError;return f.useEffect(function(){l&&typeof n=="function"&&n()},[l,n]),f.useEffect(function(){u&&typeof r=="function"&&r(u)},[u,r]),f.useEffect(function(){return function(){i&&i()}},[i]),l?o:e||Kee}f.memo(Gee);var XT;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(XT||(XT={}));var ZT={},JT={options:function(t,e){t.setOptions(e)}};function qee(t){var e=t.options,n=t.onLoad,r=t.onUnmount,i=f.useContext(Re),o=f.useState(null),s=o[0],a=o[1];return f.useEffect(function(){s!==null&&s.setMap(i)},[i]),f.useEffect(function(){e&&s!==null&&s.setOptions(e)},[s,e]),f.useEffect(function(){var l=new google.maps.TrafficLayer(ue(ue({},e||{}),{map:i}));return a(l),n&&n(l),function(){s!==null&&(r&&r(s),s.setMap(null))}},[]),null}f.memo(qee);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={trafficLayer:null},n.setTrafficLayerCallback=function(){n.state.trafficLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.trafficLayer)},n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=new google.maps.TrafficLayer(ue(ue({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ae({updaterMap:JT,eventMap:ZT,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{trafficLayer:n}},this.setTrafficLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.trafficLayer!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:JT,eventMap:ZT,prevProps:n,nextProps:this.props,instance:this.state.trafficLayer}))},e.prototype.componentWillUnmount=function(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),Ne(this.registeredEvents),this.state.trafficLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);function Qee(t){var e=t.onLoad,n=t.onUnmount,r=f.useContext(Re),i=f.useState(null),o=i[0],s=i[1];return f.useEffect(function(){o!==null&&o.setMap(r)},[r]),f.useEffect(function(){var a=new google.maps.BicyclingLayer;return s(a),a.setMap(r),e&&e(a),function(){a!==null&&(n&&n(a),a.setMap(null))}},[]),null}f.memo(Qee);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={bicyclingLayer:null},n.setBicyclingLayerCallback=function(){n.state.bicyclingLayer!==null&&(n.state.bicyclingLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.bicyclingLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.BicyclingLayer;this.setState(function(){return{bicyclingLayer:n}},this.setBicyclingLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);function Yee(t){var e=t.onLoad,n=t.onUnmount,r=f.useContext(Re),i=f.useState(null),o=i[0],s=i[1];return f.useEffect(function(){o!==null&&o.setMap(r)},[r]),f.useEffect(function(){var a=new google.maps.TransitLayer;return s(a),a.setMap(r),e&&e(a),function(){o!==null&&(n&&n(o),o.setMap(null))}},[]),null}f.memo(Yee);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={transitLayer:null},n.setTransitLayerCallback=function(){n.state.transitLayer!==null&&(n.state.transitLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.transitLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:n}},this.setTransitLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var eP={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},tP={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}};function Xee(t){var e=t.options,n=t.drawingMode,r=t.onCircleComplete,i=t.onMarkerComplete,o=t.onOverlayComplete,s=t.onPolygonComplete,a=t.onPolylineComplete,l=t.onRectangleComplete,u=t.onLoad,c=t.onUnmount,d=f.useContext(Re),h=f.useState(null),p=h[0],m=h[1],g=f.useState(null),b=g[0],w=g[1],v=f.useState(null),y=v[0],E=v[1],C=f.useState(null),S=C[0],P=C[1],_=f.useState(null),k=_[0],L=_[1],I=f.useState(null),M=I[0],R=I[1],A=f.useState(null),O=A[0],j=A[1];return f.useEffect(function(){p!==null&&p.setMap(d)},[d]),f.useEffect(function(){e&&p!==null&&p.setOptions(e)},[p,e]),f.useEffect(function(){n&&p!==null&&p.setDrawingMode(n)},[p,n]),f.useEffect(function(){p&&r&&(b!==null&&google.maps.event.removeListener(b),w(google.maps.event.addListener(p,"circlecomplete",r)))},[p,r]),f.useEffect(function(){p&&i&&(y!==null&&google.maps.event.removeListener(y),E(google.maps.event.addListener(p,"markercomplete",i)))},[p,i]),f.useEffect(function(){p&&o&&(S!==null&&google.maps.event.removeListener(S),P(google.maps.event.addListener(p,"overlaycomplete",o)))},[p,o]),f.useEffect(function(){p&&s&&(k!==null&&google.maps.event.removeListener(k),L(google.maps.event.addListener(p,"polygoncomplete",s)))},[p,s]),f.useEffect(function(){p&&a&&(M!==null&&google.maps.event.removeListener(M),R(google.maps.event.addListener(p,"polylinecomplete",a)))},[p,a]),f.useEffect(function(){p&&l&&(O!==null&&google.maps.event.removeListener(O),j(google.maps.event.addListener(p,"rectanglecomplete",l)))},[p,l]),f.useEffect(function(){Nt(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var U=new google.maps.drawing.DrawingManager(ue(ue({},e||{}),{map:d}));return n&&U.setDrawingMode(n),r&&w(google.maps.event.addListener(U,"circlecomplete",r)),i&&E(google.maps.event.addListener(U,"markercomplete",i)),o&&P(google.maps.event.addListener(U,"overlaycomplete",o)),s&&L(google.maps.event.addListener(U,"polygoncomplete",s)),a&&R(google.maps.event.addListener(U,"polylinecomplete",a)),l&&j(google.maps.event.addListener(U,"rectanglecomplete",l)),m(U),u&&u(U),function(){p!==null&&(b&&google.maps.event.removeListener(b),y&&google.maps.event.removeListener(y),S&&google.maps.event.removeListener(S),k&&google.maps.event.removeListener(k),M&&google.maps.event.removeListener(M),O&&google.maps.event.removeListener(O),c&&c(p),p.setMap(null))}},[]),null}f.memo(Xee);(function(t){it(e,t);function e(n){var r=t.call(this,n)||this;return r.registeredEvents=[],r.state={drawingManager:null},r.setDrawingManagerCallback=function(){r.state.drawingManager!==null&&r.props.onLoad&&r.props.onLoad(r.state.drawingManager)},Nt(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),r}return e.prototype.componentDidMount=function(){var n=new google.maps.drawing.DrawingManager(ue(ue({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ae({updaterMap:tP,eventMap:eP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{drawingManager:n}},this.setDrawingManagerCallback)},e.prototype.componentDidUpdate=function(n){this.state.drawingManager!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:tP,eventMap:eP,prevProps:n,nextProps:this.props,instance:this.state.drawingManager}))},e.prototype.componentWillUnmount=function(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),Ne(this.registeredEvents),this.state.drawingManager.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var nP={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},rP={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Rp={};function Zee(t){var e=t.position,n=t.options,r=t.clusterer,i=t.noClustererRedraw,o=t.children,s=t.draggable,a=t.visible,l=t.animation,u=t.clickable,c=t.cursor,d=t.icon,h=t.label,p=t.opacity,m=t.shape,g=t.title,b=t.zIndex,w=t.onClick,v=t.onDblClick,y=t.onDrag,E=t.onDragEnd,C=t.onDragStart,S=t.onMouseOut,P=t.onMouseOver,_=t.onMouseUp,k=t.onMouseDown,L=t.onRightClick,I=t.onClickableChanged,M=t.onCursorChanged,R=t.onAnimationChanged,A=t.onDraggableChanged,O=t.onFlatChanged,j=t.onIconChanged,U=t.onPositionChanged,D=t.onShapeChanged,B=t.onTitleChanged,K=t.onVisibleChanged,x=t.onZindexChanged,$=t.onLoad,G=t.onUnmount,Z=f.useContext(Re),te=f.useState(null),F=te[0],Y=te[1],re=f.useState(null),X=re[0],fe=re[1],Te=f.useState(null),Me=Te[0],De=Te[1],Je=f.useState(null),qe=Je[0],$e=Je[1],ot=f.useState(null),We=ot[0],ae=ot[1],Ce=f.useState(null),xe=Ce[0],wt=Ce[1],ct=f.useState(null),de=ct[0],un=ct[1],zr=f.useState(null),zn=zr[0],Wr=zr[1],He=f.useState(null),ve=He[0],gi=He[1],is=f.useState(null),os=is[0],Fd=is[1],ql=f.useState(null),jd=ql[0],N=ql[1],V=f.useState(null),W=V[0],ee=V[1],ge=f.useState(null),pe=ge[0],be=ge[1],he=f.useState(null),se=he[0],Xe=he[1],st=f.useState(null),ke=st[0],Ze=st[1],bt=f.useState(null),or=bt[0],Hr=bt[1],qi=f.useState(null),Qi=qi[0],sr=qi[1],ar=f.useState(null),vi=ar[0],la=ar[1],ua=f.useState(null),ca=ua[0],Qe=ua[1],Dn=f.useState(null),Wn=Dn[0],da=Dn[1],Lt=f.useState(null),Kr=Lt[0],Ql=Lt[1],Ud=f.useState(null),Bd=Ud[0],V_=Ud[1];f.useEffect(function(){F!==null&&F.setMap(Z)},[Z]),f.useEffect(function(){typeof n<"u"&&F!==null&&F.setOptions(n)},[F,n]),f.useEffect(function(){typeof s<"u"&&F!==null&&F.setDraggable(s)},[F,s]),f.useEffect(function(){e&&F!==null&&F.setPosition(e)},[F,e]),f.useEffect(function(){typeof a<"u"&&F!==null&&F.setVisible(a)},[F,a]),f.useEffect(function(){F==null||F.setAnimation(l)},[F,l]),f.useEffect(function(){F&&v&&(X!==null&&google.maps.event.removeListener(X),fe(google.maps.event.addListener(F,"dblclick",v)))},[v]),f.useEffect(function(){F&&E&&(Me!==null&&google.maps.event.removeListener(Me),De(google.maps.event.addListener(F,"dragend",E)))},[E]),f.useEffect(function(){F&&C&&(qe!==null&&google.maps.event.removeListener(qe),$e(google.maps.event.addListener(F,"dragstart",C)))},[C]),f.useEffect(function(){F&&k&&(We!==null&&google.maps.event.removeListener(We),ae(google.maps.event.addListener(F,"mousedown",k)))},[k]),f.useEffect(function(){F&&S&&(xe!==null&&google.maps.event.removeListener(xe),wt(google.maps.event.addListener(F,"mouseout",S)))},[S]),f.useEffect(function(){F&&P&&(de!==null&&google.maps.event.removeListener(de),un(google.maps.event.addListener(F,"mouseover",P)))},[P]),f.useEffect(function(){F&&_&&(zn!==null&&google.maps.event.removeListener(zn),Wr(google.maps.event.addListener(F,"mouseup",_)))},[_]),f.useEffect(function(){F&&L&&(ve!==null&&google.maps.event.removeListener(ve),gi(google.maps.event.addListener(F,"rightclick",L)))},[L]),f.useEffect(function(){F&&w&&(os!==null&&google.maps.event.removeListener(os),Fd(google.maps.event.addListener(F,"click",w)))},[w]),f.useEffect(function(){F&&y&&(jd!==null&&google.maps.event.removeListener(jd),N(google.maps.event.addListener(F,"drag",y)))},[y]),f.useEffect(function(){F&&I&&(W!==null&&google.maps.event.removeListener(W),ee(google.maps.event.addListen
3391er(F,"clickable_changed",I)))},[I]),f.useEffect(function(){F&&M&&(pe!==null&&google.maps.event.removeListener(pe),be(google.maps.event.addListener(F,"cursor_changed",M)))},[M]),f.useEffect(function(){F&&R&&(se!==null&&google.maps.event.removeListener(se),Xe(google.maps.event.addListener(F,"animation_changed",R)))},[R]),f.useEffect(function(){F&&A&&(ke!==null&&google.maps.event.removeListener(ke),Ze(google.maps.event.addListener(F,"draggable_changed",A)))},[A]),f.useEffect(function(){F&&O&&(or!==null&&google.maps.event.removeListener(or),Hr(google.maps.event.addListener(F,"flat_changed",O)))},[O]),f.useEffect(function(){F&&j&&(Qi!==null&&google.maps.event.removeListener(Qi),sr(google.maps.event.addListener(F,"icon_changed",j)))},[j]),f.useEffect(function(){F&&U&&(vi!==null&&google.maps.event.removeListener(vi),la(google.maps.event.addListener(F,"position_changed",U)))},[U]),f.useEffect(function(){F&&D&&(ca!==null&&google.maps.event.removeListener(ca),Qe(google.maps.event.addListener(F,"shape_changed",D)))},[D]),f.useEffect(function(){F&&B&&(Wn!==null&&google.maps.event.removeListener(Wn),da(google.maps.event.addListener(F,"title_changed",B)))},[B]),f.useEffect(function(){F&&K&&(Kr!==null&&google.maps.event.removeListener(Kr),Ql(google.maps.event.addListener(F,"visible_changed",K)))},[K]),f.useEffect(function(){F&&x&&(Bd!==null&&google.maps.event.removeListener(Bd),V_(google.maps.event.addListener(F,"zindex_changed",x)))},[x]),f.useEffect(function(){var Yl=ue(ue(ue({},n||Rp),r?Rp:{map:Z}),{position:e}),Pe=new google.maps.Marker(Yl);return r?r.addMarker(Pe,!!i):Pe.setMap(Z),e&&Pe.setPosition(e),typeof a<"u"&&Pe.setVisible(a),typeof s<"u"&&Pe.setDraggable(s),typeof u<"u"&&Pe.setClickable(u),typeof c=="string"&&Pe.setCursor(c),d&&Pe.setIcon(d),typeof h<"u"&&Pe.setLabel(h),typeof p<"u"&&Pe.setOpacity(p),m&&Pe.setShape(m),typeof g=="string"&&Pe.setTitle(g),typeof b=="number"&&Pe.setZIndex(b),v&&fe(google.maps.event.addListener(Pe,"dblclick",v)),E&&De(google.maps.event.addListener(Pe,"dragend",E)),C&&$e(google.maps.event.addListener(Pe,"dragstart",C)),k&&ae(google.maps.event.addListener(Pe,"mousedown",k)),S&&wt(google.maps.event.addListener(Pe,"mouseout",S)),P&&un(google.maps.event.addListener(Pe,"mouseover",P)),_&&Wr(google.maps.event.addListener(Pe,"mouseup",_)),L&&gi(google.maps.event.addListener(Pe,"rightclick",L)),w&&Fd(google.maps.event.addListener(Pe,"click",w)),y&&N(google.maps.event.addListener(Pe,"drag",y)),I&&ee(google.maps.event.addListener(Pe,"clickable_changed",I)),M&&be(google.maps.event.addListener(Pe,"cursor_changed",M)),R&&Xe(google.maps.event.addListener(Pe,"animation_changed",R)),A&&Ze(google.maps.event.addListener(Pe,"draggable_changed",A)),O&&Hr(google.maps.event.addListener(Pe,"flat_changed",O)),j&&sr(google.maps.event.addListener(Pe,"icon_changed",j)),U&&la(google.maps.event.addListener(Pe,"position_changed",U)),D&&Qe(google.maps.event.addListener(Pe,"shape_changed",D)),B&&da(google.maps.event.addListener(Pe,"title_changed",B)),K&&Ql(google.maps.event.addListener(Pe,"visible_changed",K)),x&&V_(google.maps.event.addListener(Pe,"zindex_changed",x)),Y(Pe),$&&$(Pe),function(){X!==null&&google.maps.event.removeListener(X),Me!==null&&google.maps.event.removeListener(Me),qe!==null&&google.maps.event.removeListener(qe),We!==null&&google.maps.event.removeListener(We),xe!==null&&google.maps.event.removeListener(xe),de!==null&&google.maps.event.removeListener(de),zn!==null&&google.maps.event.removeListener(zn),ve!==null&&google.maps.event.removeListener(ve),os!==null&&google.maps.event.removeListener(os),W!==null&&google.maps.event.removeListener(W),pe!==null&&google.maps.event.removeListener(pe),se!==null&&google.maps.event.removeListener(se),ke!==null&&google.maps.event.removeListener(ke),or!==null&&google.maps.event.removeListener(or),Qi!==null&&google.maps.event.removeListener(Qi),vi!==null&&google.maps.event.removeListener(vi),Wn!==null&&google.maps.event.removeListener(Wn),Kr!==null&&google.maps.event.removeListener(Kr),Bd!==null&&google.maps.event.removeListener(Bd),G&&G(Pe),r?r.removeMarker(Pe,!!i):Pe&&Pe.setMap(null)}},[]);var qN=f.useMemo(function(){return o?f.Children.map(o,function(Yl){if(!f.isValidElement(Yl))return Yl;var Pe=Yl;return f.cloneElement(Pe,{anchor:F})}):null},[o,F]);return T.jsx(T.Fragment,{children:qN})||null}var Jee=f.memo(Zee);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=ue(ue(ue({},this.props.options||Rp),this.props.clusterer?Rp:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(n),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=Ae({updaterMap:rP,eventMap:nP,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},e.prototype.componentDidUpdate=function(n){this.marker&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:rP,eventMap:nP,prevProps:n,nextProps:this.props,instance:this.marker}))},e.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),Ne(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},e.prototype.render=function(){var n=this,r=null;return this.props.children&&(r=f.Children.map(this.props.children,function(i){if(!f.isValidElement(i))return i;var o=i;return f.cloneElement(o,{anchor:n.marker})})),r||null},e.contextType=Re,e})(f.PureComponent);var ete=function(){function t(e,n){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(e.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return t.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},t.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},t.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var n=this.cluster.getClusterer();if(google.maps.event.trigger(n,"click",this.cluster),google.maps.event.trigger(n,"clusterclick",this.cluster),n.getZoomOnClick()){var r=n.getMaxZoom(),i=this.cluster.getBounds(),o=n.getMap();o!==null&&"fitBounds"in o&&o.fitBounds(i),this.timeOut=window.setTimeout(function(){var s=n.getMap();if(s!==null){"fitBounds"in s&&s.fitBounds(i);var a=s.getZoom()||0;r!==null&&a>
3391r&&s.setZoom(r+1)}},100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},t.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},t.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},t.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),(e=this.getPanes())===null||e===void 0||e.overlayMouseTarget.appendChild(this.div);var n=this.getMap();n!==null&&(this.boundsChangedListener=google.maps.event.addListener(n,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),this.boundsChangedListener!==null&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),this.timeOut!==null&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},t.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=e!==null?"".concat(e.y,"px"):"0",this.div.style.left=e!==null?"".concat(e.x,"px"):"0"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){var e,n,r,i,o,s;if(this.div&&this.center){var a=this.sums===null||typeof this.sums.title>"u"||this.sums.title===""?this.cluster.getClusterer().getTitle():this.sums.title,l=this.backgroundPosition.split(" "),u=parseInt(((e=l[0])===null||e===void 0?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),c=parseInt(((n=l[1])===null||n===void 0?void 0:n.replace(/^\s+|\s+$/g,""))||"0",10),d=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(d!==null?"".concat(d.y,"px"):"0","; left: ").concat(d!==null?"".concat(d.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var h=document.createElement("img");h.alt=a,h.src=this.url,h.width=this.width,h.height=this.height,h.setAttribute("style","position: absolute; top: ".concat(c,"px; left: ").concat(u,"px")),this.cluster.getClusterer().enableRetinaIcons||(h.style.clip="rect(-".concat(c,"px, -").concat(u+this.width,"px, -").concat(c+this.height,", -").concat(u,")"));var p=document.createElement("div");p.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),!((r=this.sums)===null||r===void 0)&&r.text&&(p.innerText="".concat((i=this.sums)===null||i===void 0?void 0:i.text)),!((o=this.sums)===null||o===void 0)&&o.html&&(p.innerHTML="".concat((s=this.sums)===null||s===void 0?void 0:s.html)),this.div.innerHTML="",this.div.appendChild(h),this.div.appendChild(p),this.div.title=a,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(e){this.sums=e;var n=this.cluster.getClusterer().getStyles(),r=n[Math.min(n.length-1,Math.max(0,e.index-1))];r&&(this.url=r.url,this.height=r.height,this.width=r.width,r.className&&(this.className="".concat(this.clusterClassName," ").concat(r.className)),this.anchorText=r.anchorText||[0,0],this.anchorIcon=r.anchorIcon||[this.height/2,this.width/2],this.textColor=r.textColor||"black",this.textSize=r.textSize||11,this.textDecoration=r.textDecoration||"none",this.fontWeight=r.fontWeight||"bold",this.fontStyle=r.fontStyle||"normal",this.fontFamily=r.fontFamily||"Arial,sans-serif",this.backgroundPosition=r.backgroundPosition||"0 0")},t.prototype.setCenter=function(e){this.center=e},t.prototype.getPosFromLatLng=function(e){var n=this.getProjection().fromLatLngToDivPixel(e);return n!==null&&(n.x-=this.anchorIcon[1],n.y-=this.anchorIcon[0]),n},t}(),tte=function(){function t(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new ete(this,this.markerClusterer.getStyles()),this.get
3391Size=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),n=this.getMarkers(),r=0,i=n;r<i.length;r++){var o=i[r],s=o.getPosition();s&&e.extend(s)}return e},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(e){var n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter){var r=e.getPosition();if(r){var i=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(i-1)+r.lat())/i,(this.center.lng()*(i-1)+r.lng())/i),this.calculateBounds()}}}else{var r=e.getPosition();r&&(this.center=r,this.calculateBounds())}e.isAdded=!0,this.markers.push(e);var o=this.markers.length,s=this.markerClusterer.getMaxZoom(),a=(n=this.map)===null||n===void 0?void 0:n.getZoom();if(s!==null&&typeof a<"u"&&a>s)e.getMap()!==this.map&&e.setMap(this.map);else if(o<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(o===this.minClusterSize)for(var l=0,u=this.markers;l<u.length;l++){var c=u[l];c.setMap(null)}else e.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(e){if(this.bounds!==null){var n=e.getPosition();if(n)return this.bounds.contains(n)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var e,n=this.markers.length,r=this.markerClusterer.getMaxZoom(),i=(e=this.map)===null||e===void 0?void 0:e.getZoom();if(r!==null&&typeof i<"u"&&i>r){this.clusterIcon.hide();return}if(n<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},t.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var n=0;n<this.markers.length;n++)if(e===this.markers[n])return!0;return!1},t}();function nte(t,e){var n=t.length,r=n.toString().length,i=Math.min(r,e);return{text:n.toString(),index:i,title:""}}var rte=2e3,ite=500,ote="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",ste="png",ate=[53,56,66,78,90],lte="cluster",UN=function(){function t(e,n,r){n===void 0&&(n=[]),r===void 0&&(r={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createCluster
3391s=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,r.zoomOnClick!==void 0&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,r.averageCenter!==void 0&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,r.ignoreHidden!==void 0&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,r.enableRetinaIcons!==void 0&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||ote,this.imageExtension=r.imageExtension||ste,this.imageSizes=r.imageSizes||ate,this.calculator=r.calculator||nte,this.batchSize=r.batchSize||rte,this.batchSizeIE=r.batchSizeIE||ite,this.clusterClass=r.clusterClass||lte,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(e)}return t.prototype.onZoomChanged=function(){var e,n;this.resetViewport(!1),(((e=this.getMap())===null||e===void 0?void 0:e.getZoom())===(this.get("minZoom")||0)||((n=this.getMap())===null||n===void 0?void 0:n.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},t.prototype.onIdle=function(){this.redraw()},t.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),e!==null&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},t.prototype.onRemove=function(){for(var e=0,n=this.markers;e<n.length;e++){var r=n[e];r.getMap()!==this.activeMap&&r.setMap(this.activeMap)}
vendor: 4,494 bytes, line 3391
3391for(var i=0,o=this.clusters;i<o.length;i++){var s=o[i];s.remove()}this.clusters=[];for(var a=0,l=this.listeners;a<l.length;a++){var u=l[a];google.maps.event.removeListener(u)}this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.getMap=function(){return null},t.prototype.getPanes=function(){return null},t.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},t.prototype.setMap=function(){},t.prototype.addListener=function(){return{remove:function(){}}},t.prototype.bindTo=function(){},t.prototype.get=function(){},t.prototype.notify=function(){},t.prototype.set=function(){},t.prototype.setValues=function(){},t.prototype.unbind=function(){},t.prototype.unbindAll=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},t.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),n=new google.maps.LatLngBounds,r=0,i=e;r<i.length;r++){var o=i[r],s=o.getPosition();s&&n.extend(s)}var a=this.getMap();a!==null&&"fitBounds"in a&&a.fitBounds(n)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(e){this.gridSize=e},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(e){this.maxZoom=e},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(e){this.styles=e},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(e){this.title=e},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(e){this.averageCenter=e},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(e){this.imageExtension=e},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(e){this.imagePath=e},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(e){this.imageSizes=e},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(e){this.calculator=e},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(e){this.clusterClass=e},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(e,n){this.pushMarkerTo(e),n||this.redraw()},t.prototype.addMarkers=function(e,n){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];i&&this.pushMarkerTo(i)}n||this.redraw()},t.prototype.pushMarkerTo=function(e){var n=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",function(){n.ready&&(e.isAdded=!1,n.repaint())}),e.isAdded=!1,this.markers.push(e)},t.prototype.removeMarker_=function(e){var n=-1;if(this.markers.indexOf)n=this.markers.indexOf(e);else for(var r=0;r<this.markers.length;r++)if(e===this.markers[r]){n=r;break}return n===-1?!1:(e.setMap(null),this.markers.splice(n,1),!0)},t.prototype.removeMarker=function(e,n){var r=this.removeMarker_(e);return!n&&r&&this.repaint(),r},t.prototype.removeMarkers=function(e,n){for(var r=!1,i=0,o=e;i<o.length;i++){var s=o[i];r=r||this.removeMarker_(s)}return!n&&r&&this.repaint(),r},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]}
3391,t.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var r=0,i=e;r<i.length;r++){var o=i[r];o.remove()}},0)},t.prototype.getExtendedBounds=function(e){var n=this.getProjection(),r=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));r!==null&&(r.x+=this.gridSize,r.y-=this.gridSize);var i=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(i!==null&&(i.x-=this.gridSize,i.y+=this.gridSize),r!==null){var o=n.fromDivPixelToLatLng(r);o!==null&&e.extend(o)}if(i!==null){var s=n.fromDivPixelToLatLng(i);s!==null&&e.extend(s)}return e},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(e){for(var n=0,r=this.clusters;n<r.length;n++){var i=r[n];i.remove()}this.clusters=[];for(var o=0,s=this.markers;o<s.length;o++){var a=s[o];a.isAdded=!1,e&&a.setMap(null)}},t.prototype.distanceBetweenPoints=function(e,n){var r=6371,i=(n.lat()-e.lat())*Math.PI/180,o=(n.lng()-e.lng())*Math.PI/180,s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(n.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return r*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},t.prototype.isMarkerInBounds=function(e,n){var r=e.getPosition();return r?n.contains(r):!1},t.prototype.addToClosestCluster=function(e){for(var n,r=4e4,i=null,o=0,s=this.cluster
3391s;o<s.length;o++){var a=s[o];n=a;var l=n.getCenter(),u=e.getPosition();if(l&&u){var c=this.distanceBetweenPoints(l,u);c<r&&(r=c,i=n)}}i&&i.isMarkerInClusterBounds(e)?i.addMarker(e):(n=new tte(this),n.addMarker(e),this.clusters.push(n))},t.prototype.createClusters=function(e){var n=this;if(this.ready){e===0&&(google.maps.event.trigger(this,"clusteringbegin",this),this.timerRefStatic!==null&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var r=this.getMap(),i=r!==null&&("getBounds"in r)?r.getBounds():null,o=(r==null?void 0:r.getZoom())||0,s=o>3?new google.maps.LatLngBounds(i==null?void 0:i.getSouthWest(),i==null?void 0:i.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),a=this.getExtendedBounds(s),l=Math.min(e+this.batchSize,this.markers.length),u=e;u<l;u++){var c=this.markers[u];c&&!c.isAdded&&this.isMarkerInBounds(c,a)&&(!this.ignoreHidden||this.ignoreHidden&&c.getVisible())&&this.addToClosestCluster(c)}if(l<this.markers.length)this.timerRefStatic=window.setTimeout(function(){n.createClusters(l)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);
3391for(var d=0,h=this.clusters;d<h.length;d++){var p=h[d];p.updateIcon()}}}},t.prototype.extend=function(e,n){return(function(i){for(var o in i.prototype){var s=o;this.prototype[s]=i.prototype[s]}return this}).apply(e,[n])},t}(),cr={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},Ge={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},ute={};function cte(t){var e=t.children,n=t.options,r=t.averageCenter,i=t.batchSizeIE,o=t.calculator,s=t.clusterClass,a=t.enableRetinaIcons,l=t.gridSize,u=t.ignoreHidden,c=t.imageExtension,d=t.imagePath,h=t.imageSizes,p=t.maxZoom,m=t.minimumClusterSize,g=t.styles,b=t.title,w=t.zoomOnClick,v=t.onClick,y=t.onClusteringBegin,E=t.onClusteringEnd,C=t.onMouseOver,S=t.onMouseOut,P=t.onLoad,_=t.onUnmount,k=f.useState(null),L=k[0],I=k[1],M=f.useContext(Re),R=f.useState(null),A=R[0],O=R[1],j=f.useState(null),U=j[0],D=j[1],B=f.useState(null),K=B[0],x=B[1],$=f.useState(null),G=$[0],Z=$[1],te=f.useState(null),F=te[0],Y=te[1];return f.useEffect(function(){L&&S&&(G!==null&&google.maps.event.removeListener(G),Z(google.maps.event.addListener(L,cr.onMouseOut,S)))},[S]),f.useEffect(function(){L&&C&&(F!==null&&google.maps.event.removeListener(F),Y(google.maps.event.addListener(L,cr.onMouseOver,C)))},[C]),f.useEffect(function(){L&&v&&(A!==null&&google.maps.event.removeListener(A),O(google.maps.event.addListener(L,cr.onClick,v)))},[v]),f.useEffect(function(){L&&y&&(U!==null&&google.maps.event.removeListener(U),D(google.maps.event.addListener(L,cr.onClusteringBegin,y)))},[y]),f.useEffect(function(){L&&E&&(K!==null&&google.maps.event.removeListener(K),D(google.maps.event.addListener(L,cr.onClusteringEnd,E)))},[E]),f.useEffect(function(){typeof r<"u"&&L!==null&&Ge.averageCenter(L,r)},[L,r]),f.useEffect(function(){typeof i<"u"&&L!==null&&Ge.batchSizeIE(L,i)},[L,i]),f.useEffect(function(){typeof o<"u"&&L!==null&&Ge.calculator(L,o)},[L,o]),f.useEffect(function(){typeof s<"u"&&L!==null&&Ge.clusterClass(L,s)},[L,s]),f.useEffect(function(){typeof a<"u"&&L!==null&&Ge.enableRetinaIcons(L,a)},[L,a]),f.useEffect(function(){typeof l<"u"&&L!==null&&Ge.gridSize(L,l)},[L,l]),f.useEffect(function(){typeof u<"u"&&L!==null&&Ge.ignoreHidden(L,u)},[L,u]),f.useEffect(function(){typeof c<"u"&&L!==null&&Ge.imageExtension(L,c)},[L,c]),f.useEffect(function(){typeof d<"u"&&L!==null&&Ge.imagePath(L,d)},[L,d]),f.useEffect(function(){typeof h<"u"&&L!==null&&Ge.imageSizes(L,h)},[L,h]),f.useEffect(function(){typeof p<"u"&&L!==null&&Ge.maxZoom(L,p)},[L,p]),f.useEffect(function(){typeof m<"u"&&L!==null&&Ge.minimumClusterSize(L,m)},[L,m]),f.useEffect(function(){typeof g<"u"&&L!==null&&Ge.styles(L,g)},[L,g]),f.useEffect(function(){typeof b<"u"&&L!==null&&Ge.title(L,b)},[L,b]),f.useEffect(function(){typeof w<"u"&&L!==null&&Ge.zoomOnClick(L,w)},[L,w]),f.useEffect(function(){if(M){var re=ue({},n||ute),X=new UN(M,[],re);return r&&Ge.averageCenter(X,r),i&&Ge.batchSizeIE(X,i),o&&Ge.calculator(X,o),s&&Ge.clusterClass(X,s),a&&Ge.enableRetinaIcons(X,a),l&&Ge.gridSize(X,l),u&&Ge.ignoreHidden(X,u),c&&Ge.imageExtension(X,c),d&&Ge.imagePath(X,d),h&&Ge.imageSizes(X,h),p&&Ge.maxZoom(X,p),m&&Ge.minimumClusterSize(X,m),g&&Ge.styles(X,g),b&&Ge.title(X,b),w&&Ge.zoomOnClick(X,w),S&&Z(google.maps.event.addListener(X,cr.onMouseOut,S)),C&&Y(google.maps.event.addListener(X,cr.onMouseOver,C)),v&&O(google.maps.event.addListener(X,cr.onClick,v)),y&&D(google.maps.event.addListener(X,cr.onClusteringBegin,y)),E&&x(google.maps.event.addListener(X,cr.onClusteringEnd,E)),I(X),P&&P(X),function(){G!==null&&google.maps.event.removeListener(G),F!==null&&google.maps.event.removeListener(F),A!==null&&google.maps.event.removeListener(A),U!==null&&google.maps.event.removeListener(U),K!==null&&google.maps.event.removeListener(K),_&&_(X)}}},[]),L!==null&&e(L)||null}f.memo(cte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={markerClusterer:null},n.setClustererCallback=function(){n.state.markerClusterer!==null&&n.props.onLoad&&n.props.onLoad(n.state.markerClusterer)},n}return e.prototype.componentDidMount=function(){if(this.context){var n=new UN(this.context,[],this.props.options);this.registeredEvents=Ae({updaterMap:Ge,eventMap:cr,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{markerClusterer:n}},this.setClustererCallback)}},e.prototype.componentDidUpdate=function(n){this.state.markerClusterer&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:Ge,eventMap:cr,prevProps:n,nextProps:this.props,instance:this.state.markerClusterer}))},e.prototype.componentWillUnmount=function(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),Ne(this.registeredEvents),this.state.markerClusterer.setMap(null))},e.prototype.render=function(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null},e.contextType=Re,e})(f.PureComponent);function iP(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}var BN=function(){function t(e){e===void 0&&(e={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.b
3391ind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",e.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),typeof e.visible>"u"&&(typeof e.isHidden>"u"?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var e=this,n=function(u){u.returnValue=!1,u.preventDefault&&u.preventDefault(),e.enableEventPropagation||iP(u)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),typeof this.content=="string"?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var r=this.getPanes();if(r!==null&&r[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(this.maxWidth!==0&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var i=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-i.left-i.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var o=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],s=0,a=o;s<a.length;s++){var l=a[s];this.eventListeners.push(google.maps.event.addListener(this.div,l,iP))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){e.div&&(e.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",n),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var e="";return this.closeBoxURL!==""&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},t.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&this.closeBoxURL!==""?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},t.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},t.prototype.getCloseClickHandler=function(){return this.closeClickHandler},t.prototype.panBox=function(e){if(this.div&&!e){var n=this.getMap();if(n instanceof google.maps.Map){var r=0,i=0,o=n.getBounds();o&&!o.contains(this.position)&&n.setCenter(this.position);var s=n.getDiv(),a=s.offsetWidth,l=s.offsetHeight,u=this.pixelOffset.width,c=this.pixelOffset.height,d=this.div.offsetWidth,h=this.div.offsetHeight,p=this.infoBoxClearance.width,m=this.infoBoxClearance.height,g=this.getProjection(),b=g.fromLatLngToContainerPixel(this.position);b!==null&&(b.x<-u+p?r=b.x+u-p:b.x+d+u+p>a&&(r=b.x+d+u+p-a),this.alignBottom?b.y<-c+m+h?i=b.y+c-m-h:b.y+c+m>l&&(i=b.y+c+m-l):b.y<-c+m?i=b.y+c-m:b.y+h+c+m>l&&(i=b.y+h+c+m-l)),r===0&&i===0||n.panBy(r,i)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this.div.style[n]=e[n]);if(this.div.style.webkitTransform="translateZ(0)",typeof this.div.style.opacity<"u"&&this.div.style.opacity!==""){var r=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+r*100+')"',this.div.style.filter="alpha(opacity="+r*100+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",this.zIndex!==null&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var n=this.div.ownerDocument,r=n&&n.defaultView?n.defaultView.getComputedStyle(this.div,""):null;r&&(e.top=parseInt(r.borderTopWidth||"",10)||0,e.bottom=parseInt(r.borderBottomWidth||"",10)||0,e.left=parseInt(r.borderLeftWidth||"",10)||0,e.right=parseInt(r.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var i=this.div.currentStyle;i&&(e.top=parseInt(i.borderTopWidth||"",10)||0,e.bottom=parseInt(i.borderBottomWidth||"",10)||0,e.left=parseInt(i.borderLeftWidth||"",10)||0,e.right=parseInt(i.borderRightWidth||"",10)||0)}return e},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection(),n=e.fromLatLngToDivPixel(this.position);n!==null&&(this.div.style.left=n.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(n.y+this.pixelOffset.height)+"px":this.div.style.top=n.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(e){e===void 0&&(e={}),typeof e.boxClass<"u"&&(this.boxClass=e.boxClass,this.setBoxStyle()),typeof e.boxStyle<"u"&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),typeof e.content<"u"&&this.setContent(e.content),typeof e.disableAutoPan<"u"&&(this.disableAutoPan=e.disableAutoPan),typeof e.maxWidth<"u"&&(this.maxWidth=e.maxWidth),typeof e.pixelOffset<"u"&&(this.pixelOffset=e.pixelOffset),typeof e.alignBottom<"u"&&(this.alignBottom=e.alignBottom),typeof e.position<"u"&&this.setPosition(e.position),typeof e.zIndex<"u"&&this.setZIndex(e.zIndex),typeof e.closeBoxMargin<"u"&&(this.closeBoxMargin=e.closeBoxMargin),typeof e.closeBoxURL<"u"&&(this.closeBoxURL=e.closeBoxURL),typeof e.infoBoxClearance<"u"&&(this.infoBoxClearance=e.infoBoxClearance),typeof e.isHidden<"u"&&(this.isHidden=e.isHidden),typeof e.visible<"u"&&(this.isHidden=!e.visible),typeof e.enableEventPropagation<"u"&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){var e=this.getMap();return typeof e>"u"||e===null?!1:!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(e,n){var r=this;n&&(this.position=n.getPosition(),this.moveListener=google.maps.event.addListener(n,"position_changed",function(){var i=n.getPosition();r.setPosition(i)}),this.mapListener=google.maps.event.addListener(n,"map_changed",function(){r.setMap(n.map)})),this.setMap(e),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,n=this.eventListeners;e<n.length;e++){var r=n[e];google.maps.event.removeListener(r)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(e,n){return(function(i){for(var o in i.prototype)Object.prototype.hasOwnProperty.call(this,o)||(this.prototype[o]=i.prototype[o]);return this}).apply(e,[n])},t}(),oP={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},sP={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},dte={};function fte(t){var e=t.children,n=t.anchor,r=t.options,i=t.position,o=t.zIndex,s=t.onCloseClick,a=t.onDomReady,l=t.onContentChanged,u=t.onPositionChanged,c=t.onZindexChanged,d=t.onLoad,h=t.onUnmount,p=f.useContext(Re),m=f.useState(null),g=m[0],b=m[1],w=f.useState(null),v=w[0],y=w[1],E=f.useState(null),C=E[0],S=E[1],P=f.useState(null),_=P[0],k=P[1],L=f.useState(null),I=L[0],M=L[1],R=f.useState(null),A=R[0],O=R[1],j=f.useRef(null);return f.useEffect(function(){p&&g!==null&&(g.close(),n?g.open(p,n):g.getPosition()&&g.open(p))},[p,g,n]),f.useEffect(function(){r&&g!==null&&g.setOptions(r)},[g,r]),f.useEffect(function(){if(i&&g!==null){var U=i instanceof google.maps.LatLng?i:new google.maps.LatLng(i.lat,i.lng);g.setPosition(U)}},[i]),f.useEffect(function(){typeof o=="number"&&g!==null&&g.setZIndex(o)},[o]),f.useEffect(function(){g&&s&&(v!==null&&google.maps.event.removeListener(v),y(google.maps.event.addListener(g,"closeclick",s)))},[s]),f.useEffect(function(){g&&a&&(C!==null&&google.maps.event.removeListener(C),S(google.maps.event.addListener(g,"domready",a)))},[a]),f.useEffect(function(){g&&l&&(_!==null&&google.maps.event.removeListener(_),k(google.maps.event.addListener(g,"content_changed",l)))},[l]),f.useEffect(function(){g&&u&&(I!==null&&google.maps.event.removeListener(I),M(google.maps.event.addListener(g,"position_changed",u)))},[u]),f.useEffect(function(){g&&c&&(A!==null&&google.maps.event.removeListener(A),O(google.maps.event.addListener(g,"zindex_changed",c)))},[c]),f.useEffect(function(){if(p){var U=r||dte,D=U.position,B=O_(U,["position"]),K=void 0;D&&!(D instanceof google.maps.LatLng)&&(K=new google.maps.LatLng(D.lat,D.lng));var x=new BN(ue(ue({},B),K?{position:K}:{}));j.current=document.createElement("div"),b(x),s&&y(google.maps.event.addListener(x,"closeclick",s)),a&&S(google.maps.event.addListener(x,"domready",a)),l&&k(google.maps.event.addListener(x,"content_changed",l)),u&&M(google.maps.event.addListener(x,"position_changed",u)),c&&O(google.maps.event.addListener(x,"zindex_changed",c)),x.setContent(j.current),n?x.open(p,n):x.getPosition()?x.open(p):Nt(!1,"You must provide either an anchor or a position prop for <InfoBox>."),d&&d(x)}return function(){g!==null&&(v&&google.maps.event.removeListener(v),_&&google.maps.event.removeListener(_),C&&google.maps.event.removeListener(C),I&&google.maps.event.removeListener(I),A&&google.maps.event.removeListener(A),h&&h(g),g.close())}},[]),j.current?Ki.createPortal(f.Children.only(e),j.current):null}f.memo(fte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoBox:null},n.open=function(r,i){i?n.context!==null&&r.open(n.context,i):r.getPosition()?n.context!==null&&r.open(n.context):Nt(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},n.setInfoBoxCallback=function(){n.state.infoBox!==null&&n.containerElement!==null&&(n.state.infoBox.setContent(n.containerElement),n.open(n.state.infoBox,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoBox))},n}return e.prototype.componentDidMount=function(){var n=this.props.options||{},r=n.position,i=O_(n,["position"]),o;r&&!(r instanceof google.maps.LatLng)&&(o=new google.maps.LatLng(r.lat,r.lng));var s=new BN(ue(ue({},i),o?{position:o}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=Ae({updaterMap:sP,eventMap:oP,prevProps:{},nextProps:this.props,instance:s}),this.setState({infoBox:s},this.setInfoBoxCallback)},e.prototype.componentDidUpdate=function(n){var r=this.state.infoBox;r!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:sP,eventMap:oP,prevProps:n,nextProps:this.props,instance:r}))},e.prototype.componentWillUnmount=function(){var n=this.props.onUnmount,r=this.state.infoBox;r!==null&&(n&&n(r),Ne(this.registeredEvents),r.close())},e.prototype.render=function(){return this.containerElement?Ki.createPortal(f.Children.only(this.props.children),this.containerElement):null},e.contextType=Re,e})(f.PureComponent);var hte=function t(e,n){if(e===n)return!0;
vendor: 6,064 bytes, line 3391
3391if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n},aP=ON(hte);const lP=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Yv=1,bu=8;class N_{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,r]=new Uint8Array(e,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const i=r>>4;if(i!==Yv)throw new Error(`Got v${i} data when expected v${Yv}.`);const o=lP[r&15];if(!o)throw new Error("Unrecognized array type.");const[s]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new N_(a,s,o,e)}constructor(e,n=64,r=Float64Array,i){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const o=lP.indexOf(this.ArrayType),s=e*2*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,bu,e),this.coords=new this.ArrayType(this.data,bu+a+l,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(bu+s+a+l),this.ids=new this.IndexArrayType(this.data,bu,e),this.coords=new this.ArrayType(this.data,bu+a+l,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(Yv<<4)+o]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=e)}add(e,n){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=n,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return bw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,n,r,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:s,nodeSize:a}=this,l=[0,o.length-1,0],u=[];for(;l.length;){const c=l.pop()||0,d=l.pop()||0,h=l.pop()||0;if(d-h<=a){for(let b=h;b<=d;b++){const w=s[2*b],v=s[2*b+1];w>=e&&w<=r&&v>=n&&v<=i&&u.push(o[b])}continue}const p=h+d>>1,m=s[2*p],g=s[2*p+1];m>=e&&m<=r&&g>=n&&g<=i&&u.push(o[p]),(c===0?e<=m:n<=g)&&(l.push(h),l.push(p-1),l.push(1-c)),(c===0?r>=m:i>=g)&&(l.push(p+1),l.push(d),l.push(1-c))}return u}within(e,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:s}=this,a=[0,i.length-1,0],l=[],u=r*r;for(;a.length;){const c=a.pop()||0,d=a.pop()||0,h=a.pop()||0;if(d-h<=s){for(let b=h;b<=d;b++)uP(o[2*b],o[2*b+1],e,n)<=u&&l.push(i[b]);continue}const p=h+d>>1,m=o[2*p],g=o[2*p+1];uP(m,g,e,n)<=u&&l.push(i[p]),(c===0?e-r<=m:n-r<=g)&&(a.push(h),a.push(p-1),a.push(1-c)),(c===0?e+r>=m:n+r>=g)&&(a.push(p+1),a.push(d),a.push(1-c))}return l}}function bw(t,e,n,r,i,o){if(i-r<=n)return;const s=r+i>>1;zN(t,e,s,r,i,o),bw(t,e,n,r,s-1,1-o),bw(t,e,n,s+1,i,1-o)}function zN(t,e,n,r,i,o){for(;i>r;){if(i-r>600){const u=i-r+1,c=n-r+1,d=Math.log(u),h=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*h*(u-h)/u)*(c-u/2<0?-1:1),m=Math.max(r,Math.floor(n-c*h/u+p)),g=Math.min(i,Math.floor(n+(u-c)*h/u+p));zN(t,e,n,m,g,o)}const s=e[2*n+o];let a=r,l=i;for(Eu(t,e,r,n),e[2*i+o]>s&&Eu(t,e,r,i);a<l;){for(Eu(t,e,a,l),a++,l--;e[2*a+o]<s;)a++;for(;e[2*l+o]>s;)l--}e[2*r+o]===s?Eu(t,e,r,l):(l++,Eu(t,e,l,i)),l<=n&&(r=l+1),n<=l&&(i=l-1)}}function Eu(t,e,n,r){Xv(t,n,r),Xv(e,2*n,2*r),Xv(e,2*n+1,2*r+1)}function Xv(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function uP(t,e,n,r){const i=t-n,o=e-r;return i*i+o*o}const pte={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},cP=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1)),as=2,oo=3,Zv=4,to=5,WN=6;class mte{constructor(e){this.options=Object.assign(Object.create(pte),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:n,minZoom:r,maxZoom:i}=this.options;n&&console.time("total time");const o=`prepare ${e.length} points`;n&&console.time(o),this.points=e;const s=[];for(let l=0;l<e.length;l++){const u=e[l];if(!u.geometry)continue;const[c,d]=u.geometry.coordinates,h=cP(kf(c)),p=cP(Af(d));s.push(h,p,1/0,l,-1,1),this.options.reduce&&s.push(0)}let a=this.trees[i+1]=this._createTree(s);n&&console.timeEnd(o);for(let l=i;l>=r;l--){const u=+Date.now();a=this.trees[l]=this._createTree(this._cluster(a,l)),n&&console.log("z%d: %d clusters in %dms",l,a.numItems,+Date.now()-u)}return n&&console.timeEnd("total time"),this}getClusters(e,n){let r=((e[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[1]));let o=e[2]===180?180:((e[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,o=180;else if(r>o){const d=this.getClusters([r,i,180,s],n),h=this.getClusters([-180,i,o,s],n);return d.concat(h)}const a=this.trees[this._limitZoom(n)],l=a.range(kf(r),Af(s),kf(o),Af(i)),u=a.data,c=[];for(const d of l){const h=this.stride*d;c.push(u[h+to]>1?dP(u,h,this.clusterProps):this.points[u[h+oo]])}return c}getChildren(e){const n=this._getOriginId(e),r=this._getOriginZoom(e),i="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(i);const s=o.data;if(n*this.stride>=s.length)throw new Error(i);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),l=s[n*this.stride],u=s[n*this.stride+1],c=o.within(l,u,a),d=[];
3391for(const h of c){const p=h*this.stride;s[p+Zv]===e&&d.push(s[p+to]>1?dP(s,p,this.clusterProps):this.points[s[p+oo]])}if(d.length===0)throw new Error(i);return d}getLeaves(e,n,r){n=n||10,r=r||0;const i=[];return this._appendLeaves(i,e,n,r,0),i}getTile(e,n,r){const i=this.trees[this._limitZoom(e)],o=Math.pow(2,e),{extent:s,radius:a}=this.options,l=a/s,u=(r-l)/o,c=(r+1+l)/o,d={features:[]};return this._addTileFeatures(i.range((n-l)/o,u,(n+1+l)/o,c),i.data,n,r,o,d),n===0&&this._addTileFeatures(i.range(1-l/o,u,1,c),i.data,o,r,o,d),n===o-1&&this._addTileFeatures(i.range(0,u,l/o,c),i.data,-1,r,o,d),d.features.length?d:null}getClusterExpansionZoom(e){let n=this._getOriginZoom(e)-1;for(;n<=this.options.maxZoom;){const r=this.getChildren(e);if(n++,r.length!==1)break;e=r[0].properties.cluster_id}return n}_appendLeaves(e,n,r,i,o){const s=this.getChildren(n);for(const a of s){const l=a.properties;if(l&&l.cluster?o+l.point_count<=i?o+=l.point_count:o=this._appendLeaves(e,l.cluster_id,r,i,o):o<i?o++:e.push(a),e.length===r)break}return o}_createTree(e){const n=new N_(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<e.length;r+=this.stride)n.add(e[r],e[r+1]);return n.finish(),n.data=e,n}_addTileFeatures(e,n,r,i,o,s){for(const a of e){const l=a*this.stride,u=n[l+to]>1;let c,d,h;if(u)c=HN(n,l,this.clusterProps),d=n[l],h=n[l+1];else{const g=this.points[n[l+oo]];c=g.properties;const[b,w]=g.geometry.coordinates;d=kf(b),h=Af(w)}const p={type:1,geometry:[[Math.round(this.options.extent*(d*o-r)),Math.round(this.options.extent*(h*o-i))]],tags:c};let m;u||this.options.generateId?m=n[l+oo]:m=this.points[n[l+oo]].id,m!==void 0&&(p.id=m),s.features.push(p)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,n){const{radius:r,extent:i,reduce:o,minPoints:s}=this.options,a=r/(i*Math.pow(2,n)),l=e.data,u=[],c=this.stride;for(let d=0;d<l.length;d+=c){if(l[d+as]<=n)continue;l[d+as]=n;const h=l[d],p=l[d+1],m=e.within(l[d],l[d+1],a),g=l[d+to];let b=g;for(const w of m){const v=w*c;l[v+as]>n&&(b+=l[v+to])}if(b>g&&b>=s){let w=h*g,v=p*g,y,E=-1;const C=((d/c|0)<<5)+(n+1)+this.points.length;for(const S of m){const P=S*c;if(l[P+as]<=n)continue;l[P+as]=n;const _=l[P+to];w+=l[P]*_,v+=l[P+1]*_,l[P+Zv]=C,o&&(y||(y=this._map(l,d,!0),E=this.clusterProps.length,this.clusterProps.push(y)),o(y,this._map(l,P)))}l[d+Zv]=C,u.push(w/b,v/b,1/0,C,-1,b),o&&u.push(E)}else{for(let w=0;w<c;w++)u.push(l[d+w]);if(b>1)for(const w of m){const v=w*c;if(!(l[v+as]<=n)){l[v+as]=n;for(let y=0;y<c;y++)u.push(l[v+y])}}}}return u}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,n,r){if(e[n+to]>1){const s=this.clusterProps[e[n+WN]];return r?Object.assign({},s):s}const i=this.points[e[n+oo]].properties,o=this.options.map(i);return r&&o===i?Object.assign({},o):o}}function dP(t,e,n){return{type:"Feature",id:t[e+oo],properties:HN(t,e,n),geometry:{type:"Point",coordinates:[gte(t[e]),vte(t[e+1])]}}}function HN(t,e,n){const r=t[e+to],i=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,o=t[e+WN],s=o===-1?{}:Object.assign({},n[o]);return Object.assign(s,{cluster:!0,cluster_id:t[e+oo],point_count:r,point_count_abbreviated:i})}function kf(t){return t/360+.5}function Af(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function gte(t){return(t-.5)*360}function vte(t){const e=(180-t*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}/*! ***************************************************************************** 3392Copyright (c) Microsoft Corporation. 3393 3394Permission to use, copy, modify, and/or distribute this software for any 3395purpose with or without fee is hereby granted. 3396 3397THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 3398REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 3399AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 3400INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 3401LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 3402OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 3403PERFORMANCE OF THIS SOFTWARE. 3404***************************************************************************** */function yte(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}class Kn{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,n){this.isAdvancedMarker(e)?e.map=n:e.setMap(n)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}}class Ew{constructor({markers:e,position:n}){this.markers=e,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(this.markers.length===0&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const n of this.markers)e.extend(Kn.getPosition(n));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>Kn.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(Kn.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class wte{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return bte(e)}}const bte=t=>t.map(n=>new Ew({position:Kn.getPosition(n),markers:[n]}));class Ete extends wte{constructor(e){var{maxZoom:n,radius:r=60}=e,i=yte(e,["maxZoom","radius"]);super({maxZoom:n}),this.state={zoom:-1}
3404,this.superCluster=new mte(Object.assign({maxZoom:this.maxZoom,radius:r},i))}calculate(e){let n=!1;const r={zoom:e.map.getZoom()};if(!aP(e.markers,this.markers)){n=!0,this.markers=[...e.markers];const i=this.markers.map(o=>{const s=Kn.getPosition(o);return{type:"Feature",geometry:{type:"Point",coordinates:[s.lng(),s.lat()]},properties:{marker:o}}});this.superCluster.load(i)}return n||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(n=!aP(this.state,r)),this.state=r,n&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:n}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(n=>this.transformCluster(n))}transformCluster({geometry:{coordinates:[e,n]},properties:r}){if(r.cluster)return new Ew({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(o=>o.properties.marker),position:{lat:n,lng:e}});const i=r.marker;return new Ew({markers:[i],position:Kn.getPosition(i)})}}class _te{constructor(e,n){this.markers={sum:e.length};const r=n.map(o=>o.count),i=r.reduce((o,s)=>o+s,0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min(...r),max:Math.max(...r)}}}}class Ste{render({count:e,position:n},r,i){const s=`<svg fill="${e>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50"> 3405<circle cx="120" cy="120" opacity=".6" r="70" /> 3406<circle cx="120" cy="120" opacity=".3" r="90" /> 3407<circle cx="120" cy="120" opacity=".2" r="110" /> 3408<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text> 3409</svg>`,a=`Cluster of ${e} markers`,l=Number(google.maps.Marker.MAX_ZINDEX)+e;if(Kn.isAdvancedMarkerAvailable(i)){const c=document.createElement("div");c.innerHTML=s;const d=c.firstElementChild;d.setAttribute("transform","translate(0 25)");const h={map:i,position:n,zIndex:l,title:a,content:d};return new google.maps.marker.AdvancedMarkerElement(h)}const u={position:n,zIndex:l,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(s)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(u)}}function Cte(t,e){for(let n in e.prototype)t.prototype[n]=e.prototype[n]}class $_{constructor(){Cte($_,google.maps.OverlayView)}}var nc;(function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"})(nc||(nc={}));const xte=(t,e,n)=>{n.fitBounds(e.bounds)};class Tte extends $_{constructor({map:e,markers:n=[],algorithmOptions:r={},algorithm:i=new Ete(r),renderer:o=new Ste,onClusterClick:s=xte}){super(),this.markers=[...n],this.clusters=[],this.algorithm=i,this.renderer=o,this.onClusterClick=s,e&&this.setMap(e)}addMarker(e,n){this.markers.includes(e)||(this.markers.push(e),n||this.render())}addMarkers(e,n){e.forEach(r=>{this.addMarker(r,!0)}),n||this.render()}removeMarker(e,n){const r=this.markers.indexOf(e);return r===-1?!1:(Kn.setMap(e,null),this.markers.splice(r,1),n||this.render(),!0)}removeMarkers(e,n){let r=!1;return e.forEach(i=>{r=this.removeMarker(i,!0)||r}),r&&!n&&this.render(),r}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,nc.CLUSTERING_BEGIN,this);const{clusters:n,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||r==null){const i=new Set;for(const s of n)s.markers.length==1&&i.add(s.markers[0]);const o=[];for(const s of this.clusters)s.marker!=null&&(s.markers.length==1?i.has(s.marker)||Kn.setMap(s.marker,null):o.push(s.marker));this.clusters=n,this.renderClusters(),requestAnimationFrame(()=>o.forEach(s=>Kn.setMap(s,null)))}google.maps.event.trigger(this,nc.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>Kn.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}
3409renderClusters(){const e=new _te(this.markers,this.clusters),n=this.getMap();this.clusters.forEach(r=>{r.markers.length===1?r.marker=r.markers[0]:(r.marker=this.renderer.render(r,e,n),r.markers.forEach(i=>Kn.setMap(i,null)),this.onClusterClick&&r.marker.addListener("click",i=>{google.maps.event.trigger(this,nc.CLUSTER_CLICK,r),this.onClusterClick(i,r,n)})),Kn.setMap(r.marker,n)})}}function Pte(t){var e=Vee(),n=f.useState(null),r=n[0],i=n[1];return f.useEffect(function(){if(e&&r===null){var o=new Tte(ue(ue({},t),{map:e}));i(o)}},[e]),r}function Ite(t){var e=t.children,n=t.options,r=Pte(n);return r!==null?e(r):null}f.memo(Ite);var fP={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},hP={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}};function Lte(t){var e=t.children,n=t.anchor,r=t.options,i=t.position,o=t.zIndex,s=t.onCloseClick,a=t.onDomReady,l=t.onContentChanged,u=t.onPositionChanged,c=t.onZindexChanged,d=t.onLoad,h=t.onUnmount,p=f.useContext(Re),m=f.useState(null),g=m[0],b=m[1],w=f.useState(null),v=w[0],y=w[1],E=f.useState(null),C=E[0],S=E[1],P=f.useState(null),_=P[0],k=P[1],L=f.useState(null),I=L[0],M=L[1],R=f.useState(null),A=R[0],O=R[1],j=f.useRef(null);return f.useEffect(function(){g!==null&&(g.close(),n?g.open(p,n):g.getPosition()&&g.open(p))},[p,g,n]),f.useEffect(function(){r&&g!==null&&g.setOptions(r)},[g,r]),f.useEffect(function(){i&&g!==null&&g.setPosition(i)},[i]),f.useEffect(function(){typeof o=="number"&&g!==null&&g.setZIndex(o)},[o]),f.useEffect(function(){g&&s&&(v!==null&&google.maps.event.removeListener(v),y(google.maps.event.addListener(g,"closeclick",s)))},[s]),f.useEffect(function(){g&&a&&(C!==null&&google.maps.event.removeListener(C),S(google.maps.event.addListener(g,"domready",a)))},[a]),f.useEffect(function(){g&&l&&(_!==null&&google.maps.event.removeListener(_),k(google.maps.event.addListener(g,"content_changed",l)))},[l]),f.useEffect(function(){g&&u&&(I!==null&&google.maps.event.removeListener(I),M(google.maps.event.addListener(g,"position_changed",u)))},[u]),f.useEffect(function(){g&&c&&(A!==null&&google.maps.event.removeListener(A),O(google.maps.event.addListener(g,"zindex_changed",c)))},[c]),f.useEffect(function(){var U=new google.maps.InfoWindow(ue({},r||{}));return b(U),j.current=document.createElement("div"),s&&y(google.maps.event.addListener(U,"closeclick",s)),a&&S(google.maps.event.addListener(U,"domready",a)),l&&k(google.maps.event.addListener(U,"content_changed",l)),u&&M(google.maps.event.addListener(U,"position_changed",u)),c&&O(google.maps.event.addListener(U,"zindex_changed",c)),U.setContent(j.current),i&&U.setPosition(i),o&&U.setZIndex(o),n?U.open(p,n):U.getPosition()?U.open(p):Nt(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),d&&d(U),function(){v&&google.maps.event.removeListener(v),_&&google.maps.event.removeListener(_),C&&google.maps.event.removeListener(C),I&&google.maps.event.removeListener(I),A&&google.maps.event.removeListener(A),h&&h(U),U.close()}},[]),j.current?Ki.createPortal(f.Children.only(e),j.current):null}f.memo(Lte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoWindow:null},n.open=function(r,i){i?r.open(n.context,i):r.getPosition()?r.open(n.context):Nt(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},n.setInfoWindowCallback=function(){n.state.infoWindow!==null&&n.containerElement!==null&&(n.state.infoWindow.setContent(n.containerElement),n.open(n.state.infoWindow,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoWindow))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.InfoWindow(ue({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=Ae({updaterMap:hP,eventMap:fP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{infoWindow:n}},this.setInfoWindowCallback)},e.prototype.componentDidUpdate=function(n){this.state.infoWindow!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:hP,eventMap:fP,prevProps:n,nextProps:this.props,instance:this.state.infoWindow}))},e.prototype.componentWillUnmount=function(){this.state.infoWindow!==null&&(Ne(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},e.prototype.render=function(){return this.containerElement?Ki.createPortal(f.Children.only(this.props.children),this.containerElement):null},e.contextType=Re,e})(f.PureComponent);var pP={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},mP={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},Rte={};function kte(t){var e=t.options,n=t.draggable,r=t.editable,i=t.visible,o=t.path,s=t.onDblClick,a=t.onDragEnd,l=t.onDragStart,u=t.onMouseDown,c=t.onMouseMove,d=t.onMouseOut,h=t.onMouseOver,p=t.onMouseUp,m=t.onRightClick,g=t.onClick,b=t.onDrag,w=t.onLoad,v=t.onUnmount,y=f.useContext(Re),E=f.useState(null),C=E[0],S=E[1],P=f.useState(null),_=P[0],k=P[1],L=f.useState(null),I=L[0],M=L[1],R=f.useState(null),A=R[0],O=R[1],j=f.useState(null),U=j[0],D=j[1],B=f.useState(null),K=B[0],x=B[1],$=f.useState(null),G=$[0],Z=$[1],te=f.useState(null),F=te[0],Y=te[1],re=f.useState(null),X=re[0],fe=re[1],Te=f.useState(null),Me=Te[0],De=Te[1],Je=f.useState(null),qe=Je[0],$e=Je[1],ot=f.useState(null),We=ot[0],ae=ot[1];return f.useEffect(function(){C!==null&&C.setMap(y)},[y]),f.useEffect(function(){typeof e<"u"&&C!==null&&C.setOptions(e)},[C,e]),f.useEffect(function(){typeof n<"u"&&C!==null&&C.setDraggable(n)},[C,n]),f.useEffect(function(){typeof r<"u"&&C!==null&&C.setEditable(r)},[C,r]),f.useEffect(function(){typeof i<"u"&&C!==null&&C.setVisible(i)},[C,i]),f.useEffect(function(){typeof o<"u"&&C!==null&&C.setPath(o)},[C,o]),f.useEffect(function(){C&&s&&(_!==null&&google.maps.event.removeListener(_),k(google.maps.event.addListener(C,"dblclick",
3409s)))},[s]),f.useEffect(function(){C&&a&&(I!==null&&google.maps.event.removeListener(I),M(google.maps.event.addListener(C,"dragend",a)))},[a]),f.useEffect(function(){C&&l&&(A!==null&&google.maps.event.removeListener(A),O(google.maps.event.addListener(C,"dragstart",l)))},[l]),f.useEffect(function(){C&&u&&(U!==null&&google.maps.event.removeListener(U),D(google.maps.event.addListener(C,"mousedown",u)))},[u]),f.useEffect(function(){C&&c&&(K!==null&&google.maps.event.removeListener(K),x(google.maps.event.addListener(C,"mousemove",c)))},[c]),f.useEffect(function(){C&&d&&(G!==null&&google.maps.event.removeListener(G),Z(google.maps.event.addListener(C,"mouseout",d)))},[d]),f.useEffect(function(){C&&h&&(F!==null&&google.maps.event.removeListener(F),Y(google.maps.event.addListener(C,"mouseover",h)))},[h]),f.useEffect(function(){C&&p&&(X!==null&&google.maps.event.removeListener(X),fe(google.maps.event.addListener(C,"mouseup",p)))},[p]),f.useEffect(function(){C&&m&&(Me!==null&&google.maps.event.removeListener(Me),De(google.maps.event.addListener(C,"rightclick",m)))},[m]),f.useEffect(function(){C&&g&&(qe!==null&&google.maps.event.removeListener(qe),$e(google.maps.event.addListener(C,"click",g)))},[g]),f.useEffect(function(){C&&b&&(We!==null&&google.maps.event.removeListener(We),ae(google.maps.event.addListener(C,"drag",b)))},[b]),f.useEffect(function(){var Ce=new google.maps.Polyline(ue(ue({},e||Rte),{map:y}));return o&&Ce.setPath(o),typeof i<"u"&&Ce.setVisible(i),typeof r<"u"&&Ce.setEditable(r),typeof n<"u"&&Ce.setDraggable(n),s&&k(google.maps.event.addListener(Ce,"dblclick",s)),a&&M(google.maps.event.addListener(Ce,"dragend",a)),l&&O(google.maps.event.addListener(Ce,"dragstart",l)),u&&D(google.maps.event.addListener(Ce,"mousedown",u)),c&&x(google.maps.event.addListener(Ce,"mousemove",c)),d&&Z(google.maps.event.addListener(Ce,"mouseout",d)),h&&Y(google.maps.event.addListener(Ce,"mouseover",h)),p&&fe(google.maps.event.addListener(Ce,"mouseup",p)),m&&De(google.maps.event.addListener(Ce,"rightclick",m)),g&&$e(google.maps.event.addListener(Ce,"click",g)),b&&ae(google.maps.event.addListener(Ce,"drag",b)),S(Ce),w&&w(Ce),function(){_!==null&&google.maps.event.removeListener(_),I!==null&&google.maps.event.removeListener(I),A!==null&&google.maps.event.removeListener(A),U!==null&&google.maps.event.removeListener(U),K!==null&&google.maps.event.removeListener(K),G!==null&&google.maps.event.removeListener(G),F!==null&&google.maps.event.removeListener(F),X!==null&&google.maps.event.removeListener(X),Me!==null&&google.maps.event.removeListener(Me),qe!==null&&google.maps.event.removeListener(qe),v&&v(Ce),Ce.setMap(null)}},[]),null}f.memo(kte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polyline:null},n.setPolylineCallback=function(){n.state.polyline!==null&&n.props.onLoad&&n.props.onLoad(n.state.polyline)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polyline(ue(ue({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ae({updaterMap:mP,eventMap:pP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polyline:n}},this.setPolylineCallback)},e.prototype.componentDidUpdate=function(n){this.state.polyline!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:mP,eventMap:pP,prevProps:n,nextProps:this.props,instance:this.state.polyline}))},e.prototype.componentWillUnmount=function(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),Ne(this.registeredEvents),this.state.polyline.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var gP={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},vP={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}};function Ate(t){var e=t.options,n=t.draggable,r=t.editable,i=t.visible,o=t.path,s=t.paths,a=t.onDblClick,l=t.onDragEnd,u=t.onDragStart,c=t.onMouseDown,d=t.onMouseMove,h=t.onMouseOut,p=t.onMouseOver,m=t.onMouseUp,g=t.onRightClick,b=t.onClick,w=t.onDrag,v=t.onLoad,y=t.onUnmount,E=f.useContext(Re),C=f.useState(null),S=C[0],P=C[1],_=f.useState(null),k=_[0],L=_[1],I=f.useState(null),M=I[0],R=I[1],A=f.useState(null),O=A[0],j=A[1],U=f.useState(null),D=U[0],B=U[1],K=f.useState(null),x=K[0],$=K[1],G=f.useState(null),Z=G[0],te=G[1],F=f.useState(null),Y=F[0],re=F[1],X=f.useState(null),fe=X[0],Te=X[1],Me=f.useState(null),De=Me[0],Je=Me[1],qe=f.useState(null),$e=qe[0],ot=qe[1],We=f.useState(null),ae=We[0],Ce=We[1];return f.useEffect(function(){S!==null&&S.setMap(E)},[E]),f.useEffect(function(){typeof e<"u"&&S!==null&&S.setOptions(e)},[S,e]),f.useEffect(function(){typeof n<"u"&&S!==null&&S.setDraggable(n)},[S,n]),f.useEffect(function(){typeof r<"u"&&S!==null&&S.setEditable(r)},[S,r]),f.useEffect(function(){typeof i<"u"&&S!==null&&S.setVisible(i)},[S,i]),f.useEffect(function(){typeof o<"u"&&S!==null&&S.setPath(o)},[S,o]),f.useEffect(function(){typeof s<"u"&&S!==null&&S.setPaths(s)},[S,s]),f.useEffect(function(){S&&a&&(k!==null&&google.maps.event.removeListener(k),L(google.maps.event.addListener(S,"dblclick",a)))},[a]),f.useEffect(function(){S&&l&&(M!==null&&google.maps.event.removeListener(M),R(google.maps.event.addListener(S,"dragend",l)))},[l]),f.useEffect(function(){S&&u&&(O!==null&&google.maps.event.removeListener(O),j(google.maps.event.addListener(S,"dragstart",u)))},[u]),f.useEffect(function(){S&&c&&(D!==null&&google.maps.event.removeListener(
3409D),B(google.maps.event.addListener(S,"mousedown",c)))},[c]),f.useEffect(function(){S&&d&&(x!==null&&google.maps.event.removeListener(x),$(google.maps.event.addListener(S,"mousemove",d)))},[d]),f.useEffect(function(){S&&h&&(Z!==null&&google.maps.event.removeListener(Z),te(google.maps.event.addListener(S,"mouseout",h)))},[h]),f.useEffect(function(){S&&p&&(Y!==null&&google.maps.event.removeListener(Y),re(google.maps.event.addListener(S,"mouseover",p)))},[p]),f.useEffect(function(){S&&m&&(fe!==null&&google.maps.event.removeListener(fe),Te(google.maps.event.addListener(S,"mouseup",m)))},[m]),f.useEffect(function(){S&&g&&(De!==null&&google.maps.event.removeListener(De),Je(google.maps.event.addListener(S,"rightclick",g)))},[g]),f.useEffect(function(){S&&b&&($e!==null&&google.maps.event.removeListener($e),ot(google.maps.event.addListener(S,"click",b)))},[b]),f.useEffect(function(){S&&w&&(ae!==null&&google.maps.event.removeListener(ae),Ce(google.maps.event.addListener(S,"drag",w)))},[w]),f.useEffect(function(){var xe=new google.maps.Polygon(ue(ue({},e||{}),{map:E}));return o&&xe.setPath(o),s&&xe.setPaths(s),typeof i<"u"&&xe.setVisible(i),typeof r<"u"&&xe.setEditable(r),typeof n<"u"&&xe.setDraggable(n),a&&L(google.maps.event.addListener(xe,"dblclick",a)),l&&R(google.maps.event.addListener(xe,"dragend",l)),u&&j(google.maps.event.addListener(xe,"dragstart",u)),c&&B(google.maps.event.addListener(xe,"mousedown",c)),d&&$(google.maps.event.addListener(xe,"mousemove",d)),h&&te(google.maps.event.addListener(xe,"mouseout",h)),p&&re(google.maps.event.addListener(xe,"mouseover",p)),m&&Te(google.maps.event.addListener(xe,"mouseup",m)),g&&Je(google.maps.event.addListener(xe,"rightclick",g)),b&&ot(google.maps.event.addListener(xe,"click",b)),w&&Ce(google.maps.event.addListener(xe,"drag",w)),P(xe),v&&v(xe),function(){k!==null&&google.maps.event.removeListener(k),M!==null&&google.maps.event.removeListener(M),O!==null&&google.maps.event.removeListener(O),D!==null&&google.maps.event.removeListener(D),x!==null&&google.maps.event.removeListener(x),Z!==null&&google.maps.event.removeListener(Z),Y!==null&&google.maps.event.removeListener(Y),fe!==null&&google.maps.event.removeListener(fe),De!==null&&google.maps.event.removeListener(De),$e!==null&&google.maps.event.removeListener($e),y&&y(xe),xe.setMap(null)}},[]),null}f.memo(Ate);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polygon:null},n.setPolygonCallback=function(){n.state.polygon!==null&&n.props.onLoad&&n.props.onLoad(n.state.polygon)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polygon(ue(ue({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ae({updaterMap:vP,eventMap:gP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polygon:n}},this.setPolygonCallback)},e.prototype.componentDidUpdate=function(n){this.state.polygon!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:vP,eventMap:gP,prevProps:n,nextProps:this.props,instance:this.state.polygon}))},e.prototype.componentWillUnmount=function(){this.state.polygon!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),Ne(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var yP={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},wP={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}};function Mte(t){var e=t.options,n=t.bounds,r=t.draggable,i=t.editable,o=t.visible,s=t.onDblClick,a=t.onDragEnd,l=t.onDragStart,u=t.onMouseDown,c=t.onMouseMove,d=t.onMouseOut,h=t.onMouseOver,p=t.onMouseUp,m=t.onRightClick,g=t.onClick,b=t.onDrag,w=t.onBoundsChanged,v=t.onLoad,y=t.onUnmount,E=f.useContext(Re),C=f.useState(null),S=C[0],P=C[1],_=f.useState(null),k=_[0],L=_[1],I=f.useState(null),M=I[0],R=I[1],A=f.useState(null),O=A[0],j=A[1],U=f.useState(null),D=U[0],B=U[1],K=f.useState(null),x=K[0],$=K[1],G=f.useState(null),Z=G[0],te=G[1],F=f.useState(null),Y=F[0],re=F[1],X=f.useState(null),fe=X[0],Te=X[1],Me=f.useState(null),De=Me[0],Je=Me[1],qe=f.useState(null),$e=qe[0],ot=qe[1],We=f.useState(null),ae=We[0],Ce=We[1],xe=f.useState(null),wt=xe[0],ct=xe[1];return f.useEffect(function(){S!==null&&S.setMap(E)},[E]),f.useEffect(function(){typeof e<"u"&&S!==null&&S.setOptions(e)},[S,e]),f.useEffect(function(){typeof r<"u"&&S!==null&&S.setDraggable(r)},[S,r]),f.useEffect(function(){typeof i<"u"&&S!==null&&S.setEditable(i)},[S,i]),f.useEffect(function(){typeof o<"u"&&S!==null&&S.setVisible(o)},[S,o]),f.useEffect(function(){typeof n<"u"&&S!==null&&S.setBounds(n)},[S,n]),f.useEffect(function(){S&&s&&(k!==null&&google.maps.event.removeListener(k),L(google.maps.event.addListener(S,"dblclick",
3409s)))},[s]),f.useEffect(function(){S&&a&&(M!==null&&google.maps.event.removeListener(M),R(google.maps.event.addListener(S,"dragend",a)))},[a]),f.useEffect(function(){S&&l&&(O!==null&&google.maps.event.removeListener(O),j(google.maps.event.addListener(S,"dragstart",l)))},[l]),f.useEffect(function(){S&&u&&(D!==null&&google.maps.event.removeListener(D),B(google.maps.event.addListener(S,"mousedown",u)))},[u]),f.useEffect(function(){S&&c&&(x!==null&&google.maps.event.removeListener(x),$(google.maps.event.addListener(S,"mousemove",c)))},[c]),f.useEffect(function(){S&&d&&(Z!==null&&google.maps.event.removeListener(Z),te(google.maps.event.addListener(S,"mouseout",d)))},[d]),f.useEffect(function(){S&&h&&(Y!==null&&google.maps.event.removeListener(Y),re(google.maps.event.addListener(S,"mouseover",h)))},[h]),f.useEffect(function(){S&&p&&(fe!==null&&google.maps.event.removeListener(fe),Te(google.maps.event.addListener(S,"mouseup",p)))},[p]),f.useEffect(function(){S&&m&&(De!==null&&google.maps.event.removeListener(De),Je(google.maps.event.addListener(S,"rightclick",m)))},[m]),f.useEffect(function(){S&&g&&($e!==null&&google.maps.event.removeListener($e),ot(google.maps.event.addListener(S,"click",g)))},[g]),f.useEffect(function(){S&&b&&(ae!==null&&google.maps.event.removeListener(ae),Ce(google.maps.event.addListener(S,"drag",b)))},[b]),f.useEffect(function(){S&&w&&(wt!==null&&google.maps.event.removeListener(wt),ct(google.maps.event.addListener(S,"bounds_changed",w)))},[w]),f.useEffect(function(){var de=new google.maps.Rectangle(ue(ue({},e||{}),{map:E}));return typeof o<"u"&&de.setVisible(o),typeof i<"u"&&de.setEditable(i),typeof r<"u"&&de.setDraggable(r),typeof n<"u"&&de.setBounds(n),s&&L(google.maps.event.addListener(de,"dblclick",s)),a&&R(google.maps.event.addListener(de,"dragend",a)),l&&j(google.maps.event.addListener(de,"dragstart",l)),u&&B(google.maps.event.addListener(de,"mousedown",u)),c&&$(google.maps.event.addListener(de,"mousemove",c)),d&&te(google.maps.event.addListener(de,"mouseout",d)),h&&re(google.maps.event.addListener(de,"mouseover",h)),p&&Te(google.maps.event.addListener(de,"mouseup",p)),m&&Je(google.maps.event.addListener(de,"rightclick",m)),g&&ot(google.maps.event.addListener(de,"click",g)),b&&Ce(google.maps.event.addListener(de,"drag",b)),w&&ct(google.maps.event.addListener(de,"bounds_changed",w)),P(de),v&&v(de),function(){k!==null&&google.maps.event.removeListener(k),M!==null&&google.maps.event.removeListener(M),O!==null&&google.maps.event.removeListener(O),D!==null&&google.maps.event.removeListener(D),x!==null&&google.maps.event.removeListener(x),Z!==null&&google.maps.event.removeListener(Z),Y!==null&&google.maps.event.removeListener(Y),fe!==null&&google.maps.event.removeListener(fe),De!==null&&google.maps.event.removeListener(De),$e!==null&&google.maps.event.removeListener($e),ae!==null&&google.maps.event.removeListener(ae),wt!==null&&google.maps.event.removeListener(wt),y&&y(de),de.setMap(null)}},[]),null}f.memo(Mte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={rectangle:null},n.setRectangleCallback=function(){n.state.rectangle!==null&&n.props.onLoad&&n.props.onLoad(n.state.rectangle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Rectangle(ue(ue({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ae({updaterMap:wP,eventMap:yP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{rectangle:n}},this.setRectangleCallback)},e.prototype.componentDidUpdate=function(n){this.state.rectangle!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:wP,eventMap:yP,prevProps:n,nextProps:this.props,instance:this.state.rectangle}))},e.prototype.componentWillUnmount=function(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),Ne(this.registeredEvents),this.state.rectangle.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var bP={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},EP={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},Dte={};function Ote(t){var e=t.options,n=t.center,r=t.radius,i=t.draggable,o=t.editable,s=t.visible,a=t.onDblClick,l=t.onDragEnd,u=t.onDragStart,c=t.onMouseDown,d=t.onMouseMove,h=t.onMouseOut,p=t.onMouseOver,m=t.onMouseUp,g=t.onRightClick,b=t.onClick,w=t.onDrag,v=t.onCenterChanged,y=t.onRadiusChanged,E=t.onLoad,C=t.onUnmount,S=f.useContext(Re),P=f.useState(null),_=P[0],k=P[1],L=f.useState(null),I=L[0],M=L[1],R=f.useState(null),A=R[0],O=R[1],j=f.useState(null),U=j[0],D=j[1],B=f.useState(null),K=B[0],x=B[1],$=f.useState(null),G=$[0],Z=$[1],te=f.useState(null),F=te[0],Y=te[1],re=f.useState(null),X=re[0],fe=re[1],Te=f.useState(null),Me=Te[0],De=Te[1],Je=f.useState(null),qe=Je[0],$e=Je[1],ot=f.useState(null),We=ot[0],ae=ot[1],Ce=f.useState(null),xe=Ce[0],wt=Ce[1],ct=f.useState(null),de=ct[0],un=ct[1],zr=f.useState(null),zn=zr[0],Wr=zr[1];return f.useEffect(function(){_!==null&&_.setMap(S)},[S]),f.useEffect(function(){typeof e<"u"&&_!==null&&_.setOptions(e)},[_,e]),f.useEffect(function(){typeof i<"u"&&_!==null&&_.setDraggable(i)},[_,i]),f.useEffect(function(){typeof o<"u"&&_!==null&&_.setEditable(o)},[_,o]),f.useEffect(function(){typeof s<"u"&&_!==null&&_.setVisible(s)},[_,s]),f.useEffect(function(){typeof r=="number"&&_!==null&&_.setRadius(r)},[_,r]),f.useEffect(function(){typeof n<"u"&&_!==null&&_.setCenter(n)},[_,n]),f.useEffect(function(){_&&a&&(I!==null&&google.maps.event.removeListener(I),M(google.maps.event.addListener(_,"dblclick",a)))},[a]),f.useEffect(function(){_&&l&&(A!==null&&google.maps.event.removeListener(A),O(google.maps.event.addListener(_,"dragend",l)))},[l]),f.useEffect(function(){_&&u&&(U!==null&&google.maps.event.removeListener(U),D(google.maps.event.addListener(_,"dragstart",u)))},[u]),f.useEffect(function(){_&&c&&(K!==null&&google.maps.event.removeListener(K),x(google.maps.event.addListener(_,"mousedown",c)))},[c]),f.useEffect(function(){_&&d&&(G!==null&&google.maps.event.removeListener(G),Z(google.maps.event.addListener(_,"mousemove",d))
3409)},[d]),f.useEffect(function(){_&&h&&(F!==null&&google.maps.event.removeListener(F),Y(google.maps.event.addListener(_,"mouseout",h)))},[h]),f.useEffect(function(){_&&p&&(X!==null&&google.maps.event.removeListener(X),fe(google.maps.event.addListener(_,"mouseover",p)))},[p]),f.useEffect(function(){_&&m&&(Me!==null&&google.maps.event.removeListener(Me),De(google.maps.event.addListener(_,"mouseup",m)))},[m]),f.useEffect(function(){_&&g&&(qe!==null&&google.maps.event.removeListener(qe),$e(google.maps.event.addListener(_,"rightclick",g)))},[g]),f.useEffect(function(){_&&b&&(We!==null&&google.maps.event.removeListener(We),ae(google.maps.event.addListener(_,"click",b)))},[b]),f.useEffect(function(){_&&w&&(xe!==null&&google.maps.event.removeListener(xe),wt(google.maps.event.addListener(_,"drag",w)))},[w]),f.useEffect(function(){_&&v&&(de!==null&&google.maps.event.removeListener(de),un(google.maps.event.addListener(_,"center_changed",v)))},[b]),f.useEffect(function(){_&&y&&(zn!==null&&google.maps.event.removeListener(zn),Wr(google.maps.event.addListener(_,"radius_changed",y)))},[y]),f.useEffect(function(){var He=new google.maps.Circle(ue(ue({},e||Dte),{map:S}));return typeof r=="number"&&He.setRadius(r),typeof n<"u"&&He.setCenter(n),typeof r=="number"&&He.setRadius(r),typeof s<"u"&&He.setVisible(s),typeof o<"u"&&He.setEditable(o),typeof i<"u"&&He.setDraggable(i),a&&M(google.maps.event.addListener(He,"dblclick",a)),l&&O(google.maps.event.addListener(He,"dragend",l)),u&&D(google.maps.event.addListener(He,"dragstart",u)),c&&x(google.maps.event.addListener(He,"mousedown",c)),d&&Z(google.maps.event.addListener(He,"mousemove",d)),h&&Y(google.maps.event.addListener(He,"mouseout",h)),p&&fe(google.maps.event.addListener(He,"mouseover",p)),m&&De(google.maps.event.addListener(He,"mouseup",m)),g&&$e(google.maps.event.addListener(He,"rightclick",g)),b&&ae(google.maps.event.addListener(He,"click",b)),w&&wt(google.maps.event.addListener(He,"drag",w)),v&&un(google.maps.event.addListener(He,"center_changed",v)),y&&Wr(google.maps.event.addListener(He,"radius_changed",y)),k(He),E&&E(He),function(){I!==null&&google.maps.event.removeListener(I),A!==null&&google.maps.event.removeListener(A),U!==null&&google.maps.event.removeListener(U),K!==null&&google.maps.event.removeListener(K),G!==null&&google.maps.event.removeListener(G),F!==null&&google.maps.event.removeListener(F),X!==null&&google.maps.event.removeListener(X),Me!==null&&google.maps.event.removeListener(Me),qe!==null&&google.maps.event.removeListener(qe),We!==null&&google.maps.event.removeListener(We),de!==null&&google.maps.event.removeListener(de),zn!==null&&google.maps.event.removeListener(zn),C&&C(He),He.setMap(null)}},[]),null}f.memo(Ote);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={circle:null},n.setCircleCallback=function(){n.state.circle!==null&&n.props.onLoad&&n.props.onLoad(n.state.circle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Circle(ue(ue({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ae({updaterMap:EP,eventMap:bP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{circle:n}},this.setCircleCallback)},e.prototype.componentDidUpdate=function(n){this.state.circle!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:EP,eventMap:bP,prevProps:n,nextProps:this.props,instance:this.state.circle}))},e.prototype.componentWillUnmount=function(){var n;this.state.circle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),Ne(this.registeredEvents),(n=this.state.circle)===null||n===void 0||n.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var _P={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},SP={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,r){t.loadGeoJson(e,n,r)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}};function Nte(t){var e=t.options,n=t.onClick,r=t.onDblClick,i=t.onMouseDown,o=t.onMouseMove,s=t.onMouseOut,a=t.onMouseOver,l=t.onMouseUp,u=t.onRightClick,c=t.onAddFeature,d=t.onRemoveFeature,h=t.onRemoveProperty,p=t.onSetGeometry,m=t.onSetProperty,g=t.onLoad,b=t.onUnmount,w=f.useContext(Re),v=f.useState(null),y=v[0],E=v[1],C=f.useState(null),S=C[0],P=C[1],_=f.useState(null),k=_[0],L=_[1],I=f.useState(null),M=I[0],R=I[1],A=f.useState(null),O=A[0],j=A[1],U=f.useState(null),D=U[0],B=U[1],K=f.useState(null),x=K[0],$=K[1],G=f.useState(null),Z=G[0],te=G[1],F=f.useState(null),Y=F[0],re=F[1],X=f.useState(null),fe=X[0],Te=X[1],Me=f.useState(null),De=Me[0],Je=Me[1],qe=f.useState(null),$e=qe[0],ot=qe[1],We=f.useState(null),ae=We[0],Ce=We[1],xe=f.useState(null),wt=xe[0],ct=xe[1];return f.useEffect(function(){y!==null&&y.setMap(w)},[w]),f.useEffect(function(){y&&r&&(S!==null&&google.maps.event.removeListener(S),P(google.maps.event.addListener(y,"dblclick",r)))},[r]),f.useEffect(function(){y&&i&&(k!==null&&google.maps.event.removeListener(k),L(google.maps.event.addListener(y,"mousedown",i)))},[i]),f.useEffect(function(){y&&o&&(M!==null&&google.maps.event.removeListener(M),R(google.maps.event.addListener(y,"mousemove",o)))},[o]),f.useEffect(function(){y&&s&&(O!==null&&google.maps.event.removeListener(O),j(google.maps.event.addListener(y,"mouseout",s)))},[s]),f.useEffect(function(){y&&a&&(D!==null&&google.maps.event.removeListener(
3409D),B(google.maps.event.addListener(y,"mouseover",a)))},[a]),f.useEffect(function(){y&&l&&(x!==null&&google.maps.event.removeListener(x),$(google.maps.event.addListener(y,"mouseup",l)))},[l]),f.useEffect(function(){y&&u&&(Z!==null&&google.maps.event.removeListener(Z),te(google.maps.event.addListener(y,"rightclick",u)))},[u]),f.useEffect(function(){y&&n&&(Y!==null&&google.maps.event.removeListener(Y),re(google.maps.event.addListener(y,"click",n)))},[n]),f.useEffect(function(){y&&c&&(fe!==null&&google.maps.event.removeListener(fe),Te(google.maps.event.addListener(y,"addfeature",c)))},[c]),f.useEffect(function(){y&&d&&(De!==null&&google.maps.event.removeListener(De),Je(google.maps.event.addListener(y,"removefeature",d)))},[d]),f.useEffect(function(){y&&h&&($e!==null&&google.maps.event.removeListener($e),ot(google.maps.event.addListener(y,"removeproperty",h)))},[h]),f.useEffect(function(){y&&p&&(ae!==null&&google.maps.event.removeListener(ae),Ce(google.maps.event.addListener(y,"setgeometry",p)))},[p]),f.useEffect(function(){y&&m&&(wt!==null&&google.maps.event.removeListener(wt),ct(google.maps.event.addListener(y,"setproperty",m)))},[m]),f.useEffect(function(){if(w!==null){var de=new google.maps.Data(ue(ue({},e||{}),{map:w}));r&&P(google.maps.event.addListener(de,"dblclick",r)),i&&L(google.maps.event.addListener(de,"mousedown",i)),o&&R(google.maps.event.addListener(de,"mousemove",o)),s&&j(google.maps.event.addListener(de,"mouseout",s)),a&&B(google.maps.event.addListener(de,"mouseover",a)),l&&$(google.maps.event.addListener(de,"mouseup",l)),u&&te(google.maps.event.addListener(de,"rightclick",u)),n&&re(google.maps.event.addListener(de,"click",n)),c&&Te(google.maps.event.addListener(de,"addfeature",c)),d&&Je(google.maps.event.addListener(de,"removefeature",d)),h&&ot(google.maps.event.addListener(de,"removeproperty",h)),p&&Ce(google.maps.event.addListener(de,"setgeometry",p)),m&&ct(google.maps.event.addListener(de,"setproperty",m)),E(de),g&&g(de)}return function(){y&&(S!==null&&google.maps.event.removeListener(S),k!==null&&google.maps.event.removeListener(k),M!==null&&google.maps.event.removeListener(M),O!==null&&google.maps.event.removeListener(O),D!==null&&google.maps.event.removeListener(D),x!==null&&google.maps.event.removeListener(x),Z!==null&&google.maps.event.removeListener(Z),Y!==null&&google.maps.event.removeListener(Y),fe!==null&&google.maps.event.removeListener(fe),De!==null&&google.maps.event.removeListener(De),$e!==null&&google.maps.event.removeListener($e),ae!==null&&google.maps.event.removeListener(ae),wt!==null&&google.maps.event.removeListener(wt),b&&b(y),y.setMap(null))}},[]),null}f.memo(Nte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={data:null},n.setDataCallback=function(){n.state.data!==null&&n.props.onLoad&&n.props.onLoad(n.state.data)},n}return e.prototype.componentDidMount=function(){if(this.context!==null){var n=new google.maps.Data(ue(ue({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ae({updaterMap:SP,eventMap:_P,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{data:n}},this.setDataCallback)}},e.prototype.componentDidUpdate=function(n){this.state.data!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:SP,eventMap:_P,prevProps:n,nextProps:this.props,instance:this.state.data}))},e.prototype.componentWillUnmount=function(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),Ne(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var CP={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},xP={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}};(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={kmlLayer:null},n.setKmlLayerCallback=function(){n.state.kmlLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.kmlLayer)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.KmlLayer(ue(ue({},this.props.options),{map:this.context}));this.registeredEvents=Ae({updaterMap:xP,eventMap:CP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{kmlLayer:n}},this.setKmlLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.kmlLayer!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:xP,eventMap:CP,prevProps:n,nextProps:this.props,instance:this.state.kmlLayer}))},e.prototype.componentWillUnmount=function(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),Ne(this.registeredEvents),this.state.kmlLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);function KN(t,e){return typeof e=="function"?e(t.offsetWidth,t.offsetHeight):{x:0,y:0}}function $te(t,e){return new e(t.lat,t.lng)}function Vte(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))}function Fte(t,e,n){return t instanceof e?t:n(t,e)}function jte(t,e,n){return t instanceof e?t:n(t,e)}function Ute(t,e,n){var r=t&&t.fromLatLngToDivPixel(n.getNorthEast()),i=t&&t.fromLatLngToDivPixel(n.getSouthWest
3409());return r&&i?{left:"".concat(i.x+e.x,"px"),top:"".concat(r.y+e.y,"px"),width:"".concat(r.x-i.x-e.x,"px"),height:"".concat(i.y-r.y-e.y,"px")}:{left:"-9999px",top:"-9999px"}}function Bte(t,e,n){var r=t&&t.fromLatLngToDivPixel(n);if(r){var i=r.x,o=r.y;return{left:"".concat(i+e.x,"px"),top:"".concat(o+e.y,"px")}}return{left:"-9999px",top:"-9999px"}}function GN(t,e,n,r){return n!==void 0?Ute(t,e,jte(n,google.maps.LatLngBounds,Vte)):Bte(t,e,Fte(r,google.maps.LatLng,$te))}function zte(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.height&&t.height===e.height}function Wte(t,e,n,r,i){var o=function(s){it(a,s);function a(l,u,c,d){var h=s.call(this)||this;return h.container=l,h.pane=u,h.position=c,h.bounds=d,h}return a.prototype.onAdd=function(){var l,u=(l=this.getPanes())===null||l===void 0?void 0:l[this.pane];u==null||u.appendChild(this.container)},a.prototype.draw=function(){for(var l=this.getProjection(),u=ue({},this.container?KN(this.container,i):{x:0,y:0}),c=GN(l,u,this.bounds,this.position),d=0,h=Object.entries(c);d<h.length;d++){var p=h[d],m=p[0],g=p[1];this.container.style[m]=g}},a.prototype.onRemove=function(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)},a}(google.maps.OverlayView);return new o(t,e,n,r)}function TP(t){if(!t)return"";var e=t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng);return e+""}function PP(t){if(!t)return"";var e=t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west));return e+""}function Hte(t){var e=t.position,n=t.bounds,r=t.mapPaneName,i=t.zIndex,o=t.onLoad,s=t.onUnmount,a=t.getPixelPositionOffset,l=t.children,u=f.useContext(Re),c=f.useMemo(function(){var h=document.createElement("div");return h.style.position="absolute",h},[]),d=f.useMemo(function(){return Wte(c,r,e,n,a)},[c,r,e,n]);return f.useEffect(function(){return o==null||o(d),d==null||d.setMap(u),function(){s==null||s(d),d==null||d.setMap(null)}},[u,d]),f.useEffect(function(){c.style.zIndex="".concat(i)},[i,c]),Ki.createPortal(l,c)}f.memo(Hte);(function(t){it(e,t);function e(n){var r=t.call(this,n)||this;r.state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var o=r.props.mapPaneName,s=r.overlayView.getPanes();Nt(!!o,"OverlayView requires props.mapPaneName but got %s",o),s?r.setState({paneEl:s[o]}):r.setState({paneEl:null})},r.onAdd=function(){var o,s;r.updatePane(),(s=(o=r.props).onLoad)===null||s===void 0||s.call(o,r.overlayView)},r.onPositionElement=function(){var o,s=r.overlayView.getProjection(),a=ue({x:0,y:0},r.containerRef.current?KN(r.containerRef.current,r.props.getPixelPositionOffset):{}),l=GN(s,a,r.props.bounds,r.props.position),u=(o=r.state.containerStyle,o.left),c=o.top,d=o.width,h=o.height;zte(l,{left:u,top:c,width:d,height:h})||r.setState({containerStyle:{top:l.top||0,left:l.left||0,width:l.width||0,height:l.height||0,position:"absolute"}})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){var o,s;r.setState(function(){return{paneEl:null}}),(s=(o=r.props).onUnmount)===null||s===void 0||s.call(o,r.overlayView)},r.containerRef=f.createRef();var i=new google.maps.OverlayView;return i.onAdd=r.onAdd,i.draw=r.draw,i.onRemove=r.onRemove,r.overlayView=i,r}return e.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},e.prototype.componentDidUpdate=function(n){var r=TP(n.position),i=TP(this.props.position),o=PP(n.bounds),s=PP(this.props.bounds);(r!==i||o!==s)&&this.overlayView.draw(),n.mapPaneName!==this.props.mapPaneName&&this.updatePane()},e.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},e.prototype.render=function(){var n=this.state.paneEl;return n?Ki.createPortal(T.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:f.Children.only(this.props.children)}),n):null},e.FLOAT_PANE="floatPane",e.MAP_PANE="mapPane",e.MARKER_LAYER="markerLayer",e.OVERLAY_LAYER="overlayLayer",e.OVERLAY_MOUSE_TARGET="overlayMouseTarget",e.contextType=Re,e})(f.PureComponent);function Kte(){}var IP={onDblClick:"dblclick",onClick:"click"},LP={opacity:function(t,e){t.setOpacity(e)}};function Gte(t){var e=t.url,n=t.bounds,r=t.options,i=t.visible,o=f.useContext(Re),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),a=f.useMemo(function(){var l=new google.maps.GroundOverlay(e,s,ue({},r));return l},[]);return f.useEffect(function(){a!==null&&a.setMap(o)},[o]),f.useEffect(function(){typeof e<"u"&&a!==null&&(a.set("url",e),a.setMap(o))},[a,e]),f.useEffect(function(){typeof i<"u"&&a!==null&&a.setOpacity(i?1:0)},[a,i]),f.useEffect(function(){var l=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));typeof n<"u"&&a!==null&&(a.set("bounds",l),a.setMap(o))},[a,n]),null}f.memo(Gte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={groundOverlay:null},n.setGroundOverlayCallback=function(){n.state.groundOverlay!==null&&n.props.onLoad&&n.props.onLoad(n.state.groundOverlay)},n}return e.prototype.componentDidMount=function(){Nt(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var n=new google.maps.GroundOverlay(this.props.url,this.props.bounds,ue(ue({},this.props.options),{map:this.context}));this.registeredEvents=Ae({updaterMap:LP,eventMap:IP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{groundOverlay:n}},this.setGroundOverlayCallback)},e.prototype.componentDidUpdate=function(n){this.state.groundOverlay!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:LP,eventMap:IP,prevProps:n,nextProps:this.props,instance:this.state.groundOverlay}))},e.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},e.prototype.render=function(){return null},e.defaultProps={onLoad:Kte},e.contextType=Re,e})(f.PureComponent);var RP={},kP={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}};function qte(t){var e=t.data,n=t.onLoad,r=t.onUnmount,i=t.options,o=f.useContext(Re),s=f.useState(null),a=s[0],l=s[1];return f.useEffect(function(){google.maps.visualization||Nt(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),f.useEffect(function(){Nt(!!e,"data property is required in HeatmapLayer %s",e)},[e]),f.useEffect(function(){a!==null&&a.setMap(o)},[o]),f.useEffect(function(){i&&a!==null&&a.setOptions(i)},[a,i]),f.useEffect(function(){var u=new google.maps.visualization.HeatmapLayer(ue(ue({},i||{}),{data:e,map:o}));return l(u),n&&n(u),function(){a!==null&&(r&&r(a),a.setMap(null))}},[]),null}f.memo(qte);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={heatmapLayer:null},n.setHeatmapLayerCallback=function(){n.state.heatmapLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.heatmapLayer)},n}return e.prototype.componentDidMount=function(){Nt(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),Nt(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var n=new google.maps.visualization.HeatmapLayer(ue(ue({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=Ae({updaterMap:kP,eventMap:RP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{heatmapLayer:n}},this.setHeatmapLayerCallback)},e.prototype.componentDidUpdate=function(n){Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:kP,eventMap:RP,prevProps:n,nextProps:this.props,instance:this.state.heatmapLayer})},e.prototype.componentWillUnmount=function(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),Ne(this.registeredEvents),this.state.heatmapLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);var AP={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"}
3409,MP={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}};(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={streetViewPanorama:null},n.setStreetViewPanoramaCallback=function(){n.state.streetViewPanorama!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewPanorama)},n}return e.prototype.componentDidMount=function(){var n,r,i=(r=(n=this.context)===null||n===void 0?void 0:n.getStreetView())!==null&&r!==void 0?r:null;this.registeredEvents=Ae({updaterMap:MP,eventMap:AP,prevProps:{},nextProps:this.props,instance:i}),this.setState(function(){return{streetViewPanorama:i}},this.setStreetViewPanoramaCallback)},e.prototype.componentDidUpdate=function(n){this.state.streetViewPanorama!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:MP,eventMap:AP,prevProps:n,nextProps:this.props,instance:this.state.streetViewPanorama}))},e.prototype.componentWillUnmount=function(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),Ne(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={streetViewService:null},n.setStreetViewServiceCallback=function(){n.state.streetViewService!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewService)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:n}},this.setStreetViewServiceCallback)},e.prototype.componentWillUnmount=function(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},e.prototype.render=function(){return null},e.contextType=Re,e})(f.PureComponent);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={directionsService:null},n.setDirectionsServiceCallback=function(){n.state.directionsService!==null&&n.props.onLoad&&n.props.onLoad(n.state.directionsService)},n}return e.prototype.componentDidMount=function(){Nt(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var n=new google.maps.DirectionsService;this.setState(function(){return{directionsService:n}},this.setDirectionsServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.directionsService!==null&&this.state.directionsService.route(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.directionsService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},e.prototype.render=function(){return null},e})(f.PureComponent);var DP={onDirectionsChanged:"directions_changed"},OP={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}};(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={directionsRenderer:null},n.setDirectionsRendererCallback=function(){n.state.directionsRenderer!==null&&(n.state.directionsRenderer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.directionsRenderer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=Ae({updaterMap:OP,eventMap:DP,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{directionsRenderer:n}},this.setDirectionsRendererCallback)},e.prototype.componentDidUpdate=function(n){this.state.directionsRenderer!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:OP,eventMap:DP,prevProps:n,nextProps:this.props,instance:this.state.directionsRenderer}))},e.prototype.componentWillUnmount=function(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),Ne(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},e.prototype.render=function(){return T.jsx(T.Fragment,{})},e.contextType=Re,e})(f.PureComponent);(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={distanceMatrixService:null},n.setDistanceMatrixServiceCallback=function(){n.state.distanceMatrixService!==null&&n.props.onLoad&&n.props.onLoad(n.state.distanceMatrixService)},n}return e.prototype.componentDidMount=function(){Nt(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var n=new google.maps.DistanceMatrixService;this.setState(function(){return{distanceMatrixService:n}},this.setDistanceMatrixServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.distanceMatrixService!==null&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.distanceMatrixService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},e.prototype.render=function(){return null},e})(f.PureComponent);var NP={onPlacesChanged:"places_changed"},$P={bounds:function(t,e){t.setBounds(e)}};(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=f.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){n.state.searchBox!==null&&n.props.onLoad&&n.props.onLoad(n.state.searchBox
3409)},n}return e.prototype.componentDidMount=function(){if(Nt(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),this.containerElement!==null&&this.containerElement.current!==null){var n=this.containerElement.current.querySelector("input");if(n!==null){var r=new google.maps.places.SearchBox(n,this.props.options);this.registeredEvents=Ae({updaterMap:$P,eventMap:NP,prevProps:{},nextProps:this.props,instance:r}),this.setState(function(){return{searchBox:r}},this.setSearchBoxCallback)}}},e.prototype.componentDidUpdate=function(n){this.state.searchBox!==null&&(Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:$P,eventMap:NP,prevProps:n,nextProps:this.props,instance:this.state.searchBox}))},e.prototype.componentWillUnmount=function(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),Ne(this.registeredEvents))},e.prototype.render=function(){return T.jsx("div",{ref:this.containerElement,children:f.Children.only(this.props.children)})},e.contextType=Re,e})(f.PureComponent);var VP={onPlaceChanged:"place_changed"},FP={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}};(function(t){it(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=f.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){n.state.autocomplete!==null&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}return e.prototype.componentDidMount=function(){var n;Nt(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var r=(n=this.containerElement.current)===null||n===void 0?void 0:n.querySelector("input");if(r){var i=new google.maps.places.Autocomplete(r,this.props.options);this.registeredEvents=Ae({updaterMap:FP,eventMap:VP,prevProps:{},nextProps:this.props,instance:i}),this.setState(function(){return{autocomplete:i}},this.setAutocompleteCallback)}},e.prototype.componentDidUpdate=function(n){Ne(this.registeredEvents),this.registeredEvents=Ae({updaterMap:FP,eventMap:VP,prevProps:n,nextProps:this.props,instance:this.state.autocomplete})},e.prototype.componentWillUnmount=function(){this.state.autocomplete!==null&&Ne(this.registeredEvents)},e.prototype.render=function(){return T.jsx("div",{ref:this.containerElement,className:this.props.className,children:f.Children.only(this.props.children)})},e.defaultProps={className:""},e.contextType=Re,e})(f.PureComponent);const Qte=()=>{const t=Cr(),e=ta(),[n,r]=f.useState(""),[i,o]=f.useState(!1),[s,a]=f.useState(!0),l=t.state.country;jN({googleMapsApiKey:"AIzaSyB1pOt295GbRVS1niLmhLUcnXLFUsHfWog"});const u=f.useMemo(()=>({lat:l.latlng[0],lng:l.latlng[1]}),[]);return f.useEffect(()=>{l.capital||(a(!1),o(!0)),AN.get(`https://api.openweathermap.org/data/2.5/weather?q=${l.capital}&units=metric&appid=80d9dee88d85fa9e886b0a0fe61892a2`).catch(c=>{o(!0)}).then(c=>{r(c.data),a(!1)})},[l.capital]),s?T.jsx(f.Fragment,{children:T.jsx(Qb,{animation:"border",color:"danger",role:"status",className:"center",variant:"info",children:T.jsx("span",{className:"visually-hidden",children:"Loading..."})})}):T.jsx(f.Fragment,{children:T.jsx("div",{className:"flex justify-center",children:T.jsxs(mA,{className:"w-[800px] h-[800px] mt-[120px]",children:[T.jsxs("div",{className:"grid grid-cols-2",children:[T.jsx(E0,{children:T.jsx(Qh,{alt:"capital picture",src:`https://source.unsplash.com/1600x900/?${l.capital}`,width:400})}),T.jsxs(E0,{children:[T.jsx("h2",{className:"font-semibold text-lg",children:l.name.common}),T.jsx("h3",{children:l.capital}),T.jsxs("small",{children:[l.area.toLocaleString(),"km²"]}),T.jsx("small",{children:l.continents}),i&&T.jsx("p",{children:"Sorry, we don't have weather inofrmation for this country."}),!i&&n&&T.jsxs("div",{className:"mt-[20px]",children:[T.jsxs("p",{children:["Right now is ",T.jsx("strong",{children:parseInt(n.main.temp)})," degrees in ",l.capital," and",n.weather[0].descritption]}),T.jsx(Qh,{src:`http://openweathermap.org/img/wn/${n.weather[0].icon}@2x.png`,alt:`${n.weather[0].descritption}`})]})]})]}),T.jsx("div",{className:"flex justify-center",children:T.jsx(Hee,{zoom:6,center:u,mapContainerClassName:"w-[500px] h-[400px] rounded my-[20px]",children:T.jsx(Jee,{position:u})})}),T.jsx(fA,{className:"flex justify-center",children:T.jsx(im,{variant:"solid",onPress:()=>e("/countries"),color:"warning",children:"Back to countries"})})]})})})},Yte=()=>{const[t,e]=f.useState(""),[n,r]=f.useState(""),[i,o]=f.useState(""),[s,a]=Wm($r),l=ta(),u=()=>{i||alert("Please enter name"),oX(i,t,n)};return f.useEffect(()=>{a||s&&l("/countries")},[s,a]),T.jsx(f.Fragment,{children:T.jsxs("div",{className:"border border-solid border-sky-500 md:w-[400px] md:ml-[40vw] md:mt-[20vh] bg-sky-4
340900 rounded-lg md:h-[25rem]",children:[T.jsx(Rs,{type:"text",isRequired:!0,value:i,onChange:c=>o(c.target.value),label:"Full Name",labelPlacement:"outside",className:"md:max-w-lg my-9 px-[10px]"}),T.jsx(Rs,{type:"email",isRequired:!0,value:t,onChange:c=>e(c.target.value),label:"email",labelPlacement:"outside",className:"md:max-w-lg my-9 px-[10px]"}),T.jsx(Rs,{type:"password",isRequired:!0,value:n,onChange:c=>r(c.target.value),label:"Password",labelPlacement:"outside",className:"md:max-w-lg my-9 px-[10px]"}),T.jsx(im,{onClick:u,color:"default",variant:"solid",className:" ml-[10em]",children:"Register"}),T.jsxs("div",{className:"ml-[5em] mt-[1em]",children:["Already have an account?",T.jsx(hn,{to:"/login",children:"Login"})]})]})})},Xte=()=>{const[t,e]=f.useState(""),[n,r]=f.useState(""),[i,o,s]=Wm($r),a=ta();return f.useEffect(()=>{o||i&&a("/countries")},[i,o]),T.jsx(f.Fragment,{children:T.jsxs("div",{className:"border border-solid border-sky-500 md:w-[400px] md:ml-[40vw] md:mt-[20vh] bg-sky-400 rounded-lg md:h-[20rem]",children:[T.jsx(Rs,{type:"email",label:"Email Address",labelPlacement:"outside",color:"success",size:"lg",value:t,onChange:l=>e(l.target.value),className:"md:max-w-lg my-9 px-[10px]"}),T.jsx(Rs,{type:"password",label:"Password",labelPlacement:"outside",size:"lg",color:"success",value:n,onChange:l=>r(l.target.value),className:"md:max-w-lg px-[10px]"}),T.jsx(im,{onClick:()=>iX(t,n),color:"warning",className:"mt-[40px] ml-[10em]",children:"Login"}),T.jsxs("div",{className:"ml-[5em] mt-[1em]",children:["Don't have an account?",T.jsx(hn,{href:"/register",className:"hover:text-orange-200",children:" Login"})]})]})})},Zte=({user:t,children:e})=>t?T.jsx(nE,{}):T.jsx(lM,{to:"/login"}),Jte=()=>{const t=E_();let e=Ts(a=>a.countries.countries);const n=Ts(a=>a.countries.isLoading),r=Ts(a=>a.favourites.isLoading),[i,o]=f.useState(""),s=Ts(a=>a.favourites.favourites);return s!==null?e=e.filter(a=>s.includes(a.name.common)):e=[],f.useEffect(()=>{t(DN()),t(sJ())},[t]),n||r?T.jsx("div",{className:"text-center m-5",children:T.jsx(Qb,{animation:"border",role:"status",className:"center",variant:"info",children:T.jsx("span",{className:"visually-hidden",children:"Loading..."})})}):T.jsxs(f.Fragment,{children:[T.jsx("div",{children:T.jsx("div",{className:"mt-5 d-flex justify-content-center",children:T.jsx("div",{className:"flex justify-center flex-wrap ",children:T.jsx(Rs,{type:"search",placeholder:"Search for countries","aria-label":"Search",onChange:a=>o(a.target.value),className:"max-w-lg"})})})}),T.jsx("div",{xs:2,md:3,lg:4,className:"sm:grid md:grid-cols-5 xs:grid-cols-2 gap-x-7 gap-y-1 flex flex-wrap",children:e.filter(a=>a.name.official.toLowerCase().includes(i.toLowerCase())).map(a=>T.jsx(dN,{country:a},a.name.common))}),T.jsx("div",{xs:2,md:3,lg:4,className:"flex justify-center mt-12",children:s&&T.jsx(im,{onClick:()=>{t(uJ())},children:"Clear Favourites"})})]})};function ene(){const[t]=Wm($r);return T.jsx(WF,{children:T.jsx(fM,{children:T.jsx(uM,{children:T.jsxs(Yr,{path:"/",element:T.jsx(hX,{}),children:[T.jsx(Yr,{path:"/",element:T.jsx(pX,{})}),T.jsx(Yr,{path:"/login",element:T.jsx(Xte,{})}),T.jsx(Yr,{path:"/register",element:T.jsx(Yte,{})}),T.jsxs(Yr,{element:T.jsx(Zte,{user:t}),children:[T.jsx(Yr,{path:"/favourites",element:T.jsx(Jte,{})}),T.jsx(Yr,{path:"/countries",element:T.jsx(Mee,{})}),T.jsx(Yr,{path:"/countries/:single",element:T.jsx(Qte,{})})]})]})})})})}const tne=YZ({reducer:{countries:Aee,favourites:fJ}});Jv.createRoot(document.getElementById("root")).render(T.jsx(nZ,{store:tne,children:T.jsx(ene,{})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.