PageSourceSearch

https://drmis.netlify.app/static/js/main.8f532266.js

js drmis.netlify.app collected 2026-10-03 10:40:02 UTC 691,222 bytes, 2 lines download raw bytes

1/*! For license information please see main.8f532266.js.LICENSE.txt */
2!function(){var e={861:function(e,t,n){"use strict";var r=n(456),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=l(n);f&&(o=o.concat(f(n)));for(var s=u(t),v=u(n),m=0;m<o.length;++m){var y=o[m];if(!a[y]&&(!r||!r[y])&&(!v||!v[y])&&(!s||!s[y])){var g=d(n,y);try{c(t,y,g)}catch(b){}}}}return t}},229:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case v:case u:return e;default:return t}}case i:return t}}}function x(e){return k(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||k(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===o},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===o||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=k},456:function(e,t,n){"use strict";e.exports=n(229)},862:function(e,t,n){"use strict";var r,i=n(313),a=(r=i)&&"object"===typeof r&&"default"in r?r.default:r,o=n(663),s=new o,u=s.getBrowser(),c=s.getCPU(),l=s.getDevice(),f=s.getEngine(),d=s.getOS(),h=s.getUA(),p=function(e){return s.setUA(e)},v=function(e){if(e){var t=new o(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},m=Object.freeze({ClientUAInstance:s,browser:u,cpu:c,device:l,engine:f,os:d,ua:h,setUa:p,parseUserAgent:v});function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(){return k=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},k.apply(this,arguments)}
vendor: 6,961 bytes, line 2
2function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var C="mobile",A="tablet",j="smarttv",N="console",I="wearable",O="embedded",R=void 0,D={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},M={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},L={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},U=function(e){switch(e){case C:return{isMobile:!0};case A:return{isTablet:!0};case j:return{isSmartTV:!0};case N:return{isConsole:!0};case I:return{isWearable:!0};case R:return{isBrowser:!0};case O:return{isEmbedded:!0};default:return L}},F=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},V=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},B=function(e){var t=V();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},z=function(e,t,n,r,i){return{isBrowser:e,browserMajorVersion:F(t.major),browserFullVersion:F(t.version),browserName:F(t.name),engineName:F(n.name),engineVersion:F(n.version),osName:F(r.name),osVersion:F(r.version),userAgent:F(i)}},W=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:F(t.vendor),model:F(t.model),os:F(n.name),osVersion:F(n.version),ua:F(r)})},H=function(e,t,n,r){return{isSmartTV:e,engineName:F(t.name),engineVersion:F(t.version),osName:F(n.name),osVersion:F(n.version),userAgent:F(r)}},q=function(e,t,n,r){return{isConsole:e,engineName:F(t.name),engineVersion:F(t.version),osName:F(n.name),osVersion:F(n.version),userAgent:F(r)}},J=function(e,t,n,r){return{isWearable:e,engineName:F(t.name),engineVersion:F(t.version),osName:F(n.name),osVersion:F(n.version),userAgent:F(r)}},K=function(e,t,n,r,i){return{isEmbedded:e,vendor:F(t.vendor),model:F(t.model),engineName:F(n.name),engineVersion:F(n.version),osName:F(r.name),osVersion:F(r.version),userAgent:F(i)}};var $=function(e){return e.type===C},G=function(e){return e.type===A},Y=function(e){var t=e.type;return t===C||t===A},X=function(e){return e.type===j},Q=function(e){return e.type===R},Z=function(e){return e.type===I},ee=function(e){return e.type===N},te=function(e){return e.type===O},ne=function(e){var t=e.vendor;return F(t)},re=function(e){var t=e.model;return F(t)},ie=function(e){var t=e.type;return F(t,"browser")},ae=function(e){return e.name===M.Android},oe=function(e){return e.name===M.Windows},se=function(e){return e.name===M.MAC_OS},ue=function(e){return e.name===M.WindowsPhone},ce=function(e){return e.name===M.IOS},le=function(e){var t=e.version;return F(t)},fe=function(e){var t=e.name;return F(t)},de=function(e){return e.name===D.Chrome},he=function(e){return e.name===D.Firefox},pe=function(e){return e.name===D.Chromium},ve=function(e){return e.name===D.Edge},me=function(e){return e.name===D.Yandex},ye=function(e){var t=e.name;return t===D.Safari||t===D.MobileSafari},ge=function(e){return e.name===D.MobileSafari},be=function(e){return e.name===D.Opera},we=function(e){var t=e.name;return t===D.InternetExplorer||t===D.Ie},ke=function(e){return e.name===D.MIUI},xe=function(e){return e.name===D.SamsungBrowser},_e=function(e){var t=e.version;return F(t)},Se=function(e){var t=e.major;return F(t)},Ee=function(e){var t=e.name;return F(t)},Pe=function(e){var t=e.name;return F(t)},Te=function(e){var t=e.version;return F(t)},Ce=function(){var e=V(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"===typeof t&&/electron/.test(t)},Ae=function(e){return"string"===typeof e&&-1!==e.indexOf("Edg/")},je=function(){var e=V();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Ne=function(){return B("iPad")},Ie=function(){return B("iPhone")},Oe=function(){return B("iPod")},Re=function(e){return F(e)};function De(e){var t=e||m,n=t.device,r=t.browser,i=t.os,a=t.engine,o=t.ua;return{isSmartTV:X(n),isConsole:ee(n),isWearable:Z(n),isEmbedded:te(n),isMobileSafari:ge(r)||Ne(),isChromium:pe(r),isMobile:Y(n)||Ne(),isMobileOnly:$(n),isTablet:G(n)||Ne(),isBrowser:Q(n),isDesktop:Q(n),isAndroid:ae(i),isWinPhone:ue(i),isIOS:ce(i)||Ne(),isChrome:de(r),isFirefox:he(r),isSafari:ye(r),isOpera:be(r),isIE:we(r),osVersion:le(i),osName:fe(i),fullBrowserVersion:_e(r),browserVersion:Se(r),browserName:Ee(r),mobileVendor:ne(n),mobileModel:re(n),engineName:Pe(a),engineVersion:Te(a),getUA:Re(o),isEdge:ve(r)||Ae(o),isYandex:me(r),deviceType:ie(n),isIOS13:je(),isIPad13:Ne(),isIPhone13:Ie(),isIPod13:Oe(),isElectron:Ce(),isEdgeChromium:Ae(o),isLegacyEdge:ve(r)&&!Ae(o),isWindows:oe(i),isMacOs:se(i),isMIUI:ke(r),isSamsungBrowser:xe(r)}}var Me=X(l),Le=ee(l),Ue=Z(l),Fe=te(l),Ve=ge(u)||Ne(),Be=pe(u),ze=Y(l)||Ne(),We=$(l),He=G(l)||Ne(),qe=Q(l),Je=Q(l),Ke=ae(d),$e=ue(
vendor: 4,834 bytes, line 2
2d),Ge=ce(d)||Ne(),Ye=de(u),Xe=he(u),Qe=ye(u),Ze=be(u),et=we(u),tt=le(d),nt=fe(d),rt=_e(u),it=Se(u),at=Ee(u),ot=ne(l),st=re(l),ut=Pe(f),ct=Te(f),lt=Re(h),ft=ve(u)||Ae(h),dt=me(u),ht=ie(l),pt=je(),vt=Ne(),mt=Ie(),yt=Oe(),gt=Ce(),bt=Ae(h),wt=ve(u)&&!Ae(h),kt=oe(d),xt=se(d),_t=ke(u),St=xe(u);function Et(e){var t=e||window.navigator.userAgent;return v(t)}t.tq=ze},534:function(e,t,n){"use strict";var r=n(313),i=n(224);function a(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 o=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var l=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,h={},p={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(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){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-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(y,g);m[t]=new v(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(y,g);m[t]=new v(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(y,g);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var M,L=Object.assign;function U(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function V(e,t){if(!e||F)return"";F=!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()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var u="\n"+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function B(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case x:return"Portal";case E:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case j:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function W(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=(e=t.render).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 z(t);case 8:return t===S?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)}
vendor: 26,468 bytes, line 2
2,set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,le,fe=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=L({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 ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,_e=null,Se=null;function Ee(e){if(e=bi(e)){if("function"!==typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=ki(t),xe(e.stateNode,e.type,t))}}function Pe(e){_e?Se?Se.push(e):Se=[e]:_e=e}function Te(){if(_e){var e=_e,t=Se;if(Se=_e=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ce(e,t){return e(t)}function Ae(){}var je=!1;function Ne(e,t,n){if(je)return e(t,n);je=!0;try{return Ce(e,t,n)}finally{je=!1,(null!==_e||null!==Se)&&(Ae(),Te())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=ki(n);if(null===r)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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Oe=!1;if(l)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(le){Oe=!1}function De(e,t,n,r,i,a,o,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var Me=!1,Le=null,Ue=!1,Fe=null,Ve={onError:function(e){Me=!0,Le=e}};function Be(e,t,n,r,i,a,o,s,u){Me=!1,Le=null,De.apply(Ve,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(ze(e)!==e)throw Error(a(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return He(i),e;if(o===r)return He(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Je(e):null}function Je(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Je(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,$e=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Xe=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var ct=64,lt=4194304;function ft(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=ft(s):0!==(a&=o)&&(r=ft(a))}else 0!==(o=n&~i)?r=ft(o):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function ht(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;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var kt,xt,_t,St,Et,Pt=!1,Tt=[],Ct=null,At=null,jt=null,Nt=new Map,It=new Map,Ot=[],Rt="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 Dt(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=gi(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){Ut(e)&&n.delete(t)}function Vt(){Pt=!1,null!==Ct&&Ut(Ct)&&(Ct=null),null!==At&&Ut(At)&&(At=null),null!==jt&&Ut(jt)&&(jt=null),Nt.forEach(Ft),It.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function zt(e){function t(t){return Bt(t,e)}if(0<Tt.length){Bt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ct&&Bt(Ct,e),null!==At&&Bt(At,e),null!==jt&&Bt(jt,e),Nt.forEach(t),It.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Lt(n),null===n.blockedOn&&Ot.shift()}var Wt=w.ReactCurrentBatchConfig,Ht=!0;function qt(e,t,n,r){var i=bt,a=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,Wt.transition=a}}function Jt(e,t,n,r){var i=bt,a=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,Wt.transition=a}}function Kt(e,t,n,r){if(Ht){var i=Gt(e,t,n,r);if(null===i)Hr(e,t,r,$t,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ct=Mt(Ct,e,t,n,r,i),!0;case"dragenter":return At=Mt(At,e,t,n,r,i),!0;case"mouseover":return jt=Mt(jt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Nt.set(a,Mt(Nt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,It.set(a,Mt(It.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var a=bi(i);if(null!==a&&kt(a),null===(a=Gt(e,t,n,r))&&Hr(e,t,r,$t,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var $t=null;function Gt(e,t,n,r){if($t=null,null!==(e=gi(e=ke(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Yt(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(Qe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Qt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=an(cn),fn=L({},cn,{view:0,detail:0}),dn=an(fn),hn=L({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(on=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=on=0,un=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=an(hn),vn=an(L({},hn,{dataTransfer:0})),mn=an(L({},fn,{relatedTarget:0})),yn=an(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(gn),wn=an(L({},cn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function En(){return Sn}var Pn=L({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(Pn),Cn=an(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=an(L({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),jn=an(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=L({},hn,{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}),In=an(Nn),On=[9,13,27,32],Rn=l&&"CompositionEvent"in window,Dn=null;l&&"documentMode"in document&&(Dn=document.documentMode);var Mn=l&&"TextEvent"in window&&!Dn,Ln=l&&(!Rn||Dn&&8<Dn&&11>=Dn),Un=String.fromCharCode(32),Fn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function qn(e,t,n,r){Pe(r),0<(t=Jr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jn=null,Kn=null;function $n(e){Ur(e,0)}function Gn(e){if(K(wi(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(l){var Qn;if(l){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Qn=Zn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Jn&&(Jn.detachEvent("onpropertychange",nr),Kn=Jn=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];qn(t,Kn,e,ke(e)),Ne($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Jn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function ar(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)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(!f.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=lr(n,a);var o=lr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=l&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==$(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=Jr(yr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},_r={},Sr={};function Er(e){if(_r[e])return _r[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return _r[e]=n[t];return e}l&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Pr=Er("animationend"),Tr=Er("animationiteration"),Cr=Er("animationstart"),Ar=Er("transitionend"),jr=new Map,Nr="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 Ir(e,t){jr.set(e,t),u(t,[e])}for(var Or=0;Or<Nr.length;Or++){var Rr=Nr[Or];Ir(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Ir(Pr,"onAnimationEnd"),Ir(Tr,"onAnimationIteration"),Ir(Cr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Ar,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,u,c){if(Be.apply(this,arguments),Me){if(!Me)throw Error(a(198));var l=Le;Me=!1,Le=null,Ue||(Ue=!0,Fe=l)}}(r,t,void 0,e),e.currentTarget=null}function Ur(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Lr(i,s,c),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,c=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Lr(i,s,c),a=u}}}if(Ue)throw e=Fe,Ue=!1,Fe=null,e}function Fr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Br]){e[Br]=!0,o.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Vr(t,!1,e),Vr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Vr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var i=qt;break;case 4:i=Jt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=gi(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=a,i=ke(n),o=[];e:{var s=jr.get(e);if(void 0!==s){var u=ln,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=Tn;break;case"focusin":c="focus",u=mn;break;case"focusout":c="blur",u=mn;break;case"beforeblur":case"afterblur":u=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case Pr:case Tr:case Cr:u=yn;break;case Ar:u=jn;break;case"scroll":u=dn;break;case"wheel":u=In;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Cn}var l=0!==(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=Ie(p,d))&&l.push(qr(p,v,h)))),f)break;p=p.return}0<l.length&&(s=new u(s,c,null,n,i),o.push({event:s,listeners:l}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!gi(c)&&!c[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?gi(c):null)&&(c!==(f=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=pn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(l=Cn,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==u?s:wi(u),h=null==c?s:wi(c),(s=new l(v,p+"leave",u,n,i)).target=f,s.relatedTarget=h,v=null,gi(i)===r&&((l=new l(d,p+"enter",c,n,i)).target=h,l.relatedTarget=f,v=l),f=v,u&&c)e:{for(d=c,p=0,h=l=u;h;h=Kr(h))p++;for(h=0,v=d;v;v=Kr(v))h++;for(;0<p-h;)l=Kr(l),p--;for(;0<h-p;)d=Kr(d),h--;for(;p--;){if(l===d||null!==d&&l===d.alternate)break e;l=Kr(l),d=Kr(d)}l=null}else l=null;null!==u&&$r(o,s,u,l,!1),null!==c&&null!==f&&$r(o,f,c,l,!0)}if("select"===(u=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var m=Yn;else if(Hn(s))if(Xn)m=or;else{m=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);switch(m&&(m=m(e,r))?qn(o,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?wi(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,gr=null);break;case"focusout":gr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(o,n,i)}var g;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");
vendor: 97,668 bytes, line 2
2b&&(Ln&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(g=en()):(Qt="value"in(Xt=i)?Xt.value:Xt.textContent,zn=!0)),0<(y=Jr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:y}),g?b.data=g:null!==(g=Bn(n))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Un);case"textInput":return(e=t.data)===Un&&Fn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Rn&&Vn(e,t)?(e=en(),Zt=Qt=Xt=null,zn=!1,e):null;switch(e){case"paste":default: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 Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Jr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g))}Ur(o,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ie(e,n))&&r.unshift(qr(e,a,i)),null!=(a=Ie(e,t))&&r.push(qr(e,a,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Ie(n,a))&&o.unshift(qr(n,u,s)):i||null!=(u=Ie(n,a))&&o.push(qr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Qr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,oi="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);zt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function li(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,hi="__reactProps$"+fi,pi="__reactContainer$"+fi,vi="__reactEvents$"+fi,mi="__reactListeners$"+fi,yi="__reactHandles$"+fi;function gi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=li(e);null!==e;){if(n=e[di])return n;e=li(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[di]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ki(e){return e[hi]||null}var xi=[],_i=-1;function Si(e){return{current:e}}function Ei(e){0>_i||(e.current=xi[_i],xi[_i]=null,_i--)}function Pi(e,t){_i++,xi[_i]=e.current,e.current=t}var Ti={},Ci=Si(Ti),Ai=Si(!1),ji=Ti;function Ni(e,t){var n=e.type.contextTypes;if(!n)return Ti;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oi(){Ei(Ai),Ei(Ci)}function Ri(e,t,n){if(Ci.current!==Ti)throw Error(a(168));Pi(Ci,t),Pi(Ai,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,W(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ti,ji=Ci.current,Pi(Ci,e),Pi(Ai,Ai.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Di(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ai),Ei(Ci),Pi(Ci,e)):Ei(Ai),Pi(Ai,n)}var Ui=null,Fi=!1,Vi=!1;function Bi(e){null===Ui?Ui=[e]:Ui.push(e)}function zi(){if(!Vi&&null!==Ui){Vi=!0;var e=0,t=bt;try{var n=Ui;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ui=null,Fi=!1}catch(i){throw null!==Ui&&(Ui=Ui.slice(e+1)),Ke(Ze,zi),i}finally{bt=t,Vi=!1}}return null}var Wi=[],Hi=0,qi=null,Ji=0,Ki=[],$i=0,Gi=null,Yi=1,Xi="";function Qi(e,t){Wi[Hi++]=Ji,Wi[Hi++]=qi,qi=e,Ji=t}function Zi(e,t,n){Ki[$i++]=Yi,Ki[$i++]=Xi,Ki[$i++]=Gi,Gi=e;var r=Yi;e=Xi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yi=1<<32-ot(t)+i|n<<i|r,Xi=a+e}else Yi=1<<a|n<<i|r,Xi=e}function ea(e){null!==e.return&&(Qi(e,1),Zi(e,1,0))}function ta(e){for(;e===qi;)qi=Wi[--Hi],Wi[Hi]=null,Ji=Wi[--Hi],Wi[Hi]=null;for(;e===Gi;)Gi=Ki[--$i],Ki[$i]=null,Xi=Ki[--$i],Ki[$i]=null,Yi=Ki[--$i],Ki[$i]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Yi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function ua(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ca(e){if(ia){var t=ra;if(t){var n=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=ci(n.nextSibling);var r=na;t&&sa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function la(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function fa(e){if(e!==na)return!1;if(!ia)return la(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(ua(e))throw da(),Error(a(418));for(;t;)oa(e,t),t=ci(t.nextSibling)}if(la(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ci(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=ci(e.nextSibling)}function ha(){ra=na=null,ia=!1}function pa(e){null===aa?aa=[e]:aa.push(e)}var va=w.ReactCurrentBatchConfig;function ma(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Si(null),ga=null,ba=null,wa=null;function ka(){wa=ba=ga=null}function xa(e){var t=ya.current;Ei(ya),e._currentValue=t}function _a(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sa(e,t){ga=e,wa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ga)throw Error(a(308));ba=e,ga.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Pa=null;function Ta(e){null===Pa?Pa=[e]:Pa.push(e)}function Ca(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ta(t)):(n.next=i.next,i.next=n),t.interleaved=n,Aa(e,r)}function Aa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(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 Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Au)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Aa(e,n)}return null===(i=r.interleaved)?(t.next=t,Ta(r)):(t.next=i.next,i.next=t),r.interleaved=t,Aa(e,n)}function Da(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Ma(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function La(e,t,n,r){var i=e.updateQueue;ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===o?a=c:o.next=c,o=u;var l=e.alternate;null!==l&&((s=(l=l.updateQueue).lastBaseUpdate)!==o&&(null===s?l.firstBaseUpdate=c:s.next=c,l.lastBaseUpdate=u))}if(null!==a){var f=i.baseState;for(o=0,l=c=u=null,s=a;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==l&&(l=l.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=v.payload)?p.call(h,f,d):p)||void 0===d)break e;f=L({},f,d);break e;case 2:ja=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===l?(c=l=h,u=f):l=l.next=h,o|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===l&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=l,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Lu|=o,e.lanes=o,e.memoizedState=f}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var Fa=(new r.Component).refs;function Va(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ba={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),a=Oa(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ra(e,a,i))&&(rc(t,e,i,r),Da(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),a=Oa(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ra(e,a,i))&&(rc(t,e,i,r),Da(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Oa(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Ra(e,i,r))&&(rc(t,e,r,n),Da(t,e,r))}};function za(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,a))}function Wa(e,t,n){var r=!1,i=Ti,a=t.contextType;return"object"===typeof a&&null!==a?a=Ea(a):(i=Ii(t)?ji:Ci.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ni(e,i):Ti),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ba,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ba.enqueueReplaceState(t,t.state,null)}function qa(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fa,Na(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Ea(a):(a=Ii(t)?ji:Ci.current,i.context=Ni(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Va(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Ba.enqueueReplaceState(i,i.state,null),La(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Ja(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===Fa&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $a(e){return(0,e._init)(e._payload)}function Ga(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Uc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===_?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===I&&$a(a)===t.type)?((r=i(t,n.props)).ref=Ja(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Ja(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Uc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Ja(e,null,t),n.return=e,n;case x:return(t=Fc(t,e.mode,n)).return=e,t;case I:return d(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Ka(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?c(e,t,n,r):null;case x:return n.key===i?l(e,t,n,r):null;case I:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:f(e,t,n,r,null);Ka(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return f(t,e=e.get(n)||null,r,i,null);Ka(t,r)}return null}function v(i,a,s,u){for(var c=null,l=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=h(i,f,s[v],u);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,v),null===l?c=y:l.sibling=y,l=y,f=m}if(v===s.length)return n(i,f),ia&&Qi(i,v),c;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],u))&&(a=o(f,a,v),null===l?c=f:l.sibling=f,l=f);return ia&&Qi(i,v),c}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m);return e&&f.forEach((function(e){return t(i,e)})),ia&&Qi(i,v),c}function m(i,s,u,c){var l=D(u);if("function"!==typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,v=s,m=s=0,y=null,g=u.next();null!==v&&!g.done;m++,g=u.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=h(i,v,g.value,c);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(i,v),s=o(b,s,m),null===f?l=b:f.sibling=b,f=b,v=y}if(g.done)return n(i,v),ia&&Qi(i,m),l;if(null===v){for(;!g.done;m++,g=u.next())null!==(g=d(i,g.value,c))&&(s=o(g,s,m),null===f?l=g:f.sibling=g,f=g);return ia&&Qi(i,m),l}for(v=r(i,v);!g.done;m++,g=u.next())null!==(g=p(v,i,m,g.value,c))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),s=o(g,s,m),null===f?l=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),ia&&Qi(i,m),l}return function e(r,a,o,u){if("object"===typeof o&&null!==o&&o.type===_&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var c=o.key,l=a;null!==l;){if(l.key===c){if((c=o.type)===_){if(7===l.tag){n(r,l.sibling),(a=i(l,o.props.children)).return=r,r=a;break e}}else if(l.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&$a(c)===l.type){n(r,l.sibling),(a=i(l,o.props)).ref=Ja(r,l,o),a.return=r,r=a;break e}n(r,l);break}t(r,l),l=l.sibling}o.type===_?((a=Mc(o.props.children,r.mode,u,o.key)).return=r,r=a):((u=Dc(o.type,o.key,o.props,null,r.mode,u)).ref=Ja(r,a,o),u.return=r,r=u)}return s(r);case x:e:{for(l=o.key;null!==a;){if(a.key===l){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(o,r.mode,u)).return=r,r=a}return s(r);case I:return e(r,a,(l=o._init)(o._payload),u)}if(te(o))return v(r,a,o,u);if(D(o))return m(r,a,o,u);Ka(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Uc(o,r.mode,u)).return=r,r=a),s(r)):n(r,a)}}var Ya=Ga(!0),Xa=Ga(!1),Qa={},Za=Si(Qa),eo=Si(Qa),to=Si(Qa);function no(e){if(e===Qa)throw Error(a(174));return e}function ro(e,t){switch(Pi(to,t),Pi(eo,e),Pi(Za,Qa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(Za),Pi(Za,t)}function io(){Ei(Za),Ei(eo),Ei(to)}function ao(e){no(to.current);var t=no(Za.current),n=ue(t,e.type);t!==n&&(Pi(eo,e),Pi(Za,n))}function oo(e){eo.current===e&&(Ei(Za),Ei(eo))}var so=Si(0);function uo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var co=[];function lo(){for(var e=0;e<co.length;e++)co[e]._workInProgressVersionPrimary=null;co.length=0}var fo=w.ReactCurrentDispatcher,ho=w.ReactCurrentBatchConfig,po=0,vo=null,mo=null,yo=null,go=!1,bo=!1,wo=0,ko=0;function xo(){throw Error(a(321))}function _o(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,o){if(po=o,vo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ss:us,e=n(r,i),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(a(301));o+=1,yo=mo=null,t.updateQueue=null,fo.current=cs,e=n(r,i)}while(bo)}if(fo.current=os,t=null!==mo&&null!==mo.next,po=0,yo=mo=vo=null,go=!1,t)throw Error(a(300));return e}function Eo(){var e=0!==wo;return wo=0,e}function Po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yo?vo.memoizedState=yo=e:yo=yo.next=e,yo}function To(){if(null===mo){var e=vo.alternate;e=null!==e?e.memoizedState:null}else e=mo.next;var t=null===yo?vo.memoizedState:yo.next;if(null!==t)yo=t,mo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(mo=e).memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},null===yo?vo.memoizedState=yo=e:yo=yo.next=e}return yo}function Co(e,t){return"function"===typeof t?t(e):t}function Ao(e){var t=To(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=mo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var u=s=null,c=null,l=o;do{var f=l.lane;if((po&f)===f)null!==c&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===c?(u=c=d,s=r):c=c.next=d,vo.lanes|=f,Lu|=f}l=l.next}while(null!==l&&l!==o);null===c?s=r:c.next=u,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,vo.lanes|=o,Lu|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jo(e){var t=To(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sr(o,t.memoizedState)||(ws=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(){}function Io(e,t){var n=vo,r=To(),i=t(),o=!sr(r.memoizedState,i);if(o&&(r.memoizedState=i,ws=!0),r=r.queue,Ho(Do.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==yo&&1&yo.memoizedState.tag){if(n.flags|=2048,Fo(9,Ro.bind(null,n,r,i,t),void 0,null),null===ju)throw Error(a(349));0!==(30&po)||Oo(n,t,i)}return i}function Oo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=vo.updateQueue)?(t={lastEffect:null,stores:null},vo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ro(e,t,n,r){t.value=n,t.getSnapshot=r,Mo(t)&&Lo(e)}function Do(e,t,n){return n((function(){Mo(t)&&Lo(e)}))}function Mo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Lo(e){var t=Aa(e,1);null!==t&&rc(t,e,1,-1)}function Uo(e){var t=Po();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,vo,e),[t.memoizedState,e]}function Fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=vo.updateQueue)?(t={lastEffect:null,stores:null},vo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Vo(){return To().memoizedState}function Bo(e,t,n,r){var i=Po();vo.flags|=e,i.memoizedState=Fo(1|t,n,void 0,void 0===r?null:r)}function zo(e,t,n,r){var i=To();r=void 0===r?null:r;var a=void 0;if(null!==mo){var o=mo.memoizedState;if(a=o.destroy,null!==r&&_o(r,o.deps))return void(i.memoizedState=Fo(t,n,a,r))}vo.flags|=e,i.memoizedState=Fo(1|t,n,a,r)}function Wo(e,t){return Bo(8390656,8,e,t)}function Ho(e,t){return zo(2048,8,e,t)}function qo(e,t){return zo(4,2,e,t)}function Jo(e,t){return zo(4,4,e,t)}function Ko(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $o(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,zo(4,4,Ko.bind(null,t,e),n)}function Go(){}function Yo(e,t){var n=To();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xo(e,t){var n=To();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_o(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qo(e,t,n){return 0===(21&po)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=vt(),vo.lanes|=n,Lu|=n,e.baseState=!0),t)}function Zo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{bt=n,ho.transition=r}}function es(){return To().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=Ca(e,t,n,r))){rc(n,e,r,tc()),as(n,t,r)}}function ns(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,o)){var u=t.interleaved;return null===u?(i.next=i,Ta(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ca(e,t,i,r))&&(rc(n,e,r,i=tc()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===vo||null!==t&&t===vo}function is(e,t){bo=go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var os={readContext:Ea,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useInsertionEffect:xo,useLayoutEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useMutableSource:xo,useSyncExternalStore:xo,useId:xo,unstable_isNewReconciler:!1},ss={readContext:Ea,useCallback:function(e,t){return Po().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Bo(4194308,4,Ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=Po();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Po();return t=void 0!==n?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=ts.bind(null,vo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Po().memoizedState=e},useState:Uo,useDebugValue:Go,useDeferredValue:function(e){return Po().memoizedState=e},useTransition:function(){var e=Uo(!1),t=e[0];return e=Zo.bind(null,e[1]),Po().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vo,i=Po();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===ju)throw Error(a(349));0!==(30&po)||Oo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Wo(Do.bind(null,r,o,e),[e]),r.flags|=2048,Fo(9,Ro.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Po(),t=ju.identifierPrefix;if(ia){var n=Xi;t=":"+t+"R"+(n=(Yi&~(1<<32-ot(Yi)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ko++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:Ea,useCallback:Yo,useContext:Ea,useEffect:Ho,useImperativeHandle:$o,useInsertionEffect:qo,useLayoutEffect:Jo,useMemo:Xo,useReducer:Ao,useRef:Vo,useState:function(){return Ao(Co)},useDebugValue:Go,useDeferredValue:function(e){return Qo(To(),mo.memoizedState,e)},useTransition:function(){return[Ao(Co)[0],To().memoizedState]},useMutableSource:No,useSyncExternalStore:Io,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ea,useCallback:Yo,useContext:Ea,useEffect:Ho,useImperativeHandle:$o,useInsertionEffect:qo,useLayoutEffect:Jo,useMemo:Xo,useReducer:jo,useRef:Vo,useState:function(){return jo(Co)},useDebugValue:Go,useDeferredValue:function(e){var t=To();return null===mo?t.memoizedState=e:Qo(t,mo.memoizedState,e)},useTransition:function(){return[jo(Co)[0],To().memoizedState]},useMutableSource:No,useSyncExternalStore:Io,useId:es,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Ju=r),ds(0,t)},n}function vs(e,t,n){(n=Oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Pc.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oa(-1,1)).tag=2,Ra(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function ks(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ya(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var a=t.ref;return Sa(t,i),r=So(e,t,n,r,a,i),n=Eo(),null===e||ws?(ia&&n&&ea(t),t.flags|=1,ks(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||Oc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ss(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Rc(a,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Ts(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pi(Ru,Ou),Ou|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pi(Ru,Ou),Ou|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Pi(Ru,Ou),Ou|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Pi(Ru,Ou),Ou|=r;return ks(e,t,i,n),t.child}function Ps(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var a=Ii(n)?ji:Ci.current;return a=Ni(t,a),Sa(t,i),n=So(e,t,n,r,a,i),r=Eo(),null===e||ws?(ia&&r&&ea(t),t.flags|=1,ks(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Cs(e,t,n,r,i){if(Ii(n)){var a=!0;Mi(t)}else a=!1;if(Sa(t,i),null===t.stateNode)Hs(e,t),Wa(t,n,r),qa(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ea(c):c=Ni(t,c=Ii(n)?ji:Ci.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==c)&&Ha(t,o,r,c),ja=!1;var d=t.memoizedState;o.state=d,La(t,r,o,i),u=t.memoizedState,s!==r||d!==u||Ai.current||ja?("function"===typeof l&&(Va(t,n,l,r),u=t.memoizedState),(s=ja||za(t,n,s,r,d,u,c))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ia(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ma(t.type,s),o.props=c,f=t.pendingProps,d=o.context,"object"===typeof(u=n.contextType)&&null!==u?u=Ea(u):u=Ni(t,u=Ii(n)?ji:Ci.current);var h=n.getDerivedStateFromProps;(l="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==f||d!==u)&&Ha(t,o,r,u),ja=!1,d=t.memoizedState,o.state=d,La(t,r,o,i);var p=t.memoizedState;s!==f||d!==p||Ai.current||ja?("function"===typeof h&&(Va(t,n,h,r),p=t.memoizedState),(c=ja||za(t,n,c,r,d,p,u)||!1)?(l||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,u),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=u,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,a,i)}function As(e,t,n,r,i,a){Ps(e,t);var o=0!==(128&t.flags);if(!r&&!o)return i&&Li(t,n,!1),qs(e,t,a);r=t.stateNode,bs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):ks(e,t,s,a),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function js(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),ro(e,t.containerInfo)}function Ns(e,t,n,r,i){return ha(),pa(i),t.flags|=256,ks(e,t,n,r),t.child}var Is,Os,Rs,Ds,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Us(e,t,n){var r,i=t.pendingProps,o=so.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Pi(so,1&o),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Lc(u,i,0,null),e=Mc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ms,e):Fs(t,u));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,r=fs(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Lc({mode:"visible",children:r.children},i,0,null),(o=Mc(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Ya(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ms,o);if(0===(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Vs(e,t,s,r=fs(o=Error(a(419)),r,void 0))}if(u=0!==(s&e.childLanes),ws||u){if(null!==(r=ju)){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}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Aa(e,i),rc(r,e,i,-1))}return mc(),Vs(e,t,s,r=fs(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=ci(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(Ki[$i++]=Yi,Ki[$i++]=Xi,Ki[$i++]=Gi,Yi=e.id,Xi=e.overflow,Gi=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,u,i,r,o,n);if(s){s=i.fallback,u=t.mode,r=(o=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Rc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=Rc(r,s):(s=Mc(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ls(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Rc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,n,r){return null!==r&&pa(r),Ya(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function zs(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Ws(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ks(e,t,r.children,n),0!==(2&(r=so.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pi(so,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===uo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===uo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,a);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Js(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)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 $s(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Ii(t.type)&&Oi(),Ks(t),null;case 3:return r=t.stateNode,io(),Ei(Ai),Ei(Ci),lo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(sc(aa),aa=null))),Os(e,t),Ks(t),null;case 5:oo(t);var i=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Ks(t),null}if(e=no(Za.current),fa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[di]=t,r[hi]=o,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)Fr(Dr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Y(r,o),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Fr("invalid",r);break;case"textarea":ie(r,o),Fr("invalid",r)}for(var u in ge(n,o),i=null,o)if(o.hasOwnProperty(u)){var c=o[u];"children"===u?"string"===typeof c?r.textContent!==c&&(!0!==o.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(u)&&null!=c&&"onScroll"===u&&Fr("scroll",r)}switch(n){case"input":J(r),Z(r,o,!0);break;case"textarea":J(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[di]=t,e[hi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)Fr(Dr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Y(e,r),i=G(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(o in ge(n,i),c=i)if(c.hasOwnProperty(o)){var l=c[o];"style"===o?me(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&fe(e,l):"children"===o?"string"===typeof l?("textarea"!==n||""!==l)&&de(e,l):"number"===typeof l&&de(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=l&&"onScroll"===o&&Fr("scroll",e):null!=l&&b(e,o,l,u))}switch(n){case"input":J(e),Z(e,r,!1);break;case"textarea":J(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Zr)}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)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=no(to.current),no(Za.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Qr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return Ks(t),null;case 13:if(Ei(so),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&0!==(1&t.mode)&&0===(128&t.flags))da(),ha(),t.flags|=98560,o=!1;else if(o=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[di]=t}else ha(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),o=!1}else null!==aa&&(sc(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&so.current)?0===Du&&(Du=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return io(),Os(e,t),null===e&&zr(t.stateNode.containerInfo),Ks(t),null;case 10:return xa(t.type._context),Ks(t),null;case 19:if(Ei(so),null===(o=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(u=o.rendering))if(r)Js(o,!1);else{if(0!==Du||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=uo(e))){for(t.flags|=128,Js(o,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(u=o.alternate)?(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=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pi(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Xe()>Wu&&(t.flags|=128,r=!0,Js(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=uo(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Js(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate&&!ia)return Ks(t),null}else 2*Xe()-o.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=128,r=!0,Js(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=o.last)?n.sibling=u:t.child=u,o.last=u)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Xe(),t.sibling=null,n=so.current,Pi(so,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ou)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gs(e,t){switch(ta(t),t.tag){case 1:return Ii(t.type)&&Oi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return io(),Ei(Ai),Ei(Ci),lo(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Ei(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(so),null;case 4:return io(),null;case 10:return xa(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},Rs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,no(Za.current);var a,o=null;switch(n){case"input":i=G(e,i),r=G(e,r),o=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(l in ge(n,r),n=null,i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l){var u=i[l];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var c=r[l];if(u=null!=i?i[l]:void 0,r.hasOwnProperty(l)&&c!==u&&(null!=c||null!=u))if("style"===l)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(o=o||[]).push(l,c)):"children"===l?"string"!==typeof c&&"number"!==typeof c||(o=o||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(s.hasOwnProperty(l)?(null!=c&&"onScroll"===l&&Fr("scroll",e),o||u===c||(o=[])):(o=o||[]).push(l,c))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Xs=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Zs=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&tu(t,n,a)}i=i.next}while(i!==r)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 au(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[hi],delete t[vi],delete t[mi],delete t[yi])),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 su(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var fu=null,du=!1;function hu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Xs||eu(n,t);case 6:var r=fu,i=du;fu=null,hu(e,t,n),du=i,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),zt(e)):ui(fu,n.stateNode));break;case 4:r=fu,i=du,fu=n.stateNode.containerInfo,du=!0,hu(e,t,n),fu=r,du=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!==(2&a)||0!==(4&a))&&tu(n,t,o),i=i.next}while(i!==r)}hu(e,t,n);break;case 1:if(!Xs&&(eu(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ec(n,t,s)}hu(e,t,n);break;case 21:hu(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,hu(e,t,n),Xs=r):hu(e,t,n);break;default:hu(e,t,n)}}function vu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Ac.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(a(160));pu(o,s,i),fu=null,du=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(l){Ec(i,t,l)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yu(t,e),t=t.sibling}function yu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mu(t,e),gu(e),4&r){try{ru(3,e,e.return),iu(3,e)}catch(m){Ec(e,e.return,m)}try{ru(5,e,e.return)}catch(m){Ec(e,e.return,m)}}break;case 1:mu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(mu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(m){Ec(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===u&&"radio"===o.type&&null!=o.name&&X(i,o),be(u,s);var l=be(u,o);for(s=0;s<c.length;s+=2){var f=c[s],d=c[s+1];"style"===f?me(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):b(i,f,d,l)}switch(u){case"input":Q(i,o);break;case"textarea":ae(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?ne(i,!!o.multiple,p,!1):h!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[hi]=o}catch(m){Ec(e,e.return,m)}}break;case 6:if(mu(t,e),gu(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){Ec(e,e.return,m)}}break;case 3:if(mu(t,e),gu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(m){Ec(e,e.return,m)}break;case 4:default:mu(t,e),gu(e);break;case 13:mu(t,e),gu(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(zu=Xe())),4&r&&vu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(l=Xs)||f,mu(t,e),Xs=l):mu(t,e),gu(e),8192&r){if(l=null!==e.memoizedState,(e.stateNode.isHidden=l)&&!f&&0!==(1&e.mode))for(Zs=e,f=e.child;null!==f;){for(d=Zs=f;null!==Zs;){switch(p=(h=Zs).child,h.tag){case 0:case 11:case 14:case 15:ru(4,h,h.return);break;case 1:eu(h,h.return);var v=h.stateNode;if("function"===typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){Ec(r,n,m)}}break;case 5:eu(h,h.return);break;case 22:if(null!==h.memoizedState){xu(d);continue}}null!==p?(p.return=h,Zs=p):xu(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,l?"function"===typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=d.stateNode,s=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,u.style.display=ve("display",s))}catch(m){Ec(e,e.return,m)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(m){Ec(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mu(t,e),gu(e),4&r&&vu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(su(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),lu(e,uu(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;cu(e,uu(e),o);break;default:throw Error(a(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Zs=e,wu(e,t,n)}function wu(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var i=Zs,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Ys;if(!o){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Xs;s=Ys;var c=Xs;if(Ys=o,(Xs=u)&&!c)for(Zs=i;null!==Zs;)u=(o=Zs).child,22===o.tag&&null!==o.memoizedState?_u(i):null!==u?(u.return=o,Zs=u):_u(i);for(;null!==a;)Zs=a,wu(a,t,n),a=a.sibling;Zs=i,Ys=s,Xs=c}ku(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,Zs=a):ku(e)}}function ku(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||iu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ma(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Ua(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var l=t.alternate;if(null!==l){var f=l.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(a(163))}Xs||512&t.flags&&au(t)}catch(h){Ec(t,t.return,h)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function xu(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function _u(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iu(4,t)}catch(u){Ec(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){Ec(t,i,u)}}var a=t.return;try{au(t)}catch(u){Ec(t,a,u)}break;case 5:var o=t.return;try{au(t)}catch(u){Ec(t,o,u)}}}catch(u){Ec(t,t.return,u)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Su,Eu=Math.ceil,Pu=w.ReactCurrentDispatcher,Tu=w.ReactCurrentOwner,Cu=w.ReactCurrentBatchConfig,Au=0,ju=null,Nu=null,Iu=0,Ou=0,Ru=Si(0),Du=0,Mu=null,Lu=0,Uu=0,Fu=0,Vu=null,Bu=null,zu=0,Wu=1/0,Hu=null,qu=!1,Ju=null,Ku=null,$u=!1,Gu=null,Yu=0,Xu=0,Qu=null,Zu=-1,ec=0;function tc(){return 0!==(6&Au)?Xe():-1!==Zu?Zu:Zu=Xe()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Au)&&0!==Iu?Iu&-Iu:null!==va.transition?(0===ec&&(ec=vt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Xu)throw Xu=0,Qu=null,Error(a(185));yt(e,n,r),0!==(2&Au)&&e===ju||(e===ju&&(0===(2&Au)&&(Uu|=n),4===Du&&uc(e,Iu)),ic(e,r),1===n&&0===Au&&0===(1&t.mode)&&(Wu=Xe()+500,Fi&&zi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,u=i[o];-1===u?0!==(s&n)&&0===(s&r)||(i[o]=ht(s,t)):u<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=dt(e,e===ju?Iu:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){Fi=!0,Bi(e)}(cc.bind(null,e)):Bi(cc.bind(null,e)),oi((function(){0===(6&Au)&&zi()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=jc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Zu=-1,ec=0,0!==(6&Au))throw Error(a(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=dt(e,e===ju?Iu:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var i=Au;Au|=2;var o=vc();for(ju===e&&Iu===t||(Hu=null,Wu=Xe()+500,hc(e,t));;)try{bc();break}catch(u){pc(e,u)}ka(),Pu.current=o,Au=i,null!==Nu?t=0:(ju=null,Iu=0,t=Du)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=oc(e,i))),1===t)throw n=Mu,hc(e,0),uc(e,r),ic(e,Xe()),n;if(6===t)uc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!sr(a(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=yc(e,r))&&(0!==(o=pt(e))&&(r=o,t=oc(e,o))),1===t))throw n=Mu,hc(e,0),uc(e,r),ic(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xc(e,Bu,Hu);break;case 3:if(uc(e,r),(130023424&r)===r&&10<(t=zu+500-Xe())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,Bu,Hu),t);break}xc(e,Bu,Hu);break;case 4:if(uc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eu(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,Bu,Hu),r);break}xc(e,Bu,Hu);break;default:throw Error(a(329))}}}return ic(e,Xe()),e.callbackNode===n?ac.bind(null,e):null}function oc(e,t){var n=Vu;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=Bu,Bu=n,null!==t&&sc(t)),e}function sc(e){null===Bu?Bu=e:Bu.push.apply(Bu,e)}function uc(e,t){for(t&=~Fu,t&=~Uu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Au))throw Error(a(327));_c();var t=dt(e,0);if(0===(1&t))return ic(e,Xe()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Mu,hc(e,0),uc(e,t),ic(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bu,Hu),ic(e,Xe()),null}function lc(e,t){var n=Au;Au|=1;try{return e(t)}finally{0===(Au=n)&&(Wu=Xe()+500,Fi&&zi())}}function fc(e){null!==Gu&&0===Gu.tag&&0===(6&Au)&&_c();var t=Au;Au|=1;var n=Cu.transition,r=bt;try{if(Cu.transition=null,bt=1,e)return e()}finally{bt=r,Cu.transition=n,0===(6&(Au=t))&&zi()}}function dc(){Ou=Ru.current,Ei(Ru)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Nu)for(n=Nu.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oi();break;case 3:io(),Ei(Ai),Ei(Ci),lo();break;case 5:oo(r);break;case 4:io();break;case 13:case 19:Ei(so);break;case 10:xa(r.type._context);break;case 22:case 23:dc()}n=n.return}if(ju=e,Nu=e=Rc(e.current,null),Iu=Ou=t,Du=0,Mu=null,Fu=Uu=Lu=0,Bu=Vu=null,null!==Pa){for(t=0;t<Pa.length;t++)if(null!==(r=(n=Pa[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Pa=null}return e}function pc(e,t){for(;;){var n=Nu;try{if(ka(),fo.current=os,go){for(var r=vo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}go=!1}if(po=0,yo=mo=vo=null,bo=!1,wo=0,Tu.current=null,null===n||null===n.return){Du=1,Mu=t,Nu=null;break}e:{var o=e,s=n.return,u=n,c=t;if(t=Iu,u.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c,f=u,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=ys(s);if(null!==p){p.flags&=-257,gs(p,s,u,0,t),1&p.mode&&ms(o,l,t),c=l;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(c),t.updateQueue=m}else v.add(c);break e}if(0===(1&t)){ms(o,l,t),mc();break e}c=Error(a(426))}else if(ia&&1&u.mode){var y=ys(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),gs(y,s,u,0,t),pa(ls(c,u));break e}}o=c=ls(c,u),4!==Du&&(Du=2),null===Vu?Vu=[o]:Vu.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ma(o,ps(0,c,t));break e;case 1:u=c;var g=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ku||!Ku.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Ma(o,vs(o,u,t));break e}}o=o.return}while(null!==o)}kc(n)}catch(w){t=w,Nu===n&&null!==n&&(Nu=n=n.return);continue}break}}function vc(){var e=Pu.current;return Pu.current=os,null===e?os:e}function mc(){0!==Du&&3!==Du&&2!==Du||(Du=4),null===ju||0===(268435455&Lu)&&0===(268435455&Uu)||uc(ju,Iu)}function yc(e,t){var n=Au;Au|=2;var r=vc();for(ju===e&&Iu===t||(Hu=null,hc(e,t));;)try{gc();break}catch(i){pc(e,i)}if(ka(),Au=n,Pu.current=r,null!==Nu)throw Error(a(261));return ju=null,Iu=0,Du}function gc(){for(;null!==Nu;)wc(Nu)}function bc(){for(;null!==Nu&&!Ge();)wc(Nu)}function wc(e){var t=Su(e.alternate,e,Ou);e.memoizedProps=e.pendingProps,null===t?kc(e):Nu=t,Tu.current=null}function kc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=$s(n,t,Ou)))return void(Nu=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Nu=n);if(null===e)return Du=6,void(Nu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nu=t);Nu=t=e}while(null!==t);0===Du&&(Du=5)}function xc(e,t,n){var r=bt,i=Cu.transition;try{Cu.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gu);if(0!==(6&Au))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(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-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===ju&&(Nu=ju=null,Iu=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||$u||($u=!0,jc(tt,(function(){return _c(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Cu.transition,Cu.transition=null;var s=bt;bt=1;var u=Au;Au|=4,Tu.current=null,function(e,t){if(ei=Ht,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(k){n=null;break e}var s=0,u=-1,c=-1,l=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(u=s+i),d!==o||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++l===i&&(u=s),h===o&&++f===r&&(c=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,y=v.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ma(t.type,m),y);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(k){Ec(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}v=nu,nu=!1}(e,n),yu(n,e),pr(ti),Ht=!!ei,ti=ei=null,e.current=n,bu(n,e,i),Ye(),Au=u,bt=s,Cu.transition=o}else e.current=n;if($u&&($u=!1,Gu=e,Yu=i),o=e.pendingLanes,0===o&&(Ku=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(qu)throw qu=!1,e=Ju,Ju=null,e;0!==(1&Yu)&&0!==e.tag&&_c(),o=e.pendingLanes,0!==(1&o)?e===Qu?Xu++:(Xu=0,Qu=e):Xu=0,zi()}(e,t,n,r)}finally{Cu.transition=i,bt=r}return null}function _c(){if(null!==Gu){var e=wt(Yu),t=Cu.transition,n=bt;try{if(Cu.transition=null,bt=16>e?16:e,null===Gu)var r=!1;else{if(e=Gu,Gu=null,Yu=0,0!==(6&Au))throw Error(a(331));var i=Au;for(Au|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(0!==(16&Zs.flags)){var u=o.deletions;if(null!==u){for(var c=0;c<u.length;c++){var l=u[c];for(Zs=l;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:ru(8,f,o)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var h=(f=Zs).sibling,p=f.return;if(ou(f),f===l){Zs=null;break}if(null!==h){h.return=p,Zs=h;break}Zs=p}}}var v=o.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Zs=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(o=Zs).flags))switch(o.tag){case 0:case 11:case 15:ru(9,o,o.return)}var g=o.sibling;if(null!==g){g.return=o.return,Zs=g;break e}Zs=o.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(0!==(2048&(u=Zs).flags))try{switch(u.tag){case 0:case 11:case 15:iu(9,u)}}catch(x){Ec(u,u.return,x)}if(u===s){Zs=null;break e}var k=u.sibling;if(null!==k){k.return=u.return,Zs=k;break e}Zs=u.return}}if(Au=i,zi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(x){}r=!0}return r}finally{bt=n,Cu.transition=t}}return!1}function Sc(e,t,n){e=Ra(e,t=ps(0,t=ls(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ic(e,t))}function Ec(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){t=Ra(t,e=vs(t,e=ls(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ic(t,e));break}}t=t.return}}function Pc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,ju===e&&(Iu&n)===n&&(4===Du||3===Du&&(130023424&Iu)===Iu&&500>Xe()-zu?hc(e,0):Fu|=n),ic(e,t)}function Tc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=lt,0===(130023424&(lt<<=1))&&(lt=4194304)));var n=tc();null!==(e=Aa(e,t))&&(yt(e,t,n),ic(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Ac(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}function jc(e,t){return Ke(e,t)}function Nc(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 Ic(e,t,n,r){return new Nc(e,t,n,r)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Oc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case _:return Mc(n.children,i,o,t);case S:s=8,i|=8;break;case E:return(e=Ic(12,n,t,2|i)).elementType=E,e.lanes=o,e;case A:return(e=Ic(13,n,t,i)).elementType=A,e.lanes=o,e;case j:return(e=Ic(19,n,t,i)).elementType=j,e.lanes=o,e;case O:return Lc(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:s=10;break e;case T:s=9;break e;case C:s=11;break e;case N:s=14;break e;case I:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Mc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Lc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Uc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vc(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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,i,a,o,s,u){return e=new Vc(e,t,n,s,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ic(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(a),e}function zc(e){if(!e)return Ti;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Di(e,n,t)}return t}function Wc(e,t,n,r,i,a,o,s,u){return(e=Bc(n,r,!0,e,0,a,0,s,u)).context=zc(null),n=e.current,(a=Oa(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,Ra(n,a,i),e.current.lanes=i,yt(e,i,r),ic(e,r),e}function Hc(e,t,n,r){var i=t.current,a=tc(),o=nc(i);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oa(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ra(i,t,o))&&(rc(e,i,o,a),Da(e,i,o)),o}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Jc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Jc(e,t),(e=e.alternate)&&Jc(e,t)}Su=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)ws=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:js(t),ha();break;case 5:ao(t);break;case 1:Ii(t.type)&&Mi(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Pi(ya,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Pi(so,1&so.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Us(e,t,n):(Pi(so,1&so.current),null!==(e=qs(e,t,n))?e.sibling:null);Pi(so,1&so.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pi(so,so.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return qs(e,t,n)}(e,t,n);ws=0!==(131072&e.flags)}else ws=!1,ia&&0!==(1048576&t.flags)&&Zi(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Ni(t,Ci.current);Sa(t,n),i=So(null,t,r,e,i,n);var o=Eo();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(o=!0,Mi(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Na(t),i.updater=Ba,t.stateNode=i,i._reactInternals=t,qa(t,r,e,n),t=As(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),ks(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Oc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===N)return 14}return 2}(r),e=ma(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Cs(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ma(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:ma(r,i),n);case 1:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:ma(r,i),n);case 3:e:{if(js(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Ia(e,t),La(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,256&t.flags){t=Ns(e,t,r,n,i=ls(Error(a(423)),t));break e}if(r!==i){t=Ns(e,t,r,n,i=ls(Error(a(424)),t));break e}for(ra=ci(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=Xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===i){t=qs(e,t,n);break e}ks(e,t,r,n)}t=t.child}return t;case 5:return ao(t),null===e&&ca(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==o&&ni(r,o)&&(t.flags|=32),Ps(e,t),ks(e,t,s,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Us(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ya(t,null,r,n):ks(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:ma(r,i),n);case 7:return ks(e,t,t.pendingProps,n),t.child;case 8:case 12:return ks(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,Pi(ya,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===i.children&&!Ai.current){t=qs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){s=o.child;for(var c=u.firstContext;null!==c;){if(c.context===r){if(1===o.tag){(c=Oa(-1,n&-n)).tag=2;var l=o.updateQueue;if(null!==l){var f=(l=l.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),_a(o.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),_a(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}ks(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sa(t,n),r=r(i=Ea(i)),t.flags|=1,ks(e,t,r,n),t.child;case 14:return i=ma(r=t.type,t.pendingProps),_s(e,t,r,i=ma(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ma(r,i),Hs(e,t),t.tag=1,Ii(r)?(e=!0,Mi(t)):e=!1,Sa(t,n),Wa(t,r,i),qa(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var $c="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function el(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"===typeof i){var s=i;i=function(){var e=qc(o);s.call(e)}}Hc(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=qc(o);a.call(e)}}var o=Wc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=o,e[pi]=o.current,zr(8===e.nodeType?e.parentNode:e),fc(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=qc(u);s.call(e)}}var u=Bc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=u,e[pi]=u.current,zr(8===e.nodeType?e.parentNode:e),fc((function(){Hc(t,u,n,r)})),u}(n,t,e,i,r);return qc(o)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fc((function(){Hc(null,e,null,null)})),t[pi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Lt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),ic(t,Xe()),0===(6&Au)&&(Wu=Xe()+500,zi()))}break;case 13:fc((function(){var t=Aa(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Kc(e,1)}},xt=function(e){if(13===e.tag){var t=Aa(e,134217728);if(null!==t)rc(t,e,134217728,tc());Kc(e,134217728)}},_t=function(e){if(13===e.tag){var t=nc(e),n=Aa(e,t);if(null!==n)rc(n,e,t,tc());Kc(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){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=ki(r);if(!i)throw Error(a(90));K(r),Q(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ce=lc,Ae=fc;var tl={usingClientEntryPoint:!1,Events:[bi,wi,ki,Pe,Te,lc]},nl={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rl={bundleType:nl.bundleType,version:nl.version,rendererPackageName:nl.rendererPackageName,rendererConfig:nl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{it=il.inject(rl),at=il}catch(le){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var n=!1,r="",i=$c;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,zr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return fc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(a(200));return el(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=$c;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,o,s),e[pi]=t.current,zr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(a(200));return el(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(a(40));return!!e._reactRootContainer&&(fc((function(){el(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=lc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return el(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},739:function(e,t,n){"use strict";var r=n(168);t.s=r.createRoot,r.hydrateRoot},168:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(534)},624:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case s:case o:case d:case h:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case v:case p:case u:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},214:function(e,t,n){"use strict";n(624)},918:function(e,t,n){"use strict";var r=n(313),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},306:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var w=b.prototype=new g;w.constructor=b,v(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];a.children=c}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===a[i]&&(a[i]=u[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:_.current}}function P(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return o=o(u=e),e=""===a?"."+C(u,0):a,k(o)?(i="",null!=e&&(i=e.replace(T,"$&/")+"/"),A(o,t,i,"",(function(e){return e}))):null!=o&&(P(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(T,"$&/")+"/")+e)),t.push(o)),1;if(u=0,a=""===a?".":a+":",k(e))for(var c=0;c<e.length;c++){var l=a+C(s=e[c],c);u+=A(s,t,i,l,o)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=A(s=s.value,t,i,l=a+C(s,c++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function j(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},O={transition:null},R={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:O,ReactCurrentOwner:_};t.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},313:function(e,t,n){"use strict";e.exports=n(306)},417:function(e,t,n){"use strict";e.exports=n(918)},95:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,u=e[s],c=s+1,l=e[c];if(0>a(u,n))c<i&&0>a(l,u)?(e[r]=l,e[c]=n,r=c):(e[r]=u,e[s]=n,r=s);else{if(!(c<i&&0>a(l,n)))break e;e[r]=l,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],l=[],f=1,d=null,h=3,p=!1,v=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,n(c,t)}t=r(l)}}function k(e){if(m=!1,w(e),!v)if(null!==r(c))v=!0,O(x);else{var t=r(l);null!==t&&R(k,t.startTime-e)}}function x(e,n){v=!1,m&&(m=!1,g(P),P=-1),p=!0;var a=h;try{for(w(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!A());){var o=d.callback;if("function"===typeof o){d.callback=null,h=d.priorityLevel;var s=o(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(c)&&i(c),w(n)}else i(c);d=r(c)}if(null!==d)var u=!0;else{var f=r(l);null!==f&&R(k,f.startTime-n),u=!1}return u}finally{d=null,h=a,p=!1}
2}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,E=null,P=-1,T=5,C=-1;function A(){return!(t.unstable_now()-C<T)}function j(){if(null!==E){var e=t.unstable_now();C=e;var n=!0;try{n=E(!0,e)}finally{n?_():(S=!1,E=null)}}else S=!1}if("function"===typeof b)_=function(){b(j)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,I=N.port2;N.port1.onmessage=j,_=function(){I.postMessage(null)}}else _=function(){y(j,0)};function O(e){E=e,S||(S=!0,_())}function R(e,n){P=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,O(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(l,e),null===r(c)&&e===r(l)&&(m?(g(P),P=-1):m=!0,R(k,a-o))):(e.sortIndex=s,n(c,e),v||p||(v=!0,O(x))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},224:function(e,t,n){"use strict";e.exports=n(95)},663:function(e,t,n){var r;!function(i,a){"use strict";var o="function",s="undefined",u="object",c="string",l="major",f="model",d="name",h="type",p="vendor",v="version",m="architecture",y="console",g="mobile",b="tablet",w="smarttv",k="wearable",x="embedded",_="Amazon",S="Apple",E="ASUS",P="BlackBerry",T="Browser",C="Chrome",A="Firefox",j="Google",N="Huawei",I="LG",O="Microsoft",R="Motorola",D="Opera",M="Samsung",L="Sharp",U="Sony",F="Xiaomi",V="Zebra",B="Facebook",z="Chromium OS",W="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},q=function(e,t){return typeof e===c&&-1!==J(t).indexOf(J(e))},J=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},$=function(e,t){for(var n,r,i,s,c,l,f=0;f<t.length&&!c;){var d=t[f],h=t[f+1];for(n=r=0;n<d.length&&!c&&d[n];)if(c=d[n++].exec(e))for(i=0;i<h.length;i++)l=c[++r],typeof(s=h[i])===u&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;f+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(q(t[n][r],e))return"?"===n?a:n}else if(q(t[n],e))return"?"===n?a:n;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,v],[/opios[\/ ]+([\w\.]+)/i],[v,[d,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[d,D]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[d,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+T],v],[/\bfocus\/([\w\.]+)/i],[v,[d,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[d,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[d,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[d,"MIUI "+T]],[/fxios\/([-\w\.]+)/i],[v,[d,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+T]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+T],v],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,B],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[d,"GSA"]],[/musical_ly(?:.
vendor: 5,107 bytes, line 2
2+app_?version\/|_)([\w\.]+)/i],[v,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[d,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,C+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[d,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[v,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[d,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,v],[/(cobalt)\/([\w\.]+)/i],[d,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,J]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",J]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,J]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[p,M],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[p,M],[h,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[p,S],[h,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[p,S],[h,b]],[/(macintosh);/i],[f,[p,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[p,L],[h,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[p,N],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[p,N],[h,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[p,F],[h,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[p,F],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[p,"OPPO"],[h,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[p,"Vivo"],[h,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[p,"Realme"],[h,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[p,R],[h,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[p,R],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[p,I],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[p,I],[h,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[p,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[p,"Nokia"],[h,g]],[/(pixel c)\b/i],[f,[p,j],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[p,j],[h,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[p,U],[h,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[p,U],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[p,"OnePlus"],[h,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[p,_],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[p,_],[h,g]],[/(playbook);[-\w\),; ]+(rim)/i],[f,p,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[p,P],[h,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[p,E],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[p,E],[h,g]],[/(nexus 9)/i],[f,[p,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[f,/_/g," "],[h,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[p,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[p,"Meizu"],[h,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 7,139 bytes, line 2
2s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,f,[h,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,f,[h,b]],[/(surface duo)/i],[f,[p,O],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[p,"Fairphone"],[h,g]],[/(u304aa)/i],[f,[p,"AT&T"],[h,g]],[/\bsie-(\w*)/i],[f,[p,"Siemens"],[h,g]],[/\b(rct\w+) b/i],[f,[p,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[p,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[p,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[p,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[f,[p,"NuVision"],[h,b]],[/\b(k88) b/i],[f,[p,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[f,[p,"ZTE"],[h,g]],[/\b(gen\d{3}) b.+49h/i],[f,[p,"Swiss"],[h,g]],[/\b(zur\d{3}) b/i],[f,[p,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[f,[p,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],f,[h,b]],[/\b(ns-?\w{0,9}) b/i],[f,[p,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[p,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],f,[h,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],f,[h,g]],[/\b(ph-1) /i],[f,[p,"Essential"],[h,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[p,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[f,[p,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[f,[p,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[f,[p,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[p,f,[h,g]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[p,O],[h,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[p,V],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[p,V],[h,g]],[/smart-tv.+(samsung)/i],[p,[h,w]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[p,M],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,I],[h,w]],[/(apple) ?tv/i],[p,[f,S+" TV"],[h,w]],[/crkey/i],[[f,C+"cast"],[p,j],[h,w]],[/droid.+aft(\w)( bui|\))/i],[f,[p,_],[h,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[p,L],[h,w]],[/(bravia[\w ]+)( bui|\))/i],[f,[p,U],[h,w]],[/(mitv-\w{5}) bui/i],[f,[p,F],[h,w]],[/Hbbtv.*(technisat) (.*);/i],[p,f,[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,K],[f,K],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,f,[h,y]],[/droid.+; (shield) bui/i],[f,[p,"Nvidia"],[h,y]],[/(playstation [345portablevi]+)/i],[f,[p,U],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[p,O],[h,y]],[/((pebble))app/i],[p,f,[h,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[p,S],[h,k]],[/droid.+; (glass) \d/i],[f,[p,j],[h,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[p,V],[h,k]],[/(quest( 2| pro)?)/i],[f,[p,B],[h,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,x]],[/(aeobc)\b/i],[f,[p,_],[h,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[h,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,g]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[v,G,Y]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[v,G,Y]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,W],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,v],[/\(bb(10);/i],[v,[d,P]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[d,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[d,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,v],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,v]]},Q=function e(t,n){if(typeof t===u&&(n=t,t=a),!(this instanceof e))return new e(t,n).getResult();var r=typeof i!==s&&i.navigator?i.navigator:a,y=t||(r&&r.userAgent?r.userAgent:""),w=r&&r.userAgentData?r.userAgentData:a,k=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(X,n):X,x=r&&r.userAgent==y;return this.getBrowser=function(){var e,t={};return t[d]=a,t[v]=a,$.call(t,y,k.browser),t[l]=typeof(e=t[v])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:a,x&&r&&r.brave&&typeof r.brave.isBrave==o&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[m]=a,$.call(e,y,k.cpu),e},this.getDevice=function(){var e={};return e[p]=a,e[f]=a,e[h]=a,$.call(e,y,k.device),x&&!e[h]&&w&&w.mobile&&(e[h]=g),x&&"Macintosh"==e[f]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[f]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[d]=a,e[v]=a,$.call(e,y,k.engine),e},this.getOS=function(){var e={};return e[d]=a,e[v]=a,$.call(e,y,k.os),x&&!e[d]&&w&&"Unknown"!=w.platform&&(e[d]=w.platform.replace(/chrome os/i,z).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===c&&e.length>350?K(e,350):e,this},this.setUA(y),this};
2Q.VERSION="1.0.35",Q.BROWSER=H([d,v,l]),Q.CPU=H([m]),Q.DEVICE=H([f,p,h,y,g,w,b,k,x]),Q.ENGINE=Q.OS=H([d,v]),typeof t!==s?(e.exports&&(t=e.exports=Q),t.UAParser=Q):n.amdO?(r=function(){return Q}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Q);var Z=typeof i!==s&&(i.jQuery||i.Zepto);if(Z&&!Z.ua){var ee=new Q;Z.ua=ee.getResult(),Z.ua.get=function(){return ee.getUA()},Z.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Z.ua[n]=t[n]}}}("object"===typeof window?window:this)},531:function(e,t,n){"use strict";var r=n(313);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var l="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),o((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},778:function(e,t,n){"use strict";var r=n(313),i=n(239);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=c((function(){function e(e){if(!u){if(u=!0,o=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,s=n)}var o,s,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,i]);var h=o(e,f[0],f[1]);return u((function(){d.hasValue=!0,d.value=h}),[h]),l(h),h}},239:function(e,t,n){"use strict";e.exports=n(531)},58:function(e,t,n){"use strict";e.exports=n(778)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return r[e]}}));return o.default=function(){return r},n.d(a,o),a}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){"use strict";var e,t=n(739);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||i(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function f(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
2function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){var t=v();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,n)}}function g(e){if(Array.isArray(e))return e}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){return g(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||a(e,t)||b()}function k(){k=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(j){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),s=new T(i||[]);return r(o,"_invoke",{value:_(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function h(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(C([])));g&&g!==t&&n.call(g,a)&&(m=g);var b=v.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(r,a,o,s){var c=f(e[r],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==u(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return i("throw",e,o,s)}))}s(c.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return A()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 1,587 bytes, line 2
2(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=v,r(b,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}}
vendor: 4,177 bytes, line 2
2,w(x.prototype),c(x.prototype,o,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new x(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function x(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){x(a,r,i,o,s,"next",e)}function s(e){x(a,r,i,o,s,"throw",e)}o(void 0)}))}}function S(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t,n){return E=v()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&d(i,n.prototype),i},E.apply(null,arguments)}function P(e){var t="function"===typeof Map?new Map:void 0;return P=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return E(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},P(e)}function T(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function C(){return C=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},C.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));var A,j="popstate";function N(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function I(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function O(e,t){return{usr:e.state,key:e.key,idx:t}}function R(e,t,n,r){return void 0===n&&(n=null),C({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?M(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function D(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,a=e.hash,o=void 0===a?"":a;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),o&&"#"!==o&&(n+="#"===o.charAt(0)?o:"#"+o),n}function M(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function L(t,n,r,i){void 0===i&&(i={});var a=i,o=a.window,s=void 0===o?document.defaultView:o,u=a.v5Compat,c=void 0!==u&&u,l=s.history,f=e.Pop,d=null,h=p();function p(){return(l.state||{idx:null}).idx}function v(){f=e.Pop;var t=p(),n=null==t?null:t-h;h=t,d&&d({action:f,location:y.location,delta:n})}function m(e){var t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"===typeof e?e:D(e);return N(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==h&&(h=0,l.replaceState(C({},l.state,{idx:h}),""));var y={get action(){return f},get location(){return t(s,l)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(j,v),d=e,function(){s.removeEventListener(j,v),d=null}},createHref:function(e){return n(s,e)},createURL:m,encodeLocation:function(e){var t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){f=e.Push;var i=R(y.location,t,n);r&&r(i,t);var a=O(i,h=p()+1),o=y.createHref(i);try{l.pushState(a,"",o)}catch(u){s.location.assign(o)}c&&d&&d({action:f,location:y.location,delta:1})},replace:function(t,n){f=e.Replace;var i=R(y.location,t,n);r&&r(i,t);var a=O(i,h=p()),o=y.createHref(i);l.replaceState(a,"",o),c&&d&&d({action:f,location:y.location,delta:0})},go:function(e){return l.go(e)}};return y}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(A||(A={}));var U=new Set(["lazy","caseSensitive","path","id","index","children"]);function F(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((function(e,i){var a=[].concat(o(n),[i]),s="string"===typeof e.id?e.id:a.join("-");if(N(!0!==e.index||!e.children,"Cannot specify children on an index route"),N(!r[s],'Found a route id collision on i
2d "'+s+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){var u=C({},e,{hasErrorBoundary:t(e),id:s});return r[s]=u,u}var c=C({},e,{id:s,hasErrorBoundary:t(e),children:void 0});return r[s]=c,e.children&&(c.children=F(e.children,t,a,r)),c}))}function V(e,t,n){void 0===n&&(n="/");var r=ee(("string"===typeof t?M(t):t).pathname||"/",n);if(null==r)return null;var i=B(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var a=null,o=0;null==a&&o<i.length;++o)a=X(i[o],Z(r));return a}function B(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");var i=function(e,i,a){var o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(N(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));var s=ie([r,o.relativePath]),u=n.concat(o);e.children&&e.children.length>0&&(N(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),B(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:Y(s,e.index),routesMeta:u})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,a=T(z(e.path));try{for(a.s();!(r=a.n()).done;){var o=r.value;i(e,t,o)}}catch(s){a.e(s)}finally{a.f()}}else i(e,t)})),t}function z(e){var t=e.split("/");if(0===t.length)return[];var n,r=g(n=t)||i(n)||a(n)||b(),s=r[0],u=r.slice(1),c=s.endsWith("?"),l=s.replace(/\?$/,"");if(0===u.length)return c?[l,""]:[l];var f=z(u.join("/")),d=[];return d.push.apply(d,o(f.map((function(e){return""===e?l:[l,e].join("/")})))),c&&d.push.apply(d,o(f)),d.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var W=/^:\w+$/,H=3,q=2,J=1,K=10,$=-2,G=function(e){return"*"===e};function Y(e,t){var n=e.split("/"),r=n.length;return n.some(G)&&(r+=$),t&&(r+=q),n.filter((function(e){return!G(e)})).reduce((function(e,t){return e+(W.test(t)?H:""===t?J:K)}),r)}function X(e,t){for(var n=e.routesMeta,r={},i="/",a=[],o=0;o<n.length;++o){var s=n[o],u=o===n.length-1,c="/"===i?t:t.slice(i.length)||"/",l=Q({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c);if(!l)return null;
2Object.assign(r,l.params);var f=s.route;a.push({params:r,pathname:ie([i,l.pathname]),pathnameBase:ae(ie([i,l.pathnameBase])),route:f}),"/"!==l.pathnameBase&&(i=ie([i,l.pathnameBase]))}return a}function Q(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);I("*"===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(/\*$/,"/*")+'".');var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return r.push(t),"/([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");var a=new RegExp(i,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),r=w(n,2),i=r[0],a=r[1],o=t.match(i);if(!o)return null;var s=o[0],u=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:a.reduce((function(e,t,n){if("*"===t){var r=c[n]||"";u=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return I(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(c[n]||"",t),e}),{}),pathname:s,pathnameBase:u,pattern:e}}function Z(e){try{return decodeURI(e)}catch(t){return I(!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 ee(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function te(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 ne(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function re(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=M(e):(N(!(i=C({},e)).pathname||!i.pathname.includes("?"),te("?","pathname","search",i)),N(!i.pathname||!i.pathname.includes("#"),te("#","pathname","hash",i)),N(!i.search||!i.search.includes("#"),te("#","search","hash",i)));var a,o=""===e||""===i.pathname,s=o?"/":i.pathname;if(r||null==s)a=n;else{var u=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),u-=1;i.pathname=c.join("/")}a=u>=0?t[u]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?M(e):e,r=n.pathname,i=n.search,a=void 0===i?"":i,o=n.hash,s=void 0===o?"":o,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:oe(a),hash:se(s)}}(i,a),f=s&&"/"!==s&&s.endsWith("/"),d=(o||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!f&&!d||(l.pathname+="/"),l}var ie=function(e){return e.join("/").replace(/\/\/+/g,"/")},ae=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},oe=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},se=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},ue=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n)}(P(Error)),ce=function(){function e(t,n){var r,i=this;s(this,e),this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],N(t&&"object"===typeof t&&!Array.isArray(t),"defer() only accepts plain objects"),this.abortPromise=new Promise((function(e,t){return r=t})),this.controller=new AbortController;var a=function(){return r(new ue("Deferred data aborted"))};this.unlistenAbortSignal=function(){return i.controller.signal.removeEventListener("abort",a)},this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((function(e,t){var n=w(t,2),r=n[0],a=n[1];return Object.assign(e,S({},r,i.trackPromise(r,a)))}),{}),this.done&&this.unlistenAbortSignal(),this.init=n}return f(e,[{key:"trackPromise",value:function(e,t){var n=this;if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);var r=Promise.race([t,this.abortPromise]).then((function(t){return n.onSettle(r,e,null,t)}),(function(t){return n.onSettle(r,e,t)}));return r.catch((function(){})),Object.defineProperty(r,"_tracked",{get:function(){return!0}}),r}},{key:"onSettle",value:function(e,t,n,r){return this.controller.signal.aborted&&n instanceof ue?(this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:function(){return n}}),Promise.reject(n)):(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),n?(Object.defineProperty(e,"_error",{get:function(){return n}}
2),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:function(){return r}}),this.emit(!1,t),r))}},{key:"emit",value:function(e,t){this.subscribers.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e){var t=this;return this.subscribers.add(e),function(){return t.subscribers.delete(e)}}},{key:"cancel",value:function(){var e=this;this.controller.abort(),this.pendingKeysSet.forEach((function(t,n){return e.pendingKeysSet.delete(n)})),this.emit(!0)}},{key:"resolveData",value:function(){var e=_(k().mark((function e(t){var n,r,i=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,this.done){e.next=7;break}return r=function(){return i.cancel()},t.addEventListener("abort",r),e.next=6,new Promise((function(e){i.subscribe((function(n){t.removeEventListener("abort",r),(n||i.done)&&e(n)}))}));case 6:n=e.sent;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"done",get:function(){return 0===this.pendingKeysSet.size}},{key:"unwrappedData",get:function(){return N(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((function(e,t){var n=w(t,2),r=n[0],i=n[1];return Object.assign(e,S({},r,function(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}(i)))}),{})}},{key:"pendingKeys",get:function(){return Array.from(this.pendingKeysSet)}}]),e}();var le=f((function e(t,n,r,i){s(this,e),void 0===i&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}));function fe(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var de=["post","put","patch","delete"],he=new Set(de),pe=["get"].concat(de),ve=new Set(pe),me=new Set([301,302,303,307,308]),ye=new Set([307,308]),ge={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},be={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},we={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,_e=!xe,Se=function(e){return Boolean(e.hasErrorBoundary)};function Ee(t){N(t.routes.length>0,"You must provide a non-empty routes array to createRouter");var n,r=t.detectErrorBoundary||Se,i={},a=F(t.routes,r,void 0,i),s=null,u=new Set,c=null,l=null,f=null,d=null!=t.hydrationData,h=V(a,t.history.location,t.basename),p=null;if(null==h){var v=ze(404,{pathname:t.history.location.pathname}),m=Be(a);h=m.matches,p=S({},m.route.id,v)}var y,g,b=!h.some((function(e){return e.route.lazy}))&&(!h.some((function(e){return e.route.loader}))||null!=t.hydrationData),x={historyAction:t.history.action,location:t.history.location,matches:h,initialized:b,navigation:ge,restoreScrollPosition:null==t.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||p,fetchers:new Map,blockers:new Map},E=e.Pop,P=!1,j=!1,O=!1,D=[],M=[],L=new Map,U=0,B=-1,z=new Map,W=new Set,H=new Map,q=new Map,J=new Map,K=!1;function $(e){x=C({},x,e),u.forEach((function(e){return e(x)}))}function G(r,i){var o,s,u,c=null!=x.actionData&&null!=x.navigation.formMethod&&Xe(x.navigation.formMethod)&&"loading"===x.navigation.state&&!0!==(null==(o=r.state)?void 0:o._isRedirect);u=i.actionData?Object.keys(i.actionData).length>0?i.actionData:null:c?x.actionData:null;var l,f=i.loaderData?Fe(x.loaderData,i.loaderData,i.matches||[],i.errors):x.loaderData,d=T(J);try{for(d.s();!(l=d.n()).done;){Ae(w(l.value,1)[0])}}catch(p){d.e(p)}finally{d.f()}var h=!0===P||null!=x.navigation.formMethod&&Xe(x.navigation.formMethod)&&!0!==(null==(s=r.state)?void 0:s._isRedirect);n&&(a=n,n=void 0),$(C({},i,{actionData:u,loaderData:f,historyAction:E,location:r,initialized:!0,navigation:ge,revalidation:"idle",restoreScrollPosition:Le(r,i.matches||x.matches),preventScrollReset:h,blockers:new Map(x.blockers)})),j||E===e.Pop||(E===e.Push?t.history.push(r,r.state):E===e.Replace&&t.history.replace(r,r.state)),E=e.Pop,P=!1,j=!1,O=!1,D=[],M=[]}function Y(e,t){return X.apply(this,arguments)}function X(){return X=_(k().mark((function n(r,i){var a,o,s,u,c,l,f,d,h,p;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("number"!==typeof r){n.next=3;break}return t.history.go(r),n.abrupt("return");case 3:if(a=Pe(r,i),o=a.path,s=a.submission,u=a.error,c=x.location,l=C({},l=R(x.location,o,i&&i.state),t.history.encodeLocation(l)),f=i&&null!=i.replace?i.replace:void 0,d=e.Push,!0===f?d=e.Replace:!1===f||null!=s&&Xe(s.formMethod)&&s.formAction===x.location.pathname+x.location.search&&(d=e.Replace),h=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,!(p=Ie({currentLocation:c,nextLocation:l,historyAction:d}))){n.next=15;break}return je(p,{state:"blocked",location:l,proceed:function(){je(p,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),Y(r,i)},reset:function(){Ae(p),$({blockers:new Map(x.blockers)})}}),n.abrupt("return");case 15:return n.next=17,Q(d,l,{submission:s,pendingError:u,preventScrollReset:h,replace:i&&i.replace});case 17:return n.abrupt("return",n.sent);case 18:case"end":return n.stop()}}),n)}))),X.apply(this,arguments)}function Q(e,t,n){return Z.apply(this,arguments)}function Z(){return Z=_(k().mark((function e(r,i,o){var s,u,c,l,f,d,h,p,v,m,y,b,w,_,T,A;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g&&g.abort(),g=null,E=r,j=!0===(o&&o.startUninterruptedRevalidation),Me(x.location,x.matches),P=!0===(o&&o.preventScrollReset),s=n||a,u=o&&o.overrideNavigation,c=V(s,i,t.basename)){e.next=15;break}return l=ze(404,{pathname:i.pathname}),f=Be(s),d=f.matches,h=f.route,Re(),G(i,{matches:d,loaderData:{},errors:S({},h.id,l)}),e.abrupt("return");case 15:if(!qe(x.location,i)||o&&o.submission&&Xe(o.submission.formMethod)){e.next=18;break}return G(i,{matches:c}),e.abrupt("return");case 18:if(g=new AbortController,p=De(t.history,i,g.signal,o&&o.submission),!o||!o.pendingError){e.next=24;break}m=S({},Ve(c).route.id,o.pendingError),e.next=35;break;case 24:if(!(o&&o.submission&&Xe(o.submission.formMethod))){e.next=35;break}return e.next=27,te(p,i,o.submission,c,{replace:o.replace});case 27:if(!(y=e.sent).shortCircuited){e.next=30;break}return e.abrupt("return");case 30:v=y.pendingActionData,m=y.pendingActionError,b=C({state:"loading",location:i}
2,o.submission),u=b,p=new Request(p.url,{signal:p.signal});case 35:return e.next=37,re(p,i,c,u,o&&o.submission,o&&o.replace,v,m);case 37:if(w=e.sent,_=w.shortCircuited,T=w.loaderData,A=w.errors,!_){e.next=43;break}return e.abrupt("return");case 43:g=null,G(i,C({matches:c},v?{actionData:v}:{},{loaderData:T,errors:A}));case 45:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function te(e,t,n,r,i){return ne.apply(this,arguments)}function ne(){return ne=_(k().mark((function t(n,a,o,s,u){var c,l,f,d;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(de(),$({navigation:C({state:"submitting",location:a},o)}),(l=it(s,a)).route.action||l.route.lazy){t.next=8;break}c={type:A.error,error:ze(405,{method:n.method,pathname:a.pathname,routeId:l.route.id})},t.next=13;break;case 8:return t.next=10,Oe("action",n,l,s,i,r,y.basename);case 10:if(c=t.sent,!n.signal.aborted){t.next=13;break}return t.abrupt("return",{shortCircuited:!0});case 13:if(!$e(c)){t.next=18;break}return f=u&&null!=u.replace?u.replace:c.location===x.location.pathname+x.location.search,t.next=17,ue(x,c,{submission:o,replace:f});case 17:return t.abrupt("return",{shortCircuited:!0});case 18:if(!Ke(c)){t.next=22;break}return d=Ve(s,l.route.id),!0!==(u&&u.replace)&&(E=e.Push),t.abrupt("return",{pendingActionData:{},pendingActionError:S({},d.route.id,c.error)});case 22:if(!Je(c)){t.next=24;break}throw ze(400,{type:"defer-action"});case 24:return t.abrupt("return",{pendingActionData:S({},l.route.id,c.data)});case 25:case"end":return t.stop()}}),t)}))),ne.apply(this,arguments)}function re(e,t,n,r,i,a,o,s){return ie.apply(this,arguments)}function ie(){return ie=_(k().mark((function e(r,i,o,s,u,c,l,f){var d,h,p,v,m,y,b,_,S,E,P,T,A,N,I,R,F,V;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((d=s)||(h=C({state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},u),d=h),p=u||(d.formMethod&&d.formAction&&d.formData&&d.formEncType?{formMethod:d.formMethod,formAction:d.formAction,formData:d.formData,formEncType:d.formEncType}:void 0),v=n||a,m=Ce(t.history,x,o,p,i,O,D,M,H,v,t.basename,l,f),y=w(m,2),b=y[0],_=y[1],Re((function(e){return!(o&&o.some((function(t){return t.route.id===e})))||b&&b.some((function(t){return t.route.id===e}))})),0!==b.length||0!==_.length){e.next=9;break}return G(i,C({matches:o,loaderData:{},errors:f||null},l?{actionData:l}:{})),e.abrupt("return",{shortCircuited:!0});case 9:return j||(_.forEach((function(e){var t=x.fetchers.get(e.key),n={state:"loading",data:t&&t.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};x.fetchers.set(e.key,n)})),S=l||x.actionData,$(C({navigation:d},S?0===Object.keys(S).length?{actionData:null}:{actionData:S}:{},_.length>0?{fetchers:new Map(x.fetchers)}:{}))),B=++U,_.forEach((function(e){return L.set(e.key,g)})),e.next=14,le(x.matches,o,b,_,r);case 14:if(E=e.sent,P=E.results,T=E.loaderResults,A=E.fetcherResults,!r.signal.aborted){e.next=20;break}return e.abrupt("return",{shortCircuited:!0});case 20:if(_.forEach((function(e){return L.delete(e.key)})),!(N=We(P))){e.next=26;break}return e.next=25,ue(x,N,{replace:c});case 25:return e.abrupt("return",{shortCircuited:!0});case 26:return I=Ue(x,o,b,T,f,_,A,q),R=I.loaderData,F=I.errors,q.forEach((function(e,t){e.subscribe((function(n){(n||e.done)&&q.delete(t)}))})),Ee(),V=Te(B),e.abrupt("return",C({loaderData:R,errors:F},V||_.length>0?{fetchers:new Map(x.fetchers)}:{}));case 31:case"end":return e.stop()}}),e)}))),ie.apply(this,arguments)}function ae(e){return x.fetchers.get(e)||be}function oe(){return oe=_(k().mark((function e(o,s,u,c,l,f){var d,h,p,v,m,b,_,P,T,A,j,I,R,F,J,K,Y,X,Q,Z,ee,te,ne,re,ie,ae,oe;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(de(),H.delete(o),c.route.action||c.route.lazy){e.next=6;break}return d=ze(405,{method:f.formMethod,pathname:u,routeId:s}),he(o,s,d),e.abrupt("return");case 6:return h=x.fetchers.get(o),p=C({state:"submitting"},f,{data:h&&h.data," _hasFetcherDoneAnything ":!0}),x.fetchers.set(o,p),$({fetchers:new Map(x.fetchers)}),v=new AbortController,m=De(t.history,u,v.signal,f),L.set(o,v),e.next=15,Oe("action",m,c,l,i,r,y.basename);case 15:if(b=e.sent,!m.signal.aborted){e.next=19;break}return L.get(o)===v&&L.delete(o),e.abrupt("return");case 19:if(!$e(b)){e.next=26;break}return L.delete(o),W.add(o),_=C({state:"loading"},f,{data:void 0," _hasFetcherDoneAnything ":!0}),x.fetchers.set(o,_),$({fetchers:new Map(x.fetchers)}),e.abrupt("return",ue(x,b,{isFetchActionRedirect:!0}));case 26:if(!Ke(b)){e.next=29;break}return he(o,s,b.error),e.abrupt("return");case 29:if(!Je(b)){e.next=31;break}throw ze(400,{type:"defer-action"});case 31:return P=x.navigation.location||x.location,T=De(t.history,P,v.signal),A=n||a,N(j="idle"!==x.navigation.state?V(A,x.navigation.location,t.basename):x.matches,"Didn't find any matches after fetcher action"),I=++U,z.set(o,I),R=C({state:"loading",data:b.data},f,{" _hasFetcherDoneAnything ":!0}),x.fetchers.set(o,R),F=Ce(t.history,x,j,f,P,O,D,M,H,A,t.basename,S({},c.route.id,b.data),void 0),J=w(F,2),K=J[0],(Y=J[1]).filter((function(e){return e.key!==o}
2)).forEach((function(e){var t=e.key,n=x.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};x.fetchers.set(t,r),L.set(t,v)})),$({fetchers:new Map(x.fetchers)}),e.next=45,le(x.matches,j,K,Y,T);case 45:if(X=e.sent,Q=X.results,Z=X.loaderResults,ee=X.fetcherResults,!v.signal.aborted){e.next=51;break}return e.abrupt("return");case 51:if(z.delete(o),L.delete(o),Y.forEach((function(e){return L.delete(e.key)})),!(te=We(Q))){e.next=57;break}return e.abrupt("return",ue(x,te));case 57:ne=Ue(x,x.matches,K,Z,void 0,Y,ee,q),re=ne.loaderData,ie=ne.errors,ae={state:"idle",data:b.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0},x.fetchers.set(o,ae),oe=Te(I),"loading"===x.navigation.state&&I>B?(N(E,"Expected pending action"),g&&g.abort(),G(x.navigation.location,{matches:j,loaderData:re,errors:ie,fetchers:new Map(x.fetchers)})):($(C({errors:ie,loaderData:Fe(x.loaderData,re,j,ie)},oe?{fetchers:new Map(x.fetchers)}:{})),O=!1);case 62:case"end":return e.stop()}}),e)}))),oe.apply(this,arguments)}function se(){return se=_(k().mark((function e(n,a,o,s,u,c){var l,f,d,h,p,v,m;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=x.fetchers.get(n),f=C({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},c,{data:l&&l.data," _hasFetcherDoneAnything ":!0}),x.fetchers.set(n,f),$({fetchers:new Map(x.fetchers)}),d=new AbortController,h=De(t.history,o,d.signal),L.set(n,d),e.next=9,Oe("loader",h,s,u,i,r,y.basename);case 9:if(!Je(p=e.sent)){e.next=17;break}return e.next=13,et(p,h.signal,!0);case 13:if(e.t0=e.sent,e.t0){e.next=16;break}e.t0=p;case 16:p=e.t0;case 17:if(L.get(n)===d&&L.delete(n),!h.signal.aborted){e.next=20;break}return e.abrupt("return");case 20:if(!$e(p)){e.next=24;break}return e.next=23,ue(x,p);case 23:return e.abrupt("return");case 24:if(!Ke(p)){e.next=29;break}return v=Ve(x.matches,a),x.fetchers.delete(n),$({fetchers:new Map(x.fetchers),errors:S({},v.route.id,p.error)}),e.abrupt("return");case 29:N(!Je(p),"Unhandled fetcher deferred data"),m={state:"idle",data:p.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0},x.fetchers.set(n,m),$({fetchers:new Map(x.fetchers)});case 33:case"end":return e.stop()}}),e)}))),se.apply(this,arguments)}function ue(e,t,n){return ce.apply(this,arguments)}function ce(){return ce=_(k().mark((function n(r,i,a){var o,s,u,c,l,f,d,h,p,v,m,y,b,w;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(u=(s=void 0===a?{}:a).submission,c=s.replace,l=s.isFetchActionRedirect,i.revalidate&&(O=!0),N(f=R(r.location,i.location,C({_isRedirect:!0},l?{_isFetchActionRedirect:!0}:{})),"Expected a location on the redirect navigation"),!ke.test(i.location)||!xe||"undefined"===typeof(null==(o=window)?void 0:o.location)){n.next=10;break}if(d=t.history.createURL(i.location),h=null==ee(d.pathname,t.basename||"/"),window.location.origin===d.origin&&!h){n.next=10;break}return c?window.location.replace(i.location):window.location.assign(i.location),n.abrupt("return");case 10:if(g=null,p=!0===c?e.Replace:e.Push,v=r.navigation,m=v.formMethod,y=v.formAction,b=v.formEncType,w=v.formData,!u&&m&&y&&w&&b&&(u={formMethod:m,formAction:y,formEncType:b,formData:w}),!(ye.has(i.status)&&u&&Xe(u.formMethod))){n.next=19;break}return n.next=17,Q(p,f,{submission:C({},u,{formAction:i.location}),preventScrollReset:P});case 17:n.next=21;break;case 19:return n.next=21,Q(p,f,{overrideNavigation:{state:"loading",location:f,formMethod:u?u.formMethod:void 0,formAction:u?u.formAction:void 0,formEncType:u?u.formEncType:void 0,formData:u?u.formData:void 0},preventScrollReset:P});case 21:case"end":return n.stop()}}),n)}))),ce.apply(this,arguments)}function le(e,t,n,r,i){return fe.apply(this,arguments)}function fe(){return fe=_(k().mark((function e(n,a,s,u,c){var l,f,d;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([].concat(o(s.map((function(e){return Oe("loader",c,e,a,i,r,y.basename)}))),o(u.map((function(e){return e.matches&&e.match?Oe("loader",De(t.history,e.path,c.signal),e.match,e.matches,i,r,y.basename):{type:A.error,error:ze(404,{pathname:e.path})}})))));case 2:return l=e.sent,f=l.slice(0,s.length),d=l.slice(s.length),e.next=7,Promise.all([Qe(n,s,f,c.signal,!1,x.loaderData),Qe(n,u.map((function(e){return e.match})),d,c.signal,!0)]);case 7:return e.abrupt("return",{results:l,loaderResults:f,fetcherResults:d});case 8:case"end":return e.stop()}}),e)}))),fe.apply(this,arguments)}function de(){var e;O=!0,(e=D).push.apply(e,o(Re())),H.forEach((function(e,t){L.has(t)&&(M.push(t),ve(t))}))}
2function he(e,t,n){var r=Ve(x.matches,t);pe(e),$({errors:S({},r.route.id,n),fetchers:new Map(x.fetchers)})}function pe(e){L.has(e)&&ve(e),H.delete(e),z.delete(e),W.delete(e),x.fetchers.delete(e)}function ve(e){var t=L.get(e);N(t,"Expected fetch controller: "+e),t.abort(),L.delete(e)}function me(e){var t,n=T(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i={state:"idle",data:ae(r).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};x.fetchers.set(r,i)}}catch(a){n.e(a)}finally{n.f()}}function Ee(){var e,t=[],n=T(W);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=x.fetchers.get(r);N(i,"Expected fetcher: "+r),"loading"===i.state&&(W.delete(r),t.push(r))}}catch(a){n.e(a)}finally{n.f()}me(t)}function Te(e){var t,n=[],r=T(z);try{for(r.s();!(t=r.n()).done;){var i=w(t.value,2),a=i[0];if(i[1]<e){var o=x.fetchers.get(a);N(o,"Expected fetcher: "+a),"loading"===o.state&&(ve(a),z.delete(a),n.push(a))}}}catch(s){r.e(s)}finally{r.f()}return me(n),n.length>0}function Ae(e){x.blockers.delete(e),J.delete(e)}function je(e,t){var n=x.blockers.get(e)||we;N("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state),x.blockers.set(e,t),$({blockers:new Map(x.blockers)})}function Ie(e){var t=e.currentLocation,n=e.nextLocation,r=e.historyAction;if(0!==J.size){J.size>1&&I(!1,"A router only supports one blocker at a time");var i=Array.from(J.entries()),a=w(i[i.length-1],2),o=a[0],s=a[1],u=x.blockers.get(o);if(!u||"proceeding"!==u.state)return s({currentLocation:t,nextLocation:n,historyAction:r})?o:void 0}}function Re(e){var t=[];return q.forEach((function(n,r){e&&!e(r)||(n.cancel(),t.push(r),q.delete(r))})),t}function Me(e,t){if(c&&l&&f){var n=t.map((function(e){return rt(e,x.loaderData)})),r=l(e,n)||e.key;c[r]=f()}}function Le(e,t){if(c&&l&&f){var n=t.map((function(e){return rt(e,x.loaderData)})),r=l(e,n)||e.key,i=c[r];if("number"===typeof i)return i}return null}return y={get basename(){return t.basename},get state(){return x},get routes(){return a},initialize:function(){if(s=t.history.listen((function(e){var n=e.action,r=e.location,i=e.delta;if(!K){I(0===J.size||null!=i,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");var a=Ie({currentLocation:x.location,nextLocation:r,historyAction:n});return a&&null!=i?(K=!0,t.history.go(-1*i),void je(a,{state:"blocked",location:r,proceed:function(){je(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.history.go(i)},reset:function(){Ae(a),$({blockers:new Map(y.state.blockers)})}})):Q(n,r)}K=!1})),x.initialized)return y;var n=x.matches.filter((function(e){return e.route.lazy}));if(0===n.length)return Q(e.Pop,x.location),y;var a=n.map((function(e){return Ne(e.route,r,i)}));return Promise.all(a).then((function(){var n=!x.matches.some((function(e){return e.route.loader}))||null!=t.hydrationData;n?$({initialized:!0}):Q(e.Pop,x.location)})),y},subscribe:function(e){return u.add(e),function(){return u.delete(e)}},enableScrollRestoration:function(e,t,n){if(c=e,f=t,l=n||function(e){return e.key},!d&&x.navigation===ge){d=!0;var r=Le(x.location,x.matches);null!=r&&$({restoreScrollPosition:r})}return function(){c=null,f=null,l=null}},navigate:Y,fetch:function(e,r,i,o){if(_e)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");L.has(e)&&ve(e);var s=V(n||a,i,t.basename);if(s){var u=Pe(i,o,!0),c=u.path,l=u.submission,f=it(s,c);P=!0===(o&&o.preventScrollReset),l&&Xe(l.formMethod)?function(e,t,n,r,i,a){oe.apply(this,arguments)}(e,r,c,f,s,l):(H.set(e,{routeId:r,path:c}),function(e,t,n,r,i,a){se.apply(this,arguments)}(e,r,c,f,s,l))}else he(e,r,ze(404,{pathname:i}))},revalidate:function(){de(),$({revalidation:"loading"}),"submitting"!==x.navigation.state&&("idle"!==x.navigation.state?Q(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation}):Q(x.historyAction,x.location,{startUninterruptedRevalidation:!0}
2))},createHref:function(e){return t.history.createHref(e)},encodeLocation:function(e){return t.history.encodeLocation(e)},getFetcher:ae,deleteFetcher:pe,dispose:function(){s&&s(),u.clear(),g&&g.abort(),x.fetchers.forEach((function(e,t){return pe(t)})),x.blockers.forEach((function(e,t){return Ae(t)}))},getBlocker:function(e,t){var n=x.blockers.get(e)||we;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Ae,_internalFetchControllers:L,_internalActiveDeferreds:q,_internalSetRoutes:function(e){n=e}},y}Symbol("deferred");function Pe(e,t,n){void 0===n&&(n=!1);var r,i="string"===typeof e?e:D(e);if(!t||!function(e){return null!=e&&"formData"in e}(t))return{path:i};if(t.formMethod&&!Ye(t.formMethod))return{path:i,error:ze(405,{method:t.formMethod})};if(t.formData&&Xe((r={formMethod:t.formMethod||"get",formAction:He(i),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData}).formMethod))return{path:i,submission:r};var a=M(i),o=Me(t.formData);return n&&a.search&&nt(a.search)&&o.append("index",""),a.search="?"+o,{path:D(a),submission:r}}function Te(e,t){var n=e;if(t){var r=e.findIndex((function(e){return e.route.id===t}));r>=0&&(n=e.slice(0,r))}return n}function Ce(e,t,n,r,i,a,o,s,u,c,l,f,d){var h=d?Object.values(d)[0]:f?Object.values(f)[0]:void 0,p=e.createURL(t.location),v=e.createURL(i),m=a||p.toString()===v.toString()||p.search!==v.search,y=d?Object.keys(d)[0]:void 0,g=Te(n,y).filter((function(e,n){if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,n){var r=!t||n.route.id!==t.route.id,i=void 0===e[n.route.id];return r||i}(t.loaderData,t.matches[n],e)||o.some((function(t){return t===e.route.id})))return!0;var i=t.matches[n],a=e;return je(e,C({currentUrl:p,currentParams:i.params,nextUrl:v,nextParams:a.params},r,{actionResult:h,defaultShouldRevalidate:m||Ae(i,a)}))})),b=[];return u.forEach((function(e,i){if(n.some((function(t){return t.route.id===e.routeId}))){var a=V(c,e.path,l);if(a){var o=it(a,e.path);if(s.includes(i))b.push(C({key:i,matches:a,match:o},e));else je(o,C({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:m}))&&b.push(C({key:i,matches:a,match:o},e))}else b.push(C({key:i},e,{matches:null,match:null}))}})),[g,b]}function Ae(e,t){var n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function je(e,t){if(e.route.shouldRevalidate){var n=e.route.shouldRevalidate(t);if("boolean"===typeof n)return n}return t.defaultShouldRevalidate}function Ne(e,t,n){return Ie.apply(this,arguments)}function Ie(){return Ie=_(k().mark((function e(t,n,r){var i,a,o,s,u,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.lazy){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.lazy();case 4:if(i=e.sent,t.lazy){e.next=7;break}return e.abrupt("return");case 7:for(s in N(a=r[t.id],"No route found in manifest"),o={},i)u=a[s],I(!(c=void 0!==u&&"hasErrorBoundary"!==s),'Route "'+a.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+s+'" will be ignored.'),c||U.has(s)||(o[s]=i[s]);Object.assign(a,o),Object.assign(a,{hasErrorBoundary:n(C({},a)),lazy:void 0});case 13:case"end":return e.stop()}}),e)}))),Ie.apply(this,arguments)}function Oe(e,t,n,r,i,a,o,s,u,c){return Re.apply(this,arguments)}function Re(){return Re=_(k().mark((function e(t,n,r,i,a,o,s,u,c,l){var f,d,h,p,v,m,y,g,b,w,x,_,S,E,P,T,C,j,I;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===s&&(s="/"),void 0===u&&(u=!1),void 0===c&&(c=!1),p=function(e){var t,i=new Promise((function(e,n){return t=n}));return h=function(){return t()},n.signal.addEventListener("abort",h),Promise.race([e({request:n,params:r.params,context:l}),i])},e.prev=4,v=r.route[t],!r.route.lazy){e.next=30;break}if(!v){e.next=14;break}return e.next=10,Promise.all([p(v),Ne(r.route,o,a)]);case 10:m=e.sent,d=m[0],e.next=28;break;case 14:return e.next=16,Ne(r.route,o,a);
2case 16:if(!(v=r.route[t])){e.next=23;break}return e.next=20,p(v);case 20:d=e.sent,e.next=28;break;case 23:if("action"!==t){e.next=27;break}throw ze(405,{method:n.method,pathname:new URL(n.url).pathname,routeId:r.route.id});case 27:return e.abrupt("return",{type:A.data,data:void 0});case 28:e.next=34;break;case 30:return N(v,"Could not find the "+t+' to run on the "'+r.route.id+'" route'),e.next=33,p(v);case 33:d=e.sent;case 34:N(void 0!==d,"You defined "+("action"===t?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+t+"` function. Please return a value or `null`."),e.next=41;break;case 37:e.prev=37,e.t0=e.catch(4),f=A.error,d=e.t0;case 41:return e.prev=41,h&&n.signal.removeEventListener("abort",h),e.finish(41);case 44:if(!Ge(d)){e.next=69;break}if(y=d.status,!me.has(y)){e.next=54;break}if(N(g=d.headers.get("Location"),"Redirects returned/thrown from loaders/actions must have a Location header"),ke.test(g)?u||(S=new URL(n.url),E=g.startsWith("//")?new URL(S.protocol+g):new URL(g),P=null!=ee(E.pathname,s),E.origin===S.origin&&P&&(g=E.pathname+E.search+E.hash)):(b=i.slice(0,i.indexOf(r)+1),w=ne(b).map((function(e){return e.pathnameBase})),N(D(x=re(g,w,new URL(n.url).pathname)),"Unable to resolve redirect location: "+g),s&&(_=x.pathname,x.pathname="/"===_?s:ie([s,_])),g=D(x)),!u){e.next=53;break}throw d.headers.set("Location",g),d;case 53:return e.abrupt("return",{type:A.redirect,status:y,location:g,revalidate:null!==d.headers.get("X-Remix-Revalidate")});case 54:if(!c){e.next=56;break}throw{type:f||A.data,response:d};case 56:if(!(C=d.headers.get("Content-Type"))||!/\bapplication\/json\b/.test(C)){e.next=63;break}return e.next=60,d.json();case 60:T=e.sent,e.next=66;break;case 63:return e.next=65,d.text();case 65:T=e.sent;case 66:if(f!==A.error){e.next=68;break}return e.abrupt("return",{type:f,error:new le(y,d.statusText,T),headers:d.headers});case 68:return e.abrupt("return",{type:A.data,data:T,statusCode:d.status,headers:d.headers});case 69:if(f!==A.error){e.next=71;break}return e.abrupt("return",{type:f,error:d});case 71:if(!(d instanceof ce)){e.next=73;break}return e.abrupt("return",{type:A.deferred,deferredData:d,statusCode:null==(j=d.init)?void 0:j.status,headers:(null==(I=d.init)?void 0:I.headers)&&new Headers(d.init.headers)});case 73:return e.abrupt("return",{type:A.data,data:d});case 74:case"end":return e.stop()}}),e,null,[[4,37,41,44]])}))),Re.apply(this,arguments)}function De(e,t,n,r){var i=e.createURL(He(t)).toString(),a={signal:n};if(r&&Xe(r.formMethod)){var o=r.formMethod,s=r.formEncType,u=r.formData;a.method=o.toUpperCase(),a.body="application/x-www-form-urlencoded"===s?Me(u):u}return new Request(i,a)}function Me(e){var t,n=new URLSearchParams,r=T(e.entries());try{for(r.s();!(t=r.n()).done;){var i=w(t.value,2),a=i[0],o=i[1];n.append(a,o instanceof File?o.name:o)}}catch(s){r.e(s)}finally{r.f()}return n}function Le(e,t,n,r,i){var a,o={},s=null,u=!1,c={};return n.forEach((function(n,l){var f=t[l].route.id;if(N(!$e(n),"Cannot handle redirect results in processLoaderData"),Ke(n)){var d=Ve(e,f),h=n.error;r&&(h=Object.values(r)[0],r=void 0),null==(s=s||{})[d.route.id]&&(s[d.route.id]=h),o[f]=void 0,u||(u=!0,a=fe(n.error)?n.error.status:500),n.headers&&(c[f]=n.headers)}else Je(n)?(i.set(f,n.deferredData),o[f]=n.deferredData.data):o[f]=n.data,null==n.statusCode||200===n.statusCode||u||(a=n.statusCode),n.headers&&(c[f]=n.headers)})),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:c}}function Ue(e,t,n,r,i,a,o,s){for(var u=Le(t,n,r,i,s),c=u.loaderData,l=u.errors,f=0;f<a.length;f++){var d=a[f],h=d.key,p=d.match;N(void 0!==o&&void 0!==o[f],"Did not find corresponding fetcher result");var v=o[f];if(Ke(v)){var m=Ve(e.matches,null==p?void 0:p.route.id);l&&l[m.route.id]||(l=C({},l,S({},m.route.id,v.error))),e.fetchers.delete(h)}else if($e(v))N(!1,"Unhandled fetcher revalidation redirect");else if(Je(v))N(!1,"Unhandled fetcher deferred data");else{var y={state:"idle",data:v.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(h,y)}}return{loaderData:c,errors:l}}function Fe(e,t,n,r){var i,a=C({},t),o=T(n);try{for(o.s();!(i=o.n()).done;){var s=i.value,u=s.route.id;if(t.hasOwnProperty(u)?void 0!==t[u]&&(a[u]=t[u]):void 0!==e[u]&&s.route.loader&&(a[u]=e[u]),r&&r.hasOwnProperty(u))break}}catch(c){o.e(c)}finally{o.f()}return a}function Ve(e,t){var n=t?e.slice(0,e.findIndex((function(e){return e.route.id===t}))+1):o(e);return n.reverse().find((function(e){return!0===e.route.hasErrorBoundary}))||e[0]}function Be(e){var t=e.find((function(e){return e.index||!e.path||"/"===e.path}))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ze(e,t){var n=void 0===t?{}:t,r=n.pathname,i=n.routeId,a=n.method,o=n.type,s="Unknown Server Error",u="Unknown @remix-run/router error";
2return 400===e?(s="Bad Request",a&&r&&i?u="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+i+'", so there is no way to handle the request.':"defer-action"===o&&(u="defer() is not supported in actions")):403===e?(s="Forbidden",u='Route "'+i+'" does not match URL "'+r+'"'):404===e?(s="Not Found",u='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",a&&r&&i?u="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+i+'", so there is no way to handle the request.':a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new le(e||500,s,new Error(u),!0)}function We(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if($e(n))return n}}function He(e){return D(C({},"string"===typeof e?M(e):e,{hash:""}))}function qe(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Je(e){return e.type===A.deferred}function Ke(e){return e.type===A.error}function $e(e){return(e&&e.type)===A.redirect}function Ge(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"object"===typeof e.headers&&"undefined"!==typeof e.body}function Ye(e){return ve.has(e)}function Xe(e){return he.has(e)}function Qe(e,t,n,r,i,a){return Ze.apply(this,arguments)}function Ze(){return Ze=_(k().mark((function e(t,n,r,i,a,o){var s,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=k().mark((function e(s){var u,c,l,f;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=r[s],c=n[s]){e.next=4;break}return e.abrupt("return","continue");case 4:if(l=t.find((function(e){return e.route.id===c.route.id})),f=null!=l&&!Ae(l,c)&&void 0!==(o&&o[c.route.id]),!Je(u)||!a&&!f){e.next=9;break}return e.next=9,et(u,i,a).then((function(e){e&&(r[s]=e||r[s])}));case 9:case"end":return e.stop()}}),e)})),u=0;case 2:if(!(u<r.length)){e.next=10;break}return e.delegateYield(s(u),"t0",4);case 4:if("continue"!==e.t0){e.next=7;break}return e.abrupt("continue",7);case 7:u++,e.next=2;break;case 10:case"end":return e.stop()}}),e)}))),Ze.apply(this,arguments)}function et(e,t,n){return tt.apply(this,arguments)}function tt(){return tt=_(k().mark((function e(t,n,r){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r=!1),e.next=3,t.deferredData.resolveData(n);case 3:if(!e.sent){e.next=6;break}return e.abrupt("return");case 6:if(!r){e.next=14;break}return e.prev=7,e.abrupt("return",{type:A.data,data:t.deferredData.unwrappedData});case 11:return e.prev=11,e.t0=e.catch(7),e.abrupt("return",{type:A.error,error:e.t0});case 14:return e.abrupt("return",{type:A.data,data:t.deferredData.data});case 15:case"end":return e.stop()}}),e,null,[[7,11]])}))),tt.apply(this,arguments)}function nt(e){return new URLSearchParams(e).getAll("index").some((function(e){return""===e}))}function rt(e,t){var n=e.route,r=e.pathname,i=e.params;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function it(e,t){var n="string"===typeof t?M(t).search:t.search;if(e[e.length-1].route.index&&nt(n||""))return e[e.length-1];var r=ne(e);return r[r.length-1]}var at=n(313),ot=n.t(at,2);var st="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ut=at.useState,ct=at.useEffect,lt=at.useLayoutEffect,ft=at.useDebugValue;function dt(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!st(n,r)}catch(i){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement;var ht=ot.useSyncExternalStore,pt=at.createContext(null);var vt=at.createContext(null);var mt=at.createContext(null);var yt=at.createContext(null);var gt=at.createContext(null);var bt=at.createContext({outlet:null,matches:[]});var wt=at.createContext(null);function kt(){return kt=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},kt.apply(this,arguments)}function xt(){return null!=at.useContext(gt)}function _t(){return xt()||N(!1),at.useContext(gt).location}function St(){xt()||N(!1);var e=at.useContext(yt),t=e.basename,n=e.navigator,r=at.useContext(bt).matches,i=_t().pathname,a=JSON.stringify(ne(r).map((function(e){return e.pathnameBase}))),o=at.useRef(!1);return at.useEffect((function(){o.current=!0})),at.useCallback((function(e,r){if(void 0===r&&(r={}),o.current)if("number"!==typeof e){var s=re(e,JSON.parse(a),i,"path"===r.relative);"/"!==t&&(s.pathname="/"===s.pathname?t:ie([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state,r)}else n.go(e)}),[t,n,a,i])}function Et(e,t){var n=(void 0===t?{}:t).relative,r=at.useContext(bt).matches,i=_t().pathname,a=JSON.stringify(ne(r).map((function(e){return e.pathnameBase})));return at.useMemo((function(){return re(e,JSON.parse(a),i,"path"===n)}),[e,a,i,n])}function Pt(){var e=function(){var e,t=at.useContext(wt),n=It(Ct.UseRouteError),r=Ot(Ct.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=fe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return at.createElement(at.Fragment,null,at.createElement("h2",null,"Unexpected Application 
2Error!"),at.createElement("h3",{style:{fontStyle:"italic"}},t),n?at.createElement("pre",{style:i},n):null,null)}var Tt,Ct,At=function(e){h(n,e);var t=y(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).state={location:e.location,error:e.error},r}return f(n,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?at.createElement(bt.Provider,{value:this.props.routeContext},at.createElement(wt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),n}(at.Component);function jt(e){var t=e.routeContext,n=e.match,r=e.children,i=at.useContext(pt);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),at.createElement(bt.Provider,{value:t},r)}function Nt(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}var r=e,i=null==n?void 0:n.errors;if(null!=i){var a=r.findIndex((function(e){return e.route.id&&(null==i?void 0:i[e.route.id])}));a>=0||N(!1),r=r.slice(0,Math.min(r.length,a+1))}return r.reduceRight((function(e,a,o){var s=a.route.id?null==i?void 0:i[a.route.id]:null,u=null;n&&(u=a.route.ErrorBoundary?at.createElement(a.route.ErrorBoundary,null):a.route.errorElement?a.route.errorElement:at.createElement(Pt,null));var c=t.concat(r.slice(0,o+1)),l=function(){var t=e;return s?t=u:a.route.Component?t=at.createElement(a.route.Component,null):a.route.element&&(t=a.route.element),at.createElement(jt,{match:a,routeContext:{outlet:e,matches:c},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?at.createElement(At,{location:n.location,component:u,error:s,children:l(),routeContext:{outlet:null,matches:c}}):l()}),null)}function It(e){var t=at.useContext(vt);return t||N(!1),t}function Ot(e){var t=function(e){var t=at.useContext(bt);return t||N(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||N(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(Tt||(Tt={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(Ct||(Ct={}));var Rt;function Dt(e){var t=e.fallbackElement,n=e.router,r=at.useCallback((function(){return n.state}),[n]),i=ht(n.subscribe,r,r),a=at.useMemo((function(){return{createHref:n.createHref,encodeLocation:n.encodeLocation,go:function(e){return n.navigate(e)},push:function(e,t,r){return n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})},replace:function(e,t,r){return n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}}}),[n]),o=n.basename||"/",s=at.useMemo((function(){return{router:n,navigator:a,static:!1,basename:o}}),[n,a,o]);return at.createElement(at.Fragment,null,at.createElement(pt.Provider,{value:s},at.createElement(vt.Provider,{value:i},at.createElement(Ut,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:a},n.state.initialized?at.createElement(Ft,null):t))),null)}function Mt(e){var t=e.to,n=e.replace,r=e.state,i=e.relative;xt()||N(!1);var a=at.useContext(vt),o=St();return at.useEffect((function(){a&&"idle"!==a.navigation.state||o(t,{replace:n,state:r,relative:i})})),null}function Lt(e){N(!1)}function Ut(t){var n=t.basename,r=void 0===n?"/":n,i=t.children,a=void 0===i?null:i,o=t.location,s=t.navigationType,u=void 0===s?e.Pop:s,c=t.navigator,l=t.static,f=void 0!==l&&l;xt()&&N(!1);var d=r.replace(/^\/*/,"/"),h=at.useMemo((function(){return{basename:d,navigator:c,static:f}}),[d,c,f]);"string"===typeof o&&(o=M(o));var p=o,v=p.pathname,m=void 0===v?"/":v,y=p.search,g=void 0===y?""
2:y,b=p.hash,w=void 0===b?"":b,k=p.state,x=void 0===k?null:k,_=p.key,S=void 0===_?"default":_,E=at.useMemo((function(){var e=ee(m,d);return null==e?null:{location:{pathname:e,search:g,hash:w,state:x,key:S},navigationType:u}}),[d,m,g,w,x,S,u]);return null==E?null:at.createElement(yt.Provider,{value:h},at.createElement(gt.Provider,{children:a,value:E}))}function Ft(t){var n=t.children,r=t.location,i=at.useContext(pt);return function(t,n){xt()||N(!1);var r,i=at.useContext(yt).navigator,a=at.useContext(vt),o=at.useContext(bt).matches,s=o[o.length-1],u=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/"),l=(s&&s.route,_t());if(n){var f,d="string"===typeof n?M(n):n;"/"===c||(null==(f=d.pathname)?void 0:f.startsWith(c))||N(!1),r=d}else r=l;var h=r.pathname||"/",p=V(t,{pathname:"/"===c?h:h.slice(c.length)||"/"}),v=Nt(p&&p.map((function(e){return Object.assign({},e,{params:Object.assign({},u,e.params),pathname:ie([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:ie([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),o,a||void 0);return n&&v?at.createElement(gt.Provider,{value:{location:kt({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:e.Pop}},v):v}(i&&!n?i.router.routes:Bt(n),r)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Rt||(Rt={}));var Vt=new Promise((function(){}));at.Component;function Bt(e,t){void 0===t&&(t=[]);var n=[];return at.Children.forEach(e,(function(e,r){if(at.isValidElement(e))if(e.type!==at.Fragment){e.type!==Lt&&N(!1),e.props.index&&e.props.children&&N(!1);var i=[].concat(o(t),[r]),a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Bt(e.props.children,i)),n.push(a)}else n.push.apply(n,Bt(e.props.children,t))})),n}function zt(e){return Boolean(e.ErrorBoundary)||Boolean(e.errorElement)}function Wt(){return Wt=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},Wt.apply(this,arguments)}function Ht(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var qt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Jt(){var e,t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Wt({},t,{errors:Kt(t.errors)})),t}function Kt(e){if(!e)return null;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=w(r[n],2),a=i[0],o=i[1];if(o&&"RouteErrorResponse"===o.__type)t[a]=new le(o.status,o.statusText,o.data,!0===o.internal);else if(o&&"Error"===o.__type){var s=new Error(o.message);s.stack="",t[a]=s}else t[a]=o}return t}var $t="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Gt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yt=at.forwardRef((function(e,t){var n,r=e.onClick,i=e.relative,a=e.reloadDocument,o=e.replace,s=e.state,u=e.target,c=e.to,l=e.preventScrollReset,f=Ht(e,qt),d=at.useContext(yt).basename,h=!1;if("string"===typeof c&&Gt.test(c)&&(n=c,$t)){var p=new URL(window.location.href),v=c.startsWith("//")?new URL(p.protocol+c):new URL(c),m=ee(v.pathname,d);v.origin===p.origin&&null!=m?c=m+v.search+v.hash:h=!0}var y=function(e,t){var n=(void 0===t?{}:t).relative;xt()||N(!1);var r=at.useContext(yt),i=r.basename,a=r.navigator,o=Et(e,{relative:n}),s=o.hash,u=o.pathname,c=o.search,l=u;return"/"!==i&&(l="/"===u?i:ie([i,u])),a.createHref({pathname:l,search:c,hash:s})}(c,{relative:i}),g=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,a=n.state,o=n.preventScrollReset,s=n.relative,u=St(),c=_t(),l=Et(e,{relative:s});return at.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();var n=void 0!==i?i:D(c)===D(l);u(e,{replace:n,state:a,preventScrollReset:o,relative:s})}}),[c,u,l,i,a,r,e,o,s])}(c,{replace:o,state:s,target:u,preventScrollReset:l,relative:i});return at.createElement("a",Wt({},f,{href:n||y,onClick:h||a?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:u}))}));var Xt,Qt;function Zt(e){return function(e){var t=void 0===e?{}:e,n=t.getKey,r=t.storageKey,i=en(Xt.UseScrollRestoration).router,a=tn(Qt.UseScrollRestoration),o=a.restoreScrollPosition,s=a.preventScrollReset,u=_t(),c=function(){var e=It(Ct.UseMatches),t=e.matches,n=e.loaderData;return at.useMemo((function(){return t.map((function(e){var t=e.pathname,r=e.params;return{id:e.route.id,pathname:t,params:r,data:n[e.route.id],handle:e.route.handle}}))}),[t,n])}
2(),l=It(Ct.UseNavigation).navigation;at.useEffect((function(){return window.history.scrollRestoration="manual",function(){window.history.scrollRestoration="auto"}}),[]),function(e,t){var n=(t||{}).capture;at.useEffect((function(){var t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),function(){window.removeEventListener("pagehide",e,t)}}),[e,n])}(at.useCallback((function(){if("idle"===l.state){var e=(n?n(u,c):null)||u.key;rn[e]=window.scrollY}sessionStorage.setItem(r||nn,JSON.stringify(rn)),window.history.scrollRestoration="auto"}),[r,n,l.state,u,c])),"undefined"!==typeof document&&(at.useLayoutEffect((function(){try{var e=sessionStorage.getItem(r||nn);e&&(rn=JSON.parse(e))}catch(t){}}),[r]),at.useLayoutEffect((function(){var e=null==i?void 0:i.enableScrollRestoration(rn,(function(){return window.scrollY}),n);return function(){return e&&e()}}),[i,n]),at.useLayoutEffect((function(){if(!1!==o)if("number"!==typeof o){if(u.hash){var e=document.getElementById(u.hash.slice(1));if(e)return void e.scrollIntoView()}!0!==s&&window.scrollTo(0,0)}else window.scrollTo(0,o)}),[u,o,s]))}({getKey:e.getKey,storageKey:e.storageKey}),null}function en(e){var t=at.useContext(pt);return t||N(!1),t}function tn(e){var t=at.useContext(vt);return t||N(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Xt||(Xt={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Qt||(Qt={}));var nn="react-router-scroll-positions",rn={};var an=n(239),on=n(58),sn=n(168);var un=function(e){e()},cn=function(){return un},ln=(0,at.createContext)(null);function fn(){return(0,at.useContext)(ln)}var dn=function(){throw new Error("uSES not initialized!")},hn=dn,pn=function(e,t){return e===t};function vn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ln,t=e===ln?fn:function(){return(0,at.useContext)(e)};return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn;var r=t(),i=r.store,a=r.subscription,o=r.getServerState,s=hn(a.addNestedSub,i.getState,o||i.getState,e,n);return(0,at.useDebugValue)(s),s}}var mn=vn();n(861),n(214);var yn={notify:function(){},get:function(){return[]}};function gn(e,t){var n,r=yn;function i(){o.onStateChange&&o.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=cn(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var o={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=yn)},getListeners:function(){return r}};return o}var bn=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?at.useLayoutEffect:at.useEffect;var wn=function(e){var t=e.store,n=e.context,r=e.children,i=e.serverState,a=(0,at.useMemo)((function(){var e=gn(t);return{store:t,subscription:e,getServerState:i?function(){return i}:void 0}}),[t,i]),o=(0,at.useMemo)((function(){return t.getState()}),[t]);bn((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,o]);var s=n||ln;return at.createElement(s.Provider,{value:a},r)};function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ln,t=e===ln?fn:function(){return(0,at.useContext)(e)};return function(){return t().store}}var xn=kn();function _n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ln,t=e===ln?xn:kn(e);return function(){return t().dispatch}}var Sn,En=_n();function Pn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Tn(e){return!!e&&!!e[mr]}function Cn(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===yr}(e)||Array.isArray(e)||!!e[vr]||!!(null===(t=e.constructor)||void 0===t?void 0:t[vr])||Dn(e)||Mn(e))}
vendor: 9,054 bytes, line 2
2function An(e,t,n){void 0===n&&(n=!1),0===jn(e)?(n?Object.keys:gr)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function jn(e){var t=e[mr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Dn(e)?2:Mn(e)?3:0}function Nn(e,t){return 2===jn(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function In(e,t){return 2===jn(e)?e.get(t):e[t]}function On(e,t,n){var r=jn(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Rn(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Dn(e){return fr&&e instanceof Map}function Mn(e){return dr&&e instanceof Set}function Ln(e){return e.o||e.t}function Un(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=br(e);delete t[mr];for(var n=gr(t),r=0;r<n.length;r++){var i=n[r],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Fn(e,t){return void 0===t&&(t=!1),Bn(e)||Tn(e)||!Cn(e)||(jn(e)>1&&(e.set=e.add=e.clear=e.delete=Vn),Object.freeze(e),t&&An(e,(function(e,t){return Fn(t,!0)}),!0)),e}function Vn(){Pn(2)}function Bn(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function zn(e){var t=wr[e];return t||Pn(18,e),t}function Wn(e,t){wr[e]||(wr[e]=t)}function Hn(){return cr}function qn(e,t){t&&(zn("Patches"),e.u=[],e.s=[],e.v=t)}function Jn(e){Kn(e),e.p.forEach(Gn),e.p=null}function Kn(e){e===cr&&(cr=e.l)}function $n(e){return cr={p:[],l:cr,h:e,m:!0,_:0}}function Gn(e){var t=e[mr];0===t.i||1===t.i?t.j():t.O=!0}function Yn(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||zn("ES5").S(t,e,r),r?(n[mr].P&&(Jn(t),Pn(4)),Cn(e)&&(e=Xn(t,e),t.l||Zn(t,e)),t.u&&zn("Patches").M(n[mr].t,e,t.u,t.s)):e=Xn(t,n,[]),Jn(t),t.u&&t.v(t.u,t.s),e!==pr?e:void 0}function Xn(e,t,n){if(Bn(t))return t;var r=t[mr];if(!r)return An(t,(function(i,a){return Qn(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Zn(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Un(r.k):r.o,a=i,o=!1;3===r.i&&(a=new Set(i),i.clear(),o=!0),An(a,(function(t,a){return Qn(e,r,i,t,a,n,o)})),Zn(e,i,!1),n&&e.u&&zn("Patches").N(r,n,e.u,e.s)}return r.o}function Qn(e,t,n,r,i,a,o){if(Tn(i)){var s=Xn(e,i,a&&t&&3!==t.i&&!Nn(t.R,r)?a.concat(r):void 0);if(On(n,r,s),!Tn(s))return;e.m=!1}else o&&n.add(i);if(Cn(i)&&!Bn(i)){if(!e.h.D&&e._<1)return;Xn(e,i),t&&t.A.l||Zn(e,i)}}function Zn(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Fn(t,n)}function er(e,t){var n=e[mr];return(n?Ln(n):e)[t]}function tr(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function nr(e){e.P||(e.P=!0,e.l&&nr(e.l))}function rr(e){e.o||(e.o=Un(e.t))}function ir(e,t,n){var r=Dn(t)?zn("MapSet").F(t,n):Mn(t)?zn("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Hn(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=kr;n&&(i=[r],a=xr);var o=Proxy.revocable(i,a),s=o.revoke,u=o.proxy;return r.k=u,r.j=s,u}(t,n):zn("ES5").J(t,n);return(n?n.A:Hn()).p.push(r),r}function ar(e){return Tn(e)||Pn(22,e),function e(t){if(!Cn(t))return t;var n,r=t[mr],i=jn(t);if(r){if(!r.P&&(r.i<4||!zn("ES5").K(r)))return r.t;r.I=!0,n=or(t,i),r.I=!1}else n=or(t,i);return An(n,(function(t,i){r&&In(r.t,t)===i||On(n,t,e(i))})),3===i?new Set(n):n}(e)}function or(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Un(e)}function sr(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[mr];return kr.get(t,e)},set:function(t){var n=this[mr];kr.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][mr];if(!i.P)switch(i.i){case 5:r(i)&&nr(i);break;case 4:n(i)&&nr(i)}}}function n(e){for(var t=e.t,n=e.k,r=gr(n),i=r.length-1;i>=0;i--){var a=r[i];if(a!==mr){var o=t[a];if(void 0===o&&!Nn(t,a))return!0;var s=n[a],u=s&&s[mr];if(u?u.t!==o:!Rn(s,o))return!0}}var c=!!t[mr];return r.length!==gr(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};Wn("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var a=br(n);delete a[mr];for(var o=gr(a),s=0;s<o.length;s++){var u=o[s];a[u]=e(u,t||!!a[u].enumerable)}return Object.create(Object.getPrototypeOf(n),a)}(r,t),a={i:r?5:4,A:n?n.A:Hn(),P:!1,I:!1,R:{},l:n,t:t,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,mr,{value:a,writable:!0}),i},S:function(e,n,i){i?Tn(n)&&n[mr].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[mr];if(n){var i=n.t,a=n.k,o=n.R,s=n.i;if(4===s)An(a,(function(t){t!==mr&&(void 0!==i[t]||Nn(i,t)?o[t]||e(a[t]):(o[t]=!0,nr(n)))})),An(i,(function(e){void 0!==a[e]||Nn(a,e)||(o[e]=!1,nr(n))}));else if(5===s){if(r(n)&&(nr(n),o.length=!0),a.length<i.length)for(var u=a.length;u<i.length;u++)o[u]=!1;else for(var c=i.length;c<a.length;c++)o[c]=!0;for(var l=Math.min(a.length,i.length),f=0;f<l;f++)a.hasOwnProperty(f)||(o[f]=!0),void 0===o[f]&&e(a[f])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}!function(e){hn=e}(on.useSyncExternalStoreWithSelector),function(e){e}(an.useSyncExternalStore),Sn=sn.unstable_batchedUpdates,un=Sn;var ur,cr,lr="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),fr="undefined"!=typeof Map,dr="undefined"!=typeof Set,hr="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pr=lr?Symbol.for("immer-nothing"):((ur={})["immer-nothing"]=!0,ur),vr=lr?Symbol.for("immer-draftable"):"__$immer_draftable",mr=lr?Symbol.for("immer-state"):"__$immer_state",yr=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),gr="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,br=Object.getOwnPropertyDescriptors||function(e){var t={};return gr(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},wr={},kr={get:function(e,t){if(t===mr)return e;var n=Ln(e);if(!Nn(n,t))return function(e,t,n){var r,i=tr(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Cn(r)?r:r===er(e.t,t)?(rr(e),e.o[t]=ir(e.A.h,r,e)):r},has:function(e,t){return t in Ln(e)},ownKeys:function(e){return Reflect.ownKeys(Ln(e))},set:function(e,t,n){var r=tr(Ln(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=er(Ln(e),t),a=null==i?void 0:i[mr];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Rn(n,i)&&(void 0!==n||Nn(e.t,t)))return!0;rr(e),nr(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==er(e.t,t)||t in e.t?(e.R[t]=!1,rr(e),nr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ln(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Pn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Pn(12)}},xr={};An(kr,(function(e,t){xr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xr.deleteProperty=function(e,t){return xr.set.call(this,e,t,void 0)},xr.set=function(e,t,n){return kr.set.call(this,e[0],t,n,e[0])};var _r=function(){function e(e){var t=this;this.g=hr,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var a=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var o;if("function"!=typeof n&&Pn(6),void 0!==r&&"function"!=typeof r&&Pn(7),Cn(e)){var s=$n(t),u=ir(t,e,void 0),c=!0;try{o=n(u),c=!1}finally{c?Jn(s):Kn(s)}return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return qn(s,r),Yn(e,s)}),(function(e){throw Jn(s),e})):(qn(s,r),Yn(o,s))}if(!e||"object"!=typeof e){if(void 0===(o=n(e))&&(o=e),o===pr&&(o=void 0),t.D&&Fn(o,!0),r){var l=[],f=[];zn("Patches").M(e,o,l,f),r(l,f)}return o}Pn(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,a=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return[e,r,i]})):[a,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}
2var t=e.prototype;return t.createDraft=function(e){Cn(e)||Pn(8),Tn(e)&&(e=ar(e));var t=$n(this),n=ir(this,e,void 0);return n[mr].C=!0,Kn(t),n},t.finishDraft=function(e,t){var n=(e&&e[mr]).A;return qn(n,t),Yn(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!hr&&Pn(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=zn("Patches").$;return Tn(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),Sr=new _r,Er=Sr.produce,Pr=(Sr.produceWithPatches.bind(Sr),Sr.setAutoFreeze.bind(Sr),Sr.setUseProxies.bind(Sr),Sr.applyPatches.bind(Sr),Sr.createDraft.bind(Sr),Sr.finishDraft.bind(Sr),Er);function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ar(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 jr="function"===typeof Symbol&&Symbol.observable||"@@observable",Nr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ir={INIT:"@@redux/INIT"+Nr(),REPLACE:"@@redux/REPLACE"+Nr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Nr()}};function Or(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Rr(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(Ar(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(Ar(1));return n(Rr)(e,t)}if("function"!==typeof e)throw new Error(Ar(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function l(){if(u)throw new Error(Ar(3));return a}function f(e){if("function"!==typeof e)throw new Error(Ar(4));if(u)throw new Error(Ar(5));var t=!0;return c(),s.push(e),function(){if(t){if(u)throw new Error(Ar(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),o=null}}}function d(e){if(!Or(e))throw new Error(Ar(7));if("undefined"===typeof e.type)throw new Error(Ar(8));if(u)throw new Error(Ar(9));try{u=!0,a=i(a,e)}finally{u=!1}for(var t=o=s,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:Ir.INIT}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!==typeof e)throw new Error(Ar(10));i=e,d({type:Ir.REPLACE})}})[jr]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(Ar(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[jr]=function(){return this},e},r}function Dr(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:Ir.INIT}))throw new Error(Ar(12));if("undefined"===typeof n(void 0,{type:Ir.PROBE_UNKNOWN_ACTION()}))throw new Error(Ar(13))}))}(n)}catch(s){a=s}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var u=o[s],c=n[u],l=e[u],f=c(l,t);if("undefined"===typeof f){t&&t.type;throw new Error(Ar(14))}i[u]=f,r=r||f!==l}return(r=r||o.length!==Object.keys(e).length)?i:e}}function Mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Ar(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return r=Mr.apply(void 0,a)(n.dispatch),Cr(Cr({},n),{},{dispatch:r})}}}function Ur(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}var Fr=Ur();Fr.withExtraArgument=Ur;var Vr=Fr,Br=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zr=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;
2function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},Wr=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Hr=Object.defineProperty,qr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Yr=function(e,t,n){return t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Xr=function(e,t){for(var n in t||(t={}))$r.call(t,n)&&Yr(e,n,t[n]);if(Kr)for(var r=0,i=Kr(t);r<i.length;r++){n=i[r];Gr.call(t,n)&&Yr(e,n,t[n])}return e},Qr=function(e,t){return qr(e,Jr(t))},Zr=function(e,t,n){return new Promise((function(r,i){var a=function(e){try{s(n.next(e))}catch(t){i(t)}},o=function(e){try{s(n.throw(e))}catch(t){i(t)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(a,o)};s((n=n.apply(e,t)).next())}))},ei="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?Mr:Mr.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function ti(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var ni=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Br(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Wr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Wr([void 0],e.concat(this))))},t}(Array);function ri(e){return Cn(e)?Pr(e,(function(){})):e}function ii(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new ni);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(Vr.withExtraArgument(n.extraArgument)):r.push(Vr));0;return r}(e)}}var ai=!0;function oi(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Xr(Xr({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function si(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function ui(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:ri(e.initialState),i=e.reducers||{},a=Object.keys(i),o={},s={},u={};function c(){var t="function"===typeof e.extraReducers?si(e.extraReducers):[e.extraReducers],n=t[0],i=void 0===n?{}:n,a=t[1],o=void 0===a?[]:a,u=t[2],c=void 0===u?void 0:u,l=Xr(Xr({},i),s);return function(e,t,n,r){void 0===n&&(n=[]);var i,a="function"===typeof t?si(t):[t,n,r],o=a[0],s=a[1],u=a[2];if(function(e){return"function"===typeof e}(e))i=function(){return ri(e())};else{var c=ri(e);i=function(){return c}}function l(e,t){void 0===e&&(e=i());var n=Wr([o[t.type]],s.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[u]),n.reduce((function(e,n){if(n){var r;if(Tn(e))return void 0===(r=n(e,t))?e:r;if(Cn(e))return Pr(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return l.getInitialState=i,l}(r,(function(e){for(var t in l)e.addCase(t,l[t]);for(var n=0,r=o;n<r.length;n++){var i=r[n];e.addMatcher(i.matcher,i.reducer)}c&&e.addDefaultCase(c)}))}return a.forEach((function(e){var n,r,a=i[e],c=t+"/"+e;"reducer"in a?(n=a.reducer,r=a.prepare):n=a,o[e]=n,s[c]=n,u[e]=r?oi(c,r):oi(c)})),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:u,caseReducers:o,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}var ci=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},li=["name","message","stack","code"],fi=function(e,t){this.payload=e,this.meta=t},di=function(e,t){this.payload=e,this.meta=t},hi=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=li;n<r.length;n++){var i=r[n];"string"===typeof e[i]&&(t[i]=e[i])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=oi(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:Qr(Xr({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),i=oi(e+"/pending",(function(e,t,n){return{payload:void 0,meta:Qr(Xr({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),a=oi(e+"/rejected",(function(e,t,r,i,a){return{payload:i,error:(n&&n.serializeError||hi)(e||"Rejected"),meta:Qr(Xr({},a||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),o="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,u,c){var l,f=(null==n?void 0:n.idGenerator)?n.idGenerator(e):ci(),d=new o;function h(e){l=e,d.abort()}var p=function(){return Zr(this,null,(function(){var o,p,v,m,y,g;return zr(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),m=null==(o=null==n?void 0:n.condition)?void 0:o.call(n,e,{getState:u,extra:c}),null===(w=m)||"object"!==typeof w||"function"!==typeof w.then?[3,2]:[4,m];case 1:m=b.sent(),b.label=2;case 2:if(!1===m||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return d.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:l||"Aborted"})}))})),s(i(f,e,null==(p=null==n?void 0:n.getPendingMeta)?void 0:p.call(n,{requestId:f,arg:e},{getState:u,extra:c}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:s,getState:u,extra:c,requestId:f,signal:d.signal,abort:h,rejectWithValue:function(e,t){return new fi(e,t)},fulfillWithValue:function(e,t){return new di(e,t)}})).then((function(t){if(t instanceof fi)throw t;return t instanceof di?r(t.payload,f,e,t.meta):r(t,f,e)}))])];case 3:return v=b.sent(),[3,5];case 4:return g=b.sent(),v=g instanceof fi?a(null,f,e,g.payload,g.meta):a(g,f,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&a.match(v)&&v.meta.condition||s(v),[2,v]}var w}))}))}();return Object.assign(p,{abort:h,requestId:f,arg:e,unwrap:function(){return p.then(pi)}})}}),{pending:i,rejected:a,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function pi(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var vi="listenerMiddleware";oi(vi+"/add"),oi(vi+"/removeAll"),oi(vi+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:globalThis);var mi,yi=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:yi(10);sr();var gi=[{id:1,category_name:"Area-BCM",img_file_path:"",view_count:null,title:"Simulation Development of the Affected Industrial Supply Chain from the COVID-19 Ap
2plying the Area-Business Continuity Management (Area-BCM) Concept",author_img_file_path:null,author_name:null,link:"",collaboration:"",scope:"",funder:"Thailand Science Research and Innovation Fund, Chulalongkorn University",start_date:"October 2021",end_date:"September 2022",description:"Fundamental Fund (FF) (CU_FRB65_dis(22)_147_21_13)"},{id:2,category_name:"BCM",img_file_path:"",view_count:null,title:"Sustainable Healthcare System through Business Continuity Management",author_img_file_path:null,author_name:null,link:"",collaboration:"Chulalongkorn University and Jomo Kenyatta University Agriculture and Technology",scope:"",funder:"JICA Project for AUN/SEED-Net",start_date:"May 2021",end_date:"February 2022",description:"Collaborative Research with External Partners (CRX) (CU CRX 2102)"},{id:3,category_name:"Data Analysis",img_file_path:"",view_count:null,title:"COVID-19 Data Analysis Using Mobile Services Data and Satellite Geospatial Data Towards Sustainable Tourism Business",author_img_file_path:null,author_name:null,link:"",collaboration:"Chulalongkorn University and Keio University",scope:"COVID-19 situation in the area of Asia continent especially Thailand and Japan by applying the uses of Social media and Geospatial Data",funder:"JICA Project for AUN/SEED-Net",start_date:"October 2020",end_date:"December 2021",description:"Special Program for Research against COVID-19 Project (CU SPRAC 2001 and CU SPRAC 2101)"}],bi=[{id:1,category_name:"Disaster Research",img_file_path:"",view_count:null,title:"Agent-based simulation and modeling of COVID-19 pandemic: A bibliometric analysis",author_img_file_path:null,author_name:null,link:"",year:2022,full_name:"Tang, J., Vinayavekhin, S., Weeramongkolkul, M., Suksanon, C., Pattarapremcharoen, K., Thiwathittayanuphap, S., & Leelawat, N. (2022). Agent-based simulation and modeling of COVID-19 pandemic: A bibliometric analysis. Journal of Disaster Research, 17 (1), 93-102. doi: 10.20965/jdr.2022.p0093 (Scopus Q2)"},{id:2,category_name:"Disaster Research",img_file_path:"",view_count:null,title:"Interventions to support tourism and its impact on air quality \u2013 A case study of the Go To Travel campaign in Japan",author_img_file_path:null,author_name:null,link:"",year:2022,full_name:"Kodaka, A., Detera, B. J., Onda, Y., Leelawat, N., Tang, J., Laosunthara, A., Saengtabtim, K., & Kohtake, N. (2022). Interventions to support tourism and its impact on air quality \u2013 A case study of the Go To Travel campaign in Japan. Journal of Disaster Research, 17 (1), 123-135. doi: 10.20965/jdr.2022.p0123 (Scopus Q2)"},{id:3,category_name:"ACS Chemical Health & Safety",img_file_path:"",view_count:null,title:"A polystyrene foam factory fire in a Bangkok satellite city: Incident and lessons learned",author_img_file_path:null,author_name:null,link:"",year:2021,full_name:"Leelawat, N., & Vilaivan, T. (2021). A polystyrene foam factory fire in a Bangkok satellite city: Incident and lessons learned. ACS Chemical Health & Safety, 28 (6), 394-396. doi: 10.1021/acs.chas.1c00071"},{id:4,category_name:"Disaster Research",img_file_path:"",view_count:null,title:"Comparison of the initial overseas evacuation operations due to COVID-19: A focus on Asian countries",author_img_file_path:null,author_name:null,link:"",year:2021,full_name:"Leelawat, N., Tang, J., Krutphong, K., Chaichanasiri, S., Kanno, T., Li, C. W., Le, L. T. Q., Dung, H. Q., Saengtabtim, K., & Laosunthara, A. (2021). Comparison of the initial overseas evacuation operations due to COVID-19: A focus on Asian countries. Journal of Disaster Research, 16 (7), 1137-1146. doi: 10.20965/jdr.2021.p1137 (Scopus Q2)"},{id:5,category_name:"Disaster Research",img_file_path:"",view_count:null,title:"The 2011 Great East Japan earthquake and tsunami: A message from Japan to Thailand",author_img_file_path:null,author_name:null,link:"",year:2021,full_name:"Leelawat, N., Laosunthara, A., Tang, J., Suppasri, A., Ruangrassamee, A., Akkharaprathompong, P., & Imamura, F. (2021). The 2011 Great East Japan earthquake and tsunami: A message from Japan to Thailand. Journ
2al of Disaster Research, 16 (6), 908-913. doi: 10.20965/jdr.2021.p0908 (Scopus Q2)"},{id:6,category_name:"Disaster Research",img_file_path:"",view_count:null,title:"Statistical analysis of building damage from the 2013 Super Typhoon Haiyan and its storm surge in the Philippines",author_img_file_path:null,author_name:null,link:"",year:2020,full_name:"Chaivutitorn, T., Tanasakcharoen, T., Leelawat, N., Tang, J., Caro, C. V. C., Lagmay, A. M. F. A., Suppasri, A., Bricker, J. D., Roeber, V., Yi, C. J., & Imamura, F. (2020). Statistical analysis of building damage from the 2013 Super Typhoon Haiyan and its storm surge in the Philippines. Journal of Disaster Research, 15 (7), 822-832. doi 10.20965/jdr.2020.p0822 (Scopus Q2)"},{id:7,category_name:"Natural Hazards and Earth System Sciences",img_file_path:"",view_count:null,title:"Investigating beach erosion related with tsunami sediment transport at Phra Thong Island, Thailand, caused by the 2004 Indian Ocean tsunami",author_img_file_path:null,author_name:null,link:"",year:2020,full_name:"Masaya, R., Suppasri, A., Yamashita, K., Imamura, F., Gouramanis, C., & Leelawat, N. (2020). Investigating beach erosion related with tsunami sediment transport at Phra Thong Island, Thailand, caused by the 2004 Indian Ocean tsunami. Natural Hazards and Earth System Sciences, 20, 2823-2841. doi 10.5194/nhess-20-2823-2020 (ISI/Scopus Q1)"}],wi=[{id:1,status:"current",type:"member",img_file_path:"member/natt.png",name:"Associate Professor Natt Leelawat, D.Eng.",rank:"Head of DRMIS",education_arr:["D.Eng. (Industrial Engineering and Management), Tokyo Institute of Technology, Japan","M.Eng. (Industrial Engineering and Management), Tokyo Institute of Technology, Japan","B.Sc. (First Class Honours) (Information Technology), Sirindhorn International Institute of Technology, Thammasat University, Thailand"],profile_link_id_arr:[1,2,3,4,5]},{id:2,status:"current",type:"member",img_file_path:"member/supattra.png",name:"Assistant Professor Supattra Visessri, Ph.D.",rank:"Deputy Head of DRMIS",education_arr:["Ph.D. (Environmental and Water Resources Engineering), Imperial College of Science, Techology and Medicine London, UK","M.Sc. (Hydrology and Business Management), Imperial College of Science, Technology and Medicine London, UK","MBA (Interbusiness Management & Finance), Thammasat University, Thailand","B.Eng. (Irrigation), Kasetsart Univesity, Thailand"],profile_link_id_arr:[6,7,8,9,10]},{id:3,status:"current",type:"member",img_file_path:"member/prasert.png",name:"Assistant Professor Prasert Akkharaprathomphong",rank:"Faculty Member of DRMIS",education_arr:["M.Eng. (Administration Engineering), Keio University, Japan","B.Eng. (Industrial Engineering), Chulalongkorn University, Thailand"],profile_link_id_arr:[11]},{id:4,status:"current",type:"member",img_file_path:"member/chatpan.png",name:"Assistant Professor Chatpan Chintanapakdee, Ph.D.",rank:"Faculty Member of DRMIS",education_arr:["Ph.D. (Structural Engineering), University of California, Berkeley, USA","M.S. (Structural Engineering), University of California, Berkeley, USA","B.Eng. (Civil Engineering), Chulalongkorn University, Thailand"],profile_link_id_arr:[12,13,14]},{id:5,status:"current",type:"member",img_file_path:"member/jing.png",name:"Jing Tang, D.Eng.",rank:"Faculty Member of DRMIS",education_arr:["D.Eng. (Industrial Engineering and Management), Tokyo Institute of Technology, Japan","M.Eng. (Industrial Engineering and Management), Tokyo Institute of Technology, Japan","B.Mgmt. (Industrial Engineering), Xi'an Jiaotong, University, China","B.Eng. (Computer Science and Technology), Xi'an Jiaotong University, China"],profile_link_id_arr:[15,16,17,18,19]},{id:6,status:"current",type:"visiting member",name:"Professor Watanabe Kenji, Ph.D.",education_arr:["Nagoya Institute of Technology, Japan"],profile_link_id_arr:[20,21]},{id:7,status:"current",type:"visiting member",name:"Associate Professor Kodaka Akira, Ph.D.",education_arr:["Keio University, Japan"],profile_link_id_arr:[22,23,24]},{id:8,status:"current",type:"visiting member",name:"Ampan Laosunthara",education_arr:["Tokyo Institute of Technology, Japan"],profile_link_id_arr:[25,26,27]},{id:9,status:"current",type:"visiting member",name:"Kodchakorn Krutphong",education_arr:["Mahidol University Kanchanaburi Campus, Thailand"],profile_link_id_arr:[28,29]},{id:10,status:"current",type:"graduate student",name:"Mr. Alfan Kurnia Yudha",rank:"Ph.D. student",profile_link_id_arr:[30]},{id:11,status:"current",type:"graduate student",name:"Mr. Wanit Treeranurat",rank:"Ph.D. student"},{id:12,status:"current",type:"graduate student",name:"Mr. Kumpol Saengtabtim",rank:"Ph.D. student",profile_link_id_arr:[31,32,33,34]},{id:13,status:"current",type:"graduate student",name:"Ms. Piyaporn Sochoeiya",rank:"Master's student"},{id:14,status:"current",type:"graduate student",name:"Ms. Penpitcha Arayachookiat",rank:"Master's student"},{id:15,status:"current",type:"graduate student",name:"Mr. Anupong Wongposchanee",rank:"Master's student"},{id:16,status:"current",type:"graduate student",name:"Mr. Siribhop Yooyongchuen",rank:"Master's student"},{id:17,status:"current",type:"graduate student",name:"Mr. Teerapat Tappanom",rank:"Master's student"},{id:18,status:"current",type:"graduate student",name:"Ms. Manarush Chantanawichian",rank:"Master's student"},{id:19,status:"current",type:"graduate student",name:"Ms. Yaowapha Siripakarn",rank:"Master's student"},{id:20,status:"current",type:"undergraduate student",name:"Mr. Manapat Weeramongkolkul"},{id:21,status:"current",type:"undergraduate student",name:"Ms. Yada Vikraipaisarn"},{id:22,status:"current",type:"undergraduate student",name:"Ms. Kwansuang Ho"},{id:23,status:"current",type:"undergraduate student",name:"Mr. Pannaton Kerdkaewfah"},{id:24,status:"current",type:"undergraduate student",name:"Mr. Punn Damrongratnuwong"},{id:25,status:"current",type:"undergraduate student",name:"Mr. Bhunaron Sornklin"},{id:26,status:"current",type:"undergraduate student",name:"Mr. Puchong Traidalanon"},{id:27,status:"current",type:"undergraduate student",name:"Mr. Naphat Pattayanun"},{id:28,status:"current",type:"undergraduate student",name:"Ms. Supanida Suwankesawong"},{id:29,status:"current",type:"undergraduate student",name:"Mr. Methasit Chaweewongpaisal"},{id:30,status:"current",type:"undergraduate student",name:"Mr. Naphat Mahittikul"},{id:31,status:"current",type:"undergraduate student",name:"Mr. Nawat Wancham"},{id:32,status:"current",type:"undergraduate student",name:"Mr. Chitipat Trachu"},{id:33,status:"current",type:"undergraduate student",name:"Mr. Jeerapat Thansuwanwong"},{id:34,status:"current",type:"undergraduate student",name:"Mr. Nakrit Panjasanka"},{id:35,status:"current",type:"undergraduate student",name:"Mr. Kongpop Panya"},{id:36,status:"current",type:"undergraduate student",name:"Mr. Krit Uthaisang"},{id:37,status:"current",type:"undergraduate student",name:"Mr. Jomphat Itsarawisut"},{id:38,status:"alumni",type:"master",name:"Ms. Jeerawan Punwaree",year:2021},{id:39,status:"alumni",type:"master",name:"Ms. Kodchakorn Krutphong",year:2021},{id:40,status:"alumni",type:"master",name:"Ms. Treerat Patiko",year:2021},{id:41,status:"alumni",type:"bachelor",name:"Ms. Sirinda Leesuravanich",year:2021},{id:42,status:"alumni",type:"bachelor",name:"Ms. Supitcha Sopinpong",year:2021},{id:43,status:"alumni",type:"bachelor",name:"Mr. Gorn Perapalanunt",year:2021},{id:44,status:"alumni",type:"bachelor",name:"Mr. Sasinat Thiwathittayanuphap",year:2021},{id:45,status:"alumni",type:"bachelor",name:"Ms. Praewa Udomlertsakul",year:2021},{id:46,status:"alumni",type:"bachelor",name:"Mr. Chanakan Suksanon",year:2021},{id:47,status:"alumni",type:"bachelor",name:"Ms. Natcha Wongwattanakit",year:2021},{id:48,status:"alumni",type:"bachelor",name:"Mr. Chinnakrit Channok",year:2021},{id:49,status:"alumni",type:"bachelor",name:"Mr. Jirat Viriyataranon",year:2021},{id:50,status:"alumni",type:"bachelor",name:"Mr. Kantapat Pattarapremcharoen",year:2021},{id:51,status:"alumni",type:"bachelor",name:"Mr. Sithichon Duke",year:2021},{id:52,status:"alumni",type:"bachelor",name:"Mr. Kaweetip Charoenprawatt",year:2021},{id:53,status:"alumni",type:"bachelor",name:"Mr. Sorawit Chatchawanit",year:2021},{id:54,status:"alumni",type:"bachelor",name:"Mr. Bhumibhat Imsamran",year:2021},{id:55,status:"alumni",type:"master",name:"Mr. Kananut Charoenthammachoke",year:2020},{id:56,status:"alumni",type:"master",name:"Mr. Soonthorn Paopid",year:2020},{id:57,status:"alumni",type:"master",name:"Ms. Sansanee Sapapthai",year:2020},{id:58,status:"alumni",type:"bachelor",name:"Mr. Narin Kittiwattanakul",
2year:2020},{id:59,status:"alumni",type:"bachelor",name:"Mr. Thanapat Sontayasara",year:2020},{id:60,status:"alumni",type:"bachelor",name:"Mr. Natthadech Manichot",year:2020},{id:61,status:"alumni",type:"bachelor",name:"Mr. Puvit Pracharktam",year:2020},{id:62,status:"alumni",type:"bachelor",name:"Mr. Sirawit Jariyapongpaiboon",year:2020},{id:63,status:"alumni",type:"bachelor",name:"Mr. Arnon Promjun",year:2020},{id:64,status:"alumni",type:"bachelor",name:"Mr. Samit Boonyarak",year:2020},{id:65,status:"alumni",type:"bachelor",name:"Mr. Suwajo Chaichanasiri",year:2020},{id:66,status:"alumni",type:"bachelor",name:"Ms. Penpitchaya Lertsakornsiri",year:2020},{id:67,status:"alumni",type:"bachelor",name:"Ms. Passarawan Sritanawatkul",year:2020},{id:68,status:"alumni",type:"bachelor",name:"Ms. Rachadara Ussayakhun",year:2020},{id:69,status:"alumni",type:"bachelor",name:"Ms. Niracha Ariyamakkagul",year:2020},{id:70,status:"alumni",type:"bachelor",name:"Mr. Theerat Tassanai",year:2020},{id:71,status:"alumni",type:"bachelor",name:"Mr. Napatee Yaibuates",year:2020},{id:72,status:"alumni",type:"internship",name:"Mr. Sirawit Jariyapongpaiboon",year:2020},{id:73,status:"alumni",type:"internship",name:"Mr. Thanapat Sontayasara",year:2020},{id:74,status:"alumni",type:"internship",name:"Mr. Napat Seelpipat",year:2020},{id:75,status:"alumni",type:"internship",name:"Mr. Arnon Promjun",year:2020},{id:76,status:"alumni",type:"internship",name:"Mr. Suwajo Chaichanasiri",year:2020},{id:77,status:"alumni",type:"master",name:"Ms. Thitiporn Katato",year:2019},{id:78,status:"alumni",type:"master",name:"Ms. Kunruthai Meechang",year:2019},{id:79,status:"alumni",type:"master",name:"Mr. Hassakorn Rojpitinithikorn",year:2019},{id:80,status:"alumni",type:"master",name:"Mr. Phoom Traithateera",year:2019},{id:81,status:"alumni",type:"bachelor",name:"Ms. Varinthorn Puttiteerachot",year:2019},{id:82,status:"alumni",type:"bachelor",name:"Ms. Vivan Techakosol",year:2019},{id:83,status:"alumni",type:"bachelor",name:"Mr. Wanmai Phothavorn",year:2019},{id:84,status:"alumni",type:"bachelor",name:"Mr. Sivakorn Kamonpakorn",year:2019},{id:85,status:"alumni",type:"bachelor",name:"Mr. Pattanun Yongvibulsiri",year:2019},{id:86,status:"alumni",type:"bachelor",name:"Mr. Danoosit Techapetpaiboon",year:2019},{id:87,status:"alumni",type:"bachelor",name:"Mr. Chanakarn Luangpirom",year:2019},{id:88,status:"alumni",type:"bachelor",name:"Mr. Nithis Premsoontorn",year:2019},{id:89,status:"alumni",type:"bachelor",name:"Mr. Takol Kullavanijaya",year:2019},{id:90,status:"alumni",type:"bachelor",name:"Mr. Pon Karevachirapan",year:2019},{id:91,status:"alumni",type:"bachelor",name:"Mr. Nawapat Uswachaisilp",year:2019},{id:92,status:"alumni",type:"bachelor",name:"Mr. Noraphat Suwattananon",year:2019},{id:93,status:"alumni",type:"bachelor",name:"Ms. Suwara Sukhasem",year:2019},{id:94,status:"alumni",type:"bachelor",name:"Ms. Pasinee Rerkpiboon",year:2019},{id:95,status:"alumni",type:"bachelor",name:"Mr. Sarun Poolkrajang",year:2019},{id:96,status:"alumni",type:"bachelor",name:"Mr. Methasit Tuwawit",year:2019},{id:97,status:"alumni",type:"bachelor",name:"Mr. Supavit Srichareonkul",year:2019},{id:98,status:"alumni",type:"bachelor",name:"Mr. Satid Tachatanitanont",year:2019}],ki=[{id:1,title:"ACM",link:"https://dl.acm.org/profile/99659597258"},{id:2,title:"Google Scholar",link:"https://scholar.google.com/citations?user=W_CbEh8AAAAJ"},{id:3,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37087098418"},{id:4,title:"ORCID",link:"https://orcid.org/0000-0001-5181-2584"},{id:5,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=57964954000"},{id:6,title:"ACM",link:"https://dl.acm.org/profile/99659276773"},{id:7,title:"Google Scholar",link:"https://scholar.google.com/citations?user=WJY-21EAAAAJ"},{id:8,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37086082476"},{id:9,title:"ORCID",link:"https://orcid.org/0000-0003-1963-927X"},{id:10,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=55207301200"},{id:11,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37086400297"},{id:12,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37088571456"},{id:13,title:"ORCID",link:"https://orcid.org/0000-0002-5413-7454"},{id:14,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=7801358941"},{id:15,title:"ACM",link:"https://dl.acm.org/profile/99659607705"},{id:16,title:"Google Scholar",link:"https://scholar.google.co.jp/citations?user=JPKLv18AAAAJ"},{id:17,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37087094961"},{id:18,title:"ORCID",link:"https://orcid.org/0000-0002-4835-1016"},{id:19,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=57204003984"},{id:20,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37088569826"},{id:21,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=55704900500"},{id:22,title:"ACM",link:"https://dl.acm.org/profile/99659603458"},{id:23,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37086524828"},{id:24,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=6507277945"},{id:25,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37085518018"},{id:26,title:"ORCID",link:"https://orcid.org/0000-0003-0786-9270"},{id:27,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=57192700626"},{id:28,title:"ORCID",link:"https://orcid.org/0000-0001-9619-2163"},{id:29,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=57288405600"},{id:30,title:"ORCID",link:"https://orcid.org/0000-0002-1764-9493"},{id:31,title:"Google Scholar",link:"https://scholar.google.com/citations?user=vTtEYCkAAAAJ"},{id:32,title:"IEEE",link:"https://ieeexplore.ieee.org/author/37088759306"},{id:33,title:"ORCID",link:"https://orcid.org/0000-0002-9890-6390"},{id:34,title:"Scopus",link:"https://www.scopus.com/authid/detail.uri?authorId=57217047083"}],xi=[{id:1,poster_file_path:"recruitment/recruitment-poster.png",title:"Call of Postdoctoral Researcher",number:1,peri
2od:"12 months (able to renew)",contact:"[email protected]"}],_i=[{id:1,poster_file_path:"activity/activity-poster-2.png",title:"",link:""},{id:2,poster_file_path:"activity/activity-poster-1.png",title:"",link:""},{id:3,poster_file_path:"activity/activity-poster-3.png",title:"Free Online Lecture Series in the \u201cEmergency Management Workshop",link:"https://www.eng.chula.ac.th/en/30896"},{id:4,poster_file_path:"activity/activity-poster-4.png",title:"Association of Pacific Rim Universities (APRU) published the Universities\u2019 Preparedness and Response Towards Multi-Hazards: COVID-19, Natural, and Human-Induced Hazards",link:"https://www.eng.chula.ac.th/en/30654"}],Si=[{id:1,file_path:""},{id:2,file_path:""},{id:3,file_path:""},{id:4,file_path:""},{id:5,file_path:""}],Ei=[{id:1,file_path:"student-image/member-graduate-students.png"},{id:2,file_path:"student-image/member-undergraduate-students.png"}],Pi=ui({name:"resource",initialState:{researchPublicationArr:[],projectArr:[],allMemberArr:[],memberProfileLinkArr:[],recruitmentArr:[],activityArr:[],homeImageArr:[],studentImageArr:[]},reducers:{setResearchPublicationArr:function(e,t){e.researchPublicationArr=t.payload||bi},setProjectArr:function(e,t){e.projectArr=t.payload||gi},setAllMemberArr:function(e,t){e.allMemberArr=t.payload||wi},setMemberProfileLinkArr:function(e,t){e.memberProfileLinkArr=t.payload||ki},setRecruitmentArr:function(e,t){e.recruitmentArr=t.payload||xi},setActivityArr:function(e,t){e.activityArr=t.payload||_i},setHomeImageArr:function(e,t){e.homeImageArr=t.payload||Si},setStudentImageArr:function(e,t){e.studentImageArr=t.payload||Ei},addMember:function(e,t){var n=t.payload,r=n.status,i=n.type,a=n.year,o=JSON.parse(JSON.stringify(e.allMemberArr)),s=o[o.length-1].id+1;o.push({id:s,status:r,type:i,img_file_path:"",name:"",rank:"",education_arr:[],profile_link_id_arr:[],year:a,isNew:!0}),e.allMemberArr=o},updateMember:function(e,t){var n=t.payload,r=n.id,i=n.profileLinkIdArr,a=n.educationArr,o=JSON.parse(JSON.stringify(e.allMemberArr)),s=o.find((function(e){return e.id===r}));i&&(s.profile_link_id_arr=i),a&&(s.education_arr=a),e.allMemberArr=o},deleteMember:function(e,t){var n=t.payload.id,r=JSON.parse(JSON.stringify(e.allMemberArr)),i=r.find((function(e){return e.id===n}));if(i.isDeleted=!0,e.allMemberArr=r,i.profile_link_id_arr){var a=JSON.parse(JSON.stringify(e.memberProfileLinkArr));i.profile_link_id_arr.forEach((function(e){a.find((function(t){return t.id===e})).isDeleted=!0}
2)),e.memberProfileLinkArr=a}},addMemberProfileLink:function(e,t){var n=t.payload.memberId,r=JSON.parse(JSON.stringify(e.memberProfileLinkArr)),i=JSON.parse(JSON.stringify(e.allMemberArr)),a=r[r.length-1].id+1;r.push({id:a,title:"",link:"",isNew:!0}),i.find((function(e){return e.id===n})).profile_link_id_arr.push(a),e.memberProfileLinkArr=r,e.allMemberArr=i},addResearchPublication:function(e,t){var n=JSON.parse(JSON.stringify(e.researchPublicationArr)),r=n[n.length-1].id+1;n.push({id:r,category_name:"",img_file_path:"",title:"",link:"",full_name:"",isNew:!0}),e.researchPublicationArr=n},deleteResearchPublication:function(e,t){var n=t.payload.id,r=JSON.parse(JSON.stringify(e.researchPublicationArr));r.find((function(e){return e.id===n})).isDeleted=!0,e.researchPublicationArr=r},addActivity:function(e,t){var n=JSON.parse(JSON.stringify(e.activityArr)),r=n[n.length-1].id+1;n.push({id:r,poster_file_path:"",title:"",link:"",isNew:!0}),e.activityArr=n},deleteActivity:function(e,t){var n=t.payload.id,r=JSON.parse(JSON.stringify(e.activityArr));r.find((function(e){return e.id===n})).isDeleted=!0,e.activityArr=r},addProject:function(e,t){var n=JSON.parse(JSON.stringify(e.projectArr)),r=n[n.length-1].id+1;n.push({id:r,category_name:"",img_file_path:"",title:"",link:"",collaboration:"",scope:"",funder:"",start_date:"",end_date:"",description:"",isNew:!0}),e.projectArr=n},deleteProject:function(e,t){var n=t.payload.id,r=JSON.parse(JSON.stringify(e.projectArr));r.find((function(e){return e.id===n})).isDeleted=!0,e.projectArr=r},addRecruitment:function(e,t){var n=JSON.parse(JSON.stringify(e.recruitmentArr)),r=n[n.length-1].id+1;n.push({id:r,poster_file_path:"",title:"",period:"",contact:"",isNew:!0}),e.recruitmentArr=n},deleteRecruitment:function(e,t){var n=t.payload.id,r=JSON.parse(JSON.stringify(e.recruitmentArr));r.find((function(e){return e.id===n})).isDeleted=!0,e.recruitmentArr=r}}}),Ti=Pi.actions,Ci=Pi.reducer;function Ai(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var ji=!1,Ni=at.createContext(null),Ii="unmounted",Oi="exited",Ri="entering",Di="entered",Mi="exiting",Li=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=Oi,r.appearStatus=Ri):i=Di:i=t.unmountOnExit||t.mountOnEnter?Ii:Oi,r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ii?{status:Oi}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ri&&n!==Di&&(t=Ri):n!==Ri&&n!==Di||(t=Mi)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ri){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:sn.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oi&&this.setState({status:Ii})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[sn.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||ji?this.safeSetState({status:Di},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:Ri},(function(){t.props.onEntering(a,o),t.onTransitionEnd(u,(function(){t.safeSetState({status:Di},(function(){t.props.onEntered(a,o)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:sn.findDOMNode(this);t&&!ji?(this.props.onExit(r),this.safeSetState({status:Mi},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Oi},(function(){e.props.onExited(r)}))}
2))}))):this.safeSetState({status:Oi},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:sn.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Ii)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Ai(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return at.createElement(Ni.Provider,{value:null},"function"===typeof n?n(e,r):at.cloneElement(at.Children.only(n),r))},r}(at.Component);function Ui(){}Li.contextType=Ni,Li.propTypes={},Li.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ui,onEntering:Ui,onEntered:Ui,onExit:Ui,onExiting:Ui,onExited:Ui},Li.UNMOUNTED=Ii,Li.EXITED=Oi,Li.ENTERING=Ri,Li.ENTERED=Di,Li.EXITING=Mi;var Fi=Li;var Vi=n.p+"static/media/yellow-location.14cc02424f12f847a3cdabb8755eb03a.svg";var Bi=n.p+"static/media/yellow-clock.b4ebdc7a1f455827f226688f58cc189a.svg",zi=n.p+"static/media/blue-logo.0991a85bf68b17692b63.png";var Wi=n.p+"static/media/blue-search.572ef1ca7f07f2a72e55111587164d92.svg";var Hi=n.p+"static/media/white-search.12b0819ba3ae6851cd5a63f0c9f6ca41.svg";var qi=n.p+"static/media/red-search.6d07535c3f9f3c7773f7f0d79749c7b5.svg",Ji=n(417),Ki=100,$i={transition:"opacity ".concat(Ki,"ms ease-out"),opacity:0},Gi={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}};var Yi=function(){var e=_t().pathname,t=St(),n=w((0,at.useState)(!1),2),r=n[0],i=n[1],a=w((0,at.useState)(!1),2),o=a[0],s=a[1],u=w((0,at.useState)(!1),2),c=u[0],l=u[1],f=w((0,at.useState)(!1),2),d=f[0],h=f[1],p=w((0,at.useState)(!1),2),v=p[0],m=p[1],y=(0,at.useRef)(null),g=(0,at.useRef)(null),b=(0,at.useRef)(null),k=(0,at.useRef)(null);function x(){switch("member"!==this&&i(!1),"accomplishment"!==this&&s(!1),"search"!==this&&l(!1),this){case"member":i((function(e){return!e}));break;case"accomplishment":s((function(e){return!e}));break;case"search":l((function(e){return!e}))}}function _(e){e.preventDefault(),m(!1);var n=e.target[0].value.toLowerCase();e.target[0].value="";var r=!1;[{"/":["home","main"]},{"/member-current":["current","member","professor"]},{"/member-current#visiting-member":["visit"]},{"/member-current#undergraduate-student":["undergraduate","bachelor"]},{"/member-current#graduate-student":["graduate","master","doctor","student"]},{"/member-alumni":["alumni"]},{"/publication":["research","publication","paper","publish"]},{"/activity":["activity"]},{"/project":["project"]},{"/recruitment":["recruit","job","career"]},{"/contact-us":["contact"]}].forEach((function(e){var i=Object.keys(e)[0],a=Object.values(e)[0];r||a.forEach((function(e){r||n.includes(e)&&(r=!0,t(i))}))})),r||m(!0)}return(0,at.useEffect)((function(){i(!1),s(!1),l(!1),h(!1)}),[e]),(0,Ji.jsxs)(Ji.Fragment,{children:[(0,Ji.jsx)("div",{className:"nav__upper",children:(0,Ji.jsx)("div",{className:"content",children:(0,Ji.jsxs)("div",{className:"addr-working-container",children:[(0,Ji.jsxs)("div",{className:"addr",children:[(0,Ji.jsx)("img",{src:Vi,alt:""}),(0,Ji.jsx)("p",{children:"Address : Room 511, 5F, Engineering Building 4, Faculty of Engineering, CU"})]}),(0,Ji.jsxs)("div",{className:"working",children:[(0,Ji.jsx)("img",{src:Bi,alt:""}),(0,Ji.jsx)("p",{children:"Working : Monday - Friday, 9:00am - 4:00pm"})]})]})})}),(0,Ji.jsx)("div",{className:"nav__lower",children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)(Yt,{className:"logo",to:"/",children:(0,Ji.jsx)("img",{src:zi,alt:""})}),e.startsWith("/admin")?(0,Ji.jsx)("p",{children:"Admin Site"}):(0,Ji.jsxs)("div",{className:"btn-container",children:[(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("button",{onClick:x.bind("member"),children:"Members"}),(0,Ji.jsx)(Fi,{nodeRef:y,in:r,timeout:Ki,mountOnEnter:!0,unmountOnExit:!0,children:function(e){return(0,Ji.jsxs)("div",{className:"link-container",ref:y,style:Cr(Cr({},$i),Gi[e]),children:[(0,Ji.jsx)(Yt,{to:"/member-current",children:"Current"}
2),(0,Ji.jsx)(Yt,{to:"/member-alumni",children:"Alumni"})]})}})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("button",{onClick:x.bind("accomplishment"),children:"Accomplishments"}),(0,Ji.jsx)(Fi,{nodeRef:g,in:o,timeout:Ki,mountOnEnter:!0,unmountOnExit:!0,children:function(e){return(0,Ji.jsxs)("div",{className:"link-container",ref:g,style:Cr(Cr({},$i),Gi[e]),children:[(0,Ji.jsx)(Yt,{to:"/publication",children:"Publications"}),(0,Ji.jsx)(Yt,{to:"/activity",children:"Activities"}),(0,Ji.jsx)(Yt,{to:"/project",children:"Projects"})]})}})]}),(0,Ji.jsx)("div",{children:(0,Ji.jsx)(Yt,{to:"/recruitment",children:"Recruitment"})}),(0,Ji.jsx)("div",{children:(0,Ji.jsx)(Yt,{to:"/contact-us",children:"Contact Us"})})]}),(0,Ji.jsxs)("div",{className:"search-container ".concat(e.startsWith("/admin")?"hidden":""),children:[(0,Ji.jsxs)("button",{onClick:x.bind("search"),children:[(0,Ji.jsx)("img",{src:Wi,alt:""}),(0,Ji.jsx)("p",{children:"Search"})]}),(0,Ji.jsx)(Fi,{nodeRef:b,in:c,timeout:Ki,mountOnEnter:!0,unmountOnExit:!0,children:function(e){return(0,Ji.jsx)("form",{className:"input-container",onSubmit:_,ref:b,style:Cr(Cr({},$i),Gi[e]),children:(0,Ji.jsxs)("div",{className:"input",children:[(0,Ji.jsx)("input",{placeholder:"Search",className:v?"invalid":"",onChange:function(){return m(!1)}}),(0,Ji.jsx)("button",{type:"submit",children:(0,Ji.jsx)("img",{src:v?qi:Hi,alt:""})})]})})}})]}),(0,Ji.jsxs)("div",{className:"nav-menu ".concat(d?"active":""),onClick:function(){h((function(e){return!e}))},children:[(0,Ji.jsx)("div",{className:"nav-menu__line top"}),(0,Ji.jsx)("div",{className:"nav-menu__line middle"}),(0,Ji.jsx)("div",{className:"nav-menu__line bottom"}),(0,Ji.jsx)(Fi,{nodeRef:k,in:d,timeout:Ki,mountOnEnter:!0,unmountOnExit:!0,children:function(e){return(0,Ji.jsxs)("div",{className:"nav-menu__link-container",ref:k,style:Cr(Cr({},$i),Gi[e]),children:[(0,Ji.jsx)(Yt,{to:"/member-current",children:"Current Member"}),(0,Ji.jsx)(Yt,{to:"/member-alumni",children:"Alumni"}),(0,Ji.jsx)(Yt,{to:"/publication",children:"Publications"}),(0,Ji.jsx)(Yt,{to:"/activity",children:"Activities"}),(0,Ji.jsx)(Yt,{to:"/project",children:"Projects"}),(0,Ji.jsx)(Yt,{to:"/recruitment",children:"Recruitment"}),(0,Ji.jsx)(Yt,{to:"/contact-us",children:"Contact Us"})]})}})]})]})})]})},Xi=n(862);var Qi=n.p+"static/media/blue-facebook.58684dc5bc114134158aaa9afb133fc9.svg";var Zi=n.p+"static/media/blue-mouse-up.85ea36f8693dce9524c096b5b0c6b8ad.svg";var ea=n.p+"static/media/blue-chevron-up.b678c5dfdce0501eaf1a289b1f7bc3de.svg";var ta=n.p+"static/media/yellow-address.9739007b7268804a2f9f51886d7942b0.svg";var na=n.p+"static/media/yellow-location-base.cb9ee7ebd960a1f475a974073e27f871.svg";var ra=n.p+"static/media/yellow-phone.8b66d2d0530e4ae23f1b453438dd8751.svg";var ia=function(){return _t().pathname.startsWith("/admin")?(0,Ji.jsx)(Ji.Fragment,{}):(0,Ji.jsx)("div",{className:"footer",children:(0,Ji.jsxs)("div",{className:"footer__content",children:[(0,Ji.jsxs)("div",{className:"upper",children:[(0,Ji.jsxs)("div",{className:"left",children:[(0,Ji.jsx)("p",{className:"title",children:"Contact us"}),(0,Ji.jsx)("p",{children:"send inquiry for more information or collaboration"}),(0,Ji.jsxs)("form",{onSubmit:function(e){e.preventDefault();var t=e.target[0].value;e.target[0].value="",!t.includes("@")||t.length<5||fetch("".concat("https://drmis-backend.up.railway.app","/api/utils/email"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})}).catch((function(e){return console.log(e.message)}))},children:[(0,Ji.jsx)("input",{id:"email",type:"email",placeholder:"Email Address"}),(0,Ji.jsx)("button",{type:"submit",children:(0,Ji.jsx)("img",{src:Zi,alt:""})})]})]}),(0,Ji.jsxs)("div",{className:"right",children:[(0,Ji.jsx)("p",{className:"title",children:"Information"}),(0,Ji.jsxs)("div",{className:"right__row",children:[(0,Ji.jsx)("img",{src:ra,alt:""}),(0,Ji.jsxs)("p",{children:[(0,Ji.jsx)("span",{children:"Tel:"})," (+66) 02 218 6824  Email: [email protected]"]})]}),(0,Ji.jsxs)("div",{className:"right__row",children:[(0,Ji.jsx)("img",{src:na,alt:""}),(0,Ji.jsxs)("p",{children:[(0,Ji.jsx)("span",{children:"Location:"})," ",(0,Ji.jsx)("a",{href:"https://goo.gl/maps/JHJ7zsZJJe8nHgSm7",target:"_blank",rel:"noreferrer",children:"Room 511, 5F, Engineering Building 4, Faculty of Engineering, Chulalongkorn University"})]})]}),(0,Ji.jsxs)("div",{className:"right__row",children:[(0,Ji.jsx)("img",{src:ta,alt:""}),(0,Ji.jsxs)("p",{children:[(0,Ji.jsx)("span",{children:"Postal Address:"})," Assoc. Prof. Natt Leelawat, D.Eng., Disaster and Risk Management Information Systems Laboratory, Department of Industrial Engineering, Faculty of Engineering, Chulalongkorn University, 254 Phayathai Road, Wangmai, Pathumwan, Bangkok 10330, Thailand"]})]}),Xi.tq?(0,Ji.jsxs)("a",{href:"https://www.facebook.com/DRMISChula",target:"_blank",rel:"noreferrer",className:"right__row link",children:[(0,Ji.jsx)("img",{src:Qi,alt:"",className:"bg-yellow"}),(0,Ji.jsxs)("p",{children:[(0,Ji.jsx)("span",{children:"Facebook:"})," Disaster and Risk Management Information Systems, Chulalongkorn University"]})]}):(0,Ji.jsxs)("div",{className:"right__row",children:[(0,Ji.jsx)("img",{src:Qi,alt:"",className:"bg-yellow"}),(0,Ji.jsx)("iframe",{title:"facebook",src:"https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FDRMISChula&tabs&width=340&height=130&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId",width:"340",height:"130",style:{border:"none",overflow:"hidden"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"})]})]})]}),(0,Ji.jsxs)("div",{className:"lower",children:[(0,Ji.jsx)("p",{children:"Copyright \xa9 2023 DRMIS, Chulalongkorn University. All rights reserved."}),(0,Ji.jsx)("button",{onClick:function(){window.scrollTo(0,0)},children:(0,Ji.jsx)("img",{src:ea,alt:""})})]})]})})},aa=function(e){return e},oa=aa,sa=aa;var ua={any:0,all:1};function ca(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
2,r=n.root,i=n.margin,a=n.amount,o=void 0===a?"any":a,s=function(e,t,n){var r;if("string"===typeof e){var i=document;t&&(sa(Boolean(t.current),"Scope provided, but no element detected."),i=t.current),n?(null!==(r=n[e])&&void 0!==r||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}(e),u=new WeakMap,c=new IntersectionObserver((function(e){e.forEach((function(e){var n=u.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){var r=t(e);"function"===typeof r?u.set(e.target,r):c.unobserve(e.target)}else n&&(n(e),u.delete(e.target))}))}),{root:r,rootMargin:i,threshold:"number"===typeof o?o:ua[o]});return s.forEach((function(e){return c.observe(e)})),function(){return c.disconnect()}}function la(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.root,r=t.margin,i=t.amount,a=t.once,o=void 0!==a&&a,s=w((0,at.useState)(!1),2),u=s[0],c=s[1];return(0,at.useEffect)((function(){if(!(!e.current||o&&u)){var t={root:n&&n.current||void 0,margin:r,amount:"some"===i?"any":i};return ca(e.current,(function(){return c(!0),o?void 0:function(){return c(!1)}}),t)}}),[n,e,r,o]),u}function fa(e,t){if(null==e)return{};var n,r,i=Ai(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var da=function(e){return/^\-?\d*\.?\d+$/.test(e)},ha=function(e){return/^0[^.\s]+$/.test(e)},pa=function(e){return Array.isArray(e)},va=function(e){return Boolean(e&&"object"===typeof e&&e.mix&&e.toValue)},ma=function(e){return pa(e)?e[e.length-1]||0:e},ya={delta:0,timestamp:0,isProcessing:!1};var ga=!0,ba=!1,wa=["read","update","preRender","render","postRender"],ka=wa.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(u){if(i)a=!0;else{i=!0;var c=[n,t];if(t=c[0],(n=c[1]).length=0,r=t.length)for(var l=0;l<r;l++){var f=t[l];f(u),o.has(f)&&(s.schedule(f),e())}i=!1,a&&(a=!1,s.process(u))}}};return s}((function(){return ba=!0})),e}),{}),xa=function(e){return ka[e].process(ya)},_a=function e(t){ba=!1,ya.delta=ga?1e3/60:Math.max(Math.min(t-ya.timestamp,40),1),ya.timestamp=t,ya.isProcessing=!0,wa.forEach(xa),ya.isProcessing=!1,ba&&(ga=!1,requestAnimationFrame(e))},Sa=wa.reduce((function(e,t){var n=ka[t];return e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return ba||(ba=!0,ga=!0,ya.isProcessing||requestAnimationFrame(_a)),n.schedule(e,t,r)},e}),{});function Ea(e){wa.forEach((function(t){return ka[t].cancel(e)}))}function Pa(e,t){-1===e.indexOf(t)&&e.push(t)}function Ta(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ca=function(){function e(){s(this,e),this.subscriptions=[]}return f(e,[{key:"add",value:function(e){var t=this;return Pa(this.subscriptions,e),function(){return Ta(t.subscriptions,e)}}},{key:"notify",value:function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}}},{key:"getSize",value:function(){return this.subscriptions.length}},{key:"clear",value:function(){this.subscriptions.length=0}}]),e}();function Aa(e,t){return t?e*(1e3/t):0}var ja=function(){function e(t){var n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r.prev=r.current,r.current=e;var n=ya.delta,i=ya.timestamp;r.lastUpdated!==i&&(r.timeDelta=n,r.lastUpdated=i,Sa.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.events.change&&r.events.change.notify(r.current),r.events.velocityChange&&r.events.velocityChange.notify(r.getVelocity()),t&&r.events.renderRequest&&r.events.renderRequest.notify(r.current)},this.scheduleVelocityCheck=function(){return Sa.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current,r.events.velocityChange&&r.events.velocityChange.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=i.owner}return f(e,[{key:"onChange",value:function(e){return this.on("change",e)}},{key:"on",value:function(e,t){var n=this;this.events[e]||(this.events[e]=new Ca);var r=this.events[e].add(t);return"change"===e?function(){r(),Sa.read((function(){n.events.change.getSize()||n.stop()}))}:r}},{key:"clearListeners",value:function(){for(var e in this.events)this.events[e].clear()}},{key:"attach",value:function(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}},{key:"set",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}},{key:"setWithVelocity",value:function(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}},{key:"jump",value:function(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}},{key:"get",value:function(){return this.current}},{key:"getPrevious",value:function(){return this.prev}},{key:"getVelocity",value:function(){return this.canTrackVelocity?Aa(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}},{key:"start",value:function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.animation=e(n),t.events.animationStart&&t.events.animationStart.notify()})).then((function(){t.events.animationComplete&&t.events.animationComplete.notify(),t.clearAnimation()}))}},{key:"stop",value:function(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}},{key:"isAnimating",value:function(){return!!this.animation}},{key:"clearAnimation",value:function(){delete this.animation}},{key:"destroy",value:function(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}]),e}();function Na(e,t){return new ja(e,t)}var Ia=function(e){return function(t){return"string"===typeof t&&t.startsWith(e)}},Oa=Ia("--"),Ra=Ia("var(--"),Da=function(e){return Math.round(1e5*e)/1e5}
2,Ma=/(-)?([\d]*\.?[\d])+/g,La=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ua=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Fa(e){return"string"===typeof e}var Va=function(e,t,n){return Math.min(Math.max(n,e),t)},Ba={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},za=Cr(Cr({},Ba),{},{transform:function(e){return Va(0,1,e)}}),Wa=Cr(Cr({},Ba),{},{default:1}),Ha=function(e,t){return function(n){return Boolean(Fa(n)&&Ua.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},qa=function(e,t,n){return function(r){var i;if(!Fa(r))return r;var a=w(r.match(Ma),4),o=a[0],s=a[1],u=a[2],c=a[3];return S(i={},e,parseFloat(o)),S(i,t,parseFloat(s)),S(i,n,parseFloat(u)),S(i,"alpha",void 0!==c?parseFloat(c):1),i}},Ja=Cr(Cr({},Ba),{},{transform:function(e){return Math.round(function(e){return Va(0,255,e)}(e))}}),Ka={test:Ha("rgb","red"),parse:qa("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=void 0===i?1:i;return"rgba("+Ja.transform(t)+", "+Ja.transform(n)+", "+Ja.transform(r)+", "+Da(za.transform(a))+")"}};var $a={test:Ha("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Ka.transform},Ga=function(e){return{test:function(t){return Fa(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},Ya=Ga("deg"),Xa=Ga("%"),Qa=Ga("px"),Za=Ga("vh"),eo=Ga("vw"),to=Cr(Cr({},Xa),{},{parse:function(e){return Xa.parse(e)/100},transform:function(e){return Xa.transform(100*e)}}),no={test:Ha("hsl","hue"),parse:qa("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=void 0===i?1:i;return"hsla("+Math.round(t)+", "+Xa.transform(Da(n))+", "+Xa.transform(Da(r))+", "+Da(za.transform(a))+")"}},ro={test:function(e){return Ka.test(e)||$a.test(e)||no.test(e)},parse:function(e){return Ka.test(e)?Ka.parse(e):no.test(e)?no.parse(e):$a.parse(e)},transform:function(e){return Fa(e)?e:e.hasOwnProperty("red")?Ka.transform(e):no.transform(e)}};
2var io={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:aa},ao={regex:La,countKey:"Colors",token:"${c}",parse:ro.parse},oo={regex:Ma,countKey:"Numbers",token:"${n}",parse:Ba.parse};function so(e,t){var n,r=t.regex,i=t.countKey,a=t.token,s=t.parse,u=e.tokenised.match(r);u&&(e["num"+i]=u.length,e.tokenised=e.tokenised.replace(r,a),(n=e.values).push.apply(n,o(u.map(s))))}function uo(e){var t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&so(n,io),so(n,ao),so(n,oo),n}function co(e){return uo(e).values}function lo(e){var t=uo(e),n=t.values,r=t.numColors,i=t.numVars,a=t.tokenised,o=n.length;return function(e){for(var t=a,n=0;n<o;n++)t=n<i?t.replace(io.token,e[n]):n<i+r?t.replace(ao.token,ro.transform(e[n])):t.replace(oo.token,Da(e[n]));return t}}var fo=function(e){return"number"===typeof e?0:e};var ho={test:function(e){var t,n;return isNaN(e)&&Fa(e)&&((null===(t=e.match(Ma))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(La))||void 0===n?void 0:n.length)||0)>0},parse:co,createTransformer:lo,getAnimatableNone:function(e){var t=co(e);return lo(e)(t.map(fo))}},po=new Set(["brightness","contrast","saturate","opacity"]);function vo(e){var t=w(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=w(r.match(Ma)||[],1)[0];if(!i)return e;var a=r.replace(i,""),o=po.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var mo=/([a-z-]*)\(.*?\)/g,yo=Cr(Cr({},ho),{},{getAnimatableNone:function(e){var t=e.match(mo);return t?t.map(vo).join(" "):e}}),go=Cr(Cr({},Ba),{},{transform:Math.round}),bo={borderWidth:Qa,borderTopWidth:Qa,borderRightWidth:Qa,borderBottomWidth:Qa,borderLeftWidth:Qa,borderRadius:Qa,radius:Qa,borderTopLeftRadius:Qa,borderTopRightRadius:Qa,borderBottomRightRadius:Qa,borderBottomLeftRadius:Qa,width:Qa,maxWidth:Qa,height:Qa,maxHeight:Qa,size:Qa,top:Qa,right:Qa,bottom:Qa,left:Qa,padding:Qa,paddingTop:Qa,paddingRight:Qa,paddingBottom:Qa,paddingLeft:Qa,margin:Qa,marginTop:Qa,marginRight:Qa,marginBottom:Qa,marginLeft:Qa,rotate:Ya,rotateX:Ya,rotateY:Ya,rotateZ:Ya,scale:Wa,scaleX:Wa,scaleY:Wa,scaleZ:Wa,skew:Ya,skewX:Ya,skewY:Ya,distance:Qa,translateX:Qa,translateY:Qa,translateZ:Qa,x:Qa,y:Qa,z:Qa,perspective:Qa,transformPerspective:Qa,opacity:za,originX:to,originY:to,originZ:Qa,zIndex:go,fillOpacity:za,strokeOpacity:za,numOctaves:go},wo=Cr(Cr({},bo),{},{color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:yo,WebkitFilter:yo}),ko=function(e){return wo[e]};function xo(e,t){var n=ko(e);return n!==yo&&(n=ho),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var _o=function(e){return function(t){return t.test(e)}},So=[Ba,Qa,Xa,Ya,eo,Za,{test:function(e){return"auto"===e},parse:function(e){return e}}],Eo=function(e){return So.find(_o(e))},Po=[].concat(o(So),[ro,ho]),To=function(e){return Po.find(_o(e))};function Co(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}function Ao(e,t,n){var r=e.getProps();return Co(r,t,void 0!==n?n:r.custom,function(e){var t={};return e.values.forEach((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.values.forEach((function(e,n){return t[n]=e.getVelocity()})),t}(e))}var jo=["transitionEnd","transition"];function No(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Na(n))}function Io(e,t){var n=Ao(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i,o=(r.transition,fa(r,jo));for(var s in o=Cr(Cr({},o),a)){No(e,s,ma(o[s]))}}function Oo(e,t){o(t).reverse().forEach((function(n){var r=e.getVariant(n);r&&Io(e,r),e.variantChildren&&e.variantChildren.forEach((function(e){Oo(e,t)}))}))}function Ro(e,t){if(t)return(t[e]||t.default||t).from}var Do=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mo=new Set(Do),Lo=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Uo="data-"+Lo("framerAppearId"),Fo=function(e){return 1e3*e},Vo=function(e){return e/1e3},Bo=!1,zo=function(e){return Array.isArray(e)&&"number"===typeof e[0]};function Wo(e){return Boolean(!e||"string"===typeof e&&qo[e]||zo(e)||Array.isArray(e)&&e.every(Wo))}var Ho=function(e){var t=w(e,4),n=t[0],r=t[1],i=t[2],a=t[3];return"cubic-bezier(".concat(n,", ").concat(r,", ").concat(i,", ").concat(a,")")},qo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ho([0,.65,.55,1]),circOut:Ho([.55,0,1,.45]),backIn:Ho([.31,.01,.66,-.59]),backOut:Ho([.33,1.53,.69,.99])};function Jo(e){if(e)return zo(e)?Ho(e):Array.isArray(e)?e.map(Jo):qo[e]}var Ko={waapi:function(){return Object.hasOwnProperty.call(Element.prototype,"animate")}},$o={},Go={},Yo=function(e){Go[e]=function(){return void 0===$o[e]&&($o[e]=Ko[e]()),$o[e]}};for(var Xo in Ko)Yo(Xo);var Qo=function(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e},Zo=1e-7,es=12;function ts(e,t,n,r){if(e===t&&n===r)return aa;var i=function(t){return function(e,t,n,r,i){var a,o,s=0;do{(a=Qo(o=t+(n-t)/2,r,i)-e)>
20?n=o:t=o}while(Math.abs(a)>Zo&&++s<es);return o}(t,0,1,e,n)};return function(e){return 0===e||1===e?e:Qo(i(e),t,r)}}var ns=ts(.42,0,1,1),rs=ts(0,0,.58,1),is=ts(.42,0,.58,1),as=function(e){return Array.isArray(e)&&"number"!==typeof e[0]},os=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ss=function(e){return function(t){return 1-e(1-t)}},us=function(e){return 1-Math.sin(Math.acos(e))},cs=ss(us),ls=os(cs),fs=ts(.33,1.53,.69,.99),ds=ss(fs),hs=os(ds),ps={linear:aa,easeIn:ns,easeInOut:is,easeOut:rs,circIn:us,circInOut:ls,circOut:cs,backIn:ds,backInOut:hs,backOut:fs,anticipate:function(e){return(e*=2)<1?.5*ds(e):.5*(2-Math.pow(2,-10*(e-1)))}},vs=function(e){if(Array.isArray(e)){sa(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=w(e,4);return ts(t[0],t[1],t[2],t[3])}return"string"===typeof e?(sa(void 0!==ps[e],"Invalid easing type '".concat(e,"'")),ps[e]):e},ms=function(e,t,n){return-n*e+n*t+e};function ys(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var gs=function(e,t,n){var r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},bs=[$a,Ka,no],ws=function(e){return bs.find((function(t){return t.test(e)}))};function ks(e){var t=ws(e);sa(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."));var n=t.parse(e);return t===no&&(n=function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,c=2*r-u;a=ys(c,u,t+1/3),o=ys(c,u,t),s=ys(c,u,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}var xs=function(e,t){var n=ks(e),r=ks(t),i=Cr({},n);return function(e){return i.red=gs(n.red,r.red,e),i.green=gs(n.green,r.green,e),i.blue=gs(n.blue,r.blue,e),i.alpha=ms(n.alpha,r.alpha,e),Ka.transform(i)}},_s=function(e,t){return function(n){return t(e(n))}},Ss=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(_s)},Es=function(e,t){return function(n){return"".concat(n>0?t:e)}};function Ps(e,t){return"number"===typeof e?function(n){return ms(e,t,n)}:ro.test(e)?xs(e,t):e.startsWith("var(")?Es(e,t):As(e,t)}var Ts=function(e,t){var n=o(e),r=n.length,i=e.map((function(e,n){return Ps(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},Cs=function(e,t){var n=Cr(Cr({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Ps(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}},As=function(e,t){var n=ho.createTransformer(t),r=uo(e),i=uo(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Ss(Ts(r.values,i.values),n):(oa(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),Es(e,t))},js=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Ns=function(e,t){return function(n){return ms(e,t,n)}};function Is(e,t,n){for(var r=[],i=n||function(e){return"number"===typeof e?Ns:"string"===typeof e?ro.test(e)?xs:As:Array.isArray(e)?Ts:"object"===typeof e?Cs:Ns}(e[0]),a=e.length-1,o=0;o<a;o++){var s=i(e[o],e[o+1]);if(t){var u=Array.isArray(t)?t[o]||aa:t;s=Ss(u,s)}r.push(s)}return r}function Os(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,s=n.mixer,u=e.length;if(sa(u===t.length,"Both input and output ranges must be the same length"),1===u)return function(){return t[0]};e[0]>e[u-1]&&(e=o(e).reverse(),t=o(t).reverse());var c=Is(t,a,s),l=c.length,f=function(t){var n=0;if(l>1)for(;n<e.length-2&&!(t<e[n+1]);n++);var r=js(e[n],e[n+1],t);return c[n](r)};return i?function(t){return f(Va(e[0],e[u-1],t))}:f}function Rs(e){var t=[0];return function(e,t){for(var n=e[e.length-1],r=1;r<=t;r++){var i=js(0,t,r);e.push(ms(n,1,i))}}(t,e.length-1),t}function Ds(e){var t,n,r=e.duration,i=void 0===r?300:r,a=e.keyframes,o=e.times,s=e.ease,u=void 0===s?"easeInOut":s,c=as(u)?u.map(vs):vs(u),l={done:!1,value:a[0]},f=function(e,t){return e.map((function(e){return e*t}))}(o&&o.length===a.length?o:Rs(a),i),d=Os(f,a,{ease:Array.isArray(c)?c:(t=a,n=c,t.map((function(){return n||is})).splice(0,t.length-1))});return{calculatedDuration:i,next:function(e){return l.value=d(e),l.done=e>=i,l}}}var Ms=5;function Ls(e,t,n){var r=Math.max(t-Ms,0);return Aa(n-e(r),t-r)}var Us=.001,Fs=.01,Vs=10,Bs=.05,zs=1;function Ws(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=void 0===a?.25:a,s=e.velocity,u=void 0===s?0:s,c=e.mass,l=void 0===c?1:c;oa(i<=Fo(Vs),"Spring duration must be 10 seconds or less");var f=1-o;f=Va(Bs,zs,f),i=Va(Fs,Vs,Vo(i)),f<1?(t=function(e){var t=e*f,n=t*i,r=t-u,a=qs(e,f),o=Math.exp(-n);return Us-r/a*o},n=function(e){var n=e*f*i,r=n*u+u,a=Math.pow(f,2)*Math.pow(e,2)*i,o=Math.exp(-n),s=qs(Math.pow(e,2),f);return(-t(e)+Us>0?-1:1)*((r-a)*o)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-Us},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var d=function(e,t,n){for(var r=n,i=1;i<Hs;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i=Fo(i),isNaN(d))return{stiffness:100,damping:10,duration:i};var h=Math.pow(d,2)*l;return{stiffness:h,damping:2*f*Math.sqrt(l*h),duration:i}}var Hs=12;function qs(e,t){return e*Math.sqrt(1-t*t)}var Js=["keyframes","restDelta","restSpeed"],Ks=["duration","bounce"],$s=["stiffness","damping","mass"];function Gs(e,t){return t.some((function(t){return void 0!==e[t]}))}function Ys(e){var t,n=e.keyframes,r=e.restDelta,i=e.restSpeed,a=fa(e,Js),o=n[0],s=n[n.length-1],u={done:!1,value:o},c=function(e){var t=Cr({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Gs(e,$s)&&Gs(e,Ks)){var n=Ws(e);(t=Cr(Cr(Cr({},t),n),{},{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(a),l=c.stiffness,f=c.damping,d=c.mass,h=c.velocity,p=c.duration,v=c.isResolvedFromDuration,m=h?-Vo(h):0,y=f/(2*Math.sqrt(l*d)),g=s-o,b=Vo(Math.sqrt(l/d)),w=Math.abs(g)<5;if(i||(i=w?.01:2),r||(r=w?.005:.5),y<1){var k=qs(b,y);t=function(e){var t=Math.exp(-y*b*e);return s-t*((m+y*b*g)/k*Math.sin(k*e)+g*Math.cos(k*e))}}else if(1===y)t=function(e){return s-Math.exp(-b*e)*(g+(m+b*g)*e)};else{var x=b*Math.sqrt(y*y-1);t=function(e){var t=Math.exp(-y*b*e),n=Math.min(x*e,300);return s-t*((m+y*b*g)*Math.sinh(n)+x*g*Math.cosh(n))/x}}
2return{calculatedDuration:v&&p||null,next:function(e){var n=t(e);if(v)u.done=e>=p;else{var a=m;0!==e&&(a=y<1?Ls(t,e,n):0);var o=Math.abs(a)<=i,c=Math.abs(s-n)<=r;u.done=o&&c}return u.value=u.done?s:n,u}}}function Xs(e){var t=e.keyframes,n=e.velocity,r=void 0===n?0:n,i=e.power,a=void 0===i?.8:i,o=e.timeConstant,s=void 0===o?325:o,u=e.bounceDamping,c=void 0===u?10:u,l=e.bounceStiffness,f=void 0===l?500:l,d=e.modifyTarget,h=e.min,p=e.max,v=e.restDelta,m=void 0===v?.5:v,y=e.restSpeed,g=t[0],b={done:!1,value:g},w=function(e){return void 0===h?p:void 0===p||Math.abs(h-e)<Math.abs(p-e)?h:p},k=a*r,x=g+k,_=void 0===d?x:d(x);_!==x&&(k=_-g);var S,E,P=function(e){return-k*Math.exp(-e/s)},T=function(e){return _+P(e)},C=function(e){var t=P(e),n=T(e);b.done=Math.abs(t)<=m,b.value=b.done?_:n},A=function(e){(function(e){return void 0!==h&&e<h||void 0!==p&&e>p})(b.value)&&(S=e,E=Ys({keyframes:[b.value,w(b.value)],velocity:Ls(T,e,b.value),damping:c,stiffness:f,restDelta:m,restSpeed:y}))};return A(0),{calculatedDuration:null,next:function(e){var t=!1;return E||void 0!==S||(t=!0,C(e),A(e)),void 0!==S&&e>S?E.next(e-S):(!t&&C(e),b)}}}var Qs=function(e){var t=function(t){var n=t.timestamp;return e(n)};return{start:function(){return Sa.update(t,!0)},stop:function(){return Ea(t)},now:function(){return ya.isProcessing?ya.timestamp:performance.now()}}},Zs=2e4;function eu(e){for(var t=0,n=e.next(t);!n.done&&t<Zs;)t+=50,n=e.next(t);return t>=Zs?1/0:t}var tu=["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"],nu={decay:Xs,inertia:Xs,tween:Ds,keyframes:Ds,spring:Ys};function ru(e){var t,n,r,i=e.autoplay,a=void 0===i||i,s=e.delay,u=void 0===s?0:s,c=e.driver,l=void 0===c?Qs:c,f=e.keyframes,d=e.type,h=void 0===d?"keyframes":d,p=e.repeat,v=void 0===p?0:p,m=e.repeatDelay,y=void 0===m?0:m,g=e.repeatType,b=void 0===g?"loop":g,w=e.onPlay,k=e.onStop,x=e.onComplete,_=e.onUpdate,S=fa(e,tu),E=1,P=!1,T=function(){t&&t(),n=new Promise((function(e){t=e}))};T();var C,A=nu[h]||Ds;A!==Ds&&"number"!==typeof f[0]&&(C=Os([0,100],f,{clamp:!1}),f=[0,100]);var j,N=A(Cr(Cr({},S),{},{keyframes:f}));"mirror"===b&&(j=A(Cr(Cr({},S),{},{keyframes:o(f).reverse(),velocity:-(S.velocity||0)})));var I="idle",O=null,R=null,D=null;null===N.calculatedDuration&&v&&(N.calculatedDuration=eu(N));var M=N.calculatedDuration,L=1/0,U=1/0;null!==M&&(U=(L=M+y)*(v+1)-y);var F=0,V=function(e){if(null!==R){E>0&&(R=Math.min(R,e));var t=(F=null!==O?O:(e-R)*E)-u,n=t<0;F=Math.max(t,0),"finished"===I&&null===O&&(F=U);var r=F,i=N;if(v){var a=F/L,o=Math.floor(a),s=a%1;!s&&a>=1&&(s=1),1===s&&o--,o=Math.min(o,v+1);var c=Boolean(o%2);c&&("reverse"===b?(s=1-s,y&&(s-=y/L)):"mirror"===b&&(i=j));var l=Va(0,1,s);F>U&&(l="reverse"===b&&c?1:0),r=l*L}var d=n?{done:!1,value:f[0]}:i.next(r);C&&(d.value=C(d.value));var h=d.done;n||null===M||(h=F>=U);var p=null===O&&("finished"===I||"running"===I&&h||E<0&&F<=0);return _&&_(d.value),p&&W(),d}},B=function(){r&&r.stop(),r=void 0},z=function(){I="idle",B(),T(),R=D=null},W=function(){I="finished",x&&x(),B(),T()},H=function(){if(!P){r||(r=l(V));var e=r.now();w&&w(),null!==O?R=e-O:R&&"finished"!==I||(R=e),D=R,O=null,I="running",r.start()}};a&&H();var q={then:function(e,t){return n.then(e,t)},get time(){return Vo(F)},set time(e){e=Fo(e),F=e,null===O&&r&&0!==E?R=r.now()-e/E:O=e},get duration(){var e=null===N.calculatedDuration?eu(N):N.calculatedDuration;return Vo(e)},get speed(){return E},set speed(e){e!==E&&r&&(E=e,q.time=Vo(F))},get state(){return I},play:H,pause:function(){I="paused",O=F},stop:function(){P=!0,"idle"!==I&&(I="idle",k&&k(),z())},cancel:function(){null!==D&&V(D),z()},complete:function(){I="finished"},sample:function(e){return R=0,V(e)}};return q}var iu=["onUpdate","onComplete"],au=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ou=10,su=2e4,uu=function(e,t){return"spring"===t.type||"backgroundColor"===e||!Wo(t.ease)};function cu(e,t,n){n.onUpdate;var r=n.onComplete,i=fa(n,iu);if(!(Go.waapi()&&au.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;var a,o,s=!1,u=function(){o=new Promise((function(e){a=e}))};u();var c=i.keyframes,l=i.duration,f=void 0===l?300:l,d=i.ease,h=i.times;if(uu(t,i)){for(var p=ru(Cr(Cr({},i),{},{repeat:0,delay:0})),v={done:!1,value:c[0]},m=[],y=0;!v.done&&y<su;)v=p.sample(y),m.push(v.value),y+=ou;h=void 0,c=m,f=y-ou,d="linear"}var g=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.delay,a=void 0===i?0:i,o=r.duration,s=r.repeat,u=void 0===s?0:s,c=r.repeatType,l=void 0===c?"loop":c,f=r.ease,d=r.times,h=S({},t,n);d&&(h.offset=d);var p=Jo(f);return Array.isArray(p)&&(h.easing=p),e.animate(h,{delay:a,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:u+1,direction:"reverse"===l?"alternate":"normal"})}(e.owner.current,t,c,Cr(Cr({},i),{},{duration:f,ease:d,times:h})),b=function(){return g.cancel()},w=function(){Sa.update(b),a(),u()};return g.onfinish=function(){e.set(function(e,t){var n=t.repeat,r=t.repeatType;return e[n&&"loop"!==(void 0===r?"loop":r)&&n%2===1?0:e.length-1]}(c,i)),r&&r(),w()},{then:function(e,t){return o.then(e,t)},get time(){return Vo(g.currentTime||0)},set time(e){g.currentTime=Fo(e)},get speed(){return g.playbackRate},set speed(e){g.playbackRate=e},get duration(){return Vo(f)},play:function(){s||(g.play(),Ea(b))},pause:function(){return g.pause()},stop:function(){if(s=!0,"idle"!==g.playState){var t=g.currentTime;if(t){var n=ru(Cr(Cr({},i),{},{autoplay:!1}));
2e.setWithVelocity(n.sample(t-ou).value,n.sample(t).value,ou)}w()}},complete:function(){return g.finish()},cancel:w}}var lu={type:"spring",stiffness:500,damping:25,restSpeed:10},fu={type:"keyframes",duration:.8},du={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hu=function(e,t){var n=t.keyframes;return n.length>2?fu:Mo.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:lu:du},pu=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!ho.test(t)&&"0"!==t||t.startsWith("url(")))};function vu(e){return"number"===typeof e?0===e:null!==e?"none"===e||"0"===e||ha(e):void 0}var mu=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];function yu(e,t){return e[t]||e.default||e}var gu=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(i){var a=yu(r,e)||{},s=a.delay||r.delay||0,u=r.elapsed,c=void 0===u?0:u;c-=Fo(s);var l=function(e,t,n,r){var i,a=pu(t,n);i=Array.isArray(n)?o(n):[null,n];for(var s=void 0!==r.from?r.from:e.get(),u=void 0,c=[],l=0;l<i.length;l++)null===i[l]&&(i[l]=0===l?s:i[l-1]),vu(i[l])&&c.push(l),"string"===typeof i[l]&&"none"!==i[l]&&"0"!==i[l]&&(u=i[l]);if(a&&c.length&&u)for(var f=0;f<c.length;f++)i[c[f]]=xo(t,u);return i}(t,e,n,a),f=l[0],d=l[l.length-1],h=pu(e,f),p=pu(e,d);oa(h===p,"You are trying to animate ".concat(e,' from "').concat(f,'" to "').concat(d,'". ').concat(f," is not an animatable value - to enable this animation set ").concat(f," to a value animatable to ").concat(d," via the `style` property."));var v=Cr(Cr({keyframes:l,velocity:t.getVelocity(),ease:"easeOut"},a),{},{delay:-c,onUpdate:function(e){t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:function(){i(),a.onComplete&&a.onComplete()}});if(function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from,e.elapsed;var t=fa(e,mu);return!!Object.keys(t).length}(a)||(v=Cr(Cr({},v),hu(e,v))),v.duration&&(v.duration=Fo(v.duration)),v.repeatDelay&&(v.repeatDelay=Fo(v.repeatDelay)),!h||!p||Bo||!1===a.type)return function(e){var t=e.keyframes,n=e.delay,r=e.onUpdate,i=e.onComplete,a=function(){return r&&r(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:aa,pause:aa,stop:aa,then:function(e){return e(),Promise.resolve()},cancel:aa,complete:aa}};return n?ru({keyframes:[0,1],duration:0,delay:n,onComplete:a}):a()}(v);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){var m=cu(t,e,v);if(m)return m}return ru(v)}},bu=function(e){return Boolean(e&&e.getVelocity)};function wu(e){return Boolean(bu(e)&&e.add)}var ku=["transition","transitionEnd"];function xu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.delay,i=void 0===r?0:r,a=n.transitionOverride,o=n.type,s=e.makeTargetAnimatable(t),u=s.transition,c=void 0===u?e.getDefaultTransition():u,l=s.transitionEnd,f=fa(s,ku),d=e.getValue("willChange");a&&(c=a);var h=[],p=o&&e.animationState&&e.animationState.getState()[o],v=function(t){var n=e.getValue(t),r=f[t];if(!n||void 0===r||p&&function(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}(p,t))return"continue";var a=Cr({delay:i,elapsed:0},c);if(window.HandoffAppearAnimations&&!n.hasAnimated){var o=e.getProps()[Uo];o&&(a.elapsed=window.HandoffAppearAnimations(o,t,n,Sa))}n.start(gu(t,n,r,e.shouldReduceMotion&&Mo.has(t)?{type:!1}:a));var s=n.animation;wu(d)&&(d.add(t),s.then((function(){return d.remove(t)}))),h.push(s)};for(var m in f)v(m);return l&&Promise.all(h).then((function(){l&&Io(e,l)})),h}function _u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ao(e,t,n.custom),i=(r||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var o=r?function(){return Promise.all(xu(e,r,n))}:function(){return Promise.resolve()},s=e.variantChildren&&e.variantChildren.size?function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=a,o=i.delayChildren,s=void 0===o?0:o,u=i.staggerChildren,c=i.staggerDirection;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5?arguments[5]:void 0,o=[],s=(e.variantChildren.size-1)*r,u=1===i?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return s-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(Su).forEach((function(e,r){e.notify("AnimationStart",t),o.push(_u(e,t,Cr(Cr({},a),{},{delay:n+u(r)})).then((function(){return e.notify("AnimationComplete",t)})))}
2)),Promise.all(o)}(e,t,s+r,u,c,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=w("beforeChildren"===u?[o,s]:[s,o],2),l=c[0],f=c[1];return l().then((function(){return f()}))}return Promise.all([o(),s(n.delay)])}function Su(e,t){return e.sortNodePosition(t)}function Eu(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){var i=t.map((function(t){return _u(e,t,r)}));n=Promise.all(i)}else if("string"===typeof t)n=_u(e,t,r);else{var a="function"===typeof t?Ao(e,t,r.custom):t;n=Promise.all(xu(e,a,r))}return n.then((function(){return e.notify("AnimationComplete",t)}))}function Pu(){var e=!1,t=new Set,n={subscribe:function(e){return t.add(e),function(){t.delete(e)}},start:function(n,r){sa(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");var i=[];return t.forEach((function(e){i.push(Eu(e,n,{transitionOverride:r}))})),Promise.all(i)},set:function(n){return sa(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach((function(e){!function(e,t){Array.isArray(t)?Oo(e,t):"string"===typeof t?Oo(e,[t]):Io(e,t)}(e,n)}))},stop:function(){t.forEach((function(e){!function(e){e.values.forEach((function(e){return e.stop()}))}(e)}))},mount:function(){return e=!0,function(){e=!1,n.stop()}}};return n}function Tu(e){var t=(0,at.useRef)(null);return null===t.current&&(t.current=e()),t.current}var Cu="undefined"!==typeof document,Au=Cu?at.useLayoutEffect:at.useEffect;var ju=function(){var e=Tu(Pu);return Au(e.mount,[]),e},Nu=(0,at.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Iu=(0,at.createContext)({}),Ou=(0,at.createContext)(null),Ru=(0,at.createContext)({strict:!1});function Du(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Mu(e){return"string"===typeof e||Array.isArray(e)}function Lu(e){return"object"===typeof e&&"function"===typeof e.start}var Uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fu=["initial"].concat(Uu);function Vu(e){return Lu(e.animate)||Fu.some((function(t){return Mu(e[t])}))}function Bu(e){return Boolean(Vu(e)||e.variants)}function zu(e){var t=function(e,t){if(Vu(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Mu(n)?n:void 0,animate:Mu(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,at.useContext)(Iu)),n=t.initial,r=t.animate;return(0,at.useMemo)((function(){return{initial:n,animate:r}}),[Wu(n),Wu(r)])}function Wu(e){return Array.isArray(e)?e.join(" "):e}var Hu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qu={},Ju=function(e){qu[e]={isEnabled:function(t){return Hu[e].some((function(e){return!!t[e]}))}}};for(var Ku in Hu)Ju(Ku);var $u=(0,at.createContext)({}),Gu=(0,at.createContext)({}),Yu=Symbol.for("motionComponentSymbol");function Xu(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.useRender,i=e.useVisualState,a=e.Component;t&&function(e){for(var t in e)qu[t]=Cr(Cr({},qu[t]),e[t])}(t);var o=(0,at.forwardRef)((function(e,o){var s,u=Cr(Cr(Cr({},(0,at.useContext)(Nu)),e),{},{layoutId:Qu(e)}),c=u.isStatic,l=zu(e),f=i(e,c);if(!c&&Cu){l.visualElement=function(e,t,n,r){var i=(0,at.useContext)(Iu).visualElement,a=(0,at.useContext)(Ru),o=(0,at.useContext)(Ou),s=(0,at.useContext)(Nu).reducedMotion,u=(0,at.useRef)();r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:s}));var c=u.current;return(0,at.useInsertionEffect)((function(){c&&c.update(n,o)})),Au((function(){c&&c.render()})),(0,at.useEffect)((function(){c&&c.updateFeatures()})),(window.HandoffAppearAnimations?Au:at.useEffect)((function(){c&&c.animationState&&c.animationState.animateChanges()})),c}(a,f,u,n);var d=(0,at.useContext)(Gu),h=(0,at.useContext)(Ru).strict;l.visualElement&&(s=l.visualElement.loadFeatures(u,h,t,d))}return at.createElement(Iu.Provider,{value:l},s&&l.visualElement?at.createElement(s,Cr({visualElement:l.visualElement},u)):null,r(a,e,function(e,t,n){return(0,at.useCallback)((function(r){r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):Du(n)&&(n.current=r))}),[t])}(f,l.visualElement,o),f,c,l.visualElement))}));return o[Yu]=a,o}function Qu(e){var t=e.layoutId,n=(0,at.useContext)($u).id;return n&&void 0!==t?n+"-"+t:t}function Zu(e){function t(t){return Xu(e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var ec=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tc(e){return"string"===typeof e&&!e.includes("-")&&!!(ec.indexOf(e)>-1||/[A-Z]/.test(e))}var nc={};function rc(e,t){var n=t.layout,r=t.layoutId;return Mo.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!nc[e]||"opacity"===e)}var ic={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ac=Do.length;var oc=function(e,t){return t&&"number"===typeof e?t.transform(e):e};function sc(e,t,n,r){var i=e.style,a=e.vars,o=e.transform,s=e.transformOrigin,u=!1,
2c=!1,l=!0;for(var f in t){var d=t[f];if(Oa(f))a[f]=d;else{var h=bo[f],p=oc(d,h);if(Mo.has(f)){if(u=!0,o[f]=p,!l)continue;d!==(h.default||0)&&(l=!1)}else f.startsWith("origin")?(c=!0,s[f]=p):i[f]=p}}if(t.transform||(u||r?i.transform=function(e,t,n,r){for(var i=t.enableHardwareAcceleration,a=void 0===i||i,o=t.allowTransformNone,s=void 0===o||o,u="",c=0;c<ac;c++){var l=Do[c];if(void 0!==e[l]){var f=ic[l]||l;u+="".concat(f,"(").concat(e[l],") ")}}return a&&!e.z&&(u+="translateZ(0)"),u=u.trim(),r?u=r(e,n?"":u):s&&n&&(u="none"),u}(e.transform,n,l,r):i.transform&&(i.transform="none")),c){var v=s.originX,m=void 0===v?"50%":v,y=s.originY,g=void 0===y?"50%":y,b=s.originZ,w=void 0===b?0:b;i.transformOrigin="".concat(m," ").concat(g," ").concat(w)}}var uc=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function cc(e,t,n){for(var r in t)bu(t[r])||rc(r,n)||(e[r]=t[r])}function lc(e,t,n){var r={};return cc(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,at.useMemo)((function(){var e=uc();return sc(e,t,{enableHardwareAcceleration:!n},r),Object.assign({},e.vars,e.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function fc(e,t,n){var r={},i=lc(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}var dc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function hc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||dc.has(e)}var pc,vc=function(e){return!hc(e)};try{(pc=require("@emotion/is-prop-valid").default)&&(vc=function(e){return e.startsWith("on")?!hc(e):pc(e)})}catch(Mk){}function mc(e,t,n){return"string"===typeof e?e:Qa.transform(t+n*e)}var yc={offset:"stroke-dashoffset",array:"stroke-dasharray"},gc={offset:"strokeDashoffset",array:"strokeDasharray"};var bc=["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"];function wc(e,t,n,r,i){var a=t.attrX,o=t.attrY,s=t.attrScale,u=t.originX,c=t.originY,l=t.pathLength,f=t.pathSpacing,d=void 0===f?1:f,h=t.pathOffset,p=void 0===h?0:h;if(sc(e,fa(t,bc),n,i),r)e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);else{e.attrs=e.style,e.style={};var v=e.attrs,m=e.style,y=e.dimensions;v.transform&&(y&&(m.transform=v.transform),delete v.transform),y&&(void 0!==u||void 0!==c||m.transform)&&(m.transformOrigin=function(e,t,n){var r=mc(t,e.x,e.width),i=mc(n,e.y,e.height);return"".concat(r," ").concat(i)}(y,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==a&&(v.x=a),void 0!==o&&(v.y=o),void 0!==s&&(v.scale=s),void 0!==l&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;var a=i?yc:gc;e[a.offset]=Qa.transform(-r);var o=Qa.transform(t),s=Qa.transform(n);e[a.array]="".concat(o," ").concat(s)}(v,l,d,p,!1)}}var kc=function(){return Cr(Cr({},uc()),{},{attrs:{}})},xc=function(e){return"string"===typeof e&&"svg"===e.toLowerCase()};function _c(e,t,n,r){var i=(0,at.useMemo)((function(){var n=kc();return wc(n,t,{enableHardwareAcceleration:!1},xc(r),e.transformTemplate),Cr(Cr({},n.attrs),{},{style:Cr({},n.style)})}),[t]);if(e.style){var a={};cc(a,e.style,e),i.style=Cr(Cr({},a),i.style)}return i}function Sc(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i,a){var o=i.latestValues,s=(tc(t)?_c:fc)(n,o,a,t),u=function(e,t,n){var r={};for(var i in e)"values"===i&&"object"===typeof e.values||(vc(i)||!0===n&&hc(i)||!t&&!hc(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),c=Cr(Cr(Cr({},u),s),{},{ref:r}),l=n.children,f=(0,at.useMemo)((function(){return bu(l)?l.get():l}),[l]);
2return(0,at.createElement)(t,Cr(Cr({},c),{},{children:f}))}}function Ec(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Pc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Tc(e,t,n,r){for(var i in Ec(e,t,void 0,r),t.attrs)e.setAttribute(Pc.has(i)?i:Lo(i),t.attrs[i])}function Cc(e,t){var n=e.style,r={};for(var i in n)(bu(n[i])||t.style&&bu(t.style[i])||rc(i,e))&&(r[i]=n[i]);return r}function Ac(e,t){var n=Cc(e,t);for(var r in e){if(bu(e[r])||bu(t[r]))n[-1!==Do.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function jc(e){var t=bu(e)?e.get():e;return va(t)?t.toValue():t}var Nc=["transitionEnd","transition"];var Ic=function(e){return function(t,n){var r=(0,at.useContext)(Iu),i=(0,at.useContext)(Ou),a=function(){return function(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:Oc(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}(e,t,r,i)};return n?a():Tu(a)}};function Oc(e,t,n,r){var i={}
2,a=r(e,{});for(var o in a)i[o]=jc(a[o]);var s=e.initial,u=e.animate,c=Vu(e),l=Bu(e);t&&l&&!c&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===u&&(u=t.animate));var f=!!n&&!1===n.initial,d=(f=f||!1===s)?u:s;d&&"boolean"!==typeof d&&!Lu(d)&&(Array.isArray(d)?d:[d]).forEach((function(t){var n=Co(e,t);if(n){var r=n.transitionEnd,a=(n.transition,fa(n,Nc));for(var o in a){var s=a[o];if(Array.isArray(s))s=s[f?s.length-1:0];null!==s&&(i[o]=s)}for(var u in r)i[u]=r[u]}}));return i}var Rc={useVisualState:Ic({scrapeMotionValuesFromProps:Ac,createRenderState:kc,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(a){r.dimensions={x:0,y:0,width:0,height:0}}wc(r,i,{enableHardwareAcceleration:!1},xc(t.tagName),e.transformTemplate),Tc(t,r)}})},Dc={useVisualState:Ic({scrapeMotionValuesFromProps:Cc,createRenderState:uc})};function Mc(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}var Lc=function(e){return"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary};function Uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e[t+"X"],y:e[t+"Y"]}}}var Fc=function(e){return function(t){return Lc(t)&&e(t,Uc(t))}};function Vc(e,t,n,r){return Mc(e,t,Fc(n),r)}function Bc(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var zc=Bc("dragHorizontal"),Wc=Bc("dragVertical");function Hc(e){var t=!1;if("y"===e)t=Wc();else if("x"===e)t=zc();else{var n=zc(),r=Wc();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function qc(){var e=Hc(!0);return!e||(e(),!1)}var Jc=function(){function e(t){s(this,e),this.isMounted=!1,this.node=t}return f(e,[{key:"update",value:function(){}}]),e}();function Kc(e,t){var n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Vc(e.current,n,(function(n,i){if("touch"!==n.type&&!qc()){var a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Sa.update((function(){return a[r](n,i)}))}}),{passive:!e.getProps()[r]})}var $c=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"mount",value:function(){this.unmount=Ss(Kc(this.node,!0),Kc(this.node,!1))}},{key:"unmount",value:function(){}}]),n}(Jc),Gc=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).isActive=!1,e}return f(n,[{key:"onFocus",value:function(){var e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}},{key:"onBlur",value:function(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}},{key:"mount",value:function(){var e=this;this.unmount=Ss(Mc(this.node.current,"focus",(function(){return e.onFocus()})),Mc(this.node.current,"blur",(function(){return e.onBlur()})))}},{key:"unmount",value:function(){}}]),n}(Jc),Yc=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))};function Xc(e,t){if(t){var n=new PointerEvent("pointer"+e);t(n,Uc(n))}}var Qc=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).removeStartListeners=aa,e.removeEndListeners=aa,e.removeAccessibleListeners=aa,e.startPointerPress=function(t,n){if(e.removeEndListeners(),!e.isPressing){var r=e.node.getProps(),i=Vc(window,"pointerup",(function(t,n){if(e.checkPressEnd()){var r=e.node.getProps(),i=r.onTap,a=r.onTapCancel;Sa.update((function(){Yc(e.node.current,t.target)?i&&i(t,n):a&&a(t,n)}))}}),{passive:!(r.onTap||r.onPointerUp)}),a=Vc(window,"pointercancel",(function(t,n){return e.cancelPress(t,n)}),{passive:!(r.onTapCancel||r.onPointerCancel)});e.removeEndListeners=Ss(i,a),e.startPress(t,n)}},e.startAccessiblePress=function(){var t=Mc(e.node.current,"keydown",(function(t){if("Enter"===t.key&&!e.isPressing){e.removeEndListeners(),e.removeEndListeners=Mc(e.node.current,"keyup",(function(t){"Enter"===t.key&&e.checkPressEnd()&&Xc("up",(function(t,n){var r=e.node.getProps().onTap;r&&Sa.update((function(){return r(t,n)}
2))}))})),Xc("down",(function(t,n){e.startPress(t,n)}))}})),n=Mc(e.node.current,"blur",(function(){e.isPressing&&Xc("cancel",(function(t,n){return e.cancelPress(t,n)}))}));e.removeAccessibleListeners=Ss(t,n)},e}return f(n,[{key:"startPress",value:function(e,t){this.isPressing=!0;var n=this.node.getProps(),r=n.onTapStart;n.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Sa.update((function(){return r(e,t)}))}},{key:"checkPressEnd",value:function(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!qc()}},{key:"cancelPress",value:function(e,t){if(this.checkPressEnd()){var n=this.node.getProps().onTapCancel;n&&Sa.update((function(){return n(e,t)}))}}},{key:"mount",value:function(){var e=this.node.getProps(),t=Vc(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Mc(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ss(t,n)}},{key:"unmount",value:function(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}]),n}(Jc),Zc=["root"],el=new WeakMap,tl=new WeakMap,nl=function(e){var t=el.get(e.target);t&&t(e)},rl=function(e){e.forEach(nl)};function il(e,t,n){var r=function(e){var t=e.root,n=fa(e,Zc),r=t||document;tl.has(r)||tl.set(r,{});var i=tl.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(rl,Cr({root:t},n))),i[a]}(t);return el.set(e,n),r.observe(e),function(){el.delete(e),r.unobserve(e)}}var al={some:0,all:1},ol=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).hasEnteredView=!1,e.isInView=!1,e}return f(n,[{key:"startObserver",value:function(){var e=this;this.unmount();var t=this.node.getProps().viewport,n=void 0===t?{}:t,r=n.root,i=n.margin,a=n.amount,o=void 0===a?"some":a,s=n.once,u={root:r?r.current:void 0,rootMargin:i,threshold:"number"===typeof o?o:al[o]};return il(this.node.current,u,(function(t){var n=t.isIntersecting;if(e.isInView!==n&&(e.isInView=n,!s||n||!e.hasEnteredView)){n&&(e.hasEnteredView=!0),e.node.animationState&&e.node.animationState.setActive("whileInView",n);var r=e.node.getProps(),i=r.onViewportEnter,a=r.onViewportLeave,o=n?i:a;o&&o(t)}}))}},{key:"mount",value:function(){this.startObserver()}},{key:"update",value:function(){if("undefined"!==typeof IntersectionObserver){var e=this.node,t=e.props,n=e.prevProps,r=["amount","margin","root"].some(function(e){var t=e.viewport,n=void 0===t?{}:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.viewport,a=void 0===i?{}:i;return function(e){return n[e]!==a[e]}}(t,n));r&&this.startObserver()}}},{key:"unmount",value:function(){}}]),n}(Jc);var sl={inView:{Feature:ol},tap:{Feature:Qc},focus:{Feature:Gc},hover:{Feature:$c}};function ul(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var cl=["transition","transitionEnd"],ll=o(Uu).reverse(),fl=Uu.length;function dl(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return Eu(e,n,r)})))}}(e),n={animate:hl(!0),whileInView:hl(),whileHover:hl(),whileTap:hl(),whileDrag:hl(),whileFocus:hl(),exit:hl()},r=!0,i=function(t,n){var r=Ao(e,n);if(r){r.transition;var i=r.transitionEnd,a=fa(r,cl);t=Cr(Cr(Cr({},t),a),i)}return t};function a(a,s){for(var u=e.getProps(),c=e.getVariantContext(!0)||{},l=[],f=new Set,d={},h=1/0,p=function(){var t=ll[v],p=n[t],m=void 0!==u[t]?u[t]:c[t],y=Mu(m),g=t===s?p.isActive:null;!1===g&&(h=v);var b=m===c[t]&&m!==u[t]&&y;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),p.protectedKeys=Cr({},d),!p.isActive&&null===g||!m&&!p.prevProp||Lu(m)||"boolean"===typeof m)return"continue";var w=function(e,t){if("string"===typeof t)return t!==e;if(Array.isArray(t))return!ul(t,e);return!1}(p.prevProp,m),k=w||t===s&&p.isActive&&!b&&y||v>h&&y,x=Array.isArray(m)?m:[m],_=x.reduce(i,{});!1===g&&(_={});var S=p.prevResolvedValues,E=void 0===S?{}:S,P=Cr(Cr({},E),_),T=function(e){k=!0,f.delete(e),p.needsAnimating[e]=!0};for(var C in P){var A=_[C],j=E[C];d.hasOwnProperty(C)||(A!==j?pa(A)&&pa(j)?!ul(A,j)||w?T(C):p.protectedKeys[C]=!0:void 0!==A?T(C):f.add(C):void 0!==A&&f.has(C)?T(C):p.protectedKeys[C]=!0)}p.prevProp=m,p.prevResolvedValues=_,p.isActive&&(d=Cr(Cr({},d),_)),r&&e.blockInitialAnimation&&(k=!1),k&&!b&&l.push.apply(l,o(x.map((function(e){return{animation:e,options:Cr({type:t},a)}}))))},v=0;v<fl;v++)p();if(f.size){var m={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(m[t]=n)})),l.push({animation:m})}var y=Boolean(l.length);return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(l):Promise.resolve()}
2return{animateChanges:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=a(i,t);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function hl(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var pl=function(e){h(n,e);var t=y(n);function n(e){var r;return s(this,n),r=t.call(this,e),e.animationState||(e.animationState=dl(e)),r}return f(n,[{key:"updateAnimationControlsSubscription",value:function(){var e=this.node.getProps().animate;this.unmount(),Lu(e)&&(this.unmount=e.subscribe(this.node))}},{key:"mount",value:function(){this.updateAnimationControlsSubscription()}},{key:"update",value:function(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}},{key:"unmount",value:function(){}}]),n}(Jc),vl=0,ml=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).id=vl++,e}return f(n,[{key:"update",value:function(){var e=this;if(this.node.presenceContext){var t=this.node.presenceContext,n=t.isPresent,r=t.onExitComplete,i=t.custom,a=(this.node.prevPresenceContext||{}).isPresent;if(this.node.animationState&&n!==a){var o=this.node.animationState.setActive("exit",!n,{custom:null!==i&&void 0!==i?i:this.node.getProps().custom});r&&!n&&o.then((function(){return r(e.id)}))}}}},{key:"mount",value:function(){var e=(this.node.presenceContext||{}).register;e&&(this.unmount=e(this.id))}},{key:"unmount",value:function(){}}]),n}(Jc),yl={animation:{Feature:pl},exit:{Feature:ml}},gl=function(e,t){return Math.abs(e-t)};var bl=function(){function e(t,n){var r=this,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transformPagePoint;if(s(this,e),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=xl(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=function(e,t){var n=gl(e.x,t.x),r=gl(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=ya.timestamp;r.history.push(Cr(Cr({},i),{},{timestamp:a}));var o=r.handlers,s=o.onStart,u=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=wl(t,r.transformPagePoint),Sa.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){if(r.end(),r.lastMoveEvent&&r.lastMoveEventInfo){var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=xl("pointercancel"===e.type?r.lastMoveEventInfo:wl(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)}},Lc(t)){this.handlers=n,this.transformPagePoint=i;var a=wl(Uc(t),this.transformPagePoint),o=a.point,u=ya.timestamp;this.history=[Cr(Cr({},o),{},{timestamp:u})];var c=n.onSessionStart;c&&c(t,xl(a,this.history)),this.removeListeners=Ss(Vc(window,"pointermove",this.handlePointerMove),Vc(window,"pointerup",this.handlePointerUp),Vc(window,"pointercancel",this.handlePointerUp))}}return f(e,[{key:"updateHandlers",value:function(e){this.handlers=e}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),Ea(this.updatePoint)}}]),e}();function wl(e,t){return t?{point:t(e.point)}:e}function kl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xl(e,t){var n=e.point;return{point:n,delta:kl(n,Sl(t)),offset:kl(n,_l(t)),velocity:El(t,.1)}}function _l(e){return e[0]}function Sl(e){return e[e.length-1]}function El(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Sl(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Fo(t)));)n--;if(!r)return{x:0,y:0};var a=Vo(i.timestamp-r.timestamp);if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Pl(e){return e.max-e.min}function Tl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(e-t)<=n}function Cl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=ms(t.min,t.max,e.origin),e.scale=Pl(n)/Pl(t),(Tl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ms(n.min,n.max,e.origin)-e.originPoint,(Tl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Al(e,t,n,r){Cl(e.x,t.x,n.x,r?r.originX:void 0),Cl(e.y,t.y,n.y,r?r.originY:void 0)}function jl(e,t,n){e.min=n.min+t.min,e.max=e.min+Pl(t)}function Nl(e,t,n){e.min=t.min-n.min,e.max=e.min+Pl(t)}function Il(e,t,n){Nl(e.x,t.x,n.x),Nl(e.y,t.y,n.y)}function Ol(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Rl(e,t){var n=t.min-e.min,r=t.max-e.max;if(t.max-t.min<e.max-e.min){var i=[r,n];n=i[0],r=i[1]}return{min:n,max:r}}var Dl=.35;function Ml(e,t,n){return{min:Ll(e,t),max:Ll(e,n)}}function Ll(e,t){return"number"===typeof e?e:e[t]||0}var Ul=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Fl=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Vl(e){return[e("x"),e("y")]}function Bl(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function zl(e){return void 0===e||1===e}function Wl(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!zl(t)||!zl(n)||!zl(r)}function Hl(e){return Wl(e)||ql(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ql(e){return Jl(e.x)||Jl(e.y)}function Jl(e){return e&&"0%"!==e}function Kl(e,t,n){return n+t*(e-n)}function $l(e,t,n,r,i){return void 0!==i&&(e=Kl(e,i,r)),Kl(e,n,r)+t}function Gl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;e.min=$l(e.min,t,n,r,i),e.max=$l(e.max,t,n,r,i)}function Yl(e,t){var n=t.x,r=t.y;Gl(e.x,n.translate,n.scale,n.originPoint),Gl(e.y,r.translate,r.scale,r.originPoint)}function Xl(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ql(e,t){e.min=e.min+t,e.max=e.max+t}function Zl(e,t,n){var r=w(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,u=ms(e.min,e.max,s);
2Gl(e,t[i],t[a],u,t.scale)}var ef=["x","scaleX","originX"],tf=["y","scaleY","originY"];function nf(e,t){Zl(e.x,t,ef),Zl(e.y,t,tf)}function rf(e,t){return Bl(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var af=new WeakMap,of=function(){function e(t){s(this,e),this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fl(),this.visualElement=t}return f(e,[{key:"start",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).snapToCursor,r=void 0!==n&&n,i=this.visualElement.presenceContext;if(!i||!1!==i.isPresent){this.panSession=new bl(e,{onSessionStart:function(e){t.stopAnimation(),r&&t.snapToCursor(Uc(e,"page").point)},onStart:function(e,n){var r=t.getProps(),i=r.drag,a=r.dragPropagation,o=r.onDragStart;if(!i||a||(t.openGlobalLock&&t.openGlobalLock(),t.openGlobalLock=Hc(i),t.openGlobalLock)){t.isDragging=!0,t.currentDirection=null,t.resolveConstraints(),t.visualElement.projection&&(t.visualElement.projection.isAnimationBlocked=!0,t.visualElement.projection.target=void 0),Vl((function(e){var n=t.getAxisMotionValue(e).get()||0;if(Xa.test(n)){var r=t.visualElement.projection;if(r&&r.layout){var i=r.layout.layoutBox[e];if(i)n=Pl(i)*(parseFloat(n)/100)}}t.originPoint[e]=n})),o&&Sa.update((function(){return o(e,n)}),!1,!0);var s=t.visualElement.animationState;s&&s.setActive("whileDrag",!0)}},onMove:function(e,n){var r=t.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||t.openGlobalLock){var u=n.offset;if(a&&null===t.currentDirection)return t.currentDirection=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==t.currentDirection&&o&&o(t.currentDirection));t.updateAxis("x",n.point,u),t.updateAxis("y",n.point,u),t.visualElement.render(),s&&s(e,n)}},onSessionEnd:function(e,n){return t.stop(e,n)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}}},{key:"stop",value:function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;i&&Sa.update((function(){return i(e,t)}))}}},{key:"cancel",value:function(){this.isDragging=!1;var e=this.visualElement,t=e.projection,n=e.animationState;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}},{key:"updateAxis",value:function(e,t,n){var r=this.getProps().drag;if(n&&sf(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?ms(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?ms(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}}},{key:"resolveConstraints",value:function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Du(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:Ol(e.x,r,a),y:Ol(e.y,n,i)}}(i.layoutBox,n),this.elastic=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dl;return!1===e?e=0:!0===e&&(e=Dl),{x:Ml(e,"left","right"),y:Ml(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Vl((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[t],e.constraints[t]))}))}},{key:"resolveRefConstraints",value:function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Du(t))return!1;var r=t.current;sa(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=rf(e,n),i=t.scroll;return i&&(Ql(r.x,i.offset.x),Ql(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:Rl(e.x,t.x),y:Rl(e.y,t.y)}}(i.layout.layoutBox,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Bl(s))}return o}},{key:"startAnimation",value:function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,c=this.constraints||{},l=Vl((function(n){if(sf(n,r,t.currentDirection)){var u=c&&c[n]||{};s&&(u={min:0,max:0});var l=a?200:1e6,f=a?40:1e7,d=Cr(Cr({type:"inertia",velocity:i?e[n]:0,bounceStiffness:l,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},o),u);return t.startAxisValueAnimation(n,d)}}));return Promise.all(l).then(u)}},{key:"startAxisValueAnimation",value:function(e,t){var n=this.getAxisMotionValue(e);return n.start(gu(e,n,0,t))}},{key:"stopAnimation",value:function(){var e=this;Vl((function(t){return e.getAxisMotionValue(t).stop()}))}},{key:"getAxisMotionValue",value:function(e){var t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}},{key:"snapToCursor",value:function(e){var t=this;Vl((function(n){if(sf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.layoutBox[n],o=a.min,s=a.max;i.set(e[n]-ms(o,s,.5))}}}))}},{key:"scalePositionWithinConstraints",value:function(){var e=this;if(this.visualElement.current){var t=this.getProps(),n=t.drag,r=t.dragConstraints,i=this.visualElement.projection;if(Du(r)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};Vl((function(t){var n=e.getAxisMotionValue(t);if(n){var r=n.get();a[t]=function(e,t){var n=.5,r=Pl(e),i=Pl(t);return i>r?n=js(t.min,t.max-r,e.min):r>i&&(n=js(e.min,e.max-i,t.min)),Va(0,1,n)}({min:r,max:r},e.constraints[t])}}));var o=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Vl((function(t){if(sf(t,n,null)){var r=e.getAxisMotionValue(t),i=e.constraints[t],o=i.min,s=i.max;r.set(ms(o,s,a[t]))}}))}}}},{key:"addListeners",value:function(){var e=this;if(this.visualElement.current){af.set(this.visualElement,this);var t=Vc(this.visualElement.current,"pointerdown",(function(t){var n=e.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)})),n=function(){Du(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},r=this.visualElement.projection,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n();var a=Mc(window,"resize",(function(){return e.scalePositionWithinConstraints()})),o=r.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(Vl((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.render())}));return function(){a(),t(),i(),o&&o()}}}},{key:"getProps",value:function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,u=void 0!==s&&s,c=e.dragElastic,l=void 0===c?Dl:c,f=e.dragMomentum,d=void 0===f||f;return Cr(Cr({},e),{},{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:l,dragMomentum:d})}}]),e}();function sf(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var uf=function(e){h(n,e);var t=y(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).removeGroupControls=aa,r.removeListeners=aa,r.controls=new of(e),r}return f(n,[{key:"mount",value:function(){var e=this.node.getProps().dragControls;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aa}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners()}}]),n}(Jc),cf=function(e){return function(t,n){e&&Sa.update((function(){return e(t,n)}))}},lf=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).removePointerDownListener=aa,e}return f(n,[{key:"onPointerDown",value:function(e){this.session=new bl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}},{key:"createPanHandlers",value:function(){var e=this,t=this.node.getProps(),n=t.onPanSessionStart,r=t.onPanStart,i=t.onPan,a=t.onPanEnd;return{onSessionStart:cf(n),onStart:cf(r),onMove:i,onEnd:function(t,n){delete e.session,a&&Sa.update((function(){return a(t,n)}))}}}},{key:"mount",value:function(){var e=this;this.removePointerDownListener=Vc(this.node.current,"pointerdown",(function(t){return e.onPointerDown(t)}))}},{key:"update",value:function(){this.session&&this.session.updateHandlers(this.createPanHandlers())}},{key:"unmount",value:function(){this.removePointerDownListener(),this.session&&this.session.end()}}]),n}(Jc);var ff={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function df(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var hf={correct:function(e,t){if(!t.target)return e;if("string"===typeof e){if(!Qa.test(e))return e;e=parseFloat(e)}var n=df(e,t.target.x),r=df(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},pf={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=ho.parse(e);if(a.length>5)return i;var o=ho.createTransformer(e),s="number"!==typeof a[0]?1:0,u=r.x.scale*n.x,
2c=r.y.scale*n.y;a[0+s]/=u,a[1+s]/=c;var l=ms(u,c,.5);return"number"===typeof a[2+s]&&(a[2+s]/=l),"number"===typeof a[3+s]&&(a[3+s]/=l),o(a)}},vf=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"componentDidMount",value:function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=yf,Object.assign(nc,e),s&&(i.group&&i.group.add(s),a&&a.register&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Cr(Cr({},s.options),{},{onExitComplete:function(){return t.safeToRemove()}}))),ff.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Sa.postRender((function(){var e=s.getStack();e&&e.members.length||t.safeToRemove()}))),null):null}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props.visualElement.projection;t&&(t.root.didUpdate(),queueMicrotask((function(){!t.currentAnimation&&t.isLead()&&e.safeToRemove()})))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}},{key:"safeToRemove",value:function(){var e=this.props.safeToRemove;e&&e()}},{key:"render",value:function(){return null}}]),n}(at.Component);function mf(e){var t=function(){var e=(0,at.useContext)(Ou);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=(0,at.useId)();return(0,at.useEffect)((function(){return r(i)}),[]),!t&&n?[!1,function(){return n&&n(i)}]:[!0]}(),n=w(t,2),r=n[0],i=n[1],a=(0,at.useContext)($u);return at.createElement(vf,Cr(Cr({},e),{},{layoutGroup:a,switchLayoutGroup:(0,at.useContext)(Gu),isPresent:r,safeToRemove:i}))}var yf={borderRadius:Cr(Cr({},hf),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:hf,borderTopRightRadius:hf,borderBottomLeftRadius:hf,borderBottomRightRadius:hf,boxShadow:pf},gf=["TopLeft","TopRight","BottomLeft","BottomRight"],bf=gf.length,wf=function(e){return"string"===typeof e?parseFloat(e):e},kf=function(e){return"number"===typeof e||Qa.test(e)};function xf(e,t){return void 0!==e[t]?e[t]:e.borderRadius}var _f=Ef(0,.5,cs),Sf=Ef(.5,.95,aa);function Ef(e,t,n){return function(r){return r<e?0:r>t?1:n(js(e,t,r))}}function Pf(e,t){e.min=t.min,e.max=t.max}function Tf(e,t){Pf(e.x,t.x),Pf(e.y,t.y)}function Cf(e,t,n,r,i){return e=Kl(e-=t,1/n,r),void 0!==i&&(e=Kl(e,1/i,r)),e}function Af(e,t,n,r,i){var a=w(n,3),o=a[0],s=a[1],u=a[2];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;if(Xa.test(t)&&(t=parseFloat(t),t=ms(o.min,o.max,t/100)-o.min),"number"===typeof t){var s=ms(a.min,a.max,r);e===a&&(s-=t),e.min=Cf(e.min,t,n,s,i),e.max=Cf(e.max,t,n,s,i)}}(e,t[o],t[s],t[u],t.scale,r,i)}var jf=["x","scaleX","originX"],Nf=["y","scaleY","originY"];function If(e,t,n,r){Af(e.x,t,jf,n?n.x:void 0,r?r.x:void 0),Af(e.y,t,Nf,n?n.y:void 0,r?r.y:void 0)}function Of(e){return 0===e.translate&&1===e.scale}function Rf(e){return Of(e.x)&&Of(e.y)}function Df(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Mf(e){return Pl(e.x)/Pl(e.y)}var Lf=function(){function e(){s(this,e),this.members=[]}return f(e,[{key:"add",value:function(e){Pa(this.members,e),e.scheduleRender()}},{key:"remove",value:function(e){if(Ta(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}
2}},{key:"relegate",value:function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}},{key:"promote",value:function(e,t){var n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))}},{key:"exitAnimationComplete",value:function(){this.members.forEach((function(e){var t=e.options,n=e.resumingFrom;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}},{key:"scheduleRender",value:function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))}},{key:"removeLeadSnapshot",value:function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}]),e}();function Uf(e,t,n){var r="",i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r="translate3d(".concat(i,"px, ").concat(a,"px, 0) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(r+="rotate(".concat(o,"deg) ")),s&&(r+="rotateX(".concat(s,"deg) ")),u&&(r+="rotateY(".concat(u,"deg) "))}var c=e.x.scale*t.x,l=e.y.scale*t.y;return 1===c&&1===l||(r+="scale(".concat(c,", ").concat(l,")")),r||"none"}var Ff=function(e,t){return e.depth-t.depth},Vf=function(){function e(){s(this,e),this.children=[],this.isDirty=!1}return f(e,[{key:"add",value:function(e){Pa(this.children,e),this.isDirty=!0}},{key:"remove",value:function(e){Ta(this.children,e),this.isDirty=!0}},{key:"forEach",value:function(e){this.isDirty&&this.children.sort(Ff),this.isDirty=!1,this.children.forEach(e)}}]),e}();var Bf=["","X","Y","Z"],zf=1e3,Wf=0,Hf={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qf(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();s(this,e),this.id=Wf++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=function(){t.isUpdating&&(t.isUpdating=!1,t.clearAllSnapshots())},this.updateProjection=function(){var e;Hf.totalNodes=Hf.resolvedTargetDeltas=Hf.recalculatedProjection=0,t.nodes.forEach($f),t.nodes.forEach(td),t.nodes.forEach(nd),t.nodes.forEach(Gf),e=Hf,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=i?i.root||i:this,this.path=i?[].concat(o(i.path),[i]):[],this.parent=i,this.depth=i?i.depth+1:0;for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vf)}return f(e,[{key:"addEventListener",value:function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ca),this.eventHandlers.get(e).add(t)}},{key:"notifyListeners",value:function(e){for(var t=this.eventHandlers.get(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t&&t.notify.apply(t,r)}},{key:"hasListeners",value:function(e){return this.eventHandlers.has(e)}},{key:"mount",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(!this.instance){var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,u=a.visualElement;if(u&&!u.current&&u.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(s||o)&&(this.isLayoutDirty=!0),t){var c,l=function(){return n.root.updateBlockedByResize=!1};t(e,(function(){n.root.updateBlockedByResize=!0,c&&c(),c=function(e,t){var n=performance.now(),r=function r(i){var a=i.timestamp-n;a>=t&&(Ea(r),e(a-t))};return Sa.read(r,!0),function(){return Ea(r)}}(l,250),ff.hasAnimatedSinceResize&&(ff.hasAnimatedSinceResize=!1,n.nodes.forEac
2h(ed))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&u&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t=e.delta,r=e.hasLayoutChanged,i=e.hasRelativeTargetChanged,a=e.layout;if(n.isTreeAnimationBlocked())return n.target=void 0,void(n.relativeTarget=void 0);var o=n.options.transition||u.getDefaultTransition()||ud,s=u.getProps(),c=s.onLayoutAnimationStart,l=s.onLayoutAnimationComplete,f=!n.targetLayout||!Df(n.targetLayout,a)||i,d=!r&&i;if(n.options.layoutRoot||n.resumeFrom&&n.resumeFrom.instance||d||r&&(f||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0),n.setAnimationOrigin(t,d);var h=Cr(Cr({},yu(o,"layout")),{},{onPlay:c,onComplete:l});(u.shouldReduceMotion||n.options.layoutRoot)&&(h.delay=0,h.type=!1),n.startAnimation(h)}else r||ed(n),n.isLead()&&n.options.onExitComplete&&n.options.onExitComplete();n.targetLayout=a}))}}},{key:"unmount",value:function(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);var e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ea(this.updateProjection)}},{key:"blockUpdate",value:function(){this.updateManuallyBlocked=!0}},{key:"unblockUpdate",value:function(){this.updateManuallyBlocked=!1}},{key:"isUpdateBlocked",value:function(){return this.updateManuallyBlocked||this.updateBlockedByResize}},{key:"isTreeAnimationBlocked",value:function(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}},{key:"startUpdate",value:function(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rd),this.animationId++)}},{key:"getTransformTemplate",value:function(){var e=this.options.visualElement;return e&&e.getProps().transformTemplate}},{key:"willUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())this.options.onExitComplete&&this.options.onExitComplete();else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var t=0;t<this.path.length;t++){var n=this.path[t];n.shouldResetTransform=!0,n.updateScroll("snapshot"),n.options.layoutRoot&&n.willUpdate(!1)}var r=this.options,i=r.layoutId,a=r.layout;if(void 0!==i||a){var o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}}},{key:"update",value:function(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Xf);this.isUpdating||this.nodes.forEach(Qf),this.isUpdating=!1,this.nodes.forEach(Zf),this.nodes.forEach(Jf),this.nodes.forEach(Kf),this.clearAllSnapshots();var e=performance.now();ya.delta=Va(0,1e3/60,e-ya.timestamp),ya.timestamp=e,ya.isProcessing=!0,ka.update.process(ya),ka.preRender.process(ya),ka.render.process(ya),ya.isProcessing=!1}},{key:"didUpdate",value:function(){var e=this;this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((function(){return e.update()})))}},{key:"clearAllSnapshots",value:function(){this.nodes.forEach(Yf),this.sharedNodes.forEach(id)}},{key:"scheduleUpdateProjection",value:function(){Sa.preRender(this.updateProjection,!1,!0)}},{key:"scheduleCheckAfterUnmount",value:function(){var e=this;Sa.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))}},{key:"updateSnapshot",value:function(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}},{key:"updateLayout",value:function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e=0;e<this.path.length;e++){this.path[e].updateScroll()}var t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Fl(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);var n=this.options.visualElement;n&&n.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}}},{key:"updateScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:r(this.instance)})}},{key:"resetTransform",value:function(){if(a){var e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Rf(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Hl(this.latestValues)||i)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}}},{key:"measure",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.measurePageBox(),r=this.removeElementScroll(n);return t&&(r=this.removeTransform(r)),cd((e=r).x),cd(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}},{key:"measurePageBox",value:function(){var e=this.options.visualElement;if(!e)return Fl();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Ql(t.x,n.offset.x),Ql(t.y,n.offset.y)),t}},{key:"removeElementScroll",value:function(e){var t=Fl();Tf(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options;if(r!==this.root&&i&&a.layoutScroll){if(i.isRoot){Tf(t,e);var o=this.root.scroll;o&&(Ql(t.x,-o.offset.x),Ql(t.y,-o.offset.y))}Ql(t.x,i.offset.x),Ql(t.y,i.offset.y)}}return t}},{key:"applyTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Fl();Tf(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nf(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),Hl(i.latestValues)&&nf(n,i.latestValues)}return Hl(this.latestValues)&&nf(n,this.latestValues),n}},{key:"removeTransform",value:function(e){var t=Fl();Tf(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n];if(r.instance&&Hl(r.latestValues)){Wl(r.latestValues)&&r.updateSnapshot();var i=Fl();Tf(i,r.measurePageBox()),If(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}}return Hl(this.latestValues)&&If(t,this.latestValues),t}},{key:"setTargetDelta",value:function(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}},{key:"setOptions",value:function(e){this.options=Cr(Cr(Cr({},this.options),e),{},{crossfade:void 0===e.crossfade||e.crossfade})}},{key:"clearMeasurements",value:function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}},{key:"forceRelativeParentToResolveTarget",value:function(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ya.timestamp&&this.relativeParent.resolveTargetDelta(!0)}},{key:"resolveTargetDelta",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
2haredProjectionDirty);var r=Boolean(this.resumingFrom)||this!==n;if(!!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget)){var i=this.options,a=i.layout,o=i.layoutId;if(this.layout&&(a||o)){if(this.resolvedRelativeTargetAt=ya.timestamp,!this.targetDelta&&!this.relativeTarget){var s=this.getClosestProjectingParent();s&&s.layout&&1!==this.animationProgress?(this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fl(),this.relativeTargetOrigin=Fl(),Il(this.relativeTargetOrigin,this.layout.layoutBox,s.layout.layoutBox),Tf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var u,c,l;if(this.target||(this.target=Fl(),this.targetWithTransforms=Fl()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u=this.target,c=this.relativeTarget,l=this.relativeParent.target,jl(u.x,c.x,l.x),jl(u.y,c.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Tf(this.target,this.layout.layoutBox),Yl(this.target,this.targetDelta)):Tf(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;var f=this.getClosestProjectingParent();f&&Boolean(f.resumingFrom)===Boolean(this.resumingFrom)&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fl(),this.relativeTargetOrigin=Fl(),Il(this.relativeTargetOrigin,this.target,f.target),Tf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hf.resolvedTargetDeltas++}}}}},{key:"getClosestProjectingParent",value:function(){if(this.parent&&!Wl(this.parent.latestValues)&&!ql(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}},{key:"isProjecting",value:function(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}},{key:"calcProjection",value:function(){var e,t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===ya.timestamp&&(r=!1),!r){var i=this.options,a=i.layout,o=i.layoutId;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(a||o)){Tf(this.layoutCorrected,this.layout.layoutBox);var s=this.treeScale.x,u=this.treeScale.y;!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=n.length;if(i){var a,o;t.x=t.y=1;for(var s=0;s<i;s++){o=(a=n[s]).projectionDelta;var u=a.instance;u&&u.style&&"contents"===u.style.display||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&nf(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Yl(e,o)),r&&Hl(a.latestValues)&&nf(e,a.latestValues))}t.x=Xl(t.x),t.y=Xl(t.y)}}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);var c=t.target;if(c){this.projectionDelta||(this.projectionDelta=Ul(),this.projectionDeltaWithTransform=Ul());var l=this.projectionTransform;Al(this.projectionDelta,this.layoutCorrected,c,this.latestValues),this.projectionTransform=Uf(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===s&&this.treeScale.y===u||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",c)),Hf.recalculatedProjection++}else this.projectionTransform&&(this.projectionDelta=Ul(),this.projectionTransform="none",this.scheduleRender())}}}},{key:"hide",value:function(){this.isVisible=!1}},{key:"show",value:function(){this.isVisible=!0}},{key:"scheduleRender",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),e){var t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}},{key:"setAnimationOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.snapshot,i=r?r.latestValues:{},a=Cr({},this.latestValues),o=Ul();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!n;var s,u=Fl(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),f=!l||l.members.length<=1,d=Boolean(c&&!f&&!0===this.options.crossfade&&!this.path.some(sd));this.animationProgress=0,this.mixTargetDelta=function(n){var r=n/1e3;ad(o.x,e.x,r),ad(o.y,e.y,r),t.setTargetDelta(o),t.relativeTarget&&t.relativeTargetOrigin&&t.layout&&t.relativeParent&&t.relativeParent.layout&&(Il(u,t.layout.layoutBox,t.relativeParent.layout.layoutBox),function(e,t,n,r){od(e.x,t.x,n.x,r),od(e.y,t.y,n.y,r)}(t.relativeTarget,t.relativeTargetOrigin,u,r),s&&Df(t.relativeTarget,s)&&(t.isProjectionDirty=!1),s||(s=Fl()),Tf(s,t.relativeTarget)),c&&(t.animationValues=a,function(e,t,n,r,i,a){i?(e.opacity=ms(0,void 0!==n.opacity?n.opacity:1,_f(r)),e.o
2pacityExit=ms(void 0!==t.opacity?t.opacity:1,0,Sf(r))):a&&(e.opacity=ms(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(var o=0;o<bf;o++){var s="border".concat(gf[o],"Radius"),u=xf(t,s),c=xf(n,s);void 0===u&&void 0===c||(u||(u=0),c||(c=0),0===u||0===c||kf(u)===kf(c)?(e[s]=Math.max(ms(wf(u),wf(c),r),0),(Xa.test(c)||Xa.test(u))&&(e[s]+="%")):e[s]=c)}(t.rotate||n.rotate)&&(e.rotate=ms(t.rotate||0,n.rotate||0,r))}(a,i,t.latestValues,r,d,f)),t.root.scheduleUpdateProjection(),t.scheduleRender(),t.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}},{key:"startAnimation",value:function(e){var t=this;this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ea(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Sa.update((function(){ff.hasAnimatedSinceResize=!0,t.currentAnimation=function(e,t,n){var r=bu(e)?e:Na(e);return r.start(gu("",r,t,n)),r.animation}(0,zf,Cr(Cr({},e),{},{onUpdate:function(n){t.mixTargetDelta(n),e.onUpdate&&e.onUpdate(n)},onComplete:function(){e.onComplete&&e.onComplete(),t.completeAnimation()}})),t.resumingFrom&&(t.resumingFrom.currentAnimation=t.currentAnimation),t.pendingAnimation=void 0}))}},{key:"completeAnimation",value:function(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);var e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}},{key:"finishAnimation",value:function(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zf),this.currentAnimation.stop()),this.completeAnimation()}},{key:"applyTransformsToTarget",value:function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;if(t&&n&&r){if(this!==e&&this.layout&&r&&ld(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Fl();var a=Pl(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+a;var o=Pl(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+o}Tf(t,n),nf(t,i),Al(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}},{key:"registerSharedNode",value:function(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Lf),this.sharedNodes.get(e).add(t);var n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}},{key:"isLead",value:function(){var e=this.getStack();return!e||e.lead===this}},{key:"getLead",value:function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}},{key:"getPrevLead",value:function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}},{key:"getStack",value:function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)}},{key:"promote",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.needsReset,n=e.transition,r=e.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}},{key:"relegate",value:function(){var e=this.getStack();return!!e&&e.relegate(this)}},{key:"resetRotation",value:function(){var e=this.options.visualElement;if(e){var t=!1,n=e.latestValues;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),t){for(var r={},i=0;i<Bf.length;i++){var a="rotate"+Bf[i];n[a]&&(r[a]=n[a],e.setStaticValue(a,0))}for(var o in e.render(),r)e.setStaticValue(o,r[o]);e.scheduleRender()}}}},{key:"getProjectionStyles",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";var i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=jc(n.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;var a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){var o={};return this.options.layoutId&&(o.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,o.pointerEvents=jc(n.pointerEvents)||""),this.hasProjected&&!Hl(this.latestValues)&&(o.transform=i?i({},""):"none",this.hasProjected=!1),o}var s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),r.transform=Uf(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));var u=this.projectionDelta,c=u.x,l=u.y;for(var f in r.transformOrigin="".concat(100*c.origin,"% ").concat(100*l.origin,"% 0"),a.animationValues?r.opacity=a===this?null!==(t=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==t?t:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,nc)if(void 0!==s[f]){var d=nc[f],h=d.correct,p=d.applyTo,v="none"===r.transform?s[f]:h(s[f],a);if(p)for(var m=p.length,y=0;y<m;y++)r[p[y]]=v;else r[f]=v}return this.options.layoutId&&(r.pointerEvents=a===this?jc(n.pointerEvents)||"":"none"),r}},{key:"clearSnapshot",value:function(){this.resumeFrom=this.snapshot=void 0}}
2,{key:"resetTree",value:function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Xf),this.root.sharedNodes.clear()}}]),e}()}function Jf(e){e.updateLayout()}function Kf(e){var t,n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){var r=e.layout,i=r.layoutBox,a=r.measuredBox,o=e.options.animationType,s=n.source!==e.layout.source;"size"===o?Vl((function(e){var t=s?n.measuredBox[e]:n.layoutBox[e],r=Pl(t);t.min=i[e].min,t.max=t.min+r})):ld(o,n.layoutBox,i)&&Vl((function(t){var r=s?n.measuredBox[t]:n.layoutBox[t],a=Pl(i[t]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+a)}));var u=Ul();Al(u,i,n.layoutBox);var c=Ul();s?Al(c,e.applyTransform(a,!0),n.measuredBox):Al(c,i,n.layoutBox);var l=!Rf(u),f=!1;if(!e.resumeFrom){var d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){var h=d.snapshot,p=d.layout;if(h&&p){var v=Fl();Il(v,n.layoutBox,h.layoutBox);var m=Fl();Il(m,i,p.layoutBox),Df(v,m)||(f=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:l,hasRelativeTargetChanged:f})}else if(e.isLead()){var y=e.options.onExitComplete;y&&y()}e.options.transition=void 0}function $f(e){Hf.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Gf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Yf(e){e.clearSnapshot()}function Xf(e){e.clearMeasurements()}function Qf(e){e.isLayoutDirty=!1}function Zf(e){var t=e.options.visualElement;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ed(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function td(e){e.resolveTargetDelta()}function nd(e){e.calcProjection()}function rd(e){e.resetRotation()}function id(e){e.removeLeadSnapshot()}function ad(e,t,n){e.translate=ms(t.translate,0,n),e.scale=ms(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function od(e,t,n,r){e.min=ms(t.min,n.min,r),e.max=ms(t.max,n.max,r)}function sd(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var ud={duration:.45,ease:[.4,0,.1,1]};function cd(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ld(e,t,n){return"position"===e||"preserve-aspect"===e&&!Tl(Mf(t),Mf(n),.2)}var fd=qf({attachResizeListener:function(e,t){return Mc(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),dd={current:void 0},hd=qf({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!dd.current){var e=new fd({});e.mount(window),e.setOptions({layoutScroll:!0}),dd.current=e}return dd.current},resetTransform:function(e,t){e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),pd={pan:{Feature:lf},drag:{Feature:uf,ProjectionNode:hd,MeasureLayout:mf}};var vd=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var md=4;function yd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;sa(n<=md,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=function(e){var t=vd.exec(e);if(!t)return[,];var n=w(t,3);return[n[1],n[2]]}(e),i=w(r,2),a=i[0],o=i[1];if(a){var s=window.getComputedStyle(t).getPropertyValue(a);return s?s.trim():Ra(o)?yd(o,t,n+1):o}}function gd(e,t,n){var r=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),t)),i=e.current;if(!(i instanceof Element))return{target:r,transitionEnd:n};for(var a in n&&(n=Cr({}
2,n)),e.values.forEach((function(e){var t=e.get();if(Ra(t)){var n=yd(t,i);n&&e.set(n)}})),r){var o=r[a];if(Ra(o)){var s=yd(o,i);s&&(r[a]=s,n||(n={}),void 0===n[a]&&(n[a]=o))}}return{target:r,transitionEnd:n}}var bd=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wd=function(e){return bd.has(e)},kd=function(e){return Object.keys(e).some(wd)},xd=function(e){return e===Ba||e===Qa},_d=function(e,t){return parseFloat(e.split(", ")[t])},Sd=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return _d(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?_d(o[1],e):0}},Ed=new Set(["x","y","z"]),Pd=Do.filter((function(e){return!Ed.has(e)}));var Td={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Sd(4,13),y:Sd(5,14)},Cd=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=Cr({},t),r=Cr({},r);var i=Object.keys(t).filter(wd),a=[],o=!1,s=[];if(i.forEach((function(i){var u=e.getValue(i);if(e.hasValue(i)){var c,l=n[i],f=Eo(l),d=t[i];if(pa(d)){var h=d.length,p=null===d[0]?1:0;l=d[p],f=Eo(l);for(var v=p;v<h&&null!==d[v];v++)c?sa(Eo(d[v])===c,"All keyframes must be of the same type"):(c=Eo(d[v]),sa(c===f||xd(f)&&xd(c),"Keyframes must be of the same dimension as the current value"))}else c=Eo(d);if(f!==c)if(xd(f)&&xd(c)){var m=u.get();"string"===typeof m&&u.set(parseFloat(m)),"string"===typeof d?t[i]=parseFloat(d):Array.isArray(d)&&c===Qa&&(t[i]=d.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===d)?0===l?u.set(c.transform(l)):t[i]=f.transform(d):(o||(a=function(e){var t=[];return Pd.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],u.jump(d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Td[e](r,a)})),t.render();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);r&&r.jump(s[n]),e[n]=Td[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=w(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.render(),Cu&&null!==u&&window.scrollTo({top:u}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}};var Ad=function(e,t,n,r){var i=gd(e,t,r);return function(e,t,n,r){return kd(t)?Cd(e,t,n,r):{target:t,transitionEnd:r}}(e,t=i.target,n,r=i.transitionEnd)},jd={current:null},Nd={current:!1};var Id=new WeakMap,Od=["willChange"],Rd=["children"],Dd=Object.keys(qu),Md=Dd.length,Ld=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ud=Fu.length,Fd=function(){function e(t){var n=this,r=t.parent,i=t.props,a=t.presenceContext,o=t.reducedMotionConfig,u=t.visualState,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.scheduleRender=function(){return Sa.render(n.render,!1,!0)};var l=u.latestValues,f=u.renderState;
2this.latestValues=l,this.baseTarget=Cr({},l),this.initialValues=i.initial?Cr({},l):{},this.renderState=f,this.parent=r,this.props=i,this.presenceContext=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.isControllingVariants=Vu(i),this.isVariantNode=Bu(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(r&&r.current);var d=this.scrapeMotionValuesFromProps(i,{}),h=d.willChange,p=fa(d,Od);for(var v in p){var m=p[v];void 0!==l[v]&&bu(m)&&(m.set(l[v],!1),wu(h)&&h.add(v))}}return f(e,[{key:"scrapeMotionValuesFromProps",value:function(e,t){return{}}},{key:"mount",value:function(e){var t=this;this.current=e,Id.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((function(e,n){return t.bindToMotionValue(n,e)})),Nd.current||function(){if(Nd.current=!0,Cu)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return jd.current=e.matches};e.addListener(t),t()}else jd.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||jd.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}},{key:"unmount",value:function(){for(var e in Id.delete(this.current),this.projection&&this.projection.unmount(),Ea(this.notifyUpdate),Ea(this.render),this.valueSubscriptions.forEach((function(e){return e()})),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(var t in this.features)this.features[t].unmount();this.current=null}},{key:"bindToMotionValue",value:function(e,t){var n=this,r=Mo.has(e),i=t.on("change",(function(t){n.latestValues[e]=t,n.props.onUpdate&&Sa.update(n.notifyUpdate,!1,!0),r&&n.projection&&(n.projection.isTransformDirty=!0)})),a=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(function(){i(),a()}))}},{key:"sortNodePosition",value:function(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}},{key:"loadFeatures",value:function(e,t,n,r){for(var i,a,o=this,s=(e.children,fa(e,Rd)),u=0;u<Md;u++){var c=Dd[u],l=qu[c],f=l.isEnabled,d=l.Feature,h=l.ProjectionNode,p=l.MeasureLayout;h&&(i=h),f(s)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),p&&(a=p))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);var v=s.layoutId,m=s.layout,y=s.drag,g=s.dragConstraints,b=s.layoutScroll,w=s.layoutRoot;this.projection.setOptions({layoutId:v,layout:m,alwaysMeasureLayout:Boolean(y)||g&&Du(g),visualElement:this,scheduleRender:function(){return o.scheduleRender()},animationType:"string"===typeof m?m:"both",initialPromotionConfig:r,layoutScroll:b,layoutRoot:w})}return a}},{key:"updateFeatures",value:function(){for(var e in this.features){var t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}},{key:"triggerBuild",value:function(){this.build(this.renderState,this.latestValues,this.options,this.props)}},{key:"measureViewportBox",value:function(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fl()}},{key:"getStaticValue",value:function(e){return this.latestValues[e]}},{key:"setStaticValue",value:function(e,t){this.latestValues[e]=t}},{key:"makeTargetAnimatable",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(e,this.props,t)}},{key:"update",value:function(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(var n=0;n<Ld.length;n++){var r=Ld[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);var i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,n){var r=t.willChange;
2for(var i in t){var a=t[i],o=n[i];if(bu(a))e.addValue(i,a),wu(r)&&r.add(i);else if(bu(o))e.addValue(i,Na(a,{owner:e})),wu(r)&&r.remove(i);else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{var u=e.getStaticValue(i);e.addValue(i,Na(void 0!==u?u:a,{owner:e}))}}for(var c in n)void 0===t[c]&&e.removeValue(c);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}},{key:"getProps",value:function(){return this.props}},{key:"getVariant",value:function(e){return this.props.variants?this.props.variants[e]:void 0}},{key:"getDefaultTransition",value:function(){return this.props.transition}},{key:"getTransformPagePoint",value:function(){return this.props.transformPagePoint}},{key:"getClosestVariantNode",value:function(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}},{key:"getVariantContext",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){var e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}for(var t={},n=0;n<Ud;n++){var r=Fu[n],i=this.props[r];(Mu(i)||!1===i)&&(t[r]=i)}return t}},{key:"addVariantChild",value:function(e){var t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),function(){return t.variantChildren.delete(e)}}},{key:"addValue",value:function(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}},{key:"removeValue",value:function(e){this.values.delete(e);var t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}},{key:"hasValue",value:function(e){return this.values.has(e)}},{key:"getValue",value:function(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];var n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Na(t,{owner:this}),this.addValue(e,n)),n}},{key:"readValue",value:function(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}},{key:"setBaseTarget",value:function(e,t){this.baseTarget[e]=t}},{key:"getBaseTarget",value:function(e){var t,n=this.props.initial,r="string"===typeof n||"object"===typeof n?null===(t=Co(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;var i=this.getBaseTargetFromProps(this.props,e);return void 0===i||bu(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}},{key:"on",value:function(e,t){return this.events[e]||(this.events[e]=new Ca),this.events[e].add(t)}},{key:"notify",value:function(e){if(this.events[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this.events[e]).notify.apply(t,r)}}}]),e}(),Vd=["transition","transitionEnd"],Bd=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"sortInstanceNodePosition",value:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1}},{key:"getBaseTargetFromProps",value:function(e,t){return e.style?e.style[t]:void 0}},{key:"removeValueFromRenderState",value:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]}},{key:"makeTargetAnimatableFromInstance",value:function(e,t,n){var r=e.transition,i=e.transitionEnd,a=fa(e,Vd),o=t.transformValues,s=function(e,t,n){var r={};for(var i in e){var a=Ro(i,t);if(void 0!==a)r[i]=a;else{var o=n.getValue(i);o&&(r[i]=o.get())}}return r}(a,r||{},this);if(o&&(i&&(i=o(i)),a&&(a=o(a)),s&&(s=o(s))),n){!function(e,t,n){var r,i,a=Object.keys(t).filter((function(t){return!e.hasValue(t)})),o=a.length;if(o)for(var s=0;s<o;s++){var u=a[s],c=t[u],l=null;Array.isArray(c)&&(l=c[0]),null===l&&(l=null!==(i=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==i?i:t[u]),void 0!==l&&null!==l&&("string"===typeof l&&(da(l)||ha(l))?l=parseFloat(l):!To(l)&&ho.test(c)&&(l=xo(u,c)),e.addValue(u,Na(l,{owner:e})),void 0===n[u]&&(n[u]=l),null!==l&&e.setBaseTarget(u,l))}}(this,a,s);var u=Ad(this,a,s,i);i=u.transitionEnd,a=u.target}return Cr({transition:r,transitionEnd:i},a)}}]),n}(Fd);var zd=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"readValueFromInstance",value:function(e,t){if(Mo.has(t)){var n=ko(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r)),a=(Oa(t)?i.getPropertyValue(t):i[t])||0;return"string"===typeof a?a.trim():a}},{key:"measureInstanceViewportBox",value:function(e,t){return rf(e,t.transformPagePoint)}},{key:"build",value:function(e,t,n,r){sc(e,t,n,r.transformTemplate)}},{key:"scrapeMotionValuesFromProps",value:function(e,t){return Cc(e,t)}},{key:"handleChildMotionValue",value:function(){var e=this;this.childSubscription&&(this.childSubscription(),delete this.childSubscription);var t=this.props.children;bu(t)&&(this.childSubscription=t.on("change",(function(t){e.current&&(e.current.textContent="".concat(t))})))}},{key:"renderInstance",value:function(e,t,n,r){Ec(e,t,n,r)}}]),n}(Bd);function Wd(){return Wd="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Wd.apply(this,arguments)}var Hd=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).isSVGTag=!1,e}return f(n,[{key:"getBaseTargetFromProps",value:function(e,t){return e[t]}},{key:"readValueFromInstance",value:function(e,t){if(Mo.has(t)){var n=ko(t);return n&&n.default||0}return t=Pc.has(t)?t:Lo(t),e.getAttribute(t)}},{key:"measureInstanceViewportBox",value:function(){return Fl()}},{key:"scrapeMotionValuesFromProps",value:function(e,t){return Ac(e,t)}},{key:"build",value:function(e,t,n,r){wc(e,t,n,this.isSVGTag,r.transformTemplate)}},{key:"renderInstance",value:function(e,t,n,r){Tc(e,t,0,r)}},{key:"mount",value:function(e){this.isSVGTag=xc(e.tagName),Wd(p(n.prototype),"mount",this).call(this,e)}}]),n}(Bd),qd=function(e,t){return tc(e)?new Hd(t,{enableHardwareAcceleration:!1}):new zd(t,{enableHardwareAcceleration:!0})},Jd={layout:{ProjectionNode:hd,MeasureLayout:mf}},Kd=Cr(Cr(Cr(Cr({},yl),sl),pd),Jd),$d=Zu((function(e,t){return function(e,t,n,r){var i=t.forwardMotionProps,a=void 0!==i&&i;return Cr(Cr({},tc(e)?Rc:Dc),{},{preloadedFeatures:n,useRender:Sc(a),createVisualElement:r,Component:e})}(e,t,Kd,qd)}));function Gd(e){return e?"".concat("https://firebasestorage.googleapis.com/v0/b/drmis-website.appspot.com/o","/").concat(e.replaceAll("/","%2F"),"?alt=media"):""}
2var Yd=n.p+"static/media/yellow-arrow-right.a7d3b0ea4deceae3da5d030a50a5daf4.svg";var Xd=n.p+"static/media/blue-arrow-right.a187f7481e363bbccb962794fbf0b0d0.svg";var Qd=function(e){var t=e.title,n=e.dataArr,r=e.type,i=e.sliderRef,a=w((0,at.useState)([]),2),o=a[0],s=a[1],u=w((0,at.useState)(),2),c=u[0],l=u[1],f=w((0,at.useState)([]),2),d=f[0],h=f[1],p=w((0,at.useState)([]),2),v=p[0],m=p[1],y=w((0,at.useState)(),2),g=y[0],b=y[1],k=w((0,at.useState)(0),2),x=k[0],_=k[1],S=(0,at.useRef)(null),E=la(S,{once:!0}),P=ju();function T(){l(this)}function C(){window.innerWidth<=500&&i&&i.current.scrollIntoView()}function A(){_((function(e){return e+6})),C()}function j(){_((function(e){return e-6})),C()}return(0,at.useEffect)((function(){E&&P.start("visible")}),[E,P]),(0,at.useEffect)((function(){s(Array.from(new Set(n.map((function(e){return e.category_name})))).filter((function(e){return""!==e})))}),[n]),(0,at.useEffect)((function(){h(n.filter((function(e){return!c||e.category_name===c}))),_(0)}),[c,n]),(0,at.useEffect)((function(){m(d.slice(x,x+6))}),[x,d]),(0,at.useEffect)((function(){b(d.length>6)}),[d]),(0,Ji.jsxs)("div",{className:"slider",ref:i,children:[(0,Ji.jsx)("p",{className:"slider__title ".concat(r),children:t}),(0,Ji.jsxs)("div",{className:"slider__nav ".concat(r),children:[(0,Ji.jsx)("button",{onClick:T,className:c?"":"current",children:"Show All"}),o.map((function(e){return(0,Ji.jsx)("button",{className:c===e?"current":"",onClick:T.bind(e),children:e},e)}))]}),(0,Ji.jsxs)($d.div,{className:"slider__body ".concat(r),variants:{hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},initial:"hidden",animate:P,transition:{duration:.5},ref:S,children:[g&&(0,Ji.jsx)("button",{onClick:j,className:"".concat(v[0].id===d[0].id?"hide":""),children:(0,Ji.jsx)("img",{className:"invert",src:"dark-bg"===r?Yd:Xd,alt:""})}),(0,Ji.jsx)("div",{className:"card-container",children:v.map((function(e){return(0,Ji.jsxs)("a",{href:e.link||null,target:"_blank",rel:"noreferrer",className:"card",children:[(0,Ji.jsx)("img",{className:"card__img",src:e.img_file_path?Gd(e.img_file_path):"",alt:""}),(0,Ji.jsxs)("div",{className:"card__content",children:[e.category_name&&(0,Ji.jsx)("div",{className:"card__content--header",children:(0,Ji.jsx)("p",{className:"category",children:e.category_name})}),(0,Ji.jsx)("p",{className:"card__content--title",children:e.title})]})]},e.id)}))}),g&&(0,Ji.jsx)("button",{onClick:A,className:"".concat(v[v.length-1].id===d[d.length-1].id?"hide":""),children:(0,Ji.jsx)("img",{src:"dark-bg"===r?Yd:Xd,alt:""})}),g&&(0,Ji.jsxs)("div",{className:"bottom-btn-container",children:[(0,Ji.jsx)("button",{onClick:j,className:"".concat(v[0].id===d[0].id?"hide":""),children:(0,Ji.jsx)("img",{className:"invert",src:"dark-bg"===r?Yd:Xd,alt:""})}),(0,Ji.jsx)("button",{onClick:A,className:"".concat(v[v.length-1].id===d[d.length-1].id?"hide":""),children:(0,Ji.jsx)("img",{src:"dark-bg"===r?Yd:Xd,alt:""})})]})]})]})};var Zd=n.p+"static/media/home-info-1.37fc0f57212d7849e4ef0b12f0405dc3.svg";var eh=n.p+"static/media/home-info-2.424f008545e93757461aa5f3f5348b8a.svg";var th=n.p+"static/media/home-info-3.c6bc47a2f206154e069cf2f0b2b2e8b0.svg";var nh=n.p+"static/media/home-partner-1.4ffaf6d16f36412471b593e51e218f9e.svg";var rh=n.p+"static/media/home-partner-2.9ab9ed95113e33e0bcc0d93896cf9cec.svg";var ih=function(){var e=mn((function(e){return e.resource.homeImageArr})),t=mn((function(e){return e.resource.researchPublicationArr})),n=mn((function(e){return e.resource.projectArr})),r=(0,at.useRef)(),i=(0,at.useRef)(),a=(0,at.useRef)(null),o=(0,at.useRef)(null),s=la(a,{once:!0}),u=la(o,{once:!0}),c=ju(),l=ju(),f={hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},d={duration:.5};function h(t){return e.length>0?Gd(e.find((function(e){return e.id===t})).file_path):""}return(0,at.useEffect)((function(){s&&c.start("visible")}),[s,c]),(0,at.useEffect)((function(){u&&l.start("visible")}),[u,l]),(0,Ji.jsxs)("div",{className:"home",children:[(0,Ji.jsx)("div",{className:"home__landing"}),(0,Ji.jsxs)("div",{className:"home__info",children:[(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("img",{className:"green",src:Zd,alt:""}),(0,Ji.jsx)("p",{children:"\u30c1\u30e5\u30e9\u30fc\u30ed\u30f3\u30b3\u30fc\u30f3\u5927\u5b66\u707d\u5bb3\u30ea\u30b9\u30af\u7ba1\u7406\u60c5\u5831\u30b7\u30b9\u30c6\u30e0\u7814\u7a76\u5ba4"})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("img",{className:"purple",src:eh,alt:""}),(0,Ji.jsxs)("p",{children:["\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e40\u0e0a\u0e35\u0e48\u0e22\u0e27\u0e0a\u0e32\u0e0d\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e17\u0e32\u0e07\u0e14\u0e49\u0e32\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e2a\u0e32\u0e23\u0e2a\u0e19\u0e40\u0e17\u0e28\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23 ",(0,Ji.jsx)("br",{}),"\u0e20\u0e31\u0e22\u0e1e\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e41\u0e25\u0e30\u0e04\u0e27\u0e32\u0e21\u0e40\u0e2a\u0e35\u0e48\u0e22\u0e07\u0e08\u0e38\u0e2c\u0e32\u0e25\u0e07\u0e01\u0e23\u0e13\u0e4c\u0e21\u0e2b\u0e32\u0e27\u0e34\u0e17\u0e22\u0e32\u0e25\u0e31\u0e22 ",(0,Ji.jsx)("br",{})]})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("img",{className:"green",src:th,alt:""}),(0,Ji.jsx)("p",{children:"\u6731\u62c9\u9686\u529f\u5927\u5b66\u707e\u5bb3\u98ce\u9669\u7ba1\u7406\u4fe1\u606f\u7cfb\u7edf\u5b9e\u9a8c\u5ba4"})]})]}),(0,Ji.jsx)("div",{className:"home__about-us",children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsxs)($d.div,{className:"upper",variants:f,initial:"hidden",animate:c,transition:d,ref:a,children:[(0,Ji.jsxs)("div",{className:"img-container",children:[(0,Ji.jsx)("img",{src:h(1),alt:""}),(0,Ji.jsx)("img",{src:h(2),alt:""}),(0,Ji.jsx)("img",{src:h(3),alt:""})]}),(0,Ji.jsxs)("div",{className:"right",children:[(0,Ji.jsx)("p",{className:"title",children:"About Us"}),(0,Ji.jsxs)("p",{children:[(0,Ji.jsx)("span",{children:"DRMIS"})," is a Center of Excellence at Chulalongkorn University, established on 1 April 2025. Originally founded in 2018 as a research group by Assoc. Prof. Natt Leelawat, D.Eng., along with colleagues from the Department of Industrial Engineering, Department of Water Resources Engineering, Department of Civil Engineering, and the International School of Engineering, DRMIS was later upgraded to a research unit in 2021 before attaining its current status. The center focuses on research in disaster management, management information systems, business continuity management, and data analysis related to disasters. ."]})]})]}),(0,Ji.jsxs)($d.div,{className:"lower",variants:f,initial:"hidden",animate:l,transition:d,ref:o,children:[(0,Ji.jsxs)("div",{className:"img-container",children:[(0,Ji.jsx)("img",{src:h(4),alt:""}),(0,Ji.jsx)("img",{src:h(5),alt:""})]}),(0,Ji.jsxs)("div",{className:"right",children:[(0,Ji.jsx)("p",{className:"title",children:"Goals and objectives"}),(0,Ji.jsxs)("ul",{children:[(0,Ji.jsx)("li",{children:"To create knowledge and research for the society"}),(0,Ji.jsxs)("li",{children:["To provide information related to",(0,Ji.jsxs)("ul",{children:[(0,Ji.jsx)("li",{children:"Disaster Management"}),(0,Ji.jsx)("li",{children:"Business Continuity Management"}),(0,Ji.jsx)("li",{children:"Management Information Systems"})]})]})]})]})]})]})}),(0,Ji.jsx)("div",{className:"home__research-publication",ref:r,children:(0,Ji.jsx)(Qd,{title:"Research Publications - Journal Articles",dataArr:t,type:"dark-bg",sliderRef:r})}),(0,Ji.jsx)("div",{className:"home__project",ref:i,children:(0,Ji.jsx)(Qd,{title:"Selected DRMIS projects",dataArr:n,type:"light-bg",sliderRef:i})}),(0,Ji.jsxs)("div",{className:"home__partner",children:[(0,Ji.jsx)("p",{children:"Our Partners"}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("img",{src:nh,alt:""}),(0,Ji.jsx)("img",{src:rh,alt:""})]})]})]})};var ah=n.p+"static/media/drmis-member.9d0cade42d1551dc257b0ab3ae10e5be.svg";var oh=n.p+"static/media/drmis-visiting-member.0803a13fe778e73276ade895f46b5c64.svg";var sh=n.p+"static/media/drmis-graduate-student.f0f284484cde5c15f44bf1583bc2383d.svg";var uh=n.p+"static/media/drmis-undergraduate-student.90cf9acde727161cb947999f97e1a141.svg";var ch=function(){var e=_t(),t=mn((function(e){return e.resource.allMemberArr})),n=mn((function(e){return e.resource.memberProfileLinkArr}
2)),r=mn((function(e){return e.resource.studentImageArr})),i=(0,at.useRef)(null),a=(0,at.useRef)(null),o=(0,at.useRef)(null),s=(0,at.useRef)(null),u=la(i,{once:!0}),c=la(a,{once:!0}),l=la(o,{once:!0}),f=la(s,{once:!0}),d=ju(),h=ju(),p=ju(),v=ju(),m={hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},y={duration:.5};(0,at.useEffect)((function(){u&&d.start("visible")}),[u,d]),(0,at.useEffect)((function(){c&&h.start("visible")}),[c,h]),(0,at.useEffect)((function(){l&&p.start("visible")}),[l,p]),(0,at.useEffect)((function(){f&&v.start("visible")}),[f,v]);var g=t.filter((function(e){return"current"===e.status&&"member"===e.type})),b=t.filter((function(e){return"current"===e.status&&"visiting member"===e.type})),w=t.filter((function(e){return"current"===e.status&&"graduate student"===e.type})),k=t.filter((function(e){return"current"===e.status&&"undergraduate student"===e.type}));function x(e){if(r.length>0){var t=r.find((function(t){return t.id===e})).file_path;return t?Gd(t):""}return""}return(0,at.useEffect)((function(){e.hash&&setTimeout((function(){var t=document.getElementById(e.hash.slice(1));t&&t.scrollIntoView()}),0)}),[e.hash]),(0,Ji.jsxs)("div",{className:"member-current",children:[(0,Ji.jsxs)($d.div,{className:"member-current__member-container",variants:m,initial:"hidden",animate:d,transition:y,ref:i,children:[(0,Ji.jsx)("img",{className:"member-current__title",src:ah,alt:""}),(0,Ji.jsx)("div",{className:"content",children:g.map((function(e,t){return(0,Ji.jsxs)(at.Fragment,{children:[(0,Ji.jsx)("img",{src:Gd(e.img_file_path),alt:""}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsxs)("p",{children:[t+1,". ",e.name,e.rank?" (".concat(e.rank,")"):""]}),(0,Ji.jsx)("ul",{children:e.education_arr.map((function(e,t){return(0,Ji.jsx)("li",{children:e},t)}))}),e.profile_link_id_arr&&e.profile_link_id_arr.length>0&&(0,Ji.jsxs)("div",{className:"content__publication",children:[(0,Ji.jsx)("p",{children:"Publication:"}),"\xa0",e.profile_link_id_arr.map((function(e){var t=n.find((function(t){return t.id===e&&t.title&&t.link}));return t?(0,Ji.jsx)("a",{target:"_blank",rel:"noreferrer",href:t.link,children:t.title},e):(0,Ji.jsx)(at.Fragment,{},e)}))]})]})]},e.id)}))})]}),(0,Ji.jsxs)($d.div,{className:"member-current__member-container",variants:m,initial:"hidden",animate:h,transition:y,ref:a,children:[(0,Ji.jsx)("img",{className:"member-current__title sub",id:"visiting-member",src:oh,alt:""}),(0,Ji.jsx)("div",{className:"content",children:(0,Ji.jsx)("ol",{children:b.map((function(e,t){return(0,Ji.jsxs)("li",{children:[(0,Ji.jsxs)("p",{children:[e.name,e.education_arr?" (".concat(e.education_arr[0],")"):""]}),e.profile_link_id_arr&&e.profile_link_id_arr.length>0&&(0,Ji.jsxs)("div",{className:"content__publication",children:[(0,Ji.jsx)("p",{children:"Publication:"}),"\xa0",e.profile_link_id_arr.map((function(e){var t=n.find((function(t){return t.id===e&&t.title&&t.link}));return(0,Ji.jsx)("a",{target:"_blank",rel:"noreferrer",href:t.link,children:t.title},e)}))]})]},e.id)}))})})]}),(0,Ji.jsxs)($d.div,{className:"member-current__member-container",variants:m,initial:"hidden",animate:p,transition:y,ref:o,children:[(0,Ji.jsx)("img",{className:"member-current__title sub",id:"graduate-student",src:sh,alt:""}),(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("img",{src:x(1),alt:"",className:"full-width"}),(0,Ji.jsx)("ol",{children:w.map((function(e,t){return(0,Ji.jsxs)("li",{children:[(0,Ji.jsxs)("p",{children:[e.name,e.rank?" (".concat(e.rank,")"):""]}),e.profile_link_id_arr&&e.profile_link_id_arr.length>0&&(0,Ji.jsxs)("div",{className:"content__publication",children:[(0,Ji.jsx)("p",{children:"Publication:"}),"\xa0",e.profile_link_id_arr.map((function(e){var t=n.find((function(t){return t.id===e&&t.title&&t.link}));return(0,Ji.jsx)("a",{target:"_blank",rel:"noreferrer",href:t.link,children:t.title},e)}))]})]},e.id)}))})]})]}),(0,Ji.jsxs)($d.div,{className:"member-current__member-container",variants:m,initial:"hidden",animate:v,transition:y,ref:s,children:[(0,Ji.jsx)("img",{className:"member-current__title long",id:"undergraduate-student",src:uh,alt:""}),(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("img",{src:x(2),alt:"",className:"full-width"}),(0,Ji.jsx)("div",{children:k.map((function(e,t){return(0,Ji.jsx)("div",{children:(0,Ji.jsxs)("p",{children:[t+1,". ",e.name]})},e.id)}))})]})]})]})};var lh=n.p+"static/media/drmis-alumni.e70f4163170e24b3d6b20986c90536e9.svg";var fh=function(){var e=mn((function(e){return e.resource.allMemberArr})),t=(0,at.useRef)(null),n=la(t,{once:!0}),r=ju();(0,at.useEffect)((function(){n&&r.start("visible")}),[n,r]);var i=e.filter((function(e){return"alumni"===e.status})),a=["doctor","master","bachelor","internship"],o=[];
2return i.forEach((function(e){var t=e.year;!o.includes(t)&&o.push(t)})),o.sort().reverse(),(0,Ji.jsx)("div",{className:"member-alumni",children:(0,Ji.jsxs)($d.div,{className:"member-alumni__alumni-container",variants:{hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},initial:"hidden",animate:r,transition:{duration:.5},ref:t,children:[(0,Ji.jsx)("img",{className:"member-alumni__title",src:lh,alt:""}),(0,Ji.jsx)("div",{children:o.map((function(e){return(0,Ji.jsxs)("div",{className:"alumni-year",children:[(0,Ji.jsxs)("p",{className:"alumni-year__year",children:[e," Alumni"]}),(0,Ji.jsx)("div",{className:"alumni-year__card-container",children:a.map((function(t,n){return function(e,t,n){var r=i.filter((function(n){return n.year===e&&n.type===t}));return 0===r.length?(0,Ji.jsx)(at.Fragment,{},n):(0,Ji.jsxs)("div",{children:[(0,Ji.jsxs)("p",{children:[t,"'s Alumni"]}),(0,Ji.jsx)("ol",{children:r.map((function(e,t){return(0,Ji.jsx)("li",{children:e.name},t)}))})]},n)}(e,t,n)}))})]},e)}))})]})})};var dh=n.p+"static/media/drmis-project.3f28719c88e1a94083776f6d1c6dc8ec.svg";var hh=function(){var e=mn((function(e){return e.resource.projectArr})),t=(0,at.useRef)(null),n=la(t,{once:!0}),r=ju();return(0,at.useEffect)((function(){n&&r.start("visible")}),[n,r]),(0,Ji.jsx)("div",{className:"project",children:(0,Ji.jsxs)($d.div,{className:"project__container",variants:{hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},initial:"hidden",animate:r,transition:{duration:.5},ref:t,children:[(0,Ji.jsx)("img",{className:"project__title",src:dh,alt:""}),(0,Ji.jsx)("div",{className:"content",children:e.map((function(e){return(0,Ji.jsxs)("a",{href:e.link||null,target:"_blank",rel:"noreferrer",children:[(0,Ji.jsxs)("p",{children:[e.start_date," - ",e.end_date,": ",e.description]}),(0,Ji.jsxs)("ul",{children:[e.title&&(0,Ji.jsxs)("li",{children:["Title: ",e.title]}),e.collaboration&&(0,Ji.jsxs)("li",{children:["Collaboration: ",e.collaboration]}),e.scope&&(0,Ji.jsxs)("li",{children:["Scope: ",e.scope]}),e.funder&&(0,Ji.jsxs)("li",{children:["Funder: ",e.funder]})]})]},e.id)}))})]})})};var ph=n.p+"static/media/drmis-publication.64b151ce54db983f7978278a9eb05066.svg";var vh,mh=function(){var e=mn((function(e){return e.resource.researchPublicationArr})),t=(0,at.useRef)(null),n=la(t,{once:!0}),r=ju();(0,at.useEffect)((function(){n&&r.start("visible")}),[n,r]);var i=[];return e.forEach((function(e){var t=e.year;!i.includes(t)&&i.push(t)})),i.sort().reverse(),(0,Ji.jsx)("div",{className:"publication",children:(0,Ji.jsxs)($d.div,{className:"publication__container",variants:{hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},initial:"hidden",animate:r,transition:{duration:.5},ref:t,children:[(0,Ji.jsx)("img",{className:"publication__title",src:ph,alt:""}),(0,Ji.jsx)("div",{className:"content",children:i.map((function(t){return(0,Ji.jsxs)("div",{children:[(0,Ji.jsxs)("p",{children:["Year ",t]}),(0,Ji.jsx)("ul",{children:e.filter((function(e){return e.year===t})).map((function(e,t){return(0,Ji.jsx)("li",{children:(0,Ji.jsx)("a",{href:e.link||null,target:"_blank",rel:"noreferrer",children:e.full_name})},t)}))})]},t)}))})]})})},yh=function(e,t){return(yh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},gh=(function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if("string"===a||"number"===a)e.push(i);else if(Array.isArray(i)&&i.length){var o=n.apply(null,i);o&&e.push(o)}else if("object"===a)for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(vh={path:undefined,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&vh.path)}},vh.exports),vh.exports);function bh(e,t,n){var r,i,a,o,s;function u(){var c=Date.now()-o;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(a,i),a=i=null))}null==t&&(t=100);var c=function(){a=this,i=arguments,o=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(a,i),a=i=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(a,i),a=i=null,clearTimeout(r),r=null)},c}bh.debounce=bh;var wh=bh;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");
2i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".indiana-scroll-container {\n  overflow: auto; }\n  .indiana-scroll-container--dragging {\n    scroll-behavior: auto !important; }\n    .indiana-scroll-container--dragging > * {\n      pointer-events: none;\n      cursor: -webkit-grab;\n      cursor: grab; }\n  .indiana-scroll-container--hide-scrollbars {\n    overflow: hidden;\n    overflow: -moz-scrollbars-none;\n    -ms-overflow-style: none;\n    scrollbar-width: none; }\n    .indiana-scroll-container--hide-scrollbars::-webkit-scrollbar {\n      display: none !important;\n      height: 0 !important;\n      width: 0 !important;\n      background: transparent !important;\n      -webkit-appearance: none !important; }\n  .indiana-scroll-container--native-scroll {\n    overflow: auto; }\n\n.indiana-dragging {\n  cursor: -webkit-grab;\n  cursor: grab; }\n");var kh,xh=(kh="indiana-scroll-container",function(e,t){if(!e)return kh;var n;"string"==typeof e?n=e:t=e;var r=kh;return n&&(r+="__"+n),r+(t?Object.keys(t).reduce((function(e,n){var i=t[n];return i&&(e+=" "+("boolean"==typeof i?r+"--"+n:r+"--"+n+"_"+i)),e}),""):"")}),_h=function(e){function t(t){var n=e.call(this,t)||this;return n.onEndScroll=function(){n.scrolling=!1,!n.pressed&&n.started&&n.processEnd()},n.onScroll=function(e){var t=n.container.current;t.scrollLeft===n.scrollLeft&&t.scrollTop===n.scrollTop||(n.scrolling=!0,n.processScroll(e),n.onEndScroll())},n.onTouchStart=function(e){var t=n.props.nativeMobileScroll;if(n.isDraggable(e.target))if(n.internal=!0,t&&n.scrolling)n.pressed=!0;else{var r=e.touches[0];n.processClick(e,r.clientX,r.clientY),!t&&n.props.stopPropagation&&e.stopPropagation()}},n.onTouchEnd=function(e){var t=n.props.nativeMobileScroll;n.pressed&&(!n.started||n.scrolling&&t?n.pressed=!1:n.processEnd(),n.forceUpdate())},n.onTouchMove=function(e){var t=n.props.nativeMobileScroll;if(n.pressed&&(!t||!n.isMobile)){var r=e.touches[0];r&&n.processMove(e,r.clientX,r.clientY),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation()}},n.onMouseDown=function(e){n.isDraggable(e.target)&&n.isScrollable()&&(n.internal=!0,-1!==n.props.buttons.indexOf(e.button)&&(n.processClick(e,e.clientX,e.clientY),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation()))},n.onMouseMove=function(e){n.pressed&&(n.processMove(e,e.clientX,e.clientY),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation())},n.onMouseUp=function(e){n.pressed&&(n.started?n.processEnd():(n.internal=!1,n.pressed=!1,n.forceUpdate(),n.props.onClick&&n.props.onClick(e)),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation())},n.container=at.createRef(),n.onEndScroll=wh(n.onEndScroll,300),n.scrolling=!1,n.started=!1,n.pressed=!1,n.internal=!1,n.getRef=n.getRef.bind(n),n}return function(e,t){function n(){this.constructor=e}yh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){var e=this.props.nativeMobileScroll,t=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),t.addEventListener("touchstart",this.onTouchStart,{passive:!1}),t.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},t.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},t.prototype.getElement=function(){return this.container.current},t.prototype.isMobileDevice=function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")},t.prototype.isDraggable=function(e){var t=this.props.ignoreElements;if(t){var n=e.closest(t);return null===n||n.contains(this.getElement())}return!0},t.prototype.isScrollable=function(){var e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)},t.prototype.processClick=function(e,t,n){var r=this.container.current;this.scrollLeft=r.scrollLeft,this.scrollTop=r.scrollTop,this.clientX=t,this.clientY=n,this.pressed=!0},t.prototype.processStart=function(e){void 0===e&&(e=!0);var t=this.props.onStartScroll;this.started=!0,e&&document.body.classList.add("indiana-dragging"),t&&t({external:!this.internal}),this.forceUpdate()},t.prototype.processScroll=function(e){if(this.started){var t=this.props.onScroll;t&&t({external:!this.internal})}else this.processStart(!1)},t.prototype.processMove=function(e,t,n){var r=this.props,i=r.horizontal,a=r.vertical,o=r.activationDistance,s=r.onScroll,u=this.container.current;this.started?(i&&(u.scrollLeft-=t-this.clientX),a&&(u.scrollTop-=n-this.clientY),s&&s({external:!this.internal}),this.clientX=t,this.clientY=n,this.scrollLeft=u.scrollLeft,this.scrollTop=u.scrollTop):(i&&Math.abs(t-this.clientX)>o||a&&Math.abs(n-this.clientY)>o)&&(this.clientX=t,this.clientY=n,this.processStart())},t.prototype.processEnd=function(){var e=this.props.onEndScroll;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},t.prototype.getRef=function(e){[this.container,this.props.innerRef].forEach((function(t){t&&("function"==typeof t?t(e):t.current=e)}))},t.prototype.render=function(){var e=this.props,t=e.children,n=e.draggingClassName,r=e.className,i=e.style,a=e.hide
2Scrollbars,o=e.component;return at.createElement(o,{className:gh(r,this.pressed&&n,xh({dragging:this.pressed,"hide-scrollbars":a,"native-scroll":this.isMobile})),style:i,ref:this.getRef,onScroll:this.onScroll},t)},t.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},t}(at.PureComponent),Sh=_h;var Eh=n.p+"static/media/drmis-activity.b92b4455d39569885a0a552812cf0c87.svg";var Ph=function(){var e=mn((function(e){return e.resource.activityArr})),t=w((0,at.useState)(!1),2),n=t[0],r=t[1],i=w((0,at.useState)(),2),a=i[0],o=i[1],s=(0,at.useRef)(null),u=la(s,{once:!0}),c=ju();function l(){o(this)}function f(){r(!0)}return(0,at.useEffect)((function(){u&&c.start("visible")}),[u,c]),(0,Ji.jsxs)("div",{className:"activity",children:[a&&(0,Ji.jsx)("div",{className:"activity__modal-container",children:(0,Ji.jsxs)("div",{className:"modal",children:[(0,Ji.jsx)("img",{src:a,alt:""}),(0,Ji.jsxs)("div",{className:"close-btn",onClick:function(){o()},children:[(0,Ji.jsx)("div",{className:"line slash"}),(0,Ji.jsx)("div",{className:"line back-slash"})]})]})}),(0,Ji.jsxs)($d.div,{className:"activity__container",variants:{hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},initial:"hidden",animate:c,transition:{duration:.5},ref:s,children:[(0,Ji.jsx)("img",{className:"activity__title",src:Eh,alt:""}),(0,Ji.jsx)(Sh,{className:"content",children:e.map((function(e){var t=Gd(e.poster_file_path);return(0,Ji.jsxs)("div",{className:"activity-img ".concat(n?"show":""),children:[(0,Ji.jsx)("img",{src:t,alt:"",className:e.title?"short":"",onClick:l.bind(t),onLoad:f}),e.title&&(e.link?(0,Ji.jsx)("a",{href:e.link,target:"_blank",rel:"noreferrer",children:e.title}):(0,Ji.jsx)("p",{children:e.title}))]},e.id)}))})]})]})};var Th=n.p+"static/media/drmis-recruitment.9215a50fefd5da8cd70457a569655e68.svg";var Ch=function(){var e=mn((function(e){return e.resource.recruitmentArr})),t=w((0,at.useState)(!1),2),n=t[0],r=t[1],i=(0,at.useRef)(null),a=la(i,{once:!0}),o=ju();function s(){r(!0)}return(0,at.useEffect)((function(){a&&o.start("visible")}),[a,o]),(0,Ji.jsx)("div",{className:"recruitment",children:(0,Ji.jsxs)($d.div,{className:"recruitment__container",variants:{hidden:{opacity:0,y:75},visible:{opacity:1,y:0}},initial:"hidden",animate:o,transition:{duration:.5},ref:i,children:[(0,Ji.jsx)("img",{className:"recruitment__title",src:Th,alt:""}),(0,Ji.jsx)("div",{className:"content",children:e.map((function(e){return(0,Ji.jsxs)(at.Fragment,{children:[e.poster_file_path&&(0,Ji.jsx)("img",{src:Gd(e.poster_file_path),alt:"",className:"".concat(n?"show":""),onLoad:s}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("p",{children:e.title}),(0,Ji.jsxs)("ul",{children:[(0,Ji.jsxs)("li",{children:["Number of positions: ",e.number," position"]}),(0,Ji.jsxs)("li",{children:["Working period: ",e.period]}),(0,Ji.jsxs)("li",{children:["Contact: ",e.contact]})]})]})]},e.id)}))})]})})};var Ah=n.p+"static/media/drmis-contact-us.2b7c734cf87351a3be601ceb5028e141.svg";var jh=function(){return(0,Ji.jsx)("div",{className:"contact-us",children:(0,Ji.jsx)("img",{className:"contact-us__title",src:Ah,alt:""})})},Nh=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},Ih={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:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var a=e[i],o=i+1<e.length,s=o?e[i+1]:0,u=i+2<e.length,c=u?e[i+2]:0,l=a>>2,f=(3&a)<<4|s>>4,d=(15&s)<<2|c>>6,h=63&c;u||(h=64,o||(d=64)),r.push(n[l],n[f],n[d],n[h])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Nh(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{var s=e[n++],u=e[n++];
2t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&u)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var a=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,u=++i<e.length?n[e.charAt(i)]:64;if(++i,null==a||null==o||null==s||null==u)throw new Oh;var c=a<<2|o>>4;if(r.push(c),64!==s){var l=o<<4&240|s>>2;if(r.push(l),64!==u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var 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)}}},Oh=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).name="DecodeBase64StringError",e}return f(n)}(P(Error)),Rh=function(e){return function(e){var t=Nh(e);return Ih.encodeByteArray(t,!0)}(e).replace(/\./g,"")},Dh=function(e){try{return Ih.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};var Mh=function(){return function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__},Lh=function(){try{return Mh()||function(){if("undefined"!==typeof process){var e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_STORAGE_URL:"https://firebasestorage.googleapis.com/v0/b/drmis-website.appspot.com/o",REACT_APP_FIREBASE_authDomain:"drmis-website.firebaseapp.com",REACT_APP_FIREBASE_messagingSenderId:"873658491175",REACT_APP_FIREBASE_apiKey:"AIzaSyA9BXkOsZ20JgfJlSO6DKOX8-MWTwDo7Sc",REACT_APP_FIREBASE_appId:"1:873658491175:web:851af69716520f2396c902",REACT_APP_ADMIN_EMAIL:"[email protected]",REACT_APP_FIREBASE_projectId:"drmis-website",REACT_APP_FIREBASE_storageBucket:"drmis-website.appspot.com",REACT_APP_BACKEND_URL:"https://drmis-backend.up.railway.app"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0}}()||function(){if("undefined"!==typeof document){var e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}var t=e&&Dh(e[1]);return t&&JSON.parse(t)}}()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},Uh=function(e){var t,n;return null===(n=null===(t=Lh())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},Fh=function(e){var t=Uh(e);if(t){var n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));var r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]}},Vh=function(){var e;return null===(e=Lh())||void 0===e?void 0:e.config},Bh=function(e){var t;return null===(t=Lh())||void 0===t?void 0:t["_".concat(e)]},zh=function(){function e(){var t=this;s(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return f(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}}}]),e}();function Wh(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function Hh(){var e,t=null===(e=Lh())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(r){return!1}}function qh(){try{return"object"===typeof indexedDB}catch(e){return!1}}var Jh=function(e){h(n,e);var t=y(n);
2function n(e,r,i){var a;return s(this,n),(a=t.call(this,r)).code=e,a.customData=i,a.name="FirebaseError",Object.setPrototypeOf(m(a),n.prototype),Error.captureStackTrace&&Error.captureStackTrace(m(a),Kh.prototype.create),a}return f(n)}(P(Error)),Kh=function(){function e(t,n,r){s(this,e),this.service=t,this.serviceName=n,this.errors=r}return f(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?function(e,t){return e.replace($h,(function(e,n){var r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}(r,t):"Error",a="".concat(this.serviceName,": ").concat(i," (").concat(n,").");return new Jh(n,a,t)}}]),e}();var $h=/\{\$([^}]+)}/g;function Gh(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Yh(e,t){if(e===t)return!0;for(var n=Object.keys(e),r=Object.keys(t),i=0,a=n;i<a.length;i++){var o=a[i];if(!r.includes(o))return!1;var s=e[o],u=t[o];if(Xh(s)&&Xh(u)){if(!Yh(s,u))return!1}else if(s!==u)return!1}for(var c=0,l=r;c<l.length;c++){var f=l[c];if(!n.includes(f))return!1}return!0}function Xh(e){return null!==e&&"object"===typeof e}function Qh(e){for(var t=[],n=function(){var e=w(i[r],2),n=e[0],a=e[1];Array.isArray(a)?a.forEach((function(e){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(a))},r=0,i=Object.entries(e);r<i.length;r++)n();return t.length?"&"+t.join("&"):""}function Zh(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=w(e.split("="),2),r=n[0],i=n[1];t[decodeURIComponent(r)]=decodeURIComponent(i)}})),t}function ep(e){var t=e.indexOf("?");if(!t)return"";var n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}var tp=function(){function e(t,n){var r=this;s(this,e),this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then((function(){t(r)})).catch((function(e){r.error(e)}))}return f(e,[{key:"next",value:function(e){this.forEachObserver((function(t){t.next(e)}))}},{key:"error",value:function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)}},{key:"complete",value:function(){this.forEachObserver((function(e){e.complete()})),this.close()}},{key:"subscribe",value:function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;var n,r=T(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i in e&&"function"===typeof e[i])return!0}}catch(a){r.e(a)}finally{r.f()}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=np),void 0===r.error&&(r.error=np),void 0===r.complete&&(r.complete=np);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),a}},{key:"unsubscribeOne",value:function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}},{key:"forEachObserver",value:function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)}},{key:"sendOne",value:function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))}},{key:"close",value:function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))}}]),e}();function np(){}function rp(e){return e&&e._delegate?e._delegate:e}var ip=function(){function e(t,n,r){s(this,e),this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return f(e,[{key:"setInstantiationMode",value:function(e){return this.instantiationMode=e,this}},{key:"setMultipleInstances",value:function(e){return this.multipleInstances=e,this}},{key:"setServiceProps",value:function(e){return this.serviceProps=e,this}},{key:"setInstanceCreatedCallback",value:function(e){return this.onInstanceCreated=e,this}}]),e}(),ap="[DEFAULT]",op=function(){function e(t,n){s(this,e),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}return f(e,[{key:"get",value:function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new zh;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(t).promise}},{key:"getImmediate",value:function(e){var t,n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}},{key:"getComponent",value:function(){return this.component}},{key:"setComponent",value:function(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:ap})}catch(u){}var t,n=T(this.instancesDeferred.entries());try{for(n.s();!(t=n.n()).done;){var r=w(t.value,2),i=r[0],a=r[1],o=this.normalizeInstanceIdentifier(i);try{var s=this.getOrInitializeService({instanceIdentifier:o});a.resolve(s)}catch(u){}}}catch(c){n.e(c)}finally{n.f()}}}},{key:"clearInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ap;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}},{key:"delete",value:function(){var e=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.from(this.instances.values()),e.next=3,Promise.all([].
2concat(o(t.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()}))),o(t.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()})))));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isComponentSet",value:function(){return null!=this.component}},{key:"isInitialized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ap;return this.instances.has(e)}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ap;return this.instancesOptions.get(e)||{}}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error("".concat(this.name,"(").concat(r,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));var i,a=this.getOrInitializeService({instanceIdentifier:r,options:n}),o=T(this.instancesDeferred.entries());try{for(o.s();!(i=o.n()).done;){var s=w(i.value,2),u=s[0],c=s[1];r===this.normalizeInstanceIdentifier(u)&&c.resolve(a)}}catch(l){o.e(l)}finally{o.f()}return a}},{key:"onInit",value:function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var a=this.instances.get(r);return a&&e(a,r),function(){i.delete(e)}}},{key:"invokeOnInitCallbacks",value:function(e,t){var n=this.onInitCallbacks.get(t);if(n){var r,i=T(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a(e,t)}catch(Mk){}}}catch(o){i.e(o)}finally{i.f()}}}},{key:"getOrInitializeService",value:function(e){var t,n=e.instanceIdentifier,r=e.options,i=void 0===r?{}:r,a=this.instances.get(n);if(!a&&this.component&&(a=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===ap?void 0:t),options:i}),this.instances.set(n,a),this.instancesOptions.set(n,i),this.invokeOnInitCallbacks(a,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,a)}catch(Mk){}return a||null}},{key:"normalizeInstanceIdentifier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ap;return this.component?this.component.multipleInstances?e:ap:e}},{key:"shouldAutoInitialize",value:function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}]),e}();var sp,up,cp=function(){function e(t){s(this,e),this.name=t,this.providers=new Map}return f(e,[{key:"addComponent",value:function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}},{key:"addOrOverwriteComponent",value:function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}},{key:"getProvider",value:function(e){if(this.providers.has(e))return this.providers.get(e);var t=new op(e,this);return this.providers.set(e,t),t}},{key:"getProviders",value:function(){return Array.from(this.providers.values())}}]),e}(),lp=[];!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"}(up||(up={}));var fp={debug:up.DEBUG,verbose:up.VERBOSE,info:up.INFO,warn:up.WARN,error:up.ERROR,silent:up.SILENT},dp=up.INFO,hp=(S(sp={},up.DEBUG,"log"),S(sp,up.VERBOSE,"log"),S(sp,up.INFO,"info"),S(sp,up.WARN,"warn"),S(sp,up.ERROR,"error"),sp),pp=function(e,t){if(!(t<e.logLevel)){var n=(new Date).toISOString(),r=hp[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var i,a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];(i=console)[r].apply(i,["[".concat(n,"]  ").concat(e.name,":")].concat(o))}},vp=function(){function e(t){s(this,e),this.name=t,this._logLevel=dp,this._logHandler=pp,this._userLogHandler=null,lp.push(this)}return f(e,[{key:"logLevel",get:function(){return this._logLevel},set:function(e){if(!(e in up))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}},{key:"setLogLevel",value:function(e){this._logLevel="string"===typeof e?fp[e]:e}},{key:"logHandler",get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}},{key:"userLogHandler",get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,up.DEBUG].concat(t)),this._logHandler.apply(this,[this,up.DEBUG].concat(t))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,up.VERBOSE].concat(t)),this._logHandler.apply(this,[this,up.VERBOSE].concat(t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,up.INFO].concat(t)),this._logHandler.apply(this,[this,up.INFO].concat(t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,up.WARN].concat(t)),this._logHandler.apply(this,[this,up.WARN].concat(t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,up.ERROR].concat(t)),this._logHandler.apply(this,[this,up.ERROR].concat(t))}}]),e}();var mp,yp,gp=function(e,t){return t.some((function(t){return e instanceof t}))};var bp=new WeakMap,wp=new WeakMap,kp=new WeakMap,xp=new WeakMap,_p=new WeakMap;var Sp={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return wp.get(e);if("objectStoreNames"===t)return e.objectStoreNames||kp.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Tp(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function Ep(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(yp||(yp=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(Cp(this),n),Tp(bp.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
2return Tp(e.apply(Cp(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=e.call.apply(e,[Cp(this),t].concat(r));return kp.set(a,t.sort?t.sort():[t]),Tp(a)}}function Pp(e){return"function"===typeof e?Ep(e):(e instanceof IDBTransaction&&function(e){if(!wp.has(e)){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=function(){t(),r()},a=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));wp.set(e,t)}}(e),gp(e,mp||(mp=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Sp):e)}function Tp(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("success",i),e.removeEventListener("error",a)},i=function(){t(Tp(e.result)),r()},a=function(){n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((function(t){t instanceof IDBCursor&&bp.set(t,e)})).catch((function(){})),_p.set(t,e),t}(e);if(xp.has(e))return xp.get(e);var t=Pp(e);return t!==e&&(xp.set(e,t),_p.set(t,e)),t}var Cp=function(e){return _p.get(e)};var Ap,jp,Np=["get","getKey","getAll","getAllKeys","count"],Ip=["put","add","delete","clear"],Op=new Map;function Rp(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(Op.get(t))return Op.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,i=Ip.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(i||Np.includes(n))){var a=function(){var e=_(k().mark((function e(t){var a,o,s,u,c,l,f=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=this.transaction(t,i?"readwrite":"readonly"),s=o.store,u=f.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=f[l];return r&&(s=s.index(c.shift())),e.next=6,Promise.all([(a=s)[n].apply(a,c),i&&o.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Op.set(t,a),a}}}Sp=function(e){return Cr(Cr({},e),{},{get:function(t,n,r){return Rp(t,n)||e.get(t,n,r)},has:function(t,n){return!!Rp(t,n)||e.has(t,n)}})}(Sp);var Dp=function(){function e(t){s(this,e),this.container=t}return f(e,[{key:"getPlatformInfoString",value:function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null})).filter((function(e){return e})).join(" ")}}]),e}();var Mp="@firebase/app",Lp="0.9.9",Up=new vp("@firebase/app"),Fp="[DEFAULT]",Vp=(S(Ap={},Mp,"fire-core"),S(Ap,"@firebase/app-compat","fire-core-compat"),S(Ap,"@firebase/analytics","fire-analytics"),S(Ap,"@firebase/analytics-compat","fire-analytics-compat"),S(Ap,"@firebase/app-check","fire-app-check"),S(Ap,"@firebase/app-check-compat","fire-app-check-compat"),S(Ap,"@firebase/auth","fire-auth"),S(Ap,"@firebase/auth-compat","fire-auth-compat"),S(Ap,"@firebase/database","fire-rtdb"),S(Ap,"@firebase/database-compat","fire-rtdb-compat"),S(Ap,"@firebase/functions","fire-fn"),S(Ap,"@firebase/functions-compat","fire-fn-compat"),S(Ap,"@firebase/installations","fire-iid"),S(Ap,"@firebase/installations-compat","fire-iid-compat"),S(Ap,"@firebase/messaging","fire-fcm"),S(Ap,"@firebase/messaging-compat","fire-fcm-compat"),S(Ap,"@firebase/performance","fire-perf"),S(Ap,"@firebase/performance-compat","fire-perf-compat"),S(Ap,"@firebase/remote-config","fire-rc"),S(Ap,"@firebase/remote-config-compat","fire-rc-compat"),S(Ap,"@firebase/storage","fire-gcs"),S(Ap,"@firebase/storage-compat","fire-gcs-compat"),S(Ap,"@firebase/firestore","fire-fst"),S(Ap,"@firebase/firestore-compat","fire-fst-compat"),S(Ap,"fire-js","fire-js"),S(Ap,"firebase","fire-js-all"),Ap),Bp=new Map,zp=new Map;function Wp(e,t){try{e.container.addComponent(t)}catch(n){Up.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function Hp(e){var t=e.name;if(zp.has(t))return Up.debug("There were multiple attempts to register component ".concat(t,".")),!1;zp.set(t,e);var n,r=T(Bp.values());try{for(r.s();!(n=r.n()).done;){Wp(n.value,e)}}catch(i){r.e(i)}finally{r.f()}return!0}function qp(e,t){var n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}var Jp=(S(jp={},"no-app","No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),S(jp,"bad-app-name","Illegal App name: '{$appName}"),S(jp,"duplicate-app","Firebase App named '{$appName}' already exists with different options or config"),S(jp,"app-deleted","Firebase App named '{$appName}' already deleted"),S(jp,"no-options","Need to provide options, when not being deployed to hosting via source."),S(jp,"invalid-app-argument","firebase.{$appName}() takes either no argument or a Firebase App instance."),S(jp,"invalid-log-argument","First argument to `onLog` must be null or a function."),S(jp,"idb-open","Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}."),S(jp,"idb-get","Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}."),S(jp,"idb-set","Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}."),S(jp,"idb-delete","Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."),jp),Kp=new Kh("app","Firebase",Jp),$p=function(){function e(t,n,r){var i=this;s(this,e),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 ip("app",(function(){return i}),"PUBLIC"))}return f(e,[{key:"automaticDataCollectionEnabled",get:function(){return this.checkDestroyed(),this._automaticDataCollectionEnabled},set:function(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}},{key:"name",get:function(){return this.checkDestroyed(),this._name}},{key:"options",get:function(){return this.checkDestroyed(),this._options}},{key:"config",get:function(){return this.checkDestroyed(),this._config}},{key:"container",get:function(){return this._container}}
2,{key:"isDeleted",get:function(){return this._isDeleted},set:function(e){this._isDeleted=e}},{key:"checkDestroyed",value:function(){if(this.isDeleted)throw Kp.create("app-deleted",{appName:this._name})}}]),e}(),Gp="9.21.0";function Yp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;"object"!==typeof t&&(t={name:t});var r=Object.assign({name:Fp,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw Kp.create("bad-app-name",{appName:String(i)});if(n||(n=Vh()),!n)throw Kp.create("no-options");var a=Bp.get(i);if(a){if(Yh(n,a.options)&&Yh(r,a.config))return a;throw Kp.create("duplicate-app",{appName:i})}var o,s=new cp(i),u=T(zp.values());try{for(u.s();!(o=u.n()).done;){var c=o.value;s.addComponent(c)}}catch(f){u.e(f)}finally{u.f()}var l=new $p(n,r,s);return Bp.set(i,l),l}function Xp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fp,t=Bp.get(e);if(!t&&e===Fp)return Yp();if(!t)throw Kp.create("no-app",{appName:e});return t}function Qp(e,t,n){var r,i=null!==(r=Vp[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));var a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){var s=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return a&&s.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),a&&o&&s.push("and"),o&&s.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void Up.warn(s.join(" "))}Hp(new ip("".concat(i,"-version"),(function(){return{library:i,version:t}}),"VERSION"))}var Zp="firebase-heartbeat-database",ev=1,tv="firebase-heartbeat-store",nv=null;function rv(){return nv||(nv=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,a=n.blocking,o=n.terminated,s=indexedDB.open(e,t),u=Tp(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(Tp(s.result),e.oldVersion,e.newVersion,Tp(s.transaction),e)})),r&&s.addEventListener("blocked",(function(e){return r(e.oldVersion,e.newVersion,e)})),u.then((function(e){o&&e.addEventListener("close",(function(){return o()})),a&&e.addEventListener("versionchange",(function(e){return a(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),u}(Zp,ev,{upgrade:function(e,t){if(0===t)e.createObjectStore(tv)}}).catch((function(e){throw Kp.create("idb-open",{originalErrorMessage:e.message})}))),nv}function iv(e){return av.apply(this,arguments)}function av(){return av=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rv();case 3:return n=e.sent,e.abrupt("return",n.transaction(tv).objectStore(tv).get(uv(t)));case 7:e.prev=7,e.t0=e.catch(0),e.t0 instanceof Jh?Up.warn(e.t0.message):(r=Kp.create("idb-get",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),Up.warn(r.message));case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),av.apply(this,arguments)}function ov(e,t){return sv.apply(this,arguments)}function sv(){return sv=_(k().mark((function e(t,n){var r,i,a,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rv();case 3:return r=e.sent,i=r.transaction(tv,"readwrite"),a=i.objectStore(tv),e.next=8,a.put(n,uv(t));case 8:return e.abrupt("return",i.done);case 11:e.prev=11,e.t0=e.catch(0),e.t0 instanceof Jh?Up.warn(e.t0.message):(o=Kp.create("idb-set",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),Up.warn(o.message));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),sv.apply(this,arguments)}function uv(e){return"".concat(e.name,"!").concat(e.options.appId)}var cv=1024,lv=function(){function e(t){var n=this;s(this,e),this.container=t,this._heartbeatsCache=null;var r=this.container.getProvider("app").getImmediate();this._storage=new pv(r),this._heartbeatsCachePromise=this._storage.read().then((function(e){return n._heartbeatsCache=e,e}))}return f(e,[{key:"triggerHeartbeat",value:function(){var e=_(k().mark((function e(){var t,n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.container.getProvider("platform-logger").getImmediate(),n=t.getPlatformInfoString(),r=fv(),null!==this._heartbeatsCache){e.next=7;break}return e.next=6,this._heartbeatsCachePromise;case 6:this._heartbeatsCache=e.sent;case 7:if(this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((function(e){return e.date===r}))){e.next=11;break}return e.abrupt("return");case 11:this._heartbeatsCache.heartbeats.push({date:r,agent:n});case 12:return this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((function(e){var t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),e.abrupt("return",this._storage.overwrite(this._heartbeatsCache));case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getHeartbeatsHeader",value:function(){var e=_(k().mark((function e(){var t,n,r,i,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this._heartbeatsCache){e.next=3;break}return e.next=3,this._heartbeatsCachePromise;case 3:if(null!==this._heartbeatsCache&&0!==this._heartbeatsCache.heartbeats.length){e.next=5;break}return e.abrupt("return","");
2case 5:if(t=fv(),n=dv(this._heartbeatsCache.heartbeats),r=n.heartbeatsToSend,i=n.unsentEntries,a=Rh(JSON.stringify({version:2,heartbeats:r})),this._heartbeatsCache.lastSentHeartbeatDate=t,!(i.length>0)){e.next=15;break}return this._heartbeatsCache.heartbeats=i,e.next=13,this._storage.overwrite(this._heartbeatsCache);case 13:e.next=17;break;case 15:this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache);case 17:return e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function fv(){return(new Date).toISOString().substring(0,10)}function dv(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cv,r=[],i=e.slice(),a=T(e);try{var o=function(){var e=t.value,a=r.find((function(t){return t.agent===e.agent}));if(a){if(a.dates.push(e.date),vv(r)>n)return a.dates.pop(),"break"}else if(r.push({agent:e.agent,dates:[e.date]}),vv(r)>n)return r.pop(),"break";i=i.slice(1)};for(a.s();!(t=a.n()).done;){if("break"===o())break}}catch(s){a.e(s)}finally{a.f()}return{heartbeatsToSend:r,unsentEntries:i}}var hv,pv=function(){function e(t){s(this,e),this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}return f(e,[{key:"runIndexedDBEnvironmentCheck",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:if(qh()){e.next=4;break}return e.abrupt("return",!1);case 4:return e.abrupt("return",new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(a){t(a)}})).then((function(){return!0})).catch((function(){return!1})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return",{heartbeats:[]});case 7:return e.next=9,iv(this.app);case 9:return t=e.sent,e.abrupt("return",t||{heartbeats:[]});case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"overwrite",value:function(){var e=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",ov(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:t.heartbeats}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"add",value:function(){var e=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",ov(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:[].concat(o(r.heartbeats),o(t.heartbeats))}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();function vv(e){return Rh(JSON.stringify({version:2,heartbeats:e})).length}hv="",Hp(new ip("platform-logger",(function(e){return new Dp(e)}),"PRIVATE")),Hp(new ip("heartbeat",(function(e){return new lv(e)}),"PRIVATE")),Qp(Mp,Lp,hv),Qp(Mp,Lp,"esm2017"),Qp("fire-js","");function mv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(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}Object.create;var yv;Object.create;function gv(){return S({},"dependent-sdk-initialized-before-auth","Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.")}var bv=gv,wv=new Kh("auth","Firebase",gv()),kv=new vp("@firebase/auth");function xv(e){if(kv.logLevel<=up.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];kv.warn.apply(kv,["Auth (".concat(Gp,"): ").concat(e)].concat(n))}}function _v(e){if(kv.logLevel<=up.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];kv.error.apply(kv,["Auth (".concat(Gp,"): ").concat(e)].concat(n))}}function Sv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Cv.apply(void 0,[e].concat(n))}function Ev(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Cv.apply(void 0,[e].concat(n))}function Pv(e,t,n){var r=Object.assign(Object.assign({},bv()),S({},t,n));return new Kh("auth","Firebase",r).create(t,{appName:e.name})}function Tv(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&Sv(e,"argument-error"),Pv(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}function Cv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){var i,a=n[0],s=o(n.slice(1));
2return s[0]&&(s[0].appName=e.name),(i=e._errorFactory).create.apply(i,[a].concat(o(s)))}return wv.create.apply(wv,[e].concat(n))}function Av(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw Cv.apply(void 0,[t].concat(r))}}function jv(e){var t="INTERNAL ASSERTION FAILED: "+e;throw _v(t),new Error(t)}function Nv(e,t){e||jv(t)}function Iv(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function Ov(){return"http:"===Rv()||"https:"===Rv()}function Rv(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}function Dv(){return!("undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(Ov()||function(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine}var Mv=function(){function e(t,n){s(this,e),this.shortDelay=t,this.longDelay=n,Nv(n>t,"Short delay should be less than long delay!"),this.isMobile="undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Wh())||"object"===typeof navigator&&"ReactNative"===navigator.product}return f(e,[{key:"get",value:function(){return Dv()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}]),e}();function Lv(e,t){Nv(e.emulator,"Emulator should always be set here");var n=e.emulator.url;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}var Uv=function(){function e(){s(this,e)}return f(e,null,[{key:"initialize",value:function(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}},{key:"fetch",value:function(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:void jv("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"headers",value:function(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:void jv("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"response",value:function(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:void jv("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}]),e}(),Fv=(S(yv={},"CREDENTIAL_MISMATCH","custom-token-mismatch"),S(yv,"MISSING_CUSTOM_TOKEN","internal-error"),S(yv,"INVALID_IDENTIFIER","invalid-email"),S(yv,"MISSING_CONTINUE_URI","internal-error"),S(yv,"INVALID_PASSWORD","wrong-password"),S(yv,"MISSING_PASSWORD","missing-password"),S(yv,"EMAIL_EXISTS","email-already-in-use"),S(yv,"PASSWORD_LOGIN_DISABLED","operation-not-allowed"),S(yv,"INVALID_IDP_RESPONSE","invalid-credential"),S(yv,"INVALID_PENDING_TOKEN","invalid-credential"),S(yv,"FEDERATED_USER_ID_ALREADY_LINKED","credential-already-in-use"),S(yv,"MISSING_REQ_TYPE","internal-error"),S(yv,"EMAIL_NOT_FOUND","user-not-found"),S(yv,"RESET_PASSWORD_EXCEED_LIMIT","too-many-requests"),S(yv,"EXPIRED_OOB_CODE","expired-action-code"),S(yv,"INVALID_OOB_CODE","invalid-action-code"),S(yv,"MISSING_OOB_CODE","internal-error"),S(yv,"CREDENTIAL_TOO_OLD_LOGIN_AGAIN","requires-recent-login"),S(yv,"INVALID_ID_TOKEN","invalid-user-token"),S(yv,"TOKEN_EXPIRED","user-token-expired"),S(yv,"USER_NOT_FOUND","user-token-expired"),S(yv,"TOO_MANY_ATTEMPTS_TRY_LATER","too-many-requests"),S(yv,"INVALID_CODE","invalid-verification-code"),S(yv,"INVALID_SESSION_INFO","invalid-verification-id"),S(yv,"INVALID_TEMPORARY_PROOF","invalid-credential"),S(yv,"MISSING_SESSION_INFO","missing-verification-id"),S(yv,"SESSION_EXPIRED","code-expired"),S(yv,"MISSING_ANDROID_PACKAGE_NAME","missing-android-pkg-name"),S(yv,"UNAUTHORIZED_DOMAIN","unauthorized-continue-uri"),S(yv,"INVALID_OAUTH_CLIENT_ID","invalid-oauth-client-id"),S(yv,"ADMIN_ONLY_OPERATION","admin-restricted-operation"),S(yv,"INVALID_MFA_PENDING_CREDENTIAL","invali
2d-multi-factor-session"),S(yv,"MFA_ENROLLMENT_NOT_FOUND","multi-factor-info-not-found"),S(yv,"MISSING_MFA_ENROLLMENT_ID","missing-multi-factor-info"),S(yv,"MISSING_MFA_PENDING_CREDENTIAL","missing-multi-factor-session"),S(yv,"SECOND_FACTOR_EXISTS","second-factor-already-in-use"),S(yv,"SECOND_FACTOR_LIMIT_EXCEEDED","maximum-second-factor-count-exceeded"),S(yv,"BLOCKING_FUNCTION_ERROR_RESPONSE","internal-error"),S(yv,"RECAPTCHA_NOT_ENABLED","recaptcha-not-enabled"),S(yv,"MISSING_RECAPTCHA_TOKEN","missing-recaptcha-token"),S(yv,"INVALID_RECAPTCHA_TOKEN","invalid-recaptcha-token"),S(yv,"INVALID_RECAPTCHA_ACTION","invalid-recaptcha-action"),S(yv,"MISSING_CLIENT_TYPE","missing-client-type"),S(yv,"MISSING_RECAPTCHA_VERSION","missing-recaptcha-version"),S(yv,"INVALID_RECAPTCHA_VERSION","invalid-recaptcha-version"),S(yv,"INVALID_REQ_TYPE","invalid-req-type"),yv),Vv=new Mv(3e4,6e4);function Bv(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}function zv(e,t,n,r){return Wv.apply(this,arguments)}function Wv(){return Wv=_(k().mark((function e(t,n,r,i){var a,o=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>4&&void 0!==o[4]?o[4]:{},e.abrupt("return",Hv(t,a,_(k().mark((function e(){var a,o,s,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={},o={},i&&("GET"===n?o=i:a={body:JSON.stringify(i)}),s=Qh(Object.assign({key:t.config.apiKey},o)).slice(1),e.next=6,t._getAdditionalHeaders();case 6:return(u=e.sent)["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),e.abrupt("return",Uv.fetch()($v(t,t.config.apiHost,r,s),Object.assign({method:n,headers:u,referrerPolicy:"no-referrer"},a)));case 10:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e)}))),Wv.apply(this,arguments)}function Hv(e,t,n){return qv.apply(this,arguments)}function qv(){return qv=_(k().mark((function e(t,n,r){var i,a,o,s,u,c,l,f,d,h;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t._canInitEmulator=!1,i=Object.assign(Object.assign({},Fv),n),e.prev=2,a=new Gv(t),e.next=6,Promise.race([r(),a.promise]);case 6:return o=e.sent,a.clearNetworkTimeout(),e.next=10,o.json();case 10:if(!("needConfirmation"in(s=e.sent))){e.next=13;break}throw Yv(t,"account-exists-with-different-credential",s);case 13:if(!o.ok||"errorMessage"in s){e.next=17;break}return e.abrupt("return",s);case 17:if(u=o.ok?s.errorMessage:s.error.message,c=u.split(" : "),l=w(c,2),f=l[0],d=l[1],"FEDERATED_USER_ID_ALREADY_LINKED"!==f){e.next=23;break}throw Yv(t,"credential-already-in-use",s);case 23:if("EMAIL_EXISTS"!==f){e.next=27;break}throw Yv(t,"email-already-in-use",s);case 27:if("USER_DISABLED"!==f){e.next=29;break}throw Yv(t,"user-disabled",s);case 29:if(h=i[f]||f.toLowerCase().replace(/[_\s]+/g,"-"),!d){e.next=34;break}throw Pv(t,h,d);case 34:Sv(t,h);case 35:e.next=42;break;case 37:if(e.prev=37,e.t0=e.catch(2),!(e.t0 instanceof Jh)){e.next=41;break}throw e.t0;case 41:Sv(t,"network-request-failed",{message:String(e.t0)});case 42:case"end":return e.stop()}}),e,null,[[2,37]])}))),qv.apply(this,arguments)}function Jv(e,t,n,r){return Kv.apply(this,arguments)}function Kv(){return Kv=_(k().mark((function e(t,n,r,i){var a,o,s=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>4&&void 0!==s[4]?s[4]:{},e.next=3,zv(t,n,r,i,a);case 3:return"mfaPendingCredential"in(o=e.sent)&&Sv(t,"multi-factor-auth-required",{_serverResponse:o}),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)}))),Kv.apply(this,arguments)}function $v(e,t,n,r){var i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?Lv(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}var Gv=function(){function e(t){var n=this;s(this,e),this.auth=t,this.timer=null,this.promise=new Promise((function(e,t){n.timer=setTimeout((function(){return t(Ev(n.auth,"network-request-failed"))}),Vv.get())}))}return f(e,[{key:"clearNetworkTimeout",value:function(){clearTimeout(this.timer)}}]),e}();
2function Yv(e,t,n){var r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);var i=Ev(e,t,r);return i.customData._tokenResponse=n,i}function Xv(e,t){return Qv.apply(this,arguments)}function Qv(){return Qv=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",zv(t,"POST","/v1/accounts:delete",n));case 1:case"end":return e.stop()}}),e)}))),Qv.apply(this,arguments)}function Zv(e,t){return em.apply(this,arguments)}function em(){return em=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",zv(t,"POST","/v1/accounts:lookup",n));case 1:case"end":return e.stop()}}),e)}))),em.apply(this,arguments)}function tm(e){if(e)try{var t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(n){}}function nm(){return nm=_(k().mark((function e(t){var n,r,i,a,o,s,u=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],r=rp(t),e.next=4,r.getIdToken(n);case 4:return i=e.sent,Av((a=im(i))&&a.exp&&a.auth_time&&a.iat,r.auth,"internal-error"),o="object"===typeof a.firebase?a.firebase:void 0,s=null===o||void 0===o?void 0:o.sign_in_provider,e.abrupt("return",{claims:a,token:i,authTime:tm(rm(a.auth_time)),issuedAtTime:tm(rm(a.iat)),expirationTime:tm(rm(a.exp)),signInProvider:s||null,signInSecondFactor:(null===o||void 0===o?void 0:o.sign_in_second_factor)||null});case 10:case"end":return e.stop()}}),e)}))),nm.apply(this,arguments)}function rm(e){return 1e3*Number(e)}function im(e){var t=w(e.split("."),3),n=t[0],r=t[1],i=t[2];if(void 0===n||void 0===r||void 0===i)return _v("JWT malformed, contained fewer than 3 sections"),null;try{var a=Dh(r);return a?JSON.parse(a):(_v("Failed to decode base64 JWT payload"),null)}catch(o){return _v("Caught error parsing JWT payload as JSON",null===o||void 0===o?void 0:o.toString()),null}}function am(e,t){return om.apply(this,arguments)}function om(){return om=_(k().mark((function e(t,n){var r=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.length>2&&void 0!==r[2]&&r[2])){e.next=3;break}return e.abrupt("return",n);case 3:return e.prev=3,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof Jh&&sm(e.t0))){e.next=15;break}if(t.auth.currentUser!==t){e.next=15;break}return e.next=15,t.auth.signOut();case 15:throw e.t0;case 16:case"end":return e.stop()}}),e,null,[[3,9]])}))),om.apply(this,arguments)}function sm(e){var t=e.code;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}var um=function(){function e(t){s(this,e),this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}return f(e,[{key:"_start",value:function(){this.isRunning||(this.isRunning=!0,this.schedule())}},{key:"_stop",value:function(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}},{key:"getInterval",value:function(e){var t;if(e){var n=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),n}this.errorBackoff=3e4;var r=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,r)}},{key:"schedule",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isRunning){var n=this.getInterval(t);this.timerId=setTimeout(_(k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.iteration();case 2:case"end":return t.stop()}}),t)}))),n)}}},{key:"iteration",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.user.getIdToken(!0);case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")&&this.schedule(!0),e.abrupt("return");case 9:this.schedule();case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()}]),e}(),cm=function(){function e(t,n){s(this,e),this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}return f(e,[{key:"_initializeTime",value:function(){this.lastSignInTime=tm(this.lastLoginAt),this.creationTime=tm(this.createdAt)}},{key:"_copy",value:function(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}},{key:"toJSON",value:function(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}]),e}();function lm(e){return fm.apply(this,arguments)}function fm(){return fm=_(k().mark((function e(t){var n,r,i,a,o,s,u,c,l,f,d;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.auth,e.next=3,t.getIdToken();case 3:return i=e.sent,e.next=6,am(t,Zv(r,{idToken:i}));case 6:Av(null===(a=e.sent)||void 0===a?void 0:a.users.length,r,"internal-error"),o=a.users[0],t._notifyReloadListener(o),s=(null===(n=o.providerUserInfo)||void 0===n?void 0:n.length)?o.providerUserInfo.map((function(e){var t=e.providerId,n=mv(e,["providerId"]);
2return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})):[],u=hm(t.providerData,s),c=t.isAnonymous,l=!(t.email&&o.passwordHash)&&!(null===u||void 0===u?void 0:u.length),f=!!c&&l,d={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:u,metadata:new cm(o.createdAt,o.lastLoginAt),isAnonymous:f},Object.assign(t,d);case 17:case"end":return e.stop()}}),e)}))),fm.apply(this,arguments)}function dm(){return(dm=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=rp(t),e.next=3,lm(n);case 3:return e.next=5,n.auth._persistUserIfCurrent(n);case 5:n.auth._notifyListenersIfCurrent(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hm(e,t){var n=e.filter((function(e){return!t.some((function(t){return t.providerId===e.providerId}))}));return[].concat(o(n),o(t))}function pm(e,t){return vm.apply(this,arguments)}function vm(){return vm=_(k().mark((function e(t,n){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hv(t,{},_(k().mark((function e(){var r,i,a,o,s,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Qh({grant_type:"refresh_token",refresh_token:n}).slice(1),i=t.config,a=i.tokenApiHost,o=i.apiKey,s=$v(t,a,"/v1/token","key=".concat(o)),e.next=5,t._getAdditionalHeaders();case 5:return(u=e.sent)["Content-Type"]="application/x-www-form-urlencoded",e.abrupt("return",Uv.fetch()(s,{method:"POST",headers:u,body:r}));case 8:case"end":return e.stop()}}),e)}))));case 2:return r=e.sent,e.abrupt("return",{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token});case 4:case"end":return e.stop()}}),e)}))),vm.apply(this,arguments)}var mm=function(){function e(){s(this,e),this.refreshToken=null,this.accessToken=null,this.expirationTime=null}return f(e,[{key:"isExpired",get:function(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}},{key:"updateFromServerResponse",value:function(e){Av(e.idToken,"internal-error"),Av("undefined"!==typeof e.idToken,"internal-error"),Av("undefined"!==typeof e.refreshToken,"internal-error");var t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){var t=im(e);return Av(t,"internal-error"),Av("undefined"!==typeof t.exp,"internal-error"),Av("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}},{key:"getToken",value:function(){var e=_(k().mark((function e(t){var n,r=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],Av(!this.accessToken||this.refreshToken,t,"user-token-expired"),n||!this.accessToken||this.isExpired){e.next=4;break}return e.abrupt("return",this.accessToken);case 4:if(!this.refreshToken){e.next=8;break}return e.next=7,this.refresh(t,this.refreshToken);case 7:return e.abrupt("return",this.accessToken);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearRefreshToken",value:function(){this.refreshToken=null}},{key:"refresh",value:function(){var e=_(k().mark((function e(t,n){var r,i,a,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pm(t,n);case 2:r=e.sent,i=r.accessToken,a=r.refreshToken,o=r.expiresIn,this.updateTokensAndExpiration(i,a,Number(o));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"updateTokensAndExpiration",value:function(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}},{key:"toJSON",value:function(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}},{key:"_assign",value:function(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}},{key:"_clone",value:function(){return Object.assign(new e,this.toJSON())}},{key:"_performRefresh",value:function(){return jv("not implemented")}}],[{key:"fromJSON",value:function(t,n){var r=n.refreshToken,i=n.accessToken,a=n.expirationTime,o=new e;return r&&(Av("string"===typeof r,"internal-error",{appName:t}),o.refreshToken=r),i&&(Av("string"===typeof i,"internal-error",{appName:t}),o.accessToken=i),a&&(Av("number"===typeof a,"internal-error",{appName:t}),o.expirationTime=a),o}}]),e}();function ym(e,t){Av("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}var gm=function(){function e(t){s(this,e);var n=t.uid,r=t.auth,i=t.stsTokenManager,a=mv(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new um(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=a.displayName||null,this.email=a.email||null,this.emailVerified=a.emailVerified||!1,this.phoneNumber=a.phoneNumber||null,this.photoURL=a.photoURL||null,this.isAnonymous=a.isAnonymous||!1,this.tenantId=a.tenantId||null,this.providerData=a.providerData?o(a.providerData):[],this.metadata=new cm(a.createdAt||void 0,a.lastLoginAt||void 0)}return f(e,[{key:"getIdToken",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,am(this,this.stsTokenManager.getToken(this.auth,t));case 2:if(Av(n=e.sent,this.auth,"internal-error"),this.accessToken===n){e.next=9;break}return this.accessToken=n,e.next=8,this.auth._persistUserIfCurrent(this);case 8:this.auth._notifyListenersIfCurrent(this);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getIdTokenResult",value:function(e){return function(e){return nm.apply(this,arguments)}(this,e)}},{key:"reload",value:function(){return function(e){return dm.apply(this,arguments)}(this)}},{key:"_assign",value:function(e){this!==e&&(Av(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
2otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((function(e){return Object.assign({},e)})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}},{key:"_clone",value:function(t){var n=new e(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}},{key:"_onReload",value:function(e){Av(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}},{key:"_notifyReloadListener",value:function(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}},{key:"_startProactiveRefresh",value:function(){this.proactiveRefresh._start()}},{key:"_stopProactiveRefresh",value:function(){this.proactiveRefresh._stop()}},{key:"_updateTokensIfNecessary",value:function(){var e=_(k().mark((function e(t){var n,r,i=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],r=!1,t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),!n){e.next=6;break}return e.next=6,lm(this);case 6:return e.next=8,this.auth._persistUserIfCurrent(this);case 8:r&&this.auth._notifyListenersIfCurrent(this);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getIdToken();case 2:return t=e.sent,e.next=5,am(this,Xv(this.auth,{idToken:t}));case 5:return this.stsTokenManager.clearRefreshToken(),e.abrupt("return",this.auth.signOut());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toJSON",value:function(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((function(e){return Object.assign({},e)})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}},{key:"refreshToken",get:function(){return this.stsTokenManager.refreshToken||""}}],[{key:"_fromJSON",value:function(t,n){var r,i,a,o,s,u,c,l,f=null!==(r=n.displayName)&&void 0!==r?r:void 0,d=null!==(i=n.email)&&void 0!==i?i:void 0,h=null!==(a=n.phoneNumber)&&void 0!==a?a:void 0,p=null!==(o=n.photoURL)&&void 0!==o?o:void 0,v=null!==(s=n.tenantId)&&void 0!==s?s:void 0,m=null!==(u=n._redirectEventId)&&void 0!==u?u:void 0,y=null!==(c=n.createdAt)&&void 0!==c?c:void 0,g=null!==(l=n.lastLoginAt)&&void 0!==l?l:void 0,b=n.uid,w=n.emailVerified,k=n.isAnonymous,x=n.providerData,_=n.stsTokenManager;Av(b&&_,t,"internal-error");var S=mm.fromJSON(this.name,_);Av("string"===typeof b,t,"internal-error"),ym(f,t.name),ym(d,t.name),Av("boolean"===typeof w,t,"internal-error"),Av("boolean"===typeof k,t,"internal-error"),ym(h,t.name),ym(p,t.name),ym(v,t.name),ym(m,t.name),ym(y,t.name),ym(g,t.name);var E=new e({uid:b,auth:t,email:d,emailVerified:w,displayName:f,isAnonymous:k,photoURL:p,phoneNumber:h,tenantId:v,stsTokenManager:S,createdAt:y,lastLoginAt:g});return x&&Array.isArray(x)&&(E.providerData=x.map((function(e){return Object.assign({},e)}))),m&&(E._redirectEventId=m),E}},{key:"_fromIdTokenResponse",value:function(){var t=_(k().mark((function t(n,r){var i,a,o,s=arguments;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>2&&void 0!==s[2]&&s[2],(a=new mm).updateFromServerResponse(r),o=new e({uid:r.localId,auth:n,stsTokenManager:a,isAnonymous:i}),t.next=6,lm(o);case 6:return t.abrupt("return",o);case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}]),e}(),bm=new Map;function wm(e){Nv(e instanceof Function,"Expected a class definition");var t=bm.get(e);return t?(Nv(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,bm.set(e,t),t)}var km=function(){function e(){s(this,e),this.type="NONE",this.storage={}}return f(e,[{key:"_isAvailable",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.storage[t]=n;case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.storage[t],e.abrupt("return",void 0===n?null:n);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete this.storage[t];case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),e}();km.type="NONE";var xm=km;function _m(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}var Sm=function(){function e(t,n,r){s(this,e),this.persistence=t,this.auth=n,this.userKey=r;var i=this.auth,a=i.config,o=i.name;this.fullUserKey=_m(this.userKey,a.apiKey,o),this.fullPersistenceKey=_m("persistence",a.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}return f(e,[{key:"setCurrentUser",value:function(e){return this.persistence._set(this.fullUserKey,e.toJSON())}},{key:"getCurrentUser",value:function(){var e=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.persistence._get(this.fullUserKey);case 2:return t=e.sent,e.abrupt("return",t?gm._fromJSON(this.auth,t):null);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeCurrentUser",value:function(){return this.persistence._remove(this.fullUserKey)}},{key:"savePersistenceForRedirect",value:function(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}},{key:"setPersistence",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistence!==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getCurrentUser();case 4:return n=e.sent,e.next=7,this.removeCurrentUser();case 7:if(this.persistence=t,!n){e.next=10;break}return e.abrupt("return",this.setCurrentUser(n));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}}],[{key:"create",value:function(){var t=_(k().mark((function t(n,r){var i,a,o,s,u,c,l,f,d,h,p,v=arguments;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=v.length>2&&void 0!==v[2]?v[2]:"authUser",r.length){t.next=3;break}
2return t.abrupt("return",new e(wm(xm),n,i));case 3:return t.next=5,Promise.all(r.map(function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._isAvailable();case 2:if(!e.sent){e.next=4;break}return e.abrupt("return",t);case 4:return e.abrupt("return",void 0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:a=t.sent.filter((function(e){return e})),o=a[0]||wm(xm),s=_m(i,n.config.apiKey,n.name),u=null,c=T(r),t.prev=10,c.s();case 12:if((l=c.n()).done){t.next=29;break}return f=l.value,t.prev=14,t.next=17,f._get(s);case 17:if(!(d=t.sent)){t.next=23;break}return h=gm._fromJSON(n,d),f!==o&&(u=h),o=f,t.abrupt("break",29);case 23:t.next=27;break;case 25:t.prev=25,t.t0=t.catch(14);case 27:t.next=12;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(10),c.e(t.t1);case 34:return t.prev=34,c.f(),t.finish(34);case 37:if(p=a.filter((function(e){return e._shouldAllowMigration})),o._shouldAllowMigration&&p.length){t.next=40;break}return t.abrupt("return",new e(o,n,i));case 40:if(o=p[0],!u){t.next=44;break}return t.next=44,o._set(s,u.toJSON());case 44:return t.next=46,Promise.all(r.map(function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===o){e.next=8;break}return e.prev=1,e.next=4,t._remove(s);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}()));case 46:return t.abrupt("return",new e(o,n,i));case 47:case"end":return t.stop()}}),t,null,[[10,31,34,37],[14,25]])})));return function(e,n){return t.apply(this,arguments)}}()}]),e}();function Em(e){var t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(Am(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(Pm(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(Nm(t))return"Blackberry";if(Im(t))return"Webos";if(Tm(t))return"Safari";if((t.includes("chrome/")||Cm(t))&&!t.includes("edge/"))return"Chrome";if(jm(t))return"Android";var n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);return 2===(null===n||void 0===n?void 0:n.length)?n[1]:"Other"}function Pm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return/firefox\//i.test(e)}function Tm(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Cm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return/crios\//i.test(e)}function Am(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return/iemobile/i.test(e)}function jm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return/android/i.test(e)}function Nm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return/blackberry/i.test(e)}function Im(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return/webos/i.test(e)}function Om(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Rm(){return function(){var e=Wh();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function Dm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh();return Om(e)||jm(e)||Im(e)||Nm(e)||/windows phone/i.test(e)||Am(e)}function Mm(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=Em(Wh());break;case"Worker":t="".concat(Em(Wh()),"-").concat(e);break;default:t=e}var r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(Gp,"/").concat(r)}function Lm(e,t){return Um.apply(this,arguments)}function Um(){return Um=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",zv(t,"GET","/v2/recaptchaConfig",Bv(t,n)));case 1:case"end":return e.stop()}}),e)}))),Um.apply(this,arguments)}function Fm(e){return void 0!==e&&void 0!==e.enterprise}var Vm=f((function e(t){if(s(this,e),this.siteKey="",this.emailPasswordEnabled=!1,void 0===t.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.emailPasswordEnabled=t.recaptchaEnforcementState.some((function(e){return"EMAIL_PASSWORD_PROVIDER"===e.provider&&"OFF"!==e.enforcementState}))}));function Bm(e){return new Promise((function(t,n){var r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=function(e){var t=Ev("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)}))}function zm(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}var Wm=function(){function e(t){s(this,e),this.type="recaptcha-enterprise",this.auth=$m(t)}return f(e,[{key:"verify",value:function(){var e=_(k().mark((function e(){var t,n,r,i,a,o=this,s=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=function(e,n,r){var i=window.grecaptcha;Fm(i)?i.enterprise.ready((function(){i.enterprise.execute(e,{action:t}).then((function(e){n(e)})).catch((function(){n("NO_RECAPTCHA")}))})):r(Error("No reCAPTCHA enterprise script loaded."))},i=function(){return i=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=5;break}if(null!=t.tenantId||null==t._agentRecaptchaConfig){e.next=3;break}return e.abrupt("return",t._agentRecaptchaConfig.siteKey);case 3:if(null==t.tenantId||void 0===t._tenantRecaptchaConfigs[t.tenantId]){e.next=5;break}return e.abrupt("return",t._tenantRecaptchaConfigs[t.tenantId].siteKey);case 5:return e.abrupt("return",new Promise(function(){var e=_(k().mark((function e(n,r){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Lm(t,{clientType:"CLIENT_TYPE_WEB",ver
2sion:"RECAPTCHA_ENTERPRISE"}).then((function(e){if(void 0!==e.recaptchaKey){var i=new Vm(e);return null==t.tenantId?t._agentRecaptchaConfig=i:t._tenantRecaptchaConfigs[t.tenantId]=i,n(i.siteKey)}r(new Error("recaptcha Enterprise site key undefined"))})).catch((function(e){r(e)}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 6:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)},r=function(e){return i.apply(this,arguments)},t=s.length>0&&void 0!==s[0]?s[0]:"verify",n=s.length>1&&void 0!==s[1]&&s[1],e.abrupt("return",new Promise((function(e,t){r(o.auth).then((function(r){if(!n&&Fm(window.grecaptcha))a(r,e,t);else{if("undefined"===typeof window)return void t(new Error("RecaptchaVerifier is only supported in browser"));Bm("https://www.google.com/recaptcha/enterprise.js?render="+r).then((function(){a(r,e,t)})).catch((function(e){t(e)}))}})).catch((function(e){t(e)}))})));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),e}();function Hm(e,t,n){return qm.apply(this,arguments)}function qm(){return qm=_(k().mark((function e(t,n,r){var i,a,o,s,u=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=u.length>3&&void 0!==u[3]&&u[3],a=new Wm(t),e.prev=2,e.next=5,a.verify(r);case 5:o=e.sent,e.next=13;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,a.verify(r,!0);case 12:o=e.sent;case 13:return s=Object.assign({},n),i?Object.assign(s,{captchaResp:o}):Object.assign(s,{captchaResponse:o}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),e.abrupt("return",s);case 18:case"end":return e.stop()}}),e,null,[[2,8]])}))),qm.apply(this,arguments)}var Jm=function(){function e(t){s(this,e),this.auth=t,this.queue=[]}return f(e,[{key:"pushCallback",value:function(e,t){var n=this,r=function(t){return new Promise((function(n,r){try{n(e(t))}catch(i){r(i)}}))};r.onAbort=t,this.queue.push(r);var i=this.queue.length-1;return function(){n.queue[i]=function(){return Promise.resolve()}}}},{key:"runMiddleware",value:function(){var e=_(k().mark((function e(t){var n,r,i,a,o,s,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.auth.currentUser!==t){e.next=2;break}return e.abrupt("return");case 2:n=[],e.prev=3,r=T(this.queue),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=11,a(t);case 11:a.onAbort&&n.push(a.onAbort);case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:e.next=30;break;case 24:e.prev=24,e.t1=e.catch(3),n.reverse(),o=T(n);try{for(o.s();!(s=o.n()).done;){u=s.value;try{u()}catch(Hn){}}}catch(c){o.e(c)}finally{o.f()}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===e.t1||void 0===e.t1?void 0:e.t1.message});case 30:case"end":return e.stop()}}),e,this,[[3,24],[5,16,19,22]])})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Km=function(){function e(t,n,r,i){s(this,e),this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Gm(this),this.idTokenSubscription=new Gm(this),this.beforeStateQueue=new Jm(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=wv,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=i.sdkClientVersion}return f(e,[{key:"_initializeWithPersistence",value:function(e,t){var n=this;return t&&(this._popupRedirectResolver=wm(t)),this._initializationPromise=this.queue(_(k().mark((function r(){var i,a;return k().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n._deleted){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,Sm.create(n,e);case 4:if(n.persistenceManager=r.sent,!n._deleted){r.next=7;break}return r.abrupt("return");case 7:if(!(null===(i=n._popupRedirectResolver)||void 0===i?void 0:i._shouldInitProactively)){r.next=15;break}return r.prev=8,r.next=11,n._popupRedirectResolver._initialize(n);case 11:r.next=15;break;case 13:r.prev=13,r.t0=r.catch(8);case 15:return r.next=17,n.initializeCurrentUser(t);case 17:if(n.lastNotifiedUid=(null===(a=n.currentUser)||void 0===a?void 0:a.uid)||null,!n._deleted){r.next=20;break}return r.abrupt("return");case 20:n._isInitialized=!0;case 21:case"end":return r.stop()}}),r,null,[[8,13]])})))),this._initializationPromise}},{key:"_onStorageEvent",value:function(){var e=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._deleted){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.assertedPersistence.getCurrentUser();case 4:if(t=e.sent,this.currentUser||t){e.next=7;break}return e.abrupt("return");case 7:if(!this.currentUser||!t||this.currentUser.uid!==t.uid){e.next=12;break}return this._currentUser._assign(t),e.next=11,this.currentUser.getIdToken();case 11:return e.abrupt("return");case 12:return e.next=14,this._updateCurrentUser(t,!0);case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeCurrentUser",value:function(){var e=_(k().mark((function e(t){var n,r,i,a,o,s,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.assertedPersistence.getCurrentUser();case 2:if(r=e.sent,i=r,a=!1,!t||!this.config.authDomain){e.next=14;break}return e.next=8,this.getOrInitRedirectPersistenceManager();case 8:return o=null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId,s=null===i||void 0===i?void 0:i._redirectEventId,e.next=12,this.tryRedirectSignIn(t);case 12:u=e.sent,o&&o!==s||!(null===u||void 0===u?void 0:u.user)||(i=u.user,a=!0);case 14:if(i){e.next=16;break}return e.abrupt("return",this.directlySetCurrentUser(null));
2case 16:if(i._redirectEventId){e.next=32;break}if(!a){e.next=27;break}return e.prev=18,e.next=21,this.beforeStateQueue.runMiddleware(i);case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(18),i=r,this._popupRedirectResolver._overrideRedirectResult(this,(function(){return Promise.reject(e.t0)}));case 27:if(!i){e.next=31;break}return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 31:return e.abrupt("return",this.directlySetCurrentUser(null));case 32:return Av(this._popupRedirectResolver,this,"argument-error"),e.next=35,this.getOrInitRedirectPersistenceManager();case 35:if(!this.redirectUser||this.redirectUser._redirectEventId!==i._redirectEventId){e.next=37;break}return e.abrupt("return",this.directlySetCurrentUser(i));case 37:return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 38:case"end":return e.stop()}}),e,this,[[18,23]])})));return function(t){return e.apply(this,arguments)}}()},{key:"tryRedirectSignIn",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,e.next=4,this._popupRedirectResolver._completeRedirectFn(this,t,!0);case 4:n=e.sent,e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this._setRedirectUser(null);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"reloadAndSetCurrentUserOrClear",value:function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,lm(t);case 3:e.next=9;break;case 5:if(e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")){e.next=9;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 9:return e.abrupt("return",this.directlySetCurrentUser(t));case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()},{key:"useDeviceLanguage",value:function(){this.languageCode=function(){if("undefined"===typeof navigator)return null;var e=navigator;return e.languages&&e.languages[0]||e.language||null}()}},{key:"_delete",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._deleted=!0;case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateCurrentUser",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t?rp(t):null)&&Av(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),e.abrupt("return",this._updateCurrentUser(n&&n._clone(this)));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_updateCurrentUser",value:function(){var e=_(k().mark((function e(t){var n,r=this,i=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],!this._deleted){e.next=3;break}return e.abrupt("return");case 3:if(t&&Av(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n){e.next=7;break}return e.next=7,this.beforeStateQueue.runMiddleware(t);case 7:return e.abrupt("return",this.queue(_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.directlySetCurrentUser(t);case 2:r.notifyAuthListeners();case 3:case"end":return e.stop()}}),e)})))));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.beforeStateQueue.runMiddleware(null);case 2:if(!this.redirectPersistenceManager&&!this._popupRedirectResolver){e.next=5;break}return e.next=5,this._setRedirectUser(null);case 5:return e.abrupt("return",this._updateCurrentUser(null,!0));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPersistence",value:function(e){var t=this;return this.queue(_(k().mark((function n(){return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.assertedPersistence.setPersistence(wm(e));case 2:case"end":return n.stop()}}),n)}))))}},{key:"initializeRecaptchaConfig",value:function(){var e=_(k().mark((function e(){var t,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Lm(this,{clientType:"CLIENT_TYPE_WEB",ver
2sion:"RECAPTCHA_ENTERPRISE"});case 2:t=e.sent,n=new Vm(t),null==this.tenantId?this._agentRecaptchaConfig=n:this._tenantRecaptchaConfigs[this.tenantId]=n,n.emailPasswordEnabled&&new Wm(this).verify();case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getRecaptchaConfig",value:function(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}},{key:"_getPersistence",value:function(){return this.assertedPersistence.persistence.type}},{key:"_updateErrorMap",value:function(e){this._errorFactory=new Kh("auth","Firebase",e())}},{key:"onAuthStateChanged",value:function(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}},{key:"beforeAuthStateChanged",value:function(e,t){return this.beforeStateQueue.pushCallback(e,t)}},{key:"onIdTokenChanged",value:function(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}},{key:"toJSON",value:function(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}},{key:"_setRedirectUser",value:function(){var e=_(k().mark((function e(t,n){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getOrInitRedirectPersistenceManager(n);case 2:return r=e.sent,e.abrupt("return",null===t?r.removeCurrentUser():r.setCurrentUser(t));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getOrInitRedirectPersistenceManager",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.redirectPersistenceManager){e.next=9;break}return Av(n=t&&wm(t)||this._popupRedirectResolver,this,"argument-error"),e.next=5,Sm.create(this,[wm(n._redirectPersistence)],"redirectUser");case 5:return this.redirectPersistenceManager=e.sent,e.next=8,this.redirectPersistenceManager.getCurrentUser();case 8:this.redirectUser=e.sent;case 9:return e.abrupt("return",this.redirectPersistenceManager);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_redirectUserForId",value:function(){var e=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isInitialized){e.next=3;break}return e.next=3,this.queue(_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))));case 3:if((null===(n=this._currentUser)||void 0===n?void 0:n._redirectEventId)!==t){e.next=5;break}return e.abrupt("return",this._currentUser);case 5:if((null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)!==t){e.next=7;break}return e.abrupt("return",this.redirectUser);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_persistUserIfCurrent",value:function(){var e=_(k().mark((function e(t){var n=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==this.currentUser){e.next=2;break}return e.abrupt("return",this.queue(_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.directlySetCurrentUser(t));case 1:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_notifyListenersIfCurrent",value:function(e){e===this.currentUser&&this.notifyAuthListeners()}},{key:"_key",value:function(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}},{key:"_startProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}},{key:"_stopProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}},{key:"_currentUser",get:function(){return this.currentUser}},{key:"notifyAuthListeners",value:function(){var e,t;if(this._isInitialized){this.idTokenSubscription.next(this.currentUser);var n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}}},{key:"registerStateListener",value:function(e,t,n,r){var i=this;if(this._deleted)return function(){};var a="function"===typeof t?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return Av(o,this,"internal-error"),o.then((function(){return a(i.currentUser)})),"function"===typeof t?e.addObserver(t,n,r):e.addObserver(t)}},{key:"directlySetCurrentUser",value:function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,!t){e.next=8;break}return e.next=6,this.assertedPersistence.setCurrentUser(t);case 6:e.next=10;break;case 8:return e.next=10,this.assertedPersistence.removeCurrentUser();case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"queue",value:function(e){return this.operations=this.operations.then(e,e),this.operations}},{key:"assertedPersistence",get:function(){return Av(this.persistenceManager,this,"internal-error"),this.persistenceManager}},{key:"_logFramework",value:function(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Mm(this.config.clientPlatform,this._getFrameworks()))}},{key:"_getFrameworks",value:function(){return this.frameworks}},{key:"_getAdditionalHeaders",value:function(){var e=_(k().mark((function e(){var t,n,r,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=S({},"X-Client-Version",this.clientVersion),this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId),e.next=4,null===(t=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();case 4:return(r=e.sent)&&(n["X-Firebase-Client"]=r),e.next=8,this._getAppCheckToken();case 8:return(i=e.sent)&&(n["X-Firebase-AppCheck"]=i),e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getAppCheckToken",value:function(){var e=_(k().mark((function e(){var t,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getToken();case 2:return(null===(n=e.sent)||void 0===n?void 0:n.error)&&xv("Error while retrieving App Check token: ".concat(n.error)),e.abrupt("return",null===n||void 0===n?void 0:n.token);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function $m(e){return rp(e)}var Gm=function(){function e(t){var n=this;s(this,e),this.auth=t,this.observer=null,this.addObserver=function(e,t){var n=new tp(e,t);return n.subscribe.bind(n)}((function(e){return n.observer=e}))}return f(e,[{key:"next",get:function(){return Av(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}]),e}();function Ym(e,t,n){var r=$m(e);Av(r._canInitEmulator,r,"emulator-config-failed"),Av(/^https?:\/\//.test(t),r,"invali
2d-emulator-scheme");var i=!!(null===n||void 0===n?void 0:n.disableWarnings),a=Xm(t),o=function(e){var t=Xm(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};var r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){var a=i[1];return{host:a,port:Qm(r.substr(a.length+1))}}var o=w(r.split(":"),2);return{host:o[0],port:Qm(o[1])}}(t),s=o.host,u=o.port,c=null===u?"":":".concat(u);r.config.emulator={url:"".concat(a,"//").concat(s).concat(c,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:u,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){var e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function Xm(e){var t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function Qm(e){if(!e)return null;var t=Number(e);return isNaN(t)?null:t}var Zm=function(){function e(t,n){s(this,e),this.providerId=t,this.signInMethod=n}return f(e,[{key:"toJSON",value:function(){return jv("not implemented")}},{key:"_getIdTokenResponse",value:function(e){return jv("not implemented")}},{key:"_linkToIdToken",value:function(e,t){return jv("not implemented")}},{key:"_getReauthenticationResolver",value:function(e){return jv("not implemented")}}]),e}();function ey(e,t){return ty.apply(this,arguments)}function ty(){return ty=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",zv(t,"POST","/v1/accounts:update",n));case 1:case"end":return e.stop()}}),e)}))),ty.apply(this,arguments)}function ny(e,t){return ry.apply(this,arguments)}function ry(){return ry=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Jv(t,"POST","/v1/accounts:signInWithPassword",Bv(t,n)));case 1:case"end":return e.stop()}}),e)}))),ry.apply(this,arguments)}function iy(e,t){return ay.apply(this,arguments)}function ay(){return ay=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Jv(t,"POST","/v1/accounts:signInWithEmailLink",Bv(t,n)));case 1:case"end":return e.stop()}}),e)}))),ay.apply(this,arguments)}function oy(e,t){return sy.apply(this,arguments)}function sy(){return sy=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Jv(t,"POST","/v1/accounts:signInWithEmailLink",Bv(t,n)));case 1:case"end":return e.stop()}}),e)}))),sy.apply(this,arguments)}var uy=function(e){h(n,e);var t=y(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return s(this,n),(a=t.call(this,"password",i))._email=e,a._password=r,a._tenantId=o,a}return f(n,[{key:"toJSON",value:function(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}},{key:"_getIdTokenResponse",value:function(){var e=_(k().mark((function e(t){var n,r,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?12:13;break;case 3:if(r={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},!(null===(n=t._getRecaptchaConfig())||void 0===n?void 0:n.emailPasswordEnabled)){e.next=11;break}return e.next=7,Hm(t,r,"signInWithPassword");case 7:return i=e.sent,e.abrupt("return",ny(t,i));case 11:return e.abrupt("return",ny(t,r).catch(function(){var e=_(k().mark((function e(n){var i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.code!=="auth/".concat("missing-rec
2aptcha-token")){e.next=8;break}return console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow."),e.next=4,Hm(t,r,"signInWithPassword");case 4:return i=e.sent,e.abrupt("return",ny(t,i));case 8:return e.abrupt("return",Promise.reject(n));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 12:return e.abrupt("return",iy(t,{email:this._email,oobCode:this._password}));case 13:Sv(t,"internal-error");case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_linkToIdToken",value:function(){var e=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",ey(t,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",oy(t,{idToken:n,email:this._email,oobCode:this._password}));case 5:Sv(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_getReauthenticationResolver",value:function(e){return this._getIdTokenResponse(e)}}],[{key:"_fromEmailAndPassword",value:function(e,t){return new n(e,t,"password")}},{key:"_fromEmailAndCode",value:function(e,t){return new n(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}}]),n}(Zm);function cy(e,t){return ly.apply(this,arguments)}function ly(){return ly=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Jv(t,"POST","/v1/accounts:signInWithIdp",Bv(t,n)));case 1:case"end":return e.stop()}}),e)}))),ly.apply(this,arguments)}var fy=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).pendingToken=null,e}return f(n,[{key:"toJSON",value:function(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
2once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}},{key:"_getIdTokenResponse",value:function(e){return cy(e,this.buildRequest())}},{key:"_linkToIdToken",value:function(e,t){var n=this.buildRequest();return n.idToken=t,cy(e,n)}},{key:"_getReauthenticationResolver",value:function(e){var t=this.buildRequest();return t.autoCreate=!1,cy(e,t)}},{key:"buildRequest",value:function(){var e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{var t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=Qh(t)}return e}}],[{key:"_fromParams",value:function(e){var t=new n(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Sv("argument-error"),t}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e,r=t.providerId,i=t.signInMethod,a=mv(t,["providerId","signInMethod"]);if(!r||!i)return null;var o=new n(r,i);return o.idToken=a.idToken||void 0,o.accessToken=a.accessToken||void 0,o.secret=a.secret,o.nonce=a.nonce,o.pendingToken=a.pendingToken||null,o}}]),n}(Zm);function dy(e,t){return hy.apply(this,arguments)}function hy(){return hy=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",zv(t,"POST","/v1/accounts:sendVerificationCode",Bv(t,n)));case 1:case"end":return e.stop()}}),e)}))),hy.apply(this,arguments)}function py(){return py=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Jv(t,"POST","/v1/accounts:signInWithPhoneNumber",Bv(t,n)));case 1:case"end":return e.stop()}}),e)}))),py.apply(this,arguments)}function vy(){return vy=_(k().mark((function e(t,n){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jv(t,"POST","/v1/accounts:signInWithPhoneNumber",Bv(t,n));case 2:if(!(r=e.sent).temporaryProof){e.next=5;break}throw Yv(t,"account-exists-with-different-credential",r);case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),vy.apply(this,arguments)}var my=S({},"USER_NOT_FOUND","user-not-found");function yy(){return yy=_(k().mark((function e(t,n){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.assign(Object.assign({},n),{operation:"REAUTH"}),e.abrupt("return",Jv(t,"POST","/v1/accounts:signInWithPhoneNumber",Bv(t,r),my));case 2:case"end":return e.stop()}}),e)}))),yy.apply(this,arguments)}var gy=function(e){h(n,e);var t=y(n);function n(e){var r;return s(this,n),(r=t.call(this,"phone","phone")).params=e,r}return f(n,[{key:"_getIdTokenResponse",value:function(e){return function(e,t){return py.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_linkToIdToken",value:function(e,t){return function(e,t){return vy.apply(this,arguments)}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}},{key:"_getReauthenticationResolver",value:function(e){return function(e,t){return yy.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_makeVerificationRequest",value:function(){var e=this.params,t=e.temporaryProof,n=e.phoneNumber,r=e.verificationId,i=e.verificationCode;return t&&n?{temporaryProof:t,phoneNumber:n}:{sessionInfo:r,code:i}}},{key:"toJSON",value:function(){var e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}}],[{key:"_fromVerification",value:function(e,t){return new n({verificationId:e,verificationCode:t})}}
2,{key:"_fromTokenResponse",value:function(e,t){return new n({phoneNumber:e,temporaryProof:t})}},{key:"fromJSON",value:function(e){"string"===typeof e&&(e=JSON.parse(e));var t=e,r=t.verificationId,i=t.verificationCode,a=t.phoneNumber,o=t.temporaryProof;return i||r||a||o?new n({verificationId:r,verificationCode:i,phoneNumber:a,temporaryProof:o}):null}}]),n}(Zm);var by=function(){function e(t){var n,r,i,a,o,u;s(this,e);var c=Zh(ep(t)),l=null!==(n=c.apiKey)&&void 0!==n?n:null,f=null!==(r=c.oobCode)&&void 0!==r?r:null,d=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(i=c.mode)&&void 0!==i?i:null);Av(l&&f&&d,"argument-error"),this.apiKey=l,this.operation=d,this.code=f,this.continueUrl=null!==(a=c.continueUrl)&&void 0!==a?a:null,this.languageCode=null!==(o=c.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(u=c.tenantId)&&void 0!==u?u:null}return f(e,null,[{key:"parseLink",value:function(t){var n=function(e){var t=Zh(ep(e)).link,n=t?Zh(ep(t)).deep_link_id:null,r=Zh(ep(e)).deep_link_id;return(r?Zh(ep(r)).link:null)||r||n||t||e}(t);try{return new e(n)}catch(Mk){return null}}}]),e}();var wy=function(){function e(){s(this,e),this.providerId=e.PROVIDER_ID}return f(e,null,[{key:"credential",value:function(e,t){return uy._fromEmailAndPassword(e,t)}},{key:"credentialWithLink",value:function(e,t){var n=by.parseLink(t);return Av(n,"argument-error"),uy._fromEmailAndCode(e,n.code,n.tenantId)}}]),e}();wy.PROVIDER_ID="password",wy.EMAIL_PASSWORD_SIGN_IN_METHOD="password",wy.EMAIL_LINK_SIGN_IN_METHOD="emailLink";var ky=function(){function e(t){s(this,e),this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}return f(e,[{key:"setDefaultLanguage",value:function(e){this.defaultLanguageCode=e}},{key:"setCustomParameters",value:function(e){return this.customParameters=e,this}},{key:"getCustomParameters",value:function(){return this.customParameters}}]),e}(),xy=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).scopes=[],e}return f(n,[{key:"addScope",value:function(e){return this.scopes.includes(e)||this.scopes.push(e),this}},{key:"getScopes",value:function(){return o(this.scopes)}}]),n}(ky),_y=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.call(this,"facebook.com")}return f(n,null,[{key:"credential",value:function(e){return fy._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Mk){return null}}}]),n}(xy);_y.FACEBOOK_SIGN_IN_METHOD="facebook.com",_y.PROVIDER_ID="facebook.com";var Sy=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.call(this,"google.com")).addScope("profile"),e}return f(n,null,[{key:"credential",value:function(e,t){return fy._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthIdToken,i=t.oauthAccessToken;if(!r&&!i)return null;try{return n.credential(r,i)}catch(Mk){return null}}}]),n}(xy);Sy.GOOGLE_SIGN_IN_METHOD="google.com",Sy.PROVIDER_ID="google.com";var Ey=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.call(this,"github.com")}return f(n,null,[{key:"credential",value:function(e){return fy._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GITHUB_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Mk){return null}}}]),n}(xy);Ey.GITHUB_SIGN_IN_METHOD="github.com",Ey.PROVIDER_ID="github.com";var Py=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.call(this,"twitter.com")}return f(n,null,[{key:"credential",value:function(e,t){return fy._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthAccessToken,i=t.oauthTokenSecret;if(!r||!i)return null;try{return n.credential(r,i)}catch(Mk){return null}}}]),n}(xy);Py.TWITTER_SIGN_IN_METHOD="twitter.com",Py.PROVIDER_ID="twitter.com";var Ty=function(){function e(t){s(this,e),this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._token
2Response,this.operationType=t.operationType}return f(e,null,[{key:"_fromIdTokenResponse",value:function(){var t=_(k().mark((function t(n,r,i){var a,o,s,u,c=arguments;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>3&&void 0!==c[3]&&c[3],t.next=3,gm._fromIdTokenResponse(n,i,a);case 3:return o=t.sent,s=Cy(i),u=new e({user:o,providerId:s,_tokenResponse:i,operationType:r}),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"_forOperation",value:function(){var t=_(k().mark((function t(n,r,i){var a;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._updateTokensIfNecessary(i,!0);case 2:return a=Cy(i),t.abrupt("return",new e({user:n,providerId:a,_tokenResponse:i,operationType:r}));case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()}]),e}();function Cy(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}var Ay=function(e){h(n,e);var t=y(n);function n(e,r,i,a){var o,u;return s(this,n),(o=t.call(this,r.code,r.message)).operationType=i,o.user=a,Object.setPrototypeOf(m(o),n.prototype),o.customData={appName:e.name,tenantId:null!==(u=e.tenantId)&&void 0!==u?u:void 0,_serverResponse:r.customData._serverResponse,operationType:i},o}return f(n,null,[{key:"_fromErrorAndOperation",value:function(e,t,r,i){return new n(e,t,r,i)}}]),n}(Jh);function jy(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((function(n){if(n.code==="auth/".concat("multi-factor-auth-required"))throw Ay._fromErrorAndOperation(e,n,t,r);throw n}))}function Ny(e,t){return Iy.apply(this,arguments)}function Iy(){return Iy=_(k().mark((function e(t,n){var r,i,a=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]&&a[2],e.t0=am,e.t1=t,e.t2=n,e.t3=t.auth,e.next=7,t.getIdToken();case 7:return e.t4=e.sent,e.t5=e.t2._linkToIdToken.call(e.t2,e.t3,e.t4),e.t6=r,e.next=12,(0,e.t0)(e.t1,e.t5,e.t6);case 12:return i=e.sent,e.abrupt("return",Ty._forOperation(t,"link",i));case 14:case"end":return e.stop()}}),e)}))),Iy.apply(this,arguments)}function Oy(e,t){return Ry.apply(this,arguments)}function Ry(){return Ry=_(k().mark((function e(t,n){var r,i,a,o,s,u,c=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]&&c[2],i=t.auth,a="reauthenticate",e.prev=3,e.next=6,am(t,jy(i,a,n,t),r);case 6:return Av((o=e.sent).idToken,i,"internal-error"),Av(s=im(o.idToken),i,"internal-error"),u=s.sub,Av(t.uid===u,i,"user-mismatch"),e.abrupt("return",Ty._forOperation(t,a,o));case 15:throw e.prev=15,e.t0=e.catch(3),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("user-not-found")&&Sv(i,"user-mismatch"),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,15]])}))),Ry.apply(this,arguments)}function Dy(e,t){return My.apply(this,arguments)}function My(){return My=_(k().mark((function e(t,n){var r,i,a,o,s=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],i="signIn",e.next=4,jy(t,i,n);case 4:return a=e.sent,e.next=7,Ty._fromIdTokenResponse(t,i,a);case 7:if(o=e.sent,r){e.next=11;break}return e.next=11,t._updateCurrentUser(o.user);case 11:return e.abrupt("return",o);case 12:case"end":return e.stop()}}),e)}))),My.apply(this,arguments)}function Ly(e,t){return zv(e,"POST","/v2/accounts/mfaEnrollment:start",Bv(e,t))}function Uy(e,t){return zv(e,"POST","/v2/accounts/mfaEnrollment:start",Bv(e,t))}function Fy(e,t){return zv(e,"POST","/v2/accounts/mfaEnrollment:finalize",Bv(e,t))}new WeakMap;var Vy="__sak",By=function(){function e(t,n){s(this,e),this.storageRetriever=t,this.type=n}return f(e,[{key:"_isAvailable",value:function(){try{return this.storage?(this.storage.setItem(Vy,"1"),this.storage.removeItem(Vy),Promise.resolve(!0)):Promise.resolve(!1)}catch(Mk){return Promise.resolve(!1)}}},{key:"_set",value:function(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}},{key:"_get",value:function(e){var t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}},{key:"_remove",value:function(e){return this.storage.removeItem(e),Promise.resolve()}},{key:"storage",get:function(){return this.storageRetriever()}}]),e}();var zy=function(e){h(n,e);var t=y(n);function n(){var e;return s(this,n),(e=t.call(this,(function(){return window.localStorage}),"LOCAL")).boundEventHandler=function(t,n){return e.onStorageEvent(t,n)},e.listeners={},e.localCache={},e.pollTimer=null,e.safariLocalStorageNotSynced=function(){var e=Wh();return Tm(e)||Om(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),e.fallbackToPolling=Dm(),e._shouldAllowMigration=!0,e}return f(n,[{key:"forAllChangedKeys",value:function(e){for(var t=0,n=Object.keys(this.listeners);t<n.length;t++){var r=n[t],i=this.storage.getItem(r),a=this.localCache[r];i!==a&&e(r,a,i)}}},{key:"onStorageEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.key){var r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){var i=this.storage.getItem(r);if(e.newValue!==i)null!==e.newValue?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}var a=function(){var e=t.storage.getItem(r);(n||t.localCache[r]!==e)&&t.notifyListeners(r,e)},o=this.storage.getItem(r);Rm()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(a,10):a()}else this.forAllChangedKeys((function(e,n,r){t.notifyListeners(e,r)}))}},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t?JSON.parse(t):t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval((function(){e.forAllChangedKeys((function(t,n,r){e.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)}))}),1e3)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"attachListener",value:function(){window.addEventListener("storage",this.boundEventHandler)}},{key:"detachListener",value:function(){window.removeEventListener("storage",this.boundEventHandler)}},{key:"_addListener",value:function(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}},{key:"_removeListener",value:function(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}},{key:"_set",value:function(){var e=_(k().mark((function e(t,r){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wd(p(n.prototype),"_set",this).call(this,t,r);case 2:this.localCache[t]=JSON.stringify(r);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=_(k().mark((function e(t){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wd(p(n.prototype),"_get",this).call(this,t);case 2:return r=e.sent,this.localCache[t]=JSON.stringify(r),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wd(p(n.prototype),"_remove",this).call(this,t);case 2:delete this.localCache[t];case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(By);zy.type="LOCAL";var Wy=zy,Hy=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.call(this,(function(){return window.sessionStorage}),"SESSION")}return f(n,[{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),n}(By);Hy.type="SESSION";var qy=Hy;function Jy(e){return Promise.all(e.map(function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",{fulfilled:!0,value:n});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{fulfilled:!1,reason:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()))}var Ky=function(){function e(t){s(this,e),this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}return f(e,[{key:"isListeningto",value:function(e){return this.eventTarget===e}},{key:"handleEvent",value:function(){var e=_(k().mark((function e(t){var n,r,i,a,o,s,u,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=t).data,i=r.eventId,a=r.eventType,o=r.data,null===(s=this.handlersMap[a])||void 0===s?void 0:s.size){e.next=5;break}return e.abrupt("return");case 5:return n.ports[0].postMessage({status:"ack",eventId:i,eventType:a}),u=Array.from(s).map(function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(n.origin,o));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Jy(u);case 9:c=e.sent,n.ports[0].postMessage({status:"done",eventId:i,eventType:a,response:c});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_subscribe",value:function(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}},{key:"_unsubscribe",value:function(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}],[{key:"_getInstance",value:function(t){var n=this.receivers.find((function(e){return e.isListeningto(t)}));if(n)return n;var r=new e(t);return this.receivers.push(r),r}}]),e}();function $y(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="",r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}Ky.receivers=[];var Gy=function(){function e(t){s(this,e),this.target=t,this.handlers=new Set}return f(e,[{key:"removeMessageHandler",value:function(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}},{key:"_send",value:function(){var e=_(k().mark((function e(t,n){var r,i,a,o,s=this,u=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:50,i="undefined"!==typeof MessageChannel?new MessageChannel:null){e.next=4;break}throw new Error("connection_unavailable");case 4:return e.abrupt("return",new Promise((function(e,u){var c=$y("",20);i.port1.start();var l=setTimeout((function(){u(new Error("unsupported_event"))}),r);o={messageChannel:i,onMessage:function(t){var n=t;if(n.data.eventId===c)switch(n.data.status){case"ack":clearTimeout(l),a=setTimeout((function(){u(new Error("timeout"))}),3e3);break;case"done":clearTimeout(a),e(n.data.response);break;default:clearTimeout(l),clearTimeout(a),u(new Error("invalid_response"))}}},s.handlers.add(o),i.port1.addEventListener("message",o.onMessage),s.target.postMessage({eventType:t,eventId:c,data:n},[i.port2])})).finally((function(){o&&s.removeMessageHandler(o)})));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}();function Yy(){return window}
2function Xy(e){Yy().location.href=e}function Qy(){return"undefined"!==typeof Yy().WorkerGlobalScope&&"function"===typeof Yy().importScripts}function Zy(){return eg.apply(this,arguments)}function eg(){return(eg=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===navigator||void 0===navigator?void 0:navigator.serviceWorker){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,navigator.serviceWorker.ready;case 5:return t=e.sent,e.abrupt("return",t.active);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function tg(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}var ng="firebaseLocalStorageDb",rg=1,ig="firebaseLocalStorage",ag="fbase_key",og=function(){function e(t){s(this,e),this.request=t}return f(e,[{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.request.addEventListener("success",(function(){t(e.request.result)})),e.request.addEventListener("error",(function(){n(e.request.error)}))}))}}]),e}();function sg(e,t){return e.transaction([ig],t?"readwrite":"readonly").objectStore(ig)}function ug(){var e=indexedDB.deleteDatabase(ng);return new og(e).toPromise()}function cg(){var e=indexedDB.open(ng,rg);return new Promise((function(t,n){e.addEventListener("error",(function(){n(e.error)})),e.addEventListener("upgradeneeded",(function(){var t=e.result;try{t.createObjectStore(ig,{keyPath:ag})}catch(r){n(r)}})),e.addEventListener("success",_(k().mark((function n(){var r;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((r=e.result).objectStoreNames.contains(ig)){n.next=12;break}return r.close(),n.next=5,ug();case 5:return n.t0=t,n.next=8,cg();case 8:n.t1=n.sent,(0,n.t0)(n.t1),n.next=13;break;case 12:t(r);case 13:case"end":return n.stop()}}),n)}))))}))}function lg(e,t,n){return fg.apply(this,arguments)}function fg(){return fg=_(k().mark((function e(t,n,r){var i,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=sg(t,!0).put((S(i={},ag,n),S(i,"value",r),i)),e.abrupt("return",new og(a).toPromise());case 2:case"end":return e.stop()}}),e)}))),fg.apply(this,arguments)}function dg(e,t){return hg.apply(this,arguments)}function hg(){return hg=_(k().mark((function e(t,n){var r,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=sg(t,!1).get(n),e.next=3,new og(r).toPromise();case 3:return i=e.sent,e.abrupt("return",void 0===i?null:i.value);case 5:case"end":return e.stop()}}),e)}))),hg.apply(this,arguments)}function pg(e,t){var n=sg(e,!0).delete(t);return new og(n).toPromise()}var vg=function(){function e(){s(this,e),this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((function(){}),(function(){}))}return f(e,[{key:"_openDb",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return",this.db);case 2:return e.next=4,cg();case 4:return this.db=e.sent,e.abrupt("return",this.db);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_withRetries",value:function(){var e=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:return e.prev=2,e.next=5,this._openDb();case 5:return r=e.sent,e.next=8,t(r);case 8:return e.abrupt("return",e.sent);case 11:if(e.prev=11,e.t0=e.catch(2),!(n++>3)){e.next=15;break}throw e.t0;case 15:this.db&&(this.db.close(),this.db=void 0);case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e,this,[[2,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"initializeServiceWorkerMessaging",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Qy()?this.initializeReceiver():this.initializeSender());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeReceiver",value:function(){var e=_(k().mark((function e(){var t=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.receiver=Ky._getInstance(Qy()?self:null),this.receiver._subscribe("keyChanged",function(){var e=_(k().mark((function e(n,r){var i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._poll();case 2:return i=e.sent,e.abrupt("return",{keyProcessed:i.includes(r.key)});case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),this.receiver._subscribe("ping",function(){var e=_(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",["keyChanged"]);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeSender",value:function(){var e=_(k().mark((function e(){var t,n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zy();case 2:if(this.activeServiceWorker=e.sent,this.activeServiceWorker){e.next=5;break}return e.abrupt("return");case 5:return this.sender=new Gy(this.activeServiceWorker),e.next=8,this.sender._send("ping",{},800);case 8:if(r=e.sent){e.next=11;break}return e.abrupt("return");case 11:(null===(t=r[0])||void 0===t?void 0:t.fulfilled)&&(null===(n=r[0])||void 0===n?void 0:n.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyServiceWorker",value:function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sender&&this.activeServiceWorker&&tg()===this.activeServiceWorker){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_isAvailable",value:function(){var e=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,indexedDB){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,cg();case 5:return t=e.sent,e.next=8,lg(t,Vy,"1");case 8:return e.next=10,pg(t,Vy);case 10:return e.abrupt("return",!0);case 13:e.prev=13,e.t0=e.catch(0);case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"_withPendingWrite",value:function(){var e=_(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.pendingWrites++,e.prev=1,e.next=4,t();case 4:return e.prev=4,this.pendingWrites--,e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[1,,4,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=_(k().mark((function e(t,n){var r=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._withRetries((function(e){return lg(e,t,n)}));case 2:return r.localCache[t]=n,e.abrupt("return",r.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){return dg(e,t)}));case 2:return n=e.sent,this.localCache[t]=n,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=_(k().mark((function e(t){var n=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._withRetries((function(e){return pg(e,t)}));case 2:return delete n.localCache[t],e.abrupt("return",n.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_poll",value:function(){var e=_(k().mark((function e(){var t,n,r,i,a,o,s,u,c,l,f;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){var t=sg(e,!1).getAll();
2return new og(t).toPromise()}));case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",[]);case 5:if(0===this.pendingWrites){e.next=7;break}return e.abrupt("return",[]);case 7:n=[],r=new Set,i=T(t);try{for(i.s();!(a=i.n()).done;)o=a.value,s=o.fbase_key,u=o.value,r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(u)&&(this.notifyListeners(s,u),n.push(s))}catch(d){i.e(d)}finally{i.f()}for(c=0,l=Object.keys(this.localCache);c<l.length;c++)f=l[c],this.localCache[f]&&!r.has(f)&&(this.notifyListeners(f,null),n.push(f));return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval(_(k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._poll());case 1:case"end":return t.stop()}}),t)}))),800)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"_addListener",value:function(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}},{key:"_removeListener",value:function(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}]),e}();vg.type="LOCAL";var mg=vg;function yg(e,t){return zv(e,"POST","/v2/accounts/mfaSignIn:start",Bv(e,t))}function gg(e,t){return zv(e,"POST","/v2/accounts/mfaSignIn:finalize",Bv(e,t))}zm("rcb"),new Mv(3e4,6e4);var bg="recaptcha";function wg(e,t,n){return kg.apply(this,arguments)}function kg(){return kg=_(k().mark((function e(t,n,r){var i,a,o,s,u,c,l,f,d;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.verify();case 2:if(a=e.sent,e.prev=3,Av("string"===typeof a,t,"argument-error"),Av(r.type===bg,t,"argument-error"),!("session"in(o="string"===typeof n?{phoneNumber:n}:n))){e.next=26;break}if(s=o.session,!("phoneNumber"in o)){e.next=17;break}return Av("enroll"===s.type,t,"internal-error"),e.next=13,Ly(t,{idToken:s.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:a}});case 13:return u=e.sent,e.abrupt("return",u.phoneSessionInfo.sessionInfo);case 17:return Av("signin"===s.type,t,"internal-error"),Av(c=(null===(i=o.multiFactorHint)||void 0===i?void 0:i.uid)||o.multiFactorUid,t,"missing-multi-factor-info"),e.next=22,yg(t,{mfaPendingCredential:s.credential,mfaEnrollmentId:c,phoneSignInInfo:{recaptchaToken:a}});case 22:return l=e.sent,e.abrupt("return",l.phoneResponseInfo.sessionInfo);case 24:e.next=31;break;case 26:return e.next=28,dy(t,{phoneNumber:o.phoneNumber,recaptchaToken:a});case 28:return f=e.sent,d=f.sessionInfo,e.abrupt("return",d);case 31:return e.prev=31,r._reset(),e.finish(31);case 34:case"end":return e.stop()}}),e,null,[[3,,31,34]])}))),kg.apply(this,arguments)}var xg=function(){function e(t){s(this,e),this.providerId=e.PROVIDER_ID,this.auth=$m(t)}return f(e,[{key:"verifyPhoneNumber",value:function(e,t){return wg(this.auth,e,rp(t))}}],[{key:"credential",value:function(e,t){return gy._fromVerification(e,t)}},{key:"credentialFromResult",value:function(t){var n=t;return e.credentialFromTaggedObject(n)}},{key:"credentialFromError",value:function(t){return e.credentialFromTaggedObject(t.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var n=t.phoneNumber,r=t.temporaryProof;return n&&r?gy._fromTokenResponse(n,r):null}}]),e}();function _g(e,t){return t?wm(t):(Av(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}xg.PROVIDER_ID="phone",xg.PHONE_SIGN_IN_METHOD="phone";var Sg=function(e){h(n,e);var t=y(n);function n(e){var r;return s(this,n),(r=t.call(this,"custom","custom")).params=e,r}return f(n,[{key:"_getIdTokenResponse",value:function(e){return cy(e,this._buildIdpRequest())}},{key:"_linkToIdToken",value:function(e,t){return cy(e,this._buildIdpRequest(t))}},{key:"_getReauthenticationResolver",value:function(e){return cy(e,this._buildIdpRequest())}},{key:"_buildIdpRequest",value:function(e){var t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}]),n}(Zm);function Eg(e){return Dy(e.auth,new Sg(e),e.bypassAuthState)}function Pg(e){var t=e.auth,n=e.user;return Av(n,t,"internal-error"),Oy(n,new Sg(e),e.bypassAuthState)}function Tg(e){return Cg.apply(this,arguments)}function Cg(){return Cg=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.auth,Av(r=t.user,n,"internal-error"),e.abrupt("return",Ny(r,new Sg(t),t.bypassAuthState));case 3:case"end":return e.stop()}}),e)}))),Cg.apply(this,arguments)}var Ag=function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s(this,e),this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=a,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}return f(e,[{key:"execute",value:function(){var e=this;return new Promise(function(){var t=_(k().mark((function t(n,r){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pendingPromise={resolve:n,reject:r},t.prev=1,t.next=4,e.resolver._initialize(e.auth);case 4:return e.eventManager=t.sent,t.next=7,e.onExecution();case 7:e.eventManager.registerConsumer(e),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),e.reject(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"onAuthEvent",value:function(){var e=_(k().mark((function e(t){var n,r,i,a,o,s,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.urlResponse,r=t.sessionId,i=t.postBody,a=t.tenantId,o=t.error,s=t.type,!o){e.next=4;break}return this.reject(o),e.abrupt("return");case 4:return u={auth:this.auth,requestUri:n,sessionId:r,tenantId:a||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState},e.prev=5,e.t0=this,e.next=9,this.getIdpTask(s)(u);case 9:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=16;break;case 13:e.prev=13,e.t2=e.catch(5),this.reject(e.t2);case 16:case"end":return e.stop()}}),e,this,[[5,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"onError",value:function(e){this.reject(e)}},{key:"getIdpTask",value:function(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Eg;case"linkViaPopup":case"linkViaRedirect":return Tg;case"reauthViaPopup":case"reauthViaRedirect":return Pg;default:Sv(this.auth,"internal-error")}}},{key:"resolve",value:function(e){Nv(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}},{key:"reject",value:function(e){Nv(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}},{key:"unregisterAndCleanUp",value:function(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}]),e}(),jg=new Mv(2e3,1e4);function Ng(){return Ng=_(k().mark((function e(t,n,r){var i,a,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=$m(t),Tv(t,n,ky),a=_g(i,r),o=new Ig(i,"signInViaPopup",n,a),e.abrupt("return",o.executeNotNull());case 5:case"end":return e.stop()}}),e)}))),Ng.apply(this,arguments)}var Ig=function(e){h(n,e);var t=y(n);function n(e,r,i,a,o){var u;return s(this,n),(u=t.call(this,e,r,a,o)).provider=i,u.authWindow=null,u.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=m(u),u}return f(n,[{key:"executeNotNull",value:function(){var e=_(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.execute();case 2:return Av(t=e.sent,this.auth,"internal-error"),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=_(k().mark((function e(){var t,n=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nv(1===this.filter.length,"Popup operations only handle one event"),t=$y(),e.next=4,this.resolver._openPopup(this.auth,this.provider,this.filter[0],t);case 4:this.authWindow=e.sent,this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch((function(e){n.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(function(e){e||n.reject(Ev(n.auth,"web-storage-unsupported"))})),this.pollUserCancellation();case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"eventId",get:function(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}},{key:"cancel",value:function(){this.reject(Ev(this.auth,"cancelled-popup-request"))}},{key:"cleanUp",value:function(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null}},{key:"pollUserCancellation",value:function(){var e=this;!function t(){var n,r;(null===(r=null===(n=e.authWindow)||void 0===n?void 0:n.window)||void 0===r?void 0:r.closed)?e.pollId=window.setTimeout((function(){e.pollId=null,e.reject(Ev(e.auth,"popup-closed-by-user"))}),8e3):e.pollId=window.setTimeout(t,jg.get())}()}}]),n}(Ag);Ig.currentPopupAction=null;var Og="pendingRedirect",Rg=new Map,Dg=function(e){h(n,e);var t=y(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return s(this,n),(i=t.call(this,e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],r,void 0,a)).eventId=null,i}return f(n,[{key:"execute",value:function(){var e=_(k().mark((function e(){var t,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Rg.get(this.auth._key())){e.next=21;break}return e.prev=2,e.next=5,Mg(this.resolver,this.auth);case 5:if(!e.sent){e.next=12;break}return e.next=9,Wd(p(n.prototype),"execute",this).call(this);case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=null;case 13:r=e.t0,t=function(){return Promise.resolve(r)},e.next=20;break;case 17:e.prev=17,e.t1=e.catch(2),t=function(){return Promise.reject(e.t1)};case 20:Rg.set(this.auth._key(),t);case 21:return this.bypassAuthState||Rg.set(this.auth._key(),(function(){return Promise.resolve(null)})),e.abrupt("return",t());case 23:case"end":return e.stop()}}),e,this,[[2,17]])})));return function(){return e.apply(this,arguments)}}()},{key:"onAuthEvent",value:function(){var e=_(k().mark((function e(t){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("signInViaRedirect"!==t.type){e.next=4;break}return e.abrupt("return",Wd(p(n.prototype),"onAuthEvent",this).call(this,t));case 4:if("unknown"!==t.type){e.next=7;break}return this.resolve(null),e.abrupt("return");
2case 7:if(!t.eventId){e.next=17;break}return e.next=10,this.auth._redirectUserForId(t.eventId);case 10:if(!(r=e.sent)){e.next=16;break}return this.user=r,e.abrupt("return",Wd(p(n.prototype),"onAuthEvent",this).call(this,t));case 16:this.resolve(null);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=_(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"cleanUp",value:function(){}}]),n}(Ag);function Mg(e,t){return Lg.apply(this,arguments)}function Lg(){return Lg=_(k().mark((function e(t,n){var r,i,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Vg(n),i=Fg(t),e.next=4,i._isAvailable();case 4:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:return e.next=8,i._get(r);case 8:return e.t0=e.sent,a="true"===e.t0,e.next=12,i._remove(r);case 12:return e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)}))),Lg.apply(this,arguments)}function Ug(e,t){Rg.set(e._key(),t)}function Fg(e){return wm(e._redirectPersistence)}function Vg(e){return _m(Og,e.config.apiKey,e.name)}function Bg(e,t){return zg.apply(this,arguments)}function zg(){return zg=_(k().mark((function e(t,n){var r,i,a,o,s,u=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]&&u[2],i=$m(t),a=_g(i,n),o=new Dg(i,a,r),e.next=6,o.execute();case 6:if(!(s=e.sent)||r){e.next=13;break}return delete s.user._redirectEventId,e.next=11,i._persistUserIfCurrent(s.user);case 11:return e.next=13,i._setRedirectUser(null,n);case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e)}))),zg.apply(this,arguments)}var Wg=function(){function e(t){s(this,e),this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}return f(e,[{key:"registerConsumer",value:function(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}},{key:"unregisterConsumer",value:function(e){this.consumers.delete(e)}},{key:"onEvent",value:function(e){var t=this;if(this.hasEventBeenHandled(e))return!1;var n=!1;return this.consumers.forEach((function(r){t.isEventForConsumer(e,r)&&(n=!0,t.sendToConsumer(e,r),t.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return qg(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}},{key:"sendToConsumer",value:function(e,t){var n;if(e.error&&!qg(e)){var r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(Ev(this.auth,r))}else t.onAuthEvent(e)}},{key:"isEventForConsumer",value:function(e,t){var n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}},{key:"hasEventBeenHandled",value:function(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Hg(e))}},{key:"saveEventToCache",value:function(e){this.cachedEventUids.add(Hg(e)),this.lastProcessedEventTime=Date.now()}}]),e}();function Hg(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((function(e){return e})).join("-")}function qg(e){var t=e.type,n=e.error;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}function Jg(e){return Kg.apply(this,arguments)}function Kg(){return Kg=_(k().mark((function e(t){var n,r=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.abrupt("return",zv(t,"GET","/v1/projects",n));case 2:case"end":return e.stop()}}),e)}))),Kg.apply(this,arguments)}var $g=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Gg=/^https?/;function Yg(){return Yg=_(k().mark((function e(t){var n,r,i,a,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.config.emulator){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Jg(t);case 4:n=e.sent,r=n.authorizedDomains,i=T(r),e.prev=7,i.s();case 9:if((a=i.n()).done){e.next=20;break}if(o=a.value,e.prev=11,!Xg(o)){e.next=14;break}return e.abrupt("return");case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(11);case 18:e.next=9;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(7),i.e(e.t1);case 25:return e.prev=25,i.f(),e.finish(25);case 28:Sv(t,"unauthorized-domain");case 29:case"end":return e.stop()}}),e,null,[[7,22,25,28],[11,16]])}))),Yg.apply(this,arguments)}function Xg(e){var t=Iv(),n=new URL(t),r=n.protocol,i=n.hostname;if(e.startsWith("chrome-extension://")){var a=new URL(e);return""===a.hostname&&""===i?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&a.hostname===i}if(!Gg.test(r))return!1;if($g.test(e))return i===e;var o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(i)}var Qg=new Mv(3e4,6e4);function Zg(){var e=Yy().___jsl;if(null===e||void 0===e?void 0:e.H)for(var t=0,n=Object.keys(e.H);t<n.length;t++){var r=n[t];if(e.H[r].r=e.H[r].r||[],e.H[r].L=e.H[r].L||[],e.H[r].r=o(e.H[r].L),e.CP)for(var i=0;i<e.CP.length;i++)e.CP[i]=null}}var eb=null;function tb(e){return eb=eb||function(e){return new Promise((function(t,n){var r,i,a;function o(){Zg(),gapi.load("gapi.iframes",{callback:function(){t(gapi.iframes.getContext())},ontimeout:function(){Zg(),n(Ev(e,"network-request-failed"))},timeout:Qg.get()})}if(null===(i=null===(r=Yy().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(a=Yy().gapi)||void 0===a?void 0:a.load)){var s=zm("iframefcb");return Yy()[s]=function(){gapi.load?o():n(Ev(e,"network-request-failed"))},Bm("https://apis.google.com/js/api.js?onload=".concat(s)).catch((function(e){return n(e)}))}o()}})).catch((function(e){throw eb=null,e}))}(e),eb}var nb=new Mv(5e3,15e3),rb="__/auth/iframe",ib="emulator/auth/iframe",ab={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},ob=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);
2function sb(e){var t=e.config;Av(t.authDomain,e,"auth-domain-config-required");var n=t.emulator?Lv(t,ib):"https://".concat(e.config.authDomain,"/").concat(rb),r={apiKey:t.apiKey,appName:e.name,v:Gp},i=ob.get(e.config.apiHost);i&&(r.eid=i);var a=e._getFrameworks();return a.length&&(r.fw=a.join(",")),"".concat(n,"?").concat(Qh(r).slice(1))}function ub(e){return cb.apply(this,arguments)}function cb(){return cb=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tb(t);case 2:return n=e.sent,Av(r=Yy().gapi,t,"internal-error"),e.abrupt("return",n.open({where:document.body,url:sb(t),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:ab,dontclear:!0},(function(e){return new Promise(function(){var n=_(k().mark((function n(r,i){var a,o,s;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=function(){Yy().clearTimeout(o),r(e)},n.next=3,e.restyle({setHideOnLeave:!1});case 3:a=Ev(t,"network-request-failed"),o=Yy().setTimeout((function(){i(a)}),nb.get()),e.ping(s).then(s,(function(){i(a)}));case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())})));case 6:case"end":return e.stop()}}),e)}))),cb.apply(this,arguments)}var lb={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},fb=500,db=600,hb="_blank",pb="http://localhost",vb=function(){function e(t){s(this,e),this.window=t,this.associatedEvent=null}return f(e,[{key:"close",value:function(){if(this.window)try{this.window.close()}catch(e){}}}]),e}();function mb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fb,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:db,a=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),s="",u=Object.assign(Object.assign({},lb),{width:r.toString(),height:i.toString(),top:a,left:o}),c=Wh().toLowerCase();n&&(s=Cm(c)?hb:n),Pm(c)&&(t=t||pb,u.scrollbars="yes");var l=Object.entries(u).reduce((function(e,t){var n=w(t,2),r=n[0],i=n[1];return"".concat(e).concat(r,"=").concat(i,",")}),"");if(function(){var e;return Om(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wh())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(c)&&"_self"!==s)return function(e,t){var n=document.createElement("a");n.href=e,n.target=t;var r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",s),new vb(null);var f=window.open(t||"",s,l);Av(f,e,"popup-blocked");try{f.focus()}catch(d){}return new vb(f)}var yb="__/auth/handler",gb="emulator/auth/handler",bb=encodeURIComponent("fac");function wb(e,t,n,r,i,a){return kb.apply(this,arguments)}function kb(){return kb=_(k().mark((function e(t,n,r,i,a,o){var s,u,c,l,f,d,h,p,v,m,y,g,b;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Av(t.config.authDomain,t,"auth-domain-config-required"),Av(t.config.apiKey,t,"invalid-api-key"),s={apiKey:t.config.apiKey,appName:t.name,authType:r,redirectUrl:i,v:Gp,eventId:a},n instanceof ky)for(n.setDefaultLanguage(t.languageCode),s.providerId=n.providerId||"",Gh(n.getCustomParameters())||(s.customParameters=JSON.stringify(n.getCustomParameters())),u=0,c=Object.entries(o||{});u<c.length;u++)l=w(c[u],2),f=l[0],d=l[1],s[f]=d;for(n instanceof xy&&(h=n.getScopes().filter((function(e){return""!==e}))).length>0&&(s.scopes=h.join(",")),t.tenantId&&(s.tid=t.tenantId),p=s,v=0,m=Object.keys(p);v<m.length;v++)y=m[v],void 0===p[y]&&delete p[y];return e.next=10,t._getAppCheckToken();case 10:return g=e.sent,b=g?"#".concat(bb,"=").concat(encodeURIComponent(g)):"",e.abrupt("return","".concat(xb(t),"?").concat(Qh(p).slice(1)).concat(b));case 13:case"end":return e.stop()}}),e)}))),kb.apply(this,arguments)}function xb(e){var t=e.config;return t.emulator?Lv(t,gb):"https://".concat(t.authDomain,"/").concat(yb)}var _b="webStorageSupport",Sb=function(){function e(){s(this,e),this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=qy,this._completeRedirectFn=Bg,this._overrideRedirectResult=Ug}return f(e,[{key:"_openPopup",value:function(){var e=_(k().mark((function e(t,n,r,i){var a,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nv(null===(a=this.eventManagers[t._key()])||void 0===a?void 0:a.manager,"_initialize() not called before _openPopup()"),e.next=3,wb(t,n,r,Iv(),i);case 3:return o=e.sent,e.abrupt("return",mb(t,o,$y()));case 5:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_openRedirect",value:function(){var e=_(k().mark((function e(t,n,r,i){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._originValidation(t);case 2:return e.next=4,wb(t,n,r,Iv(),i);case 4:return Xy(e.sent),e.abrupt("return",new Promise((function(){})));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_initialize",value:function(e){var t=this,n=e._key();if(this.eventManagers[n]){var r=this.eventManagers[n],i=r.manager,a=r.promise;return i?Promise.resolve(i):(Nv(a,"If manager is not set, promise should be"),a)}var o=this.initAndGetManager(e);return this.eventManagers[n]={promise:o},o.catch((function(){delete t.eventManagers[n]})),o}},{key:"initAndGetManager",value:function(){var e=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ub(t);case 2:return n=e.sent,r=new Wg(t),n.register("authEvent",(function(e){return Av(null===e||void 0===e?void 0:e.authEvent,t,"invali
2d-auth-event"),{status:r.onEvent(e.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_isIframeWebStorageSupported",value:function(e,t){this.iframes[e._key()].send(_b,{type:_b},(function(n){var r,i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[_b];void 0!==i&&t(!!i),Sv(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}},{key:"_originValidation",value:function(e){var t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=function(e){return Yg.apply(this,arguments)}(e)),this.originValidationPromises[t]}},{key:"_shouldInitProactively",get:function(){return Dm()||Tm()||Om()}}]),e}(),Eb=Sb,Pb=function(){function e(t){s(this,e),this.factorId=t}return f(e,[{key:"_process",value:function(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return jv("unexpected MultiFactorSessionType")}}}]),e}(),Tb=function(e){h(n,e);var t=y(n);function n(e){var r;return s(this,n),(r=t.call(this,"phone")).credential=e,r}return f(n,[{key:"_finalizeEnroll",value:function(e,t,n){return function(e,t){return zv(e,"POST","/v2/accounts/mfaEnrollment:finalize",Bv(e,t))}(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}},{key:"_finalizeSignIn",value:function(e,t){return function(e,t){return zv(e,"POST","/v2/accounts/mfaSignIn:finalize",Bv(e,t))}(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}],[{key:"_fromCredential",value:function(e){return new n(e)}}]),n}(Pb);(function(){function e(){s(this,e)}return f(e,null,[{key:"assertion",value:function(e){return Tb._fromCredential(e)}}]),e}()).FACTOR_ID="phone";var Cb=function(){function e(){s(this,e)}return f(e,null,[{key:"assertionForEnrollment",value:function(e,t){return Ab._fromSecret(e,t)}},{key:"assertionForSignIn",value:function(e,t){return Ab._fromEnrollmentId(e,t)}},{key:"generateSecret",value:function(){var e=_(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Av("undefined"!==typeof(n=t).auth,"internal-error"),e.next=4,Uy(n.auth,{idToken:n.credential,totpEnrollmentInfo:{}});case 4:return r=e.sent,e.abrupt("return",jb._fromStartTotpMfaEnrollmentResponse(r,n.auth));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),e}();Cb.FACTOR_ID="totp";var Ab=function(e){h(n,e);var t=y(n);function n(e,r,i){var a;return s(this,n),(a=t.call(this,"totp")).otp=e,a.enrollmentId=r,a.secret=i,a}return f(n,[{key:"_finalizeEnroll",value:function(){var e=_(k().mark((function e(t,n,r){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Av("undefined"!==typeof this.secret,t,"argument-error"),e.abrupt("return",Fy(t,{idToken:n,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_finalizeSignIn",value:function(){var e=_(k().mark((function e(t,n){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Av(void 0!==this.enrollmentId&&void 0!==this.otp,t,"argument-error"),r={verificationCode:this.otp},e.abrupt("return",gg(t,{mfaPendingCredential:n,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r}));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}],[{key:"_fromSecret",value:function(e,t){return new n(t,void 0,e)}},{key:"_fromEnrollmentId",value:function(e,t){return new n(t,e)}}]),n}(Pb),jb=function(){function e(t,n,r,i,a,o,u){s(this,e),this.sessionInfo=o,this.auth=u,this.secretKey=t,this.hashingAlgorithm=n,this.codeLength=r,this.codeIntervalSeconds=i,this.enrollmentCompletionDeadline=a}return f(e,[{key:"_makeTotpVerificationInfo",value:function(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}},{key:"generateQrCodeUrl",value:function(e,t){var n,r=!1;return(Nb(e)||Nb(t))&&(r=!0),r&&(Nb(e)&&(e=(null===(n=this.auth.currentUser)||void 0===n?void 0:n.email)||"unknownuser"),Nb(t)&&(t=this.auth.name)),"otpauth://totp/".concat(t,":").concat(e,"?secret=").concat(this.secretKey,"&issuer=").concat(t,"&algorithm=").concat(this.hashingAlgorithm,"&digits=").concat(this.codeLength)}}],[{key:"_fromStartTotpMfaEnrollmentResponse",value:function(t,n){return new e(t.totpSessionInfo.sharedSecretKey,t.totpSessionInfo.hashingAlgorithm,t.totpSessionInfo.verificationCodeLength,t.totpSessionInfo.peri
2odSec,new Date(t.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),t.totpSessionInfo.sessionInfo,n)}}]),e}();function Nb(e){return"undefined"===typeof e||0===(null===e||void 0===e?void 0:e.length)}var Ib="@firebase/auth",Ob="0.23.1",Rb=function(){function e(t){s(this,e),this.auth=t,this.internalListeners=new Map}return f(e,[{key:"getUid",value:function(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}},{key:"getToken",value:function(){var e=_(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertAuthConfigured(),e.next=3,this.auth._initializationPromise;case 3:if(this.auth.currentUser){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.auth.currentUser.getIdToken(t);case 7:return n=e.sent,e.abrupt("return",{accessToken:n});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"addAuthTokenListener",value:function(e){if(this.assertAuthConfigured(),!this.internalListeners.has(e)){var t=this.auth.onIdTokenChanged((function(t){e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}}},{key:"removeAuthTokenListener",value:function(e){this.assertAuthConfigured();var t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}},{key:"assertAuthConfigured",value:function(){Av(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}},{key:"updateProactiveRefresh",value:function(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}]),e}();var Db,Mb=Bh("authIdTokenMaxAge")||300,Lb=null,Ub=function(e){return function(){var t=_(k().mark((function t(n){var r,i,a;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=n,!t.t0){t.next=5;break}return t.next=4,n.getIdTokenResult();case 4:t.t0=t.sent;case 5:if(r=t.t0,!((i=r&&((new Date).getTime()-Date.parse(r.issuedAtTime))/1e3)&&i>Mb)){t.next=9;break}return t.abrupt("return");case 9:if(a=null===r||void 0===r?void 0:r.token,Lb!==a){t.next=12;break}return t.abrupt("return");case 12:return Lb=a,t.next=15,fetch(e,{method:a?"POST":"DELETE",headers:a?{Authorization:"Bearer ".concat(a)}:{}});case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};Db="Browser",Hp(new ip("auth",(function(e,t){var n=t.options,r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),a=e.getProvider("app-check-internal"),o=r.options,s=o.apiKey,u=o.authDomain;Av(s&&!s.includes(":"),"invalid-api-key",{appName:r.name}),Av(!(null===u||void 0===u?void 0:u.includes(":")),"argument-error",{appName:r.name});var c={apiKey:s,authDomain:u,clientPlatform:Db,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Mm(Db)},l=new Km(r,i,a,c);return function(e,t){var n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(wm);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(l,n),l}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((function(e,t,n){e.getProvider("auth-internal").initialize()}))),Hp(new ip("auth-internal",(function(e){return function(e){return new Rb(e)}($m(e.getProvider("auth").getImmediate()))}),"PRIVATE").setInstantiationMode("EXPLICIT")),Qp(Ib,Ob,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(Db)),Qp(Ib,Ob,"esm2017");Qp("firebase","9.21.0","app");var Fb,Vb="firebasestorage.googleapis.com",Bb="storageBucket",zb=function(e){h(n,e);var t=y(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return s(this,n),(i=t.call(this,Wb(e),"Firebase Storage: ".concat(r," (").concat(Wb(e),")"))).status_=a,i.customData={serverResponse:null},i._baseMessage=i.message,Object.setPrototypeOf(m(i),n.prototype),i}return f(n,[{key:"status",get:function(){return this.status_},set:function(e){this.status_=e}},{key:"_codeEquals",value:function(e){return Wb(e)===this.code}},{key:"serverResponse",get:function(){return this.customData.serverResponse},set:function(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message="".concat(this._baseMessage,"\n").concat(this.customData.serverResponse):this.message=this._baseMessage}}]),n}(Jh);function Wb(e){return"storage/"+e}function Hb(){return new zb(Fb.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function qb(){return new zb(Fb.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function Jb(){return new zb(Fb.CANCELED,"User canceled the upload/download.")}function Kb(){return new zb(Fb.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function $b(e){return new zb(Fb.INVALID_ARGUMENT,e)}function Gb(){return new zb(Fb.APP_DELETED,"The Firebase app was deleted.")}function Yb(e,t){return new zb(Fb.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function Xb(e){throw new zb(Fb.INTERNAL_ERROR,"Internal error: "+e)}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CA
2NNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(Fb||(Fb={}));var Qb,Zb=function(){function e(t,n){s(this,e),this.bucket=t,this.path_=n}return f(e,[{key:"path",get:function(){return this.path_}},{key:"isRoot",get:function(){return 0===this.path.length}},{key:"fullServerUrl",value:function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}},{key:"bucketOnlyServerUrl",value:function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}}],[{key:"makeFromBucketSpec",value:function(t,n){var r,i;try{r=e.makeFromUrl(t,n)}catch(a){return new e(t,"")}if(""===r.path)return r;throw i=t,new zb(Fb.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+i+"'.")}},{key:"makeFromUrl",value:function(t,n){var r=null,i="([A-Za-z0-9.\\-_]+)";var a=new RegExp("^gs://"+i+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}for(var s=n.replace(/[.]/g,"\\."),u=[{regex:a,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://".concat(s,"/").concat("v[A-Za-z0-9_]+","/b/").concat(i,"/o").concat("(/([^?#]*).*)?$"),"i"),indices:{bucket:1,path:3},postModify:o},{regex:new RegExp("^https?://".concat(n===Vb?"(?:storage.googleapis.com|storage.cloud.google.com)":n,"/").concat(i,"/").concat("([^?#]*)"),"i"),indices:{bucket:1,path:2},postModify:o}],c=0;c<u.length;c++){var l=u[c],f=l.regex.exec(t);if(f){var d=f[l.indices.bucket],h=f[l.indices.path];h||(h=""),r=new e(d,h),l.postModify(r);break}}if(null==r)throw function(e){return new zb(Fb.INVALID_URL,"Invalid URL '"+e+"'.")}(t);return r}}]),e}(),ew=function(){function e(t){s(this,e),this.promise_=Promise.reject(t)}return f(e,[{key:"getPromise",value:function(){return this.promise_}},{key:"cancel",value:function(){}}]),e}();function tw(e){return"string"===typeof e||e instanceof String}function nw(e){return rw()&&e instanceof Blob}function rw(){return"undefined"!==typeof Blob&&!Hh()}function iw(e,t,n,r){if(r<t)throw $b("Invalid value for '".concat(e,"'. Expected ").concat(t," or greater."));if(r>n)throw $b("Invalid value for '".concat(e,"'. Expected ").concat(n," or less."))}function aw(e,t,n){var r=t;return null==n&&(r="https://".concat(t)),"".concat(n,"://").concat(r,"/v0").concat(e)}function ow(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}function sw(e,t){var n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(Qb||(Qb={}));var uw=function(){function e(t,n,r,i,a,o,u,c,l,f,d){var h=this,p=!(arguments.length>11&&void 0!==arguments[11])||arguments[11];s(this,e),this.url_=t,this.method_=n,this.headers_=r,this.body_=i,this.successCodes_=a,this.additionalRetryCodes_=o,this.callback_=u,this.errorCallback_=c,this.timeout_=l,this.progressCallback_=f,this.connectionFactory_=d,this.retry=p,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((function(e,t){h.resolve_=e,h.reject_=t,h.start_()}))}return f(e,[{key:"start_",value:function(){var e=this,t=function(t,n){var r=e.resolve_,i=e.reject_,a=n.connection;if(n.wasSuccessCode)try{var o=e.callback_(a,a.getResponse());!function(e){return void 0!==e}(o)?r():r(o)}catch(u){i(u)}else if(null!==a){var s=Hb();s.serverResponse=a.getErrorText(),e.errorCallback_?i(e.errorCallback_(a,s)):i(s)}else{if(n.canceled)i(e.appDelete_?Gb():Jb());else i(qb())}};this.canceled_?t(0,new cw(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,a=null,o=!1,s=0;function u(){return 2===s}var c=!1;function l(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(null,n)}}function f(t){i=setTimeout((function(){i=null,e(h,u())}),t)}function d(){a&&clearTimeout(a)}function h(e){if(c)d();else{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(e)return d(),void l.call.apply(l,[null,e].concat(n));var a;if(u()||o)return d(),void l.call.apply(l,[null,e].concat(n));r<64&&(r*=2),1===s?(s=2,a=0):a=1e3*(r+Math.random()),f(a)}}var p=!1;function v(e){p||(p=!0,d(),c||(null!==i?(e||(s=2),clearTimeout(i),f(0)):e||(s=1)))}return f(0),a=setTimeout((function(){o=!0,v(!0)}),n),v}((function(t,n){if(n)t(!1,new cw(!1,null,!0));else{var r=e.connectionFactory_();e.pendingConnection_=r;var i=function(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)};null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(){null!==e.progressCallback_&&r.removeUploadProgressListener(i),e.pendingConnection_=null;var n=r.getErrorCode()===Qb.NO_ERROR,a=r.getStatus();if(!n||sw(a,e.additionalRetryCodes_)&&e.retry){var o=r.getErrorCode()===Qb.ABORT;t(!1,new cw(!1,null,o))}else{var s=-1!==e.successCodes_.indexOf(a);t(!0,new cw(s,r))}}))}}),t,this.timeout_)}},{key:"getPromise",value:function(){return this.promise_}},{key:"cancel",value:function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&function(e){e(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}]),e}(),cw=f((function e(t,n,r){s(this,e),this.wasSuccessCode=t,this.connection=n,this.canceled=!!r}));function lw(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?Web
2KitBlobBuilder:void 0}function fw(){for(var e=lw(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0!==e){for(var i=new e,a=0;a<n.length;a++)i.append(n[a]);return i.getBlob()}if(rw())return new Blob(n);throw new zb(Fb.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}function dw(e){if("undefined"===typeof atob)throw t="base-64",new zb(Fb.UNSUPPORTED_ENVIRONMENT,"".concat(t," is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information."));var t;return atob(e)}var hw={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},pw=f((function e(t,n){s(this,e),this.data=t,this.contentType=n||null}));function vw(e,t){switch(e){case hw.RAW:return new pw(mw(t));case hw.BASE64:case hw.BASE64URL:return new pw(yw(e,t));case hw.DATA_URL:return new pw(function(e){var t=new gw(e);return t.base64?yw(hw.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(n){throw Yb(hw.DATA_URL,"Malformed data URL.")}return mw(t)}(t.rest)}(t),new gw(t).contentType)}throw Hb()}function mw(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r))if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function yw(e,t){switch(e){case hw.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw Yb(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case hw.BASE64URL:var i=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(i||a)throw Yb(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var o;try{o=dw(t)}catch(c){if(c.message.includes("polyfill"))throw c;throw Yb(e,"Invalid character found")}for(var s=new Uint8Array(o.length),u=0;u<o.length;u++)s[u]=o.charCodeAt(u);return s}var gw=f((function e(t){s(this,e),this.base64=!1,this.contentType=null;var n=t.match(/^data:([^,]+)?,/);if(null===n)throw Yb(hw.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var r=n[1]||null;null!=r&&(this.base64=function(e,t){var n=e.length>=t.length;if(!n)return!1;return e.substring(e.length-t.length)===t}(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=t.substring(t.indexOf(",")+1)}));var bw=function(){function e(t,n){s(this,e);var r=0,i="";nw(t)?(this.data_=t,r=t.size,i=t.type):t instanceof ArrayBuffer?(n?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(n?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=i}return f(e,[{key:"size",value:function(){return this.size_}},{key:"type",value:function(){return this.type_}},{key:"slice",value:function(t,n){if(nw(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}var i=new Uint8Array(this.data_.buffer,t,n-t);return new e(i,!0)}},{key:"uploadData",value:function(){return this.data_}}],[{key:"getBlob",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(rw()){var i=n.map((function(t){return t instanceof e?t.data_:t}));return new e(fw.apply(null,i))}var a=n.map((function(e){return tw(e)?vw(hw.RAW,e).data:e.data_})),o=0;a.forEach((function(e){o+=e.byteLength}));var s=new Uint8Array(o),u=0;return a.forEach((function(e){for(var t=0;t<e.length;t++)s[u++]=e[t]})),new e(s,!0)}}]),e}();function ww(e){var t;try{t=JSON.parse(e)}catch(n){return null}return function(e){return"object"===typeof e&&!Array.isArray(e)}(t)?t:null}function kw(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function xw(e,t){return t}var _w=f((function e(t,n,r,i){s(this,e),this.server=t,this.local=n||t,this.writable=!!r,this.xform=i||xw})),Sw=null;function Ew(){if(Sw)return Sw;var e=[];e.push(new _w("bucket")),e.push(new _w("generation")),e.push(new _w("metageneration")),e.push(new _w("name","fullPath",!0));var t=new _w("name");t.xform=function(e,t){return function(e){return!tw(e)||e.length<2?e:kw(e)}(t)},e.push(t);var n=new _w("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new _w("timeCreated")),e.push(new _w("updated")),e.push(new _w("md5Hash",null,!0)),e.push(new _w("cacheControl",null,!0)),e.push(new _w("contentDisposition",null,!0)),e.push(new _w("contentEncoding",null,!0)),e.push(new _w("contentLanguage",null,!0)),e.push(new _w("contentType",null,!0)),e.push(new _w("metadata","customMetadata",!0)),Sw=e}function Pw(e,t,n){for(var r={type:"file"},i=n.length,a=0;a<i;a++){var o=n[a];r[o.local]=o.xform(r,t[o.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new Zb(n,r);return t._makeStorageReference(i)}})}(r,e),r}
2function Tw(e,t,n){var r=ww(t);return null===r?null:Pw(e,r,n)}function Cw(e,t){for(var n={},r=t.length,i=0;i<r;i++){var a=t[i];a.writable&&(n[a.server]=e[a.local])}return JSON.stringify(n)}var Aw=f((function e(t,n,r,i){s(this,e),this.url=t,this.method=n,this.handler=r,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}));function jw(e){if(!e)throw Hb()}function Nw(e,t){return function(n,r){var i=Tw(e,r,t);return jw(null!==i),i}}function Iw(e){return function(t,n){var r,i,a;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new zb(Fb.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new zb(Fb.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(a=e.bucket,r=new zb(Fb.QUOTA_EXCEEDED,"Quota for bucket '"+a+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new zb(Fb.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function Ow(e){var t=Iw(e);return function(n,r){var i,a=t(n,r);return 404===n.getStatus()&&(i=e.path,a=new zb(Fb.OBJECT_NOT_FOUND,"Object '"+i+"' does not exist.")),a.serverResponse=r.serverResponse,a}}function Rw(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}function Dw(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};var s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();o["Content-Type"]="multipart/related; boundary="+s;var u=Rw(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Cw(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",l="\r\n--"+s+"--",f=bw.getBlob(c,r,l);if(null===f)throw Kb();var d={name:u.fullPath},h=aw(a,e.host,e._protocol),p=e.maxUploadRetryTime,v=new Aw(h,"POST",Nw(e,n),p);return v.urlParams=d,v.headers=o,v.body=f.uploadData(),v.errorHandler=Iw(t),v}var Mw=null,Lw=function(){function e(){var t=this;s(this,e),this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Qb.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=Qb.ABORT,e()})),t.xhr_.addEventListener("error",(function(){t.errorCode_=Qb.NETWORK_ERROR,e()})),t.xhr_.addEventListener("load",(function(){e()}))}))}return f(e,[{key:"send",value:function(e,t,n,r){if(this.sent_)throw Xb("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}},{key:"getErrorCode",value:function(){if(!this.sent_)throw Xb("cannot .getErrorCode() before sending");return this.errorCode_}},{key:"getStatus",value:function(){if(!this.sent_)throw Xb("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}},{key:"getResponse",value:function(){if(!this.sent_)throw Xb("cannot .getResponse() before sending");return this.xhr_.response}},{key:"getErrorText",value:function(){if(!this.sent_)throw Xb("cannot .getErrorText() before sending");return this.xhr_.statusText}},{key:"abort",value:function(){this.xhr_.abort()}},{key:"getResponseHeader",value:function(e){return this.xhr_.getResponseHeader(e)}},{key:"addUploadProgressListener",value:function(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}},{key:"removeUploadProgressListener",value:function(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}]),e}(),Uw=function(e){h(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"initXhr",value:function(){this.xhr_.responseType="text"}}]),n}(Lw);function Fw(){return Mw?Mw():new Uw}var Vw=function(){function e(t,n){s(this,e),this._service=t,this._location=n instanceof Zb?n:Zb.makeFromUrl(n,t.host)}return f(e,[{key:"toString",value:function(){return"gs://"+this._location.bucket+"/"+this._location.path}},{key:"_newRef",value:function(t,n){return new e(t,n)}},{key:"root",get:function(){var e=new Zb(this._location.bucket,"");return this._newRef(this._service,e)}},{key:"bucket",get:function(){return this._location.bucket}},{key:"fullPath",get:function(){return this._location.path}},{key:"name",get:function(){return kw(this._location.path)}},{key:"storage",get:function(){return this._service}},{key:"parent",get:function(){var t=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===t)return null;var n=new Zb(this._location.bucket,t);return new e(this._service,n)}},{key:"_throwIfRoot",value:function(e){if(""===this._location.path)throw function(e){return new zb(Fb.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)}}]),e}();function Bw(e,t,n){e._throwIfRoot("uploadBytes");var r=Dw(e.storage,e._location,Ew(),new bw(t,!0),n);return e.storage.makeRequestWithTokens(r,Fw).then((function(t){return{metadata:t,ref:e}}))}function zw(e){e._throwIfRoot("deleteObject");var t=function(e,t){var n=aw(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime,i=new Aw(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=Ow(t),i}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,Fw)}function Ww(e,t){var n=function(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new Zb(e._location.bucket,n);return new Vw(e.storage,r)}function Hw(e,t){if(e instanceof $w){var n=e;if(null==n._bucket)throw new zb(Fb.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+Bb+"' property when initializing the app?");var r=new Vw(n,n._bucket);return null!=t?Hw(r,t):r}return void 0!==t?Ww(e,t):e}function qw(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof $w)return new Vw(e,t);throw $b("To use ref(service, url), the first argument must be a Storage instance.")}return Hw(e,t)}function Jw(e,t){var n=null===t||void 0===t?void 0:t[Bb];return null==n?null:Zb.makeFromBucketSpec(n,e)}function Kw(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.host="".concat(t,":").concat(n),e._protocol="http";var i=r.mockUserToken;i&&(e._overrideAuthToken="string"===typeof i?i:function(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.');var n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Rh(JSON.stringify({alg:"none",type:"JWT"})),Rh(JSON.stringify(a)),""].join(".")}(i,e.app.options.projectId))}var $w=function(){function e(t,n,r,i,a){s(this,e),this.app=t,this._authProvider=n,this._appCheckProvider=r,this._url=i,this._firebaseVersion=a,this._bucket=null,this._host=Vb,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=i?Zb.makeFromBucketSpec(i,this._host):Jw(this._host,this.app.options)}return f(e,[{key:"host",get:function(){return this._host},set:function(e){this._host=e,null!=this._url?this._bucket=Zb.makeFromBucketSpec(this._url,e):this._bucket=Jw(e,this.app.options)}},{key:"maxUploadRetryTime",get:function(){return this._maxUploadRetryTime},set:function(e){iw("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}},{key:"maxOperationRetryTime",get:function(){return this._maxOperationRetryTime},set:function(e){iw("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}},{key:"_getAuthToken",value:function(){var e=_(k().mark((function e(){var t,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._overrideAuthToken){e.next=2;break}return e.abrupt("return",this._overrideAuthToken);case 2:if(!(t=this._authProvider.getImmediate({optional:!0}))){e.next=9;break}return e.next=6,t.getToken();case 6:if(null===(n=e.sent)){e.next=9;break}return e.abrupt("return",n.accessToken);case 9:return e.abrupt("return",null);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getAppCheckToken",value:function(){var e=_(k().mark((function e(){var t,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._appCheckProvider.getImmediate({optional:!0}))){e.next=6;break}return e.next=4,t.getToken();case 4:return n=e.sent,e.abrupt("return",n.token);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_delete",value:function(){return this._deleted||(this._deleted=!0,this._requests.forEac
2h((function(e){return e.cancel()})),this._requests.clear()),Promise.resolve()}},{key:"_makeStorageReference",value:function(e){return new Vw(this,e)}},{key:"_makeRequest",value:function(e,t,n,r){var i=this,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this._deleted)return new ew(Gb());var o=function(e,t,n,r,i,a){var o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=ow(e.urlParams),u=e.url+s,c=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(c,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(c,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(c,a),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(c,r),new uw(u,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,o)}(e,this._appId,n,r,t,this._firebaseVersion,a);return this._requests.add(o),o.getPromise().then((function(){return i._requests.delete(o)}),(function(){return i._requests.delete(o)})),o}},{key:"makeRequestWithTokens",value:function(){var e=_(k().mark((function e(t,n){var r,i,a,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this._getAuthToken(),this._getAppCheckToken()]);case 2:return r=e.sent,i=w(r,2),a=i[0],o=i[1],e.abrupt("return",this._makeRequest(t,n,a,o).getPromise());case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),Gw="@firebase/storage",Yw="0.11.2",Xw="storage";function Qw(e,t,n){return Bw(e=rp(e),t,n)}function Zw(e){return zw(e=rp(e))}function ek(e,t){return qw(e=rp(e),t)}function tk(e,t,n){Kw(e,t,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}function nk(e,t){var n=t.instanceIdentifier,r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new $w(r,i,a,n,Gp)}Hp(new ip(Xw,nk,"PUBLIC").setMultipleInstances(!0)),Qp(Gw,Yw,""),Qp(Gw,Yw,"esm2017");var rk=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xp(),t=qp(e,"auth");if(t.isInitialized())return t.getImmediate();var n=function(e,t){var n=qp(e,"auth");if(n.isInitialized()){var r=n.getImmediate();if(Yh(n.getOptions(),null!==t&&void 0!==t?t:{}))return r;Sv(r,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:Eb,persistence:[mg,Wy,qy]}),r=Bh("authTokenSyncURL");if(r){var i=Ub(r);!function(e,t,n){rp(e).beforeAuthStateChanged(t,n)}(n,i,(function(){return i(n.currentUser)})),function(e,t,n,r){rp(e).onIdTokenChanged(t,n,r)}(n,(function(e){return i(e)}))}var a=Uh("auth");return a&&Ym(n,"http://".concat(a)),n}(Yp({apiKey:"AIzaSyA9BXkOsZ20JgfJlSO6DKOX8-MWTwDo7Sc",authDomain:"drmis-website.firebaseapp.com",projectId:"drmis-website",storageBucket:"drmis-website.appspot.com",messagingSenderId:"873658491175",appId:"1:873658491175:web:851af69716520f2396c902"})),ik=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xp(),t=arguments.length>1?arguments[1]:void 0,n=qp(e=rp(e),Xw).getImmediate({identifier:t}),r=Fh("storage");return r&&tk.apply(void 0,[n].concat(o(r))),n}(),ak=ui({name:"user",initialState:{adminIsLoggedIn:!1},reducers:{loginUser:function(e,t){var n=t.payload.email;e.adminIsLoggedIn="[email protected]"===n},logoutUser:function(e,t){e.adminIsLoggedIn=!1}}}),ok=ak.actions,sk=ak.reducer,uk=new Sy;var ck=function(){var e=St(),t=En(),n=mn((function(e){return e.user.adminIsLoggedIn}));return(0,at.useEffect)((function(){n&&e("/admin/main")}),[n]),(0,Ji.jsxs)("div",{className:"admin-login",children:[(0,Ji.jsx)("p",{className:"admin-login__title",children:"Login"}),(0,Ji.jsx)("button",{onClick:function(){(function(e,t,n){return Ng.apply(this,arguments)})(rk,uk).then((function(e){t(ok.loginUser({email:e.user.email}))})).catch((function(e){console.log(e.message)}))},children:"Login with Google"})]})};var lk=function(e){var t=e.image;return(0,Ji.jsxs)("div",{className:"home-card",children:[(0,Ji.jsxs)("p",{className:"home-card__title",children:["Image ",t.id]}),(0,Ji.jsx)("div",{className:"home-card__img-container",children:(0,Ji.jsx)("img",{src:Gd(t.file_path),alt:"",className:"home-img-".concat(t.id)})}),(0,Ji.jsx)("input",{id:"home_image#".concat(t.id),type:"file",accept:"image/*"})]})};var fk=function(e){var t=e.title,n=e.imageArr,r=En(),i=w((0,at.useState)(!1),2),a=i[0],o=i[1];return(0,Ji.jsx)("form",{className:"home-section",onSubmit:function(e){e.preventDefault();var t=e.target;if(!a){var i=[];
2Array.from(t).slice(0,-1).forEach((function(e){var t=w(e.id.split("#"),2),r=t[0],a=t[1],o=e.files[0];if(o){var s,u="".concat(Date.now(),"_").concat(o.name);try{s=n.find((function(e){return e.id===Number(a)})).file_path.split("/")[1]}catch(c){s=void 0}i.push(new Promise((function(e,t){Qw(ek(ik,"home/".concat(u)),o).then((function(){e()})).catch((function(e){return t(e)}))}))),s&&i.push(new Promise((function(e,t){Zw(ek(ik,"home/".concat(s))).then((function(){e()})).catch((function(e){return t(e)}))}))),i.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:a,data:{filePath:"home/".concat(u)}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}})),i.length&&(o(!0),Promise.all(i).catch((function(e){return console.log(e.message)})).finally((function(){Array.from(t).slice(0,-1).forEach((function(e){e.value=""})),fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/home-image")).then((function(e){return e.json()})).then((function(e){var t=e.status,n=e.message,i=e.data;if("success"!==t)throw new Error(n);r(Ti.setHomeImageArr(i.homeImageArr))})).catch((function(e){return console.log(e.message)})).finally((function(){return o(!1)}))})))}},children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("p",{className:"home-section__title",children:t}),n.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(lk,{image:e})},t)})),(0,Ji.jsx)("button",{className:"home-section__confirm-btn",type:"submit",disabled:a,children:a?"Updating":"Confirm"})]})})};var dk=function(){var e=mn((function(e){return e.resource.homeImageArr})),t=e.slice(0,3),n=e.slice(3);return(0,Ji.jsxs)("div",{className:"admin-home",children:[(0,Ji.jsx)(fk,{title:"About Us Images",imageArr:t}),(0,Ji.jsx)(fk,{title:"Goal and Objective Images",imageArr:n})]})};var hk=n.p+"static/media/gray-bin.ade79acdc3bbbd3c3c4232a87fd8ff57.svg";var pk=function(e){var t=e.member,n=e.memberProfileLinkArr,r=En(),i=t.id,a=t.type,s=t.img_file_path,u=t.name,c=t.rank,l=t.education_arr,f=t.profile_link_id_arr,d=t.isNew,h=t.isDeleted,p=(0,at.useCallback)((function(){r(Ti.addMemberProfileLink({memberId:i}))}),[r,i]),v=(0,at.useCallback)((function(){r(Ti.updateMember({id:i,educationArr:[].concat(o(l),[""])}))}),[r,i,l]);return(0,at.useEffect)((function(){f||r(Ti.updateMember({id:i,profileLinkIdArr:[]})),l||r(Ti.updateMember({id:i,educationArr:[]}))}),[r,i,l,f]),(0,at.useEffect)((function(){f&&0===f.length&&p(),l&&0===l.length&&v()}),[f,l,p,v]),h?(0,Ji.jsx)(Ji.Fragment,{}):(0,Ji.jsxs)("div",{className:"member-current-card ".concat("undergraduate student"===a?"align-center":""),children:[(0,Ji.jsx)("p",{className:"member-current-card__title",children:t.type}),"member"===a&&(0,Ji.jsxs)("div",{className:"member-current-card__image-container",children:[(0,Ji.jsx)("img",{src:Gd(s),alt:""}),(0,Ji.jsx)("input",{id:"member#".concat(i,"#img_file_path"),type:"file",accept:"image/*",required:d})]}),(0,Ji.jsxs)("div",{className:"member-current-card__name-rank-education-container",children:[(0,Ji.jsxs)("div",{className:"name-container ".concat("undergraduate student"===a?"flex-row":""),children:[(0,Ji.jsx)("label",{children:"Name"}),(0,Ji.jsx)("input",{id:"member#".concat(i,"#name"),type:"text",defaultValue:u,placeholder:"Name",required:!0})]}),("member"===a||"graduate student"===a)&&(0,Ji.jsxs)("div",{className:"rank-container",children:[(0,Ji.jsx)("label",{children:"Rank"}),(0,Ji.jsx)("input",{id:"member#".concat(i,"#rank"),type:"text",defaultValue:c,placeholder:"Rank",required:!0})]}),("member"===a||"visiting member"===a)&&(0,Ji.jsxs)("div",{className:"education-container",children:[(0,Ji.jsx)("label",{children:"visiting member"===a?"University":"Education"}),l&&l.map((function(e,t){return(0,Ji.jsx)("input",{id:"member#".concat(i,"#education_arr#").concat(t),type:"text",defaultValue:e,placeholder:"member"===a?"Education":"University",required:0===t},t)})),"member"===a&&(0,Ji.jsx)("button",{onClick:v,type:"button",children:"Add More"})]})]}),("member"===a||"visiting member"===a||"graduate student"===a)&&(0,Ji.jsxs)("div",{className:"member-current-card__profile-link-container",children:[(0,Ji.jsx)("label",{children:"Profile Link"}),f&&f.map((function(e,t){var r=n.find((function(t){return t.id===e}))||{},a=r.title,o=r.link;return(0,Ji.jsxs)("div",{className:"profile-link",children:[(0,Ji.jsx)("input",{id:"member#".concat(i,"#profile_link_id_arr#").concat(e,"#title"),type:"text",defaultValue:a,className:"title",placeholder:"Title"}),(0,Ji.jsx)("input",{id:"member#".concat(i,"#profile_link_id_arr#").concat(e,"#link"),type:"text",defaultValue:o,className:"link",placeholder:"Link"})]},t)})),(0,Ji.jsx)("button",{onClick:p,type:"button",children:"Add More"})]}),(0,Ji.jsx)("button",{className:"member-current-card__delete-btn",type:"button",onClick:function(){r(Ti.deleteMember({id:i}))},children:(0,Ji.jsx)("img",{src:hk,alt:""})})]})};var vk=function(e){var t=e.title,n=e.allMemberArr,r=e.memberProfileLinkArr,i=e.status,a=e.type,o=e.studentImage,s=En(),u=w((0,at.useState)(!1),2),c=u[0],l=u[1],f=n.filter((function(e){return e.status===i&&e.type===a}));return(0,Ji.jsx)("form",{className:"member-current-section",onSubmit:function(e){e.preventDefault();var t=Array.from(e.target).filter((function(e){return"INPUT"===e.tagName}));if(!c){var u=[],d=[];switch(a){case"member":case"visiting member":case"graduate student":h(),p(),v(),m();break;case"undergraduate student":h(),v()}l(!0),Promise.all(u).catch((function(e){console.log(e.message)})).finally((function(){switch(a){case"member":t.filter((function(e){return e.id.includes("#img_file_path")}
2)).forEach((function(e){var t=w(e.id.split("#"),2),n=t[0],r=t[1],i=e.files[0];if(i){var a,o="".concat(Date.now(),"_").concat(i.name);try{a=f.find((function(e){return e.id===Number(r)})).img_file_path.split("/")[1]}catch(s){a=void 0}d.push(new Promise((function(e,t){Qw(ek(ik,"member/".concat(o)),i).then((function(){e()})).catch((function(e){return t(e)}))}))),a&&d.push(new Promise((function(e,t){Zw(ek(ik,"member/".concat(a))).then((function(){e()})).catch((function(e){return t(e)}))}))),d.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:n,id:r,data:{imgFilePath:"member/".concat(o)}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}})),y(),g(),b(),k(),x(),_(),S();break;case"visiting member":y(),b(),k(),x(),_(),S();break;case"graduate student":y(),g(),k(),x(),_(),S(),E();break;case"undergraduate student":y(),E()}Promise.all(d).catch((function(e){return console.log(e.message)})).finally((function(){t.filter((function(e){return"file"===e.type})).forEach((function(e){return e.value=""}));var e=[];e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/all-member")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,i=t.message;if("success"!==n)throw new Error(i);e(r.allMemberArr)})).catch((function(e){return t(e)}))}))),e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/member-profile-link")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,i=t.message;if("success"!==n)throw new Error(i);e(r.memberProfileLinkArr)})).catch((function(e){return t(e.message)}))}))),e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/student-image")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,i=t.message;if("success"!==n)throw new Error(i);e(r.studentImageArr)})).catch((function(e){return t(e.message)}))}))),Promise.all(e).then((function(e){var t=e[0],n=e[1],r=e[2];s(Ti.setAllMemberArr(t)),s(Ti.setMemberProfileLinkArr(n)),s(Ti.setStudentImageArr(r))})).catch((function(e){return console.log(e.message)})).finally((function(){return l(!1)}))}))}))}function h(){f.filter((function(e){return e.isNew&&!e.isDeleted})).map((function(e){return e.id})).forEach((function(e){u.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member",data:{id:e,status:i,type:a}})}).then((function(){return t()})).catch((function(e){return n(e)}))})))}))}function p(){var e=[];f.map((function(e){return r.filter((function(t){return e.profile_link_id_arr.includes(t.id)&&t.isNew&&!t.isDeleted})).map((function(e){return e.id}))})).forEach((function(t){return t.forEach((function(t){return e.push(t)}))})),e.forEach((function(e){u.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member_profile_link",data:{id:e}})}).then((function(){return t()})).catch((function(e){return n(e)}))})))}))}function v(){f.filter((function(e){return e.isDeleted&&!e.isNew})).map((function(e){return e.id})).forEach((function(e){var t,r=n.find((function(t){return t.id===e}));try{t=r.img_file_path.split("/")[1]}catch(i){t=void 0}t&&u.push(new Promise((function(e,n){Zw(ek(ik,"member/".concat(t))).then((function(){e()})).catch((function(e){return n(e)}))}))),u.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member",id:e})}).then((function(){return t()})).catch((function(e){return n(e)}))})))}))}function m(){var e=[];f.map((function(e){return r.filter((function(t){return e.profile_link_id_arr.includes(t.id)&&t.isDeleted&&!t.isNew})).map((function(e){return e.id}))}
2)).forEach((function(t){return t.forEach((function(t){return e.push(t)}))})),e.forEach((function(e){u.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member_profile_link",id:e})}).then((function(){return t()})).catch((function(e){return n(e)}))})))}))}function y(){t.filter((function(e){return e.id.includes("#name")})).forEach((function(e){var t=w(e.id.split("#"),2),n=t[0],r=t[1],i=e.value.trim();d.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:n,id:r,data:{name:i}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}))}function g(){t.filter((function(e){return e.id.includes("#rank")})).forEach((function(e){var t=w(e.id.split("#"),2),n=t[0],r=t[1],i=e.value.trim();d.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:n,id:r,data:{rank:i}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}))}function b(){f.filter((function(e){return!e.isDeleted})).forEach((function(e){var n=t.filter((function(t){return t.id.includes("#".concat(e.id,"#education_arr"))})).map((function(e){return e.value.trim()})).filter((function(e){return e}));d.push(new Promise((function(t,r){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member",id:e.id,data:{educationArr:n}})}).then((function(){return t()})).catch((function(e){return r(e)}))})))}))}function k(){f.filter((function(e){return!e.isDeleted})).forEach((function(e){var n=t.filter((function(n,r){return n.id.includes("#".concat(e.id,"#profile_link_id_arr"))&&n.id.endsWith("title")&&n.value.trim()&&t[r+1].value.trim()})).map((function(e){return e.id.split("#")[3]}));d.push(new Promise((function(t,r){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member",id:e.id,data:{profileLinkIdArr:n}})}).then((function(){return t()})).catch((function(e){return r(e)}))})))}))}function x(){t.filter((function(e){return e.id.includes("#profile_link_id_arr")&&e.id.endsWith("title")})).forEach((function(e){var t=e.id.split("#")[3],n=e.value.trim();n&&d.push(new Promise((function(e,r){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member_profile_link",id:t,data:{title:n}})}).then((function(){return e()})).catch((function(e){return r(e)}))})))}))}function _(){t.filter((function(e){return e.id.includes("#profile_link_id_arr")&&e.id.endsWith("link")})).forEach((function(e){var t=e.id.split("#")[3],n=e.value.trim();n&&d.push(new Promise((function(e,r){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member_profile_link",id:t,data:{link:n}})}).then((function(){return e()})).catch((function(e){return r(e)}))})))}))}function S(){t.forEach((function(e,n){if(e.id.includes("#title")&&(!e.value.trim()||!t[n+1].value.trim())){var r=e.id.split("#")[3];d.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member_profile_link",id:r})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}}))}function E(){var e=t.find((function(e){return e.id.includes("student_image")})),n=w(e.id.split("#"),2),r=n[0],i=n[1],a=e.files[0];if(a){var s,u="".concat(Date.now(),"_").concat(a.name);try{s=o.file_path.split("/")[1]}catch(c){s=void 0}d.push(new Promise((function(e,t){Qw(ek(ik,"student-image/".concat(u)),a).then((function(){e()})).catch((function(e){return t(e)}))}))),s&&d.push(new Promise((function(e,t){Zw(ek(ik,"student-image/".concat(s))).then((function(){e()})).catch((function(e){return t(e)}))}))),d.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{filePath:"student-image/".concat(u)}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}}},children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("p",{className:"member-current-section__title",children:t}),o&&(0,Ji.jsxs)("div",{className:"member-current-card student-img",children:[(0,Ji.jsx)("img",{src:Gd(o.file_path),alt:""}),(0,Ji.jsx)("input",{id:"student_image#".concat("graduate student"===a?1:2),type:"file",accept:"image/*"})]}),f.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(pk,{member:e,memberProfileLinkArr:r})},t)})),(0,Ji.jsx)("button",{className:"member-current-section__add-btn",type:"button",onClick:function(){s(Ti.addMember({status:i,type:a}))},children:"Add More"}),(0,Ji.jsx)("button",{className:"member-current-section__confirm-btn",type:"submit",disabled:c,
2children:c?"Updating":"Confirm"})]})})};var mk=function(){var e=En(),t=mn((function(e){return e.resource.allMemberArr})),n=mn((function(e){return e.resource.memberProfileLinkArr})),r=mn((function(e){return e.resource.studentImageArr})),i=w((0,at.useState)(!1),2),a=i[0],o=i[1];return(0,at.useEffect)((function(){var t=[];t.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/all-member")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,i=t.message;if("success"!==n)throw new Error(i);e(r.allMemberArr)})).catch((function(e){return t(e)}))}))),t.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/member-profile-link")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,i=t.message;if("success"!==n)throw new Error(i);e(r.memberProfileLinkArr)})).catch((function(e){return t(e.message)}))}))),t.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/student-image")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,i=t.message;if("success"!==n)throw new Error(i);e(r.studentImageArr)})).catch((function(e){return t(e.message)}))}))),Promise.all(t).then((function(t){var n=t[0],r=t[1],i=t[2];e(Ti.setAllMemberArr(n)),e(Ti.setMemberProfileLinkArr(r)),e(Ti.setStudentImageArr(i)),o(!0)})).catch((function(e){return console.log(e.message)}))}),[e]),a?(0,Ji.jsxs)("div",{className:"admin-member-current",children:[(0,Ji.jsx)(vk,{title:"Current Member",allMemberArr:t,memberProfileLinkArr:n,status:"current",type:"member"}),(0,Ji.jsx)(vk,{title:"Visiting Member",allMemberArr:t,memberProfileLinkArr:n,status:"current",type:"visiting member"}),(0,Ji.jsx)(vk,{title:"Graduate Student",allMemberArr:t,memberProfileLinkArr:n,status:"current",type:"graduate student",studentImage:r[0]}),(0,Ji.jsx)(vk,{title:"Undergraduate Student",allMemberArr:t,memberProfileLinkArr:n,status:"current",type:"undergraduate student",studentImage:r[1]})]}):(0,Ji.jsx)(Ji.Fragment,{})};var yk=function(e){var t=e.alumni,n=e.typeArr,r=En(),i=t.id,a=t.type,o=t.name;return t.isDeleted?(0,Ji.jsx)(Ji.Fragment,{}):(0,Ji.jsxs)("div",{className:"member-alumni-card",children:[(0,Ji.jsx)("p",{className:"member-alumni-card__title",children:"Alumni"}),(0,Ji.jsxs)("div",{className:"name-container",children:[(0,Ji.jsx)("label",{children:"Name"}),(0,Ji.jsx)("input",{id:"member#".concat(i,"#name"),type:"text",defaultValue:o,placeholder:"Name",required:!0})]}),(0,Ji.jsx)("select",{id:"member#".concat(i,"#type"),defaultValue:a||"bachelor",children:n.map((function(e){return(0,Ji.jsx)("option",{value:e,children:e},e)}))}),(0,Ji.jsx)("button",{className:"member-alumni-card__delete-btn",type:"button",onClick:function(){r(Ti.deleteMember({id:i}))},children:(0,Ji.jsx)("img",{src:hk,alt:""})})]})};var gk=function(e){var t=e.year,n=e.typeArr,r=e.allAlumniArr,i=En(),a=w((0,at.useState)(!1),2),o=a[0],s=a[1],u=r.filter((function(e){return e.year===t}));return(0,Ji.jsx)("form",{className:"member-alumni-section",onSubmit:function(e){e.preventDefault();var n=Array.from(e.target).filter((function(e){return"INPUT"===e.tagName||"SELECT"===e.tagName}));if(!o){var r=[];u.filter((function(e){return e.isNew&&!e.isDeleted})).map((function(e){return e.id})).forEach((function(e){r.push(new Promise((function(n,r){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member",data:{id:e,status:"alumni",year:t}})}).then((function(){return n()})).catch((function(e){return r(e)}))})))})),u.filter((function(e){return e.isDeleted&&!e.isNew})).map((function(e){return e.id})).forEach((function(e){r.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"member",id:e})}).then((function(){return t()})).catch((function(e){return n(e)}))})))}
2)),s(!0),Promise.all(r).catch((function(e){console.log(e.message)})).finally((function(){var e=[];n.filter((function(e){return e.id.includes("#name")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{name:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),n.filter((function(e){return e.id.includes("#type")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{type:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),Promise.all(e).catch((function(e){return console.log(e.message)})).finally((function(){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/all-member")).then((function(e){return e.json()})).then((function(e){var t=e.status,n=e.data,r=e.message;if("success"!==t)throw new Error(r);var a=n.allMemberArr;i(Ti.setAllMemberArr(a))})).catch((function(e){return console.log(e.message)})).finally((function(){return s(!1)}))}))}))}},children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsxs)("p",{className:"member-alumni-section__title",children:[t," Alumni"]}),u.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(yk,{alumni:e,typeArr:n})},t)})),(0,Ji.jsx)("button",{className:"member-alumni-section__add-btn",type:"button",onClick:function(){i(Ti.addMember({status:"alumni",year:t}))},children:"Add More"}),(0,Ji.jsx)("button",{className:"member-alumni-section__confirm-btn",type:"submit",disabled:o,children:o?"Updating":"Confirm"})]})})};var bk=function(){var e=En(),t=mn((function(e){return e.resource.allMemberArr})),n=w((0,at.useState)(!1),2),r=n[0],i=n[1],a=w((0,at.useState)([]),2),s=a[0],u=a[1],c=t.filter((function(e){return"alumni"===e.status})),l=["doctor","master","bachelor","internship"];return(0,at.useEffect)((function(){var e=[];c.forEach((function(t){var n=t.year;!e.includes(n)&&e.push(n)})),e.sort().reverse(),u(e)}),[]),(0,at.useEffect)((function(){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/all-member")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,a=t.message;if("success"!==n)throw new Error(a);var o=r.allMemberArr;e(Ti.setAllMemberArr(o)),i(!0)})).catch((function(e){return console.log(e.message)}))}),[e]),r?(0,Ji.jsxs)("div",{className:"admin-member-alumni",children:[(0,Ji.jsx)("div",{className:"admin-member-alumni__add-more",children:(0,Ji.jsx)("button",{onClick:function(){u((function(e){return[e[0]+1].concat(o(e))}))},children:"Add Year"})}),s.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(gk,{year:e,typeArr:l,allAlumniArr:c})},t)}))]}):(0,Ji.jsx)(Ji.Fragment,{})};var wk=function(e){var t=e.publication,n=En(),r=t.id,i=t.category_name,a=t.img_file_path,o=t.title,s=t.link,u=t.full_name,c=t.year,l=t.isDeleted,f=t.isNew;return l?(0,Ji.jsx)(Ji.Fragment,{}):(0,Ji.jsxs)("div",{className:"publication-card",children:[(0,Ji.jsx)("p",{className:"publication-card__title",children:"Publication"}),(0,Ji.jsxs)("div",{className:"publication-card__image-container",children:[(0,Ji.jsx)("img",{src:Gd(a),alt:""}),(0,Ji.jsx)("input",{id:"research_publication#".concat(r,"#img_file_path"),type:"file",accept:"image/*",required:f})]}),(0,Ji.jsxs)("div",{className:"publication-card__detail-container",children:[(0,Ji.jsx)("div",{className:"top",children:(0,Ji.jsxs)("div",{className:"full-name-container",children:[(0,Ji.jsx)("label",{children:"Full Name"}),(0,Ji.jsx)("input",{id:"research_publication#".concat(r,"#full_name"),type:"text",defaultValue:u,placeholder:"Full Name",required:!0})]})}),(0,Ji.jsxs)("div",{className:"bottom",children:[(0,Ji.jsxs)("div",{className:"bottom__top",children:[(0,Ji.jsxs)("div",{className:"category-container",children:[(0,Ji.jsx)("label",{children:"Category"}),(0,Ji.jsx)("input",{id:"research_publication#".concat(r,"#category_name"),type:"text",defaultValue:i,placeholder:"Category",required:!0})]}),(0,Ji.jsxs)("div",{className:"title-container",children:[(0,Ji.jsx)("label",{children:"Title"}),(0,Ji.jsx)("input",{id:"research_publication#".concat(r,"#title"),type:"text",defaultValue:o,placeholder:"Title",required:!0})]})]}),(0,Ji.jsxs)("div",{className:"bottom__bottom",children:[(0,Ji.jsxs)("div",{className:"link-container",children:[(0,Ji.jsx)("label",{children:"Link"}),(0,Ji.jsx)("input",{id:"research_publication#".concat(r,"#link"),type:"text",defaultValue:s,placeholder:"Link"})]}),(0,Ji.jsxs)("div",{className:"year-container",children:[(0,Ji.jsx)("label",{children:"Year"}),(0,Ji.jsx)("input",{id:"research_publication#".concat(r,"#year"),type:"number",defaultValue:c,placeholder:"Year",required:!0})]})]})]})]}),(0,Ji.jsx)("button",{className:"publication-card__delete-btn",type:"button",onClick:function(){n(Ti.deleteResearchPublication({id:r}))},children:(0,Ji.jsx)("img",{src:hk,alt:""})})]})};var kk=function(e){var t=e.publicationArr,n=En(),r=w((0,at.useState)(!1),2),i=r[0],a=r[1];return(0,Ji.jsx)("form",{className:"publication-section",onSubmit:function(e){e.preventDefault();var r=Array.from(e.target).filter((function(e){return"INPUT"===e.tagName||"SELECT"===e.tagName}));if(!i){var o=[];t.filter((function(e){return e.isNew&&!e.isDeleted})).map((function(e){return e.id}
2)).forEach((function(e){o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"research_publication",data:{id:e}})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),t.filter((function(e){return e.isDeleted&&!e.isNew})).map((function(e){return e.id})).forEach((function(e){var n,r=t.find((function(t){return t.id===e}));try{n=r.img_file_path.split("/")[1]}catch(i){n=void 0}n&&o.push(new Promise((function(e,t){Zw(ek(ik,"publication/".concat(n))).then((function(){e()})).catch((function(e){return t(e)}))}))),o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"research_publication",id:e})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),a(!0),Promise.all(o).catch((function(e){console.log(e.message)})).finally((function(){var e=[];r.filter((function(e){return e.id.includes("#img_file_path")})).forEach((function(n){var r=w(n.id.split("#"),2),i=r[0],a=r[1],o=n.files[0];if(o){var s,u="".concat(Date.now(),"_").concat(o.name);try{s=t.find((function(e){return e.id===Number(a)})).img_file_path.split("/")[1]}catch(c){s=void 0}e.push(new Promise((function(e,t){Qw(ek(ik,"publication/".concat(u)),o).then((function(){e()})).catch((function(e){return t(e)}))}))),s&&e.push(new Promise((function(e,t){Zw(ek(ik,"publication/".concat(s))).then((function(){e()})).catch((function(e){return t(e)}))}))),e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:i,id:a,data:{imgFilePath:"publication/".concat(u)}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}})),r.filter((function(e){return e.id.includes("#full_name")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{fullName:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#category_name")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{categoryName:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#title")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{title:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#link")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{link:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#year")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=Math.round(Number(t.value));e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{year:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),Promise.all(e).catch((function(e){return console.log(e.message)})).finally((function(){r.filter((function(e){return"file"===e.type}
2)).forEach((function(e){return e.value=""})),fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/publication")).then((function(e){return e.json()})).then((function(e){var t=e.status,r=e.data,i=e.message;if("success"!==t)throw new Error(i);var a=r.researchPublicationArr;n(Ti.setResearchPublicationArr(a))})).catch((function(e){return console.log(e.message)})).finally((function(){return a(!1)}))}))}))}},children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("p",{className:"publication-section__title",children:"Research Publication"}),t.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(wk,{publication:e})},t)})),(0,Ji.jsx)("button",{className:"publication-section__add-btn",type:"button",onClick:function(){n(Ti.addResearchPublication())},children:"Add More"}),(0,Ji.jsx)("button",{className:"publication-section__confirm-btn",type:"submit",disabled:i,children:i?"Updating":"Confirm"})]})})};var xk=function(){var e=En(),t=mn((function(e){return e.resource.researchPublicationArr})),n=w((0,at.useState)(!1),2),r=n[0],i=n[1];return(0,at.useEffect)((function(){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/publication")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,a=t.message;if("success"!==n)throw new Error(a);var o=r.researchPublicationArr;e(Ti.setResearchPublicationArr(o)),i(!0)})).catch((function(e){return console.log(e.message)}))}),[e]),r?(0,Ji.jsx)("div",{className:"admin-publication",children:(0,Ji.jsx)(kk,{publicationArr:t})}):(0,Ji.jsx)(Ji.Fragment,{})};var _k=function(e){var t=e.activity,n=En(),r=t.id,i=t.poster_file_path,a=t.title,o=t.link,s=t.isDeleted,u=t.isNew;return s?(0,Ji.jsx)(Ji.Fragment,{}):(0,Ji.jsxs)("div",{className:"activity-card",children:[(0,Ji.jsx)("p",{className:"activity-card__title",children:"Activity"}),(0,Ji.jsxs)("div",{className:"activity-card__image-container",children:[(0,Ji.jsx)("img",{src:Gd(i),alt:""}),(0,Ji.jsx)("input",{id:"activity#".concat(r,"#poster_file_path"),type:"file",accept:"image/*",required:u})]}),(0,Ji.jsxs)("div",{className:"activity-card__detail-container",children:[(0,Ji.jsxs)("div",{className:"title-container",children:[(0,Ji.jsx)("label",{children:"Title"}),(0,Ji.jsx)("input",{id:"activity#".concat(r,"#title"),type:"text",defaultValue:a,placeholder:"Title"})]}),(0,Ji.jsxs)("div",{className:"link-container",children:[(0,Ji.jsx)("label",{children:"Link"}),(0,Ji.jsx)("input",{id:"activity#".concat(r,"#link"),type:"text",defaultValue:o,placeholder:"Link"})]})]}),(0,Ji.jsx)("button",{className:"activity-card__delete-btn",type:"button",onClick:function(){n(Ti.deleteActivity({id:r}))},children:(0,Ji.jsx)("img",{src:hk,alt:""})})]})};var Sk=function(e){var t=e.activityArr,n=En(),r=w((0,at.useState)(!1),2),i=r[0],a=r[1];return(0,Ji.jsx)("form",{className:"activity-section",onSubmit:function(e){e.preventDefault();var r=Array.from(e.target).filter((function(e){return"INPUT"===e.tagName||"SELECT"===e.tagName}));if(!i){var o=[];t.filter((function(e){return e.isNew&&!e.isDeleted})).map((function(e){return e.id})).forEach((function(e){o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"activity",data:{id:e}})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),t.filter((function(e){return e.isDeleted&&!e.isNew})).map((function(e){return e.id})).forEach((function(e){var n,r=t.find((function(t){return t.id===e}));try{n=r.poster_file_path.split("/")[1]}catch(i){n=void 0}n&&o.push(new Promise((function(e,t){Zw(ek(ik,"activity/".concat(n))).then((function(){e()})).catch((function(e){return t(e)}))}))),o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"activity",id:e})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),a(!0),Promise.all(o).catch((function(e){console.log(e.message)})).finally((function(){var e=[];r.filter((function(e){return e.id.includes("#poster_file_path")}
2)).forEach((function(n){var r=w(n.id.split("#"),2),i=r[0],a=r[1],o=n.files[0];if(o){var s,u="".concat(Date.now(),"_").concat(o.name);try{s=t.find((function(e){return e.id===Number(a)})).poster_file_path.split("/")[1]}catch(c){s=void 0}e.push(new Promise((function(e,t){Qw(ek(ik,"activity/".concat(u)),o).then((function(){e()})).catch((function(e){return t(e)}))}))),s&&e.push(new Promise((function(e,t){Zw(ek(ik,"activity/".concat(s))).then((function(){e()})).catch((function(e){return t(e)}))}))),e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:i,id:a,data:{posterFilePath:"activity/".concat(u)}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}})),r.filter((function(e){return e.id.includes("#title")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{title:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#link")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{link:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),Promise.all(e).catch((function(e){return console.log(e.message)})).finally((function(){r.filter((function(e){return"file"===e.type})).forEach((function(e){return e.value=""})),fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/activity")).then((function(e){return e.json()})).then((function(e){var t=e.status,r=e.data,i=e.message;if("success"!==t)throw new Error(i);var a=r.activityArr;n(Ti.setActivityArr(a))})).catch((function(e){return console.log(e.message)})).finally((function(){return a(!1)}))}))}))}},children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("p",{className:"activity-section__title",children:"Activity"}),t.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(_k,{activity:e})},t)})),(0,Ji.jsx)("button",{className:"activity-section__add-btn",type:"button",onClick:function(){n(Ti.addActivity())},children:"Add More"}),(0,Ji.jsx)("button",{className:"activity-section__confirm-btn",type:"submit",disabled:i,children:i?"Updating":"Confirm"})]})})};var Ek=function(){var e=En(),t=mn((function(e){return e.resource.activityArr})),n=w((0,at.useState)(!1),2),r=n[0],i=n[1];return(0,at.useEffect)((function(){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/activity")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,a=t.message;if("success"!==n)throw new Error(a);var o=r.activityArr;e(Ti.setActivityArr(o)),i(!0)})).catch((function(e){return console.log(e.message)}))}),[e]),r?(0,Ji.jsx)("div",{className:"admin-activity",children:(0,Ji.jsx)(Sk,{activityArr:t})}):(0,Ji.jsx)(Ji.Fragment,{})};var Pk=function(e){var t=e.project,n=En(),r=t.id,i=t.category_name,a=t.img_file_path,o=t.title,s=t.link,u=t.collaboration,c=t.scope,l=t.funder,f=t.start_date,d=t.end_date,h=t.description,p=t.isDeleted,v=t.isNew;return p?(0,Ji.jsx)(Ji.Fragment,{}):(0,Ji.jsxs)("div",{className:"project-card",children:[(0,Ji.jsx)("p",{className:"project-card__title",children:"Project"}),(0,Ji.jsxs)("div",{className:"project-card__image-container",children:[(0,Ji.jsx)("img",{src:Gd(a),alt:""}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#img_file_path"),type:"file",accept:"image/*",required:v})]}),(0,Ji.jsxs)("div",{className:"project-card__detail-container",children:[(0,Ji.jsxs)("div",{className:"row",children:[(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Category"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#category_name"),type:"text",defaultValue:i,placeholder:"Category",required:!0})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Title"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#title"),type:"text",defaultValue:o,placeholder:"Title",required:!0})]})]}),(0,Ji.jsxs)("div",{className:"row",children:[(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Description"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#description"),type:"text",defaultValue:h,placeholder:"Description",required:!0})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Collaboration"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#collaboration"),type:"text",defaultValue:u,placeholder:"Collaboration"})]})]}),(0,Ji.jsxs)("div",{className:"row",children:[(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Funder"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#funder"),type:"text",defaultValue:l,placeholder:"Funder"})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Link"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#link"),type:"text",defaultValue:s,placeholder:"Link"})]})]}),(0,Ji.jsxs)("div",{className:"row",children:[(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Start Date"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#start_date"),type:"text",defaultValue:f,placeholder:"Start Date",required:!0})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"End Date"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#end_date"),type:"text",defaultValue:d,placeholder:"End Date",required:!0})]})]}),(0,Ji.jsx)("div",{className:"row",children:(0,Ji.jsxs)("div",{className:"fill",children:[(0,Ji.jsx)("label",{children:"Scope"}),(0,Ji.jsx)("input",{id:"project#".concat(r,"#scope"),type:"text",defaultValue:c,placeholder:"Scope"})]})})]}),(0,Ji.jsx)("button",{className:"project-card__delete-btn",type:"button",onClick:function(){n(Ti.deleteProject({id:r}))},children:(0,Ji.jsx)("img",{src:hk,alt:""})})]})};var Tk=function(e){var t=e.projectArr,n=En(),r=w((0,at.useState)(!1),2),i=r[0],a=r[1];return(0,Ji.jsx)("form",{className:"project-section",onSubmit:function(e){e.preventDefault();var r=Array.from(e.target).filter((function(e){return"INPUT"===e.tagName||"SELECT"===e.tagName}));if(!i){var o=[];t.filter((function(e){return e.isNew&&!e.isDeleted})).map((function(e){return e.id}
2)).forEach((function(e){o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"project",data:{id:e}})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),t.filter((function(e){return e.isDeleted&&!e.isNew})).map((function(e){return e.id})).forEach((function(e){var n,r=t.find((function(t){return t.id===e}));try{n=r.img_file_path.split("/")[1]}catch(i){n=void 0}n&&o.push(new Promise((function(e,t){Zw(ek(ik,"project/".concat(n))).then((function(){e()})).catch((function(e){return t(e)}))}))),o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"project",id:e})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),a(!0),Promise.all(o).catch((function(e){console.log(e.message)})).finally((function(){var e=[];r.filter((function(e){return e.id.includes("#img_file_path")})).forEach((function(n){var r=w(n.id.split("#"),2),i=r[0],a=r[1],o=n.files[0];if(o){var s,u="".concat(Date.now(),"_").concat(o.name);try{s=t.find((function(e){return e.id===Number(a)})).img_file_path.split("/")[1]}catch(c){s=void 0}e.push(new Promise((function(e,t){Qw(ek(ik,"project/".concat(u)),o).then((function(){e()})).catch((function(e){return t(e)}))}))),s&&e.push(new Promise((function(e,t){Zw(ek(ik,"project/".concat(s))).then((function(){e()})).catch((function(e){return t(e)}))}))),e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:i,id:a,data:{imgFilePath:"project/".concat(u)}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}})),r.filter((function(e){return e.id.includes("#category_name")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{categoryName:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#title")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{title:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#description")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{description:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#collaboration")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{collaboration:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#funder")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{funder:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#link")}
2)).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{link:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#start_date")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{startDate:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#end_date")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{endDate:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#scope")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{scope:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),Promise.all(e).catch((function(e){return console.log(e.message)})).finally((function(){r.filter((function(e){return"file"===e.type})).forEach((function(e){return e.value=""})),fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/project")).then((function(e){return e.json()})).then((function(e){var t=e.status,r=e.data,i=e.message;if("success"!==t)throw new Error(i);var a=r.projectArr;n(Ti.setProjectArr(a))})).catch((function(e){return console.log(e.message)})).finally((function(){return a(!1)}))}))}))}},children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("p",{className:"project-section__title",children:"Project"}),t.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(Pk,{project:e})},t)})),(0,Ji.jsx)("button",{className:"project-section__add-btn",type:"button",onClick:function(){n(Ti.addProject())},children:"Add More"}),(0,Ji.jsx)("button",{className:"project-section__confirm-btn",type:"submit",disabled:i,children:i?"Updating":"Confirm"})]})})};var Ck=function(){var e=En(),t=mn((function(e){return e.resource.projectArr})),n=w((0,at.useState)(!1),2),r=n[0],i=n[1];return(0,at.useEffect)((function(){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/project")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,a=t.message;if("success"!==n)throw new Error(a);var o=r.projectArr;e(Ti.setProjectArr(o)),i(!0)})).catch((function(e){return console.log(e.message)}))}),[e]),r?(0,Ji.jsx)("div",{className:"admin-project",children:(0,Ji.jsx)(Tk,{projectArr:t})}):(0,Ji.jsx)(Ji.Fragment,{})};var Ak=function(e){var t=e.recruitment,n=En(),r=t.id,i=t.poster_file_path,a=t.title,o=t.number,s=t.period,u=t.contact;return t.isDeleted?(0,Ji.jsx)(Ji.Fragment,{}):(0,Ji.jsxs)("div",{className:"recruitment-card",children:[(0,Ji.jsx)("p",{className:"recruitment-card__title",children:"Recruitment"}),(0,Ji.jsxs)("div",{className:"recruitment-card__image-container",children:[(0,Ji.jsx)("img",{src:Gd(i),alt:""}),(0,Ji.jsx)("input",{id:"recruitment#".concat(r,"#poster_file_path"),type:"file",accept:"image/*"})]}),(0,Ji.jsxs)("div",{className:"recruitment-card__detail-container",children:[(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Title"}),(0,Ji.jsx)("input",{id:"recruitment#".concat(r,"#title"),type:"text",defaultValue:a,placeholder:"Title",required:!0})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Number of Positions"}),(0,Ji.jsx)("input",{id:"recruitment#".concat(r,"#number"),type:"number",defaultValue:o,placeholder:"Number of Positions",required:!0})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Period"}),(0,Ji.jsx)("input",{id:"recruitment#".concat(r,"#period"),type:"text",defaultValue:s,placeholder:"Period",required:!0})]}),(0,Ji.jsxs)("div",{children:[(0,Ji.jsx)("label",{children:"Contact"}),(0,Ji.jsx)("input",{id:"recruitment#".concat(r,"#contact"),type:"text",defaultValue:u,placeholder:"Contact",required:!0})]})]}),(0,Ji.jsx)("button",{className:"recruitment-card__delete-btn",type:"button",onClick:function(){n(Ti.deleteRecruitment({id:r}))},children:(0,Ji.jsx)("img",{src:hk,alt:""})})]})};var jk=function(e){var t=e.recruitmentArr,n=En(),r=w((0,at.useState)(!1),2),i=r[0],a=r[1];return(0,Ji.jsx)("form",{className:"recruitment-section",onSubmit:function(e){e.preventDefault();var r=Array.from(e.target).filter((function(e){return"INPUT"===e.tagName||"SELECT"===e.tagName}));if(!i){var o=[];t.filter((function(e){return e.isNew&&!e.isDeleted})).map((function(e){return e.id}
2)).forEach((function(e){o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"recruitment",data:{id:e}})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),t.filter((function(e){return e.isDeleted&&!e.isNew})).map((function(e){return e.id})).forEach((function(e){var n,r=t.find((function(t){return t.id===e}));try{n=r.poster_file_path.split("/")[1]}catch(i){n=void 0}n&&o.push(new Promise((function(e,t){Zw(ek(ik,"recruitment/".concat(n))).then((function(){e()})).catch((function(e){return t(e)}))}))),o.push(new Promise((function(t,n){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:"recruitment",id:e})}).then((function(){return t()})).catch((function(e){return n(e)}))})))})),a(!0),Promise.all(o).catch((function(e){console.log(e.message)})).finally((function(){var e=[];r.filter((function(e){return e.id.includes("#poster_file_path")})).forEach((function(n){var r=w(n.id.split("#"),2),i=r[0],a=r[1],o=n.files[0];if(o){var s,u="".concat(Date.now(),"_").concat(o.name);try{s=t.find((function(e){return e.id===Number(a)})).poster_file_path.split("/")[1]}catch(c){s=void 0}e.push(new Promise((function(e,t){Qw(ek(ik,"recruitment/".concat(u)),o).then((function(){e()})).catch((function(e){return t(e)}))}))),s&&e.push(new Promise((function(e,t){Zw(ek(ik,"recruitment/".concat(s))).then((function(){e()})).catch((function(e){return t(e)}))}))),e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:i,id:a,data:{posterFilePath:"recruitment/".concat(u)}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))}})),r.filter((function(e){return e.id.includes("#title")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{title:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#number")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=Math.round(Number(t.value));e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{number:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#period")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{period:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),r.filter((function(e){return e.id.includes("#contact")})).forEach((function(t){var n=w(t.id.split("#"),2),r=n[0],i=n[1],a=t.value.trim();e.push(new Promise((function(e,t){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tableName:r,id:i,data:{contact:a}})}).then((function(){return e()})).catch((function(e){return t(e)}))})))})),Promise.all(e).catch((function(e){return console.log(e.message)})).finally((function(){r.filter((function(e){return"file"===e.type})).forEach((function(e){return e.value=""})),fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/recruitment")).then((function(e){return e.json()})).then((function(e){var t=e.status,r=e.data,i=e.message;if("success"!==t)throw new Error(i);var a=r.recruitmentArr;n(Ti.setRecruitmentArr(a))})).catch((function(e){return console.log(e.message)})).finally((function(){return a(!1)}))}))}))}},children:(0,Ji.jsxs)("div",{className:"content",children:[(0,Ji.jsx)("p",{className:"recruitment-section__title",children:"Recruitment"}),t.map((function(e,t){return(0,Ji.jsx)(at.Fragment,{children:(0,Ji.jsx)(Ak,{recruitment:e})},t)})),(0,Ji.jsx)("button",{className:"recruitment-section__add-btn",type:"button",onClick:function(){n(Ti.addRecruitment())},children:"Add More"}),(0,Ji.jsx)("button",{className:"recruitment-section__confirm-btn",type:"submit",disabled:i,children:i?"Updating":"Confirm"})]})})};var Nk=function(){var e=En(),t=mn((function(e){return e.resource.recruitmentArr})),n=w((0,at.useState)(!1),2),r=n[0],i=n[1];return(0,at.useEffect)((function(){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource/recruitment")).then((function(e){return e.json()})).then((function(t){var n=t.status,r=t.data,a=t.message;if("success"!==n)throw new Error(a);var o=r.recruitmentArr;e(Ti.setRecruitmentArr(o)),i(!0)})).catch((function(e){return console.log(e.message)}))}),[e]),r?(0,Ji.jsx)("div",{className:"admin-recruitment",children:(0,Ji.jsx)(jk,{recruitmentArr:t})}
2):(0,Ji.jsx)(Ji.Fragment,{})};var Ik=function(){var e=St();return(0,Ji.jsxs)("div",{className:"admin-main",children:[(0,Ji.jsx)("p",{className:"admin-main__title",children:"Please Select Page"}),(0,Ji.jsxs)("select",{defaultValue:"home",onChange:function(t){e(t.target.value)},className:"admin-main__select",children:[(0,Ji.jsx)("option",{value:"home",children:"Home"}),(0,Ji.jsx)("option",{value:"member-current",children:"Current Member"}),(0,Ji.jsx)("option",{value:"member-alumni",children:"Alumni"}),(0,Ji.jsx)("option",{value:"publication",children:"Publications"}),(0,Ji.jsx)("option",{value:"activity",children:"Activities"}),(0,Ji.jsx)("option",{value:"project",children:"Projects"}),(0,Ji.jsx)("option",{value:"recruitment",children:"Recruitment"})]}),(0,Ji.jsxs)(Ft,{children:[(0,Ji.jsx)(Lt,{path:"home",element:(0,Ji.jsx)(dk,{})}),(0,Ji.jsx)(Lt,{path:"member-current",element:(0,Ji.jsx)(mk,{})}),(0,Ji.jsx)(Lt,{path:"member-alumni",element:(0,Ji.jsx)(bk,{})}),(0,Ji.jsx)(Lt,{path:"publication",element:(0,Ji.jsx)(xk,{})}),(0,Ji.jsx)(Lt,{path:"activity",element:(0,Ji.jsx)(Ek,{})}),(0,Ji.jsx)(Lt,{path:"project",element:(0,Ji.jsx)(Ck,{})}),(0,Ji.jsx)(Lt,{path:"recruitment",element:(0,Ji.jsx)(Nk,{})}),(0,Ji.jsx)(Lt,{path:"*",element:(0,Ji.jsx)(Mt,{replace:!0,to:"home"})})]})]})};var Ok=function(){var e=_t().pathname,t=En(),n=St(),r=mn((function(e){return e.user.adminIsLoggedIn}));return(0,at.useEffect)((function(){fetch("".concat("https://drmis-backend.up.railway.app","/api/resource")).then((function(e){return e.json()})).then((function(e){var n=e.status,r=e.data,i=e.message;if("success"!==n)throw new Error(i);var a=r.researchPublicationArr,o=r.projectArr,s=r.allMemberArr,u=r.memberProfileLinkArr,c=r.recruitmentArr,l=r.activityArr,f=r.homeImageArr,d=r.studentImageArr;t(Ti.setResearchPublicationArr(a)),t(Ti.setProjectArr(o)),t(Ti.setAllMemberArr(s)),t(Ti.setMemberProfileLinkArr(u)),t(Ti.setRecruitmentArr(c)),t(Ti.setActivityArr(l)),t(Ti.setHomeImageArr(f)),t(Ti.setStudentImageArr(d))})).catch((function(e){return console.log(e.message)})),t(Ti.setResearchPublicationArr()),t(Ti.setProjectArr()),t(Ti.setAllMemberArr()),t(Ti.setMemberProfileLinkArr()),t(Ti.setRecruitmentArr()),t(Ti.setActivityArr()),t(Ti.setHomeImageArr()),t(Ti.setStudentImageArr())}),[t]),(0,at.useEffect)((function(){e.startsWith("/admin")&&!r&&n("/admin/login")}),[e,r]),(0,Ji.jsxs)(Ji.Fragment,{children:[(0,Ji.jsx)(Yi,{}),(0,Ji.jsxs)(Ft,{children:[(0,Ji.jsx)(Lt,{path:"/",element:(0,Ji.jsx)(ih,{})}),(0,Ji.jsx)(Lt,{path:"/member-current",element:(0,Ji.jsx)(ch,{})}),(0,Ji.jsx)(Lt,{path:"/member-alumni",element:(0,Ji.jsx)(fh,{})}),(0,Ji.jsx)(Lt,{path:"/publication",element:(0,Ji.jsx)(mh,{})}),(0,Ji.jsx)(Lt,{path:"/activity",element:(0,Ji.jsx)(Ph,{})}),(0,Ji.jsx)(Lt,{path:"/project",element:(0,Ji.jsx)(hh,{})}),(0,Ji.jsx)(Lt,{path:"/recruitment",element:(0,Ji.jsx)(Ch,{})}),(0,Ji.jsx)(Lt,{path:"/contact-us",element:(0,Ji.jsx)(jh,{})}),(0,Ji.jsx)(Lt,{path:"/admin/login",element:(0,Ji.jsx)(ck,{})}),(0,Ji.jsx)(Lt,{path:"/admin/main/*",element:(0,Ji.jsx)(Ik,{})}),(0,Ji.jsx)(Lt,{path:"/*",element:(0,Ji.jsx)(Mt,{replace:!0,to:"/"})})]}),(0,Ji.jsx)(ia,{})]})},Rk=function(e){var t,n=ii(),r=e||{},i=r.reducer,a=void 0===i?void 0:i,o=r.middleware,s=void 0===o?n():o,u=r.devTools,c=void 0===u||u,l=r.preloadedState,f=void 0===l?void 0:l,d=r.enhancers,h=void 0===d?void 0:d;if("function"===typeof a)t=a;else{if(!ti(a))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Dr(a)}var p=s;if("function"===typeof p&&(p=p(n),!ai&&!Array.isArray(p)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ai&&p.some((function(e){return"function"!==typeof e})))throw new Error("each middleware provided to configureStore must be a function");var v=Lr.apply(void 0,p),m=Mr;c&&(m=ei(Xr({trace:!ai},"object"===typeof c&&c)));var y=[v];return Array.isArray(h)?y=Wr([v],h):"function"===typeof h&&(y=h(y)),Rr(t,f,m.apply(void 0,y))}({reducer:{resource:Ci,user:sk}}),Dk=Rk;(0,t.s)(document.getElementById("root")).render((0,Ji.jsx)(wn,{store:Dk,children:(0,Ji.jsx)(Dt,{router:function(e,t){return Ee({basename:null==t?void 0:t.basename,history:(n={window:null==t?void 0:t.window},void 0===n&&(n={}),L((function(e,t){var n=e.location;return R("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:D(t)}),null,n)),hydrationData:(null==t?void 0:t.hydrationData)||Jt(),routes:e,detectErrorBoundary:zt}).initialize();var n}([{path:"*",element:(0,Ji.jsxs)(Ji.Fragment,{children:[(0,Ji.jsx)(Ok,{}),(0,Ji.jsx)(Zt,{})]})}])})}))}()}();

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.