PageSourceSearch

https://srttest.netlify.app/assets/index-B4vwyRQy.js

js srttest.netlify.app collected 2026-10-03 11:26:29 UTC 783,974 bytes, 2,349 lines download raw bytes

vendor: 5,666 bytes, lines 1-9
1function k_(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))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 bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qC={exports:{}},wc={},YC={exports:{}},Pe={};/**
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 ja=Symbol.for("react.element"),P_=Symbol.for("react.portal"),M_=Symbol.for("react.fragment"),D_=Symbol.for("react.strict_mode"),N_=Symbol.for("react.profiler"),T_=Symbol.for("react.provider"),R_=Symbol.for("react.context"),A_=Symbol.for("react.forward_ref"),O_=Symbol.for("react.suspense"),F_=Symbol.for("react.memo"),B_=Symbol.for("react.lazy"),Ev=Symbol.iterator;function j_(e){return e===null||typeof e!="object"?null:(e=Ev&&e[Ev]||e["@@iterator"],typeof e=="function"?e:null)}var KC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},QC=Object.assign,ZC={};function Xo(e,t,n){this.props=e,this.context=t,this.refs=ZC,this.updater=n||KC}Xo.prototype.isReactComponent={};Xo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function XC(){}XC.prototype=Xo.prototype;function Lh(e,t,n){this.props=e,this.context=t,this.refs=ZC,this.updater=n||KC}var Ih=Lh.prototype=new XC;Ih.constructor=Lh;QC(Ih,Xo.prototype);Ih.isPureReactComponent=!0;var Sv=Array.isArray,JC=Object.prototype.hasOwnProperty,kh={current:null},eb={key:!0,ref:!0,__self:!0,__source:!0};function tb(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)JC.call(t,r)&&!eb.hasOwnProperty(r)&&(i[r]=t[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(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ja,type:e,key:o,ref:s,props:i,_owner:kh.current}}function z_(e,t){return{$$typeof:ja,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ph(e){return typeof e=="object"&&e!==null&&e.$$typeof===ja}function U_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _v=/\/+/g;function Sd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?U_(""+e.key):t.toString(36)}function Ql(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ja:case P_:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Sd(s,0):r,Sv(i)?(n="",e!=null&&(n=e.replace(_v,"$&/")+"/"),Ql(i,t,n,"",function(u){return u})):i!=null&&(Ph(i)&&(i=z_(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(_v,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Sv(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Sd(o,a);s+=Ql(o,t,n,l,i)}else if(l=j_(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Sd(o,a++),s+=Ql(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function El(e,t,n){if(e==null)return e;var r=[],i=0;return Ql(e,r,"","",function(o){return t.call(n,o,i++)}),r}function $_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Yt={current:null},Zl={transition:null},W_={ReactCurrentDispatcher:Yt,ReactCurrentBatchConfig:Zl,ReactCurrentOwner:kh};function nb(){throw Error("act(...) is not supported in production builds of React.")}Pe.Children={map:El,forEach:function(e,t,n){El(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return El(e,function(){t++}),t},toArray:function(e){return El(e,function(t){return t})||[]},only:function(e){if(!Ph(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Pe.Component=Xo;Pe.Fragment=M_;Pe.Profiler=N_;Pe.PureComponent=Lh;Pe.StrictMode=D_;Pe.Suspense=O_;
vendor: 5,064 bytes, lines 9-25
9Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W_;Pe.act=nb;Pe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=QC({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=kh.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)JC.call(t,l)&&!eb.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[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:ja,type:e.type,key:i,ref:o,props:r,_owner:s}};Pe.createContext=function(e){return e={$$typeof:R_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:T_,_context:e},e.Consumer=e};Pe.createElement=tb;Pe.createFactory=function(e){var t=tb.bind(null,e);return t.type=e,t};Pe.createRef=function(){return{current:null}};Pe.forwardRef=function(e){return{$$typeof:A_,render:e}};Pe.isValidElement=Ph;Pe.lazy=function(e){return{$$typeof:B_,_payload:{_status:-1,_result:e},_init:$_}};Pe.memo=function(e,t){return{$$typeof:F_,type:e,compare:t===void 0?null:t}};Pe.startTransition=function(e){var t=Zl.transition;Zl.transition={};try{e()}finally{Zl.transition=t}};Pe.unstable_act=nb;Pe.useCallback=function(e,t){return Yt.current.useCallback(e,t)};Pe.useContext=function(e){return Yt.current.useContext(e)};Pe.useDebugValue=function(){};Pe.useDeferredValue=function(e){return Yt.current.useDeferredValue(e)};Pe.useEffect=function(e,t){return Yt.current.useEffect(e,t)};Pe.useId=function(){return Yt.current.useId()};Pe.useImperativeHandle=function(e,t,n){return Yt.current.useImperativeHandle(e,t,n)};Pe.useInsertionEffect=function(e,t){return Yt.current.useInsertionEffect(e,t)};Pe.useLayoutEffect=function(e,t){return Yt.current.useLayoutEffect(e,t)};Pe.useMemo=function(e,t){return Yt.current.useMemo(e,t)};Pe.useReducer=function(e,t,n){return Yt.current.useReducer(e,t,n)};Pe.useRef=function(e){return Yt.current.useRef(e)};Pe.useState=function(e){return Yt.current.useState(e)};Pe.useSyncExternalStore=function(e,t,n){return Yt.current.useSyncExternalStore(e,t,n)};Pe.useTransition=function(){return Yt.current.useTransition()};Pe.version="18.3.1";YC.exports=Pe;var p=YC.exports;const de=bc(p),H_=k_({__proto__:null,default:de},[p]);/**
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 V_=p,G_=Symbol.for("react.element"),q_=Symbol.for("react.fragment"),Y_=Object.prototype.hasOwnProperty,K_=V_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Q_={key:!0,ref:!0,__self:!0,__source:!0};function rb(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Y_.call(t,r)&&!Q_.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:G_,type:e,key:o,ref:s,props:i,_owner:K_.current}}wc.Fragment=q_;wc.jsx=rb;wc.jsxs=rb;qC.exports=wc;var m=qC.exports,Df={},ib={exports:{}},hn={},ob={exports:{}},sb={};/**
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(e){function t(D,B){var O=D.length;D.push(B);e:for(;0<O;){var U=O-1>>>1,X=D[U];if(0<i(X,B))D[U]=B,D[O]=X,O=U;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],O=D.pop();if(O!==B){D[0]=O;e:for(var U=0,X=D.length,fe=X>>>1;U<fe;){var ue=2*(U+1)-1,ge=D[ue],N=ue+1,pe=D[N];if(0>i(ge,O))N<X&&0>i(pe,ge)?(D[U]=pe,D[N]=O,U=N):(D[U]=ge,D[ue]=O,U=ue);else if(N<X&&0>i(pe,O))D[U]=pe,D[N]=O,U=N;else break e}}return B}function i(D,B){var O=D.sortIndex-B.sortIndex;return O!==0?O:D.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(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,t(l,B);else break;B=n(u)}}function x(D){if(v=!1,b(D),!g)if(n(l)!==null)g=!0,Q(S);else{var B=n(u);B!==null&&F(x,B.startTime-D)}}function S(D,B){g=!1,v&&(v=!1,C(_),_=-1),h=!0;var O=f;try{for(b(B),d=n(l);d!==null&&(!(d.expirationTime>B)||D&&!R());){var U=d.callback;
vendor: 9,158 bytes, lines 25-34
25if(typeof U=="function"){d.callback=null,f=d.priorityLevel;var X=U(d.expirationTime<=B);B=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),b(B)}else r(l);d=n(l)}if(d!==null)var fe=!0;else{var ue=n(u);ue!==null&&F(x,ue.startTime-B),fe=!1}return fe}finally{d=null,f=O,h=!1}}var E=!1,L=null,_=-1,P=5,I=-1;function R(){return!(e.unstable_now()-I<P)}function q(){if(L!==null){var D=e.unstable_now();I=D;var B=!0;try{B=L(!0,D)}finally{B?V():(E=!1,L=null)}}else E=!1}var V;if(typeof y=="function")V=function(){y(q)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,Z=z.port2;z.port1.onmessage=q,V=function(){Z.postMessage(null)}}else V=function(){w(q,0)};function Q(D){L=D,E||(E=!0,V())}function F(D,B){_=w(function(){D(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,Q(S))},e.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"):P=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(D){switch(f){case 1:case 2:case 3:var B=3;break;default:B=f}var O=f;f=B;try{return D()}finally{f=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,B){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var O=f;f=D;try{return B()}finally{f=O}},e.unstable_scheduleCallback=function(D,B,O){var U=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?U+O:U):O=U,D){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=O+X,D={id:c++,callback:B,priorityLevel:D,startTime:O,expirationTime:X,sortIndex:-1},O>U?(D.sortIndex=O,t(u,D),n(l)===null&&D===n(u)&&(v?(C(_),_=-1):v=!0,F(x,O-U))):(D.sortIndex=X,t(l,D),g||h||(g=!0,Q(S))),D},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(D){var B=f;return function(){var O=f;f=B;try{return D.apply(this,arguments)}finally{f=O}}}})(sb);ob.exports=sb;var Z_=ob.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 X_=p,pn=Z_;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ab=new Set,ea={};function Yi(e,t){Do(e,t),Do(e+"Capture",t)}function Do(e,t){for(ea[e]=t,e=0;e<t.length;e++)ab.add(t[e])}var ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nf=Object.prototype.hasOwnProperty,J_=/^[: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]*$/,Lv={},Iv={};function eL(e){return Nf.call(Iv,e)?!0:Nf.call(Lv,e)?!1:J_.test(e)?Iv[e]=!0:(Lv[e]=!0,!1)}function tL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nL(e,t,n,r){if(t===null||typeof t>"u"||tL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Kt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Kt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Rt[e]=new Kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mh=/[\-:]([a-z])/g;function Dh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Mh,Dh);Rt[t]=new Kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Mh,Dh);Rt[t]=new Kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Mh,Dh);Rt[t]=new Kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nh(e,t,n,r){var i=Rt.hasOwnProperty(t)?Rt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(nL(t,n,i,r)&&(n=null),r||i===null?eL(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var vr=X_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sl=Symbol.for("react.element"),io=Symbol.for("react.portal"),oo=Symbol.for("react.fragment"),Th=Symbol.for("react.strict_mode"),Tf=Symbol.for("react.profiler"),lb=Symbol.for("react.provider"),ub=Symbol.for("react.context"),Rh=Symbol.for("react.forward_ref"),Rf=Symbol.for("react.suspense"),Af=Symbol.for("react.suspense_list"),Ah=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),cb=Symbol.for("react.offscreen"),kv=Symbol.iterator;function ds(e){return e===null||typeof e!="object"?null:(e=kv&&e[kv]||e["@@iterator"],typeof e=="function"?e:null)}var lt=Object.assign,_d;function Ps(e){if(_d===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_d=t&&t[1]||""}return`
34`+_d+e}var Ld=!1;function Id(e,t){if(!e||Ld)return"";Ld=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 16,752 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 e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ld=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ps(e):""}function rL(e){switch(e.tag){case 5:return Ps(e.type);case 16:return Ps("Lazy");case 13:return Ps("Suspense");case 19:return Ps("SuspenseList");case 0:case 2:case 15:return e=Id(e.type,!1),e;case 11:return e=Id(e.type.render,!1),e;case 1:return e=Id(e.type,!0),e;default:return""}}function Of(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oo:return"Fragment";case io:return"Portal";case Tf:return"Profiler";case Th:return"StrictMode";case Rf:return"Suspense";case Af:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ub:return(e.displayName||"Context")+".Consumer";case lb:return(e._context.displayName||"Context")+".Provider";case Rh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ah:return t=e.displayName||null,t!==null?t:Of(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return Of(e(t))}catch{}}return null}function iL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Of(t);case 8:return t===Th?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function db(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oL(e){var t=db(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _l(e){e._valueTracker||(e._valueTracker=oL(e))}function fb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=db(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ff(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pb(e,t){t=t.checked,t!=null&&Nh(e,"checked",t,!1)}function Bf(e,t){pb(e,t);var n=Xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,Xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ms=Array.isArray;function wo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function zf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return lt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Ms(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xr(n)}}function hb(e,t){var n=Xr(t.value),r=Xr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Nv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gb(e){switch(e){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 Uf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ll,mb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ll=Ll||document.createElement("div"),Ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ta(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var As={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},sL=["Webkit","ms","Moz","O"];Object.keys(As).forEach(function(e){sL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),As[t]=As[e]})});function vb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||As.hasOwnProperty(e)&&As[e]?(""+t).trim():t+"px"}function yb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var aL=lt({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 $f(e,t){if(t){if(aL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Wf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hf=null;function Oh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vf=null,xo=null,Eo=null;function Tv(e){if(e=$a(e)){if(typeof Vf!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Lc(t),Vf(e.stateNode,e.type,t))}}function Cb(e){xo?Eo?Eo.push(e):Eo=[e]:xo=e}function bb(){if(xo){var e=xo,t=Eo;if(Eo=xo=null,Tv(e),t)for(e=0;e<t.length;e++)Tv(t[e])}}function wb(e,t){return e(t)}function xb(){}var kd=!1;function Eb(e,t,n){if(kd)return e(t,n);kd=!0;try{return wb(e,t,n)}finally{kd=!1,(xo!==null||Eo!==null)&&(xb(),bb())}}function na(e,t){var n=e.stateNode;if(n===null)return null;var r=Lc(n);if(r===null)return null;n=r[t];e:switch(t){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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Gf=!1;if(ur)try{var fs={};Object.defineProperty(fs,"passive",{get:function(){Gf=!0}}),window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{Gf=!1}function lL(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Os=!1,pu=null,hu=!1,qf=null,uL={onError:function(e){Os=!0,pu=e}};function cL(e,t,n,r,i,o,s,a,l){Os=!1,pu=null,lL.apply(uL,arguments)}function dL(e,t,n,r,i,o,s,a,l){if(cL.apply(this,arguments),Os){if(Os){var u=pu;Os=!1,pu=null}else throw Error(j(198));hu||(hu=!0,qf=u)}}function Ki(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Sb(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Rv(e){if(Ki(e)!==e)throw Error(j(188))}function fL(e){var t=e.alternate;if(!t){if(t=Ki(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){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 Rv(i),e;if(o===r)return Rv(i),t;o=o.sibling}throw Error(j(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(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function _b(e){return e=fL(e),e!==null?Lb(e):null}function Lb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Lb(e);if(t!==null)return t;e=e.sibling}return null}var Ib=pn.unstable_scheduleCallback,Av=pn.unstable_cancelCallback,pL=pn.unstable_shouldYield,hL=pn.unstable_requestPaint,pt=pn.unstable_now,gL=pn.unstable_getCurrentPriorityLevel,Fh=pn.unstable_ImmediatePriority,kb=pn.unstable_UserBlockingPriority,gu=pn.unstable_NormalPriority,mL=pn.unstable_LowPriority,Pb=pn.unstable_IdlePriority,xc=null,Qn=null;function vL(e){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(xc,e,void 0,(e.current.flags&128)===128)}catch{}}var jn=Math.clz32?Math.clz32:bL,yL=Math.log,CL=Math.LN2;function bL(e){return e>>>=0,e===0?32:31-(yL(e)/CL|0)|0}var Il=64,kl=4194304;function Ds(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Ds(a):(o&=s,o!==0&&(r=Ds(o)))}else s=n&~i,s!==0?r=Ds(s):o!==0&&(r=Ds(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jn(t),i=1<<n,r|=e[n],t&=~i;return r}function wL(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 xL(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-jn(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=wL(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Yf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mb(){var e=Il;return Il<<=1,!(Il&4194240)&&(Il=64),e}function Pd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function za(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jn(t),e[t]=n}function EL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-jn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Bh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var $e=0;function Db(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nb,jh,Tb,Rb,Ab,Kf=!1,Pl=[],Or=null,Fr=null,Br=null,ra=new Map,ia=new Map,Pr=[],SL="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 Ov(e,t){switch(e){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Fr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":ra.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ia.delete(t.pointerId)}}function ps(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=$a(t),t!==null&&jh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _L(e,t,n,r,i){switch(t){case"focusin":return Or=ps(Or,e,t,n,r,i),!0;case"dragenter":return Fr=ps(Fr,e,t,n,r,i),!0;case"mouseover":return Br=ps(Br,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ra.set(o,ps(ra.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ia.set(o,ps(ia.get(o)||null,e,t,n,r,i)),!0}return!1}function Ob(e){var t=Ei(e.target);if(t!==null){var n=Ki(t);if(n!==null){if(t=n.tag,t===13){if(t=Sb(n),t!==null){e.blockedOn=t,Ab(e.priority,function(){Tb(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Hf=r,n.target.dispatchEvent(r),Hf=null}else return t=$a(n),t!==null&&jh(t),e.blockedOn=n,!1;t.shift()}return!0}function Fv(e,t,n){Xl(e)&&n.delete(t)}function LL(){Kf=!1,Or!==null&&Xl(Or)&&(Or=null),Fr!==null&&Xl(Fr)&&(Fr=null),Br!==null&&Xl(Br)&&(Br=null),ra.forEach(Fv),ia.forEac
vendor: 11,826 bytes, line 37
37h(Fv)}function hs(e,t){e.blockedOn===t&&(e.blockedOn=null,Kf||(Kf=!0,pn.unstable_scheduleCallback(pn.unstable_NormalPriority,LL)))}function oa(e){function t(i){return hs(i,e)}if(0<Pl.length){hs(Pl[0],e);for(var n=1;n<Pl.length;n++){var r=Pl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Or!==null&&hs(Or,e),Fr!==null&&hs(Fr,e),Br!==null&&hs(Br,e),ra.forEach(t),ia.forEach(t),n=0;n<Pr.length;n++)r=Pr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Pr.length&&(n=Pr[0],n.blockedOn===null);)Ob(n),n.blockedOn===null&&Pr.shift()}var So=vr.ReactCurrentBatchConfig,vu=!0;function IL(e,t,n,r){var i=$e,o=So.transition;So.transition=null;try{$e=1,zh(e,t,n,r)}finally{$e=i,So.transition=o}}function kL(e,t,n,r){var i=$e,o=So.transition;So.transition=null;try{$e=4,zh(e,t,n,r)}finally{$e=i,So.transition=o}}function zh(e,t,n,r){if(vu){var i=Qf(e,t,n,r);if(i===null)jd(e,t,r,yu,n),Ov(e,r);else if(_L(i,e,t,n,r))r.stopPropagation();else if(Ov(e,r),t&4&&-1<SL.indexOf(e)){for(;i!==null;){var o=$a(i);if(o!==null&&Nb(o),o=Qf(e,t,n,r),o===null&&jd(e,t,r,yu,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}var yu=null;function Qf(e,t,n,r){if(yu=null,e=Oh(r),e=Ei(e),e!==null)if(t=Ki(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Sb(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yu=e,null}function Fb(e){switch(e){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(gL()){case Fh:return 1;case kb:return 4;case gu:case mL:return 16;case Pb:return 536870912;default:return 16}default:return 16}}var Dr=null,Uh=null,Jl=null;function Bb(){if(Jl)return Jl;var e,t=Uh,n=t.length,r,i="value"in Dr?Dr.value:Dr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Jl=i.slice(e,1<r?1-r:void 0)}function eu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ml(){return!0}function Bv(){return!1}function gn(e){function t(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 e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ml:Bv,this.isPropagationStopped=Bv,this}return lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ml)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ml)},persist:function(){},isPersistent:Ml}),t}var Jo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$h=gn(Jo),Ua=lt({},Jo,{view:0,detail:0}),PL=gn(Ua),Md,Dd,gs,Ec=lt({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gs&&(gs&&e.type==="mousemove"?(Md=e.screenX-gs.screenX,Dd=e.screenY-gs.screenY):Dd=Md=0,gs=e),Md)},movementY:function(e){return"movementY"in e?e.movementY:Dd}}),jv=gn(Ec),ML=lt({},Ec,{dataTransfer:0}),DL=gn(ML),NL=lt({},Ua,{relatedTarget:0}),Nd=gn(NL),TL=lt({},Jo,{animationName:0,elapsedTime:0,pseudoElement:0}),RL=gn(TL),AL=lt({},Jo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OL=gn(AL),FL=lt({},Jo,{data:0}),zv=gn(FL),BL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jL={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"},zL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UL(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zL[e])?!!t[e]:!1}function Wh(){return UL}var $L=lt({},Ua,{key:function(e){if(e.key){var t=BL[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jL[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wh,charCode:function(e){return e.type==="keypress"?eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WL=gn($L),HL=lt({},Ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uv=gn(HL),VL=lt({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wh}),GL=gn(VL),qL=lt({},Jo,{propertyName:0,elapsedTime:0,pseudoElement:0}),YL=gn(qL),KL=lt({},Ec,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),QL=gn(KL),ZL=[9,13,27,32],Hh=ur&&"CompositionEvent"in window,Fs=null;ur&&"documentMode"in document&&(Fs=document.documentMode);var XL=ur&&"TextEvent"in window&&!Fs,jb=ur&&(!Hh||Fs&&8<Fs&&11>=Fs),$v=" ",Wv=!1;function zb(e,t){switch(e){case"keyup":return ZL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ub(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var so=!1;function JL(e,t){switch(e){case"compositionend":return Ub(t);case"keypress":return t.which!==32?null:(Wv=!0,$v);case"textInput":return e=t.data,e===$v&&Wv?null:e;default:return null}}function eI(e,t){if(so)return e==="compositionend"||!Hh&&zb(e,t)?(e=Bb(),Jl=Uh=Dr=null,so=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jb&&t.locale!=="ko"?null:t.data;default:return null}}var tI={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 Hv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tI[e.type]:t==="textarea"}function $b(e,t,n,r){Cb(r),t=Cu(t,"onChange"),0<t.length&&(n=new $h("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bs=null,sa=null;function nI(e){Jb(e,0)}function Sc(e){var t=uo(e);if(fb(t))return e}function rI(e,t){if(e==="change")return t}var Wb=!1;if(ur){var Td;if(ur){var Rd="oninput"in document;if(!Rd){var Vv=document.createElement("div");Vv.setAttribute("oninput","return;"),Rd=typeof Vv.oninput=="function"}Td=Rd}else Td=!1;Wb=Td&&(!document.documentMode||9<document.documentMode)}function Gv(){Bs&&(Bs.detachEvent("onpropertychange",Hb),sa=Bs=null)}function Hb(e){if(e.propertyName==="value"&&Sc(sa)){var t=[];$b(t,sa,e,Oh(e)),Eb(nI,t)}}function iI(e,t,n){e==="focusin"?(Gv(),Bs=t,sa=n,Bs.attachEvent("onpropertychange",Hb)):e==="focusout"&&Gv()}function oI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sc(sa)}function sI(e,t){if(e==="click")return Sc(t)}function aI(e,t){if(e==="input"||e==="change")return Sc(t)}function lI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:lI;function aa(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Nf.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function qv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yv(e,t){var n=qv(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qv(n)}}function Vb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gb(){for(var e=window,t=fu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fu(e.document)}return t}function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uI(e){var t=Gb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vb(n.ownerDocument.documentElement,n)){if(r!==null&&Vh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Yv(n,o);var s=Yv(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var cI=ur&&"documentMode"in document&&11>=document.documentMode,ao=null,Zf=null,js=null,Xf=!1;function Kv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xf||ao==null||ao!==fu(r)||(r=ao,"selectionStart"in r&&Vh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),js&&aa(js,r)||(js=r,r=Cu(Zf,"onSelect"),0<r.length&&(t=new $h("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ao)))}function Dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lo={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionend:Dl("Transition","TransitionEnd")},Ad={},qb={};ur&&(qb=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function _c(e){if(Ad[e])return Ad[e];if(!lo[e])return e;var t=lo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qb)return Ad[e]=t[n];return e}var Yb=_c("animationend"),Kb=_c("animationiteration"),Qb=_c("animationstart"),Zb=_c("transitionend"),Xb=new Map,Qv="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 li(e,t){Xb.set(e,t),Yi(t,[e])}for(var Od=0;Od<Qv.length;Od++){var Fd=Qv[Od],dI=Fd.toLowerCase(),fI=Fd[0].toUpperCase()+Fd.slice(1);li(dI,"on"+fI)}li(Yb,"onAnimationEnd");li(Kb,"onAnimationIteration");li(Qb,"onAnimationStart");li("dblclick","onDoubleClick");li("focusin","onFocus");li("focusout","onBlur");li(Zb,"onTransitionEnd");Do("onMouseEnter",["mouseout","mouseover"]);Do("onMouseLeave",["mouseout","mouseover"]);Do("onPointerEnter",["pointerout","pointerover"]);Do("onPointerLeave",["pointerout","pointerover"]);Yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),pI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ns));function Zv(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dL(r,t,void 0,e),e.currentTarget=null}function Jb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)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;Zv(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;Zv(i,a,u),o=l}}}if(hu)throw e=qf,hu=!1,qf=null,e}function Je(e,t){var n=t[rp];n===void 0&&(n=t[rp]=new Set);var r=e+"__bubble";n.has(r)||(e2(t,e,2,!1),n.add(r))}function Bd(e,t,n){var r=0;t&&(r|=4),e2(n,e,r,t)}var Nl="_reactListening"+Math.random().toString(36).slice(2);function la(e){if(!e[Nl]){e[Nl]=!0,ab.forEach(function(n){n!=="selectionchange"&&(pI.has(n)||Bd(n,!1,e),Bd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nl]||(t[Nl]=!0,Bd("selectionchange",!1,t))}}function e2(e,t,n,r){switch(Fb(t)){case 1:var i=IL;break;case 4:i=kL;break;default:i=zh}n=i.bind(null,t,n,e),i=void 0,!Gf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}
vendor: 4,242 bytes, line 37
37function jd(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&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=Ei(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Eb(function(){var u=o,c=Oh(n),d=[];e:{var f=Xb.get(e);if(f!==void 0){var h=$h,g=e;switch(e){case"keypress":if(eu(n)===0)break e;case"keydown":case"keyup":h=WL;break;case"focusin":g="focus",h=Nd;break;case"focusout":g="blur",h=Nd;break;case"beforeblur":case"afterblur":h=Nd;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":h=jv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=DL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=GL;break;case Yb:case Kb:case Qb:h=RL;break;case Zb:h=YL;break;case"scroll":h=PL;break;case"wheel":h=QL;break;case"copy":case"cut":case"paste":h=OL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Uv}var v=(t&4)!==0,w=!v&&e==="scroll",C=v?f!==null?f+"Capture":null:f;v=[];for(var y=u,b;y!==null;){b=y;var x=b.stateNode;if(b.tag===5&&x!==null&&(b=x,C!==null&&(x=na(y,C),x!=null&&v.push(ua(y,x,b)))),w)break;y=y.return}0<v.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Hf&&(g=n.relatedTarget||n.fromElement)&&(Ei(g)||g[cr]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?Ei(g):null,g!==null&&(w=Ki(g),g!==w||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=jv,x="onMouseLeave",C="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Uv,x="onPointerLeave",C="onPointerEnter",y="pointer"),w=h==null?f:uo(h),b=g==null?f:uo(g),f=new v(x,y+"leave",h,n,c),f.target=w,f.relatedTarget=b,x=null,Ei(c)===u&&(v=new v(C,y+"enter",g,n,c),v.target=b,v.relatedTarget=w,x=v),w=x,h&&g)t:{for(v=h,C=g,y=0,b=v;b;b=to(b))y++;for(b=0,x=C;x;x=to(x))b++;for(;0<y-b;)v=to(v),y--;for(;0<b-y;)C=to(C),b--;for(;y--;){if(v===C||C!==null&&v===C.alternate)break t;v=to(v),C=to(C)}v=null}else v=null;h!==null&&Xv(d,f,h,v,!1),g!==null&&w!==null&&Xv(d,w,g,v,!0)}}e:{if(f=u?uo(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=rI;else if(Hv(f))if(Wb)S=aI;else{S=oI;var E=iI}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=sI);if(S&&(S=S(e,u))){$b(d,S,n,c);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&jf(f,"number",f.value)}switch(E=u?uo(u):window,e){case"focusin":(Hv(E)||E.contentEditable==="true")&&(ao=E,Zf=u,js=null);break;case"focusout":js=Zf=ao=null;break;case"mousedown":Xf=!0;break;case"contextmenu":case"mouseup":case"dragend":Xf=!1,Kv(d,n,c);break;case"selectionchange":if(cI)break;case"keydown":case"keyup":Kv(d,n,c)}var L;if(Hh)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else so?zb(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(jb&&n.locale!=="ko"&&(so||_!=="onCompositionStart"?_==="onCompositionEnd"&&so&&(L=Bb()):(Dr=c,Uh="value"in Dr?Dr.value:Dr.textContent,so=!0)),E=Cu(u,_),0<E.length&&(_=new zv(_,e,null,n,c),d.push({event:_,listeners:E}),L?_.data=L:(L=Ub(n),L!==null&&(_.data=L)))),(L=XL?JL(e,n):eI(e,n))&&(u=Cu(u,"onBeforeInput"),0<u.length&&(c=new zv("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=L))}Jb(d,t)})}function ua(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Cu(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;
vendor: 4,806 bytes, lines 37-38
37i.tag===5&&o!==null&&(i=o,o=na(e,n),o!=null&&r.unshift(ua(e,o,i)),o=na(e,t),o!=null&&r.push(ua(e,o,i))),e=e.return}return r}function to(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xv(e,t,n,r,i){for(var o=t._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=na(n,o),l!=null&&s.unshift(ua(n,l,a))):i||(l=na(n,o),l!=null&&s.push(ua(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var hI=/\r\n?/g,gI=/\u0000|\uFFFD/g;function Jv(e){return(typeof e=="string"?e:""+e).replace(hI,`
38`).replace(gI,"")}function Tl(e,t,n){if(t=Jv(t),Jv(e)!==t&&n)throw Error(j(425))}function bu(){}var Jf=null,ep=null;function tp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var np=typeof setTimeout=="function"?setTimeout:void 0,mI=typeof clearTimeout=="function"?clearTimeout:void 0,ey=typeof Promise=="function"?Promise:void 0,vI=typeof queueMicrotask=="function"?queueMicrotask:typeof ey<"u"?function(e){return ey.resolve(null).then(e).catch(yI)}:np;function yI(e){setTimeout(function(){throw e})}function zd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),oa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);oa(t)}function jr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ty(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var es=Math.random().toString(36).slice(2),qn="__reactFiber$"+es,ca="__reactProps$"+es,cr="__reactContainer$"+es,rp="__reactEvents$"+es,CI="__reactListeners$"+es,bI="__reactHandles$"+es;function Ei(e){var t=e[qn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cr]||n[qn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ty(e);e!==null;){if(n=e[qn])return n;e=ty(e)}return t}e=n,n=e.parentNode}return null}function $a(e){return e=e[qn]||e[cr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function uo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Lc(e){return e[ca]||null}var ip=[],co=-1;function ui(e){return{current:e}}function et(e){0>co||(e.current=ip[co],ip[co]=null,co--)}function Xe(e,t){co++,ip[co]=e.current,e.current=t}var Jr={},jt=ui(Jr),en=ui(!1),Ri=Jr;function No(e,t){var n=e.type.contextTypes;if(!n)return Jr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tn(e){return e=e.childContextTypes,e!=null}function wu(){et(en),et(jt)}function ny(e,t,n){if(jt.current!==Jr)throw Error(j(168));Xe(jt,t),Xe(en,n)}function t2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(j(108,iL(e)||"Unknown",i));return lt({},n,r)}function xu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jr,Ri=jt.current,Xe(jt,e),Xe(en,en.current),!0}function ry(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=t2(e,t,Ri),r.__reactInternalMemoizedMergedChildContext=e,et(en),et(jt),Xe(jt,e)):et(en),Xe(en,n)}var rr=null,Ic=!1,Ud=!1;function n2(e){rr===null?rr=[e]:rr.push(e)}function wI(e){Ic=!0,n2(e)}function ci(){if(!Ud&&rr!==null){Ud=!0;var e=0,t=$e;try{var n=rr;for($e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rr=null,Ic=!1}catch(i){throw rr!==null&&(rr=rr.slice(e+1)),Ib(Fh,ci),i}finally{$e=t,Ud=!1}}return null}var fo=[],po=0,Eu=null,Su=0,wn=[],xn=0,Ai=null,ir=1,or="";function mi(e,t){fo[po++]=Su,fo[po++]=Eu,Eu=e,Su=t}function r2(e,t,n){wn[xn++]=ir,wn[xn++]=or,wn[xn++]=Ai,Ai=e;var r=ir;e=or;var i=32-jn(r)-1;r&=~(1<<i),n+=1;var o=32-jn(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ir=1<<32-jn(t)+i|n<<i|r,or=o+e}else ir=1<<o|n<<i|r,or=e}function Gh(e){e.return!==null&&(mi(e,1),r2(e,1,0))}function qh(e){for(;e===Eu;)Eu=fo[--po],fo[po]=null,Su=fo[--po],fo[po]=null;for(;e===Ai;)Ai=wn[--xn],wn[xn]=null,or=wn[--xn],wn[xn]=null,ir=wn[--xn],wn[xn]=null}var ln=null,sn=null,it=!1,An=null;function i2(e,t){var n=En(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function iy(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 15,570 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ln=e,sn=jr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ln=e,sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ai!==null?{id:ir,overflow:or}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=En(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ln=e,sn=null,!0):!1;default:return!1}}function op(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sp(e){if(it){var t=sn;if(t){var n=t;if(!iy(e,t)){if(op(e))throw Error(j(418));t=jr(n.nextSibling);var r=ln;t&&iy(e,t)?i2(r,n):(e.flags=e.flags&-4097|2,it=!1,ln=e)}}else{if(op(e))throw Error(j(418));e.flags=e.flags&-4097|2,it=!1,ln=e}}}function oy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ln=e}function Rl(e){if(e!==ln)return!1;if(!it)return oy(e),it=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tp(e.type,e.memoizedProps)),t&&(t=sn)){if(op(e))throw o2(),Error(j(418));for(;t;)i2(e,t),t=jr(t.nextSibling)}if(oy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){sn=jr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}sn=null}}else sn=ln?jr(e.stateNode.nextSibling):null;return!0}function o2(){for(var e=sn;e;)e=jr(e.nextSibling)}function To(){sn=ln=null,it=!1}function Yh(e){An===null?An=[e]:An.push(e)}var xI=vr.ReactCurrentBatchConfig;function ms(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Al(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sy(e){var t=e._init;return t(e._payload)}function s2(e){function t(C,y){if(e){var b=C.deletions;b===null?(C.deletions=[y],C.flags|=16):b.push(y)}}function n(C,y){if(!e)return null;for(;y!==null;)t(C,y),y=y.sibling;return null}function r(C,y){for(C=new Map;y!==null;)y.key!==null?C.set(y.key,y):C.set(y.index,y),y=y.sibling;return C}function i(C,y){return C=Wr(C,y),C.index=0,C.sibling=null,C}function o(C,y,b){return C.index=b,e?(b=C.alternate,b!==null?(b=b.index,b<y?(C.flags|=2,y):b):(C.flags|=2,y)):(C.flags|=1048576,y)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,y,b,x){return y===null||y.tag!==6?(y=Yd(b,C.mode,x),y.return=C,y):(y=i(y,b),y.return=C,y)}function l(C,y,b,x){var S=b.type;return S===oo?c(C,y,b.props.children,x,b.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lr&&sy(S)===y.type)?(x=i(y,b.props),x.ref=ms(C,y,b),x.return=C,x):(x=au(b.type,b.key,b.props,null,C.mode,x),x.ref=ms(C,y,b),x.return=C,x)}function u(C,y,b,x){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Kd(b,C.mode,x),y.return=C,y):(y=i(y,b.children||[]),y.return=C,y)}function c(C,y,b,x,S){return y===null||y.tag!==7?(y=Pi(b,C.mode,x,S),y.return=C,y):(y=i(y,b),y.return=C,y)}function d(C,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Yd(""+y,C.mode,b),y.return=C,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Sl:return b=au(y.type,y.key,y.props,null,C.mode,b),b.ref=ms(C,null,y),b.return=C,b;case io:return y=Kd(y,C.mode,b),y.return=C,y;case Lr:var x=y._init;return d(C,x(y._payload),b)}if(Ms(y)||ds(y))return y=Pi(y,C.mode,b,null),y.return=C,y;Al(C,y)}return null}function f(C,y,b,x){var S=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return S!==null?null:a(C,y,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Sl:return b.key===S?l(C,y,b,x):null;case io:return b.key===S?u(C,y,b,x):null;case Lr:return S=b._init,f(C,y,S(b._payload),x)}if(Ms(b)||ds(b))return S!==null?null:c(C,y,b,x,null);Al(C,b)}return null}function h(C,y,b,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return C=C.get(b)||null,a(y,C,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Sl:return C=C.get(x.key===null?b:x.key)||null,l(y,C,x,S);case io:return C=C.get(x.key===null?b:x.key)||null,u(y,C,x,S);case Lr:var E=x._init;return h(C,y,b,E(x._payload),S)}if(Ms(x)||ds(x))return C=C.get(b)||null,c(y,C,x,S,null);Al(y,x)}return null}function g(C,y,b,x){for(var S=null,E=null,L=y,_=y=0,P=null;L!==null&&_<b.length;_++){L.index>_?(P=L,L=null):P=L.sibling;var I=f(C,L,b[_],x);if(I===null){L===null&&(L=P);break}e&&L&&I.alternate===null&&t(C,L),y=o(I,y,_),E===null?S=I:E.sibling=I,E=I,L=P}if(_===b.length)return n(C,L),it&&mi(C,_),S;if(L===null){for(;_<b.length;_++)L=d(C,b[_],x),L!==null&&(y=o(L,y,_),E===null?S=L:E.sibling=L,E=L);return it&&mi(C,_),S}for(L=r(C,L);_<b.length;_++)P=h(L,C,_,b[_],x),P!==null&&(e&&P.alternate!==null&&L.delete(P.key===null?_:P.key),y=o(P,y,_),E===null?S=P:E.sibling=P,E=P);return e&&L.forEach(function(R){return t(C,R)}),it&&mi(C,_),S}function v(C,y,b,x){var S=ds(b);if(typeof S!="function")throw Error(j(150));if(b=S.call(b),b==null)throw Error(j(151));for(var E=S=null,L=y,_=y=0,P=null,I=b.next();L!==null&&!I.done;_++,I=b.next()){L.index>_?(P=L,L=null):P=L.sibling;var R=f(C,L,I.value,x);if(R===null){L===null&&(L=P);break}e&&L&&R.alternate===null&&t(C,L),y=o(R,y,_),E===null?S=R:E.sibling=R,E=R,L=P}if(I.done)return n(C,L),it&&mi(C,_),S;if(L===null){for(;!I.done;_++,I=b.next())I=d(C,I.value,x),I!==null&&(y=o(I,y,_),E===null?S=I:E.sibling=I,E=I);return it&&mi(C,_),S}for(L=r(C,L);!I.done;_++,I=b.next())I=h(L,C,_,I.value,x),I!==null&&(e&&I.alternate!==null&&L.delete(I.key===null?_:I.key),y=o(I,y,_),E===null?S=I:E.sibling=I,E=I);return e&&L.forEach(function(q){return t(C,q)}),it&&mi(C,_),S}function w(C,y,b,x){if(typeof b=="object"&&b!==null&&b.type===oo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Sl:e:{for(var S=b.key,E=y;E!==null;){if(E.key===S){if(S=b.type,S===oo){if(E.tag===7){n(C,E.sibling),y=i(E,b.props.children),y.return=C,C=y;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lr&&sy(S)===E.type){n(C,E.sibling),y=i(E,b.props),y.ref=ms(C,E,b),y.return=C,C=y;break e}n(C,E);break}else t(C,E);E=E.sibling}b.type===oo?(y=Pi(b.props.children,C.mode,x,b.key),y.return=C,C=y):(x=au(b.type,b.key,b.props,null,C.mode,x),x.ref=ms(C,y,b),x.return=C,C=x)}return s(C);case io:e:{for(E=b.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(C,y.sibling),y=i(y,b.children||[]),y.return=C,C=y;break e}else{n(C,y);break}else t(C,y);y=y.sibling}y=Kd(b,C.mode,x),y.return=C,C=y}return s(C);case Lr:return E=b._init,w(C,y,E(b._payload),x)}if(Ms(b))return g(C,y,b,x);if(ds(b))return v(C,y,b,x);Al(C,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(C,y.sibling),y=i(y,b),y.return=C,C=y):(n(C,y),y=Yd(b,C.mode,x),y.return=C,C=y),s(C)):n(C,y)}return w}var Ro=s2(!0),a2=s2(!1),_u=ui(null),Lu=null,ho=null,Kh=null;function Qh(){Kh=ho=Lu=null}function Zh(e){var t=_u.current;et(_u),e._currentValue=t}function ap(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){Lu=e,Kh=ho=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xt=!0),e.firstContext=null)}function kn(e){var t=e._currentValue;if(Kh!==e)if(e={context:e,memoizedValue:t,next:null},ho===null){if(Lu===null)throw Error(j(308));ho=e,Lu.dependencies={lanes:0,firstContext:e}}else ho=ho.next=e;return t}var Si=null;function Xh(e){Si===null?Si=[e]:Si.push(e)}function l2(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Xh(t)):(n.next=i.next,i.next=n),t.interleaved=n,dr(e,r)}function dr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ir=!1;function Jh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function u2(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ar(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,dr(e,n)}return i=r.interleaved,i===null?(t.next=t,Xh(r)):(t.next=i.next,i.next=t),r.interleaved=t,dr(e,n)}function tu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bh(e,n)}}function ay(e,t){var n=e.updateQueue,r=e.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=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Iu(e,t,n,r){var i=e.updateQueue;Ir=!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=e.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 f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(f=t,h=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){d=g.call(h,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g=="function"?g.call(h,d,f):g,f==null)break e;d=lt({},d,f);break e;case 2:Ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Fi|=s,e.lanes=s,e.memoizedState=d}}function ly(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(j(191,i));i.call(r)}}}var Wa={},Zn=ui(Wa),da=ui(Wa),fa=ui(Wa);function _i(e){if(e===Wa)throw Error(j(174));return e}function eg(e,t){switch(Xe(fa,t),Xe(da,e),Xe(Zn,Wa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uf(t,e)}et(Zn),Xe(Zn,t)}function Ao(){et(Zn),et(da),et(fa)}function c2(e){_i(fa.current);var t=_i(Zn.current),n=Uf(t,e.type);t!==n&&(Xe(da,e),Xe(Zn,n))}function tg(e){da.current===e&&(et(Zn),et(da))}var st=ui(0);function ku(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $d=[];function ng(){for(var e=0;e<$d.length;e++)$d[e]._workInProgressVersionPrimary=null;$d.length=0}var nu=vr.ReactCurrentDispatcher,Wd=vr.ReactCurrentBatchConfig,Oi=0,at=null,yt=null,Et=null,Pu=!1,zs=!1,pa=0,EI=0;function Ot(){throw Error(j(321))}function rg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ig(e,t,n,r,i,o){if(Oi=o,at=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nu.current=e===null||e.memoizedState===null?II:kI,e=n(r,i),zs){o=0;do{if(zs=!1,pa=0,25<=o)throw Error(j(301));o+=1,Et=yt=null,t.updateQueue=null,nu.current=PI,e=n(r,i)}while(zs)}if(nu.current=Mu,t=yt!==null&&yt.next!==null,Oi=0,Et=yt=at=null,Pu=!1,t)throw Error(j(300));return e}function og(){var e=pa!==0;return pa=0,e}function Vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?at.memoizedState=Et=e:Et=Et.next=e,Et}function Pn(){if(yt===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=Et===null?at.memoizedState:Et.next;if(t!==null)Et=t,yt=e;else{if(e===null)throw Error(j(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Et===null?at.memoizedState=Et=e:Et=Et.next=e}return Et}function ha(e,t){return typeof t=="function"?t(e):t}function Hd(e){var t=Pn(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=yt,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((Oi&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:e(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,at.lanes|=c,Fi|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,$n(r,t.memoizedState)||(Xt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,at.lanes|=o,Fi|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vd(e){var t=Pn(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);$n(o,t.memoizedState)||(Xt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function d2(){}function f2(e,t){var n=at,r=Pn(),i=t(),o=!$n(r.memoizedState,i);if(o&&(r.memoizedState=i,Xt=!0),r=r.queue,sg(g2.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Et!==null&&Et.memoizedState.tag&1){if(n.flags|=2048,ga(9,h2.bind(null,n,r,i,t),void 0,null),_t===null)throw Error(j(349));Oi&30||p2(n,t,i)}return i}function p2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function h2(e,t,n,r){t.value=n,t.getSnapshot=r,m2(t)&&v2(e)}function g2(e,t,n){return n(function(){m2(t)&&v2(e)})}function m2(e){var t=e.getSnapshot;e=e.value;try{var n=t();
vendor: 4,856 bytes, line 38
38return!$n(e,n)}catch{return!0}}function v2(e){var t=dr(e,1);t!==null&&zn(t,e,1,-1)}function uy(e){var t=Vn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t.queue=e,e=e.dispatch=LI.bind(null,at,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function y2(){return Pn().memoizedState}function ru(e,t,n,r){var i=Vn();at.flags|=e,i.memoizedState=ga(1|t,n,void 0,r===void 0?null:r)}function kc(e,t,n,r){var i=Pn();r=r===void 0?null:r;var o=void 0;if(yt!==null){var s=yt.memoizedState;if(o=s.destroy,r!==null&&rg(r,s.deps)){i.memoizedState=ga(t,n,o,r);return}}at.flags|=e,i.memoizedState=ga(1|t,n,o,r)}function cy(e,t){return ru(8390656,8,e,t)}function sg(e,t){return kc(2048,8,e,t)}function C2(e,t){return kc(4,2,e,t)}function b2(e,t){return kc(4,4,e,t)}function w2(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function x2(e,t,n){return n=n!=null?n.concat([e]):null,kc(4,4,w2.bind(null,t,e),n)}function ag(){}function E2(e,t){var n=Pn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function S2(e,t){var n=Pn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _2(e,t,n){return Oi&21?($n(n,t)||(n=Mb(),at.lanes|=n,Fi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xt=!0),e.memoizedState=n)}function SI(e,t){var n=$e;$e=n!==0&&4>n?n:4,e(!0);var r=Wd.transition;Wd.transition={};try{e(!1),t()}finally{$e=n,Wd.transition=r}}function L2(){return Pn().memoizedState}function _I(e,t,n){var r=$r(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},I2(e))k2(t,n);else if(n=l2(e,t,n,r),n!==null){var i=Gt();zn(n,e,r,i),P2(n,t,r)}}function LI(e,t,n){var r=$r(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(I2(e))k2(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,$n(a,s)){var l=t.interleaved;l===null?(i.next=i,Xh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=l2(e,t,i,r),n!==null&&(i=Gt(),zn(n,e,r,i),P2(n,t,r))}}function I2(e){var t=e.alternate;return e===at||t!==null&&t===at}function k2(e,t){zs=Pu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bh(e,n)}}var Mu={readContext:kn,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},II={readContext:kn,useCallback:function(e,t){return Vn().memoizedState=[e,t===void 0?null:t],e},useContext:kn,useEffect:cy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ru(4194308,4,w2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){return ru(4,2,e,t)},useMemo:function(e,t){var n=Vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=_I.bind(null,at,e),[r.memoizedState,e]},useRef:function(e){var t=Vn();return e={current:e},t.memoizedState=e},useState:uy,useDebugValue:ag,useDeferredValue:function(e){return Vn().memoizedState=e},useTransition:function(){var e=uy(!1),t=e[0];return e=SI.bind(null,e[1]),Vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=at,i=Vn();if(it){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),_t===null)throw Error(j(349));Oi&30||p2(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,cy(g2.bind(null,r,o,e),[e]),r.flags|=2048,ga(9,h2.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Vn(),t=_t.identifierPrefix;if(it){var n=or,r=ir;n=(r&~(1<<32-jn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=EI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kI={readContext:kn,useCallback:E2,useContext:kn,useEffect:sg,useImperativeHandle:x2,useInsertionEffect:C2,useLayoutEffect:b2,useMemo:S2,useReducer:Hd,useRef
vendor: 5,058 bytes, lines 38-40
38:y2,useState:function(){return Hd(ha)},useDebugValue:ag,useDeferredValue:function(e){var t=Pn();return _2(t,yt.memoizedState,e)},useTransition:function(){var e=Hd(ha)[0],t=Pn().memoizedState;return[e,t]},useMutableSource:d2,useSyncExternalStore:f2,useId:L2,unstable_isNewReconciler:!1},PI={readContext:kn,useCallback:E2,useContext:kn,useEffect:sg,useImperativeHandle:x2,useInsertionEffect:C2,useLayoutEffect:b2,useMemo:S2,useReducer:Vd,useRef:y2,useState:function(){return Vd(ha)},useDebugValue:ag,useDeferredValue:function(e){var t=Pn();return yt===null?t.memoizedState=e:_2(t,yt.memoizedState,e)},useTransition:function(){var e=Vd(ha)[0],t=Pn().memoizedState;return[e,t]},useMutableSource:d2,useSyncExternalStore:f2,useId:L2,unstable_isNewReconciler:!1};function Tn(e,t){if(e&&e.defaultProps){t=lt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function lp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:lt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Pc={isMounted:function(e){return(e=e._reactInternals)?Ki(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gt(),i=$r(e),o=ar(r,i);o.payload=t,n!=null&&(o.callback=n),t=zr(e,o,i),t!==null&&(zn(t,e,i,r),tu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gt(),i=$r(e),o=ar(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=zr(e,o,i),t!==null&&(zn(t,e,i,r),tu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gt(),r=$r(e),i=ar(n,r);i.tag=2,t!=null&&(i.callback=t),t=zr(e,i,r),t!==null&&(zn(t,e,r,n),tu(t,e,r))}};function dy(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!aa(n,r)||!aa(i,o):!0}function M2(e,t,n){var r=!1,i=Jr,o=t.contextType;return typeof o=="object"&&o!==null?o=kn(o):(i=tn(t)?Ri:jt.current,r=t.contextTypes,o=(r=r!=null)?No(e,i):Jr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Pc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function fy(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pc.enqueueReplaceState(t,t.state,null)}function up(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Jh(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=kn(o):(o=tn(t)?Ri:jt.current,i.context=No(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(lp(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Pc.enqueueReplaceState(i,i.state,null),Iu(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Oo(e,t){try{var n="",r=t;do n+=rL(r),r=r.return;while(r);var i=n}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Gd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var MI=typeof WeakMap=="function"?WeakMap:Map;function D2(e,t,n){n=ar(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nu||(Nu=!0,bp=r),cp(e,t)},n}function N2(e,t,n){n=ar(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){cp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){cp(e,t),typeof r!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function py(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new MI;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=HI.bind(null,e,t,n),t.then(e,e))}function hy(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function gy(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ar(-1,1),t.tag=2,zr(n,t,1))),n.lanes|=1),e)}var DI=vr.ReactCurrentOwner,Xt=!1;function Ht(e,t,n,r){t.child=e===null?a2(t,null,n,r):Ro(t,e.child,n,r)}function my(e,t,n,r,i){n=n.render;var o=t.ref;return _o(t,i),r=ig(e,t,n,r,o,i),n=og(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fr(e,t,i)):(it&&n&&Gh(t),t.flags|=1,Ht(e,t,r,i
vendor: 6,651 bytes, line 40
40),t.child)}function vy(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!gg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,T2(e,t,o,r,i)):(e=au(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:aa,n(s,r)&&e.ref===t.ref)return fr(e,t,i)}return t.flags|=1,e=Wr(o,r),e.ref=t.ref,e.return=t,t.child=e}function T2(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(aa(o,r)&&e.ref===t.ref)if(Xt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Xt=!0);else return t.lanes=e.lanes,fr(e,t,i)}return dp(e,t,n,r,i)}function R2(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(mo,rn),rn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Xe(mo,rn),rn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Xe(mo,rn),rn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Xe(mo,rn),rn|=r;return Ht(e,t,i,n),t.child}function A2(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dp(e,t,n,r,i){var o=tn(n)?Ri:jt.current;return o=No(t,o),_o(t,i),n=ig(e,t,n,r,o,i),r=og(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fr(e,t,i)):(it&&r&&Gh(t),t.flags|=1,Ht(e,t,n,i),t.child)}function yy(e,t,n,r,i){if(tn(n)){var o=!0;xu(t)}else o=!1;if(_o(t,i),t.stateNode===null)iu(e,t),M2(t,n,r),up(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=kn(u):(u=tn(n)?Ri:jt.current,u=No(t,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)&&fy(t,s,r,u),Ir=!1;var f=t.memoizedState;s.state=f,Iu(t,r,s,i),l=t.memoizedState,a!==r||f!==l||en.current||Ir?(typeof c=="function"&&(lp(t,n,c,r),l=t.memoizedState),(a=Ir||dy(t,n,a,r,f,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"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,u2(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Tn(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=kn(l):(l=tn(n)?Ri:jt.current,l=No(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&fy(t,s,r,l),Ir=!1,f=t.memoizedState,s.state=f,Iu(t,r,s,i);var g=t.memoizedState;a!==d||f!==g||en.current||Ir?(typeof h=="function"&&(lp(t,n,h,r),g=t.memoizedState),(u=Ir||dy(t,n,u,r,f,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return fp(e,t,n,r,o,i)}function fp(e,t,n,r,i,o){A2(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&ry(t,n,!1),fr(e,t,o);r=t.stateNode,DI.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ro(t,e.child,null,o),t.child=Ro(t,null,a,o)):Ht(e,t,a,o),t.memoizedState=r.state,i&&ry(t,n,!0),t.child}function O2(e){var t=e.stateNode;t.pendingContext?ny(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ny(e,t.context,!1),eg(e,t.containerInfo)}function Cy(e,t,n,r,i){return To(),Yh(i),t.flags|=256,Ht(e,t,n,r),t.child}var pp={dehydrated:null,treeContext:null,retryLane:0};function hp(e){return{baseLanes:e,cachePool:null,transitions:null}}function F2(e,t,n){var r=t.pendingProps,i=st.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Xe(st,i&1),e===null)return sp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Nc(s,r,0,null),e=Pi(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=hp(n),t.memoizedState=pp,e):lg(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return NI(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Wr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Wr(a,o):(o=Pi(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?hp(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=pp,r}return o=e.child,e=o.sibling,r=Wr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lg(e,t){return t=Nc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ol(e,t,n,r){return r!==null&&Yh(r),Ro(t,e.child,null,n),e=lg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}
vendor: 4,861 bytes, line 40
40function NI(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Gd(Error(j(422))),Ol(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Nc({mode:"visible",children:r.children},i,0,null),o=Pi(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ro(t,e.child,null,s),t.child.memoizedState=hp(s),t.memoizedState=pp,o);if(!(t.mode&1))return Ol(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(j(419)),r=Gd(o,r,void 0),Ol(e,t,s,r)}if(a=(s&e.childLanes)!==0,Xt||a){if(r=_t,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,dr(e,i),zn(r,e,i,-1))}return hg(),r=Gd(Error(j(421))),Ol(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=VI.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,sn=jr(i.nextSibling),ln=t,it=!0,An=null,e!==null&&(wn[xn++]=ir,wn[xn++]=or,wn[xn++]=Ai,ir=e.id,or=e.overflow,Ai=t),t=lg(t,r.children),t.flags|=4096,t)}function by(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ap(e.return,t,n)}function qd(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function B2(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ht(e,t,r.children,n),r=st.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&by(e,n,t);else if(e.tag===19)by(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Xe(st,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ku(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),qd(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ku(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}qd(t,!0,n,null,o);break;case"together":qd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function iu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Wr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function TI(e,t,n){switch(t.tag){case 3:O2(t),To();break;case 5:c2(t);break;case 1:tn(t.type)&&xu(t);break;case 4:eg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Xe(_u,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Xe(st,st.current&1),t.flags|=128,null):n&t.child.childLanes?F2(e,t,n):(Xe(st,st.current&1),e=fr(e,t,n),e!==null?e.sibling:null);Xe(st,st.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return B2(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Xe(st,st.current),r)break;return null;case 22:case 23:return t.lanes=0,R2(e,t,n)}return fr(e,t,n)}var j2,gp,z2,U2;j2=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};gp=function(){};z2=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,_i(Zn.current);var o=null;switch(n){case"input":i=Ff(e,i),r=Ff(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=zf(e,i),r=zf(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bu)}$f(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"&&(ea.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"&&(ea.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Je("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};U2=function(e,t,n,r){n!==r&&(t.flags|=4)};function vs(e,t){if(!it)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function RI(e,t,n){var r=t.pendingProps;switch(qh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(t),null;case 1:return tn(t.type)&&wu(),Ft(t),null;case 3:return r=t.stateNode,Ao(),et(en),et(jt),ng(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,An!==null&&(Ep(An),An=null))),gp(e,t),Ft(t),null;case 5:tg(t);var i=_i(fa.current);if(n=t.type,e!==null&&t.stateNode!=null)z2(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return Ft(t),null}if(e=_i(Zn.current),Rl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[qn]=t,r[ca]=o,e=(t.mode&1)!==0,n){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(i=0;i<Ns.length;i++)Je(Ns[i],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":Pv(r,o),Je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Je("invalid",r);break;case"textarea":Dv(r,o),Je("invalid",r)}$f(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&&Tl(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Tl(r.textContent,a,e),i=["children",""+a]):ea.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Je("scroll",r)}switch(n){case"input":_l(r),Mv(r,o,!0);break;case"textarea":_l(r),Nv(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=bu)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gb(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[qn]=t,e[ca]=r,j2(e,t,!1,!1),t.stateNode=e;e:{switch(s=Wf(n,r),n){case"dialog":Je("cancel",e),Je("close",e),i=r;break;case"iframe":case"object":case"embed":Je("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ns.length;i++)Je(Ns[i],e);i=r;break;case"source":Je("error",e),i=r;break;case"img":case"image":case"link":Je("error",e),Je("load",e),i=r;break;case"details":Je("toggle",e),i=r;break;case"input":Pv(e,r),i=Ff(e,r),Je("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=lt({},r,{value:void 0}),Je("invalid",e);break;case"textarea":Dv(e,r),i=zf(e,r),Je("invalid",e);break;default:i=r}$f(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?yb(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&mb(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ta(e,l):typeof l=="number"&&ta(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ea.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Je("scroll",e):l!=null&&Nh(e,o,l,s))}switch(n){case"input":_l(e),Mv(e,r,!1);break;case"textarea":_l(e),Nv(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?wo(e,!!r.multiple,o,!1):r.defaultValue!=null&&wo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=bu)}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&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 28,701 bytes, line 40
40return Ft(t),null;case 6:if(e&&t.stateNode!=null)U2(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=_i(fa.current),_i(Zn.current),Rl(t)){if(r=t.stateNode,n=t.memoizedProps,r[qn]=t,(o=r.nodeValue!==n)&&(e=ln,e!==null))switch(e.tag){case 3:Tl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Tl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qn]=t,t.stateNode=r}return Ft(t),null;case 13:if(et(st),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(it&&sn!==null&&t.mode&1&&!(t.flags&128))o2(),To(),t.flags|=98560,o=!1;else if(o=Rl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(j(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(j(317));o[qn]=t}else To(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ft(t),o=!1}else An!==null&&(Ep(An),An=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||st.current&1?wt===0&&(wt=3):hg())),t.updateQueue!==null&&(t.flags|=4),Ft(t),null);case 4:return Ao(),gp(e,t),e===null&&la(t.stateNode.containerInfo),Ft(t),null;case 10:return Zh(t.type._context),Ft(t),null;case 17:return tn(t.type)&&wu(),Ft(t),null;case 19:if(et(st),o=t.memoizedState,o===null)return Ft(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)vs(o,!1);else{if(wt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ku(e),s!==null){for(t.flags|=128,vs(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,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,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Xe(st,st.current&1|2),t.child}e=e.sibling}o.tail!==null&&pt()>Fo&&(t.flags|=128,r=!0,vs(o,!1),t.lanes=4194304)}else{if(!r)if(e=ku(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!it)return Ft(t),null}else 2*pt()-o.renderingStartTime>Fo&&n!==1073741824&&(t.flags|=128,r=!0,vs(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pt(),t.sibling=null,n=st.current,Xe(st,r?n&1|2:n&1),t):(Ft(t),null);case 22:case 23:return pg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rn&1073741824&&(Ft(t),t.subtreeFlags&6&&(t.flags|=8192)):Ft(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function AI(e,t){switch(qh(t),t.tag){case 1:return tn(t.type)&&wu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ao(),et(en),et(jt),ng(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tg(t),null;case 13:if(et(st),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));To()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(st),null;case 4:return Ao(),null;case 10:return Zh(t.type._context),null;case 22:case 23:return pg(),null;case 24:return null;default:return null}}var Fl=!1,Bt=!1,OI=typeof WeakSet=="function"?WeakSet:Set,J=null;function go(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ct(e,t,r)}else n.current=null}function mp(e,t,n){try{n()}catch(r){ct(e,t,r)}}var wy=!1;function FI(e,t){if(Jf=vu,e=Gb(),Vh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.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=e,f=null;t:for(;;){for(var h;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),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ep={focusedElem:e,selectionRange:n},vu=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,w=g.memoizedState,C=t.stateNode,y=C.getSnapshotBeforeUpdate(t.elementType===t.type?v:Tn(t.type,v),w);C.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(x){ct(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return g=wy,wy=!1,g}function Us(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&mp(t,n,o)}i=i.next}while(i!==r)}}function Mc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $2(e){var t=e.alternate;t!==null&&(e.alternate=null,$2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qn],delete t[ca],delete t[rp],delete t[CI],delete t[bI])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function W2(e){return e.tag===5||e.tag===3||e.tag===4}function xy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bu));else if(r!==4&&(e=e.child,e!==null))for(yp(e,t,n),e=e.sibling;e!==null;)yp(e,t,n),e=e.sibling}function Cp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cp(e,t,n),e=e.sibling;e!==null;)Cp(e,t,n),e=e.sibling}var Mt=null,Rn=!1;function xr(e,t,n){for(n=n.child;n!==null;)H2(e,t,n),n=n.sibling}function H2(e,t,n){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(xc,n)}catch{}switch(n.tag){case 5:Bt||go(n,t);case 6:var r=Mt,i=Rn;Mt=null,xr(e,t,n),Mt=r,Rn=i,Mt!==null&&(Rn?(e=Mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mt.removeChild(n.stateNode));break;case 18:Mt!==null&&(Rn?(e=Mt,n=n.stateNode,e.nodeType===8?zd(e.parentNode,n):e.nodeType===1&&zd(e,n),oa(e)):zd(Mt,n.stateNode));break;case 4:r=Mt,i=Rn,Mt=n.stateNode.containerInfo,Rn=!0,xr(e,t,n),Mt=r,Rn=i;break;case 0:case 11:case 14:case 15:if(!Bt&&(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)&&mp(n,t,s),i=i.next}while(i!==r)}xr(e,t,n);break;case 1:if(!Bt&&(go(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ct(n,t,a)}xr(e,t,n);break;case 21:xr(e,t,n);break;case 22:n.mode&1?(Bt=(r=Bt)||n.memoizedState!==null,xr(e,t,n),Bt=r):xr(e,t,n);break;default:xr(e,t,n)}}function Ey(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OI),t.forEach(function(r){var i=GI.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Mt=a.stateNode,Rn=!1;break e;case 3:Mt=a.stateNode.containerInfo,Rn=!0;break e;case 4:Mt=a.stateNode.containerInfo,Rn=!0;break e}a=a.return}if(Mt===null)throw Error(j(160));H2(o,s,i),Mt=null,Rn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ct(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)V2(t,e),t=t.sibling}function V2(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Nn(t,e),Hn(e),r&4){try{Us(3,e,e.return),Mc(3,e)}catch(v){ct(e,e.return,v)}try{Us(5,e,e.return)}catch(v){ct(e,e.return,v)}}break;case 1:Nn(t,e),Hn(e),r&512&&n!==null&&go(n,n.return);break;case 5:if(Nn(t,e),Hn(e),r&512&&n!==null&&go(n,n.return),e.flags&32){var i=e.stateNode;try{ta(i,"")}catch(v){ct(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&pb(i,o),Wf(a,s);var u=Wf(a,o);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?yb(i,d):c==="dangerouslySetInnerHTML"?mb(i,d):c==="children"?ta(i,d):Nh(i,c,d,u)}switch(a){case"input":Bf(i,o);break;case"textarea":hb(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?wo(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?wo(i,!!o.multiple,o.defaultValue,!0):wo(i,!!o.multiple,o.multiple?[]:"",!1))}i[ca]=o}catch(v){ct(e,e.return,v)}}break;case 6:if(Nn(t,e),Hn(e),r&4){if(e.stateNode===null)throw Error(j(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){ct(e,e.return,v)}}break;case 3:if(Nn(t,e),Hn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{oa(t.containerInfo)}catch(v){ct(e,e.return,v)}break;case 4:Nn(t,e),Hn(e);break;case 13:Nn(t,e),Hn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(dg=pt())),r&4&&Ey(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Bt=(u=Bt)||c,Nn(t,e),Bt=u):Nn(t,e),Hn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(J=e,c=e.child;c!==null;){for(d=J=c;J!==null;){switch(f=J,h=f.child,f.tag){case 0:case 11:case 14:case 15:Us(4,f,f.return);break;case 1:go(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){ct(r,n,v)}}break;case 5:go(f,f.return);break;case 22:if(f.memoizedState!==null){_y(d);continue}}h!==null?(h.return=f,J=h):_y(d)}c=c.sibling}e:for(c=null,d=e;;){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=vb("display",s))}catch(v){ct(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){ct(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Nn(t,e),Hn(e),r&4&&Ey(e);break;case 21:break;default:Nn(t,e),Hn(e)}}function Hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(W2(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ta(i,""),r.flags&=-33);var o=xy(e);Cp(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=xy(e);yp(e,a,s);break;default:throw Error(j(161))}}catch(l){ct(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function BI(e,t,n){J=e,G2(e)}function G2(e,t,n){for(var r=(e.mode&1)!==0;J!==null;){var i=J,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Fl;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Bt;a=Fl;var u=Bt;if(Fl=s,(Bt=l)&&!u)for(J=i;J!==null;)s=J,l=s.child,s.tag===22&&s.memoizedState!==null?Ly(i):l!==null?(l.return=s,J=l):Ly(i);for(;o!==null;)J=o,G2(o),o=o.sibling;J=i,Fl=a,Bt=u}Sy(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,J=o):Sy(e)}}function Sy(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Bt||Mc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Bt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Tn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ly(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ly(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.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(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&oa(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}Bt||t.flags&512&&vp(t)}catch(f){ct(t,t.return,f)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function _y(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Ly(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mc(4,t)}catch(l){ct(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ct(t,i,l)}}var o=t.return;try{vp(t)}catch(l){ct(t,o,l)}break;case 5:var s=t.return;try{vp(t)}catch(l){ct(t,s,l)}}}catch(l){ct(t,t.return,l)}if(t===e){J=null;break}var a=t.sibling;if(a!==null){a.return=t.return,J=a;break}J=t.return}}var jI=Math.ceil,Du=vr.ReactCurrentDispatcher,ug=vr.ReactCurrentOwner,Ln=vr.ReactCurrentBatchConfig,Fe=0,_t=null,mt=null,Tt=0,rn=0,mo=ui(0),wt=0,ma=null,Fi=0,Dc=0,cg=0,$s=null,Zt=null,dg=0,Fo=1/0,nr=null,Nu=!1,bp=null,Ur=null,Bl=!1,Nr=null,Tu=0,Ws=0,wp=null,ou=-1,su=0;function Gt(){return Fe&6?pt():ou!==-1?ou:ou=pt()}function $r(e){return e.mode&1?Fe&2&&Tt!==0?Tt&-Tt:xI.transition!==null?(su===0&&(su=Mb()),su):(e=$e,e!==0||(e=window.event,e=e===void 0?16:Fb(e.type)),e):1}function zn(e,t,n,r){if(50<Ws)throw Ws=0,wp=null,Error(j(185));za(e,n,r),(!(Fe&2)||e!==_t)&&(e===_t&&(!(Fe&2)&&(Dc|=n),wt===4&&Mr(e,Tt)),nn(e,r),n===1&&Fe===0&&!(t.mode&1)&&(Fo=pt()+500,Ic&&ci()))}function nn(e,t){var n=e.callbackNode;xL(e,t);var r=mu(e,e===_t?Tt:0);if(r===0)n!==null&&Av(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Av(n),t===1)e.tag===0?wI(Iy.bind(null,e)):n2(Iy.bind(null,e)),vI(function(){!(Fe&6)&&ci()}),n=null;else{switch(Db(r)){case 1:n=Fh;break;case 4:n=kb;break;case 16:n=gu;break;case 536870912:n=Pb;break;default:n=gu}n=ew(n,q2.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function q2(e,t){if(ou=-1,su=0,Fe&6)throw Error(j(327));var n=e.callbackNode;if(Lo()&&e.callbackNode!==n)return null;var r=mu(e,e===_t?Tt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ru(e,r);else{t=r;var i=Fe;Fe|=2;var o=K2();(_t!==e||Tt!==t)&&(nr=null,Fo=pt()+500,ki(e,t));do try{$I();break}catch(a){Y2(e,a)}while(!0);Qh(),Du.current=o,Fe=i,mt!==null?t=0:(_t=null,Tt=0,t=wt)}if(t!==0){if(t===2&&(i=Yf(e),i!==0&&(r=i,t=xp(e,i))),t===1)throw n=ma,ki(e,0),Mr(e,r),nn(e,pt()),n;if(t===6)Mr(e,r);else{if(i=e.current.alternate,!(r&30)&&!zI(i)&&(t=Ru(e,r),t===2&&(o=Yf(e),o!==0&&(r=o,t=xp(e,o))),t===1))throw n=ma,ki(e,0),Mr(e,r),nn(e,pt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:vi(e,Zt,nr);break;case 3:if(Mr(e,r),(r&130023424)===r&&(t=dg+500-pt(),10<t)){if(mu(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Gt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=np(vi.bind(null,e,Zt,nr),t);break}vi(e,Zt,nr);break;case 4:if(Mr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-jn(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=pt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jI(r/1960))-r,10<r){e.timeoutHandle=np(vi.bind(null,e,Zt,nr),r);break}vi(e,Zt,nr);break;case 5:vi(e,Zt,nr);break;default:throw Error(j(329))}}}return nn(e,pt()),e.callbackNode===n?q2.bind(null,e):null}function xp(e,t){var n=$s;return e.current.memoizedState.isDehydrated&&(ki(e,t).flags|=256),e=Ru(e,t),e!==2&&(t=Zt,Zt=n,t!==null&&Ep(t)),e}function Ep(e){Zt===null?Zt=e:Zt.push.apply(Zt,e)}function zI(e){for(var t=e;;){if(t.flags&16384){var n=t.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(!$n(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mr(e,t){for(t&=~cg,t&=~Dc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jn(t),r=1<<n;e[n]=-1,t&=~r}}function Iy(e){if(Fe&6)throw Error(j(327));Lo();var t=mu(e,0);if(!(t&1))return nn(e,pt()),null;var n=Ru(e,t);if(e.tag!==0&&n===2){var r=Yf(e);r!==0&&(t=r,n=xp(e,r))}if(n===1)throw n=ma,ki(e,0),Mr(e,t),nn(e,pt()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vi(e,Zt,nr),nn(e,pt()),null}function fg(e,t){var n=Fe;Fe|=1;try{return e(t)}finally{Fe=n,Fe===0&&(Fo=pt()+500,Ic&&ci())}}function Bi(e){Nr!==null&&Nr.tag===0&&!(Fe&6)&&Lo();var t=Fe;Fe|=1;var n=Ln.transition,r=$e;try{if(Ln.transition=null,$e=1,e)return e()}finally{$e=r,Ln.transition=n,Fe=t,!(Fe&6)&&ci()}}function pg(){rn=mo.current,et(mo)}function ki(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mI(n)),mt!==null)for(n=mt.return;n!==null;){var r=n;switch(qh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&wu();break;case 3:Ao(),et(en),et(jt),ng();break;case 5:tg(r);break;case 4:Ao();break;case 13:et(st);break;case 19:et(st);break;case 10:Zh(r.type._context);break;case 22:case 23:pg()}n=n.return}if(_t=e,mt=e=Wr(e.current,null),Tt=rn=t,wt=0,ma=null,cg=Dc=Fi=0,Zt=$s=null,Si!==null){for(t=0;t<Si.length;t++)if(n=Si[t],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}Si=null}return e}function Y2(e,t){do{var n=mt;try{if(Qh(),nu.current=Mu,Pu){for(var r=at.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Pu=!1}if(Oi=0,Et=yt=at=null,zs=!1,pa=0,ug.current=null,n===null||n.return===null){wt=1,ma=t,mt=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Tt,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 f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=hy(s);if(h!==null){h.flags&=-257,gy(h,s,a,o,t),h.mode&1&&py(o,u,t),t=h,l=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){py(o,u,t),hg();break e}l=Error(j(426))}}else if(it&&a.mode&1){var w=hy(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),gy(w,s,a,o,t),Yh(Oo(l,a));break e}}o=l=Oo(l,a),wt!==4&&(wt=2),$s===null?$s=[o]:$s.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=D2(o,l,t);ay(o,C);break e;case 1:a=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ur===null||!Ur.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=N2(o,a,t);ay(o,x);break e}}o=o.return}while(o!==null)}Z2(n)}catch(S){t=S,mt===n&&n!==null&&(mt=n=n.return);continue}break}while(!0)}function K2(){var e=Du.current;return Du.current=Mu,e===null?Mu:e}function hg(){(wt===0||wt===3||wt===2)&&(wt=4),_t===null||!(Fi&268435455)&&!(Dc&268435455)||Mr(_t,Tt)}function Ru(e,t){var n=Fe;Fe|=2;var r=K2();(_t!==e||Tt!==t)&&(nr=null,ki(e,t));do try{UI();break}catch(i){Y2(e,i)}while(!0);if(Qh(),Fe=n,Du.current=r,mt!==null)throw Error(j(261));return _t=null,Tt=0,wt}function UI(){for(;mt!==null;)Q2(mt)}function $I(){for(;mt!==null&&!pL();)Q2(mt)}function Q2(e){var t=J2(e.alternate,e,rn);e.memoizedProps=e.pendingProps,t===null?Z2(e):mt=t,ug.current=null}function Z2(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=AI(n,t),n!==null){n.flags&=32767,mt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{wt=6,mt=null;return}}else if(n=RI(n,t,rn),n!==null){mt=n;return}if(t=t.sibling,t!==null){mt=t;return}mt=t=e}while(t!==null);wt===0&&(wt=5)}function vi(e,t,n){var r=$e,i=Ln.transition;try{Ln.transition=null,$e=1,WI(e,t,n,r)}finally{Ln.transition=i,$e=r}return null}function WI(e,t,n,r){do Lo();while(Nr!==null);if(Fe&6)throw Error(j(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(EL(e,o),e===_t&&(mt=_t=null,Tt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bl||(Bl=!0,ew(gu,function(){return Lo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ln.transition,Ln.transition=null;var s=$e;$e=1;var a=Fe;Fe|=4,ug.current=null,FI(e,n),V2(n,e),uI(ep),vu=!!Jf,ep=Jf=null,e.current=n,BI(n),hL(),Fe=a,$e=s,Ln.transition=o}else e.current=n;if(Bl&&(Bl=!1,Nr=e,Tu=i),o=e.pendingLanes,o===0&&(Ur=null),vL(n.stateNode),nn(e,pt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Nu)throw Nu=!1,e=bp,bp=null,e;return Tu&1&&e.tag!==0&&Lo(),o=e.pendingLanes,o&1?e===wp?Ws++:(Ws=0,wp=e):Ws=0,ci(),null}function Lo(){if(Nr!==null){var e=Db(Tu),t=Ln.transition,n=$e;try{if(Ln.transition=null,$e=16>e?16:e,Nr===null)var r=!1;else{if(e=Nr,Nr=null,Tu=0,Fe&6)throw Error(j(331));var i=Fe;for(Fe|=4,J=e.current;J!==null;){var o=J,s=o.child;if(J.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(J=u;J!==null;){var c=J;switch(c.tag){case 0:case 11:case 15:Us(8,c,o)}var d=c.child;if(d!==null)d.return=c,J=d;else for(;J!==null;){c=J;var f=c.sibling,h=c.return;if($2(c),c===u){J=null;break}if(f!==null){f.return=h,J=f;break}J=h}}}var g=o.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}J=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,J=s;else e:for(;J!==null;){if(o=J,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Us(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,J=C;break e}J=o.return}}var y=e.current;for(J=y;J!==null;){s=J;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,J=b;else e:for(s=y;J!==null;){if(a=J,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Mc(9,a)}}catch(S){ct(a,a.return,S)}if(a===s){J=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,J=x;break e}J=a.return}}if(Fe=i,ci(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(xc,e)}catch{}r=!0}return r}finally{$e=n,Ln.transition=t}}return!1}function ky(e,t,n){t=Oo(n,t),t=D2(e,t,1),e=zr(e,t,1),t=Gt(),e!==null&&(za(e,1,t),nn(e,t))}function ct(e,t,n){if(e.tag===3)ky(e,e,n);else for(;t!==null;){if(t.tag===3){ky(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ur===null||!Ur.has(r))){e=Oo(n,e),e=N2(t,e,1),t=zr(t,e,1),e=Gt(),t!==null&&(za(t,1,e),nn(t,e));break}}t=t.return}}function HI(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Gt(),e.pingedLanes|=e.suspendedLanes&n,_t===e&&(Tt&n)===n&&(wt===4||wt===3&&(Tt&130023424)===Tt&&500>pt()-dg?ki(e,0):cg|=n),nn(e,t)}function X2(e,t){t===0&&(e.mode&1?(t=kl,kl<<=1,!(kl&130023424)&&(kl=4194304)):t=1);var n=Gt();e=dr(e,t),e!==null&&(za(e,t,n),nn(e,n))}function VI(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),X2(e,n)}function GI(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),X2(e,n)}var J2;J2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||en.current)Xt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xt=!1,TI(e,t,n);Xt=!!(e.flags&131072)}else Xt=!1,it&&t.flags&1048576&&r2(t,Su,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var i=No(t,jt.current);_o(t,n),i=ig(null,t,r,e,i,n);var o=og();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tn(r)?(o=!0,xu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Jh(t),i.updater=Pc,t.stateNode=i,i._reactInternals=t,up(t,r,e,n),t=fp(null,t,r,!0,o,n)):(t.tag=0,it&&o&&Gh(t),Ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=YI(r),e=Tn(r,e),i){case 0:t=dp(null,t,r,e,n);break e;case 1:t=yy(null,t,r,e,n);break e;case 11:t=my(null,t,r,e,n);break e;case 14:t=vy(null,t,r,Tn(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),dp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),yy(e,t,r,i,n);case 3:e:{if(O2(t),e===null)throw Error(j(387));r=t.pendingProps,o=t.memoizedState,i=o.element,u2(e,t),Iu(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Oo(Error(j(423)),t),t=Cy(e,t,r,n,i);break e}else if(r!==i){i=Oo(Error(j(424)),t),t=Cy(e,t,r,n,i);break e}else for(sn=jr(t.stateNode.containerInfo.firstChild),ln=t,it=!0,An=null,n=a2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(To(),r===i){t=fr(e,t,n);break e}Ht(e,t,r,n)}t=t.child}return t;case 5:return c2(t),e===null&&sp(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,tp(r,i)?s=null:o!==null&&tp(r,o)&&(t.flags|=32),A2(e,t),Ht(e,t,s,n),t.child;case 6:return e===null&&sp(t),null;case 13:return F2(e,t,n);case 4:return eg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ro(t,null,r,n):Ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),my(e,t,r,i,n);case 7:return Ht(e,t,t.pendingProps,n),t.child;case 8:return Ht(e,t,t.pendingProps.children,n),t.child;case 12:return Ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Xe(_u,r._currentValue),r._currentValue=s,o!==null)if($n(o.value,s)){if(o.children===i.children&&!en.current){t=fr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);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=ar(-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),ap(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(j(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ap(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_o(t,n),i=kn(i),r=r(i),t.flags|=1,Ht(e,t,r,n),t.child;
vendor: 6,333 bytes, line 40
40case 14:return r=t.type,i=Tn(r,t.pendingProps),i=Tn(r.type,i),vy(e,t,r,i,n);case 15:return T2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),iu(e,t),t.tag=1,tn(r)?(e=!0,xu(t)):e=!1,_o(t,n),M2(t,r,i),up(t,r,i,n),fp(null,t,r,!0,e,n);case 19:return B2(e,t,n);case 22:return R2(e,t,n)}throw Error(j(156,t.tag))};function ew(e,t){return Ib(e,t)}function qI(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(e,t,n,r){return new qI(e,t,n,r)}function gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YI(e){if(typeof e=="function")return gg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rh)return 11;if(e===Ah)return 14}return 2}function Wr(e,t){var n=e.alternate;return n===null?(n=En(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function au(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")gg(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case oo:return Pi(n.children,i,o,t);case Th:s=8,i|=8;break;case Tf:return e=En(12,n,t,i|2),e.elementType=Tf,e.lanes=o,e;case Rf:return e=En(13,n,t,i),e.elementType=Rf,e.lanes=o,e;case Af:return e=En(19,n,t,i),e.elementType=Af,e.lanes=o,e;case cb:return Nc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lb:s=10;break e;case ub:s=9;break e;case Rh:s=11;break e;case Ah:s=14;break e;case Lr:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=En(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Pi(e,t,n,r){return e=En(7,e,r,t),e.lanes=n,e}function Nc(e,t,n,r){return e=En(22,e,r,t),e.elementType=cb,e.lanes=n,e.stateNode={isHidden:!1},e}function Yd(e,t,n){return e=En(6,e,null,t),e.lanes=n,e}function Kd(e,t,n){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KI(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pd(0),this.expirationTimes=Pd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pd(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mg(e,t,n,r,i,o,s,a,l){return e=new KI(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=En(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jh(o),e}function QI(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:io,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function tw(e){if(!e)return Jr;e=e._reactInternals;e:{if(Ki(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(tn(n))return t2(e,n,t)}return t}function nw(e,t,n,r,i,o,s,a,l){return e=mg(n,r,!0,e,i,o,s,a,l),e.context=tw(null),n=e.current,r=Gt(),i=$r(n),o=ar(r,i),o.callback=t??null,zr(n,o,i),e.current.lanes=i,za(e,i,r),nn(e,r),e}function Tc(e,t,n,r){var i=t.current,o=Gt(),s=$r(i);return n=tw(n),t.context===null?t.context=n:t.pendingContext=n,t=ar(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zr(i,t,s),e!==null&&(zn(e,i,s,o),tu(e,i,s)),s}function Au(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Py(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vg(e,t){Py(e,t),(e=e.alternate)&&Py(e,t)}function ZI(){return null}var rw=typeof reportError=="function"?reportError:function(e){console.error(e)};function yg(e){this._internalRoot=e}Rc.prototype.render=yg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Tc(e,t,null,null)};Rc.prototype.unmount=yg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bi(function(){Tc(null,e,null,null)}),t[cr]=null}};function Rc(e){this._internalRoot=e}Rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pr.length&&t!==0&&t<Pr[n].priority;n++);Pr.splice(n,0,e),n===0&&Ob(e)}};function Cg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ac(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function My(){}function XI(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Au(s);o.call(u)}}var s=nw(t,r,e,0,null,!1,!1,"",My);return e._reactRootContainer=s,e[cr]=s.current,la(e.nodeType===8?e.parentNode:e),Bi(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Au(l);a.call(u)}}var l=mg(e,0,!1,null,null,!1,!1,"",My);return e._reactRootContainer=l,e[cr]=l.current,la(e.nodeType===8?e.parentNode:e),Bi(function(){Tc(t,l,n,r)}),l}function Oc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Au(s);a.call(l)}}Tc(t,s,e,i)}else s=XI(n,t,e,i,r);return Au(s)}Nb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ds(t.pendingLanes);
40n!==0&&(Bh(t,n|1),nn(t,pt()),!(Fe&6)&&(Fo=pt()+500,ci()))}break;case 13:Bi(function(){var r=dr(e,1);if(r!==null){var i=Gt();zn(r,e,1,i)}}),vg(e,1)}};jh=function(e){if(e.tag===13){var t=dr(e,134217728);if(t!==null){var n=Gt();zn(t,e,134217728,n)}vg(e,134217728)}};Tb=function(e){if(e.tag===13){var t=$r(e),n=dr(e,t);if(n!==null){var r=Gt();zn(n,e,t,r)}vg(e,t)}};Rb=function(){return $e};Ab=function(e,t){var n=$e;try{return $e=e,t()}finally{$e=n}};Vf=function(e,t,n){switch(t){case"input":if(Bf(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Lc(r);if(!i)throw Error(j(90));fb(r),Bf(r,i)}}}break;case"textarea":hb(e,n);break;case"select":t=n.value,t!=null&&wo(e,!!n.multiple,t,!1)}};wb=fg;xb=Bi;var JI={usingClientEntryPoint:!1,Events:[$a,uo,Lc,Cb,bb,fg]},ys={findFiberByHostInstance:Ei,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},e3={bundleType:ys.bundleType,version:ys.version,rendererPackageName:ys.rendererPackageName,rendererConfig:ys.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_b(e),e===null?null:e.stateNode},findFiberByHostInstance:ys.findFiberByHostInstance||ZI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{xc=jl.inject(e3),Qn=jl}catch{}}hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JI;hn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cg(t))throw Error(j(200));return QI(e,t,null,n)};hn.createRoot=function(e,t){if(!Cg(e))throw Error(j(299));var n=!1,r="",i=rw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=mg(e,1,!1,null,null,n,!1,r,i),e[cr]=t.current,la(e.nodeType===8?e.parentNode:e),new yg(t)};hn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=_b(t),e=e===null?null:e.stateNode,e};hn.flushSync=function(e){return Bi(e)};hn.hydrate=function(e,t,n){if(!Ac(t))throw Error(j(200));return Oc(null,e,t,!0,n)};hn.hydrateRoot=function(e,t,n){if(!Cg(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=rw;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=nw(t,null,e,1,n??null,i,!1,o,s),e[cr]=t.current,la(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Rc(t)};hn.render=function(e,t,n){if(!Ac(t))throw Error(j(200));return Oc(null,e,t,!1,n)};hn.unmountComponentAtNode=function(e){if(!Ac(e))throw Error(j(40));return e._reactRootContainer?(Bi(function(){Oc(null,null,e,!1,function(){e._reactRootContainer=null,e[cr]=null})}),!0):!1};hn.unstable_batchedUpdates=fg;hn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ac(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Oc(e,t,n,!1,r)};hn.version="18.3.1-next-f1338f8080-20240426";function iw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iw)}catch(e){console.error(e)}}iw(),ib.exports=hn;var yr=ib.exports;const t3=bc(yr);var Dy=yr;Df.createRoot=Dy.createRoot,Df.hydrateRoot=Dy.hydrateRoot;/**
41 * @remix-run/router v1.19.2
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},va.apply(this,arguments)}var Tr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Tr||(Tr={}));const Ny="popstate";function n3(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return Sp("",{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:sw(i)}return i3(t,n,null,e)}function vt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ow(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function r3(){return Math.random().toString(36).substr(2,8)}function Ty(e,t){return{usr:e.state,key:e.key,idx:t}}function Sp(e,t,n,r){return n===void 0&&(n=null),va({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ts(t):t,{state:n,key:t&&t.key||r||r3()})}function sw(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ts(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function i3(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Tr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(va({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Tr.Pop;let w=c(),C=w==null?null:w-u;u=w,l&&l({action:a,location:v.location,delta:C})}
vendor: 3,439 bytes, line 49
49function f(w,C){a=Tr.Push;let y=Sp(v.location,w,C);u=c()+1;let b=Ty(y,u),x=v.createHref(y);try{s.pushState(b,"",x)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(x)}o&&l&&l({action:a,location:v.location,delta:1})}function h(w,C){a=Tr.Replace;let y=Sp(v.location,w,C);u=c();let b=Ty(y,u),x=v.createHref(y);s.replaceState(b,"",x),o&&l&&l({action:a,location:v.location,delta:0})}function g(w){let C=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof w=="string"?w:sw(w);return y=y.replace(/ $/,"%20"),vt(C,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,C)}let v={get action(){return a},get location(){return e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Ny,d),l=w,()=>{i.removeEventListener(Ny,d),l=null}},createHref(w){return t(i,w)},createURL:g,encodeLocation(w){let C=g(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:f,replace:h,go(w){return s.go(w)}};return v}var Ry;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ry||(Ry={}));function o3(e,t,n){return n===void 0&&(n="/"),s3(e,t,n,!1)}function s3(e,t,n,r){let i=typeof t=="string"?ts(t):t,o=uw(i.pathname||"/",n);if(o==null)return null;let s=aw(e);a3(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=y3(o);a=m3(s[l],u,r)}return a}function aw(e,t,n,r){t===void 0&&(t=[]),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("/")&&(vt(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=Mi([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(vt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),aw(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:h3(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of lw(o.path))i(o,s,l)}),t}function lw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=lw(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function a3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:g3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const l3=/^:[\w-]+$/,u3=3,c3=2,d3=1,f3=10,p3=-2,Ay=e=>e==="*";function h3(e,t){let n=e.split("/"),r=n.length;return n.some(Ay)&&(r+=p3),t&&(r+=c3),n.filter(i=>!Ay(i)).reduce((i,o)=>i+(l3.test(o)?u3:o===""?d3:f3),r)}function g3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function m3(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",d=Oy({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Oy({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
vendor: 13,899 bytes, lines 49-80
49Object.assign(i,d.params),s.push({params:i,pathname:Mi([o,d.pathname]),pathnameBase:x3(Mi([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=Mi([o,d.pathnameBase]))}return s}function Oy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=v3(e.path,e.caseSensitive,e.end),i=t.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)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let v=a[d]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[d];return h&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function v3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ow(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function y3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ow(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function uw(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function C3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ts(e):e;return{pathname:n?n.startsWith("/")?n:b3(n,t):t,search:E3(r),hash:S3(i)}}function b3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Qd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` 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 w3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cw(e,t){let n=w3(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dw(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ts(e):(i=va({},e),vt(!i.pathname||!i.pathname.includes("?"),Qd("?","pathname","search",i)),vt(!i.pathname||!i.pathname.includes("#"),Qd("#","pathname","hash",i)),vt(!i.search||!i.search.includes("#"),Qd("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=C3(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Mi=e=>e.join("/").replace(/\/\/+/g,"/"),x3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,S3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fw=["post","put","patch","delete"];new Set(fw);const L3=["get",...fw];new Set(L3);/**
50 * React Router v6.26.2
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ya.apply(this,arguments)}const bg=p.createContext(null),I3=p.createContext(null),Ha=p.createContext(null),Fc=p.createContext(null),Qi=p.createContext({outlet:null,matches:[],isDataRoute:!1}),pw=p.createContext(null);function Va(){return p.useContext(Fc)!=null}function Ga(){return Va()||vt(!1),p.useContext(Fc).location}function hw(e){p.useContext(Ha).static||p.useLayoutEffect(e)}function gw(){let{isDataRoute:e}=p.useContext(Qi);return e?z3():k3()}function k3(){Va()||vt(!1);let e=p.useContext(bg),{basename:t,future:n,navigator:r}=p.useContext(Ha),{matches:i}=p.useContext(Qi),{pathname:o}=Ga(),s=JSON.stringify(cw(i,n.v7_relativeSplatPath)),a=p.useRef(!1);return hw(()=>{a.current=!0}),p.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=dw(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Mi([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}function P3(e,t){return M3(e,t)}function M3(e,t,n,r){Va()||vt(!1);let{navigator:i}=p.useContext(Ha),{matches:o}=p.useContext(Qi),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Ga(),c;if(t){var d;let w=typeof t=="string"?ts(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||vt(!1),c=w}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=o3(e,{pathname:h}),v=A3(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Mi([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Mi([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&v?p.createElement(Fc.Provider,{value:{location:ya({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Tr.Pop}},v):v}function D3(){let e=j3(),t=_3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:i},n):null,null)}const N3=p.createElement(D3,null);class T3 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Qi.Provider,{value:this.props.routeContext},p.createElement(pw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function R3(e){let{routeContext:t,match:n,children:r}=e,i=p.useContext(bg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Qi.Provider,{value:t},r)}function A3(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||vt(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,g=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let h,g=!1,v=null,w=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||N3,l&&(u<0&&f===0?(g=!0,w=null):u===f&&(g=!0,w=d.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,f+1)),y=()=>{let b;return h?b=v:g?b=w:d.route.Component?b=p.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,p.createElement(R3,{match:d,routeContext:{outlet:c,matches:C,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(T3,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:y(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):y()},null)}var mw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mw||{}),Ou=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ou||{});function O3(e){let t=p.useContext(bg);return t||vt(!1),t}function F3(e){let t=p.useContext(I3);return t||vt(!1),t}function B3(e){let t=p.useContext(Qi);return t||vt(!1),t}function vw(e){let t=B3(),n=t.matches[t.matches.length-1];return n.route.id||vt(!1),n.route.id}function j3(){var e;let t=p.useContext(pw),n=F3(Ou.UseRouteError),r=vw(Ou.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function z3(){let{router:e}=O3(mw.UseNavigateStable),t=vw(Ou.UseNavigateStable),n=p.useRef(!1);return hw(()=>{n.current=!0}),p.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ya({fromRouteId:t},o)))},[e,t])}function Fy(e){let{to:t,replace:n,state:r,relative:i}=e;Va()||vt(!1);let{future:o,static:s}=p.useContext(Ha),{matches:a}=p.useContext(Qi),{pathname:l}=Ga(),u=gw(),c=dw(t,cw(a,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return p.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function Sr(e){vt(!1)}function U3(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Tr.Pop,navigator:o,static:s=!1,future:a}=e;Va()&&vt(!1);let l=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:o,static:s,future:ya({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=ts(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:g="default"}=r,v=p.useMemo(()=>{let w=uw(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:h,key:g},navigationType:i}},[l,c,d,f,h,g,i]);return v==null?null:p.createElement(Ha.Provider,{value:u},p.createElement(Fc.Provider,{children:n,value:v}))}function $3(e){let{children:t,location:n}=e;return P3(_p(t),n)}new Promise(()=>{});function _p(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,i)=>{if(!p.isValidElement(r))return;let o=[...t,i];if(r.type===p.Fragment){n.push.apply(n,_p(r.props.children,o));return}r.type!==Sr&&vt(!1),!r.props.index||!r.props.children||vt(!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,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=_p(r.props.children,o)),n.push(s)}),n}/**
59 * React Router DOM v6.26.2
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */const W3="6";try{window.__reactRouterVersion=W3}catch{}const H3="startTransition",By=H_[H3];function V3(e){let{basename:t,children:n,future:r,window:i}=e,o=p.useRef();o.current==null&&(o.current=n3({window:i,v5Compat:!0}));let s=o.current,[a,l]=p.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=p.useCallback(d=>{u&&By?By(()=>l(d)):l(d)},[l,u]);return p.useLayoutEffect(()=>s.listen(c),[s,c]),p.createElement(U3,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var jy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jy||(jy={}));var zy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zy||(zy={}));/*! *****************************************************************************
68Copyright (c) Microsoft Corporation.
69
70Permission to use, copy, modify, and/or distribute this software for any
71purpose with or without fee is hereby granted.
72
73THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
74REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
75AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
76INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
77LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
78OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
79PERFORMANCE OF THIS SOFTWARE.
80***************************************************************************** */var Lp=function(e,t){return Lp=Object.
80setPrototypeOf||{__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])},Lp(e,t)};function qe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var oe=function(){return oe=Object.assign||function(t){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)&&(t[o]=n[o])}return t},oe.apply(this,arguments)};function wg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function G3(e,t,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(e,[])).next())})}function q3(e,t){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=t.call(e,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 yw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y3=function(e,t,n,r,i,o,s,a){if(!e){var l;if(t===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(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},K3=Y3,ht=yw(K3),ye=p.createContext(null);function Q3(){ht(!!p.useContext,"useGoogleMap is React hook and requires React version 16.8+");var e=p.useContext(ye);return ht(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}function Z3(e,t,n){return Object.keys(e).reduce(function(i,o){return t(i,e[o],o)},n)}function X3(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function J3(e,t,n,r){var i={},o=function(s,a){var l=n[a];l!==t[a]&&(i[a]=l,s(r,l))};return X3(e,o),i}function ek(e,t,n){var r=Z3(n,function(o,s,a){return typeof e[a]=="function"&&o.push(google.maps.event.addListener(t,s,e[a])),o},[]);return r}function tk(e){google.maps.event.removeListener(e)}function ke(e){e===void 0&&(e=[]),e.forEach(tk)}function Se(e){var t=e.updaterMap,n=e.eventMap,r=e.prevProps,i=e.nextProps,o=e.instance,s=ek(i,o,n);return J3(t,r,i,o),s}var Uy={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"},$y={extraMapTypes:function(e,t){t.forEach(function(r,i){e.mapTypes.set(String(i),r)})},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}};function nk(e){var t=e.children,n=e.options,r=e.id,i=e.mapContainerStyle,o=e.mapContainerClassName,s=e.center,a=e.onClick,l=e.onDblClick,u=e.onDrag,c=e.onDragEnd,d=e.onDragStart,f=e.onMouseMove,h=e.onMouseOut,g=e.onMouseOver,v=e.onMouseDown,w=e.onMouseUp,C=e.onRightClick,y=e.onCenterChanged,b=e.onLoad,x=e.onUnmount,S=p.useState(null),E=S[0],L=S[1],_=p.useRef(null),P=p.use
80State(null),I=P[0],R=P[1],q=p.useState(null),V=q[0],z=q[1],Z=p.useState(null),Q=Z[0],F=Z[1],D=p.useState(null),B=D[0],O=D[1],U=p.useState(null),X=U[0],fe=U[1],ue=p.useState(null),ge=ue[0],N=ue[1],pe=p.useState(null),Ne=pe[0],ne=pe[1],we=p.useState(null),Te=we[0],M=we[1],k=p.useState(null),T=k[0],$=k[1],re=p.useState(null),ee=re[0],Me=re[1],De=p.useState(null),ae=De[0],Re=De[1],he=p.useState(null),Ue=he[0],se=he[1];return p.useEffect(function(){n&&E!==null&&E.setOptions(n)},[E,n]),p.useEffect(function(){E!==null&&typeof s<"u"&&E.setCenter(s)},[E,s]),p.useEffect(function(){E&&l&&(V!==null&&google.maps.event.removeListener(V),z(google.maps.event.addListener(E,"dblclick",l)))},[l]),p.useEffect(function(){E&&c&&(Q!==null&&google.maps.event.removeListener(Q),F(google.maps.event.addListener(E,"dragend",c)))},[c]),p.useEffect(function(){E&&d&&(B!==null&&google.maps.event.removeListener(B),O(google.maps.event.addListener(E,"dragstart",d)))},[d]),p.useEffect(function(){E&&v&&(X!==null&&google.maps.event.removeListener(X),fe(google.maps.event.addListener(E,"mousedown",v)))},[v]),p.useEffect(function(){E&&f&&(ge!==null&&google.maps.event.removeListener(ge),N(google.maps.event.addListener(E,"mousemove",f)))},[f]),p.useEffect(function(){E&&h&&(Ne!==null&&google.maps.event.removeListener(Ne),ne(google.maps.event.addListener(E,"mouseout",h)))},[h]),p.useEffect(function(){E&&g&&(Te!==null&&google.maps.event.removeListener(Te),M(google.maps.event.addListener(E,"mouseover",g)))},[g]),p.useEffect(function(){E&&w&&(T!==null&&google.maps.event.removeListener(T),$(google.maps.event.addListener(E,"mouseup",w)))},[w]),p.useEffect(function(){E&&C&&(ee!==null&&google.maps.event.removeListener(ee),Me(google.maps.event.addListener(E,"rightclick",C)))},[C]),p.useEffect(function(){E&&a&&(ae!==null&&google.maps.event.removeListener(ae),Re(google.maps.event.addListener(E,"click",a)))},[a]),p.useEffect(function(){E&&u&&(Ue!==null&&google.maps.event.removeListener(Ue),se(google.maps.event.addListener(E,"drag",u)))},[u]),p.useEffect(function(){E&&y&&(I!==null&&google.maps.event.removeListener(I),R(google.maps.event.addListener(E,"center_changed",y)))},[a]),p.useEffect(function(){var zt=_.current===null?null:new google.maps.Map(_.current,n);return L(zt),zt!==null&&b&&b(zt),function(){zt!==null&&x&&x(zt)}},[]),m.jsx("div",{id:r,ref:_,style:i,className:o,children:m.jsx(ye.Provider,{value:E,children:E!==null?t:null})})}p.memo(nk);var xg=function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=this.getInstance();this.registeredEvents=Se({updaterMap:$y,eventMap:Uy,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{map:n}},this.setMapCallback)},t.prototype.componentDidUpdate=function(n){this.state.map!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:$y,eventMap:Uy,prevProps:n,nextProps:this.props,instance:this.state.map}))},t.prototype.componentWillUnmount=function(){this.state.map!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),ke(this.registeredEvents))},t.prototype.render=function(){return m.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:m.jsx(ye.Provider,{value:this.state.map,children:this.state.map!==null?this.props.children:null})})},t}(p.PureComponent),Li=typeof document<"u";function Cw(e){var t=e.url,n=e.id,r=e.nonce;return Li?new Promise(function(o,s){var a=document.getElementById(n),l=window;if(a){var u=a.getAttribute("data-state");if(a.src===t&&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(h){d&&d(h),s(h)};return}else a.remove()}var f=document.createElement("script");f.type="text/javascript",f.src=t,f.id=n,f.async=!0,f.nonce=r||"",f.onerror=function(g){f.setAttribute("data-state","error"),s(g)},l.initMap=function(){f.setAttribute("data-state","ready"),o(n)},document.head.appendChild(f)}
80).catch(function(i){throw console.error("injectScript error: ",i),i}):Promise.reject(new Error("document is undefined"))}function Wy(e){var t=e.href;return t&&(t.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text")===0)?!0:e.tagName.toLowerCase()==="style"&&e.styleSheet&&e.styleSheet.cssText&&e.styleSheet.cssText.replace(`\r
81`,"").indexOf(".gm-style")===0?(e.styleSheet.cssText="",!0):e.tagName.toLowerCase()==="style"&&e.innerHTML&&e.innerHTML.replace(`\r
82`,"").indexOf(".gm-style")===0?(e.innerHTML="",!0):e.tagName.toLowerCase()==="style"&&!e.styleSheet&&!e.innerHTML}function bw(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(i,o){return Wy(i)||Reflect.apply(t,e,[i,o]),i};var n=e.appendChild.bind(e);e.appendChild=function(i){return Wy(i)||Reflect.apply(n,e,[i]),i}}}function ww(e){var t=e.googleMapsApiKey,n=e.googleMapsClientId,r=e.version,i=r===void 0?"weekly":r,o=e.language,s=e.region,a=e.libraries,l=e.channel,u=e.mapIds,c=e.authReferrerPolicy,d=[];return ht(t&&n||!(t&&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."),t?d.push("key=".concat(t)):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 Cs=!1;function xw(){return m.jsx("div",{children:"Loading..."})}var Ip={id:"script-loader",version:"weekly"};(function(e){qe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.check=p.createRef(),n.state={loaded:!1},n.cleanupCallback=function(){delete window.google.maps,n.injectScript()},n.isCleaningUp=function(){return G3(n,void 0,void 0,function(){function r(i){if(!Cs)i();else if(Li)var o=window.setInterval(function(){Cs||(window.clearInterval(o),i())},1)}return q3(this,function(i){return[2,new Promise(r)]})})},n.cleanup=function(){Cs=!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"}
82).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&&bw(),ht(!!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:ww(n.props)};Cw(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(`
83          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 />
84          Otherwise it is a Network issue.
85        `))})},n}return t.prototype.componentDidMount=function(){if(Li){if(window.google&&window.google.maps&&!Cs){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)})}},t.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"),Li&&n.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))},t.prototype.componentWillUnmount=function(){var n=this;if(Li){this.cleanup();var r=function(){n.check.current||(delete window.google,Cs=!1)};window.setTimeout(r,1),this.props.onUnmount&&this.props.onUnmount()}},t.prototype.render=function(){return m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||m.jsx(xw,{})]})},t.defaultProps=Ip,t})(p.PureComponent);var Hy;function Eg(e){var t=e.id,n=t===void 0?Ip.id:t,r=e.version,i=r===void 0?Ip.version:r,o=e.nonce,s=e.googleMapsApiKey,a=e.googleMapsClientId,l=e.language,u=e.region,c=e.libraries,d=e.preventGoogleFontsLoading,f=e.channel,h=e.mapIds,g=e.authReferrerPolicy,v=p.useRef(!1),w=p.useState(!1),C=w[0],y=w[1],b=p.useState(void 0),x=b[0],S=b[1];p.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]),p.useEffect(function(){Li&&d&&bw()},[d]),p.useEffect(function(){C&&ht(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[C]);var E=ww({version:i,googleMapsApiKey:s,googleMapsClientId:a,language:l,region:u,libraries:c,channel:f,mapIds:h,authReferrerPolicy:g});p.useEffect(function(){if(!Li)return;function P(){v.current&&(y(!0),Hy=E)}if(window.google&&window.google.maps&&Hy===E){P();return}Cw({id:n,url:E,nonce:o}).then(P).catch(function(R){v.current&&S(R),console.warn(`
86        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||"-",`)
87        Otherwise it is a Network issue.
88      `)),console.error(R)})},[n,E,o]);var L=p.useRef();return p.useEffect(function(){L.current&&c!==L.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"),L.current=c},[c]),{isLoaded:C,loadError:x,url:E}}var rk=m.jsx(xw,{});function ik(e){var t=e.loadingElement,n=e.onLoad,r=e.onError,i=e.onUnmount,o=e.children,s=wg(e,["loadingElement","onLoad","onError","onUnmount","children"]),a=Eg(s),l=a.isLoaded,u=a.loadError;return p.useEffect(function(){l&&typeof n=="function"&&n()},[l,n]),p.useEffect(function(){u&&typeof r=="function"&&r(u)},[u,r]),p.useEffect(function(){return function(){i&&i()}},[i]),l?o:t||rk}p.memo(ik);var Vy;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Vy||(Vy={}));var Gy={},qy={options:function(e,t){e.setOptions(t)}};function ok(e){var t=e.options,n=e.onLoad,r=e.onUnmount,i=p.useContext(ye),o=p.useState(null),s=o[0],a=o[1];return p.useEffect(function(){s!==null&&s.setMap(i)},[i]),p.useEffect(function(){t&&s!==null&&s.setOptions(t)},[s,t]),p.useEffect(function(){var l=new google.maps.TrafficLayer(oe(oe({},t||{}),{map:i}));return a(l),n&&n(l),function(){s!==null&&(r&&r(s),s.setMap(null))}},[]),null}p.memo(ok);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.TrafficLayer(oe(oe({},this.props.options||{}),{map:this.context}));this.registeredEvents=Se({updaterMap:qy,eventMap:Gy,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{trafficLayer:n}},this.setTrafficLayerCallback)},t.prototype.componentDidUpdate=function(n){this.state.trafficLayer!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:qy,eventMap:Gy,prevProps:n,nextProps:this.props,instance:this.state.trafficLayer}))},t.prototype.componentWillUnmount=function(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),ke(this.registeredEvents),this.state.trafficLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);function sk(e){var t=e.onLoad,n=e.onUnmount,r=p.useContext(ye),i=p.useState(null),o=i[0],s=i[1];return p.useEffect(function(){o!==null&&o.setMap(r)},[r]),p.useEffect(function(){var a=new google.maps.BicyclingLayer;return s(a),a.setMap(r),t&&t(a),function(){a!==null&&(n&&n(a),a.setMap(null))}},[]),null}p.memo(sk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.BicyclingLayer;this.setState(function(){return{bicyclingLayer:n}},this.setBicyclingLayerCallback)},t.prototype.componentWillUnmount=function(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);function ak(e){var t=e.onLoad,n=e.onUnmount,r=p.useContext(ye),i=p.useState(null),o=i[0],s=i[1];return p.useEffect(function(){o!==null&&o.setMap(r)},[r]),p.useEffect(function(){var a=new google.maps.TransitLayer;return s(a),a.setMap(r),t&&t(a),function(){o!==null&&(n&&n(o),o.setMap(null))}},[]),null}p.memo(ak);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:n}},this.setTransitLayerCallback)},t.prototype.componentWillUnmount=function(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var Yy={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},Ky={drawingMode:function(e,t){e.setDrawingMode(t)},options:function(e,t){e.setOptions(t)}};function lk(e){var t=e.options,n=e.drawingMode,r=e.onCircleComplete,i=e.onMarkerComplete,o=e.onOverlayComplete,s=e.onPolygonComplete,a=e.onPolylineComplete,l=e.onRectangleComplete,u=e.onLoad,c=e.onUnmount,d=p.useContext(ye),f=p.use
88State(null),h=f[0],g=f[1],v=p.useState(null),w=v[0],C=v[1],y=p.useState(null),b=y[0],x=y[1],S=p.useState(null),E=S[0],L=S[1],_=p.useState(null),P=_[0],I=_[1],R=p.useState(null),q=R[0],V=R[1],z=p.useState(null),Z=z[0],Q=z[1];return p.useEffect(function(){h!==null&&h.setMap(d)},[d]),p.useEffect(function(){t&&h!==null&&h.setOptions(t)},[h,t]),p.useEffect(function(){h!==null&&h.setDrawingMode(n??null)},[h,n]),p.useEffect(function(){h&&r&&(w!==null&&google.maps.event.removeListener(w),C(google.maps.event.addListener(h,"circlecomplete",r)))},[h,r]),p.useEffect(function(){h&&i&&(b!==null&&google.maps.event.removeListener(b),x(google.maps.event.addListener(h,"markercomplete",i)))},[h,i]),p.useEffect(function(){h&&o&&(E!==null&&google.maps.event.removeListener(E),L(google.maps.event.addListener(h,"overlaycomplete",o)))},[h,o]),p.useEffect(function(){h&&s&&(P!==null&&google.maps.event.removeListener(P),I(google.maps.event.addListener(h,"polygoncomplete",s)))},[h,s]),p.useEffect(function(){h&&a&&(q!==null&&google.maps.event.removeListener(q),V(google.maps.event.addListener(h,"polylinecomplete",a)))},[h,a]),p.useEffect(function(){h&&l&&(Z!==null&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(h,"rectanglecomplete",l)))},[h,l]),p.useEffect(function(){ht(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var F=new google.maps.drawing.DrawingManager(oe(oe({},t||{}),{map:d}));return n&&F.setDrawingMode(n),r&&C(google.maps.event.addListener(F,"circlecomplete",r)),i&&x(google.maps.event.addListener(F,"markercomplete",i)),o&&L(google.maps.event.addListener(F,"overlaycomplete",o)),s&&I(google.maps.event.addListener(F,"polygoncomplete",s)),a&&V(google.maps.event.addListener(F,"polylinecomplete",a)),l&&Q(google.maps.event.addListener(F,"rectanglecomplete",l)),g(F),u&&u(F),function(){h!==null&&(w&&google.maps.event.removeListener(w),b&&google.maps.event.removeListener(b),E&&google.maps.event.removeListener(E),P&&google.maps.event.removeListener(P),q&&google.maps.event.removeListener(q),Z&&google.maps.event.removeListener(Z),c&&c(h),h.setMap(null))}},[]),null}p.memo(lk);(function(e){qe(t,e);function t(n){var r=e.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)},ht(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),r}return t.prototype.componentDidMount=function(){var n=new google.maps.drawing.DrawingManager(oe(oe({},this.props.options||{}),{map:this.context}));this.registeredEvents=Se({updaterMap:Ky,eventMap:Yy,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{drawingManager:n}},this.setDrawingManagerCallback)},t.prototype.componentDidUpdate=function(n){this.state.drawingManager!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:Ky,eventMap:Yy,prevProps:n,nextProps:this.props,instance:this.state.drawingManager}))},t.prototype.componentWillUnmount=function(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),ke(this.registeredEvents),this.state.drawingManager.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var Qy={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"},Zy={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},map:function(e,t){e.setMap(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)}
88,visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},Fu={};function uk(e){var t=e.position,n=e.options,r=e.clusterer,i=e.noClustererRedraw,o=e.children,s=e.draggable,a=e.visible,l=e.animation,u=e.clickable,c=e.cursor,d=e.icon,f=e.label,h=e.opacity,g=e.shape,v=e.title,w=e.zIndex,C=e.onClick,y=e.onDblClick,b=e.onDrag,x=e.onDragEnd,S=e.onDragStart,E=e.onMouseOut,L=e.onMouseOver,_=e.onMouseUp,P=e.onMouseDown,I=e.onRightClick,R=e.onClickableChanged,q=e.onCursorChanged,V=e.onAnimationChanged,z=e.onDraggableChanged,Z=e.onFlatChanged,Q=e.onIconChanged,F=e.onPositionChanged,D=e.onShapeChanged,B=e.onTitleChanged,O=e.onVisibleChanged,U=e.onZindexChanged,X=e.onLoad,fe=e.onUnmount,ue=p.useContext(ye),ge=p.useState(null),N=ge[0],pe=ge[1],Ne=p.useState(null),ne=Ne[0],we=Ne[1],Te=p.useState(null),M=Te[0],k=Te[1],T=p.useState(null),$=T[0],re=T[1],ee=p.useState(null),Me=ee[0],De=ee[1],ae=p.useState(null),Re=ae[0],he=ae[1],Ue=p.useState(null),se=Ue[0],zt=Ue[1],tr=p.useState(null),Dn=tr[0],fi=tr[1],He=p.useState(null),A=He[0],G=He[1],Y=p.useState(null),Ce=Y[0],Ae=Y[1],be=p.useState(null),Be=be[0],me=be[1],Ut=p.useState(null),$t=Ut[0],Ve=Ut[1],gt=p.useState(null),yn=gt[0],wr=gt[1],eo=p.useState(null),pi=eo[0],gl=eo[1],sv=p.useState(null),ml=sv[0],av=sv[1],lv=p.useState(null),vl=lv[0],uv=lv[1],cv=p.useState(null),yl=cv[0],dv=cv[1],fv=p.useState(null),Cl=fv[0],pv=fv[1],hv=p.useState(null),gv=hv[0],mv=hv[1],vv=p.useState(null),bl=vv[0],yv=vv[1],Cv=p.useState(null),wl=Cv[0],bv=Cv[1],wv=p.useState(null),xl=wv[0],xv=wv[1];p.useEffect(function(){N!==null&&N.setMap(ue)},[ue]),p.useEffect(function(){typeof n<"u"&&N!==null&&N.setOptions(n)},[N,n]),p.useEffect(function(){typeof s<"u"&&N!==null&&N.setDraggable(s)},[N,s]),p.useEffect(function(){t&&N!==null&&N.setPosition(t)},[N,t]),p.useEffect(function(){typeof a<"u"&&N!==null&&N.setVisible(a)},[N,a]),p.useEffect(function(){N==null||N.setAnimation(l)},[N,l]),p.useEffect(function(){N&&u!==void 0&&N.setClickable(u)},[N,u]),p.useEffect(function(){N&&c!==void 0&&N.setCursor(c)},[N,c]),p.useEffect(function(){N&&d!==void 0&&N.setIcon(d)},[N,d]),p.useEffect(function(){N&&f!==void 0&&N.setLabel(f)},[N,f]),p.useEffect(function(){N&&h!==void 0&&N.setOpacity(h)},[N,h]),p.useEffect(function(){N&&g!==void 0&&N.setShape(g)},[N,g]),p.useEffect(function(){N&&v!==void 0&&N.setTitle(v)},[N,v]),p.useEffect(function(){N&&w!==void 0&&N.setZIndex(w)},[N,w]),p.useEffect(function(){N&&y&&(ne!==null&&google.maps.event.removeListener(ne),we(google.maps.event.addListener(N,"dblclick",y)))},[y]),p.useEffect(function(){N&&x&&(M!==null&&google.maps.event.removeListener(M),k(google.maps.event.addListener(N,"dragend",x)))},[x]),p.useEffect(function(){N&&S&&($!==null&&google.maps.event.removeListener($),re(google.maps.event.addListener(N,"dragstart",S)))},[S]),p.useEffect(function(){N&&P&&(Me!==null&&google.maps.event.removeListener(Me),De(google.maps.event.addListener(N,"mousedown",P)))},[P]),p.useEffect(function(){N&&E&&(Re!==null&&google.maps.event.removeListener(Re),he(google.maps.event.addListener(N,"mouseout",E)))},[E]),p.useEffect(function(){N&&L&&(se!==null&&google.maps.event.removeListener(se),zt(google.maps.event.addListener(N,"mouseover",L)))},[L]),p.useEffect(function(){N&&_&&(Dn!==null&&google.maps.event.removeListener(Dn),fi(google.maps.event.addListener(N,"mouseup",_)))},[_]),p.useEffect(function(){N&&I&&(A!==null&&google.maps.event.removeListener(A),G(google.maps.event.addListener(N,"rightclick",I)))},[I]),p.useEffect(function(){N&&C&&(Ce!==null&&google.maps.event.removeListener(Ce),Ae(google.maps.event.addListener(N,"click",C)))},[C]),p.useEffect(function(){N&&b&&(Be!==null&&google.maps.event.removeListener(Be),me(google.maps.event.addListener(N,"drag",b)))},[b]),p.useEffect(function(){N&&R&&($t!==null&&google.maps.event.removeListener($t),Ve(google.maps.event.addListener(N,"clickable_changed",R)))},[R]),p.useEffect(function(){N&&q&&(yn!==null&&google.maps.event.removeListener(yn),wr(google.maps.event.addListener(N,"cursor_changed",q)))},[q]),p.useEffect(function(){N&&V&&(pi!==null&&google.maps.event.removeListener(pi),gl(google.maps.event.addListener(N,"animation_changed",V)))},[V]),p.useEffect(function(){N&&z&&(ml!==null&&google.maps.event.removeListener(ml),av(google.maps.event.addListener(N,"draggable_changed",z)))},[z]),p.useEffect(function(){N&&Z&&(vl!==null&&google.maps.event.removeListener(vl),uv(google.maps.event.addListener(N,"flat_changed",Z)))},[Z]),p.useEffect(function(){N&&Q&&(yl!==null&&google.maps.event.removeListener(yl),dv(google.maps.event.addListener(N,"icon_changed",Q)))},[Q]),p.useEffect(function(){N&&F&&(Cl!==null&&google.maps.event.removeListener(Cl),pv(google.maps.event.addListener(N,"position_changed",F)))},[F]),p.useEffect(function(){N&&D&&(gv!==null&&google.maps.event.removeListener(gv),mv(google.maps.event.addListener(N,"shape_changed",D)))},[D]),p.useEffect(function(){N&&B&&(bl!==null&&google.maps.event.removeListener(bl),yv(google.maps.event.addListener(N,"title_changed",B)))},[B]),p.useEffect(function(){N&&O&&(wl!==null&&google.maps.event.removeListener(wl),bv(google.maps.event.addListener(N,"visible_changed",O)))},[O]),p.useEffect(function(){N&&U&&(xl!==null&&google.maps.event.removeListener(xl),xv(google.maps.event.addListener(N,"zindex_changed",U)))},[U]),p.useEffect(function(){var cs=oe(oe(oe({},n||Fu),r?Fu:{map:ue}),{position:t}),ve=new google.maps.Marker(cs);
88return r?r.addMarker(ve,!!i):ve.setMap(ue),t&&ve.setPosition(t),typeof a<"u"&&ve.setVisible(a),typeof s<"u"&&ve.setDraggable(s),typeof u<"u"&&ve.setClickable(u),typeof c=="string"&&ve.setCursor(c),d&&ve.setIcon(d),typeof f<"u"&&ve.setLabel(f),typeof h<"u"&&ve.setOpacity(h),g&&ve.setShape(g),typeof v=="string"&&ve.setTitle(v),typeof w=="number"&&ve.setZIndex(w),y&&we(google.maps.event.addListener(ve,"dblclick",y)),x&&k(google.maps.event.addListener(ve,"dragend",x)),S&&re(google.maps.event.addListener(ve,"dragstart",S)),P&&De(google.maps.event.addListener(ve,"mousedown",P)),E&&he(google.maps.event.addListener(ve,"mouseout",E)),L&&zt(google.maps.event.addListener(ve,"mouseover",L)),_&&fi(google.maps.event.addListener(ve,"mouseup",_)),I&&G(google.maps.event.addListener(ve,"rightclick",I)),C&&Ae(google.maps.event.addListener(ve,"click",C)),b&&me(google.maps.event.addListener(ve,"drag",b)),R&&Ve(google.maps.event.addListener(ve,"clickable_changed",R)),q&&wr(google.maps.event.addListener(ve,"cursor_changed",q)),V&&gl(google.maps.event.addListener(ve,"animation_changed",V)),z&&av(google.maps.event.addListener(ve,"draggable_changed",z)),Z&&uv(google.maps.event.addListener(ve,"flat_changed",Z)),Q&&dv(google.maps.event.addListener(ve,"icon_changed",Q)),F&&pv(google.maps.event.addListener(ve,"position_changed",F)),D&&mv(google.maps.event.addListener(ve,"shape_changed",D)),B&&yv(google.maps.event.addListener(ve,"title_changed",B)),O&&bv(google.maps.event.addListener(ve,"visible_changed",O)),U&&xv(google.maps.event.addListener(ve,"zindex_changed",U)),pe(ve),X&&X(ve),function(){ne!==null&&google.maps.event.removeListener(ne),M!==null&&google.maps.event.removeListener(M),$!==null&&google.maps.event.removeListener($),Me!==null&&google.maps.event.removeListener(Me),Re!==null&&google.maps.event.removeListener(Re),se!==null&&google.maps.event.removeListener(se),Dn!==null&&google.maps.event.removeListener(Dn),A!==null&&google.maps.event.removeListener(A),Ce!==null&&google.maps.event.removeListener(Ce),$t!==null&&google.maps.event.removeListener($t),yn!==null&&google.maps.event.removeListener(yn),pi!==null&&google.maps.event.removeListener(pi),ml!==null&&google.maps.event.removeListener(ml),vl!==null&&google.maps.event.removeListener(vl),yl!==null&&google.maps.event.removeListener(yl),Cl!==null&&google.maps.event.removeListener(Cl),bl!==null&&google.maps.event.removeListener(bl),wl!==null&&google.maps.event.removeListener(wl),xl!==null&&google.maps.event.removeListener(xl),fe&&fe(ve),r?r.removeMarker(ve,!!i):ve&&ve.setMap(null)}},[]);var I_=p.useMemo(function(){return o?p.Children.map(o,function(cs){if(!p.isValidElement(cs))return cs;var ve=cs;return p.cloneElement(ve,{anchor:N})}):null},[o,N]);return m.jsx(m.Fragment,{children:I_})||null}p.memo(uk);var Bu=function(e){qe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.registeredEvents=[],n}return t.prototype.componentDidMount=function(){var n=oe(oe(oe({},this.props.options||Fu),this.props.clusterer?Fu:{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=Se({updaterMap:Zy,eventMap:Qy,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},t.prototype.componentDidUpdate=function(n){this.marker&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:Zy,eventMap:Qy,prevProps:n,nextProps:this.props,instance:this.marker}))},t.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),ke(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},t.prototype.render=function(){var n=this,r=null;return this.props.children&&(r=p.Children.map(this.props.children,function(i){if(!p.isValidElement(i))return i;var o=i;return p.cloneElement(o,{anchor:n.marker})})),r||null},t.contextType=ye,t}(p.PureComponent),ck=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,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(t.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 e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(t){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>
88r&&s.setZoom(r+1)}},100)}t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var t;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),(t=this.getPanes())===null||t===void 0||t.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))},e.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)},e.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var t=this.getPosFromLatLng(this.center);this.div.style.top=t!==null?"".concat(t.y,"px"):"0",this.div.style.left=t!==null?"".concat(t.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var t,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(((t=l[0])===null||t===void 0?void 0:t.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 f=document.createElement("img");f.alt=a,f.src=this.url,f.width=this.width,f.height=this.height,f.setAttribute("style","position: absolute; top: ".concat(c,"px; left: ").concat(u,"px")),this.cluster.getClusterer().enableRetinaIcons||(f.style.clip="rect(-".concat(c,"px, -").concat(u+this.width,"px, -").concat(c+this.height,", -").concat(u,")"));var h=document.createElement("div");h.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&&(h.innerText="".concat((i=this.sums)===null||i===void 0?void 0:i.text)),!((o=this.sums)===null||o===void 0)&&o.html&&(h.innerHTML="".concat((s=this.sums)===null||s===void 0?void 0:s.html)),this.div.innerHTML="",this.div.appendChild(f),this.div.appendChild(h),this.div.title=a,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(t){this.sums=t;var n=this.cluster.getClusterer().getStyles(),r=n[Math.min(n.length-1,Math.max(0,t.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")},e.prototype.setCenter=function(t){this.center=t},e.prototype.getPosFromLatLng=function(t){var n=this.getProjection().fromLatLngToDivPixel(t);return n!==null&&(n.x-=this.anchorIcon[1],n.y-=this.anchorIcon[0]),n},e}(),dk=function(){function e(t){this.markerClusterer=t,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 ck(this,this.markerClusterer.getStyles()),this.get
88Size=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 e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var t=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&&t.extend(s)}return t},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(t){var n;if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var r=t.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=t.getPosition();r&&(this.center=r,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);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)t.getMap()!==this.map&&t.setMap(this.map);else if(o<this.minClusterSize)t.getMap()!==this.map&&t.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 t.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(t){if(this.bounds!==null){var n=t.getPosition();if(n)return this.bounds.contains(n)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var t,n=this.markers.length,r=this.markerClusterer.getMaxZoom(),i=(t=this.map)===null||t===void 0?void 0:t.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()},e.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var n=0;n<this.markers.length;n++)if(t===this.markers[n])return!0;return!1},e}();function fk(e,t){var n=e.length,r=n.toString().length,i=Math.min(r,t);return{text:n.toString(),index:i,title:""}}var pk=2e3,hk=500,gk="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",mk="png",vk=[53,56,66,78,90],yk="cluster",Ew=function(){function e(t,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
88s=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(e,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||gk,this.imageExtension=r.imageExtension||mk,this.imageSizes=r.imageSizes||vk,this.calculator=r.calculator||fk,this.batchSize=r.batchSize||pk,this.batchSizeIE=r.batchSizeIE||hk,this.clusterClass=r.clusterClass||yk,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var t,n;this.resetViewport(!1),(((t=this.getMap())===null||t===void 0?void 0:t.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")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var t=this.getMap();this.activeMap=t,this.ready=!0,this.repaint(),t!==null&&(this.listeners=[google.maps.event.addListener(t,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(t,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var t=0,n=this.markers;t<n.length;t++){var r=n[t];r.getMap()!==this.activeMap&&r.setMap(this.activeMap)}
vendor: 4,494 bytes, line 88
88for(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},e.prototype.draw=function(){},e.prototype.getMap=function(){return null},e.prototype.getPanes=function(){return null},e.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}}},e.prototype.setMap=function(){},e.prototype.addListener=function(){return{remove:function(){}}},e.prototype.bindTo=function(){},e.prototype.get=function(){},e.prototype.notify=function(){},e.prototype.set=function(){},e.prototype.setValues=function(){},e.prototype.unbind=function(){},e.prototype.unbindAll=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:"".concat(this.imagePath+(t+1),".").concat(this.imageExtension),height:this.imageSizes[t]||0,width:this.imageSizes[t]||0})},e.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),n=new google.maps.LatLngBounds,r=0,i=t;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)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(t){this.gridSize=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(t){this.maxZoom=t},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(t){this.styles=t},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(t){this.title=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(t){this.averageCenter=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(t){this.imageExtension=t},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(t){this.imagePath=t},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(t){this.imageSizes=t},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(t){this.calculator=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(t){this.clusterClass=t},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(t,n){this.pushMarkerTo(t),n||this.redraw()},e.prototype.addMarkers=function(t,n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];i&&this.pushMarkerTo(i)}n||this.redraw()},e.prototype.pushMarkerTo=function(t){var n=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",function(){n.ready&&(t.isAdded=!1,n.repaint())}),t.isAdded=!1,this.markers.push(t)},e.prototype.removeMarker_=function(t){var n=-1;if(this.markers.indexOf)n=this.markers.indexOf(t);else for(var r=0;r<this.markers.length;r++)if(t===this.markers[r]){n=r;break}return n===-1?!1:(t.setMap(null),this.markers.splice(n,1),!0)},e.prototype.removeMarker=function(t,n){var r=this.removeMarker_(t);return!n&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,n){for(var r=!1,i=0,o=t;i<o.length;i++){var s=o[i];r=r||this.removeMarker_(s)}return!n&&r&&this.repaint(),r},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]}
88,e.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var r=0,i=t;r<i.length;r++){var o=i[r];o.remove()}},0)},e.prototype.getExtendedBounds=function(t){var n=this.getProjection(),r=n.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));r!==null&&(r.x+=this.gridSize,r.y-=this.gridSize);var i=n.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));if(i!==null&&(i.x-=this.gridSize,i.y+=this.gridSize),r!==null){var o=n.fromDivPixelToLatLng(r);o!==null&&t.extend(o)}if(i!==null){var s=n.fromDivPixelToLatLng(i);s!==null&&t.extend(s)}return t},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(t){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,t&&a.setMap(null)}},e.prototype.distanceBetweenPoints=function(t,n){var r=6371,i=(n.lat()-t.lat())*Math.PI/180,o=(n.lng()-t.lng())*Math.PI/180,s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.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)))},e.prototype.isMarkerInBounds=function(t,n){var r=t.getPosition();return r?n.contains(r):!1},e.prototype.addToClosestCluster=function(t){for(var n,r=4e4,i=null,o=0,s=this.cluster
88s;o<s.length;o++){var a=s[o];n=a;var l=n.getCenter(),u=t.getPosition();if(l&&u){var c=this.distanceBetweenPoints(l,u);c<r&&(r=c,i=n)}}i&&i.isMarkerInClusterBounds(t)?i.addMarker(t):(n=new dk(this),n.addMarker(t),this.clusters.push(n))},e.prototype.createClusters=function(t){var n=this;if(this.ready){t===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(t+this.batchSize,this.markers.length),u=t;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);
88for(var d=0,f=this.clusters;d<f.length;d++){var h=f[d];h.updateIcon()}}}},e.prototype.extend=function(t,n){return(function(i){for(var o in i.prototype){var s=o;this.prototype[s]=i.prototype[s]}return this}).apply(t,[n])},e}(),bn={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},je={averageCenter:function(e,t){e.setAverageCenter(t)},batchSizeIE:function(e,t){e.setBatchSizeIE(t)},calculator:function(e,t){e.setCalculator(t)},clusterClass:function(e,t){e.setClusterClass(t)},enableRetinaIcons:function(e,t){e.setEnableRetinaIcons(t)},gridSize:function(e,t){e.setGridSize(t)},ignoreHidden:function(e,t){e.setIgnoreHidden(t)},imageExtension:function(e,t){e.setImageExtension(t)},imagePath:function(e,t){e.setImagePath(t)},imageSizes:function(e,t){e.setImageSizes(t)},maxZoom:function(e,t){e.setMaxZoom(t)},minimumClusterSize:function(e,t){e.setMinimumClusterSize(t)},styles:function(e,t){e.setStyles(t)},title:function(e,t){e.setTitle(t)},zoomOnClick:function(e,t){e.setZoomOnClick(t)}},Ck={};function bk(e){var t=e.children,n=e.options,r=e.averageCenter,i=e.batchSizeIE,o=e.calculator,s=e.clusterClass,a=e.enableRetinaIcons,l=e.gridSize,u=e.ignoreHidden,c=e.imageExtension,d=e.imagePath,f=e.imageSizes,h=e.maxZoom,g=e.minimumClusterSize,v=e.styles,w=e.title,C=e.zoomOnClick,y=e.onClick,b=e.onClusteringBegin,x=e.onClusteringEnd,S=e.onMouseOver,E=e.onMouseOut,L=e.onLoad,_=e.onUnmount,P=p.useState(null),I=P[0],R=P[1],q=p.useContext(ye),V=p.useState(null),z=V[0],Z=V[1],Q=p.useState(null),F=Q[0],D=Q[1],B=p.useState(null),O=B[0],U=B[1],X=p.useState(null),fe=X[0],ue=X[1],ge=p.useState(null),N=ge[0],pe=ge[1];return p.useEffect(function(){I&&E&&(fe!==null&&google.maps.event.removeListener(fe),ue(google.maps.event.addListener(I,bn.onMouseOut,E)))},[E]),p.useEffect(function(){I&&S&&(N!==null&&google.maps.event.removeListener(N),pe(google.maps.event.addListener(I,bn.onMouseOver,S)))},[S]),p.useEffect(function(){I&&y&&(z!==null&&google.maps.event.removeListener(z),Z(google.maps.event.addListener(I,bn.onClick,y)))},[y]),p.useEffect(function(){I&&b&&(F!==null&&google.maps.event.removeListener(F),D(google.maps.event.addListener(I,bn.onClusteringBegin,b)))},[b]),p.useEffect(function(){I&&x&&(O!==null&&google.maps.event.removeListener(O),D(google.maps.event.addListener(I,bn.onClusteringEnd,x)))},[x]),p.useEffect(function(){typeof r<"u"&&I!==null&&je.averageCenter(I,r)},[I,r]),p.useEffect(function(){typeof i<"u"&&I!==null&&je.batchSizeIE(I,i)},[I,i]),p.useEffect(function(){typeof o<"u"&&I!==null&&je.calculator(I,o)},[I,o]),p.useEffect(function(){typeof s<"u"&&I!==null&&je.clusterClass(I,s)},[I,s]),p.useEffect(function(){typeof a<"u"&&I!==null&&je.enableRetinaIcons(I,a)},[I,a]),p.useEffect(function(){typeof l<"u"&&I!==null&&je.gridSize(I,l)},[I,l]),p.useEffect(function(){typeof u<"u"&&I!==null&&je.ignoreHidden(I,u)},[I,u]),p.useEffect(function(){typeof c<"u"&&I!==null&&je.imageExtension(I,c)},[I,c]),p.useEffect(function(){typeof d<"u"&&I!==null&&je.imagePath(I,d)},[I,d]),p.useEffect(function(){typeof f<"u"&&I!==null&&je.imageSizes(I,f)},[I,f]),p.useEffect(function(){typeof h<"u"&&I!==null&&je.maxZoom(I,h)},[I,h]),p.useEffect(function(){typeof g<"u"&&I!==null&&je.minimumClusterSize(I,g)},[I,g]),p.useEffect(function(){typeof v<"u"&&I!==null&&je.styles(I,v)},[I,v]),p.useEffect(function(){typeof w<"u"&&I!==null&&je.title(I,w)},[I,w]),p.useEffect(function(){typeof C<"u"&&I!==null&&je.zoomOnClick(I,C)},[I,C]),p.useEffect(function(){if(q){var Ne=oe({},n||Ck),ne=new Ew(q,[],Ne);return r&&je.averageCenter(ne,r),i&&je.batchSizeIE(ne,i),o&&je.calculator(ne,o),s&&je.clusterClass(ne,s),a&&je.enableRetinaIcons(ne,a),l&&je.gridSize(ne,l),u&&je.ignoreHidden(ne,u),c&&je.imageExtension(ne,c),d&&je.imagePath(ne,d),f&&je.imageSizes(ne,f),h&&je.maxZoom(ne,h),g&&je.minimumClusterSize(ne,g),v&&je.styles(ne,v),w&&je.title(ne,w),C&&je.zoomOnClick(ne,C),E&&ue(google.maps.event.addListener(ne,bn.onMouseOut,E)),S&&pe(google.maps.event.addListener(ne,bn.onMouseOver,S)),y&&Z(google.maps.event.addListener(ne,bn.onClick,y)),b&&D(google.maps.event.addListener(ne,bn.onClusteringBegin,b)),x&&U(google.maps.event.addListener(ne,bn.onClusteringEnd,x)),R(ne),L&&L(ne),function(){fe!==null&&google.maps.event.removeListener(fe),N!==null&&google.maps.event.removeListener(N),z!==null&&google.maps.event.removeListener(z),F!==null&&google.maps.event.removeListener(F),O!==null&&google.maps.event.removeListener(O),_&&_(ne)}}},[]),I!==null&&t(I)||null}p.memo(bk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){if(this.context){var n=new Ew(this.context,[],this.props.options);this.registeredEvents=Se({updaterMap:je,eventMap:bn,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{markerClusterer:n}},this.setClustererCallback)}},t.prototype.componentDidUpdate=function(n){this.state.markerClusterer&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:je,eventMap:bn,prevProps:n,nextProps:this.props,instance:this.state.markerClusterer}))},t.prototype.componentWillUnmount=function(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),ke(this.registeredEvents),this.state.markerClusterer.setMap(null))},t.prototype.render=function(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null},t.contextType=ye,t})(p.PureComponent);function Xy(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}var Sw=function(){function e(t){t===void 0&&(t={}),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
88ind(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(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",t.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),typeof t.visible>"u"&&(typeof t.isHidden>"u"?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var t=this,n=function(u){u.returnValue=!1,u.preventDefault&&u.preventDefault(),t.enableEventPropagation||Xy(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,Xy))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){t.div&&(t.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",n),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var t="";return this.closeBoxURL!==""&&(t='<img alt=""',t+=' aria-hidden="true"',t+=" src='"+this.closeBoxURL+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin+";",t+="'>"),t},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&this.closeBoxURL!==""?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(t){if(this.div&&!t){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,f=this.div.offsetHeight,h=this.infoBoxClearance.width,g=this.infoBoxClearance.height,v=this.getProjection(),w=v.fromLatLngToContainerPixel(this.position);w!==null&&(w.x<-u+h?r=w.x+u-h:w.x+d+u+h>a&&(r=w.x+d+u+h-a),this.alignBottom?w.y<-c+g+f?i=w.y+c-g-f:w.y+c+g>l&&(i=w.y+c+g-l):w.y<-c+g?i=w.y+c-g:w.y+f+c+g>l&&(i=w.y+f+c+g-l)),r===0&&i===0||n.panBy(r,i)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.div.style[n]=t[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")}},e.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView){var n=this.div.ownerDocument,r=n&&n.defaultView?n.defaultView.getComputedStyle(this.div,""):null;r&&(t.top=parseInt(r.borderTopWidth||"",10)||0,t.bottom=parseInt(r.borderBottomWidth||"",10)||0,t.left=parseInt(r.borderLeftWidth||"",10)||0,t.right=parseInt(r.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var i=this.div.currentStyle;i&&(t.top=parseInt(i.borderTopWidth||"",10)||0,t.bottom=parseInt(i.borderBottomWidth||"",10)||0,t.left=parseInt(i.borderLeftWidth||"",10)||0,t.right=parseInt(i.borderRightWidth||"",10)||0)}return t},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection(),n=t.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"}},e.prototype.setOptions=function(t){t===void 0&&(t={}),typeof t.boxClass<"u"&&(this.boxClass=t.boxClass,this.setBoxStyle()),typeof t.boxStyle<"u"&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),typeof t.content<"u"&&this.setContent(t.content),typeof t.disableAutoPan<"u"&&(this.disableAutoPan=t.disableAutoPan),typeof t.maxWidth<"u"&&(this.maxWidth=t.maxWidth),typeof t.pixelOffset<"u"&&(this.pixelOffset=t.pixelOffset),typeof t.alignBottom<"u"&&(this.alignBottom=t.alignBottom),typeof t.position<"u"&&this.setPosition(t.position),typeof t.zIndex<"u"&&this.setZIndex(t.zIndex),typeof t.closeBoxMargin<"u"&&(this.closeBoxMargin=t.closeBoxMargin),typeof t.closeBoxURL<"u"&&(this.closeBoxURL=t.closeBoxURL),typeof t.infoBoxClearance<"u"&&(this.infoBoxClearance=t.infoBoxClearance),typeof t.isHidden<"u"&&(this.isHidden=t.isHidden),typeof t.visible<"u"&&(this.isHidden=!t.visible),typeof t.enableEventPropagation<"u"&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof t=="string"?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof t=="string"?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var t=this.getMap();return typeof t>"u"||t===null?!1:!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(t,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(t),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0,n=this.eventListeners;t<n.length;t++){var r=n[t];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)},e.prototype.extend=function(t,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(t,[n])},e}(),Jy={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},e0={options:function(e,t){e.setOptions(t)},position:function(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},wk={};function xk(e){var t=e.children,n=e.anchor,r=e.options,i=e.position,o=e.zIndex,s=e.onCloseClick,a=e.onDomReady,l=e.onContentChanged,u=e.onPositionChanged,c=e.onZindexChanged,d=e.onLoad,f=e.onUnmount,h=p.useContext(ye),g=p.use
88State(null),v=g[0],w=g[1],C=p.useState(null),y=C[0],b=C[1],x=p.useState(null),S=x[0],E=x[1],L=p.useState(null),_=L[0],P=L[1],I=p.useState(null),R=I[0],q=I[1],V=p.useState(null),z=V[0],Z=V[1],Q=p.useRef(null);return p.useEffect(function(){h&&v!==null&&(v.close(),n?v.open(h,n):v.getPosition()&&v.open(h))},[h,v,n]),p.useEffect(function(){r&&v!==null&&v.setOptions(r)},[v,r]),p.useEffect(function(){if(i&&v!==null){var F=i instanceof google.maps.LatLng?i:new google.maps.LatLng(i.lat,i.lng);v.setPosition(F)}},[i]),p.useEffect(function(){typeof o=="number"&&v!==null&&v.setZIndex(o)},[o]),p.useEffect(function(){v&&s&&(y!==null&&google.maps.event.removeListener(y),b(google.maps.event.addListener(v,"closeclick",s)))},[s]),p.useEffect(function(){v&&a&&(S!==null&&google.maps.event.removeListener(S),E(google.maps.event.addListener(v,"domready",a)))},[a]),p.useEffect(function(){v&&l&&(_!==null&&google.maps.event.removeListener(_),P(google.maps.event.addListener(v,"content_changed",l)))},[l]),p.useEffect(function(){v&&u&&(R!==null&&google.maps.event.removeListener(R),q(google.maps.event.addListener(v,"position_changed",u)))},[u]),p.useEffect(function(){v&&c&&(z!==null&&google.maps.event.removeListener(z),Z(google.maps.event.addListener(v,"zindex_changed",c)))},[c]),p.useEffect(function(){if(h){var F=r||wk,D=F.position,B=wg(F,["position"]),O=void 0;D&&!(D instanceof google.maps.LatLng)&&(O=new google.maps.LatLng(D.lat,D.lng));var U=new Sw(oe(oe({},B),O?{position:O}:{}));Q.current=document.createElement("div"),w(U),s&&b(google.maps.event.addListener(U,"closeclick",s)),a&&E(google.maps.event.addListener(U,"domready",a)),l&&P(google.maps.event.addListener(U,"content_changed",l)),u&&q(google.maps.event.addListener(U,"position_changed",u)),c&&Z(google.maps.event.addListener(U,"zindex_changed",c)),U.setContent(Q.current),n?U.open(h,n):U.getPosition()?U.open(h):ht(!1,"You must provide either an anchor or a position prop for <InfoBox>."),d&&d(U)}return function(){v!==null&&(y&&google.maps.event.removeListener(y),_&&google.maps.event.removeListener(_),S&&google.maps.event.removeListener(S),R&&google.maps.event.removeListener(R),z&&google.maps.event.removeListener(z),f&&f(v),v.close())}},[]),Q.current?yr.createPortal(p.Children.only(t),Q.current):null}p.memo(xk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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):ht(!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 t.prototype.componentDidMount=function(){var n=this.props.options||{},r=n.position,i=wg(n,["position"]),o;r&&!(r instanceof google.maps.LatLng)&&(o=new google.maps.LatLng(r.lat,r.lng));var s=new Sw(oe(oe({},i),o?{position:o}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=Se({updaterMap:e0,eventMap:Jy,prevProps:{},nextProps:this.props,instance:s}),this.setState({infoBox:s},this.setInfoBoxCallback)},t.prototype.componentDidUpdate=function(n){var r=this.state.infoBox;r!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:e0,eventMap:Jy,prevProps:n,nextProps:this.props,instance:r}))},t.prototype.componentWillUnmount=function(){var n=this.props.onUnmount,r=this.state.infoBox;r!==null&&(n&&n(r),ke(this.registeredEvents),r.close())},t.prototype.render=function(){return this.containerElement?yr.createPortal(p.Children.only(this.props.children),this.containerElement):null},t.contextType=ye,t})(p.PureComponent);var Ek=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),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(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n},t0=yw(Ek);const n0=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array
vendor: 5,854 bytes, line 88
88],Zd=1,bs=8;class Sg{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,r]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const i=r>>4;if(i!==Zd)throw new Error(`Got v${i} data when expected v${Zd}.`);const o=n0[r&15];if(!o)throw new Error("Unrecognized array type.");const[s]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new Sg(a,s,o,t)}constructor(t,n=64,r=Float64Array,i){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=n0.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,a=t*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,bs,t),this.coords=new this.ArrayType(this.data,bs+a+l,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(bs+s+a+l),this.ids=new this.IndexArrayType(this.data,bs,t),this.coords=new this.ArrayType(this.data,bs+a+l,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(Zd<<4)+o]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=n,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return kp(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,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,f=l.pop()||0;if(d-f<=a){for(let w=f;w<=d;w++){const C=s[2*w],y=s[2*w+1];C>=t&&C<=r&&y>=n&&y<=i&&u.push(o[w])}continue}const h=f+d>>1,g=s[2*h],v=s[2*h+1];g>=t&&g<=r&&v>=n&&v<=i&&u.push(o[h]),(c===0?t<=g:n<=v)&&(l.push(f),l.push(h-1),l.push(1-c)),(c===0?r>=g:i>=v)&&(l.push(h+1),l.push(d),l.push(1-c))}return u}within(t,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,f=a.pop()||0;if(d-f<=s){for(let w=f;w<=d;w++)r0(o[2*w],o[2*w+1],t,n)<=u&&l.push(i[w]);continue}const h=f+d>>1,g=o[2*h],v=o[2*h+1];r0(g,v,t,n)<=u&&l.push(i[h]),(c===0?t-r<=g:n-r<=v)&&(a.push(f),a.push(h-1),a.push(1-c)),(c===0?t+r>=g:n+r>=v)&&(a.push(h+1),a.push(d),a.push(1-c))}return l}}function kp(e,t,n,r,i,o){if(i-r<=n)return;const s=r+i>>1;_w(e,t,s,r,i,o),kp(e,t,n,r,s-1,1-o),kp(e,t,n,s+1,i,1-o)}function _w(e,t,n,r,i,o){for(;i>r;){if(i-r>600){const u=i-r+1,c=n-r+1,d=Math.log(u),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(u-f)/u)*(c-u/2<0?-1:1),g=Math.max(r,Math.floor(n-c*f/u+h)),v=Math.min(i,Math.floor(n+(u-c)*f/u+h));_w(e,t,n,g,v,o)}const s=t[2*n+o];let a=r,l=i;for(ws(e,t,r,n),t[2*i+o]>s&&ws(e,t,r,i);a<l;){for(ws(e,t,a,l),a++,l--;t[2*a+o]<s;)a++;for(;t[2*l+o]>s;)l--}t[2*r+o]===s?ws(e,t,r,l):(l++,ws(e,t,l,i)),l<=n&&(r=l+1),n<=l&&(i=l-1)}}function ws(e,t,n,r){Xd(e,n,r),Xd(t,2*n,2*r),Xd(t,2*n+1,2*r+1)}function Xd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function r0(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}const Sk={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},i0=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),hi=2,kr=3,Jd=4,_r=5,Lw=6;class _k{constructor(t){this.options=Object.assign(Object.create(Sk),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:r,maxZoom:i}=this.options;n&&console.time("total time");const o=`prepare ${t.length} points`;n&&console.time(o),this.points=t;const s=[];for(let l=0;l<t.length;l++){const u=t[l];if(!u.geometry)continue;const[c,d]=u.geometry.coordinates,f=i0(zl(c)),h=i0(Ul(d));s.push(f,h,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(t,n){let r=((t[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[1]));let o=t[2]===180?180:((t[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const d=this.getClusters([r,i,180,s],n),f=this.getClusters([-180,i,o,s],n);return d.concat(f)}const a=this.trees[this._limitZoom(n)],l=a.range(zl(r),Ul(s),zl(o),Ul(i)),u=a.data,c=[];for(const d of l){const f=this.stride*d;c.push(u[f+_r]>1?o0(u,f,this.clusterProps):this.points[u[f+kr]])}return c}getChildren(t){const n=this._getOriginId(t),r=this._getOriginZoom(t),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=[];for(const f of c){const h=f*this.stride;s[h+Jd]===t&&d.push(s[h+_r]>1?o0(s,h,this.clusterProps):this.points[s[h+kr]])}if(d.length===0)throw new Error(i);return d}getLeaves(t,n,r){n=n||10,r=r||0;const i=[];return this._appendLeaves(i,t,n,r,0),i}getTile(t,n,r){const i=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{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
88),i.data,-1,r,o,d),d.features.length?d:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const r=this.getChildren(t);if(n++,r.length!==1)break;t=r[0].properties.cluster_id}return n}_appendLeaves(t,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(t,l.cluster_id,r,i,o):o<i?o++:t.push(a),t.length===r)break}return o}_createTree(t){const n=new Sg(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)n.add(t[r],t[r+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,r,i,o,s){for(const a of t){const l=a*this.stride,u=n[l+_r]>1;let c,d,f;if(u)c=Iw(n,l,this.clusterProps),d=n[l],f=n[l+1];else{const v=this.points[n[l+kr]];c=v.properties;const[w,C]=v.geometry.coordinates;d=zl(w),f=Ul(C)}const h={type:1,geometry:[[Math.round(this.options.extent*(d*o-r)),Math.round(this.options.extent*(f*o-i))]],tags:c};let g;u||this.options.generateId?g=n[l+kr]:g=this.points[n[l+kr]].id,g!==void 0&&(h.id=g),s.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:r,extent:i,reduce:o,minPoints:s}=this.options,a=r/(i*Math.pow(2,n)),l=t.data,u=[],c=this.stride;for(let d=0;d<l.length;d+=c){if(l[d+hi]<=n)continue;l[d+hi]=n;const f=l[d],h=l[d+1],g=t.within(l[d],l[d+1],a),v=l[d+_r];let w=v;for(const C of g){const y=C*c;l[y+hi]>n&&(w+=l[y+_r])}if(w>v&&w>=s){let C=f*v,y=h*v,b,x=-1;const S=((d/c|0)<<5)+(n+1)+this.points.length;for(const E of g){const L=E*c;if(l[L+hi]<=n)continue;l[L+hi]=n;const _=l[L+_r];C+=l[L]*_,y+=l[L+1]*_,l[L+Jd]=S,o&&(b||(b=this._map(l,d,!0),x=this.clusterProps.length,this.clusterProps.push(b)),o(b,this._map(l,L)))}l[d+Jd]=S,u.push(C/w,y/w,1/0,S,-1,w),o&&u.push(x)}else{for(let C=0;C<c;C++)u.push(l[d+C]);if(w>1)for(const C of g){const y=C*c;if(!(l[y+hi]<=n)){l[y+hi]=n;for(let b=0;b<c;b++)u.push(l[y+b])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,r){if(t[n+_r]>1){const s=this.clusterProps[t[n+Lw]];return r?Object.assign({},s):s}const i=this.points[t[n+kr]].properties,o=this.options.map(i);return r&&o===i?Object.assign({},o):o}}function o0(e,t,n){return{type:"Feature",id:e[t+kr],properties:Iw(e,t,n),geometry:{type:"Point",coordinates:[Lk(e[t]),Ik(e[t+1])]}}}function Iw(e,t,n){const r=e[t+_r],i=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,o=e[t+Lw],s=o===-1?{}:Object.assign({},n[o]);return Object.assign(s,{cluster:!0,cluster_id:e[t+kr],point_count:r,point_count_abbreviated:i})}function zl(e){return e/360+.5}function Ul(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function Lk(e){return(e-.5)*360}function Ik(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}/*! *****************************************************************************
89Copyright (c) Microsoft Corporation.
90
91Permission to use, copy, modify, and/or distribute this software for any
92purpose with or without fee is hereby granted.
93
94THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
95REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
96AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
97INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
98LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
99OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
100PERFORMANCE OF THIS SOFTWARE.
101***************************************************************************** */function kk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}class on{static isAdvancedMarkerAvailable(t){return google.maps.marker&&t.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,n){this.isAdvancedMarker(t)?t.map=n:t.setMap(n)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return this.isAdvancedMarker(t)?!0:t.getVisible()}}class Pp{constructor({markers:t,position:n}){this.markers=t,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 t=new google.maps.LatLngBounds(this._position,this._position);for(const n of this.markers)t.extend(on.getPosition(n));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>on.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(on.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class Pk{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return Mk(t)}}const Mk=e=>e.map(n=>new Pp({position:on.getPosition(n),markers:[n]}));class Dk extends Pk{constructor(t){var{maxZoom:n,radius:r=60}=t,i=kk(t,["maxZoom","radius"]);super({maxZoom:n}),this.state={zoom:-1}
101,this.superCluster=new _k(Object.assign({maxZoom:this.maxZoom,radius:r},i))}calculate(t){let n=!1;const r={zoom:t.map.getZoom()};if(!t0(t.markers,this.markers)){n=!0,this.markers=[...t.markers];const i=this.markers.map(o=>{const s=on.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=!t0(this.state,r)),this.state=r,n&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:n}}cluster({map:t}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(n=>this.transformCluster(n))}transformCluster({geometry:{coordinates:[t,n]},properties:r}){if(r.cluster)return new Pp({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(o=>o.properties.marker),position:{lat:n,lng:t}});const i=r.marker;return new Pp({markers:[i],position:on.getPosition(i)})}}class Nk{constructor(t,n){this.markers={sum:t.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 Tk{render({count:t,position:n},r,i){const s=`<svg fill="${t>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">
102<circle cx="120" cy="120" opacity=".6" r="70" />
103<circle cx="120" cy="120" opacity=".3" r="90" />
104<circle cx="120" cy="120" opacity=".2" r="110" />
105<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${t}</text>
106</svg>`,a=`Cluster of ${t} markers`,l=Number(google.maps.Marker.MAX_ZINDEX)+t;if(on.isAdvancedMarkerAvailable(i)){const d=new DOMParser().parseFromString(s,"image/svg+xml").documentElement;d.setAttribute("transform","translate(0 25)");const f={map:i,position:n,zIndex:l,title:a,content:d};return new google.maps.marker.AdvancedMarkerElement(f)}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 Rk(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}class _g{constructor(){Rk(_g,google.maps.OverlayView)}}var Hs;(function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"})(Hs||(Hs={}));const Ak=(e,t,n)=>{n.fitBounds(t.bounds)};class Ok extends _g{constructor({map:t,markers:n=[],algorithmOptions:r={},algorithm:i=new Dk(r),renderer:o=new Tk,onClusterClick:s=Ak}){super(),this.markers=[...n],this.clusters=[],this.algorithm=i,this.renderer=o,this.onClusterClick=s,t&&this.setMap(t)}addMarker(t,n){this.markers.includes(t)||(this.markers.push(t),n||this.render())}addMarkers(t,n){t.forEach(r=>{this.addMarker(r,!0)}),n||this.render()}removeMarker(t,n){const r=this.markers.indexOf(t);return r===-1?!1:(on.setMap(t,null),this.markers.splice(r,1),n||this.render(),!0)}removeMarkers(t,n){let r=!1;return t.forEach(i=>{r=this.removeMarker(i,!0)||r}),r&&!n&&this.render(),r}clearMarkers(t){this.markers.length=0,t||this.render()}render(){const t=this.getMap();if(t instanceof google.maps.Map&&t.getProjection()){google.maps.event.trigger(this,Hs.CLUSTERING_BEGIN,this);const{clusters:n,changed:r}=this.algorithm.calculate({markers:this.markers,map:t,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)||on.setMap(s.marker,null):o.push(s.marker));this.clusters=n,this.renderClusters(),requestAnimationFrame(()=>o.forEach(s=>on.setMap(s,null)))}google.maps.event.trigger(this,Hs.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(t=>on.setMap(t,null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}
106renderClusters(){const t=new Nk(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,t,n),r.markers.forEach(i=>on.setMap(i,null)),this.onClusterClick&&r.marker.addListener("click",i=>{google.maps.event.trigger(this,Hs.CLUSTER_CLICK,r),this.onClusterClick(i,r,n)})),on.setMap(r.marker,n)})}}function Fk(e){var t=Q3(),n=p.useState(null),r=n[0],i=n[1];return p.useEffect(function(){if(t&&r===null){var o=new Ok(oe(oe({},e),{map:t}));i(o)}},[t]),r}function Bk(e){var t=e.children,n=e.options,r=Fk(n);return r!==null?t(r):null}p.memo(Bk);var s0={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},a0={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}};function jk(e){var t=e.children,n=e.anchor,r=e.options,i=e.position,o=e.zIndex,s=e.onCloseClick,a=e.onDomReady,l=e.onContentChanged,u=e.onPositionChanged,c=e.onZindexChanged,d=e.onLoad,f=e.onUnmount,h=p.useContext(ye),g=p.useState(null),v=g[0],w=g[1],C=p.useState(null),y=C[0],b=C[1],x=p.useState(null),S=x[0],E=x[1],L=p.useState(null),_=L[0],P=L[1],I=p.useState(null),R=I[0],q=I[1],V=p.useState(null),z=V[0],Z=V[1],Q=p.useRef(null);return p.useEffect(function(){v!==null&&(v.close(),n?v.open(h,n):v.getPosition()&&v.open(h))},[h,v,n]),p.useEffect(function(){r&&v!==null&&v.setOptions(r)},[v,r]),p.useEffect(function(){i&&v!==null&&v.setPosition(i)},[i]),p.useEffect(function(){typeof o=="number"&&v!==null&&v.setZIndex(o)},[o]),p.useEffect(function(){v&&s&&(y!==null&&google.maps.event.removeListener(y),b(google.maps.event.addListener(v,"closeclick",s)))},[s]),p.useEffect(function(){v&&a&&(S!==null&&google.maps.event.removeListener(S),E(google.maps.event.addListener(v,"domready",a)))},[a]),p.useEffect(function(){v&&l&&(_!==null&&google.maps.event.removeListener(_),P(google.maps.event.addListener(v,"content_changed",l)))},[l]),p.useEffect(function(){v&&u&&(R!==null&&google.maps.event.removeListener(R),q(google.maps.event.addListener(v,"position_changed",u)))},[u]),p.useEffect(function(){v&&c&&(z!==null&&google.maps.event.removeListener(z),Z(google.maps.event.addListener(v,"zindex_changed",c)))},[c]),p.useEffect(function(){var F=new google.maps.InfoWindow(oe({},r||{}));return w(F),Q.current=document.createElement("div"),s&&b(google.maps.event.addListener(F,"closeclick",s)),a&&E(google.maps.event.addListener(F,"domready",a)),l&&P(google.maps.event.addListener(F,"content_changed",l)),u&&q(google.maps.event.addListener(F,"position_changed",u)),c&&Z(google.maps.event.addListener(F,"zindex_changed",c)),F.setContent(Q.current),i&&F.setPosition(i),o&&F.setZIndex(o),n?F.open(h,n):F.getPosition()?F.open(h):ht(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),d&&d(F),function(){y&&google.maps.event.removeListener(y),_&&google.maps.event.removeListener(_),S&&google.maps.event.removeListener(S),R&&google.maps.event.removeListener(R),z&&google.maps.event.removeListener(z),f&&f(F),F.close()}},[]),Q.current?yr.createPortal(p.Children.only(t),Q.current):null}p.memo(jk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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):ht(!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 t.prototype.componentDidMount=function(){var n=new google.maps.InfoWindow(oe({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=Se({updaterMap:a0,eventMap:s0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{infoWindow:n}},this.setInfoWindowCallback)},t.prototype.componentDidUpdate=function(n){this.state.infoWindow!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:a0,eventMap:s0,prevProps:n,nextProps:this.props,instance:this.state.infoWindow}))},t.prototype.componentWillUnmount=function(){this.state.infoWindow!==null&&(ke(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},t.prototype.render=function(){return this.containerElement?yr.createPortal(p.Children.only(this.props.children),this.containerElement):null},t.contextType=ye,t})(p.PureComponent);var l0={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},u0={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}},zk={};function Uk(e){var t=e.options,n=e.draggable,r=e.editable,i=e.visible,o=e.path,s=e.onDblClick,a=e.onDragEnd,l=e.onDragStart,u=e.onMouseDown,c=e.onMouseMove,d=e.onMouseOut,f=e.onMouseOver,h=e.onMouseUp,g=e.onRightClick,v=e.onClick,w=e.onDrag,C=e.onLoad,y=e.onUnmount,b=p.useContext(ye),x=p.useState(null),S=x[0],E=x[1],L=p.useState(null),_=L[0],P=L[1],I=p.useState(null),R=I[0],q=I[1],V=p.useState(null),z=V[0],Z=V[1],Q=p.useState(null),F=Q[0],D=Q[1],B=p.useState(null),O=B[0],U=B[1],X=p.useState(null),fe=X[0],ue=X[1],ge=p.useState(null),N=ge[0],pe=ge[1],Ne=p.use
106State(null),ne=Ne[0],we=Ne[1],Te=p.useState(null),M=Te[0],k=Te[1],T=p.useState(null),$=T[0],re=T[1],ee=p.useState(null),Me=ee[0],De=ee[1];return p.useEffect(function(){S!==null&&S.setMap(b)},[b]),p.useEffect(function(){typeof t<"u"&&S!==null&&S.setOptions(t)},[S,t]),p.useEffect(function(){typeof n<"u"&&S!==null&&S.setDraggable(n)},[S,n]),p.useEffect(function(){typeof r<"u"&&S!==null&&S.setEditable(r)},[S,r]),p.useEffect(function(){typeof i<"u"&&S!==null&&S.setVisible(i)},[S,i]),p.useEffect(function(){typeof o<"u"&&S!==null&&S.setPath(o)},[S,o]),p.useEffect(function(){S&&s&&(_!==null&&google.maps.event.removeListener(_),P(google.maps.event.addListener(S,"dblclick",s)))},[s]),p.useEffect(function(){S&&a&&(R!==null&&google.maps.event.removeListener(R),q(google.maps.event.addListener(S,"dragend",a)))},[a]),p.useEffect(function(){S&&l&&(z!==null&&google.maps.event.removeListener(z),Z(google.maps.event.addListener(S,"dragstart",l)))},[l]),p.useEffect(function(){S&&u&&(F!==null&&google.maps.event.removeListener(F),D(google.maps.event.addListener(S,"mousedown",u)))},[u]),p.useEffect(function(){S&&c&&(O!==null&&google.maps.event.removeListener(O),U(google.maps.event.addListener(S,"mousemove",c)))},[c]),p.useEffect(function(){S&&d&&(fe!==null&&google.maps.event.removeListener(fe),ue(google.maps.event.addListener(S,"mouseout",d)))},[d]),p.useEffect(function(){S&&f&&(N!==null&&google.maps.event.removeListener(N),pe(google.maps.event.addListener(S,"mouseover",f)))},[f]),p.useEffect(function(){S&&h&&(ne!==null&&google.maps.event.removeListener(ne),we(google.maps.event.addListener(S,"mouseup",h)))},[h]),p.useEffect(function(){S&&g&&(M!==null&&google.maps.event.removeListener(M),k(google.maps.event.addListener(S,"rightclick",g)))},[g]),p.useEffect(function(){S&&v&&($!==null&&google.maps.event.removeListener($),re(google.maps.event.addListener(S,"click",v)))},[v]),p.useEffect(function(){S&&w&&(Me!==null&&google.maps.event.removeListener(Me),De(google.maps.event.addListener(S,"drag",w)))},[w]),p.useEffect(function(){var ae=new google.maps.Polyline(oe(oe({},t||zk),{map:b}));return o&&ae.setPath(o),typeof i<"u"&&ae.setVisible(i),typeof r<"u"&&ae.setE
106ditable(r),typeof n<"u"&&ae.setDraggable(n),s&&P(google.maps.event.addListener(ae,"dblclick",s)),a&&q(google.maps.event.addListener(ae,"dragend",a)),l&&Z(google.maps.event.addListener(ae,"dragstart",l)),u&&D(google.maps.event.addListener(ae,"mousedown",u)),c&&U(google.maps.event.addListener(ae,"mousemove",c)),d&&ue(google.maps.event.addListener(ae,"mouseout",d)),f&&pe(google.maps.event.addListener(ae,"mouseover",f)),h&&we(google.maps.event.addListener(ae,"mouseup",h)),g&&k(google.maps.event.addListener(ae,"rightclick",g)),v&&re(google.maps.event.addListener(ae,"click",v)),w&&De(google.maps.event.addListener(ae,"drag",w)),E(ae),C&&C(ae),function(){_!==null&&google.maps.event.removeListener(_),R!==null&&google.maps.event.removeListener(R),z!==null&&google.maps.event.removeListener(z),F!==null&&google.maps.event.removeListener(F),O!==null&&google.maps.event.removeListener(O),fe!==null&&google.maps.event.removeListener(fe),N!==null&&google.maps.event.removeListener(N),ne!==null&&google.maps.event.removeListener(ne),M!==null&&google.maps.event.removeListener(M),$!==null&&google.maps.event.removeListener($),y&&y(ae),ae.setMap(null)}},[]),null}p.memo(Uk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.Polyline(oe(oe({},this.props.options||{}),{map:this.context}));this.registeredEvents=Se({updaterMap:u0,eventMap:l0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polyline:n}},this.setPolylineCallback)},t.prototype.componentDidUpdate=function(n){this.state.polyline!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:u0,eventMap:l0,prevProps:n,nextProps:this.props,instance:this.state.polyline}))},t.prototype.componentWillUnmount=function(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),ke(this.registeredEvents),this.state.polyline.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var c0={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},d0={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}};function $k(e){var t=e.options,n=e.draggable,r=e.editable,i=e.visible,o=e.path,s=e.paths,a=e.onDblClick,l=e.onDragEnd,u=e.onDragStart,c=e.onMouseDown,d=e.onMouseMove,f=e.onMouseOut,h=e.onMouseOver,g=e.onMouseUp,v=e.onRightClick,w=e.onClick,C=e.onDrag,y=e.onLoad,b=e.onUnmount,x=e.onEdit,S=p.useContext(ye),E=p.useState(null),L=E[0],_=E[1],P=p.useState(null),I=P[0],R=P[1],q=p.useState(null),V=q[0],z=q[1],Z=p.useState(null),Q=Z[0],F=Z[1],D=p.useState(null),B=D[0],O=D[1],U=p.useState(null),X=U[0],fe=U[1],ue=p.useState(null),ge=ue[0],N=ue[1],pe=p.useState(null),Ne=pe[0],ne=pe[1],we=p.useState(null),Te=we[0],M=we[1],k=p.useState(null),T=k[0],$=k[1],re=p.useState(null),ee=re[0],Me=re[1],De=p.useState(null),ae=De[0],Re=De[1];return p.useEffect(function(){L!==null&&L.setMap(S)},[S]),p.useEffect(function(){typeof t<"u"&&L!==null&&L.setOptions(t)},[L,t]),p.useEffect(function(){typeof n<"u"&&L!==null&&L.setDraggable(n)},[L,n]),p.useEffect(function(){typeof r<"u"&&L!==null&&L.setEditable(r)},[L,r]),p.useEffect(function(){typeof i<"u"&&L!==null&&L.setVisible(i)},[L,i]),p.useEffect(function(){typeof o<"u"&&L!==null&&L.setPath(o)},[L,o]),p.useEffect(function(){typeof s<"u"&&L!==null&&L.setPaths(s)},[L,s]),p.useEffect(function(){L&&a&&(I!==null&&google.maps.event.removeListener(I),R(google.maps.event.addListener(L,"dblclick",a)))},[a]),p.useEffect(function(){L&&(google.maps.event.addListener(L.getPath(),"insert_at",function(){x==null||x(L)}),google.maps.event.addListener(L.getPath(),"set_at",function(){x==null||x(L)}))},[L,x]),p.useEffect(function(){L&&l&&(V!==null&&google.maps.event.removeListener(V),z(google.maps.event.addListener(L,"dragend",l)))},[l]),p.useEffect(function(){L&&u&&(Q!==null&&google.maps.event.removeListener(Q),F(google.maps.event.addListener(L,"dragstart",u)))}
106,[u]),p.useEffect(function(){L&&c&&(B!==null&&google.maps.event.removeListener(B),O(google.maps.event.addListener(L,"mousedown",c)))},[c]),p.useEffect(function(){L&&d&&(X!==null&&google.maps.event.removeListener(X),fe(google.maps.event.addListener(L,"mousemove",d)))},[d]),p.useEffect(function(){L&&f&&(ge!==null&&google.maps.event.removeListener(ge),N(google.maps.event.addListener(L,"mouseout",f)))},[f]),p.useEffect(function(){L&&h&&(Ne!==null&&google.maps.event.removeListener(Ne),ne(google.maps.event.addListener(L,"mouseover",h)))},[h]),p.useEffect(function(){L&&g&&(Te!==null&&google.maps.event.removeListener(Te),M(google.maps.event.addListener(L,"mouseup",g)))},[g]),p.useEffect(function(){L&&v&&(T!==null&&google.maps.event.removeListener(T),$(google.maps.event.addListener(L,"rightclick",v)))},[v]),p.useEffect(function(){L&&w&&(ee!==null&&google.maps.event.removeListener(ee),Me(google.maps.event.addListener(L,"click",w)))},[w]),p.useEffect(function(){L&&C&&(ae!==null&&google.maps.event.removeListener(ae),Re(google.maps.event.addListener(L,"drag",C)))},[C]),p.useEffect(function(){var he=new google.maps.Polygon(oe(oe({},t||{}),{map:S}));return o&&he.setPath(o),s&&he.setPaths(s),typeof i<"u"&&he.setVisible(i),typeof r<"u"&&he.setEditable(r),typeof n<"u"&&he.setDraggable(n),a&&R(google.maps.event.addListener(he,"dblclick",a)),l&&z(google.maps.event.addListener(he,"dragend",l)),u&&F(google.maps.event.addListener(he,"dragstart",u)),c&&O(google.maps.event.addListener(he,"mousedown",c)),d&&fe(google.maps.event.addListener(he,"mousemove",d)),f&&N(google.maps.event.addListener(he,"mouseout",f)),h&&ne(google.maps.event.addListener(he,"mouseover",h)),g&&M(google.maps.event.addListener(he,"mouseup",g)),v&&$(google.maps.event.addListener(he,"rightclick",v)),w&&Me(google.maps.event.addListener(he,"click",w)),C&&Re(google.maps.event.addListener(he,"drag",C)),_(he),y&&y(he),function(){I!==null&&google.maps.event.removeListener(I),V!==null&&google.maps.event.removeListener(V),Q!==null&&google.maps.event.removeListener(Q),B!==null&&google.maps.event.removeListener(B),X!==null&&google.maps.event.removeListener(X),ge!==null&&google.maps.event.removeListener(ge),Ne!==null&&google.maps.event.removeListener(Ne),Te!==null&&google.maps.event.removeListener(Te),T!==null&&google.maps.event.removeListener(T),ee!==null&&google.maps.event.removeListener(ee),b&&b(he),he.setMap(null)}},[]),null}p.memo($k);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.Polygon(oe(oe({},this.props.options||{}),{map:this.context}));this.registeredEvents=Se({updaterMap:d0,eventMap:c0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polygon:n}},this.setPolygonCallback)},t.prototype.componentDidUpdate=function(n){this.state.polygon!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:d0,eventMap:c0,prevProps:n,nextProps:this.props,instance:this.state.polygon}))},t.prototype.componentWillUnmount=function(){this.state.polygon!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),ke(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var f0={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"},p0={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}};function Wk(e){var t=e.options,n=e.bounds,r=e.draggable,i=e.editable,o=e.visible,s=e.onDblClick,a=e.onDragEnd,l=e.onDragStart,u=e.onMouseDown,c=e.onMouseMove,d=e.onMouseOut,f=e.onMouseOver,h=e.onMouseUp,g=e.onRightClick,v=e.onClick,w=e.onDrag,C=e.onBoundsChanged,y=e.onLoad,b=e.onUnmount,x=p.useContext(ye),S=p.useState(null),E=S[0],L=S[1],_=p.useState(null),P=_[0],I=_[1],R=p.useState(null),q=R[0],V=R[1],z=p.use
106State(null),Z=z[0],Q=z[1],F=p.useState(null),D=F[0],B=F[1],O=p.useState(null),U=O[0],X=O[1],fe=p.useState(null),ue=fe[0],ge=fe[1],N=p.useState(null),pe=N[0],Ne=N[1],ne=p.useState(null),we=ne[0],Te=ne[1],M=p.useState(null),k=M[0],T=M[1],$=p.useState(null),re=$[0],ee=$[1],Me=p.useState(null),De=Me[0],ae=Me[1],Re=p.useState(null),he=Re[0],Ue=Re[1];return p.useEffect(function(){E!==null&&E.setMap(x)},[x]),p.useEffect(function(){typeof t<"u"&&E!==null&&E.setOptions(t)},[E,t]),p.useEffect(function(){typeof r<"u"&&E!==null&&E.setDraggable(r)},[E,r]),p.useEffect(function(){typeof i<"u"&&E!==null&&E.setEditable(i)},[E,i]),p.useEffect(function(){typeof o<"u"&&E!==null&&E.setVisible(o)},[E,o]),p.useEffect(function(){typeof n<"u"&&E!==null&&E.setBounds(n)},[E,n]),p.useEffect(function(){E&&s&&(P!==null&&google.maps.event.removeListener(P),I(google.maps.event.addListener(E,"dblclick",s)))},[s]),p.useEffect(function(){E&&a&&(q!==null&&google.maps.event.removeListener(q),V(google.maps.event.addListener(E,"dragend",a)))},[a]),p.useEffect(function(){E&&l&&(Z!==null&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(E,"dragstart",l)))},[l]),p.useEffect(function(){E&&u&&(D!==null&&google.maps.event.removeListener(D),B(google.maps.event.addListener(E,"mousedown",u)))},[u]),p.useEffect(function(){E&&c&&(U!==null&&google.maps.event.removeListener(U),X(google.maps.event.addListener(E,"mousemove",c)))},[c]),p.useEffect(function(){E&&d&&(ue!==null&&google.maps.event.removeListener(ue),ge(google.maps.event.addListener(E,"mouseout",d)))},[d]),p.useEffect(function(){E&&f&&(pe!==null&&google.maps.event.removeListener(pe),Ne(google.maps.event.addListener(E,"mouseover",f)))},[f]),p.useEffect(function(){E&&h&&(we!==null&&google.maps.event.removeListener(we),Te(google.maps.event.addListener(E,"mouseup",h)))},[h]),p.useEffect(function(){E&&g&&(k!==null&&google.maps.event.removeListener(k),T(google.maps.event.addListener(E,"rightclick",g)))},[g]),p.useEffect(function(){E&&v&&(re!==null&&google.maps.event.removeListener(re),ee(google.maps.event.addListener(E,"click",v)))},[v]),p.useEffect(function(){E&&w&&(De!==null&&google.maps.event.removeListener(De),ae(google.maps.event.addListener(E,"drag",w)))},[w]),p.useEffect(function(){E&&C&&(he!==null&&google.maps.event.removeListener(he),Ue(google.maps.event.addListener(E,"bounds_changed",C)))},[C]),p.useEffect(function(){var se=new google.maps.Rectangle(oe(oe({},t||{}),{map:x}));return typeof o<"u"&&se.setVisible(o),typeof i<"u"&&se.setEditable(i),typeof r<"u"&&se.setDraggable(r),typeof n<"u"&&se.setBounds(n),s&&I(google.maps.event.addListener(se,"dblclick",s)),a&&V(google.maps.event.addListener(se,"dragend",a)),l&&Q(google.maps.event.addListener(se,"dragstart",l)),u&&B(google.maps.event.addListener(se,"mousedown",u)),c&&X(google.maps.event.addListener(se,"mousemove",c)),d&&ge(google.maps.event.addListener(se,"mouseout",d)),f&&Ne(google.maps.event.addListener(se,"mouseover",f)),h&&Te(google.maps.event.addListener(se,"mouseup",h)),g&&T(google.maps.event.addListener(se,"rightclick",g)),v&&ee(google.maps.event.addListener(se,"click",v)),w&&ae(google.maps.event.addListener(se,"drag",w
106)),C&&Ue(google.maps.event.addListener(se,"bounds_changed",C)),L(se),y&&y(se),function(){P!==null&&google.maps.event.removeListener(P),q!==null&&google.maps.event.removeListener(q),Z!==null&&google.maps.event.removeListener(Z),D!==null&&google.maps.event.removeListener(D),U!==null&&google.maps.event.removeListener(U),ue!==null&&google.maps.event.removeListener(ue),pe!==null&&google.maps.event.removeListener(pe),we!==null&&google.maps.event.removeListener(we),k!==null&&google.maps.event.removeListener(k),re!==null&&google.maps.event.removeListener(re),De!==null&&google.maps.event.removeListener(De),he!==null&&google.maps.event.removeListener(he),b&&b(se),se.setMap(null)}},[]),null}p.memo(Wk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.Rectangle(oe(oe({},this.props.options||{}),{map:this.context}));this.registeredEvents=Se({updaterMap:p0,eventMap:f0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{rectangle:n}},this.setRectangleCallback)},t.prototype.componentDidUpdate=function(n){this.state.rectangle!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:p0,eventMap:f0,prevProps:n,nextProps:this.props,instance:this.state.rectangle}))},t.prototype.componentWillUnmount=function(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),ke(this.registeredEvents),this.state.rectangle.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var h0={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"},g0={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}},Hk={};function Vk(e){var t=e.options,n=e.center,r=e.radius,i=e.draggable,o=e.editable,s=e.visible,a=e.onDblClick,l=e.onDragEnd,u=e.onDragStart,c=e.onMouseDown,d=e.onMouseMove,f=e.onMouseOut,h=e.onMouseOver,g=e.onMouseUp,v=e.onRightClick,w=e.onClick,C=e.onDrag,y=e.onCenterChanged,b=e.onRadiusChanged,x=e.onLoad,S=e.onUnmount,E=p.useContext(ye),L=p.useState(null),_=L[0],P=L[1],I=p.useState(null),R=I[0],q=I[1],V=p.useState(null),z=V[0],Z=V[1],Q=p.useState(null),F=Q[0],D=Q[1],B=p.useState(null),O=B[0],U=B[1],X=p.useState(null),fe=X[0],ue=X[1],ge=p.useState(null),N=ge[0],pe=ge[1],Ne=p.use
106State(null),ne=Ne[0],we=Ne[1],Te=p.useState(null),M=Te[0],k=Te[1],T=p.useState(null),$=T[0],re=T[1],ee=p.useState(null),Me=ee[0],De=ee[1],ae=p.useState(null),Re=ae[0],he=ae[1],Ue=p.useState(null),se=Ue[0],zt=Ue[1],tr=p.useState(null),Dn=tr[0],fi=tr[1];return p.useEffect(function(){_!==null&&_.setMap(E)},[E]),p.useEffect(function(){typeof t<"u"&&_!==null&&_.setOptions(t)},[_,t]),p.useEffect(function(){typeof i<"u"&&_!==null&&_.setDraggable(i)},[_,i]),p.useEffect(function(){typeof o<"u"&&_!==null&&_.setEditable(o)},[_,o]),p.useEffect(function(){typeof s<"u"&&_!==null&&_.setVisible(s)},[_,s]),p.useEffect(function(){typeof r=="number"&&_!==null&&_.setRadius(r)},[_,r]),p.useEffect(function(){typeof n<"u"&&_!==null&&_.setCenter(n)},[_,n]),p.useEffect(function(){_&&a&&(R!==null&&google.maps.event.removeListener(R),q(google.maps.event.addListener(_,"dblclick",a)))},[a]),p.useEffect(function(){_&&l&&(z!==null&&google.maps.event.removeListener(z),Z(google.maps.event.addListener(_,"dragend",l)))},[l]),p.useEffect(function(){_&&u&&(F!==null&&google.maps.event.removeListener(F),D(google.maps.event.addListener(_,"dragstart",u)))},[u]),p.useEffect(function(){_&&c&&(O!==null&&google.maps.event.removeListener(O),U(google.maps.event.addListener(_,"mousedown",c)))},[c]),p.useEffect(function(){_&&d&&(fe!==null&&google.maps.event.removeListener(fe),ue(google.maps.event.addListener(_,"mousemove",d)))},[d]),p.useEffect(function(){_&&f&&(N!==null&&google.maps.event.removeListener(N),pe(google.maps.event.addListener(_,"mouseout",f)))},[f]),p.useEffect(function(){_&&h&&(ne!==null&&google.maps.event.removeListener(ne),we(google.maps.event.addListener(_,"mouseover",h)))},[h]),p.useEffect(function(){_&&g&&(M!==null&&google.maps.event.removeListener(M),k(google.maps.event.addListener(_,"mouseup",g)))},[g]),p.useEffect(function(){_&&v&&($!==null&&google.maps.event.removeListener($),re(google.maps.event.addListener(_,"rightclick",v)))},[v]),p.useEffect(function(){_&&w&&(Me!==null&&google.maps.event.removeListener(Me),De(google.maps.event.addListener(_,"click",w)))},[w]),p.useEffect(function(){_&&C&&(Re!==null&&google.maps.event.removeListener(Re),he(google.maps.event.addListener(_,"drag",C)))},[C]),p.useEffect(function(){_&&y&&(se!==null&&google.maps.event.removeListener(se),zt(google.maps.event.addListener(_,"center_changed",y)))},[w]),p.useEffect(function(){_&&b&&(Dn!==null&&google.maps.event.removeListener(Dn),fi(google.maps.event.addListener(_,"radius_changed",b)))},[b]),p.useEffect(function(){var He=new google.maps.Circle(oe(oe({},t||Hk),{map:E}));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&&q(google.maps.event.addListener(He,"dblclick",a)),l&&Z(google.maps.event.addListener(He,"dragend",l)),u&&D(google.maps.event.addListener(He,"dragstart",u)),c&&U(google.maps.event.addListener(He,"mousedown",c)),d&&ue(google.maps.event.addListener(He,"mousemove",d)),f&&pe(google.maps.event.addListener(He,"mouseout",f)),h&&we(google.maps.event.addListener(He,"mouseover",h)),g&&k(google.maps.event.addListener(He,"mouseup",g)),v&&re(google.maps.event.addListener(He,"rightclick",v)),w&&De(google.maps.event.addListener(He,"click",w)),C&&he(google.maps.event.addListener(He,"drag",C)),y&&zt(google.maps.event.addListener(He,"center_changed",y)),b&&fi(google.maps.event.addListener(He,"radius_changed",b)),P(He),x&&x(He),function(){R!==null&&google.maps.event.removeListener(R),z!==null&&google.maps.event.removeListener(z),F!==null&&google.maps.event.removeListener(F),O!==null&&google.maps.event.removeListener(O),fe!==null&&google.maps.event.removeListener(fe),N!==null&&google.maps.event.removeListener(N),ne!==null&&google.maps.event.removeListener(ne),M!==null&&google.maps.event.removeListener(M),$!==null&&google.maps.event.removeListener($),Me!==null&&google.maps.event.removeListener(Me),se!==null&&google.maps.event.removeListener(se),Dn!==null&&google.maps.event.removeListener(Dn),S&&S(He),He.setMap(null)}},[]),null}p.memo(Vk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.Circle(oe(oe({},this.props.options||{}),{map:this.context}));this.registeredEvents=Se({updaterMap:g0,eventMap:h0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{circle:n}},this.setCircleCallback)},t.prototype.componentDidUpdate=function(n){this.state.circle!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:g0,eventMap:h0,prevProps:n,nextProps:this.props,instance:this.state.circle}))},t.prototype.componentWillUnmount=function(){var n;this.state.circle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),ke(this.registeredEvents),(n=this.state.circle)===null||n===void 0||n.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var m0={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},v0={add:function(e,t){e.add(t)},addgeojson:function(e,t,n){e.addGeoJson(t,n)},contains:function(e,t){e.contains(t)},foreach:function(e,t){e.forEach(t)},loadgeojson:function(e,t,n,r){e.loadGeoJson(t,n,r)},overridestyle:function(e,t,n){e.overrideStyle(t,n)},remove:function(e,t){e.remove(t)},revertstyle:function(e,t){e.revertStyle(t)},controlposition:function(e,t){e.setControlPosition(t)},controls:function(e,t){e.setControls(t)},drawingmode:function(e,t){e.setDrawingMode(t)},map:function(e,t){e.setMap(t)},style:function(e,t){e.setStyle(t)},togeojson:function(e,t){e.toGeoJson(t)}};function Gk(e){var t=e.options,n=e.onClick,r=e.onDblClick,i=e.onMouseDown,o=e.onMouseMove,s=e.onMouseOut,a=e.onMouseOver,l=e.onMouseUp,u=e.onRightClick,c=e.onAddFeature,d=e.onRemoveFeature,f=e.onRemoveProperty,h=e.onSetGeometry,g=e.onSetProperty,v=e.onLoad,w=e.onUnmount,C=p.useContext(ye),y=p.useState(null),b=y[0],x=y[1],S=p.useState(null),E=S[0],L=S[1],_=p.useState(null),P=_[0],I=_[1],R=p.useState(null),q=R[0],V=R[1],z=p.use
106State(null),Z=z[0],Q=z[1],F=p.useState(null),D=F[0],B=F[1],O=p.useState(null),U=O[0],X=O[1],fe=p.useState(null),ue=fe[0],ge=fe[1],N=p.useState(null),pe=N[0],Ne=N[1],ne=p.useState(null),we=ne[0],Te=ne[1],M=p.useState(null),k=M[0],T=M[1],$=p.useState(null),re=$[0],ee=$[1],Me=p.useState(null),De=Me[0],ae=Me[1],Re=p.useState(null),he=Re[0],Ue=Re[1];return p.useEffect(function(){b!==null&&b.setMap(C)},[C]),p.useEffect(function(){b&&r&&(E!==null&&google.maps.event.removeListener(E),L(google.maps.event.addListener(b,"dblclick",r)))},[r]),p.useEffect(function(){b&&i&&(P!==null&&google.maps.event.removeListener(P),I(google.maps.event.addListener(b,"mousedown",i)))},[i]),p.useEffect(function(){b&&o&&(q!==null&&google.maps.event.removeListener(q),V(google.maps.event.addListener(b,"mousemove",o)))},[o]),p.useEffect(function(){b&&s&&(Z!==null&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(b,"mouseout",s)))},[s]),p.useEffect(function(){b&&a&&(D!==null&&google.maps.event.removeListener(D),B(google.maps.event.addListener(b,"mouseover",a)))},[a]),p.useEffect(function(){b&&l&&(U!==null&&google.maps.event.removeListener(U),X(google.maps.event.addListener(b,"mouseup",l)))},[l]),p.useEffect(function(){b&&u&&(ue!==null&&google.maps.event.removeListener(ue),ge(google.maps.event.addListener(b,"rightclick",u)))},[u]),p.useEffect(function(){b&&n&&(pe!==null&&google.maps.event.removeListener(pe),Ne(google.maps.event.addListener(b,"click",n)))},[n]),p.useEffect(function(){b&&c&&(we!==null&&google.maps.event.removeListener(we),Te(google.maps.event.addListener(b,"addfeature",c)))},[c]),p.useEffect(function(){b&&d&&(k!==null&&google.maps.event.removeListener(k),T(google.maps.event.addListener(b,"removefeature",d)))},[d]),p.useEffect(function(){b&&f&&(re!==null&&google.maps.event.removeListener(re),ee(google.maps.event.addListener(b,"removeproperty",f)))},[f]),p.useEffect(function(){b&&h&&(De!==null&&google.maps.event.removeListener(De),ae(google.maps.event.addListener(b,"setgeometry",h)))},[h]),p.useEffect(function(){b&&g&&(he!==null&&google.maps.event.removeListener(he),Ue(google.maps.event.addListener(b,"setproperty",g)))},[g]),p.useEffect(function(){if(C!==null){var se=new google.maps.Data(oe(oe({},t||{}),{map:C}));r&&L(google.maps.event.addListener(se,"dblclick",r)),i&&I(google.maps.event.addListener(se,"mousedown",i)),o&&V(google.maps.event.addListener(se,"mousemove",o)),s&&Q(google.maps.event.addListener(se,"mouseout",s)),a&&B(google.maps.event.addListener(se,"mouseover",a)),l&&X(google.maps.event.addListener(se,"mouseup",l)),u&&ge(google.maps.event.addListener(se,"rightclick",u)),n&&Ne(google.maps.event.addListener(se,"click",n)),c&&Te(google.maps.event.addListener(se,"addfeature",c)),d&&T(google.maps.event.addListener(se,"removefeature",d)),f&&ee(google.maps.event.addListener(se,"removeproperty",f)),h&&ae(google.maps.event.addListener(se,"setgeometry",h)),g&&Ue(google.maps.event.addListener(se,"setproperty",g)),x(se),v&&v(se)}return function(){b&&(E!==null&&google.maps.event.removeListener(E),P!==null&&google.maps.event.removeListener(P),q!==null&&google.maps.event.removeListener(q),Z!==null&&google.maps.event.removeListener(Z),D!==null&&google.maps.event.removeListener(D),U!==null&&google.maps.event.removeListener(U),ue!==null&&google.maps.event.removeListener(ue),pe!==null&&google.maps.event.removeListener(pe),we!==null&&google.maps.event.removeListener(we),k!==null&&google.maps.event.removeListener(k),re!==null&&google.maps.event.removeListener(re),De!==null&&google.maps.event.removeListener(De),he!==null&&google.maps.event.removeListener(he),w&&w(b),b.setMap(null))}},[]),null}p.memo(Gk);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){if(this.context!==null){var n=new google.maps.Data(oe(oe({},this.props.options||{}),{map:this.context}));this.registeredEvents=Se({updaterMap:v0,eventMap:m0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{data:n}},this.setDataCallback)}},t.prototype.componentDidUpdate=function(n){this.state.data!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:v0,eventMap:m0,prevProps:n,nextProps:this.props,instance:this.state.data}))},t.prototype.componentWillUnmount=function(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),ke(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var y0={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},C0={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}};(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.KmlLayer(oe(oe({},this.props.options),{map:this.context}));this.registeredEvents=Se({updaterMap:C0,eventMap:y0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{kmlLayer:n}},this.setKmlLayerCallback)},t.prototype.componentDidUpdate=function(n){this.state.kmlLayer!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:C0,eventMap:y0,prevProps:n,nextProps:this.props,instance:this.state.kmlLayer}))},t.prototype.componentWillUnmount=function(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),ke(this.registeredEvents),this.state.kmlLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);function kw(e,t){return typeof t=="function"?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function qk(e,t){return new t(e.lat,e.lng)}function Yk(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.
106ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function Kk(e,t,n){return e instanceof t?e:n(e,t)}function Qk(e,t,n){return e instanceof t?e:n(e,t)}function Zk(e,t,n){var r=e&&e.fromLatLngToDivPixel(n.getNorthEast()),i=e&&e.fromLatLngToDivPixel(n.getSouthWest());return r&&i?{left:"".concat(i.x+t.x,"px"),top:"".concat(r.y+t.y,"px"),width:"".concat(r.x-i.x-t.x,"px"),height:"".concat(i.y-r.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}function Xk(e,t,n){var r=e&&e.fromLatLngToDivPixel(n);if(r){var i=r.x,o=r.y;return{left:"".concat(i+t.x,"px"),top:"".concat(o+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}function Pw(e,t,n,r){return n!==void 0?Zk(e,t,Qk(n,google.maps.LatLngBounds,Yk)):Xk(e,t,Kk(r,google.maps.LatLng,qk))}function Jk(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.height&&e.height===t.height}function eP(e,t,n,r,i){var o=function(s){qe(a,s);function a(l,u,c,d){var f=s.call(this)||this;return f.container=l,f.pane=u,f.position=c,f.bounds=d,f}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=oe({},this.container?kw(this.container,i):{x:0,y:0}),c=Pw(l,u,this.bounds,this.position),d=0,f=Object.entries(c);d<f.length;d++){var h=f[d],g=h[0],v=h[1];this.container.style[g]=v}},a.prototype.onRemove=function(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)},a}(google.maps.OverlayView);return new o(e,t,n,r)}function b0(e){if(!e)return"";var t=e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng);return t+""}function w0(e){if(!e)return"";var t=e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west));return t+""}function tP(e){var t=e.position,n=e.bounds,r=e.mapPaneName,i=e.zIndex,o=e.onLoad,s=e.onUnmount,a=e.getPixelPositionOffset,l=e.children,u=p.useContext(ye),c=p.useMemo(function(){var f=document.createElement("div");return f.style.position="absolute",f},[]),d=p.useMemo(function(){return eP(c,r,t,n,a)},[c,r,t,n]);return p.useEffect(function(){return o==null||o(d),d==null||d.setMap(u),function(){s==null||s(d),d==null||d.setMap(null)}},[u,d]),p.useEffect(function(){c.style.zIndex="".concat(i)},[i,c]),yr.createPortal(l,c)}p.memo(tP);(function(e){qe(t,e);function t(n){var r=e.call(this,n)||this;r.state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var o=r.props.mapPaneName,s=r.overlayView.getPanes();ht(!!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=r.overlayView.getProjection(),s=oe({x:0,y:0},r.containerRef.current?kw(r.containerRef.current,r.props.getPixelPositionOffset):{}),a=Pw(o,s,r.props.bounds,r.props.position),l=r.state.containerStyle,u=l.left,c=l.top,d=l.width,f=l.height;Jk(a,{left:u,top:c,width:d,height:f}
106)||r.setState({containerStyle:{top:a.top||0,left:a.left||0,width:a.width||0,height:a.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=p.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 t.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},t.prototype.componentDidUpdate=function(n){var r=b0(n.position),i=b0(this.props.position),o=w0(n.bounds),s=w0(this.props.bounds);(r!==i||o!==s)&&this.overlayView.draw(),n.mapPaneName!==this.props.mapPaneName&&this.updatePane()},t.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},t.prototype.render=function(){var n=this.state.paneEl;return n?yr.createPortal(m.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:p.Children.only(this.props.children)}),n):null},t.FLOAT_PANE="floatPane",t.MAP_PANE="mapPane",t.MARKER_LAYER="markerLayer",t.OVERLAY_LAYER="overlayLayer",t.OVERLAY_MOUSE_TARGET="overlayMouseTarget",t.contextType=ye,t})(p.PureComponent);function nP(){}var x0={onDblClick:"dblclick",onClick:"click"},E0={opacity:function(e,t){e.setOpacity(t)}};function rP(e){var t=e.url,n=e.bounds,r=e.options,i=e.visible,o=p.useContext(ye),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),a=p.useMemo(function(){var l=new google.maps.GroundOverlay(t,s,oe({},r));return l},[]);return p.useEffect(function(){a!==null&&a.setMap(o)},[o]),p.useEffect(function(){typeof t<"u"&&a!==null&&(a.set("url",t),a.setMap(o))},[a,t]),p.useEffect(function(){typeof i<"u"&&a!==null&&a.setOpacity(i?1:0)},[a,i]),p.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}p.memo(rP);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){ht(!!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,oe(oe({},this.props.options),{map:this.context}));this.registeredEvents=Se({updaterMap:E0,eventMap:x0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{groundOverlay:n}},this.setGroundOverlayCallback)},t.prototype.componentDidUpdate=function(n){this.state.groundOverlay!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:E0,eventMap:x0,prevProps:n,nextProps:this.props,instance:this.state.groundOverlay}))},t.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},t.prototype.render=function(){return null},t.defaultProps={onLoad:nP},t.contextType=ye,t})(p.PureComponent);var S0={},_0={data:function(e,t){e.setData(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)}};function iP(e){var t=e.data,n=e.onLoad,r=e.onUnmount,i=e.options,o=p.useContext(ye),s=p.useState(null),a=s[0],l=s[1];return p.useEffect(function(){google.maps.visualization||ht(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),p.useEffect(function(){ht(!!t,"data property is required in HeatmapLayer %s",t)},[t]),p.useEffect(function(){a!==null&&a.setMap(o)},[o]),p.useEffect(function(){i&&a!==null&&a.setOptions(i)},[a,i]),p.useEffect(function(){var u=new google.maps.visualization.HeatmapLayer(oe(oe({},i||{}),{data:t,map:o}));return l(u),n&&n(u),function(){a!==null&&(r&&r(a),a.setMap(null))}},[]),null}p.memo(iP);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){ht(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),ht(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var n=new google.maps.visualization.HeatmapLayer(oe(oe({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=Se({updaterMap:_0,eventMap:S0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{heatmapLayer:n}},this.setHeatmapLayerCallback)},t.prototype.componentDidUpdate=function(n){ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:_0,eventMap:S0,prevProps:n,nextProps:this.props,instance:this.state.heatmapLayer})},t.prototype.componentWillUnmount=function(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),ke(this.registeredEvents),this.state.heatmapLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);var L0={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"}
106,I0={register:function(e,t,n){e.registerPanoProvider(t,n)},links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}};(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.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=Se({updaterMap:I0,eventMap:L0,prevProps:{},nextProps:this.props,instance:i}),this.setState(function(){return{streetViewPanorama:i}},this.setStreetViewPanoramaCallback)},t.prototype.componentDidUpdate=function(n){this.state.streetViewPanorama!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:I0,eventMap:L0,prevProps:n,nextProps:this.props,instance:this.state.streetViewPanorama}))},t.prototype.componentWillUnmount=function(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),ke(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:n}},this.setStreetViewServiceCallback)},t.prototype.componentWillUnmount=function(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},t.prototype.render=function(){return null},t.contextType=ye,t})(p.PureComponent);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){ht(!!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)},t.prototype.componentDidUpdate=function(){this.state.directionsService!==null&&this.state.directionsService.route(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){this.state.directionsService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},t.prototype.render=function(){return null},t})(p.PureComponent);var k0={onDirectionsChanged:"directions_changed"},P0={directions:function(e,t){e.setDirections(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}};(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){var n=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=Se({updaterMap:P0,eventMap:k0,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{directionsRenderer:n}},this.setDirectionsRendererCallback)},t.prototype.componentDidUpdate=function(n){this.state.directionsRenderer!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:P0,eventMap:k0,prevProps:n,nextProps:this.props,instance:this.state.directionsRenderer}))},t.prototype.componentWillUnmount=function(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),ke(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},t.prototype.render=function(){return m.jsx(m.Fragment,{})},t.contextType=ye,t})(p.PureComponent);(function(e){qe(t,e);function t(){var n=e!==null&&e.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 t.prototype.componentDidMount=function(){ht(!!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)},t.prototype.componentDidUpdate=function(){this.state.distanceMatrixService!==null&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){this.state.distanceMatrixService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},t.prototype.render=function(){return null},t})(p.PureComponent);var M0={onPlacesChanged:"places_changed"},D0={bounds:function(e,t){e.setBounds(t)}};(function(e){qe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=p.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){n.state.searchBox!==null&&n.props.onLoad&&n.props.onLoad(n.state.searchBox
106)},n}return t.prototype.componentDidMount=function(){if(ht(!!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=Se({updaterMap:D0,eventMap:M0,prevProps:{},nextProps:this.props,instance:r}),this.setState(function(){return{searchBox:r}},this.setSearchBoxCallback)}}},t.prototype.componentDidUpdate=function(n){this.state.searchBox!==null&&(ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:D0,eventMap:M0,prevProps:n,nextProps:this.props,instance:this.state.searchBox}))},t.prototype.componentWillUnmount=function(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),ke(this.registeredEvents))},t.prototype.render=function(){return m.jsx("div",{ref:this.containerElement,children:p.Children.only(this.props.children)})},t.contextType=ye,t})(p.PureComponent);var N0={onPlaceChanged:"place_changed"},T0={bounds:function(e,t){e.setBounds(t)},restrictions:function(e,t){e.setComponentRestrictions(t)},fields:function(e,t){e.setFields(t)},options:function(e,t){e.setOptions(t)},types:function(e,t){e.setTypes(t)}};(function(e){qe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=p.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){n.state.autocomplete!==null&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}return t.prototype.componentDidMount=function(){var n;ht(!!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=Se({updaterMap:T0,eventMap:N0,prevProps:{},nextProps:this.props,instance:i}),this.setState(function(){return{autocomplete:i}},this.setAutocompleteCallback)}},t.prototype.componentDidUpdate=function(n){ke(this.registeredEvents),this.registeredEvents=Se({updaterMap:T0,eventMap:N0,prevProps:n,nextProps:this.props,instance:this.state.autocomplete})},t.prototype.componentWillUnmount=function(){this.state.autocomplete!==null&&ke(this.registeredEvents)},t.prototype.render=function(){return m.jsx("div",{ref:this.containerElement,className:this.props.className,children:p.Children.only(this.props.children)})},t.defaultProps={className:""},t.contextType=ye,t})(p.PureComponent);var R0={};/**
107 * @license
108 * Copyright 2017 Google LLC
109 *
110 * Licensed under the Apache License, Version 2.0 (the "License");
111 * you may not use this file except in compliance with the License.
112 * You may obtain a copy of the License at
113 *
114 *   http://www.apache.org/licenses/LICENSE-2.0
115 *
116 * Unless required by applicable law or agreed to in writing, software
117 * distributed under the License is distributed on an "AS IS" BASIS,
118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119 * See the License for the specific language governing permissions and
120 * limitations under the License.
121 */const Mw={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"};/**
122 * @license
123 * Copyright 2017 Google LLC
124 *
125 * Licensed under the Apache License, Version 2.0 (the "License");
126 * you may not use this file except in compliance with the License.
127 * You may obtain a copy of the License at
128 *
129 *   http://www.apache.org/licenses/LICENSE-2.0
130 *
131 * Unless required by applicable law or agreed to in writing, software
132 * distributed under the License is distributed on an "AS IS" BASIS,
133 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
134 * See the License for the specific language governing permissions and
135 * limitations under the License.
136 */const W=function(e,t){if(!e)throw ns(t)},ns=function(e){return new Error("Firebase Database ("+Mw.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)};/**
137 * @license
138 * Copyright 2017 Google LLC
139 *
140 * Licensed under the Apache License, Version 2.0 (the "License");
141 * you may not use this file except in compliance with the License.
142 * You may obtain a copy of the License at
143 *
144 *   http://www.apache.org/licenses/LICENSE-2.0
145 *
146 * Unless required by applicable law or agreed to in writing, software
147 * distributed under the License is distributed on an "AS IS" BASIS,
148 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149 * See the License for the specific language governing permissions and
150 * limitations under the License.
151 */const Dw=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},oP=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],a=e[n++],l=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},Lg={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,a=s?e[i+1]:0,l=i+2<e.length,u=l?e[i+2]:0,c=o>>2,d=(o&3)<<4|a>>4;let f=(a&15)<<2|u>>6,h=u&63;l||(h=64,s||(f=64)),r.push(n[c],n[d],n[f],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Dw(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):oP(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const u=i<e.length?n[e.charAt(i)]:64;++i;const d=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||a==null||u==null||d==null)throw new sP;const f=o<<2|a>>4;if(r.push(f),u!==64){const h=a<<4&240|u>>2;if(r.push(h),d!==64){const g=u<<6&192|d;r.push(g)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class sP extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Nw=function(e){const t=Dw(e);return Lg.encodeByteArray(t,!0)},ju=function(e){return Nw(e).replace(/\./g,"")},Mp=function(e){try{return Lg.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
152 * @license
153 * Copyright 2017 Google LLC
154 *
155 * Licensed under the Apache License, Version 2.0 (the "License");
156 * you may not use this file except in compliance with the License.
157 * You may obtain a copy of the License at
158 *
159 *   http://www.apache.org/licenses/LICENSE-2.0
160 *
161 * Unless required by applicable law or agreed to in writing, software
162 * distributed under the License is distributed on an "AS IS" BASIS,
163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
164 * See the License for the specific language governing permissions and
165 * limitations under the License.
166 */function aP(e){return Tw(void 0,e)}function Tw(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:const n=t;return new Date(n.getTime());case Object:e===void 0&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)!t.hasOwnProperty(n)||!lP(n)||(e[n]=Tw(e[n],t[n]));return e}function lP(e){return e!=="__proto__"}/**
167 * @license
168 * Copyright 2022 Google LLC
169 *
170 * Licensed under the Apache License, Version 2.0 (the "License");
171 * you may not use this file except in compliance with the License.
172 * You may obtain a copy of the License at
173 *
174 *   http://www.apache.org/licenses/LICENSE-2.0
175 *
176 * Unless required by applicable law or agreed to in writing, software
177 * distributed under the License is distributed on an "AS IS" BASIS,
178 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179 * See the License for the specific language governing permissions and
180 * limitations under the License.
181 */function uP(){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.")}/**
182 * @license
183 * Copyright 2022 Google LLC
184 *
185 * Licensed under the Apache License, Version 2.0 (the "License");
186 * you may not use this file except in compliance with the License.
187 * You may obtain a copy of the License at
188 *
189 *   http://www.apache.org/licenses/LICENSE-2.0
190 *
191 * Unless required by applicable law or agreed to in writing, software
192 * distributed under the License is distributed on an "AS IS" BASIS,
193 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
194 * See the License for the specific language governing permissions and
195 * limitations under the License.
196 */const cP=()=>uP().__FIREBASE_DEFAULTS__,dP=()=>{if(typeof process>"u"||typeof R0>"u")return;const e=R0.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},fP=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&Mp(e[1]);return t&&JSON.parse(t)},Rw=()=>{try{return cP()||dP()||fP()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},pP=e=>{var t,n;return(n=(t=Rw())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},hP=e=>{const t=pP(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return t[0]==="["?[t.substring(1,n-1),r]:[t.substring(0,n),r]},Aw=()=>{var e;return(e=Rw())===null||e===void 0?void 0:e.config};/**
197 * @license
198 * Copyright 2017 Google LLC
199 *
200 * Licensed under the Apache License, Version 2.0 (the "License");
201 * you may not use this file except in compliance with the License.
202 * You may obtain a copy of the License at
203 *
204 *   http://www.apache.org/licenses/LICENSE-2.0
205 *
206 * Unless required by applicable law or agreed to in writing, software
207 * distributed under the License is distributed on an "AS IS" BASIS,
208 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209 * See the License for the specific language governing permissions and
210 * limitations under the License.
211 */class qa{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/**
212 * @license
213 * Copyright 2021 Google LLC
214 *
215 * Licensed under the Apache License, Version 2.0 (the "License");
216 * you may not use this file except in compliance with the License.
217 * You may obtain a copy of the License at
218 *
219 *   http://www.apache.org/licenses/LICENSE-2.0
220 *
221 * Unless required by applicable law or agreed to in writing, software
222 * distributed under the License is distributed on an "AS IS" BASIS,
223 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
224 * See the License for the specific language governing permissions and
225 * limitations under the License.
226 */function gP(e,t){if(e.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=t||"demo-project",i=e.iat||0,o=e.sub||e.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:{}}},e);return[ju(JSON.stringify(n)),ju(JSON.stringify(s)),""].join(".")}/**
227 * @license
228 * Copyright 2017 Google LLC
229 *
230 * Licensed under the Apache License, Version 2.0 (the "License");
231 * you may not use this file except in compliance with the License.
232 * You may obtain a copy of the License at
233 *
234 *   http://www.apache.org/licenses/LICENSE-2.0
235 *
236 * Unless required by applicable law or agreed to in writing, software
237 * distributed under the License is distributed on an "AS IS" BASIS,
238 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
239 * See the License for the specific language governing permissions and
240 * limitations under the License.
241 */function mP(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Ow(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(mP())}function vP(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Fw(){return Mw.NODE_ADMIN===!0}function yP(){try{return typeof indexedDB=="object"}catch{return!1}}function CP(){return new Promise((e,t)=>{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),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}/**
242 * @license
243 * Copyright 2017 Google LLC
244 *
245 * Licensed under the Apache License, Version 2.0 (the "License");
246 * you may not use this file except in compliance with the License.
247 * You may obtain a copy of the License at
248 *
249 *   http://www.apache.org/licenses/LICENSE-2.0
250 *
251 * Unless required by applicable law or agreed to in writing, software
252 * distributed under the License is distributed on an "AS IS" BASIS,
253 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
254 * See the License for the specific language governing permissions and
255 * limitations under the License.
256 */const bP="FirebaseError";class Ya extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=bP,Object.setPrototypeOf(this,Ya.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Bw.prototype.create)}}class Bw{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?wP(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new Ya(i,a,r)}}function wP(e,t){return e.replace(xP,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const xP=/\{\$([^}]+)}/g;/**
257 * @license
258 * Copyright 2017 Google LLC
259 *
260 * Licensed under the Apache License, Version 2.0 (the "License");
261 * you may not use this file except in compliance with the License.
262 * You may obtain a copy of the License at
263 *
264 *   http://www.apache.org/licenses/LICENSE-2.0
265 *
266 * Unless required by applicable law or agreed to in writing, software
267 * distributed under the License is distributed on an "AS IS" BASIS,
268 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
269 * See the License for the specific language governing permissions and
270 * limitations under the License.
271 */function Ca(e){return JSON.parse(e)}function bt(e){return JSON.stringify(e)}/**
272 * @license
273 * Copyright 2017 Google LLC
274 *
275 * Licensed under the Apache License, Version 2.0 (the "License");
276 * you may not use this file except in compliance with the License.
277 * You may obtain a copy of the License at
278 *
279 *   http://www.apache.org/licenses/LICENSE-2.0
280 *
281 * Unless required by applicable law or agreed to in writing, software
282 * distributed under the License is distributed on an "AS IS" BASIS,
283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
284 * See the License for the specific language governing permissions and
285 * limitations under the License.
286 */const jw=function(e){let t={},n={},r={},i="";try{const o=e.split(".");t=Ca(Mp(o[0])||""),n=Ca(Mp(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch{}return{header:t,claims:n,data:r,signature:i}},EP=function(e){const t=jw(e),n=t.claims;return!!n&&typeof n=="object"&&n.hasOwnProperty("iat")},SP=function(e){const t=jw(e).claims;return typeof t=="object"&&t.admin===!0};/**
287 * @license
288 * Copyright 2017 Google LLC
289 *
290 * Licensed under the Apache License, Version 2.0 (the "License");
291 * you may not use this file except in compliance with the License.
292 * You may obtain a copy of the License at
293 *
294 *   http://www.apache.org/licenses/LICENSE-2.0
295 *
296 * Unless required by applicable law or agreed to in writing, software
297 * distributed under the License is distributed on an "AS IS" BASIS,
298 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
299 * See the License for the specific language governing permissions and
300 * limitations under the License.
301 */function er(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bo(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}function A0(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function zu(e,t,n){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function Dp(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(O0(o)&&O0(s)){if(!Dp(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function O0(e){return e!==null&&typeof e=="object"}/**
302 * @license
303 * Copyright 2017 Google LLC
304 *
305 * Licensed under the Apache License, Version 2.0 (the "License");
306 * you may not use this file except in compliance with the License.
307 * You may obtain a copy of the License at
308 *
309 *   http://www.apache.org/licenses/LICENSE-2.0
310 *
311 * Unless required by applicable law or agreed to in writing, software
312 * distributed under the License is distributed on an "AS IS" BASIS,
313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
314 * See the License for the specific language governing permissions and
315 * limitations under the License.
316 */function _P(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(i=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}/**
317 * @license
318 * Copyright 2017 Google LLC
319 *
320 * Licensed under the Apache License, Version 2.0 (the "License");
321 * you may not use this file except in compliance with the License.
322 * You may obtain a copy of the License at
323 *
324 *   http://www.apache.org/licenses/LICENSE-2.0
325 *
326 * Unless required by applicable law or agreed to in writing, software
327 * distributed under the License is distributed on an "AS IS" BASIS,
328 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
329 * See the License for the specific language governing permissions and
330 * limitations under the License.
331 */class LP{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=512/8,this.pad_[0]=128;for(let t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(t,n){n||(n=0);const r=this.W_;if(typeof t=="string")for(let d=0;d<16;d++)r[d]=t.charCodeAt(n)<<24|t.charCodeAt(n+1)<<16|t.charCodeAt(n+2)<<8|t.charCodeAt(n+3),n+=4;else for(let d=0;d<16;d++)r[d]=t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3],n+=4;for(let d=16;d<80;d++){const f=r[d-3]^r[d-8]^r[d-14]^r[d-16];r[d]=(f<<1|f>>>31)&4294967295}let i=this.chain_[0],o=this.chain_[1],s=this.chain_[2],a=this.chain_[3],l=this.chain_[4],u,c;for(let d=0;d<80;d++){d<40?d<20?(u=a^o&(s^a),c=1518500249):(u=o^s^a,c=1859775393):d<60?(u=o&s|a&(o|s),c=2400959708):(u=o^s^a,c=3395469782);const f=(i<<5|i>>>27)+u+l+c+r[d]&4294967295;l=a,a=s,s=(o<<30|o>>>2)&4294967295,o=i,i=f}this.chain_[0]=this.chain_[0]+i&4294967295,this.chain_[1]=this.chain_[1]+o&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+a&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295}update(t,n){if(t==null)return;n===void 0&&(n=t.length);const r=n-this.blockSize;let i=0;const o=this.buf_;let s=this.inbuf_;for(;i<n;){if(s===0)for(;i<=r;)this.compress_(t,i),i+=this.blockSize;if(typeof t=="string"){for(;i<n;)if(o[s]=t.charCodeAt(i),++s,++i,s===this.blockSize){this.compress_(o),s=0;break}}else for(;i<n;)if(o[s]=t[i],++s,++i,s===this.blockSize){this.compress_(o),s=0;break}}this.inbuf_=s,this.total_+=n}
331digest(){const t=[];let n=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let i=this.blockSize-1;i>=56;i--)this.buf_[i]=n&255,n/=256;this.compress_(this.buf_);let r=0;for(let i=0;i<5;i++)for(let o=24;o>=0;o-=8)t[r]=this.chain_[i]>>o&255,++r;return t}}function Bc(e,t){return`${e} failed: ${t} argument `}/**
332 * @license
333 * Copyright 2017 Google LLC
334 *
335 * Licensed under the Apache License, Version 2.0 (the "License");
336 * you may not use this file except in compliance with the License.
337 * You may obtain a copy of the License at
338 *
339 *   http://www.apache.org/licenses/LICENSE-2.0
340 *
341 * Unless required by applicable law or agreed to in writing, software
342 * distributed under the License is distributed on an "AS IS" BASIS,
343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
344 * See the License for the specific language governing permissions and
345 * limitations under the License.
346 */const IP=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i>=55296&&i<=56319){const o=i-55296;r++,W(r<e.length,"Surrogate pair missing trail surrogate.");const s=e.charCodeAt(r)-56320;i=65536+(o<<10)+s}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},jc=function(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t};/**
347 * @license
348 * Copyright 2021 Google LLC
349 *
350 * Licensed under the Apache License, Version 2.0 (the "License");
351 * you may not use this file except in compliance with the License.
352 * You may obtain a copy of the License at
353 *
354 *   http://www.apache.org/licenses/LICENSE-2.0
355 *
356 * Unless required by applicable law or agreed to in writing, software
357 * distributed under the License is distributed on an "AS IS" BASIS,
358 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
359 * See the License for the specific language governing permissions and
360 * limitations under the License.
361 */function Zi(e){return e&&e._delegate?e._delegate:e}class ba{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
362 * @license
363 * Copyright 2019 Google LLC
364 *
365 * Licensed under the Apache License, Version 2.0 (the "License");
366 * you may not use this file except in compliance with the License.
367 * You may obtain a copy of the License at
368 *
369 *   http://www.apache.org/licenses/LICENSE-2.0
370 *
371 * Unless required by applicable law or agreed to in writing, software
372 * distributed under the License is distributed on an "AS IS" BASIS,
373 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
374 * See the License for the specific language governing permissions and
375 * limitations under the License.
376 */const yi="[DEFAULT]";/**
377 * @license
378 * Copyright 2019 Google LLC
379 *
380 * Licensed under the Apache License, Version 2.0 (the "License");
381 * you may not use this file except in compliance with the License.
382 * You may obtain a copy of the License at
383 *
384 *   http://www.apache.org/licenses/LICENSE-2.0
385 *
386 * Unless required by applicable law or agreed to in writing, software
387 * distributed under the License is distributed on an "AS IS" BASIS,
388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
389 * See the License for the specific language governing permissions and
390 * limitations under the License.
391 */let kP=class{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new qa;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(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.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(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(MP(t))try{this.getOrInitializeService({instanceIdentifier:yi})}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(t=yi){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=yi){return this.instances.has(t)}getOptions(t=yi){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.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(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:PP(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=yi){return this.component?this.component.multipleInstances?t:yi:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function PP(e){return e===yi?void 0:e}function MP(e){return e.instantiationMode==="EAGER"}/**
392 * @license
393 * Copyright 2019 Google LLC
394 *
395 * Licensed under the Apache License, Version 2.0 (the "License");
396 * you may not use this file except in compliance with the License.
397 * You may obtain a copy of the License at
398 *
399 *   http://www.apache.org/licenses/LICENSE-2.0
400 *
401 * Unless required by applicable law or agreed to in writing, software
402 * distributed under the License is distributed on an "AS IS" BASIS,
403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
404 * See the License for the specific language governing permissions and
405 * limitations under the License.
406 */class DP{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new kP(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
407 * @license
408 * Copyright 2017 Google LLC
409 *
410 * Licensed under the Apache License, Version 2.0 (the "License");
411 * you may not use this file except in compliance with the License.
412 * You may obtain a copy of the License at
413 *
414 *   http://www.apache.org/licenses/LICENSE-2.0
415 *
416 * Unless required by applicable law or agreed to in writing, software
417 * distributed under the License is distributed on an "AS IS" BASIS,
418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
419 * See the License for the specific language governing permissions and
420 * limitations under the License.
421 */var Qe;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Qe||(Qe={}));const NP={debug:Qe.DEBUG,verbose:Qe.VERBOSE,info:Qe.INFO,warn:Qe.WARN,error:Qe.ERROR,silent:Qe.SILENT},TP=Qe.INFO,RP={[Qe.DEBUG]:"log",[Qe.VERBOSE]:"log",[Qe.INFO]:"info",[Qe.WARN]:"warn",[Qe.ERROR]:"error"},AP=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=RP[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class zw{constructor(t){this.name=t,this._logLevel=TP,this._logHandler=AP,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Qe))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?NP[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Qe.DEBUG,...t),this._logHandler(this,Qe.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Qe.VERBOSE,...t),this._logHandler(this,Qe.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Qe.INFO,...t),this._logHandler(this,Qe.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Qe.WARN,...t),this._logHandler(this,Qe.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Qe.ERROR,...t),this._logHandler(this,Qe.ERROR,...t)}}const OP=(e,t)=>t.some(n=>e instanceof n);let F0,B0;function FP(){return F0||(F0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function BP(){return B0||(B0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Uw=new WeakMap,Np=new WeakMap,$w=new WeakMap,ef=new WeakMap,Ig=new WeakMap;function jP(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Hr(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&Uw.set(n,e)}).catch(()=>{}),Ig.set(t,e),t}function zP(e){if(Np.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Np.set(e,t)}let Tp={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Np.get(e);if(t==="objectStoreNames")return e.objectStoreNames||$w.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Hr(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function UP(e){Tp=e(Tp)}function $P(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(tf(this),t,...n);return $w.set(r,t.sort?t.sort():[t]),Hr(r)}:BP().includes(e)?function(...t){return e.apply(tf(this),t),Hr(Uw.get(this))}:function(...t){return Hr(e.apply(tf(this),t))}}function WP(e){return typeof e=="function"?$P(e):(e instanceof IDBTransaction&&zP(e),OP(e,FP())?new Proxy(e,Tp):e)}function Hr(e){if(e instanceof IDBRequest)return jP(e);
421if(ef.has(e))return ef.get(e);const t=WP(e);return t!==e&&(ef.set(e,t),Ig.set(t,e)),t}const tf=e=>Ig.get(e);function HP(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=Hr(s);return r&&s.addEventListener("upgradeneeded",l=>{r(Hr(s.result),l.oldVersion,l.newVersion,Hr(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 VP=["get","getKey","getAll","getAllKeys","count"],GP=["put","add","delete","clear"],nf=new Map;function j0(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(nf.get(t))return nf.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=GP.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||VP.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let u=l.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return nf.set(t,o),o}UP(e=>({...e,get:(t,n,r)=>j0(t,n)||e.get(t,n,r),has:(t,n)=>!!j0(t,n)||e.has(t,n)}));/**
422 * @license
423 * Copyright 2019 Google LLC
424 *
425 * Licensed under the Apache License, Version 2.0 (the "License");
426 * you may not use this file except in compliance with the License.
427 * You may obtain a copy of the License at
428 *
429 *   http://www.apache.org/licenses/LICENSE-2.0
430 *
431 * Unless required by applicable law or agreed to in writing, software
432 * distributed under the License is distributed on an "AS IS" BASIS,
433 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
434 * See the License for the specific language governing permissions and
435 * limitations under the License.
436 */class qP{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(YP(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function YP(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Rp="@firebase/app",z0="0.10.10";/**
437 * @license
438 * Copyright 2019 Google LLC
439 *
440 * Licensed under the Apache License, Version 2.0 (the "License");
441 * you may not use this file except in compliance with the License.
442 * You may obtain a copy of the License at
443 *
444 *   http://www.apache.org/licenses/LICENSE-2.0
445 *
446 * Unless required by applicable law or agreed to in writing, software
447 * distributed under the License is distributed on an "AS IS" BASIS,
448 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
449 * See the License for the specific language governing permissions and
450 * limitations under the License.
451 */const pr=new zw("@firebase/app"),KP="@firebase/app-compat",QP="@firebase/analytics-compat",ZP="@firebase/analytics",XP="@firebase/app-check-compat",JP="@firebase/app-check",eM="@firebase/auth",tM="@firebase/auth-compat",nM="@firebase/database",rM="@firebase/database-compat",iM="@firebase/functions",oM="@firebase/functions-compat",sM="@firebase/installations",aM="@firebase/installations-compat",lM="@firebase/messaging",uM="@firebase/messaging-compat",cM="@firebase/performance",dM="@firebase/performance-compat",fM="@firebase/remote-config",pM="@firebase/remote-config-compat",hM="@firebase/storage",gM="@firebase/storage-compat",mM="@firebase/firestore",vM="@firebase/vertexai-preview",yM="@firebase/firestore-compat",CM="firebase",bM="10.13.1";/**
452 * @license
453 * Copyright 2019 Google LLC
454 *
455 * Licensed under the Apache License, Version 2.0 (the "License");
456 * you may not use this file except in compliance with the License.
457 * You may obtain a copy of the License at
458 *
459 *   http://www.apache.org/licenses/LICENSE-2.0
460 *
461 * Unless required by applicable law or agreed to in writing, software
462 * distributed under the License is distributed on an "AS IS" BASIS,
463 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
464 * See the License for the specific language governing permissions and
465 * limitations under the License.
466 */const Ap="[DEFAULT]",wM={[Rp]:"fire-core",[KP]:"fire-core-compat",[ZP]:"fire-analytics",[QP]:"fire-analytics-compat",[JP]:"fire-app-check",[XP]:"fire-app-check-compat",[eM]:"fire-auth",[tM]:"fire-auth-compat",[nM]:"fire-rtdb",[rM]:"fire-rtdb-compat",[iM]:"fire-fn",[oM]:"fire-fn-compat",[sM]:"fire-iid",[aM]:"fire-iid-compat",[lM]:"fire-fcm",[uM]:"fire-fcm-compat",[cM]:"fire-perf",[dM]:"fire-perf-compat",[fM]:"fire-rc",[pM]:"fire-rc-compat",[hM]:"fire-g
466cs",[gM]:"fire-gcs-compat",[mM]:"fire-fst",[yM]:"fire-fst-compat",[vM]:"fire-vertex","fire-js":"fire-js",[CM]:"fire-js-all"};/**
467 * @license
468 * Copyright 2019 Google LLC
469 *
470 * Licensed under the Apache License, Version 2.0 (the "License");
471 * you may not use this file except in compliance with the License.
472 * You may obtain a copy of the License at
473 *
474 *   http://www.apache.org/licenses/LICENSE-2.0
475 *
476 * Unless required by applicable law or agreed to in writing, software
477 * distributed under the License is distributed on an "AS IS" BASIS,
478 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
479 * See the License for the specific language governing permissions and
480 * limitations under the License.
481 */const Uu=new Map,xM=new Map,Op=new Map;function U0(e,t){try{e.container.addComponent(t)}catch(n){pr.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function $u(e){const t=e.name;if(Op.has(t))return pr.debug(`There were multiple attempts to register component ${t}.`),!1;Op.set(t,e);for(const n of Uu.values())U0(n,e);for(const n of xM.values())U0(n,e);return!0}function EM(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
482 * @license
483 * Copyright 2019 Google LLC
484 *
485 * Licensed under the Apache License, Version 2.0 (the "License");
486 * you may not use this file except in compliance with the License.
487 * You may obtain a copy of the License at
488 *
489 *   http://www.apache.org/licenses/LICENSE-2.0
490 *
491 * Unless required by applicable law or agreed to in writing, software
492 * distributed under the License is distributed on an "AS IS" BASIS,
493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
494 * See the License for the specific language governing permissions and
495 * limitations under the License.
496 */const SM={"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","server-app-deleted":"Firebase Server App has been 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.","invali
496d-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}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Vr=new Bw("app","Firebase",SM);/**
497 * @license
498 * Copyright 2019 Google LLC
499 *
500 * Licensed under the Apache License, Version 2.0 (the "License");
501 * you may not use this file except in compliance with the License.
502 * You may obtain a copy of the License at
503 *
504 *   http://www.apache.org/licenses/LICENSE-2.0
505 *
506 * Unless required by applicable law or agreed to in writing, software
507 * distributed under the License is distributed on an "AS IS" BASIS,
508 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
509 * See the License for the specific language governing permissions and
510 * limitations under the License.
511 */class _M{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new ba("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Vr.create("app-deleted",{appName:this._name})}}/**
512 * @license
513 * Copyright 2019 Google LLC
514 *
515 * Licensed under the Apache License, Version 2.0 (the "License");
516 * you may not use this file except in compliance with the License.
517 * You may obtain a copy of the License at
518 *
519 *   http://www.apache.org/licenses/LICENSE-2.0
520 *
521 * Unless required by applicable law or agreed to in writing, software
522 * distributed under the License is distributed on an "AS IS" BASIS,
523 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
524 * See the License for the specific language governing permissions and
525 * limitations under the License.
526 */const LM=bM;function Ww(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Ap,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw Vr.create("bad-app-name",{appName:String(i)});if(n||(n=Aw()),!n)throw Vr.create("no-options");const o=Uu.get(i);if(o){if(Dp(n,o.options)&&Dp(r,o.config))return o;throw Vr.create("duplicate-app",{appName:i})}const s=new DP(i);for(const l of Op.values())s.addComponent(l);const a=new _M(n,r,s);return Uu.set(i,a),a}function IM(e=Ap){const t=Uu.get(e);if(!t&&e===Ap&&Aw())return Ww();if(!t)throw Vr.create("no-app",{appName:e});return t}function Io(e,t,n){var r;let i=(r=wM[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${t}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),pr.warn(a.join(" "));return}$u(new ba(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
527 * @license
528 * Copyright 2021 Google LLC
529 *
530 * Licensed under the Apache License, Version 2.0 (the "License");
531 * you may not use this file except in compliance with the License.
532 * You may obtain a copy of the License at
533 *
534 *   http://www.apache.org/licenses/LICENSE-2.0
535 *
536 * Unless required by applicable law or agreed to in writing, softw
536are
537 * distributed under the License is distributed on an "AS IS" BASIS,
538 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
539 * See the License for the specific language governing permissions and
540 * limitations under the License.
541 */const kM="firebase-heartbeat-database",PM=1,wa="firebase-heartbeat-store";let rf=null;function Hw(){return rf||(rf=HP(kM,PM,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(wa)}catch(n){console.warn(n)}}}}).catch(e=>{throw Vr.create("idb-open",{originalErrorMessage:e.message})})),rf}async function MM(e){try{const n=(await Hw()).transaction(wa),r=await n.objectStore(wa).get(Vw(e));return await n.done,r}catch(t){if(t instanceof Ya)pr.warn(t.message);else{const n=Vr.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});pr.warn(n.message)}}}async function $0(e,t){try{const r=(await Hw()).transaction(wa,"readwrite");await r.objectStore(wa).put(t,Vw(e)),await r.done}catch(n){if(n instanceof Ya)pr.warn(n.message);else{const r=Vr.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});pr.warn(r.message)}}}function Vw(e){return`${e.name}!${e.options.appId}`}/**
542 * @license
543 * Copyright 2021 Google LLC
544 *
545 * Licensed under the Apache License, Version 2.0 (the "License");
546 * you may not use this file except in compliance with the License.
547 * You may obtain a copy of the License at
548 *
549 *   http://www.apache.org/licenses/LICENSE-2.0
550 *
551 * Unless required by applicable law or agreed to in writing, software
552 * distributed under the License is distributed on an "AS IS" BASIS,
553 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
554 * See the License for the specific language governing permissions and
555 * limitations under the License.
556 */const DM=1024,NM=30*24*60*60*1e3;class TM{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new AM(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=W0();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=NM}),this._storage.overwrite(this._heartbeatsCache))}catch(r){pr.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=W0(),{heartbeatsToSend:r,unsentEntries:i}=RM(this._heartbeatsCache.heartbeats),o=ju(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return pr.warn(n),""}}}function W0(){return new Date().toISOString().substring(0,10)}function RM(e,t=DM){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),H0(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),H0(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class AM{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return yP()?CP().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await MM(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return $0(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return $0(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function H0(e){return ju(JSON.stringify({version:2,heartbeats:e})).length}/**
557 * @license
558 * Copyright 2019 Google LLC
559 *
560 * Licensed under the Apache License, Version 2.0 (the "License");
561 * you may not use this file except in compliance with the License.
562 * You may obtain a copy of the License at
563 *
564 *   http://www.apache.org/licenses/LICENSE-2.0
565 *
566 * Unless required by applicable law or agreed to in writing, software
567 * distributed under the License is distributed on an "AS IS" BASIS,
568 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
569 * See the License for the specific language governing permissions and
570 * limitations under the License.
571 */function OM(e){$u(new ba("platform-logger",t=>new qP(t),"PRIVATE")),$u(new ba("heartbeat",t=>new TM(t),"PRIVATE")),Io(Rp,z0,e),Io(Rp,z0,"esm2017"),Io("fire-js","")}OM("");var FM="firebase",BM="10.13.1";/**
572 * @license
573 * Copyright 2020 Google LLC
574 *
575 * Licensed under the Apache License, Version 2.0 (the "License");
576 * you may not use this file except in compliance with the License.
577 * You may obtain a copy of the License at
578 *
579 *   http://www.apache.org/licenses/LICENSE-2.0
580 *
581 * Unless required by applicable law or agreed to in writing, software
582 * distributed under the License is distributed on an "AS IS" BASIS,
583 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
584 * See the License for the specific language governing permissions and
585 * limitations under the License.
586 */Io(FM,BM,"app");var V0={};const G0="@firebase/database",q0="1.0.7";/**
587 * @license
588 * Copyright 2019 Google LLC
589 *
590 * Licensed under the Apache License, Version 2.0 (the "License");
591 * you may not use this file except in compliance with the License.
592 * You may obtain a copy of the License at
593 *
594 *   http://www.apache.org/licenses/LICENSE-2.0
595 *
596 * Unless required by applicable law or agreed to in writing, software
597 * distributed under the License is distributed on an "AS IS" BASIS,
598 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
599 * See the License for the specific language governing permissions and
600 * limitations under the License.
601 */let Gw="";function jM(e){Gw=e}/**
602 * @license
603 * Copyright 2017 Google LLC
604 *
605 * Licensed under the Apache License, Version 2.0 (the "License");
606 * you may not use this file except in compliance with the License.
607 * You may obtain a copy of the License at
608 *
609 *   http://www.apache.org/licenses/LICENSE-2.0
610 *
611 * Unless required by applicable law or agreed to in writing, software
612 * distributed under the License is distributed on an "AS IS" BASIS,
613 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
614 * See the License for the specific language governing permissions and
615 * limitations under the License.
616 */class zM{constructor(t){this.domStorage_=t,this.prefix_="firebase:"}set(t,n){n==null?this.domStorage_.removeItem(this.prefixedName_(t)):this.domStorage_.setItem(this.prefixedName_(t),bt(n))}get(t){const n=this.domStorage_.getItem(this.prefixedName_(t));return n==null?null:Ca(n)}remove(t){this.domStorage_.removeItem(this.prefixedName_(t))}prefixedName_(t){return this.prefix_+t}toString(){return this.domStorage_.toString()}}/**
617 * @license
618 * Copyright 2017 Google LLC
619 *
620 * Licensed under the Apache License, Version 2.0 (the "License");
621 * you may not use this file except in compliance with the License.
622 * You may obtain a copy of the License at
623 *
624 *   http://www.apache.org/licenses/LICENSE-2.0
625 *
626 * Unless required by applicable law or agreed to in writing, software
627 * distributed under the License is distributed on an "AS IS" BASIS,
628 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
629 * See the License for the specific language governing permissions and
630 * limitations under the License.
631 */class UM{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(t,n){n==null?delete this.cache_[t]:this.cache_[t]=n}get(t){return er(this.cache_,t)?this.cache_[t]:null}remove(t){delete this.cache_[t]}}/**
632 * @license
633 * Copyright 2017 Google LLC
634 *
635 * Licensed under the Apache License, Version 2.0 (the "License");
636 * you may not use this file except in compliance with the License.
637 * You may obtain a copy of the License at
638 *
639 *   http://www.apache.org/licenses/LICENSE-2.0
640 *
641 * Unless required by applicable law or agreed to in writing, softw
641are
642 * distributed under the License is distributed on an "AS IS" BASIS,
643 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
644 * See the License for the specific language governing permissions and
645 * limitations under the License.
646 */const qw=function(e){try{if(typeof window<"u"&&typeof window[e]<"u"){const t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new zM(t)}}catch{}return new UM},Ii=qw("localStorage"),$M=qw("sessionStorage");/**
647 * @license
648 * Copyright 2017 Google LLC
649 *
650 * Licensed under the Apache License, Version 2.0 (the "License");
651 * you may not use this file except in compliance with the License.
652 * You may obtain a copy of the License at
653 *
654 *   http://www.apache.org/licenses/LICENSE-2.0
655 *
656 * Unless required by applicable law or agreed to in writing, software
657 * distributed under the License is distributed on an "AS IS" BASIS,
658 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
659 * See the License for the specific language governing permissions and
660 * limitations under the License.
661 */const ko=new zw("@firebase/database"),WM=function(){let e=1;return function(){return e++}}(),Yw=function(e){const t=IP(e),n=new LP;n.update(t);const r=n.digest();return Lg.encodeByteArray(r)},Ka=function(...e){let t="";for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)||r&&typeof r=="object"&&typeof r.length=="number"?t+=Ka.apply(null,r):typeof r=="object"?t+=bt(r):t+=r,t+=" "}return t};let Vs=null,Y0=!0;const HM=function(e,t){W(!t,"Can't turn on custom loggers persistently."),ko.logLevel=Qe.VERBOSE,Vs=ko.log.bind(ko)},Dt=function(...e){if(Y0===!0&&(Y0=!1,Vs===null&&$M.get("logging_enabled")===!0&&HM()),Vs){const t=Ka.apply(null,e);Vs(t)}},Qa=function(e){return function(...t){Dt(e,...t)}},Fp=function(...e){const t="FIREBASE INTERNAL ERROR: "+Ka(...e);ko.error(t)},hr=function(...e){const t=`FIREBASE FATAL ERROR: ${Ka(...e)}`;throw ko.error(t),new Error(t)},qt=function(...e){const t="FIREBASE WARNING: "+Ka(...e);ko.warn(t)},VM=function(){typeof window<"u"&&window.location&&window.location.protocol&&window.location.protocol.indexOf("https:")!==-1&&qt("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},kg=function(e){return typeof e=="number"&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},GM=function(e){if(document.readyState==="complete")e();else{let t=!1;const n=function(){if(!document.body){setTimeout(n,Math.floor(10));return}t||(t=!0,e())};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{document.readyState==="complete"&&n()}),window.attachEvent("onload",n))}},jo="[MIN_NAME]",ji="[MAX_NAME]",Xi=function(e,t){if(e===t)return 0;if(e===jo||t===ji)return-1;if(t===jo||e===ji)return 1;{const n=K0(e),r=K0(t);return n!==null?r!==null?n-r===0?e.length-t.length:n-r:-1:r!==null?1:e<t?-1:1}},qM=function(e,t){return e===t?0:e<t?-1:1},xs=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+bt(t))},Pg=function(e){if(typeof e!="object"||e===null)return bt(e);const t=[];for(const r in e)t.push(r);t.sort();let n="{";for(let r=0;r<t.length;r++)r!==0&&(n+=","),n+=bt(t[r]),n+=":",n+=Pg(e[t[r]]);return n+="}",n},Kw=function(e,t){const n=e.length;if(n<=t)return[e];const r=[];for(let i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function At(e,t){for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])}const Qw=function(e){W(!kg(e),"Invalid JSON number");const t=11,n=52,r=(1<<t-1)-1;let i,o,s,a,l;e===0?(o=0,s=0,i=1/e===-1/0?1:0):(i=e<0,e=Math.abs(e),e>=Math.pow(2,1-r)?(a=Math.min(Math.floor(Math.log(e)/Math.LN2),r),o=a+r,s=Math.round(e*Math.pow(2,n-a)-Math.pow(2,n))):(o=0,s=Math.round(e/Math.pow(2,1-r-n))));const u=[];for(l=n;l;l-=1)u.push(s%2?1:0),s=Math.floor(s/2);for(l=t;l;l-=1)u.push(o%2?1:0),o=Math.floor(o/2);u.push(i?1:0),u.reverse();const c=u.join("");let d="";for(l=0;l<64;l+=8){let f=parseInt(c.substr(l,8),2).toString(16);f.length===1&&(f="0"+f),d=d+f}return d.toLowerCase()},YM=function(){return!!(typeof window=="object"&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))},KM=function(){return typeof Windows=="object"&&typeof Windows.UI=="object"};function QM(e,t){let n="Unknown Error";e==="too_big"?n="The data requested exceeds the maximum size that can be accessed with a single request.":e==="permission_denied"?n="Client doesn't have permission to access the desired data.":e==="unavailable"&&(n="The service is unavailable");const r=new Error(e+" at "+t._path.toString()+": "+n);return r.code=e.toUpperCase(),r}const ZM=new RegExp("^-?(0*)\\d{1,10}$"),XM=-2147483648,JM=2147483647,K0=function(e){if(ZM.test(e)){const t=Number(e);if(t>=XM&&t<=JM)return t}return null},rs=function(e){try{e()}catch(t){setTimeout(()=>{const n=t.stack||"";throw qt("Exception was thrown by user callback.",n),t},Math.floor(0))}},e4=function(){return(typeof window=="object"&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},Gs=function(e,t){const n=setTimeout(e,t);return typeof n=="number"&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(n):typeof n=="object"&&n.unref&&n.unref(),n};/**
662 * @license
663 * Copyright 2021 Google LLC
664 *
665 * Licensed under the Apache License, Version 2.0 (the "License");
666 * you may not use this file except in compliance with the License.
667 * You may obtain a copy of the License at
668 *
669 *   http://www.apache.org/licenses/LICENSE-2.0
670 *
671 * Unless required by applicable law or agreed to in writing, software
672 * distributed under the License is distributed on an "AS IS" BASIS,
673 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
674 * See the License for the specific language governing permissions and
675 * limitations under the License.
676 */class t4{constructor(t,n){this.appName_=t,this.appCheckProvider=n,this.appCheck=n==null?void 0:n.getImmediate({optional:!0}),this.appCheck||n==null||n.get().then(r=>this.appCheck=r)}getToken(t){return this.appCheck?this.appCheck.getToken(t):new Promise((n,r)=>{setTimeout(()=>{this.appCheck?this.getToken(t).then(n,r):n(null)},0)})}addTokenChangeListener(t){var n;(n=this.appCheckProvider)===null||n===void 0||n.get().then(r=>r.addTokenListener(t))}notifyForInvalidToken(){qt(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}/**
677 * @license
678 * Copyright 2017 Google LLC
679 *
680 * Licensed under the Apache License, Version 2.0 (the "License");
681 * you may not use this file except in compliance with the License.
682 * You may obtain a copy of the License at
683 *
684 *   http://www.apache.org/licenses/LICENSE-2.0
685 *
686 * Unless required by applicable law or agreed to in writing, software
687 * distributed under the License is distributed on an "AS IS" BASIS,
688 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
689 * See the License for the specific language governing permissions and
690 * limitations under the License.
691 */class n4{constructor(t,n,r){this.appName_=t,this.firebaseOptions_=n,this.authProvider_=r,this.auth_=null,this.auth_=r.getImmediate({optional:!0}),this.auth_||r.onInit(i=>this.auth_=i)}getToken(t){return this.auth_?this.auth_.getToken(t).catch(n=>n&&n.code==="auth/token-not-initialized"?(Dt("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(n)):new Promise((n,r)=>{setTimeout(()=>{this.auth_?this.getToken(t).then(n,r):n(null)},0)})}addTokenChangeListener(t){this.auth_?this.auth_.addAuthTokenListener(t):this.authProvider_.get().then(n=>n.addAuthTokenListener(t))}removeTokenChangeListener(t){this.authProvider_.get().then(n=>n.removeAuthTokenListener(t))}notifyForInvalidToken(){let t='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?t+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?t+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':t+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',qt(t)}}class lu{constructor(t){this.accessToken=t}getToken(t){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(t){t(this.accessToken)}removeTokenChangeListener(t){}notifyForInvalidToken(){}}lu.OWNER="owner";/**
692 * @license
693 * Copyright 2017 Google LLC
694 *
695 * Licensed under the Apache License, Version 2.0 (the "License");
696 * you may not use this file except in compliance with the License.
697 * You may obtain a copy of the License at
698 *
699 *   http://www.apache.org/licenses/LICENSE-2.0
700 *
701 * Unless required by applicable law or agreed to in writing, software
702 * distributed under the License is distributed on an "AS IS" BASIS,
703 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
704 * See the License for the specific language governing permissions and
705 * limitations under the License.
706 */const Mg="5",Zw="v",Xw="s",Jw="r",ex="f",tx=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,nx="ls",rx="p",Bp="ac",ix="websocket",ox="long_polling";/**
707 * @license
708 * Copyright 2017 Google LLC
709 *
710 * Licensed under the Apache License, Version 2.0 (the "License");
711 * you may not use this file except in compliance with the License.
712 * You may obtain a copy of the License at
713 *
714 *   http://www.apache.org/licenses/LICENSE-2.0
715 *
716 * Unless required by applicable law or agreed to in writing, software
717 * distributed under the License is distributed on an "AS IS" BASIS,
718 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
719 * See the License for the specific language governing permissions and
720 * limitations under the License.
721 */class sx{constructor(t,n,r,i,o=!1,s="",a=!1,l=!1){this.secure=n,this.namespace=r,this.webSocketOnly=i,this.nodeAdmin=o,this.persistenceKey=s,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=l,this._host=t.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=Ii.get("host:"+t)||this._host}isCacheableHost(){return this.internalHost.substr(0,2)==="s-"}isCustomHost(){return this._domain!=="firebaseio.com"&&this._domain!=="firebaseio-demo.com"}get host(){return this._host}set host(t){t!==this.internalHost&&(this.internalHost=t,this.isCacheableHost()&&Ii.set("host:"+this._host,this.internalHost))}toString(){let t=this.toURLString();return this.persistenceKey&&(t+="<"+this.persistenceKey+">"),t}toURLString(){const t=this.secure?"https://":"http://",n=this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:"";return`${t}${this.host}/${n}`}}function r4(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams}function ax(e,t,n){W(typeof t=="string","typeof type must == string"),W(typeof n=="object","typeof params must == object");let r;if(t===ix)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else if(t===ox)r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?";else throw new Error("Unknown connection type: "+t);r4(e)&&(n.ns=e.namespace);const i=[];return At(n,(o,s)=>{i.push(o+"="+s)}),r+i.join("&")}/**
722 * @license
723 * Copyright 2017 Google LLC
724 *
725 * Licensed under the Apache License, Version 2.0 (the "License");
726 * you may not use this file except in compliance with the License.
727 * You may obtain a copy of the License at
728 *
729 *   http://www.apache.org/licenses/LICENSE-2.0
730 *
731 * Unless required by applicable law or agreed to in writing, software
732 * distributed under the License is distributed on an "AS IS" BASIS,
733 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
734 * See the License for the specific language governing permissions and
735 * limitations under the License.
736 */class i4{constructor(){this.counters_={}}incrementCounter(t,n=1){er(this.counters_,t)||(this.counters_[t]=0),this.counters_[t]+=n}get(){return aP(this.counters_)}}/**
737 * @license
738 * Copyright 2017 Google LLC
739 *
740 * Licensed under the Apache License, Version 2.0 (the "License");
741 * you may not use this file except in compliance with the License.
742 * You may obtain a copy of the License at
743 *
744 *   http://www.apache.org/licenses/LICENSE-2.0
745 *
746 * Unless required by applicable law or agreed to in writing, software
747 * distributed under the License is distributed on an "AS IS" BASIS,
748 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
749 * See the License for the specific language governing permissions and
750 * limitations under the License.
751 */const of={},sf={};function Dg(e){const t=e.toString();return of[t]||(of[t]=new i4),of[t]}function o4(e,t){const n=e.toString();return sf[n]||(sf[n]=t()),sf[n]}/**
752 * @license
753 * Copyright 2017 Google LLC
754 *
755 * Licensed under the Apache License, Version 2.0 (the "License");
756 * you may not use this file except in compliance with the License.
757 * You may obtain a copy of the License at
758 *
759 *   http://www.apache.org/licenses/LICENSE-2.0
760 *
761 * Unless required by applicable law or agreed to in writing, software
762 * distributed under the License is distributed on an "AS IS" BASIS,
763 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
764 * See the License for the specific language governing permissions and
765 * limitations under the License.
766 */class s4{constructor(t){this.onMessage_=t,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(t,n){this.closeAfterResponse=t,this.onClose=n,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(t,n){for(this.pendingResponses[t]=n;this.pendingResponses[this.currentResponseNum];){const r=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let i=0;i<r.length;++i)r[i]&&rs(()=>{this.onMessage_(r[i])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}/**
767 * @license
768 * Copyright 2017 Google LLC
769 *
770 * Licensed under the Apache License, Version 2.0 (the "License");
771 * you may not use this file except in compliance with the License.
772 * You may obtain a copy of the License at
773 *
774 *   http://www.apache.org/licenses/LICENSE-2.0
775 *
776 * Unless required by applicable law or agreed to in writing, software
777 * distributed under the License is distributed on an "AS IS" BASIS,
778 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
779 * See the License for the specific language governing permissions and
780 * limitations under the License.
781 */const Q0="start",a4="close",l4="pLPCommand",u4="pRTLPCB",lx="id",ux="pw",cx="ser",c4="cb",d4="seg",f4="ts",p4="d",h4="dframe",dx=1870,fx=30,g4=dx-fx,m4=25e3,v4=3e4;class vo{constructor(t,n,r,i,o,s,a){this.connId=t,this.repoInfo=n,this.applicationId=r,this.appCheckToken=i,this.authToken=o,this.transportSessionId=s,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=Qa(t),this.stats_=Dg(n),this.urlFn=l=>(this.appCheckToken&&(l[Bp]=this.appCheckToken),ax(n,ox,l))}open(t,n){this.curSegmentNum=0,this.onDisconnect_=n,this.myPacketOrderer=new s4(t),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(v4)),GM(()=>{if(this.isClosed_)return;this.scriptTagHolder=new Ng((...o)=>{const[s,a,l,u,c]=o;if(this.incrementIncomingBytes_(o),!!this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,s===Q0)this.id=a,this.password=l;else if(s===a4)a?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(a,()=>{this.onClosed_()})):this.onClosed_();else throw new Error("Unrecognized command received: "+s)},(...o)=>{const[s,a]=o;this.incrementIncomingBytes_(o),this.myPacketOrderer.handleResponse(s,a)},()=>{this.onClosed_()},this.urlFn);const r={};r[Q0]="t",r[cx]=Math.floor(Math.random()*1e8),this.scriptTagHolder.uniqueCallbackIdentifier&&(r[c4]=this.scriptTagHolder.uniqueCallbackIdentifier),r[Zw]=Mg,this.transportSessionId&&(r[Xw]=this.transportSessionId),this.lastSessionId&&(r[nx]=this.lastSessionId),this.applicationId&&(r[rx]=this.applicationId),this.appCheckToken&&(r[Bp]=this.appCheckToken),typeof location<"u"&&location.hostname&&tx.test(location.hostname)&&(r[Jw]=ex);const i=this.urlFn(r);this.log_("Connecting via long-poll to "+i),this.scriptTagHolder.addTag(i,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){vo.forceAllow_=!0}static forceDisallow(){vo.forceDisallow_=!0}static isAvailable(){return vo.forceAllow_?!0:!vo.forceDisallow_&&typeof document<"u"&&document.createElement!=null&&!YM()&&!KM()}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(t){const n=bt(t);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=Nw(n),i=Kw(r,g4);for(let o=0;o<i.length;o++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,i.length,i[o]),this.curSegmentNum++}addDisconnectPingFrame(t,n){this.myDisconnFrame=document.createElement("iframe");const r={};r[h4]="t",r[lx]=t,r[ux]=n,this.myDisconnFrame.src=this.urlFn(r),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(t){const n=bt(t).length;this.bytesReceived+=n,this.stats_.incrementCounter("bytes_received",n)}}class Ng{constructor(t,n,r,i){this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(Math.random()*1e8),this.sendNewPolls=!0;{this.uniqueCallbackIdentifier=WM(),window[l4+this.uniqueCallbackIdentifier]=t,window[u4+this.uniqueCallbackIdentifier]=n,this.myIFrame=Ng.createI
781Frame_();let o="";this.myIFrame.src&&this.myIFrame.src.substr(0,11)==="javascript:"&&(o='<script>document.domain="'+document.domain+'";<\/script>');const s="<html><body>"+o+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(a){Dt("frame writing exception"),a.stack&&Dt(a.stack),Dt(a)}}}static createIFrame_(){const t=document.createElement("iframe");if(t.style.display="none",document.body){document.body.appendChild(t);try{t.contentWindow.document||Dt("No IE domain setting required")}catch{const r=document.domain;t.src="javascript:void((function(){document.open();document.domain='"+r+"';document.close();})())"}}else throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";return t.contentDocument?t.doc=t.contentDocument:t.contentWindow?t.doc=t.contentWindow.document:t.document&&(t.doc=t.document),t}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{this.myIFrame!==null&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const t=this.onDisconnect;t&&(this.onDisconnect=null,t())}startLongPoll(t,n){for(this.myID=t,this.myPW=n,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const t={};t[lx]=this.myID,t[ux]=this.myPW,t[cx]=this.currentSerial;let n=this.urlFn(t),r="",i=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+fx+r.length<=dx;){const s=this.pendingSegs.shift();r=r+"&"+d4+i+"="+s.seg+"&"+f4+i+"="+s.ts+"&"+p4+i+"="+s.d,i++}return n=n+r,this.addLongPollTag_(n,this.currentSerial),!0}else return!1}enqueueSegment(t,n,r){this.pendingSegs.push({seg:t,ts:n,d:r}),this.alive&&this.newRequest_()}addLongPollTag_(t,n){this.outstandingRequests.add(n);const r=()=>{this.outstandingRequests.delete(n),this.newRequest_()},i=setTimeout(r,Math.floor(m4)),o=()=>{clearTimeout(i),r()};this.addTag(t,o)}addTag(t,n){setTimeout(()=>{try{if(!this.sendNewPolls)return;const r=this.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,r.onload=r.onreadystatechange=function(){const i=r.readyState;(!i||i==="loaded"||i==="complete")&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),n())},r.onerror=()=>{Dt("Long-poll script failed to load: "+t),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch{}},Math.floor(1))}}/**
782 * @license
783 * Copyright 2017 Google LLC
784 *
785 * Licensed under the Apache License, Version 2.0 (the "License");
786 * you may not use this file except in compliance with the License.
787 * You may obtain a copy of the License at
788 *
789 *   http://www.apache.org/licenses/LICENSE-2.0
790 *
791 * Unless required by applicable law or agreed to in writing, software
792 * distributed under the License is distributed on an "AS IS" BASIS,
793 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
794 * See the License for the specific language governing permissions and
795 * limitations under the License.
796 */const y4=16384,C4=45e3;let Wu=null;typeof MozWebSocket<"u"?Wu=MozWebSocket:typeof WebSocket<"u"&&(Wu=WebSocket);class On{constructor(t,n,r,i,o,s,a){this.connId=t,this.applicationId=r,this.appCheckToken=i,this.authToken=o,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=Qa(this.connId),this.stats_=Dg(n),this.connURL=On.connectionURL_(n,s,a,i,r),this.nodeAdmin=n.nodeAdmin}static connectionURL_(t,n,r,i,o){const s={};return s[Zw]=Mg,typeof location<"u"&&location.hostname&&tx.test(location.hostname)&&(s[Jw]=ex),n&&(s[Xw]=n),r&&(s[nx]=r),i&&(s[Bp]=i),o&&(s[rx]=o),ax(t,ix,s)}open(t,n){this.onDisconnect=n,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,Ii.set("previous_websocket_failure",!0);try{let r;Fw(),this.mySock=new Wu(this.connURL,[],r)}catch(r){this.log_("Error instantiating WebSocket.");const i=r.message||r.data;i&&this.log_(i),this.onClosed_();return}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0}
vendor: 4,211 bytes, lines 796-821
796,this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=r=>{this.handleIncomingFrame(r)},this.mySock.onerror=r=>{this.log_("WebSocket error.  Closing connection.");const i=r.message||r.data;i&&this.log_(i),this.onClosed_()}}start(){}static forceDisallow(){On.forceDisallow_=!0}static isAvailable(){let t=!1;if(typeof navigator<"u"&&navigator.userAgent){const n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(t=!0)}return!t&&Wu!==null&&!On.forceDisallow_}static previouslyFailed(){return Ii.isInMemoryStorage||Ii.get("previous_websocket_failure")===!0}markConnectionHealthy(){Ii.remove("previous_websocket_failure")}appendFrame_(t){if(this.frames.push(t),this.frames.length===this.totalFrames){const n=this.frames.join("");this.frames=null;const r=Ca(n);this.onMessage(r)}}handleNewFrameCount_(t){this.totalFrames=t,this.frames=[]}extractFrameCount_(t){if(W(this.frames===null,"We already have a frame buffer"),t.length<=6){const n=Number(t);if(!isNaN(n))return this.handleNewFrameCount_(n),null}return this.handleNewFrameCount_(1),t}handleIncomingFrame(t){if(this.mySock===null)return;const n=t.data;if(this.bytesReceived+=n.length,this.stats_.incrementCounter("bytes_received",n.length),this.resetKeepAlive(),this.frames!==null)this.appendFrame_(n);else{const r=this.extractFrameCount_(n);r!==null&&this.appendFrame_(r)}}send(t){this.resetKeepAlive();const n=bt(t);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=Kw(n,y4);r.length>1&&this.sendString_(String(r.length));for(let i=0;i<r.length;i++)this.sendString_(r[i])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(C4))}sendString_(t){try{this.mySock.send(t)}catch(n){this.log_("Exception thrown from WebSocket.send():",n.message||n.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}On.responsesRequiredToBeHealthy=2;On.healthyTimeout=3e4;/**
797 * @license
798 * Copyright 2017 Google LLC
799 *
800 * Licensed under the Apache License, Version 2.0 (the "License");
801 * you may not use this file except in compliance with the License.
802 * You may obtain a copy of the License at
803 *
804 *   http://www.apache.org/licenses/LICENSE-2.0
805 *
806 * Unless required by applicable law or agreed to in writing, software
807 * distributed under the License is distributed on an "AS IS" BASIS,
808 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
809 * See the License for the specific language governing permissions and
810 * limitations under the License.
811 */class xa{constructor(t){this.initTransports_(t)}static get ALL_TRANSPORTS(){return[vo,On]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(t){const n=On&&On.isAvailable();let r=n&&!On.previouslyFailed();if(t.webSocketOnly&&(n||qt("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),r=!0),r)this.transports_=[On];else{const i=this.transports_=[];for(const o of xa.ALL_TRANSPORTS)o&&o.isAvailable()&&i.push(o);xa.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}xa.globalTransportInitialized_=!1;/**
812 * @license
813 * Copyright 2017 Google LLC
814 *
815 * Licensed under the Apache License, Version 2.0 (the "License");
816 * you may not use this file except in compliance with the License.
817 * You may obtain a copy of the License at
818 *
819 *   http://www.apache.org/licenses/LICENSE-2.0
820 *
821 * Unless required by applicable law or agreed to in writing, softw
821are
822 * distributed under the License is distributed on an "AS IS" BASIS,
823 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
824 * See the License for the specific language governing permissions and
825 * limitations under the License.
826 */const b4=6e4,w4=5e3,x4=10*1024,E4=100*1024,af="t",Z0="d",S4="s",X0="r",_4="e",J0="o",e1="a",t1="n",n1="p",L4="h";class I4{constructor(t,n,r,i,o,s,a,l,u,c){this.id=t,this.repoInfo_=n,this.applicationId_=r,this.appCheckToken_=i,this.authToken_=o,this.onMessage_=s,this.onReady_=a,this.onDisconnect_=l,this.onKill_=u,this.lastSessionId=c,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=Qa("c:"+this.id+":"),this.transportManager_=new xa(n),this.log_("Connection created"),this.start_()}start_(){const t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(n,r)},Math.floor(0));const i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=Gs(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>E4?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes.  Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>x4?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes.  Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(i)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(t){return n=>{t===this.conn_?this.onConnectionLost_(n):t===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(t){return n=>{this.state_!==2&&(t===this.rx_?this.onPrimaryMessageReceived_(n):t===this.secondaryConn_?this.onSecondaryMessageReceived_(n):this.log_("message on old connection"))}}sendRequest(t){const n={t:"d",d:t};this.sendData_(n)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(t){if(af in t){const n=t[af];n===e1?this.upgradeIfSecondaryHealthy_():n===X0?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):n===J0&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(t){const n=xs("t",t),r=xs("d",t);if(n==="c")this.onSecondaryControl_(r);else if(n==="d")this.pendingDataMessages.push(r);else throw new Error("Unknown protocol layer: "+n)}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:n1,d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:e1,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:t1,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(t){const n=xs("t",t),r=xs("d",t);n==="c"?this.onControl_(r):n==="d"&&this.onDataMessage_(r)}onDataMessage_(t){this.onPrimaryResponse_(),this.onMessage_(t)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(t){const n=xs(af,t);if(Z0 in t){const r=t[Z0];if(n===L4){const i=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(i.h=this.repoInfo_.host),this.onHandshake_(i)}else if(n===t1){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let i=0;i<this.pendingDataMessages.length;++i)this.onDataMessage_(this.pendingDataMessages[i]);this.pendingDataMessages=[],this.tryCleanupConnection()}else n===S4?this.onConnectionShutdown_(r):n===X0?this.onReset_(r):n===_4?Fp("Server Error: "+r):n===J0?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):Fp("Unknown control packet command: "+n)}}onHandshake_(t){const n=t.ts,r=t.v,i=t.h;this.sessionId=t.s,this.repoInfo_.host=i,this.state_===0&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,n),Mg!==r&&qt("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const t=this.transportManager_.upgradeTransport();t&&this.startUpgrade_(t)}startUpgrade_(t){this.secondaryConn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),Gs(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(b4))}onReset_(t){this.log_("Reset packet received.  New host: "+t),this.repoInfo_.host=t,this.state_===1?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(t,n){this.log_("Realtime connection established."),this.conn_=t,this.state_=1,this.onReady_&&(this.onReady_(n,this.sessionId),this.onReady_=null),this.primaryResponsesRequired_===0?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Gs(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(w4))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&this.state_===1&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:n1,d:{}}}))}onSecondaryConnectionLost_(){const t=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===t||this.rx_===t)&&this.close()}onConnectionLost_(t){this.conn_=null,!t&&this.state_===0?(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(Ii.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)):this.state_===1&&this.log_("Realtime connection lost."),this.close()}onConnectionShutdown_(t){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(t),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(t){if(this.state_!==1)throw"Connection is not connected";this.tx_.send(t)}close(){this.state_!==2&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}/**
827 * @license
828 * Copyright 2017 Google LLC
829 *
830 * Licensed under the Apache License, Version 2.0 (the "License");
831 * you may not use this file except in compliance with the License.
832 * You may obtain a copy of the License at
833 *
834 *   http://www.apache.org/licenses/LICENSE-2.0
835 *
836 * Unless required by applicable law or agreed to in writing, software
837 * distributed under the License is distributed on an "AS IS" BASIS,
838 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
839 * See the License for the specific language governing permissions and
840 * limitations under the License.
841 */class px{put(t,n,r,i){}merge(t,n,r,i){}refreshAuthToken(t){}refreshAppCheckToken(t){}onDisconnectPut(t,n,r){}onDisconnectMerge(t,n,r){}onDisconnectCancel(t,n){}reportStats(t){}}/**
842 * @license
843 * Copyright 2017 Google LLC
844 *
845 * Licensed under the Apache License, Version 2.0 (the "License");
846 * you may not use this file except in compliance with the License.
847 * You may obtain a copy of the License at
848 *
849 *   http://www.apache.org/licenses/LICENSE-2.0
850 *
851 * Unless required by applicable law or agreed to in writing, software
852 * distributed under the License is distributed on an "AS IS" BASIS,
853 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
854 * See the License for the specific language governing permissions and
855 * limitations under the License.
856 */class hx{constructor(t){this.allowedEvents_=t,this.listeners_={},W(Array.isArray(t)&&t.length>0,"Requires a non-empty array")}trigger(t,...n){if(Array.isArray(this.listeners_[t])){const r=[...this.listeners_[t]];for(let i=0;i<r.length;i++)r[i].callback.apply(r[i].context,n)}}on(t,n,r){this.validateEventType_(t),this.listeners_[t]=this.listeners_[t]||[],this.listeners_[t].push({callback:n,context:r});const i=this.getInitialEvent(t);i&&n.apply(r,i)}off(t,n,r){this.validateEventType_(t);const i=this.listeners_[t]||[];for(let o=0;o<i.length;o++)if(i[o].callback===n&&(!r||r===i[o].context)){i.splice(o,1);return}}validateEventType_(t){W(this.allowedEvents_.find(n=>n===t),"Unknown event: "+t)}}/**
857 * @license
858 * Copyright 2017 Google LLC
859 *
860 * Licensed under the Apache License, Version 2.0 (the "License");
861 * you may not use this file except in compliance with the License.
862 * You may obtain a copy of the License at
863 *
864 *   http://www.apache.org/licenses/LICENSE-2.0
865 *
866 * Unless required by applicable law or agreed to in writing, software
867 * distributed under the License is distributed on an "AS IS" BASIS,
868 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
869 * See the License for the specific language governing permissions and
870 * limitations under the License.
871 */class Hu extends hx{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!Ow()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new Hu}getInitialEvent(t){return W(t==="online","Unknown event type: "+t),[this.online_]}currentlyOnline(){return this.online_}}/**
872 * @license
873 * Copyright 2017 Google LLC
874 *
875 * Licensed under the Apache License, Version 2.0 (the "License");
876 * you may not use this file except in compliance with the License.
877 * You may obtain a copy of the License at
878 *
879 *   http://www.apache.org/licenses/LICENSE-2.0
880 *
881 * Unless required by applicable law or agreed to in writing, software
882 * distributed under the License is distributed on an "AS IS" BASIS,
883 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
884 * See the License for the specific language governing permissions and
885 * limitations under the License.
886 */const r1=32,i1=768;class Ge{constructor(t,n){if(n===void 0){this.pieces_=t.split("/");let r=0;for(let i=0;i<this.pieces_.length;i++)this.pieces_[i].length>0&&(this.pieces_[r]=this.pieces_[i],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=t,this.pieceNum_=n}toString(){let t="";for(let n=this.pieceNum_;n<this.pieces_.length;n++)this.pieces_[n]!==""&&(t+="/"+this.pieces_[n]);return t||"/"}}function ze(){return new Ge("")}function xe(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function ei(e){return e.pieces_.length-e.pieceNum_}function Ze(e){let t=e.pieceNum_;return t<e.pieces_.length&&t++,new Ge(e.pieces_,t)}function Tg(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function k4(e){let t="";for(let n=e.pieceNum_;n<e.pieces_.length;n++)e.pieces_[n]!==""&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}function Ea(e,t=0){return e.pieces_.slice(e.pieceNum_+t)}function gx(e){if(e.pieceNum_>=e.pieces_.length)return null;const t=[];for(let n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new Ge(t,0)}function dt(e,t){const n=[];for(let r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);if(t instanceof Ge)for(let r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{const r=t.split("/");for(let i=0;i<r.length;i++)r[i].length>0&&n.push(r[i])}return new Ge(n,0)}function Ie(e){return e.pieceNum_>=e.pieces_.length}function Vt(e,t){const n=xe(e),r=xe(t);if(n===null)return t;if(n===r)return Vt(Ze(e),Ze(t));
vendor: 12,078 bytes, lines 886-917
886throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function P4(e,t){const n=Ea(e,0),r=Ea(t,0);for(let i=0;i<n.length&&i<r.length;i++){const o=Xi(n[i],r[i]);if(o!==0)return o}return n.length===r.length?0:n.length<r.length?-1:1}function Rg(e,t){if(ei(e)!==ei(t))return!1;for(let n=e.pieceNum_,r=t.pieceNum_;n<=e.pieces_.length;n++,r++)if(e.pieces_[n]!==t.pieces_[r])return!1;return!0}function Sn(e,t){let n=e.pieceNum_,r=t.pieceNum_;if(ei(e)>ei(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[r])return!1;++n,++r}return!0}class M4{constructor(t,n){this.errorPrefix_=n,this.parts_=Ea(t,0),this.byteLength_=Math.max(1,this.parts_.length);for(let r=0;r<this.parts_.length;r++)this.byteLength_+=jc(this.parts_[r]);mx(this)}}function D4(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=jc(t),mx(e)}function N4(e){const t=e.parts_.pop();e.byteLength_-=jc(t),e.parts_.length>0&&(e.byteLength_-=1)}function mx(e){if(e.byteLength_>i1)throw new Error(e.errorPrefix_+"has a key path longer than "+i1+" bytes ("+e.byteLength_+").");if(e.parts_.length>r1)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+r1+") or object contains a cycle "+Ci(e))}function Ci(e){return e.parts_.length===0?"":"in property '"+e.parts_.join(".")+"'"}/**
887 * @license
888 * Copyright 2017 Google LLC
889 *
890 * Licensed under the Apache License, Version 2.0 (the "License");
891 * you may not use this file except in compliance with the License.
892 * You may obtain a copy of the License at
893 *
894 *   http://www.apache.org/licenses/LICENSE-2.0
895 *
896 * Unless required by applicable law or agreed to in writing, software
897 * distributed under the License is distributed on an "AS IS" BASIS,
898 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
899 * See the License for the specific language governing permissions and
900 * limitations under the License.
901 */class Ag extends hx{constructor(){super(["visible"]);let t,n;typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(n="visibilitychange",t="hidden"):typeof document.mozHidden<"u"?(n="mozvisibilitychange",t="mozHidden"):typeof document.msHidden<"u"?(n="msvisibilitychange",t="msHidden"):typeof document.webkitHidden<"u"&&(n="webkitvisibilitychange",t="webkitHidden")),this.visible_=!0,n&&document.addEventListener(n,()=>{const r=!document[t];r!==this.visible_&&(this.visible_=r,this.trigger("visible",r))},!1)}static getInstance(){return new Ag}getInitialEvent(t){return W(t==="visible","Unknown event type: "+t),[this.visible_]}}/**
902 * @license
903 * Copyright 2017 Google LLC
904 *
905 * Licensed under the Apache License, Version 2.0 (the "License");
906 * you may not use this file except in compliance with the License.
907 * You may obtain a copy of the License at
908 *
909 *   http://www.apache.org/licenses/LICENSE-2.0
910 *
911 * Unless required by applicable law or agreed to in writing, software
912 * distributed under the License is distributed on an "AS IS" BASIS,
913 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
914 * See the License for the specific language governing permissions and
915 * limitations under the License.
916 */const Es=1e3,T4=60*5*1e3,o1=30*1e3,R4=1.3,A4=3e4,O4="server_kill",s1=3;class lr extends px{constructor(t,n,r,i,o,s,a,l){if(super(),this.repoInfo_=t,this.applicationId_=n,this.onDataUpdate_=r,this.onConnectStatus_=i,this.onServerInfoUpdate_=o,this.authTokenProvider_=s,this.appCheckTokenProvider_=a,this.authOverride_=l,this.id=lr.nextPersistentConnectionId_++,this.log_=Qa("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=Es,this.maxReconnectDelay_=T4,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,l&&!Fw())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");Ag.getInstance().on("visible",this.onVisible_,this),t.host.indexOf("fblocal")===-1&&Hu.getInstance().on("online",this.onOnline_,this)}sendRequest(t,n,r){const i=++this.requestNumber_,o={r:i,a:t,b:n};this.log_(bt(o)),W(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(o),r&&(this.requestCBHash_[i]=r)}get(t){this.initConnection_();const n=new qa,i={action:"g",request:{p:t._path.toString(),q:t._queryObject},onComplete:s=>{const a=s.d;s.s==="ok"?n.resolve(a):n.reject(a)}};this.outstandingGets_.push(i),this.outstandingGetCount_++;const o=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(o),n.promise}listen(t,n,r,i){this.initConnection_();const o=t._queryIdentifier,s=t._path.toString();this.log_("Listen called for "+s+" "+o),this.listens.has(s)||this.listens.set(s,new Map),W(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"listen() called for non-default but complete query"),W(!this.listens.get(s).has(o),"listen() called twice for same path/queryId.");const a={onComplete:i,hashFn:n,query:t,tag:r};this.listens.get(s).set(o,a),this.connected_&&this.sendListen_(a)}sendGet_(t){const n=this.outstandingGets_[t];this.sendRequest("g",n.request,r=>{delete this.outstandingGets_[t],this.outstandingGetCount_--,this.outstandingGetCount_===0&&(this.outstandingGets_=[]),n.onComplete&&n.onComplete(r)})}sendListen_(t){const n=t.query,r=n._path.toString(),i=n._queryIdentifier;this.log_("Listen on "+r+" for "+i);const o={p:r},s="q";t.tag&&(o.q=n._queryObject,o.t=t.tag),o.h=t.hashFn(),this.sendRequest(s,o,a=>{const l=a.d,u=a.s;lr.warnOnListenWarnings_(l,n),(this.listens.get(r)&&this.listens.get(r).get(i))===t&&(this.log_("listen response",a),u!=="ok"&&this.removeListen_(r,i),t.onComplete&&t.onComplete(u,l))})}static warnOnListenWarnings_(t,n){if(t&&typeof t=="object"&&er(t,"w")){const r=Bo(t,"w");if(Array.isArray(r)&&~r.indexOf("no_index")){const i='".indexOn": "'+n._queryParams.getIndex().toString()+'"',o=n._path.toString();qt(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${i} at ${o} to your security rules for better performance.`)}}}refreshAuthToken(t){this.authToken_=t,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(t)}reduceReconnectDelayIfAdminCredential_(t){(t&&t.length===40||SP(t))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=o1)}refreshAppCheckToken(t){this.appCheckToken_=t,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const t=this.authToken_,n=EP(t)?"auth":"gauth",r={cred:t};this.authOverride_===null?r.noauth=!0:typeof this.authOverride_=="object"&&(r.authvar=this.authOverride_),this.sendRequest(n,r,i=>{const o=i.s,s=i.d||"error";this.authToken_===t&&(o==="ok"?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(o,s))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},t=>{const n=t.s,r=t.d||"error";n==="ok"?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(n,r)})}unlisten(t,n){const r=t._path.toString(),i=t._queryIdentifier;this.log_("Unlisten called for "+r+" "+i),W(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(r,i)&&this.connected_&&this.sendUnlisten_(r,i,t._queryObject,n)}sendUnlisten_(t,n,r,i){this.log_("Unlisten on "+t+" for "+n);const o={p:t},s="n";i&&(o.q=r,o.t=i),this.sendRequest(s,o)}onDisconnectPut(t,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",t,n,r):this.onDisconnectRequestQueue_.push({pathString:t,action:"o",data:n,onComplete:r})}onDisconnectMerge(t,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",t,n,r):this.onDisconnectRequestQueue_.push({pathString:t,action:"om",data:n,onComplete:r})}onDisconnectCancel(t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",t,null,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"oc",data:null,onComplete:n})}sendOnDisconnect_(t,n,r,i){const o={p:n,d:r};this.log_("onDisconnect "+t,o),this.sendRequest(t,o,s=>{i&&setTimeout(()=>{i(s.s,s.d)},Math.floor(0))})}put(t,n,r,i){this.putInternal("p",t,n,r,i)}merge(t,n,r,i){this.putInternal("m",t,n,r,i)}putInternal(t,n,r,i,o){this.initConnection_();const s={p:n,d:r};o!==void 0&&(s.h=o),this.outstandingPuts_.push({action:t,request:s,onComplete:i}),this.outstandingPutCount_++;const a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+n)}sendPut_(t){const n=this.outstandingPuts_[t].action,r=this.outstandingPuts_[t].request,i=this.outstandingPuts_[t].onComplete;this.outstandingPuts_[t].queued=this.connected_,this.sendRequest(n,r,o=>{this.log_(n+" response",o),delete this.outstandingPuts_[t],this.outstandingPutCount_--,this.outstandingPutCount_===0&&(this.outstandingPuts_=[]),i&&i(o.s,o.d)})}reportStats(t){if(this.connected_){const n={c:t};this.log_("reportStats",n),this.sendRequest("s",n,r=>{if(r.s!=="ok"){const o=r.d;this.log_("reportStats","Error sending stats: "+o)}})}}onDataMessage_(t){if("r"in t){this.log_("from server: "+bt(t));const n=t.r,r=this.requestCBHash_[n];r&&(delete this.requestCBHash_[n],r(t.b))}else{if("error"in t)throw"A server-side error has occurred: "+t.error;"a"in t&&this.onDataPush_(t.a,t.b)}}onDataPush_(t,n){this.log_("handleServerMessage",t,n),t==="d"?this.onDataUpdate_(n.p,n.d,!1,n.t):t==="m"?this.onDataUpdate_(n.p,n.d,!0,n.t):t==="c"?this.onListenRevoked_(n.p,n.q):t==="ac"?this.onAuthRevoked_(n.s,n.d):t==="apc"?this.onAppCheckRevoked_(n.s,n.d):t==="sd"?this.onSecurityDebugPacket_(n):Fp("Unrecognized action received from server: "+bt(t)+`
917Are you using the latest client?`)}onReady_(t,n){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=new Date().getTime(),this.handleTimestamp_(t),this.lastSessionId=n,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(t){W(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(t))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(t){t&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=Es,this.realtime_||this.scheduleConnect_(0)),this.visible_=t}onOnline_(t){t?(this.log_("Browser went online."),this.reconnectDelay_=Es,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&(new Date().getTime()-this.lastConnectionEstablishedTime_>A4&&(this.reconnectDelay_=Es),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=new Date().getTime());const t=new Date().getTime()-this.lastConnectionAttemptTime_;let n=Math.max(0,this.reconnectDelay_-t);
917n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*R4)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=new Date().getTime(),this.lastConnectionEstablishedTime_=null;const t=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+lr.nextConnectionId_++,o=this.lastSessionId;let s=!1,a=null;const l=function(){a?a.close():(s=!0,r())},u=function(d){W(a,"sendRequest call when we're not connected not allowed."),a.sendRequest(d)};this.realtime_={close:l,sendRequest:u};const c=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[d,f]=await Promise.all([this.authTokenProvider_.getToken(c),this.appCheckTokenProvider_.getToken(c)]);s?Dt("getToken() completed but was canceled"):(Dt("getToken() completed. Creating connection."),this.authToken_=d&&d.accessToken,this.appCheckToken_=f&&f.token,a=new I4(i,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,t,n,r,h=>{qt(h+" ("+this.repoInfo_.toString()+")"),this.interrupt(O4)},o))}catch(d){this.log_("Failed to get token: "+d),s||(this.repoInfo_.nodeAdmin&&qt(d),l())}}}interrupt(t){Dt("Interrupting connection for reason: "+t),this.interruptReasons_[t]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(t){Dt("Resuming connection for reason: "+t),delete this.interruptReasons_[t],A0(this.interruptReasons_)&&(this.reconnectDelay_=Es,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(t){const n=t-new Date().getTime();this.onServerInfoUpdate_({serverTimeOffset:n})}cancelSentTransactions_(){for(let t=0;t<this.outstandingPuts_.length;t++){const n=this.outstandingPuts_[t];n&&"h"in n.request&&n.queued&&(n.onComplete&&n.onComplete("disconnect"),delete this.outstandingPuts_[t],this.outstandingPutCount_--)}this.outstandingPutCount_===0&&(this.outstandingPuts_=[])}onListenRevoked_(t,n){let r;n?r=n.map(o=>Pg(o)).join("$"):r="default";const i=this.removeListen_(t,r);i&&i.onComplete&&i.onComplete("permission_denied")}removeListen_(t,n){const r=new Ge(t).toString();let i;if(this.listens.has(r)){const o=this.listens.get(r);i=o.get(n),o.delete(n),o.size===0&&this.listens.delete(r)}else i=void 0;return i}onAuthRevoked_(t,n){Dt("Auth token revoked: "+t+"/"+n),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),(t==="invalid_token"||t==="permission_denied")&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=s1&&(this.reconnectDelay_=o1,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(t,n){Dt("App check token revoked: "+t+"/"+n),this.appCheckToken_=null,this.forceTokenRefresh_=!0,(t==="invalid_token"||t==="permission_denied")&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=s1&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(t){this.securityDebugCallback_?this.securityDebugCallback_(t):"msg"in t&&console.log("FIREBASE: "+t.msg.replace(`
918`,`
919FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const t of this.listens.values())for(const n of t.values())this.sendListen_(n);for(let t=0;t<this.outstandingPuts_.length;t++)this.outstandingPuts_[t]&&this.sendPut_(t);for(;this.onDisconnectRequestQueue_.length;){const t=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(t.action,t.pathString,t.data,t.onComplete)}for(let t=0;t<this.outstandingGets_.length;t++)this.outstandingGets_[t]&&this.sendGet_(t)}sendConnectStats_(){const t={};let n="js";t["sdk."+n+"."+Gw.replace(/\./g,"-")]=1,Ow()?t["framework.cordova"]=1:vP()&&(t["framework.reactnative"]=1),this.reportStats(t)}shouldReconnect_(){const t=Hu.getInstance().currentlyOnline();return A0(this.interruptReasons_)&&t}}lr.nextPersistentConnectionId_=0;lr.nextConnectionId_=0;/**
920 * @license
921 * Copyright 2017 Google LLC
922 *
923 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 11,984 bytes, lines 924-1024
924 * you may not use this file except in compliance with the License.
925 * You may obtain a copy of the License at
926 *
927 *   http://www.apache.org/licenses/LICENSE-2.0
928 *
929 * Unless required by applicable law or agreed to in writing, software
930 * distributed under the License is distributed on an "AS IS" BASIS,
931 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
932 * See the License for the specific language governing permissions and
933 * limitations under the License.
934 */class Ee{constructor(t,n){this.name=t,this.node=n}static Wrap(t,n){return new Ee(t,n)}}/**
935 * @license
936 * Copyright 2017 Google LLC
937 *
938 * Licensed under the Apache License, Version 2.0 (the "License");
939 * you may not use this file except in compliance with the License.
940 * You may obtain a copy of the License at
941 *
942 *   http://www.apache.org/licenses/LICENSE-2.0
943 *
944 * Unless required by applicable law or agreed to in writing, software
945 * distributed under the License is distributed on an "AS IS" BASIS,
946 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
947 * See the License for the specific language governing permissions and
948 * limitations under the License.
949 */class zc{getCompare(){return this.compare.bind(this)}indexedValueChanged(t,n){const r=new Ee(jo,t),i=new Ee(jo,n);return this.compare(r,i)!==0}minPost(){return Ee.MIN}}/**
950 * @license
951 * Copyright 2017 Google LLC
952 *
953 * Licensed under the Apache License, Version 2.0 (the "License");
954 * you may not use this file except in compliance with the License.
955 * You may obtain a copy of the License at
956 *
957 *   http://www.apache.org/licenses/LICENSE-2.0
958 *
959 * Unless required by applicable law or agreed to in writing, software
960 * distributed under the License is distributed on an "AS IS" BASIS,
961 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
962 * See the License for the specific language governing permissions and
963 * limitations under the License.
964 */let $l;class vx extends zc{static get __EMPTY_NODE(){return $l}static set __EMPTY_NODE(t){$l=t}compare(t,n){return Xi(t.name,n.name)}isDefinedOn(t){throw ns("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(t,n){return!1}minPost(){return Ee.MIN}maxPost(){return new Ee(ji,$l)}makePost(t,n){return W(typeof t=="string","KeyIndex indexValue must always be a string."),new Ee(t,$l)}toString(){return".key"}}const Po=new vx;/**
965 * @license
966 * Copyright 2017 Google LLC
967 *
968 * Licensed under the Apache License, Version 2.0 (the "License");
969 * you may not use this file except in compliance with the License.
970 * You may obtain a copy of the License at
971 *
972 *   http://www.apache.org/licenses/LICENSE-2.0
973 *
974 * Unless required by applicable law or agreed to in writing, software
975 * distributed under the License is distributed on an "AS IS" BASIS,
976 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
977 * See the License for the specific language governing permissions and
978 * limitations under the License.
979 */class Wl{constructor(t,n,r,i,o=null){this.isReverse_=i,this.resultGenerator_=o,this.nodeStack_=[];let s=1;for(;!t.isEmpty();)if(t=t,s=n?r(t.key,n):1,i&&(s*=-1),s<0)this.isReverse_?t=t.left:t=t.right;else if(s===0){this.nodeStack_.push(t);break}else this.nodeStack_.push(t),this.isReverse_?t=t.right:t=t.left}getNext(){if(this.nodeStack_.length===0)return null;let t=this.nodeStack_.pop(),n;if(this.resultGenerator_?n=this.resultGenerator_(t.key,t.value):n={key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return n}hasNext(){return this.nodeStack_.length>0}peek(){if(this.nodeStack_.length===0)return null;const t=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value}}}class St{constructor(t,n,r,i,o){this.key=t,this.value=n,this.color=r??St.RED,this.left=i??Jt.EMPTY_NODE,this.right=o??Jt.EMPTY_NODE}copy(t,n,r,i,o){return new St(t??this.key,n??this.value,r??this.color,i??this.left,o??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(t){return this.left.inorderTraversal(t)||!!t(this.key,this.value)||this.right.inorderTraversal(t)}reverseTraversal(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)}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(t,n,r){let i=this;const o=r(t,i.key);return o<0?i=i.copy(null,null,null,i.left.insert(t,n,r),null):o===0?i=i.copy(null,n,null,null,null):i=i.copy(null,null,null,null,i.right.insert(t,n,r)),i.fixUp_()}removeMin_(){if(this.left.isEmpty())return Jt.EMPTY_NODE;let t=this;return!t.left.isRed_()&&!t.left.left.isRed_()&&(t=t.moveRedLeft_()),t=t.copy(null,null,null,t.left.removeMin_(),null),t.fixUp_()}remove(t,n){let r,i;if(r=this,n(t,r.key)<0)!r.left.isEmpty()&&!r.left.isRed_()&&!r.left.left.isRed_()&&(r=r.moveRedLeft_()),r=r.copy(null,null,null,r.left.remove(t,n),null);else{if(r.left.isRed_()&&(r=r.rotateRight_()),!r.right.isEmpty()&&!r.right.isRed_()&&!r.right.left.isRed_()&&(r=r.moveRedRight_()),n(t,r.key)===0){if(r.right.isEmpty())return Jt.EMPTY_NODE;i=r.right.min_(),r=r.copy(i.key,i.value,null,null,r.right.removeMin_())}r=r.copy(null,null,null,null,r.right.remove(t,n))}return r.fixUp_()}isRed_(){return this.color}fixUp_(){let t=this;return t.right.isRed_()&&!t.left.isRed_()&&(t=t.rotateLeft_()),t.left.isRed_()&&t.left.left.isRed_()&&(t=t.rotateRight_()),t.left.isRed_()&&t.right.isRed_()&&(t=t.colorFlip_()),t}moveRedLeft_(){let t=this.colorFlip_();return t.right.left.isRed_()&&(t=t.copy(null,null,null,null,t.right.rotateRight_()),t=t.rotateLeft_(),t=t.colorFlip_()),t}moveRedRight_(){let t=this.colorFlip_();return t.left.left.isRed_()&&(t=t.rotateRight_(),t=t.colorFlip_()),t}rotateLeft_(){const t=this.copy(null,null,St.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight_(){const t=this.copy(null,null,St.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip_(){const t=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,t,n)}checkMaxDepth_(){const t=this.check_();return Math.pow(2,t)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const t=this.left.check_();if(t!==this.right.check_())throw new Error("Black depths differ");return t+(this.isRed_()?0:1)}}St.RED=!0;St.BLACK=!1;class F4{copy(t,n,r,i,o){return this}insert(t,n,r){return new St(t,n,null)}remove(t,n){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(t){return!1}reverseTraversal(t){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}}class Jt{constructor(t,n=Jt.EMPTY_NODE){this.comparator_=t,this.root_=n}insert(t,n){return new Jt(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,St.BLACK,null,null))}remove(t){return new Jt(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,St.BLACK,null,null))}get(t){let n,r=this.root_;for(;!r.isEmpty();){if(n=this.comparator_(t,r.key),n===0)return r.value;n<0?r=r.left:n>0&&(r=r.right)}return null}getPredecessorKey(t){let n,r=this.root_,i=null;for(;!r.isEmpty();)if(n=this.comparator_(t,r.key),n===0){if(r.left.isEmpty())return i?i.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}else n<0?r=r.left:n>0&&(i=r,r=r.right);throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(t){return this.root_.inorderTraversal(t)}reverseTraversal(t){return this.root_.reverseTraversal(t)}getIterator(t){return new Wl(this.root_,null,this.comparator_,!1,t)}getIteratorFrom(t,n){return new Wl(this.root_,t,this.comparator_,!1,n)}getReverseIteratorFrom(t,n){return new Wl(this.root_,t,this.comparator_,!0,n)}getReverseIterator(t){return new Wl(this.root_,null,this.comparator_,!0,t)}}Jt.EMPTY_NODE=new F4;/**
980 * @license
981 * Copyright 2017 Google LLC
982 *
983 * Licensed under the Apache License, Version 2.0 (the "License");
984 * you may not use this file except in compliance with the License.
985 * You may obtain a copy of the License at
986 *
987 *   http://www.apache.org/licenses/LICENSE-2.0
988 *
989 * Unless required by applicable law or agreed to in writing, software
990 * distributed under the License is distributed on an "AS IS" BASIS,
991 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
992 * See the License for the specific language governing permissions and
993 * limitations under the License.
994 */function B4(e,t){return Xi(e.name,t.name)}function Og(e,t){return Xi(e,t)}/**
995 * @license
996 * Copyright 2017 Google LLC
997 *
998 * Licensed under the Apache License, Version 2.0 (the "License");
999 * you may not use this file except in compliance with the License.
1000 * You may obtain a copy of the License at
1001 *
1002 *   http://www.apache.org/licenses/LICENSE-2.0
1003 *
1004 * Unless required by applicable law or agreed to in writing, software
1005 * distributed under the License is distributed on an "AS IS" BASIS,
1006 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1007 * See the License for the specific language governing permissions and
1008 * limitations under the License.
1009 */let jp;function j4(e){jp=e}const yx=function(e){return typeof e=="number"?"number:"+Qw(e):"string:"+e},Cx=function(e){if(e.isLeafNode()){const t=e.val();W(typeof t=="string"||typeof t=="number"||typeof t=="object"&&er(t,".sv"),"Priority must be a string or number.")}else W(e===jp||e.isEmpty(),"priority of unexpected type.");W(e===jp||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};/**
1010 * @license
1011 * Copyright 2017 Google LLC
1012 *
1013 * Licensed under the Apache License, Version 2.0 (the "License");
1014 * you may not use this file except in compliance with the License.
1015 * You may obtain a copy of the License at
1016 *
1017 *   http://www.apache.org/licenses/LICENSE-2.0
1018 *
1019 * Unless required by applicable law or agreed to in writing, software
1020 * distributed under the License is distributed on an "AS IS" BASIS,
1021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1022 * See the License for the specific language governing permissions and
1023 * limitations under the License.
1024 */let a1;class xt{constructor(t,n=xt.__childrenNodeConstructor.EMPTY_NODE){this.value_=t,this.priorityNode_=n,this.lazyHash_=null,W(this.value_!==void 0&&this.value_!==null,"LeafNode shouldn't be created with null/undefined value."),Cx(this.priorityNode_)}static set __childrenNodeConstructor(t){a1=t}static get __childrenNodeConstructor(){return a1}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(t){return new xt(this.value_,t)}getImmediateChild(t){return t===".priority"?this.priorityNode_:xt.__childrenNodeConstructor.EMPTY_NODE}getChild(t){return Ie(t)?this:xe(t)===".priority"?this.priorityNode_:xt.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(t,n){return null}updateImmediateChild(t,n){return t===".priority"?this.updatePriority(n):n.isEmpty()&&t!==".priority"?this:xt.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)}updateChild(t,n){const r=xe(t);return r===null?n:n.isEmpty()&&r!==".priority"?this:(W(r!==".priority"||ei(t)===1,".priority must be the last token in a path"),this.updateImmediateChild(r,xt.__childrenNodeConstructor.EMPTY_NODE.updateChild(Ze(t),n)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(t,n){return!1}
1024val(t){return t&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(this.lazyHash_===null){let t="";this.priorityNode_.isEmpty()||(t+="priority:"+yx(this.priorityNode_.val())+":");const n=typeof this.value_;t+=n+":",n==="number"?t+=Qw(this.value_):t+=this.value_,this.lazyHash_=Yw(t)}return this.lazyHash_}getValue(){return this.value_}compareTo(t){return t===xt.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof xt.__childrenNodeConstructor?-1:(W(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))}compareToLeafNode_(t){const n=typeof t.value_,r=typeof this.value_,i=xt.VALUE_TYPE_ORDER.indexOf(n),o=xt.VALUE_TYPE_ORDER.indexOf(r);return W(i>=0,"Unknown leaf type: "+n),W(o>=0,"Unknown leaf type: "+r),i===o?r==="object"?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-i}withIndex(){return this}isIndexed(){return!0}equals(t){if(t===this)return!0;if(t.isLeafNode()){const n=t;return this.value_===n.value_&&this.priorityNode_.equals(n.priorityNode_)}else return!1}}xt.VALUE_TYPE_ORDER=["object","boolean","number","string"];/**
1025 * @license
1026 * Copyright 2017 Google LLC
1027 *
1028 * Licensed under the Apache License, Version 2.0 (the "License");
1029 * you may not use this file except in compliance with the License.
1030 * You may obtain a copy of the License at
1031 *
1032 *   http://www.apache.org/licenses/LICENSE-2.0
1033 *
1034 * Unless required by applicable law or agreed to in writing, software
1035 * distributed under the License is distributed on an "AS IS" BASIS,
1036 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1037 * See the License for the specific language governing permissions and
1038 * limitations under the License.
1039 */let bx,wx;function z4(e){bx=e}function U4(e){wx=e}class $4 extends zc{compare(t,n){const r=t.node.getPriority(),i=n.node.getPriority(),o=r.compareTo(i);return o===0?Xi(t.name,n.name):o}isDefinedOn(t){return!t.getPriority().isEmpty()}indexedValueChanged(t,n){return!t.getPriority().equals(n.getPriority())}minPost(){return Ee.MIN}maxPost(){return new Ee(ji,new xt("[PRIORITY-POST]",wx))}makePost(t,n){const r=bx(t);return new Ee(n,new xt("[PRIORITY-POST]",r))}toString(){return".priority"}}const ft=new $4;/**
1040 * @license
1041 * Copyright 2017 Google LLC
1042 *
1043 * Licensed under the Apache License, Version 2.0 (the "License");
1044 * you may not use this file except in compliance with the License.
1045 * You may obtain a copy of the License at
1046 *
1047 *   http://www.apache.org/licenses/LICENSE-2.0
1048 *
1049 * Unless required by applicable law or agreed to in writing, software
1050 * distributed under the License is distributed on an "AS IS" BASIS,
1051 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1052 * See the License for the specific language governing permissions and
1053 * limitations under the License.
1054 */const W4=Math.log(2);class H4{constructor(t){const n=o=>parseInt(Math.log(o)/W4,10),r=o=>parseInt(Array(o+1).join("1"),2);this.count=n(t+1),this.current_=this.count-1;const i=r(this.count);this.bits_=t+1&i}nextBitIsOne(){const t=!(this.bits_&1<<this.current_);return this.current_--,t}}const Vu=function(e,t,n,r){e.sort(t);const i=function(l,u){const c=u-l;let d,f;if(c===0)return null;if(c===1)return d=e[l],f=n?n(d):d,new St(f,d.node,St.BLACK,null,null);{const h=parseInt(c/2,10)+l,g=i(l,h),v=i(h+1,u);return d=e[h],f=n?n(d):d,new St(f,d.node,St.BLACK,g,v)}},o=function(l){let u=null,c=null,d=e.length;const f=function(g,v){const w=d-g,C=d;d-=g;const y=i(w+1,C),b=e[w],x=n?n(b):b;h(new St(x,b.node,v,null,y))},h=function(g){u?(u.left=g,u=g):(c=g,u=g)};for(let g=0;g<l.count;++g){const v=l.nextBitIsOne(),w=Math.pow(2,l.count-(g+1));v?f(w,St.BLACK):(f(w,St.BLACK),f(w,St.RED))}return c},s=new H4(e.length),a=o(s);return new Jt(r||t,a)};/**
1055 * @license
1056 * Copyright 2017 Google LLC
1057 *
1058 * Licensed under the Apache License, Version 2.0 (the "License");
1059 * you may not use this file except in compliance with the License.
1060 * You may obtain a copy of the License at
1061 *
1062 *   http://www.apache.org/licenses/LICENSE-2.0
1063 *
1064 * Unless required by applicable law or agreed to in writing, softw
1064are
1065 * distributed under the License is distributed on an "AS IS" BASIS,
1066 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1067 * See the License for the specific language governing permissions and
1068 * limitations under the License.
1069 */let lf;const no={};class sr{constructor(t,n){this.indexes_=t,this.indexSet_=n}static get Default(){return W(no&&ft,"ChildrenNode.ts has not been loaded"),lf=lf||new sr({".priority":no},{".priority":ft}),lf}get(t){const n=Bo(this.indexes_,t);if(!n)throw new Error("No index defined for "+t);return n instanceof Jt?n:null}hasIndex(t){return er(this.indexSet_,t.toString())}addIndex(t,n){W(t!==Po,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const r=[];let i=!1;const o=n.getIterator(Ee.Wrap);let s=o.getNext();for(;s;)i=i||t.isDefinedOn(s.node),r.push(s),s=o.getNext();let a;i?a=Vu(r,t.getCompare()):a=no;const l=t.toString(),u=Object.assign({},this.indexSet_);u[l]=t;const c=Object.assign({},this.indexes_);return c[l]=a,new sr(c,u)}addToIndexes(t,n){const r=zu(this.indexes_,(i,o)=>{const s=Bo(this.indexSet_,o);if(W(s,"Missing index implementation for "+o),i===no)if(s.isDefinedOn(t.node)){const a=[],l=n.getIterator(Ee.Wrap);let u=l.getNext();for(;u;)u.name!==t.name&&a.push(u),u=l.getNext();return a.push(t),Vu(a,s.getCompare())}else return no;else{const a=n.get(t.name);let l=i;return a&&(l=l.remove(new Ee(t.name,a))),l.insert(t,t.node)}});return new sr(r,this.indexSet_)}removeFromIndexes(t,n){const r=zu(this.indexes_,i=>{if(i===no)return i;{const o=n.get(t.name);return o?i.remove(new Ee(t.name,o)):i}});return new sr(r,this.indexSet_)}}/**
1070 * @license
1071 * Copyright 2017 Google LLC
1072 *
1073 * Licensed under the Apache License, Version 2.0 (the "License");
1074 * you may not use this file except in compliance with the License.
1075 * You may obtain a copy of the License at
1076 *
1077 *   http://www.apache.org/licenses/LICENSE-2.0
1078 *
1079 * Unless required by applicable law or agreed to in writing, software
1080 * distributed under the License is distributed on an "AS IS" BASIS,
1081 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1082 * See the License for the specific language governing permissions and
1083 * limitations under the License.
1084 */let Ss;class ce{constructor(t,n,r){this.children_=t,this.priorityNode_=n,this.indexMap_=r,this.lazyHash_=null,this.priorityNode_&&Cx(this.priorityNode_),this.children_.isEmpty()&&W(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return Ss||(Ss=new ce(new Jt(Og),null,sr.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||Ss}updatePriority(t){return this.children_.isEmpty()?this:new ce(this.children_,t,this.indexMap_)}getImmediateChild(t){if(t===".priority")return this.getPriority();{const n=this.children_.get(t);return n===null?Ss:n}}getChild(t){const n=xe(t);return n===null?this:this.getImmediateChild(n).getChild(Ze(t))}hasChild(t){return this.children_.get(t)!==null}updateImmediateChild(t,n){if(W(n,"We should always be passing snapshot nodes"),t===".priority")return this.updatePriority(n);{const r=new Ee(t,n);let i,o;n.isEmpty()?(i=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),o=this.indexMap_.addToIndexes(r,this.children_));const s=i.isEmpty()?Ss:this.priorityNode_;return new ce(i,s,o)}}updateChild(t,n){const r=xe(t);if(r===null)return n;{W(xe(t)!==".priority"||ei(t)===1,".priority must be the last token in a path");const i=this.getImmediateChild(r).updateChild(Ze(t),n);return this.updateImmediateChild(r,i)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(t){if(this.isEmpty())return null;const n={};let r=0,i=0,o=!0;if(this.forEachChild(ft,(s,a)=>{n[s]=a.val(t),r++,o&&ce.INTEGER_REGEXP_.test(s)?i=Math.max(i,Number(s)):o=!1}),!t&&o&&i<2*r){const s=[];for(const a in n)s[a]=n[a];return s}else return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n}hash(){if(this.lazyHash_===null){let t="";
1084this.getPriority().isEmpty()||(t+="priority:"+yx(this.getPriority().val())+":"),this.forEachChild(ft,(n,r)=>{const i=r.hash();i!==""&&(t+=":"+n+":"+i)}),this.lazyHash_=t===""?"":Yw(t)}return this.lazyHash_}getPredecessorChildName(t,n,r){const i=this.resolveIndex_(r);if(i){const o=i.getPredecessorKey(new Ee(t,n));return o?o.name:null}else return this.children_.getPredecessorKey(t)}getFirstChildName(t){const n=this.resolveIndex_(t);if(n){const r=n.minKey();return r&&r.name}else return this.children_.minKey()}getFirstChild(t){const n=this.getFirstChildName(t);return n?new Ee(n,this.children_.get(n)):null}getLastChildName(t){const n=this.resolveIndex_(t);if(n){const r=n.maxKey();return r&&r.name}else return this.children_.maxKey()}getLastChild(t){const n=this.getLastChildName(t);return n?new Ee(n,this.children_.get(n)):null}forEachChild(t,n){const r=this.resolveIndex_(t);return r?r.inorderTraversal(i=>n(i.name,i.node)):this.children_.inorderTraversal(n)}getIterator(t){return this.getIteratorFrom(t.minPost(),t)}getIteratorFrom(t,n){const r=this.resolveIndex_(n);if(r)return r.getIteratorFrom(t,i=>i);{const i=this.children_.getIteratorFrom(t.name,Ee.Wrap);let o=i.peek();for(;o!=null&&n.compare(o,t)<0;)i.getNext(),o=i.peek();return i}}getReverseIterator(t){return this.getReverseIteratorFrom(t.maxPost(),t)}getReverseIteratorFrom(t,n){const r=this.resolveIndex_(n);if(r)return r.getReverseIteratorFrom(t,i=>i);{const i=this.children_.getReverseIteratorFrom(t.name,Ee.Wrap);let o=i.peek();for(;o!=null&&n.compare(o,t)>0;)i.getNext(),o=i.peek();return i}}compareTo(t){return this.isEmpty()?t.isEmpty()?0:-1:t.isLeafNode()||t.isEmpty()?1:t===Za?-1:0}withIndex(t){if(t===Po||this.indexMap_.hasIndex(t))return this;{const n=this.indexMap_.addIndex(t,this.children_);return new ce(this.children_,this.priorityNode_,n)}}isIndexed(t){return t===Po||this.indexMap_.hasIndex(t)}equals(t){if(t===this)return!0;if(t.isLeafNode())return!1;{const n=t;if(this.getPriority().equals(n.getPriority()))if(this.children_.count()===n.children_.count()){const r=this.getIterator(ft),i=n.getIterator(ft);let o=r.getNext(),s=i.getNext();for(;o&&s;){if(o.name!==s.name||!o.node.equals(s.node))return!1;o=r.getNext(),s=i.getNext()}return o===null&&s===null}else return!1;else return!1}}resolveIndex_(t){return t===Po?null:this.indexMap_.get(t.toString())}}ce.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;class V4 extends ce{constructor(){super(new Jt(Og),ce.EMPTY_NODE,sr.Default)}compareTo(t){return t===this?0:1}equals(t){return t===this}getPriority(){return this}getImmediateChild(t){return ce.EMPTY_NODE}isEmpty(){return!1}}const Za=new V4;Object.defineProperties(Ee,{MIN:{value:new Ee(jo,ce.EMPTY_NODE)},MAX:{value:new Ee(ji,Za)}});vx.__EMPTY_NODE=ce.EMPTY_NODE;xt.__childrenNodeConstructor=ce;j4(Za);U4(Za);/**
1085 * @license
1086 * Copyright 2017 Google LLC
1087 *
1088 * Licensed under the Apache License, Version 2.0 (the "License");
1089 * you may not use this file except in compliance with the License.
1090 * You may obtain a copy of the License at
1091 *
1092 *   http://www.apache.org/licenses/LICENSE-2.0
1093 *
1094 * Unless required by applicable law or agreed to in writing, software
1095 * distributed under the License is distributed on an "AS IS" BASIS,
1096 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1097 * See the License for the specific language governing permissions and
1098 * limitations under the License.
1099 */const G4=!0;function Ct(e,t=null){if(e===null)return ce.EMPTY_NODE;if(typeof e=="object"&&".priority"in e&&(t=e[".priority"]),W(t===null||typeof t=="string"||typeof t=="number"||typeof t=="object"&&".sv"in t,"Invalid priority type found: "+typeof t),typeof e=="object"&&".value"in e&&e[".value"]!==null&&(e=e[".value"]),typeof e!="object"||".sv"in e){const n=e;return new xt(n,Ct(t))}if(!(e instanceof Array)&&G4){const n=[];let r=!1;if(At(e,(s,a)=>{if(s.substring(0,1)!=="."){const l=Ct(a);l.isEmpty()||(r=r||!l.getPriority().isEmpty(),n.push(new Ee(s,l)))}}),n.length===0)return ce.EMPTY_NODE;const o=Vu(n,B4,s=>s.name,Og);if(r){const s=Vu(n,ft.getCompare());return new ce(o,Ct(t),new sr({".priority":s},{".priority":ft}))}else return new ce(o,Ct(t),sr.Default)}else{let n=ce.EMPTY_NODE;return At(e,(r,i)=>{if(er(e,r)&&r.substring(0,1)!=="."){const o=Ct(i);(o.isLeafNode()||!o.isEmpty())&&(n=n.updateImmediateChild(r,o))}}),n.updatePriority(Ct(t))}}z4(Ct);/**
1100 * @license
1101 * Copyright 2017 Google LLC
1102 *
1103 * Licensed under the Apache License, Version 2.0 (the "License");
1104 * you may not use this file except in compliance with the License.
1105 * You may obtain a copy of the License at
1106 *
1107 *   http://www.apache.org/licenses/LICENSE-2.0
1108 *
1109 * Unless required by applicable law or agreed to in writing, software
1110 * distributed under the License is distributed on an "AS IS" BASIS,
1111 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112 * See the License for the specific language governing permissions and
1113 * limitations under the License.
1114 */class q4 extends zc{constructor(t){super(),this.indexPath_=t,W(!Ie(t)&&xe(t)!==".priority","Can't create PathIndex with empty path or .priority key")}extractChild(t){return t.getChild(this.indexPath_)}isDefinedOn(t){return!t.getChild(this.indexPath_).isEmpty()}compare(t,n){const r=this.extractChild(t.node),i=this.extractChild(n.node),o=r.compareTo(i);return o===0?Xi(t.name,n.name):o}makePost(t,n){const r=Ct(t),i=ce.EMPTY_NODE.updateChild(this.indexPath_,r);return new Ee(n,i)}maxPost(){const t=ce.EMPTY_NODE.updateChild(this.indexPath_,Za);return new Ee(ji,t)}toString(){return Ea(this.indexPath_,0).join("/")}}/**
1115 * @license
1116 * Copyright 2017 Google LLC
1117 *
1118 * Licensed under the Apache License, Version 2.0 (the "License");
1119 * you may not use this file except in compliance with the License.
1120 * You may obtain a copy of the License at
1121 *
1122 *   http://www.apache.org/licenses/LICENSE-2.0
1123 *
1124 * Unless required by applicable law or agreed to in writing, software
1125 * distributed under the License is distributed on an "AS IS" BASIS,
1126 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1127 * See the License for the specific language governing permissions and
1128 * limitations under the License.
1129 */class Y4 extends zc{compare(t,n){const r=t.node.compareTo(n.node);return r===0?Xi(t.name,n.name):r}isDefinedOn(t){return!0}indexedValueChanged(t,n){return!t.equals(n)}
vendor: 8,516 bytes, lines 1129-1193
1129minPost(){return Ee.MIN}maxPost(){return Ee.MAX}makePost(t,n){const r=Ct(t);return new Ee(n,r)}toString(){return".value"}}const K4=new Y4;/**
1130 * @license
1131 * Copyright 2017 Google LLC
1132 *
1133 * Licensed under the Apache License, Version 2.0 (the "License");
1134 * you may not use this file except in compliance with the License.
1135 * You may obtain a copy of the License at
1136 *
1137 *   http://www.apache.org/licenses/LICENSE-2.0
1138 *
1139 * Unless required by applicable law or agreed to in writing, software
1140 * distributed under the License is distributed on an "AS IS" BASIS,
1141 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1142 * See the License for the specific language governing permissions and
1143 * limitations under the License.
1144 */function xx(e){return{type:"value",snapshotNode:e}}function zo(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function Sa(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function _a(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}function Q4(e,t){return{type:"child_moved",snapshotNode:t,childName:e}}/**
1145 * @license
1146 * Copyright 2017 Google LLC
1147 *
1148 * Licensed under the Apache License, Version 2.0 (the "License");
1149 * you may not use this file except in compliance with the License.
1150 * You may obtain a copy of the License at
1151 *
1152 *   http://www.apache.org/licenses/LICENSE-2.0
1153 *
1154 * Unless required by applicable law or agreed to in writing, software
1155 * distributed under the License is distributed on an "AS IS" BASIS,
1156 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1157 * See the License for the specific language governing permissions and
1158 * limitations under the License.
1159 */class Fg{constructor(t){this.index_=t}updateChild(t,n,r,i,o,s){W(t.isIndexed(this.index_),"A node must be indexed if only a child is updated");const a=t.getImmediateChild(n);return a.getChild(i).equals(r.getChild(i))&&a.isEmpty()===r.isEmpty()||(s!=null&&(r.isEmpty()?t.hasChild(n)?s.trackChildChange(Sa(n,a)):W(t.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?s.trackChildChange(zo(n,r)):s.trackChildChange(_a(n,r,a))),t.isLeafNode()&&r.isEmpty())?t:t.updateImmediateChild(n,r).withIndex(this.index_)}updateFullNode(t,n,r){return r!=null&&(t.isLeafNode()||t.forEachChild(ft,(i,o)=>{n.hasChild(i)||r.trackChildChange(Sa(i,o))}),n.isLeafNode()||n.forEachChild(ft,(i,o)=>{if(t.hasChild(i)){const s=t.getImmediateChild(i);s.equals(o)||r.trackChildChange(_a(i,o,s))}else r.trackChildChange(zo(i,o))})),n.withIndex(this.index_)}updatePriority(t,n){return t.isEmpty()?ce.EMPTY_NODE:t.updatePriority(n)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}/**
1160 * @license
1161 * Copyright 2017 Google LLC
1162 *
1163 * Licensed under the Apache License, Version 2.0 (the "License");
1164 * you may not use this file except in compliance with the License.
1165 * You may obtain a copy of the License at
1166 *
1167 *   http://www.apache.org/licenses/LICENSE-2.0
1168 *
1169 * Unless required by applicable law or agreed to in writing, software
1170 * distributed under the License is distributed on an "AS IS" BASIS,
1171 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1172 * See the License for the specific language governing permissions and
1173 * limitations under the License.
1174 */class La{constructor(t){this.indexedFilter_=new Fg(t.getIndex()),this.index_=t.getIndex(),this.startPost_=La.getStartPost_(t),this.endPost_=La.getEndPost_(t),this.startIsInclusive_=!t.startAfterSet_,this.endIsInclusive_=!t.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(t){const n=this.startIsInclusive_?this.index_.compare(this.getStartPost(),t)<=0:this.index_.compare(this.getStartPost(),t)<0,r=this.endIsInclusive_?this.index_.compare(t,this.getEndPost())<=0:this.index_.compare(t,this.getEndPost())<0;return n&&r}updateChild(t,n,r,i,o,s){return this.matches(new Ee(n,r))||(r=ce.EMPTY_NODE),this.indexedFilter_.updateChild(t,n,r,i,o,s)}updateFullNode(t,n,r){n.isLeafNode()&&(n=ce.EMPTY_NODE);let i=n.withIndex(this.index_);i=i.updatePriority(ce.EMPTY_NODE);const o=this;return n.forEachChild(ft,(s,a)=>{o.matches(new Ee(s,a))||(i=i.updateImmediateChild(s,ce.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(t,i,r)}updatePriority(t,n){return t}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(t){if(t.hasStart()){const n=t.getIndexStartName();return t.getIndex().makePost(t.getIndexStartValue(),n)}else return t.getIndex().minPost()}static getEndPost_(t){if(t.hasEnd()){const n=t.getIndexEndName();return t.getIndex().makePost(t.getIndexEndValue(),n)}else return t.getIndex().maxPost()}}/**
1175 * @license
1176 * Copyright 2017 Google LLC
1177 *
1178 * Licensed under the Apache License, Version 2.0 (the "License");
1179 * you may not use this file except in compliance with the License.
1180 * You may obtain a copy of the License at
1181 *
1182 *   http://www.apache.org/licenses/LICENSE-2.0
1183 *
1184 * Unless required by applicable law or agreed to in writing, software
1185 * distributed under the License is distributed on an "AS IS" BASIS,
1186 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1187 * See the License for the specific language governing permissions and
1188 * limitations under the License.
1189 */class Z4{constructor(t){this.withinDirectionalStart=n=>this.reverse_?this.withinEndPost(n):this.withinStartPost(n),this.withinDirectionalEnd=n=>this.reverse_?this.withinStartPost(n):this.withinEndPost(n),this.withinStartPost=n=>{const r=this.index_.compare(this.rangedFilter_.getStartPost(),n);return this.startIsInclusive_?r<=0:r<0},this.withinEndPost=n=>{const r=this.index_.compare(n,this.rangedFilter_.getEndPost());return this.endIsInclusive_?r<=0:r<0},this.rangedFilter_=new La(t),this.index_=t.getIndex(),this.limit_=t.getLimit(),this.reverse_=!t.isViewFromLeft(),this.startIsInclusive_=!t.startAfterSet_,this.endIsInclusive_=!t.endBeforeSet_}updateChild(t,n,r,i,o,s){return this.rangedFilter_.matches(new Ee(n,r))||(r=ce.EMPTY_NODE),t.getImmediateChild(n).equals(r)?t:t.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(t,n,r,i,o,s):this.fullLimitUpdateChild_(t,n,r,o,s)}updateFullNode(t,n,r){let i;if(n.isLeafNode()||n.isEmpty())i=ce.EMPTY_NODE.withIndex(this.index_);else if(this.limit_*2<n.numChildren()&&n.isIndexed(this.index_)){i=ce.EMPTY_NODE.withIndex(this.index_);let o;this.reverse_?o=n.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):o=n.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let s=0;for(;o.hasNext()&&s<this.limit_;){const a=o.getNext();if(this.withinDirectionalStart(a))if(this.withinDirectionalEnd(a))i=i.updateImmediateChild(a.name,a.node),s++;else break;else continue}}else{i=n.withIndex(this.index_),i=i.updatePriority(ce.EMPTY_NODE);let o;this.reverse_?o=i.getReverseIterator(this.index_):o=i.getIterator(this.index_);let s=0;for(;o.hasNext();){const a=o.getNext();s<this.limit_&&this.withinDirectionalStart(a)&&this.withinDirectionalEnd(a)?s++:i=i.updateImmediateChild(a.name,ce.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(t,i,r)}updatePriority(t,n){return t}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(t,n,r,i,o){let s;if(this.reverse_){const d=this.index_.getCompare();s=(f,h)=>d(h,f)}else s=this.index_.getCompare();const a=t;W(a.numChildren()===this.limit_,"");const l=new Ee(n,r),u=this.reverse_?a.getFirstChild(this.index_):a.getLastChild(this.index_),c=this.rangedFilter_.matches(l);if(a.hasChild(n)){const d=a.getImmediateChild(n);let f=i.getChildAfterChild(this.index_,u,this.reverse_);for(;f!=null&&(f.name===n||a.hasChild(f.name));)f=i.getChildAfterChild(this.index_,f,this.reverse_);const h=f==null?1:s(f,l);if(c&&!r.isEmpty()&&h>=0)return o!=null&&o.trackChildChange(_a(n,r,d)),a.updateImmediateChild(n,r);{o!=null&&o.trackChildChange(Sa(n,d));const v=a.updateImmediateChild(n,ce.EMPTY_NODE);return f!=null&&this.rangedFilter_.matches(f)?(o!=null&&o.trackChildChange(zo(f.name,f.node)),v.updateImmediateChild(f.name,f.node)):v}}else return r.isEmpty()?t:c&&s(u,l)>=0?(o!=null&&(o.trackChildChange(Sa(u.name,u.node)),o.trackChildChange(zo(n,r))),a.updateImmediateChild(n,r).updateImmediateChild(u.name,ce.EMPTY_NODE)):t}}/**
1190 * @license
1191 * Copyright 2017 Google LLC
1192 *
1193 * Licensed under the Apache License, Version 2.0 (the "License");
1194 * you may not use this file except in compliance with the License.
1195 * You may obtain a copy of the License at
1196 *
1197 *   http://www.apache.org/licenses/LICENSE-2.0
1198 *
1199 * Unless required by applicable law or agreed to in writing, software
1200 * distributed under the License is distributed on an "AS IS" BASIS,
1201 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1202 * See the License for the specific language governing permissions and
1203 * limitations under the License.
1204 */class Bg{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=ft}hasStart(){return this.startSet_}isViewFromLeft(){return this.viewFrom_===""?this.startSet_:this.viewFrom_==="l"}getIndexStartValue(){return W(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return W(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:jo}hasEnd(){return this.endSet_}getIndexEndValue(){return W(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return W(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:ji}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&this.viewFrom_!==""}getLimit(){return W(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===ft}copy(){const t=new Bg;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.startAfterSet_=this.startAfterSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.endBeforeSet_=this.endBeforeSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t}}function X4(e){return e.loadsAllData()?new Fg(e.getIndex()):e.hasLimit()?new Z4(e):new La(e)}function l1(e){const t={};if(e.isDefault())return t;let n;if(e.index_===ft?n="$priority":e.index_===K4?n="$value":e.index_===Po?n="$key":(W(e.index_ instanceof q4,"Unrecognized index type!"),n=e.index_.toString()),t.orderBy=bt(n),e.startSet_){const r=e.startAfterSet_?"startAfter":"startAt";t[r]=bt(e.indexStartValue_),e.startNameSet_&&(t[r]+=","+bt(e.indexStartName_))}if(e.endSet_){const r=e.endBeforeSet_?"endBefore":"endAt";t[r]=bt(e.indexEndValue_),e.endNameSet_&&(t[r]+=","+bt(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t.limitToFirst=e.limit_:t.limitToLast=e.limit_),t}function u1(e){const t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_),t.sin=!e.startAfterSet_),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_),t.ein=!e.endBeforeSet_),e.limitSet_){t.l=e.limit_;let n=e.viewFrom_;n===""&&(e.isViewFromLeft()?n="l":n="r"),t.vf=n}return e.index_!==ft&&(t.i=e.index_.toString()),t}/**
1205 * @license
1206 * Copyright 2017 Google LLC
1207 *
1208 * Licensed under the Apache License, Version 2.0 (the "License");
1209 * you may not use this file except in compliance with the License.
1210 * You may obtain a copy of the License at
1211 *
1212 *   http://www.apache.org/licenses/LICENSE-2.0
1213 *
1214 * Unless required by applicable law or agreed to in writing, software
1215 * distributed under the License is distributed on an "AS IS" BASIS,
1216 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1217 * See the License for the specific language governing permissions and
1218 * limitations under the License.
1219 */class Gu extends px{constructor(t,n,r,i){super(),this.repoInfo_=t,this.onDataUpdate_=n,this.authTokenProvider_=r,this.appCheckTokenProvider_=i,this.log_=Qa("p:rest:"),this.listens_={}}reportStats(t){throw new Error("Method not implemented.")}static getListenId_(t,n){return n!==void 0?"tag$"+n:(W(t._queryParams.isDefault(),"should have a tag if it's not a default query."),t._path.toString())}listen(t,n,r,i){const o=t._path.toString();this.log_("Listen called for "+o+" "+t._queryIdentifier);const s=Gu.getListenId_(t,r),a={};this.listens_[s]=a;const l=l1(t._queryParams);this.restRequest_(o+".json",l,(u,c)=>{let d=c;if(u===404&&(d=null,u=null),u===null&&this.onDataUpdate_(o,d,!1,r),Bo(this.listens_,s)===a){let f;u?u===401?f="permission_denied":f="rest_error:"+u:f="ok",i(f,null)}})}unlisten(t,n){const r=Gu.getListenId_(t,n);delete this.listens_[r]}get(t){const n=l1(t._queryParams),r=t._path.toString(),i=new qa;return this.restRequest_(r+".json",n,(o,s)=>{let a=s;o===404&&(a=null,o=null),o===null?(this.onDataUpdate_(r,a,!1,null),i.resolve(a)):i.reject(new Error(a))}),i.promise}refreshAuthToken(t){}restRequest_(t,n={},r){return n.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([i,o])=>{i&&i.accessToken&&(n.auth=i.accessToken),o&&o.token&&(n.ac=o.token);const s=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+t+"?ns="+this.repoInfo_.namespace+_P(n);this.log_("Sending REST request for "+s);const a=new XMLHttpRequest;a.onreadystatechange=()=>{if(r&&a.readyState===4){this.log_("REST Response for "+s+" received. status:",a.status,"response:",a.responseText);let l=null;if(a.status>=200&&a.status<300){try{l=Ca(a.responseText)}catch{qt("Failed to parse JSON response for "+s+": "+a.responseText)}r(null,l)}else a.status!==401&&a.status!==404&&qt("Got unsuccessful REST response for "+s+" Status: "+a.status),r(a.status);r=null}},a.open("GET",s,!0),a.send()})}}/**
1220 * @license
1221 * Copyright 2017 Google LLC
1222 *
1223 * Licensed under the Apache License, Version 2.0 (the "License");
1224 * you may not use this file except in compliance with the License.
1225 * You may obtain a copy of the License at
1226 *
1227 *   http://www.apache.org/licenses/LICENSE-2.0
1228 *
1229 * Unless required by applicable law or agreed to in writing, software
1230 * distributed under the License is distributed on an "AS IS" BASIS,
1231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1232 * See the License for the specific language governing permissions and
1233 * limitations under the License.
1234 */class J4{constructor(){this.rootNode_=ce.EMPTY_NODE}getNode(t){return this.rootNode_.getChild(t)}updateSnapshot(t,n){this.rootNode_=this.rootNode_.updateChild(t,n)}}/**
1235 * @license
1236 * Copyright 2017 Google LLC
1237 *
1238 * Licensed under the Apache License, Version 2.0 (the "License");
1239 * you may not use this file except in compliance with the License.
1240 * You may obtain a copy of the License at
1241 *
1242 *   http://www.apache.org/licenses/LICENSE-2.0
1243 *
1244 * Unless required by applicable law or agreed to in writing, software
1245 * distributed under the License is distributed on an "AS IS" BASIS,
1246 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1247 * See the License for the specific language governing permissions and
1248 * limitations under the License.
1249 */function qu(){return{value:null,children:new Map}}function Ex(e,t,n){if(Ie(t))e.value=n,e.children.clear();else if(e.value!==null)e.value=e.value.updateChild(t,n);else{const r=xe(t);e.children.has(r)||e.children.set(r,qu());const i=e.children.get(r);t=Ze(t),Ex(i,t,n)}}function zp(e,t,n){e.value!==null?n(t,e.value):eD(e,(r,i)=>{const o=new Ge(t.toString()+"/"+r);zp(i,o,n)})}function eD(e,t){e.children.forEach((n,r)=>{t(r,n)})}/**
1250 * @license
1251 * Copyright 2017 Google LLC
1252 *
1253 * Licensed under the Apache License, Version 2.0 (the "License");
1254 * you may not use this file except in compliance with the License.
1255 * You may obtain a copy of the License at
1256 *
1257 *   http://www.apache.org/licenses/LICENSE-2.0
1258 *
1259 * Unless required by applicable law or agreed to in writing, software
1260 * distributed under the License is distributed on an "AS IS" BASIS,
1261 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1262 * See the License for the specific language governing permissions and
1263 * limitations under the License.
1264 */class tD{constructor(t){this.collection_=t,this.last_=null}get(){const t=this.collection_.get(),n=Object.assign({},t);return this.last_&&At(this.last_,(r,i)=>{n[r]=n[r]-i}),this.last_=t,n}}/**
1265 * @license
1266 * Copyright 2017 Google LLC
1267 *
1268 * Licensed under the Apache License, Version 2.0 (the "License");
1269 * you may not use this file except in compliance with the License.
1270 * You may obtain a copy of the License at
1271 *
1272 *   http://www.apache.org/licenses/LICENSE-2.0
1273 *
1274 * Unless required by applicable law or agreed to in writing, software
1275 * distributed under the License is distributed on an "AS IS" BASIS,
1276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1277 * See the License for the specific language governing permissions and
1278 * limitations under the License.
1279 */const c1=10*1e3,nD=30*1e3,rD=5*60*1e3;class iD{constructor(t,n){this.server_=n,this.statsToReport_={},this.statsListener_=new tD(t);const r=c1+(nD-c1)*Math.random();Gs(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const t=this.statsListener_.get(),n={};let r=!1;At(t,(i,o)=>{o>0&&er(this.statsToReport_,i)&&(n[i]=o,r=!0)}),r&&this.server_.reportStats(n),Gs(this.reportStats_.bind(this),Math.floor(Math.random()*2*rD))}}/**
1280 * @license
1281 * Copyright 2017 Google LLC
1282 *
1283 * Licensed under the Apache License, Version 2.0 (the "License");
1284 * you may not use this file except in compliance with the License.
1285 * You may obtain a copy of the License at
1286 *
1287 *   http://www.apache.org/licenses/LICENSE-2.0
1288 *
1289 * Unless required by applicable law or agreed to in writing, software
1290 * distributed under the License is distributed on an "AS IS" BASIS,
1291 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1292 * See the License for the specific language governing permissions and
1293 * limitations under the License.
1294 */var Fn;(function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"})(Fn||(Fn={}));function jg(){return{fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}function zg(){return{fromUser:!1,fromServer:!0,queryId:null,tagged:!1}}function Ug(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}/**
1295 * @license
1296 * Copyright 2017 Google LLC
1297 *
1298 * Licensed under the Apache License, Version 2.0 (the "License");
1299 * you may not use this file except in compliance with the License.
1300 * You may obtain a copy of the License at
1301 *
1302 *   http://www.apache.org/licenses/LICENSE-2.0
1303 *
1304 * Unless required by applicable law or agreed to in writing, software
1305 * distributed under the License is distributed on an "AS IS" BASIS,
1306 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1307 * See the License for the specific language governing permissions and
1308 * limitations under the License.
1309 */class Yu{constructor(t,n,r){this.path=t,this.affectedTree=n,this.revert=r,this.type=Fn.ACK_USER_WRITE,this.source=jg()}operationForChild(t){if(Ie(this.path)){if(this.affectedTree.value!=null)return W(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const n=this.affectedTree.subtree(new Ge(t));return new Yu(ze(),n,this.revert)}}else return W(xe(this.path)===t,"operationForChild called for unrelated child."),new Yu(Ze(this.path),this.affectedTree,this.revert)}}/**
1310 * @license
1311 * Copyright 2017 Google LLC
1312 *
1313 * Licensed under the Apache License, Version 2.0 (the "License");
1314 * you may not use this file except in compliance with the License.
1315 * You may obtain a copy of the License at
1316 *
1317 *   http://www.apache.org/licenses/LICENSE-2.0
1318 *
1319 * Unless required by applicable law or agreed to in writing, software
1320 * distributed under the License is distributed on an "AS IS" BASIS,
1321 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1322 * See the License for the specific language governing permissions and
1323 * limitations under the License.
1324 */class Ia{constructor(t,n){this.source=t,this.path=n,this.type=Fn.LISTEN_COMPLETE}operationForChild(t){return Ie(this.path)?new Ia(this.source,ze()):new Ia(this.source,Ze(this.path))}}/**
1325 * @license
1326 * Copyright 2017 Google LLC
1327 *
1328 * Licensed under the Apache License, Version 2.0 (the "License");
1329 * you may not use this file except in compliance with the License.
1330 * You may obtain a copy of the License at
1331 *
1332 *   http://www.apache.org/licenses/LICENSE-2.0
1333 *
1334 * Unless required by applicable law or agreed to in writing, software
1335 * distributed under the License is distributed on an "AS IS" BASIS,
1336 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1337 * See the License for the specific language governing permissions and
1338 * limitations under the License.
1339 */class zi{constructor(t,n,r){this.source=t,this.path=n,this.snap=r,this.type=Fn.OVERWRITE}operationForChild(t){return Ie(this.path)?new zi(this.source,ze(),this.snap.getImmediateChild(t)):new zi(this.source,Ze(this.path),this.snap)}}/**
1340 * @license
1341 * Copyright 2017 Google LLC
1342 *
1343 * Licensed under the Apache License, Version 2.0 (the "License");
1344 * you may not use this file except in compliance with the License.
1345 * You may obtain a copy of the License at
1346 *
1347 *   http://www.apache.org/licenses/LICENSE-2.0
1348 *
1349 * Unless required by applicable law or agreed to in writing, software
1350 * distributed under the License is distributed on an "AS IS" BASIS,
1351 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1352 * See the License for the specific language governing permissions and
1353 * limitations under the License.
1354 */class Uo{constructor(t,n,r){this.source=t,this.path=n,this.children=r,this.type=Fn.MERGE}operationForChild(t){if(Ie(this.path)){const n=this.children.subtree(new Ge(t));return n.isEmpty()?null:n.value?new zi(this.source,ze(),n.value):new Uo(this.source,ze(),n)}else return W(xe(this.path)===t,"Can't get a merge for a child not on the path of the operation"),new Uo(this.source,Ze(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}/**
1355 * @license
1356 * Copyright 2017 Google LLC
1357 *
1358 * Licensed under the Apache License, Version 2.0 (the "License");
1359 * you may not use this file except in compliance with the License.
1360 * You may obtain a copy of the License at
1361 *
1362 *   http://www.apache.org/licenses/LICENSE-2.0
1363 *
1364 * Unless required by applicable law or agreed to in writing, softw
1364are
1365 * distributed under the License is distributed on an "AS IS" BASIS,
1366 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1367 * See the License for the specific language governing permissions and
1368 * limitations under the License.
1369 */class ti{constructor(t,n,r){this.node_=t,this.fullyInitialized_=n,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(t){if(Ie(t))return this.isFullyInitialized()&&!this.filtered_;const n=xe(t);return this.isCompleteForChild(n)}isCompleteForChild(t){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(t)}getNode(){return this.node_}}/**
1370 * @license
1371 * Copyright 2017 Google LLC
1372 *
1373 * Licensed under the Apache License, Version 2.0 (the "License");
1374 * you may not use this file except in compliance with the License.
1375 * You may obtain a copy of the License at
1376 *
1377 *   http://www.apache.org/licenses/LICENSE-2.0
1378 *
1379 * Unless required by applicable law or agreed to in writing, software
1380 * distributed under the License is distributed on an "AS IS" BASIS,
1381 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1382 * See the License for the specific language governing permissions and
1383 * limitations under the License.
1384 */class oD{constructor(t){this.query_=t,this.index_=this.query_._queryParams.getIndex()}}function sD(e,t,n,r){const i=[],o=[];return t.forEach(s=>{s.type==="child_changed"&&e.index_.indexedValueChanged(s.oldSnap,s.snapshotNode)&&o.push(Q4(s.childName,s.snapshotNode))}),_s(e,i,"child_removed",t,r,n),_s(e,i,"child_added",t,r,n),_s(e,i,"child_moved",o,r,n),_s(e,i,"child_changed",t,r,n),_s(e,i,"value",t,r,n),i}function _s(e,t,n,r,i,o){const s=r.filter(a=>a.type===n);s.sort((a,l)=>lD(e,a,l)),s.forEach(a=>{const l=aD(e,a,o);i.forEach(u=>{u.respondsTo(a.type)&&t.push(u.createEvent(l,e.query_))})})}function aD(e,t,n){return t.type==="value"||t.type==="child_removed"||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}function lD(e,t,n){if(t.childName==null||n.childName==null)throw ns("Should only compare child_ events.");const r=new Ee(t.childName,t.snapshotNode),i=new Ee(n.childName,n.snapshotNode);return e.index_.compare(r,i)}/**
1385 * @license
1386 * Copyright 2017 Google LLC
1387 *
1388 * Licensed under the Apache License, Version 2.0 (the "License");
1389 * you may not use this file except in compliance with the License.
1390 * You may obtain a copy of the License at
1391 *
1392 *   http://www.apache.org/licenses/LICENSE-2.0
1393 *
1394 * Unless required by applicable law or agreed to in writing, software
1395 * distributed under the License is distributed on an "AS IS" BASIS,
1396 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1397 * See the License for the specific language governing permissions and
1398 * limitations under the License.
1399 */function Uc(e,t){return{eventCache:e,serverCache:t}}function qs(e,t,n,r){return Uc(new ti(t,n,r),e.serverCache)}function Sx(e,t,n,r){return Uc(e.eventCache,new ti(t,n,r))}function Ku(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function Ui(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}/**
1400 * @license
1401 * Copyright 2017 Google LLC
1402 *
1403 * Licensed under the Apache License, Version 2.0 (the "License");
1404 * you may not use this file except in compliance with the License.
1405 * You may obtain a copy of the License at
1406 *
1407 *   http://www.apache.org/licenses/LICENSE-2.0
1408 *
1409 * Unless required by applicable law or agreed to in writing, software
1410 * distributed under the License is distributed on an "AS IS" BASIS,
1411 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1412 * See the License for the specific language governing permissions and
1413 * limitations under the License.
1414 */let uf;const uD=()=>(uf||(uf=new Jt(qM)),uf);class Ke{constructor(t,n=uD()){this.value=t,this.children=n}static fromObject(t){let n=new Ke(null);return At(t,(r,i)=>{n=n.set(new Ge(r),i)}),n}isEmpty(){return this.value===null&&this.children.isEmpty()}findRootMostMatchingPathAndValue(t,n){if(this.value!=null&&n(this.value))return{path:ze(),value:this.value};if(Ie(t))return null;{const r=xe(t),i=this.children.get(r);if(i!==null){const o=i.findRootMostMatchingPathAndValue(Ze(t),n);return o!=null?{path:dt(new Ge(r),o.path),value:o.value}:null}else return null}}findRootMostValueAndPath(t){return this.findRootMostMatchingPathAndValue(t,()=>!0)}subtree(t){if(Ie(t))return this;{const n=xe(t),r=this.children.get(n);return r!==null?r.subtree(Ze(t)):new Ke(null)}}set(t,n){if(Ie(t))return new Ke(n,this.children);{const r=xe(t),o=(this.children.get(r)||new Ke(null)).set(Ze(t),n),s=this.children.insert(r,o);return new Ke(this.value,s)}}remove(t){if(Ie(t))return this.children.isEmpty()?new Ke(null):new Ke(null,this.children);{const n=xe(t),r=this.children.get(n);if(r){const i=r.remove(Ze(t));let o;return i.isEmpty()?o=this.children.remove(n):o=this.children.insert(n,i),this.value===null&&o.isEmpty()?new Ke(null):new Ke(this.value,o)}else return this}}get(t){if(Ie(t))return this.value;{const n=xe(t),r=this.children.get(n);return r?r.get(Ze(t)):null}}setTree(t,n){if(Ie(t))return n;{const r=xe(t),o=(this.children.get(r)||new Ke(null)).setTree(Ze(t),n);let s;return o.isEmpty()?s=this.children.remove(r):s=this.children.insert(r,o),new Ke(this.value,s)}}fold(t){return this.fold_(ze(),t)}fold_(t,n){const r={};return this.children.inorderTraversal((i,o)=>{r[i]=o.fold_(dt(t,i),n)}),n(t,this.value,r)}findOnPath(t,n){return this.findOnPath_(t,ze(),n)}findOnPath_(t,n,r){const i=this.value?r(n,this.value):!1;if(i)return i;if(Ie(t))return null;{const o=xe(t),s=this.children.get(o);return s?s.findOnPath_(Ze(t),dt(n,o),r):null}}foreachOnPath(t,n){return this.foreachOnPath_(t,ze(),n)}foreachOnPath_(t,n,r){if(Ie(t))return this;{this.value&&r(n,this.value);const i=xe(t),o=this.children.get(i);return o?o.foreachOnPath_(Ze(t),dt(n,i),r):new Ke(null)}}foreach(t){this.foreach_(ze(),t)}foreach_(t,n){this.children.inorderTraversal((r,i)=>{i.foreach_(dt(t,r),n)}),this.value&&n(t,this.value)}foreachChild(t){this.children.inorderTraversal((n,r)=>{r.value&&t(n,r.value)})}}/**
1415 * @license
1416 * Copyright 2017 Google LLC
1417 *
1418 * Licensed under the Apache License, Version 2.0 (the "License");
1419 * you may not use this file except in compliance with the License.
1420 * You may obtain a copy of the License at
1421 *
1422 *   http://www.apache.org/licenses/LICENSE-2.0
1423 *
1424 * Unless required by applicable law or agreed to in writing, software
1425 * distributed under the License is distributed on an "AS IS" BASIS,
1426 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1427 * See the License for the specific language governing permissions and
1428 * limitations under the License.
1429 */class Un{constructor(t){this.writeTree_=t}static empty(){return new Un(new Ke(null))}}function Ys(e,t,n){if(Ie(t))return new Un(new Ke(n));{const r=e.writeTree_.findRootMostValueAndPath(t);if(r!=null){const i=r.path;let o=r.value;const s=Vt(i,t);return o=o.updateChild(s,n),new Un(e.writeTree_.set(i,o))}else{const i=new Ke(n),o=e.writeTree_.setTree(t,i);return new Un(o)}}}function Up(e,t,n){let r=e;return At(n,(i,o)=>{r=Ys(r,dt(t,i),o)}),r}function d1(e,t){if(Ie(t))return Un.empty();{const n=e.writeTree_.setTree(t,new Ke(null));return new Un(n)}}function $p(e,t){return Ji(e,t)!=null}function Ji(e,t){const n=e.writeTree_.findRootMostValueAndPath(t);return n!=null?e.writeTree_.get(n.path).getChild(Vt(n.path,t)):null}function f1(e){const t=[],n=e.writeTree_.value;return n!=null?n.isLeafNode()||n.forEachChild(ft,(r,i)=>{t.push(new Ee(r,i))}):e.writeTree_.children.inorderTraversal((r,i)=>{i.value!=null&&t.push(new Ee(r,i.value))}),t}function Gr(e,t){if(Ie(t))return e;{const n=Ji(e,t);return n!=null?new Un(new Ke(n)):new Un(e.writeTree_.subtree(t))}}function Wp(e){return e.writeTree_.isEmpty()}function $o(e,t){return _x(ze(),e.writeTree_,t)}function _x(e,t,n){if(t.value!=null)return n.updateChild(e,t.value);{let r=null;return t.children.inorderTraversal((i,o)=>{i===".priority"?(W(o.value!==null,"Priority writes must always be leaf nodes"),r=o.value):n=_x(dt(e,i),o,n)}),!n.getChild(e).isEmpty()&&r!==null&&(n=n.updateChild(dt(e,".priority"),r)),n}}/**
1430 * @license
1431 * Copyright 2017 Google LLC
1432 *
1433 * Licensed under the Apache License, Version 2.0 (the "License");
1434 * you may not use this file except in compliance with the License.
1435 * You may obtain a copy of the License at
1436 *
1437 *   http://www.apache.org/licenses/LICENSE-2.0
1438 *
1439 * Unless required by applicable law or agreed to in writing, software
1440 * distributed under the License is distributed on an "AS IS" BASIS,
1441 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1442 * See the License for the specific language governing permissions and
1443 * limitations under the License.
1444 */function $c(e,t){return Px(t,e)}function cD(e,t,n,r,i){W(r>e.lastWriteId,"Stacking an older write on top of newer ones"),i===void 0&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=Ys(e.visibleWrites,t,n)),e.lastWriteId=r}function dD(e,t,n,r){W(r>e.lastWriteId,"Stacking an older merge on top of newer ones"),e.allWrites.push({path:t,children:n,writeId:r,visible:!0}),e.visibleWrites=Up(e.visibleWrites,t,n),e.lastWriteId=r}function fD(e,t){for(let n=0;n<e.allWrites.length;n++){const r=e.allWrites[n];if(r.writeId===t)return r}return null}function pD(e,t){const n=e.allWrites.findIndex(a=>a.writeId===t);W(n>=0,"removeWrite called with nonexistent writeId.");const r=e.allWrites[n];e.allWrites.splice(n,1);let i=r.visible,o=!1,s=e.allWrites.length-1;for(;i&&s>=0;){const a=e.allWrites[s];a.visible&&(s>=n&&hD(a,r.path)?i=!1:Sn(r.path,a.path)&&(o=!0)),s--}if(i){if(o)return gD(e),!0;if(r.snap)e.visibleWrites=d1(e.visibleWrites,r.path);else{const a=r.children;At(a,l=>{e.visibleWrites=d1(e.visibleWrites,dt(r.path,l))})}return!0}else return!1}function hD(e,t){if(e.snap)return Sn(e.path,t);for(const n in e.children)if(e.children.hasOwnProperty(n)&&Sn(dt(e.path,n),t))return!0;return!1}function gD(e){e.visibleWrites=Lx(e.allWrites,mD,ze()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}function mD(e){return e.visible}function Lx(e,t,n){let r=Un.empty();for(let i=0;i<e.length;++i){const o=e[i];if(t(o)){const s=o.path;let a;if(o.snap)Sn(n,s)?(a=Vt(n,s),r=Ys(r,a,o.snap)):Sn(s,n)&&(a=Vt(s,n),r=Ys(r,ze(),o.snap.getChild(a)));else if(o.children){if(Sn(n,s))a=Vt(n,s),r=Up(r,a,o.children);else if(Sn(s,n))if(a=Vt(s,n),Ie(a))r=Up(r,ze(),o.children);else{const l=Bo(o.children,xe(a));if(l){const u=l.getChild(Ze(a));r=Ys(r,ze(),u)}}}else throw ns("WriteRecord should have .snap or .children")}}return r}function Ix(e,t,n,r,i){if(!r&&!i){const o=Ji(e.visibleWrites,t);
vendor: 4,117 bytes, lines 1444-1469
1444if(o!=null)return o;{const s=Gr(e.visibleWrites,t);if(Wp(s))return n;if(n==null&&!$p(s,ze()))return null;{const a=n||ce.EMPTY_NODE;return $o(s,a)}}}else{const o=Gr(e.visibleWrites,t);if(!i&&Wp(o))return n;if(!i&&n==null&&!$p(o,ze()))return null;{const s=function(u){return(u.visible||i)&&(!r||!~r.indexOf(u.writeId))&&(Sn(u.path,t)||Sn(t,u.path))},a=Lx(e.allWrites,s,t),l=n||ce.EMPTY_NODE;return $o(a,l)}}}function vD(e,t,n){let r=ce.EMPTY_NODE;const i=Ji(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(ft,(o,s)=>{r=r.updateImmediateChild(o,s)}),r;if(n){const o=Gr(e.visibleWrites,t);return n.forEachChild(ft,(s,a)=>{const l=$o(Gr(o,new Ge(s)),a);r=r.updateImmediateChild(s,l)}),f1(o).forEach(s=>{r=r.updateImmediateChild(s.name,s.node)}),r}else{const o=Gr(e.visibleWrites,t);return f1(o).forEach(s=>{r=r.updateImmediateChild(s.name,s.node)}),r}}function yD(e,t,n,r,i){W(r||i,"Either existingEventSnap or existingServerSnap must exist");const o=dt(t,n);if($p(e.visibleWrites,o))return null;{const s=Gr(e.visibleWrites,o);return Wp(s)?i.getChild(n):$o(s,i.getChild(n))}}function CD(e,t,n,r){const i=dt(t,n),o=Ji(e.visibleWrites,i);if(o!=null)return o;if(r.isCompleteForChild(n)){const s=Gr(e.visibleWrites,i);return $o(s,r.getNode().getImmediateChild(n))}else return null}function bD(e,t){return Ji(e.visibleWrites,t)}function wD(e,t,n,r,i,o,s){let a;const l=Gr(e.visibleWrites,t),u=Ji(l,ze());if(u!=null)a=u;else if(n!=null)a=$o(l,n);else return[];if(a=a.withIndex(s),!a.isEmpty()&&!a.isLeafNode()){const c=[],d=s.getCompare(),f=o?a.getReverseIteratorFrom(r,s):a.getIteratorFrom(r,s);let h=f.getNext();for(;h&&c.length<i;)d(h,r)!==0&&c.push(h),h=f.getNext();return c}else return[]}function xD(){return{visibleWrites:Un.empty(),allWrites:[],lastWriteId:-1}}function Qu(e,t,n,r){return Ix(e.writeTree,e.treePath,t,n,r)}function $g(e,t){return vD(e.writeTree,e.treePath,t)}function p1(e,t,n,r){return yD(e.writeTree,e.treePath,t,n,r)}function Zu(e,t){return bD(e.writeTree,dt(e.treePath,t))}function ED(e,t,n,r,i,o){return wD(e.writeTree,e.treePath,t,n,r,i,o)}function Wg(e,t,n){return CD(e.writeTree,e.treePath,t,n)}function kx(e,t){return Px(dt(e.treePath,t),e.writeTree)}function Px(e,t){return{treePath:e,writeTree:t}}/**
1445 * @license
1446 * Copyright 2017 Google LLC
1447 *
1448 * Licensed under the Apache License, Version 2.0 (the "License");
1449 * you may not use this file except in compliance with the License.
1450 * You may obtain a copy of the License at
1451 *
1452 *   http://www.apache.org/licenses/LICENSE-2.0
1453 *
1454 * Unless required by applicable law or agreed to in writing, software
1455 * distributed under the License is distributed on an "AS IS" BASIS,
1456 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1457 * See the License for the specific language governing permissions and
1458 * limitations under the License.
1459 */class SD{constructor(){this.changeMap=new Map}trackChildChange(t){const n=t.type,r=t.childName;W(n==="child_added"||n==="child_changed"||n==="child_removed","Only child changes supported for tracking"),W(r!==".priority","Only non-priority child changes can be tracked.");const i=this.changeMap.get(r);if(i){const o=i.type;if(n==="child_added"&&o==="child_removed")this.changeMap.set(r,_a(r,t.snapshotNode,i.snapshotNode));else if(n==="child_removed"&&o==="child_added")this.changeMap.delete(r);else if(n==="child_removed"&&o==="child_changed")this.changeMap.set(r,Sa(r,i.oldSnap));else if(n==="child_changed"&&o==="child_added")this.changeMap.set(r,zo(r,t.snapshotNode));else if(n==="child_changed"&&o==="child_changed")this.changeMap.set(r,_a(r,t.snapshotNode,i.oldSnap));else throw ns("Illegal combination of changes: "+t+" occurred after "+i)}else this.changeMap.set(r,t)}getChanges(){return Array.from(this.changeMap.values())}}/**
1460 * @license
1461 * Copyright 2017 Google LLC
1462 *
1463 * Licensed under the Apache License, Version 2.0 (the "License");
1464 * you may not use this file except in compliance with the License.
1465 * You may obtain a copy of the License at
1466 *
1467 *   http://www.apache.org/licenses/LICENSE-2.0
1468 *
1469 * Unless required by applicable law or agreed to in writing, softw
1469are
1470 * distributed under the License is distributed on an "AS IS" BASIS,
1471 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1472 * See the License for the specific language governing permissions and
1473 * limitations under the License.
1474 */class _D{getCompleteChild(t){return null}getChildAfterChild(t,n,r){return null}}const Mx=new _D;class Hg{constructor(t,n,r=null){this.writes_=t,this.viewCache_=n,this.optCompleteServerCache_=r}getCompleteChild(t){const n=this.viewCache_.eventCache;if(n.isCompleteForChild(t))return n.getNode().getImmediateChild(t);{const r=this.optCompleteServerCache_!=null?new ti(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return Wg(this.writes_,t,r)}}getChildAfterChild(t,n,r){const i=this.optCompleteServerCache_!=null?this.optCompleteServerCache_:Ui(this.viewCache_),o=ED(this.writes_,i,n,1,r,t);return o.length===0?null:o[0]}}/**
1475 * @license
1476 * Copyright 2017 Google LLC
1477 *
1478 * Licensed under the Apache License, Version 2.0 (the "License");
1479 * you may not use this file except in compliance with the License.
1480 * You may obtain a copy of the License at
1481 *
1482 *   http://www.apache.org/licenses/LICENSE-2.0
1483 *
1484 * Unless required by applicable law or agreed to in writing, software
1485 * distributed under the License is distributed on an "AS IS" BASIS,
1486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1487 * See the License for the specific language governing permissions and
1488 * limitations under the License.
1489 */function LD(e){return{filter:e}}function ID(e,t){W(t.eventCache.getNode().isIndexed(e.filter.getIndex()),"Event snap not indexed"),W(t.serverCache.getNode().isIndexed(e.filter.getIndex()),"Server snap not indexed")}function kD(e,t,n,r,i){const o=new SD;let s,a;if(n.type===Fn.OVERWRITE){const u=n;u.source.fromUser?s=Hp(e,t,u.path,u.snap,r,i,o):(W(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.serverCache.isFiltered()&&!Ie(u.path),s=Xu(e,t,u.path,u.snap,r,i,a,o))}else if(n.type===Fn.MERGE){const u=n;u.source.fromUser?s=MD(e,t,u.path,u.children,r,i,o):(W(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.serverCache.isFiltered(),s=Vp(e,t,u.path,u.children,r,i,a,o))}else if(n.type===Fn.ACK_USER_WRITE){const u=n;u.revert?s=TD(e,t,u.path,r,i,o):s=DD(e,t,u.path,u.affectedTree,r,i,o)}else if(n.type===Fn.LISTEN_COMPLETE)s=ND(e,t,n.path,r,o);else throw ns("Unknown operation type: "+n.type);const l=o.getChanges();return PD(t,s,l),{viewCache:s,changes:l}}function PD(e,t,n){const r=t.eventCache;if(r.isFullyInitialized()){const i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=Ku(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(xx(Ku(t)))}}function Dx(e,t,n,r,i,o){const s=t.eventCache;if(Zu(r,n)!=null)return t;{let a,l;if(Ie(n))if(W(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){const u=Ui(t),c=u instanceof ce?u:ce.EMPTY_NODE,d=$g(r,c);a=e.filter.updateFullNode(t.eventCache.getNode(),d,o)}else{const u=Qu(r,Ui(t));a=e.filter.updateFullNode(t.eventCache.getNode(),u,o)}else{const u=xe(n);if(u===".priority"){W(ei(n)===1,"Can't have a priority with additional path components");const c=s.getNode();l=t.serverCache.getNode();const d=p1(r,n,c,l);d!=null?a=e.filter.updatePriority(c,d):a=s.getNode()}else{const c=Ze(n);let d;if(s.isCompleteForChild(u)){l=t.serverCache.getNode();const f=p1(r,n,s.getNode(),l);f!=null?d=s.getNode().getImmediateChild(u).updateChild(c,f):d=s.getNode().getImmediateChild(u)}else d=Wg(r,u,t.serverCache);d!=null?a=e.filter.updateChild(s.getNode(),u,d,c,i,o):a=s.getNode()}}return qs(t,a,s.isFullyInitialized()||Ie(n),e.filter.filtersNodes())}}function Xu(e,t,n,r,i,o,s,a){const l=t.serverCache;let u;const c=s?e.filter:e.filter.getIndexedFilter();if(Ie(n))u=c.updateFullNode(l.getNode(),r,null);else if(c.filtersNodes()&&!l.isFiltered()){const h=l.getNode().updateChild(n,r);u=c.updateFullNode(l.getNode(),h,null)}else{const h=xe(n);if(!l.isCompleteForPath(n)&&ei(n)>1)return t;const g=Ze(n),w=l.getNode().getImmediateChild(h).updateChild(g,r);h===".priority"?u=c.updatePriority(l.getNode(),w):u=c.updateChild(l.getNode(),h,w,g,Mx,null)}const d=Sx(t,u,l.isFullyInitialized()||Ie(n),c.filtersNodes()),f=new Hg(i,d,o);return Dx(e,d,n,i,f,a)}function Hp(e,t,n,r,i,o,s){const a=t.eventCache;let l,u;const c=new Hg(i,t,o);if(Ie(n))u=e.filter.updateFullNode(t.eventCache.getNode(),r,s),l=qs(t,u,!0,e.filter.filtersNodes());else{const d=xe(n);if(d===".priority")u=e.filter.updatePriority(t.eventCache.getNode(),r),l=qs(t,u,a.isFullyInitialized(),a.isFiltered());else{const f=Ze(n),h=a.getNode().getImmediateChild(d);let g;if(Ie(f))g=r;else{const v=c.getCompleteChild(d);v!=null?Tg(f)===".priority"&&v.getChild(gx(f)).isEmpty()?g=v:g=v.updateChild(f,r):g=ce.EMPTY_NODE}if(h.equals(g))l=t;else{const v=e.filter.updateChild(a.getNode(),d,g,f,c,s);l=qs(t,v,a.isFullyInitialized(),e.filter.filtersNodes())}}}return l}function h1(e,t){return e.eventCache.isCompleteForChild(t)}function MD(e,t,n,r,i,o,s){let a=t;return r.foreach((l,u)=>{const c=dt(n,l);h1(t,xe(c))&&(a=Hp(e,a,c,u,i,o,s))}),r.foreach((l,u)=>{const c=dt(n,l);h1(t,xe(c))||(a=Hp(e,a,c,u,i,o,s))}),a}
vendor: 1,887 bytes, line 1489
1489function g1(e,t,n){return n.foreach((r,i)=>{t=t.updateChild(r,i)}),t}function Vp(e,t,n,r,i,o,s,a){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let l=t,u;Ie(n)?u=r:u=new Ke(null).setTree(n,r);const c=t.serverCache.getNode();return u.children.inorderTraversal((d,f)=>{if(c.hasChild(d)){const h=t.serverCache.getNode().getImmediateChild(d),g=g1(e,h,f);l=Xu(e,l,new Ge(d),g,i,o,s,a)}}),u.children.inorderTraversal((d,f)=>{const h=!t.serverCache.isCompleteForChild(d)&&f.value===null;if(!c.hasChild(d)&&!h){const g=t.serverCache.getNode().getImmediateChild(d),v=g1(e,g,f);l=Xu(e,l,new Ge(d),v,i,o,s,a)}}),l}function DD(e,t,n,r,i,o,s){if(Zu(i,n)!=null)return t;const a=t.serverCache.isFiltered(),l=t.serverCache;if(r.value!=null){if(Ie(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return Xu(e,t,n,l.getNode().getChild(n),i,o,a,s);if(Ie(n)){let u=new Ke(null);return l.getNode().forEachChild(Po,(c,d)=>{u=u.set(new Ge(c),d)}),Vp(e,t,n,u,i,o,a,s)}else return t}else{let u=new Ke(null);return r.foreach((c,d)=>{const f=dt(n,c);l.isCompleteForPath(f)&&(u=u.set(c,l.getNode().getChild(f)))}),Vp(e,t,n,u,i,o,a,s)}}function ND(e,t,n,r,i){const o=t.serverCache,s=Sx(t,o.getNode(),o.isFullyInitialized()||Ie(n),o.isFiltered());return Dx(e,s,n,r,Mx,i)}function TD(e,t,n,r,i,o){let s;if(Zu(r,n)!=null)return t;{const a=new Hg(r,t,i),l=t.eventCache.getNode();let u;if(Ie(n)||xe(n)===".priority"){let c;if(t.serverCache.isFullyInitialized())c=Qu(r,Ui(t));else{const d=t.serverCache.getNode();W(d instanceof ce,"serverChildren would be complete if leaf node"),c=$g(r,d)}c=c,u=e.filter.updateFullNode(l,c,o)}else{const c=xe(n);let d=Wg(r,c,t.serverCache);d==null&&t.serverCache.isCompleteForChild(c)&&(d=l.getImmediateChild(c)),d!=null?u=e.filter.updateChild(l,c,d,Ze(n),a,o):t.eventCache.getNode().hasChild(c)?u=e.filter.updateChild(l,c,ce.EMPTY_NODE,Ze(n),a,o):u
1489=l,u.isEmpty()&&t.serverCache.isFullyInitialized()&&(s=Qu(r,Ui(t)),s.isLeafNode()&&(u=e.filter.updateFullNode(u,s,o)))}return s=t.serverCache.isFullyInitialized()||Zu(r,ze())!=null,qs(t,u,s,e.filter.filtersNodes())}}/**
1490 * @license
1491 * Copyright 2017 Google LLC
1492 *
1493 * Licensed under the Apache License, Version 2.0 (the "License");
1494 * you may not use this file except in compliance with the License.
1495 * You may obtain a copy of the License at
1496 *
1497 *   http://www.apache.org/licenses/LICENSE-2.0
1498 *
1499 * Unless required by applicable law or agreed to in writing, software
1500 * distributed under the License is distributed on an "AS IS" BASIS,
1501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1502 * See the License for the specific language governing permissions and
1503 * limitations under the License.
1504 */class RD{constructor(t,n){this.query_=t,this.eventRegistrations_=[];const r=this.query_._queryParams,i=new Fg(r.getIndex()),o=X4(r);this.processor_=LD(o);const s=n.serverCache,a=n.eventCache,l=i.updateFullNode(ce.EMPTY_NODE,s.getNode(),null),u=o.updateFullNode(ce.EMPTY_NODE,a.getNode(),null),c=new ti(l,s.isFullyInitialized(),i.filtersNodes()),d=new ti(u,a.isFullyInitialized(),o.filtersNodes());this.viewCache_=Uc(d,c),this.eventGenerator_=new oD(this.query_)}get query(){return this.query_}}function AD(e){return e.viewCache_.serverCache.getNode()}function OD(e){return Ku(e.viewCache_)}function FD(e,t){const n=Ui(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!Ie(t)&&!n.getImmediateChild(xe(t)).isEmpty())?n.getChild(t):null}function m1(e){return e.eventRegistrations_.length===0}function BD(e,t){e.eventRegistrations_.push(t)}function v1(e,t,n){const r=[];if(n){W(t==null,"A cancel should cancel all event registrations.");const i=e.query._path;e.eventRegistrations_.forEach(o=>{const s=o.createCancelEvent(n,i);s&&r.push(s)})}if(t){let i=[];for(let o=0;o<e.eventRegistrations_.length;++o){const s=e.eventRegistrations_[o];if(!s.matches(t))i.push(s);else if(t.hasAnyCallback()){i=i.concat(e.eventRegistrations_.slice(o+1));break}}e.eventRegistrations_=i}else e.eventRegistrations_=[];return r}function y1(e,t,n,r){t.type===Fn.MERGE&&t.source.queryId!==null&&(W(Ui(e.viewCache_),"We should always have a full cache before handling merges"),W(Ku(e.viewCache_),"Missing event cache, even though we have a server cache"));const i=e.viewCache_,o=kD(e.processor_,i,t,n,r);return ID(e.processor_,o.viewCache),W(o.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=o.viewCache,Nx(e,o.changes,o.viewCache.eventCache.getNode(),null)}function jD(e,t){const n=e.viewCache_.eventCache,r=[];return n.getNode().isLeafNode()||n.getNode().forEachChild(ft,(o,s)=>{r.push(zo(o,s))}),n.isFullyInitialized()&&r.push(xx(n.getNode())),Nx(e,r,n.getNode(),t)}function Nx(e,t,n,r){const i=r?[r]:e.eventRegistrations_;return sD(e.eventGenerator_,t,n,i)}/**
1505 * @license
1506 * Copyright 2017 Google LLC
1507 *
1508 * Licensed under the Apache License, Version 2.0 (the "License");
1509 * you may not use this file except in compliance with the License.
1510 * You may obtain a copy of the License at
1511 *
1512 *   http://www.apache.org/licenses/LICENSE-2.0
1513 *
1514 * Unless required by applicable law or agreed to in writing, software
1515 * distributed under the License is distributed on an "AS IS" BASIS,
1516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1517 * See the License for the specific language governing permissions and
1518 * limitations under the License.
1519 */let Ju;class Tx{constructor(){this.views=new Map}}function zD(e){W(!Ju,"__referenceConstructor has already been defined"),Ju=e}function UD(){return W(Ju,"Reference.ts has not been loaded"),Ju}function $D(e){return e.views.size===0}function Vg(e,t,n,r){const i=t.source.queryId;if(i!==null){const o=e.views.get(i);return W(o!=null,"SyncTree gave us an op for an invalid query."),y1(o,t,n,r)}else{let o=[];for(const s of e.views.values())o=o.concat(y1(s,t,n,r));return o}}function Rx(e,t,n,r,i){const o=t._queryIdentifier,s=e.views.get(o);if(!s){let a=Qu(n,i?r:null),l=!1;a?l=!0:r instanceof ce?(a=$g(n,r),l=!1):(a=ce.EMPTY_NODE,l=!1);const u=Uc(new ti(a,l,!1),new ti(r,i,!1));return new RD(t,u)}return s}function WD(e,t,n,r,i,o){const s=Rx(e,t,r,i,o);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,s),BD(s,n),jD(s,n)}function HD(e,t,n,r){const i=t._queryIdentifier,o=[];let s=[];const a=ni(e);if(i==="default")for(const[l,u]of e.views.entries())s=s.concat(v1(u,n,r)),m1(u)&&(e.views.delete(l),u.query._queryParams.loadsAllData()||o.push(u.query));else{const l=e.views.get(i);l&&(s=s.concat(v1(l,n,r)),m1(l)&&(e.views.delete(i),l.query._queryParams.loadsAllData()||o.push(l.query)))}return a&&!ni(e)&&o.push(new(UD())(t._repo,t._path)),{removed:o,events:s}}function Ax(e){const t=[];for(const n of e.views.values())n.query._queryParams.loadsAllData()||t.push(n);return t}function qr(e,t){let n=null;for(const r of e.views.values())n=n||FD(r,t);return n}function Ox(e,t){if(t._queryParams.loadsAllData())return Wc(e);{const r=t._queryIdentifier;return e.views.get(r)}}function Fx(e,t){return Ox(e,t)!=null}function ni(e){return Wc(e)!=null}function Wc(e){for(const t of e.views.values())if(t.query._queryParams.loadsAllData())return t;return null}/**
1520 * @license
1521 * Copyright 2017 Google LLC
1522 *
1523 * Licensed under the Apache License, Version 2.0 (the "License");
1524 * you may not use this file except in compliance with the License.
1525 * You may obtain a copy of the License at
1526 *
1527 *   http://www.apache.org/licenses/LICENSE-2.0
1528 *
1529 * Unless required by applicable law or agreed to in writing, software
1530 * distributed under the License is distributed on an "AS IS" BASIS,
1531 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1532 * See the License for the specific language governing permissions and
1533 * limitations under the License.
1534 */let ec;function VD(e){W(!ec,"__referenceConstructor has already been defined"),ec=e}function GD(){return W(ec,"Reference.ts has not been loaded"),ec}let qD=1;class C1{constructor(t){this.listenProvider_=t,this.syncPointTree_=new Ke(null),this.pendingWriteTree_=xD(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function Bx(e,t,n,r,i){return cD(e.pendingWriteTree_,t,n,r,i),i?is(e,new zi(jg(),t,n)):[]}function YD(e,t,n,r){dD(e.pendingWriteTree_,t,n,r);const i=Ke.fromObject(n);return is(e,new Uo(jg(),t,i))}function Rr(e,t,n=!1){const r=fD(e.pendingWriteTree_,t);if(pD(e.pendingWriteTree_,t)){let o=new Ke(null);return r.snap!=null?o=o.set(ze(),!0):At(r.children,s=>{o=o.set(new Ge(s),!0)}),is(e,new Yu(r.path,o,n))}else return[]}function Xa(e,t,n){return is(e,new zi(zg(),t,n))}function KD(e,t,n){const r=Ke.fromObject(n);return is(e,new Uo(zg(),t,r))}function QD(e,t){return is(e,new Ia(zg(),t))}function ZD(e,t,n){const r=qg(e,n);if(r){const i=Yg(r),o=i.path,s=i.queryId,a=Vt(o,t),l=new Ia(Ug(s),a);return Kg(e,o,l)}else return[]}function tc(e,t,n,r,i=!1){const o=t._path,s=e.syncPointTree_.get(o);let a=[];if(s&&(t._queryIdentifier==="default"||Fx(s,t))){const l=HD(s,t,n,r);$D(s)&&(e.syncPointTree_=e.syncPointTree_.remove(o));const u=l.removed;if(a=l.events,!i){const c=u.findIndex(f=>f._queryParams.loadsAllData())!==-1,d=e.syncPointTree_.findOnPath(o,(f,h)=>ni(h));if(c&&!d){const f=e.syncPointTree_.subtree(o);if(!f.isEmpty()){const h=eN(f);for(let g=0;g<h.length;++g){const v=h[g],w=v.query,C=$x(e,v);e.listenProvider_.startListening(Ks(w),ka(e,w),C.hashFn,C.onComplete)}}}!d&&u.length>0&&!r&&(c?e.listenProvider_.stopListening(Ks(t),null):u.forEach(f=>{const h=e.queryToTagMap.get(Hc(f));e.listenProvider_.stopListening(Ks(f),h)}))}tN(e,u)}return a}function jx(e,t,n,r){const i=qg(e,r);if(i!=null){const o=Yg(i),s=o.path,a=o.queryId,l=Vt(s,t),u=new zi(Ug(a),l,n);return Kg(e,s,u)}else return[]}function XD(e,t,n,r){const i=qg(e,r);if(i){const o=Yg(i),s=o.path,a=o.queryId,l=Vt(s,t),u=Ke.fromObject(n),c=new Uo(Ug(a),l,u);return Kg(e,s,c)}else return[]}function Gp(e,t,n,r=!1){const i=t._path;let o=null,s=!1;e.syncPointTree_.foreachOnPath(i,(f,h)=>{const g=Vt(f,i);o=o||qr(h,g),s=s||ni(h)});let a=e.syncPointTree_.get(i);a?(s=s||ni(a),o=o||qr(a,ze())):(a=new Tx,e.syncPointTree_=e.syncPointTree_.set(i,a));let l;o!=null?l=!0:(l=!1,o=ce.EMPTY_NODE,e.syncPointTree_.subtree(i).foreachChild((h,g)=>{const v=qr(g,ze());v&&(o=o.updateImmediateChild(h,v))}));const u=Fx(a,t);if(!u&&!t._queryParams.loadsAllData()){const f=Hc(t);W(!e.queryToTagMap.has(f),"View does not exist, but we have a tag");const h=nN();e.queryToTagMap.set(f,h),e.tagToQueryMap.set(h,f)}const c=$c(e.pendingWriteTree_,i);let d=WD(a,t,n,c,o,l);if(!u&&!s&&!r){const f=Ox(a,t);d=d.concat(rN(e,t,f))}return d}function Gg(e,t,n){const i=e.pendingWriteTree_,o=e.syncPointTree_.findOnPath(t,(s,a)=>{const l=Vt(s,t),u=qr(a,l);if(u)return u});return Ix(i,t,o,n,!0)}function JD(e,t){const n=t._path;let r=null;e.syncPointTree_.foreachOnPath(n,(u,c)=>{const d=Vt(u,n);r=r||qr(c,d)});let i=e.syncPointTree_.get(n);i?r=r||qr(i,ze()):(i=new Tx,e.syncPointTree_=e.syncPointTree_.set(n,i));const o=r!=null,s=o?new ti(r,!0,!1):null,a=$c(e.pendingWriteTree_,t._path),l=Rx(i,t,a,o?s.getNode():ce.EMPTY_NODE,o);return OD(l)}function is(e,t){return zx(t,e.syncPointTree_,null,$c(e.pendingWriteTree_,ze()))}function zx(e,t,n,r){if(Ie(e.path))return Ux(e,t,n,r);{const i=t.get(ze());n==null&&i!=null&&(n=qr(i,ze()));let o=[];const s=xe(e.path),a=e.operationForChild(s),l=t.children.get(s);if(l&&a){const u=n?n.getImmediateChild(s):null,c=kx(r,s);o=o.concat(zx(a,l,u,c))}
vendor: 1,103 bytes, line 1534
1534return i&&(o=o.concat(Vg(i,e,r,n))),o}}function Ux(e,t,n,r){const i=t.get(ze());n==null&&i!=null&&(n=qr(i,ze()));let o=[];return t.children.inorderTraversal((s,a)=>{const l=n?n.getImmediateChild(s):null,u=kx(r,s),c=e.operationForChild(s);c&&(o=o.concat(Ux(c,a,l,u)))}),i&&(o=o.concat(Vg(i,e,r,n))),o}function $x(e,t){const n=t.query,r=ka(e,n);return{hashFn:()=>(AD(t)||ce.EMPTY_NODE).hash(),onComplete:i=>{if(i==="ok")return r?ZD(e,n._path,r):QD(e,n._path);{const o=QM(i,n);return tc(e,n,null,o)}}}}function ka(e,t){const n=Hc(t);return e.queryToTagMap.get(n)}function Hc(e){return e._path.toString()+"$"+e._queryIdentifier}function qg(e,t){return e.tagToQueryMap.get(t)}function Yg(e){const t=e.indexOf("$");return W(t!==-1&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new Ge(e.substr(0,t))}}function Kg(e,t,n){const r=e.syncPointTree_.get(t);W(r,"Missing sync point for query tag that we're tracking");const i=$c(e.pendingWriteTree_,t);return Vg(r,n,i,null)}function eN(e){return e.fold((t,n,r)=>{if(n&&ni(n))return[Wc(n)];{let i=[];return n&&(i=Ax(n)),At(r,(o,s)=>{i=i.concat(s)}),i}})}
1534function Ks(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(GD())(e._repo,e._path):e}function tN(e,t){for(let n=0;n<t.length;++n){const r=t[n];if(!r._queryParams.loadsAllData()){const i=Hc(r),o=e.queryToTagMap.get(i);e.queryToTagMap.delete(i),e.tagToQueryMap.delete(o)}}}function nN(){return qD++}function rN(e,t,n){const r=t._path,i=ka(e,t),o=$x(e,n),s=e.listenProvider_.startListening(Ks(t),i,o.hashFn,o.onComplete),a=e.syncPointTree_.subtree(r);if(i)W(!ni(a.value),"If we're adding a query, it shouldn't be shadowed");else{const l=a.fold((u,c,d)=>{if(!Ie(u)&&c&&ni(c))return[Wc(c).query];{let f=[];return c&&(f=f.concat(Ax(c).map(h=>h.query))),At(d,(h,g)=>{f=f.concat(g)}),f}});for(let u=0;u<l.length;++u){const c=l[u];e.listenProvider_.stopListening(Ks(c),ka(e,c))}}return s}/**
1535 * @license
1536 * Copyright 2017 Google LLC
1537 *
1538 * Licensed under the Apache License, Version 2.0 (the "License");
1539 * you may not use this file except in compliance with the License.
1540 * You may obtain a copy of the License at
1541 *
1542 *   http://www.apache.org/licenses/LICENSE-2.0
1543 *
1544 * Unless required by applicable law or agreed to in writing, software
1545 * distributed under the License is distributed on an "AS IS" BASIS,
1546 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1547 * See the License for the specific language governing permissions and
1548 * limitations under the License.
1549 */class Qg{constructor(t){this.node_=t}getImmediateChild(t){const n=this.node_.getImmediateChild(t);return new Qg(n)}node(){return this.node_}}class Zg{constructor(t,n){this.syncTree_=t,this.path_=n}getImmediateChild(t){const n=dt(this.path_,t);return new Zg(this.syncTree_,n)}node(){return Gg(this.syncTree_,this.path_)}}const iN=function(e){return e=e||{},e.timestamp=e.timestamp||new Date().getTime(),e},b1=function(e,t,n){if(!e||typeof e!="object")return e;if(W(".sv"in e,"Unexpected leaf node or priority contents"),typeof e[".sv"]=="string")return oN(e[".sv"],t,n);if(typeof e[".sv"]=="object")return sN(e[".sv"],t);W(!1,"Unexpected server value: "+JSON.stringify(e,null,2))},oN=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:W(!1,"Unexpected server value: "+e)}},sN=function(e,t,n){e.hasOwnProperty("increment")||W(!1,"Unexpected server value: "+JSON.stringify(e,null,2));const r=e.increment;typeof r!="number"&&W(!1,"Unexpected increment value: "+r);const i=t.node();if(W(i!==null&&typeof i<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;const s=i.getValue();return typeof s!="number"?r:s+r},Wx=function(e,t,n,r){return Xg(t,new Zg(n,e),r)},Hx=function(e,t,n){return Xg(e,new Qg(t),n)};function Xg(e,t,n){const r=e.getPriority().val(),i=b1(r,t.getImmediateChild(".priority"),n);let o;if(e.isLeafNode()){const s=e,a=b1(s.getValue(),t,n);return a!==s.getValue()||i!==s.getPriority().val()?new xt(a,Ct(i)):e}else{const s=e;return o=s,i!==s.getPriority().val()&&(o=o.updatePriority(new xt(i))),s.forEachChild(ft,(a,l)=>{const u=Xg(l,t.getImmediateChild(a),n);u!==l&&(o=o.updateImmediateChild(a,u))}),o}}/**
1550 * @license
1551 * Copyright 2017 Google LLC
1552 *
1553 * Licensed under the Apache License, Version 2.0 (the "License");
1554 * you may not use this file except in compliance with the License.
1555 * You may obtain a copy of the License at
1556 *
1557 *   http://www.apache.org/licenses/LICENSE-2.0
1558 *
1559 * Unless required by applicable law or agreed to in writing, software
1560 * distributed under the License is distributed on an "AS IS" BASIS,
1561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1562 * See the License for the specific language governing permissions and
1563 * limitations under the License.
1564 */class Jg{constructor(t="",n=null,r={children:{},childCount:0}){this.name=t,this.parent=n,this.node=r}}function em(e,t){let n=t instanceof Ge?t:new Ge(t),r=e,i=xe(n);for(;i!==null;){const o=Bo(r.node.children,i)||{children:{},childCount:0};r=new Jg(i,r,o),n=Ze(n),i=xe(n)}return r}function os(e){return e.node.value}function Vx(e,t){e.node.value=t,qp(e)}function Gx(e){return e.node.childCount>0}function aN(e){return os(e)===void 0&&!Gx(e)}function Vc(e,t){At(e.node.children,(n,r)=>{t(new Jg(n,e,r))})}function qx(e,t,n,r){n&&!r&&t(e),Vc(e,i=>{qx(i,t,!0,r)}),n&&r&&t(e)}
vendor: 4,250 bytes, lines 1564-1589
1564function lN(e,t,n){let r=e.parent;for(;r!==null;){if(t(r))return!0;r=r.parent}return!1}function Ja(e){return new Ge(e.parent===null?e.name:Ja(e.parent)+"/"+e.name)}function qp(e){e.parent!==null&&uN(e.parent,e.name,e)}function uN(e,t,n){const r=aN(n),i=er(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,qp(e)):!r&&!i&&(e.node.children[t]=n.node,e.node.childCount++,qp(e))}/**
1565 * @license
1566 * Copyright 2017 Google LLC
1567 *
1568 * Licensed under the Apache License, Version 2.0 (the "License");
1569 * you may not use this file except in compliance with the License.
1570 * You may obtain a copy of the License at
1571 *
1572 *   http://www.apache.org/licenses/LICENSE-2.0
1573 *
1574 * Unless required by applicable law or agreed to in writing, software
1575 * distributed under the License is distributed on an "AS IS" BASIS,
1576 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1577 * See the License for the specific language governing permissions and
1578 * limitations under the License.
1579 */const cN=/[\[\].#$\/\u0000-\u001F\u007F]/,dN=/[\[\].#$\u0000-\u001F\u007F]/,cf=10*1024*1024,tm=function(e){return typeof e=="string"&&e.length!==0&&!cN.test(e)},Yx=function(e){return typeof e=="string"&&e.length!==0&&!dN.test(e)},fN=function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),Yx(e)},pN=function(e){return e===null||typeof e=="string"||typeof e=="number"&&!kg(e)||e&&typeof e=="object"&&er(e,".sv")},Kx=function(e,t,n,r){r&&t===void 0||Gc(Bc(e,"value"),t,n)},Gc=function(e,t,n){const r=n instanceof Ge?new M4(n,e):n;if(t===void 0)throw new Error(e+"contains undefined "+Ci(r));if(typeof t=="function")throw new Error(e+"contains a function "+Ci(r)+" with contents = "+t.toString());if(kg(t))throw new Error(e+"contains "+t.toString()+" "+Ci(r));if(typeof t=="string"&&t.length>cf/3&&jc(t)>cf)throw new Error(e+"contains a string greater than "+cf+" utf8 bytes "+Ci(r)+" ('"+t.substring(0,50)+"...')");if(t&&typeof t=="object"){let i=!1,o=!1;if(At(t,(s,a)=>{if(s===".value")i=!0;else if(s!==".priority"&&s!==".sv"&&(o=!0,!tm(s)))throw new Error(e+" contains an invalid key ("+s+") "+Ci(r)+`.  Keys must be non-empty strings and can't contain ".", "#", "$", "/", "[", or "]"`);D4(r,s),Gc(e,a,r),N4(r)}),i&&o)throw new Error(e+' contains ".value" child '+Ci(r)+" in addition to actual children.")}},hN=function(e,t){let n,r;for(n=0;n<t.length;n++){r=t[n];const o=Ea(r);for(let s=0;s<o.length;s++)if(!(o[s]===".priority"&&s===o.length-1)){if(!tm(o[s]))throw new Error(e+"contains an invalid key ("+o[s]+") in path "+r.toString()+`. Keys must be non-empty strings and can't contain ".", "#", "$", "/", "[", or "]"`)}}t.sort(P4);let i=null;for(n=0;n<t.length;n++){if(r=t[n],i!==null&&Sn(i,r))throw new Error(e+"contains a path "+i.toString()+" that is ancestor of another path "+r.toString());i=r}},gN=function(e,t,n,r){const i=Bc(e,"values");if(!(t&&typeof t=="object")||Array.isArray(t))throw new Error(i+" must be an object containing the children to replace.");const o=[];At(t,(s,a)=>{const l=new Ge(s);if(Gc(i,a,dt(n,l)),Tg(l)===".priority"&&!pN(a))throw new Error(i+"contains an invalid value for '"+l.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");o.push(l)}),hN(i,o)},Qx=function(e,t,n,r){if(!Yx(n))throw new Error(Bc(e,t)+'was an invalid path = "'+n+`". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"`)},mN=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),Qx(e,t,n)},nm=function(e,t){if(xe(t)===".info")throw new Error(e+" failed = Can't modify data under /.info/")},vN=function(e,t){const n=t.path.toString();if(typeof t.repoInfo.host!="string"||t.repoInfo.host.length===0||!tm(t.repoInfo.namespace)&&t.repoInfo.host.split(":")[0]!=="localhost"||n.length!==0&&!fN(n))throw new Error(Bc(e,"url")+`must be a valid firebase URL and the path can't contain ".", "#", "$", "[", or "]".`)};/**
1580 * @license
1581 * Copyright 2017 Google LLC
1582 *
1583 * Licensed under the Apache License, Version 2.0 (the "License");
1584 * you may not use this file except in compliance with the License.
1585 * You may obtain a copy of the License at
1586 *
1587 *   http://www.apache.org/licenses/LICENSE-2.0
1588 *
1589 * Unless required by applicable law or agreed to in writing, softw
1589are
1590 * distributed under the License is distributed on an "AS IS" BASIS,
1591 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1592 * See the License for the specific language governing permissions and
1593 * limitations under the License.
1594 */class yN{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function qc(e,t){let n=null;for(let r=0;r<t.length;r++){const i=t[r],o=i.getPath();n!==null&&!Rg(o,n.path)&&(e.eventLists_.push(n),n=null),n===null&&(n={events:[],path:o}),n.events.push(i)}n&&e.eventLists_.push(n)}function Zx(e,t,n){qc(e,n),Xx(e,r=>Rg(r,t))}function Mn(e,t,n){qc(e,n),Xx(e,r=>Sn(r,t)||Sn(t,r))}function Xx(e,t){e.recursionDepth_++;let n=!0;for(let r=0;r<e.eventLists_.length;r++){const i=e.eventLists_[r];if(i){const o=i.path;t(o)?(CN(e.eventLists_[r]),e.eventLists_[r]=null):n=!1}}n&&(e.eventLists_=[]),e.recursionDepth_--}function CN(e){for(let t=0;t<e.events.length;t++){const n=e.events[t];if(n!==null){e.events[t]=null;const r=n.getEventRunner();Vs&&Dt("event: "+n.toString()),rs(r)}}}/**
1595 * @license
1596 * Copyright 2017 Google LLC
1597 *
1598 * Licensed under the Apache License, Version 2.0 (the "License");
1599 * you may not use this file except in compliance with the License.
1600 * You may obtain a copy of the License at
1601 *
1602 *   http://www.apache.org/licenses/LICENSE-2.0
1603 *
1604 * Unless required by applicable law or agreed to in writing, software
1605 * distributed under the License is distributed on an "AS IS" BASIS,
1606 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1607 * See the License for the specific language governing permissions and
1608 * limitations under the License.
1609 */const bN="repo_interrupt",wN=25;class xN{constructor(t,n,r,i){this.repoInfo_=t,this.forceRestClient_=n,this.authTokenProvider_=r,this.appCheckProvider_=i,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new yN,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=qu(),this.transactionQueueTree_=new Jg,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function EN(e,t,n){if(e.stats_=Dg(e.repoInfo_),e.forceRestClient_||e4())e.server_=new Gu(e.repoInfo_,(r,i,o,s)=>{w1(e,r,i,o,s)},e.authTokenProvider_,e.appCheckProvider_),setTimeout(()=>x1(e,!0),0);else{if(typeof n<"u"&&n!==null){if(typeof n!="object")throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{bt(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}e.persistentConnection_=new lr(e.repoInfo_,t,(r,i,o,s)=>{w1(e,r,i,o,s)},r=>{x1(e,r)},r=>{SN(e,r)},e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener(r=>{e.server_.refreshAuthToken(r)}),e.appCheckProvider_.addTokenChangeListener(r=>{e.server_.refreshAppCheckToken(r.token)}),e.statsReporter_=o4(e.repoInfo_,()=>new iD(e.stats_,e.server_)),e.infoData_=new J4,e.infoSyncTree_=new C1({startListening:(r,i,o,s)=>{let a=[];const l=e.infoData_.getNode(r._path);return l.isEmpty()||(a=Xa(e.infoSyncTree_,r._path,l),setTimeout(()=>{s("ok")},0)),a},stopListening:()=>{}}),rm(e,"connected",!1),e.serverSyncTree_=new C1({startListening:(r,i,o,s)=>(e.server_.listen(r,o,i,(a,l)=>{const u=s(a,l);Mn(e.eventQueue_,r._path,u)}),[]),stopListening:(r,i)=>{e.server_.unlisten(r,i)}})}function Jx(e){const n=e.infoData_.getNode(new Ge(".info/serverTimeOffset")).val()||0;return new Date().getTime()+n}function Yc(e){return iN({timestamp:Jx(e)})}function w1(e,t,n,r,i){e.dataUpdateCount++;const o=new Ge(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let s=[];if(i)if(r){const l=zu(n,u=>Ct(u));s=XD(e.serverSyncTree_,o,l,i)}else{const l=Ct(n);s=jx(e.serverSyncTree_,o,l,i)}else if(r){const l=zu(n,u=>Ct(u));s=KD(e.serverSyncTree_,o,l)}else{const l=Ct(n);s=Xa(e.serverSyncTree_,o,l)}let a=o;s.length>0&&(a=Wo(e,o)),Mn(e.eventQueue_,a,s)}function x1(e,t){rm(e,"connected",t),t===!1&&kN(e)}function SN(e,t){At(t,(n,r)=>{rm(e,n,r)})}function rm(e,t,n){const r=new Ge("/.info/"+t),i=Ct(n);e.infoData_.updateSnapshot(r,i);const o=Xa(e.infoSyncTree_,r,i);Mn(e.eventQueue_,r,o)}function im(e){return e.nextWriteId_++}
1609function _N(e,t,n){const r=JD(e.serverSyncTree_,t);return r!=null?Promise.resolve(r):e.server_.get(t).then(i=>{const o=Ct(i).withIndex(t._queryParams.getIndex());Gp(e.serverSyncTree_,t,n,!0);let s;if(t._queryParams.loadsAllData())s=Xa(e.serverSyncTree_,t._path,o);else{const a=ka(e.serverSyncTree_,t);s=jx(e.serverSyncTree_,t._path,o,a)}return Mn(e.eventQueue_,t._path,s),tc(e.serverSyncTree_,t,n,null,!0),o},i=>(el(e,"get for query "+bt(t)+" failed: "+i),Promise.reject(new Error(i))))}function LN(e,t,n,r,i){el(e,"set",{path:t.toString(),value:n,priority:r});const o=Yc(e),s=Ct(n,r),a=Gg(e.serverSyncTree_,t),l=Hx(s,a,o),u=im(e),c=Bx(e.serverSyncTree_,t,l,u,!0);qc(e.eventQueue_,c),e.server_.put(t.toString(),s.val(!0),(f,h)=>{const g=f==="ok";g||qt("set at "+t+" failed: "+f);const v=Rr(e.serverSyncTree_,u,!g);Mn(e.eventQueue_,t,v),Yp(e,i,f,h)});const d=sm(e,t);Wo(e,d),Mn(e.eventQueue_,d,[])}function IN(e,t,n,r){el(e,"update",{path:t.toString(),value:n});let i=!0;const o=Yc(e),s={};if(At(n,(a,l)=>{i=!1,s[a]=Wx(dt(t,a),Ct(l),e.serverSyncTree_,o)}),i)Dt("update() called with empty data.  Don't do anything."),Yp(e,r,"ok",void 0);else{const a=im(e),l=YD(e.serverSyncTree_,t,s,a);qc(e.eventQueue_,l),e.server_.merge(t.toString(),n,(u,c)=>{const d=u==="ok";d||qt("update at "+t+" failed: "+u);const f=Rr(e.serverSyncTree_,a,!d),h=f.length>0?Wo(e,t):t;Mn(e.eventQueue_,h,f),Yp(e,r,u,c)}),At(n,u=>{const c=sm(e,dt(t,u));Wo(e,c)}),Mn(e.eventQueue_,t,[])}}function kN(e){el(e,"onDisconnectEvents");const t=Yc(e),n=qu();zp(e.onDisconnect_,ze(),(i,o)=>{const s=Wx(i,o,e.serverSyncTree_,t);Ex(n,i,s)});let r=[];zp(n,ze(),(i,o)=>{r=r.concat(Xa(e.serverSyncTree_,i,o));const s=sm(e,i);Wo(e,s)}),e.onDisconnect_=qu(),Mn(e.eventQueue_,ze(),r)}function PN(e,t,n){let r;xe(t._path)===".info"?r=Gp(e.infoSyncTree_,t,n):r=Gp(e.serverSyncTree_,t,n),Zx(e.eventQueue_,t._path,r)}function E1(e,t,n){let r;xe(t._path)===".info"?r=tc(e.infoSyncTree_,t,n):r=tc(e.serverSyncTree_,t,n),Zx(e.eventQueue_,t._path,r)}function MN(e){e.persistentConnection_&&e.persistentConnection_.interrupt(bN)}function el(e,...t){let n="";e.persistentConnection_&&(n=e.persistentConnection_.id+":"),Dt(n,...t)}function Yp(e,t,n,r){t&&rs(()=>{if(n==="ok")t(null);else{const i=(n||"error").toUpperCase();let o=i;r&&(o+=": "+r);const s=new Error(o);s.code=i,t(s)}})}function eE(e,t,n){return Gg(e.serverSyncTree_,t,n)||ce.EMPTY_NODE}function om(e,t=e.transactionQueueTree_){if(t||Kc(e,t),os(t)){const n=nE(e,t);W(n.length>0,"Sending zero length transaction queue"),n.every(i=>i.status===0)&&DN(e,Ja(t),n)}else Gx(t)&&Vc(t,n=>{om(e,n)})}function DN(e,t,n){const r=n.map(u=>u.currentWriteId),i=eE(e,t,r);let o=i;const s=i.hash();for(let u=0;u<n.length;u++){const c=n[u];W(c.status===0,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=1,c.retryCount++;const d=Vt(t,c.path);o=o.updateChild(d,c.currentOutputSnapshotRaw)}const a=o.val(!0),l=t;e.server_.put(l.toString(),a,u=>{el(e,"transaction put response",{path:l.toString(),status:u});let c=[];if(u==="ok"){const d=[];for(let f=0;f<n.length;f++)n[f].status=2,c=c.concat(Rr(e.serverSyncTree_,n[f].currentWriteId)),n[f].onComplete&&d.push(()=>n[f].onComplete(null,!0,n[f].currentOutputSnapshotResolved)),n[f].unwatcher();Kc(e,em(e.transactionQueueTree_,t)),om(e,e.transactionQueueTree_),Mn(e.eventQueue_,t,c);for(let f=0;f<d.length;f++)rs(d[f])}else{if(u==="datastale")for(let d=0;d<n.length;d++)n[d].status===3?n[d].status=4:n[d].status=0;else{qt("transaction at "+l.toString()+" failed: "+u);for(let d=0;d<n.length;d++)n[d].status=4,n[d].abortReason=u}Wo(e,t)}},s)}function Wo(e,t){const n=tE(e,t),r=Ja(n),i=nE(e,n);return NN(e,i,r),r}function NN(e,t,n){if(t.length===0)return;const r=[];let i=[];const s=t.filter(a=>a.status===0).map(a=>a.currentWriteId);for(let a=0;a<t.length;a++){const l=t[a],u=Vt(n,l.path);let c=!1,d;if(W(u!==null,"rerunTransactionsUnderNode_: relativePath should not be null."),l.status===4)c=!0,d=l.abortReason,i=i.concat(Rr(e.serverSyncTree_,l.currentWriteId,!0));else if(l.status===0)if(l.retryCount>=wN)c=!0,d="maxretry",i=i.concat(Rr(e.serverSyncTree_,l.currentWriteId,!0));else{const f=eE(e,l.path,s);l.currentInputSnapshot=f;const h=t[a].update(f.val());if(h!==void 0){Gc("transaction failed: Data returned ",h,l.path);let g=Ct(h);typeof h=="object"&&h!=null&&er(h,".priority")||(g=g.updatePriority(f.getPriority()));const w=l.currentWriteId,C=Yc(e),y=Hx(g,f,C);l.currentOutputSnapshotRaw=g,l.currentOutputSnapshotResolved=y,l.currentWriteId=im(e),s.splice(s.indexOf(w),1),i=i.concat(Bx(e.serverSyncTree_,l.path,y,l.currentWriteId,l.applyLocally)),i=i.concat(Rr(e.serverSyncTree_,w,!0))}else c=!0,d="nodata",i=i.concat(Rr(e.serverSyncTree_,l.currentWriteId,!0))}Mn(e.eventQueue_,n,i),i=[],c&&(t[a].status=2,function(f){setTimeout(f,Math.floor(0))}(t[a].unwatcher),t[a].onComplete&&(d==="nodata"?r.push(()=>t[a].onComplete(null,!1,t[a].currentInputSnapshot)):r.push(()=>t[a].onComplete(new Error(d),!1,null))))}Kc(e,e.transactionQueueTree_);for(let a=0;a<r.length;a++)rs(r[a]);om(e,e.transactionQueueTree_)}function tE(e,t){let n,r=e.transactionQueueTree_;
1609for(n=xe(t);n!==null&&os(r)===void 0;)r=em(r,n),t=Ze(t),n=xe(t);return r}function nE(e,t){const n=[];return rE(e,t,n),n.sort((r,i)=>r.order-i.order),n}function rE(e,t,n){const r=os(t);if(r)for(let i=0;i<r.length;i++)n.push(r[i]);Vc(t,i=>{rE(e,i,n)})}function Kc(e,t){const n=os(t);if(n){let r=0;for(let i=0;i<n.length;i++)n[i].status!==2&&(n[r]=n[i],r++);n.length=r,Vx(t,n.length>0?n:void 0)}Vc(t,r=>{Kc(e,r)})}function sm(e,t){const n=Ja(tE(e,t)),r=em(e.transactionQueueTree_,t);return lN(r,i=>{df(e,i)}),df(e,r),qx(r,i=>{df(e,i)}),n}function df(e,t){const n=os(t);if(n){const r=[];let i=[],o=-1;for(let s=0;s<n.length;s++)n[s].status===3||(n[s].status===1?(W(o===s-1,"All SENT items should be at beginning of queue."),o=s,n[s].status=3,n[s].abortReason="set"):(W(n[s].status===0,"Unexpected transaction status in abort"),n[s].unwatcher(),i=i.concat(Rr(e.serverSyncTree_,n[s].currentWriteId,!0)),n[s].onComplete&&r.push(n[s].onComplete.bind(null,new Error("set"),!1,null))));o===-1?Vx(t,void 0):n.length=o+1,Mn(e.eventQueue_,Ja(t),i);for(let s=0;s<r.length;s++)rs(r[s])}}/**
1610 * @license
1611 * Copyright 2017 Google LLC
1612 *
1613 * Licensed under the Apache License, Version 2.0 (the "License");
1614 * you may not use this file except in compliance with the License.
1615 * You may obtain a copy of the License at
1616 *
1617 *   http://www.apache.org/licenses/LICENSE-2.0
1618 *
1619 * Unless required by applicable law or agreed to in writing, software
1620 * distributed under the License is distributed on an "AS IS" BASIS,
1621 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1622 * See the License for the specific language governing permissions and
1623 * limitations under the License.
1624 */function TN(e){let t="";const n=e.split("/");for(let r=0;r<n.length;r++)if(n[r].length>0){let i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch{}t+="/"+i}return t}function RN(e){const t={};e.charAt(0)==="?"&&(e=e.substring(1));for(const n of e.split("&")){if(n.length===0)continue;const r=n.split("=");r.length===2?t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):qt(`Invalid query segment '${n}' in query '${e}'`)}return t}const S1=function(e,t){const n=AN(e),r=n.namespace;n.domain==="firebase.com"&&hr(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!r||r==="undefined")&&n.domain!=="localhost"&&hr("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||VM();const i=n.scheme==="ws"||n.scheme==="wss";return{repoInfo:new sx(n.host,n.secure,r,i,t,"",r!==n.subdomain),path:new Ge(n.pathString)}},AN=function(e){let t="",n="",r="",i="",o="",s=!0,a="https",l=443;if(typeof e=="string"){let u=e.indexOf("//");u>=0&&(a=e.substring(0,u-1),e=e.substring(u+2));let c=e.indexOf("/");c===-1&&(c=e.length);let d=e.indexOf("?");d===-1&&(d=e.length),t=e.substring(0,Math.min(c,d)),c<d&&(i=TN(e.substring(c,d)));const f=RN(e.substring(Math.min(e.length,d)));u=t.indexOf(":"),u>=0?(s=a==="https"||a==="wss",l=parseInt(t.substring(u+1),10)):u=t.length;const h=t.slice(0,u);if(h.toLowerCase()==="localhost")n="localhost";else if(h.split(".").length<=2)n=h;else{const g=t.indexOf(".");r=t.substring(0,g).toLowerCase(),n=t.substring(g+1),o=r}"ns"in f&&(o=f.ns)}return{host:t,port:l,domain:n,subdomain:r,secure:s,scheme:a,pathString:i,namespace:o}};/**
1625 * @license
1626 * Copyright 2017 Google LLC
1627 *
1628 * Licensed under the Apache License, Version 2.0 (the "License");
1629 * you may not use this file except in compliance with the License.
1630 * You may obtain a copy of the License at
1631 *
1632 *   http://www.apache.org/licenses/LICENSE-2.0
1633 *
1634 * Unless required by applicable law or agreed to in writing, software
1635 * distributed under the License is distributed on an "AS IS" BASIS,
1636 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1637 * See the License for the specific language governing permissions and
1638 * limitations under the License.
1639 */const _1="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",ON=function(){let e=0;const t=[];return function(n){const r=n===e;e=n;let i;const o=new Array(8);for(i=7;i>=0;i--)o[i]=_1.charAt(n%64),n=Math.floor(n/64);W(n===0,"Cannot push at time == 0");let s=o.join("");if(r){for(i=11;i>=0&&t[i]===63;i--)t[i]=0;t[i]++}else for(i=0;i<12;i++)t[i]=Math.floor(Math.random()*64);for(i=0;i<12;i++)s+=_1.charAt(t[i]);return W(s.length===20,"nextPushId: Length should be 20."),s}}();/**
1640 * @license
1641 * Copyright 2017 Google LLC
1642 *
1643 * Licensed under the Apache License, Version 2.0 (the "License");
1644 * you may not use this file except in compliance with the License.
1645 * You may obtain a copy of the License at
1646 *
1647 *   http://www.apache.org/licenses/LICENSE-2.0
1648 *
1649 * Unless required by applicable law or agreed to in writing, software
1650 * distributed under the License is distributed on an "AS IS" BASIS,
1651 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1652 * See the License for the specific language governing permissions and
1653 * limitations under the License.
1654 */class FN{constructor(t,n,r,i){this.eventType=t,this.eventRegistration=n,this.snapshot=r,this.prevName=i}getPath(){const t=this.snapshot.ref;return this.eventType==="value"?t._path:t.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+bt(this.snapshot.exportVal())}}class BN{constructor(t,n,r){this.eventRegistration=t,this.error=n,this.path=r}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}/**
1655 * @license
1656 * Copyright 2017 Google LLC
1657 *
1658 * Licensed under the Apache License, Version 2.0 (the "License");
1659 * you may not use this file except in compliance with the License.
1660 * You may obtain a copy of the License at
1661 *
1662 *   http://www.apache.org/licenses/LICENSE-2.0
1663 *
1664 * Unless required by applicable law or agreed to in writing, software
1665 * distributed under the License is distributed on an "AS IS" BASIS,
1666 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1667 * See the License for the specific language governing permissions and
1668 * limitations under the License.
1669 */class iE{constructor(t,n){this.snapshotCallback=t,this.cancelCallback=n}onValue(t,n){this.snapshotCallback.call(null,t,n)}onCancel(t){return W(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,t)}get hasCancelCallback(){return!!this.cancelCallback}matches(t){return this.snapshotCallback===t.snapshotCallback||this.snapshotCallback.userCallback!==void 0&&this.snapshotCallback.userCallback===t.snapshotCallback.userCallback&&this.snapshotCallback.context===t.snapshotCallback.context}}/**
1670 * @license
1671 * Copyright 2020 Google LLC
1672 *
1673 * Licensed under the Apache License, Version 2.0 (the "License");
1674 * you may not use this file except in compliance with the License.
1675 * You may obtain a copy of the License at
1676 *
1677 *   http://www.apache.org/licenses/LICENSE-2.0
1678 *
1679 * Unless required by applicable law or agreed to in writing, software
1680 * distributed under the License is distributed on an "AS IS" BASIS,
1681 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1682 * See the License for the specific language governing permissions and
1683 * limitations under the License.
1684 */class am{constructor(t,n,r,i){this._repo=t,this._path=n,this._queryParams=r,this._orderByCalled=i}get key(){return Ie(this._path)?null:Tg(this._path)}get ref(){return new Cr(this._repo,this._path)}get _queryIdentifier(){const t=u1(this._queryParams),n=Pg(t);return n==="{}"?"default":n}get _queryObject(){return u1(this._queryParams)}isEqual(t){if(t=Zi(t),!(t instanceof am))return!1;const n=this._repo===t._repo,r=Rg(this._path,t._path),i=this._queryIdentifier===t._queryIdentifier;return n&&r&&i}toJSON(){return this.toString()}toString(){return this._repo.toString()+k4(this._path)}}class Cr extends am{constructor(t,n){super(t,n,new Bg,!1)}get parent(){const t=gx(this._path);return t===null?null:new Cr(this._repo,t)}get root(){let t=this;for(;t.parent!==null;)t=t.parent;return t}}class Pa{constructor(t,n,r){this._node=t,this.ref=n,this._index=r}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(t){const n=new Ge(t),r=Ma(this.ref,t);return new Pa(this._node.getChild(n),r,ft)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(t){return this._node.isLeafNode()?!1:!!this._node.forEachChild(this._index,(r,i)=>t(new Pa(i,Ma(this.ref,r),ft)))}hasChild(t){const n=new Ge(t);return!this._node.getChild(n).isEmpty()}hasChildren(){return this._node.isLeafNode()?!1:!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function nt(e,t){return e=Zi(e),e._checkNotDeleted("ref"),t!==void 0?Ma(e._root,t):e._root}function Ma(e,t){return e=Zi(e),xe(e._path)===null?mN("child","path",t):Qx("child","path",t),new Cr(e._repo,dt(e._path,t))}function $i(e,t){e=Zi(e),nm("push",e._path),Kx("push",t,e._path,!0);const n=Jx(e._repo),r=ON(n),i=Ma(e,r),o=Ma(e,r);let s;return t!=null?s=Wi(o,t).then(()=>o):s=Promise.resolve(o),i.then=s.then.bind(s),i.catch=s.then.bind(s,void 0),i}function oE(e){return nm("remove",e._path),Wi(e,null)}function Wi(e,t){e=Zi(e),nm("set",e._path),Kx("set",t,e._path,!1);const n=new qa;return LN(e._repo,e._path,t,null,n.wrapCallback(()=>{})),n.promise}function Kp(e,t){gN("update",t,e._path);const n=new qa;return IN(e._repo,e._path,t,n.wrapCallback(()=>{})),n.promise}function L1(e){e=Zi(e);const t=new iE(()=>{}),n=new Qc(t);return _N(e._repo,e,n).then(r=>new Pa(r,new Cr(e._repo,e._path),e._queryParams.getIndex()))}class Qc{constructor(t){this.callbackContext=t}respondsTo(t){return t==="value"}createEvent(t,n){const r=n._queryParams.getIndex();return new FN("value",this,new Pa(t.snapshotNode,new Cr(n._repo,n._path),r))}getEventRunner(t){return t.getEventType()==="cancel"?()=>this.callbackContext.onCancel(t.error):()=>this.callbackContext.onValue(t.snapshot,null)}createCancelEvent(t,n){return this.callbackContext.hasCancelCallback?new BN(this,t,n):null}matches(t){return t instanceof Qc?!t.callbackContext||!this.callbackContext?!0:t.callbackContext.matches(this.callbackContext):!1}hasAnyCallback(){return this.callbackContext!==null}}function jN(e,t,n,r,i){let o;if(typeof r=="object"&&(o=void 0,i=r),typeof r=="function"&&(o=r),i&&i.onlyOnce){const l=n,u=(c,d)=>{E1(e._repo,e,a),l(c,d)};u.userCallback=n.userCallback,u.context=n.context,n=u}const s=new iE(n,o||void 0),a=new Qc(s);return PN(e._repo,e,a),()=>E1(e._repo,e,a)}function Ho(e,t,n,r){return jN(e,"value",t,n,r)}zD(Cr);VD(Cr);/**
1685 * @license
1686 * Copyright 2020 Google LLC
1687 *
1688 * Licensed under the Apache License, Version 2.0 (the "License");
1689 * you may not use this file except in compliance with the License.
1690 * You may obtain a copy of the License at
1691 *
1692 *   http://www.apache.org/licenses/LICENSE-2.0
1693 *
1694 * Unless required by applicable law or agreed to in writing, software
1695 * distributed under the License is distributed on an "AS IS" BASIS,
1696 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1697 * See the License for the specific language governing permissions and
1698 * limitations under the License.
1699 */const zN="FIREBASE_DATABASE_EMULATOR_HOST",Qp={};let UN=!1;function $N(e,t,n,r){e.repoInfo_=new sx(`${t}:${n}`,!1,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams,!0),r&&(e.authTokenProvider_=r)}function WN(e,t,n,r,i){let o=r||e.options.databaseURL;o===void 0&&(e.options.projectId||hr("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),Dt("Using default host for project ",e.options.projectId),o=`${e.options.projectId}-default-rtdb.firebaseio.com`);let s=S1(o,i),a=s.repoInfo,l;typeof process<"u"&&V0&&(l=V0[zN]),l?(o=`http://${l}?ns=${a.namespace}`,s=S1(o,i),a=s.repoInfo):s.repoInfo.secure;const u=new n4(e.name,e.options,t);vN("Invalid Firebase Database URL",s),Ie(s.path)||hr("Database URL must point to the root of a Firebase Database (not including a child path).");const c=VN(a,e,u,new t4(e.name,n));return new GN(c,e)}function HN(e,t){const n=Qp[t];(!n||n[e.key]!==e)&&hr(`Database ${t}(${e.repoInfo_}) has already been deleted.`),MN(e),delete n[e.key]}function VN(e,t,n,r){let i=Qp[t.name];i||(i={},Qp[t.name]=i);let o=i[e.toURLString()];return o&&hr("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),o=new xN(e,UN,n,r),i[e.toURLString()]=o,o}class GN{constructor(t,n){this._repoInternal=t,this.app=n,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(EN(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new Cr(this._repo,ze())),this._rootInternal}_delete(){return this._rootInternal!==null&&(HN(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(t){this._rootInternal===null&&hr("Cannot call "+t+" on a deleted database.")}}function qN(e=IM(),t){const n=EM(e,"database").getImmediate({identifier:t});if(!n._instanceStarted){const r=hP("database");r&&YN(n,...r)}return n}function YN(e,t,n,r={}){e=Zi(e),e._checkNotDeleted("useEmulator"),e._instanceStarted&&hr("Cannot call useEmulator() after instance has already been initialized.");const i=e._repoInternal;let o;if(i.repoInfo_.nodeAdmin)r.mockUserToken&&hr('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),o=new lu(lu.OWNER);else if(r.mockUserToken){const s=typeof r.mockUserToken=="string"?r.mockUserToken:gP(r.mockUserToken,e.app.options.projectId);o=new lu(s)}$N(i,t,n,o)}/**
1700 * @license
1701 * Copyright 2021 Google LLC
1702 *
1703 * Licensed under the Apache License, Version 2.0 (the "License");
1704 * you may not use this file except in compliance with the License.
1705 * You may obtain a copy of the License at
1706 *
1707 *   http://www.apache.org/licenses/LICENSE-2.0
1708 *
1709 * Unless required by applicable law or agreed to in writing, software
1710 * distributed under the License is distributed on an "AS IS" BASIS,
1711 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1712 * See the License for the specific language governing permissions and
1713 * limitations under the License.
1714 */function KN(e){jM(LM),$u(new ba("database",(t,{instanceIdentifier:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),o=t.getProvider("app-check-internal");return WN(r,i,o,n)},"PUBLIC").setMultipleInstances(!0)),Io(G0,q0,e),Io(G0,q0,"esm2017")}lr.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)};lr.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};KN();const QN={apiKey:"AIzaSyBnxdlHz3EevWXi7xZScF8QooHyICzpWnw",authDomain:"srtapp-9ad3b.firebaseapp.com",databaseURL:"https://srtapp-9ad3b-default-rtdb.europe-west1.firebasedatabase.app",projectId:"srtapp-9ad3b",storageBucket:"srtapp-9ad3b.appspot.com",messagingSenderId:"1010975824",appId:"1:1010975824:web:191e6fe344e81dd7f0bd55"},ZN=Ww(QN),rt=qN(ZN);function nc(){return nc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(this,arguments)}var I1=function(e){var t=p.useRef(e);return t.current=e,t},XN=function(e,t){var n;return function(){for(var r=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];n!==null&&(clearTimeout(n),n=null),n=setTimeout(function(){return e.apply(r,o)},t)}},JN="💡 use-places-autocomplete: Google Maps Places API library must be loaded. See: https://github.com/wellyshen/use-places-autocomplete#load-the-library",lm=function(t){var n=t===void 0?{}:t,r=n.requestOptions,i=n.debounce,o=i===void 0?200:i,s=n.cache,a=s===void 0?24*60*60:s,l=n.cacheKey,u=l===void 0?"upa":l,c=n.googleMaps,d=n.callbackName,f=n.defaultValue,h=f===void 0?"":f,g=n.initOnMount,v=g===void 0?!0:g,w=p.useState(!1),C=w[0],y=w[1],b=p.use
1714State(h),x=b[0],S=b[1],E=p.useState({loading:!1,status:"",data:[]}),L=E[0],_=E[1],P=p.useRef(),I=I1(r),R=I1(c),q=p.useCallback(function(){var F;if(!P.current){var D=window,B=D.google,O=R.current,U=(O==null?void 0:O.places)||(B==null||(F=B.maps)==null?void 0:F.places);if(!U){console.error(JN);return}P.current=new U.AutocompleteService,y(!0)}},[R]),V=p.useCallback(function(){_({loading:!1,status:"",data:[]})},[]),z=p.useCallback(function(F){F===void 0&&(F=u);try{sessionStorage.removeItem(F)}catch{}},[u]),Z=p.useCallback(XN(function(F){var D;if(!F){V();return}_(function(O){return nc({},O,{loading:!0})});var B={};try{B=JSON.parse(sessionStorage.getItem(u)||"{}")}catch{}if(a&&(B=Object.keys(B).reduce(function(O,U){return B[U].maxAge-Date.now()>=0&&(O[U]=B[U]),O},{}),B[F])){_({loading:!1,status:"OK",data:B[F].data});return}(D=P.current)==null||D.getPlacePredictions(nc({},I.current,{input:F}),function(O,U){if(_({loading:!1,status:U,data:O||[]}),a&&U==="OK"){B[F]={data:O,maxAge:Date.now()+a*1e3};try{sessionStorage.setItem(u,JSON.stringify(B))}catch{}}})},o),[a,u,V,I]),Q=p.useCallback(function(F,D){D===void 0&&(D=!0),S(F),P.current&&D&&Z(F)},[Z]);return p.useEffect(function(){if(!v)return function(){return null};var F=window,D=F.google;return!R.current&&!(D!=null&&D.maps)&&d?window[d]=q:q(),function(){window[d]&&delete window[d]}},[d,R,q,v]),{ready:C,value:x,suggestions:L,setValue:Q,clearSuggestions:V,clearCache:z,init:q}},eT="💡 use-places-autocomplete: Please provide an address when using getGeocode() with the componentRestrictions.",um=function(t){var n=new window.google.maps.Geocoder;return new Promise(function(r,i){n.geocode(t,function(o,s){s!=="OK"&&i(s),!t.address&&t.componentRestrictions&&(console.error(eT),r(o)),r(o)})})},cm=function(t){var n=t.geometry.location,r=n.lat,i=n.lng;return{lat:r(),lng:i()}};const k1=()=>{};let dm={},sE={},aE=null,lE={mark:k1,measure:k1};try{typeof window<"u"&&(dm=window),typeof document<"u"&&(sE=document),typeof MutationObserver<"u"&&(aE=MutationObserver),typeof performance<"u"&&(lE=performance)}catch{}const{userAgent:P1=""}=dm.navigator||{},ri=dm,tt=sE,M1=aE,Hl=lE;ri.document;const br=!!tt.documentElement&&!!tt.head&&typeof tt.addEventListener=="function"&&typeof tt.createElement=="function",uE=~P1.indexOf("MSIE")||~P1.indexOf("Trident/");var ot="classic",cE="duotone",un="sharp",cn="sharp-duotone",tT=[ot,cE,un,cn],nT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},D1={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},rT=["kit"],iT=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,oT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,sT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},aT={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},lT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},uT={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},cT={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},dT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},dE={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},fT=["solid","regular","light","thin","duotone","brands"],fE=[1,2,3,4,5,6,7,8,9,10],pT=fE.concat([11,12,13,14,15,16,17,18,19,20]),Ts={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},hT=[...Object.keys(uT),...fT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vert
1714ical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ts.GROUP,Ts.SWAP_OPACITY,Ts.PRIMARY,Ts.SECONDARY].concat(fE.map(e=>"".concat(e,"x"))).concat(pT.map(e=>"w-".concat(e))),gT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},mT={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},vT={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},N1={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const gr="___FONT_AWESOME___",Zp=16,pE="fa",hE="svg-inline--fa",Hi="data-fa-i2svg",Xp="data-fa-pseudo-element",yT="data-fa-pseudo-element-pending",fm="data-prefix",pm="data-icon",T1="fontawesome-i2svg",CT="async",bT=["HTML","HEAD","STYLE","SCRIPT"],gE=(()=>{try{return!0}catch{return!1}})(),mE=[ot,un,cn];function tl(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[ot]}})}const vE={...dE};vE[ot]={...dE[ot],...D1.kit,...D1["kit-duotone"]};const Di=tl(vE),Jp={...dT};Jp[ot]={...Jp[ot],...N1.kit,...N1["kit-duotone"]};const Da=tl(Jp),eh={...cT};eh[ot]={...eh[ot],...vT.kit};const Ni=tl(eh),th={...lT};th[ot]={...th[ot],...mT.kit};const wT=tl(th),xT=iT,yE="fa-layers-text",ET=oT,ST={...nT};tl(ST);const _T=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ff=Ts,Vo=new Set;Object.keys(Da[ot]).map(Vo.add.bind(Vo));Object.keys(Da[un]).map(Vo.add.bind(Vo));Object.keys(Da[cn]).map(Vo.add.bind(Vo));const LT=[...rT,...hT],Qs=ri.FontAwesomeConfig||{};function IT(e){var t=tt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function kT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}tt&&typeof tt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=kT(IT(n));i!=null&&(Qs[r]=i)});const CE={styleDefault:"solid",familyDefault:"classic",cssPrefix:pE,replacementClass:hE,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Qs.familyPrefix&&(Qs.cssPrefix=Qs.familyPrefix);const Go={...CE,...Qs};Go.autoReplaceSvg||(Go.observeMutations=!1);const te={};Object.keys(CE).forEach(e=>{Object.defineProperty(te,e,{enumerable:!0,set:function(t){Go[e]=t,Zs.forEach(n=>n(te))},get:function(){return Go[e]}})});Object.defineProperty(te,"familyPrefix",{enumerable:!0,set:function(e){Go.cssPrefix=e,Zs.forEach(t=>t(te))},get:function(){return Go.cssPrefix}});ri.FontAwesomeConfig=te;const Zs=[];function PT(e){return Zs.push(e),()=>{Zs.splice(Zs.indexOf(e),1)}}const Er=Zp,Yn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function MT(e){if(!e||!br)return;const t=tt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=tt.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return tt.head.insertBefore(t,r),e}const DT="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Na(){let e=12,t="";for(;e-- >0;)t+=DT[Math.random()*62|0];return t}function ss(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function hm(e){return e.classList?ss(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function bE(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function NT(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(bE(e[n]),'" '),"").trim()}function Zc(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function gm(e){return e.size!==Yn.size||e.x!==Yn.x||e.y!==Yn.y||e.rotate!==Yn.rotate||e.flipX||e.flipY}function TT(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function RT(e){let{transform:t,width:n=Zp,height:r=Zp,startCentered:i=!1}
vendor: 1,055 bytes, lines 1714-1725
1714=e,o="";return i&&uE?o+="translate(".concat(t.x/Er-n/2,"em, ").concat(t.y/Er-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/Er,"em), calc(-50% + ").concat(t.y/Er,"em)) "):o+="translate(".concat(t.x/Er,"em, ").concat(t.y/Er,"em) "),o+="scale(".concat(t.size/Er*(t.flipX?-1:1),", ").concat(t.size/Er*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var AT=`:root, :host {
1715  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
1716  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
1717  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
1718  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
1719  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
1720  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
1721  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
1722  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
1723  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
1724  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
1725  --fa-font-sharp-duotone-solid: normal 9
vendor: 11,192 bytes, lines 1725-2261
172500 1em/1 "Font Awesome 6 Sharp Duotone";
1726}
1727
1728svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1729  overflow: visible;
1730  box-sizing: content-box;
1731}
1732
1733.svg-inline--fa {
1734  display: var(--fa-display, inline-block);
1735  height: 1em;
1736  overflow: visible;
1737  vertical-align: -0.125em;
1738}
1739.svg-inline--fa.fa-2xs {
1740  vertical-align: 0.1em;
1741}
1742.svg-inline--fa.fa-xs {
1743  vertical-align: 0em;
1744}
1745.svg-inline--fa.fa-sm {
1746  vertical-align: -0.0714285705em;
1747}
1748.svg-inline--fa.fa-lg {
1749  vertical-align: -0.2em;
1750}
1751.svg-inline--fa.fa-xl {
1752  vertical-align: -0.25em;
1753}
1754.svg-inline--fa.fa-2xl {
1755  vertical-align: -0.3125em;
1756}
1757.svg-inline--fa.fa-pull-left {
1758  margin-right: var(--fa-pull-margin, 0.3em);
1759  width: auto;
1760}
1761.svg-inline--fa.fa-pull-right {
1762  margin-left: var(--fa-pull-margin, 0.3em);
1763  width: auto;
1764}
1765.svg-inline--fa.fa-li {
1766  width: var(--fa-li-width, 2em);
1767  top: 0.25em;
1768}
1769.svg-inline--fa.fa-fw {
1770  width: var(--fa-fw-width, 1.25em);
1771}
1772
1773.fa-layers svg.svg-inline--fa {
1774  bottom: 0;
1775  left: 0;
1776  margin: auto;
1777  position: absolute;
1778  right: 0;
1779  top: 0;
1780}
1781
1782.fa-layers-counter, .fa-layers-text {
1783  display: inline-block;
1784  position: absolute;
1785  text-align: center;
1786}
1787
1788.fa-layers {
1789  display: inline-block;
1790  height: 1em;
1791  position: relative;
1792  text-align: center;
1793  vertical-align: -0.125em;
1794  width: 1em;
1795}
1796.fa-layers svg.svg-inline--fa {
1797  transform-origin: center center;
1798}
1799
1800.fa-layers-text {
1801  left: 50%;
1802  top: 50%;
1803  transform: translate(-50%, -50%);
1804  transform-origin: center center;
1805}
1806
1807.fa-layers-counter {
1808  background-color: var(--fa-counter-background-color, #ff253a);
1809  border-radius: var(--fa-counter-border-radius, 1em);
1810  box-sizing: border-box;
1811  color: var(--fa-inverse, #fff);
1812  line-height: var(--fa-counter-line-height, 1);
1813  max-width: var(--fa-counter-max-width, 5em);
1814  min-width: var(--fa-counter-min-width, 1.5em);
1815  overflow: hidden;
1816  padding: var(--fa-counter-padding, 0.25em 0.5em);
1817  right: var(--fa-right, 0);
1818  text-overflow: ellipsis;
1819  top: var(--fa-top, 0);
1820  transform: scale(var(--fa-counter-scale, 0.25));
1821  transform-origin: top right;
1822}
1823
1824.fa-layers-bottom-right {
1825  bottom: var(--fa-bottom, 0);
1826  right: var(--fa-right, 0);
1827  top: auto;
1828  transform: scale(var(--fa-layers-scale, 0.25));
1829  transform-origin: bottom right;
1830}
1831
1832.fa-layers-bottom-left {
1833  bottom: var(--fa-bottom, 0);
1834  left: var(--fa-left, 0);
1835  right: auto;
1836  top: auto;
1837  transform: scale(var(--fa-layers-scale, 0.25));
1838  transform-origin: bottom left;
1839}
1840
1841.fa-layers-top-right {
1842  top: var(--fa-top, 0);
1843  right: var(--fa-right, 0);
1844  transform: scale(var(--fa-layers-scale, 0.25));
1845  transform-origin: top right;
1846}
1847
1848.fa-layers-top-left {
1849  left: var(--fa-left, 0);
1850  right: auto;
1851  top: var(--fa-top, 0);
1852  transform: scale(var(--fa-layers-scale, 0.25));
1853  transform-origin: top left;
1854}
1855
1856.fa-1x {
1857  font-size: 1em;
1858}
1859
1860.fa-2x {
1861  font-size: 2em;
1862}
1863
1864.fa-3x {
1865  font-size: 3em;
1866}
1867
1868.fa-4x {
1869  font-size: 4em;
1870}
1871
1872.fa-5x {
1873  font-size: 5em;
1874}
1875
1876.fa-6x {
1877  font-size: 6em;
1878}
1879
1880.fa-7x {
1881  font-size: 7em;
1882}
1883
1884.fa-8x {
1885  font-size: 8em;
1886}
1887
1888.fa-9x {
1889  font-size: 9em;
1890}
1891
1892.fa-10x {
1893  font-size: 10em;
1894}
1895
1896.fa-2xs {
1897  font-size: 0.625em;
1898  line-height: 0.1em;
1899  vertical-align: 0.225em;
1900}
1901
1902.fa-xs {
1903  font-size: 0.75em;
1904  line-height: 0.0833333337em;
1905  vertical-align: 0.125em;
1906}
1907
1908.fa-sm {
1909  font-size: 0.875em;
1910  line-height: 0.0714285718em;
1911  vertical-align: 0.0535714295em;
1912}
1913
1914.fa-lg {
1915  font-size: 1.25em;
1916  line-height: 0.05em;
1917  vertical-align: -0.075em;
1918}
1919
1920.fa-xl {
1921  font-size: 1.5em;
1922  line-height: 0.0416666682em;
1923  vertical-align: -0.125em;
1924}
1925
1926.fa-2xl {
1927  font-size: 2em;
1928  line-height: 0.03125em;
1929  vertical-align: -0.1875em;
1930}
1931
1932.fa-fw {
1933  text-align: center;
1934  width: 1.25em;
1935}
1936
1937.fa-ul {
1938  list-style-type: none;
1939  margin-left: var(--fa-li-margin, 2.5em);
1940  padding-left: 0;
1941}
1942.fa-ul > li {
1943  position: relative;
1944}
1945
1946.fa-li {
1947  left: calc(-1 * var(--fa-li-width, 2em));
1948  position: absolute;
1949  text-align: center;
1950  width: var(--fa-li-width, 2em);
1951  line-height: inherit;
1952}
1953
1954.fa-border {
1955  border-color: var(--fa-border-color, #eee);
1956  border-radius: var(--fa-border-radius, 0.1em);
1957  border-style: var(--fa-border-style, solid);
1958  border-width: var(--fa-border-width, 0.08em);
1959  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
1960}
1961
1962.fa-pull-left {
1963  float: left;
1964  margin-right: var(--fa-pull-margin, 0.3em);
1965}
1966
1967.fa-pull-right {
1968  float: right;
1969  margin-left: var(--fa-pull-margin, 0.3em);
1970}
1971
1972.fa-beat {
1973  animation-name: fa-beat;
1974  animation-delay: var(--fa-animation-delay, 0s);
1975  animation-direction: var(--fa-animation-direction, normal);
1976  animation-duration: var(--fa-animation-duration, 1s);
1977  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1978  animation-timing-function: var(--fa-animation-timing, ease-in-out);
1979}
1980
1981.fa-bounce {
1982  animation-name: fa-bounce;
1983  animation-delay: var(--fa-animation-delay, 0s);
1984  animation-direction: var(--fa-animation-direction, normal);
1985  animation-duration: var(--fa-animation-duration, 1s);
1986  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1987  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
1988}
1989
1990.fa-fade {
1991  animation-name: fa-fade;
1992  animation-delay: var(--fa-animation-delay, 0s);
1993  animation-direction: var(--fa-animation-direction, normal);
1994  animation-duration: var(--fa-animation-duration, 1s);
1995  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1996  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
1997}
1998
1999.fa-beat-fade {
2000  animation-name: fa-beat-fade;
2001  animation-delay: var(--fa-animation-delay, 0s);
2002  animation-direction: var(--fa-animation-direction, normal);
2003  animation-duration: var(--fa-animation-duration, 1s);
2004  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2005  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
2006}
2007
2008.fa-flip {
2009  animation-name: fa-flip;
2010  animation-delay: var(--fa-animation-delay, 0s);
2011  animation-direction: var(--fa-animation-direction, normal);
2012  animation-duration: var(--fa-animation-duration, 1s);
2013  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2014  animation-timing-function: var(--fa-animation-timing, ease-in-out);
2015}
2016
2017.fa-shake {
2018  animation-name: fa-shake;
2019  animation-delay: var(--fa-animation-delay, 0s);
2020  animation-direction: var(--fa-animation-direction, normal);
2021  animation-duration: var(--fa-animation-duration, 1s);
2022  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2023  animation-timing-function: var(--fa-animation-timing, linear);
2024}
2025
2026.fa-spin {
2027  animation-name: fa-spin;
2028  animation-delay: var(--fa-animation-delay, 0s);
2029  animation-direction: var(--fa-animation-direction, normal);
2030  animation-duration: var(--fa-animation-duration, 2s);
2031  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2032  animation-timing-function: var(--fa-animation-timing, linear);
2033}
2034
2035.fa-spin-reverse {
2036  --fa-animation-direction: reverse;
2037}
2038
2039.fa-pulse,
2040.fa-spin-pulse {
2041  animation-name: fa-spin;
2042  animation-direction: var(--fa-animation-direction, normal);
2043  animation-duration: var(--fa-animation-duration, 1s);
2044  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2045  animation-timing-function: var(--fa-animation-timing, steps(8));
2046}
2047
2048@media (prefers-reduced-motion: reduce) {
2049  .fa-beat,
2050.fa-bounce,
2051.fa-fade,
2052.fa-beat-fade,
2053.fa-flip,
2054.fa-pulse,
2055.fa-shake,
2056.fa-spin,
2057.fa-spin-pulse {
2058    animation-delay: -1ms;
2059    animation-duration: 1ms;
2060    animation-iteration-count: 1;
2061    transition-delay: 0s;
2062    transition-duration: 0s;
2063  }
2064}
2065@keyframes fa-beat {
2066  0%, 90% {
2067    transform: scale(1);
2068  }
2069  45% {
2070    transform: scale(var(--fa-beat-scale, 1.25));
2071  }
2072}
2073@keyframes fa-bounce {
2074  0% {
2075    transform: scale(1, 1) translateY(0);
2076  }
2077  10% {
2078    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
2079  }
2080  30% {
2081    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
2082  }
2083  50% {
2084    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
2085  }
2086  57% {
2087    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
2088  }
2089  64% {
2090    transform: scale(1, 1) translateY(0);
2091  }
2092  100% {
2093    transform: scale(1, 1) translateY(0);
2094  }
2095}
2096@keyframes fa-fade {
2097  50% {
2098    opacity: var(--fa-fade-opacity, 0.4);
2099  }
2100}
2101@keyframes fa-beat-fade {
2102  0%, 100% {
2103    opacity: var(--fa-beat-fade-opacity, 0.4);
2104    transform: scale(1);
2105  }
2106  50% {
2107    opacity: 1;
2108    transform: scale(var(--fa-beat-fade-scale, 1.125));
2109  }
2110}
2111@keyframes fa-flip {
2112  50% {
2113    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
2114  }
2115}
2116@keyframes fa-shake {
2117  0% {
2118    transform: rotate(-15deg);
2119  }
2120  4% {
2121    transform: rotate(15deg);
2122  }
2123  8%, 24% {
2124    transform: rotate(-18deg);
2125  }
2126  12%, 28% {
2127    transform: rotate(18deg);
2128  }
2129  16% {
2130    transform: rotate(-22deg);
2131  }
2132  20% {
2133    transform: rotate(22deg);
2134  }
2135  32% {
2136    transform: rotate(-12deg);
2137  }
2138  36% {
2139    transform: rotate(12deg);
2140  }
2141  40%, 100% {
2142    transform: rotate(0deg);
2143  }
2144}
2145@keyframes fa-spin {
2146  0% {
2147    transform: rotate(0deg);
2148  }
2149  100% {
2150    transform: rotate(360deg);
2151  }
2152}
2153.fa-rotate-90 {
2154  transform: rotate(90deg);
2155}
2156
2157.fa-rotate-180 {
2158  transform: rotate(180deg);
2159}
2160
2161.fa-rotate-270 {
2162  transform: rotate(270deg);
2163}
2164
2165.fa-flip-horizontal {
2166  transform: scale(-1, 1);
2167}
2168
2169.fa-flip-vertical {
2170  transform: scale(1, -1);
2171}
2172
2173.fa-flip-both,
2174.fa-flip-horizontal.fa-flip-vertical {
2175  transform: scale(-1, -1);
2176}
2177
2178.fa-rotate-by {
2179  transform: rotate(var(--fa-rotate-angle, 0));
2180}
2181
2182.fa-stack {
2183  display: inline-block;
2184  vertical-align: middle;
2185  height: 2em;
2186  position: relative;
2187  width: 2.5em;
2188}
2189
2190.fa-stack-1x,
2191.fa-stack-2x {
2192  bottom: 0;
2193  left: 0;
2194  margin: auto;
2195  position: absolute;
2196  right: 0;
2197  top: 0;
2198  z-index: var(--fa-stack-z-index, auto);
2199}
2200
2201.svg-inline--fa.fa-stack-1x {
2202  height: 1em;
2203  width: 1.25em;
2204}
2205.svg-inline--fa.fa-stack-2x {
2206  height: 2em;
2207  width: 2.5em;
2208}
2209
2210.fa-inverse {
2211  color: var(--fa-inverse, #fff);
2212}
2213
2214.sr-only,
2215.fa-sr-only {
2216  position: absolute;
2217  width: 1px;
2218  height: 1px;
2219  padding: 0;
2220  margin: -1px;
2221  overflow: hidden;
2222  clip: rect(0, 0, 0, 0);
2223  white-space: nowrap;
2224  border-width: 0;
2225}
2226
2227.sr-only-focusable:not(:focus),
2228.fa-sr-only-focusable:not(:focus) {
2229  position: absolute;
2230  width: 1px;
2231  height: 1px;
2232  padding: 0;
2233  margin: -1px;
2234  overflow: hidden;
2235  clip: rect(0, 0, 0, 0);
2236  white-space: nowrap;
2237  border-width: 0;
2238}
2239
2240.svg-inline--fa .fa-primary {
2241  fill: var(--fa-primary-color, currentColor);
2242  opacity: var(--fa-primary-opacity, 1);
2243}
2244
2245.svg-inline--fa .fa-secondary {
2246  fill: var(--fa-secondary-color, currentColor);
2247  opacity: var(--fa-secondary-opacity, 0.4);
2248}
2249
2250.svg-inline--fa.fa-swap-opacity .fa-primary {
2251  opacity: var(--fa-secondary-opacity, 0.4);
2252}
2253
2254.svg-inline--fa.fa-swap-opacity .fa-secondary {
2255  opacity: var(--fa-primary-opacity, 1);
2256}
2257
2258.svg-inline--fa mask .fa-primary,
2259.svg-inline--fa mask .fa-secondary {
2260  fill: black;
2261}
2261
2262
2263.fad.fa-inverse,
2264.fa-duotone.fa-inverse {
2265  color: var(--fa-inverse, #fff);
2266}`;function wE(){const e=pE,t=hE,n=te.cssPrefix,r=te.replacementClass;let i=AT;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}let R1=!1;function pf(){te.autoAddCss&&!R1&&(MT(wE()),R1=!0)}var OT={mixout(){return{dom:{css:wE,insertCss:pf}}},hooks(){return{beforeDOMElementCreation(){pf()},beforeI2svg(){pf()}}}};const mr=ri||{};mr[gr]||(mr[gr]={});mr[gr].styles||(mr[gr].styles={});mr[gr].hooks||(mr[gr].hooks={});mr[gr].shims||(mr[gr].shims=[]);var Kn=mr[gr];const xE=[],EE=function(){tt.removeEventListener("DOMContentLoaded",EE),rc=1,xE.map(e=>e())};let rc=!1;br&&(rc=(tt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(tt.readyState),rc||tt.addEventListener("DOMContentLoaded",EE));function FT(e){br&&(rc?setTimeout(e,0):xE.push(e))}function nl(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?bE(e):"<".concat(t," ").concat(NT(n),">").concat(r.map(nl).join(""),"</").concat(t,">")}function A1(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var hf=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=n,l,u,c;for(r===void 0?(l=1,c=t[o[0]]):(l=0,c=r);l<s;l++)u=o[l],c=a(c,t[u],u,t);return c};function BT(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function nh(e){const t=BT(e);return t.length===1?t[0].toString(16):null}function jT(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function O1(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function rh(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=O1(t);typeof Kn.hooks.addPack=="function"&&!r?Kn.hooks.addPack(e,O1(t)):Kn.styles[e]={...Kn.styles[e]||{},...i},e==="fas"&&rh("fa",t)}const{styles:wi,shims:zT}=Kn,UT={[ot]:Object.values(Ni[ot]),[un]:Object.values(Ni[un]),[cn]:Object.values(Ni[cn])};let mm=null,SE={},_E={},LE={},IE={},kE={};const $T={[ot]:Object.keys(Di[ot]),[un]:Object.keys(Di[un]),[cn]:Object.keys(Di[cn])};function WT(e){return~LT.indexOf(e)}function HT(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!WT(i)?i:null}const PE=()=>{const e=r=>hf(wi,(i,o,s)=>(i[s]=hf(o,r,{}),i),{});
2266SE=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=o}),r)),_E=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=o}),r)),kE=e((r,i,o)=>{const s=i[2];return r[o]=o,s.forEach(a=>{r[a]=o}),r});const t="far"in wi||te.autoFetchSvg,n=hf(zT,(r,i)=>{const o=i[0];let s=i[1];const a=i[2];return s==="far"&&!t&&(s="fas"),typeof o=="string"&&(r.names[o]={prefix:s,iconName:a}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});LE=n.names,IE=n.unicodes,mm=Xc(te.styleDefault,{family:te.familyDefault})};PT(e=>{mm=Xc(e.styleDefault,{family:te.familyDefault})});PE();function vm(e,t){return(SE[e]||{})[t]}function VT(e,t){return(_E[e]||{})[t]}function Ar(e,t){return(kE[e]||{})[t]}function ME(e){return LE[e]||{prefix:null,iconName:null}}function GT(e){const t=IE[e],n=vm("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ii(){return mm}const ym=()=>({prefix:null,iconName:null,rest:[]}
2266);function Xc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=ot}=t,r=Di[n][e],i=Da[n][e]||Da[n][r],o=e in Kn.styles?e:null;return i||o||null}const qT={[ot]:Object.keys(Ni[ot]),[un]:Object.keys(Ni[un]),[cn]:Object.keys(Ni[cn])};function Jc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[ot]:"".concat(te.cssPrefix,"-").concat(ot),[un]:"".concat(te.cssPrefix,"-").concat(un),[cn]:"".concat(te.cssPrefix,"-").concat(cn)};let i=null,o=ot;const s=tT.filter(l=>l!==cE);s.forEach(l=>{(e.includes(r[l])||e.some(u=>qT[l].includes(u)))&&(o=l)});const a=e.reduce((l,u)=>{const c=HT(te.cssPrefix,u);if(wi[u]?(u=UT[o].includes(u)?wT[o][u]:u,i=u,l.prefix=u):$T[o].indexOf(u)>-1?(i=u,l.prefix=Xc(u,{family:o})):c?l.iconName=c:u!==te.replacementClass&&!s.some(d=>u===r[d])&&l.rest.push(u),!n&&l.prefix&&l.iconName){const d=i==="fa"?ME(l.iconName):{},f=Ar(l.prefix,l.iconName);d.prefix&&(i=null),l.iconName=d.iconName||f||l.iconName,l.prefix=d.prefix||l.prefix,l.prefix==="far"&&!wi.far&&wi.fas&&!te.autoFetchSvg&&(l.prefix="fas")}return l},ym());return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),!a.prefix&&o===un&&(wi.fass||te.autoFetchSvg)&&(a.prefix="fass",a.iconName=Ar(a.prefix,a.iconName)||a.iconName),!a.prefix&&o===cn&&(wi.fasds||te.autoFetchSvg)&&(a.prefix="fasds",a.iconName=Ar(a.prefix,a.iconName)||a.iconName),(a.prefix==="fa"||i==="fa")&&(a.prefix=ii()||"fas"),a}class YT{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});
2266Object.keys(i).forEach(o=>{this.definitions[o]={...this.definitions[o]||{},...i[o]},rh(o,i[o]);const s=Ni[ot][o];s&&rh(s,i[o]),PE()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:s,icon:a}=r[i],l=a[2];t[o]||(t[o]={}),l.length>0&&l.forEach(u=>{typeof u=="string"&&(t[o][u]=a)}),t[o][s]=a}),t}}let F1=[],yo={};const Mo={},KT=Object.keys(Mo);function QT(e,t){let{mixoutsTo:n}=t;return F1=e,yo={},Object.keys(Mo).forEach(r=>{KT.indexOf(r)===-1&&delete Mo[r]}),F1.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(s=>{n[o]||(n[o]={}),n[o][s]=i[o][s]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(s=>{yo[s]||(yo[s]=[]),yo[s].push(o[s])})}r.provides&&r.provides(Mo)}),n}function ih(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(yo[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function Vi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(yo[e]||[]).forEach(o=>{o.apply(null,n)})}function oi(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Mo[e]?Mo[e].apply(null,t):void 0}function oh(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||ii();if(t)return t=Ar(n,t)||t,A1(DE.definitions,n,t)||A1(Kn.styles,n,t)}const DE=new YT,ZT=()=>{te.autoReplaceSvg=!1,te.observeMutations=!1,Vi("noAuto")},XT={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return br?(Vi("beforeI2svg",e),oi("pseudoElements2svg",e),oi("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;te.autoReplaceSvg===!1&&(te.autoReplaceSvg=!0),te.observeMutations=!0,FT(()=>{eR({autoReplaceSvgRoot:t}),Vi("watch",e)})}},JT={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ar(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Xc(e[0]);return{prefix:n,iconName:Ar(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(te.cssPrefix,"-"))>-1||e.match(xT))){const t=Jc(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||ii(),iconName:Ar(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=ii();return{prefix:t,iconName:Ar(t,e)||e}}}},mn={noAuto:ZT,config:te,dom:XT,parse:JT,library:DE,findIconDefinition:oh,toHtml:nl},eR=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=tt}=e;(Object.keys(Kn.styles).length>0||te.autoFetchSvg)&&br&&te.autoReplaceSvg&&mn.dom.i2svg({node:t})};function ed(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>nl(n))}}),Object.defineProperty(e,"node",{get:function(){if(!br)return;const n=tt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function tR(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:s}=e;if(gm(s)&&n.found&&!r.found){const{width:a,height:l}=n,u={x:a/l/2,y:.5};i.style=Zc({...o,"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}function nR(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const s=o===!0?"".concat(t,"-").concat(te.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:s},children:r}]}]}function Cm(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:s,title:a,maskId:l,titleId:u,extra:c,watchable:d=!1}=e,{width:f,height:h}=n.found?n:t,g=r==="fak",v=[te.replacementClass,i?"".concat(te.cssPrefix,"-").concat(i):""].filter(S=>c.classes.indexOf(S)===-1).filter(S=>S!==""||!!S).concat(c.classes).join(" ");let w={children:[],attributes:{...c.attributes,"data-prefix":r,"data-icon":i,class:v,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(h)}};const C=g&&!~c.classes.indexOf("fa-fw")?{width:"".concat(f/h*16*.0625,"em")}:{};d&&(w.attributes[Hi]=""),a&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||Na())},children:[a]}),delete w.attributes.title);const y={...w,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:s,styles:{...C,...c.styles}},{children:b,attributes:x}=n.found&&t.found?oi("generateAbstractMask",y)||{children:[],attributes:{}}:oi("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=b,y.attributes=x,s?nR(y):tR(y)}function B1(e){const{content:t,width:n,height:r,transform:i,title:o,extra:s,watchable:a=!1}=e,l={...s.attributes,...o?{title:o}:{},class:s.classes.join(" ")};a&&(l[Hi]="");const u={...s.styles};gm(i)&&(u.transform=RT({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const c=Zc(u);c.length>0&&(l.style=c);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}function rR(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=Zc(r.styles);o.length>0&&(i.style=o);const s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:gf}=Kn;function sh(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(te.cssPrefix,"-").concat(ff.GROUP)},children:[{tag:"path",attributes:{class:"".concat(te.cssPrefix,"-").concat(ff.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(te.cssPrefix,"-").concat(ff.PRIMARY),fill:"currentColor",d:r[1]}}]}
2266:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const iR={found:!1,width:512,height:512};function oR(e,t){!gE&&!te.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function ah(e,t){let n=t;return t==="fa"&&te.styleDefault!==null&&(t=ii()),new Promise((r,i)=>{if(n==="fa"){const o=ME(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&gf[t]&&gf[t][e]){const o=gf[t][e];return r(sh(o))}oR(e,t),r({...iR,icon:te.showMissingIcons&&e?oi("missingIconAbstract")||{}:{}})})}const j1=()=>{},lh=te.measurePerformance&&Hl&&Hl.mark&&Hl.measure?Hl:{mark:j1,measure:j1},Rs='FA "6.6.0"',sR=e=>(lh.mark("".concat(Rs," ").concat(e," begins")),()=>NE(e)),NE=e=>{lh.mark("".concat(Rs," ").concat(e," ends")),lh.measure("".concat(Rs," ").concat(e),"".concat(Rs," ").concat(e," begins"),"".concat(Rs," ").concat(e," ends"))};var bm={begin:sR,end:NE};const uu=()=>{};function z1(e){return typeof(e.getAttribute?e.getAttribute(Hi):null)=="string"}function aR(e){const t=e.getAttribute?e.getAttribute(fm):null,n=e.getAttribute?e.getAttribute(pm):null;return t&&n}function lR(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(te.replacementClass)}function uR(){return te.autoReplaceSvg===!0?cu.replace:cu[te.autoReplaceSvg]||cu.replace}function cR(e){return tt.createElementNS("http://www.w3.org/2000/svg",e)}function dR(e){return tt.createElement(e)}function TE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?cR:dR}=t;if(typeof e=="string")return tt.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(TE(o,{ceFn:n}))}),r}function fR(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const cu={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(TE(n),t)}),t.getAttribute(Hi)===null&&te.keepOriginalSource){let n=tt.createComment(fR(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~hm(t).indexOf(te.replacementClass))return cu.replace(e);const r=new RegExp("".concat(te.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((s,a)=>(a===te.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>nl(o)).join(`
2267`);t.setAttribute(Hi,""),t.innerHTML=i}};function U1(e){e()}function RE(e,t){const n=typeof t=="function"?t:uu;if(e.length===0)n();else{let r=U1;te.mutateApproach===CT&&(r=ri.requestAnimationFrame||U1),r(()=>{const i=uR(),o=bm.begin("mutate");e.map(i),o(),n()})}}let wm=!1;function AE(){wm=!0}function uh(){wm=!1}let ic=null;function $1(e){if(!M1||!te.observeMutations)return;const{treeCallback:t=uu,nodeCallback:n=uu,pseudoElementsCallback:r=uu,observeMutationsRoot:i=tt}=e;ic=new M1(o=>{if(wm)return;const s=ii();ss(o).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!z1(a.addedNodes[0])&&(te.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&te.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&z1(a.target)&&~_T.indexOf(a.attributeName))if(a.attributeName==="class"&&aR(a.target)){const{prefix:l,iconName:u}=Jc(hm(a.target));a.target.setAttribute(fm,l||s),u&&a.target.setAttribute(pm,u)}else lR(a.target)&&n(a.target)})}),br&&ic.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function pR(){ic&&ic.disconnect()}function hR(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function gR(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=Jc(hm(e));return i.prefix||(i.prefix=ii()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=VT(i.prefix,e.innerText)||vm(i.prefix,nh(e.innerText))),!i.iconName&&te.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function mR(e){const t=ss(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return te.autoA11y&&(n?t["aria-labelledby"]="".concat(te.replacementClass,"-title-").concat(r||Na()):(t["aria-hidden"]="true",t.focusable="false")),t}function vR(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Yn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function W1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=gR(e),o=mR(e),s=ih("parseNodeAttributes",{},e);let a=t.styleParser?hR(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Yn,mask:{iconName:null,prefix:null,rest:[]}
2267,maskId:null,symbol:!1,extra:{classes:i,styles:a,attributes:o},...s}}const{styles:yR}=Kn;function OE(e){const t=te.autoReplaceSvg==="nest"?W1(e,{styleParser:!1}):W1(e);return~t.extra.classes.indexOf(yE)?oi("generateLayersText",e,t):oi("generateSvgReplacementMutation",e,t)}let Xn=new Set;mE.map(e=>{Xn.add("fa-".concat(e))});Object.keys(Di[ot]).map(Xn.add.bind(Xn));Object.keys(Di[un]).map(Xn.add.bind(Xn));Object.keys(Di[cn]).map(Xn.add.bind(Xn));Xn=[...Xn];function H1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!br)return Promise.resolve();const n=tt.documentElement.classList,r=c=>n.add("".concat(T1,"-").concat(c)),i=c=>n.remove("".concat(T1,"-").concat(c)),o=te.autoFetchSvg?Xn:mE.map(c=>"fa-".concat(c)).concat(Object.keys(yR));o.includes("fa")||o.push("fa");const s=[".".concat(yE,":not([").concat(Hi,"])")].concat(o.map(c=>".".concat(c,":not([").concat(Hi,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=ss(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();const l=bm.begin("onTree"),u=a.reduce((c,d)=>{try{const f=OE(d);f&&c.push(f)}catch(f){gE||f.name==="MissingIcon"&&console.error(f)}return c},[]);return new Promise((c,d)=>{Promise.all(u).then(f=>{RE(f,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),c()})}).catch(f=>{l(),d(f)})})}function CR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;OE(e).then(n=>{n&&RE([n],t)})}function bR(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:oh(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:oh(i||{})),e(r,{...n,mask:i})}}const wR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Yn,symbol:r=!1,mask:i=null,maskId:o=null,title:s=null,titleId:a=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:h}=e;return ed({type:"icon",...e},()=>(Vi("beforeDOMElementCreation",{iconDefinition:e,params:t}),te.autoA11y&&(s?u["aria-labelledby"]="".concat(te.replacementClass,"-title-").concat(a||Na()):(u["aria-hidden"]="true",u.focusable="false")),Cm({icons:{main:sh(h),mask:i?sh(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:{...Yn,...n},symbol:r,title:s,maskId:o,titleId:a,extra:{attributes:u,styles:c,classes:l}})))};var xR={mixout(){return{icon:bR(wR)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=H1,e.nodeCallback=CR,e}}},provides(e){e.i2svg=function(t){const{node:n=tt,callback:r=()=>{}}=t;return H1(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:s,transform:a,symbol:l,mask:u,maskId:c,extra:d}=n;return new Promise((f,h)=>{Promise.all([ah(r,s),u.iconName?ah(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[v,w]=g;f([t,Cm({icons:{main:v,mask:w},prefix:s,iconName:r,transform:a,symbol:l,maskId:c,title:i,titleId:o,extra:d,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:s}=t;const a=Zc(s);a.length>0&&(r.style=a);let l;return gm(o)&&(l=oi("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:r}}}},ER={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ed({type:"layer"},()=>{Vi("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(te.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},SR={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return ed({type:"counter",content:e},()=>(Vi("beforeDOMElementCreation",{content:e,params:t}),rR({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(te.cssPrefix,"-layers-counter"),...r]}})))}}}},_R={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Yn,title:r=null,classes:i=[],attributes:o={},styles:s={}}=t;return ed({type:"text",content:e},()=>(Vi("beforeDOMElementCreation",{content:e,params:t}),B1({content:e,transform:{...Yn,...n},title:r,extra:{attributes:o,styles:s,classes:["".concat(te.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let s=null,a=null;if(uE){const l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();s=u.width/l,a=u.height/l}return te.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,B1({content:t.innerHTML,width:s,height:a,transform:i,title:r,extra:o,watchable:!0})])}}};const LR=new RegExp('"',"ug"),V1=[1105920,1112319],G1={FontAwesome:{normal:"fas",400:"fas"},...aT,...sT,...gT},ch=Object.keys(G1).reduce((e,t)=>
2267(e[t.toLowerCase()]=G1[t],e),{}),IR=Object.keys(ch).reduce((e,t)=>{const n=ch[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function kR(e){const t=e.replace(LR,""),n=jT(t,0),r=n>=V1[0]&&n<=V1[1],i=t.length===2?t[0]===t[1]:!1;return{value:nh(i?t[0]:t),isSecondary:r||i}}function PR(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(ch[n]||{})[i]||IR[n]}function q1(e,t){const n="".concat(yT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const s=ss(e.children).filter(f=>f.getAttribute(Xp)===t)[0],a=ri.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),u=l.match(ET),c=a.getPropertyValue("font-weight"),d=a.getPropertyValue("content");if(s&&!u)return e.removeChild(s),r();if(u&&d!=="none"&&d!==""){const f=a.getPropertyValue("content");let h=PR(l,c);const{value:g,isSecondary:v}=kR(f),w=u[0].startsWith("FontAwesome");let C=vm(h,g),y=C;if(w){const b=GT(g);b.iconName&&b.prefix&&(C=b.iconName,h=b.prefix)}if(C&&!v&&(!s||s.getAttribute(fm)!==h||s.getAttribute(pm)!==y)){e.setAttribute(n,y),s&&e.removeChild(s);const b=vR(),{extra:x}=b;x.attributes[Xp]=t,ah(C,h).then(S=>{const E=Cm({...b,icons:{main:S,mask:ym()},prefix:h,iconName:y,extra:x,watchable:!0}),L=tt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(L,e.firstChild):e.appendChild(L),L.outerHTML=E.map(_=>nl(_)).join(`
2268`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function MR(e){return Promise.all([q1(e,"::before"),q1(e,"::after")])}function DR(e){return e.parentNode!==document.head&&!~bT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Xp)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Y1(e){if(br)return new Promise((t,n)=>{const r=ss(e.querySelectorAll("*")).filter(DR).map(MR),i=bm.begin("searchPseudoElements");AE(),Promise.all(r).then(()=>{i(),uh(),t()}).catch(()=>{i(),uh(),n()})})}var NR={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Y1,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=tt}=t;te.searchPseudoElements&&Y1(n)}}};let K1=!1;var TR={mixout(){return{dom:{unwatch(){AE(),K1=!0}}}},hooks(){return{bootstrap(){$1(ih("mutationObserverCallbacks",{}))},noAuto(){pR()},watch(e){const{observeMutationsRoot:t}=e;K1?uh():$1(ih("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Q1=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let s=i.slice(1).join("-");if(o&&s==="h")return n.flipX=!0,n;if(o&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(o){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var RR={mixout(){return{parse:{transform:e=>Q1(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Q1(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const s={transform:"translate(".concat(i/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(a," ").concat(l," ").concat(u)},d={transform:"translate(".concat(o/2*-1," -256)")},f={outer:s,inner:c,path:d};return{tag:"g",attributes:{...f.outer},children:[{tag:"g",attributes:{...f.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...f.path}}]}]}}}};const mf={x:0,y:0,width:"100%",height:"100%"};function Z1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function AR(e){return e.tag==="g"?e.children:[e]}var OR={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Jc(n.split(" ").map(i=>i.trim())):ym();return r.prefix||(r.prefix=ii()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:s,transform:a}=t;const{width:l,icon:u}=i,{width:c,icon:d}
2268=o,f=TT({transform:a,containerWidth:c,iconWidth:l}),h={tag:"rect",attributes:{...mf,fill:"white"}},g=u.children?{children:u.children.map(Z1)}:{},v={tag:"g",attributes:{...f.inner},children:[Z1({tag:u.tag,attributes:{...u.attributes,...f.path},...g})]},w={tag:"g",attributes:{...f.outer},children:[v]},C="mask-".concat(s||Na()),y="clip-".concat(s||Na()),b={tag:"mask",attributes:{...mf,id:C,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[h,w]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:AR(d)},b]};return n.push(x,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(C,")"),...mf}}),{children:n,attributes:r}}}},FR={provides(e){let t=!1;ri.matchMedia&&(t=ri.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const o={...i,attributeName:"opacity"},s={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||s.children.push({tag:"animate",attributes:{...i,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),n.push(s),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...o,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...o,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},BR={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},jR=[OT,xR,ER,SR,_R,NR,TR,RR,OR,FR,BR];QT(jR,{mixoutsTo:mn});mn.noAuto;mn.config;mn.library;mn.dom;const dh=mn.parse;mn.findIconDefinition;mn.toHtml;const zR=mn.icon;mn.layer;mn.text;mn.counter;var FE={exports:{}},UR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$R=UR,WR=$R;function BE(){}function jE(){}jE.resetWarningCache=BE;var HR=function(){function e(r,i,o,s,a,l){if(l!==WR){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}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2268:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:jE,resetWarningCache:BE};return n.PropTypes=n,n};FE.exports=HR();var VR=FE.exports;const _e=bc(VR);function X1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X1(Object(n),!0).forEach(function(r){Co(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function Co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function qR(e,t){if(e==null)return{};var n=GR(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fh(e){return YR(e)||KR(e)||QR(e)||ZR()}function YR(e){if(Array.isArray(e))return ph(e)}function KR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QR(e,t){if(e){if(typeof e=="string")return ph(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ph(e,t)}}function ph(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2269In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XR(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,s=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,d=e.pulse,f=e.fixedWidth,h=e.inverse,g=e.border,v=e.listItem,w=e.flip,C=e.size,y=e.rotation,b=e.pull,x=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":f,"fa-inverse":h,"fa-border":g,"fa-li":v,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Co(t,"fa-".concat(C),typeof C<"u"&&C!==null),Co(t,"fa-rotate-".concat(y),typeof y<"u"&&y!==null&&y!==0),Co(t,"fa-pull-".concat(b),typeof b<"u"&&b!==null),Co(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map(function(S){return x[S]?S:null}).filter(function(S){return S})}function JR(e){return e=e-0,e===e}function zE(e){return JR(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var eA=["style"];function tA(e){return e.charAt(0).toUpperCase()+e.slice(1)}function nA(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=zE(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[tA(i)]=o:t[i]=o,t},{})}function UE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return UE(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var c=t.attributes[u];switch(u){case"class":l.attrs.className=c,delete t.attributes.class;break;case"style":l.attrs.style=nA(c);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=c:l.attrs[zE(u)]=c}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=qR(n,eA);return i.attrs.style=Gn(Gn({},i.attrs.style),s),e.apply(void 0,[t.tag,Gn(Gn({},i.attrs),a)].concat(fh(r)))}var $E=!1;try{$E=!0}catch{}function rA(){if(!$E&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function J1(e){if(e&&oc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(dh.icon)return dh.icon(e);if(e===null)return null;if(e&&oc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function vf(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Co({},e,t):{}}var eC={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},K=de.forwardRef(function(e,t){var n=Gn(Gn({},eC),e),r=n.icon,i=n.mask,o=n.symbol,s=n.className,a=n.title,l=n.titleId,u=n.maskId,c=J1(r),d=vf("classes",[].concat(fh(XR(n)),fh((s||"").split(" ")))),f=vf("transform",typeof n.transform=="string"?dh.transform(n.transform):n.transform),h=vf("mask",J1(i)),g=zR(c,Gn(Gn(Gn(Gn({},d),f),h),{},{symbol:o,title:a,titleId:l,maskId:u}));if(!g)return rA("Could not find icon",c),null;var v=g.abstract,w={ref:t};
2269return Object.keys(n).forEach(function(C){eC.hasOwnProperty(C)||(w[C]=n[C])}),iA(v[0],w)});K.displayName="FontAwesomeIcon";K.propTypes={beat:_e.bool,border:_e.bool,beatFade:_e.bool,bounce:_e.bool,className:_e.string,fade:_e.bool,flash:_e.bool,mask:_e.oneOfType([_e.object,_e.array,_e.string]),maskId:_e.string,fixedWidth:_e.bool,inverse:_e.bool,flip:_e.oneOf([!0,!1,"horizontal","vertical","both"]),icon:_e.oneOfType([_e.object,_e.array,_e.string]),listItem:_e.bool,pull:_e.oneOf(["right","left"]),pulse:_e.bool,rotation:_e.oneOf([0,90,180,270]),shake:_e.bool,size:_e.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:_e.bool,spinPulse:_e.bool,spinReverse:_e.bool,symbol:_e.oneOfType([_e.bool,_e.string]),title:_e.string,titleId:_e.string,transform:_e.oneOfType([_e.string,_e.object]),swapOpacity:_e.bool};var iA=UE.bind(null,de.createElement);const oA={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},WE=oA,sA={prefix:"fas",iconName:"compass",icon:[512,512,[129517],"f14e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},aA={prefix:"fas",iconName:"tree",icon:[448,512,[127794],"f1bb","M210.6 5.9L62 169.4c-3.9 4.2-6 9.8-6 15.5C56 197.7 66.3 208 79.1 208l24.9 0L30.6 281.4c-4.2 4.2-6.6 10-6.6 16C24 309.9 34.1 320 46.6 320L80 320 5.4 409.5C1.9 413.7 0 419 0 424.5c0 13 10.5 23.5 23.5 23.5L192 448l0 32c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32 168.5 0c13 0 23.5-10.5 23.5-23.5c0-5.5-1.9-10.8-5.4-15L368 320l33.4 0c12.5 0 22.6-10.1 22.6-22.6c0-6-2.4-11.8-6.6-16L344 208l24.9 0c12.7 0 23.1-10.3 23.1-23.1c0-5.7-2.1-11.3-6-15.5L237.4 5.9C234 2.1 229.1 0 224 0s-10 2.1-13.4 5.9z"]},lA={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},HE=lA,uA={prefix:"fas",iconName:"money-bill",icon:[576,512,[],"f0d6","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm64 320l-64 0 0-64c35.3 0 64 28.7 64 64zM64 192l0-64 64 0c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64l0 64-64 0zm64-192c-35.3 0-64-28.7-64-64l64 0 0 64zM288 160a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},qo={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},cA={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},xm={prefix:"fas",iconName:"mug-hot",icon:[512,512,[9749],"f7b6","M88 0C74.7 0 64 10.7 64 24c0 38.9 23.4 59.4 39.1 73.1l1.1 1C120.5 112.3 128 119.9 128 136c0 13.3 10.7 24 24 24s24-10.7 24-24c0-38.9-23.4-59.4-39.1-73.1l-1.1-1C119.5 47.7 112 40.1 112 24c0-13.3-10.7-24-24-24zM32 192c-17.7 0-32 14.3-32 32L0 416c0 53 43 96 96 96l192 0c53 0 96-43 96-96l16 0c61.9 0 112-50.1 112-112s-50.1-112-112-112l-48 0L32 192zm352 64l16 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-16 0 0-96zM224 24c0-13.3-10.7-24-24-24s-24 10.7-24 24c0 38.9 23.4 59.4 39.1 73.1l1.1 1C232.5 112.3 240 119.9 240 136c0 13.3 10.7 24 24 24s24-10.7 24-24c0-38.9-23.4-59.4-39.1-73.1l-1.1-1C231.5 47.7 224 40.1 224 24z"]}
vendor: 5,239 bytes, line 2269
2269,dA={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},xi=dA,Em={prefix:"fas",iconName:"leaf",icon:[512,512,[],"f06c","M272 96c-78.6 0-145.1 51.5-167.7 122.5c33.6-17 71.5-26.5 111.7-26.5l88 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-16 0-72 0s0 0 0 0c-16.6 0-32.7 1.9-48.3 5.4c-25.9 5.9-49.9 16.4-71.4 30.7c0 0 0 0 0 0C38.3 298.8 0 364.9 0 440l0 16c0 13.3 10.7 24 24 24s24-10.7 24-24l0-16c0-48.7 20.7-92.5 53.8-123.2C121.6 392.3 190.3 448 272 448l1 0c132.1-.7 239-130.9 239-291.4c0-42.6-7.5-83.1-21.1-119.6c-2.6-6.9-12.7-6.6-16.2-.1C455.9 72.1 418.7 96 376 96L272 96z"]},VE={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},Sm={prefix:"fas",iconName:"martini-glass-citrus",icon:[576,512,["cocktail"],"f561","M432 240c53 0 96-43 96-96s-43-96-96-96c-35.5 0-66.6 19.3-83.2 48l-52.6 0C316 40.1 369.3 0 432 0c79.5 0 144 64.5 144 144s-64.5 144-144 144c-27.7 0-53.5-7.8-75.5-21.3l35.4-35.4c12.2 5.6 25.8 8.7 40.1 8.7zM1.8 142.8C5.5 133.8 14.3 128 24 128l368 0c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-177 177L232 464l64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0-88 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-118.1L7 169c-6.9-6.9-8.9-17.2-5.2-26.2z"]},_m={prefix:"fas",iconName:"square-parking",icon:[448,512,[127359,"parking"],"f540","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM192 256l48 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-48 0 0 64zm48 64l-48 0 0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64 0-120c0-22.1 17.9-40 40-40l72 0c53 0 96 43 96 96s-43 96-96 96z"]},fA={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M386.3 160L336 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3s163.8-62.5 226.3 0L386.3 160z"]},pA=fA,GE={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},hA={prefix:"fas",iconName:"mountain",icon:[512,512,[127956],"f6fc","M256 32c12.5 0 24.1 6.4 30.8 17L503.4 394.4c5.6 8.9 8.6 19.2 8.6 29.7c0 30.9-25 55.9-55.9 55.9L55.9 480C25 480 0 455 0 424.1c0-10.5 3-20.8 8.6-29.7L225.2 49c6.6-10.6 18.3-17 30.8-17zm65 192L256 120.4 176.9 246.5l18.3 24.4c6.4 8.5 19.2 8.5 25.6 0l25.6-34.1c6-8.1 15.5-12.8 25.6-12.8l49 0z"]},gA={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},yf=gA,sc={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},Lm={prefix:"fas",iconName:"cart-shopping",icon:[576,512,[128722,"shopping-cart"],"f07a","M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},qE={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]},Jn={prefix:"fas",iconName:"map-pin",icon:[320,512,[128205],"f276","M16 144a144 144 0 1 1 288 0A144 144 0 1 1 16 144zM160 80c8.8 0 16-7.2 16-16s-7.2-16-16-16c-53 0-96 43-96 96c0 8.8 7.2 16 16 16s16-
22697.2 16-16c0-35.3 28.7-64 64-64zM128 480l0-162.9c10.4 1.9 21.1 2.9 32 2.9s21.6-1 32-2.9L192 480c0 17.7-14.3 32-32 32s-32-14.3-32-32z"]},td={prefix:"fas",iconName:"person-hiking",icon:[384,512,["hiking"],"f6ec","M192 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm51.3 182.7L224.2 307l49.7 49.7c9 9 14.1 21.2 14.1 33.9l0 89.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7-73.9-73.9c-15.8-15.8-22.2-38.6-16.9-60.3l20.4-84c8.3-34.1 42.7-54.9 76.7-46.4c19 4.8 35.6 16.4 46.4 32.7L305.1 208l30.9 0 0-24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 55.8c0 .1 0 .2 0 .2s0 .2 0 .2L384 488c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-216-39.4 0c-16 0-31-8-39.9-21.4l-13.3-20zM81.1 471.9L117.3 334c3 4.2 6.4 8.2 10.1 11.9l41.9 41.9L142.9 488.1c-4.5 17.1-22 27.3-39.1 22.8s-27.3-22-22.8-39.1zm55.5-346L101.4 266.5c-3 12.1-14.9 19.9-27.2 17.9l-47.9-8c-14-2.3-22.9-16.3-19.2-30L31.9 155c9.5-34.8 41.1-59 77.2-59l4.2 0c15.6 0 27.1 14.7 23.3 29.8z"]},nd={prefix:"fas",iconName:"utensils",icon:[448,512,[127860,61685,"cutlery"],"f2e7","M416 0C400 0 288 32 288 176l0 112c0 35.3 28.7 64 64 64l32 0 0 128c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 0-112 0-208c0-17.7-14.3-32-32-32zM64 16C64 7.8 57.9 1 49.7 .1S34.2 4.6 32.4 12.5L2.1 148.8C.7 155.1 0 161.5 0 167.9c0 45.9 35.1 83.6 80 87.7L80 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224.4c44.9-4.1 80-41.8 80-87.7c0-6.4-.7-12.8-2.1-19.1L191.6 12.5c-1.8-8-9.3-13.3-17.4-12.4S160 7.8 160 16l0 134.2c0 5.4-4.4 9.8-9.8 9.8c-5.1 0-9.3-3.9-9.8-9L127.9 14.6C127.2 6.3 120.3 0 112 0s-15.2 6.3-15.9 14.6L83.7 151c-.5 5.1-4.7 9-9.8 9c-5.4 0-9.8-4.4-9.8-9.8L64 16zm48.3 152l-.3 0-.3 0 .3-.7 .3 .7z"]},mA={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},YE=mA,ac={prefix:"fas",iconName:"car",icon:[512,512,[128664,"automobile"],"f1b9","M135.2 117.4L109.1 192l293.8 0-26.1-74.6C372.3 104.6 360.2 96 346.6 96L165.4 96c-13.6 0-25.7 8.6-30.2 21.4zM39.6 196.8L74.8 96.3C88.3 57.8 124.6 32 165.4 32l181.2 0c40.8 0 77.1 25.8 90.6 64.3l35.2 100.5c23.2 9.6 39.6 32.5 39.6 59.2l0 144 0 48c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-48L96 400l0 48c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-48L0 256c0-26.7 16.4-49.6 39.6-59.2zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},rd={prefix:"fas",iconName:"bed",icon:[640,512,[128716],"f236","M32 32c17.7 0 32 14.3 32 32l0 256 224 0 0-160c0-17.7 14.3-32 32-32l224 0c53 0 96 43 96 96l0 224c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32-224 0-32 0L64 416l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32L0 64C0 46.3 14.3 32 32 32zm144 96a80 80 0 1 1 0 160 80 80 0 1 1 0-160z"]},vA={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Ti=vA,yA={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},CA={prefix:"fas",iconName:"list-check",icon:[512,512,["tasks"],"f0ae","M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113C-2.3 103.6-2.3 88.4 7 79s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]}
vendor: 4,637 bytes, line 2269
2269,bA=CA,hh={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"]},si={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},wA={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},xA={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Yr=xA,rl={prefix:"fas",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},EA=rl,Im={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},id={prefix:"fas",iconName:"plane",icon:[576,512,[],"f072","M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.2-15.4-20.4l49-171.6L112 320 68.8 377.6c-3 4-7.8 6.4-12.8 6.4l-42 0c-7.8 0-14-6.3-14-14c0-1.3 .2-2.6 .5-3.9L32 256 .5 145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.8 6.3-14 14-14l42 0c5 0 9.8 2.4 12.8 6.4L112 192l102.9 0-49-171.6C162.9 10.2 170.6 0 181.2 0l56.2 0c11.5 0 22.1 6.2 27.8 16.1L365.7 192l116.6 0z"]},SA={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M160 0c17.7 0 32 14.3 32 32l0 35.7c1.6 .2 3.1 .4 4.7 .7c.4 .1 .7 .1 1.1 .2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4c1.8 3.9 5.5 8.3 12.8 13.2c16.3 10.7 41.3 17.7 73.7 26.3l2.9 .8c28.6 7.6 63.6 16.8 89.6 33.8c14.2 9.3 27.6 21.9 35.9 39.5c8.5 17.9 10.3 37.9 6.4 59.2c-6.9 38-33.1 63.4-65.6 76.7c-13.7 5.6-28.6 9.2-44.4 11l0 33.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-34.9c-.4-.1-.9-.1-1.3-.2l-.2 0s0 0 0 0c-24.4-3.8-64.5-14.3-91.5-26.3c-16.1-7.2-23.4-26.1-16.2-42.2s26.1-23.4 42.2-16.2c20.9 9.3 55.3 18.5 75.2 21.6c31.9 4.7 58.2 2 76-5.3c16.9-6.9 24.6-16.9 26.8-28.9c1.9-10.6 .4-16.7-1.3-20.4c-1.9-4-5.6-8.4-13-13.3c-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7s0 0 0 0C119.4 279.3 84.4 270 58.4 253c-14.2-9.3-27.5-22-35.8-39.6c-8.4-17.9-10.1-37.9-6.1-59.2C23.7 116 52.3 91.2 84.8 78.3c13.3-5.3 27.9-8.9 43.2-11L128 32c0-17.7 14.3-32 32-32z"]},km={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M243.4 2.6l-224 96c-14 6-21.8 21-18.7 35.8S16.8 160 32 160l0 8c0 13.3 10.7 24 24 24l400 0c13.3 0 24-10.7 24-24l0-8c15.2 0 28.3-10.7 31.3-25.6s-4.8-29.9-18.7-35.8l-224-96c-8-3.4-17.2-3.4-25.2 0zM128 224l-64 0 0 196.3c-.6 .3-1.2 .7-1.8 1.1l-48 32c-11.7 7.8-17 22.4-12.9 35.9S17.9 512 32 512l448 0c14.1 0 26.5-9.2 30.6-22.7s-1.1-28.1-12.9-35.9l-48-32c-.6-.4-1.2-.7-1.8-1.1L448 224l-64 0 0 192-40 0 0-192-64 0 0 192-48 0 0-192-64 0 0 192-40 0 0-192zM256 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};var _A=Object.defineProperty,lc=Object.getOwnPropertySymbols,KE=Object.prototype.hasOwnProperty,QE=Object.prototype.propertyIsEnumerable,tC=(e,t,n)=>t in e?_A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gh=(e,t)=>{for(var n in t||(t={}
2269))KE.call(t,n)&&tC(e,n,t[n]);if(lc)for(var n of lc(t))QE.call(t,n)&&tC(e,n,t[n]);return e},mh=(e,t)=>{var n={};for(var r in e)KE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&lc)for(var r of lc(e))t.indexOf(r)<0&&QE.call(e,r)&&(n[r]=e[r]);return n};/**
2270 * @license QR Code generator library (TypeScript)
2271 * Copyright (c) Project Nayuki.
2272 * SPDX-License-Identifier: MIT
2273 */var Gi;(e=>{const t=class Le{constructor(l,u,c,d){if(this.version=l,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],l<Le.MIN_VERSION||l>Le.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let g=0;g<this.size;g++)f.push(!1);for(let g=0;g<this.size;g++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const h=this.addEccAndInterleave(c);if(this.drawCodewords(h),d==-1){let g=1e9;for(let v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);const w=this.getPenaltyScore();w<g&&(d=v,g=w),this.applyMask(v)}}i(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(l,u){const c=e.QrSegment.makeSegments(l);return Le.encodeSegments(c,u)}static encodeBinary(l,u){const c=e.QrSegment.makeBytes(l);return Le.encodeSegments([c],u)}static encodeSegments(l,u,c=1,d=40,f=-1,h=!0){if(!(Le.MIN_VERSION<=c&&c<=d&&d<=Le.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let g,v;for(g=c;;g++){const b=Le.getNumDataCodewords(g,u)*8,x=s.getTotalBits(l,g);if(x<=b){v=x;break}if(g>=d)throw new RangeError("Data too long")}for(const b of[Le.Ecc.MEDIUM,Le.Ecc.QUARTILE,Le.Ecc.HIGH])h&&v<=Le.getNumDataCodewords(g,b)*8&&(u=b);let w=[];for(const b of l){n(b.mode.modeBits,4,w),n(b.numChars,b.mode.numCharCountBits(g),w);for(const x of b.getData())w.push(x)}i(w.length==v);const C=Le.getNumDataCodewords(g,u)*8;i(w.length<=C),n(0,Math.min(4,C-w.length),w),n(0,(8-w.length%8)%8,w),i(w.length%8==0);for(let b=236;w.length<C;b^=253)n(b,8,w);let y=[];for(;y.length*8<w.length;)y.push(0);return w.forEach((b,x)=>y[x>>>3]|=b<<7-(x&7)),new Le(g,u,y,f)}getModule(l,u){return 0<=l&&l<this.size&&0<=u&&u<this.size&&this.modules[u][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let c=0;c<this.size;c++)this.setFunctionModule(6,c,c%2==0),this.setFunctionModule(c,6,c%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),u=l.length;for(let c=0;c<u;c++)for(let d=0;d<u;d++)c==0&&d==0||c==0&&d==u-1||c==u-1&&d==0||this.drawAlignmentPattern(l[c],l[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const u=this.errorCorrectionLevel.formatBits<<3|l;let c=u;for(let f=0;f<10;f++)c=c<<1^(c>>>9)*1335;const d=(u<<10|c)^21522;i(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(d,f));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let c=0;c<12;c++)l=l<<1^(l>>>11)*7973;const u=this.version<<12|l;i(u>>>18==0);for(let c=0;c<18;c++){const d=r(u,c),f=this.size-11+c%3,h=Math.floor(c/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d)}}drawFinderPattern(l,u){for(let c=-4;c<=4;c++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(c)),h=l+d,g=u+c;0<=h&&h<this.size&&0<=g&&g<this.size&&this.setFunctionModule(h,g,f!=2&&f!=4)}}drawAlignmentPattern(l,u){for(let c=-2;c<=2;c++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,u+c,Math.max(Math.abs(d),Math.abs(c))!=1)}setFunctionModule(l,u,c){this.modules[u][l]=c,this.isFunction[u][l]=!0}addEccAndInterleave(l){const u=this.version,c=this.errorCorrectionLevel;if(l.length!=Le.getNumDataCodewords(u,c))throw new RangeError("Invalid argument");const d=Le.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][u],f=Le.ECC_CODEWORDS_PER_BLOCK[c.ordinal][u],h=Math.floor(Le.getNumRawDataModules(u)/8),g=d-h%d,v=Math.floor(h/d);let w=[];const C=Le.reedSolomonComputeDivisor(f);for(let b=0,x=0;b<d;b++){let S=l.slice(x,x+v-f+(b<g?0:1));x+=S.length;const E=Le.reedSolomonComputeRemainder(S,C);b<g&&S.push(0),w.push(S.concat(E))}let y=[];for(let b=0;b<w[0].length;b++)w.forEach((x,S)=>{(b!=v-f||S>=g)&&y.push(x[b])});return i(y.length==h),y}drawCodewords(l){if(l.length!=Math.floor(Le.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let u=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const h=c-f,v=(c+1&2)==0?this.size-1-d:d;!this.isFunction[v][h]&&u<l.length*8&&(this.modules[v][h]=r(l[u>>>3],7-(u&7)),u++)}}i(u==l.length*8)}
2273applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let u=0;u<this.size;u++)for(let c=0;c<this.size;c++){let d;switch(l){case 0:d=(c+u)%2==0;break;case 1:d=u%2==0;break;case 2:d=c%3==0;break;case 3:d=(c+u)%3==0;break;case 4:d=(Math.floor(c/3)+Math.floor(u/2))%2==0;break;case 5:d=c*u%2+c*u%3==0;break;case 6:d=(c*u%2+c*u%3)%2==0;break;case 7:d=((c+u)%2+c*u%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[u][c]&&d&&(this.modules[u][c]=!this.modules[u][c])}}getPenaltyScore(){let l=0;for(let f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[f][w]==h?(g++,g==5?l+=Le.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*Le.PENALTY_N3),h=this.modules[f][w],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*Le.PENALTY_N3}for(let f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[w][f]==h?(g++,g==5?l+=Le.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*Le.PENALTY_N3),h=this.modules[w][f],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*Le.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let h=0;h<this.size-1;h++){const g=this.modules[f][h];g==this.modules[f][h+1]&&g==this.modules[f+1][h]&&g==this.modules[f+1][h+1]&&(l+=Le.PENALTY_N2)}let u=0;for(const f of this.modules)u=f.reduce((h,g)=>h+(g?1:0),u);const c=this.size*this.size,d=Math.ceil(Math.abs(u*20-c*10)/c)-1;return i(0<=d&&d<=9),l+=d*Le.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let c=[6];for(let d=this.size-7;c.length<l;d-=u)c.splice(1,0,d);return c}}static getNumRawDataModules(l){if(l<Le.MIN_VERSION||l>Le.MAX_VERSION)throw new RangeError("Version number out of range");let u=(16*l+128)*l+64;if(l>=2){const c=Math.floor(l/7)+2;u-=(25*c-10)*c-55,l>=7&&(u-=36)}return i(208<=u&&u<=29648),u}static getNumDataCodewords(l,u){return Math.floor(Le.getNumRawDataModules(l)/8)-Le.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l]*Le.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let u=[];for(let d=0;d<l-1;d++)u.push(0);u.push(1);let c=1;for(let d=0;d<l;d++){for(let f=0;f<u.length;f++)u[f]=Le.reedSolomonMultiply(u[f],c),f+1<u.length&&(u[f]^=u[f+1]);c=Le.reedSolomonMultiply(c,2)}return u}static reedSolomonComputeRemainder(l,u){let c=u.map(d=>0);for(const d of l){const f=d^c.shift();c.push(0),u.forEach((h,g)=>c[g]^=Le.reedSolomonMultiply(h,f))}return c}static reedSolomonMultiply(l,u){if(l>>>8||u>>>8)throw new RangeError("Byte out of range");let c=0;for(let d=7;d>=0;d--)c=c<<1^(c>>>7)*285,c^=(u>>>d&1)*l;return i(c>>>8==0),c}finderPenaltyCountPatterns(l){const u=l[1];i(u<=this.size*3);const c=u>0&&l[2]==u&&l[3]==u*3&&l[4]==u&&l[5]==u;return(c&&l[0]>=u*4&&l[6]>=u?1:0)+(c&&l[6]>=u*4&&l[0]>=u?1:0)}finderPenaltyTerminateAndCount(l,u,c){return l&&(this.finderPenaltyAddHistory(u,c),u=0),u+=this.size,this.finderPenaltyAddHistory(u,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(l,u){u[0]==0&&(l+=this.size),u.pop(),u.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(a,l,u){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let c=l-1;c>=0;c--)u.push(a>>>c&1)}function r(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class ut{constructor(l,u,c){if(this.mode=l,this.numChars=u,this.bitData=c,u<0)throw new RangeError("Invalid argument");this.bitData=c.slice()}static makeBytes(l){let u=[];for(const c of l)n(c,8,u);return new ut(ut.Mode.BYTE,l.length,u)}static makeNumeric(l){if(!ut.isNumeric(l))throw new RangeError("String contains 
2273non-numeric characters");let u=[];for(let c=0;c<l.length;){const d=Math.min(l.length-c,3);n(parseInt(l.substring(c,c+d),10),d*3+1,u),c+=d}return new ut(ut.Mode.NUMERIC,l.length,u)}static makeAlphanumeric(l){if(!ut.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let u=[],c;for(c=0;c+2<=l.length;c+=2){let d=ut.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c))*45;d+=ut.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c+1)),n(d,11,u)}return c<l.length&&n(ut.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c)),6,u),new ut(ut.Mode.ALPHANUMERIC,l.length,u)}static makeSegments(l){return l==""?[]:ut.isNumeric(l)?[ut.makeNumeric(l)]:ut.isAlphanumeric(l)?[ut.makeAlphanumeric(l)]:[ut.makeBytes(ut.toUtf8ByteArray(l))]}static makeEci(l){let u=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,u);else if(l<16384)n(2,2,u),n(l,14,u);else if(l<1e6)n(6,3,u),n(l,21,u);else throw new RangeError("ECI assignment value out of range");return new ut(ut.Mode.ECI,0,u)}static isNumeric(l){return ut.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return ut.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,u){let c=0;for(const d of l){const f=d.mode.numCharCountBits(u);if(d.numChars>=1<<f)return 1/0;c+=4+f+d.bitData.length}return c}static toUtf8ByteArray(l){l=encodeURI(l);let u=[];for(let c=0;c<l.length;c++)l.charAt(c)!="%"?u.push(l.charCodeAt(c)):(u.push(parseInt(l.substring(c+1,c+3),16)),c+=2);return u}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=o;e.QrSegment=o})(Gi||(Gi={}));(e=>{(t=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Gi||(Gi={}));(e=>{(t=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Gi||(Gi={}));var bo=Gi;/**
2274 * @license qrcode.react
2275 * Copyright (c) Paul O'Shannessy
2276 * SPDX-License-Identifier: ISC
2277 */var LA={L:bo.QrCode.Ecc.LOW,M:bo.QrCode.Ecc.MEDIUM,Q:bo.QrCode.Ecc.QUARTILE,H:bo.QrCode.Ecc.HIGH},ZE=128,XE="L",JE="#FFFFFF",eS="#000000",tS=!1,nS=1,IA=4,kA=0,PA=.1;function rS(e,t=0){const n=[];return e.forEach(function(r,i){let o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push(`M${o+t} ${i+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${o+t},${i+t} h${a+1-o}v1H${o+t}z`);return}s&&o===null&&(o=a)})}),n.join("")}function iS(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((i,o)=>o<t.x||o>=t.x+t.w?i:!1))}function MA(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*PA),s=i/t,a=(r.width||o)*s,l=(r.height||o)*s,u=r.x==null?e.length/2-a/2:r.x*s,c=r.y==null?e.length/2-l/2:r.y*s,d=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let g=Math.floor(u),v=Math.floor(c),w=Math.ceil(a+u-g),C=Math.ceil(l+c-v);f={x:g,y:v,w,h:C}}const h=r.crossOrigin;return{x:u,y:c,h:l,w:a,excavation:f,opacity:d,crossOrigin:h}}function DA(e,t){return t!=null?Math.max(Math.floor(t),0):e?IA:kA}function oS({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s}){let a=de.useMemo(()=>{const f=bo.QrSegment.makeSegments(e);return bo.QrCode.encodeSegments(f,LA[t],n)},[e,t,n]);const{cells:l,margin:u,numCells:c,calculatedImageSettings:d}=de.useMemo(()=>{let f=a.getModules();const h=DA(r,i),g=f.length+h*2,v=MA(f,s,h,o);return{cells:f,margin:h,numCells:g,calculatedImageSettings:v}},[a,s,o,r,i]);return{qrcode:a,margin:u,cells:l,numCells:c,calculatedImageSettings:d}}var NA=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),TA=de.forwardRef(function(t,n){const r=t,{value:i,size:o=ZE,level:s=XE,bgColor:a=JE,fgColor:l=eS,includeMargin:u=tS,minVersion:c=nS,marginSize:d,imageSettings:f}=r,g=mh(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","imageSettings"]),{style:v}=g,w=mh(g,["style"]),C=f==null?void 0:f.src,y=de.useRef(null),b=de.useRef(null),x=de.useCallback(V=>{y.current=V,typeof n=="function"?n(V):n&&(n.current=V)},[n]),[S,E]=de.useState(!1),{margin:L,cells:_,numCells:P,calculatedImageSettings:I}=oS({value:i,level:s,minVersion:c,includeMargin:u,marginSize:d,imageSettings:f,size:o});de.useEffect(()=>{if(y.current!=null){const V=y.current,z=V.getContext("2d");if(!z)return;let Z=_;const Q=b.current,F=I!=null&&Q!==null&&Q.complete&&Q.naturalHeight!==0&&Q.naturalWidth!==0;F&&I.excavation!=null&&(Z=iS(_,I.excavation));const D=window.devicePixelRatio||1;V.height=V.width=o*D;const B=o/P*D;z.scale(B,B),z.fillStyle=a,z.fillRect(0,0,P,P),z.fillStyle=l,NA?z.fill(new Path2D(rS(Z,L))):_.forEach(function(O,U){O.forEach(function(X,fe){X&&z.fillRect(fe+L,U+L,1,1)})}),I&&(z.globalAlpha=I.opacity),F&&z.drawImage(Q,I.x+L,I.y+L,I.w,I.h)}}),de.useEffect(()=>{E(!1)},[C]);const R=gh({height:o,width:o},v);let q=null;return C!=null&&(q=de.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{E(!0)},ref:b,crossOrigin:I==null?void 0:I.crossOrigin})),de.createElement(de.Fragment,null,de.createElement("canvas",gh({style:R,height:o,width:o,ref:x,role:"img"},w)),q)});TA.displayName="QRCodeCanvas";var sS=de.forwardRef(function(t,n){const r=t,{value:i,size:o=ZE,level:s=XE,bgColor:a=JE,fgColor:l=eS,includeMargin:u=tS,minVersion:c=nS,title:d,marginSize:f,imageSettings:h}=r,g=mh(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"]),{margin:v,cells:w,numCells:C,calculatedImageSettings:y}=oS({value:i,level:s,minVersion:c,includeMargin:u,marginSize:f,imageSettings:h,size:o});let b=w,x=null;h!=null&&y!=null&&(y.excavation!=null&&(b=iS(w,y.excavation)),x=de.createElement("image",{href:h.src,height:y.h,width:y.w,x:y.x+v,y:y.y+v,preserveAspectRatio:"none",opacity:y.opacity,crossOrigin:y.crossOrigin}));const S=rS(b,v);return de.createElement("svg",gh({height:o,width:o,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},g),!!d&&de.createElement("title",null,d),de.createElement("path",{fill:a,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),de.createElement("path",{fill:l,d:S,shapeRendering:"crispEdges"}),x)});sS.displayName="QRCodeSVG";
vendor: 4,291 bytes, line 2277
2277function vh(e,t){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},vh(e,t)}function aS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vh(e,t)}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(null,arguments)}function Ta(e){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}function RA(e,t){if(Ta(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ta(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AA(e){var t=RA(e,"string");return Ta(t)=="symbol"?t:t+""}function OA(e,t,n){return(t=AA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nC(Object(n),!0).forEach(function(r){OA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var iC=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cf=function(){return Math.random().toString(36).substring(7).split("").join(".")},oC={INIT:"@@redux/INIT"+Cf(),REPLACE:"@@redux/REPLACE"+Cf(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cf()}};function FA(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function lS(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Qt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Qt(1));return n(lS)(e,t)}if(typeof e!="function")throw new Error(Qt(2));var i=e,o=t,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function c(){if(l)throw new Error(Qt(3));return o}function d(v){if(typeof v!="function")throw new Error(Qt(4));if(l)throw new Error(Qt(5));var w=!0;return u(),a.push(v),function(){if(w){if(l)throw new Error(Qt(6));w=!1,u();var y=a.indexOf(v);a.splice(y,1),s=null}}}function f(v){if(!FA(v))throw new Error(Qt(7));if(typeof v.type>"u")throw new Error(Qt(8));if(l)throw new Error(Qt(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var w=s=a,C=0;C<w.length;C++){var y=w[C];y()}return v}function h(v){if(typeof v!="function")throw new Error(Qt(10));i=v,f({type:oC.REPLACE})}function g(){var v,w=d;return v={subscribe:function(y){if(typeof y!="object"||y===null)throw new Error(Qt(11));function b(){y.next&&y.next(c())}b();var x=w(b);return{unsubscribe:x}}},v[iC]=function(){return this},v}return f({type:oC.INIT}),r={dispatch:f,subscribe:d,getState:c,replaceReducer:h},r[iC]=g,r}function sC(e,t){return function(){return t(e.apply(this,arguments))}}function aC(e,t){if(typeof e=="function")return sC(e,t);if(typeof e!="object"||e===null)throw new Error(Qt(16));var n={};for(var r in e){var i=e[r];typeof i=="function"&&(n[r]=sC(i,t))}return n}function uS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function BA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(Qt
vendor: 7,286 bytes, lines 2277-2291
2277(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=uS.apply(void 0,a)(i.dispatch),rC(rC({},i),{},{dispatch:o})}}}var cS=de.createContext(null);function jA(e){e()}var dS=jA,zA=function(t){return dS=t},UA=function(){return dS};function $A(){var e=UA(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],o=t;o;)i.push(o),o=o.next;return i},subscribe:function(i){var o=!0,s=n={callback:i,next:null,prev:n};return s.prev?s.prev.next=s:t=s,function(){!o||t===null||(o=!1,s.next?s.next.prev=s.prev:n=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}var lC={notify:function(){},get:function(){return[]}};function fS(e,t){var n,r=lC;function i(d){return l(),r.subscribe(d)}function o(){r.notify()}function s(){c.onStateChange&&c.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=$A())}function u(){n&&(n(),n=void 0,r.clear(),r=lC)}var c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:function(){return r}};return c}var pS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?p.useLayoutEffect:p.useEffect;function WA(e){var t=e.store,n=e.context,r=e.children,i=p.useMemo(function(){var a=fS(t);return{store:t,subscription:a}},[t]),o=p.useMemo(function(){return t.getState()},[t]);pS(function(){var a=i.subscription;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),o!==t.getState()&&a.notifyNestedSubs(),function(){a.tryUnsubscribe(),a.onStateChange=null}},[i,o]);var s=n||cS;return de.createElement(s.Provider,{value:i},r)}function uc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var hS={exports:{}},We={};/** @license React v16.13.1
2278 * react-is.production.min.js
2279 *
2280 * Copyright (c) Facebook, Inc. and its affiliates.
2281 *
2282 * This source code is licensed under the MIT license found in the
2283 * LICENSE file in the root directory of this source tree.
2284 */var kt=typeof Symbol=="function"&&Symbol.for,Pm=kt?Symbol.for("react.element"):60103,Mm=kt?Symbol.for("react.portal"):60106,od=kt?Symbol.for("react.fragment"):60107,sd=kt?Symbol.for("react.strict_mode"):60108,ad=kt?Symbol.for("react.profiler"):60114,ld=kt?Symbol.for("react.provider"):60109,ud=kt?Symbol.for("react.context"):60110,Dm=kt?Symbol.for("react.async_mode"):60111,cd=kt?Symbol.for("react.concurrent_mode"):60111,dd=kt?Symbol.for("react.forward_ref"):60112,fd=kt?Symbol.for("react.suspense"):60113,HA=kt?Symbol.for("react.suspense_list"):60120,pd=kt?Symbol.for("react.memo"):60115,hd=kt?Symbol.for("react.lazy"):60116,VA=kt?Symbol.for("react.block"):60121,GA=kt?Symbol.for("react.fundamental"):60117,qA=kt?Symbol.for("react.responder"):60118,YA=kt?Symbol.for("react.scope"):60119;function vn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pm:switch(e=e.type,e){case Dm:case cd:case od:case ad:case sd:case fd:return e;default:switch(e=e&&e.$$typeof,e){case ud:case dd:case hd:case pd:case ld:return e;default:return t}}case Mm:return t}}}function gS(e){return vn(e)===cd}We.AsyncMode=Dm;We.ConcurrentMode=cd;We.ContextConsumer=ud;We.ContextProvider=ld;We.Element=Pm;We.ForwardRef=dd;We.Fragment=od;We.Lazy=hd;We.Memo=pd;We.Portal=Mm;We.Profiler=ad;We.StrictMode=sd;We.Suspense=fd;We.isAsyncMode=function(e){return gS(e)||vn(e)===Dm};We.isConcurrentMode=gS;We.isContextConsumer=function(e){return vn(e)===ud};We.isContextProvider=function(e){return vn(e)===ld};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pm};We.isForwardRef=function(e){return vn(e)===dd};We.isFragment=function(e){return vn(e)===od};We.isLazy=function(e){return vn(e)===hd};We.isMemo=function(e){return vn(e)===pd};We.isPortal=function(e){return vn(e)===Mm};We.isProfiler=function(e){return vn(e)===ad};We.isStrictMode=function(e){return vn(e)===sd};We.isSuspense=function(e){return vn(e)===fd};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===od||e===cd||e===ad||e===sd||e===fd||e===HA||typeof e=="object"&&e!==null&&(e.$$typeof===hd||e.$$typeof===pd||e.$$typeof===ld||e.$$typeof===ud||e.$$typeof===dd||e.$$typeof===GA||e.$$typeof===qA||e.$$typeof===YA||e.$$typeof===VA)};We.typeOf=vn;hS.exports=We;var KA=hS.exports,Nm=KA,QA={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ZA={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},XA={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tm={};Tm[Nm.ForwardRef]=XA;Tm[Nm.Memo]=mS;function uC(e){return Nm.isMemo(e)?mS:Tm[e.$$typeof]||QA}var JA=Object.defineProperty,eO=Object.getOwnPropertyNames,cC=Object.getOwnPropertySymbols,tO=Object.getOwnPropertyDescriptor,nO=Object.getPrototypeOf,dC=Object.prototype;function vS(e,t,n){if(typeof t!="string"){if(dC){var r=nO(t);r&&r!==dC&&vS(e,r,n)}var i=eO(t);cC&&(i=i.concat(cC(t)));for(var o=uC(e),s=uC(t),a=0;a<i.length;++a){var l=i[a];if(!ZA[l]&&!(n&&n[l])&&!(s&&s[l])&&!(o&&o[l])){var u=tO(t,l);try{JA(e,l,u)}catch{}}}}return e}var rO=vS;const fC=bc(rO);var yS={exports:{}},Ye={};/** @license React v17.0.2
2285 * react-is.production.min.js
2286 *
2287 * Copyright (c) Facebook, Inc. and its affiliates.
2288 *
2289 * This source code is licensed under the MIT license found in the
2290 * LICENSE file in the root directory of this source tree.
2291 */var gd=60103,md=60106,il=60107,ol=60108,sl=60114,al=60109,ll=60110,ul=60112,cl=60113,Rm=60120,dl=60115,fl=60116,CS=60121,bS=60122,wS=60117,xS=60129,ES=60131;if(typeof Symbol=="function"&&Symbol.for){var Pt=Symbol.for;gd=Pt("react.element"),md=Pt("react.portal"),il=Pt("react.fragment"),ol=Pt("react.strict_mode"),sl=Pt("react.profiler"),al=Pt("react.provider"),ll=Pt("react.context"),ul=Pt("react.forward_ref"),cl=Pt("react.suspense"),Rm=Pt("react.suspense_list"),dl=Pt("react.memo"),fl=Pt("react.lazy"),CS=Pt("react.block"),bS=Pt("react.server.block"),wS=Pt("react.fundamental"),xS=Pt("react.debug_trace_mode"),ES=Pt("react.legacy_hidden")}function Wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gd:switch(e=e.type,e){case il:case sl:case ol:case cl:case Rm:return e;default:switch(e=e&&e.$$typeof,e){case ll:case ul:case fl:case dl:case al:return e;default:return t}}case md:return t}}}var iO=al,oO=gd,sO=ul,aO=il,lO=fl,uO=dl,cO=md,dO=sl,fO=ol,pO=cl;Ye.ContextConsumer=ll;Ye.ContextProvider=iO;Ye.Element=oO;Ye.ForwardRef=sO;Ye.Fragment=aO;Ye.Lazy=lO;Ye.Memo=uO;Ye.Portal=cO;Ye.Profiler=dO;Ye.StrictMode=fO;Ye.Suspense=pO;Ye.isAsyncMode=function(){return!1};Ye.isConcurrentMode=function(){return!1};Ye.isContextConsumer=function(e){return Wn(e)===ll};Ye.isContextProvider=function(e){return Wn(e)===al};Ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gd};Ye.isForwardRef=function(e){return Wn(e)===ul};Ye.isFragment=function(e){return Wn(e)===il};Ye.isLazy=function(e){return Wn(e)===fl};Ye.isMemo=function(e){return Wn(e)===dl};
2291Ye.isPortal=function(e){return Wn(e)===md};Ye.isProfiler=function(e){return Wn(e)===sl};Ye.isStrictMode=function(e){return Wn(e)===ol};Ye.isSuspense=function(e){return Wn(e)===cl};Ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===il||e===sl||e===xS||e===ol||e===cl||e===Rm||e===ES||typeof e=="object"&&e!==null&&(e.$$typeof===fl||e.$$typeof===dl||e.$$typeof===al||e.$$typeof===ll||e.$$typeof===ul||e.$$typeof===wS||e.$$typeof===CS||e[0]===bS)};Ye.typeOf=Wn;yS.exports=Ye;var hO=yS.exports,gO=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],mO=["reactReduxForwardedRef"],vO=[],yO=[null,null];function CO(e,t){var n=e[1];return[t.payload,n+1]}function pC(e,t,n){pS(function(){return e.apply(void 0,t)},n)}function bO(e,t,n,r,i,o,s){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,s())}function wO(e,t,n,r,i,o,s,a,l,u){if(e){var c=!1,d=null,f=function(){if(!c){var v=t.getState(),w,C;try{w=r(v,i.current)}catch(y){C=y,d=y}C||(d=null),w===o.current?s.current||l():(o.current=w,a.current=w,s.current=!0,u({type:"STORE_UPDATED",payload:{error:C}}))}};n.onStateChange=f,n.trySubscribe(),f();var h=function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d};return h}}var xO=function(){return[null,0]};function EO(e,t){t===void 0&&(t={});var n=t,r=n.getDisplayName,i=r===void 0?function(b){return"ConnectAdvanced("+b+")"}:r,o=n.methodName,s=o===void 0?"connectAdvanced":o,a=n.renderCountProp,l=a===void 0?void 0:a,u=n.shouldHandleStateChanges,c=u===void 0?!0:u,d=n.storeKey,f=d===void 0?"store":d;n.withRef;var h=n.forwardRef,g=h===void 0?!1:h,v=n.context,w=v===void 0?cS:v,C=uc(n,gO),y=w;return function(x){var S=x.displayName||x.name||"Component",E=i(S),L=le({},C,{getDisplayName:i,methodName:s,renderCountProp:l,shouldHandleStateChanges:c,storeKey:f,displayName:E,wrappedComponentName:S,WrappedComponent:x}),_=C.pure;function P(z){return e(z.dispatch,L)}var I=_?p.useMemo:function(z){return z()};function R(z){var Z=p.useMemo(function(){var De=z.reactReduxForwardedRef,ae=uc(z,mO);return[z.context,De,ae]},[z]),Q=Z[0],F=Z[1],D=Z[2],B=p.useMemo(function(){return Q&&Q.Consumer&&hO.isContextConsumer(de.createElement(Q.Consumer,null))?Q:y},[Q,y]),O=p.useContext(B),U=!!z.store&&!!z.store.getState&&!!z.store.dispatch;O&&O.store;var X=U?z.store:O.store,fe=p.useMemo(function(){return P(X)},[X]),ue=p.useMemo(function(){if(!c)return yO;var De=fS(X,U?null:O.subscription),ae=De.notifyNestedSubs.bind(De);return[De,ae]},[X,U,O]),ge=ue[0],N=ue[1],pe=p.useMemo(function(){return U?O:le({},O,{subscription:ge})},[U,O,ge]),Ne=p.useReducer(CO,vO,xO),ne=Ne[0],we=ne[0],Te=Ne[1];if(we&&we.error)throw we.error;var M=p.useRef(),k=p.useRef(D),T=p.useRef(),$=p.useRef(!1),re=I(function(){return T.current&&D===k.current?T.current:fe(X.getState(),D)},[X,we,D]);pC(bO,[k,M,$,D,re,T,N]),pC(wO,[c,X,ge,fe,k,M,$,T,N,Te],[X,ge,fe]);var ee=p.useMemo(function(){return de.createElement(x,le({},re,{ref:F}))},[F,x,re]),Me=p.useMemo(function(){return c?de.createElement(B.Provider,{value:pe},ee):ee},[B,ee,pe]);return Me}var q=_?de.memo(R):R;if(q.WrappedComponent=x,q.displayName=R.displayName=E,g){var V=de.forwardRef(function(Z,Q){return de.createElement(q,le({},Z,{reactReduxForwardedRef:Q}))});return V.displayName=E,V.WrappedComponent=x,fC(V,x)}return fC(q,x)}}function hC(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function bf(e,t){if(hC(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!hC(e[n[i]],t[n[i]]))return!1;return!0}function SO(e,t){var n={},r=function(s){var a=e[s];typeof a=="function"&&(n[s]=function(){return t(a.apply(void 0,arguments))})};for(var i in e)r(i);return n}function Am(e){return function(n,r){var i=e(n,r);function o(){return i}return o.dependsOnOwnProps=!1,o}}function gC(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function SS(e,t){return function(r,i){i.displayName;var o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=gC(e);var u=o(a,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=gC(u),u=o(a,l)),u},o}}function _O(e){return typeof e=="function"?SS(e):void 0}function LO(e){return e?void 0:Am(function(t){return{dispatch:t}})}function IO(e){return e&&typeof e=="object"?Am(function(t){return SO(e,t)}):void 0}const kO=[_O,LO,IO];function PO(e){return typeof e=="function"?SS(e):void 0}function MO(e){return e?void 0:Am(function(){return{}})}const DO=[PO,MO];function NO(e,t,n){return le({},n,e,t)}function TO(e){return function(n,r){r.displayName;var i=r.pure,o=r.areMergedPropsEqual,s=!1,a;return function(u,c,d){var f=e(u,c,d);return s?(!i||!o(f,a))&&(a=f):(s=!0,a=f),a}}}function RO(e){return typeof e=="function"?TO(e):void 0}function AO(e){return e?void 0:function(){return NO}}const OO=[RO,AO];
2291var FO=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function BO(e,t,n,r){return function(o,s){return n(e(o,s),t(r,s),s)}}function jO(e,t,n,r,i){var o=i.areStatesEqual,s=i.areOwnPropsEqual,a=i.areStatePropsEqual,l=!1,u,c,d,f,h;function g(b,x){return u=b,c=x,d=e(u,c),f=t(r,c),h=n(d,f,c),l=!0,h}function v(){return d=e(u,c),t.dependsOnOwnProps&&(f=t(r,c)),h=n(d,f,c),h}function w(){return e.dependsOnOwnProps&&(d=e(u,c)),t.dependsOnOwnProps&&(f=t(r,c)),h=n(d,f,c),h}function C(){var b=e(u,c),x=!a(b,d);return d=b,x&&(h=n(d,f,c)),h}function y(b,x){var S=!s(x,c),E=!o(b,u,x,c);return u=b,c=x,S&&E?v():S?w():E?C():h}return function(x,S){return l?y(x,S):g(x,S)}}function zO(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=uc(t,FO),s=n(e,o),a=r(e,o),l=i(e,o),u=o.pure?jO:BO;return u(s,a,l,e,o)}var UO=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function wf(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(o,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function $O(e,t){return e===t}function WO(e){var t={},n=t.connectHOC,r=n===void 0?EO:n,i=t.mapStateToPropsFactories,o=i===void 0?DO:i,s=t.mapDispatchToPropsFactories,a=s===void 0?kO:s,l=t.mergePropsFactories,u=l===void 0?OO:l,c=t.selectorFactory,d=c===void 0?zO:c;return function(h,g,v,w){w===void 0&&(w={});var C=w,y=C.pure,b=y===void 0?!0:y,x=C.areStatesEqual,S=x===void 0?$O:x,E=C.areOwnPropsEqual,L=E===void 0?bf:E,_=C.areStatePropsEqual,P=_===void 0?bf:_,I=C.areMergedPropsEqual,R=I===void 0?bf:I,q=uc(C,UO),V=wf(h,o,"mapStateToProps"),z=wf(g,a,"mapDispatchToProps"),Z=wf(v,u,"mergeProps");return r(d,le({methodName:"connect",getDisplayName:function(F){return"Connect("+F+")"},shouldHandleStateChanges:!!h,initMapStateToProps:V,initMapDispatchToProps:z,initMergeProps:Z,pure:b,areStatesEqual:S,areOwnPropsEqual:L,areStatePropsEqual:P,areMergedPropsEqual:R},q))}}const _S=WO();zA(yr.unstable_batchedUpdates);function HO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function LS(e,t){var n=p.useState(function(){return{inputs:t,result:e()}})[0],r=p.useRef(!0),i=p.useRef(n),o=r.current||!!(t&&i.current.inputs&&HO(t,i.current.inputs)),s=o?i.current:{inputs:t,result:e()};return p.useEffect(function(){r.current=!1,i.current=s},[s]),s.result}function VO(e,t){return LS(function(){return e},t)}var Oe=LS,ie=VO,GO="Invariant failed";function qO(e,t){throw new Error(GO)}var Bn=function(t){var n=t.top,r=t.right,i=t.bottom,o=t.left,s=r-o,a=i-n,l={top:n,right:r,bottom:i,left:o,width:s,height:a,x:o,y:n,center:{x:(r+o)/2,y:(i+n)/2}};return l},Om=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}}
2291,mC=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},YO=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},xf={top:0,right:0,bottom:0,left:0},Fm=function(t){var n=t.borderBox,r=t.margin,i=r===void 0?xf:r,o=t.border,s=o===void 0?xf:o,a=t.padding,l=a===void 0?xf:a,u=Bn(Om(n,i)),c=Bn(mC(n,s)),d=Bn(mC(c,l));return{marginBox:u,borderBox:Bn(n),paddingBox:c,contentBox:d,margin:i,border:s,padding:l}},Cn=function(t){var n=t.slice(0,-2),r=t.slice(-2);if(r!=="px")return 0;var i=Number(n);return isNaN(i)&&qO(),i},KO=function(){return{x:window.pageXOffset,y:window.pageYOffset}},cc=function(t,n){var r=t.borderBox,i=t.border,o=t.margin,s=t.padding,a=YO(r,n);return Fm({borderBox:a,border:i,margin:o,padding:s})},dc=function(t,n){return n===void 0&&(n=KO()),cc(t,n)},IS=function(t,n){var r={top:Cn(n.marginTop),right:Cn(n.marginRight),bottom:Cn(n.marginBottom),left:Cn(n.marginLeft)},i={top:Cn(n.paddingTop),right:Cn(n.paddingRight),bottom:Cn(n.paddingBottom),left:Cn(n.paddingLeft)},o={top:Cn(n.borderTopWidth),right:Cn(n.borderRightWidth),bottom:Cn(n.borderBottomWidth),left:Cn(n.borderLeftWidth)};return Fm({borderBox:t,margin:r,padding:i,border:o})},kS=function(t){var n=t.getBoundingClientRect(),r=window.getComputedStyle(t);return IS(n,r)},vC=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function QO(e,t){return!!(e===t||vC(e)&&vC(t))}function ZO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!QO(e[n],t[n]))return!1;return!0}function Lt(e,t){t===void 0&&(t=ZO);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}var Ra=function(t){var n=[],r=null,i=function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];n=a,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i};function PS(e,t){}PS.bind(null,"warn");PS.bind(null,"error");function Kr(){}function XO(e,t){return le({},e,{},t)}function _n(e,t,n){var r=t.map(function(i){var o=XO(n,i.options);return e.addEventListener(i.eventName,i.fn,o),function(){e.removeEventListener(i.eventName,i.fn,o)}});return function(){r.forEach(function(o){o()})}}var JO="Invariant failed";function fc(e){this.message=e}fc.prototype.toString=function(){return this.message};function H(e,t){throw new fc(JO)}var e6=function(e){aS(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.callbacks=null,r.unbind=Kr,r.onWindowError=function(a){var l=r.getCallbacks();l.isDragging()&&l.tryAbort();var u=a.error;u instanceof fc&&a.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(a){r.callbacks=a},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=_n(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof fc){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(de.Component),t6=`
2292  Press space bar to start a drag.
2293  When dragging you can use the arrow keys to move the item around and escape to cancel.
2294  Some screen readers may require you to be in focus mode or to use your pass through key
2295`,pc=function(t){return t+1},n6=function(t){return`
2296  You have lifted an item in position `+pc(t.source.index)+`
2297`},MS=function(t,n){var r=t.droppableId===n.droppableId,i=pc(t.index),o=pc(n.index);return r?`
2298      You have moved the item from position `+i+`
2299      to position `+o+`
2300    `:`
2301    You have moved the item from position `+i+`
2302    in list `+t.droppableId+`
2303    to list `+n.droppableId+`
2304    in position `+o+`
2305  `},DS=function(t,n,r){var i=n.droppableId===r.droppableId;return i?`
2306      The item `+t+`
2307      has been combined with `+r.draggableId:`
2308      The item `+t+`
2309      in list `+n.droppableId+`
2310      has been combined with `+r.draggableId+`
2311      in list `+r.droppableId+`
2312    `},r6=function(t){var n=t.destination;if(n)return MS(t.source,n);var r=t.combine;return r?DS(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},yC=function(t){return`
2313  The item has returned to its starting position
2314  of `+pc(t.index)+`
2315`},i6=function(t){if(t.reason==="CANCEL")return`
2316      Movement cancelled.
2317      `+yC(t.source)+`
2318    `;var n=t.destination,r=t.combine;return n?`
2319      You have dropped the item.
2320      `+MS(t.source,n)+`
2321    `:r?`
2322      You have dropped the item.
2323      `+DS(t.draggableId,t.source,r)+`
2324    `:`
2325    The item has been dropped while not over a drop area.
2326    `+yC(t.source)+`
2327  `},du={dragHandleUsageInstructions:t6,onDragStart:n6,onDragUpdate:r6,onDragEnd:i6},It={x:0,y:0},Nt=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},an=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},Qr=function(t,n){return t.x===n.x&&t.y===n.y},as=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},qi=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},Aa=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},CC=function(t,n){return Math.min.apply(Math,n.map(function(r){return Aa(t,r)}))},NS=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},o6=function(e,t){var n=Bn({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},pl=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},bC=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},s6={top:0,right:0,bottom:0,left:0},a6=function(t,n){return n?pl(t,n.scroll.diff.displacement):t},l6=function(t,n,r){if(r&&r.increasedBy){var i;return le({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},u6=function(t,n){return n&&n.shouldClipSubject?o6(n.pageMarginBox,t):Bn(t)},Yo=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=a6(t.marginBox,i),s=l6(o,r,n),a=u6(s,i);return{page:t,withPlaceholder:n,active:a}},Bm=function(e,t){e.frame||H();var n=e.frame,r=an(t,n.scroll.initial),i=as(r),o=le({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=Yo({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),a=le({},e,{frame:o,subject:s});return a};function hc(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function jm(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function di(e,t){if(e.find)return e.find(t);var n=jm(e,t);if(n!==-1)return e[n]}function TS(e){return Array.prototype.slice.call(e)}var RS=Lt(function(e){return e.reduce(function(t,n){return t[n.descriptor.id]=n,t},{})}),AS=Lt(function(e){return e.reduce(function(t,n){return t[n.descriptor.id]=n,t},{})}),vd=Lt(function(e){return hc(e)}),c6=Lt(function(e){return hc(e)}),ls=Lt(function(e,t){var n=c6(t).filter(function(r){return e===r.descriptor.droppableId}).sort(function(r,i){return r.descriptor.index-i.descriptor.index});return n});function zm(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function yd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Cd=Lt(function(e,t){return t.filter(function(n){return n.descriptor.id!==e.descriptor.id})}),d6=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.previousImpact;
2327if(!r.isCombineEnabled)return null;var s=zm(o);if(!s)return null;function a(v){var w={type:"COMBINE",combine:{draggableId:v,droppableId:r.descriptor.id}};return le({},o,{at:w})}var l=o.displaced.all,u=l.length?l[0]:null;if(t)return u?a(u):null;var c=Cd(n,i);if(!u){if(!c.length)return null;var d=c[c.length-1];return a(d.descriptor.id)}var f=jm(c,function(v){return v.descriptor.id===u});f===-1&&H();var h=f-1;if(h<0)return null;var g=c[h];return a(g.descriptor.id)},us=function(e,t){return e.descriptor.droppableId===t.descriptor.id},OS={point:It,value:0},Oa={invisible:{},visible:{},all:[]},f6={displaced:Oa,displacedBy:OS,at:null},In=function(e,t){return function(n){return e<=n&&n<=t}},FS=function(e){var t=In(e.top,e.bottom),n=In(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);if(i)return!0;var o=t(r.top)||t(r.bottom),s=n(r.left)||n(r.right),a=o&&s;if(a)return!0;var l=r.top<e.top&&r.bottom>e.bottom,u=r.left<e.left&&r.right>e.right,c=l&&u;if(c)return!0;var d=l&&s||u&&o;return d}},p6=function(e){var t=In(e.top,e.bottom),n=In(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}},Um={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},BS={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},h6=function(e){return function(t){var n=In(t.top,t.bottom),r=In(t.left,t.right);return function(i){return e===Um?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},g6=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:It;return pl(t,r)},m6=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},v6=function(t,n,r){return r(n)(t)},$m=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,s=t.isVisibleThroughFrameFn,a=o?g6(n,r):n;return m6(a,r,s)&&v6(a,i,s)},y6=function(t){return $m(le({},t,{isVisibleThroughFrameFn:FS}))},jS=function(t){return $m(le({},t,{isVisibleThroughFrameFn:p6}))},C6=function(t){return $m(le({},t,{isVisibleThroughFrameFn:h6(t.destination.axis)}))},b6=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var s=o[t];return s?s.shouldAnimate:!0};function w6(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Bn(Om(n,r))}function Fa(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce(function(l,u){var c=w6(u,r),d=u.descriptor.id;l.all.push(d);var f=y6({target:c,destination:n,viewport:i,withDroppableDisplacement:!0});if(!f)return l.invisible[u.descriptor.id]=!0,l;var h=b6(d,s,o),g={draggableId:d,shouldAnimate:h};return l.visible[d]=g,l},{all:[],visible:{},invisible:{}})}function x6(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function wC(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=x6(t,{inHomeList:n});return{displaced:Oa,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function gc(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,a=e.index,l=e.forceShouldAnimate,u=us(t,r);if(a==null)return wC({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var c=di(n,function(v){return v.descriptor.index===a});if(!c)return wC({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var d=Cd(t,n),f=n.indexOf(c),h=d.slice(f),g=Fa({afterDragging:h,destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:l});return{displaced:g,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function ai(e,t){return!!t.effected[e]}var E6=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,a=r[s],l=a.descriptor.index,u=ai(s,o);return u?t?l:l-1:t?l+1:l},S6=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,a=r[0].descriptor.index,l=r[r.length-1].descriptor.index,u=n?l:l+1;return s<a||s>u?null:s},_6=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,a=e.previousImpact,l=e.viewport,u=e.afterCritical,c=a.at;if(c||H(),c.type==="REORDER"){var d=S6({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:s});return d==null?null:gc({draggable:r,insideDestination:s,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:d})}var f=E6({isMovingForward:t,destination:o,displaced:a.displaced,draggables:i,combine:c.combine,afterCritical:u});return f==null?null:gc({draggable:r,insideDestination:s,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:f})}
2327,L6=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return ai(r,n)?o?It:as(i.point):o?i.point:It},I6=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=yd(n);i||H();var o=i.draggableId,s=r[o].page.borderBox.center,a=L6({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Nt(s,a)},zS=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},k6=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},Wm=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},xC=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return qi(n.line,r.marginBox[n.end]+zS(n,i),Wm(n,r.marginBox,i))},EC=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return qi(n.line,r.marginBox[n.start]-k6(n,i),Wm(n,r.marginBox,i))},P6=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return qi(n.line,r.contentBox[n.start]+zS(n,i),Wm(n,r.contentBox,i))},M6=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=ls(i.descriptor.id,r),a=n.page,l=i.axis;if(!s.length)return P6({axis:l,moveInto:i.page,isMoving:a});var u=t.displaced,c=t.displacedBy,d=u.all[0];if(d){var f=r[d];if(ai(d,o))return EC({axis:l,moveRelativeTo:f.page,isMoving:a});var h=cc(f.page,c.point);return EC({axis:l,moveRelativeTo:h,isMoving:a})}var g=s[s.length-1];if(g.descriptor.id===n.descriptor.id)return a.borderBox.center;if(ai(g.descriptor.id,o)){var v=cc(g.page,as(o.displacedBy.point));return xC({axis:l,moveRelativeTo:v,isMoving:a})}return xC({axis:l,moveRelativeTo:g.page,isMoving:a})},yh=function(e,t){var n=e.frame;return n?Nt(t,n.scroll.diff.displacement):t},D6=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,s=t.afterCritical,a=r.page.borderBox.center,l=n.at;return!i||!l?a:l.type==="REORDER"?M6({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:s}):I6({impact:n,draggables:o,afterCritical:s})},bd=function(e){var t=D6(e),n=e.droppable,r=n?yh(n,t):t;return r},US=function(e,t){var n=an(t,e.scroll.initial),r=as(n),i=Bn({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o};function SC(e,t){return e.map(function(n){return t[n]})}function N6(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}var T6=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,o=e.maxScrollChange,s=US(n,Nt(n.scroll.current,o)),a=r.frame?Bm(r,Nt(r.frame.scroll.current,o)):r,l=t.displaced,u=Fa({afterDragging:SC(l.all,i),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:l,forceShouldAnimate:!1}),c=Fa({afterDragging:SC(l.all,i),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},f={},h=[l,u,c];l.all.forEach(function(v){var w=N6(v,h);if(w){f[v]=w;return}d[v]=!0});var g=le({},t,{displaced:{all:l.all,invisible:d,visible:f}});return g},R6=function(e,t){return Nt(e.scroll.diff.displacement,t)},Hm=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=e.viewport,i=R6(r,t),o=an(i,n.page.borderBox.center);return Nt(n.client.borderBox.center,o)},$S=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,s=e.onlyOnMainAxis,a=s===void 0?!1:s,l=an(r,t.page.borderBox.center),u=pl(t.page.borderBox,l),c={target:u,destination:n,withDroppableDisplacement:o,viewport:i};return a?C6(c):jS(c)},A6=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,o=e.previousImpact,s=e.viewport,a=e.previousPageBorderBoxCenter,l=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var c=ls(r.descriptor.id,i),d=us(n,r),f=d6({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:o})||_6({isMovingForward:t,isInHomeList:d,draggable:n,draggables:i,destination:r,insideDestination:c,previousImpact:o,viewport:s,afterCritical:u});if(!f)return null;var h=bd({impact:f,draggable:n,droppable:r,draggables:i,afterCritical:u}),g=$S({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(g){var v=Hm({pageBorderBoxCenter:h,draggable:n,viewport:s});return{clientSelection:v,impact:f,scrollJumpRequest:null}}var w=an(h,a),C=T6({impact:f,viewport:s,destination:r,draggables:i,maxScrollChange:w});return{clientSelection:l,impact:C,scrollJumpRequest:w}},Wt=function(t){var n=t.subject.active;return n||H(),n},O6=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,s=r.subject.active;if(!s)return null;var a=r.axis,l=In(s[a.start],s[a.end]),u=vd(i).filter(function(d){return d!==r}).filter(function(d){return d.isEnabled}).filter(function(d){return!!d.subject.active}).filter(function(d){return FS(o.frame)(Wt(d))}).filter(function(d){var f=Wt(d);return t?s[a.crossAxisEnd]<f[a.crossAxisEnd]:f[a.crossAxisStart]<s[a.crossAxisStart]}).filter(function(d){var f=Wt(d),h=In(f[a.start],f[a.end]);return l(f[a.start])||l(f[a.end])||h(s[a.start])||h(s[a.end])}).sort(function(d,f){var h=Wt(d)[a.crossAxisStart],g=Wt(f)[a.crossAxisStart];return t?h-g:g-h}).filter(function(d,f,h){return Wt(d)[a.crossAxisStart]===Wt(h[0])[a.crossAxisStart]});if(!u.length)return null;if(u.length===1)return u[0];var c=u.filter(function(d){var f=In(Wt(d)[a.start],Wt(d)[a.end]);return f(n[a.line])});return c.length===1?c[0]:c.length>1?c.sort(function(d,f){return Wt(d)[a.start]-Wt(f)[a.start]}
2327)[0]:u.sort(function(d,f){var h=CC(n,bC(Wt(d))),g=CC(n,bC(Wt(f)));return h!==g?h-g:Wt(d)[a.start]-Wt(f)[a.start]})[0]},_C=function(t,n){var r=t.page.borderBox.center;return ai(t.descriptor.id,n)?an(r,n.displacedBy.point):r},F6=function(t,n){var r=t.page.borderBox;return ai(t.descriptor.id,n)?pl(r,as(n.displacedBy.point)):r},B6=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,s=i.filter(function(a){return jS({target:F6(a,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(a,l){var u=Aa(t,yh(r,_C(a,o))),c=Aa(t,yh(r,_C(l,o)));return u<c?-1:c<u?1:a.descriptor.index-l.descriptor.index});return s[0]||null},hl=Lt(function(t,n){var r=n[t.line];return{value:r,point:qi(t.line,r)}}),j6=function(t,n,r){var i=t.axis;if(t.descriptor.mode==="virtual")return qi(i.line,n[i.line]);var o=t.subject.page.contentBox[i.size],s=ls(t.descriptor.id,r),a=s.reduce(function(c,d){return c+d.client.marginBox[i.size]},0),l=a+n[i.line],u=l-o;return u<=0?null:qi(i.line,u)},WS=function(t,n){return le({},t,{scroll:le({},t.scroll,{max:n})})},HS=function(t,n,r){var i=t.frame;us(n,t)&&H(),t.subject.withPlaceholder&&H();var o=hl(t.axis,n.displaceBy).point,s=j6(t,o,r),a={placeholderSize:o,increasedBy:s,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!i){var l=Yo({page:t.subject.page,withPlaceholder:a,axis:t.axis,frame:t.frame});return le({},t,{subject:l})}var u=s?Nt(i.scroll.max,s):i.scroll.max,c=WS(i,u),d=Yo({page:t.subject.page,withPlaceholder:a,axis:t.axis,frame:c});return le({},t,{subject:d,frame:c})},z6=function(t){var n=t.subject.withPlaceholder;n||H();var r=t.frame;if(!r){var i=Yo({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return le({},t,{subject:i})}var o=n.oldFrameMaxScroll;o||H();var s=WS(r,o),a=Yo({page:t.subject.page,axis:t.axis,frame:s,withPlaceholder:null});return le({},t,{subject:a,frame:s})},U6=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,s=e.destination,a=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:Oa,displacedBy:OS,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:0}}},c=bd({impact:u,draggable:i,droppable:s,draggables:o,afterCritical:l}),d=us(i,s)?s:HS(s,i,o),f=$S({draggable:i,destination:d,newPageBorderBoxCenter:c,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return f?u:null}var h=t[s.axis.line]<=n.page.borderBox.center[s.axis.line],g=function(){var w=n.descriptor.index;return n.descriptor.id===i.descriptor.id||h?w:w+1}(),v=hl(s.axis,i.displaceBy);return gc({draggable:i,insideDestination:r,destination:s,viewport:a,displacedBy:v,last:Oa,index:g})},$6=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,s=e.droppables,a=e.viewport,l=e.afterCritical,u=O6({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:s,viewport:a});if(!u)return null;var c=ls(u.descriptor.id,o),d=B6({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:l}),f=U6({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:l});if(!f)return null;var h=bd({impact:f,draggable:r,droppable:u,draggables:o,afterCritical:l}
2327),g=Hm({pageBorderBoxCenter:h,draggable:r,viewport:a});return{clientSelection:g,impact:f,scrollJumpRequest:null}},dn=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},W6=function(t,n){var r=dn(t);return r?n[r]:null},H6=function(e){var t=e.state,n=e.type,r=W6(t.impact,t.dimensions.droppables),i=!!r,o=t.dimensions.droppables[t.critical.droppable.id],s=r||o,a=s.axis.direction,l=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(l&&!i)return null;var u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,h=f.draggables,g=f.droppables;return l?A6({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:s,draggables:h,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):$6({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:s,draggables:h,droppables:g,viewport:t.viewport,afterCritical:t.afterCritical})};function bi(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function VS(e){var t=In(e.top,e.bottom),n=In(e.left,e.right);return function(i){return t(i.y)&&n(i.x)}}function V6(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function G6(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(s){var a=s.axis,l=qi(s.axis.line,t.center[a.line],s.page.borderBox.center[a.crossAxisLine]);return{id:s.descriptor.id,distance:Aa(i,l)}}).sort(function(s,a){return a.distance-s.distance});return o[0]?o[0].id:null}function q6(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=vd(r).filter(function(o){if(!o.isEnabled)return!1;var s=o.subject.active;if(!s||!V6(t,s))return!1;if(VS(s)(t.center))return!0;var a=o.axis,l=s.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=In(s[a.crossAxisStart],s[a.crossAxisEnd]),f=d(u),h=d(c);return!f&&!h?!0:f?u<l:c>l});return i.length?i.length===1?i[0].descriptor.id:G6({pageBorderBox:t,draggable:n,candidates:i}):null}var GS=function(t,n){return Bn(pl(t,n))},Y6=function(e,t){var n=e.frame;return n?GS(t,n.scroll.diff.value):t};function qS(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function K6(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var Q6=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,a=e.afterCritical,l=r.axis,u=hl(r.axis,n.displaceBy),c=u.value,d=t[l.start],f=t[l.end],h=Cd(n,i),g=di(h,function(w){var C=w.descriptor.id,y=w.page.borderBox.center[l.line],b=ai(C,a),x=qS({displaced:o,id:C});return b?x?f<=y:d<y-c:x?f<=y+c:d<y}),v=K6({draggable:n,closest:g,inHomeList:us(n,r)});return gc({draggable:n,insideDestination:i,destination:r,viewport:s,last:o,displacedBy:u,index:v})},Z6=4,X6=function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,s=e.afterCritical;if(!i.isCombineEnabled)return null;var a=i.axis,l=hl(i.axis,t.displaceBy),u=l.value,c=n[a.start],d=n[a.end],f=Cd(t,o),h=di(f,function(v){var w=v.descriptor.id,C=v.page.borderBox,y=C[a.size],b=y/Z6,x=ai(w,s),S=qS({displaced:r.displaced,id:w});return x?S?d>C[a.start]+b&&d<C[a.end]-b:c>C[a.start]-u+b&&c<C[a.end]-u-b:S?d>C[a.start]+u+b&&d<C[a.end]+u-b:c>C[a.start]+b&&c<C[a.end]-b});if(!h)return null;var g={displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:h.descriptor.id,droppableId:i.descriptor.id}}};return g},YS=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,s=e.viewport,a=e.afterCritical,l=GS(n.page.borderBox,t),u=q6({pageBorderBox:l,draggable:n,droppables:i});if(!u)return f6;var c=i[u],d=ls(c.descriptor.id,r),f=Y6(c,l);return X6({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:o,destination:c,insideDestination:d,afterCritical:a})||Q6({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:o.displaced,viewport:s,afterCritical:a})},Vm=function(e,t){var n;return le({},e,(n={},n[t.descriptor.id]=t,n))},J6=function(t){var n=t.previousImpact,r=t.impact,i=t.droppables,o=dn(n),s=dn(r);if(!o||o===s)return i;var a=i[o];if(!a.subject.withPlaceholder)return i;var l=z6(a);return Vm(i,l)},e5=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,s=J6({previousImpact:i,impact:o,droppables:r}),a=dn(o);if(!a)return s;var l=r[a];if(us(t,l)||l.subject.withPlaceholder)return s;var u=HS(l,t,n);return Vm(s,u)},Xs=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,o=e.impact,s=e.scrollJumpRequest,a=i||t.viewport,l=r||t.dimensions,u=n||t.current.client.selection,c=an(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:Nt(t.initial.client.borderBoxCenter,c)},f={selection:Nt(d.selection,a.scroll.current),borderBoxCenter:Nt(d.borderBoxCenter,a.scroll.current),offset:Nt(d.offset,a.scroll.diff.value)},h={client:d,page:f};if(t.phase==="COLLECTING")return le({phase:"COLLECTING"}
2327,t,{dimensions:l,viewport:a,current:h});var g=l.draggables[t.critical.draggable.id],v=o||YS({pageOffset:f.offset,draggable:g,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),w=e5({draggable:g,impact:v,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables}),C=le({},t,{current:h,dimensions:{draggables:l.draggables,droppables:w},impact:v,viewport:a,scrollJumpRequest:s||null,forceShouldAnimate:s?!1:null});return C};function t5(e,t){return e.map(function(n){return t[n]})}var KS=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,o=e.forceShouldAnimate,s=t.displaced,a=t5(s.all,r),l=Fa({afterDragging:a,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:s});return le({},t,{displaced:l})},QS=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,s=e.afterCritical,a=bd({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:s});return Hm({pageBorderBoxCenter:a,draggable:n,viewport:o})},ZS=function(e){var t=e.state,n=e.dimensions,r=e.viewport;t.movementMode!=="SNAP"&&H();var i=t.impact,o=r||t.viewport,s=n||t.dimensions,a=s.draggables,l=s.droppables,u=a[t.critical.draggable.id],c=dn(i);c||H();var d=l[c],f=KS({impact:i,viewport:o,destination:d,draggables:a}),h=QS({impact:f,draggable:u,droppable:d,draggables:a,viewport:o,afterCritical:t.afterCritical});return Xs({impact:f,clientSelection:h,state:t,dimensions:s,viewport:o})},n5=function(e){return{index:e.index,droppableId:e.droppableId}},XS=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=hl(n.axis,t.displaceBy),s=ls(n.descriptor.id,r),a=s.indexOf(t);a===-1&&H();var l=s.slice(a+1),u=l.reduce(function(h,g){return h[g.descriptor.id]=!0,h},{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:o,effected:u},d=Fa({afterDragging:l,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),f={displaced:d,displacedBy:o,at:{type:"REORDER",destination:n5(t.descriptor)}};return{impact:f,afterCritical:c}},r5=function(e,t){return{draggables:e.draggables,droppables:Vm(e.droppables,t)}},i5=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=cc(t.client,n),o=dc(i,r),s=le({},t,{placeholder:le({},t.placeholder,{client:i}),client:i,page:o});return s},o5=function(e){var t=e.frame;return t||H(),t},s5=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map(function(o){var s=o.descriptor.droppableId,a=n[s],l=o5(a),u=l.scroll.diff.value,c=Nt(i,u),d=i5({draggable:o,offset:c,initialWindowScroll:r.scroll.initial});return d})},a5=function(e){var t=e.state,n=e.published,r=n.modified.map(function(b){var x=t.dimensions.droppables[b.droppableId],S=Bm(x,b.scroll);return S}),i=le({},t.dimensions.droppables,{},RS(r)),o=AS(s5({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=le({},t.dimensions.draggables,{},o);n.removals.forEach(function(b){delete s[b]});var a={droppables:i,draggables:s},l=dn(t.impact),u=l?a.droppables[l]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],f=XS({draggable:c,home:d,draggables:s,viewport:t.viewport}),h=f.impact,g=f.afterCritical,v=u&&u.isCombineEnabled?t.impact:h,w=YS({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:v,viewport:t.viewport,afterCritical:g}),C=le({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:w,onLiftImpact:h,dimensions:a,afterCritical:g,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return C;var y=le({phase:"DROP_PENDING"},C,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return y},Ch=function(t){return t.movementMode==="SNAP"},Ef=function(t,n,r){var i=r5(t.dimensions,n);return!Ch(t)||r?Xs({state:t,dimensions:i}):ZS({state:t,dimensions:i})};function Sf(e){return e.isDragging&&e.movementMode==="SNAP"?le({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var LC={phase:"IDLE",completed:null,shouldFlush:!1},l5=function(e,t){if(e===void 0&&(e=LC),t.type==="FLUSH")return le({},LC,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&H();var n=t.payload,r=n.critical,i=n.clientSelection,o=n.viewport,s=n.dimensions,a=n.movementMode,l=s.draggables[r.draggable.id],u=s.droppables[r.droppable.
2327id],c={selection:i,borderBoxCenter:l.client.borderBox.center,offset:It},d={client:c,page:{selection:Nt(c.selection,o.scroll.initial),borderBoxCenter:Nt(c.selection,o.scroll.initial),offset:Nt(c.selection,o.scroll.diff.value)}},f=vd(s.droppables).every(function(Te){return!Te.isFixedOnPage}),h=XS({draggable:l,home:u,draggables:s.draggables,viewport:o}),g=h.impact,v=h.afterCritical,w={phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:s,initial:d,current:d,isWindowScrollAllowed:f,impact:g,afterCritical:v,onLiftImpact:g,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null};return w}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&H();var C=le({phase:"COLLECTING"},e,{phase:"COLLECTING"});return C}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||H(),a5({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;bi(e)||H();var y=t.payload.client;return Qr(y,e.current.client.selection)?e:Xs({state:e,clientSelection:y,impact:Ch(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Sf(e);bi(e)||H();var b=t.payload,x=b.id,S=b.newScroll,E=e.dimensions.droppables[x];if(!E)return e;var L=Bm(E,S);return Ef(e,L,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;bi(e)||H();var _=t.payload,P=_.id,I=_.isEnabled,R=e.dimensions.droppables[P];R||H(),R.isEnabled===I&&H();var q=le({},R,{isEnabled:I});return Ef(e,q,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;bi(e)||H();var V=t.payload,z=V.id,Z=V.isCombineEnabled,Q=e.dimensions.droppables[z];Q||H(),Q.isCombineEnabled===Z&&H();var F=le({},Q,{isCombineEnabled:Z});return Ef(e,F,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;bi(e)||H(),e.isWindowScrollAllowed||H();var D=t.payload.newScroll;if(Qr(e.viewport.scroll.current,D))return Sf(e);var B=US(e.viewport,D);return Ch(e)?ZS({state:e,viewport:B}):Xs({state:e,viewport:B})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!bi(e))return e;var O=t.payload.maxScroll;if(Qr(O,e.viewport.scroll.max))return e;var U=le({},e.viewport,{scroll:le({},e.viewport.scroll,{max:O})});return le({phase:"DRAGGING"},e,{viewport:U})}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&H();var X=H6({state:e,type:t.type});return X?Xs({state:e,impact:X.impact,clientSelection:X.clientSelection,scrollJumpRequest:X.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var fe=t.payload.reason;e.phase!=="COLLECTING"&&H();var ue=le({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:fe});return ue}if(t.type==="DROP_ANIMATE"){var ge=t.payload,N=ge.completed,pe=ge.dropDuration,Ne=ge.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||H();var ne={phase:"DROP_ANIMATING",completed:N,dropDuration:pe,newHomeClientOffset:Ne,dimensions:e.dimensions};return ne}if(t.type==="DROP_COMPLETE"){var we=t.payload.completed;return{phase:"IDLE",completed:we,shouldFlush:!1}}return e},u5=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},c5=function(t){return{type:"LIFT",payload:t}},d5=function(t){return{type:"INITIAL_PUBLISH",payload:t}},f5=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},p5=function(){return{type:"COLLECTION_STARTING",payload:null}},h5=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},g5=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},m5=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},JS=function(t){return{type:"MOVE",payload:t}},v5=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},y5=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},C5=function(){return{type:"MOVE_UP",payload:null}},b5=function(){return{type:"MOVE_DOWN",payload:null}},w5=function(){return{type:"MOVE_RIGHT",payload:null}},x5=function(){return{type:"MOVE_LEFT",payload:null}},Gm=function(){return{type:"FLUSH",payload:null}},E5=function(t){return{type:"DROP_ANIMATE",payload:t}},qm=function(t){return{type:"DROP_COMPLETE",payload:t}},e_=function(t){return{type:"DROP",payload:t}},S5=function(t){return{type:"DROP_PENDING",payload:t}},t_=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},_5=function(e){return function(t){var n=t.getState,r=t.dispatch;
2327return function(i){return function(o){if(o.type!=="LIFT"){i(o);return}var s=o.payload,a=s.id,l=s.clientSelection,u=s.movementMode,c=n();c.phase==="DROP_ANIMATING"&&r(qm({completed:c.completed})),n().phase!=="IDLE"&&H(),r(Gm()),r(u5({draggableId:a,movementMode:u}));var d={shouldPublishImmediately:u==="SNAP"},f={draggableId:a,scrollOptions:d},h=e.startPublishing(f),g=h.critical,v=h.dimensions,w=h.viewport;r(d5({critical:g,dimensions:v,clientSelection:l,movementMode:u,viewport:w}))}}}},L5=function(e){return function(){return function(t){return function(n){n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)}}}},Ym={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ba={opacity:{drop:0,combining:.7},scale:{drop:.75}},Km={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},gi=Km.outOfTheWay+"s "+Ym.outOfTheWay,Js={fluid:"opacity "+gi,snap:"transform "+gi+", opacity "+gi,drop:function(t){var n=t+"s "+Ym.drop;return"transform "+n+", opacity "+n},outOfTheWay:"transform "+gi,placeholder:"height "+gi+", width "+gi+", margin "+gi},IC=function(t){return Qr(t,It)?null:"translate("+t.x+"px, "+t.y+"px)"},bh={moveTo:IC,drop:function(t,n){var r=IC(t);return r?n?r+" scale("+Ba.scale.drop+")":r:null}},wh=Km.minDropTime,n_=Km.maxDropTime,I5=n_-wh,kC=1500,k5=.6,P5=function(e){var t=e.current,n=e.destination,r=e.reason,i=Aa(t,n);if(i<=0)return wh;if(i>=kC)return n_;var o=i/kC,s=wh+I5*o,a=r==="CANCEL"?s*k5:s;return Number(a.toFixed(2))},M5=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,a=r.droppables,l=dn(t),u=l?a[l]:null,c=a[n.descriptor.droppableId],d=QS({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:u||c,viewport:i}),f=an(d,n.client.borderBox.center);return f},D5=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;if(!r.at||n!=="DROP"){var a=KS({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:a,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var l=le({},r,{displaced:Oa});return{impact:l,didDropInsideDroppable:!0}},N5=function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),s=i.payload.reason;if(o.phase==="COLLECTING"){n(S5({reason:s}));return}if(o.phase!=="IDLE"){var a=o.phase==="DROP_PENDING"&&o.isWaiting;a&&H(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||H();var l=o.critical,u=o.dimensions,c=u.draggables[o.critical.draggable.id],d=D5({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d.impact,h=d.didDropInsideDroppable,g=h?zm(f):null,v=h?yd(f):null,w={index:l.draggable.index,droppableId:l.droppable.id},C={draggableId:c.descriptor.id,type:c.descriptor.type,source:w,reason:s,mode:o.movementMode,destination:g,combine:v},y=M5({impact:f,draggable:c,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:C,impact:f},x=!Qr(o.current.client.offset,y)||!!C.combine;if(!x){n(qm({completed:b}));return}var S=P5({current:o.current.client.offset,destination:y,reason:s}),E={newHomeClientOffset:y,dropDuration:S,completed:b};n(E5(E))}}}},r_=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function T5(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function R5(e){var t=e.onWindowScroll;function n(){t(r_())}var r=Ra(n),i=T5(r),o=Kr;function s(){return o!==Kr}function a(){s()&&H(),o=_n(window,[i])}function l(){s()||H(),r.cancel(),o(),o=Kr}return{start:a,stop:l,isActive:s}}var A5=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},O5=function(e){var t=R5({onWindowScroll:function(r){e.dispatch(v5({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&A5(r)&&t.stop(),n(r)}}},F5=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(s){t||n||(t=!0,e(s),clearTimeout(r))};return i.wasCalled=function(){return t},i},B5=function(){var e=[],t=function(o){var s=jm(e,function(u){return u.timerId===o});s===-1&&H();var a=e.splice(s,1),l=a[0];l.callback()},n=function(o){var s=setTimeout(function(){return t(s)}),a={timerId:s,callback:o};e.push(a)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(s){clearTimeout(s.timerId),s.callback()})}};return{add:n,flush:r}},j5=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},z5=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},U5=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.
2327id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},Ls=function(t,n){n()},Vl=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},_f=function(t,n,r,i){if(!t){r(i(n));return}var o=F5(r),s={announce:o};t(n,s),o.wasCalled()||r(i(n))},$5=function(e,t){var n=B5(),r=null,i=function(f,h){r&&H(),Ls("onBeforeCapture",function(){var g=e().onBeforeCapture;if(g){var v={draggableId:f,mode:h};g(v)}})},o=function(f,h){r&&H(),Ls("onBeforeDragStart",function(){var g=e().onBeforeDragStart;g&&g(Vl(f,h))})},s=function(f,h){r&&H();var g=Vl(f,h);r={mode:h,lastCritical:f,lastLocation:g.source,lastCombine:null},n.add(function(){Ls("onDragStart",function(){return _f(e().onDragStart,g,t,du.onDragStart)})})},a=function(f,h){var g=zm(h),v=yd(h);r||H();var w=!U5(f,r.lastCritical);w&&(r.lastCritical=f);var C=!j5(r.lastLocation,g);C&&(r.lastLocation=g);var y=!z5(r.lastCombine,v);if(y&&(r.lastCombine=v),!(!w&&!C&&!y)){var b=le({},Vl(f,r.mode),{combine:v,destination:g});n.add(function(){Ls("onDragUpdate",function(){return _f(e().onDragUpdate,b,t,du.onDragUpdate)})})}},l=function(){r||H(),n.flush()},u=function(f){r||H(),r=null,Ls("onDragEnd",function(){return _f(e().onDragEnd,f,t,du.onDragEnd)})},c=function(){if(r){var f=le({},Vl(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});u(f)}};return{beforeCapture:i,beforeStart:o,start:s,update:a,flush:l,drop:u,abort:c}},W5=function(e,t){var n=$5(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var s=o.payload.critical;n.beforeStart(s,o.payload.movementMode),i(o),n.start(s,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var a=o.payload.completed.result;n.flush(),i(o),n.drop(a);return}if(i(o),o.type==="FLUSH"){n.abort();return}var l=r.getState();l.phase==="DRAGGING"&&n.update(l.critical,l.impact)}}}},H5=function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&H(),e.dispatch(qm({completed:r.completed}))}}},V5=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var l=e.getState();l.phase==="DROP_ANIMATING"&&e.dispatch(t_())}};n=requestAnimationFrame(function(){n=null,t=_n(window,[s])})}}}},G5=function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}},q5=function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},Y5=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},K5=function(e){return function(t){return function(n){return function(r){if(Y5(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&H(),e.start(i);return}n(r),e.scroll(t.getState())}}}},Q5=function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(e_({reason:r.reason})))}}}},Z5=uS,X5=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return lS(l5,Z5(BA(L5(r),G5(t),_5(t),N5,H5,V5,Q5,K5(s),O5,q5(n),W5(i,o))))},Lf=function(){return{additions:{},removals:{},modified:{}}};function J5(e){var t=e.registry,n=e.callbacks,r=Lf(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var c=r,d=c.additions,f=c.removals,h=c.modified,g=Object.keys(d).map(function(C){return t.draggable.getById(C).getDimension(It)}).sort(function(C,y){return C.descriptor.index-y.descriptor.index}),v=Object.keys(h).map(function(C){var y=t.droppable.getById(C),b=y.callbacks.getScrollWhileDragging();return{droppableId:C,scroll:b}}),w={additions:g,removals:Object.keys(f),modified:v};r=Lf(),n.publish(w)}))},s=function(c){var d=c.descriptor.id;r.additions[d]=c,r.modified[c.descriptor.droppableId]=!0,r.removals[d]&&delete r.removals[d],o()},a=function(c){var d=c.descriptor;r.removals[d.id]=!0,r.modified[d.droppableId]=!0,r.additions[d.id]&&delete r.additions[d.id],o()},l=function(){i&&(cancelAnimationFrame(i),i=null,r=Lf())};return{add:s,remove:a,stop:l}}var i_=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=an({x:n,y:t},{x:i,y:r}),s={x:Math.max(0,o.x),y:Math.max(0,o.y)};return s},o_=function(){var e=document.documentElement;return e||H(),e},s_=function(){var e=o_(),t=i_({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},e8=function(){var e=r_(),t=s_(),n=e.y,r=e.x,i=o_(),o=i.clientWidth,s=i.clientHeight,a=r+o,l=n+s,u=Bn({top:n,left:r,right:a,bottom:l}),c={frame:u,scroll:{initial:e,current:e,max:t,diff:{value:It,displacement:It}}};return c},t8=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=e8(),o=i.scroll.current,s=t.droppable,a=r.droppable.getAllByType(s.type).map(function(d){return d.callbacks.getDimensionAndWatchScroll(o,n)}),l=r.draggable.getAllByType(t.draggable.type).map(function(d){return d.getDimension(o)}),u={draggables:AS(l),droppables:RS(a)},c={dimensions:u,critical:t,viewport:i};return c};
2327function PC(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var n8=function(e,t){var n=null,r=J5({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(h,g){e.droppable.exists(h)||H(),n&&t.updateDroppableIsEnabled({id:h,isEnabled:g})},o=function(h,g){n&&(e.droppable.exists(h)||H(),t.updateDroppableIsCombineEnabled({id:h,isCombineEnabled:g}))},s=function(h,g){n&&(e.droppable.exists(h)||H(),t.updateDroppableScroll({id:h,newScroll:g}))},a=function(h,g){n&&e.droppable.getById(h).callbacks.scroll(g)},l=function(){if(n){r.stop();var h=n.critical.droppable;e.droppable.getAllByType(h.type).forEach(function(g){return g.callbacks.dragStopped()}),n.unsubscribe(),n=null}},u=function(h){n||H();var g=n.critical.draggable;h.type==="ADDITION"&&PC(e,g,h.value)&&r.add(h.value),h.type==="REMOVAL"&&PC(e,g,h.value)&&r.remove(h.value)},c=function(h){n&&H();var g=e.draggable.getById(h.draggableId),v=e.droppable.getById(g.descriptor.droppableId),w={draggable:g.descriptor,droppable:v.descriptor},C=e.subscribe(u);return n={critical:w,unsubscribe:C},t8({critical:w,registry:e,scrollOptions:h.scrollOptions})},d={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:a,updateDroppableScroll:s,startPublishing:c,stopPublishing:l};return d},a_=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},r8=function(e){window.scrollBy(e.x,e.y)},i8=Lt(function(e){return vd(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),o8=function(t,n){var r=di(i8(n),function(i){return i.frame||H(),VS(i.frame.pageMarginBox)(t)});return r},s8=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=o8(t,r);return o},Zr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},a8=function(e,t){var n=e[t.size]*Zr.startFromPercentage,r=e[t.size]*Zr.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},l_=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,s=o/i;return s},Qm=1,l8=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Zr.maxPixelScroll;if(e===t.startScrollingFrom)return Qm;var n=l_({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=Zr.maxPixelScroll*Zr.ease(r);return Math.ceil(i)},MC=Zr.durationDampening.accelerateAt,DC=Zr.durationDampening.stopDampeningAt,u8=function(e,t){var n=t,r=DC,i=Date.now(),o=i-n;if(o>=DC)return e;if(o<MC)return Qm;var s=l_({startOfRange:MC,endOfRange:r,current:o}),a=e*Zr.ease(s);return Math.ceil(a)},NC=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=l8(t,n);return o===0?0:i?Math.max(u8(o,r),Qm):o},TC=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,s=a8(t,i),a=n[i.end]<n[i.start];return a?NC({distanceToEdge:n[i.end],thresholds:s,dragStartTime:r,shouldUseTimeDampening:o}):-1*NC({distanceToEdge:n[i.start],thresholds:s,dragStartTime:r,shouldUseTimeDampening:o})},c8=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}},d8=NS(function(e){return e===0?0:e}),u_=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},a=TC({container:n,distanceToEdges:s,dragStartTime:t,axis:Um,shouldUseTimeDampening:o}),l=TC({container:n,distanceToEdges:s,dragStartTime:t,axis:BS,shouldUseTimeDampening:o}),u=d8({x:l,y:a});if(Qr(u,It))return null;var c=c8({container:n,subject:r,proposedScroll:u});return c?Qr(c,It)?null:c:null},f8=NS(function(e){return e===0?0:e>0?1:-1}),Zm=function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Nt(n,i),s={x:e(o.x,r.x),y:e(o.y,r.y)};return Qr(s,It)?null:s}}(),c_=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},s=f8(i),a=Zm({max:o,current:r,change:s});return!a||s.x!==0&&a.x===0||s.y!==0&&a.y===0},Xm=function(t,n){return c_({current:t.scroll.current,max:t.scroll.max,change:n})},p8=function(t,n){if(!Xm(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return Zm({current:i,max:r,change:n})},Jm=function(t,n){var r=t.frame;return r?c_({current:r.scroll.current,max:r.scroll.max,change:n}):!1},h8=function(t,n){var r=t.frame;return!r||!Jm(t,n)?null:Zm({current:r.scroll.current,max:r.scroll.max,change:n})},g8=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=u_({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return s&&Xm(t,s)?s:null},m8=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var a=u_({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return a&&Jm(t,a)?a:null},RC=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id],l=a.page.marginBox;if(t.isWindowScrollAllowed){var u=t.viewport,c=g8({dragStartTime:n,viewport:u,subject:l,center:s,shouldUseTimeDampening:r});if(c){i(c);return}}var d=s8({center:s,destination:dn(t.impact),droppables:t.dimensions.droppables});if(d){var f=m8({dragStartTime:n,droppable:d,subject:l,center:s,shouldUseTimeDampening:r});f&&o(d.descriptor.id,f)}},v8=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=Ra(t),i=Ra(n),o=null,s=function(c){o||H();var d=o,f=d.shouldUseTimeDampening,h=d.dragStartTime;RC({state:c,scrollWindow:r,scrollDroppable:i,dragStartTime:h,shouldUseTimeDampening:f})},a=function(c){o&&H();var d=Date.now(),f=!1,h=function(){f=!0};RC({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&s(c)},l=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:a,stop:l,scroll:s}},y8=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(u,c){var d=Nt(u.current.client.selection,c);t({client:d})}
2327,o=function(u,c){if(!Jm(u,c))return c;var d=h8(u,c);if(!d)return n(u.descriptor.id,c),null;var f=an(c,d);n(u.descriptor.id,f);var h=an(c,f);return h},s=function(u,c,d){if(!u||!Xm(c,d))return d;var f=p8(c,d);if(!f)return r(d),null;var h=an(d,f);r(h);var g=an(d,h);return g},a=function(u){var c=u.scrollJumpRequest;if(c){var d=dn(u.impact);d||H();var f=o(u.dimensions.droppables[d],c);if(f){var h=u.viewport,g=s(u.isWindowScrollAllowed,h,f);g&&i(u,g)}}};return a},C8=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=v8({scrollWindow:n,scrollDroppable:t}),o=y8({move:r,scrollWindow:n,scrollDroppable:t}),s=function(u){if(u.phase==="DRAGGING"){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},a={scroll:s,start:i.start,stop:i.stop};return a},Ko="data-rbd",Qo=function(){var e=Ko+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),xh=function(){var e=Ko+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),b8=function(){var e=Ko+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),AC={contextId:Ko+"-scroll-container-context-id"},w8=function(t){return function(n){return"["+n+'="'+t+'"]'}},Is=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},x8="pointer-events: none;",E8=function(e){var t=w8(e),n=function(){var a=`
2328      cursor: -webkit-grab;
2329      cursor: grab;
2330    `;return{selector:t(Qo.contextId),styles:{always:`
2331          -webkit-touch-callout: none;
2332          -webkit-tap-highlight-color: rgba(0,0,0,0);
2333          touch-action: manipulation;
2334        `,resting:a,dragging:x8,dropAnimating:a}}}(),r=function(){var a=`
2335      transition: `+Js.outOfTheWay+`;
2336    `;return{selector:t(xh.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}}(),i={selector:t(b8.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:`
2337        cursor: grabbing;
2338        cursor: -webkit-grabbing;
2339        user-select: none;
2340        -webkit-user-select: none;
2341        -moz-user-select: none;
2342        -ms-user-select: none;
2343        overflow-anchor: none;
2344      `}},s=[r,n,i,o];return{always:Is(s,"always"),resting:Is(s,"resting"),dragging:Is(s,"dragging"),dropAnimating:Is(s,"dropAnimating"),userCancel:Is(s,"userCancel")}},fn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?p.useLayoutEffect:p.useEffect,If=function(){var t=document.querySelector("head");return t||H(),t},OC=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function S8(e,t){var n=Oe(function(){return E8(e)},[e]),r=p.useRef(null),i=p.useRef(null),o=ie(Lt(function(d){var f=i.current;f||H(),f.textContent=d}),[]),s=ie(function(d){var f=r.current;f||H(),f.textContent=d},[]);fn(function(){!r.current&&!i.current||H();var d=OC(t),f=OC(t);return r.current=d,i.current=f,d.setAttribute(Ko+"-always",e),f.setAttribute(Ko+"-dynamic",e),If().appendChild(d),If().appendChild(f),s(n.always),o(n.resting),function(){var h=function(v){var w=v.current;w||H(),If().removeChild(w),v.current=null};h(r),h(i)}},[t,s,o,n.always,n.resting,e]);var a=ie(function(){return o(n.dragging)},[o,n.dragging]),l=ie(function(d){if(d==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),u=ie(function(){i.current&&o(n.resting)},[o,n.resting]),c=Oe(function(){return{dragging:a,dropping:l,resting:u}},[a,l,u]);return c}var d_=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function wd(e){return e instanceof d_(e).HTMLElement}function _8(e,t){var n="["+Qo.contextId+'="'+e+'"]',r=TS(document.querySelectorAll(n));if(!r.length)return null;var i=di(r,function(o){return o.getAttribute(Qo.draggableId)===t});return!i||!wd(i)?null:i}function L8(e){var t=p.useRef({}),n=p.useRef(null),r=p.useRef(null),i=p.useRef(!1),o=ie(function(f,h){var g={id:f,focus:h};return t.current[f]=g,function(){var w=t.current,C=w[f];C!==g&&delete w[f]}},[]),s=ie(function(f){var h=_8(e,f);h&&h!==document.activeElement&&h.focus()},[e]),a=ie(function(f,h){n.current===f&&(n.current=h)},[]),l=ie(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var f=n.current;f&&s(f)}))},[s]),u=ie(function(f){n.current=null;var h=document.activeElement;h&&h.getAttribute(Qo.draggableId)===f&&(n.current=f)},[]);fn(function(){return i.current=!0,function(){i.current=!1;var f=r.current;f&&cancelAnimationFrame(f)}},[]);var c=Oe(function(){return{register:o,tryRecordFocus:u,tryRestoreFocusRecorded:l,tryShiftRecord:a}},[o,u,l,a]);return c}function I8(){var e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){var h=t.indexOf(d);h!==-1&&t.splice(h,1)}}function r(d){t.length&&t.forEach(function(f){return f(d)})}function i(d){return e.draggables[d]||null}function o(d){var f=i(d);return f||H(),f}var s={register:function(f){e.draggables[f.descriptor.id]=f,r({type:"ADDITION",value:f})},update:function(f,h){var g=e.draggables[h.descriptor.id];g&&g.uniqueId===f.uniqueId&&(delete e.draggables[h.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:function(f){var h=f.descriptor.id,g=i(h);g&&f.uniqueId===g.uniqueId&&(delete e.draggables[h],r({type:"REMOVAL",value:f}))},getById:o,findById:i,exists:function(f){return!!i(f)},getAllByType:function(f){return hc(e.draggables).filter(function(h){return h.descriptor.type===f})}};function a(d){return e.droppables[d]||null}function l(d){var f=a(d);return f||H(),f}var u={register:function(f){e.droppables[f.descriptor.id]=f},unregister:function(f){var h=a(f.descriptor.id);h&&f.uniqueId===h.uniqueId&&delete e.droppables[f.descriptor.id]},getById:l,findById:a,exists:function(f){return!!a(f)},getAllByType:function(f){return hc(e.droppables).filter(function(h){return h.descriptor.type===f})}};function c(){e.draggables={},e.droppables={},t.length=0}
2344return{draggable:s,droppable:u,subscribe:n,clean:c}}function k8(){var e=Oe(I8,[]);return p.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var ev=de.createContext(null),mc=function(){var e=document.body;return e||H(),e},P8={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},M8=function(t){return"rbd-announcement-"+t};function D8(e){var t=Oe(function(){return M8(e)},[e]),n=p.useRef(null);p.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),le(o.style,P8),mc().appendChild(o),function(){setTimeout(function(){var l=mc();l.contains(o)&&l.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=ie(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var N8=0,T8={separator:"::"};function tv(e,t){return t===void 0&&(t=T8),Oe(function(){return""+e+t.separator+N8++},[t.separator,e])}function R8(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function A8(e){var t=e.contextId,n=e.text,r=tv("hidden-text",{separator:"-"}),i=Oe(function(){return R8({contextId:t,uniqueId:r})},[r,t]);return p.useEffect(function(){var s=document.createElement("div");return s.id=i,s.textContent=n,s.style.display="none",mc().appendChild(s),function(){var l=mc();l.contains(s)&&l.removeChild(s)}},[i,n]),i}var xd=de.createContext(null);function f_(e){var t=p.useRef(e);return p.useEffect(function(){t.current=e}),t}function O8(){var e=null;function t(){return!!e}function n(s){return s===e}function r(s){e&&H();var a={abandon:s};return e=a,a}function i(){e||H(),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var F8=9,B8=13,nv=27,p_=32,j8=33,z8=34,U8=35,$8=36,W8=37,H8=38,V8=39,G8=40,Gl,q8=(Gl={},Gl[B8]=!0,Gl[F8]=!0,Gl),h_=function(e){q8[e.keyCode]&&e.preventDefault()},Ed=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=di(t,function(r){return"on"+r in document});return n||e}(),g_=0,FC=5;function Y8(e,t){return Math.abs(t.x-e.x)>=FC||Math.abs(t.y-e.y)>=FC}var BC={type:"IDLE"};function K8(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(s){var a=s.button,l=s.clientX,u=s.clientY;if(a===g_){var c={x:l,y:u},d=r();if(d.type==="DRAGGING"){s.preventDefault(),d.actions.move(c);return}d.type!=="PENDING"&&H();var f=d.point;if(Y8(f,c)){s.preventDefault();var h=d.actions.fluidLift(c);i({type:"DRAGGING",actions:h})}}}},{eventName:"mouseup",fn:function(s){var a=r();if(a.type!=="DRAGGING"){t();return}s.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(s){r().type==="DRAGGING"&&s.preventDefault(),t()}},{eventName:"keydown",fn:function(s){var a=r();if(a.type==="PENDING"){t();return}if(s.keyCode===nv){s.preventDefault(),t();return}h_(s)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(s){var a=r();if(a.type==="IDLE"&&H(),a.actions.shouldRespectForcePress()){t();return}s.preventDefault()}},{eventName:Ed,fn:t}]}function Q8(e){var t=p.useRef(BC),n=p.useRef(Kr),r=Oe(function(){return{eventName:"mousedown",fn:function(d){if(!d.defaultPrevented&&d.button===g_&&!(d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)){var f=e.findClosestDraggableId(d);if(f){var h=e.tryGetLock(f,s,{sourceEvent:d});if(h){d.preventDefault();var g={x:d.clientX,y:d.clientY};n.current(),u(h,g)}}}}}},[e]),i=Oe(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(d){if(!d.defaultPrevented){var f=e.findClosestDraggableId(d);if(f){var h=e.findOptionsForDraggable(f);h&&(h.shouldRespectForcePress||e.canGetLock(f)&&d.preventDefault())}}}}},[e]),o=ie(function(){var d={passive:!1,capture:!0};n.current=_n(window,[i,r],d)},[i,r]),s=ie(function(){var c=t.current;c.type!=="IDLE"&&(t.current=BC,n.current(),o())},[o]),a=ie(function(){var c=t.current;s(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[s]),l=ie(function(){var d={capture:!0,passive:!1},f=K8({cancel:a,completed:s,getPhase:function(){return t.current},setPhase:function(g){t.current=g}});n.current=_n(window,f,d)},[a,s]),u=ie(function(d,f){t.current.type!=="IDLE"&&H(),t.current={type:"PENDING",point:f,actions:d},l()},[l]);fn(function(){return o(),function(){n.current()}},[o])}var ro;function Z8(){}var X8=(ro={},ro[z8]=!0,ro[j8]=!0,ro[$8]=!0,ro[U8]=!0,ro);function J8(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}
2344return[{eventName:"keydown",fn:function(o){if(o.keyCode===nv){o.preventDefault(),n();return}if(o.keyCode===p_){o.preventDefault(),r();return}if(o.keyCode===G8){o.preventDefault(),e.moveDown();return}if(o.keyCode===H8){o.preventDefault(),e.moveUp();return}if(o.keyCode===V8){o.preventDefault(),e.moveRight();return}if(o.keyCode===W8){o.preventDefault(),e.moveLeft();return}if(X8[o.keyCode]){o.preventDefault();return}h_(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ed,fn:n}]}function eF(e){var t=p.useRef(Z8),n=Oe(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==p_)return;var s=e.findClosestDraggableId(o);if(!s)return;var a=e.tryGetLock(s,c,{sourceEvent:o});if(!a)return;o.preventDefault();var l=!0,u=a.snapLift();t.current();function c(){l||H(),l=!1,t.current(),r()}t.current=_n(window,J8(u,c),{capture:!0,passive:!1})}}},[e]),r=ie(function(){var o={passive:!1,capture:!0};t.current=_n(window,[n],o)},[n]);fn(function(){return r(),function(){t.current()}},[r])}var kf={type:"IDLE"},tF=120,nF=.15;function rF(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===nv&&i.preventDefault(),t()}},{eventName:Ed,fn:t}]}function iF(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}s.hasMoved=!0;var a=o.touches[0],l=a.clientX,u=a.clientY,c={x:l,y:u};o.preventDefault(),s.actions.move(c)}},{eventName:"touchend",fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var s=r();s.type==="IDLE"&&H();var a=o.touches[0];if(a){var l=a.force>=nF;if(l){var u=s.actions.shouldRespectForcePress();if(s.type==="PENDING"){u&&t();return}if(u){if(s.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:Ed,fn:t}]}function oF(e){var t=p.useRef(kf),n=p.useRef(Kr),r=ie(function(){return t.current},[]),i=ie(function(h){t.current=h},[]),o=Oe(function(){return{eventName:"touchstart",fn:function(h){if(!h.defaultPrevented){var g=e.findClosestDraggableId(h);if(g){var v=e.tryGetLock(g,a,{sourceEvent:h});if(v){var w=h.touches[0],C=w.clientX,y=w.clientY,b={x:C,y};n.current(),d(v,b)}}}}}},[e]),s=ie(function(){var h={capture:!0,passive:!1};n.current=_n(window,[o],h)},[o]),a=ie(function(){var f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),i(kf),n.current(),s())},[s,i]),l=ie(function(){var f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=ie(function(){var h={capture:!0,passive:!1},g={cancel:l,completed:a,getPhase:r},v=_n(window,iF(g),h),w=_n(window,rF(g),h);n.current=function(){v(),w()}},[l,r,a]),c=ie(function(){var h=r();h.type!=="PENDING"&&H();var g=h.actions.fluidLift(h.point);i({type:"DRAGGING",actions:g,hasMoved:!1})},[r,i]),d=ie(function(h,g){r().type!=="IDLE"&&H();var v=setTimeout(c,tF);i({type:"PENDING",point:g,actions:h,longPressTimerId:v}),u()},[u,r,i,c]);fn(function(){return s(),function(){n.current();var g=r();g.type==="PENDING"&&(clearTimeout(g.longPressTimerId),i(kf))}},[r,s,i]),fn(function(){var h=_n(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return h},[])}var sF={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function m_(e,t){if(t==null)return!1;var n=!!sF[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:m_(e,t.parentElement)}function aF(e,t){var n=t.target;return wd(n)?m_(e,n):!1}var lF=function(e){return Bn(e.getBoundingClientRect()).center};function uF(e){return e instanceof d_(e).Element}var cF=function(){var e="matches";if(typeof document>"u")return e;
2344var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=di(t,function(r){return r in Element.prototype});return n||e}();function v_(e,t){return e==null?null:e[cF](t)?e:v_(e.parentElement,t)}function dF(e,t){return e.closest?e.closest(t):v_(e,t)}function fF(e){return"["+Qo.contextId+'="'+e+'"]'}function pF(e,t){var n=t.target;if(!uF(n))return null;var r=fF(e),i=dF(n,r);return!i||!wd(i)?null:i}function hF(e,t){var n=pF(e,t);return n?n.getAttribute(Qo.draggableId):null}function gF(e,t){var n="["+xh.contextId+'="'+e+'"]',r=TS(document.querySelectorAll(n)),i=di(r,function(o){return o.getAttribute(xh.id)===t});return!i||!wd(i)?null:i}function mF(e){e.preventDefault()}function ql(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function y_(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!a_(n.getState(),i))}function vF(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,a=e.sourceEvent,l=y_({lockAPI:t,store:r,registry:i,draggableId:o});if(!l)return null;var u=i.draggable.getById(o),c=gF(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&aF(c,a))return null;var d=t.claim(s||Kr),f="PRE_DRAG";function h(){return u.options.shouldRespectForcePress}function g(){return t.isActive(d)}function v(E,L){ql({expected:E,phase:f,isLockActive:g,shouldWarn:!0})&&r.dispatch(L())}var w=v.bind(null,"DRAGGING");function C(E){function L(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(L(),f!=="PRE_DRAG"&&H()),r.dispatch(c5(E.liftActionArgs)),f="DRAGGING";function _(P,I){if(I===void 0&&(I={shouldBlockNextClick:!1}),E.cleanup(),I.shouldBlockNextClick){var R=_n(window,[{eventName:"click",fn:mF,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(R)}L(),r.dispatch(e_({reason:P}))}return le({isActive:function(){return ql({expected:"DRAGGING",phase:f,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:h,drop:function(I){return _("DROP",I)},cancel:function(I){return _("CANCEL",I)}},E.actions)}function y(E){var L=Ra(function(P){w(function(){return JS({client:P})})}),_=C({liftActionArgs:{id:o,clientSelection:E,movementMode:"FLUID"},cleanup:function(){return L.cancel()},actions:{move:L}});return le({},_,{move:L})}function b(){var E={moveUp:function(){return w(C5)},moveRight:function(){return w(w5)},moveDown:function(){return w(b5)},moveLeft:function(){return w(x5)}};return C({liftActionArgs:{id:o,clientSelection:lF(c),movementMode:"SNAP"},cleanup:Kr,actions:E})}function x(){var E=ql({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!0});E&&t.release()}var S={isActive:function(){return ql({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:h,fluidLift:y,snapLift:b,abort:x};return S}var yF=[Q8,eF,oF];function CF(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,s=[].concat(o?yF:[],i||[]),a=p.useState(function(){return O8()})[0],l=ie(function(y,b){y.isDragging&&!b.isDragging&&a.tryAbandon()},[a]);fn(function(){var y=n.getState(),b=n.subscribe(function(){var x=n.getState();l(y,x),y=x});return b},[a,n,l]),fn(function(){return a.tryAbandon},[a.tryAbandon]);for(var u=ie(function(C){return y_({lockAPI:a,registry:r,store:n,draggableId:C})},[a,r,n]),c=ie(function(C,y,b){return vF({lockAPI:a,registry:r,contextId:t,store:n,draggableId:C,forceSensorStop:y,sourceEvent:b&&b.sourceEvent?b.sourceEvent:null})},[t,a,r,n]),d=ie(function(C){return hF(t,C)},[t]),f=ie(function(C){var y=r.draggable.findById(C);return y?y.options:null},[r.draggable]),h=ie(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(Gm()))},[a,n]),g=ie(a.isClaimed,[a]),v=Oe(function(){return{canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:h,isLockClaimed:g}},[u,c,d,f,h,g]),w=0;w<s.length;w++)s[w](v)}var bF=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function ks(e){return e.current||H(),e.current}function wF(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,s=p.useRef(null),a=f_(e),l=ie(function(){return bF(a.current)},[a]),u=D8(t),c=A8({contextId:t,text:o}),d=S8(t,i),f=ie(function(P){ks(s).dispatch(P)},[]),h=Oe(function(){return aC({publishWhileDragging:f5,updateDroppableScroll:h5,updateDroppableIsEnabled:g5,updateDroppableIsCombine
2344Enabled:m5,collectionStarting:p5},f)},[f]),g=k8(),v=Oe(function(){return n8(g,h)},[g,h]),w=Oe(function(){return C8(le({scrollWindow:r8,scrollDroppable:v.scrollDroppable},aC({move:JS},f)))},[v.scrollDroppable,f]),C=L8(t),y=Oe(function(){return X5({announce:u,autoScroller:w,dimensionMarshal:v,focusMarshal:C,getResponders:l,styleMarshal:d})},[u,w,v,C,l,d]);s.current=y;var b=ie(function(){var P=ks(s),I=P.getState();I.phase!=="IDLE"&&P.dispatch(Gm())},[]),x=ie(function(){var P=ks(s).getState();return P.isDragging||P.phase==="DROP_ANIMATING"},[]),S=Oe(function(){return{isDragging:x,tryAbort:b}},[x,b]);n(S);var E=ie(function(P){return a_(ks(s).getState(),P)},[]),L=ie(function(){return bi(ks(s).getState())},[]),_=Oe(function(){return{marshal:v,focus:C,contextId:t,canLift:E,isMovementAllowed:L,dragHandleUsageInstructionsId:c,registry:g}},[t,v,c,C,E,L,g]);return CF({contextId:t,store:y,registry:g,customSensors:r,enableDefaultSensors:e.enableDefaultSensors!==!1}),p.useEffect(function(){return b},[b]),de.createElement(xd.Provider,{value:_},de.createElement(WA,{context:ev,store:y},e.children))}var xF=0;function EF(){return Oe(function(){return""+xF++},[])}function rv(e){var t=EF(),n=e.dragHandleUsageInstructions||du.dragHandleUsageInstructions;return de.createElement(e6,null,function(r){return de.createElement(wF,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var C_=function(t){return function(n){return t===n}},SF=C_("scroll"),_F=C_("auto"),jC=function(t,n){return n(t.overflowX)||n(t.overflowY)},LF=function(t){var n=window.getComputedStyle(t),r={overflowX:n.overflowX,overflowY:n.overflowY};return jC(r,SF)||jC(r,_F)},IF=function(){return!1},kF=function e(t){return t==null?null:t===document.body?IF()?t:null:t===document.documentElement?null:LF(t)?t:e(t.parentElement)},Eh=function(e){return{x:e.scrollLeft,y:e.scrollTop}},PF=function e(t){if(!t)return!1;var n=window.getComputedStyle(t);return n.position==="fixed"?!0:e(t.parentElement)},MF=function(e){var t=kF(e),n=PF(e);return{closestScrollable:t,isFixedOnPage:n}},DF=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,s=e.client,a=e.page,l=e.closest,u=function(){if(!l)return null;var h=l.scrollSize,g=l.client,v=i_({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:g.paddingBox.height,width:g.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:g,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:v,diff:{value:It,displacement:It}}}}(),c=o==="vertical"?Um:BS,d=Yo({page:a,withPlaceholder:null,axis:c,frame:u}),f={descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:c,isEnabled:n,client:s,page:a,frame:u,subject:d};return f},NF=function(t,n){var r=kS(t);if(!n||t!==n)return r;var i=r.paddingBox.top-n.scrollTop,o=r.paddingBox.left-n.scrollLeft,s=i+n.scrollHeight,a=o+n.scrollWidth,l={top:i,right:a,bottom:s,left:o},u=Om(l,r.border),c=Fm({borderBox:u,margin:r.margin,border:r.border,padding:r.padding});return c},TF=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,s=e.isDropDisabled,a=e.isCombineEnabled,l=e.shouldClipSubject,u=r.closestScrollable,c=NF(t,u),d=dc(c,i),f=function(){if(!u)return null;var g=kS(u),v={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:g,page:dc(g,i),scroll:Eh(u),scrollSize:v,shouldClipSubject:l}}(),h=DF({descriptor:n,isEnabled:!s,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:o,client:c,page:d,closest:f});return h},RF={passive:!1},AF={passive:!0},zC=function(e){return e.shouldPublishImmediately?RF:AF};function vc(e){var t=p.useContext(e);return t||H(),t}var Yl=function(t){return t&&t.env.closestScrollable||null};function OF(e){var t=p.useRef(null),n=vc(xd),r=tv("droppable"),i=n.registry,o=n.marshal,s=f_(e),a=Oe(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),l=p.useRef(a),u=Oe(function(){return Lt(function(x,S){t.current||H();var E={x,y:S};o.updateDroppableScroll(a.id,E)})},[a.id,o]),c=ie(function(){var x=t.current;return!x||!x.env.closestScrollable?It:Eh(x.env.closestScrollable)},[]),d=ie(function(){var x=c();u(x.x,x.y)},[c,u]),f=Oe(function(){return Ra(d)},[d]),h=ie(function(){var x=t.current,S=Yl(x);x&&S||H();var E=x.scrollOptions;if(E.shouldPublishImmediately){d();return}f()},[f,d]),g=ie(function(x,S){t.current&&H();var E=s.current,L=E.getDroppableRef();L||H();var _=MF(L),P={ref:L,descriptor:a,env:_,scrollOptions:S};t.current=P;var I=TF({ref:L,descriptor:a,env:_,windowScroll:x,direction:E.direction,isDropDisabled:E.isDropDisabled,isCombine
2344Enabled:E.isCombineEnabled,shouldClipSubject:!E.ignoreContainerClipping}),R=_.closestScrollable;return R&&(R.setAttribute(AC.contextId,n.contextId),R.addEventListener("scroll",h,zC(P.scrollOptions))),I},[n.contextId,a,h,s]),v=ie(function(){var x=t.current,S=Yl(x);return x&&S||H(),Eh(S)},[]),w=ie(function(){var x=t.current;x||H();var S=Yl(x);t.current=null,S&&(f.cancel(),S.removeAttribute(AC.contextId),S.removeEventListener("scroll",h,zC(x.scrollOptions)))},[h,f]),C=ie(function(x){var S=t.current;S||H();var E=Yl(S);E||H(),E.scrollTop+=x.y,E.scrollLeft+=x.x},[]),y=Oe(function(){return{getDimensionAndWatchScroll:g,getScrollWhileDragging:v,dragStopped:w,scroll:C}},[w,g,v,C]),b=Oe(function(){return{uniqueId:r,descriptor:a,callbacks:y}},[y,a,r]);fn(function(){return l.current=b.descriptor,i.droppable.register(b),function(){t.current&&w(),i.droppable.unregister(b)}},[y,a,w,b,o,i.droppable]),fn(function(){t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),fn(function(){t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Pf(){}var UC={width:0,height:0,margin:s6},FF=function(t){var n=t.isAnimatingOpenOnMount,r=t.placeholder,i=t.animate;return n||i==="close"?UC:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},BF=function(t){var n=t.isAnimatingOpenOnMount,r=t.placeholder,i=t.animate,o=FF({isAnimatingOpenOnMount:n,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Js.placeholder:null}};function jF(e){var t=p.useRef(null),n=ie(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),r=e.animate,i=e.onTransitionEnd,o=e.onClose,s=e.contextId,a=p.useState(e.animate==="open"),l=a[0],u=a[1];p.useEffect(function(){return l?r!=="open"?(n(),u(!1),Pf):t.current?Pf:(t.current=setTimeout(function(){t.current=null,u(!1)}),n):Pf},[r,l,n]);var c=ie(function(f){f.propertyName==="height"&&(i(),r==="close"&&o())},[r,o,i]),d=BF({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return de.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":s,onTransitionEnd:c,ref:e.innerRef})}var zF=de.memo(jF),iv=de.createContext(null),UF=function(e){aS(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.state={isVisible:!!r.props.on,data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){r.state.animate==="close"&&r.setState({isVisible:!1})},r}t.getDerivedStateFromProps=function(i,o){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!i.on,data:i.on,animate:"none"}};var n=t.prototype;return n.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t}(de.PureComponent),$C={dragging:5e3,dropAnimating:4500},$F=function(t,n){return n?Js.drop(n.duration):t?Js.snap:Js.fluid}
2344,WF=function(t,n){return t?n?Ba.opacity.drop:Ba.opacity.combining:null},HF=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function VF(e){var t=e.dimension,n=t.client,r=e.offset,i=e.combineWith,o=e.dropping,s=!!i,a=HF(e),l=!!o,u=l?bh.drop(r,s):bh.moveTo(r),c={position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:$F(a,o),transform:u,opacity:WF(s,l),zIndex:l?$C.dropAnimating:$C.dragging,pointerEvents:"none"};return c}function GF(e){return{transform:bh.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function qF(e){return e.type==="DRAGGING"?VF(e):GF(e)}function YF(e,t,n){n===void 0&&(n=It);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=IS(i,r),s=dc(o,n),a={client:o,tagName:t.tagName.toLowerCase(),display:r.display},l={x:o.marginBox.width,y:o.marginBox.height},u={descriptor:e,placeholder:a,displaceBy:l,client:o,page:s};return u}function KF(e){var t=tv("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,s=e.shouldRespectForcePress,a=e.isEnabled,l=Oe(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:s,isEnabled:a}},[o,a,s]),u=ie(function(h){var g=i();return g||H(),YF(n,g,h)},[n,i]),c=Oe(function(){return{uniqueId:t,descriptor:n,options:l,getDimension:u}},[n,u,l,t]),d=p.useRef(c),f=p.useRef(!0);fn(function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}},[r.draggable]),fn(function(){if(f.current){f.current=!1;return}var h=d.current;d.current=c,r.draggable.update(c,h)},[c,r.draggable])}function QF(e){e.preventDefault()}function ZF(e){var t=p.useRef(null),n=ie(function(P){t.current=P},[]),r=ie(function(){return t.current},[]),i=vc(xd),o=i.contextId,s=i.dragHandleUsageInstructionsId,a=i.registry,l=vc(iv),u=l.type,c=l.droppableId,d=Oe(function(){return{id:e.draggableId,index:e.index,type:u,droppableId:c}},[e.draggableId,e.index,u,c]),f=e.children,h=e.draggableId,g=e.isEnabled,v=e.shouldRespectForcePress,w=e.canDragInteractiveElements,C=e.isClone,y=e.mapped,b=e.dropAnimationFinished;if(!C){var x=Oe(function(){return{descriptor:d,registry:a,getDraggableRef:r,canDragInteractiveElements:w,shouldRespectForcePress:v,isEnabled:g}},[d,a,r,w,v,g]);KF(x)}var S=Oe(function(){return g?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:QF}:null},[o,s,h,g]),E=ie(function(P){y.type==="DRAGGING"&&y.dropping&&P.propertyName==="transform"&&b()},[b,y]),L=Oe(function(){var P=qF(y),I=y.type==="DRAGGING"&&y.dropping?E:null,R={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":h,style:P,onTransitionEnd:I},dragHandleProps:S};return R},[o,S,h,y,E,n]),_=Oe(function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}},[d.droppableId,d.id,d.index,d.type]);return f(L,y.snapshot,_)}var b_=function(e,t){return e===t},w_=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},XF=function(t){return t.combine?t.combine.draggableId:null},JF=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function e7(){var e=Lt(function(i,o){return{x:i,y:o}}),t=Lt(function(i,o,s,a,l){return{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:i,draggingOver:s,combineWith:a,combineTargetFor:null}}),n=Lt(function(i,o,s,a,l,u,c){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:u,mode:o,offset:i,dimension:s,forceShouldAnimate:c,snapshot:t(o,a,l,u,null)}}}),r=function(o,s){if(o.isDragging){if(o.critical.draggable.id!==s.draggableId)return null;var a=o.current.client.offset,l=o.dimensions.draggables[s.draggableId],u=dn(o.impact),c=JF(o.impact),d=o.forceShouldAnimate;return n(e(a.x,a.y),o.movementMode,l,s.isClone,u,c,d)}if(o.phase==="DROP_ANIMATING"){var f=o.completed;if(f.result.draggableId!==s.draggableId)return null;var h=s.isClone,g=o.dimensions.draggables[s.draggableId],v=f.result,w=v.mode,C=w_(v),y=XF(v),b=o.dropDuration,x={duration:b,curve:Ym.drop,moveTo:o.newHomeClientOffset,opacity:y?Ba.opacity.drop:null,
2344scale:y?Ba.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:g,dropping:x,draggingOver:C,combineWith:y,mode:w,forceShouldAnimate:null,snapshot:t(w,h,C,y,x)}}}return null};return r}function x_(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var t7={mapped:{type:"SECONDARY",offset:It,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:x_(null)}};function n7(){var e=Lt(function(s,a){return{x:s,y:a}}),t=Lt(x_),n=Lt(function(s,a,l){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:s,combineTargetFor:a,shouldAnimateDisplacement:l,snapshot:t(a)}}}),r=function(a){return a?n(It,a,!0):null},i=function(a,l,u,c){var d=u.displaced.visible[a],f=!!(c.inVirtualList&&c.effected[a]),h=yd(u),g=h&&h.draggableId===a?l:null;if(!d){if(!f)return r(g);if(u.displaced.invisible[a])return null;var v=as(c.displacedBy.point),w=e(v.x,v.y);return n(w,g,!0)}if(f)return r(g);var C=u.displacedBy.point,y=e(C.x,C.y);return n(y,g,d.shouldAnimate)},o=function(a,l){if(a.isDragging)return a.critical.draggable.id===l.draggableId?null:i(l.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){var u=a.completed;return u.result.draggableId===l.draggableId?null:i(l.draggableId,u.result.draggableId,u.impact,u.afterCritical)}return null};return o}var r7=function(){var t=e7(),n=n7(),r=function(o,s){return t(o,s)||n(o,s)||t7};return r},i7={dropAnimationFinished:t_},o7=_S(r7,i7,null,{context:ev,pure:!0,areStatePropsEqual:b_})(ZF);function E_(e){var t=vc(iv),n=t.isUsingCloneFor;return n===e.draggableId&&!e.isClone?null:de.createElement(o7,e)}function ov(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return de.createElement(E_,le({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function s7(e){var t=p.useContext(xd);t||H();var n=t.contextId,r=t.isMovementAllowed,i=p.useRef(null),o=p.useRef(null),s=e.children,a=e.droppableId,l=e.type,u=e.mode,c=e.direction,d=e.ignoreContainerClipping,f=e.isDropDisabled,h=e.isCombineEnabled,g=e.snapshot,v=e.useClone,w=e.updateViewportMaxScroll,C=e.getContainerForClone,y=ie(function(){return i.current},[]),b=ie(function(R){i.current=R},[]);ie(function(){return o.current},[]);var x=ie(function(R){o.current=R},[]),S=ie(function(){r()&&w({maxScroll:s_()})},[r,w]);OF({droppableId:a,type:l,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:h,ignoreContainerClipping:d,getDroppableRef:y});var E=de.createElement(UF,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(R){var q=R.onClose,V=R.data,z=R.animate;return de.createElement(zF,{placeholder:V,onClose:q,innerRef:x,animate:z,contextId:n,onTransitionEnd:S})}),L=Oe(function(){return{innerRef:b,placeholder:E,droppableProps:{"data-rbd-droppable-id":a,"data-rbd-droppable-context-id":n}}},[n,a,E,b]),_=v?v.dragging.draggableId:null,P=Oe(function(){return{droppableId:a,type:l,isUsingCloneFor:_}},[a,_,l]);function I(){if(!v)return null;var R=v.dragging,q=v.render,V=de.createElement(E_,{draggableId:R.draggableId,index:R.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(z,Z){return q(z,Z,R)});return t3.createPortal(V,C())}return de.createElement(iv.Provider,{value:P},s(L,g),I())}var Mf=function(t,n){return t===n.droppable.type},WC=function(t,n){return n.draggables[t.draggable.id]},a7=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},n=le({},t,{shouldAnimatePlaceholder:!1}),r=Lt(function(s){return{draggableId:s.id,type:s.type,source:{index:s.index,droppableId:s.droppableId}}}),i=Lt(function(s,a,l,u,c,d){var f=c.descriptor.id,h=c.descriptor.droppableId===s;if(h){var g=d?{render:d,dragging:r(c.descriptor)}:null,v={isDraggingOver:l,draggingOverWith:l?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:v,useClone:g}}if(!a)return n;if(!u)return t;var w={isDraggingOver:l,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:w,useClone:null}}),o=function(a,l){var u=l.droppableId,c=l.type,d=!l.isDropDisabled,f=l.renderClone;if(a.isDragging){var h=a.critical;if(!Mf(c,h))return n;var g=WC(h,a.dimensions),v=dn(a.impact)===u;return i(u,d,v,v,g,f)}if(a.phase==="DROP_ANIMATING"){var w=a.completed;if(!Mf(c,w.critical))return n;var C=WC(w.critical,a.dimensions);return i(u,d,w_(w.result)===u,dn(w.impact)===u,C,f)}if(a.phase==="IDLE"&&a.completed&&!a.shouldFlush){var y=a.completed;if(!Mf(c,y.critical))return n;var b=dn(y.impact)===u,x=!!(y.impact.at&&y.impact.at.type==="COMBINE"),S=y.critical.droppable.
2344id===u;return b?x?t:n:S?t:n}return n};return o},l7={updateViewportMaxScroll:y5};function u7(){return document.body||H(),document.body}var c7={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:u7},Zo=_S(a7,l7,null,{context:ev,pure:!0,areStatePropsEqual:b_})(s7);Zo.defaultProps=c7;const yc=[{label:"Accommodation",value:"bed",icon:rd},{label:"Shopping",value:"cart-shopping",icon:Lm},{label:"Nature",value:"leaf",icon:Em},{label:"Going Out",value:"martini-glass-citrus",icon:Sm},{label:"Hike",value:"person-hiking",icon:td},{label:"City",value:"building-columns",icon:km},{label:"Airport",value:"plane",icon:id},{label:"Food",value:"utensils",icon:nd},{label:"Coffee",value:"mug-hot",icon:xm},{label:"Parking",value:"square-parking",icon:_m},{label:"Fun",value:"face-smile",icon:rl},{label:"Other",value:"map-pin",icon:Jn}],Sh=["Title","Days","Participants","Locations","Summary"],d7=({currentStep:e,totalSteps:t,onStepClick:n})=>{const[r,i]=p.useState(null);return m.jsx("div",{className:"progress-bar-container",children:[...Array(t)].map((o,s)=>{const a=s<e-1,l=s===e-1,u=s<e-1;return m.jsx("div",{className:`progress-step ${a?"completed":""} ${l?"active":""} ${s===r?"hovered":""}`,onMouseEnter:()=>i(s),onMouseLeave:()=>i(null),onClick:()=>u&&n(s+1),children:s===r&&m.jsx("span",{className:`step-name ${a||l?"white-text":"black-text"}`,children:Sh[s]})},s)})})},f7=({isLoaded:e})=>e?m.jsx(p7,{isLoaded:e}):"Loading Maps",p7=({isLoaded:e})=>{const[t,n]=p.useState([]),[r,i]=p.useState(""),[o,s]=p.useState(1),[a,l]=p.useState([{name:"Person 1"}]),[u,c]=p.useState(""),[d,f]=p.useState({lat:0,lng:0}),[h,g]=p.useState(2),[v,w]=p.useState(1),[C,y]=p.useState(!1);p.useState(!1);const[b,x]=p.useState(!1),[S,E]=p.useState("Olomouc..."),L=p.useRef(),_={width:"100%",height:"100%"},{ready:P,value:I,suggestions:{status:R,data:q},setValue:V,clearSuggestions:z}=lm({requestOptions:{},debounce:300,initOnMount:e}),Z=M=>{V(M.target.value)},Q=async M=>{V(M,!1),z();try{const k=await um({address:M}),{lat:T,lng:$}=await cm(k[0]),ee={id:$i(nt(rt)).key,name:M,lat:T,lng:$,icon:"map-pin",day:"free",order:t.length};n([...t,ee]),f({lat:T,lng:$}),g(13),y(!0)}catch(k){console.log("Error getting geocode: ",k)}},F=M=>{const k=t.filter((T,$)=>$!==M);n(k),k.length===0&&y(!1)},D=(M,k)=>{const T=[...t];T[k].icon=M.target.value,n(T)},B=M=>{s(k=>Math.max(1,k+M))},O=M=>{M>0?l([...a,{name:`Person ${a.length+1}`}]):a.length>1&&l(a.slice(0,-1))},U=(M,k)=>{const T=[...a];T[M].name=k,l(T)},X=()=>{if(t.length>0&&u.trim()!==""){const M=Math.random().toString(36).substring(2,15),k=nt(rt,`trips/${M}`),T={};t.forEach(re=>{const ee=$i(nt(rt)).key;T[ee]=re});const $={name:u.trim(),totalDays:o,locations:T,participants:a};Wi(k,$).then(()=>{console.log("Trip saved successfully!");const re=`${window.location.origin}/trip-planner?user=${M}`;i(re),w(6)}).catch(re=>{console.error("Error saving trip data: ",re)})}else alert("Please enter a trip title and add at least one location.")},fe=()=>{navigator.clipboard.writeText(r).then(()=>{alert("Link copied to clipboard!")}).catch(M=>{console.error("Failed to copy text: ",M)})},ue=M=>{const k=yc.find($=>$.value===M);return{path:k?k.icon.icon[4]:Jn.icon[4],fillColor:"black",fillOpacity:1,strokeWeight:1,strokeColor:"#FFFFFF",scale:.05,anchor:new window.google.maps.Point(0,20)}},ge=()=>{w(M=>Math.min(M+1,6))},N=()=>{w(M=>Math.max(M-1,1))},pe=M=>{c(M.target.value),M.target.value.trim()!==""&&(clearTimeout(window.bubbleTimeout),window.bubbleTimeout=setTimeout(()=>{x(!0),setTimeout(()=>x(!1),3e3)},1e3))},Ne=M=>{M<v&&w(M)};p.useEffect(()=>{v===6&&setTimeout(()=>{confetti({particleCount:100,spread:70,origin:{y:.3},zIndex:1500})},300)},[v]),p.useEffect(()=>{const M=["Olomouc...","Prague...","Copenhagen..."];let k=0;const T=setInterval(()=>{k=(k+1)%M.length,E(M[k])},3e3);return()=>clearInterval(T)},[]);const ne=5,we=M=>{if(!M.destination)return;M.source.droppableId;const k=M.destination.droppableId;M.source.index;const T=M.destination.index,$=M.draggableId,re=t.findIndex(Re=>Re.id===$);if(re===-1)return;const ee=Array.from(t),[Me]=ee.splice(re,1);Me.day=k==="free"?"free":parseInt(k);const De=ee.filter(Re=>(Re.day||"free").toString()===k.toString());let ae=ee.findIndex((Re,he)=>(Re.day||"free").toString()!==k.toString()?!1:De.indexOf(Re)===T);ae===-1&&(ae=ee.length),ee.splice(ae,0,Me),ee.forEach((Re,he)=>{Re.order=he}),n(ee)},Te=()=>{const M={free:[]};for(let k=1;k<=o;k++)M[k]=[];return t.forEach(k=>{const T=k.day||"free";M[T]||(M[T]=[]),M[T].push(k)}
2344),Object.keys(M).forEach(k=>{M[k].sort((T,$)=>T.order-$.order)}),M};return m.jsxs("div",{className:`setup-page ${C?"has-locations":""} ${v===6?"last-step":""}`,children:[m.jsx(d7,{currentStep:v,totalSteps:ne,onStepClick:Ne}),m.jsx("div",{className:"setup-step",children:[1,2,3,4,5,6].map(M=>m.jsxs("div",{className:`step-content ${v===M?"active":""}`,children:[v===1&&M===1&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Enter Trip Title"}),m.jsxs("div",{className:"trip-title-container",children:[b&&m.jsxs("div",{className:"bubble-message show",children:[u," sounds awesome!"]}),m.jsx("input",{type:"text",id:"tripTitle",name:"tripTitle",value:u,onChange:pe,className:"trip-title-field",placeholder:""}),!u&&m.jsx("div",{className:"trip-title-placeholder",children:m.jsx("span",{children:S})})]})]}),v===2&&M===2&&m.jsxs(m.Fragment,{children:[m.jsxs("h2",{className:"total-days-heading",children:[m.jsx(K,{icon:WE,className:"calendar-icon"}),"Going on a trip for ",o," days"]}),m.jsx("div",{className:"total-days-input",children:m.jsxs("div",{className:"day-picker-container",children:[m.jsx("button",{className:"day-picker-button",onClick:()=>B(-1),children:m.jsx(K,{icon:sc})}),m.jsx("span",{className:"day-picker-value",children:o}),m.jsx("button",{className:"day-picker-button",onClick:()=>B(1),children:m.jsx(K,{icon:si})})]})})]}),v===3&&M===3&&m.jsxs(m.Fragment,{children:[m.jsxs("h2",{className:"total-participants-heading",children:[m.jsx(K,{icon:qo,className:"person-icon"}),"There ",a.length===1?"is":"are"," ",a.length," ",a.length===1?"person":"people"," coming"]}),m.jsx("div",{className:"total-participants-input",children:m.jsxs("div",{className:"participant-picker-container",children:[m.jsx("button",{className:"participant-picker-button",onClick:()=>O(-1),children:m.jsx(K,{icon:sc})}),m.jsx("span",{className:"participant-picker-value",children:a.length}),m.jsx("button",{className:"participant-picker-button",onClick:()=>O(1),children:m.jsx(K,{icon:si})})]})}),m.jsx("div",{className:"participants-list",children:a.map((k,T)=>m.jsxs("div",{className:"participant-input",children:[m.jsx(K,{icon:qo}),m.jsx("input",{type:"text",id:`participant${T}`,name:`participant${T}`,value:k.name,onChange:$=>U(T,$.target.value)})]},T))})]}),v===4&&M===4&&m.jsxs("div",{className:"step-four",children:[P&&m.jsxs("div",{className:"search-container",children:[m.jsx(K,{icon:Ti,className:"search-icon"}),m.jsx("input",{value:I,onChange:Z,placeholder:"Search locations",className:"location-input"}),I&&m.jsx("button",{className:"clear-input",onClick:()=>V(""),children:m.jsx(K,{icon:Yr})}),R==="OK"&&m.jsx("ul",{className:"suggestions-list",children:q.map(({place_id:k,description:T})=>m.jsxs("li",{onClick:()=>Q(T),children:[m.jsx(K,{icon:Ti,className:"suggestion-icon"}),T]},k))})]}),m.jsxs("div",{className:"locations-and-map-container",children:[m.jsx("div",{className:"setup-content",children:P&&m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:"Added Locations:"}),m.jsxs(rv,{onDragEnd:we,children:[m.jsxs("div",{className:"day-span",children:[m.jsx("h4",{children:"Free Time"}),m.jsx(Zo,{droppableId:"free",children:k=>m.jsxs("ul",{className:"added-locations-list",...k.droppableProps,ref:k.innerRef,children:[Te().free.map((T,$)=>m.jsx(HC,{location:T,index:$,handleIconChange:D,handleRemoveLocation:F,locations:t},T.id)),k.placeholder]})})]}),Object.entries(Te()).map(([k,T])=>k!=="free"?m.jsxs("div",{className:"day-span",children:[m.jsxs("h4",{children:["Day ",k]}),m.jsx(Zo,{droppableId:k,children:$=>m.jsxs("ul",{className:"added-locations-list",...$.droppableProps,ref:$.innerRef,children:[T.map((re,ee)=>m.jsx(HC,{location:re,index:ee,handleIconChange:D,handleRemoveLocation:F,locations:t},re.id)),$.placeholder]})})]},k):null)]})]})}),C&&m.jsx("div",{className:"setup-map",children:m.jsx(xg,{mapContainerStyle:_,zoom:h,center:d,onLoad:k=>{L.current=k},children:t.map((k,T)=>{var $;return m.jsx(Bu,{position:{lat:k.lat,lng:k.lng},icon:ue(k.icon),label:{text:String.fromCharCode((($=yc.find(re=>re.value===k.icon))==null?void 0:$.icon.icon[3])||Jn.icon[3]),fontFamily:"FontAwesome",color:"#FFFFFF",fontSize:"14px"}},k.id)})})})]})]}),v===5&&M===5&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Summary"}),m.jsxs("div",{className:"summary-section",children:[m.jsx("h3",{children:"Trip Title:"}),m.jsx("p",{children:u}),m.jsx("h3",{children:"Total Days:"}),m.jsx("p",{children:o}),m.jsx("h3",{children:"Participants:"}),m.jsx("ul",{children:a.map((k,T)=>m.jsx("li",{children:k.name},T))}),m.jsx("h3",{children:"Locations:"}),m.jsx("ul",{children:t.map((k,T)=>m.jsx("li",{children:k.name},T))})]})]}),v===6&&M===6&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Your Trip Planner is Ready!"}),m.jsx("p",{children:"Your trip has been created successfully!"}),m.jsxs("div",{className:"link-container",children:[m.jsx("input",{type:"text",value:r,readOnly:!0}),m.jsxs("button",{onClick:fe,children:[m.jsx(K,{icon:hh})," Copy Link"]})]}),m.jsxs("div",{className:"qr-code-container",children:[m.jsx(sS,{value:r,size:200}),m.jsx("p",{children:"Scan this QR code with your phone"})]})]})]},M))}),m.jsxs("div",{className:"setup-navigation",children:[v>1&&v<=5&&m.jsxs("button",{onClick:N,className:"nav-button back-button",children:[m.jsx(K,{icon:GE,className:"button-icon"}),m.jsx("span",{className:"button-text",children:Sh[v-2]})]}),v<5&&m.jsxs("button",{onClick:ge,className:"nav-button next-button",children:[m.jsx("span",{className:"button-text",children:Sh[v]}),m.jsx(K,{icon:VE,className:"button-icon"})]}),v===5&&m.jsxs("button",{onClick:X,className:"nav-button create-trip-btn",children:[m.jsx(K,{icon:Im,className:"button-icon"}),m.jsx("span",{className:"button-text",children:"Create Trip"})]}),v===6&&m.jsxs("button",{onClick:()=>window.location.reload(),className:"nav-button",children:[m.jsx(K,{icon:pA,className:"button-icon"}),m.jsx("span",{className:"button-text",children:"Start Over"})]})]})]})},HC=({location:e,index:t,handleIconChange:n,handleRemoveLocation:r,locations:i})=>m.jsx(ov,{draggableId:e.id,index:t,children:o=>m.jsxs("li",{ref:o.innerRef,...o.draggableProps,...o.dragHandleProps,children:[m.jsxs("div",{className:"location-item",children:[m.jsx(K,{icon:qE,className:"drag-handle"}),m.jsx(K,{icon:yc.find(s=>s.value===e.icon).icon,className:"location-icon"}),m.jsx("span",{children:e.name})]}),m.jsx("div",{className:"icon-picker",children:m.jsx("select",{value:e.icon,onChange:s=>n(s,i.indexOf(e)),className:"icon-select",children:yc.map(s=>m.jsx("option",{value:s.value,children:s.label},s.value))})}),m.jsx("button",{onClick:()=>r(i.indexOf(e)),className:"remove-location",children:m.jsx(K,{icon:Yr})})]})},e.id),Cc=[{label:"Accommodation",value:"bed",icon:rd}
2344,{label:"Shopping",value:"cart-shopping",icon:Lm},{label:"Nature",value:"leaf",icon:Em},{label:"Going Out",value:"martini-glass-citrus",icon:Sm},{label:"Hike",value:"person-hiking",icon:td},{label:"City",value:"building-columns",icon:km},{label:"Airport",value:"plane",icon:id},{label:"Food",value:"utensils",icon:nd},{label:"Coffee",value:"mug-hot",icon:xm},{label:"Parking",value:"square-parking",icon:_m},{label:"Fun",value:"face-smile",icon:rl},{label:"Other",value:"map-pin",icon:Jn}],_h=["Title","Days","Participants","Locations","Summary"],h7=({currentStep:e,totalSteps:t,onStepClick:n})=>m.jsx("div",{className:"progress-bar-container",children:[...Array(t)].map((r,i)=>{const o=i<e-1,s=i===e-1;return m.jsx("div",{className:`progress-step ${o?"completed":""} ${s?"active":""} edit-mode`,onClick:()=>n(i+1),children:m.jsx("span",{className:`step-name ${o||s?"white-text":"black-text"}`,children:_h[i]})},i)})}),g7=({isLoaded:e})=>{const[t,n]=p.useState([]),[r,i]=p.useState(1),[o,s]=p.useState([{name:"Person 1"}]),[a,l]=p.useState(""),[u,c]=p.useState({lat:0,lng:0}),[d,f]=p.useState(2),[h,g]=p.useState(1),[v,w]=p.useState(!1),[C,y]=p.useState(!1),[b,x]=p.useState("Olomouc..."),S=p.useRef(),E={width:"100%",height:"100%"},L=Ga(),_=gw(),P=new URLSearchParams(L.search).get("user"),{ready:I,value:R,suggestions:{status:q,data:V},setValue:z,clearSuggestions:Z}=lm({requestOptions:{},debounce:300,initOnMount:e}),Q=M=>{z(M.target.value)},F=async M=>{z(M,!1),Z();try{const k=await um({address:M}),{lat:T,lng:$}=await cm(k[0]),ee={id:$i(nt(rt)).key,name:M,lat:T,lng:$,icon:"map-pin",day:"free",order:t.length};n([...t,ee]),c({lat:T,lng:$}),f(13),w(!0)}catch(k){console.log("Error getting geocode: ",k)}};p.useEffect(()=>{if(P){const M=nt(rt,`trips/${P}`);L1(M).then(k=>{if(k.exists()){const T=k.val();if(console.log("Fetched trip data:",T),l(T.name),i(T.totalDays),s(T.participants||[]),T.locations){console.log("Locations from database:",T.locations);const $=Object.entries(T.locations).map(([re,ee])=>({id:re,...ee})).sort((re,ee)=>re.order-ee.order);n($),w($.length>0),$.length>0&&(c({lat:$[0].lat,lng:$[0].lng}),f(13))}else console.log("No locations found in the database"),n([]),w(!1)}else console.log("No data found for this trip")}).catch(k=>{console.error("Error fetching trip data:",k)})}},[P]);const D=M=>{const k=t.filter((T,$)=>$!==M);n(k),k.length===0&&w(!1)},B=(M,k)=>{const T=M.target.value,$=[...t];$[k].icon=T,n($)},O=M=>{i(k=>Math.max(1,k+M))},U=M=>{M>0?s([...o,{name:`Person ${o.length+1}`}]):o.length>1&&s(o.slice(0,-1))},X=(M,k)=>{const T=[...o];T[M].name=k,s(T)},fe=()=>{if(t.length>0&&a.trim()!==""){const M=nt(rt,`trips/${P}`);L1(M).then(k=>{const T=k.val()||{},$={};t.forEach(ee=>{const Me=ee.id||$i(nt(rt)).key;$[Me]={...ee,id:Me}});const re={...T,name:a.trim(),totalDays:r,participants:o,locations:$};Wi(M,re).then(()=>{console.log("Trip updated successfully!"),_(`/trip-planner?user=${P}`)}).catch(ee=>{console.error("Error updating trip data: ",ee)})}).catch(k=>{console.error("Error fetching current trip data: ",k)})}else alert("Please enter a trip title and add at least one location.")},ue=()=>{g(M=>Math.min(M+1,5))},ge=()=>{g(M=>Math.max(M-1,1))},N=M=>{l(M.target.value),M.target.value.trim()!==""&&(clearTimeout(window.bubbleTimeout),window.bubbleTimeout=setTimeout(()=>{y(!0),setTimeout(()=>y(!1),3e3)},1e3))},pe=M=>{g(M)};p.useEffect(()=>{const M=["Olomouc...","Prague...","Copenhagen..."];let k=0;const T=setInterval(()=>{k=(k+1)%M.length,x(M[k])},3e3);return()=>clearInterval(T)},[]);const Ne=5,ne=M=>{if(!M.destination)return;M.source.droppableId;const k=M.destination.droppableId;M.source.index;const T=M.destination.index,$=M.draggableId,re=t.findIndex(Ue=>Ue.id===$);if(re===-1)return;const ee=Array.from(t),[Me]=ee.splice(re,1);Me.day=k==="free"?"free":parseInt(k);const De=ee.filter(Ue=>(Ue.day||"free").toString()===k.toString());let ae=ee.findIndex((Ue,se)=>(Ue.day||"free").toString()!==k.toString()?!1:De.indexOf(Ue)===T);ae===-1&&(ae=ee.length),ee.splice(ae,0,Me),ee.forEach((Ue,se)=>{Ue.order=se}),n(ee);const Re=nt(rt,`trips/${P}/locations`),he=ee.reduce((Ue,se)=>{const{id:zt,...tr}=se;return Ue[zt]=tr,Ue},{});Wi(Re,he).catch(Ue=>{console.error("Error updating itinerary: ",Ue)})},we=()=>{const M={free:[]};for(let k=1;k<=r;k++)M[k]=[];return t.forEach(k=>{const T=k.day||"free";M[T]||(M[T]=[]),M[T].push(k)}
2344),Object.keys(M).forEach(k=>{M[k].sort((T,$)=>T.order-$.order)}),M},Te=M=>{const k=Cc.find($=>$.value===M);return{path:k?k.icon.icon[4]:Jn.icon[4],fillColor:"black",fillOpacity:1,strokeWeight:1,strokeColor:"#FFFFFF",scale:.05,anchor:new window.google.maps.Point(0,20)}};return m.jsxs("div",{className:`edit-page setup-page ${v?"has-locations":""}`,children:[m.jsx(h7,{currentStep:h,totalSteps:Ne,onStepClick:pe}),m.jsx("div",{className:"setup-step",children:[1,2,3,4,5].map(M=>m.jsxs("div",{className:`step-content ${h===M?"active":""}`,children:[h===1&&M===1&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Edit Trip Title"}),m.jsxs("div",{className:"trip-title-container",children:[C&&m.jsxs("div",{className:"bubble-message show",children:[a," sounds awesome!"]}),m.jsx("input",{type:"text",id:"tripTitle",name:"tripTitle",value:a,onChange:N,className:"trip-title-field",placeholder:""}),!a&&m.jsx("div",{className:"trip-title-placeholder",children:m.jsx("span",{children:b})})]})]}),h===2&&M===2&&m.jsxs(m.Fragment,{children:[m.jsxs("h2",{className:"total-days-heading",children:[m.jsx(K,{icon:WE,className:"calendar-icon"}),"Going on a trip for ",r," days"]}),m.jsx("div",{className:"total-days-input",children:m.jsxs("div",{className:"day-picker-container",children:[m.jsx("button",{className:"day-picker-button",onClick:()=>O(-1),children:m.jsx(K,{icon:sc})}),m.jsx("span",{className:"day-picker-value",children:r}),m.jsx("button",{className:"day-picker-button",onClick:()=>O(1),children:m.jsx(K,{icon:si})})]})})]}),h===3&&M===3&&m.jsxs(m.Fragment,{children:[m.jsxs("h2",{className:"total-participants-heading",children:[m.jsx(K,{icon:qo,className:"person-icon"}),"There ",o.length===1?"is":"are"," ",o.length," ",o.length===1?"person":"people"," coming"]}),m.jsx("div",{className:"total-participants-input",children:m.jsxs("div",{className:"participant-picker-container",children:[m.jsx("button",{className:"participant-picker-button",onClick:()=>U(-1),children:m.jsx(K,{icon:sc})}),m.jsx("span",{className:"participant-picker-value",children:o.length}),m.jsx("button",{className:"participant-picker-button",onClick:()=>U(1),children:m.jsx(K,{icon:si})})]})}),m.jsx("div",{className:"participants-list",children:o.map((k,T)=>m.jsxs("div",{className:"participant-input",children:[m.jsx(K,{icon:qo}),m.jsx("input",{type:"text",id:`participant${T}`,name:`participant${T}`,value:k.name,onChange:$=>X(T,$.target.value)})]},T))})]}),h===4&&M===4&&m.jsxs("div",{className:"step-four",children:[I&&m.jsxs("div",{className:"search-container",children:[m.jsx(K,{icon:Ti,className:"search-icon"}),m.jsx("input",{value:R,onChange:Q,placeholder:"Search locations",className:"location-input"}),R&&m.jsx("button",{className:"clear-input",onClick:()=>z(""),children:m.jsx(K,{icon:Yr})}),q==="OK"&&m.jsx("ul",{className:"suggestions-list",children:V.map(({place_id:k,description:T})=>m.jsxs("li",{onClick:()=>F(T),children:[m.jsx(K,{icon:Ti,className:"suggestion-icon"}),T]},k))})]}),m.jsxs("div",{className:"locations-and-map-container",children:[m.jsx("div",{className:"setup-content",children:I&&m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:"Added Locations:"}),m.jsxs(rv,{onDragEnd:ne,children:[m.jsxs("div",{className:"day-span",children:[m.jsx("h4",{children:"Free Time"}),m.jsx(Zo,{droppableId:"free",children:k=>m.jsxs("ul",{className:"added-locations-list",...k.droppableProps,ref:k.innerRef,children:[we().free.map((T,$)=>m.jsx(VC,{location:T,index:$,handleIconChange:B,handleRemoveLocation:D,locations:t},T.id)),k.placeholder]})})]}),Object.entries(we()).map(([k,T])=>k!=="free"?m.jsxs("div",{className:"day-span",children:[m.jsxs("h4",{children:["Day ",k]}),m.jsx(Zo,{droppableId:k,children:$=>m.jsxs("ul",{className:"added-locations-list",...$.droppableProps,ref:$.innerRef,children:[T.map((re,ee)=>m.jsx(VC,{location:re,index:ee,handleIconChange:B,handleRemoveLocation:D,locations:t},re.id)),$.placeholder]})})]},k):null)]})]})}),v&&m.jsx("div",{className:"setup-map",children:m.jsxs(xg,{mapContainerStyle:E,zoom:d,center:u,onLoad:k=>{S.current=k},children:[console.log("Rendering locations:",t),Array.isArray(t)&&t.map((k,T)=>{var $;return console.log("Rendering location:",k),m.jsx(Bu,{position:{lat:k.lat,lng:k.lng},icon:Te(k.icon),label:{text:String.fromCharCode((($=Cc.find(re=>re.value===k.icon))==null?void 0:$.icon.icon[3])||Jn.icon[3]),fontFamily:"FontAwesome",color:"#FFFFFF",fontSize:"14px"}},k.id)})]})})]})]}),h===5&&M===5&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Summary"}),m.jsxs("div",{className:"summary-section",children:[m.jsx("h3",{children:"Trip Title:"}),m.jsx("p",{children:a}),m.jsx("h3",{children:"Total Days:"}),m.jsx("p",{children:r}),m.jsx("h3",{children:"Participants:"}),m.jsx("ul",{children:o.map((k,T)=>m.jsx("li",{children:k.name},T))}),m.jsx("h3",{children:"Locations:"}),m.jsx("ul",{children:t.map((k,T)=>m.jsx("li",{children:k.name},T))})]})]})]},M))}),m.jsxs("div",{className:"setup-navigation",children:[h>1&&h<=5&&m.jsxs("button",{onClick:ge,className:"nav-button back-button",children:[m.jsx(K,{icon:GE,className:"button-icon"}),m.jsx("span",{className:"button-text",children:_h[h-2]})]}),h<5&&m.jsxs("button",{onClick:ue,className:"nav-button next-button",children:[m.jsx("span",{className:"button-text",children:_h[h]}),m.jsx(K,{icon:VE,className:"button-icon"})]}),h===5&&m.jsxs("button",{onClick:fe,className:"nav-button create-trip-btn",children:[m.jsx(K,{icon:Im,className:"button-icon"}),m.jsx("span",{className:"button-text",children:"Update Trip"})]})]})]})},VC=({location:e,index:t,handleIconChange:n,handleRemoveLocation:r,locations:i})=>e?m.jsx(ov,{draggableId:e.id,index:t,children:o=>{var s;return m.jsxs("li",{ref:o.innerRef,...o.draggableProps,...o.dragHandleProps,children:[m.jsxs("div",{className:"location-item",children:[m.jsx(K,{icon:qE,className:"drag-handle"}),m.jsx(K,{icon:((s=Cc.find(a=>a.value===e.icon))==null?void 0:s.icon)||Jn,className:"location-icon"}),m.jsx("span",{children:e.name})]}),m.jsx("div",{className:"icon-picker",children:m.jsx("select",{value:e.icon,onChange:a=>n(a,i.indexOf(e)),className:"icon-select",children:Cc.map(a=>m.jsx("option",{value:a.value,children:a.label},a.value))})}),m.jsx("button",{onClick:()=>r(i.indexOf(e)),className:"remove-location",children:m.jsx(K,{icon:Yr})})]})}},e.id):null,m7=["places"],Kl=[{label:"Accommodation",value:"bed",iconDefinition:rd},{label:"Shopping",value:"cart-shopping",iconDefinition:Lm},{label:"Nature",value:"leaf",iconDefinition:Em},{label:"Going Out",value:"martini-glass-citrus",iconDefinition:Sm}
2344,{label:"Hike",value:"person-hiking",iconDefinition:td},{label:"City",value:"building-columns",iconDefinition:km},{label:"Airport",value:"plane",iconDefinition:id},{label:"Food",value:"utensils",iconDefinition:nd},{label:"Coffee",value:"mug-hot",iconDefinition:xm},{label:"Parking",value:"square-parking",iconDefinition:_m},{label:"Other",value:"map-pin",iconDefinition:Jn},{label:"Fun",value:"face-smile",iconDefinition:rl}];function S_({userId:e}){const{isLoaded:t,loadError:n}=Eg({googleMapsApiKey:"AIzaSyBnxdlHz3EevWXi7xZScF8QooHyICzpWnw",libraries:m7}),[r,i]=p.useState([]),[o,s]=p.useState(1),[a,l]=p.useState(null),[u,c]=p.useState(null);p.useState(!1);const[d,f]=p.useState({});p.useState(!1),p.useState(!1);const[h,g]=p.useState(null),[v,w]=p.useState(!1),[C,y]=p.useState(null),[b,x]=p.useState("free"),[S,E]=p.useState("map-pin"),[L,_]=p.useState(!1);p.useState(null);const[P,I]=p.useState(null),[R,q]=p.useState(!1),[V,z]=p.useState(!1),[Z,Q]=p.useState({}),F=p.useRef(),D=p.useRef(),B=p.useRef(),[O,U]=p.useState(null),X={width:"100%",height:R?"100vh":"200px"},{ready:fe,value:ue,suggestions:{status:ge,data:N},setValue:pe,clearSuggestions:Ne}=lm({requestOptions:{},debounce:300});p.useEffect(()=>{const A=nt(rt,`trips/${e}`),G=Ho(A,Y=>{const Ce=Y.val();if(Ce)if(s(Ce.totalDays||1),Ce.locations){const Ae=Object.entries(Ce.locations).map(([Be,me])=>({id:Be,...me})).sort((Be,me)=>Be.order-me.order);i(Ae);const be={};Ae.forEach(Be=>{be[Be.id]=Be.notes||""}),f(be)}else i([]),f({});else s(1),i([]),f({})});return navigator.geolocation?navigator.geolocation.getCurrentPosition(Y=>{const Ce={lat:Y.coords.latitude,lng:Y.coords.longitude};U(Ce),g(Ce)},Y=>{console.error("Error: The Geolocation service failed.",Y),U({lat:0,lng:0})}):(console.error("Error: Your browser doesn't support geolocation."),U({lat:0,lng:0})),()=>G()},[e]),p.useEffect(()=>{let A;return navigator.geolocation&&(A=navigator.geolocation.watchPosition(G=>{const Y={lat:G.coords.latitude,lng:G.coords.longitude};g(Y),B.current&&B.current.setPosition(Y)},G=>{console.error("Error: The Geolocation service failed.",G)},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})),()=>{A&&navigator.geolocation.clearWatch(A)}},[]);const ne=p.useMemo(()=>{const A={};return r.forEach(G=>{const Y=G.day||"free";A[Y]||(A[Y]=[]),A[Y].push(G)}),A},[r]),we=p.useMemo(()=>Object.keys(ne).sort((A,G)=>A==="free"?1:G==="free"?-1:parseInt(A)-parseInt(G)),[ne]),Te=p.useCallback(A=>{if(l(G=>G===A.id?null:A.id),A.lat&&A.lng){c({lat:A.lat,lng:A.lng});const G=F.current.getZoom(),Y=F.current.getCenter(),Ce=16,Ae=20,be=500,Be=A.lat-Y.lat(),me=A.lng-Y.lng(),Ut=Ce-G,$t=gt=>gt<.5?2*gt*gt:1-Math.pow(-2*gt+2,2)/2,Ve=gt=>{if(gt<Ae){const yn=$t((gt+1)/Ae),wr=G+Ut*yn,eo=Y.lat()+Be*yn,pi=Y.lng()+me*yn;F.current.setZoom(wr),F.current.panTo({lat:eo,lng:pi}),setTimeout(()=>Ve(gt+1),be/Ae)}};Ve(0)}setTimeout(()=>{var Y;const G=document.getElementById(`location-${A.id}`);if(G&&D.current){const Ce=((Y=document.querySelector(".tab-switcher"))==null?void 0:Y.offsetHeight)||0,Ae=G.closest(".day-section").querySelector(".sticky-day"),be=Ae?Ae.offsetHeight:0,Be=-Ce-be-10,me=G.getBoundingClientRect().top+window.pageYOffset+Be;window.scrollTo({top:me,behavior:"smooth"});const Ut=G.getBoundingClientRect().bottom,$t=window.innerHeight;if(Ut>$t){const Ve=Ut-$t+20;window.scrollBy({top:Ve,behavior:"smooth"})}D.current.scrollTo({top:G.offsetTop-D.current.offsetTop-be,behavior:"smooth"})}},300)},[]),M=p.useCallback(A=>{R?I(A):Te(A)},[R,Te]),k=()=>{q(!R),I(null)},T=async(A,G,Y)=>{A.stopPropagation();const Ce=!Y,Ae=nt(rt,`trips/${e}/locations/${G}`);try{await Kp(Ae,{done:Ce}),i(be=>be.map(Be=>Be.id===G?{...Be,done:Ce}:Be))}catch(be){console.error("Error updating location status:",be)}},$=(A,G)=>{A.stopPropagation(),navigator.clipboard.writeText(G)},re=(A,G)=>{const Y=A.target.value;f(Ae=>({...Ae,[G]:Y}));const Ce=nt(rt,`trips/${e}/locations/${G}`);Kp(Ce,{notes:Y}).catch(Ae=>console.error("Error updating note:",Ae))},ee=A=>{pe(A.target.value)},Me=async A=>{pe(A,!1),Ne();try{const G=await um({address:A}),{lat:Y,lng:Ce}=await cm(G[0]);y({name:A,lat:Y,lng:Ce}),z(!0)}catch(G){console.log("Error getting geocode: ",G)}},De=()=>{if(C){const A=nt(rt,`trips/${e}/locations`),G={...C,icon:S,day:b,order:r.length};$i(A,G),y(null),x("free"),E("map-pin"),z(!1),pe(""),w(!1)}},ae=p.useCallback((A,G,Y,Ce)=>{const be=Re(Y-A),Be=Re(Ce-G),me=Math.sin(be/2)*Math.sin(be/2)+Math.cos(Re(A))*Math.cos(Re(Y))*Math.sin(Be/2)*Math.sin(Be/2);return(6371*(2*Math.atan2(Math.sqrt(me),Math.sqrt(1-me)))).toFixed(1)},[]),Re=A=>A*(Math.PI/180),he=(A,G,Y)=>{if(!A||!A.iconDefinition)return console.error("Invalid iconObj:",A),null;const Ce=A.iconDefinition,Ae=Ce.icon[4];if(!Ae)return console.error("svgPathData not found in iconDefinition:",Ce),null;const be=G?16:12,Be=G?16:12,me=G?36:28,Ut=Ce.icon[0],$t=Ce.icon[1],Ve=be/Math.max(Ut,$t),gt=Ut/2,yn=$t/2,wr=Y?"#4CAF50":G?"black":"white",eo=G?"white":"black",gl=`
2345      <svg xmlns="http://www.w3.org/2000/svg" width="${me}" height="${me}">
2346        <circle cx="${me/2}" cy="${me/2}" r="${Be}" fill="${wr}" stroke="black" stroke-width="2" />
2347        <path d="${Ae}" fill="${eo}" transform="translate(${me/2},${me/2}) scale(${Ve}) translate(-${gt}, -${yn})" />
2348      </svg>
2349    `;return{url:"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(gl),scaledSize:new window.google.maps.Size(me,me),anchor:new window.google.maps.Point(me/2,me/2),zIndex:G?1e3:1}},Ue=A=>{const G=Kl.find(Y=>Y.value===A);return G?G.iconDefinition:Jn},se=()=>{_(!L)},zt=A=>{if(window.confirm(`Are you sure you want to delete "${A.name}"?`)){const G=nt(rt,`trips/${e}/locations/${A.id}`);oE(G).then(()=>{const Y=r.filter(be=>be.id!==A.id);Y.forEach((be,Be)=>{be.order=Be}),i(Y);const Ce=nt(rt,`trips/${e}/locations`),Ae=Y.reduce((be,Be)=>{const{id:me,...Ut}=Be;return be[me]=Ut,be},{});Wi(Ce,Ae)}
2349).catch(Y=>{console.error("Error removing location:",Y)})}},tr=A=>{if(!A.destination)return;A.source.droppableId;const G=A.destination.droppableId;A.source.index;const Y=A.destination.index,Ce=A.draggableId,Ae=r.find(Ve=>Ve.id===Ce);if(!Ae)return;Ae.day=G==="free"?"free":parseInt(G);const be=Array.from(r),[Be]=be.splice(r.findIndex(Ve=>Ve.id===Ce),1);be.filter(Ve=>(Ve.day||"free").toString()===G.toString());let me=0;for(let Ve=0,gt=0;Ve<be.length;Ve++){if((be[Ve].day||"free").toString()===G.toString()){if(gt===Y){me=Ve;break}gt++}Ve===be.length-1&&(me=be.length)}be.splice(me,0,Be),be.forEach((Ve,gt)=>{Ve.order=gt}),i(be);const Ut=nt(rt,`trips/${e}/locations`),$t=be.reduce((Ve,gt)=>{const{id:yn,...wr}=gt;return Ve[yn]=wr,Ve},{});Wi(Ut,$t).catch(Ve=>{console.error("Error updating itinerary: ",Ve)})},Dn=A=>{const[G,...Y]=A.split(",");return{mainName:G.trim(),details:Y.join(",").trim()}},fi=()=>{w(!1),z(!1),y(null),pe("")};p.useEffect(()=>{if(h&&r.length>0){const A={};r.forEach(G=>{const Y=ae(h.lat,h.lng,G.lat,G.lng);A[G.id]=Y}),Q(A)}},[h,r,ae]);const He=p.useCallback(A=>{F.current=A},[]);return n?"Error loading maps":t?m.jsxs("div",{className:"itinerary-tab",children:[m.jsxs("div",{className:`map-container ${R?"fullscreen":""}`,children:[O&&m.jsxs(xg,{mapContainerStyle:X,zoom:12,center:O,options:{zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},onLoad:He,onClick:()=>R&&I(null),children:[h&&m.jsx(Bu,{position:h,icon:{path:window.google.maps.SymbolPath.CIRCLE,scale:7,fillColor:"#4285F4",f
2349illOpacity:1,strokeColor:"#ffffff",strokeWeight:2},onLoad:A=>{B.current=A}}),r.map(A=>{const G=Kl.find(Ae=>Ae.value===A.icon)||Kl.find(Ae=>Ae.value==="map-pin"),Y=a===A.id||(P==null?void 0:P.id)===A.id,Ce=he(G,Y,A.done);return Ce?m.jsx(Bu,{position:{lat:A.lat,lng:A.lng},onClick:()=>M(A),icon:Ce},A.id):null})]}),m.jsx("button",{className:R?"close-map-btn":"expand-map-btn",onClick:k,children:m.jsx(K,{icon:R?Yr:wA})}),L&&m.jsx("div",{className:"map-overlay",children:m.jsx("span",{children:"Hold and drag locations to rearrange them"})})]}),m.jsx(rv,{onDragEnd:tr,children:m.jsx("div",{className:"location-list",ref:D,children:we.map(A=>m.jsx(Zo,{droppableId:A.toString(),children:G=>m.jsxs("div",{...G.droppableProps,ref:G.innerRef,className:"day-section",children:[m.jsx("div",{className:"sticky-day",children:A==="free"?"Free Time":`Day ${A}`}),ne[A].map((Y,Ce)=>{const{mainName:Ae,details:be}=Dn(Y.name);return m.jsx(ov,{draggableId:Y.id,index:Ce,isDragDisabled:!L,children:Be=>m.jsxs("div",{ref:Be.innerRef,...Be.draggableProps,...Be.dragHandleProps,className:`location-container ${a===Y.id?"expanded":""} ${Y.done?"done":""} ${L?"edit-mode":""}`,onClick:()=>!L&&Te(Y),id:`location-${Y.id}`,children:[m.jsxs("div",{className:"location-header",children:[m.jsx("div",{className:"location-icon-wrapper",children:m.jsx(K,{icon:Ue(Y.icon),className:"location-icon"})}),m.jsxs("div",{className:"location-name",children:[m.jsx("span",{className:"location-name-text",children:Ae}),!L&&m.jsx(m.Fragment,{children:Y.done?m.jsx(K,{icon:xi,className:"done-icon"}):h&&m.jsx("span",{className:"distance",children:Z[Y.id]&&m.jsxs("span",{className:"distance",children:[Z[Y.id]," km"]})})}),L&&m.jsx("button",{className:"itinerary-delete-button",onClick:me=>{me.stopPropagation(),zt(Y)},children:m.jsx(K,{icon:Yr})})]})]}),!L&&a===Y.id&&m.jsxs("div",{className:"location-details",children:[be&&m.jsx("span",{className:"location-details-text",children:be}),m.jsxs("div",{className:"button-row",children:[m.jsxs("button",{onClick:me=>{me.stopPropagation(),window.open(`https://www.google.com/search?q=${Y.name}`)},children:[m.jsx(K,{icon:Ti})," Google"]}),m.jsxs("button",{onClick:me=>{me.stopPropagation(),window.open(`https://waze.com/ul?ll=${Y.lat},${Y.lng}&navigate=yes`)},children:[m.jsx(K,{icon:ac})," Waze"]}),m.jsxs("button",{className:"copy-button",onClick:me=>$(me,Y.name),children:[m.jsx(K,{icon:hh})," Copy"]})]}),m.jsx("textarea",{value:d[Y.id]||"",onChange:me=>re(me,Y.id),onClick:me=>me.stopPropagation(),placeholder:"Add notes here...",rows:3,className:"location-notes"}),m.jsxs("button",{className:"mark-done-button",onClick:me=>T(me,Y.id,Y.done),children:[m.jsx(K,{icon:Y.done?yf:xi}),Y.done?" Mark as Pending":" Mark as Done"]})]})]})},Y.id)}),G.placeholder]})},A))})}),m.jsxs("button",{className:`add-location-button ${L?"edit-mode":""}`,children:[m.jsxs("div",{className:"left-half",onClick:()=>!L&&w(!0),children:[m.jsx(K,{icon:si}),m.jsx("span",{children:"Add Location"})]}),m.jsx("div",{className:"right-half",onClick:se,children:L?m.jsxs(m.Fragment,{children:[m.jsx(K,{icon:xi}),m.jsx("span",{children:"Update"})]}):m.jsx(K,{icon:HE})})]}),m.jsx("div",{className:`popup-overlay ${v?"open":""}`,onClick:fi}),m.jsx("div",{className:`location-popup ${v?"open":""} ${V?"details-visible":""}`,children:V?m.jsxs("div",{className:"add-location-details-container",children:[m.jsxs("div",{className:"location-details-header",children:[m.jsx("h3",{children:C.name}),m.jsx("button",{className:"reset-search-button",onClick:()=>{z(!1),y(null),pe("")},children:m.jsx(K,{icon:yf})})]}),m.jsxs("div",{className:"location-details-selectors",children:[m.jsx("div",{className:"day-picker",children:m.jsxs("select",{value:b,onChange:A=>x(A.target.value),children:[m.jsx("option",{value:"free",children:"Free Time"}),[...Array(o)].map((A,G)=>m.jsxs("option",{value:G+1,children:["Day ",G+1]},G))]})}),m.jsx("div",{className:"icon-picker",children:m.jsx("select",{value:S,onChange:A=>E(A.target.value),children:Kl.map(A=>m.jsx("option",{value:A.value,children:A.label},A.value))})})]}),m.jsxs("button",{onClick:De,className:"add-location-detail-button",children:[m.jsx(K,{icon:xi,style:{marginRight:"5px"}}),"Add Location"]})]}):m.jsxs("div",{className:"add-location-search-container",children:[m.jsx("h2",{children:"Add a Location"}),m.jsxs("div",{className:"search-container",children:[m.jsx(K,{icon:Ti,className:"search-icon"}),m.jsx("input",{value:ue,onChange:ee,disabled:!fe,placeholder:"Search locations",className:"location-input"}),ue&&m.jsx("button",{className:"clear-input",onClick:()=>pe(""),children:m.jsx(K,{icon:Yr})}),ge==="OK"&&m.jsx("ul",{className:"suggestions-list",children:N.map(({place_id:A,description:G})=>m.jsxs("li",{onClick:()=>Me(G),children:[m.jsx(K,{icon:Jn,className:"suggestion-icon"}),G]},A))})]})]})}
2349),R&&P&&m.jsx("div",{className:`expanded-location-details ${P?"visible":""}`,children:m.jsxs("div",{className:"location-container expanded",children:[m.jsxs("div",{className:"location-header",children:[m.jsx("div",{className:"location-icon-wrapper",children:m.jsx(K,{icon:Ue(P.icon),className:"location-icon"})}),m.jsx("div",{className:"location-name",children:m.jsx("span",{className:"location-name-text",children:P.name})})]}),m.jsxs("div",{className:"location-details",children:[m.jsxs("div",{className:"button-row",children:[m.jsxs("button",{onClick:A=>{A.stopPropagation(),window.open(`https://www.google.com/search?q=${P.name}`)},children:[m.jsx(K,{icon:Ti})," Google"]}),m.jsxs("button",{onClick:A=>{A.stopPropagation(),window.open(`https://waze.com/ul?ll=${P.lat},${P.lng}&navigate=yes`)},children:[m.jsx(K,{icon:ac})," Waze"]}),m.jsxs("button",{className:"copy-button",onClick:A=>$(A,P.name),children:[m.jsx(K,{icon:hh})," Copy"]})]}),m.jsx("textarea",{value:d[P.id]||"",onChange:A=>re(A,P.id),placeholder:"Add notes here...",rows:3,className:"location-notes"}),m.jsxs("button",{className:"mark-done-button",onClick:A=>T(A,P.id,P.done),children:[m.jsx(K,{icon:P.done?yf:xi}),P.done?" Mark as Pending":" Mark as Done"]})]})]})})]}):"Loading Maps"}function __({userId:e}){const[t,n]=p.useState([]),[r,i]=p.useState(""),[o,s]=p.useState(""),[a,l]=p.useState(!1),[u,c]=p.useState(!1),[d,f]=p.useState("All Tasks"),[h,g]=p.useState([]),v=p.useRef({}),[w,C]=p.useState(!1);p.useEffect(()=>{const _=nt(rt,`trips/${e}/todos`),P=nt(rt,`trips/${e}/participants`);Ho(_,I=>{const R=I.val();n(R?Object.entries(R).map(([q,V])=>({id:q,...V})):[])}),Ho(P,I=>{const R=I.val();g(R||[])}),C(r.trim()!==""&&o!=="")},[e,r,o]);const y=_=>{if(_.preventDefault(),w){const P=nt(rt,`trips/${e}/todos`);$i(P,{text:r,assignee:o||"Unassigned",completed:!1}),i(""),s(""),l(!1)}},b=(_,P)=>{const I=nt(rt,`trips/${e}/todos/${_}`);Kp(I,{completed:!P})},x=(_,P)=>{if(window.confirm(`Are you sure you want to delete "${P}"?`)){const I=nt(rt,`trips/${e}/todos/${_}`);oE(I)}},S=new Set(["All Tasks",...h.map(_=>_.name),"Unassigned"]),E=Array.from(S),L=d==="All Tasks"?t:t.filter(_=>_.assignee===d);return p.useEffect(()=>{const _=v.current[d];_&&_.scrollIntoView&&_.scrollIntoView({behavior:"smooth",inline:"center"})},[d]),m.jsxs("div",{className:"todo-tab",children:[m.jsxs("div",{className:"assignee-tabs",children:[m.jsx("button",{ref:_=>v.current["All Tasks"]=_,className:`assignee-pill fixed ${d==="All Tasks"?"active":""}`,onClick:()=>f("All Tasks"),children:"All Tasks"},"All Tasks"),m.jsx("div",{className:"scrollable-pills",children:E.filter(_=>_!=="All Tasks").map(_=>m.jsx("button",{ref:P=>v.current[_]=P,className:`assignee-pill ${d===_?"active":""}`,onClick:()=>f(_),children:_},_))})]}),m.jsxs("button",{className:`add-todo-button ${u?"edit-mode":""}`,children:[m.jsxs("div",{className:"left-half",onClick:()=>!u&&l(!0),children:[m.jsx(K,{icon:si}),m.jsx("span",{children:"Add Todo"})]}),m.jsx("div",{className:"right-half",onClick:()=>c(!u),children:u?m.jsxs(m.Fragment,{children:[m.jsx(K,{icon:xi}),m.jsx("span",{children:"Update"})]}):m.jsx(K,{icon:HE})})]}),m.jsx("ul",{className:"todo-list",children:L.map(_=>m.jsxs("li",{className:`todo-item ${_.completed?"done":""}`,onClick:()=>b(_.id,_.completed),children:[u&&m.jsx("button",{className:"delete-button",onClick:P=>{P.stopPropagation(),x(_.id,_.text)},children:m.jsx(K,{icon:Yr})}),m.jsx("span",{className:"todo-text",children:_.text}),d==="All Tasks"&&!_.completed&&m.jsx("span",{className:"todo-assignee-badge",children:_.assignee}),_.completed&&m.jsx(K,{icon:Im,className:"done-icon"})]},_.id))}),m.jsx("div",{className:`popup-overlay ${a?"open":""}`,onClick:()=>l(!1)}),m.jsx("div",{className:`todo-popup ${a?"open":""}`,children:m.jsxs("div",{className:"add-todo-container",children:[m.jsx("div",{className:"todo-details-header",children:m.jsx("h3",{children:"Add a Todo"})}),m.jsxs("form",{onSubmit:y,children:[m.jsxs("div",{className:"search-container",children:[m.jsx(K,{icon:yA,className:"search-icon"}),m.jsx("input",{type:"text",value:r,onChange:_=>i(_.target.value),placeholder:"Enter new todo",required:!0,className:"todo-input"})]}),m.jsx("div",{className:"todo-details-selectors",children:m.jsxs("select",{value:o,onChange:_=>s(_.target.value),className:"assignee-selector",required:!0,children:[m.jsx("option",{value:"",children:"Select Assignee"}),h.map((_,P)=>m.jsx("option",{value:_.name,children:_.name},P)),m.jsx("option",{value:"Unassigned",children:"Unassigned"})]})}),m.jsxs("button",{type:"submit",className:`add-todo-detail-button ${w?"":"disabled"}`,disabled:!w,children:[m.jsx(K,{icon:xi}),"Add Todo"]})]})]})})]})}const GC=[{name:"Food",icon:nd}
2349,{name:"Transportation",icon:ac},{name:"Accommodation",icon:rd},{name:"Fun",icon:EA},{name:"Other",icon:YE}];function L_({userId:e}){const[t,n]=p.useState([]),[r,i]=p.useState({description:"",amount:"",category:"",paidBy:""}),[o,s]=p.useState(0),[a,l]=p.useState([]),[u,c]=p.useState(!1),[d,f]=p.useState({}),[h,g]=p.useState([]);p.useEffect(()=>{const x=nt(rt,`trips/${e}/expenses`),S=nt(rt,`trips/${e}/participants`);Ho(x,E=>{const L=E.val();if(L){const _=Object.entries(L).map(([P,I])=>({id:P,...I}));n(_),v(_)}else n([]),s(0)}),Ho(S,E=>{const L=E.val();l(L||[])})},[e]),p.useEffect(()=>{w(),C()},[t,a]);const v=x=>{const S=x.reduce((E,L)=>E+Number(L.amount),0);s(S)},w=()=>{const x=o/a.length,S={};a.forEach(E=>{S[E.name]=0}),t.forEach(E=>{S[E.paidBy]+=Number(E.amount)-x}),f(S)},C=()=>{const x=Object.entries(d).filter(([L,_])=>_<0),S=Object.entries(d).filter(([L,_])=>_>0),E=[];x.forEach(([L,_])=>{S.forEach(([P,I])=>{if(_<0&&I>0){const R=Math.min(Math.abs(_),I);E.push(`${L} should pay ${R.toFixed(2)} CZK to ${P}`),_+=R,I-=R}})}),g(E)},y=x=>{if(x.preventDefault(),!r.category){alert("Please select a category");return}const S=nt(rt,`trips/${e}/expenses`);$i(S,{...r,amount:parseFloat(r.amount)}),i({description:"",amount:"",category:"",paidBy:""}),c(!1)},b=x=>{i(S=>({...S,category:x}))};return m.jsxs("div",{className:"expenses-tab",children:[m.jsxs("div",{className:"summary-box",children:[m.jsxs("div",{className:"total-box",children:[m.jsxs("div",{className:"box-title",children:[m.jsx(K,{icon:SA}),m.jsx("span",{children:"Total"})]}),m.jsxs("span",{className:"box-amount",children:[o.toFixed(2)," CZK"]})]}),m.jsxs("div",{className:"per-person-box",children:[m.jsxs("div",{className:"box-title",children:[m.jsx(K,{icon:qo}),m.jsx("span",{children:"Per Person"})]}),m.jsxs("span",{className:"box-amount",children:[(o/a.length).toFixed(2)," CZK"]})]})]}),m.jsx("h3",{className:"balance-heading",children:"Balance"}),m.jsx("div",{className:"balance-box",children:Object.entries(d).map(([x,S],E)=>m.jsxs("p",{children:[m.jsx(K,{icon:qo}),x,": ",S.toFixed(2)," CZK"]},E))}),m.jsx("h3",{className:"smart-summary-heading",children:"Smart Summary"}),m.jsx("div",{className:"smart-summary-box",children:h.map((x,S)=>m.jsx("p",{children:x},S))}),m.jsx("h3",{className:"all-expenses-heading",children:"All Expenses"}),m.jsx("div",{className:"expenses-list",children:t.map(x=>{var S;return m.jsxs("div",{className:"expenses-list-item",children:[m.jsxs("div",{className:"expense-category",children:[m.jsx(K,{icon:((S=GC.find(E=>E.name===x.category))==null?void 0:S.icon)||YE}),m.jsx("span",{className:"expense-description",children:x.description})]}),m.jsxs("div",{className:"expense-details",children:[m.jsxs("span",{className:"expense-amount",children:[x.amount," CZK"]}),m.jsx("span",{className:"expense-payer-badge",children:x.paidBy})]})]},x.id)})}),m.jsxs("button",{className:"add-expense-button",onClick:()=>c(!0),children:[m.jsx(K,{icon:si})," Add an Expense"]}),m.jsx("div",{className:`popup-overlay ${u?"open":""}`,onClick:()=>c(!1)}),m.jsx("div",{className:`expense-popup ${u?"open":""}`,children:m.jsxs("form",{onSubmit:y,children:[m.jsx("input",{type:"text",value:r.description,onChange:x=>i(S=>({...S,description:x.target.value})),placeholder:"Description",required:!0}),m.jsx("input",{type:"number",value:r.amount,onChange:x=>i(S=>({...S,amount:x.target.value})),placeholder:"Amount",required:!0}),m.jsx("div",{className:"category-selector",children:GC.map(x=>m.jsxs("button",{type:"button",className:`category-option ${r.category===x.name?"selected":""}`,onClick:()=>b(x.name),children:[m.jsx(K,{icon:x.icon}),x.name]},x.name))}),m.jsxs("select",{value:r.paidBy,onChange:x=>i(S=>({...S,paidBy:x.target.value})),required:!0,children:[m.jsx("option",{value:"",children:"Select who paid"}),a.map((x,S)=>m.jsx("option",{value:x.name,children:x.name},S))]}),m.jsx("button",{type:"submit",children:"Add Expense"}),m.jsx("button",{type:"button",onClick:()=>c(!1),children:"Cancel"})]})})]})}const v7=({isOpen:e,onClose:t})=>e?m.jsx("div",{className:"add-to-home-screen-modal",children:m.jsxs("div",{className:"modal-content",children:[m.jsx("h2",{children:"Add to Home Screen"}),m.jsx("p",{children:"For the best experience, please add this app to your home screen."}),m.jsxs("div",{className:"instructions",children:[m.jsx(K,{icon:si}),' Tap the "Add to Home Screen" button in your browser menu']}),m.jsx("button",{className:"got-it-button",onClick:t,children:"Got it"})]})}):null;function y7({isLoaded:e}){const[t,n]=p.useState("itinerary"),[r,i]=p.useState(null),[o,s]=p.useState(!0),[a,l]=
2349p.useState(!1),u=p.useRef(null),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=Ga(),v=new URLSearchParams(h.search).get("user"),w=[{icon:td,color:"rgb(255, 138, 0)"},{icon:ac,color:"black"},{icon:aA,color:"green"},{icon:hA,color:"rgb(86, 86, 86)"},{icon:id,color:"blue"},{icon:sA,color:"white"},{icon:rl,color:"rgb(133, 172, 4)"}];p.useEffect(()=>{if(v){const y=nt(rt,`trips/${v}`);Ho(y,b=>{const x=b.val();i(x),s(!1)},b=>{console.error("Error fetching trip data:",b),s(!1)})}else console.error("No user ID found in URL."),s(!1)},[v]),p.useEffect(()=>{const y=t==="itinerary"?u:t==="todo"?c:t==="expenses"?d:f;y&&y.current&&y.current.scrollIntoView({behavior:"smooth",inline:"center"})},[t]),p.useEffect(()=>{if(window.matchMedia("(display-mode: standalone)").matches)return;localStorage.getItem("hasShownAddToHomeScreenModal")||setTimeout(()=>l(!0),3e3)},[]);const C=()=>{l(!1),localStorage.setItem("hasShownAddToHomeScreenModal","true")};return o?m.jsx("div",{children:"Loading..."}):r?m.jsxs("div",{className:"trip-planner",style:{height:"100vh",display:"flex",flexDirection:"column"},children:[m.jsxs("div",{className:"tab-switcher",children:[m.jsx("div",{className:"icons-row",style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"10px 0"},children:w.map((y,b)=>m.jsx(K,{icon:y.icon,style:{color:y.color,margin:"0 5px",fontSize:"1em"}},b))}),m.jsxs("div",{className:"tabs-row",style:{display:"flex",overflowX:"auto"},children:[m.jsxs("button",{ref:u,className:t==="itinerary"?"active":"",onClick:()=>n("itinerary"),children:[t==="itinerary"&&m.jsx(K,{icon:cA})," Itinerary"]}),m.jsxs("button",{ref:c,className:t==="todo"?"active":"",onClick:()=>n("todo"),children:[t==="todo"&&m.jsx(K,{icon:bA})," Tasks"]}),m.jsxs("button",{ref:d,className:t==="expenses"?"active":"",onClick:()=>n("expenses"),children:[t==="expenses"&&m.jsx(K,{icon:uA})," Expenses"]})]})]}),m.jsxs("div",{style:{flex:1,overflowY:"auto"},children:[t==="itinerary"&&m.jsx(S_,{userId:v}),t==="todo"&&m.jsx(__,{userId:v}),t==="expenses"&&m.jsx(L_,{userId:v})]}),m.jsx(v7,{isOpen:a,onClose:C})]}):m.jsx("div",{children:"No trip data found for this user."})}const C7=["places"];function b7(){const[e,t]=p.useState(null),{isLoaded:n,loadError:r}=Eg({googleMapsApiKey:"AIzaSyBnxdlHz3EevWXi7xZScF8QooHyICzpWnw",libraries:C7});return p.useEffect(()=>{const o=new URL(window.location.href).searchParams.get("user");o&&t(o)},[]),r?"Error loading maps":n?m.jsx(V3,{children:m.jsxs($3,{children:[m.jsx(Sr,{path:"/",element:e?m.jsx(Fy,{to:`/trip-planner?user=${e}`}):m.jsx(f7,{isLoaded:n})}),m.jsx(Sr,{path:"/trip-planner",element:m.jsx(y7,{isLoaded:n})}),m.jsx(Sr,{path:"/expenses",element:m.jsx(L_,{})}),m.jsx(Sr,{path:"/itinerary",element:m.jsx(S_,{})}),m.jsx(Sr,{path:"/todo",element:m.jsx(__,{})}),m.jsx(Sr,{path:"/edit",element:m.jsx(g7,{isLoaded:n})}),m.jsx(Sr,{path:"*",element:m.jsx(Fy,{to:"/"})})]})}):"Loading Maps"}const w7=Df.createRoot(document.getElementById("root"));w7.render(m.jsx(de.StrictMode,{children:m.jsx(b7,{})}));

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.