var x8=Object.defineProperty;var k8=(zt,Ut,Dn)=>Ut in zt?x8(zt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):zt[Ut]=Dn;var rs=(zt,Ut,Dn)=>k8(zt,typeof Ut!="symbol"?Ut+"":Ut,Dn);try{let zt=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Ut=new zt.Error().stack;Ut&&(zt._sentryDebugIds=zt._sentryDebugIds||{},zt._sentryDebugIds[Ut]="bcea60d0-e606-437e-8a06-73453f44223d",zt._sentryDebugIdIdentifier="sentry-dbid-bcea60d0-e606-437e-8a06-73453f44223d")}catch{}(function(){"use strict";{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"7cbec34d9e2ee77887a2f9d7af2f48e627baa459"}}function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut={exports:{}},Dn={},vu={exports:{}},Ce={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Oh;function vE(){if(Oh)return Ce;Oh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,E={};function k(P,V,we){this.props=P,this.context=V,this.refs=E,this.updater=we||x}k.prototype.isReactComponent={},k.prototype.setState=function(P,V){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,V,"setState")},k.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function A(){}A.prototype=k.prototype;function L(P,V,we){this.props=P,this.context=V,this.refs=E,this.updater=we||x}var j=L.prototype=new A;j.constructor=L,_(j,k.prototype),j.isPureReactComponent=!0;var K=Array.isArray,H=Object.prototype.hasOwnProperty,O={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function W(P,V,we){var Ee,Pe={},Ne=null,Ue=null;if(V!=null)for(Ee in V.ref!==void 0&&(Ue=V.ref),V.key!==void 0&&(Ne=""+V.key),V)H.call(V,Ee)&&!C.hasOwnProperty(Ee)&&(Pe[Ee]=V[Ee]);var $e=arguments.length-2;if($e===1)Pe.children=we;else if(1<$e){for(var We=Array($e),St=0;St<$e;St++)We[St]=arguments[St+2];Pe.children=We}if(P&&P.defaultProps)for(Ee in $e=P.defaultProps,$e)Pe[Ee]===void 0&&(Pe[Ee]=$e[Ee]);return{$$typeof:e,type:P,key:Ne,ref:Ue,props:Pe,_owner:O.current}}function F(P,V){return{$$typeof:e,type:P.type,key:V,ref:P.ref,props:P.props,_owner:P._owner}}function U(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function J(P){var V={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(we){return V[we]})}var Z=/\/+/g;function ue(P,V){return typeof P=="object"&&P!==null&&P.key!=null?J(""+P.key):V.toString(36)}function me(P,V,we,Ee,Pe){var Ne=typeof P;(Ne==="undefined"||Ne==="boolean")&&(P=null);var Ue=!1;if(P===null)Ue=!0;else switch(Ne){case"string":case"number":Ue=!0;break;case"object":switch(P.$$typeof){case e:case t:Ue=!0}}if(Ue)return Ue=P,Pe=Pe(Ue),P=Ee===""?"."+ue(Ue,0):Ee,K(Pe)?(we="",P!=null&&(we=P.replace(Z,"$&/")+"/"),me(Pe,V,we,"",function(St){return St})):Pe!=null&&(U(Pe)&&(Pe=F(Pe,we+(!Pe.key||Ue&&Ue.key===Pe.key?"":(""+Pe.key).replace(Z,"$&/")+"/")+P)),V.push(Pe)),1;if(Ue=0,Ee=Ee===""?".":Ee+":",K(P))for(var $e=0;$e<P.length;$e++){Ne=P[$e];var We=Ee+ue(Ne,$e);Ue+=me(Ne,V,we,We,Pe)}else if(We=w(P),typeof We=="function")for(P=We.call(P),$e=0;!(Ne=P.next()).done;)Ne=Ne.value,We=Ee+ue(Ne,$e++),Ue+=me(Ne,V,we,We,Pe);else if(Ne==="object")throw V=String(P),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return Ue}function De(P,V,we){if(P==null)return P;var Ee=[],Pe=0;return me(P,Ee,"","",function(Ne){return V.call(we,Ne,Pe++)}),Ee}function te(P){if(P._status===-1){var V=P._result;V=V(),V.then(function(we){(P._status===0||P._status===-1)&&(P._status=1,P._result=we)},function(we){(P._status===0||P._status===-1)&&(P._status=2,P._result=we)}),P._status===-1&&(P._status=0,P._result=V)}if(P._status===1)return P._result.default;throw P._result}var Se={current:null},q={transition:null},oe={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:q,ReactCurrentOwner:O};function ne(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:De,forEach:function(P,V,we){De(P,function(){V.apply(this,arguments)},we)},count:function(P){var V=0;return De(P,function(){V++}),V},toArray:function(P){return De(P,function(V){return V})||[]},only:function(P){if(!U(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ce.Component=k,Ce.Fragment=n,Ce.Profiler=i,Ce.PureComponent=L,Ce.StrictMode=s,Ce.Suspense=f,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Ce.act=ne,Ce.cloneElement=function(P,V,we){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var Ee=_({},P.props),Pe=P.key,Ne=P.ref,Ue=P._owner;if(V!=null){if(V.ref!==void 0&&(Ne=V.ref,Ue=O.current),V.key!==void 0&&(Pe=""+V.key),P.type&&P.type.defaultProps)var $e=P.type.defaultProps;for(We in V)H.call(V,We)&&!C.hasOwnProperty(We)&&(Ee[We]=V[We]===void 0&&$e!==void 0?$e[We]:V[We])}var We=arguments.length-2;if(We===1)Ee.children=we;else if(1<We){$e=Array(We);for(var St=0;St<We;St++)$e[St]=arguments[St+2];Ee.children=$e}return{$$typeof:e,type:P.type,key:Pe,ref:Ne,props:Ee,_owner:Ue}},Ce.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:a,_context:P},P.Consumer=P},Ce.createElement=W,Ce.createFactory=function(P){var V=W.bind(null,P);return V.type=P,V},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(P){return{$$typeof:d,render:P}},Ce.isValidElement=U,Ce.lazy=function(P){return{$$typeof:g,_payload:{_status:-1,_result:P},_init:te}},Ce.memo=function(P,V){return{$$typeof:h,type:P,compare:V===void 0?null:V}},Ce.startTransition=function(P){var V=q.transition;q.transition={};try{P()}finally{q.transition=V}},Ce.unstable_act=ne,Ce.useCallback=function(P,V){return Se.current.useCallback(P,V)},Ce.useContext=function(P){return Se.current.useContext(P)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(P){return Se.current.useDeferredValue(P)},Ce.useEffect=function(P,V){return Se.current.useEffect(P,V)},Ce.useId=function(){return Se.current.useId()},Ce.useImperativeHandle=function(P,V,we){return Se.current.useImperativeHandle(P,V,we)},Ce.useInsertionEffect=function(P,V){return Se.current.useInsertionEffect(P,V)},Ce.useLayoutEffect=function(P,V){return Se.current.useLayoutEffect(P,V)},Ce.useMemo=function(P,V){return Se.current.useMemo(P,V)},Ce.useReducer=function(P,V,we){return Se.current.useReducer(P,V,we)},Ce.useRef=function(P){return Se.current.useRef(P)},Ce.useState=function(P){return Se.current.useState(P)},Ce.useSyncExternalStore=function(P,V,we){return Se.current.useSyncExternalStore(P,V,we)},Ce.useTransition=function(){return Se.current.useTransition()},Ce.version="18.3.1",Ce}var Ph;function Su(){return Ph||(Ph=1,vu.exports=vE()),vu.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Nh;function SE(){if(Nh)return Dn;Nh=1;var e=Su(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,h){var g,y={},w=null,x=null;h!==void 0&&(w=""+h),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(x=f.ref);for(g in f)s.call(f,g)&&!a.hasOwnProperty(g)&&(y[g]=f[g]);if(d&&d.defaultProps)for(g in f=d.defaultProps,f)y[g]===void 0&&(y[g]=f[g]);return{$$typeof:t,type:d,key:w,ref:x,props:y,_owner:i.current}}return Dn.Fragment=n,Dn.jsx=c,Dn.jsxs=c,Dn}var Mh;function wE(){return Mh||(Mh=1,Ut.exports=SE()),Ut.exports}var v=wE(),R=Su();const kt=zt(R);var _a={},wu={exports:{}},Ht={},_u={exports:{}},Eu={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Lh;function _E(){return Lh||(Lh=1,function(e){function t(q,oe){var ne=q.length;q.push(oe);e:for(;0<ne;){var P=ne-1>>>1,V=q[P];if(0<i(V,oe))q[P]=oe,q[ne]=V,ne=P;else break e}}function n(q){return q.length===0?null:q[0]}function s(q){if(q.length===0)return null;var oe=q[0],ne=q.pop();if(ne!==oe){q[0]=ne;e:for(var P=0,V=q.length,we=V>>>1;P<we;){var Ee=2*(P+1)-1,Pe=q[Ee],Ne=Ee+1,Ue=q[Ne];if(0>i(Pe,ne))Ne<V&&0>i(Ue,Pe)?(q[P]=Ue,q[Ne]=ne,P=Ne):(q[P]=Pe,q[Ee]=ne,P=Ee);else if(Ne<V&&0>i(Ue,ne))q[P]=Ue,q[Ne]=ne,P=Ne;else break e}}return oe}function i(q,oe){var ne=q.sortIndex-oe.sortIndex;return ne!==0?ne:q.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],g=1,y=null,w=3,x=!1,_=!1,E=!1,k=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(q){for(var oe=n(h);oe!==null;){if(oe.callback===null)s(h);else if(oe.startTime<=q)s(h),oe.sortIndex=oe.expirationTime,t(f,oe);else break;oe=n(h)}}function K(q){if(E=!1,j(q),!_)if(n(f)!==null)_=!0,te(H);else{var oe=n(h);oe!==null&&Se(K,oe.startTime-q)}}function H(q,oe){_=!1,E&&(E=!1,A(W),W=-1),x=!0;var ne=w;try{for(j(oe),y=n(f);y!==null&&(!(y.expirationTime>oe)||q&&!J());){var P=y.callback;if(typeof P=="function"){y.callback=null,w=y.priorityLevel;var V=P(y.expirationTime<=oe);oe=e.unstable_now(),typeof V=="function"?y.callback=V:y===n(f)&&s(f),j(oe)}else s(f);y=n(f)}if(y!==null)var we=!0;else{var Ee=n(h);Ee!==null&&Se(K,Ee.startTime-oe),we=!1}return we}finally{y=null,w=ne,x=!1}}var O=!1,C=null,W=-1,F=5,U=-1;function J(){return!(e.unstable_now()-U<F)}function Z(){if(C!==null){var q=e.unstable_now();U=q;var oe=!0;try{oe=C(!0,q)}finally{oe?ue():(O=!1,C=null)}}else O=!1}var ue;if(typeof L=="function")ue=function(){L(Z)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,De=me.port2;me.port1.onmessage=Z,ue=function(){De.postMessage(null)}}else ue=function(){k(Z,0)};function te(q){C=q,O||(O=!0,ue())}function Se(q,oe){W=k(function(){q(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,te(H))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(q){switch(w){case 1:case 2:case 3:var oe=3;break;default:oe=w}var ne=w;w=oe;try{return q()}finally{w=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,oe){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ne=w;w=q;try{return oe()}finally{w=ne}},e.unstable_scheduleCallback=function(q,oe,ne){var P=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?P+ne:P):ne=P,q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=ne+V,q={id:g++,callback:oe,priorityLevel:q,startTime:ne,expirationTime:V,sortIndex:-1},ne>P?(q.sortIndex=ne,t(h,q),n(f)===null&&q===n(h)&&(E?(A(W),W=-1):E=!0,Se(K,ne-P))):(q.sortIndex=V,t(f,q),_||x||(_=!0,te(H))),q},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(q){var oe=w;return function(){var ne=w;w=oe;try{return q.apply(this,arguments)}finally{w=ne}}}}(Eu)),Eu}var jh;function EE(){return jh||(jh=1,_u.exports=_E()),_u.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Dh;function xE(){if(Dh)return Ht;Dh=1;var e=Su(),t=EE();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function a(r,o){c(r,o),c(r+"Capture",o)}function c(r,o){for(i[r]=o,r=0;r<o.length;r++)s.add(o[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},y={};function w(r){return f.call(y,r)?!0:f.call(g,r)?!1:h.test(r)?y[r]=!0:(g[r]=!0,!1)}function x(r,o,l,u){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function _(r,o,l,u){if(o===null||typeof o>"u"||x(r,o,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function E(r,o,l,u,p,m,S){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=m,this.removeEmptyString=S}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){k[r]=new E(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];k[o]=new E(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){k[r]=new E(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){k[r]=new E(r,2,!1,r,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(r){k[r]=new E(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){k[r]=new E(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){k[r]=new E(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){k[r]=new E(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){k[r]=new E(r,5,!1,r.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function L(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(A,L);k[o]=new E(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(A,L);k[o]=new E(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(A,L);k[o]=new E(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){k[r]=new E(r,1,!1,r.toLowerCase(),null,!1,!1)}),k.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){k[r]=new E(r,1,!1,r.toLowerCase(),null,!0,!0)});function j(r,o,l,u){var p=k.hasOwnProperty(o)?k[o]:null;(p!==null?p.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(_(o,l,p,u)&&(l=null),u||p===null?w(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):p.mustUseProperty?r[p.propertyName]=l===null?p.type===3?!1:"":l:(o=p.attributeName,u=p.attributeNamespace,l===null?r.removeAttribute(o):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,u?r.setAttributeNS(u,o,l):r.setAttribute(o,l))))}var K=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),O=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),J=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),q=Symbol.iterator;function oe(r){return r===null||typeof r!="object"?null:(r=q&&r[q]||r["@@iterator"],typeof r=="function"?r:null)}var ne=Object.assign,P;function V(r){if(P===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);P=o&&o[1]||""}return`
`+P+r}var we=!1;function Ee(r,o){if(!r||we)return"";we=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(D){var u=D}Reflect.construct(r,[],o)}else{try{o.call()}catch(D){u=D}r.call(o.prototype)}else{try{throw Error()}catch(D){u=D}r()}}catch(D){if(D&&u&&typeof D.stack=="string"){for(var p=D.stack.split(`
`),m=u.stack.split(`
`),S=p.length-1,T=m.length-1;1<=S&&0<=T&&p[S]!==m[T];)T--;for(;1<=S&&0<=T;S--,T--)if(p[S]!==m[T]){if(S!==1||T!==1)do if(S--,T--,0>T||p[S]!==m[T]){var b=`
`+p[S].replace(" at new "," at ");return r.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",r.displayName)),b}while(1<=S&&0<=T);break}}}finally{we=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?V(r):""}function Pe(r){switch(r.tag){case 5:return V(r.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return r=Ee(r.type,!1),r;case 11:return r=Ee(r.type.render,!1),r;case 1:return r=Ee(r.type,!0),r;default:return""}}function Ne(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case C:return"Fragment";case O:return"Portal";case F:return"Profiler";case W:return"StrictMode";case ue:return"Suspense";case me:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case J:return(r.displayName||"Context")+".Consumer";case U:return(r._context.displayName||"Context")+".Provider";case Z:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case De:return o=r.displayName||null,o!==null?o:Ne(r.type)||"Memo";case te:o=r._payload,r=r._init;try{return Ne(r(o))}catch{}}return null}function Ue(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ne(o);case 8:return o===W?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function $e(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function We(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function St(r){var o=We(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),u=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,m=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,m.call(this,S)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Cs(r){r._valueTracker||(r._valueTracker=St(r))}function lc(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),u="";return r&&(u=We(r)?r.checked?"true":"false":r.value),r=u,r!==l?(o.setValue(r),!0):!1}function Io(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Rn(r,o){var l=o.checked;return ne({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Gn(r,o){var l=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;l=$e(o.value!=null?o.value:l),r._wrapperState={initialChecked:u,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Co(r,o){o=o.checked,o!=null&&j(r,"checked",o,!1)}function Rs(r,o){Co(r,o);var l=$e(o.value),u=o.type;if(l!=null)u==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(u==="submit"||u==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?Os(r,o.type,l):o.hasOwnProperty("defaultValue")&&Os(r,o.type,$e(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function As(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function Os(r,o,l){(o!=="number"||Io(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var Ae=Array.isArray;function wt(r,o,l,u){if(r=r.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<r.length;l++)p=o.hasOwnProperty("$"+r[l].value),r[l].selected!==p&&(r[l].selected=p),p&&u&&(r[l].defaultSelected=!0)}else{for(l=""+$e(l),o=null,p=0;p<r.length;p++){if(r[p].value===l){r[p].selected=!0,u&&(r[p].defaultSelected=!0);return}o!==null||r[p].disabled||(o=r[p])}o!==null&&(o.selected=!0)}}function Re(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return ne({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ye(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(n(92));if(Ae(l)){if(1<l.length)throw Error(n(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:$e(l)}}function je(r,o){var l=$e(o.value),u=$e(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),u!=null&&(r.defaultValue=""+u)}function Yn(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function cc(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Uf(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?cc(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var uc,OS=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,u,p){MSApp.execUnsafeLocalFunction(function(){return r(o,l,u,p)})}:r}(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(uc=uc||document.createElement("div"),uc.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=uc.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Di(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var $i={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},ID=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(r){ID.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),$i[o]=$i[r]})});function PS(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||$i.hasOwnProperty(r)&&$i[r]?(""+o).trim():o+"px"}function NS(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var u=l.indexOf("--")===0,p=PS(l,o[l],u);l==="float"&&(l="cssFloat"),u?r.setProperty(l,p):r[l]=p}}var CD=ne({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 Hf(r,o){if(o){if(CD[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Wf(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 qf=null;function Vf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Gf=null,Ro=null,Ao=null;function MS(r){if(r=ia(r)){if(typeof Gf!="function")throw Error(n(280));var o=r.stateNode;o&&(o=Nc(o),Gf(r.stateNode,r.type,o))}}function LS(r){Ro?Ao?Ao.push(r):Ao=[r]:Ro=r}function jS(){if(Ro){var r=Ro,o=Ao;if(Ao=Ro=null,MS(r),o)for(r=0;r<o.length;r++)MS(o[r])}}function DS(r,o){return r(o)}function $S(){}var Yf=!1;function FS(r,o,l){if(Yf)return r(o,l);Yf=!0;try{return DS(r,o,l)}finally{Yf=!1,(Ro!==null||Ao!==null)&&($S(),jS())}}function Fi(r,o){var l=r.stateNode;if(l===null)return null;var u=Nc(l);if(u===null)return null;l=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,o,typeof l));return l}var Kf=!1;if(d)try{var Bi={};Object.defineProperty(Bi,"passive",{get:function(){Kf=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{Kf=!1}function RD(r,o,l,u,p,m,S,T,b){var D=Array.prototype.slice.call(arguments,3);try{o.apply(l,D)}catch(Y){this.onError(Y)}}var zi=!1,dc=null,fc=!1,Qf=null,AD={onError:function(r){zi=!0,dc=r}};function OD(r,o,l,u,p,m,S,T,b){zi=!1,dc=null,RD.apply(AD,arguments)}function PD(r,o,l,u,p,m,S,T,b){if(OD.apply(this,arguments),zi){if(zi){var D=dc;zi=!1,dc=null}else throw Error(n(198));fc||(fc=!0,Qf=D)}}function Ps(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,o.flags&4098&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function BS(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function zS(r){if(Ps(r)!==r)throw Error(n(188))}function ND(r){var o=r.alternate;if(!o){if(o=Ps(r),o===null)throw Error(n(188));return o!==r?null:r}for(var l=r,u=o;;){var p=l.return;if(p===null)break;var m=p.alternate;if(m===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===l)return zS(p),r;if(m===u)return zS(p),o;m=m.sibling}throw Error(n(188))}if(l.return!==u.return)l=p,u=m;else{for(var S=!1,T=p.child;T;){if(T===l){S=!0,l=p,u=m;break}if(T===u){S=!0,u=p,l=m;break}T=T.sibling}if(!S){for(T=m.child;T;){if(T===l){S=!0,l=m,u=p;break}if(T===u){S=!0,u=m,l=p;break}T=T.sibling}if(!S)throw Error(n(189))}}if(l.alternate!==u)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:o}function US(r){return r=ND(r),r!==null?HS(r):null}function HS(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=HS(r);if(o!==null)return o;r=r.sibling}return null}var WS=t.unstable_scheduleCallback,qS=t.unstable_cancelCallback,MD=t.unstable_shouldYield,LD=t.unstable_requestPaint,lt=t.unstable_now,jD=t.unstable_getCurrentPriorityLevel,Xf=t.unstable_ImmediatePriority,VS=t.unstable_UserBlockingPriority,pc=t.unstable_NormalPriority,DD=t.unstable_LowPriority,GS=t.unstable_IdlePriority,hc=null,Kn=null;function $D(r){if(Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(hc,r,void 0,(r.current.flags&128)===128)}catch{}}var An=Math.clz32?Math.clz32:zD,FD=Math.log,BD=Math.LN2;function zD(r){return r>>>=0,r===0?32:31-(FD(r)/BD|0)|0}var mc=64,gc=4194304;function Ui(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function yc(r,o){var l=r.pendingLanes;if(l===0)return 0;var u=0,p=r.suspendedLanes,m=r.pingedLanes,S=l&268435455;if(S!==0){var T=S&~p;T!==0?u=Ui(T):(m&=S,m!==0&&(u=Ui(m)))}else S=l&~p,S!==0?u=Ui(S):m!==0&&(u=Ui(m));if(u===0)return 0;if(o!==0&&o!==u&&!(o&p)&&(p=u&-u,m=o&-o,p>=m||p===16&&(m&4194240)!==0))return o;if(u&4&&(u|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=u;0<o;)l=31-An(o),p=1<<l,u|=r[l],o&=~p;return u}function UD(r,o){switch(r){case 1:case 2:case 4:return o+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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function HD(r,o){for(var l=r.suspendedLanes,u=r.pingedLanes,p=r.expirationTimes,m=r.pendingLanes;0<m;){var S=31-An(m),T=1<<S,b=p[S];b===-1?(!(T&l)||T&u)&&(p[S]=UD(T,o)):b<=o&&(r.expiredLanes|=T),m&=~T}}function Jf(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function YS(){var r=mc;return mc<<=1,!(mc&4194240)&&(mc=64),r}function Zf(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function Hi(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-An(o),r[o]=l}function WD(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var u=r.eventTimes;for(r=r.expirationTimes;0<l;){var p=31-An(l),m=1<<p;o[p]=0,u[p]=-1,r[p]=-1,l&=~m}}function ep(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var u=31-An(l),p=1<<u;p&o|r[u]&o&&(r[u]|=o),l&=~p}}var He=0;function KS(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var QS,tp,XS,JS,ZS,np=!1,vc=[],$r=null,Fr=null,Br=null,Wi=new Map,qi=new Map,zr=[],qD="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 ew(r,o){switch(r){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Fr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":Wi.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":qi.delete(o.pointerId)}}function Vi(r,o,l,u,p,m){return r===null||r.nativeEvent!==m?(r={blockedOn:o,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},o!==null&&(o=ia(o),o!==null&&tp(o)),r):(r.eventSystemFlags|=u,o=r.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),r)}function VD(r,o,l,u,p){switch(o){case"focusin":return $r=Vi($r,r,o,l,u,p),!0;case"dragenter":return Fr=Vi(Fr,r,o,l,u,p),!0;case"mouseover":return Br=Vi(Br,r,o,l,u,p),!0;case"pointerover":var m=p.pointerId;return Wi.set(m,Vi(Wi.get(m)||null,r,o,l,u,p)),!0;case"gotpointercapture":return m=p.pointerId,qi.set(m,Vi(qi.get(m)||null,r,o,l,u,p)),!0}return!1}function tw(r){var o=Ns(r.target);if(o!==null){var l=Ps(o);if(l!==null){if(o=l.tag,o===13){if(o=BS(l),o!==null){r.blockedOn=o,ZS(r.priority,function(){XS(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Sc(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=sp(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);qf=u,l.target.dispatchEvent(u),qf=null}else return o=ia(l),o!==null&&tp(o),r.blockedOn=l,!1;o.shift()}return!0}function nw(r,o,l){Sc(r)&&l.delete(o)}function GD(){np=!1,$r!==null&&Sc($r)&&($r=null),Fr!==null&&Sc(Fr)&&(Fr=null),Br!==null&&Sc(Br)&&(Br=null),Wi.forEach(nw),qi.forEach(nw)}function Gi(r,o){r.blockedOn===o&&(r.blockedOn=null,np||(np=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,GD)))}function Yi(r){function o(p){return Gi(p,r)}if(0<vc.length){Gi(vc[0],r);for(var l=1;l<vc.length;l++){var u=vc[l];u.blockedOn===r&&(u.blockedOn=null)}}for($r!==null&&Gi($r,r),Fr!==null&&Gi(Fr,r),Br!==null&&Gi(Br,r),Wi.forEach(o),qi.forEach(o),l=0;l<zr.length;l++)u=zr[l],u.blockedOn===r&&(u.blockedOn=null);for(;0<zr.length&&(l=zr[0],l.blockedOn===null);)tw(l),l.blockedOn===null&&zr.shift()}var Oo=K.ReactCurrentBatchConfig,wc=!0;function YD(r,o,l,u){var p=He,m=Oo.transition;Oo.transition=null;try{He=1,rp(r,o,l,u)}finally{He=p,Oo.transition=m}}function KD(r,o,l,u){var p=He,m=Oo.transition;Oo.transition=null;try{He=4,rp(r,o,l,u)}finally{He=p,Oo.transition=m}}function rp(r,o,l,u){if(wc){var p=sp(r,o,l,u);if(p===null)_p(r,o,u,_c,l),ew(r,u);else if(VD(p,r,o,l,u))u.stopPropagation();else if(ew(r,u),o&4&&-1<qD.indexOf(r)){for(;p!==null;){var m=ia(p);if(m!==null&&QS(m),m=sp(r,o,l,u),m===null&&_p(r,o,u,_c,l),m===p)break;p=m}p!==null&&u.stopPropagation()}else _p(r,o,u,null,l)}}var _c=null;function sp(r,o,l,u){if(_c=null,r=Vf(u),r=Ns(r),r!==null)if(o=Ps(r),o===null)r=null;else if(l=o.tag,l===13){if(r=BS(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return _c=r,null}function rw(r){switch(r){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(jD()){case Xf:return 1;case VS:return 4;case pc:case DD:return 16;case GS:return 536870912;default:return 16}default:return 16}}var Ur=null,op=null,Ec=null;function sw(){if(Ec)return Ec;var r,o=op,l=o.length,u,p="value"in Ur?Ur.value:Ur.textContent,m=p.length;for(r=0;r<l&&o[r]===p[r];r++);var S=l-r;for(u=1;u<=S&&o[l-u]===p[m-u];u++);return Ec=p.slice(r,1<u?1-u:void 0)}function xc(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function kc(){return!0}function ow(){return!1}function an(r){function o(l,u,p,m,S){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(l=r[T],this[T]=l?l(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?kc:ow,this.isPropagationStopped=ow,this}return ne(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=kc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=kc)},persist:function(){},isPersistent:kc}),o}var Po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ip=an(Po),Ki=ne({},Po,{view:0,detail:0}),QD=an(Ki),ap,lp,Qi,Tc=ne({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:up,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Qi&&(Qi&&r.type==="mousemove"?(ap=r.screenX-Qi.screenX,lp=r.screenY-Qi.screenY):lp=ap=0,Qi=r),ap)},movementY:function(r){return"movementY"in r?r.movementY:lp}}),iw=an(Tc),XD=ne({},Tc,{dataTransfer:0}),JD=an(XD),ZD=ne({},Ki,{relatedTarget:0}),cp=an(ZD),e$=ne({},Po,{animationName:0,elapsedTime:0,pseudoElement:0}),t$=an(e$),n$=ne({},Po,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),r$=an(n$),s$=ne({},Po,{data:0}),aw=an(s$),o$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i$={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"},a$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l$(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=a$[r])?!!o[r]:!1}function up(){return l$}var c$=ne({},Ki,{key:function(r){if(r.key){var o=o$[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=xc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?i$[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:up,charCode:function(r){return r.type==="keypress"?xc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?xc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),u$=an(c$),d$=ne({},Tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lw=an(d$),f$=ne({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:up}),p$=an(f$),h$=ne({},Po,{propertyName:0,elapsedTime:0,pseudoElement:0}),m$=an(h$),g$=ne({},Tc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),y$=an(g$),v$=[9,13,27,32],dp=d&&"CompositionEvent"in window,Xi=null;d&&"documentMode"in document&&(Xi=document.documentMode);var S$=d&&"TextEvent"in window&&!Xi,cw=d&&(!dp||Xi&&8<Xi&&11>=Xi),uw=" ",dw=!1;function fw(r,o){switch(r){case"keyup":return v$.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pw(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var No=!1;function w$(r,o){switch(r){case"compositionend":return pw(o);case"keypress":return o.which!==32?null:(dw=!0,uw);case"textInput":return r=o.data,r===uw&&dw?null:r;default:return null}}function _$(r,o){if(No)return r==="compositionend"||!dp&&fw(r,o)?(r=sw(),Ec=op=Ur=null,No=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return cw&&o.locale!=="ko"?null:o.data;default:return null}}var E$={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 hw(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!E$[r.type]:o==="textarea"}function mw(r,o,l,u){LS(u),o=Ac(o,"onChange"),0<o.length&&(l=new ip("onChange","change",null,l,u),r.push({event:l,listeners:o}))}var Ji=null,Zi=null;function x$(r){Nw(r,0)}function bc(r){var o=$o(r);if(lc(o))return r}function k$(r,o){if(r==="change")return o}var gw=!1;if(d){var fp;if(d){var pp="oninput"in document;if(!pp){var yw=document.createElement("div");yw.setAttribute("oninput","return;"),pp=typeof yw.oninput=="function"}fp=pp}else fp=!1;gw=fp&&(!document.documentMode||9<document.documentMode)}function vw(){Ji&&(Ji.detachEvent("onpropertychange",Sw),Zi=Ji=null)}function Sw(r){if(r.propertyName==="value"&&bc(Zi)){var o=[];mw(o,Zi,r,Vf(r)),FS(x$,o)}}function T$(r,o,l){r==="focusin"?(vw(),Ji=o,Zi=l,Ji.attachEvent("onpropertychange",Sw)):r==="focusout"&&vw()}function b$(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return bc(Zi)}function I$(r,o){if(r==="click")return bc(o)}function C$(r,o){if(r==="input"||r==="change")return bc(o)}function R$(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var On=typeof Object.is=="function"?Object.is:R$;function ea(r,o){if(On(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),u=Object.keys(o);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!f.call(o,p)||!On(r[p],o[p]))return!1}return!0}function ww(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function _w(r,o){var l=ww(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=o&&u>=o)return{node:l,offset:o-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ww(l)}}function Ew(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Ew(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function xw(){for(var r=window,o=Io();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=Io(r.document)}return o}function hp(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function A$(r){var o=xw(),l=r.focusedElem,u=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&Ew(l.ownerDocument.documentElement,l)){if(u!==null&&hp(l)){if(o=u.start,r=u.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var p=l.textContent.length,m=Math.min(u.start,p);u=u.end===void 0?m:Math.min(u.end,p),!r.extend&&m>u&&(p=u,u=m,m=p),p=_w(l,m);var S=_w(l,u);p&&S&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==S.node||r.focusOffset!==S.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),r.removeAllRanges(),m>u?(r.addRange(o),r.extend(S.node,S.offset)):(o.setEnd(S.node,S.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var O$=d&&"documentMode"in document&&11>=document.documentMode,Mo=null,mp=null,ta=null,gp=!1;function kw(r,o,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;gp||Mo==null||Mo!==Io(u)||(u=Mo,"selectionStart"in u&&hp(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ta&&ea(ta,u)||(ta=u,u=Ac(mp,"onSelect"),0<u.length&&(o=new ip("onSelect","select",null,o,l),r.push({event:o,listeners:u}),o.target=Mo)))}function Ic(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var Lo={animationend:Ic("Animation","AnimationEnd"),animationiteration:Ic("Animation","AnimationIteration"),animationstart:Ic("Animation","AnimationStart"),transitionend:Ic("Transition","TransitionEnd")},yp={},Tw={};d&&(Tw=document.createElement("div").style,"AnimationEvent"in window||(delete Lo.animationend.animation,delete Lo.animationiteration.animation,delete Lo.animationstart.animation),"TransitionEvent"in window||delete Lo.transitionend.transition);function Cc(r){if(yp[r])return yp[r];if(!Lo[r])return r;var o=Lo[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in Tw)return yp[r]=o[l];return r}var bw=Cc("animationend"),Iw=Cc("animationiteration"),Cw=Cc("animationstart"),Rw=Cc("transitionend"),Aw=new Map,Ow="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 Hr(r,o){Aw.set(r,o),a(o,[r])}for(var vp=0;vp<Ow.length;vp++){var Sp=Ow[vp],P$=Sp.toLowerCase(),N$=Sp[0].toUpperCase()+Sp.slice(1);Hr(P$,"on"+N$)}Hr(bw,"onAnimationEnd"),Hr(Iw,"onAnimationIteration"),Hr(Cw,"onAnimationStart"),Hr("dblclick","onDoubleClick"),Hr("focusin","onFocus"),Hr("focusout","onBlur"),Hr(Rw,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var na="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(" "),M$=new Set("cancel close invalid load scroll toggle".split(" ").concat(na));function Pw(r,o,l){var u=r.type||"unknown-event";r.currentTarget=l,PD(u,o,void 0,r),r.currentTarget=null}function Nw(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],p=u.event;u=u.listeners;e:{var m=void 0;if(o)for(var S=u.length-1;0<=S;S--){var T=u[S],b=T.instance,D=T.currentTarget;if(T=T.listener,b!==m&&p.isPropagationStopped())break e;Pw(p,T,D),m=b}else for(S=0;S<u.length;S++){if(T=u[S],b=T.instance,D=T.currentTarget,T=T.listener,b!==m&&p.isPropagationStopped())break e;Pw(p,T,D),m=b}}}if(fc)throw r=Qf,fc=!1,Qf=null,r}function Qe(r,o){var l=o[Ip];l===void 0&&(l=o[Ip]=new Set);var u=r+"__bubble";l.has(u)||(Mw(o,r,2,!1),l.add(u))}function wp(r,o,l){var u=0;o&&(u|=4),Mw(l,r,u,o)}var Rc="_reactListening"+Math.random().toString(36).slice(2);function ra(r){if(!r[Rc]){r[Rc]=!0,s.forEach(function(l){l!=="selectionchange"&&(M$.has(l)||wp(l,!1,r),wp(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Rc]||(o[Rc]=!0,wp("selectionchange",!1,o))}}function Mw(r,o,l,u){switch(rw(o)){case 1:var p=YD;break;case 4:p=KD;break;default:p=rp}l=p.bind(null,o,l,r),p=void 0,!Kf||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),u?p!==void 0?r.addEventListener(o,l,{capture:!0,passive:p}):r.addEventListener(o,l,!0):p!==void 0?r.addEventListener(o,l,{passive:p}):r.addEventListener(o,l,!1)}function _p(r,o,l,u,p){var m=u;if(!(o&1)&&!(o&2)&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var T=u.stateNode.containerInfo;if(T===p||T.nodeType===8&&T.parentNode===p)break;if(S===4)for(S=u.return;S!==null;){var b=S.tag;if((b===3||b===4)&&(b=S.stateNode.containerInfo,b===p||b.nodeType===8&&b.parentNode===p))return;S=S.return}for(;T!==null;){if(S=Ns(T),S===null)return;if(b=S.tag,b===5||b===6){u=m=S;continue e}T=T.parentNode}}u=u.return}FS(function(){var D=m,Y=Vf(l),Q=[];e:{var G=Aw.get(r);if(G!==void 0){var re=ip,ae=r;switch(r){case"keypress":if(xc(l)===0)break e;case"keydown":case"keyup":re=u$;break;case"focusin":ae="focus",re=cp;break;case"focusout":ae="blur",re=cp;break;case"beforeblur":case"afterblur":re=cp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=iw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=JD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=p$;break;case bw:case Iw:case Cw:re=t$;break;case Rw:re=m$;break;case"scroll":re=QD;break;case"wheel":re=y$;break;case"copy":case"cut":case"paste":re=r$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=lw}var le=(o&4)!==0,ct=!le&&r==="scroll",N=le?G!==null?G+"Capture":null:G;le=[];for(var I=D,M;I!==null;){M=I;var X=M.stateNode;if(M.tag===5&&X!==null&&(M=X,N!==null&&(X=Fi(I,N),X!=null&&le.push(sa(I,X,M)))),ct)break;I=I.return}0<le.length&&(G=new re(G,ae,null,l,Y),Q.push({event:G,listeners:le}))}}if(!(o&7)){e:{if(G=r==="mouseover"||r==="pointerover",re=r==="mouseout"||r==="pointerout",G&&l!==qf&&(ae=l.relatedTarget||l.fromElement)&&(Ns(ae)||ae[dr]))break e;if((re||G)&&(G=Y.window===Y?Y:(G=Y.ownerDocument)?G.defaultView||G.parentWindow:window,re?(ae=l.relatedTarget||l.toElement,re=D,ae=ae?Ns(ae):null,ae!==null&&(ct=Ps(ae),ae!==ct||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(re=null,ae=D),re!==ae)){if(le=iw,X="onMouseLeave",N="onMouseEnter",I="mouse",(r==="pointerout"||r==="pointerover")&&(le=lw,X="onPointerLeave",N="onPointerEnter",I="pointer"),ct=re==null?G:$o(re),M=ae==null?G:$o(ae),G=new le(X,I+"leave",re,l,Y),G.target=ct,G.relatedTarget=M,X=null,Ns(Y)===D&&(le=new le(N,I+"enter",ae,l,Y),le.target=M,le.relatedTarget=ct,X=le),ct=X,re&&ae)t:{for(le=re,N=ae,I=0,M=le;M;M=jo(M))I++;for(M=0,X=N;X;X=jo(X))M++;for(;0<I-M;)le=jo(le),I--;for(;0<M-I;)N=jo(N),M--;for(;I--;){if(le===N||N!==null&&le===N.alternate)break t;le=jo(le),N=jo(N)}le=null}else le=null;re!==null&&Lw(Q,G,re,le,!1),ae!==null&&ct!==null&&Lw(Q,ct,ae,le,!0)}}e:{if(G=D?$o(D):window,re=G.nodeName&&G.nodeName.toLowerCase(),re==="select"||re==="input"&&G.type==="file")var ce=k$;else if(hw(G))if(gw)ce=C$;else{ce=b$;var de=T$}else(re=G.nodeName)&&re.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(ce=I$);if(ce&&(ce=ce(r,D))){mw(Q,ce,l,Y);break e}de&&de(r,G,D),r==="focusout"&&(de=G._wrapperState)&&de.controlled&&G.type==="number"&&Os(G,"number",G.value)}switch(de=D?$o(D):window,r){case"focusin":(hw(de)||de.contentEditable==="true")&&(Mo=de,mp=D,ta=null);break;case"focusout":ta=mp=Mo=null;break;case"mousedown":gp=!0;break;case"contextmenu":case"mouseup":case"dragend":gp=!1,kw(Q,l,Y);break;case"selectionchange":if(O$)break;case"keydown":case"keyup":kw(Q,l,Y)}var fe;if(dp)e:{switch(r){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else No?fw(r,l)&&(ye="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(cw&&l.locale!=="ko"&&(No||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&No&&(fe=sw()):(Ur=Y,op="value"in Ur?Ur.value:Ur.textContent,No=!0)),de=Ac(D,ye),0<de.length&&(ye=new aw(ye,r,null,l,Y),Q.push({event:ye,listeners:de}),fe?ye.data=fe:(fe=pw(l),fe!==null&&(ye.data=fe)))),(fe=S$?w$(r,l):_$(r,l))&&(D=Ac(D,"onBeforeInput"),0<D.length&&(Y=new aw("onBeforeInput","beforeinput",null,l,Y),Q.push({event:Y,listeners:D}),Y.data=fe))}Nw(Q,o)})}function sa(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Ac(r,o){for(var l=o+"Capture",u=[];r!==null;){var p=r,m=p.stateNode;p.tag===5&&m!==null&&(p=m,m=Fi(r,l),m!=null&&u.unshift(sa(r,m,p)),m=Fi(r,o),m!=null&&u.push(sa(r,m,p))),r=r.return}return u}function jo(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Lw(r,o,l,u,p){for(var m=o._reactName,S=[];l!==null&&l!==u;){var T=l,b=T.alternate,D=T.stateNode;if(b!==null&&b===u)break;T.tag===5&&D!==null&&(T=D,p?(b=Fi(l,m),b!=null&&S.unshift(sa(l,b,T))):p||(b=Fi(l,m),b!=null&&S.push(sa(l,b,T)))),l=l.return}S.length!==0&&r.push({event:o,listeners:S})}var L$=/\r\n?/g,j$=/\u0000|\uFFFD/g;function jw(r){return(typeof r=="string"?r:""+r).replace(L$,`
`).replace(j$,"")}function Oc(r,o,l){if(o=jw(o),jw(r)!==o&&l)throw Error(n(425))}function Pc(){}var Ep=null,xp=null;function kp(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Tp=typeof setTimeout=="function"?setTimeout:void 0,D$=typeof clearTimeout=="function"?clearTimeout:void 0,Dw=typeof Promise=="function"?Promise:void 0,$$=typeof queueMicrotask=="function"?queueMicrotask:typeof Dw<"u"?function(r){return Dw.resolve(null).then(r).catch(F$)}:Tp;function F$(r){setTimeout(function(){throw r})}function bp(r,o){var l=o,u=0;do{var p=l.nextSibling;if(r.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(u===0){r.removeChild(p),Yi(o);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=p}while(l);Yi(o)}function Wr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function $w(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var Do=Math.random().toString(36).slice(2),Qn="__reactFiber$"+Do,oa="__reactProps$"+Do,dr="__reactContainer$"+Do,Ip="__reactEvents$"+Do,B$="__reactListeners$"+Do,z$="__reactHandles$"+Do;function Ns(r){var o=r[Qn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[dr]||l[Qn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=$w(r);r!==null;){if(l=r[Qn])return l;r=$w(r)}return o}r=l,l=r.parentNode}return null}function ia(r){return r=r[Qn]||r[dr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function $o(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Nc(r){return r[oa]||null}var Cp=[],Fo=-1;function qr(r){return{current:r}}function Xe(r){0>Fo||(r.current=Cp[Fo],Cp[Fo]=null,Fo--)}function Ke(r,o){Fo++,Cp[Fo]=r.current,r.current=o}var Vr={},Ot=qr(Vr),Xt=qr(!1),Ms=Vr;function Bo(r,o){var l=r.type.contextTypes;if(!l)return Vr;var u=r.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var p={},m;for(m in l)p[m]=o[m];return u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=p),p}function Jt(r){return r=r.childContextTypes,r!=null}function Mc(){Xe(Xt),Xe(Ot)}function Fw(r,o,l){if(Ot.current!==Vr)throw Error(n(168));Ke(Ot,o),Ke(Xt,l)}function Bw(r,o,l){var u=r.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var p in u)if(!(p in o))throw Error(n(108,Ue(r)||"Unknown",p));return ne({},l,u)}function Lc(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Vr,Ms=Ot.current,Ke(Ot,r),Ke(Xt,Xt.current),!0}function zw(r,o,l){var u=r.stateNode;if(!u)throw Error(n(169));l?(r=Bw(r,o,Ms),u.__reactInternalMemoizedMergedChildContext=r,Xe(Xt),Xe(Ot),Ke(Ot,r)):Xe(Xt),Ke(Xt,l)}var fr=null,jc=!1,Rp=!1;function Uw(r){fr===null?fr=[r]:fr.push(r)}function U$(r){jc=!0,Uw(r)}function Gr(){if(!Rp&&fr!==null){Rp=!0;var r=0,o=He;try{var l=fr;for(He=1;r<l.length;r++){var u=l[r];do u=u(!0);while(u!==null)}fr=null,jc=!1}catch(p){throw fr!==null&&(fr=fr.slice(r+1)),WS(Xf,Gr),p}finally{He=o,Rp=!1}}return null}var zo=[],Uo=0,Dc=null,$c=0,hn=[],mn=0,Ls=null,pr=1,hr="";function js(r,o){zo[Uo++]=$c,zo[Uo++]=Dc,Dc=r,$c=o}function Hw(r,o,l){hn[mn++]=pr,hn[mn++]=hr,hn[mn++]=Ls,Ls=r;var u=pr;r=hr;var p=32-An(u)-1;u&=~(1<<p),l+=1;var m=32-An(o)+p;if(30<m){var S=p-p%5;m=(u&(1<<S)-1).toString(32),u>>=S,p-=S,pr=1<<32-An(o)+p|l<<p|u,hr=m+r}else pr=1<<m|l<<p|u,hr=r}function Ap(r){r.return!==null&&(js(r,1),Hw(r,1,0))}function Op(r){for(;r===Dc;)Dc=zo[--Uo],zo[Uo]=null,$c=zo[--Uo],zo[Uo]=null;for(;r===Ls;)Ls=hn[--mn],hn[mn]=null,hr=hn[--mn],hn[mn]=null,pr=hn[--mn],hn[mn]=null}var ln=null,cn=null,Ze=!1,Pn=null;function Ww(r,o){var l=Sn(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function qw(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,ln=r,cn=Wr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,ln=r,cn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=Ls!==null?{id:pr,overflow:hr}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Sn(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,ln=r,cn=null,!0):!1;default:return!1}}function Pp(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Np(r){if(Ze){var o=cn;if(o){var l=o;if(!qw(r,o)){if(Pp(r))throw Error(n(418));o=Wr(l.nextSibling);var u=ln;o&&qw(r,o)?Ww(u,l):(r.flags=r.flags&-4097|2,Ze=!1,ln=r)}}else{if(Pp(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ze=!1,ln=r}}}function Vw(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;ln=r}function Fc(r){if(r!==ln)return!1;if(!Ze)return Vw(r),Ze=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!kp(r.type,r.memoizedProps)),o&&(o=cn)){if(Pp(r))throw Gw(),Error(n(418));for(;o;)Ww(r,o),o=Wr(o.nextSibling)}if(Vw(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){cn=Wr(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}cn=null}}else cn=ln?Wr(r.stateNode.nextSibling):null;return!0}function Gw(){for(var r=cn;r;)r=Wr(r.nextSibling)}function Ho(){cn=ln=null,Ze=!1}function Mp(r){Pn===null?Pn=[r]:Pn.push(r)}var H$=K.ReactCurrentBatchConfig;function aa(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var u=l.stateNode}if(!u)throw Error(n(147,r));var p=u,m=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(S){var T=p.refs;S===null?delete T[m]:T[m]=S},o._stringRef=m,o)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function Bc(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Yw(r){var o=r._init;return o(r._payload)}function Kw(r){function o(N,I){if(r){var M=N.deletions;M===null?(N.deletions=[I],N.flags|=16):M.push(I)}}function l(N,I){if(!r)return null;for(;I!==null;)o(N,I),I=I.sibling;return null}function u(N,I){for(N=new Map;I!==null;)I.key!==null?N.set(I.key,I):N.set(I.index,I),I=I.sibling;return N}function p(N,I){return N=ts(N,I),N.index=0,N.sibling=null,N}function m(N,I,M){return N.index=M,r?(M=N.alternate,M!==null?(M=M.index,M<I?(N.flags|=2,I):M):(N.flags|=2,I)):(N.flags|=1048576,I)}function S(N){return r&&N.alternate===null&&(N.flags|=2),N}function T(N,I,M,X){return I===null||I.tag!==6?(I=Th(M,N.mode,X),I.return=N,I):(I=p(I,M),I.return=N,I)}function b(N,I,M,X){var ce=M.type;return ce===C?Y(N,I,M.props.children,X,M.key):I!==null&&(I.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===te&&Yw(ce)===I.type)?(X=p(I,M.props),X.ref=aa(N,I,M),X.return=N,X):(X=uu(M.type,M.key,M.props,null,N.mode,X),X.ref=aa(N,I,M),X.return=N,X)}function D(N,I,M,X){return I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation?(I=bh(M,N.mode,X),I.return=N,I):(I=p(I,M.children||[]),I.return=N,I)}function Y(N,I,M,X,ce){return I===null||I.tag!==7?(I=Ws(M,N.mode,X,ce),I.return=N,I):(I=p(I,M),I.return=N,I)}function Q(N,I,M){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Th(""+I,N.mode,M),I.return=N,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case H:return M=uu(I.type,I.key,I.props,null,N.mode,M),M.ref=aa(N,null,I),M.return=N,M;case O:return I=bh(I,N.mode,M),I.return=N,I;case te:var X=I._init;return Q(N,X(I._payload),M)}if(Ae(I)||oe(I))return I=Ws(I,N.mode,M,null),I.return=N,I;Bc(N,I)}return null}function G(N,I,M,X){var ce=I!==null?I.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ce!==null?null:T(N,I,""+M,X);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case H:return M.key===ce?b(N,I,M,X):null;case O:return M.key===ce?D(N,I,M,X):null;case te:return ce=M._init,G(N,I,ce(M._payload),X)}if(Ae(M)||oe(M))return ce!==null?null:Y(N,I,M,X,null);Bc(N,M)}return null}function re(N,I,M,X,ce){if(typeof X=="string"&&X!==""||typeof X=="number")return N=N.get(M)||null,T(I,N,""+X,ce);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case H:return N=N.get(X.key===null?M:X.key)||null,b(I,N,X,ce);case O:return N=N.get(X.key===null?M:X.key)||null,D(I,N,X,ce);case te:var de=X._init;return re(N,I,M,de(X._payload),ce)}if(Ae(X)||oe(X))return N=N.get(M)||null,Y(I,N,X,ce,null);Bc(I,X)}return null}function ae(N,I,M,X){for(var ce=null,de=null,fe=I,ye=I=0,xt=null;fe!==null&&ye<M.length;ye++){fe.index>ye?(xt=fe,fe=null):xt=fe.sibling;var ze=G(N,fe,M[ye],X);if(ze===null){fe===null&&(fe=xt);break}r&&fe&&ze.alternate===null&&o(N,fe),I=m(ze,I,ye),de===null?ce=ze:de.sibling=ze,de=ze,fe=xt}if(ye===M.length)return l(N,fe),Ze&&js(N,ye),ce;if(fe===null){for(;ye<M.length;ye++)fe=Q(N,M[ye],X),fe!==null&&(I=m(fe,I,ye),de===null?ce=fe:de.sibling=fe,de=fe);return Ze&&js(N,ye),ce}for(fe=u(N,fe);ye<M.length;ye++)xt=re(fe,N,ye,M[ye],X),xt!==null&&(r&&xt.alternate!==null&&fe.delete(xt.key===null?ye:xt.key),I=m(xt,I,ye),de===null?ce=xt:de.sibling=xt,de=xt);return r&&fe.forEach(function(ns){return o(N,ns)}),Ze&&js(N,ye),ce}function le(N,I,M,X){var ce=oe(M);if(typeof ce!="function")throw Error(n(150));if(M=ce.call(M),M==null)throw Error(n(151));for(var de=ce=null,fe=I,ye=I=0,xt=null,ze=M.next();fe!==null&&!ze.done;ye++,ze=M.next()){fe.index>ye?(xt=fe,fe=null):xt=fe.sibling;var ns=G(N,fe,ze.value,X);if(ns===null){fe===null&&(fe=xt);break}r&&fe&&ns.alternate===null&&o(N,fe),I=m(ns,I,ye),de===null?ce=ns:de.sibling=ns,de=ns,fe=xt}if(ze.done)return l(N,fe),Ze&&js(N,ye),ce;if(fe===null){for(;!ze.done;ye++,ze=M.next())ze=Q(N,ze.value,X),ze!==null&&(I=m(ze,I,ye),de===null?ce=ze:de.sibling=ze,de=ze);return Ze&&js(N,ye),ce}for(fe=u(N,fe);!ze.done;ye++,ze=M.next())ze=re(fe,N,ye,ze.value,X),ze!==null&&(r&&ze.alternate!==null&&fe.delete(ze.key===null?ye:ze.key),I=m(ze,I,ye),de===null?ce=ze:de.sibling=ze,de=ze);return r&&fe.forEach(function(E8){return o(N,E8)}),Ze&&js(N,ye),ce}function ct(N,I,M,X){if(typeof M=="object"&&M!==null&&M.type===C&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case H:e:{for(var ce=M.key,de=I;de!==null;){if(de.key===ce){if(ce=M.type,ce===C){if(de.tag===7){l(N,de.sibling),I=p(de,M.props.children),I.return=N,N=I;break e}}else if(de.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===te&&Yw(ce)===de.type){l(N,de.sibling),I=p(de,M.props),I.ref=aa(N,de,M),I.return=N,N=I;break e}l(N,de);break}else o(N,de);de=de.sibling}M.type===C?(I=Ws(M.props.children,N.mode,X,M.key),I.return=N,N=I):(X=uu(M.type,M.key,M.props,null,N.mode,X),X.ref=aa(N,I,M),X.return=N,N=X)}return S(N);case O:e:{for(de=M.key;I!==null;){if(I.key===de)if(I.tag===4&&I.stateNode.containerInfo===M.containerInfo&&I.stateNode.implementation===M.implementation){l(N,I.sibling),I=p(I,M.children||[]),I.return=N,N=I;break e}else{l(N,I);break}else o(N,I);I=I.sibling}I=bh(M,N.mode,X),I.return=N,N=I}return S(N);case te:return de=M._init,ct(N,I,de(M._payload),X)}if(Ae(M))return ae(N,I,M,X);if(oe(M))return le(N,I,M,X);Bc(N,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,I!==null&&I.tag===6?(l(N,I.sibling),I=p(I,M),I.return=N,N=I):(l(N,I),I=Th(M,N.mode,X),I.return=N,N=I),S(N)):l(N,I)}return ct}var Wo=Kw(!0),Qw=Kw(!1),zc=qr(null),Uc=null,qo=null,Lp=null;function jp(){Lp=qo=Uc=null}function Dp(r){var o=zc.current;Xe(zc),r._currentValue=o}function $p(r,o,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),r===l)break;r=r.return}}function Vo(r,o){Uc=r,Lp=qo=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&o&&(Zt=!0),r.firstContext=null)}function gn(r){var o=r._currentValue;if(Lp!==r)if(r={context:r,memoizedValue:o,next:null},qo===null){if(Uc===null)throw Error(n(308));qo=r,Uc.dependencies={lanes:0,firstContext:r}}else qo=qo.next=r;return o}var Ds=null;function Fp(r){Ds===null?Ds=[r]:Ds.push(r)}function Xw(r,o,l,u){var p=o.interleaved;return p===null?(l.next=l,Fp(o)):(l.next=p.next,p.next=l),o.interleaved=l,mr(r,u)}function mr(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Yr=!1;function Bp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jw(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function gr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Kr(r,o,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,Fe&2){var p=u.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),u.pending=o,mr(r,l)}return p=u.interleaved,p===null?(o.next=o,Fp(u)):(o.next=p.next,p.next=o),u.interleaved=o,mr(r,l)}function Hc(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var u=o.lanes;u&=r.pendingLanes,l|=u,o.lanes=l,ep(r,l)}}function Zw(r,o){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var S={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?p=m=S:m=m.next=S,l=l.next}while(l!==null);m===null?p=m=o:m=m.next=o}else p=m=o;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:u.shared,effects:u.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function Wc(r,o,l,u){var p=r.updateQueue;Yr=!1;var m=p.firstBaseUpdate,S=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var b=T,D=b.next;b.next=null,S===null?m=D:S.next=D,S=b;var Y=r.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==S&&(T===null?Y.firstBaseUpdate=D:T.next=D,Y.lastBaseUpdate=b))}if(m!==null){var Q=p.baseState;S=0,Y=D=b=null,T=m;do{var G=T.lane,re=T.eventTime;if((u&G)===G){Y!==null&&(Y=Y.next={eventTime:re,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var ae=r,le=T;switch(G=o,re=l,le.tag){case 1:if(ae=le.payload,typeof ae=="function"){Q=ae.call(re,Q,G);break e}Q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=le.payload,G=typeof ae=="function"?ae.call(re,Q,G):ae,G==null)break e;Q=ne({},Q,G);break e;case 2:Yr=!0}}T.callback!==null&&T.lane!==0&&(r.flags|=64,G=p.effects,G===null?p.effects=[T]:G.push(T))}else re={eventTime:re,lane:G,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?(D=Y=re,b=Q):Y=Y.next=re,S|=G;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;G=T,T=G.next,G.next=null,p.lastBaseUpdate=G,p.shared.pending=null}}while(!0);if(Y===null&&(b=Q),p.baseState=b,p.firstBaseUpdate=D,p.lastBaseUpdate=Y,o=p.shared.interleaved,o!==null){p=o;do S|=p.lane,p=p.next;while(p!==o)}else m===null&&(p.shared.lanes=0);Bs|=S,r.lanes=S,r.memoizedState=Q}}function e_(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var u=r[o],p=u.callback;if(p!==null){if(u.callback=null,u=l,typeof p!="function")throw Error(n(191,p));p.call(u)}}}var la={},Xn=qr(la),ca=qr(la),ua=qr(la);function $s(r){if(r===la)throw Error(n(174));return r}function zp(r,o){switch(Ke(ua,o),Ke(ca,r),Ke(Xn,la),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Uf(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=Uf(o,r)}Xe(Xn),Ke(Xn,o)}function Go(){Xe(Xn),Xe(ca),Xe(ua)}function t_(r){$s(ua.current);var o=$s(Xn.current),l=Uf(o,r.type);o!==l&&(Ke(ca,r),Ke(Xn,l))}function Up(r){ca.current===r&&(Xe(Xn),Xe(ca))}var et=qr(0);function qc(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Hp=[];function Wp(){for(var r=0;r<Hp.length;r++)Hp[r]._workInProgressVersionPrimary=null;Hp.length=0}var Vc=K.ReactCurrentDispatcher,qp=K.ReactCurrentBatchConfig,Fs=0,tt=null,ht=null,_t=null,Gc=!1,da=!1,fa=0,W$=0;function Pt(){throw Error(n(321))}function Vp(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!On(r[l],o[l]))return!1;return!0}function Gp(r,o,l,u,p,m){if(Fs=m,tt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Vc.current=r===null||r.memoizedState===null?Y$:K$,r=l(u,p),da){m=0;do{if(da=!1,fa=0,25<=m)throw Error(n(301));m+=1,_t=ht=null,o.updateQueue=null,Vc.current=Q$,r=l(u,p)}while(da)}if(Vc.current=Qc,o=ht!==null&&ht.next!==null,Fs=0,_t=ht=tt=null,Gc=!1,o)throw Error(n(300));return r}function Yp(){var r=fa!==0;return fa=0,r}function Jn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?tt.memoizedState=_t=r:_t=_t.next=r,_t}function yn(){if(ht===null){var r=tt.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var o=_t===null?tt.memoizedState:_t.next;if(o!==null)_t=o,ht=r;else{if(r===null)throw Error(n(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},_t===null?tt.memoizedState=_t=r:_t=_t.next=r}return _t}function pa(r,o){return typeof o=="function"?o(r):o}function Kp(r){var o=yn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var u=ht,p=u.baseQueue,m=l.pending;if(m!==null){if(p!==null){var S=p.next;p.next=m.next,m.next=S}u.baseQueue=p=m,l.pending=null}if(p!==null){m=p.next,u=u.baseState;var T=S=null,b=null,D=m;do{var Y=D.lane;if((Fs&Y)===Y)b!==null&&(b=b.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),u=D.hasEagerState?D.eagerState:r(u,D.action);else{var Q={lane:Y,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};b===null?(T=b=Q,S=u):b=b.next=Q,tt.lanes|=Y,Bs|=Y}D=D.next}while(D!==null&&D!==m);b===null?S=u:b.next=T,On(u,o.memoizedState)||(Zt=!0),o.memoizedState=u,o.baseState=S,o.baseQueue=b,l.lastRenderedState=u}if(r=l.interleaved,r!==null){p=r;do m=p.lane,tt.lanes|=m,Bs|=m,p=p.next;while(p!==r)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Qp(r){var o=yn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var u=l.dispatch,p=l.pending,m=o.memoizedState;if(p!==null){l.pending=null;var S=p=p.next;do m=r(m,S.action),S=S.next;while(S!==p);On(m,o.memoizedState)||(Zt=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,u]}function n_(){}function r_(r,o){var l=tt,u=yn(),p=o(),m=!On(u.memoizedState,p);if(m&&(u.memoizedState=p,Zt=!0),u=u.queue,Xp(i_.bind(null,l,u,r),[r]),u.getSnapshot!==o||m||_t!==null&&_t.memoizedState.tag&1){if(l.flags|=2048,ha(9,o_.bind(null,l,u,p,o),void 0,null),Et===null)throw Error(n(349));Fs&30||s_(l,o,p)}return p}function s_(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=tt.updateQueue,o===null?(o={lastEffect:null,stores:null},tt.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function o_(r,o,l,u){o.value=l,o.getSnapshot=u,a_(o)&&l_(r)}function i_(r,o,l){return l(function(){a_(o)&&l_(r)})}function a_(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!On(r,l)}catch{return!0}}function l_(r){var o=mr(r,1);o!==null&&jn(o,r,1,-1)}function c_(r){var o=Jn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:r},o.queue=r,r=r.dispatch=G$.bind(null,tt,r),[o.memoizedState,r]}function ha(r,o,l,u){return r={tag:r,create:o,destroy:l,deps:u,next:null},o=tt.updateQueue,o===null?(o={lastEffect:null,stores:null},tt.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,o.lastEffect=r)),r}function u_(){return yn().memoizedState}function Yc(r,o,l,u){var p=Jn();tt.flags|=r,p.memoizedState=ha(1|o,l,void 0,u===void 0?null:u)}function Kc(r,o,l,u){var p=yn();u=u===void 0?null:u;var m=void 0;if(ht!==null){var S=ht.memoizedState;if(m=S.destroy,u!==null&&Vp(u,S.deps)){p.memoizedState=ha(o,l,m,u);return}}tt.flags|=r,p.memoizedState=ha(1|o,l,m,u)}function d_(r,o){return Yc(8390656,8,r,o)}function Xp(r,o){return Kc(2048,8,r,o)}function f_(r,o){return Kc(4,2,r,o)}function p_(r,o){return Kc(4,4,r,o)}function h_(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function m_(r,o,l){return l=l!=null?l.concat([r]):null,Kc(4,4,h_.bind(null,o,r),l)}function Jp(){}function g_(r,o){var l=yn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&Vp(o,u[1])?u[0]:(l.memoizedState=[r,o],r)}function y_(r,o){var l=yn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&Vp(o,u[1])?u[0]:(r=r(),l.memoizedState=[r,o],r)}function v_(r,o,l){return Fs&21?(On(l,o)||(l=YS(),tt.lanes|=l,Bs|=l,r.baseState=!0),o):(r.baseState&&(r.baseState=!1,Zt=!0),r.memoizedState=l)}function q$(r,o){var l=He;He=l!==0&&4>l?l:4,r(!0);var u=qp.transition;qp.transition={};try{r(!1),o()}finally{He=l,qp.transition=u}}function S_(){return yn().memoizedState}function V$(r,o,l){var u=Zr(r);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},w_(r))__(o,l);else if(l=Xw(r,o,l,u),l!==null){var p=Bt();jn(l,r,u,p),E_(l,o,u)}}function G$(r,o,l){var u=Zr(r),p={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(w_(r))__(o,p);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var S=o.lastRenderedState,T=m(S,l);if(p.hasEagerState=!0,p.eagerState=T,On(T,S)){var b=o.interleaved;b===null?(p.next=p,Fp(o)):(p.next=b.next,b.next=p),o.interleaved=p;return}}catch{}finally{}l=Xw(r,o,p,u),l!==null&&(p=Bt(),jn(l,r,u,p),E_(l,o,u))}}function w_(r){var o=r.alternate;return r===tt||o!==null&&o===tt}function __(r,o){da=Gc=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function E_(r,o,l){if(l&4194240){var u=o.lanes;u&=r.pendingLanes,l|=u,o.lanes=l,ep(r,l)}}var Qc={readContext:gn,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},Y$={readContext:gn,useCallback:function(r,o){return Jn().memoizedState=[r,o===void 0?null:o],r},useContext:gn,useEffect:d_,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,Yc(4194308,4,h_.bind(null,o,r),l)},useLayoutEffect:function(r,o){return Yc(4194308,4,r,o)},useInsertionEffect:function(r,o){return Yc(4,2,r,o)},useMemo:function(r,o){var l=Jn();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var u=Jn();return o=l!==void 0?l(o):o,u.memoizedState=u.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},u.queue=r,r=r.dispatch=V$.bind(null,tt,r),[u.memoizedState,r]},useRef:function(r){var o=Jn();return r={current:r},o.memoizedState=r},useState:c_,useDebugValue:Jp,useDeferredValue:function(r){return Jn().memoizedState=r},useTransition:function(){var r=c_(!1),o=r[0];return r=q$.bind(null,r[1]),Jn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var u=tt,p=Jn();if(Ze){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),Et===null)throw Error(n(349));Fs&30||s_(u,o,l)}p.memoizedState=l;var m={value:l,getSnapshot:o};return p.queue=m,d_(i_.bind(null,u,m,r),[r]),u.flags|=2048,ha(9,o_.bind(null,u,m,l,o),void 0,null),l},useId:function(){var r=Jn(),o=Et.identifierPrefix;if(Ze){var l=hr,u=pr;l=(u&~(1<<32-An(u)-1)).toString(32)+l,o=":"+o+"R"+l,l=fa++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=W$++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},K$={readContext:gn,useCallback:g_,useContext:gn,useEffect:Xp,useImperativeHandle:m_,useInsertionEffect:f_,useLayoutEffect:p_,useMemo:y_,useReducer:Kp,useRef:u_,useState:function(){return Kp(pa)},useDebugValue:Jp,useDeferredValue:function(r){var o=yn();return v_(o,ht.memoizedState,r)},useTransition:function(){var r=Kp(pa)[0],o=yn().memoizedState;return[r,o]},useMutableSource:n_,useSyncExternalStore:r_,useId:S_,unstable_isNewReconciler:!1},Q$={readContext:gn,useCallback:g_,useContext:gn,useEffect:Xp,useImperativeHandle:m_,useInsertionEffect:f_,useLayoutEffect:p_,useMemo:y_,useReducer:Qp,useRef:u_,useState:function(){return Qp(pa)},useDebugValue:Jp,useDeferredValue:function(r){var o=yn();return ht===null?o.memoizedState=r:v_(o,ht.memoizedState,r)},useTransition:function(){var r=Qp(pa)[0],o=yn().memoizedState;return[r,o]},useMutableSource:n_,useSyncExternalStore:r_,useId:S_,unstable_isNewReconciler:!1};function Nn(r,o){if(r&&r.defaultProps){o=ne({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function Zp(r,o,l,u){o=r.memoizedState,l=l(u,o),l=l==null?o:ne({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Xc={isMounted:function(r){return(r=r._reactInternals)?Ps(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var u=Bt(),p=Zr(r),m=gr(u,p);m.payload=o,l!=null&&(m.callback=l),o=Kr(r,m,p),o!==null&&(jn(o,r,p,u),Hc(o,r,p))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var u=Bt(),p=Zr(r),m=gr(u,p);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=Kr(r,m,p),o!==null&&(jn(o,r,p,u),Hc(o,r,p))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=Bt(),u=Zr(r),p=gr(l,u);p.tag=2,o!=null&&(p.callback=o),o=Kr(r,p,u),o!==null&&(jn(o,r,u,l),Hc(o,r,u))}};function x_(r,o,l,u,p,m,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,m,S):o.prototype&&o.prototype.isPureReactComponent?!ea(l,u)||!ea(p,m):!0}function k_(r,o,l){var u=!1,p=Vr,m=o.contextType;return typeof m=="object"&&m!==null?m=gn(m):(p=Jt(o)?Ms:Ot.current,u=o.contextTypes,m=(u=u!=null)?Bo(r,p):Vr),o=new o(l,m),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Xc,r.stateNode=o,o._reactInternals=r,u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=m),o}function T_(r,o,l,u){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,u),o.state!==r&&Xc.enqueueReplaceState(o,o.state,null)}function eh(r,o,l,u){var p=r.stateNode;p.props=l,p.state=r.memoizedState,p.refs={},Bp(r);var m=o.contextType;typeof m=="object"&&m!==null?p.context=gn(m):(m=Jt(o)?Ms:Ot.current,p.context=Bo(r,m)),p.state=r.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(Zp(r,o,m,l),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&Xc.enqueueReplaceState(p,p.state,null),Wc(r,l,p,u),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function Yo(r,o){try{var l="",u=o;do l+=Pe(u),u=u.return;while(u);var p=l}catch(m){p=`
Error generating stack: `+m.message+`
`+m.stack}return{value:r,source:o,stack:p,digest:null}}function th(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function nh(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var X$=typeof WeakMap=="function"?WeakMap:Map;function b_(r,o,l){l=gr(-1,l),l.tag=3,l.payload={element:null};var u=o.value;return l.callback=function(){su||(su=!0,yh=u),nh(r,o)},l}function I_(r,o,l){l=gr(-1,l),l.tag=3;var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var p=o.value;l.payload=function(){return u(p)},l.callback=function(){nh(r,o)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){nh(r,o),typeof u!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})}),l}function C_(r,o,l){var u=r.pingCache;if(u===null){u=r.pingCache=new X$;var p=new Set;u.set(o,p)}else p=u.get(o),p===void 0&&(p=new Set,u.set(o,p));p.has(l)||(p.add(l),r=d8.bind(null,r,o,l),o.then(r,r))}function R_(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function A_(r,o,l,u,p){return r.mode&1?(r.flags|=65536,r.lanes=p,r):(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=gr(-1,1),o.tag=2,Kr(l,o,1))),l.lanes|=1),r)}var J$=K.ReactCurrentOwner,Zt=!1;function Ft(r,o,l,u){o.child=r===null?Qw(o,null,l,u):Wo(o,r.child,l,u)}function O_(r,o,l,u,p){l=l.render;var m=o.ref;return Vo(o,p),u=Gp(r,o,l,u,m,p),l=Yp(),r!==null&&!Zt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,yr(r,o,p)):(Ze&&l&&Ap(o),o.flags|=1,Ft(r,o,u,p),o.child)}function P_(r,o,l,u,p){if(r===null){var m=l.type;return typeof m=="function"&&!kh(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,N_(r,o,m,u,p)):(r=uu(l.type,null,u,o,o.mode,p),r.ref=o.ref,r.return=o,o.child=r)}if(m=r.child,!(r.lanes&p)){var S=m.memoizedProps;if(l=l.compare,l=l!==null?l:ea,l(S,u)&&r.ref===o.ref)return yr(r,o,p)}return o.flags|=1,r=ts(m,u),r.ref=o.ref,r.return=o,o.child=r}function N_(r,o,l,u,p){if(r!==null){var m=r.memoizedProps;if(ea(m,u)&&r.ref===o.ref)if(Zt=!1,o.pendingProps=u=m,(r.lanes&p)!==0)r.flags&131072&&(Zt=!0);else return o.lanes=r.lanes,yr(r,o,p)}return rh(r,o,l,u,p)}function M_(r,o,l){var u=o.pendingProps,p=u.children,m=r!==null?r.memoizedState:null;if(u.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ke(Qo,un),un|=l;else{if(!(l&1073741824))return r=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Ke(Qo,un),un|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=m!==null?m.baseLanes:l,Ke(Qo,un),un|=u}else m!==null?(u=m.baseLanes|l,o.memoizedState=null):u=l,Ke(Qo,un),un|=u;return Ft(r,o,p,l),o.child}function L_(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function rh(r,o,l,u,p){var m=Jt(l)?Ms:Ot.current;return m=Bo(o,m),Vo(o,p),l=Gp(r,o,l,u,m,p),u=Yp(),r!==null&&!Zt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,yr(r,o,p)):(Ze&&u&&Ap(o),o.flags|=1,Ft(r,o,l,p),o.child)}function j_(r,o,l,u,p){if(Jt(l)){var m=!0;Lc(o)}else m=!1;if(Vo(o,p),o.stateNode===null)Zc(r,o),k_(o,l,u),eh(o,l,u,p),u=!0;else if(r===null){var S=o.stateNode,T=o.memoizedProps;S.props=T;var b=S.context,D=l.contextType;typeof D=="object"&&D!==null?D=gn(D):(D=Jt(l)?Ms:Ot.current,D=Bo(o,D));var Y=l.getDerivedStateFromProps,Q=typeof Y=="function"||typeof S.getSnapshotBeforeUpdate=="function";Q||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(T!==u||b!==D)&&T_(o,S,u,D),Yr=!1;var G=o.memoizedState;S.state=G,Wc(o,u,S,p),b=o.memoizedState,T!==u||G!==b||Xt.current||Yr?(typeof Y=="function"&&(Zp(o,l,Y,u),b=o.memoizedState),(T=Yr||x_(o,l,T,u,G,b,D))?(Q||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(o.flags|=4194308)):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=b),S.props=u,S.state=b,S.context=D,u=T):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{S=o.stateNode,Jw(r,o),T=o.memoizedProps,D=o.type===o.elementType?T:Nn(o.type,T),S.props=D,Q=o.pendingProps,G=S.context,b=l.contextType,typeof b=="object"&&b!==null?b=gn(b):(b=Jt(l)?Ms:Ot.current,b=Bo(o,b));var re=l.getDerivedStateFromProps;(Y=typeof re=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(T!==Q||G!==b)&&T_(o,S,u,b),Yr=!1,G=o.memoizedState,S.state=G,Wc(o,u,S,p);var ae=o.memoizedState;T!==Q||G!==ae||Xt.current||Yr?(typeof re=="function"&&(Zp(o,l,re,u),ae=o.memoizedState),(D=Yr||x_(o,l,D,u,G,ae,b)||!1)?(Y||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(u,ae,b),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(u,ae,b)),typeof S.componentDidUpdate=="function"&&(o.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof S.componentDidUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=ae),S.props=u,S.state=ae,S.context=b,u=D):(typeof S.componentDidUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=1024),u=!1)}return sh(r,o,l,u,m,p)}function sh(r,o,l,u,p,m){L_(r,o);var S=(o.flags&128)!==0;if(!u&&!S)return p&&zw(o,l,!1),yr(r,o,m);u=o.stateNode,J$.current=o;var T=S&&typeof l.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,r!==null&&S?(o.child=Wo(o,r.child,null,m),o.child=Wo(o,null,T,m)):Ft(r,o,T,m),o.memoizedState=u.state,p&&zw(o,l,!0),o.child}function D_(r){var o=r.stateNode;o.pendingContext?Fw(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Fw(r,o.context,!1),zp(r,o.containerInfo)}function $_(r,o,l,u,p){return Ho(),Mp(p),o.flags|=256,Ft(r,o,l,u),o.child}var oh={dehydrated:null,treeContext:null,retryLane:0};function ih(r){return{baseLanes:r,cachePool:null,transitions:null}}function F_(r,o,l){var u=o.pendingProps,p=et.current,m=!1,S=(o.flags&128)!==0,T;if((T=S)||(T=r!==null&&r.memoizedState===null?!1:(p&2)!==0),T?(m=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),Ke(et,p&1),r===null)return Np(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(o.mode&1?r.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(S=u.children,r=u.fallback,m?(u=o.mode,m=o.child,S={mode:"hidden",children:S},!(u&1)&&m!==null?(m.childLanes=0,m.pendingProps=S):m=du(S,u,0,null),r=Ws(r,u,l,null),m.return=o,r.return=o,m.sibling=r,o.child=m,o.child.memoizedState=ih(l),o.memoizedState=oh,r):ah(o,S));if(p=r.memoizedState,p!==null&&(T=p.dehydrated,T!==null))return Z$(r,o,S,u,T,p,l);if(m){m=u.fallback,S=o.mode,p=r.child,T=p.sibling;var b={mode:"hidden",children:u.children};return!(S&1)&&o.child!==p?(u=o.child,u.childLanes=0,u.pendingProps=b,o.deletions=null):(u=ts(p,b),u.subtreeFlags=p.subtreeFlags&14680064),T!==null?m=ts(T,m):(m=Ws(m,S,l,null),m.flags|=2),m.return=o,u.return=o,u.sibling=m,o.child=u,u=m,m=o.child,S=r.child.memoizedState,S=S===null?ih(l):{baseLanes:S.baseLanes|l,cachePool:null,transitions:S.transitions},m.memoizedState=S,m.childLanes=r.childLanes&~l,o.memoizedState=oh,u}return m=r.child,r=m.sibling,u=ts(m,{mode:"visible",children:u.children}),!(o.mode&1)&&(u.lanes=l),u.return=o,u.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=u,o.memoizedState=null,u}function ah(r,o){return o=du({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Jc(r,o,l,u){return u!==null&&Mp(u),Wo(o,r.child,null,l),r=ah(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Z$(r,o,l,u,p,m,S){if(l)return o.flags&256?(o.flags&=-257,u=th(Error(n(422))),Jc(r,o,S,u)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(m=u.fallback,p=o.mode,u=du({mode:"visible",children:u.children},p,0,null),m=Ws(m,p,S,null),m.flags|=2,u.return=o,m.return=o,u.sibling=m,o.child=u,o.mode&1&&Wo(o,r.child,null,S),o.child.memoizedState=ih(S),o.memoizedState=oh,m);if(!(o.mode&1))return Jc(r,o,S,null);if(p.data==="$!"){if(u=p.nextSibling&&p.nextSibling.dataset,u)var T=u.dgst;return u=T,m=Error(n(419)),u=th(m,u,void 0),Jc(r,o,S,u)}if(T=(S&r.childLanes)!==0,Zt||T){if(u=Et,u!==null){switch(S&-S){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=p&(u.suspendedLanes|S)?0:p,p!==0&&p!==m.retryLane&&(m.retryLane=p,mr(r,p),jn(u,r,p,-1))}return xh(),u=th(Error(n(421))),Jc(r,o,S,u)}return p.data==="$?"?(o.flags|=128,o.child=r.child,o=f8.bind(null,r),p._reactRetry=o,null):(r=m.treeContext,cn=Wr(p.nextSibling),ln=o,Ze=!0,Pn=null,r!==null&&(hn[mn++]=pr,hn[mn++]=hr,hn[mn++]=Ls,pr=r.id,hr=r.overflow,Ls=o),o=ah(o,u.children),o.flags|=4096,o)}function B_(r,o,l){r.lanes|=o;var u=r.alternate;u!==null&&(u.lanes|=o),$p(r.return,o,l)}function lh(r,o,l,u,p){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=l,m.tailMode=p)}function z_(r,o,l){var u=o.pendingProps,p=u.revealOrder,m=u.tail;if(Ft(r,o,u.children,l),u=et.current,u&2)u=u&1|2,o.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&B_(r,l,o);else if(r.tag===19)B_(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}if(Ke(et,u),!(o.mode&1))o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)r=l.alternate,r!==null&&qc(r)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),lh(o,!1,p,l,m);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(r=p.alternate,r!==null&&qc(r)===null){o.child=p;break}r=p.sibling,p.sibling=l,l=p,p=r}lh(o,!0,l,null,m);break;case"together":lh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Zc(r,o){!(o.mode&1)&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function yr(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),Bs|=o.lanes,!(l&o.childLanes))return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,l=ts(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=ts(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function e8(r,o,l){switch(o.tag){case 3:D_(o),Ho();break;case 5:t_(o);break;case 1:Jt(o.type)&&Lc(o);break;case 4:zp(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,p=o.memoizedProps.value;Ke(zc,u._currentValue),u._currentValue=p;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(Ke(et,et.current&1),o.flags|=128,null):l&o.child.childLanes?F_(r,o,l):(Ke(et,et.current&1),r=yr(r,o,l),r!==null?r.sibling:null);Ke(et,et.current&1);break;case 19:if(u=(l&o.childLanes)!==0,r.flags&128){if(u)return z_(r,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ke(et,et.current),u)break;return null;case 22:case 23:return o.lanes=0,M_(r,o,l)}return yr(r,o,l)}var U_,ch,H_,W_;U_=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},ch=function(){},H_=function(r,o,l,u){var p=r.memoizedProps;if(p!==u){r=o.stateNode,$s(Xn.current);var m=null;switch(l){case"input":p=Rn(r,p),u=Rn(r,u),m=[];break;case"select":p=ne({},p,{value:void 0}),u=ne({},u,{value:void 0}),m=[];break;case"textarea":p=Re(r,p),u=Re(r,u),m=[];break;default:typeof p.onClick!="function"&&typeof u.onClick=="function"&&(r.onclick=Pc)}Hf(l,u);var S;l=null;for(D in p)if(!u.hasOwnProperty(D)&&p.hasOwnProperty(D)&&p[D]!=null)if(D==="style"){var T=p[D];for(S in T)T.hasOwnProperty(S)&&(l||(l={}),l[S]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(i.hasOwnProperty(D)?m||(m=[]):(m=m||[]).push(D,null));for(D in u){var b=u[D];if(T=p!=null?p[D]:void 0,u.hasOwnProperty(D)&&b!==T&&(b!=null||T!=null))if(D==="style")if(T){for(S in T)!T.hasOwnProperty(S)||b&&b.hasOwnProperty(S)||(l||(l={}),l[S]="");for(S in b)b.hasOwnProperty(S)&&T[S]!==b[S]&&(l||(l={}),l[S]=b[S])}else l||(m||(m=[]),m.push(D,l)),l=b;else D==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,T=T?T.__html:void 0,b!=null&&T!==b&&(m=m||[]).push(D,b)):D==="children"?typeof b!="string"&&typeof b!="number"||(m=m||[]).push(D,""+b):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(i.hasOwnProperty(D)?(b!=null&&D==="onScroll"&&Qe("scroll",r),m||T===b||(m=[])):(m=m||[]).push(D,b))}l&&(m=m||[]).push("style",l);var D=m;(o.updateQueue=D)&&(o.flags|=4)}},W_=function(r,o,l,u){l!==u&&(o.flags|=4)};function ma(r,o){if(!Ze)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function Nt(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(o)for(var p=r.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags&14680064,u|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=u,r.childLanes=l,o}function t8(r,o,l){var u=o.pendingProps;switch(Op(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(o),null;case 1:return Jt(o.type)&&Mc(),Nt(o),null;case 3:return u=o.stateNode,Go(),Xe(Xt),Xe(Ot),Wp(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(Fc(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,Pn!==null&&(wh(Pn),Pn=null))),ch(r,o),Nt(o),null;case 5:Up(o);var p=$s(ua.current);if(l=o.type,r!==null&&o.stateNode!=null)H_(r,o,l,u,p),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(n(166));return Nt(o),null}if(r=$s(Xn.current),Fc(o)){u=o.stateNode,l=o.type;var m=o.memoizedProps;switch(u[Qn]=o,u[oa]=m,r=(o.mode&1)!==0,l){case"dialog":Qe("cancel",u),Qe("close",u);break;case"iframe":case"object":case"embed":Qe("load",u);break;case"video":case"audio":for(p=0;p<na.length;p++)Qe(na[p],u);break;case"source":Qe("error",u);break;case"img":case"image":case"link":Qe("error",u),Qe("load",u);break;case"details":Qe("toggle",u);break;case"input":Gn(u,m),Qe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!m.multiple},Qe("invalid",u);break;case"textarea":Ye(u,m),Qe("invalid",u)}Hf(l,m),p=null;for(var S in m)if(m.hasOwnProperty(S)){var T=m[S];S==="children"?typeof T=="string"?u.textContent!==T&&(m.suppressHydrationWarning!==!0&&Oc(u.textContent,T,r),p=["children",T]):typeof T=="number"&&u.textContent!==""+T&&(m.suppressHydrationWarning!==!0&&Oc(u.textContent,T,r),p=["children",""+T]):i.hasOwnProperty(S)&&T!=null&&S==="onScroll"&&Qe("scroll",u)}switch(l){case"input":Cs(u),As(u,m,!0);break;case"textarea":Cs(u),Yn(u);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(u.onclick=Pc)}u=p,o.updateQueue=u,u!==null&&(o.flags|=4)}else{S=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=cc(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=S.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof u.is=="string"?r=S.createElement(l,{is:u.is}):(r=S.createElement(l),l==="select"&&(S=r,u.multiple?S.multiple=!0:u.size&&(S.size=u.size))):r=S.createElementNS(r,l),r[Qn]=o,r[oa]=u,U_(r,o,!1,!1),o.stateNode=r;e:{switch(S=Wf(l,u),l){case"dialog":Qe("cancel",r),Qe("close",r),p=u;break;case"iframe":case"object":case"embed":Qe("load",r),p=u;break;case"video":case"audio":for(p=0;p<na.length;p++)Qe(na[p],r);p=u;break;case"source":Qe("error",r),p=u;break;case"img":case"image":case"link":Qe("error",r),Qe("load",r),p=u;break;case"details":Qe("toggle",r),p=u;break;case"input":Gn(r,u),p=Rn(r,u),Qe("invalid",r);break;case"option":p=u;break;case"select":r._wrapperState={wasMultiple:!!u.multiple},p=ne({},u,{value:void 0}),Qe("invalid",r);break;case"textarea":Ye(r,u),p=Re(r,u),Qe("invalid",r);break;default:p=u}Hf(l,p),T=p;for(m in T)if(T.hasOwnProperty(m)){var b=T[m];m==="style"?NS(r,b):m==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&OS(r,b)):m==="children"?typeof b=="string"?(l!=="textarea"||b!=="")&&Di(r,b):typeof b=="number"&&Di(r,""+b):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(i.hasOwnProperty(m)?b!=null&&m==="onScroll"&&Qe("scroll",r):b!=null&&j(r,m,b,S))}switch(l){case"input":Cs(r),As(r,u,!1);break;case"textarea":Cs(r),Yn(r);break;case"option":u.value!=null&&r.setAttribute("value",""+$e(u.value));break;case"select":r.multiple=!!u.multiple,m=u.value,m!=null?wt(r,!!u.multiple,m,!1):u.defaultValue!=null&&wt(r,!!u.multiple,u.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=Pc)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Nt(o),null;case 6:if(r&&o.stateNode!=null)W_(r,o,r.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(n(166));if(l=$s(ua.current),$s(Xn.current),Fc(o)){if(u=o.stateNode,l=o.memoizedProps,u[Qn]=o,(m=u.nodeValue!==l)&&(r=ln,r!==null))switch(r.tag){case 3:Oc(u.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Oc(u.nodeValue,l,(r.mode&1)!==0)}m&&(o.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Qn]=o,o.stateNode=u}return Nt(o),null;case 13:if(Xe(et),u=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ze&&cn!==null&&o.mode&1&&!(o.flags&128))Gw(),Ho(),o.flags|=98560,m=!1;else if(m=Fc(o),u!==null&&u.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Qn]=o}else Ho(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Nt(o),m=!1}else Pn!==null&&(wh(Pn),Pn=null),m=!0;if(!m)return o.flags&65536?o:null}return o.flags&128?(o.lanes=l,o):(u=u!==null,u!==(r!==null&&r.memoizedState!==null)&&u&&(o.child.flags|=8192,o.mode&1&&(r===null||et.current&1?mt===0&&(mt=3):xh())),o.updateQueue!==null&&(o.flags|=4),Nt(o),null);case 4:return Go(),ch(r,o),r===null&&ra(o.stateNode.containerInfo),Nt(o),null;case 10:return Dp(o.type._context),Nt(o),null;case 17:return Jt(o.type)&&Mc(),Nt(o),null;case 19:if(Xe(et),m=o.memoizedState,m===null)return Nt(o),null;if(u=(o.flags&128)!==0,S=m.rendering,S===null)if(u)ma(m,!1);else{if(mt!==0||r!==null&&r.flags&128)for(r=o.child;r!==null;){if(S=qc(r),S!==null){for(o.flags|=128,ma(m,!1),u=S.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=l,l=o.child;l!==null;)m=l,r=u,m.flags&=14680066,S=m.alternate,S===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=S.childLanes,m.lanes=S.lanes,m.child=S.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=S.memoizedProps,m.memoizedState=S.memoizedState,m.updateQueue=S.updateQueue,m.type=S.type,r=S.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Ke(et,et.current&1|2),o.child}r=r.sibling}m.tail!==null&&lt()>Xo&&(o.flags|=128,u=!0,ma(m,!1),o.lanes=4194304)}else{if(!u)if(r=qc(S),r!==null){if(o.flags|=128,u=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),ma(m,!0),m.tail===null&&m.tailMode==="hidden"&&!S.alternate&&!Ze)return Nt(o),null}else 2*lt()-m.renderingStartTime>Xo&&l!==1073741824&&(o.flags|=128,u=!0,ma(m,!1),o.lanes=4194304);m.isBackwards?(S.sibling=o.child,o.child=S):(l=m.last,l!==null?l.sibling=S:o.child=S,m.last=S)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=lt(),o.sibling=null,l=et.current,Ke(et,u?l&1|2:l&1),o):(Nt(o),null);case 22:case 23:return Eh(),u=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==u&&(o.flags|=8192),u&&o.mode&1?un&1073741824&&(Nt(o),o.subtreeFlags&6&&(o.flags|=8192)):Nt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function n8(r,o){switch(Op(o),o.tag){case 1:return Jt(o.type)&&Mc(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Go(),Xe(Xt),Xe(Ot),Wp(),r=o.flags,r&65536&&!(r&128)?(o.flags=r&-65537|128,o):null;case 5:return Up(o),null;case 13:if(Xe(et),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Ho()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Xe(et),null;case 4:return Go(),null;case 10:return Dp(o.type._context),null;case 22:case 23:return Eh(),null;case 24:return null;default:return null}}var eu=!1,Mt=!1,r8=typeof WeakSet=="function"?WeakSet:Set,ie=null;function Ko(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){rt(r,o,u)}else l.current=null}function uh(r,o,l){try{l()}catch(u){rt(r,o,u)}}var q_=!1;function s8(r,o){if(Ep=wc,r=xw(),hp(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var S=0,T=-1,b=-1,D=0,Y=0,Q=r,G=null;t:for(;;){for(var re;Q!==l||p!==0&&Q.nodeType!==3||(T=S+p),Q!==m||u!==0&&Q.nodeType!==3||(b=S+u),Q.nodeType===3&&(S+=Q.nodeValue.length),(re=Q.firstChild)!==null;)G=Q,Q=re;for(;;){if(Q===r)break t;if(G===l&&++D===p&&(T=S),G===m&&++Y===u&&(b=S),(re=Q.nextSibling)!==null)break;Q=G,G=Q.parentNode}Q=re}l=T===-1||b===-1?null:{start:T,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(xp={focusedElem:r,selectionRange:l},wc=!1,ie=o;ie!==null;)if(o=ie,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ie=r;else for(;ie!==null;){o=ie;try{var ae=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var le=ae.memoizedProps,ct=ae.memoizedState,N=o.stateNode,I=N.getSnapshotBeforeUpdate(o.elementType===o.type?le:Nn(o.type,le),ct);N.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var M=o.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(X){rt(o,o.return,X)}if(r=o.sibling,r!==null){r.return=o.return,ie=r;break}ie=o.return}return ae=q_,q_=!1,ae}function ga(r,o,l){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var p=u=u.next;do{if((p.tag&r)===r){var m=p.destroy;p.destroy=void 0,m!==void 0&&uh(o,l,m)}p=p.next}while(p!==u)}}function tu(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var u=l.create;l.destroy=u()}l=l.next}while(l!==o)}}function dh(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function V_(r){var o=r.alternate;o!==null&&(r.alternate=null,V_(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Qn],delete o[oa],delete o[Ip],delete o[B$],delete o[z$])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function G_(r){return r.tag===5||r.tag===3||r.tag===4}function Y_(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||G_(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function fh(r,o,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Pc));else if(u!==4&&(r=r.child,r!==null))for(fh(r,o,l),r=r.sibling;r!==null;)fh(r,o,l),r=r.sibling}function ph(r,o,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(u!==4&&(r=r.child,r!==null))for(ph(r,o,l),r=r.sibling;r!==null;)ph(r,o,l),r=r.sibling}var It=null,Mn=!1;function Qr(r,o,l){for(l=l.child;l!==null;)K_(r,o,l),l=l.sibling}function K_(r,o,l){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(hc,l)}catch{}switch(l.tag){case 5:Mt||Ko(l,o);case 6:var u=It,p=Mn;It=null,Qr(r,o,l),It=u,Mn=p,It!==null&&(Mn?(r=It,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):It.removeChild(l.stateNode));break;case 18:It!==null&&(Mn?(r=It,l=l.stateNode,r.nodeType===8?bp(r.parentNode,l):r.nodeType===1&&bp(r,l),Yi(r)):bp(It,l.stateNode));break;case 4:u=It,p=Mn,It=l.stateNode.containerInfo,Mn=!0,Qr(r,o,l),It=u,Mn=p;break;case 0:case 11:case 14:case 15:if(!Mt&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){p=u=u.next;do{var m=p,S=m.destroy;m=m.tag,S!==void 0&&(m&2||m&4)&&uh(l,o,S),p=p.next}while(p!==u)}Qr(r,o,l);break;case 1:if(!Mt&&(Ko(l,o),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(T){rt(l,o,T)}Qr(r,o,l);break;case 21:Qr(r,o,l);break;case 22:l.mode&1?(Mt=(u=Mt)||l.memoizedState!==null,Qr(r,o,l),Mt=u):Qr(r,o,l);break;default:Qr(r,o,l)}}function Q_(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new r8),o.forEach(function(u){var p=p8.bind(null,r,u);l.has(u)||(l.add(u),u.then(p,p))})}}function Ln(r,o){var l=o.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u];try{var m=r,S=o,T=S;e:for(;T!==null;){switch(T.tag){case 5:It=T.stateNode,Mn=!1;break e;case 3:It=T.stateNode.containerInfo,Mn=!0;break e;case 4:It=T.stateNode.containerInfo,Mn=!0;break e}T=T.return}if(It===null)throw Error(n(160));K_(m,S,p),It=null,Mn=!1;var b=p.alternate;b!==null&&(b.return=null),p.return=null}catch(D){rt(p,o,D)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)X_(o,r),o=o.sibling}function X_(r,o){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Ln(o,r),Zn(r),u&4){try{ga(3,r,r.return),tu(3,r)}catch(le){rt(r,r.return,le)}try{ga(5,r,r.return)}catch(le){rt(r,r.return,le)}}break;case 1:Ln(o,r),Zn(r),u&512&&l!==null&&Ko(l,l.return);break;case 5:if(Ln(o,r),Zn(r),u&512&&l!==null&&Ko(l,l.return),r.flags&32){var p=r.stateNode;try{Di(p,"")}catch(le){rt(r,r.return,le)}}if(u&4&&(p=r.stateNode,p!=null)){var m=r.memoizedProps,S=l!==null?l.memoizedProps:m,T=r.type,b=r.updateQueue;if(r.updateQueue=null,b!==null)try{T==="input"&&m.type==="radio"&&m.name!=null&&Co(p,m),Wf(T,S);var D=Wf(T,m);for(S=0;S<b.length;S+=2){var Y=b[S],Q=b[S+1];Y==="style"?NS(p,Q):Y==="dangerouslySetInnerHTML"?OS(p,Q):Y==="children"?Di(p,Q):j(p,Y,Q,D)}switch(T){case"input":Rs(p,m);break;case"textarea":je(p,m);break;case"select":var G=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!m.multiple;var re=m.value;re!=null?wt(p,!!m.multiple,re,!1):G!==!!m.multiple&&(m.defaultValue!=null?wt(p,!!m.multiple,m.defaultValue,!0):wt(p,!!m.multiple,m.multiple?[]:"",!1))}p[oa]=m}catch(le){rt(r,r.return,le)}}break;case 6:if(Ln(o,r),Zn(r),u&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,m=r.memoizedProps;try{p.nodeValue=m}catch(le){rt(r,r.return,le)}}break;case 3:if(Ln(o,r),Zn(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Yi(o.containerInfo)}catch(le){rt(r,r.return,le)}break;case 4:Ln(o,r),Zn(r);break;case 13:Ln(o,r),Zn(r),p=r.child,p.flags&8192&&(m=p.memoizedState!==null,p.stateNode.isHidden=m,!m||p.alternate!==null&&p.alternate.memoizedState!==null||(gh=lt())),u&4&&Q_(r);break;case 22:if(Y=l!==null&&l.memoizedState!==null,r.mode&1?(Mt=(D=Mt)||Y,Ln(o,r),Mt=D):Ln(o,r),Zn(r),u&8192){if(D=r.memoizedState!==null,(r.stateNode.isHidden=D)&&!Y&&r.mode&1)for(ie=r,Y=r.child;Y!==null;){for(Q=ie=Y;ie!==null;){switch(G=ie,re=G.child,G.tag){case 0:case 11:case 14:case 15:ga(4,G,G.return);break;case 1:Ko(G,G.return);var ae=G.stateNode;if(typeof ae.componentWillUnmount=="function"){u=G,l=G.return;try{o=u,ae.props=o.memoizedProps,ae.state=o.memoizedState,ae.componentWillUnmount()}catch(le){rt(u,l,le)}}break;case 5:Ko(G,G.return);break;case 22:if(G.memoizedState!==null){eE(Q);continue}}re!==null?(re.return=G,ie=re):eE(Q)}Y=Y.sibling}e:for(Y=null,Q=r;;){if(Q.tag===5){if(Y===null){Y=Q;try{p=Q.stateNode,D?(m=p.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(T=Q.stateNode,b=Q.memoizedProps.style,S=b!=null&&b.hasOwnProperty("display")?b.display:null,T.style.display=PS("display",S))}catch(le){rt(r,r.return,le)}}}else if(Q.tag===6){if(Y===null)try{Q.stateNode.nodeValue=D?"":Q.memoizedProps}catch(le){rt(r,r.return,le)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===r)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===r)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===r)break e;Y===Q&&(Y=null),Q=Q.return}Y===Q&&(Y=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:Ln(o,r),Zn(r),u&4&&Q_(r);break;case 21:break;default:Ln(o,r),Zn(r)}}function Zn(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(G_(l)){var u=l;break e}l=l.return}throw Error(n(160))}switch(u.tag){case 5:var p=u.stateNode;u.flags&32&&(Di(p,""),u.flags&=-33);var m=Y_(r);ph(r,m,p);break;case 3:case 4:var S=u.stateNode.containerInfo,T=Y_(r);fh(r,T,S);break;default:throw Error(n(161))}}catch(b){rt(r,r.return,b)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function o8(r,o,l){ie=r,J_(r)}function J_(r,o,l){for(var u=(r.mode&1)!==0;ie!==null;){var p=ie,m=p.child;if(p.tag===22&&u){var S=p.memoizedState!==null||eu;if(!S){var T=p.alternate,b=T!==null&&T.memoizedState!==null||Mt;T=eu;var D=Mt;if(eu=S,(Mt=b)&&!D)for(ie=p;ie!==null;)S=ie,b=S.child,S.tag===22&&S.memoizedState!==null?tE(p):b!==null?(b.return=S,ie=b):tE(p);for(;m!==null;)ie=m,J_(m),m=m.sibling;ie=p,eu=T,Mt=D}Z_(r)}else p.subtreeFlags&8772&&m!==null?(m.return=p,ie=m):Z_(r)}}function Z_(r){for(;ie!==null;){var o=ie;if(o.flags&8772){var l=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Mt||tu(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!Mt)if(l===null)u.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:Nn(o.type,l.memoizedProps);u.componentDidUpdate(p,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&e_(o,m,u);break;case 3:var S=o.updateQueue;if(S!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}e_(o,S,l)}break;case 5:var T=o.stateNode;if(l===null&&o.flags&4){l=T;var b=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&l.focus();break;case"img":b.src&&(l.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var D=o.alternate;if(D!==null){var Y=D.memoizedState;if(Y!==null){var Q=Y.dehydrated;Q!==null&&Yi(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Mt||o.flags&512&&dh(o)}catch(G){rt(o,o.return,G)}}if(o===r){ie=null;break}if(l=o.sibling,l!==null){l.return=o.return,ie=l;break}ie=o.return}}function eE(r){for(;ie!==null;){var o=ie;if(o===r){ie=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ie=l;break}ie=o.return}}function tE(r){for(;ie!==null;){var o=ie;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{tu(4,o)}catch(b){rt(o,l,b)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var p=o.return;try{u.componentDidMount()}catch(b){rt(o,p,b)}}var m=o.return;try{dh(o)}catch(b){rt(o,m,b)}break;case 5:var S=o.return;try{dh(o)}catch(b){rt(o,S,b)}}}catch(b){rt(o,o.return,b)}if(o===r){ie=null;break}var T=o.sibling;if(T!==null){T.return=o.return,ie=T;break}ie=o.return}}var i8=Math.ceil,nu=K.ReactCurrentDispatcher,hh=K.ReactCurrentOwner,vn=K.ReactCurrentBatchConfig,Fe=0,Et=null,dt=null,Ct=0,un=0,Qo=qr(0),mt=0,ya=null,Bs=0,ru=0,mh=0,va=null,en=null,gh=0,Xo=1/0,vr=null,su=!1,yh=null,Xr=null,ou=!1,Jr=null,iu=0,Sa=0,vh=null,au=-1,lu=0;function Bt(){return Fe&6?lt():au!==-1?au:au=lt()}function Zr(r){return r.mode&1?Fe&2&&Ct!==0?Ct&-Ct:H$.transition!==null?(lu===0&&(lu=YS()),lu):(r=He,r!==0||(r=window.event,r=r===void 0?16:rw(r.type)),r):1}function jn(r,o,l,u){if(50<Sa)throw Sa=0,vh=null,Error(n(185));Hi(r,l,u),(!(Fe&2)||r!==Et)&&(r===Et&&(!(Fe&2)&&(ru|=l),mt===4&&es(r,Ct)),tn(r,u),l===1&&Fe===0&&!(o.mode&1)&&(Xo=lt()+500,jc&&Gr()))}function tn(r,o){var l=r.callbackNode;HD(r,o);var u=yc(r,r===Et?Ct:0);if(u===0)l!==null&&qS(l),r.callbackNode=null,r.callbackPriority=0;else if(o=u&-u,r.callbackPriority!==o){if(l!=null&&qS(l),o===1)r.tag===0?U$(rE.bind(null,r)):Uw(rE.bind(null,r)),$$(function(){!(Fe&6)&&Gr()}),l=null;else{switch(KS(u)){case 1:l=Xf;break;case 4:l=VS;break;case 16:l=pc;break;case 536870912:l=GS;break;default:l=pc}l=dE(l,nE.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function nE(r,o){if(au=-1,lu=0,Fe&6)throw Error(n(327));var l=r.callbackNode;if(Jo()&&r.callbackNode!==l)return null;var u=yc(r,r===Et?Ct:0);if(u===0)return null;if(u&30||u&r.expiredLanes||o)o=cu(r,u);else{o=u;var p=Fe;Fe|=2;var m=oE();(Et!==r||Ct!==o)&&(vr=null,Xo=lt()+500,Us(r,o));do try{c8();break}catch(T){sE(r,T)}while(!0);jp(),nu.current=m,Fe=p,dt!==null?o=0:(Et=null,Ct=0,o=mt)}if(o!==0){if(o===2&&(p=Jf(r),p!==0&&(u=p,o=Sh(r,p))),o===1)throw l=ya,Us(r,0),es(r,u),tn(r,lt()),l;if(o===6)es(r,u);else{if(p=r.current.alternate,!(u&30)&&!a8(p)&&(o=cu(r,u),o===2&&(m=Jf(r),m!==0&&(u=m,o=Sh(r,m))),o===1))throw l=ya,Us(r,0),es(r,u),tn(r,lt()),l;switch(r.finishedWork=p,r.finishedLanes=u,o){case 0:case 1:throw Error(n(345));case 2:Hs(r,en,vr);break;case 3:if(es(r,u),(u&130023424)===u&&(o=gh+500-lt(),10<o)){if(yc(r,0)!==0)break;if(p=r.suspendedLanes,(p&u)!==u){Bt(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Tp(Hs.bind(null,r,en,vr),o);break}Hs(r,en,vr);break;case 4:if(es(r,u),(u&4194240)===u)break;for(o=r.eventTimes,p=-1;0<u;){var S=31-An(u);m=1<<S,S=o[S],S>p&&(p=S),u&=~m}if(u=p,u=lt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*i8(u/1960))-u,10<u){r.timeoutHandle=Tp(Hs.bind(null,r,en,vr),u);break}Hs(r,en,vr);break;case 5:Hs(r,en,vr);break;default:throw Error(n(329))}}}return tn(r,lt()),r.callbackNode===l?nE.bind(null,r):null}function Sh(r,o){var l=va;return r.current.memoizedState.isDehydrated&&(Us(r,o).flags|=256),r=cu(r,o),r!==2&&(o=en,en=l,o!==null&&wh(o)),r}function wh(r){en===null?en=r:en.push.apply(en,r)}function a8(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var p=l[u],m=p.getSnapshot;p=p.value;try{if(!On(m(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function es(r,o){for(o&=~mh,o&=~ru,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-An(o),u=1<<l;r[l]=-1,o&=~u}}function rE(r){if(Fe&6)throw Error(n(327));Jo();var o=yc(r,0);if(!(o&1))return tn(r,lt()),null;var l=cu(r,o);if(r.tag!==0&&l===2){var u=Jf(r);u!==0&&(o=u,l=Sh(r,u))}if(l===1)throw l=ya,Us(r,0),es(r,o),tn(r,lt()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Hs(r,en,vr),tn(r,lt()),null}function _h(r,o){var l=Fe;Fe|=1;try{return r(o)}finally{Fe=l,Fe===0&&(Xo=lt()+500,jc&&Gr())}}function zs(r){Jr!==null&&Jr.tag===0&&!(Fe&6)&&Jo();var o=Fe;Fe|=1;var l=vn.transition,u=He;try{if(vn.transition=null,He=1,r)return r()}finally{He=u,vn.transition=l,Fe=o,!(Fe&6)&&Gr()}}function Eh(){un=Qo.current,Xe(Qo)}function Us(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,D$(l)),dt!==null)for(l=dt.return;l!==null;){var u=l;switch(Op(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Mc();break;case 3:Go(),Xe(Xt),Xe(Ot),Wp();break;case 5:Up(u);break;case 4:Go();break;case 13:Xe(et);break;case 19:Xe(et);break;case 10:Dp(u.type._context);break;case 22:case 23:Eh()}l=l.return}if(Et=r,dt=r=ts(r.current,null),Ct=un=o,mt=0,ya=null,mh=ru=Bs=0,en=va=null,Ds!==null){for(o=0;o<Ds.length;o++)if(l=Ds[o],u=l.interleaved,u!==null){l.interleaved=null;var p=u.next,m=l.pending;if(m!==null){var S=m.next;m.next=p,u.next=S}l.pending=u}Ds=null}return r}function sE(r,o){do{var l=dt;try{if(jp(),Vc.current=Qc,Gc){for(var u=tt.memoizedState;u!==null;){var p=u.queue;p!==null&&(p.pending=null),u=u.next}Gc=!1}if(Fs=0,_t=ht=tt=null,da=!1,fa=0,hh.current=null,l===null||l.return===null){mt=1,ya=o,dt=null;break}e:{var m=r,S=l.return,T=l,b=o;if(o=Ct,T.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var D=b,Y=T,Q=Y.tag;if(!(Y.mode&1)&&(Q===0||Q===11||Q===15)){var G=Y.alternate;G?(Y.updateQueue=G.updateQueue,Y.memoizedState=G.memoizedState,Y.lanes=G.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var re=R_(S);if(re!==null){re.flags&=-257,A_(re,S,T,m,o),re.mode&1&&C_(m,D,o),o=re,b=D;var ae=o.updateQueue;if(ae===null){var le=new Set;le.add(b),o.updateQueue=le}else ae.add(b);break e}else{if(!(o&1)){C_(m,D,o),xh();break e}b=Error(n(426))}}else if(Ze&&T.mode&1){var ct=R_(S);if(ct!==null){!(ct.flags&65536)&&(ct.flags|=256),A_(ct,S,T,m,o),Mp(Yo(b,T));break e}}m=b=Yo(b,T),mt!==4&&(mt=2),va===null?va=[m]:va.push(m),m=S;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var N=b_(m,b,o);Zw(m,N);break e;case 1:T=b;var I=m.type,M=m.stateNode;if(!(m.flags&128)&&(typeof I.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Xr===null||!Xr.has(M)))){m.flags|=65536,o&=-o,m.lanes|=o;var X=I_(m,T,o);Zw(m,X);break e}}m=m.return}while(m!==null)}aE(l)}catch(ce){o=ce,dt===l&&l!==null&&(dt=l=l.return);continue}break}while(!0)}function oE(){var r=nu.current;return nu.current=Qc,r===null?Qc:r}function xh(){(mt===0||mt===3||mt===2)&&(mt=4),Et===null||!(Bs&268435455)&&!(ru&268435455)||es(Et,Ct)}function cu(r,o){var l=Fe;Fe|=2;var u=oE();(Et!==r||Ct!==o)&&(vr=null,Us(r,o));do try{l8();break}catch(p){sE(r,p)}while(!0);if(jp(),Fe=l,nu.current=u,dt!==null)throw Error(n(261));return Et=null,Ct=0,mt}function l8(){for(;dt!==null;)iE(dt)}function c8(){for(;dt!==null&&!MD();)iE(dt)}function iE(r){var o=uE(r.alternate,r,un);r.memoizedProps=r.pendingProps,o===null?aE(r):dt=o,hh.current=null}function aE(r){var o=r;do{var l=o.alternate;if(r=o.return,o.flags&32768){if(l=n8(l,o),l!==null){l.flags&=32767,dt=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{mt=6,dt=null;return}}else if(l=t8(l,o,un),l!==null){dt=l;return}if(o=o.sibling,o!==null){dt=o;return}dt=o=r}while(o!==null);mt===0&&(mt=5)}function Hs(r,o,l){var u=He,p=vn.transition;try{vn.transition=null,He=1,u8(r,o,l,u)}finally{vn.transition=p,He=u}return null}function u8(r,o,l,u){do Jo();while(Jr!==null);if(Fe&6)throw Error(n(327));l=r.finishedWork;var p=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=l.lanes|l.childLanes;if(WD(r,m),r===Et&&(dt=Et=null,Ct=0),!(l.subtreeFlags&2064)&&!(l.flags&2064)||ou||(ou=!0,dE(pc,function(){return Jo(),null})),m=(l.flags&15990)!==0,l.subtreeFlags&15990||m){m=vn.transition,vn.transition=null;var S=He;He=1;var T=Fe;Fe|=4,hh.current=null,s8(r,l),X_(l,r),A$(xp),wc=!!Ep,xp=Ep=null,r.current=l,o8(l),LD(),Fe=T,He=S,vn.transition=m}else r.current=l;if(ou&&(ou=!1,Jr=r,iu=p),m=r.pendingLanes,m===0&&(Xr=null),$D(l.stateNode),tn(r,lt()),o!==null)for(u=r.onRecoverableError,l=0;l<o.length;l++)p=o[l],u(p.value,{componentStack:p.stack,digest:p.digest});if(su)throw su=!1,r=yh,yh=null,r;return iu&1&&r.tag!==0&&Jo(),m=r.pendingLanes,m&1?r===vh?Sa++:(Sa=0,vh=r):Sa=0,Gr(),null}function Jo(){if(Jr!==null){var r=KS(iu),o=vn.transition,l=He;try{if(vn.transition=null,He=16>r?16:r,Jr===null)var u=!1;else{if(r=Jr,Jr=null,iu=0,Fe&6)throw Error(n(331));var p=Fe;for(Fe|=4,ie=r.current;ie!==null;){var m=ie,S=m.child;if(ie.flags&16){var T=m.deletions;if(T!==null){for(var b=0;b<T.length;b++){var D=T[b];for(ie=D;ie!==null;){var Y=ie;switch(Y.tag){case 0:case 11:case 15:ga(8,Y,m)}var Q=Y.child;if(Q!==null)Q.return=Y,ie=Q;else for(;ie!==null;){Y=ie;var G=Y.sibling,re=Y.return;if(V_(Y),Y===D){ie=null;break}if(G!==null){G.return=re,ie=G;break}ie=re}}}var ae=m.alternate;if(ae!==null){var le=ae.child;if(le!==null){ae.child=null;do{var ct=le.sibling;le.sibling=null,le=ct}while(le!==null)}}ie=m}}if(m.subtreeFlags&2064&&S!==null)S.return=m,ie=S;else e:for(;ie!==null;){if(m=ie,m.flags&2048)switch(m.tag){case 0:case 11:case 15:ga(9,m,m.return)}var N=m.sibling;if(N!==null){N.return=m.return,ie=N;break e}ie=m.return}}var I=r.current;for(ie=I;ie!==null;){S=ie;var M=S.child;if(S.subtreeFlags&2064&&M!==null)M.return=S,ie=M;else e:for(S=I;ie!==null;){if(T=ie,T.flags&2048)try{switch(T.tag){case 0:case 11:case 15:tu(9,T)}}catch(ce){rt(T,T.return,ce)}if(T===S){ie=null;break e}var X=T.sibling;if(X!==null){X.return=T.return,ie=X;break e}ie=T.return}}if(Fe=p,Gr(),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(hc,r)}catch{}u=!0}return u}finally{He=l,vn.transition=o}}return!1}function lE(r,o,l){o=Yo(l,o),o=b_(r,o,1),r=Kr(r,o,1),o=Bt(),r!==null&&(Hi(r,1,o),tn(r,o))}function rt(r,o,l){if(r.tag===3)lE(r,r,l);else for(;o!==null;){if(o.tag===3){lE(o,r,l);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Xr===null||!Xr.has(u))){r=Yo(l,r),r=I_(o,r,1),o=Kr(o,r,1),r=Bt(),o!==null&&(Hi(o,1,r),tn(o,r));break}}o=o.return}}function d8(r,o,l){var u=r.pingCache;u!==null&&u.delete(o),o=Bt(),r.pingedLanes|=r.suspendedLanes&l,Et===r&&(Ct&l)===l&&(mt===4||mt===3&&(Ct&130023424)===Ct&&500>lt()-gh?Us(r,0):mh|=l),tn(r,o)}function cE(r,o){o===0&&(r.mode&1?(o=gc,gc<<=1,!(gc&130023424)&&(gc=4194304)):o=1);var l=Bt();r=mr(r,o),r!==null&&(Hi(r,o,l),tn(r,l))}function f8(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),cE(r,l)}function p8(r,o){var l=0;switch(r.tag){case 13:var u=r.stateNode,p=r.memoizedState;p!==null&&(l=p.retryLane);break;case 19:u=r.stateNode;break;default:throw Error(n(314))}u!==null&&u.delete(o),cE(r,l)}var uE;uE=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||Xt.current)Zt=!0;else{if(!(r.lanes&l)&&!(o.flags&128))return Zt=!1,e8(r,o,l);Zt=!!(r.flags&131072)}else Zt=!1,Ze&&o.flags&1048576&&Hw(o,$c,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;Zc(r,o),r=o.pendingProps;var p=Bo(o,Ot.current);Vo(o,l),p=Gp(null,o,u,r,p,l);var m=Yp();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Jt(u)?(m=!0,Lc(o)):m=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Bp(o),p.updater=Xc,o.stateNode=p,p._reactInternals=o,eh(o,u,r,l),o=sh(null,o,u,!0,m,l)):(o.tag=0,Ze&&m&&Ap(o),Ft(null,o,p,l),o=o.child),o;case 16:u=o.elementType;e:{switch(Zc(r,o),r=o.pendingProps,p=u._init,u=p(u._payload),o.type=u,p=o.tag=m8(u),r=Nn(u,r),p){case 0:o=rh(null,o,u,r,l);break e;case 1:o=j_(null,o,u,r,l);break e;case 11:o=O_(null,o,u,r,l);break e;case 14:o=P_(null,o,u,Nn(u.type,r),l);break e}throw Error(n(306,u,""))}return o;case 0:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Nn(u,p),rh(r,o,u,p,l);case 1:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Nn(u,p),j_(r,o,u,p,l);case 3:e:{if(D_(o),r===null)throw Error(n(387));u=o.pendingProps,m=o.memoizedState,p=m.element,Jw(r,o),Wc(o,u,null,l);var S=o.memoizedState;if(u=S.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){p=Yo(Error(n(423)),o),o=$_(r,o,u,l,p);break e}else if(u!==p){p=Yo(Error(n(424)),o),o=$_(r,o,u,l,p);break e}else for(cn=Wr(o.stateNode.containerInfo.firstChild),ln=o,Ze=!0,Pn=null,l=Qw(o,null,u,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ho(),u===p){o=yr(r,o,l);break e}Ft(r,o,u,l)}o=o.child}return o;case 5:return t_(o),r===null&&Np(o),u=o.type,p=o.pendingProps,m=r!==null?r.memoizedProps:null,S=p.children,kp(u,p)?S=null:m!==null&&kp(u,m)&&(o.flags|=32),L_(r,o),Ft(r,o,S,l),o.child;case 6:return r===null&&Np(o),null;case 13:return F_(r,o,l);case 4:return zp(o,o.stateNode.containerInfo),u=o.pendingProps,r===null?o.child=Wo(o,null,u,l):Ft(r,o,u,l),o.child;case 11:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Nn(u,p),O_(r,o,u,p,l);case 7:return Ft(r,o,o.pendingProps,l),o.child;case 8:return Ft(r,o,o.pendingProps.children,l),o.child;case 12:return Ft(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(u=o.type._context,p=o.pendingProps,m=o.memoizedProps,S=p.value,Ke(zc,u._currentValue),u._currentValue=S,m!==null)if(On(m.value,S)){if(m.children===p.children&&!Xt.current){o=yr(r,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var T=m.dependencies;if(T!==null){S=m.child;for(var b=T.firstContext;b!==null;){if(b.context===u){if(m.tag===1){b=gr(-1,l&-l),b.tag=2;var D=m.updateQueue;if(D!==null){D=D.shared;var Y=D.pending;Y===null?b.next=b:(b.next=Y.next,Y.next=b),D.pending=b}}m.lanes|=l,b=m.alternate,b!==null&&(b.lanes|=l),$p(m.return,l,o),T.lanes|=l;break}b=b.next}}else if(m.tag===10)S=m.type===o.type?null:m.child;else if(m.tag===18){if(S=m.return,S===null)throw Error(n(341));S.lanes|=l,T=S.alternate,T!==null&&(T.lanes|=l),$p(S,l,o),S=m.sibling}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===o){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}Ft(r,o,p.children,l),o=o.child}return o;case 9:return p=o.type,u=o.pendingProps.children,Vo(o,l),p=gn(p),u=u(p),o.flags|=1,Ft(r,o,u,l),o.child;case 14:return u=o.type,p=Nn(u,o.pendingProps),p=Nn(u.type,p),P_(r,o,u,p,l);case 15:return N_(r,o,o.type,o.pendingProps,l);case 17:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Nn(u,p),Zc(r,o),o.tag=1,Jt(u)?(r=!0,Lc(o)):r=!1,Vo(o,l),k_(o,u,p),eh(o,u,p,l),sh(null,o,u,!0,r,l);case 19:return z_(r,o,l);case 22:return M_(r,o,l)}throw Error(n(156,o.tag))};function dE(r,o){return WS(r,o)}function h8(r,o,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(r,o,l,u){return new h8(r,o,l,u)}function kh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function m8(r){if(typeof r=="function")return kh(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Z)return 11;if(r===De)return 14}return 2}function ts(r,o){var l=r.alternate;return l===null?(l=Sn(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function uu(r,o,l,u,p,m){var S=2;if(u=r,typeof r=="function")kh(r)&&(S=1);else if(typeof r=="string")S=5;else e:switch(r){case C:return Ws(l.children,p,m,o);case W:S=8,p|=8;break;case F:return r=Sn(12,l,o,p|2),r.elementType=F,r.lanes=m,r;case ue:return r=Sn(13,l,o,p),r.elementType=ue,r.lanes=m,r;case me:return r=Sn(19,l,o,p),r.elementType=me,r.lanes=m,r;case Se:return du(l,p,m,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case U:S=10;break e;case J:S=9;break e;case Z:S=11;break e;case De:S=14;break e;case te:S=16,u=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=Sn(S,l,o,p),o.elementType=r,o.type=u,o.lanes=m,o}function Ws(r,o,l,u){return r=Sn(7,r,u,o),r.lanes=l,r}function du(r,o,l,u){return r=Sn(22,r,u,o),r.elementType=Se,r.lanes=l,r.stateNode={isHidden:!1},r}function Th(r,o,l){return r=Sn(6,r,null,o),r.lanes=l,r}function bh(r,o,l){return o=Sn(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function g8(r,o,l,u,p){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zf(0),this.expirationTimes=Zf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zf(0),this.identifierPrefix=u,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Ih(r,o,l,u,p,m,S,T,b){return r=new g8(r,o,l,T,b),o===1?(o=1,m===!0&&(o|=8)):o=0,m=Sn(3,null,null,o),r.current=m,m.stateNode=r,m.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bp(m),r}function y8(r,o,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:u==null?null:""+u,children:r,containerInfo:o,implementation:l}}function fE(r){if(!r)return Vr;r=r._reactInternals;e:{if(Ps(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Jt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(Jt(l))return Bw(r,l,o)}return o}function pE(r,o,l,u,p,m,S,T,b){return r=Ih(l,u,!0,r,p,m,S,T,b),r.context=fE(null),l=r.current,u=Bt(),p=Zr(l),m=gr(u,p),m.callback=o??null,Kr(l,m,p),r.current.lanes=p,Hi(r,p,u),tn(r,u),r}function fu(r,o,l,u){var p=o.current,m=Bt(),S=Zr(p);return l=fE(l),o.context===null?o.context=l:o.pendingContext=l,o=gr(m,S),o.payload={element:r},u=u===void 0?null:u,u!==null&&(o.callback=u),r=Kr(p,o,S),r!==null&&(jn(r,p,S,m),Hc(r,p,S)),S}function pu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function hE(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function Ch(r,o){hE(r,o),(r=r.alternate)&&hE(r,o)}function v8(){return null}var mE=typeof reportError=="function"?reportError:function(r){console.error(r)};function Rh(r){this._internalRoot=r}hu.prototype.render=Rh.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));fu(r,o,null,null)},hu.prototype.unmount=Rh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;zs(function(){fu(null,r,null,null)}),o[dr]=null}};function hu(r){this._internalRoot=r}hu.prototype.unstable_scheduleHydration=function(r){if(r){var o=JS();r={blockedOn:null,target:r,priority:o};for(var l=0;l<zr.length&&o!==0&&o<zr[l].priority;l++);zr.splice(l,0,r),l===0&&tw(r)}};function Ah(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function mu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function gE(){}function S8(r,o,l,u,p){if(p){if(typeof u=="function"){var m=u;u=function(){var D=pu(S);m.call(D)}}var S=pE(o,u,r,0,null,!1,!1,"",gE);return r._reactRootContainer=S,r[dr]=S.current,ra(r.nodeType===8?r.parentNode:r),zs(),S}for(;p=r.lastChild;)r.removeChild(p);if(typeof u=="function"){var T=u;u=function(){var D=pu(b);T.call(D)}}var b=Ih(r,0,!1,null,null,!1,!1,"",gE);return r._reactRootContainer=b,r[dr]=b.current,ra(r.nodeType===8?r.parentNode:r),zs(function(){fu(o,b,l,u)}),b}function gu(r,o,l,u,p){var m=l._reactRootContainer;if(m){var S=m;if(typeof p=="function"){var T=p;p=function(){var b=pu(S);T.call(b)}}fu(o,S,r,p)}else S=S8(l,o,r,p,u);return pu(S)}QS=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=Ui(o.pendingLanes);l!==0&&(ep(o,l|1),tn(o,lt()),!(Fe&6)&&(Xo=lt()+500,Gr()))}break;case 13:zs(function(){var u=mr(r,1);if(u!==null){var p=Bt();jn(u,r,1,p)}}),Ch(r,1)}},tp=function(r){if(r.tag===13){var o=mr(r,134217728);if(o!==null){var l=Bt();jn(o,r,134217728,l)}Ch(r,134217728)}},XS=function(r){if(r.tag===13){var o=Zr(r),l=mr(r,o);if(l!==null){var u=Bt();jn(l,r,o,u)}Ch(r,o)}},JS=function(){return He},ZS=function(r,o){var l=He;try{return He=r,o()}finally{He=l}},Gf=function(r,o,l){switch(o){case"input":if(Rs(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var u=l[o];if(u!==r&&u.form===r.form){var p=Nc(u);if(!p)throw Error(n(90));lc(u),Rs(u,p)}}}break;case"textarea":je(r,l);break;case"select":o=l.value,o!=null&&wt(r,!!l.multiple,o,!1)}},DS=_h,$S=zs;var w8={usingClientEntryPoint:!1,Events:[ia,$o,Nc,LS,jS,_h]},wa={findFiberByHostInstance:Ns,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_8={bundleType:wa.bundleType,version:wa.version,rendererPackageName:wa.rendererPackageName,rendererConfig:wa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=US(r),r===null?null:r.stateNode},findFiberByHostInstance:wa.findFiberByHostInstance||v8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yu.isDisabled&&yu.supportsFiber)try{hc=yu.inject(_8),Kn=yu}catch{}}return Ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w8,Ht.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ah(o))throw Error(n(200));return y8(r,o,null,l)},Ht.createRoot=function(r,o){if(!Ah(r))throw Error(n(299));var l=!1,u="",p=mE;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=Ih(r,1,!1,null,null,l,!1,u,p),r[dr]=o.current,ra(r.nodeType===8?r.parentNode:r),new Rh(o)},Ht.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=US(o),r=r===null?null:r.stateNode,r},Ht.flushSync=function(r){return zs(r)},Ht.hydrate=function(r,o,l){if(!mu(o))throw Error(n(200));return gu(null,r,o,!0,l)},Ht.hydrateRoot=function(r,o,l){if(!Ah(r))throw Error(n(405));var u=l!=null&&l.hydratedSources||null,p=!1,m="",S=mE;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),o=pE(o,null,r,1,l??null,p,!1,m,S),r[dr]=o.current,ra(r),u)for(r=0;r<u.length;r++)l=u[r],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new hu(o)},Ht.render=function(r,o,l){if(!mu(o))throw Error(n(200));return gu(null,r,o,!1,l)},Ht.unmountComponentAtNode=function(r){if(!mu(r))throw Error(n(40));return r._reactRootContainer?(zs(function(){gu(null,null,r,!1,function(){r._reactRootContainer=null,r[dr]=null})}),!0):!1},Ht.unstable_batchedUpdates=_h,Ht.unstable_renderSubtreeIntoContainer=function(r,o,l,u){if(!mu(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return gu(r,o,l,!1,u)},Ht.version="18.3.1-next-f1338f8080-20240426",Ht}var $h;function Fh(){if($h)return wu.exports;$h=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wu.exports=xE(),wu.exports}var Bh;function kE(){if(Bh)return _a;Bh=1;var e=Fh();return _a.createRoot=e.createRoot,_a.hydrateRoot=e.hydrateRoot,_a}var TE=kE();const ss=e=>{const t=crypto.randomUUID();return e?t.substring(0,e):t},bE=()=>{localStorage.removeItem("edmap-access-token"),localStorage.removeItem("edmap-refresh-token")},IE=async()=>(CE(),await Wn()),CE=()=>{localStorage.removeItem("edmap-user-id")},RE=()=>{const e=new URL(window.location.href);e.searchParams.delete("code"),window.history.replaceState({index:0,scrollX:0,scrollY:document.scrollY},"",e.toString())},zh=async()=>(bE(),RE(),await IE());function Uh(e,t){return function(){return e.apply(t,arguments)}}const{toString:AE}=Object.prototype,{getPrototypeOf:xu}=Object,Ea=(e=>t=>{const n=AE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wn=e=>(e=e.toLowerCase(),t=>Ea(t)===e),xa=e=>t=>typeof t===e,{isArray:qs}=Array,Zo=xa("undefined");function OE(e){return e!==null&&!Zo(e)&&e.constructor!==null&&!Zo(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hh=wn("ArrayBuffer");function PE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hh(e.buffer),t}const NE=xa("string"),nn=xa("function"),Wh=xa("number"),ka=e=>e!==null&&typeof e=="object",ME=e=>e===!0||e===!1,Ta=e=>{if(Ea(e)!=="object")return!1;const t=xu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},LE=wn("Date"),jE=wn("File"),DE=wn("Blob"),$E=wn("FileList"),FE=e=>ka(e)&&nn(e.pipe),BE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||nn(e.append)&&((t=Ea(e))==="formdata"||t==="object"&&nn(e.toString)&&e.toString()==="[object FormData]"))},zE=wn("URLSearchParams"),[UE,HE,WE,qE]=["ReadableStream","Request","Response","Headers"].map(wn),VE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ei(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),qs(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),c=a.length;let d;for(s=0;s<c;s++)d=a[s],t.call(null,e[d],d,e)}}function qh(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vh=e=>!Zo(e)&&e!==os;function ku(){const{caseless:e}=Vh(this)&&this||{},t={},n=(s,i)=>{const a=e&&qh(t,i)||i;Ta(t[a])&&Ta(s)?t[a]=ku(t[a],s):Ta(s)?t[a]=ku({},s):qs(s)?t[a]=s.slice():t[a]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&ei(arguments[s],n);return t}const GE=(e,t,n,{allOwnKeys:s}={})=>(ei(t,(i,a)=>{n&&nn(i)?e[a]=Uh(i,n):e[a]=i},{allOwnKeys:s}),e),YE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KE=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},QE=(e,t,n,s)=>{let i,a,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)c=i[a],(!s||s(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&xu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},XE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},JE=e=>{if(!e)return null;if(qs(e))return e;let t=e.length;if(!Wh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ZE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xu(Uint8Array)),ex=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},tx=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},nx=wn("HTMLFormElement"),rx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Gh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sx=wn("RegExp"),Yh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ei(n,(i,a)=>{let c;(c=t(i,a,e))!==!1&&(s[a]=c||i)}),Object.defineProperties(e,s)},ox=e=>{Yh(e,(t,n)=>{if(nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(nn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ix=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return qs(e)?s(e):s(String(e).split(t)),n},ax=()=>{},lx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Tu="abcdefghijklmnopqrstuvwxyz",Kh="0123456789",Qh={DIGIT:Kh,ALPHA:Tu,ALPHA_DIGIT:Tu+Tu.toUpperCase()+Kh},cx=(e=16,t=Qh.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function ux(e){return!!(e&&nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dx=e=>{const t=new Array(10),n=(s,i)=>{if(ka(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const a=qs(s)?[]:{};return ei(s,(c,d)=>{const f=n(c,i+1);!Zo(f)&&(a[d]=f)}),t[i]=void 0,a}}return s};return n(e,0)},fx=wn("AsyncFunction"),px=e=>e&&(ka(e)||nn(e))&&nn(e.then)&&nn(e.catch),Xh=((e,t)=>e?setImmediate:t?((n,s)=>(os.addEventListener("message",({source:i,data:a})=>{i===os&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),os.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",nn(os.postMessage)),hx=typeof queueMicrotask<"u"?queueMicrotask.bind(os):typeof process<"u"&&process.nextTick||Xh,z={isArray:qs,isArrayBuffer:Hh,isBuffer:OE,isFormData:BE,isArrayBufferView:PE,isString:NE,isNumber:Wh,isBoolean:ME,isObject:ka,isPlainObject:Ta,isReadableStream:UE,isRequest:HE,isResponse:WE,isHeaders:qE,isUndefined:Zo,isDate:LE,isFile:jE,isBlob:DE,isRegExp:sx,isFunction:nn,isStream:FE,isURLSearchParams:zE,isTypedArray:ZE,isFileList:$E,forEach:ei,merge:ku,extend:GE,trim:VE,stripBOM:YE,inherits:KE,toFlatObject:QE,kindOf:Ea,kindOfTest:wn,endsWith:XE,toArray:JE,forEachEntry:ex,matchAll:tx,isHTMLForm:nx,hasOwnProperty:Gh,hasOwnProp:Gh,reduceDescriptors:Yh,freezeMethods:ox,toObjectSet:ix,toCamelCase:rx,noop:ax,toFiniteNumber:lx,findKey:qh,global:os,isContextDefined:Vh,ALPHABET:Qh,generateString:cx,isSpecCompliantForm:ux,toJSONObject:dx,isAsyncFn:fx,isThenable:px,setImmediate:Xh,asap:hx};function xe(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}z.inherits(xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const Jh=xe.prototype,Zh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Zh[e]={value:e}}),Object.defineProperties(xe,Zh),Object.defineProperty(Jh,"isAxiosError",{value:!0}),xe.from=(e,t,n,s,i,a)=>{const c=Object.create(Jh);return z.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),xe.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const mx=null;function bu(e){return z.isPlainObject(e)||z.isArray(e)}function em(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function tm(e,t,n){return e?e.concat(t).map(function(i,a){return i=em(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function gx(e){return z.isArray(e)&&!e.some(bu)}const yx=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ba(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,k){return!z.isUndefined(k[E])});const s=n.metaTokens,i=n.visitor||g,a=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(z.isDate(_))return _.toISOString();if(!f&&z.isBlob(_))throw new xe("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(_)||z.isTypedArray(_)?f&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function g(_,E,k){let A=_;if(_&&!k&&typeof _=="object"){if(z.endsWith(E,"{}"))E=s?E:E.slice(0,-2),_=JSON.stringify(_);else if(z.isArray(_)&&gx(_)||(z.isFileList(_)||z.endsWith(E,"[]"))&&(A=z.toArray(_)))return E=em(E),A.forEach(function(j,K){!(z.isUndefined(j)||j===null)&&t.append(c===!0?tm([E],K,a):c===null?E:E+"[]",h(j))}),!1}return bu(_)?!0:(t.append(tm(k,E,a),h(_)),!1)}const y=[],w=Object.assign(yx,{defaultVisitor:g,convertValue:h,isVisitable:bu});function x(_,E){if(!z.isUndefined(_)){if(y.indexOf(_)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(_),z.forEach(_,function(A,L){(!(z.isUndefined(A)||A===null)&&i.call(t,A,z.isString(L)?L.trim():L,E,w))===!0&&x(A,E?E.concat(L):[L])}),y.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function nm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Iu(e,t){this._pairs=[],e&&ba(e,this,t)}const rm=Iu.prototype;rm.append=function(t,n){this._pairs.push([t,n])},rm.toString=function(t){const n=t?function(s){return t.call(this,s,nm)}:nm;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function vx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sm(e,t,n){if(!t)return e;const s=n&&n.encode||vx;z.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=z.isURLSearchParams(t)?t.toString():new Iu(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}let om=class{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(s){s!==null&&t(s)})}};const im={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sx={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Iu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Cu=typeof window<"u"&&typeof document<"u",Ru=typeof navigator=="object"&&navigator||void 0,wx=Cu&&(!Ru||["ReactNative","NativeScript","NS"].indexOf(Ru.product)<0),_x=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ex=Cu&&window.location.href||"http://localhost",Rt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cu,hasStandardBrowserEnv:wx,hasStandardBrowserWebWorkerEnv:_x,navigator:Ru,origin:Ex},Symbol.toStringTag,{value:"Module"})),...Sx};function xx(e,t){return ba(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,a){return Rt.isNode&&z.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function kx(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tx(e){const t={},n=Object.keys(e);let s;const i=n.length;let a;for(s=0;s<i;s++)a=n[s],t[a]=e[a];return t}function am(e){function t(n,s,i,a){let c=n[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=a>=n.length;return c=!c&&z.isArray(i)?i.length:c,f?(z.hasOwnProp(i,c)?i[c]=[i[c],s]:i[c]=s,!d):((!i[c]||!z.isObject(i[c]))&&(i[c]=[]),t(n,s,i[c],a)&&z.isArray(i[c])&&(i[c]=Tx(i[c])),!d)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(s,i)=>{t(kx(s),i,n,0)}),n}return null}function bx(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const ti={transitional:im,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,a=z.isObject(t);if(a&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return i?JSON.stringify(am(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return xx(t,this.formSerializer).toString();if((d=z.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ba(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),bx(t)):t}],transformResponse:[function(t){const n=this.transitional||ti.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(s&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?xe.from(d,xe.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{ti.headers[e]={}});const Ix=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cx=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),s=c.substring(i+1).trim(),!(!n||t[n]&&Ix[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},lm=Symbol("internals");function ni(e){return e&&String(e).trim().toLowerCase()}function Ia(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ia):String(e)}function Rx(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Ax=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Au(e,t,n,s,i){if(z.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!z.isString(t)){if(z.isString(s))return t.indexOf(s)!==-1;if(z.isRegExp(s))return s.test(t)}}function Ox(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Px(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,a,c){return this[s].call(this,t,i,a,c)},configurable:!0})})}let Wt=class{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function a(d,f,h){const g=ni(f);if(!g)throw new Error("header name must be a non-empty string");const y=z.findKey(i,g);(!y||i[y]===void 0||h===!0||h===void 0&&i[y]!==!1)&&(i[y||f]=Ia(d))}const c=(d,f)=>z.forEach(d,(h,g)=>a(h,g,f));if(z.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(z.isString(t)&&(t=t.trim())&&!Ax(t))c(Cx(t),n);else if(z.isHeaders(t))for(const[d,f]of t.entries())a(f,d,s);else t!=null&&a(n,t,s);return this}get(t,n){if(t=ni(t),t){const s=z.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return Rx(i);if(z.isFunction(n))return n.call(this,i,s);if(z.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ni(t),t){const s=z.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Au(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function a(c){if(c=ni(c),c){const d=z.findKey(s,c);d&&(!n||Au(s,s[d],d,n))&&(delete s[d],i=!0)}}return z.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const a=n[s];(!t||Au(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,s={};return z.forEach(this,(i,a)=>{const c=z.findKey(s,a);if(c){n[c]=Ia(i),delete n[a];return}const d=t?Ox(a):String(a).trim();d!==a&&delete n[a],n[d]=Ia(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&z.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[lm]=this[lm]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=ni(c);s[d]||(Px(i,c),s[d]=!0)}return z.isArray(t)?t.forEach(a):a(t),this}};Wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Wt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),z.freezeMethods(Wt);function Ou(e,t){const n=this||ti,s=t||n,i=Wt.from(s.headers);let a=s.data;return z.forEach(e,function(d){a=d.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function cm(e){return!!(e&&e.__CANCEL__)}function Vs(e,t,n){xe.call(this,e??"canceled",xe.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(Vs,xe,{__CANCEL__:!0});function um(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new xe("Request failed with status code "+n.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Nx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Mx(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,a=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),g=s[a];c||(c=h),n[i]=f,s[i]=h;let y=a,w=0;for(;y!==i;)w+=n[y++],y=y%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-c<t)return;const x=g&&h-g;return x?Math.round(w*1e3/x):void 0}}function Lx(e,t){let n=0,s=1e3/t,i,a;const c=(h,g=Date.now())=>{n=g,i=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const g=Date.now(),y=g-n;y>=s?c(h,g):(i=h,a||(a=setTimeout(()=>{a=null,c(i)},s-y)))},()=>i&&c(i)]}const Ca=(e,t,n=3)=>{let s=0;const i=Mx(50,250);return Lx(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,f=c-s,h=i(f),g=c<=d;s=c;const y={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&g?(d-c)/h:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(y)},n)},dm=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},fm=e=>(...t)=>z.asap(()=>e(...t)),jx=Rt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,Dx=Rt.hasStandardBrowserEnv?{write(e,t,n,s,i,a){const c=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),z.isString(s)&&c.push("path="+s),z.isString(i)&&c.push("domain="+i),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $x(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pm(e,t){return e&&!$x(t)?Fx(e,t):t}const hm=e=>e instanceof Wt?{...e}:e;function is(e,t){t=t||{};const n={};function s(h,g,y,w){return z.isPlainObject(h)&&z.isPlainObject(g)?z.merge.call({caseless:w},h,g):z.isPlainObject(g)?z.merge({},g):z.isArray(g)?g.slice():g}function i(h,g,y,w){if(z.isUndefined(g)){if(!z.isUndefined(h))return s(void 0,h,y,w)}else return s(h,g,y,w)}function a(h,g){if(!z.isUndefined(g))return s(void 0,g)}function c(h,g){if(z.isUndefined(g)){if(!z.isUndefined(h))return s(void 0,h)}else return s(void 0,g)}function d(h,g,y){if(y in t)return s(h,g);if(y in e)return s(void 0,h)}const f={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,g,y)=>i(hm(h),hm(g),y,!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(g){const y=f[g]||i,w=y(e[g],t[g],g);z.isUndefined(w)&&y!==d||(n[g]=w)}),n}const mm=e=>{const t=is({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=Wt.from(c),t.url=sm(pm(t.baseURL,t.url),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(z.isFormData(n)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[h,...g]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...g].join("; "))}}if(Rt.hasStandardBrowserEnv&&(s&&z.isFunction(s)&&(s=s(t)),s||s!==!1&&jx(t.url))){const h=i&&a&&Dx.read(a);h&&c.set(i,h)}return t},Bx=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=mm(e);let a=i.data;const c=Wt.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=i,g,y,w,x,_;function E(){x&&x(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function A(){if(!k)return;const j=Wt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:j,config:e,request:k};um(function(C){n(C),E()},function(C){s(C),E()},H),k=null}"onloadend"in k?k.onloadend=A:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(A)},k.onabort=function(){k&&(s(new xe("Request aborted",xe.ECONNABORTED,e,k)),k=null)},k.onerror=function(){s(new xe("Network Error",xe.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let K=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const H=i.transitional||im;i.timeoutErrorMessage&&(K=i.timeoutErrorMessage),s(new xe(K,H.clarifyTimeoutError?xe.ETIMEDOUT:xe.ECONNABORTED,e,k)),k=null},a===void 0&&c.setContentType(null),"setRequestHeader"in k&&z.forEach(c.toJSON(),function(K,H){k.setRequestHeader(H,K)}),z.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),d&&d!=="json"&&(k.responseType=i.responseType),h&&([w,_]=Ca(h,!0),k.addEventListener("progress",w)),f&&k.upload&&([y,x]=Ca(f),k.upload.addEventListener("progress",y),k.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(g=j=>{k&&(s(!j||j.type?new Vs(null,e,k):j),k.abort(),k=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const L=Nx(i.url);if(L&&Rt.protocols.indexOf(L)===-1){s(new xe("Unsupported protocol "+L+":",xe.ERR_BAD_REQUEST,e));return}k.send(a||null)})},zx=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const a=function(h){if(!i){i=!0,d();const g=h instanceof Error?h:this.reason;s.abort(g instanceof xe?g:new Vs(g instanceof Error?g.message:g))}};let c=t&&setTimeout(()=>{c=null,a(new xe(`timeout ${t} of ms exceeded`,xe.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>z.asap(d),f}},Ux=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},Hx=async function*(e,t){for await(const n of Wx(e))yield*Ux(n,t)},Wx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},gm=(e,t,n,s)=>{const i=Hx(e,t);let a=0,c,d=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:g}=await i.next();if(h){d(),f.close();return}let y=g.byteLength;if(n){let w=a+=y;n(w)}f.enqueue(new Uint8Array(g))}catch(h){throw d(h),h}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},Ra=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ym=Ra&&typeof ReadableStream=="function",qx=Ra&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vx=ym&&vm(()=>{let e=!1;const t=new Request(Rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Sm=64*1024,Pu=ym&&vm(()=>z.isReadableStream(new Response("").body)),Aa={stream:Pu&&(e=>e.body)};Ra&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Aa[t]&&(Aa[t]=z.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new xe(`Response type '${t}' is not supported`,xe.ERR_NOT_SUPPORT,s)})})})(new Response);const Gx=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(Rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await qx(e)).byteLength},Yx=async(e,t)=>{const n=z.toFiniteNumber(e.getContentLength());return n??Gx(t)},Nu={http:mx,xhr:Bx,fetch:Ra&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:g,withCredentials:y="same-origin",fetchOptions:w}=mm(e);h=h?(h+"").toLowerCase():"text";let x=zx([i,a&&a.toAbortSignal()],c),_;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let k;try{if(f&&Vx&&n!=="get"&&n!=="head"&&(k=await Yx(g,s))!==0){let H=new Request(t,{method:"POST",body:s,duplex:"half"}),O;if(z.isFormData(s)&&(O=H.headers.get("content-type"))&&g.setContentType(O),H.body){const[C,W]=dm(k,Ca(fm(f)));s=gm(H.body,Sm,C,W)}}z.isString(y)||(y=y?"include":"omit");const A="credentials"in Request.prototype;_=new Request(t,{...w,signal:x,method:n.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:A?y:void 0});let L=await fetch(_);const j=Pu&&(h==="stream"||h==="response");if(Pu&&(d||j&&E)){const H={};["status","statusText","headers"].forEach(F=>{H[F]=L[F]});const O=z.toFiniteNumber(L.headers.get("content-length")),[C,W]=d&&dm(O,Ca(fm(d),!0))||[];L=new Response(gm(L.body,Sm,C,()=>{W&&W(),E&&E()}),H)}h=h||"text";let K=await Aa[z.findKey(Aa,h)||"text"](L,e);return!j&&E&&E(),await new Promise((H,O)=>{um(H,O,{data:K,headers:Wt.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:_})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new xe("Network Error",xe.ERR_NETWORK,e,_),{cause:A.cause||A}):xe.from(A,A&&A.code,e,_)}})};z.forEach(Nu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wm=e=>`- ${e}`,Kx=e=>z.isFunction(e)||e===null||e===!1,_m={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let a=0;a<t;a++){n=e[a];let c;if(s=n,!Kx(n)&&(s=Nu[(c=String(n)).toLowerCase()],s===void 0))throw new xe(`Unknown adapter '${c}'`);if(s)break;i[c||"#"+a]=s}if(!s){const a=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=t?a.length>1?`since :
`+a.map(wm).join(`
`):" "+wm(a[0]):"as no adapter specified";throw new xe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Nu};function Mu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vs(null,e)}function Em(e){return Mu(e),e.headers=Wt.from(e.headers),e.data=Ou.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_m.getAdapter(e.adapter||ti.adapter)(e).then(function(s){return Mu(e),s.data=Ou.call(e,e.transformResponse,s),s.headers=Wt.from(s.headers),s},function(s){return cm(s)||(Mu(e),s&&s.response&&(s.response.data=Ou.call(e,e.transformResponse,s.response),s.response.headers=Wt.from(s.response.headers))),Promise.reject(s)})}const xm="1.7.9",Oa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oa[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const km={};Oa.transitional=function(t,n,s){function i(a,c){return"[Axios v"+xm+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new xe(i(c," has been removed"+(n?" in "+n:"")),xe.ERR_DEPRECATED);return n&&!km[c]&&(km[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}},Oa.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Qx(e,t,n){if(typeof e!="object")throw new xe("options must be an object",xe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const a=s[i],c=t[a];if(c){const d=e[a],f=d===void 0||c(d,a,e);if(f!==!0)throw new xe("option "+a+" must be "+f,xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xe("Unknown option "+a,xe.ERR_BAD_OPTION)}}const Pa={assertOptions:Qx,validators:Oa},$n=Pa.validators;let as=class{constructor(t){this.defaults=t,this.interceptors={request:new om,response:new om}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=is(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:a}=n;s!==void 0&&Pa.assertOptions(s,{silentJSONParsing:$n.transitional($n.boolean),forcedJSONParsing:$n.transitional($n.boolean),clarifyTimeoutError:$n.transitional($n.boolean)},!1),i!=null&&(z.isFunction(i)?n.paramsSerializer={serialize:i}:Pa.assertOptions(i,{encode:$n.function,serialize:$n.function},!0)),Pa.assertOptions(n,{baseUrl:$n.spelling("baseURL"),withXsrfToken:$n.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=a&&z.merge(a.common,a[n.method]);a&&z.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=Wt.concat(c,a);const d=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,d.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let g,y=0,w;if(!f){const _=[Em.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),w=_.length,g=Promise.resolve(n);y<w;)g=g.then(_[y++],_[y++]);return g}w=d.length;let x=n;for(y=0;y<w;){const _=d[y++],E=d[y++];try{x=_(x)}catch(k){E.call(this,k);break}}try{g=Em.call(this,x)}catch(_){return Promise.reject(_)}for(y=0,w=h.length;y<w;)g=g.then(h[y++],h[y++]);return g}getUri(t){t=is(this.defaults,t);const n=pm(t.baseURL,t.url);return sm(n,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){as.prototype[t]=function(n,s){return this.request(is(s||{},{method:t,url:n,data:(s||{}).data}))}}),z.forEach(["post","put","patch"],function(t){function n(s){return function(a,c,d){return this.request(is(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}as.prototype[t]=n(),as.prototype[t+"Form"]=n(!0)});let Xx=class yE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(i=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](i);s._listeners=null}),this.promise.then=i=>{let a;const c=new Promise(d=>{s.subscribe(d),a=d}).then(i);return c.cancel=function(){s.unsubscribe(a)},c},t(function(a,c,d){s.reason||(s.reason=new Vs(a,c,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new yE(function(i){t=i}),cancel:t}}};function Jx(e){return function(n){return e.apply(null,n)}}function Zx(e){return z.isObject(e)&&e.isAxiosError===!0}const Lu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lu).forEach(([e,t])=>{Lu[t]=e});function Tm(e){const t=new as(e),n=Uh(as.prototype.request,t);return z.extend(n,as.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Tm(is(e,i))},n}const st=Tm(ti);st.Axios=as,st.CanceledError=Vs,st.CancelToken=Xx,st.isCancel=cm,st.VERSION=xm,st.toFormData=ba,st.AxiosError=xe,st.Cancel=st.CanceledError,st.all=function(t){return Promise.all(t)},st.spread=Jx,st.isAxiosError=Zx,st.mergeConfig=is,st.AxiosHeaders=Wt,st.formToJSON=e=>am(z.isHTMLForm(e)?new FormData(e):e),st.getAdapter=_m.getAdapter,st.HttpStatusCode=Lu,st.default=st;const bm="https://api.edmap.space",ot=st.create();ot.defaults.baseURL=bm,ot.interceptors.request.use(async e=>{const t=localStorage.getItem("edmap-access-token");return e.headers.Accept="application/json",t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));const ri={},Im=async e=>(await zh(),window.location.reload(),Promise.reject(e)),Cm=async(e,t)=>{const n=e.data.accessToken,s=e.data.refreshToken;return localStorage.setItem("edmap-access-token",n),localStorage.setItem("edmap-refresh-token",s),t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${n}`,ot(t)};ot.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response.status===401,s=t._retry;if(!n||s)return Promise.reject(e);t._retry=!0;const i=localStorage.getItem("edmap-refresh-token");if(!i)return Im(e);try{if(!ri.time||Date.now()-ri.time>1e3*3){const c=st.post(`${bm}/auth/revalidate-token`,{refreshToken:i},{headers:{Authorization:`Bearer ${i}`}});ri.time=Date.now(),ri.request=c;const d=await c;return Cm(d,t)}const a=await ri.request;if(!a)throw new Error;return Cm(a,t)}catch(a){return Im(a)}});const ke=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ls="8.50.0",Me=globalThis;function Na(e,t,n){const s=Me,i=s.__SENTRY__=s.__SENTRY__||{},a=i[ls]=i[ls]||{};return a[e]||(a[e]=t())}const Sr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ek="Sentry Logger ",ju=["debug","info","warn","error","log","assert","trace"],Ma={};function wr(e){if(!("console"in Me))return e();const t=Me.console,n={},s=Object.keys(Ma);s.forEach(i=>{const a=Ma[i];n[i]=t[i],t[i]=a});try{return e()}finally{s.forEach(i=>{t[i]=n[i]})}}function tk(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Sr?ju.forEach(n=>{t[n]=(...s)=>{e&&wr(()=>{Me.console[n](`${ek}[${n}]:`,...s)})}}):ju.forEach(n=>{t[n]=()=>{}}),t}const ee=Na("logger",tk),Rm=50,cs="?",Am=/\(error: (.*)\)/,Om=/captureMessage|captureException/;function Pm(...e){const t=e.sort((n,s)=>n[0]-s[0]).map(n=>n[1]);return(n,s=0,i=0)=>{const a=[],c=n.split(`
`);for(let d=s;d<c.length;d++){const f=c[d];if(f.length>1024)continue;const h=Am.test(f)?f.replace(Am,"$1"):f;if(!h.match(/\S*Error: /)){for(const g of t){const y=g(h);if(y){a.push(y);break}}if(a.length>=Rm+i)break}}return rk(a.slice(i))}}function nk(e){return Array.isArray(e)?Pm(...e):e}function rk(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(La(t).function||"")&&t.pop(),t.reverse(),Om.test(La(t).function||"")&&(t.pop(),Om.test(La(t).function||"")&&t.pop()),t.slice(0,Rm).map(n=>({...n,filename:n.filename||La(t).filename,function:n.function||cs}))}function La(e){return e[e.length-1]||{}}const Du="<anonymous>";function er(e){try{return!e||typeof e!="function"?Du:e.name||Du}catch{return Du}}function Nm(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(s=>{s.stacktrace.frames&&n.push(...s.stacktrace.frames)}),n}catch{return}}}const ja={},Mm={};function _r(e,t){ja[e]=ja[e]||[],ja[e].push(t)}function Er(e,t){if(!Mm[e]){Mm[e]=!0;try{t()}catch(n){Sr&&ee.error(`Error while instrumenting ${e}`,n)}}}function dn(e,t){const n=e&&ja[e];if(n)for(const s of n)try{s(t)}catch(i){Sr&&ee.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${er(s)}
Error:`,i)}}let $u=null;function Lm(e){const t="error";_r(t,e),Er(t,sk)}function sk(){$u=Me.onerror,Me.onerror=function(e,t,n,s,i){return dn("error",{column:s,error:i,line:n,msg:e,url:t}),$u?$u.apply(this,arguments):!1},Me.onerror.__SENTRY_INSTRUMENTED__=!0}let Fu=null;function jm(e){const t="unhandledrejection";_r(t,e),Er(t,ok)}function ok(){Fu=Me.onunhandledrejection,Me.onunhandledrejection=function(e){return dn("unhandledrejection",e),Fu?Fu.apply(this,arguments):!0},Me.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function us(){return Bu(Me),Me}function Bu(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ls,t[ls]=t[ls]||{}}const Dm=Object.prototype.toString;function zu(e){switch(Dm.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return nr(e,Error)}}function Gs(e,t){return Dm.call(e)===`[object ${t}]`}function $m(e){return Gs(e,"ErrorEvent")}function Fm(e){return Gs(e,"DOMError")}function ik(e){return Gs(e,"DOMException")}function tr(e){return Gs(e,"String")}function Uu(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Hu(e){return e===null||Uu(e)||typeof e!="object"&&typeof e!="function"}function Ys(e){return Gs(e,"Object")}function Da(e){return typeof Event<"u"&&nr(e,Event)}function ak(e){return typeof Element<"u"&&nr(e,Element)}function lk(e){return Gs(e,"RegExp")}function $a(e){return!!(e&&e.then&&typeof e.then=="function")}function ck(e){return Ys(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function nr(e,t){try{return e instanceof t}catch{return!1}}function Bm(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Ks=Me,uk=80;function rr(e,t={}){if(!e)return"<unknown>";try{let n=e;const s=5,i=[];let a=0,c=0;const d=" > ",f=d.length;let h;const g=Array.isArray(t)?t:t.keyAttrs,y=!Array.isArray(t)&&t.maxStringLength||uk;for(;n&&a++<s&&(h=dk(n,g),!(h==="html"||a>1&&c+i.length*f+h.length>=y));)i.push(h),c+=h.length,n=n.parentNode;return i.reverse().join(d)}catch{return"<unknown>"}}function dk(e,t){const n=e,s=[];if(!n||!n.tagName)return"";if(Ks.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}s.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(i&&i.length)i.forEach(c=>{s.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&s.push(`#${n.id}`);const c=n.className;if(c&&tr(c)){const d=c.split(/\s+/);for(const f of d)s.push(`.${f}`)}}const a=["aria-label","type","name","title","alt"];for(const c of a){const d=n.getAttribute(c);d&&s.push(`[${c}="${d}"]`)}return s.join("")}function zm(){try{return Ks.document.location.href}catch{return""}}function fk(e){return Ks.document&&Ks.document.querySelector?Ks.document.querySelector(e):null}function Um(e){if(!Ks.HTMLElement)return null;let t=e;const n=5;for(let s=0;s<n;s++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Qs(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Hm(e,t){if(!Array.isArray(e))return"";const n=[];for(let s=0;s<e.length;s++){const i=e[s];try{Bm(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function pk(e,t,n=!1){return tr(e)?lk(t)?t.test(e):tr(t)?n?e===t:e.includes(t):!1:!1}function xr(e,t=[],n=!1){return t.some(s=>pk(e,s,n))}function qt(e,t,n){if(!(t in e))return;const s=e[t],i=n(s);typeof i=="function"&&Wm(i,s);try{e[t]=i}catch{Sr&&ee.log(`Failed to replace method "${t}" in object`,e)}}function fn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Sr&&ee.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Wm(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,fn(e,"__sentry_original__",t)}catch{}}function Wu(e){return e.__sentry_original__}function qm(e){if(zu(e))return{message:e.message,name:e.name,stack:e.stack,...Gm(e)};if(Da(e)){const t={type:e.type,target:Vm(e.target),currentTarget:Vm(e.currentTarget),...Gm(e)};return typeof CustomEvent<"u"&&nr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Vm(e){try{return ak(e)?rr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Gm(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function hk(e,t=40){const n=Object.keys(qm(e));n.sort();const s=n[0];if(!s)return"[object has no keys]";if(s.length>=t)return Qs(s,t);for(let i=n.length;i>0;i--){const a=n.slice(0,i).join(", ");if(!(a.length>t))return i===n.length?a:Qs(a,t)}return""}function ft(e){return qu(e,new Map)}function qu(e,t){if(mk(e)){const n=t.get(e);if(n!==void 0)return n;const s={};t.set(e,s);for(const i of Object.getOwnPropertyNames(e))typeof e[i]<"u"&&(s[i]=qu(e[i],t));return s}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const s=[];return t.set(e,s),e.forEach(i=>{s.push(qu(i,t))}),s}return e}function mk(e){if(!Ys(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Ym=1e3;function si(){return Date.now()/Ym}function gk(){const{performance:e}=Me;if(!e||!e.now)return si;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Ym}const Lt=gk(),jt=(()=>{const{performance:e}=Me;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),s=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,a=i<t,c=e.timing&&e.timing.navigationStart,f=typeof c=="number"?Math.abs(c+n-s):t,h=f<t;return a||h?i<=f?e.timeOrigin:c:s})();function rn(){const e=Me,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const s=new Uint8Array(1);return t.getRandomValues(s),s[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,s=>(s^(n()&15)>>s/4).toString(16))}function Km(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function kr(e){const{message:t,event_id:n}=e;if(t)return t;const s=Km(e);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||n||"<unknown>":n||"<unknown>"}function Vu(e,t,n){const s=e.exception=e.exception||{},i=s.values=s.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Xs(e,t){const n=Km(e);if(!n)return;const s={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...s,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Qm(e){if(yk(e))return!0;try{fn(e,"__sentry_captured__",!0)}catch{}return!1}function yk(e){try{return e.__sentry_captured__}catch{}}var sr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const s=2;e[e.REJECTED=s]="REJECTED"})(sr||(sr={}));function or(e){return new pn(t=>{t(e)})}function Fa(e){return new pn((t,n)=>{n(e)})}class pn{constructor(t){pn.prototype.__init.call(this),pn.prototype.__init2.call(this),pn.prototype.__init3.call(this),pn.prototype.__init4.call(this),this._state=sr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new pn((s,i)=>{this._handlers.push([!1,a=>{if(!t)s(a);else try{s(t(a))}catch(c){i(c)}},a=>{if(!n)i(a);else try{s(n(a))}catch(c){i(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new pn((n,s)=>{let i,a;return this.then(c=>{a=!1,i=c,t&&t()},c=>{a=!0,i=c,t&&t()}).then(()=>{if(a){s(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(sr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(sr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===sr.PENDING){if($a(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===sr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===sr.RESOLVED&&n[1](this._value),this._state===sr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function vk(e){const t=Lt(),n={sid:rn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>wk(n)};return e&&Js(n,e),n}function Js(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Lt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:rn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Sk(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Js(e,n)}function wk(e){return ft({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function Tr(){return rn()}function br(){return rn().substring(16)}function Ba(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const s={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=Ba(s[i],t[i],n-1));return s}const Gu="_sentrySpan";function oi(e,t){t?fn(e,Gu,t):delete e[Gu]}function za(e){return e[Gu]}const _k=100;class Yu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Tr(),spanId:br()}}clone(){const t=new Yu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,oi(t,za(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Js(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[s,i]=n instanceof ds?[n.getScopeData(),n.getRequestSession()]:Ys(n)?[t,t.requestSession]:[],{tags:a,extra:c,user:d,contexts:f,level:h,fingerprint:g=[],propagationContext:y}=s||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...c},this._contexts={...this._contexts,...f},d&&Object.keys(d).length&&(this._user=d),h&&(this._level=h),g.length&&(this._fingerprint=g),y&&(this._propagationContext=y),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,oi(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Tr()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const s=typeof n=="number"?n:_k;if(s<=0)return this;const i={timestamp:si(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>s?a.slice(-s):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:za(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ba(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:br(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const s=n&&n.event_id?n.event_id:rn();if(!this._client)return ee.warn("No client configured on scope - will not capture exception!"),s;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:s},this),s}captureMessage(t,n,s){const i=s&&s.event_id?s.event_id:rn();if(!this._client)return ee.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...s,event_id:i},this),i}captureEvent(t,n){const s=n&&n.event_id?n.event_id:rn();return this._client?(this._client.captureEvent(t,{...n,event_id:s},this),s):(ee.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const ds=Yu;function Ek(){return Na("defaultCurrentScope",()=>new ds)}function xk(){return Na("defaultIsolationScope",()=>new ds)}class kk{constructor(t,n){let s;t?s=t:s=new ds;let i;n?i=n:i=new ds,this._stack=[{scope:s}],this._isolationScope=i}withScope(t){const n=this._pushScope();let s;try{s=t(n)}catch(i){throw this._popScope(),i}return $a(s)?s.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Zs(){const e=us(),t=Bu(e);return t.stack=t.stack||new kk(Ek(),xk())}function Tk(e){return Zs().withScope(e)}function bk(e,t){const n=Zs();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Xm(e){return Zs().withScope(()=>e(Zs().getIsolationScope()))}function Ik(){return{withIsolationScope:Xm,withScope:Tk,withSetScope:bk,withSetIsolationScope:(e,t)=>Xm(t),getCurrentScope:()=>Zs().getScope(),getIsolationScope:()=>Zs().getIsolationScope()}}function eo(e){const t=Bu(e);return t.acs?t.acs:Ik()}function qe(){const e=us();return eo(e).getCurrentScope()}function _n(){const e=us();return eo(e).getIsolationScope()}function Ck(){return Na("globalScope",()=>new ds)}function Ku(...e){const t=us(),n=eo(t);if(e.length===2){const[s,i]=e;return s?n.withSetScope(s,i):n.withScope(i)}return n.withScope(e[0])}function Oe(){return qe().getClient()}function Rk(e){const t=e.getPropagationContext(),{traceId:n,spanId:s,parentSpanId:i}=t;return ft({trace_id:n,span_id:s,parent_span_id:i})}const Ak="_sentryMetrics";function Qu(e){const t=e[Ak];if(!t)return;const n={};for(const[,[s,i]]of t)(n[s]||(n[s]=[])).push(ft(i));return n}const Fn="sentry.source",Jm="sentry.sample_rate",fs="sentry.op",gt="sentry.origin",Xu="sentry.idle_span_finish_reason",Ua="sentry.measurement_unit",Ha="sentry.measurement_value",Zm="sentry.custom_span_name",Ok="sentry.profile_id",Ju="sentry.exclusive_time",Pk=0,eg=1,yt=2;function Nk(e){if(e<400&&e>=100)return{code:eg};if(e>=400&&e<500)switch(e){case 401:return{code:yt,message:"unauthenticated"};case 403:return{code:yt,message:"permission_denied"};case 404:return{code:yt,message:"not_found"};case 409:return{code:yt,message:"already_exists"};case 413:return{code:yt,message:"failed_precondition"};case 429:return{code:yt,message:"resource_exhausted"};case 499:return{code:yt,message:"cancelled"};default:return{code:yt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:yt,message:"unimplemented"};case 503:return{code:yt,message:"unavailable"};case 504:return{code:yt,message:"deadline_exceeded"};default:return{code:yt,message:"internal_error"}}return{code:yt,message:"unknown_error"}}function tg(e,t){e.setAttribute("http.response.status_code",t);const n=Nk(t);n.message!=="unknown_error"&&e.setStatus(n)}const Zu="sentry-",Mk=/^sentry-/,Lk=8192;function ng(e){const t=Dk(e);if(!t)return;const n=Object.entries(t).reduce((s,[i,a])=>{if(i.match(Mk)){const c=i.slice(Zu.length);s[c]=a}return s},{});if(Object.keys(n).length>0)return n}function jk(e){if(!e)return;const t=Object.entries(e).reduce((n,[s,i])=>(i&&(n[`${Zu}${s}`]=i),n),{});return $k(t)}function Dk(e){if(!(!e||!tr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const s=rg(n);return Object.entries(s).forEach(([i,a])=>{t[i]=a}),t},{}):rg(e)}function rg(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,s])=>(n&&s&&(t[n]=s),t),{})}function $k(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,s],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(s)}`,c=i===0?a:`${t},${a}`;return c.length>Lk?(Sr&&ee.warn(`Not adding key: ${n} with val: ${s} to baggage header due to exceeding baggage size limits.`),t):c},"")}const sg=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Fk(e){if(!e)return;const t=e.match(sg);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Bk(e,t){const n=Fk(e),s=ng(t);if(!n||!n.traceId)return{traceId:Tr(),spanId:br()};const{traceId:i,parentSpanId:a,parentSampled:c}=n,d=br();return{traceId:i,parentSpanId:a,spanId:d,sampled:c,dsc:s||{}}}function og(e=Tr(),t=br(),n){let s="";return n!==void 0&&(s=n?"-1":"-0"),`${e}-${t}${s}`}const ig=0,ag=1;let lg=!1;function zk(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:i,parent_span_id:a,status:c,origin:d}=Be(e);return ft({parent_span_id:a,span_id:t,trace_id:n,data:s,op:i,status:c,origin:d})}function Uk(e){const{spanId:t,traceId:n,isRemote:s}=e.spanContext(),i=s?t:Be(e).parent_span_id,a=s?br():t;return ft({parent_span_id:i,span_id:a,trace_id:n})}function Hk(e){const{traceId:t,spanId:n}=e.spanContext(),s=hs(e);return og(t,n,s)}function ps(e){return typeof e=="number"?cg(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?cg(e.getTime()):Lt()}function cg(e){return e>9999999999?e/1e3:e}function Be(e){if(qk(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Wk(e)){const{attributes:s,startTime:i,name:a,endTime:c,parentSpanId:d,status:f}=e;return ft({span_id:t,trace_id:n,data:s,description:a,parent_span_id:d,start_timestamp:ps(i),timestamp:ps(c)||void 0,status:ug(f),op:s[fs],origin:s[gt],_metrics_summary:Qu(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Wk(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function qk(e){return typeof e.getSpanJSON=="function"}function hs(e){const{traceFlags:t}=e.spanContext();return t===ag}function ug(e){if(!(!e||e.code===Pk))return e.code===eg?"ok":e.message||"unknown_error"}const ms="_sentryChildSpans",ed="_sentryRootSpan";function dg(e,t){const n=e[ed]||e;fn(t,ed,n),e[ms]?e[ms].add(t):fn(e,ms,new Set([t]))}function Vk(e,t){e[ms]&&e[ms].delete(t)}function Wa(e){const t=new Set;function n(s){if(!t.has(s)&&hs(s)){t.add(s);const i=s[ms]?Array.from(s[ms]):[];for(const a of i)n(a)}}return n(e),Array.from(t)}function Tt(e){return e[ed]||e}function vt(){const e=us(),t=eo(e);return t.getActiveSpan?t.getActiveSpan():za(qe())}function fg(){lg||(wr(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),lg=!0)}let pg=!1;function Gk(){pg||(pg=!0,Lm(td),jm(td))}function td(){const e=vt(),t=e&&Tt(e);if(t){const n="internal_error";ke&&ee.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:yt,message:n})}}td.tag="sentry_tracingErrorCallback";const hg="_sentryScope",mg="_sentryIsolationScope";function Yk(e,t,n){e&&(fn(e,mg,n),fn(e,hg,t))}function gg(e){return{scope:e[hg],isolationScope:e[mg]}}function Ir(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Oe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class to{constructor(t={}){this._traceId=t.traceId||Tr(),this._spanId=t.spanId||br()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ig}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const nd="production",yg="_frozenDsc";function vg(e,t){fn(e,yg,t)}function Sg(e,t){const n=t.getOptions(),{publicKey:s}=t.getDsn()||{},i=ft({environment:n.environment||nd,release:n.release,public_key:s,trace_id:e});return t.emit("createDsc",i),i}function wg(e,t){const n=t.getPropagationContext();return n.dsc||Sg(n.traceId,e)}function gs(e){const t=Oe();if(!t)return{};const n=Tt(e),s=n[yg];if(s)return s;const i=n.spanContext().traceState,a=i&&i.get("sentry.dsc"),c=a&&ng(a);if(c)return c;const d=Sg(e.spanContext().traceId,t),f=Be(n),h=f.data||{},g=h[Jm];g!=null&&(d.sample_rate=`${g}`);const y=h[Fn],w=f.description;return y!=="url"&&w&&(d.transaction=w),Ir()&&(d.sampled=String(hs(n))),t.emit("createDsc",d,n),d}function Kk(e){if(!ke)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:s}=Be(e),{spanId:i}=e.spanContext(),a=hs(e),c=Tt(e),d=c===e,f=`[Tracing] Starting ${a?"sampled":"unsampled"} ${d?"root ":""}span`,h=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(s&&h.push(`parent ID: ${s}`),!d){const{op:g,description:y}=Be(c);h.push(`root ID: ${c.spanContext().spanId}`),g&&h.push(`root op: ${g}`),y&&h.push(`root description: ${y}`)}ee.log(`${f}
  ${h.join(`
  `)}`)}function Qk(e){if(!ke)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Be(e),{spanId:s}=e.spanContext(),a=Tt(e)===e,c=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${s}`;ee.log(c)}function qa(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){ke&&ee.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function Xk(e,t){if(!Ir(e))return[!1];const n=_n().getScopeData().sdkProcessingMetadata.normalizedRequest,s={...t,normalizedRequest:t.normalizedRequest||n};let i;typeof e.tracesSampler=="function"?i=e.tracesSampler(s):s.parentSampled!==void 0?i=s.parentSampled:typeof e.tracesSampleRate<"u"?i=e.tracesSampleRate:i=1;const a=qa(i);return a===void 0?(ke&&ee.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):a?Math.random()<a?[!0,a]:(ke&&ee.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[!1,a]):(ke&&ee.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a])}const Jk=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Zk(e){return e==="http"||e==="https"}function ii(e,t=!1){const{host:n,path:s,pass:i,port:a,projectId:c,protocol:d,publicKey:f}=e;return`${d}://${f}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${s&&`${s}/`}${c}`}function eT(e){const t=Jk.exec(e);if(!t){wr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,s,i="",a="",c="",d=""]=t.slice(1);let f="",h=d;const g=h.split("/");if(g.length>1&&(f=g.slice(0,-1).join("/"),h=g.pop()),h){const y=h.match(/^\d+/);y&&(h=y[0])}return _g({host:a,pass:i,path:f,projectId:h,port:c,protocol:n,publicKey:s})}function _g(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tT(e){if(!Sr)return!0;const{port:t,projectId:n,protocol:s}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(ee.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?Zk(s)?t&&isNaN(parseInt(t,10))?(ee.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ee.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):(ee.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function nT(e){const t=typeof e=="string"?eT(e):_g(e);if(!(!t||!tT(t)))return t}function rT(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;a<t.length;a++)if(t[a]===i)return!0;return t.push(i),!1}function s(i){if(e)t.delete(i);else for(let a=0;a<t.length;a++)if(t[a]===i){t.splice(a,1);break}}return[n,s]}function En(e,t=100,n=1/0){try{return rd("",e,t,n)}catch(s){return{ERROR:`**non-serializable** (${s})`}}}function Eg(e,t=3,n=100*1024){const s=En(e,t);return aT(s)>n?Eg(e,t-1,n):s}function rd(e,t,n=1/0,s=1/0,i=rT()){const[a,c]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=sT(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return d.replace("object ","");if(a(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const x=h.toJSON();return rd("",x,f-1,s,i)}catch{}const g=Array.isArray(t)?[]:{};let y=0;const w=qm(t);for(const x in w){if(!Object.prototype.hasOwnProperty.call(w,x))continue;if(y>=s){g[x]="[MaxProperties ~]";break}const _=w[x];g[x]=rd(x,_,f-1,s,i),y++}return c(t),g}function sT(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Bm(t))return"[VueViewModel]";if(ck(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${er(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=oT(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function oT(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function iT(e){return~-encodeURI(e).split(/%..|./).length}function aT(e){return iT(JSON.stringify(e))}function ys(e,t=[]){return[e,t]}function lT(e,t){const[n,s]=e;return[n,[...s,t]]}function xg(e,t){const n=e[1];for(const s of n){const i=s[0].type;if(t(s,i))return!0}return!1}function sd(e){return Me.__SENTRY__&&Me.__SENTRY__.encodePolyfill?Me.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function cT(e){const[t,n]=e;let s=JSON.stringify(t);function i(a){typeof s=="string"?s=typeof a=="string"?s+a:[sd(s),a]:s.push(typeof a=="string"?sd(a):a)}for(const a of n){const[c,d]=a;if(i(`
${JSON.stringify(c)}
`),typeof d=="string"||d instanceof Uint8Array)i(d);else{let f;try{f=JSON.stringify(d)}catch{f=JSON.stringify(En(d))}i(f)}}return typeof s=="string"?s:uT(s)}function uT(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let s=0;for(const i of e)n.set(i,s),s+=i.length;return n}function dT(e){return[{type:"span"},e]}function fT(e){const t=typeof e.data=="string"?sd(e.data):e.data;return[ft({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const pT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function kg(e){return pT[e]}function od(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Tg(e,t,n,s){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&s&&{dsn:ii(s)},...i&&{trace:ft({...i})}}}function hT(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function mT(e,t,n,s){const i=od(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!s&&t&&{dsn:ii(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ys(a,[c])}function gT(e,t,n,s){const i=od(n),a=e.type&&e.type!=="replay_event"?e.type:"event";hT(e,n&&n.sdk);const c=Tg(e,i,s,t);return delete e.sdkProcessingMetadata,ys(c,[[{type:a},e]])}function yT(e,t){function n(g){return!!g.trace_id&&!!g.public_key}const s=gs(e[0]),i=t&&t.getDsn(),a=t&&t.getOptions().tunnel,c={sent_at:new Date().toISOString(),...n(s)&&{trace:s},...!!a&&i&&{dsn:ii(i)}},d=t&&t.getOptions().beforeSendSpan,f=d?g=>{const y=d(Be(g));return y||fg(),y}:g=>Be(g),h=[];for(const g of e){const y=f(g);y&&h.push(dT(y))}return ys(c,h)}function vT(e,t,n,s=vt()){const i=s&&Tt(s);i&&(ke&&ee.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Ha]:t,[Ua]:n}))}function bg(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const s=n.attributes||{},i=s[Ua],a=s[Ha];typeof i=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:i})}),t}const Ig=1e3;class id{constructor(t={}){this._traceId=t.traceId||Tr(),this._spanId=t.spanId||br(),this._startTime=t.startTimestamp||Lt(),this._attributes={},this.setAttributes({[gt]:"manual",[fs]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:s}=this;return{spanId:t,traceId:n,traceFlags:s?ag:ig}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ps(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Fn,"custom"),this}end(t){this._endTime||(this._endTime=ps(t),Qk(this),this._onSpanEnded())}getSpanJSON(){return ft({data:this._attributes,description:this._name,op:this._attributes[fs],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ug(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gt],_metrics_summary:Qu(this),profile_id:this._attributes[Ok],exclusive_time:this._attributes[Ju],measurements:bg(this._events),is_segment:this._isStandaloneSpan&&Tt(this)===this||void 0,segment_id:this._isStandaloneSpan?Tt(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,s){ke&&ee.log("[Tracing] Adding an event to span:",t);const i=Cg(n)?n:s||Lt(),a=Cg(n)?{}:n||{},c={name:t,time:ps(i),attributes:a};return this._events.push(c),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Oe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Tt(this)))return;if(this._isStandaloneSpan){this._sampled?wT(yT([this],t)):(ke&&ee.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const s=this._convertSpanToTransaction();s&&(gg(this).scope||qe()).captureEvent(s)}_convertSpanToTransaction(){if(!Rg(Be(this)))return;this._name||(ke&&ee.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=gg(this),i=(t||qe()).getClient()||Oe();if(this._sampled!==!0){ke&&ee.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const c=Wa(this).filter(y=>y!==this&&!ST(y)).map(y=>Be(y)).filter(Rg),d=this._attributes[Fn];delete this._attributes[Zm],c.forEach(y=>{y.data&&delete y.data[Zm]});const f={contexts:{trace:zk(this)},spans:c.length>Ig?c.sort((y,w)=>y.start_timestamp-w.start_timestamp).slice(0,Ig):c,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...ft({dynamicSamplingContext:gs(this)})},_metrics_summary:Qu(this),...d&&{transaction_info:{source:d}}},h=bg(this._events);return h&&Object.keys(h).length&&(ke&&ee.log("[Measurements] Adding measurements to transaction event",JSON.stringify(h,void 0,2)),f.measurements=h),f}}function Cg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Rg(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ST(e){return e instanceof id&&e.isStandaloneSpan()}function wT(e){const t=Oe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Ag="__SENTRY_SUPPRESS_TRACING__";function ai(e){const t=Pg();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=ET(e),{forceTransaction:s,parentSpan:i}=e;return(e.scope?c=>Ku(e.scope,c):i!==void 0?c=>Og(i,c):c=>c())(()=>{const c=qe(),d=kT(c);return e.onlyIfParent&&!d?new to:_T({parentSpan:d,spanArguments:n,forceTransaction:s,scope:c})})}function Og(e,t){const n=Pg();return n.withActiveSpan?n.withActiveSpan(e,t):Ku(s=>(oi(s,e||void 0),t(s)))}function _T({parentSpan:e,spanArguments:t,forceTransaction:n,scope:s}){if(!Ir())return new to;const i=_n();let a;if(e&&!n)a=xT(e,s,t),dg(e,a);else if(e){const c=gs(e),{traceId:d,spanId:f}=e.spanContext(),h=hs(e);a=Ng({traceId:d,parentSpanId:f,...t},s,h),vg(a,c)}else{const{traceId:c,dsc:d,parentSpanId:f,sampled:h}={...i.getPropagationContext(),...s.getPropagationContext()};a=Ng({traceId:c,parentSpanId:f,...t},s,h),d&&vg(a,d)}return Kk(a),Yk(a,s,i),a}function ET(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const s={...n};return s.startTimestamp=ps(e.startTime),delete s.startTime,s}return n}function Pg(){const e=us();return eo(e)}function Ng(e,t,n){const s=Oe(),i=s&&s.getOptions()||{},{name:a="",attributes:c}=e,[d,f]=t.getScopeData().sdkProcessingMetadata[Ag]?[!1]:Xk(i,{name:a,parentSampled:n,attributes:c,transactionContext:{name:a,parentSampled:n}}),h=new id({...e,attributes:{[Fn]:"custom",...e.attributes},sampled:d});return f!==void 0&&h.setAttribute(Jm,f),s&&s.emit("spanStart",h),h}function xT(e,t,n){const{spanId:s,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Ag]?!1:hs(e),c=a?new id({...n,parentSpanId:s,traceId:i,sampled:a}):new to({traceId:i});dg(e,c);const d=Oe();return d&&(d.emit("spanStart",c),n.endTimestamp&&d.emit("spanEnd",c)),c}function kT(e){const t=za(e);if(!t)return;const n=Oe();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Tt(t):t}const Va={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},TT="heartbeatFailed",bT="idleTimeout",IT="finalTimeout",CT="externalFinish";function Mg(e,t={}){const n=new Map;let s=!1,i,a=CT,c=!t.disableAutoFinish;const d=[],{idleTimeout:f=Va.idleTimeout,finalTimeout:h=Va.finalTimeout,childSpanTimeout:g=Va.childSpanTimeout,beforeSpanEnd:y}=t,w=Oe();if(!w||!Ir())return new to;const x=qe(),_=vt(),E=RT(e);E.end=new Proxy(E.end,{apply(O,C,W){y&&y(E);const[F,...U]=W,J=F||Lt(),Z=ps(J),ue=Wa(E).filter(q=>q!==E);if(!ue.length)return H(Z),Reflect.apply(O,C,[Z,...U]);const me=ue.map(q=>Be(q).timestamp).filter(q=>!!q),De=me.length?Math.max(...me):void 0,te=Be(E).start_timestamp,Se=Math.min(te?te+h/1e3:1/0,Math.max(te||-1/0,Math.min(Z,De||1/0)));return H(Se),Reflect.apply(O,C,[Se,...U])}});function k(){i&&(clearTimeout(i),i=void 0)}function A(O){k(),i=setTimeout(()=>{!s&&n.size===0&&c&&(a=bT,E.end(O))},f)}function L(O){i=setTimeout(()=>{!s&&c&&(a=TT,E.end(O))},g)}function j(O){k(),n.set(O,!0);const C=Lt();L(C+g/1e3)}function K(O){if(n.has(O)&&n.delete(O),n.size===0){const C=Lt();A(C+f/1e3)}}function H(O){s=!0,n.clear(),d.forEach(Z=>Z()),oi(x,_);const C=Be(E),{start_timestamp:W}=C;if(!W)return;(C.data||{})[Xu]||E.setAttribute(Xu,a),ee.log(`[Tracing] Idle span "${C.op}" finished`);const U=Wa(E).filter(Z=>Z!==E);let J=0;U.forEach(Z=>{Z.isRecording()&&(Z.setStatus({code:yt,message:"cancelled"}),Z.end(O),ke&&ee.log("[Tracing] Cancelling span since span ended early",JSON.stringify(Z,void 0,2)));const ue=Be(Z),{timestamp:me=0,start_timestamp:De=0}=ue,te=De<=O,Se=(h+f)/1e3,q=me-De<=Se;if(ke){const oe=JSON.stringify(Z,void 0,2);te?q||ee.log("[Tracing] Discarding span since it finished after idle span final timeout",oe):ee.log("[Tracing] Discarding span since it happened after idle span was finished",oe)}(!q||!te)&&(Vk(E,Z),J++)}),J>0&&E.setAttribute("sentry.idle_span_discarded_spans",J)}return d.push(w.on("spanStart",O=>{if(s||O===E||Be(O).timestamp)return;Wa(E).includes(O)&&j(O.spanContext().spanId)})),d.push(w.on("spanEnd",O=>{s||K(O.spanContext().spanId)})),d.push(w.on("idleSpanEnableAutoFinish",O=>{O===E&&(c=!0,A(),n.size&&L())})),t.disableAutoFinish||A(),setTimeout(()=>{s||(E.setStatus({code:yt,message:"deadline_exceeded"}),a=IT,E.end())},h),E}function RT(e){const t=ai(e);return oi(qe(),t),ke&&ee.log("[Tracing] Started span is an idle span"),t}function ad(e,t,n,s=0){return new pn((i,a)=>{const c=e[s];if(t===null||typeof c!="function")i(t);else{const d=c({...t},n);ke&&c.id&&d===null&&ee.log(`Event processor "${c.id}" dropped event`),$a(d)?d.then(f=>ad(e,f,n,s+1).then(i)).then(null,a):ad(e,d,n,s+1).then(i).then(null,a)}})}let Ga,Lg,Ya;function AT(e){const t=Me._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ya&&n.length===Lg||(Lg=n.length,Ya=n.reduce((s,i)=>{Ga||(Ga={});const a=Ga[i];if(a)s[a[0]]=a[1];else{const c=e(i);for(let d=c.length-1;d>=0;d--){const f=c[d],h=f&&f.filename,g=t[i];if(h&&g){s[h]=g,Ga[i]=[h,g];break}}}return s},{})),Ya}function OT(e,t){const{fingerprint:n,span:s,breadcrumbs:i,sdkProcessingMetadata:a}=t;PT(e,t),s&&LT(e,s),jT(e,n),NT(e,i),MT(e,a)}function jg(e,t){const{extra:n,tags:s,user:i,contexts:a,level:c,sdkProcessingMetadata:d,breadcrumbs:f,fingerprint:h,eventProcessors:g,attachments:y,propagationContext:w,transactionName:x,span:_}=t;Ka(e,"extra",n),Ka(e,"tags",s),Ka(e,"user",i),Ka(e,"contexts",a),e.sdkProcessingMetadata=Ba(e.sdkProcessingMetadata,d,2),c&&(e.level=c),x&&(e.transactionName=x),_&&(e.span=_),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),g.length&&(e.eventProcessors=[...e.eventProcessors,...g]),y.length&&(e.attachments=[...e.attachments,...y]),e.propagationContext={...e.propagationContext,...w}}function Ka(e,t,n){e[t]=Ba(e[t],n,1)}function PT(e,t){const{extra:n,tags:s,user:i,contexts:a,level:c,transactionName:d}=t,f=ft(n);f&&Object.keys(f).length&&(e.extra={...f,...e.extra});const h=ft(s);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const g=ft(i);g&&Object.keys(g).length&&(e.user={...g,...e.user});const y=ft(a);y&&Object.keys(y).length&&(e.contexts={...y,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function NT(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function MT(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function LT(e,t){e.contexts={trace:Uk(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:gs(t),...e.sdkProcessingMetadata};const n=Tt(t),s=Be(n).description;s&&!e.transaction&&e.type==="transaction"&&(e.transaction=s)}function jT(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Dg(e,t,n,s,i,a){const{normalizeDepth:c=3,normalizeMaxBreadth:d=1e3}=e,f={...t,event_id:t.event_id||n.event_id||rn(),timestamp:t.timestamp||si()},h=n.integrations||e.integrations.map(k=>k.name);DT(f,e),BT(f,h),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&$T(f,e.stackParser);const g=UT(s,n.captureContext);n.mechanism&&Xs(f,n.mechanism);const y=i?i.getEventProcessors():[],w=Ck().getScopeData();if(a){const k=a.getScopeData();jg(w,k)}if(g){const k=g.getScopeData();jg(w,k)}const x=[...n.attachments||[],...w.attachments];x.length&&(n.attachments=x),OT(f,w);const _=[...y,...w.eventProcessors];return ad(_,f,n).then(k=>(k&&FT(k),typeof c=="number"&&c>0?zT(k,c,d):k))}function DT(e,t){const{environment:n,release:s,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||nd,!e.release&&s&&(e.release=s),!e.dist&&i&&(e.dist=i),e.message&&(e.message=Qs(e.message,a));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=Qs(c.value,a));const d=e.request;d&&d.url&&(d.url=Qs(d.url,a))}function $T(e,t){const n=AT(t);try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(i=>{n&&i.filename&&(i.debug_id=n[i.filename])})})}catch{}}function FT(e){const t={};try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,i])=>{n.push({type:"sourcemap",code_file:s,debug_id:i})})}function BT(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function zT(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:En(i.data,t,n)}}))},...e.user&&{user:En(e.user,t,n)},...e.contexts&&{contexts:En(e.contexts,t,n)},...e.extra&&{extra:En(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=En(e.contexts.trace.data,t,n))),e.spans&&(s.spans=e.spans.map(i=>({...i,...i.data&&{data:En(i.data,t,n)}}))),e.contexts&&e.contexts.flags&&s.contexts&&(s.contexts.flags=En(e.contexts.flags,3,n)),s}function UT(e,t){if(!t)return e;const n=e?e.clone():new ds;return n.update(t),n}function O8(e){}function xn(e,t){return qe().captureException(e,void 0)}function $g(e,t){return qe().captureEvent(e,t)}function Fg(e,t){_n().setContext(e,t)}function HT(){const e=Oe();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function WT(e){_n().addEventProcessor(e)}function Bg(e){const t=Oe(),n=_n(),s=qe(),{release:i,environment:a=nd}=t&&t.getOptions()||{},{userAgent:c}=Me.navigator||{},d=vk({release:i,environment:a,user:s.getUser()||n.getUser(),...c&&{userAgent:c},...e}),f=n.getSession();return f&&f.status==="ok"&&Js(f,{status:"exited"}),zg(),n.setSession(d),s.setSession(d),d}function zg(){const e=_n(),t=qe(),n=t.getSession()||e.getSession();n&&Sk(n),Ug(),e.setSession(),t.setSession()}function Ug(){const e=_n(),t=qe(),n=Oe(),s=t.getSession()||e.getSession();s&&n&&n.captureSession(s)}function Hg(e=!1){if(e){zg();return}Ug()}const qT="7";function VT(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function GT(e){return`${VT(e)}${e.projectId}/envelope/`}function YT(e,t){const n={sentry_version:qT};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function KT(e,t,n){return t||`${GT(e)}?${YT(e,n)}`}const Wg=[];function QT(e){const t={};return e.forEach(n=>{const{name:s}=n,i=t[s];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[s]=n)}),Object.values(t)}function XT(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(c=>{c.isDefaultInstance=!0});let s;if(Array.isArray(n))s=[...t,...n];else if(typeof n=="function"){const c=n(t);s=Array.isArray(c)?c:[c]}else s=t;const i=QT(s),a=i.findIndex(c=>c.name==="Debug");if(a>-1){const[c]=i.splice(a,1);i.push(c)}return i}function JT(e,t){const n={};return t.forEach(s=>{s&&Vg(e,s,n)}),n}function qg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Vg(e,t,n){if(n[t.name]){ke&&ee.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Wg.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Wg.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const s=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>s(i,a,e))}if(typeof t.processEvent=="function"){const s=t.processEvent.bind(t),i=Object.assign((a,c)=>s(a,c,e),{id:t.name});e.addEventProcessor(i)}ke&&ee.log(`Integration installed: ${t.name}`)}function P8(e){return e}function ZT(e,t,n){const s=[{type:"client_report"},{timestamp:si(),discarded_events:e}];return ys(t?{dsn:t}:{},[s])}class Bn extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const Gg="Not capturing exception because it's already been captured.";class eb{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=nT(t.dsn):ke&&ee.warn("No DSN provided, client will not send events."),this._dsn){const i=KT(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:i})}const s=["enableTracing","tracesSampleRate","tracesSampler"].find(i=>i in t&&t[i]==null);s&&wr(()=>{console.warn(`[Sentry] Deprecation warning: \`${s}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,s){const i=rn();if(Qm(t))return ke&&ee.log(Gg),i;const a={event_id:i,...n};return this._process(this.eventFromException(t,a).then(c=>this._captureEvent(c,a,s))),a.event_id}captureMessage(t,n,s,i){const a={event_id:rn(),...s},c=Uu(t)?t:String(t),d=Hu(t)?this.eventFromMessage(c,n,a):this.eventFromException(t,a);return this._process(d.then(f=>this._captureEvent(f,a,i))),a.event_id}captureEvent(t,n,s){const i=rn();if(n&&n.originalException&&Qm(n.originalException))return ke&&ee.log(Gg),i;const a={event_id:i,...n},d=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,d||s)),a.event_id}captureSession(t){typeof t.release!="string"?ke&&ee.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Js(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(s=>n.flush(t).then(i=>s&&i))):or(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Vg(this,t,this._integrations),n||qg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let s=gT(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])s=lT(s,fT(a));const i=this.sendEnvelope(s);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=mT(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,s){if(this._options.sendClientReports){const i=typeof s=="number"?s:1,a=`${t}:${n}`;ke&&ee.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}on(t,n){const s=this._hooks[t]=this._hooks[t]||[];return s.push(n),()=>{const i=s.indexOf(n);i>-1&&s.splice(i,1)}}emit(t,...n){const s=this._hooks[t];s&&s.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(ke&&ee.error("Error while sending envelope:",n),n)):(ke&&ee.error("Transport disabled"),or({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=JT(this,t),qg(this,t)}_updateSessionFromEvent(t,n){let s=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const f of a){const h=f.mechanism;if(h&&h.handled===!1){s=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&s)&&(Js(t,{...s&&{status:"crashed"},errors:t.errors||Number(i||s)}),this.captureSession(t))}_isClientDoneProcessing(t){return new pn(n=>{let s=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(s+=i,t&&s>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,s=qe(),i=_n()){const a=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),Dg(a,t,n,s,this,i).then(d=>{if(d===null)return d;d.contexts={trace:Rk(s),...d.contexts};const f=wg(this,s);return d.sdkProcessingMetadata={dynamicSamplingContext:f,...d.sdkProcessingMetadata},d})}_captureEvent(t,n={},s){return this._processEvent(t,n,s).then(i=>i.event_id,i=>{if(ke){const a=i;a.logLevel==="log"?ee.log(a.message):ee.warn(a)}})}_processEvent(t,n,s){const i=this.getOptions(),{sampleRate:a}=i,c=Kg(t),d=Yg(t),f=t.type||"error",h=`before send for type \`${f}\``,g=typeof a>"u"?void 0:qa(a);if(d&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error",t),Fa(new Bn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const y=f==="replay_event"?"replay":f,x=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,s,x).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",y,t),new Bn("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return _;const k=nb(this,i,_,n);return tb(k,h)}).then(_=>{if(_===null){if(this.recordDroppedEvent("before_send",y,t),c){const L=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",L)}throw new Bn(`${h} returned \`null\`, will not send event.`,"log")}const E=s&&s.getSession();if(!c&&E&&this._updateSessionFromEvent(E,_),c){const A=_.sdkProcessingMetadata&&_.sdkProcessingMetadata.spanCountBeforeProcessing||0,L=_.spans?_.spans.length:0,j=A-L;j>0&&this.recordDroppedEvent("before_send","span",j)}const k=_.transaction_info;if(c&&k&&_.transaction!==t.transaction){const A="custom";_.transaction_info={...k,source:A}}return this.sendEvent(_,n),_}).then(null,_=>{throw _ instanceof Bn?_:(this.captureException(_,{data:{__sentry__:!0},originalException:_}),new Bn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${_}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,s])=>{const[i,a]=n.split(":");return{reason:i,category:a,quantity:s}})}_flushOutcomes(){ke&&ee.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){ke&&ee.log("No outcomes to send");return}if(!this._dsn){ke&&ee.log("No dsn provided, will not send outcomes");return}ke&&ee.log("Sending outcomes:",t);const n=ZT(t,this._options.tunnel&&ii(this._dsn));this.sendEnvelope(n)}}function tb(e,t){const n=`${t} must return \`null\` or a valid event.`;if($a(e))return e.then(s=>{if(!Ys(s)&&s!==null)throw new Bn(n);return s},s=>{throw new Bn(`${t} rejected with ${s}`)});if(!Ys(e)&&e!==null)throw new Bn(n);return e}function nb(e,t,n,s){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:c}=t;if(Yg(n)&&i)return i(n,s);if(Kg(n)){if(n.spans&&c){const d=[];for(const f of n.spans){const h=c(f);h?d.push(h):(fg(),e.recordDroppedEvent("before_send","span"))}n.spans=d}if(a){if(n.spans){const d=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return a(n,s)}}return n}function Yg(e){return e.type===void 0}function Kg(e){return e.type==="transaction"}function rb(e,t){t.debug===!0&&(ke?ee.enable():wr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),qe().update(t.initialScope);const s=new e(t);return sb(s),s.init(),s}function sb(e){qe().setClient(e)}function ob(e){const t=[];function n(){return e===void 0||t.length<e}function s(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function i(c){if(!n())return Fa(new Bn("Not adding Promise because buffer limit was reached."));const d=c();return t.indexOf(d)===-1&&t.push(d),d.then(()=>s(d)).then(null,()=>s(d).then(null,()=>{})),d}function a(c){return new pn((d,f)=>{let h=t.length;if(!h)return d(!0);const g=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(y=>{or(y).then(()=>{--h||(clearTimeout(g),d(!0))},f)})})}return{$:t,add:i,drain:a}}const ib=60*1e3;function ab(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const s=Date.parse(`${e}`);return isNaN(s)?ib:s-t}function lb(e,t){return e[t]||e.all||0}function Qg(e,t,n=Date.now()){return lb(e,t)>n}function Xg(e,{statusCode:t,headers:n},s=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(a)for(const d of a.trim().split(",")){const[f,h,,,g]=d.split(":",5),y=parseInt(f,10),w=(isNaN(y)?60:y)*1e3;if(!h)i.all=s+w;else for(const x of h.split(";"))x==="metric_bucket"?(!g||g.split(";").includes("custom"))&&(i[x]=s+w):i[x]=s+w}else c?i.all=s+ab(c,s):t===429&&(i.all=s+60*1e3);return i}const cb=64;function ub(e,t,n=ob(e.bufferSize||cb)){let s={};const i=c=>n.drain(c);function a(c){const d=[];if(xg(c,(y,w)=>{const x=kg(w);if(Qg(s,x)){const _=Jg(y,w);e.recordDroppedEvent("ratelimit_backoff",x,_)}else d.push(y)}),d.length===0)return or({});const f=ys(c[0],d),h=y=>{xg(f,(w,x)=>{const _=Jg(w,x);e.recordDroppedEvent(y,kg(x),_)})},g=()=>t({body:cT(f)}).then(y=>(y.statusCode!==void 0&&(y.statusCode<200||y.statusCode>=300)&&ke&&ee.warn(`Sentry responded with status code ${y.statusCode} to sent event.`),s=Xg(s,y),y),y=>{throw h("network_error"),y});return n.add(g).then(y=>y,y=>{if(y instanceof Bn)return ke&&ee.error("Skipped sending event because buffer is full."),h("queue_overflow"),or({});throw y})}return{send:a,flush:i}}function Jg(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function db(e,t){const n=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return pb(e,n)||fb(e,s)}function fb(e,t){return t?Zg(e)===Zg(t):!1}function pb(e,t){return t?e.includes(t.host):!1}function Zg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function ey(e,t,n=[t],s="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${s}:@sentry/${a}`,version:ls})),version:ls}),e._metadata=i}function ty(e={}){const t=Oe();if(!HT()||!t)return{};const n=us(),s=eo(n);if(s.getTraceData)return s.getTraceData(e);const i=qe(),a=e.span||vt(),c=a?Hk(a):hb(i),d=a?gs(a):wg(t,i),f=jk(d);return sg.test(c)?{"sentry-trace":c,baggage:f}:(ee.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function hb(e){const{traceId:t,sampled:n,spanId:s}=e.getPropagationContext();return og(t,s,n)}const mb=100;function Cr(e,t){const n=Oe(),s=_n();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=mb}=n.getOptions();if(a<=0)return;const d={timestamp:si(),...e},f=i?wr(()=>i(d,t)):d;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),s.addBreadcrumb(f,a))}let ny;const gb="FunctionToString",ry=new WeakMap,yb=()=>({name:gb,setupOnce(){ny=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Wu(this),n=ry.has(Oe())&&t!==void 0?t:this;return ny.apply(n,e)}}catch{}},setup(e){ry.set(e,!0)}}),vb=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Sb="InboundFilters",wb=(e={})=>({name:Sb,processEvent(t,n,s){const i=s.getOptions(),a=_b(e,i);return Eb(t,a)?null:t}});function _b(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:vb],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Eb(e,t){return t.ignoreInternal&&Cb(e)?(ke&&ee.warn(`Event dropped due to being internal Sentry Error.
Event: ${kr(e)}`),!0):xb(e,t.ignoreErrors)?(ke&&ee.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${kr(e)}`),!0):Ab(e)?(ke&&ee.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${kr(e)}`),!0):kb(e,t.ignoreTransactions)?(ke&&ee.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${kr(e)}`),!0):Tb(e,t.denyUrls)?(ke&&ee.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${kr(e)}.
Url: ${Qa(e)}`),!0):bb(e,t.allowUrls)?!1:(ke&&ee.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${kr(e)}.
Url: ${Qa(e)}`),!0)}function xb(e,t){return e.type||!t||!t.length?!1:Ib(e).some(n=>xr(n,t))}function kb(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?xr(n,t):!1}function Tb(e,t){if(!t||!t.length)return!1;const n=Qa(e);return n?xr(n,t):!1}function bb(e,t){if(!t||!t.length)return!0;const n=Qa(e);return n?xr(n,t):!0}function Ib(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Cb(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Rb(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Qa(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Rb(t):null}catch{return ke&&ee.error(`Cannot extract url for event ${kr(e)}`),null}}function Ab(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function Ob(e,t,n=250,s,i,a,c){if(!a.exception||!a.exception.values||!c||!nr(c.originalException,Error))return;const d=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;d&&(a.exception.values=Pb(ld(e,t,i,c.originalException,s,a.exception.values,d,0),n))}function ld(e,t,n,s,i,a,c,d){if(a.length>=n+1)return a;let f=[...a];if(nr(s[i],Error)){sy(c,d);const h=e(t,s[i]),g=f.length;oy(h,i,g,d),f=ld(e,t,n,s[i],i,[h,...f],h,g)}return Array.isArray(s.errors)&&s.errors.forEach((h,g)=>{if(nr(h,Error)){sy(c,d);const y=e(t,h),w=f.length;oy(y,`errors[${g}]`,w,d),f=ld(e,t,n,h,i,[y,...f],y,w)}}),f}function sy(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function oy(e,t,n,s){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:s}}function Pb(e,t){return e.map(n=>(n.value&&(n.value=Qs(n.value,t)),n))}function vs(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",s=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:s,relative:t[5]+n+s}}function Nb(e){const t="console";_r(t,e),Er(t,Mb)}function Mb(){"console"in Me&&ju.forEach(function(e){e in Me.console&&qt(Me.console,e,function(t){return Ma[e]=t,function(...n){dn("console",{args:n,level:e});const i=Ma[e];i&&i.apply(Me.console,n)}})})}function iy(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Lb="Dedupe",jb=()=>{let e;return{name:Lb,processEvent(t){if(t.type)return t;try{if(Db(t,e))return ke&&ee.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Db(e,t){return t?!!($b(e,t)||Fb(e,t)):!1}function $b(e,t){const n=e.message,s=t.message;return!(!n&&!s||n&&!s||!n&&s||n!==s||!ly(e,t)||!ay(e,t))}function Fb(e,t){const n=cy(t),s=cy(e);return!(!n||!s||n.type!==s.type||n.value!==s.value||!ly(e,t)||!ay(e,t))}function ay(e,t){let n=Nm(e),s=Nm(t);if(!n&&!s)return!0;if(n&&!s||!n&&s||(n=n,s=s,s.length!==n.length))return!1;for(let i=0;i<s.length;i++){const a=s[i],c=n[i];if(a.filename!==c.filename||a.lineno!==c.lineno||a.colno!==c.colno||a.function!==c.function)return!1}return!0}function ly(e,t){let n=e.fingerprint,s=t.fingerprint;if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;n=n,s=s;try{return n.join("")===s.join("")}catch{return!1}}function cy(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Bb(e,t,n,s,i="auto.http.browser"){if(!e.fetchData)return;const a=Ir()&&t(e.fetchData.url);if(e.endTimestamp&&a){const w=e.fetchData.__span;if(!w)return;const x=s[w];x&&(Hb(x,e),delete s[w]);return}const{method:c,url:d}=e.fetchData,f=Ub(d),h=f?vs(f).host:void 0,g=!!vt(),y=a&&g?ai({name:`${c} ${d}`,attributes:{url:d,type:"fetch","http.method":c,"http.url":f,"server.address":h,[gt]:i,[fs]:"http.client"}}):new to;if(e.fetchData.__span=y.spanContext().spanId,s[y.spanContext().spanId]=y,n(e.fetchData.url)){const w=e.args[0],x=e.args[1]||{},_=zb(w,x,Ir()&&g?y:void 0);_&&(e.args[1]=x,x.headers=_)}return y}function zb(e,t,n){const s=ty({span:n}),i=s["sentry-trace"],a=s.baggage;if(!i)return;const c=t.headers||(Wb(e)?e.headers:void 0);if(c)if(qb(c)){const d=new Headers(c);if(d.set("sentry-trace",i),a){const f=d.get("baggage");if(f){const h=Xa(f);d.set("baggage",h?`${h},${a}`:a)}else d.set("baggage",a)}return d}else if(Array.isArray(c)){const d=[...c.filter(f=>!(Array.isArray(f)&&f[0]==="sentry-trace")).map(f=>{if(Array.isArray(f)&&f[0]==="baggage"&&typeof f[1]=="string"){const[h,g,...y]=f;return[h,Xa(g),...y]}else return f}),["sentry-trace",i]];return a&&d.push(["baggage",a]),d}else{const d="baggage"in c?c.baggage:void 0;let f=[];return Array.isArray(d)?f=d.map(h=>typeof h=="string"?Xa(h):h).filter(h=>h===""):d&&f.push(Xa(d)),a&&f.push(a),{...c,"sentry-trace":i,baggage:f.length>0?f.join(","):void 0}}else return{...s}}function Ub(e){try{return new URL(e).href}catch{return}}function Hb(e,t){if(t.response){tg(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const s=parseInt(n);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:yt,message:"internal_error"});e.end()}function Xa(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(Zu)).join(",")}function Wb(e){return typeof Request<"u"&&nr(e,Request)}function qb(e){return typeof Headers<"u"&&nr(e,Headers)}function uy(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const cd=Me;function dy(){if(!("fetch"in cd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ud(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Vb(){if(typeof EdgeRuntime=="string")return!0;if(!dy())return!1;if(ud(cd.fetch))return!0;let e=!1;const t=cd.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ud(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Sr&&ee.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function fy(e,t){const n="fetch";_r(n,e),Er(n,()=>py(void 0,t))}function Gb(e){const t="fetch-body-resolved";_r(t,e),Er(t,()=>py(Kb))}function py(e,t=!1){t&&!Vb()||qt(Me,"fetch",function(n){return function(...s){const i=new Error,{method:a,url:c}=Qb(s),d={args:s,fetchData:{method:a,url:c},startTimestamp:Lt()*1e3,virtualError:i};return e||dn("fetch",{...d}),n.apply(Me,s).then(async f=>(e?e(f):dn("fetch",{...d,endTimestamp:Lt()*1e3,response:f}),f),f=>{throw dn("fetch",{...d,endTimestamp:Lt()*1e3,error:f}),zu(f)&&f.stack===void 0&&(f.stack=i.stack,fn(f,"framesToPop",1)),f})}})}async function Yb(e,t){if(e&&e.body){const n=e.body,s=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let c;try{c=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:d}=await s.read();clearTimeout(c),d&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(c)}}clearTimeout(i),s.releaseLock(),n.cancel().then(null,()=>{})}}function Kb(e){let t;try{t=e.clone()}catch{return}Yb(t,()=>{dn("fetch-body-resolved",{endTimestamp:Lt()*1e3,response:e})})}function dd(e,t){return!!e&&typeof e=="object"&&!!e[t]}function hy(e){return typeof e=="string"?e:e?dd(e,"url")?e.url:e.toString?e.toString():"":""}function Qb(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,s]=e;return{url:hy(n),method:dd(s,"method")?String(s.method).toUpperCase():"GET"}}const t=e[0];return{url:hy(t),method:dd(t,"method")?String(t.method).toUpperCase():"GET"}}function Xb(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Jb(){return"npm"}function Zb(){return!Xb()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function my(){return typeof window<"u"&&(!Zb()||eI())}function eI(){const e=Me.process;return!!e&&e.type==="renderer"}const Ja=Me;function tI(){const e=Ja.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ja&&!!Ja.history.pushState&&!!Ja.history.replaceState;return!t&&n}function nI(e,t){return e??t()}function Za(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}const _e=Me;let fd=0;function gy(){return fd>0}function rI(){fd++,setTimeout(()=>{fd--})}function no(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Wu(e))return e}catch{return e}const s=function(...i){try{const a=i.map(c=>no(c,t));return e.apply(this,a)}catch(a){throw rI(),Ku(c=>{c.addEventProcessor(d=>(t.mechanism&&(Vu(d,void 0),Xs(d,t.mechanism)),d.extra={...d.extra,arguments:i},d)),xn(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=e[i])}catch{}Wm(s,e),fn(e,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get(){return e.name}})}catch{}return s}const zn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function pd(e,t){const n=md(e,t),s={type:lI(t),value:cI(t)};return n.length&&(s.stacktrace={frames:n}),s.type===void 0&&s.value===""&&(s.value="Unrecoverable error caught"),s}function sI(e,t,n,s){const i=Oe(),a=i&&i.getOptions().normalizeDepth,c=hI(t),d={__serialized__:Eg(t,a)};if(c)return{exception:{values:[pd(e,c)]},extra:d};const f={exception:{values:[{type:Da(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:fI(t,{isUnhandledRejection:s})}]},extra:d};if(n){const h=md(e,n);h.length&&(f.exception.values[0].stacktrace={frames:h})}return f}function hd(e,t){return{exception:{values:[pd(e,t)]}}}function md(e,t){const n=t.stacktrace||t.stack||"",s=iI(t),i=aI(t);try{return e(n,s,i)}catch{}return[]}const oI=/Minified React error #\d+;/i;function iI(e){return e&&oI.test(e.message)?1:0}function aI(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function yy(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function lI(e){const t=e&&e.name;return!t&&yy(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function cI(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:yy(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function uI(e,t,n,s){const i=n&&n.syntheticException||void 0,a=gd(e,t,i,s);return Xs(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),or(a)}function dI(e,t,n="info",s,i){const a=s&&s.syntheticException||void 0,c=yd(e,t,a,i);return c.level=n,s&&s.event_id&&(c.event_id=s.event_id),or(c)}function gd(e,t,n,s,i){let a;if($m(t)&&t.error)return hd(e,t.error);if(Fm(t)||ik(t)){const c=t;if("stack"in t)a=hd(e,t);else{const d=c.name||(Fm(c)?"DOMError":"DOMException"),f=c.message?`${d}: ${c.message}`:d;a=yd(e,f,n,s),Vu(a,f)}return"code"in c&&(a.tags={...a.tags,"DOMException.code":`${c.code}`}),a}return zu(t)?hd(e,t):Ys(t)||Da(t)?(a=sI(e,t,n,i),Xs(a,{synthetic:!0}),a):(a=yd(e,t,n,s),Vu(a,`${t}`),Xs(a,{synthetic:!0}),a)}function yd(e,t,n,s){const i={};if(s&&n){const a=md(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),Xs(i,{synthetic:!0})}if(Uu(t)){const{__sentry_template_string__:a,__sentry_template_values__:c}=t;return i.logentry={message:a,params:c},i}return i.message=t,i}function fI(e,{isUnhandledRejection:t}){const n=hk(e),s=t?"promise rejection":"exception";return $m(e)?`Event \`ErrorEvent\` captured as ${s} with message \`${e.message}\``:Da(e)?`Event \`${pI(e)}\` (type=${e.type}) captured as ${s}`:`Object captured as ${s} with keys: ${n}`}function pI(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function hI(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function mI(e,{metadata:t,tunnel:n,dsn:s}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!s&&{dsn:ii(s)}},a=gI(e);return ys(i,[a])}function gI(e){return[{type:"user_report"},e]}class yI extends eb{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},s=_e.SENTRY_SDK_SOURCE||Jb();ey(n,"browser",["browser"],s),super(n),n.sendClientReports&&_e.document&&_e.document.addEventListener("visibilitychange",()=>{_e.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return uI(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",s){return dI(this._options.stackParser,t,n,s,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){zn&&ee.warn("SDK not enabled, will not capture user feedback.");return}const n=mI(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,s)}}const vd=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vI=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ro=(e,t,n,s)=>{let i,a;return c=>{t.value>=0&&(c||s)&&(a=t.value-(i||0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=vI(t.value,n),e(t)))}},pe=Me,SI=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,li=(e=!0)=>{const t=pe.performance&&pe.performance.getEntriesByType&&pe.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ci=()=>{const e=li();return e&&e.activationStart||0},so=(e,t)=>{const n=li();let s="navigate";return n&&(pe.document&&pe.document.prerendering||ci()>0?s="prerender":pe.document&&pe.document.wasDiscarded?s="restore":n.type&&(s=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:SI(),navigationType:s}},Ss=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const s=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return s.observe(Object.assign({type:e,buffered:!0},n||{})),s}}catch{}},oo=e=>{const t=n=>{(n.type==="pagehide"||pe.document&&pe.document.visibilityState==="hidden")&&e(n)};pe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},el=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ui=-1;const wI=()=>pe.document.visibilityState==="hidden"&&!pe.document.prerendering?0:1/0,tl=e=>{pe.document.visibilityState==="hidden"&&ui>-1&&(ui=e.type==="visibilitychange"?e.timeStamp:0,EI())},_I=()=>{addEventListener("visibilitychange",tl,!0),addEventListener("prerenderingchange",tl,!0)},EI=()=>{removeEventListener("visibilitychange",tl,!0),removeEventListener("prerenderingchange",tl,!0)},nl=()=>(pe.document&&ui<0&&(ui=wI(),_I()),{get firstHiddenTime(){return ui}}),di=e=>{pe.document&&pe.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},xI=[1800,3e3],kI=(e,t={})=>{di(()=>{const n=nl(),s=so("FCP");let i;const c=Ss("paint",d=>{d.forEach(f=>{f.name==="first-contentful-paint"&&(c.disconnect(),f.startTime<n.firstHiddenTime&&(s.value=Math.max(f.startTime-ci(),0),s.entries.push(f),i(!0)))})});c&&(i=ro(e,s,xI,t.reportAllChanges))})},TI=[.1,.25],bI=(e,t={})=>{kI(el(()=>{const n=so("CLS",0);let s,i=0,a=[];const c=f=>{f.forEach(h=>{if(!h.hadRecentInput){const g=a[0],y=a[a.length-1];i&&g&&y&&h.startTime-y.startTime<1e3&&h.startTime-g.startTime<5e3?(i+=h.value,a.push(h)):(i=h.value,a=[h])}}),i>n.value&&(n.value=i,n.entries=a,s())},d=Ss("layout-shift",c);d&&(s=ro(e,n,TI,t.reportAllChanges),oo(()=>{c(d.takeRecords()),s(!0)}),setTimeout(s,0))}))},II=[100,300],CI=(e,t={})=>{di(()=>{const n=nl(),s=so("FID");let i;const a=f=>{f.startTime<n.firstHiddenTime&&(s.value=f.processingStart-f.startTime,s.entries.push(f),i(!0))},c=f=>{f.forEach(a)},d=Ss("first-input",c);i=ro(e,s,II,t.reportAllChanges),d&&oo(el(()=>{c(d.takeRecords()),d.disconnect()}))})};let vy=0,Sd=1/0,rl=0;const RI=e=>{e.forEach(t=>{t.interactionId&&(Sd=Math.min(Sd,t.interactionId),rl=Math.max(rl,t.interactionId),vy=rl?(rl-Sd)/7+1:0)})};let wd;const AI=()=>wd?vy:performance.interactionCount||0,OI=()=>{"interactionCount"in performance||wd||(wd=Ss("event",RI,{type:"event",buffered:!0,durationThreshold:0}))},ir=[],_d=new Map,PI=40;let NI=0;const MI=()=>AI()-NI,LI=()=>{const e=Math.min(ir.length-1,Math.floor(MI()/50));return ir[e]},Ed=10,jI=[],DI=e=>{if(jI.forEach(s=>s(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=ir[ir.length-1],n=_d.get(e.interactionId);if(n||ir.length<Ed||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const s={id:e.interactionId,latency:e.duration,entries:[e]};_d.set(s.id,s),ir.push(s)}ir.sort((s,i)=>i.latency-s.latency),ir.length>Ed&&ir.splice(Ed).forEach(s=>_d.delete(s.id))}},Sy=e=>{const t=pe.requestIdleCallback||pe.setTimeout;let n=-1;return e=el(e),pe.document&&pe.document.visibilityState==="hidden"?e():(n=t(e),oo(e)),n},$I=[200,500],FI=(e,t={})=>{"PerformanceEventTiming"in pe&&"interactionId"in PerformanceEventTiming.prototype&&di(()=>{OI();const n=so("INP");let s;const i=c=>{Sy(()=>{c.forEach(DI);const d=LI();d&&d.latency!==n.value&&(n.value=d.latency,n.entries=d.entries,s())})},a=Ss("event",i,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:PI});s=ro(e,n,$I,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),oo(()=>{i(a.takeRecords()),s(!0)}))})},BI=[2500,4e3],wy={},zI=(e,t={})=>{di(()=>{const n=nl(),s=so("LCP");let i;const a=d=>{t.reportAllChanges||(d=d.slice(-1)),d.forEach(f=>{f.startTime<n.firstHiddenTime&&(s.value=Math.max(f.startTime-ci(),0),s.entries=[f],i())})},c=Ss("largest-contentful-paint",a);if(c){i=ro(e,s,BI,t.reportAllChanges);const d=el(()=>{wy[s.id]||(a(c.takeRecords()),c.disconnect(),wy[s.id]=!0,i(!0))});["keydown","click"].forEach(f=>{pe.document&&addEventListener(f,()=>Sy(d),{once:!0,capture:!0})}),oo(d)}})},UI=[800,1800],xd=e=>{pe.document&&pe.document.prerendering?di(()=>xd(e)):pe.document&&pe.document.readyState!=="complete"?addEventListener("load",()=>xd(e),!0):setTimeout(e,0)},HI=(e,t={})=>{const n=so("TTFB"),s=ro(e,n,UI,t.reportAllChanges);xd(()=>{const i=li();i&&(n.value=Math.max(i.responseStart-ci(),0),n.entries=[i],s(!0))})},fi={},sl={};let _y,Ey,xy,ky,Ty;function kd(e,t=!1){return pi("cls",e,qI,_y,t)}function by(e,t=!1){return pi("lcp",e,GI,xy,t)}function Iy(e){return pi("fid",e,VI,Ey)}function WI(e){return pi("ttfb",e,YI,ky)}function Cy(e){return pi("inp",e,KI,Ty)}function io(e,t){return Ry(e,t),sl[e]||(QI(e),sl[e]=!0),Ay(e,t)}function ao(e,t){const n=fi[e];if(!(!n||!n.length))for(const s of n)try{s(t)}catch(i){vd&&ee.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${er(s)}
Error:`,i)}}function qI(){return bI(e=>{ao("cls",{metric:e}),_y=e},{reportAllChanges:!0})}function VI(){return CI(e=>{ao("fid",{metric:e}),Ey=e})}function GI(){return zI(e=>{ao("lcp",{metric:e}),xy=e},{reportAllChanges:!0})}function YI(){return HI(e=>{ao("ttfb",{metric:e}),ky=e})}function KI(){return FI(e=>{ao("inp",{metric:e}),Ty=e})}function pi(e,t,n,s,i=!1){Ry(e,t);let a;return sl[e]||(a=n(),sl[e]=!0),s&&t({metric:s}),Ay(e,t,i?a:void 0)}function QI(e){const t={};e==="event"&&(t.durationThreshold=0),Ss(e,n=>{ao(e,{entries:n})},t)}function Ry(e,t){fi[e]=fi[e]||[],fi[e].push(t)}function Ay(e,t,n){return()=>{n&&n();const s=fi[e];if(!s)return;const i=s.indexOf(t);i!==-1&&s.splice(i,1)}}function XI(e){return"duration"in e}function Td(e){return typeof e=="number"&&isFinite(e)}function ar(e,t,n,{...s}){const i=Be(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Og(e,()=>{const a=ai({startTime:t,...s});return a&&a.end(n),a})}function Oy(e){const t=Oe();if(!t)return;const{name:n,transaction:s,attributes:i,startTime:a}=e,{release:c,environment:d}=t.getOptions(),f=t.getIntegrationByName("Replay"),h=f&&f.getReplayId(),g=qe(),y=g.getUser(),w=y!==void 0?y.email||y.id||y.ip_address:void 0;let x;try{x=g.getScopeData().contexts.profile.profile_id}catch{}const _={release:c,environment:d,user:w||void 0,profile_id:x||void 0,replay_id:h||void 0,transaction:s,"user_agent.original":pe.navigator&&pe.navigator.userAgent,...i};return ai({name:n,attributes:_,startTime:a,experimental:{standalone:!0}})}function bd(){return pe&&pe.addEventListener&&pe.performance}function it(e){return e/1e3}function JI(){let e=0,t,n;if(!eC())return;let s=!1;function i(){s||(s=!0,n&&ZI(e,t,n),a())}const a=kd(({metric:c})=>{const d=c.entries[c.entries.length-1];d&&(e=c.value,t=d)},!0);oo(()=>{i()}),setTimeout(()=>{const c=Oe();if(!c)return;const d=c.on("startNavigationSpan",()=>{i(),d&&d()}),f=vt(),h=f&&Tt(f),g=h&&Be(h);g&&g.op==="pageload"&&(n=h.spanContext().spanId)},0)}function ZI(e,t,n){vd&&ee.log(`Sending CLS span (${e})`);const s=it((jt||0)+(t&&t.startTime||0)),i=qe().getScopeData().transactionName,a=t?rr(t.sources[0]&&t.sources[0].node):"Layout shift",c=ft({[gt]:"auto.http.browser.cls",[fs]:"ui.webvital.cls",[Ju]:t&&t.duration||0,"sentry.pageload.span_id":n}),d=Oy({name:a,transaction:i,attributes:c,startTime:s});d&&(d.addEvent("cls",{[Ua]:"",[Ha]:e}),d.end(s))}function eC(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const tC=2147483647;let Py=0,bt={},Vt,hi;function nC({recordClsStandaloneSpans:e}){const t=bd();if(t&&jt){t.mark&&pe.performance.mark("sentry-tracing-init");const n=lC(),s=aC(),i=cC(),a=e?JI():iC();return()=>{n(),s(),i(),a&&a()}}return()=>{}}function rC(){io("longtask",({entries:e})=>{const t=vt();if(!t)return;const{op:n,start_timestamp:s}=Be(t);for(const i of e){const a=it(jt+i.startTime),c=it(i.duration);n==="navigation"&&s&&a<s||ar(t,a,a+c,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[gt]:"auto.ui.browser.metrics"}})}})}function sC(){new PerformanceObserver(t=>{const n=vt();if(n)for(const s of t.getEntries()){if(!s.scripts[0])continue;const i=it(jt+s.startTime),{start_timestamp:a,op:c}=Be(n);if(c==="navigation"&&a&&i<a)continue;const d=it(s.duration),f={[gt]:"auto.ui.browser.metrics"},h=s.scripts[0],{invoker:g,invokerType:y,sourceURL:w,sourceFunctionName:x,sourceCharPosition:_}=h;f["browser.script.invoker"]=g,f["browser.script.invoker_type"]=y,w&&(f["code.filepath"]=w),x&&(f["code.function"]=x),_!==-1&&(f["browser.script.source_char_position"]=_),ar(n,i,i+d,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function oC(){io("event",({entries:e})=>{const t=vt();if(t){for(const n of e)if(n.name==="click"){const s=it(jt+n.startTime),i=it(n.duration),a={name:rr(n.target),op:`ui.interaction.${n.name}`,startTime:s,attributes:{[gt]:"auto.ui.browser.metrics"}},c=Um(n.target);c&&(a.attributes["ui.component_name"]=c),ar(t,s,s+i,a)}}})}function iC(){return kd(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(bt.cls={value:e.value,unit:""},hi=t)},!0)}function aC(){return by(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(bt.lcp={value:e.value,unit:"millisecond"},Vt=t)},!0)}function lC(){return Iy(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=it(jt),s=it(t.startTime);bt.fid={value:e.value,unit:"millisecond"},bt["mark.fid"]={value:n+s,unit:"second"}})}function cC(){return WI(({metric:e})=>{e.entries[e.entries.length-1]&&(bt.ttfb={value:e.value,unit:"millisecond"})})}function uC(e,t){const n=bd();if(!n||!n.getEntries||!jt)return;const s=it(jt),i=n.getEntries(),{op:a,start_timestamp:c}=Be(e);if(i.slice(Py).forEach(d=>{const f=it(d.startTime),h=it(Math.max(0,d.duration));if(!(a==="navigation"&&c&&s+f<c))switch(d.entryType){case"navigation":{fC(e,d,s);break}case"mark":case"paint":case"measure":{dC(e,d,f,h,s);const g=nl(),y=d.startTime<g.firstHiddenTime;d.name==="first-paint"&&y&&(bt.fp={value:d.startTime,unit:"millisecond"}),d.name==="first-contentful-paint"&&y&&(bt.fcp={value:d.startTime,unit:"millisecond"});break}case"resource":{mC(e,d,d.name,f,h,s);break}}}),Py=Math.max(i.length-1,0),gC(e),a==="pageload"){vC(bt);const d=bt["mark.fid"];d&&bt.fid&&(ar(e,d.value,d.value+it(bt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[gt]:"auto.ui.browser.metrics"}}),delete bt["mark.fid"]),(!("fcp"in bt)||!t.recordClsOnPageloadSpan)&&delete bt.cls,Object.entries(bt).forEach(([f,h])=>{vT(f,h.value,h.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",ci()),yC(e)}Vt=void 0,hi=void 0,bt={}}function dC(e,t,n,s,i){const a=li(!1),c=it(a?a.requestStart:0),d=i+Math.max(n,c),f=i+n,h=f+s,g={[gt]:"auto.resource.browser.metrics"};return d!==f&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=d),ar(e,d,h,{name:t.name,op:t.entryType,attributes:g}),d}function fC(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(s=>{ol(e,t,s,n)}),ol(e,t,"secureConnection",n,"TLS/SSL"),ol(e,t,"fetch",n,"cache"),ol(e,t,"domainLookup",n,"DNS"),hC(e,t,n)}function ol(e,t,n,s,i=n){const a=pC(n),c=t[a],d=t[`${n}Start`];!d||!c||ar(e,s+it(d),s+it(c),{op:`browser.${i}`,name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}})}function pC(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function hC(e,t,n){const s=n+it(t.requestStart),i=n+it(t.responseEnd),a=n+it(t.responseStart);t.responseEnd&&(ar(e,s,i,{op:"browser.request",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}),ar(e,a,i,{op:"browser.response",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}))}function mC(e,t,n,s,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=vs(n),d={[gt]:"auto.resource.browser.metrics"};Id(d,t,"transferSize","http.response_transfer_size"),Id(d,t,"encodedBodySize","http.response_content_length"),Id(d,t,"decodedBodySize","http.decoded_response_content_length");const f=t.deliveryType;f!=null&&(d["http.response_delivery_type"]=f);const h=t.renderBlockingStatus;h&&(d["resource.render_blocking_status"]=h),c.protocol&&(d["url.scheme"]=c.protocol.split(":").pop()),c.host&&(d["server.address"]=c.host),d["url.same_origin"]=n.includes(pe.location.origin);const g=a+s,y=g+i;ar(e,g,y,{name:n.replace(pe.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:d})}function gC(e){const t=pe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Td(n.rtt)&&(bt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Td(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Td(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function yC(e){Vt&&(Vt.element&&e.setAttribute("lcp.element",rr(Vt.element)),Vt.id&&e.setAttribute("lcp.id",Vt.id),Vt.url&&e.setAttribute("lcp.url",Vt.url.trim().slice(0,200)),Vt.loadTime!=null&&e.setAttribute("lcp.loadTime",Vt.loadTime),Vt.renderTime!=null&&e.setAttribute("lcp.renderTime",Vt.renderTime),e.setAttribute("lcp.size",Vt.size)),hi&&hi.sources&&hi.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,rr(t.node)))}function Id(e,t,n,s){const i=t[n];i!=null&&i<tC&&(e[s]=i)}function vC(e){const t=li(!1);if(!t)return;const{responseStart:n,requestStart:s}=t;s<=n&&(e["ttfb.requestTime"]={value:n-s,unit:"millisecond"})}const SC=1e3;let Ny,Cd,Rd;function My(e){const t="dom";_r(t,e),Er(t,wC)}function wC(){if(!pe.document)return;const e=dn.bind(null,"dom"),t=Ly(e,!0);pe.document.addEventListener("click",t,!1),pe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=pe[n],a=i&&i.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(qt(a,"addEventListener",function(c){return function(d,f,h){if(d==="click"||d=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},y=g[d]=g[d]||{refCount:0};if(!y.handler){const w=Ly(e);y.handler=w,c.call(this,d,w,h)}y.refCount++}catch{}return c.call(this,d,f,h)}}),qt(a,"removeEventListener",function(c){return function(d,f,h){if(d==="click"||d=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},y=g[d];y&&(y.refCount--,y.refCount<=0&&(c.call(this,d,y.handler,h),y.handler=void 0,delete g[d]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,d,f,h)}}))})}function _C(e){if(e.type!==Cd)return!1;try{if(!e.target||e.target._sentryId!==Rd)return!1}catch{}return!0}function EC(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Ly(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const s=xC(n);if(EC(n.type,s))return;fn(n,"_sentryCaptured",!0),s&&!s._sentryId&&fn(s,"_sentryId",rn());const i=n.type==="keypress"?"input":n.type;_C(n)||(e({event:n,name:i,global:t}),Cd=n.type,Rd=s?s._sentryId:void 0),clearTimeout(Ny),Ny=pe.setTimeout(()=>{Rd=void 0,Cd=void 0},SC)}}function xC(e){try{return e.target}catch{return null}}let il;function al(e){const t="history";_r(t,e),Er(t,kC)}function kC(){if(!tI())return;const e=pe.onpopstate;pe.onpopstate=function(...n){const s=pe.location.href,i=il;if(il=s,dn("history",{from:i,to:s}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...s){const i=s.length>2?s[2]:void 0;if(i){const a=il,c=String(i);il=c,dn("history",{from:a,to:c})}return n.apply(this,s)}}qt(pe.history,"pushState",t),qt(pe.history,"replaceState",t)}const ll={};function jy(e){const t=ll[e];if(t)return t;let n=pe[e];if(ud(n))return ll[e]=n.bind(pe);const s=pe.document;if(s&&typeof s.createElement=="function")try{const i=s.createElement("iframe");i.hidden=!0,s.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(n=a[e]),s.head.removeChild(i)}catch(i){vd&&ee.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(ll[e]=n.bind(pe))}function Dy(e){ll[e]=void 0}function lo(...e){return jy("setTimeout")(...e)}const ws="__sentry_xhr_v3__";function $y(e){const t="xhr";_r(t,e),Er(t,TC)}function TC(){if(!pe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,s){const i=new Error,a=Lt()*1e3,c=tr(s[0])?s[0].toUpperCase():void 0,d=bC(s[1]);if(!c||!d)return t.apply(n,s);n[ws]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const h=n[ws];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const g={endTimestamp:Lt()*1e3,startTimestamp:a,xhr:n,virtualError:i};dn("xhr",g)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,g,y){return f(),h.apply(g,y)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,g,y){const[w,x]=y,_=g[ws];return _&&tr(w)&&tr(x)&&(_.request_headers[w.toLowerCase()]=x),h.apply(g,y)}}),t.apply(n,s)}}),e.send=new Proxy(e.send,{apply(t,n,s){const i=n[ws];if(!i)return t.apply(n,s);s[0]!==void 0&&(i.body=s[0]);const a={startTimestamp:Lt()*1e3,xhr:n};return dn("xhr",a),t.apply(n,s)}})}function bC(e){if(tr(e))return e;try{return e.toString()}catch{}}const Ad=[],cl=new Map;function IC(){if(bd()&&jt){const t=CC();return()=>{t()}}return()=>{}}const Fy={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function CC(){return Cy(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(_=>_.duration===e.value&&Fy[_.name]);if(!t)return;const{interactionId:n}=t,s=Fy[t.name],i=it(jt+t.startTime),a=it(e.value),c=vt(),d=c?Tt(c):void 0,h=(n!=null?cl.get(n):void 0)||d,g=h?Be(h).description:qe().getScopeData().transactionName,y=rr(t.target),w=ft({[gt]:"auto.http.browser.inp",[fs]:`ui.interaction.${s}`,[Ju]:t.duration}),x=Oy({name:y,transaction:g,attributes:w,startTime:i});x&&(x.addEvent("inp",{[Ua]:"millisecond",[Ha]:e.value}),x.end(i+a))})}function RC(e){const t=({entries:n})=>{const s=vt(),i=s&&Tt(s);n.forEach(a=>{if(!XI(a)||!i)return;const c=a.interactionId;if(c!=null&&!cl.has(c)){if(Ad.length>10){const d=Ad.shift();cl.delete(d)}Ad.push(c),cl.set(c,i)}})};io("event",t),io("first-input",t)}function AC(e,t=jy("fetch")){let n=0,s=0;function i(a){const c=a.body.length;n+=c,s++;const d={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&s<15,...e.fetchOptions};if(!t)return Dy("fetch"),Fa("No fetch implementation available");try{return t(e.url,d).then(f=>(n-=c,s--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return Dy("fetch"),n-=c,s--,Fa(f)}}return ub(e,i)}const OC=30,PC=50;function Od(e,t,n,s){const i={filename:e,function:t==="<anonymous>"?cs:t,in_app:!0};return n!==void 0&&(i.lineno=n),s!==void 0&&(i.colno=s),i}const NC=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,MC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,LC=/\((\S*)(?::(\d+))(?::(\d+))\)/,jC=[OC,e=>{const t=NC.exec(e);if(t){const[,s,i,a]=t;return Od(s,cs,+i,+a)}const n=MC.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=LC.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[i,a]=By(n[1]||cs,n[2]);return Od(a,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],DC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$C=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,FC=Pm(...[jC,[PC,e=>{const t=DC.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=$C.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let s=t[3],i=t[1]||cs;return[i,s]=By(i,s),Od(s,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),By=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,s=e.indexOf("safari-web-extension")!==-1;return n||s?[e.indexOf("@")!==-1?e.split("@")[0]:cs,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ul=1024,BC="Breadcrumbs",zC=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:BC,setup(n){t.console&&Nb(WC(n)),t.dom&&My(HC(n,t.dom)),t.xhr&&$y(qC(n)),t.fetch&&fy(VC(n)),t.history&&al(GC(n)),t.sentry&&n.on("beforeSendEvent",UC(n))}}};function UC(e){return function(n){Oe()===e&&Cr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:kr(n)},{event:n})}}function HC(e,t){return function(s){if(Oe()!==e)return;let i,a,c=typeof t=="object"?t.serializeAttribute:void 0,d=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;d&&d>ul&&(zn&&ee.warn(`\`dom.maxStringLength\` cannot exceed ${ul}, but a value of ${d} was configured. Sentry will use ${ul} instead.`),d=ul),typeof c=="string"&&(c=[c]);try{const h=s.event,g=YC(h)?h.target:h;i=rr(g,{keyAttrs:c,maxStringLength:d}),a=Um(g)}catch{i="<unknown>"}if(i.length===0)return;const f={category:`ui.${s.name}`,message:i};a&&(f.data={"ui.component_name":a}),Cr(f,{event:s.event,name:s.name,global:s.global})}}function WC(e){return function(n){if(Oe()!==e)return;const s={category:"console",data:{arguments:n.args,logger:"console"},level:iy(n.level),message:Hm(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)s.message=`Assertion failed: ${Hm(n.args.slice(1)," ")||"console.assert"}`,s.data.arguments=n.args.slice(1);else return;Cr(s,{input:n.args,level:n.level})}}function qC(e){return function(n){if(Oe()!==e)return;const{startTimestamp:s,endTimestamp:i}=n,a=n.xhr[ws];if(!s||!i||!a)return;const{method:c,url:d,status_code:f,body:h}=a,g={method:c,url:d,status_code:f},y={xhr:n.xhr,input:h,startTimestamp:s,endTimestamp:i},w=uy(f);Cr({category:"xhr",data:g,type:"http",level:w},y)}}function VC(e){return function(n){if(Oe()!==e)return;const{startTimestamp:s,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,c={data:n.error,input:n.args,startTimestamp:s,endTimestamp:i};Cr({category:"fetch",data:a,level:"error",type:"http"},c)}else{const a=n.response,c={...n.fetchData,status_code:a&&a.status},d={input:n.args,response:a,startTimestamp:s,endTimestamp:i},f=uy(c.status_code);Cr({category:"fetch",data:c,type:"http",level:f},d)}}}function GC(e){return function(n){if(Oe()!==e)return;let s=n.from,i=n.to;const a=vs(_e.location.href);let c=s?vs(s):void 0;const d=vs(i);(!c||!c.path)&&(c=a),a.protocol===d.protocol&&a.host===d.host&&(i=d.relative),a.protocol===c.protocol&&a.host===c.host&&(s=c.relative),Cr({category:"navigation",data:{from:s,to:i}})}}function YC(e){return!!e&&!!e.target}const KC=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],QC="BrowserApiErrors",XC=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:QC,setupOnce(){t.setTimeout&&qt(_e,"setTimeout",zy),t.setInterval&&qt(_e,"setInterval",zy),t.requestAnimationFrame&&qt(_e,"requestAnimationFrame",JC),t.XMLHttpRequest&&"XMLHttpRequest"in _e&&qt(XMLHttpRequest.prototype,"send",ZC);const n=t.eventTarget;n&&(Array.isArray(n)?n:KC).forEach(eR)}}};function zy(e){return function(...t){const n=t[0];return t[0]=no(n,{mechanism:{data:{function:er(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function JC(e){return function(t){return e.apply(this,[no(t,{mechanism:{data:{function:"requestAnimationFrame",handler:er(e)},handled:!1,type:"instrument"}})])}}function ZC(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&qt(n,i,function(a){const c={mechanism:{data:{function:i,handler:er(a)},handled:!1,type:"instrument"}},d=Wu(a);return d&&(c.mechanism.data.handler=er(d)),no(a,c)})}),e.apply(this,t)}}function eR(e){const n=_e[e],s=n&&n.prototype;!s||!s.hasOwnProperty||!s.hasOwnProperty("addEventListener")||(qt(s,"addEventListener",function(i){return function(a,c,d){try{tR(c)&&(c.handleEvent=no(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:er(c),target:e},handled:!1,type:"instrument"}}))}catch{}return i.apply(this,[a,no(c,{mechanism:{data:{function:"addEventListener",handler:er(c),target:e},handled:!1,type:"instrument"}}),d])}}),qt(s,"removeEventListener",function(i){return function(a,c,d){try{const f=c.__sentry_wrapped__;f&&i.call(this,a,f,d)}catch{}return i.call(this,a,c,d)}}))}function tR(e){return typeof e.handleEvent=="function"}const nR=()=>({name:"BrowserSession",setupOnce(){if(typeof _e.document>"u"){zn&&ee.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Bg({ignoreDuration:!0}),Hg(),al(({from:e,to:t})=>{e!==void 0&&e!==t&&(Bg({ignoreDuration:!0}),Hg())})}}),rR="GlobalHandlers",sR=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:rR,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(oR(n),Uy("onerror")),t.onunhandledrejection&&(iR(n),Uy("onunhandledrejection"))}}};function oR(e){Lm(t=>{const{stackParser:n,attachStacktrace:s}=Hy();if(Oe()!==e||gy())return;const{msg:i,url:a,line:c,column:d,error:f}=t,h=cR(gd(n,f||i,void 0,s,!1),a,c,d);h.level="error",$g(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})})}function iR(e){jm(t=>{const{stackParser:n,attachStacktrace:s}=Hy();if(Oe()!==e||gy())return;const i=aR(t),a=Hu(i)?lR(i):gd(n,i,void 0,s,!0);a.level="error",$g(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function aR(e){if(Hu(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function lR(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function cR(e,t,n,s){const i=e.exception=e.exception||{},a=i.values=i.values||[],c=a[0]=a[0]||{},d=c.stacktrace=c.stacktrace||{},f=d.frames=d.frames||[],h=s,g=n,y=tr(t)&&t.length>0?t:zm();return f.length===0&&f.push({colno:h,filename:y,function:cs,in_app:!0,lineno:g}),e}function Uy(e){zn&&ee.log(`Global Handler attached: ${e}`)}function Hy(){const e=Oe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const uR=()=>({name:"HttpContext",preprocessEvent(e){if(!_e.navigator&&!_e.location&&!_e.document)return;const t=e.request&&e.request.url||_e.location&&_e.location.href,{referrer:n}=_e.document||{},{userAgent:s}=_e.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...s&&{"User-Agent":s}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),dR="cause",fR=5,pR="LinkedErrors",hR=(e={})=>{const t=e.limit||fR,n=e.key||dR;return{name:pR,preprocessEvent(s,i,a){const c=a.getOptions();Ob(pd,c.stackParser,c.maxValueLength,n,t,s,i)}}};function mR(e){const t=[wb(),yb(),XC(),zC(),sR(),hR(),jb(),uR()];return e.autoSessionTracking!==!1&&t.push(nR()),t}function gR(e={}){const t={defaultIntegrations:mR(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:_e.SENTRY_RELEASE&&_e.SENTRY_RELEASE.id?_e.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function yR(){const e=typeof _e.window<"u"&&_e;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],s=n&&n.runtime&&n.runtime.id,i=_e.location&&_e.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],c=!!s&&_e===_e.top&&a.some(f=>i.startsWith(`${f}//`)),d=typeof e.nw<"u";return!!s&&!c&&!d}function vR(e={}){const t=gR(e);if(!t.skipBrowserExtensionCheck&&yR()){wr(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}zn&&(dy()||ee.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:nk(t.stackParser||FC),integrations:XT(t),transport:t.transport||AC};return rb(yI,n)}const Ve=Me,Pd="sentryReplaySession",SR="replay_event",Nd="Unable to send Replay",wR=3e5,_R=9e5,ER=5e3,xR=5500,kR=6e4,TR=5e3,bR=3,Wy=15e4,dl=5e3,IR=3e3,CR=300,Md=2e7,RR=4999,AR=15e3,qy=36e5;function Ld(e,t){return e??t()}function mi(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}var pt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(pt||(pt={}));function OR(e){return e.nodeType===e.ELEMENT_NODE}function gi(e){const t=mi([e,"optionalAccess",n=>n.host]);return mi([t,"optionalAccess",n=>n.shadowRoot])===e}function yi(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function PR(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function NR(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function fl(e){try{const t=e.rules||e.cssRules;return t?PR(Array.from(t,Vy).join("")):null}catch{return null}}function MR(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style,i=s[n],a=s.getPropertyPriority(i);t+=`${i}:${s.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}function Vy(e){let t;if(jR(e))try{t=fl(e.styleSheet)||NR(e)}catch{}else if(DR(e)){let n=e.cssText;const s=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=MR(e)),s&&(n=LR(n)),s||i)return n}return t||e.cssText}function LR(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function jR(e){return"styleSheet"in e}function DR(e){return"selectorText"in e}class Gy{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=mi([this,"access",s=>s.getMeta,"call",s=>s(t),"optionalAccess",s=>s.id]);return Ld(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const s=n.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,n)}replace(t,n){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function $R(){return new Gy}function pl({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function vi({isMasked:e,element:t,value:n,maskInputFn:s}){let i=n||"";return e?(s&&(i=s(i,t)),"*".repeat(i.length)):i}function co(e){return e.toLowerCase()}function jd(e){return e.toUpperCase()}const Yy="__rrweb_original__";function FR(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let s=0;s<e.width;s+=n)for(let i=0;i<e.height;i+=n){const a=t.getImageData,c=Yy in a?a[Yy]:a;if(new Uint32Array(c.call(t,s,i,Math.min(n,e.width-s),Math.min(n,e.height-i)).data.buffer).some(f=>f!==0))return!1}return!0}function Dd(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?co(t):null}function hl(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Ky(e,t){let n;try{n=new URL(e,Ld(t,()=>window.location.href))}catch{return null}const s=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(s);return Ld(mi([i,"optionalAccess",a=>a[1]]),()=>null)}const Qy={};function Xy(e){const t=Qy[e];if(t)return t;const n=window.document;let s=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(s=a[e]),n.head.removeChild(i)}catch{}return Qy[e]=s.bind(window)}function $d(...e){return Xy("setTimeout")(...e)}function Jy(...e){return Xy("clearTimeout")(...e)}function Zy(e){try{return e.contentDocument}catch{}}let BR=1;const zR=new RegExp("[^a-z0-9-_:]"),Si=-2;function Fd(){return BR++}function UR(e){if(e instanceof HTMLFormElement)return"form";const t=co(e.tagName);return zR.test(t)?"div":t}function HR(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let uo,e0;const WR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,qR=/^(?:[a-z+]+:)?\/\//i,VR=/^www\..*/i,GR=/^(data:)([^,]*),(.*)/i;function ml(e,t){return(e||"").replace(WR,(n,s,i,a,c,d)=>{const f=i||c||d,h=s||a||"";if(!f)return n;if(qR.test(f)||VR.test(f))return`url(${h}${f}${h})`;if(GR.test(f))return`url(${h}${f}${h})`;if(f[0]==="/")return`url(${h}${HR(t)+f}${h})`;const g=t.split("/"),y=f.split("/");g.pop();for(const w of y)w!=="."&&(w===".."?g.pop():g.push(w));return`url(${h}${g.join("/")}${h})`})}const YR=/^[^ \t\n\r\u000c]+/,KR=/^[, \t\n\r\u000c]+/;function QR(e,t){if(t.trim()==="")return t;let n=0;function s(a){let c;const d=a.exec(t.substring(n));return d?(c=d[0],n+=c.length,c):""}const i=[];for(;s(KR),!(n>=t.length);){let a=s(YR);if(a.slice(-1)===",")a=fo(e,a.substring(0,a.length-1)),i.push(a);else{let c="";a=fo(e,a);let d=!1;for(;;){const f=t.charAt(n);if(f===""){i.push((a+c).trim());break}else if(d)f===")"&&(d=!1);else if(f===","){n+=1,i.push((a+c).trim());break}else f==="("&&(d=!0);c+=f,n+=1}}}return i.join(", ")}const t0=new WeakMap;function fo(e,t){return!t||t.trim()===""?t:gl(e,t)}function XR(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function gl(e,t){let n=t0.get(e);if(n||(n=e.createElement("a"),t0.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function n0(e,t,n,s,i,a){return s&&(n==="src"||n==="href"&&!(t==="use"&&s[0]==="#")||n==="xlink:href"&&s[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?fo(e,s):n==="srcset"?QR(e,s):n==="style"?ml(s,gl(e)):t==="object"&&n==="data"?fo(e,s):typeof a=="function"?a(n,s,i):s)}function r0(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function JR(e,t,n,s){try{if(s&&e.matches(s))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const a=e.classList[i];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function ZR(e,t){for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!1}function _s(e,t,n=1/0,s=0){return!e||e.nodeType!==e.ELEMENT_NODE||s>n?-1:t(e)?s:_s(e.parentNode,t,n,s+1)}function po(e,t){return n=>{const s=n;if(s===null)return!1;try{if(e){if(typeof e=="string"){if(s.matches(`.${e}`))return!0}else if(ZR(s,e))return!0}return!!(t&&s.matches(t))}catch{return!1}}}function ho(e,t,n,s,i,a){try{const c=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(c===null)return!1;if(c.tagName==="INPUT"){const h=c.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(h))return!0}let d=-1,f=-1;if(a){if(f=_s(c,po(s,i)),f<0)return!0;d=_s(c,po(t,n),f>=0?f:1/0)}else{if(d=_s(c,po(t,n)),d<0)return!1;f=_s(c,po(s,i),d>=0?d:1/0)}return d>=0?f>=0?d<=f:!0:f>=0?!1:!!a}catch{}return!!a}function e2(e,t,n){const s=e.contentWindow;if(!s)return;let i=!1,a;try{a=s.document.readyState}catch{return}if(a!=="complete"){const d=$d(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{Jy(d),i=!0,t()});return}const c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return $d(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function t2(e,t,n){let s=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=$d(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Jy(a),s=!0,t()})}function n2(e,t){const{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskAttributeFn:f,maskTextClass:h,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:w,inlineStylesheet:x,maskInputOptions:_={},maskTextFn:E,maskInputFn:k,dataURLOptions:A={},inlineImages:L,recordCanvas:j,keepIframeSrcFn:K,newlyAddedElement:H=!1}=t,O=r2(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pt.Document,childNodes:[],compatMode:e.compatMode}:{type:pt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return o2(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:c,inlineStylesheet:x,maskAttributeFn:f,maskInputOptions:_,maskInputFn:k,dataURLOptions:A,inlineImages:L,recordCanvas:j,keepIframeSrcFn:K,newlyAddedElement:H,rootId:O,maskAllText:d,maskTextClass:h,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:w});case e.TEXT_NODE:return s2(e,{doc:n,maskAllText:d,maskTextClass:h,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:w,maskTextFn:E,maskInputOptions:_,maskInputFn:k,rootId:O});case e.CDATA_SECTION_NODE:return{type:pt.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:pt.Comment,textContent:e.textContent||"",rootId:O};default:return!1}}function r2(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function s2(e,t){const{maskAllText:n,maskTextClass:s,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:c,maskTextFn:d,maskInputOptions:f,maskInputFn:h,rootId:g}=t,y=e.parentNode&&e.parentNode.tagName;let w=e.textContent;const x=y==="STYLE"?!0:void 0,_=y==="SCRIPT"?!0:void 0,E=y==="TEXTAREA"?!0:void 0;if(x&&w){try{e.nextSibling||e.previousSibling||mi([e,"access",A=>A.parentNode,"access",A=>A.sheet,"optionalAccess",A=>A.cssRules])&&(w=fl(e.parentNode.sheet))}catch(A){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${A}`,e)}w=ml(w,gl(t.doc))}_&&(w="SCRIPT_PLACEHOLDER");const k=ho(e,s,a,i,c,n);if(!x&&!_&&!E&&w&&k&&(w=d?d(w,e.parentElement):w.replace(/[\S]/g,"*")),E&&w&&(f.textarea||k)&&(w=h?h(w,e.parentNode):w.replace(/[\S]/g,"*")),y==="OPTION"&&w){const A=pl({type:null,tagName:y,maskInputOptions:f});w=vi({isMasked:ho(e,s,a,i,c,A),element:e,value:w,maskInputFn:h})}return{type:pt.Text,textContent:w||"",isStyle:x,rootId:g}}function o2(e,t){const{doc:n,blockClass:s,blockSelector:i,unblockSelector:a,inlineStylesheet:c,maskInputOptions:d={},maskAttributeFn:f,maskInputFn:h,dataURLOptions:g={},inlineImages:y,recordCanvas:w,keepIframeSrcFn:x,newlyAddedElement:_=!1,rootId:E,maskAllText:k,maskTextClass:A,unmaskTextClass:L,maskTextSelector:j,unmaskTextSelector:K}=t,H=JR(e,s,i,a),O=UR(e);let C={};const W=e.attributes.length;for(let U=0;U<W;U++){const J=e.attributes[U];J.name&&!r0(O,J.name,J.value)&&(C[J.name]=n0(n,O,co(J.name),J.value,e,f))}if(O==="link"&&c){const U=Array.from(n.styleSheets).find(Z=>Z.href===e.href);let J=null;U&&(J=fl(U)),J&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=ml(J,U.href))}if(O==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const U=fl(e.sheet);U&&(C._cssText=ml(U,gl(n)))}if(O==="input"||O==="textarea"||O==="select"||O==="option"){const U=e,J=Dd(U),Z=hl(U,jd(O),J),ue=U.checked;if(J!=="submit"&&J!=="button"&&Z){const me=ho(U,A,j,L,K,pl({type:J,tagName:jd(O),maskInputOptions:d}));C.value=vi({isMasked:me,element:U,value:Z,maskInputFn:h})}ue&&(C.checked=ue)}if(O==="option"&&(e.selected&&!d.select?C.selected=!0:delete C.selected),O==="canvas"&&w){if(e.__context==="2d")FR(e)||(C.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){const U=e.toDataURL(g.type,g.quality),J=n.createElement("canvas");J.width=e.width,J.height=e.height;const Z=J.toDataURL(g.type,g.quality);U!==Z&&(C.rr_dataURL=U)}}if(O==="img"&&y){uo||(uo=n.createElement("canvas"),e0=uo.getContext("2d"));const U=e,J=U.currentSrc||U.getAttribute("src")||"<unknown-src>",Z=U.crossOrigin,ue=()=>{U.removeEventListener("load",ue);try{uo.width=U.naturalWidth,uo.height=U.naturalHeight,e0.drawImage(U,0,0),C.rr_dataURL=uo.toDataURL(g.type,g.quality)}catch(me){if(U.crossOrigin!=="anonymous"){U.crossOrigin="anonymous",U.complete&&U.naturalWidth!==0?ue():U.addEventListener("load",ue);return}else console.warn(`Cannot inline img src=${J}! Error: ${me}`)}U.crossOrigin==="anonymous"&&(Z?C.crossOrigin=Z:U.removeAttribute("crossorigin"))};U.complete&&U.naturalWidth!==0?ue():U.addEventListener("load",ue)}if((O==="audio"||O==="video")&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),_||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),H){const{width:U,height:J}=e.getBoundingClientRect();C={class:C.class,rr_width:`${U}px`,rr_height:`${J}px`}}O==="iframe"&&!x(C.src)&&(!H&&!Zy(e)&&(C.rr_src=C.src),delete C.src);let F;try{customElements.get(O)&&(F=!0)}catch{}return{type:pt.Element,tagName:O,attributes:C,childNodes:[],isSVG:XR(e)||void 0,needBlock:H,rootId:E,isCustom:F}}function Ge(e){return e==null?"":e.toLowerCase()}function i2(e,t){if(t.comment&&e.type===pt.Comment)return!0;if(e.type===pt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ky(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ge(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ge(e.attributes.name)==="application-name"||Ge(e.attributes.rel)==="icon"||Ge(e.attributes.rel)==="apple-touch-icon"||Ge(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ge(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ge(e.attributes.property).match(/^(og|twitter|fb):/)||Ge(e.attributes.name).match(/^(og|twitter):/)||Ge(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ge(e.attributes.name)==="robots"||Ge(e.attributes.name)==="googlebot"||Ge(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ge(e.attributes.name)==="author"||Ge(e.attributes.name)==="generator"||Ge(e.attributes.name)==="framework"||Ge(e.attributes.name)==="publisher"||Ge(e.attributes.name)==="progid"||Ge(e.attributes.property).match(/^article:/)||Ge(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ge(e.attributes.name)==="google-site-verification"||Ge(e.attributes.name)==="yandex-verification"||Ge(e.attributes.name)==="csrf-token"||Ge(e.attributes.name)==="p:domain_verify"||Ge(e.attributes.name)==="verify-v1"||Ge(e.attributes.name)==="verification"||Ge(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function mo(e,t){const{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:w=!1,inlineStylesheet:x=!0,maskInputOptions:_={},maskAttributeFn:E,maskTextFn:k,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j={},inlineImages:K=!1,recordCanvas:H=!1,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W=5e3,onStylesheetLoad:F,stylesheetLoadTimeout:U=5e3,keepIframeSrcFn:J=()=>!1,newlyAddedElement:Z=!1}=t;let{preserveWhiteSpace:ue=!0}=t;const me=n2(e,{doc:n,mirror:s,blockClass:i,blockSelector:a,maskAllText:d,unblockSelector:c,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:k,maskInputFn:A,dataURLOptions:j,inlineImages:K,recordCanvas:H,keepIframeSrcFn:J,newlyAddedElement:Z});if(!me)return console.warn(e,"not serialized"),null;let De;s.hasNode(e)?De=s.getId(e):i2(me,L)||!ue&&me.type===pt.Text&&!me.isStyle&&!me.textContent.replace(/^\s+|\s+$/gm,"").length?De=Si:De=Fd();const te=Object.assign(me,{id:De});if(s.add(e,te),De===Si)return null;O&&O(e);let Se=!w;if(te.type===pt.Element){Se=Se&&!te.needBlock,delete te.needBlock;const q=e.shadowRoot;q&&yi(q)&&(te.isShadowHost=!0)}if((te.type===pt.Document||te.type===pt.Element)&&Se){L.headWhitespace&&te.type===pt.Element&&te.tagName==="head"&&(ue=!1);const q={doc:n,mirror:s,blockClass:i,blockSelector:a,maskAllText:d,unblockSelector:c,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:w,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:k,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j,inlineImages:K,recordCanvas:H,preserveWhiteSpace:ue,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W,onStylesheetLoad:F,stylesheetLoadTimeout:U,keepIframeSrcFn:J};for(const oe of Array.from(e.childNodes)){const ne=mo(oe,q);ne&&te.childNodes.push(ne)}if(OR(e)&&e.shadowRoot)for(const oe of Array.from(e.shadowRoot.childNodes)){const ne=mo(oe,q);ne&&(yi(e.shadowRoot)&&(ne.isShadow=!0),te.childNodes.push(ne))}}return e.parentNode&&gi(e.parentNode)&&yi(e.parentNode)&&(te.isShadow=!0),te.type===pt.Element&&te.tagName==="iframe"&&e2(e,()=>{const q=Zy(e);if(q&&C){const oe=mo(q,{doc:q,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:!1,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:k,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j,inlineImages:K,recordCanvas:H,preserveWhiteSpace:ue,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W,onStylesheetLoad:F,stylesheetLoadTimeout:U,keepIframeSrcFn:J});oe&&C(e,oe)}},W),te.type===pt.Element&&te.tagName==="link"&&typeof te.attributes.rel=="string"&&(te.attributes.rel==="stylesheet"||te.attributes.rel==="preload"&&typeof te.attributes.href=="string"&&Ky(te.attributes.href)==="css")&&t2(e,()=>{if(F){const q=mo(e,{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:!1,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:k,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j,inlineImages:K,recordCanvas:H,preserveWhiteSpace:ue,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W,onStylesheetLoad:F,stylesheetLoadTimeout:U,keepIframeSrcFn:J});q&&F(e,q)}},U),te}function a2(e,t){const{mirror:n=new Gy,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:h=null,unmaskTextSelector:g=null,inlineStylesheet:y=!0,inlineImages:w=!1,recordCanvas:x=!1,maskAllInputs:_=!1,maskAttributeFn:E,maskTextFn:k,maskInputFn:A,slimDOM:L=!1,dataURLOptions:j,preserveWhiteSpace:K,onSerialize:H,onIframeLoad:O,iframeLoadTimeout:C,onStylesheetLoad:W,stylesheetLoadTimeout:F,keepIframeSrcFn:U=()=>!1}=t||{};return mo(e,{doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:g,skipChild:!1,inlineStylesheet:y,maskInputOptions:_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:_===!1?{}:_,maskAttributeFn:E,maskTextFn:k,maskInputFn:A,slimDOMOptions:L===!0||L==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:L==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:L===!1?{}:L,dataURLOptions:j,inlineImages:w,recordCanvas:x,preserveWhiteSpace:K,onSerialize:H,onIframeLoad:O,iframeLoadTimeout:C,onStylesheetLoad:W,stylesheetLoadTimeout:F,keepIframeSrcFn:U,newlyAddedElement:!1})}function Rr(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}function Dt(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)}const go=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let s0={map:{},getId(){return console.error(go),-1},getNode(){return console.error(go),null},removeNodeFromMap(){console.error(go)},has(){return console.error(go),!1},reset(){console.error(go)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(s0=new Proxy(s0,{get(e,t,n){return t==="map"&&console.error(go),Reflect.get(e,t,n)}}));function wi(e,t,n={}){let s=null,i=0;return function(...a){const c=Date.now();!i&&n.leading===!1&&(i=c);const d=t-(c-i),f=this;d<=0||d>t?(s&&(h2(s),s=null),i=c,e.apply(f,a)):!s&&n.trailing!==!1&&(s=vl(()=>{i=n.leading===!1?0:Date.now(),s=null,e.apply(f,a)},d))}}function o0(e,t,n,s,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,s?n:{set(c){vl(()=>{n.set.call(this,c)},0),a&&a.set&&a.set.call(this,c)}}),()=>o0(e,t,a||{},!0)}function Bd(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],i=n(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch{return()=>{}}}let yl=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(yl=()=>new Date().getTime());function i0(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Rr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Rr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Rr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Rr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Rr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Rr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function a0(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function l0(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function c0(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function sn(e,t,n,s,i){if(!e)return!1;const a=c0(e);if(!a)return!1;const c=po(t,n);if(!i){const h=s&&a.matches(s);return c(a)&&!h}const d=_s(a,c);let f=-1;return d<0?!1:(s&&(f=_s(a,po(null,s))),d>-1&&f<0?!0:d<f)}function l2(e,t){return t.getId(e)!==-1}function zd(e,t){return t.getId(e)===Si}function u0(e,t){if(gi(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?u0(e.parentNode,t):!0:!0}function Ud(e){return!!e.changedTouches}function c2(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function d0(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function f0(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Hd(e){return!!Rr([e,"optionalAccess",t=>t.shadowRoot])}class u2{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return nI(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let s;return n===void 0?s=this.id++:s=n,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function p0(e){let t=null;return Rr([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function d2(e){let t=e,n;for(;n=p0(t);)t=n;return t}function f2(e){const t=e.ownerDocument;if(!t)return!1;const n=d2(e);return t.contains(n)}function h0(e){const t=e.ownerDocument;return t?t.contains(e)||f2(e):!1}const m0={};function Wd(e){const t=m0[e];if(t)return t;const n=window.document;let s=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(s=a[e]),n.head.removeChild(i)}catch{}return m0[e]=s.bind(window)}function p2(...e){return Wd("requestAnimationFrame")(...e)}function vl(...e){return Wd("setTimeout")(...e)}function h2(...e){return Wd("clearTimeout")(...e)}var Ie=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ie||{}),ve=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ve||{}),$t=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))($t||{}),lr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(lr||{}),g0;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(g0||(g0={}));var y0;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(y0||(y0={}));function qd(e){try{return e.contentDocument}catch{}}function m2(e){try{return e.contentWindow}catch{}}function g2(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}function v0(e){return"__ln"in e}class y2{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let s=0;s<t;s++)n=g2([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&v0(t.previousSibling)){const s=t.previousSibling.__ln.next;n.next=s,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,s&&(s.previous=n)}else if(t.nextSibling&&v0(t.nextSibling)&&t.nextSibling.__ln.previous){const s=t.nextSibling.__ln.previous;n.previous=s,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,s&&(s.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const S0=(e,t)=>`${e}@${t}`;class v2{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,s=new y2,i=f=>{let h=f,g=Si;for(;g===Si;)h=h&&h.nextSibling,g=h&&this.mirror.getId(h);return g},a=f=>{if(!f.parentNode||!h0(f))return;const h=gi(f.parentNode)?this.mirror.getId(p0(f)):this.mirror.getId(f.parentNode),g=i(f);if(h===-1||g===-1)return s.addNode(f);const y=mo(f,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:w=>{d0(w,this.mirror)&&!sn(w,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(w),f0(w,this.mirror)&&this.stylesheetManager.trackLinkElement(w),Hd(f)&&this.shadowDomManager.addShadowRoot(f.shadowRoot,this.doc)},onIframeLoad:(w,x)=>{sn(w,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(w,x),w.contentWindow&&this.canvasManager.addWindow(w.contentWindow),this.shadowDomManager.observeAttachShadow(w))},onStylesheetLoad:(w,x)=>{this.stylesheetManager.attachLinkElement(w,x)}});y&&(t.push({parentId:h,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const f of this.movedSet)w0(this.removes,f,this.mirror)&&!this.movedSet.has(f.parentNode)||a(f);for(const f of this.addedSet)!_0(this.droppedSet,f)&&!w0(this.removes,f,this.mirror)||_0(this.movedSet,f)?a(f):this.droppedSet.add(f);let c=null;for(;s.length;){let f=null;if(c){const h=this.mirror.getId(c.value.parentNode),g=i(c.value);h!==-1&&g!==-1&&(f=c)}if(!f){let h=s.tail;for(;h;){const g=h;if(h=h.previous,g){const y=this.mirror.getId(g.value.parentNode);if(i(g.value)===-1)continue;if(y!==-1){f=g;break}else{const x=g.value;if(x.parentNode&&x.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const _=x.parentNode.host;if(this.mirror.getId(_)!==-1){f=g;break}}}}}}if(!f){for(;s.head;)s.removeNode(s.head.value);break}c=f.previous,s.removeNode(f.value),a(f.value)}const d={texts:this.texts.map(f=>({id:this.mirror.getId(f.node),value:f.value})).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{const{attributes:h}=f;if(typeof h.style=="string"){const g=JSON.stringify(f.styleDiff),y=JSON.stringify(f._unchangedStyles);g.length<h.style.length&&(g+y).split("var(").length===h.style.split("var(").length&&(h.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:h}}).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(d))},this.processMutation=t=>{if(!zd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!sn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:ho(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,c0(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let s=t.attributeName,i=t.target.getAttribute(s);if(s==="value"){const c=Dd(n),d=n.tagName;i=hl(n,d,c);const f=pl({maskInputOptions:this.maskInputOptions,tagName:d,type:c}),h=ho(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,f);i=vi({isMasked:h,element:n,value:i,maskInputFn:this.maskInputFn})}if(sn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&s==="src"&&!this.keepIframeSrcFn(i))if(!qd(n))s="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),s==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!r0(n.tagName,s)&&(a.attributes[s]=n0(this.doc,co(n.tagName),co(s),i,n,this.maskAttributeFn),s==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(const d of Array.from(n.style)){const f=n.style.getPropertyValue(d),h=n.style.getPropertyPriority(d);f!==c.style.getPropertyValue(d)||h!==c.style.getPropertyPriority(d)?h===""?a.styleDiff[d]=f:a.styleDiff[d]=[f,h]:a._unchangedStyles[d]=[f,h]}for(const d of Array.from(c.style))n.style.getPropertyValue(d)===""&&(a.styleDiff[d]=!1)}break}case"childList":{if(sn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const s=this.mirror.getId(n),i=gi(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);sn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||zd(n,this.mirror)||!l2(n,this.mirror)||(this.addedSet.has(n)?(Vd(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&s===-1||u0(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[S0(s,i)]?Vd(this.movedSet,n):this.removes.push({parentId:i,id:s,isShadow:gi(t.target)&&yi(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(zd(t,this.mirror))return;this.movedSet.add(t);let s=null;n&&this.mirror.hasNode(n)&&(s=this.mirror.getId(n)),s&&s!==-1&&(this.movedMap[S0(this.mirror.getId(t),s)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);sn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(s=>this.genAdds(s)),Hd(t)&&t.shadowRoot.childNodes.forEach(s=>{this.processedNodeManager.add(s,this),this.genAdds(s,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Vd(e,t){e.delete(t),t.childNodes.forEach(n=>Vd(e,n))}function w0(e,t,n){return e.length===0?!1:S2(e,t,n)}function S2(e,t,n){let s=t.parentNode;for(;s;){const i=n.getId(s);if(e.some(a=>a.id===i))return!0;s=s.parentNode}return!1}function _0(e,t){return e.size===0?!1:E0(e,t)}function E0(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:E0(e,n):!1}let _i;function w2(e){_i=e}function _2(){_i=void 0}const Le=e=>_i?(...n)=>{try{return e(...n)}catch(s){if(_i&&_i(s)===!0)return()=>{};throw s}}:e;function kn(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}const yo=[];function Ei(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function x0(e,t){const n=new v2;yo.push(n),n.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=kn([window,"optionalAccess",c=>c.Zone,"optionalAccess",c=>c.__symbol__,"optionalCall",c=>c("MutationObserver")]);i&&window[i]&&(s=window[i]);const a=new s(Le(c=>{e.onMutation&&e.onMutation(c)===!1||n.processMutations.bind(n)(c)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function E2({mousemoveCb:e,sampling:t,doc:n,mirror:s}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let c=[],d;const f=wi(Le(y=>{const w=Date.now()-d;e(c.map(x=>(x.timeOffset-=w,x)),y),c=[],d=null}),a),h=Le(wi(Le(y=>{const w=Ei(y),{clientX:x,clientY:_}=Ud(y)?y.changedTouches[0]:y;d||(d=yl()),c.push({x,y:_,id:s.getId(w),timeOffset:yl()-d}),f(typeof DragEvent<"u"&&y instanceof DragEvent?ve.Drag:y instanceof MouseEvent?ve.MouseMove:ve.TouchMove)}),i,{trailing:!1})),g=[Dt("mousemove",h,n),Dt("touchmove",h,n),Dt("drag",h,n)];return Le(()=>{g.forEach(y=>y())})}function x2({mouseInteractionCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,sampling:c}){if(c.mouseInteraction===!1)return()=>{};const d=c.mouseInteraction===!0||c.mouseInteraction===void 0?{}:c.mouseInteraction,f=[];let h=null;const g=y=>w=>{const x=Ei(w);if(sn(x,s,i,a,!0))return;let _=null,E=y;if("pointerType"in w){switch(w.pointerType){case"mouse":_=lr.Mouse;break;case"touch":_=lr.Touch;break;case"pen":_=lr.Pen;break}_===lr.Touch?$t[y]===$t.MouseDown?E="TouchStart":$t[y]===$t.MouseUp&&(E="TouchEnd"):lr.Pen}else Ud(w)&&(_=lr.Touch);_!==null?(h=_,(E.startsWith("Touch")&&_===lr.Touch||E.startsWith("Mouse")&&_===lr.Mouse)&&(_=null)):$t[y]===$t.Click&&(_=h,h=null);const k=Ud(w)?w.changedTouches[0]:w;if(!k)return;const A=n.getId(x),{clientX:L,clientY:j}=k;Le(e)({type:$t[E],id:A,x:L,y:j,..._!==null&&{pointerType:_}})};return Object.keys($t).filter(y=>Number.isNaN(Number(y))&&!y.endsWith("_Departed")&&d[y]!==!1).forEach(y=>{let w=co(y);const x=g(y);if(window.PointerEvent)switch($t[y]){case $t.MouseDown:case $t.MouseUp:w=w.replace("mouse","pointer");break;case $t.TouchStart:case $t.TouchEnd:return}f.push(Dt(w,x,t))}),Le(()=>{f.forEach(y=>y())})}function k0({scrollCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,sampling:c}){const d=Le(wi(Le(f=>{const h=Ei(f);if(!h||sn(h,s,i,a,!0))return;const g=n.getId(h);if(h===t&&t.defaultView){const y=i0(t.defaultView);e({id:g,x:y.left,y:y.top})}else e({id:g,x:h.scrollLeft,y:h.scrollTop})}),c.scroll||100));return Dt("scroll",d,t)}function k2({viewportResizeCb:e},{win:t}){let n=-1,s=-1;const i=Le(wi(Le(()=>{const a=a0(),c=l0();(n!==a||s!==c)&&(e({width:Number(c),height:Number(a)}),n=a,s=c)}),200));return Dt("resize",i,t)}const T2=["INPUT","TEXTAREA","SELECT"],T0=new WeakMap;function b2({inputCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,ignoreClass:c,ignoreSelector:d,maskInputOptions:f,maskInputFn:h,sampling:g,userTriggeredOnInput:y,maskTextClass:w,unmaskTextClass:x,maskTextSelector:_,unmaskTextSelector:E}){function k(C){let W=Ei(C);const F=C.isTrusted,U=W&&jd(W.tagName);if(U==="OPTION"&&(W=W.parentElement),!W||!U||T2.indexOf(U)<0||sn(W,s,i,a,!0))return;const J=W;if(J.classList.contains(c)||d&&J.matches(d))return;const Z=Dd(W);let ue=hl(J,U,Z),me=!1;const De=pl({maskInputOptions:f,tagName:U,type:Z}),te=ho(W,w,_,x,E,De);(Z==="radio"||Z==="checkbox")&&(me=W.checked),ue=vi({isMasked:te,element:W,value:ue,maskInputFn:h}),A(W,y?{text:ue,isChecked:me,userTriggered:F}:{text:ue,isChecked:me});const Se=W.name;Z==="radio"&&Se&&me&&t.querySelectorAll(`input[type="radio"][name="${Se}"]`).forEach(q=>{if(q!==W){const oe=vi({isMasked:te,element:q,value:hl(q,U,Z),maskInputFn:h});A(q,y?{text:oe,isChecked:!me,userTriggered:!1}:{text:oe,isChecked:!me})}})}function A(C,W){const F=T0.get(C);if(!F||F.text!==W.text||F.isChecked!==W.isChecked){T0.set(C,W);const U=n.getId(C);Le(e)({...W,id:U})}}const j=(g.input==="last"?["change"]:["input","change"]).map(C=>Dt(C,Le(k),t)),K=t.defaultView;if(!K)return()=>{j.forEach(C=>C())};const H=K.Object.getOwnPropertyDescriptor(K.HTMLInputElement.prototype,"value"),O=[[K.HTMLInputElement.prototype,"value"],[K.HTMLInputElement.prototype,"checked"],[K.HTMLSelectElement.prototype,"value"],[K.HTMLTextAreaElement.prototype,"value"],[K.HTMLSelectElement.prototype,"selectedIndex"],[K.HTMLOptionElement.prototype,"selected"]];return H&&H.set&&j.push(...O.map(C=>o0(C[0],C[1],{set(){Le(k)({target:this,isTrusted:!1})}},!1,K))),Le(()=>{j.forEach(C=>C())})}function Sl(e){const t=[];function n(s,i){if(wl("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||wl("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||wl("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||wl("CSSConditionRule")&&s.parentRule instanceof CSSConditionRule){const c=Array.from(s.parentRule.cssRules).indexOf(s);i.unshift(c)}else if(s.parentStyleSheet){const c=Array.from(s.parentStyleSheet.cssRules).indexOf(s);i.unshift(c)}return i}return n(e,t)}function Ar(e,t,n){let s,i;return e?(e.ownerNode?s=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:s}):{}}function I2({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const i=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Le((g,y,w)=>{const[x,_]=w,{id:E,styleId:k}=Ar(y,t,n.styleMirror);return(E&&E!==-1||k&&k!==-1)&&e({id:E,styleId:k,adds:[{rule:x,index:_}]}),g.apply(y,w)})});const a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Le((g,y,w)=>{const[x]=w,{id:_,styleId:E}=Ar(y,t,n.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,removes:[{index:x}]}),g.apply(y,w)})});let c;s.CSSStyleSheet.prototype.replace&&(c=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:Le((g,y,w)=>{const[x]=w,{id:_,styleId:E}=Ar(y,t,n.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,replace:x}),g.apply(y,w)})}));let d;s.CSSStyleSheet.prototype.replaceSync&&(d=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(d,{apply:Le((g,y,w)=>{const[x]=w,{id:_,styleId:E}=Ar(y,t,n.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,replaceSync:x}),g.apply(y,w)})}));const f={};_l("CSSGroupingRule")?f.CSSGroupingRule=s.CSSGroupingRule:(_l("CSSMediaRule")&&(f.CSSMediaRule=s.CSSMediaRule),_l("CSSConditionRule")&&(f.CSSConditionRule=s.CSSConditionRule),_l("CSSSupportsRule")&&(f.CSSSupportsRule=s.CSSSupportsRule));const h={};return Object.entries(f).forEach(([g,y])=>{h[g]={insertRule:y.prototype.insertRule,deleteRule:y.prototype.deleteRule},y.prototype.insertRule=new Proxy(h[g].insertRule,{apply:Le((w,x,_)=>{const[E,k]=_,{id:A,styleId:L}=Ar(x.parentStyleSheet,t,n.styleMirror);return(A&&A!==-1||L&&L!==-1)&&e({id:A,styleId:L,adds:[{rule:E,index:[...Sl(x),k||0]}]}),w.apply(x,_)})}),y.prototype.deleteRule=new Proxy(h[g].deleteRule,{apply:Le((w,x,_)=>{const[E]=_,{id:k,styleId:A}=Ar(x.parentStyleSheet,t,n.styleMirror);return(k&&k!==-1||A&&A!==-1)&&e({id:k,styleId:A,removes:[{index:[...Sl(x),E]}]}),w.apply(x,_)})})}),Le(()=>{s.CSSStyleSheet.prototype.insertRule=i,s.CSSStyleSheet.prototype.deleteRule=a,c&&(s.CSSStyleSheet.prototype.replace=c),d&&(s.CSSStyleSheet.prototype.replaceSync=d),Object.entries(f).forEach(([g,y])=>{y.prototype.insertRule=h[g].insertRule,y.prototype.deleteRule=h[g].deleteRule})})}function b0({mirror:e,stylesheetManager:t},n){let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(n.host);const i=n.nodeName==="#document"?kn([n,"access",c=>c.defaultView,"optionalAccess",c=>c.Document]):kn([n,"access",c=>c.ownerDocument,"optionalAccess",c=>c.defaultView,"optionalAccess",c=>c.ShadowRoot]),a=kn([i,"optionalAccess",c=>c.prototype])?Object.getOwnPropertyDescriptor(kn([i,"optionalAccess",c=>c.prototype]),"adoptedStyleSheets"):void 0;return s===null||s===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return kn([a,"access",c=>c.get,"optionalAccess",c=>c.call,"call",c=>c(this)])},set(c){const d=kn([a,"access",f=>f.set,"optionalAccess",f=>f.call,"call",f=>f(this,c)]);if(s!==null&&s!==-1)try{t.adoptStyleSheets(c,s)}catch{}return d}}),Le(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function C2({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:s},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Le((d,f,h)=>{const[g,y,w]=h;if(n.has(g))return a.apply(f,[g,y,w]);const{id:x,styleId:_}=Ar(kn([f,"access",E=>E.parentRule,"optionalAccess",E=>E.parentStyleSheet]),t,s.styleMirror);return(x&&x!==-1||_&&_!==-1)&&e({id:x,styleId:_,set:{property:g,value:y,priority:w},index:Sl(f.parentRule)}),d.apply(f,h)})});const c=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Le((d,f,h)=>{const[g]=h;if(n.has(g))return c.apply(f,[g]);const{id:y,styleId:w}=Ar(kn([f,"access",x=>x.parentRule,"optionalAccess",x=>x.parentStyleSheet]),t,s.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,remove:{property:g},index:Sl(f.parentRule)}),d.apply(f,h)})}),Le(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c})}function R2({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:s,mirror:i,sampling:a,doc:c}){const d=Le(h=>wi(Le(g=>{const y=Ei(g);if(!y||sn(y,t,n,s,!0))return;const{currentTime:w,volume:x,muted:_,playbackRate:E}=y;e({type:h,id:i.getId(y),currentTime:w,volume:x,muted:_,playbackRate:E})}),a.media||500)),f=[Dt("play",d(0),c),Dt("pause",d(1),c),Dt("seeked",d(2),c),Dt("volumechange",d(3),c),Dt("ratechange",d(4),c)];return Le(()=>{f.forEach(h=>h())})}function A2({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const s=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(f,h,g){const y=new a(f,h,g);return i.set(y,{family:f,buffer:typeof h!="string",descriptors:g,fontSource:typeof h=="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))}),y};const c=Bd(t.fonts,"add",function(d){return function(f){return vl(Le(()=>{const h=i.get(f);h&&(e(h),i.delete(f))}),0),d.apply(this,[f])}});return s.push(()=>{n.FontFace=a}),s.push(c),Le(()=>{s.forEach(d=>d())})}function O2(e){const{doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,selectionCb:c}=e;let d=!0;const f=Le(()=>{const h=t.getSelection();if(!h||d&&kn([h,"optionalAccess",w=>w.isCollapsed]))return;d=h.isCollapsed||!1;const g=[],y=h.rangeCount||0;for(let w=0;w<y;w++){const x=h.getRangeAt(w),{startContainer:_,startOffset:E,endContainer:k,endOffset:A}=x;sn(_,s,i,a,!0)||sn(k,s,i,a,!0)||g.push({start:n.getId(_),startOffset:E,end:n.getId(k),endOffset:A})}c({ranges:g})});return f(),Dt("selectionchange",f)}function P2({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Bd(n.customElements,"define",function(i){return function(a,c,d){try{t({define:{name:a}})}catch{}return i.apply(this,[a,c,d])}})}function N2(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let s;e.recordDOM&&(s=x0(e,e.doc));const i=E2(e),a=x2(e),c=k0(e),d=k2(e,{win:n}),f=b2(e),h=R2(e);let g=()=>{},y=()=>{},w=()=>{},x=()=>{};e.recordDOM&&(g=I2(e,{win:n}),y=b0(e,e.doc),w=C2(e,{win:n}),e.collectFonts&&(x=A2(e)));const _=O2(e),E=P2(e),k=[];for(const A of e.plugins)k.push(A.observer(A.callback,n,A.options));return Le(()=>{yo.forEach(A=>A.reset()),kn([s,"optionalAccess",A=>A.disconnect,"call",A=>A()]),i(),a(),c(),d(),f(),h(),g(),y(),w(),x(),_(),E(),k.forEach(A=>A())})}function wl(e){return typeof window[e]<"u"}function _l(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Gd{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,s,i){const a=s||this.getIdToRemoteIdMap(t),c=i||this.getRemoteIdToIdMap(t);let d=a.get(n);return d||(d=this.generateIdFn(),a.set(n,d),c.set(d,n)),d}getIds(t,n){const s=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,s,i))}getRemoteId(t,n,s){const i=s||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=i.get(n);return a||-1}getRemoteIds(t,n){const s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,s))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function I0(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}class M2{constructor(){this.crossOriginIframeMirror=new Gd(Fd),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class L2{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Gd(Fd),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Gd(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),I0([this,"access",i=>i.loadListener,"optionalCall",i=>i(t)]);const s=qd(t);s&&s.adoptedStyleSheets&&s.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(s.adoptedStyleSheets,this.mirror.getId(s))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ie.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:Ie.IncrementalSnapshot,data:{source:ve.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ie.Meta:case Ie.Load:case Ie.DomContentLoaded:return!1;case Ie.Plugin:return n;case Ie.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ie.IncrementalSnapshot:switch(n.data.source){case ve.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}),n.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case ve.Drag:case ve.TouchMove:case ve.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case ve.ViewportResize:return!1;case ve.MediaInteraction:case ve.MouseInteraction:case ve.Scroll:case ve.CanvasMutation:case ve.Input:return this.replaceIds(n.data,t,["id"]),n;case ve.StyleSheetRule:case ve.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case ve.Font:return n;case ve.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case ve.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),I0([n,"access",s=>s.data,"access",s=>s.styles,"optionalAccess",s=>s.forEach,"call",s=>s(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,s,i){for(const a of i)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(s,n[a]):n[a]=t.getId(s,n[a]));return n}replaceIds(t,n,s){return this.replace(this.crossOriginIframeMirror,t,n,s)}replaceStyleIds(t,n,s){return this.replace(this.crossOriginIframeStyleMirror,t,n,s)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(s=>{this.replaceIdOnNode(s,n)})}patchRootIdOnNode(t,n){t.type!==pt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,n)})}}class j2{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class D2{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!yi(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const s=x0({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(k0({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),vl(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(b0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=qd(t),s=m2(t);!n||!s||this.patchAttachShadow(s.Element,n)}patchAttachShadow(t,n){const s=this;this.restoreHandlers.push(Bd(t.prototype,"attachShadow",function(i){return function(a){const c=i.call(this,a);return this.shadowRoot&&h0(this)&&s.addShadowRoot(this.shadowRoot,n),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class C0{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class $2{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new u2,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const s={id:n,styleIds:[]},i=[];for(const a of t){let c;this.styleMirror.has(a)?c=this.styleMirror.getId(a):(c=this.styleMirror.add(a),i.push({styleId:c,rules:Array.from(a.rules||CSSRule,(d,f)=>({rule:Vy(d),index:f}))})),s.styleIds.push(c)}i.length>0&&(s.styles=i),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class F2{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const s=this.nodeMap.get(t);return s&&Array.from(s).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,p2(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let nt,El;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Za([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Tn=$R();function cr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:f=null,maskAllText:h=!1,maskTextClass:g="rr-mask",unmaskTextClass:y=null,maskTextSelector:w=null,unmaskTextSelector:x=null,inlineStylesheet:_=!0,maskAllInputs:E,maskInputOptions:k,slimDOMOptions:A,maskAttributeFn:L,maskInputFn:j,maskTextFn:K,maxCanvasSize:H=null,packFn:O,sampling:C={},dataURLOptions:W={},mousemoveWait:F,recordDOM:U=!0,recordCanvas:J=!1,recordCrossOriginIframes:Z=!1,recordAfter:ue=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:me=!1,collectFonts:De=!1,inlineImages:te=!1,plugins:Se,keepIframeSrcFn:q=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:ne,onMutation:P,getCanvasManager:V}=e;w2(ne);const we=Z?window.parent===window:!0;let Ee=!1;if(!we)try{window.parent.document&&(Ee=!1)}catch{Ee=!0}if(we&&!t)throw new Error("emit function is required");if(!we&&!Ee)return()=>{};F!==void 0&&C.mousemove===void 0&&(C.mousemove=F),Tn.reset();const Pe=E===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:k!==void 0?k:{},Ne=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:A==="all",headMetaDescKeywords:A==="all"}:A||{};c2();let Ue,$e=0;const We=Ae=>{for(const wt of Se||[])wt.eventProcessor&&(Ae=wt.eventProcessor(Ae));return O&&!Ee&&(Ae=O(Ae)),Ae};nt=(Ae,wt)=>{const Re=Ae;if(Re.timestamp=yl(),Za([yo,"access",Ye=>Ye[0],"optionalAccess",Ye=>Ye.isFrozen,"call",Ye=>Ye()])&&Re.type!==Ie.FullSnapshot&&!(Re.type===Ie.IncrementalSnapshot&&Re.data.source===ve.Mutation)&&yo.forEach(Ye=>Ye.unfreeze()),we)Za([t,"optionalCall",Ye=>Ye(We(Re),wt)]);else if(Ee){const Ye={type:"rrweb",event:We(Re),origin:window.location.origin,isCheckout:wt};window.parent.postMessage(Ye,"*")}if(Re.type===Ie.FullSnapshot)Ue=Re,$e=0;else if(Re.type===Ie.IncrementalSnapshot){if(Re.data.source===ve.Mutation&&Re.data.isAttachIframe)return;$e++;const Ye=s&&$e>=s,je=n&&Ue&&Re.timestamp-Ue.timestamp>n;(Ye||je)&&Os(!0)}};const St=Ae=>{nt({type:Ie.IncrementalSnapshot,data:{source:ve.Mutation,...Ae}})},Cs=Ae=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.Scroll,...Ae}}),lc=Ae=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.CanvasMutation,...Ae}}),Io=Ae=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.AdoptedStyleSheet,...Ae}}),Rn=new $2({mutationCb:St,adoptedStyleSheetCb:Io}),Gn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new M2:new L2({mirror:Tn,mutationCb:St,stylesheetManager:Rn,recordCrossOriginIframes:Z,wrappedEmit:nt});for(const Ae of Se||[])Ae.getMirror&&Ae.getMirror({nodeMirror:Tn,crossOriginIframeMirror:Gn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Gn.crossOriginIframeStyleMirror});const Co=new F2,Rs=z2(V,{mirror:Tn,win:window,mutationCb:Ae=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.CanvasMutation,...Ae}}),recordCanvas:J,blockClass:i,blockSelector:a,unblockSelector:c,maxCanvasSize:H,sampling:C.canvas,dataURLOptions:W,errorHandler:ne}),As=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new j2:new D2({mutationCb:St,scrollCb:Cs,bypassOptions:{onMutation:P,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:h,maskTextClass:g,unmaskTextClass:y,maskTextSelector:w,unmaskTextSelector:x,inlineStylesheet:_,maskInputOptions:Pe,dataURLOptions:W,maskAttributeFn:L,maskTextFn:K,maskInputFn:j,recordCanvas:J,inlineImages:te,sampling:C,slimDOMOptions:Ne,iframeManager:Gn,stylesheetManager:Rn,canvasManager:Rs,keepIframeSrcFn:q,processedNodeManager:Co},mirror:Tn}),Os=(Ae=!1)=>{if(!U)return;nt({type:Ie.Meta,data:{href:window.location.href,width:l0(),height:a0()}},Ae),Rn.reset(),As.init(),yo.forEach(Re=>Re.lock());const wt=a2(document,{mirror:Tn,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:h,maskTextClass:g,unmaskTextClass:y,maskTextSelector:w,unmaskTextSelector:x,inlineStylesheet:_,maskAllInputs:Pe,maskAttributeFn:L,maskInputFn:j,maskTextFn:K,slimDOM:Ne,dataURLOptions:W,recordCanvas:J,inlineImages:te,onSerialize:Re=>{d0(Re,Tn)&&Gn.addIframe(Re),f0(Re,Tn)&&Rn.trackLinkElement(Re),Hd(Re)&&As.addShadowRoot(Re.shadowRoot,document)},onIframeLoad:(Re,Ye)=>{Gn.attachIframe(Re,Ye),Re.contentWindow&&Rs.addWindow(Re.contentWindow),As.observeAttachShadow(Re)},onStylesheetLoad:(Re,Ye)=>{Rn.attachLinkElement(Re,Ye)},keepIframeSrcFn:q});if(!wt)return console.warn("Failed to snapshot the document");nt({type:Ie.FullSnapshot,data:{node:wt,initialOffset:i0(window)}}),yo.forEach(Re=>Re.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Rn.adoptStyleSheets(document.adoptedStyleSheets,Tn.getId(document))};El=Os;try{const Ae=[],wt=Ye=>Le(N2)({onMutation:P,mutationCb:St,mousemoveCb:(je,Yn)=>nt({type:Ie.IncrementalSnapshot,data:{source:Yn,positions:je}}),mouseInteractionCb:je=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.MouseInteraction,...je}}),scrollCb:Cs,viewportResizeCb:je=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.ViewportResize,...je}}),inputCb:je=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.Input,...je}}),mediaInteractionCb:je=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.MediaInteraction,...je}}),styleSheetRuleCb:je=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.StyleSheetRule,...je}}),styleDeclarationCb:je=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.StyleDeclaration,...je}}),canvasMutationCb:lc,fontCb:je=>nt({type:Ie.IncrementalSnapshot,data:{source:ve.Font,...je}}),selectionCb:je=>{nt({type:Ie.IncrementalSnapshot,data:{source:ve.Selection,...je}})},customElementCb:je=>{nt({type:Ie.IncrementalSnapshot,data:{source:ve.CustomElement,...je}})},blockClass:i,ignoreClass:d,ignoreSelector:f,maskAllText:h,maskTextClass:g,unmaskTextClass:y,maskTextSelector:w,unmaskTextSelector:x,maskInputOptions:Pe,inlineStylesheet:_,sampling:C,recordDOM:U,recordCanvas:J,inlineImages:te,userTriggeredOnInput:me,collectFonts:De,doc:Ye,maskAttributeFn:L,maskInputFn:j,maskTextFn:K,keepIframeSrcFn:q,blockSelector:a,unblockSelector:c,slimDOMOptions:Ne,dataURLOptions:W,mirror:Tn,iframeManager:Gn,stylesheetManager:Rn,shadowDomManager:As,processedNodeManager:Co,canvasManager:Rs,ignoreCSSAttributes:oe,plugins:Za([Se,"optionalAccess",je=>je.filter,"call",je=>je(Yn=>Yn.observer),"optionalAccess",je=>je.map,"call",je=>je(Yn=>({observer:Yn.observer,options:Yn.options,callback:cc=>nt({type:Ie.Plugin,data:{plugin:Yn.name,payload:cc}})}))])||[]},{});Gn.addLoadListener(Ye=>{try{Ae.push(wt(Ye.contentDocument))}catch(je){console.warn(je)}});const Re=()=>{Os(),Ae.push(wt(document))};return document.readyState==="interactive"||document.readyState==="complete"?Re():(Ae.push(Dt("DOMContentLoaded",()=>{nt({type:Ie.DomContentLoaded,data:{}}),ue==="DOMContentLoaded"&&Re()})),Ae.push(Dt("load",()=>{nt({type:Ie.Load,data:{}}),ue==="load"&&Re()},window))),()=>{Ae.forEach(Ye=>Ye()),Co.destroy(),El=void 0,_2()}}catch(Ae){console.warn(Ae)}}function B2(e){if(!El)throw new Error("please take full snapshot after start recording");El(e)}cr.mirror=Tn,cr.takeFullSnapshot=B2;function z2(e,t){try{return e?e(t):new C0}catch{return console.warn("Unable to initialize CanvasManager"),new C0}}const U2=3,H2=5;function Yd(e){return e>9999999999?e:e*1e3}function Kd(e){return e>9999999999?e/1e3:e}function xi(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ie.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:En(t,10,1e3)}}),t.category==="console")))}const W2="button,a";function R0(e){return e.closest(W2)||e}function A0(e){const t=O0(e);return!t||!(t instanceof Element)?t:R0(t)}function O0(e){return q2(e)?e.target:e}function q2(e){return typeof e=="object"&&!!e&&"target"in e}let Or;function V2(e){return Or||(Or=[],G2()),Or.push(e),()=>{const t=Or?Or.indexOf(e):-1;t>-1&&Or.splice(t,1)}}function G2(){qt(Ve,"open",function(e){return function(...t){if(Or)try{Or.forEach(n=>n())}catch{}return e.apply(Ve,t)}})}const Y2=new Set([ve.Mutation,ve.StyleSheetRule,ve.StyleDeclaration,ve.AdoptedStyleSheet,ve.CanvasMutation,ve.Selection,ve.MediaInteraction]);function K2(e,t,n){e.handleClick(t,n)}class Q2{constructor(t,n,s=xi){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=s}addListeners(){const t=V2(()=>{this._lastMutation=P0()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(J2(n,this._ignoreSelector)||!Z2(t))return;const s={timestamp:Kd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===s.node&&Math.abs(i.timestamp-s.timestamp)<1)||(this._clicks.push(s),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Kd(t)}registerScroll(t=Date.now()){this._lastScroll=Kd(t)}registerClick(t){const n=R0(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=P0();this._clicks.forEach(s=>{!s.mutationAfter&&this._lastMutation&&(s.mutationAfter=s.timestamp<=this._lastMutation?this._lastMutation-s.timestamp:void 0),!s.scrollAfter&&this._lastScroll&&(s.scrollAfter=s.timestamp<=this._lastScroll?this._lastScroll-s.timestamp:void 0),s.timestamp+this._timeout<=n&&t.push(s)});for(const s of t){const i=this._clicks.indexOf(s);i>-1&&(this._generateBreadcrumbs(s),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,s=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!s&&!i,{clickCount:c,clickBreadcrumb:d}=t;if(a){const f=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,h=f<this._timeout*1e3?"mutation":"timeout",g={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.slowClickDetected",data:{...d.data,url:Ve.location.href,route:n.getCurrentRoute(),timeAfterClickMs:f,endReason:h,clickCount:c||1}};this._addBreadcrumbEvent(n,g);return}if(c>1){const f={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.multiClick",data:{...d.data,url:Ve.location.href,route:n.getCurrentRoute(),clickCount:c,metric:!0}};this._addBreadcrumbEvent(n,f)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=lo(()=>this._checkClicks(),1e3)}}const X2=["A","BUTTON","INPUT"];function J2(e,t){return!!(!X2.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function Z2(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function P0(){return Date.now()/1e3}function eA(e,t){try{if(!tA(t))return;const{source:n}=t.data;if(Y2.has(n)&&e.registerMutation(t.timestamp),n===ve.Scroll&&e.registerScroll(t.timestamp),nA(t)){const{type:s,id:i}=t.data,a=cr.mirror.getNode(i);a instanceof HTMLElement&&s===$t.Click&&e.registerClick(a)}}catch{}}function tA(e){return e.type===U2}function nA(e){return e.data.source===ve.MouseInteraction}function Un(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var xl;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(xl||(xl={}));const rA=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function sA(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(rA.has(n)){let s=n;(n==="data-testid"||n==="data-test-id")&&(s="testId"),t[s]=e[n]}return t}const oA=e=>t=>{if(!e.isEnabled())return;const n=iA(t);if(!n)return;const s=t.name==="click",i=s?t.event:void 0;s&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&K2(e.clickDetector,n,A0(t.event)),xi(e,n)};function N0(e,t){const n=cr.mirror.getId(e),s=n&&cr.mirror.getNode(n),i=s&&cr.mirror.getMeta(s),a=i&&lA(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(c=>c.type===xl.Text&&c.textContent).filter(Boolean).map(c=>c.trim()).join(""),attributes:sA(a.attributes)}}:{}}}function iA(e){const{target:t,message:n}=aA(e);return Un({category:`ui.${e.name}`,...N0(t,n)})}function aA(e){const t=e.name==="click";let n,s=null;try{s=t?A0(e.event):O0(e.event),n=rr(s,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:s,message:n}}function lA(e){return e.type===xl.Element}function cA(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=uA(t);n&&xi(e,n)}function uA(e){const{metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a,target:c}=e;if(!c||dA(c)||!a)return null;const d=t||s||i,f=a.length===1;if(!d&&f)return null;const h=rr(c,{maxStringLength:200})||"<unknown>",g=N0(c,h);return Un({category:"ui.keyDown",message:h,data:{...g.data,metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a}})}function dA(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const fA={resource:yA,paint:mA,navigation:gA};function kl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function pA(e){return e.map(hA).filter(Boolean)}function hA(e){const t=fA[e.entryType];return t?t(e):null}function vo(e){return((jt||Ve.performance.timeOrigin)+e)/1e3}function mA(e){const{duration:t,entryType:n,name:s,startTime:i}=e,a=vo(i);return{type:n,name:s,start:a,end:a+t,data:void 0}}function gA(e){const{entryType:t,name:n,decodedBodySize:s,duration:i,domComplete:a,encodedBodySize:c,domContentLoadedEventStart:d,domContentLoadedEventEnd:f,domInteractive:h,loadEventStart:g,loadEventEnd:y,redirectCount:w,startTime:x,transferSize:_,type:E}=e;return i===0?null:{type:`${t}.${E}`,start:vo(x),end:vo(a),name:n,data:{size:_,decodedBodySize:s,encodedBodySize:c,duration:i,domInteractive:h,domContentLoadedEventStart:d,domContentLoadedEventEnd:f,loadEventStart:g,loadEventEnd:y,domComplete:a,redirectCount:w}}}function yA(e){const{entryType:t,initiatorType:n,name:s,responseEnd:i,startTime:a,decodedBodySize:c,encodedBodySize:d,responseStatus:f,transferSize:h}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:vo(a),end:vo(i),name:s,data:{size:h,statusCode:f,decodedBodySize:c,encodedBodySize:d}}}function vA(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return Tl(e,"largest-contentful-paint",n)}function SA(e){return e.sources!==void 0}function wA(e){const t=[],n=[];for(const s of e.entries)if(SA(s)){const i=[];for(const a of s.sources)if(a.node){n.push(a.node);const c=cr.mirror.getId(a.node);c&&i.push(c)}t.push({value:s.value,nodeIds:i.length?i:void 0})}return Tl(e,"cumulative-layout-shift",n,t)}function _A(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Tl(e,"first-input-delay",n)}function EA(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Tl(e,"interaction-to-next-paint",n)}function Tl(e,t,n,s){const i=e.value,a=e.rating,c=vo(i);return{type:"web-vital",name:t,start:c,end:c,data:{value:i,size:i,rating:a,nodeIds:n?n.map(d=>cr.mirror.getId(d)):void 0,attributions:s}}}function xA(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const s=[];return["navigation","paint","resource"].forEach(i=>{s.push(io(i,n))}),s.push(by(kl(vA,e)),kd(kl(wA,e)),Iy(kl(_A,e)),Cy(kl(EA,e))),()=>{s.forEach(i=>i())}}const he=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kA='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function TA(){const e=new Blob([kA]);return URL.createObjectURL(e)}const M0=["info","warn","error","log"],bl="[Replay] ";function Qd(e,t="info"){Cr({category:"console",data:{logger:"replay"},level:t,message:`${bl}${e}`},{level:t})}function bA(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:s=>{e=s.captureExceptions,t=s.traceInternals}};return he?(M0.forEach(s=>{n[s]=(...i)=>{ee[s](bl,...i),t&&Qd(i.join(""),iy(s))}}),n.exception=(s,...i)=>{i.length&&n.error&&n.error(...i),ee.error(bl,s),e?xn(s):t&&Qd(s,"error")},n.infoTick=(...s)=>{ee.info(bl,...s),t&&setTimeout(()=>Qd(s[0]),0)}):M0.forEach(s=>{n[s]=()=>{}}),n}const ge=bA();class Xd extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Md}.`)}}class L0{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Md)throw new Xd;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Yd(t):null}}class IA{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:s})=>{s.success?t():n()},{once:!0}),this._worker.addEventListener("error",s=>{n(s)},{once:!0})}),this._ensureReadyPromise)}destroy(){he&&ge.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const s=this._getAndIncrementId();return new Promise((i,a)=>{const c=({data:d})=>{const f=d;if(f.method===t&&f.id===s){if(this._worker.removeEventListener("message",c),!f.success){he&&ge.error("Error in compression worker: ",f.response),a(new Error("Error in compression worker"));return}i(f.response)}};this._worker.addEventListener("message",c),this._worker.postMessage({id:s,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class CA{constructor(t){this._worker=new IA(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Yd(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const s=JSON.stringify(t);return this._totalSize+=s.length,this._totalSize>Md?Promise.reject(new Xd):this._sendEventToWorker(s)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{he&&ge.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class RA{constructor(t){this._fallback=new L0,this._compression=new CA(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){he&&ge.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:s}=this._fallback,i=[];for(const a of t)i.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._compression.waitForCheckout=s,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(a){he&&ge.exception(a,"Failed to add events when switching buffers.")}}}function AA({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=OA(t);if(n)return n}return he&&ge.info("Using simple buffer"),new L0}function OA(e){try{const t=e||PA();if(!t)return;he&&ge.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new RA(n)}catch(t){he&&ge.exception(t,"Failed to create compression worker")}}function PA(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?TA():""}function Jd(){try{return"sessionStorage"in Ve&&!!Ve.sessionStorage}catch{return!1}}function NA(e){MA(),e.session=void 0}function MA(){if(Jd())try{Ve.sessionStorage.removeItem(Pd)}catch{}}function j0(e){return e===void 0?!1:Math.random()<e}function D0(e){const t=Date.now(),n=e.id||rn(),s=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,c=e.sampled,d=e.previousSessionId;return{id:n,started:s,lastActivity:i,segmentId:a,sampled:c,previousSessionId:d}}function Zd(e){if(Jd())try{Ve.sessionStorage.setItem(Pd,JSON.stringify(e))}catch{}}function LA(e,t){return j0(e)?"session":t?"buffer":!1}function $0({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:s}={}){const i=LA(e,t),a=D0({sampled:i,previousSessionId:s});return n&&Zd(a),a}function jA(){if(!Jd())return null;try{const e=Ve.sessionStorage.getItem(Pd);if(!e)return null;const t=JSON.parse(e);return he&&ge.infoTick("Loading existing session"),D0(t)}catch{return null}}function ef(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function F0(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:s=Date.now()}){return ef(e.started,t,s)||ef(e.lastActivity,n,s)}function B0(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!F0(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function tf({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},s){const i=s.stickySession&&jA();return i?B0(i,{sessionIdleExpire:e,maxReplayDuration:t})?(he&&ge.infoTick("Session in sessionStorage is expired, creating new one..."),$0(s,{previousSessionId:i.id})):i:(he&&ge.infoTick("Creating new session"),$0(s,{previousSessionId:n}))}function DA(e){return e.type===Ie.Custom}function nf(e,t,n){return U0(e,t)?(z0(e,t,n),!0):!1}function $A(e,t,n){return U0(e,t)?z0(e,t,n):Promise.resolve(null)}async function z0(e,t,n){const{eventBuffer:s}=e;if(!s||s.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&s.clear(),n&&(s.hasCheckout=!0,s.waitForCheckout=!1);const a=e.getOptions(),c=FA(t,a.beforeAddRecordingEvent);return c?await s.addEvent(c):void 0}catch(a){const c=a&&a instanceof Xd,d=c?"addEventSizeExceeded":"addEvent";if(c&&i)return s.clear(),s.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:d});const f=Oe();f&&f.recordDroppedEvent("internal_sdk_error","replay")}}function U0(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Yd(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(he&&ge.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function FA(e,t){try{if(typeof t=="function"&&DA(e))return t(e)}catch(n){return he&&ge.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function rf(e){return!e.type}function sf(e){return e.type==="transaction"}function BA(e){return e.type==="replay_event"}function H0(e){return e.type==="feedback"}function zA(e){return(t,n)=>{if(!e.isEnabled()||!rf(t)&&!sf(t))return;const s=n&&n.statusCode;if(!(!s||s<200||s>=300)){if(sf(t)){UA(e,t);return}HA(e,t)}}}function UA(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function HA(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:s}=e.getOptions();typeof s=="function"&&!s(t)||lo(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function WA(e){return t=>{!e.isEnabled()||!rf(t)||qA(e,t)}}function qA(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const s=Un({category:"replay.hydrate-error",data:{url:zm()}});xi(e,s)}}function VA(e){const t=Oe();t&&t.on("beforeAddBreadcrumb",n=>GA(e,n))}function GA(e,t){if(!e.isEnabled()||!W0(t))return;const n=YA(t);n&&xi(e,n)}function YA(e){return!W0(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?KA(e):Un(e)}function KA(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Un(e);let n=!1;const s=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>dl?(n=!0,`${i.slice(0,dl)}…`):i;if(typeof i=="object")try{const a=En(i,7);return JSON.stringify(a).length>dl?(n=!0,`${JSON.stringify(a,null,2).slice(0,dl)}…`):a}catch{}return i});return Un({...e,data:{...e.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function W0(e){return!!e.category}function QA(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function q0(){const e=qe().getPropagationContext().dsc;e&&delete e.replay_id;const t=vt();if(t){const n=gs(t);delete n.replay_id}}function XA(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ie.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function JA(e,t){return e.recordingMode!=="buffer"||t.message===Nd||!t.exception||t.type?!1:j0(e.getOptions().errorSampleRate)}function ZA(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:BA(t)?(delete t.breadcrumbs,t):!rf(t)&&!sf(t)&&!H0(t)?t:e.checkAndHandleExpiredSession()?H0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),XA(e,t),t):QA(t,n)&&!e.getOptions()._experiments.captureExceptions?(he&&ge.log("Ignoring error from rrweb internals",t),null):((JA(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(q0(),t),{id:"Replay"})}function Il(e,t){return t.map(({type:n,start:s,end:i,name:a,data:c})=>{const d=e.throttledAddEvent({type:Ie.Custom,timestamp:s,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:s,endTimestamp:i,data:c}}});return typeof d=="string"?Promise.resolve(null):d})}function eO(e){const{from:t,to:n}=e,s=Date.now()/1e3;return{type:"navigation.push",start:s,end:s,name:n,data:{previous:t}}}function tO(e){return t=>{if(!e.isEnabled())return;const n=eO(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Il(e,[n]),!1)))}}function nO(e,t){return he&&e.getOptions()._experiments.traceInternals?!1:db(t,Oe())}function V0(e,t){e.isEnabled()&&t!==null&&(nO(e,t.name)||e.addUpdate(()=>(Il(e,[t]),!0)))}function Cl(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Q0(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function G0(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Y0(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Q0(e)];if(!e)return[void 0]}catch(t){return he&&ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return he&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Rl(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},s=n.warnings||[];return n.warnings=[...s,t],e._meta=n,e}function K0(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:s,url:i,method:a,statusCode:c,request:d,response:f}=t;return{type:e,start:n/1e3,end:s/1e3,name:i,data:ft({method:a,statusCode:c,request:d,response:f})}}function ki(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Pr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const s={headers:e,size:t},{body:i,warnings:a}=rO(n);return s.body=i,a&&a.length>0&&(s._meta={warnings:a}),s}function of(e,t){return Object.entries(e).reduce((n,[s,i])=>{const a=s.toLowerCase();return t.includes(a)&&e[s]&&(n[a]=i),n},{})}function Q0(e){return new URLSearchParams(e).toString()}function rO(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Wy,n=sO(e);if(t){const s=e.slice(0,Wy);return n?{body:s,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${s}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function sO(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Al(e,t){const n=oO(e);return xr(n,t)}function oO(e,t=Ve.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ve.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const s=n.href;return!e.endsWith("/")&&s.endsWith("/")?s.slice(0,-1):s}async function iO(e,t,n){try{const s=await lO(e,t,n),i=K0("resource.fetch",s);V0(n.replay,i)}catch(s){he&&ge.exception(s,"Failed to capture fetch breadcrumb")}}function aO(e,t){const{input:n,response:s}=t,i=n?X0(n):void 0,a=Cl(i),c=s?G0(s.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),c!==void 0&&(e.data.response_body_size=c)}async function lO(e,t,n){const s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s}=t,{url:c,method:d,status_code:f=0,request_body_size:h,response_body_size:g}=e.data,y=Al(c,n.networkDetailAllowUrls)&&!Al(c,n.networkDetailDenyUrls),w=y?cO(n,t.input,h):ki(h),x=await uO(y,n,t.response,g);return{startTimestamp:i,endTimestamp:a,url:c,method:d,statusCode:f,request:w,response:x}}function cO({networkCaptureBodies:e,networkRequestHeaders:t},n,s){const i=n?pO(n,t):{};if(!e)return Pr(i,s,void 0);const a=X0(n),[c,d]=Y0(a),f=Pr(i,s,c);return d?Rl(f,d):f}async function uO(e,{networkCaptureBodies:t,networkResponseHeaders:n},s,i){if(!e&&i!==void 0)return ki(i);const a=s?J0(s.headers,n):{};if(!s||!t&&i!==void 0)return Pr(a,i,void 0);const[c,d]=await fO(s),f=dO(c,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return d?Rl(f,d):f}function dO(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:s,headers:i}){try{const a=e&&e.length&&n===void 0?Cl(e):n;return s?t?Pr(i,a,e):Pr(i,a,void 0):ki(a)}catch(a){return he&&ge.exception(a,"Failed to serialize response body"),Pr(i,n,void 0)}}async function fO(e){const t=hO(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await mO(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(he&&ge.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(he&&ge.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function X0(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function J0(e,t){const n={};return t.forEach(s=>{e.get(s)&&(n[s]=e.get(s))}),n}function pO(e,t){return e.length===1&&typeof e[0]!="string"?Z0(e[0],t):e.length===2?Z0(e[1],t):{}}function Z0(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?J0(n,t):Array.isArray(n)?{}:of(n,t):{}}function hO(e){try{return e.clone()}catch(t){he&&ge.exception(t,"Failed to clone response body")}}function mO(e){return new Promise((t,n)=>{const s=lo(()=>n(new Error("Timeout while trying to read response body")),500);gO(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(s))})}async function gO(e){return await e.text()}async function yO(e,t,n){try{const s=SO(e,t,n),i=K0("resource.xhr",s);V0(n.replay,i)}catch(s){he&&ge.exception(s,"Failed to capture xhr breadcrumb")}}function vO(e,t){const{xhr:n,input:s}=t;if(!n)return;const i=Cl(s),a=n.getResponseHeader("content-length")?G0(n.getResponseHeader("content-length")):xO(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function SO(e,t,n){const s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s,input:c,xhr:d}=t,{url:f,method:h,status_code:g=0,request_body_size:y,response_body_size:w}=e.data;if(!f)return null;if(!d||!Al(f,n.networkDetailAllowUrls)||Al(f,n.networkDetailDenyUrls)){const O=ki(y),C=ki(w);return{startTimestamp:i,endTimestamp:a,url:f,method:h,statusCode:g,request:O,response:C}}const x=d[ws],_=x?of(x.request_headers,n.networkRequestHeaders):{},E=of(wO(d),n.networkResponseHeaders),[k,A]=n.networkCaptureBodies?Y0(c):[void 0],[L,j]=n.networkCaptureBodies?_O(d):[void 0],K=Pr(_,y,k),H=Pr(E,w,L);return{startTimestamp:i,endTimestamp:a,url:f,method:h,statusCode:g,request:A?Rl(K,A):K,response:j?Rl(H,j):H}}function wO(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
`).reduce((n,s)=>{const[i,a]=s.split(": ");return a&&(n[i.toLowerCase()]=a),n},{}):{}}function _O(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return EO(e.response,e.responseType)}catch(n){t.push(n)}return he&&ge.warn("Failed to get xhr response body",...t),[void 0]}function EO(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return he&&ge.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return he&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function xO(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Cl(n)}catch{return}}function kO(e){const t=Oe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:c}=e.getOptions(),d={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:c};t&&t.on("beforeAddBreadcrumb",(f,h)=>TO(d,f,h))}catch{}}function TO(e,t,n){if(t.data)try{bO(t)&&CO(n)&&(vO(t,n),yO(t,n,e)),IO(t)&&RO(n)&&(aO(t,n),iO(t,n,e))}catch(s){he&&ge.exception(s,"Error when enriching network breadcrumb")}}function bO(e){return e.category==="xhr"}function IO(e){return e.category==="fetch"}function CO(e){return e&&e.xhr}function RO(e){return e&&e.response}function AO(e){const t=Oe();My(oA(e)),al(tO(e)),VA(e),kO(e);const n=ZA(e);WT(n),t&&(t.on("beforeSendEvent",WA(e)),t.on("afterSendEvent",zA(e)),t.on("createDsc",s=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(s.replay_id=i)}),t.on("spanStart",s=>{e.lastActiveSpan=s}),t.on("spanEnd",s=>{e.lastActiveSpan=s}),t.on("beforeSendFeedback",(s,i)=>{const a=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&a&&s.contexts&&s.contexts.feedback&&(s.contexts.feedback.replay_id=a)}))}async function OO(e){try{return Promise.all(Il(e,[PO(Ve.performance.memory)]))}catch{return[]}}function PO(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}}}}function NO(e,t,n){let s,i,a;const c=n&&n.maxWait?Math.max(n.maxWait,t):0;function d(){return f(),s=e(),s}function f(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function h(){return i!==void 0||a!==void 0?d():s}function g(){return i&&clearTimeout(i),i=lo(d,t),c&&a===void 0&&(a=lo(d,c)),s}return g.cancel=f,g.flush=h,g}const Es=Me.navigator;function MO(){return/iPhone|iPad|iPod/i.test(Es&&Es.userAgent||"")||/Macintosh/i.test(Es&&Es.userAgent||"")&&Es&&Es.maxTouchPoints&&Es.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function LO(e){let t=!1;return(n,s)=>{if(!e.checkAndHandleExpiredSession()){he&&ge.warn("Received replay event after session expired.");return}const i=s||!t;t=!0,e.clickDetector&&eA(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!nf(e,n,i))return!0;if(!i)return!1;const a=e.session;if(DO(e,i),e.recordingMode==="buffer"&&a&&e.eventBuffer){const c=e.eventBuffer.getEarliestTimestamp();c&&(he&&ge.info(`Updating session start time to earliest event in buffer to ${new Date(c)}`),a.started=c,e.getOptions().stickySession&&Zd(a))}return a&&a.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function jO(e){const t=e.getOptions();return{type:Ie.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function DO(e,t){!t||!e.session||e.session.segmentId!==0||nf(e,jO(e),!1)}function $O(e,t,n,s){return ys(Tg(e,od(e),s,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function FO({recordingData:e,headers:t}){let n;const s=`${JSON.stringify(t)}
`;if(typeof e=="string")n=`${s}${e}`;else{const a=new TextEncoder().encode(s);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function BO({client:e,scope:t,replayId:n,event:s}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:i};e.emit("preprocessEvent",s,a);const c=await Dg(e.getOptions(),s,a,t,e,_n());if(!c)return null;c.platform=c.platform||"javascript";const d=e.getSdkMetadata(),{name:f,version:h}=d&&d.sdk||{};return c.sdk={...c.sdk,name:f||"sentry.javascript.unknown",version:h||"0.0.0"},c}async function zO({recordingData:e,replayId:t,segmentId:n,eventContext:s,timestamp:i,session:a}){const c=FO({recordingData:e,headers:{segment_id:n}}),{urls:d,errorIds:f,traceIds:h,initialTimestamp:g}=s,y=Oe(),w=qe(),x=y&&y.getTransport(),_=y&&y.getDsn();if(!y||!x||!_||!a.sampled)return or({});const E={type:SR,replay_start_timestamp:g/1e3,timestamp:i/1e3,error_ids:f,trace_ids:h,urls:d,replay_id:t,segment_id:n,replay_type:a.sampled},k=await BO({scope:w,client:y,replayId:t,event:E});if(!k)return y.recordDroppedEvent("event_processor","replay",E),he&&ge.info("An event processor returned `null`, will not send event."),or({});delete k.sdkProcessingMetadata;const A=$O(k,c,_,y.getOptions().tunnel);let L;try{L=await x.send(A)}catch(K){const H=new Error(Nd);try{H.cause=K}catch{}throw H}if(typeof L.statusCode=="number"&&(L.statusCode<200||L.statusCode>=300))throw new e1(L.statusCode);const j=Xg({},L);if(Qg(j,"replay"))throw new af(j);return L}class e1 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class af extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function t1(e,t={count:0,interval:TR}){const{recordingData:n,onError:s}=e;if(n.length)try{return await zO(e),!0}catch(i){if(i instanceof e1||i instanceof af)throw i;if(Fg("Replays",{_retryCount:t.count}),s&&s(i),t.count>=bR){const a=new Error(`${Nd} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,c)=>{lo(async()=>{try{await t1(e,t),a(!0)}catch(d){c(d)}},t.interval)})}}const n1="__THROTTLED",UO="__SKIPPED";function HO(e,t,n){const s=new Map,i=d=>{const f=d-n;s.forEach((h,g)=>{g<f&&s.delete(g)})},a=()=>[...s.values()].reduce((d,f)=>d+f,0);let c=!1;return(...d)=>{const f=Math.floor(Date.now()/1e3);if(i(f),a()>=t){const g=c;return c=!0,g?UO:n1}c=!1;const h=s.get(f)||0;return s.set(f,h+1),e(...d)}}class Nr{constructor({options:t,recordingOptions:n}){Nr.prototype.__init.call(this),Nr.prototype.__init2.call(this),Nr.prototype.__init3.call(this),Nr.prototype.__init4.call(this),Nr.prototype.__init5.call(this),Nr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:wR,sessionIdleExpire:_R},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=NO(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=HO((c,d)=>$A(this,c,d),300,5);const{slowClickTimeout:s,slowClickIgnoreSelectors:i}=this.getOptions(),a=s?{threshold:Math.min(IR,s),timeout:s,scrollTimeout:CR,ignoreSelector:i?i.join(","):""}:void 0;if(a&&(this.clickDetector=new Q2(this,a)),he){const c=t._experiments;ge.setConfig({captureExceptions:!!c.captureExceptions,traceInternals:!!c.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){he&&ge.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:s}=this._options,i=n<=0&&s<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){he&&ge.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",he&&ge.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){he&&ge.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){he&&ge.info("Buffering is in progress, call `flush()` to save the replay");return}he&&ge.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=tf({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){he&&ge.info("Buffering is in progress, call `flush()` to save the replay");return}he&&ge.infoTick("Starting replay in buffer mode");const t=tf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=cr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:kR}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:LO(this),...MO(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{he&&ge.info(`Stopping Replay${n?` triggered by ${n}`:""}`),q0(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,NA(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),he&&ge.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),he&&ge.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();he&&ge.info("Converting buffer to session"),await this.flushImmediate();const s=this.stopRecording();!t||!s||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&ef(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ve.location.pathname}${Ve.location.hash}${Ve.location.search}`,n=`${Ve.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const s=this._throttledAddEvent(t,n);if(s===n1){const i=Un({category:"replay.throttled"});this.addUpdate(()=>!nf(this,{type:H2,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return s}getCurrentRoute(){const t=this.lastActiveSpan||vt(),n=t&&Tt(t),i=(n&&Be(n).data||{})[Fn];if(!(!n||!i||!["route","custom"].includes(i)))return Be(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=AA({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,s=tf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=s}_checkSession(){if(!this.session)return!1;const t=this.session;return B0(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ve.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ve.addEventListener("blur",this._handleWindowBlur),Ve.addEventListener("focus",this._handleWindowFocus),Ve.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(AO(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=xA(this)}_removeListeners(){try{Ve.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ve.removeEventListener("blur",this._handleWindowBlur),Ve.removeEventListener("focus",this._handleWindowFocus),Ve.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{Ve.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Un({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Un({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{cA(this,t)}}_doChangeToBackgroundTasks(t){!this.session||F0(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){he&&ge.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ie.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=pA(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(s=>s.start>=n)}return Promise.all(Il(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const s=n.getEarliestTimestamp();s&&s<this._context.initialTimestamp&&(this._context.initialTimestamp=s)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){he&&ge.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await OO(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const s=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await t1({replayId:t,recordingData:a,segmentId:i,eventContext:s,session:this.session,timestamp:n,onError:c=>this.handleException(c)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const s=Oe();if(s){const i=n instanceof af?"ratelimit_backoff":"send_error";s.recordDroppedEvent(i,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){he&&ge.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const a=i<this._options.minReplayDuration,c=i>this._options.maxReplayDuration+5e3;if(a||c){he&&ge.info(`Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const d=this.eventBuffer;d&&this.session.segmentId===0&&!d.hasCheckout&&he&&ge.info("Flushing initial segment without checkout.");const f=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(h){this.handleException(h)}finally{this._flushLock=void 0,f&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Zd(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=s&&n>s;if(n>i||a){const c=Un({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(c)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Ti(e,t){return[...e,...t].join(",")}function WO({mask:e,unmask:t,block:n,unblock:s,ignore:i}){const a=["base","iframe[srcdoc]:not([src])"],c=Ti(e,[".sentry-mask","[data-sentry-mask]"]),d=Ti(t,[]);return{maskTextSelector:c,unmaskTextSelector:d,blockSelector:Ti(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:Ti(s,[]),ignoreSelector:Ti(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function qO({el:e,key:t,maskAttributes:n,maskAllText:s,privacyOptions:i,value:a}){return!s||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const r1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',VO=["content-length","content-type","accept"];let s1=!1;const GO=e=>new Ol(e);class Ol{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=ER,flushMaxDelay:n=xR,minReplayDuration:s=RR,maxReplayDuration:i=qy,stickySession:a=!0,useCompression:c=!0,workerUrl:d,_experiments:f={},maskAllText:h=!0,maskAllInputs:g=!0,blockAllMedia:y=!0,mutationBreadcrumbLimit:w=750,mutationLimit:x=1e4,slowClickTimeout:_=7e3,slowClickIgnoreSelectors:E=[],networkDetailAllowUrls:k=[],networkDetailDenyUrls:A=[],networkCaptureBodies:L=!0,networkRequestHeaders:j=[],networkResponseHeaders:K=[],mask:H=[],maskAttributes:O=["title","placeholder"],unmask:C=[],block:W=[],unblock:F=[],ignore:U=[],maskFn:J,beforeAddRecordingEvent:Z,beforeErrorSampling:ue,onError:me}={}){this.name=Ol.id;const De=WO({mask:H,unmask:C,block:W,unblock:F,ignore:U});if(this._recordingOptions={maskAllInputs:g,maskAllText:h,maskInputOptions:{password:!0},maskTextFn:J,maskInputFn:J,maskAttributeFn:(te,Se,q)=>qO({maskAttributes:O,maskAllText:h,privacyOptions:De,key:te,value:Se,el:q}),...De,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:te=>{try{te.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(s,AR),maxReplayDuration:Math.min(i,qy),stickySession:a,useCompression:c,workerUrl:d,blockAllMedia:y,maskAllInputs:g,maskAllText:h,mutationBreadcrumbLimit:w,mutationLimit:x,slowClickTimeout:_,slowClickIgnoreSelectors:E,networkDetailAllowUrls:k,networkDetailDenyUrls:A,networkCaptureBodies:L,networkRequestHeaders:o1(j),networkResponseHeaders:o1(K),beforeAddRecordingEvent:Z,beforeErrorSampling:ue,onError:me,_experiments:f},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${r1}`:r1),this._isInitialized&&my())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return s1}set _isInitialized(t){s1=t}afterAllSetup(t){!my()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=YO(this._initialOptions,t);this._replay=new Nr({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Ol.__initStatic();function YO(e,t){const n=t.getOptions(),s={sessionSampleRate:0,errorSampleRate:0,...ft(e)},i=qa(n.replaysSessionSampleRate),a=qa(n.replaysOnErrorSampleRate);return i==null&&a==null&&wr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(s.sessionSampleRate=i),a!=null&&(s.errorSampleRate=a),s}function o1(e){return[...VO,...e.map(t=>t.toLowerCase())]}const i1=new WeakMap,lf=new Map,Pl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function KO(e,t){const{traceFetch:n,traceXHR:s,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:c,tracePropagationTargets:d}={traceFetch:Pl.traceFetch,traceXHR:Pl.traceXHR,trackFetchStreamPerformance:Pl.trackFetchStreamPerformance,...t},f=typeof a=="function"?a:y=>!0,h=y=>ZO(y,d),g={};n&&(e.addEventProcessor(y=>(y.type==="transaction"&&y.spans&&y.spans.forEach(w=>{if(w.op==="http.client"){const x=lf.get(w.span_id);x&&(w.timestamp=x/1e3,lf.delete(w.span_id))}}),y)),i&&Gb(y=>{if(y.response){const w=i1.get(y.response);w&&y.endTimestamp&&lf.set(w,y.endTimestamp)}}),fy(y=>{const w=Bb(y,f,h,g);if(y.response&&y.fetchData.__span&&i1.set(y.response,y.fetchData.__span),w){const x=l1(y.fetchData.url),_=x?vs(x).host:void 0;w.setAttributes({"http.url":x,"server.address":_})}c&&w&&a1(w)})),s&&$y(y=>{const w=eP(y,f,h,g);c&&w&&a1(w)})}function QO(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function a1(e){const{url:t}=Be(e).data||{};if(!t||typeof t!="string")return;const n=io("resource",({entries:s})=>{s.forEach(i=>{QO(i)&&i.name.endsWith(t)&&(JO(i).forEach(c=>e.setAttribute(...c)),setTimeout(n))})})}function XO(e){let t="unknown",n="unknown",s="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=s==="h"?"http":s,n=e.split(s)[1];break}s+=i}return s===e&&(t=s),{name:t,version:n}}function Hn(e=0){return((jt||performance.timeOrigin)+e)/1e3}function JO(e){const{name:t,version:n}=XO(e.nextHopProtocol),s=[];return s.push(["network.protocol.version",n],["network.protocol.name",t]),jt?[...s,["http.request.redirect_start",Hn(e.redirectStart)],["http.request.fetch_start",Hn(e.fetchStart)],["http.request.domain_lookup_start",Hn(e.domainLookupStart)],["http.request.domain_lookup_end",Hn(e.domainLookupEnd)],["http.request.connect_start",Hn(e.connectStart)],["http.request.secure_connection_start",Hn(e.secureConnectionStart)],["http.request.connection_end",Hn(e.connectEnd)],["http.request.request_start",Hn(e.requestStart)],["http.request.response_start",Hn(e.responseStart)],["http.request.response_end",Hn(e.responseEnd)]]:s}function ZO(e,t){const n=_e.location&&_e.location.href;if(n){let s,i;try{s=new URL(e,n),i=new URL(n).origin}catch{return!1}const a=s.origin===i;return t?xr(s.toString(),t)||a&&xr(s.pathname,t):a}else{const s=!!e.match(/^\/(?!\/)/);return t?xr(e,t):s}}function eP(e,t,n,s){const i=e.xhr,a=i&&i[ws];if(!i||i.__sentry_own_request__||!a)return;const c=Ir()&&t(a.url);if(e.endTimestamp&&c){const y=i.__sentry_xhr_span_id__;if(!y)return;const w=s[y];w&&a.status_code!==void 0&&(tg(w,a.status_code),w.end(),delete s[y]);return}const d=l1(a.url),f=d?vs(d).host:void 0,h=!!vt(),g=c&&h?ai({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":d,url:a.url,"server.address":f,[gt]:"auto.http.browser",[fs]:"http.client"}}):new to;return i.__sentry_xhr_span_id__=g.spanContext().spanId,s[i.__sentry_xhr_span_id__]=g,n(a.url)&&tP(i,Ir()&&h?g:void 0),g}function tP(e,t){const{"sentry-trace":n,baggage:s}=ty({span:t});n&&nP(e,n,s)}function nP(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function l1(e){try{return new URL(e,_e.location.origin).href}catch{return}}function rP(){_e&&_e.document?_e.document.addEventListener("visibilitychange",()=>{const e=vt();if(!e)return;const t=Tt(e);if(_e.document.hidden&&t){const n="cancelled",{op:s,status:i}=Be(t);zn&&ee.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${s}`),i||t.setStatus({code:yt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):zn&&ee.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const sP="BrowserTracing",oP={...Va,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Pl},iP=(e={})=>{Gk();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:s,_experiments:{enableInteractions:i,enableStandaloneClsSpans:a},beforeStartSpan:c,idleTimeout:d,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:g,traceFetch:y,traceXHR:w,trackFetchStreamPerformance:x,shouldCreateSpanForRequest:_,enableHTTPTimings:E,instrumentPageLoad:k,instrumentNavigation:A}={...oP,...e},L=nC({recordClsStandaloneSpans:a||!1});t&&IC(),s&&Me.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?sC():n&&rC(),i&&oC();const j={name:void 0,source:void 0};function K(H,O){const C=O.op==="pageload",W=c?c(O):O,F=W.attributes||{};O.name!==W.name&&(F[Fn]="custom",W.attributes=F),j.name=W.name,j.source=F[Fn];const U=Mg(W,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:C,beforeSpanEnd:Z=>{L(),uC(Z,{recordClsOnPageloadSpan:!a})}});function J(){["interactive","complete"].includes(_e.document.readyState)&&H.emit("idleSpanEnableAutoFinish",U)}return C&&_e.document&&(_e.document.addEventListener("readystatechange",()=>{J()}),J()),U}return{name:sP,afterAllSetup(H){let O,C=_e.location&&_e.location.href;function W(){O&&!Be(O).timestamp&&(zn&&ee.log(`[Tracing] Finishing current active span with op: ${Be(O).op}`),O.end())}H.on("startNavigationSpan",F=>{Oe()===H&&(W(),O=K(H,{op:"navigation",...F}))}),H.on("startPageLoadSpan",(F,U={})=>{if(Oe()!==H)return;W();const J=U.sentryTrace||c1("sentry-trace"),Z=U.baggage||c1("baggage"),ue=Bk(J,Z);qe().setPropagationContext(ue),O=K(H,{op:"pageload",...F})}),H.on("spanEnd",F=>{const U=Be(F).op;if(F!==Tt(F)||U!=="navigation"&&U!=="pageload")return;const J=qe(),Z=J.getPropagationContext();J.setPropagationContext({...Z,sampled:Z.sampled!==void 0?Z.sampled:hs(F),dsc:Z.dsc||gs(F)})}),_e.location&&(k&&aP(H,{name:_e.location.pathname,startTime:jt?jt/1e3:void 0,attributes:{[Fn]:"url",[gt]:"auto.pageload.browser"}}),A&&al(({to:F,from:U})=>{if(U===void 0&&C&&C.indexOf(F)!==-1){C=void 0;return}U!==F&&(C=void 0,lP(H,{name:_e.location.pathname,attributes:{[Fn]:"url",[gt]:"auto.navigation.browser"}}))})),g&&rP(),i&&cP(d,f,h,j),t&&RC(),KO(H,{traceFetch:y,traceXHR:w,trackFetchStreamPerformance:x,tracePropagationTargets:H.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:E})}}};function aP(e,t,n){e.emit("startPageLoadSpan",t,n),qe().setTransactionName(t.name);const s=vt();return(s&&Be(s).op)==="pageload"?s:void 0}function lP(e,t){_n().setPropagationContext({traceId:Tr()}),qe().setPropagationContext({traceId:Tr()}),e.emit("startNavigationSpan",t),qe().setTransactionName(t.name);const n=vt();return(n&&Be(n).op)==="navigation"?n:void 0}function c1(e){const t=fk(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function cP(e,t,n,s){let i;const a=()=>{const c="ui.action.click",d=vt(),f=d&&Tt(d);if(f){const h=Be(f).op;if(["navigation","pageload"].includes(h)){zn&&ee.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Xu,"interactionInterrupted"),i.end(),i=void 0),!s.name){zn&&ee.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=Mg({name:s.name,op:c,attributes:{[Fn]:s.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};_e.document&&addEventListener("click",a,{once:!1,capture:!0})}function uP(e){const t={...e};return ey(t,"react"),Fg("react",{version:R.version}),vR(t)}const cf={userId:"edmap-user"};let Nl=null;const Wn=async()=>Nl||(Nl=dP(),await Nl),dP=async()=>{const e=bi();if(e)return e;const t=ss(13);try{const n=await pP(t);return localStorage.setItem(cf.userId,n),n}catch(n){throw console.error("User haven't been registered"),n}},bi=()=>localStorage.getItem(cf.userId),fP=async()=>bi()??"dafult-user",pP=async e=>{var s,i;const n=(((s=window.__widgetEdmap)==null?void 0:s.mode)||"default")==="admin"?"/registration/auto-disposable?seconds=32400":"/registration/auto";try{const a=await ot.post(n,{id:e});return(i=a==null?void 0:a.data)==null?void 0:i.id}catch(a){throw console.error("Error registering new user:",a),a}},hP=async()=>{var i,a;const e=(i=window==null?void 0:window.__widgetEdmap)==null?void 0:i.mapId;if(!e)return;const t=`/registration/telegram/${e}`,n=await Wn(),s=window.location.href;try{const c=await ot.post(t,{redirectUrl:s,userId:n});(c==null?void 0:c.status)===201&&(window.location.href=(a=c==null?void 0:c.data)==null?void 0:a.link)}catch(c){xn(c),console.error("Error registering new user through telegram",c)}},mP=async e=>{const t="/auth/telegram";try{const n=await ot.post(t,{code:e});(n==null?void 0:n.status)===201&&u1(n==null?void 0:n.data)}catch(n){xn(n),console.error("Failed to authorize through Telegram",n)}},gP=async()=>{var a;const e=(a=window==null?void 0:window.__widgetEdmap)==null?void 0:a.mapId,t=bi(),n=encodeURIComponent(window.location.href);if(!e)return;const s=new URLSearchParams;s.append("mapId",e),s.append("userId",t),s.append("redirectUrl",n);const i=`/auth/google?${s.toString()}`;try{const c=await ot.get(i);window.location.href=c.data.redirectUrl}catch(c){xn(c),console.error("Error registering new user through gmail",c)}},yP=async()=>{const e=new URLSearchParams(window.location.search),t=e.get("accessToken"),n=e.get("refreshToken"),s=e.get("userId");!t||!n||!s||u1({accessToken:t,refreshToken:n,userId:s})},u1=e=>{localStorage.setItem(cf.userId,e==null?void 0:e.userId),localStorage.setItem("edmap-access-token",e==null?void 0:e.accessToken),localStorage.setItem("edmap-refresh-token",e==null?void 0:e.refreshToken)},vP=e=>{if(!e)return"edmap-session-prob";const t=ss(13),n=`edmap-session-${e}`;return localStorage.setItem(n,`${t}@${Date.now()}`),t},d1=e=>{const t=`edmap-session-${e}`;localStorage.removeItem(t)},SP=async e=>{const t=wP(e);if(!t)return[];const n=`/user-test-answer/session/${t}`;return(await ot.get(n)).data},wP=e=>{const t=f1(e);if(!t)return null;const[n,s]=t.split("@");return n},f1=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||null},So=e=>{const t=_P(e),[n,s]=t.split("@");return n},_P=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||vP(e)},EP=async(e,t)=>{t&&await mP(t);const n=new URLSearchParams(window.location.search),s=n.get("accessToken"),i=n.get("refreshToken"),a=n.get("userId");s&&i&&a&&await yP();const c=await fP();return h1(e,c)},p1=()=>typeof window>"u"?!1:!!localStorage.getItem("edmap-access-token"),xP=async(e,t)=>{const n=`/quest/${e}/${encodeURIComponent(t)}`;try{const s=await ot.get(n);return s.data?s.data:null}catch{return null}},kP=async e=>{const t=`/quest/widget/${e}`;try{const n=await ot.get(t);return n.data?n.data:null}catch(n){xn(n),console.error("Error fetching quest:",n)}},TP=async e=>{const t="/user-test-answer";try{return await ot.post(t,e)}catch(n){throw console.error("Failed to send test answers:",n),n}},bP=async(e,t)=>[{id:`${ss(13)}`,answerId:null,questionId:t,userId:await Wn(),sessionId:So(e)}],IP=async e=>{const t="/result-quest-answer/test";try{return await ot.post(t,{id:ss(13),sessionId:So(e.id),questId:e.id,mapId:e.mapId,userId:await Wn()})}catch(n){throw console.error("Failed to send result test answers:",n),n}},h1=async(e,t)=>{const n=`/user-result/${e}/${t}`;try{return(await ot.get(n)).data}catch(s){xn(s),console.error("Failed to get user results:",s)}},CP=async(e,t,n)=>{const s=`/leaderboard/${e}`;try{return await ot.get(s,{params:{take:t,skip:n}})}catch(i){xn(i),console.error("Failed to fetch leaderboard:",i)}},m1=e=>{let t;const n=new Set,s=(h,g)=>{const y=typeof h=="function"?h(t):h;if(!Object.is(y,t)){const w=t;t=g??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(x=>x(t,w))}},i=()=>t,d={setState:s,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(s,i,d);return d},RP=e=>e?m1(e):m1,AP=e=>e;function OP(e,t=AP){const n=kt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return kt.useDebugValue(n),n}const g1=e=>{const t=RP(e),n=s=>OP(t,s);return Object.assign(n,t),n},Gt=e=>e?g1(e):g1,be=Gt(e=>({quest:{},allQuest:{},currentStep:null,overallSteps:0,currentTryPoints:0,isFinished:null,mapLeaderboard:[],isError:!1,setQuest:t=>e({quest:t}),setAllQuests:t=>e({allQuests:t}),setOverallSteps:t=>e({overallSteps:t}),increaseStep:()=>e(t=>({currentStep:t.currentStep+1})),setCurrentStep:t=>e({currentStep:t}),resetSteps:()=>e({currentStep:1}),setIsFinished:t=>e({isFinished:t}),setMapLeaderboard:t=>e({mapLeaderboard:t}),setCurrentTryPoints:t=>e({currentTryPoints:t}),setIsError:t=>e({isError:t})})),uf="eddpzuabl",y1="edl168snjk",PP="edwbmletw",v1="edr10i0h72",df="edn16xylqg",NP="edb19h1gx0",S1="edt1n7onvl",MP="edw16bh3dw",LP="edw1j9fzy2";function jP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var DP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ff=jP(function(e){return DP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$P=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},s=[];t.forEach(a=>{(a?a.split(" "):[]).forEach(d=>{if(d.startsWith("atm_")){const[,f]=d.split("_");n[f]=d}else s.push(d)})});const i=[];for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(n[a]);return i.push(...s),i.join(" ")},w1=$P,FP=e=>e.toUpperCase()===e,BP=e=>t=>e.indexOf(t)===-1,_1=(e,t)=>{const n={};return Object.keys(e).filter(BP(t)).forEach(s=>{n[s]=e[s]}),n};function zP(e,t,n){const s=_1(t,n);if(!e){const i=typeof ff=="function"?{default:ff}:ff;Object.keys(s).forEach(a=>{i.default(a)||delete s[a]})}return s}var UP=(e,t)=>{};function HP(e){let t="";return n=>{const s=(a,c)=>{const{as:d=e,class:f=t}=a,h=n.propsAsIs===void 0?!(typeof d=="string"&&d.indexOf("-")===-1&&!FP(d[0])):n.propsAsIs,g=zP(h,a,["as","class"]);g.ref=c,g.className=n.atomic?w1(n.class,g.className||f):w1(g.className||f,n.class);const{vars:y}=n;if(y){const w={};for(const E in y){const k=y[E],A=k[0],L=k[1]||"",j=typeof A=="function"?A(a):A;UP(j,n.name),w[`--${E}`]=`${j}${L}`}const x=g.style||{},_=Object.keys(x);_.length>0&&_.forEach(E=>{w[E]=x[E]}),g.style=w}return e.__wyw_meta&&e!==d?(g.as=d,kt.createElement(e,g)):kt.createElement(d,g)},i=kt.forwardRef?kt.forwardRef(s):a=>{const c=_1(a,["innerRef"]);return s(c,a.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}}var $=HP;const WP=$("div")({name:"Container",class:"edc2mc3o7",propsAsIs:!1}),qP=$("div")({name:"ContentWrapper",class:"edc1mezuql",propsAsIs:!1}),E1=$("div")({name:"InfoBlock",class:"edi282h0s",propsAsIs:!1}),x1=$("p")({name:"InfoBlockTitle",class:"edi1hvj2ef",propsAsIs:!1}),k1=$("p")({name:"InfoBlockSubtitle",class:"edil1zahd",propsAsIs:!1}),T1=$("div")({name:"ButtonsWrapper",class:"edb19bodzu",propsAsIs:!1}),VP=$("div")({name:"SignInBlock",class:"eds1kockd",propsAsIs:!1}),GP=$("div")({name:"MenuSection",class:"edm1mglzga",propsAsIs:!1}),YP=$("div")({name:"Container",class:"edc1j8vq8z",propsAsIs:!1}),KP=$("ul")({name:"Nav",class:"edn1cd6joy",propsAsIs:!1}),QP=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs)",XP=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs-font-hover)",JP=$("li")({name:"NavItem",class:"edn1fabm11",propsAsIs:!1,vars:{"n1fabm11-0":[QP()],"n1fabm11-1":[XP()]}}),ut=Gt(e=>({points:0,results:{},pointsAreReceived:!1,setUserPoints:t=>e(n=>({points:n.points+t})),setUserResults:t=>e({results:t}),setPointsAreReceived:t=>e({pointsAreReceived:t}),refreshUserResults:async t=>{const n=await Wn(),s=await h1(t,n);e({results:s})}})),ZP=({data:e,activeIndex:t,setActiveIndex:n})=>{var a;const s=ut(c=>c.results),i=(a=s==null?void 0:s.prizes)==null?void 0:a.length;return v.jsx(YP,{children:v.jsx(KP,{children:e.map((c,d)=>v.jsxs(JP,{onClick:()=>n(d),isActive:d===t,children:[c,d===0&&v.jsx("span",{children:i})]},c))})})},eN=$("div")({name:"Container",class:"edc17us64y",propsAsIs:!1}),b1=$("div")({name:"Header",class:"edh141t6pe",propsAsIs:!1}),I1=$("div")({name:"PrizeBackground",class:"edp1oopuya",propsAsIs:!1}),C1=$("div")({name:"Title",class:"edtlw5k9f",propsAsIs:!1}),tN=$("div")({name:"ButtonWrapper",class:"edbggxr7n",propsAsIs:!1}),nN=$("div")({name:"IconButtonWrapper",class:"edi16rf10j",propsAsIs:!1}),rN=$("div")({name:"ProgressWrapper",class:"edp121tjyk",propsAsIs:!1}),sN=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"M13 10v9h-2v-9zm0-5v2h-2V5z"}));function oN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pf=oN(function(e){return iN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),aN=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},s=[];t.forEach(a=>{(a?a.split(" "):[]).forEach(d=>{if(d.startsWith("atm_")){const[,f]=d.split("_");n[f]=d}else s.push(d)})});const i=[];for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(n[a]);return i.push(...s),i.join(" ")},R1=aN,lN=e=>e.toUpperCase()===e,cN=e=>t=>e.indexOf(t)===-1,A1=(e,t)=>{const n={};return Object.keys(e).filter(cN(t)).forEach(s=>{n[s]=e[s]}),n};function uN(e,t,n){const s=A1(t,n);if(!e){const i=typeof pf=="function"?{default:pf}:pf;Object.keys(s).forEach(a=>{i.default(a)||delete s[a]})}return s}var dN=(e,t)=>{};function fN(e){let t="";return n=>{const s=(a,c)=>{const{as:d=e,class:f=t}=a,h=n.propsAsIs===void 0?!(typeof d=="string"&&d.indexOf("-")===-1&&!lN(d[0])):n.propsAsIs,g=uN(h,a,["as","class"]);g.ref=c,g.className=n.atomic?R1(n.class,g.className||f):R1(g.className||f,n.class);const{vars:y}=n;if(y){const w={};for(const E in y){const k=y[E],A=k[0],L=k[1]||"",j=typeof A=="function"?A(a):A;dN(j,n.name),w[`--${E}`]=`${j}${L}`}const x=g.style||{},_=Object.keys(x);_.length>0&&_.forEach(E=>{w[E]=x[E]}),g.style=w}return e.__wyw_meta&&e!==d?(g.as=d,kt.createElement(e,g)):kt.createElement(d,g)},i=kt.forwardRef?kt.forwardRef(s):a=>{const c=A1(a,["innerRef"]);return s(c,a.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}}var se=fN;const O1=se("button")({name:"ColoredButton",class:"edc1h8okqi",propsAsIs:!1}),hf=se(O1)({name:"Button",class:"edbym73sg",propsAsIs:!0}),P1=({icon:e,title:t,...n})=>v.jsx(pN,{...n,children:e||t}),pN=se(hf)({name:"CustomButton",class:"edc1r5q1nu",propsAsIs:!0}),qn=({title:e,isAccent:t,isSuccess:n,link:s,target:i="_blank",linkProps:a,...c})=>s?v.jsx("a",{target:i,href:s,rel:i==="_blank"&&"noopener noreferrer",...a,children:v.jsx(N1,{isAccent:t,...c,children:e})}):v.jsx(N1,{isAccent:t,...c,children:e}),hN=()=>e=>e.isAccent?"var(--main-btn-accent-bg)":"var(--main-btn-bg)",mN=()=>e=>e.isAccent?"900":"400",gN=()=>e=>e.isAccent?"var(--edmap-text-on-main)":"var(--accent)",yN=()=>e=>e.isAccent?"var(--main-btn-accent-bg-hover)":"var(--main-btn-bg-hover)",vN=()=>e=>e.isAccent?"var(--main-btn-accent-bg-active)":"var(--main-btn-bg-active)",N1=se("button")({name:"Button",class:"edb16ruis3",propsAsIs:!1,vars:{"b16ruis3-0":[hN()],"b16ruis3-1":[mN()],"b16ruis3-2":[gN()],"b16ruis3-3":[yN()],"b16ruis3-4":[vN()]}}),Ml=({progressValue:e,overallValue:t})=>{const n=e<=t?(100/t*e).toFixed(0):100;return v.jsx(wN,{progressBarWidth:n})},SN=()=>e=>`${e.progressBarWidth}%`,wN=se("div")({name:"Bar",class:"edb1pz075f",propsAsIs:!1,vars:{"b1pz075f-0":[SN()]}}),xs=({progressValue:e,overallValue:t,text:n})=>v.jsxs(_N,{children:[v.jsx("span",{children:e}),v.jsxs("span",{children:["/",t," "]}),n&&v.jsx(EN,{children:n})]}),_N=se("div")({name:"Container",class:"edc1sl84gi",propsAsIs:!1}),EN=se("span")({name:"PointsText",class:"edpccfrec",propsAsIs:!1}),xN=()=>v.jsx("svg",{viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-rating-stars-1",children:[v.jsx("path",{d:"M15.78,14.07l1.46,4.14a.82.82,0,0,0,.74.56L22.2,19a.87.87,0,0,1,.48,1.54l-3.31,2.74a.9.9,0,0,0-.29.91l1.15,4.26a.84.84,0,0,1-1.26,1L15.46,26.9a.78.78,0,0,0-.92,0L11,29.35a.84.84,0,0,1-1.26-1l1.15-4.26a.9.9,0,0,0-.29-.91L7.32,20.49A.87.87,0,0,1,7.8,19L12,18.77a.82.82,0,0,0,.74-.56l1.46-4.14A.82.82,0,0,1,15.78,14.07Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M7.08.92,8.18,4a.63.63,0,0,0,.56.43l3.16.13a.65.65,0,0,1,.36,1.16L9.78,7.8a.65.65,0,0,0-.22.68l.86,3.19a.63.63,0,0,1-.94.72L6.84,10.55a.57.57,0,0,0-.68,0L3.52,12.39a.63.63,0,0,1-.94-.72l.86-3.19a.65.65,0,0,0-.22-.68l-2.48-2A.65.65,0,0,1,1.1,4.59l3.16-.13A.63.63,0,0,0,4.82,4L5.92.92A.61.61,0,0,1,7.08.92Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M24.08.92,25.18,4a.63.63,0,0,0,.56.43l3.16.13a.65.65,0,0,1,.36,1.16L26.78,7.8a.65.65,0,0,0-.22.68l.86,3.19a.63.63,0,0,1-.94.72l-2.64-1.84a.57.57,0,0,0-.68,0l-2.64,1.84a.63.63,0,0,1-.94-.72l.86-3.19a.65.65,0,0,0-.22-.68l-2.48-2a.65.65,0,0,1,.36-1.16l3.16-.13A.63.63,0,0,0,21.82,4L22.92.92A.61.61,0,0,1,24.08.92Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})})})}),kN=()=>v.jsxs("svg",{viewBox:"-4 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("style",{children:".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}"})}),v.jsx("title",{children:"Award Medal"}),v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-award-medal-1",children:[v.jsx("polyline",{className:"cls-1",points:"21.5 0.5 10.5 0.5 0.5 0.5"}),v.jsx("line",{className:"cls-1",x1:"21.5",x2:"17",y1:"0.5",y2:"12.5"}),v.jsx("line",{className:"cls-1",x1:"0.5",x2:"5",y1:"0.5",y2:"12.5"}),v.jsx("circle",{className:"cls-1",cx:"11",cy:"20",r:"9.5"}),v.jsx("line",{className:"cls-1",x1:"8",x2:"9",y1:"0.5",y2:"10.5"}),v.jsx("line",{className:"cls-1",x1:"14",x2:"13",y1:"0.5",y2:"10.5"}),v.jsx("path",{className:"cls-1",d:"M11.49,15.35l.91,2.59a.52.52,0,0,0,.46.36l2.64.11a.54.54,0,0,1,.3,1l-2.07,1.71a.58.58,0,0,0-.18.57l.72,2.66a.53.53,0,0,1-.79.6l-2.19-1.54a.51.51,0,0,0-.58,0L8.52,24.91a.53.53,0,0,1-.79-.6l.72-2.66a.58.58,0,0,0-.18-.57L6.2,19.37a.54.54,0,0,1,.3-1l2.64-.11a.52.52,0,0,0,.46-.36l.91-2.59A.52.52,0,0,1,11.49,15.35Z"})]})})})]}),TN=()=>v.jsxs("svg",{viewBox:"-0.5 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("style",{children:".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}"})}),v.jsx("title",{children:"Award Trophie"}),v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-award-trophie",children:[v.jsx("path",{className:"cls-1",d:"M9.5.5h-6c0,7.73,4.92,14,11,14s11-6.27,11-14h-6"}),v.jsx("rect",{className:"cls-1",height:"5",rx:"1",width:"13",x:"8",y:"24.5"}),v.jsx("line",{className:"cls-1",x1:"12.5",x2:"12.5",y1:"14.3",y2:"24.5"}),v.jsx("line",{className:"cls-1",x1:"16.5",x2:"16.5",y1:"14.3",y2:"24.5"}),v.jsx("path",{className:"cls-1",d:"M25.1,4.5a3.36,3.36,0,0,1,3.4,3c0,1.66-1.34,5-3,5"}),v.jsx("path",{className:"cls-1",d:"M3.5,12.5c-1.66,0-3-3.34-3-5a3.36,3.36,0,0,1,3.4-3"}),v.jsx("path",{className:"cls-1",d:"M15,.85l.91,2.59a.52.52,0,0,0,.46.36L19,3.91a.54.54,0,0,1,.3,1L17.23,6.58a.58.58,0,0,0-.18.57l.72,2.66a.53.53,0,0,1-.79.6L14.79,8.87a.51.51,0,0,0-.58,0L12,10.41a.53.53,0,0,1-.79-.6L12,7.15a.58.58,0,0,0-.18-.57L9.7,4.87a.54.54,0,0,1,.3-1l2.64-.11a.52.52,0,0,0,.46-.36L14,.85A.52.52,0,0,1,15,.85Z"})]})})})]}),bN={1:v.jsx(xN,{}),2:v.jsx(kN,{}),3:v.jsx(TN,{})},IN=se("div")({name:"InnerIconContainer",class:"edim3awnl",propsAsIs:!1}),M1=({iconId:e,...t})=>v.jsx(IN,{...t,children:bN[e]}),Ll={es:{timer:{remainingTitle:"Límite de tiempo:"},popup:{skillsTitle:"experiencia",menuItems:["Premios","Misiones","Participantes","Configuración"],prizes:{buttonTitle:"Obtener premio",questionsTitle:"puntos"}},popupBar:{prizesTitle:"premios",skillsTitle:"exp"},widget:{skillsTitle:"experiencia",accentButtonTitle:"Confirmar respuesta",buttonTitle:"Omitir"},testCard:{successTitle:"Has aprobado el test",buttonTitle:"Volver a intentar",worstScoreTemplate:"Has obtenido <mark>{points} de {maxPoints}</mark> puntos. Tu mejor resultado es <mark>{bestPoints} de {maxPoints}</mark>.",bestScoreTemplate:"Has obtenido <mark>{bestPoints} de {maxPoints}</mark> puntos.",prizesTitle:"Premios que aún puedes conseguir",questsTitle:"Misiones que aún puedes completar",chooseAnswer:"Seleccione todas las respuestas que correspondan de la lista:"},journeyCard:{successTitle:"Has completado el juego",buttonTitle:"Volver a jugar",worstScoreTemplate:"Has obtenido <mark>{points} de {maxPoints}</mark> puntos. Tu mejor resultado es <mark>{bestPoints} de {maxPoints}</mark>.",bestScoreTemplate:"Has obtenido <mark>{bestPoints} de {maxPoints}</mark> puntos.",prizesTitle:"Premios que aún puedes conseguir",questsTitle:"Misiones que aún puedes completar",chooseAnswer:"Seleccione una respuesta:"},settings:{signInPopup:{title:"Para guardar tu progreso y obtener premios, necesitas registrar una cuenta.",subtitle:"¡Tu progreso se transferirá a ella!",buttonTitle:"Cerrar",accentButtonTitle:"Registrarse"},logout:"Cerrar sesión"},globalError:{title:"Algo salió mal 🤔",subtitle:"Mientras pensamos cómo solucionarlo, puedes intentar actualizar la misión"},socialsPopup:{title:"Registrarse con",subTitle:"Próximamente...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Omitir",accentButtonTitle:"Confirmar respuesta"},header:{title:"Semana gratuita de entrenamiento en el plan «Erich Fromm»",progressText:"experiencia",freeAccessBlock:{title:"1",subtitle:"semana",text:"gratis"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Imagen de encabezado"}},prizeList:{title:"Premios"},questList:{title:"Misiones",emptyQuestsWarning:"No hay misiones"},user:{defaultName:"Juan Pérez",avatar:{alt:"Foto de perfil"},ban:{forbiddenQuest:"Esta misión no está disponible temporalmente para usted",wait:"Por favor, espere"},randomNames:[{id:1,name:"Pelusa Traviesa"},{id:2,name:"Copito Alegre"},{id:3,name:"Trasto Gruñón"},{id:4,name:"Peludo Saltarín"},{id:5,name:"Chispa Pícara"},{id:6,name:"Canela Veloz"},{id:7,name:"Gordi Glotón"},{id:8,name:"Nube Temblorosa"},{id:9,name:"Lento Perezoso"},{id:10,name:"Capitán Migaja"},{id:11,name:"Señor Hámster"},{id:12,name:"Lola Risueña"},{id:13,name:"Bigotes Curiosos"},{id:14,name:"Jack Comilón"},{id:15,name:"Bufón Resoplón"},{id:16,name:"Rey Miau"},{id:17,name:"Ron Ron Peludo"},{id:18,name:"Boris Refunfuñón"},{id:19,name:"Zorro Astuto"},{id:20,name:"Pugron Sueñón"},{id:21,name:"Gruñón Fuerte"},{id:22,name:"Solecito Feliz"},{id:23,name:"Manchitas Ágil"},{id:24,name:"Quesito Veloz"},{id:25,name:"Peluchín Divertido"},{id:26,name:"Gominita Dulzona"},{id:27,name:"Trueno Travieso"},{id:28,name:"Barrigón Juguetón"},{id:29,name:"Tomás Espía"},{id:30,name:"Marisol Saltarina"},{id:31,name:"Erizo Astuto"},{id:32,name:"Chispero Enérgico"},{id:33,name:"Snoopy Parlanchín"},{id:34,name:"Desayuno Feliz"},{id:35,name:"Coco Risueño"},{id:36,name:"Pica Lástima"},{id:37,name:"Pelusón Suave"},{id:38,name:"Aurora Matutina"},{id:39,name:"Jerry Travieso"},{id:40,name:"Tigre Nube"},{id:41,name:"Panda Risueña"},{id:42,name:"Hugo Pensativo"},{id:43,name:"Pompa Burbuja"},{id:44,name:"Sedosa Delicia"},{id:45,name:"Dómini Donut"},{id:46,name:"Brisa Vivaz"},{id:47,name:"Garza Alegre"},{id:48,name:"Félix Narizudo"},{id:49,name:"Peludín Suave"},{id:50,name:"Pinto Manchado"}]}},de:{timer:{remainingTitle:"Zeitlimit:"},popup:{skillsTitle:"Erfahrung",menuItems:["Preise","Quests","Teilnehmer","Einstellungen"],prizes:{buttonTitle:"Preis erhalten",questionsTitle:"Punkte"}},popupBar:{prizesTitle:"Preise",skillsTitle:"Erfahrung"},widget:{skillsTitle:"Erfahrung",accentButtonTitle:"Antwort bestätigen",buttonTitle:"Überspringen"},testCard:{successTitle:"Test bestanden",buttonTitle:"Erneut versuchen",worstScoreTemplate:"Sie haben <mark>{points} von {maxPoints}</mark> Punkten erzielt. Ihr bester Wert ist <mark>{bestPoints} von {maxPoints}</mark>.",bestScoreTemplate:"Sie haben <mark>{bestPoints} von {maxPoints}</mark> Punkten erzielt.",prizesTitle:"Preise, die Sie noch erhalten können",questsTitle:"Quests, die Sie noch abschließen können",chooseAnswer:"Wählen Sie alle zutreffenden Antworten aus der Liste aus:"},journeyCard:{successTitle:"Spiel abgeschlossen",buttonTitle:"Nochmals spielen",worstScoreTemplate:"Sie haben <mark>{points} von {maxPoints}</mark> Punkten erzielt. Ihr bester Wert ist <mark>{bestPoints} von {maxPoints}</mark>.",bestScoreTemplate:"Sie haben <mark>{bestPoints} von {maxPoints}</mark> Punkten erzielt.",prizesTitle:"Preise, die Sie noch erhalten können",questsTitle:"Quests, die Sie noch abschließen können",chooseAnswer:"Wählen Sie eine Antwort aus:"},settings:{signInPopup:{title:"Um Ihren Fortschritt zu speichern und Preise zu erhalten, müssen Sie ein Konto registrieren.",subtitle:"Ihr bisheriger Fortschritt wird darauf übertragen!",buttonTitle:"Schließen",accentButtonTitle:"Registrieren"},logout:"Abmelden"},globalError:{title:"Etwas ist schiefgelaufen 🤔",subtitle:"Während wir herausfinden, wie wir das Problem beheben können, können Sie versuchen, die Quest neu zu laden."},socialsPopup:{title:"Anmelden mit",subTitle:"Demnächst...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Überspringen",accentButtonTitle:"Antwort bestätigen"},header:{title:"Kostenlose Trainingswoche im Tarif „Erich Fromm“",progressText:"Erfahrung",freeAccessBlock:{title:"1",subtitle:"Woche",text:"kostenlos"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header-Bild"}},prizeList:{title:"Preise"},questList:{title:"Quests",emptyQuestsWarning:"Keine Quests verfügbar"},user:{defaultName:"Max Mustermann",avatar:{alt:"Profilbild"},ban:{forbiddenQuest:"Diese Quest ist vorübergehend nicht für Sie verfügbar",wait:"Bitte warten"},randomNames:[{id:1,name:"Luna"},{id:2,name:"Bella"},{id:3,name:"Charlie"},{id:4,name:"Max"},{id:5,name:"Mia"},{id:6,name:"Lucy"},{id:7,name:"Leo"},{id:8,name:"Lotte"},{id:9,name:"Lilo"},{id:10,name:"Balu"},{id:11,name:"Molly"},{id:12,name:"Sammy"},{id:13,name:"Flocke"},{id:14,name:"Finja"},{id:15,name:"Frida"},{id:16,name:"Henry"},{id:17,name:"Lenny"},{id:18,name:"Lia"},{id:19,name:"Fiona"},{id:20,name:"Emil"},{id:21,name:"Paula"},{id:22,name:"Oskar"},{id:23,name:"Rico"},{id:24,name:"Nala"},{id:25,name:"Loki"},{id:26,name:"Kira"},{id:27,name:"Benji"},{id:28,name:"Leia"},{id:29,name:"Teddy"},{id:30,name:"Sophie"},{id:31,name:"Arco"},{id:32,name:"Chico"},{id:33,name:"Lilly"},{id:34,name:"Emma"},{id:35,name:"Maja"},{id:36,name:"Nele"},{id:37,name:"Milo"},{id:38,name:"Rosie"},{id:39,name:"Toby"},{id:40,name:"Yuki"},{id:41,name:"Keks"},{id:42,name:"Bruno"},{id:43,name:"Fritz"},{id:44,name:"Gismo"},{id:45,name:"Nicky"},{id:46,name:"Ronja"},{id:47,name:"Trixi"},{id:48,name:"Zoe"},{id:49,name:"Hugo"},{id:50,name:"Pia"}]}},en:{timer:{remainingTitle:"Time limit:"},popup:{skillsTitle:"experience",menuItems:["Prizes","Quests","Participants","Settings"],prizes:{buttonTitle:"Get Prize",questionsTitle:"points"}},popupBar:{prizesTitle:"prizes",skillsTitle:"exp"},widget:{skillsTitle:"experience",accentButtonTitle:"Confirm Answer",buttonTitle:"Skip"},testCard:{successTitle:"You passed the test",buttonTitle:"Retake",worstScoreTemplate:"You scored <mark>{points} out of {maxPoints}</mark> points. Your best result is <mark>{bestPoints} out of {maxPoints}<mark/>",bestScoreTemplate:"You scored <mark>{bestPoints} out of {maxPoints}</mark> points",prizesTitle:"Prizes you can still earn",questsTitle:"Quests you can still complete",chooseAnswer:"Select all answers that apply from the list:"},journeyCard:{successTitle:"You completed the game",buttonTitle:"Play Again",worstScoreTemplate:"You scored <mark>{points} out of {maxPoints}</mark> points. Your best result is <mark>{bestPoints} out of {maxPoints}<mark/>",bestScoreTemplate:"You scored <mark>{bestPoints} out of {maxPoints}</mark> points",prizesTitle:"Prizes you can still earn",questsTitle:"Quests you can still complete",chooseAnswer:"Select an answer:"},settings:{signInPopup:{title:"To save your progress and earn prizes, you need to register an account.",subtitle:"Your progress will be transferred to it!",buttonTitle:"Close",accentButtonTitle:"Register"},logout:"Log Out"},globalError:{title:"Something went wrong 🤔",subtitle:"While we figure out how to fix it, you can try refreshing the quest"},socialsPopup:{title:"Sign up with",subTitle:"Coming soon...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Skip",accentButtonTitle:"Confirm Answer"},header:{title:'Free week of training on the "Erich Fromm" plan',progressText:"experience",freeAccessBlock:{title:"1",subtitle:"week",text:"free"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header image"}},prizeList:{title:"Prizes"},questList:{title:"Quests",emptyQuestsWarning:"There is no quest"},user:{defaultName:"Guest",avatar:{alt:"Profile picture"},ban:{forbiddenQuest:"This quest is temporarily unavailable to you",wait:"Please wait"},randomNames:[{id:1,name:"Whiskers"},{id:2,name:"Buddy"},{id:3,name:"Grumpy"},{id:4,name:"Oliver"},{id:5,name:"Cleo"},{id:6,name:"Bubbles"},{id:7,name:"Rex"},{id:8,name:"Shadow"},{id:9,name:"Max"},{id:10,name:"Charlie"},{id:11,name:"Nibbles"},{id:12,name:"Daisy"},{id:13,name:"Chip"},{id:14,name:"Jack"},{id:15,name:"Toby"},{id:16,name:"Simba"},{id:17,name:"Ginger"},{id:18,name:"Oscar"},{id:19,name:"Bandit"},{id:20,name:"Pugsley"},{id:21,name:"Spike"},{id:22,name:"Sunny"},{id:23,name:"Cutie"},{id:24,name:"Dash"},{id:25,name:"Snowball"},{id:26,name:"Sparkle"},{id:27,name:"Mischief"},{id:28,name:"Pumpkin"},{id:29,name:"Thomas"},{id:30,name:"Bella"},{id:31,name:"Bandit"},{id:32,name:"Zippy"},{id:33,name:"Snoopy"},{id:34,name:"Chappy"},{id:35,name:"Coco"},{id:36,name:"Pip"},{id:37,name:"Fuzzy"},{id:38,name:"Misty"},{id:39,name:"Jerry"},{id:40,name:"Tigger"},{id:41,name:"Panda"},{id:42,name:"Hugo"},{id:43,name:"Bubbles"},{id:44,name:"Silky"},{id:45,name:"Midnight"},{id:46,name:"Bonnie"},{id:47,name:"Herbie"},{id:48,name:"Fiona"},{id:49,name:"Dusty"},{id:50,name:"Speckles"}]}},ru:{timer:{remainingTitle:"Ограничение времени:"},popup:{skillsTitle:"опыта",menuItems:["Призы","Квесты","Участники","Настройки"],prizes:{buttonTitle:"Получить приз",questionsTitle:"баллов"}},popupBar:{prizesTitle:"призов",skillsTitle:"опыта"},widget:{skillsTitle:"опыта",accentButtonTitle:"Подтвердить ответ",buttonTitle:"Пропустить"},testCard:{successTitle:"Вы прошли тест",buttonTitle:"Пройти еще раз",worstScoreTemplate:"Вы набрали <mark>{points} из {maxPoints}</mark> баллов. Ваш лучший результат <mark>{bestPoints} из {maxPoints}</mark>",bestScoreTemplate:"Вы набрали <mark>{bestPoints} из {maxPoints} баллов</mark>",prizesTitle:"Призы, которые еще можно получить",questsTitle:"Квесты, которые можно пройти ещё",chooseAnswer:"Выберите все подходящие ответы из списка:"},journeyCard:{successTitle:"Вы прошли игру",buttonTitle:"Пройти еще раз",worstScoreTemplate:"Вы набрали <mark>{points} из {maxPoints}</mark> баллов. Ваш лучший результат <mark>{bestPoints} из {maxPoints}</mark>",bestScoreTemplate:"Вы набрали <mark>{bestPoints} из {maxPoints} баллов</mark>",prizesTitle:"Призы, которые еще можно получить",questsTitle:"Квесты, которые можно пройти ещё",chooseAnswer:"Выберите ответ:"},settings:{signInPopup:{title:"Чтобы сохранить прогресс и получить призы, необходимо зарегистрировать аккаунт.",subtitle:"Полученный прогресс перенесется на него!",buttonTitle:"Закрыть",accentButtonTitle:"Зарегистрироваться"},logout:"Выйти"},globalError:{title:"Что-то пошло не так 🤔",subtitle:"Пока мы думаем, как всё починить, можете попробовать обновить квест"},socialsPopup:{title:"Зарегистрироваться с",subTitle:"Скоро...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Пропустить",accentButtonTitle:"Подтвердить ответ"},header:{title:"Бесплатная неделя обучения по тарифу «Эрих Фром»",progressText:"опыта",freeAccessBlock:{title:"1",subtitle:"неделя",text:"бесплатно"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header image"}},prizeList:{title:"Призы"},questList:{title:"Квесты",emptyQuestsWarning:"Квестов нет"},user:{defaultName:"Иван Иванов",avatar:{alt:"Картинка профиля"},ban:{forbiddenQuest:"Этот квест временно не доступен для вас",wait:"Подождите"},randomNames:[{id:1,name:"Барсик Грозный"},{id:2,name:"Пушистый Соловей"},{id:3,name:"Тяпа Угрюмый"},{id:4,name:"Василий Хвостатый"},{id:5,name:"Кеша Коварный"},{id:6,name:"Бублик Шустрый"},{id:7,name:"Шарик Проглот"},{id:8,name:"Мурзик Трепещущий"},{id:9,name:"Жора Ленивый"},{id:10,name:"Капитан Блоха"},{id:11,name:"Лорд Хомяк"},{id:12,name:"Жужа Смешная"},{id:13,name:"Чип Усатый"},{id:14,name:"Джек Обжора"},{id:15,name:"Тихон Пыхтящий"},{id:16,name:"Мяу Царь"},{id:17,name:"Рыжик Пушистик"},{id:18,name:"Борис Фырчащий"},{id:19,name:"Зорро Хитрый"},{id:20,name:"Мопсик Храпун"},{id:21,name:"Хрюша Громкий"},{id:22,name:"Гаврюша Радостный"},{id:23,name:"Котлетка Ловкая"},{id:24,name:"Сырник Бегущий"},{id:25,name:"Умка Забавный"},{id:26,name:"Бусинка Мимимишная"},{id:27,name:"Крош Шалун"},{id:28,name:"Пузик Забавный"},{id:29,name:"Томас Шпионистый"},{id:30,name:"Маруся Скачущая"},{id:31,name:"Ёжик Хитрый"},{id:32,name:"Клёпа Задорный"},{id:33,name:"Снупи Болтун"},{id:34,name:"Чапа Завтрак"},{id:35,name:"Кокос Хохотун"},{id:36,name:"Лапка Ласточка"},{id:37,name:"Фунтик Плюшевый"},{id:38,name:"Мурка Утренняя"},{id:39,name:"Джерри Нахальный"},{id:40,name:"Тигрик Зефирный"},{id:41,name:"Панда Забавная"},{id:42,name:"Хома Задумчивый"},{id:43,name:"Рыбка Пузырь"},{id:44,name:"Ласка Шелковая"},{id:45,name:"Мурзик Пончик"},{id:46,name:"Бонька Резвый"},{id:47,name:"Цапля Весёлая"},{id:48,name:"Филя Носатый"},{id:49,name:"Тузик Мохнатый"},{id:50,name:"Зяблик Пятнистый"}]}}},jl=Object.keys(Ll)[0],Je=Gt(e=>({translations:Ll[jl],localeName:jl,setLocale:t=>{let n=Ll[t];n||(n=Ll[jl],t=jl),e(()=>({translations:n,localeName:t}))}})),mf=({prizeData:e,userPoints:t,openSignInInvite:n,openInfoModal:s,index:i})=>{const a=Je(f=>f.translations.popup.prizes),c=localStorage.getItem("edmap-access-token"),d=()=>{c?s(i,"prize"):n(e)};return v.jsxs(eN,{children:[v.jsxs(b1,{children:[v.jsx(I1,{children:v.jsx(M1,{iconId:e==null?void 0:e.iconId})}),v.jsx(C1,{children:e==null?void 0:e.name})]}),v.jsxs(tN,{children:[e!=null&&e.isRecieved?v.jsx(qn,{"data-testid":`edmap-widget__prize-btn-${i+1}`,title:a.buttonTitle,isAccent:!0,style:{minWidth:"159px"},onClick:d}):v.jsx(v.Fragment,{children:v.jsxs(rN,{children:[v.jsx(xs,{text:a.questionsTitle,progressValue:t,overallValue:e==null?void 0:e.awardPoints}),v.jsx(Ml,{progressValue:t,overallValue:e==null?void 0:e.awardPoints})]})}),v.jsx(nN,{children:v.jsx(P1,{icon:v.jsx(sN,{}),onClick:()=>s(i,"info")})})]})]})},CN=$("div")({name:"GiftsContainer",class:"edg1do84z2",propsAsIs:!1}),RN=({openSignInInvite:e,openInfoModal:t})=>{var s;const n=ut(i=>i.results);return v.jsx(CN,{children:(s=n==null?void 0:n.prizes)==null?void 0:s.map((i,a)=>v.jsx(mf,{index:a,prizeData:i,userPoints:n==null?void 0:n.allPoints,openSignInInvite:e,openInfoModal:t},i==null?void 0:i.id))})},AN=$("div")({name:"UserInfoWrapper",class:"eduxnm4b4",propsAsIs:!1}),ON=$("div")({name:"ImageWrapper",class:"edi1fh8glv",propsAsIs:!1}),PN=$("div")({name:"InfoWrapper",class:"edi1e8ga1u",propsAsIs:!1}),NN=$("div")({name:"MainInfo",class:"edm1qs3iet",propsAsIs:!1}),MN=$("div")({name:"TitleWrapper",class:"edtbtnkwj",propsAsIs:!1}),LN=$("div")({name:"PoweredContainer",class:"edp1rvtj15",propsAsIs:!1}),jN=$("div")({name:"ProgressTextWrapper",class:"edpseoz31",propsAsIs:!1}),DN=$("h3")({name:"Title",class:"edt1jzrydq",propsAsIs:!1}),$N=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:26,fill:"none",...e},R.createElement("path",{fill:"#C3C3C3",stroke:"#363636",strokeWidth:2,d:"m20.66 18.577-.5.29-8.66 5-.5.287-.5-.288-8.66-5-.5-.289V7.423l.5-.29 8.66-5 .5-.287.5.288 8.66 5 .5.289z"})),FN=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:24,fill:"none",...e},R.createElement("path",{fill:"#FCBC21",stroke:"#ED7527",strokeWidth:2,d:"M9 2a4 4 0 0 1 4 0l5.66 3.268c1.238.714 2 2.035 2 3.464v6.536c0 1.429-.762 2.75-2 3.464L13 22a4 4 0 0 1-4 0l-5.66-3.268a4 4 0 0 1-2-3.464V8.732c0-1.429.762-2.75 2-3.464z"})),gf=({level:e})=>v.jsxs(UN,{children:[v.jsx(zN,{children:v.jsx($N,{})}),v.jsx(BN,{children:v.jsx(FN,{})}),v.jsx("span",{children:e})]}),BN=se("div")({name:"SmoothContainer",class:"edsvd1acj",propsAsIs:!1}),zN=se("div")({name:"RoughContainer",class:"edr1a0zzy8",propsAsIs:!1}),UN=se("div")({name:"Container",class:"edc1fcmc7w",propsAsIs:!1}),L1="edmap-profileEmoji",HN=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("🦄🐺🐗🪼🐝🦅🐋")].map(e=>e.segment),WN=e=>[...e].map(t=>t.codePointAt(0)).join("-"),Dl=Object.fromEntries(HN.map(e=>[WN(e),e])),qN=()=>{const e=localStorage.getItem(L1);if(e&&Dl[e])return Dl[e];const t=VN();return localStorage.setItem(L1,t),Dl[t]},VN=()=>{const e=Object.keys(Dl),t=GN(e.length);return e[t]},GN=e=>Math.floor(Math.random()*e),j1=$("div")({name:"Container",class:"edci91fsv",propsAsIs:!1}),yf=({src:e,...t})=>{const n=Je(i=>i.translations.user.avatar.alt);if(e)return v.jsx(j1,{children:v.jsx("img",{...t,src:e,alt:n})});const s=qN();return v.jsx(j1,{children:s})},vf=e=>e?e<10?1:Math.floor(e/10):1,YN=$("a")({name:"Container",class:"edc1ryazt0",propsAsIs:!1}),KN=$("span")({name:"Text",class:"edtk7p3bu",propsAsIs:!1}),QN=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:85,height:12,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"M4.992 0h10.144q1.04 0 1.936.4a4.9 4.9 0 0 1 1.584 1.056q.688.672 1.072 1.584.4.896.4 1.936v1.6H2.8q0 .511.176.96.192.432.496.768.32.32.752.512t.928.192h9.808q.336 0 .592-.064.255-.08.448-.192.208-.112.368-.256t.304-.32h3.264a5 5 0 0 1-.688 1.456 5.008 5.008 0 0 1-2.48 1.904 4.9 4.9 0 0 1-1.632.272H4.992a5 5 0 0 1-1.952-.384 5.1 5.1 0 0 1-1.584-1.072A5.1 5.1 0 0 1 .384 8.768 4.9 4.9 0 0 1 0 6.832V4.976q0-1.04.384-1.936a5.1 5.1 0 0 1 1.072-1.584Q2.128.784 3.04.4A4.8 4.8 0 0 1 4.992 0m.16 2.8q-.495 0-.928.192a2.3 2.3 0 0 0-.752.528q-.304.32-.496.768a2.5 2.5 0 0 0-.176.944h14.528a2.5 2.5 0 0 0-.176-.944 2.2 2.2 0 0 0-.496-.768 2.298 2.298 0 0 0-1.696-.72zM20.938.304H36.09q1.04 0 1.935.4A4.9 4.9 0 0 1 39.61 1.76q.672.672 1.056 1.584.4.896.4 1.936v1.248q0 1.024-.4 1.936a4.9 4.9 0 0 1-1.056 1.584 5.1 5.1 0 0 1-1.584 1.072 4.9 4.9 0 0 1-1.935.384H20.937zm2.8 2.8v5.6H36.09q.431 0 .831-.16.4-.176.688-.464.305-.304.48-.688.177-.4.177-.832V5.248q-.001-.432-.176-.816a2.1 2.1 0 0 0-.48-.688 1.9 1.9 0 0 0-.688-.464 2.05 2.05 0 0 0-.832-.176zM41.078 11.504l3.184-11.2h3.488l3.392 8.144L54.55.304h3.488l3.168 11.2h-3.04l-2.704-8.656-3.776 8.656h-1.088l-3.776-9.248-2.704 9.248zM65.037.304h5.471l2.225 11.2h-2.8l-.945-4.928h-2.431l-.945 4.928h-2.8zm3.328 2.768H67.18l-.352 2.16h1.888zM81.064.304q.656 0 1.232.256.592.24 1.024.672t.672 1.024q.255.576.256 1.232 0 .656-.256 1.232-.24.56-.672.976t-1.024.656q-.576.224-1.232.224h-3.936v4.928h-2.8V.304zm-.832 2.8h-3.104v2.128h3.104q.56 0 .88-.288.336-.288.336-.784 0-.48-.336-.768-.32-.288-.88-.288"})),D1={en:"en",ru:"ru",de:"de",es:"es",default:"en"},XN=e=>{const t=D1[e];return t||D1.default},$1=()=>{const e=Je(s=>s.localeName),t=XN(e),n=new URLSearchParams;return n.set("utm_source",window.location.hostname),n.set("utm_medium",window.location.href),v.jsxs(YN,{href:`https://edmap.space/${t}?${n}`,target:"_blank",children:[v.jsxs(KN,{children:["Powered by ",e]}),v.jsx(QN,{})]})},JN=()=>typeof window<"u"&&window.location.hostname==="edmap.space",ZN=()=>{var d,f,h,g,y;const[e,t]=R.useState(""),n=ut(w=>w.results),s=(d=n==null?void 0:n.User)==null?void 0:d.username,i=Je(w=>w.translations.user.randomNames),a=Je(w=>w.translations.popup),c=JN();return R.useEffect(()=>{const w=_=>{var k;const E=Math.floor(Math.random()*_.length);return(k=_[E])==null?void 0:k.name};(_=>{const E=localStorage.getItem("edmap-access-token"),k=localStorage.getItem("edmap-random-name");if(!k&&!E){const A=w(_);localStorage.setItem("edmap-random-name",A),t(A)}else E?(localStorage.removeItem("edmap-random-name"),t(s)):t(k)})(i)},[s,i]),v.jsxs(AN,{children:[v.jsx(ON,{children:v.jsx(yf,{src:(h=(f=n==null?void 0:n.User)==null?void 0:f.avatar)==null?void 0:h.src})}),v.jsxs(PN,{children:[v.jsxs(NN,{children:[v.jsxs(MN,{children:[v.jsx(DN,{children:s??e}),v.jsx(gf,{level:vf(n==null?void 0:n.allPoints)})]}),v.jsx(jN,{children:v.jsx(xs,{progressValue:n==null?void 0:n.allPoints,overallValue:(g=n==null?void 0:n.map)==null?void 0:g.points,text:a.skillsTitle})}),v.jsx(Ml,{progressValue:n==null?void 0:n.allPoints,overallValue:(y=n==null?void 0:n.map)==null?void 0:y.points})]}),!c&&v.jsx(LN,{children:v.jsx($1,{})})]})]})},e3=$("ul")({name:"Container",class:"edc18eiqam",propsAsIs:!1}),t3=$("li")({name:"Item",class:"edi8drxbn",propsAsIs:!1}),n3=$("a")({name:"ItemLink",class:"edi1ovdisv",propsAsIs:!1}),r3=$("p")({name:"QuestName",class:"edqiwgwie",propsAsIs:!1}),s3=$("div")({name:"IconWrapper",class:"edi5p8aot",propsAsIs:!1}),F1=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e},R.createElement("path",{fill:"currentColor",d:"M16 15h-2V3.414L1.707 15.707.293 14.293 12.586 2H1V0h15z"})),Sf=({quests:e})=>v.jsx(e3,{children:e==null?void 0:e.map(t=>{var n;return v.jsx(t3,{children:v.jsxs(n3,{href:t==null?void 0:t.url,children:[v.jsx(r3,{children:t==null?void 0:t.name}),v.jsxs(s3,{children:[v.jsx(xs,{progressValue:((n=t==null?void 0:t.resultQuestAnswer)==null?void 0:n.points)??0,overallValue:t==null?void 0:t.maxPoints}),v.jsx(F1,{})]})]})},t==null?void 0:t.id)})}),o3=$("div")({name:"Container",class:"edc1cuvton",propsAsIs:!1}),i3=$("div")({name:"Wrapper",class:"edw1bhqzg6",propsAsIs:!1}),wf=({setIsRegInfoVisible:e,setIsSocialModalVisible:t,openSignInModal:n})=>{const s=Je(a=>a.translations.settings.signInPopup),i=()=>{t(!0),n()};return v.jsxs(i3,{children:[v.jsxs(E1,{children:[v.jsx(x1,{children:s.title}),v.jsx(k1,{children:s.subtitle})]}),v.jsxs(T1,{children:[v.jsx(qn,{title:s.buttonTitle,onClick:()=>e(!1)}),v.jsx(qn,{title:s.accentButtonTitle,isAccent:!0,onClick:i})]})]})},wo=Gt(e=>({answers:[],addAnswer:async(t,n,s)=>{const i={id:`${ss(13)}`,answerId:n,questionId:s,userId:await Wn(),sessionId:So(t)};e(a=>({answers:[...a.answers,i]}))},removeAnswer:t=>e(n=>({answers:n.answers.filter(s=>s.answerId!==t)})),resetAnswers:()=>e({answers:[]})})),B1=async(e=[],t="high")=>{const n=e.map(i=>new Promise(a=>{const c=new Image;c.src=i,c.fetchPriority=t,c.onload=()=>a(),c.onerror=()=>a()}));return await Promise.all(n)},a3=async(e,t)=>{const n={id:ss(13),journeyEdgeId:t,sessionId:So(e),userId:await Wn()};return await ot.post("/user-journey-answer",n)},l3=e=>({node:e.data.node,currentResources:e.data.currentResources}),c3=async(e,t)=>{const n=await a3(e,t);return n?l3(n):null},z1=async e=>{if(!e)return null;const t=So(e),n=`/user-journey-answer/${e}/${t}`,s=await ot.get(n);return{node:s.data.node,currentResources:U1(s.data.currentResources)}},u3=async e=>await ot.post("/result-quest-answer/journey",{id:ss(16),sessionId:So(e.id),questId:e.id,mapId:e.mapId,userId:await Wn()}),U1=e=>e.map(f3),d3=e=>{const t=Number.isInteger(e);return new Intl.NumberFormat(void 0,{minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)},f3=e=>({id:e.id,name:e.name,value:d3(e.value),iconId:e.iconId,isVisible:e.isVisible}),$l=e=>e.filter(n=>n.type==="image").map(n=>{var s,i;return(i=(s=n.data)==null?void 0:s.file)==null?void 0:i.url}),H1=(e,t)=>{let n=t;t===e.length&&(n=0);const s=e[n],i=$l(s.text.blocks),a=s.answers.flatMap(c=>$l(c.text.blocks));return[...i,...a]},p3=async(e,t)=>{const n=`/journey-node/${e}/resources`;try{const{data:s}=await ot.get(n,{signal:t});return s}catch{return{imageUrls:[]}}},ur=Gt(e=>({currentNode:{data:{blocks:[]},sourceEdges:[]},resources:[],setCurrentNode:(t,n)=>{e({currentNode:t,resources:U1(n)})},initialize:async t=>{if(!t)return;const{node:n,currentResources:s}=await z1(t);e(()=>({currentNode:n,resources:s}))},restart:(t,n)=>{e({currentNode:t,resources:n})}})),h3=()=>{const e=ut(g=>g.refreshUserResults),t=be(g=>g.quest),n=wo(g=>g.resetAnswers),s=be(g=>g.resetSteps),i=be(g=>g.setIsFinished),a=ut(g=>g.setPointsAreReceived),c=ur(g=>g.restart),d=Je(g=>g.translations.settings),f=()=>{if((t==null?void 0:t.questType)==="Test")d1(t==null?void 0:t.id),n(),s(),i(!1),a(!1);else if((t==null?void 0:t.questType)==="Journey"){const g=t.journey.journeyNodes.find(y=>y.isFirstNode);c(t.id,g,t.journey.resources)}},h=async()=>{var g;await zh(),e((g=window.__widgetEdmap)==null?void 0:g.mapId),f()};return v.jsx(qn,{onClick:h,title:d.logout,isAccent:!0})},m3=({openSignInModal:e,setIsSocialModalVisible:t})=>{const n=localStorage.getItem("edmap-access-token"),[s,i]=R.useState(!0);return v.jsx(o3,{children:n&&v.jsx(T1,{children:v.jsx(h3,{})})||s&&v.jsx(wf,{openSignInModal:e,setIsSocialModalVisible:t,setIsRegInfoVisible:i})})},g3=$("div")({name:"PoweredContainer",class:"edp153jgy2",propsAsIs:!1}),y3=$("div")({name:"ProgressTextContainer",class:"edp88qvra",propsAsIs:!1}),v3=$("div")({name:"StepContainer",class:"eds3v2lpt",propsAsIs:!1}),W1=$("div")({name:"ButtonWrapper",class:"edb1h6cmje",propsAsIs:!1}),S3=$("div")({name:"Container",class:"edc1g9vmxh",propsAsIs:!1}),w3=$("div")({name:"Background",class:"edb1dvqizg",propsAsIs:!1}),_3=$("div")({name:"Container",class:"edc24c84i",propsAsIs:!1}),E3=$("div")({name:"InfoBlock",class:"edic7ywtw",propsAsIs:!1}),x3=$("p")({name:"InfoBlockTitle",class:"ediy16h9m",propsAsIs:!1}),k3=$("p")({name:"InfoBlockSubtitle",class:"edi1m54nr",propsAsIs:!1}),T3=$(W1)({name:"CustomButtonWrapper",class:"edc10pc0jd",propsAsIs:!0}),b3=$("div")({name:"Container",class:"edcitwxpq",propsAsIs:!1}),I3=$("div")({name:"QuestTypeIcon",class:"edqdo840j",propsAsIs:!1}),C3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"m14.505 15.138.11.006a1 1 0 0 1 .66.354l3.114 3.748c.89 1.072 2.633.442 2.633-.95v-9.43a4.656 4.656 0 0 0-4.425-4.65l-.23-.005H7.634A4.656 4.656 0 0 0 2.98 8.866v8.953c0 1.344 1.64 2 2.567 1.025l3.224-3.396c.189-.198.451-.31.726-.31zm8.517 3.158c0 3.264-4.084 4.74-6.17 2.228l-2.815-3.386H9.925L6.998 20.22C4.828 22.504.98 20.97.98 17.819V8.866a6.657 6.657 0 0 1 6.653-6.655h8.734l.33.008a6.66 6.66 0 0 1 6.325 6.645z"}),R.createElement("path",{fill:"currentColor",d:"M9 7v2h2v2H9v2H7v-2H5V9h2V7zM15.05 10.59a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M17.434 12.973a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"})),R3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"m8.6 2.799-4.694 3.52-2.613-2.613 1.414-1.414 1.387 1.387L7.4 1.199zm13.4-.3v2H11v-2zM22 10.999v2H11v-2zM22 19.499v2H11v-2zM4.5 13.999a2 2 0 1 0 0-4 2 2 0 0 0 0 4M4.5 22.499a2 2 0 1 0 0-4 2 2 0 0 0 0 4"})),A3=()=>{const t=be(n=>n.quest).questType==="Test"?v.jsx(R3,{}):v.jsx(C3,{});return v.jsx(b3,{children:v.jsx(I3,{children:t})})},O3=({icon:e,title:t,...n})=>v.jsxs(P3,{...n,children:[e,v.jsx(N3,{children:t})]}),P3=se(hf)({name:"CustomButton",class:"edc1yr71r",propsAsIs:!0}),N3=se("p")({name:"Title",class:"edtsdg8a8",propsAsIs:!1}),M3=$("div")({name:"Container",class:"edc1mwrga6",propsAsIs:!1}),q1=$("h3")({name:"Title",class:"edt1l3a9ma",propsAsIs:!1}),L3=$("div")({name:"UnavailableButtons",class:"edutbpur",propsAsIs:!1}),j3=$("div")({name:"CloseButton",class:"edcnx305o",propsAsIs:!1}),D3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 333334 333334",...e},R.createElement("path",{d:"M166667 0c92048 0 166667 74619 166667 166667s-74619 166667-166667 166667S0 258715 0 166667 74619 0 166667 0m80219 91205-29735 149919s-4158 10396-15594 5404l-68410-53854s76104-68409 79222-71320c3119-2911 2079-3534 2079-3534 207-3535-5614 0-5614 0l-100846 64043-42002-14140s-6446-2288-7069-7277c-624-4992 7277-7694 7277-7694l166970-65498s13722-6030 13722 3951m-87637 122889-27141 24745s-2122 1609-4443 601l5197-45965z"})),$3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,clipRule:"evenodd",viewBox:"0 0 512 512",...e},R.createElement("path",{d:"M32.582 370.734C15.127 336.291 5.12 297.425 5.12 256c0-41.426 10.007-80.291 27.462-114.735C74.705 57.484 161.047 0 261.12 0c69.12 0 126.836 25.367 171.287 66.793l-73.31 73.309c-26.763-25.135-60.276-38.168-97.977-38.168-66.56 0-123.113 44.917-143.36 105.426-5.12 15.36-8.146 31.65-8.146 48.64 0 16.989 3.026 33.28 8.146 48.64l-.303.232h.303c20.247 60.51 76.8 105.426 143.36 105.426 34.443 0 63.534-9.31 86.341-24.67 27.23-18.152 45.382-45.148 51.433-77.032H261.12v-99.142h241.105c3.025 16.757 4.654 34.211 4.654 52.364 0 77.963-27.927 143.592-76.334 188.276-42.356 39.098-100.305 61.905-169.425 61.905-100.073 0-186.415-57.483-228.538-141.032z"})),F3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:50,height:50,fill:"#1A1A1A",...e},R.createElement("path",{d:"M41.625 10.77c-3.98-3.204-10.277-3.747-10.547-3.766a.99.99 0 0 0-.988.586 7 7 0 0 0-.305.832c2.633.445 5.867 1.34 8.793 3.156a1 1 0 1 1-1.055 1.7C32.493 10.155 26.211 10 25 10c-1.21 0-7.496.156-12.523 3.277a1 1 0 0 1-1.055-1.7c2.926-1.811 6.16-2.71 8.793-3.151-.152-.496-.29-.809-.3-.836a.99.99 0 0 0-.993-.586c-.27.02-6.567.562-10.602 3.809C6.215 12.762 2 24.153 2 34c0 .176.047.344.133.496 2.906 5.11 10.84 6.445 12.648 6.504h.031a1 1 0 0 0 .81-.41l1.827-2.516c-4.933-1.273-7.453-3.437-7.597-3.566a1 1 0 0 1 1.324-1.5C11.234 33.063 15.875 37 25 37c9.14 0 13.781-3.953 13.828-3.992a1 1 0 0 1 1.41.094.996.996 0 0 1-.09 1.406c-.144.129-2.664 2.293-7.597 3.566l1.828 2.516a1 1 0 0 0 .809.41h.03c1.81-.059 9.743-1.395 12.65-6.504.085-.152.132-.32.132-.496 0-9.848-4.215-21.238-6.375-23.23M18.5 30c-1.934 0-3.5-1.79-3.5-4s1.566-4 3.5-4 3.5 1.79 3.5 4-1.566 4-3.5 4m13 0c-1.934 0-3.5-1.79-3.5-4s1.566-4 3.5-4 3.5 1.79 3.5 4-1.566 4-3.5 4"})),B3=[{name:"telegram",icon:v.jsx(D3,{}),onClick:hP},{name:"google",icon:v.jsx($3,{}),onClick:gP},{name:"discord",icon:v.jsx(F3,{}),onClick:console.log}],V1=e=>v.jsx(O3,{"data-testid":`edmap-widget__social-${e.name}-btn`,title:e.title,icon:e.icon,disabled:e.disabled,onClick:e.onClick},e.name),z3=(e,t)=>{var n;return{...e,title:(n=t[e.name])==null?void 0:n.title}},U3=(e,t)=>({...e,disabled:t}),H3=({closeModal:e})=>{var f;const t=Je(h=>h.translations.socialsPopup),n=ut(h=>h.results),s=(f=n==null?void 0:n.map)==null?void 0:f.registration,a=B3.map(h=>z3(h,t)).map(h=>U3(h,!s[h.name])),c=a.filter(h=>!h.disabled),d=a.filter(h=>h.disabled);return v.jsxs(M3,{"data-testid":"edmap-widget__social-popup",children:[c.length>0&&v.jsxs(v.Fragment,{children:[v.jsx(j3,{onClick:e,children:"✕"}),v.jsx(q1,{children:t.title}),c.map(V1)]}),d.length>0&&v.jsxs(L3,{children:[v.jsx(q1,{children:t.subTitle}),d.map(V1)]})]})},G1=({isOpen:e,closeModal:t,isSocialModalVisible:n,setIsSocialModalVisible:s})=>{const i=R.useRef(null),a=Je(g=>g.translations.signInPopup),[c,d]=R.useState(!1),f=g=>{i.current&&!i.current.contains(g.target)&&(t(),s(!1),d(!1))},h=()=>{s(!1),d(!1),t()};if(R.useEffect(()=>(d(!1),e?document.addEventListener("mousedown",f):document.removeEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),[e]),!!e)return v.jsx(w3,{children:v.jsx(_3,{ref:i,children:c||n?v.jsx(H3,{closeModal:h}):v.jsxs("div",{"data-testid":"edmap-widget__signin-popup",children:[v.jsxs(E3,{children:[v.jsx(x3,{children:a.title}),v.jsx(k3,{children:a.subtitle})]}),v.jsxs(T3,{children:[v.jsx(qn,{title:a.buttonTitle,onClick:t}),v.jsx(qn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:()=>d(!0)})]})]})})})};function Fl(){const[e,t]=R.useState(!1);return{isOpen:e,openModal:()=>t(!0),closeModal:()=>t(!1)}}const W3=$("div")({name:"Background",class:"edbwx2goj",propsAsIs:!1}),q3=$("div")({name:"Container",class:"edcc2hi8c",propsAsIs:!1}),V3=$("div")({name:"CloseButton",class:"edc1td8pnr",propsAsIs:!1}),_o=se("p")({name:"FittableText",class:"edf16hcfkz",propsAsIs:!1}),G3=se(_o)({name:"QuestionParagraph",class:"edqbe2o7o",propsAsIs:!0}),Y3=se(_o)({name:"AnswerParagraph",class:"eda1u10kac",propsAsIs:!0}),K3=se(_o)({name:"JourneyWidgetText",class:"edj1c2nqbc",propsAsIs:!0}),Y1=se(_o)({name:"EdgeText",class:"edew0t9wk",propsAsIs:!0}),Q3=se(Y1)({name:"NodeDescription",class:"edn13pdjrz",propsAsIs:!0}),X3=se(_o)({name:"PrizeInfoParagraph",class:"edp1ot2zjf",propsAsIs:!0}),J3=se(_o)({name:"PrizeDescParagraph",class:"edp120urih",propsAsIs:!0}),Z3=se("div")({name:"RichTextWrap",class:"edr4pnqsv",propsAsIs:!1}),e4=se("table")({name:"StyledTable",class:"edsnwt7pg",propsAsIs:!1}),t4=se("div")({name:"Border",class:"edb1uwnm14",propsAsIs:!1}),n4=se("img")({name:"StyledImage",class:"eds4xz4ib",propsAsIs:!1}),r4=se("div")({name:"CenteringBlock",class:"edc1nwul5g",propsAsIs:!1}),s4=se("img")({name:"NodeDescriptionImage",class:"ednk9d4jz",propsAsIs:!1}),o4=se("span")({name:"ImageCaption",class:"ediz6of6y",propsAsIs:!1}),i4=se("h1")({name:"Heading1",class:"edh1mrpu6g",propsAsIs:!1}),a4=se("h2")({name:"Heading2",class:"edh4lzuk3",propsAsIs:!1}),l4=se("h3")({name:"Heading3",class:"edhpo5zbv",propsAsIs:!1}),c4=se("h4")({name:"Heading4",class:"edhm6a0je",propsAsIs:!1}),u4=se("div")({name:"BlockWrapper",class:"edbaa4gm3",propsAsIs:!1}),d4=se("div")({name:"Container",class:"edc1gv2nxr",propsAsIs:!1}),f4=se("div")({name:"Header",class:"edh1ox5ey6",propsAsIs:!1}),p4=se("div")({name:"CodeBackground",class:"edc1pst60x",propsAsIs:!1}),h4=se("div")({name:"CodeBlock",class:"edc1m8ekz6",propsAsIs:!1}),m4=se("pre")({name:"Scrollable",class:"eds1002l4s",propsAsIs:!1}),g4=se("span")({name:"LangName",class:"edllrx5n5",propsAsIs:!1});function Bl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var y4=typeof global=="object"&&global&&global.Object===Object&&global,v4=typeof self=="object"&&self&&self.Object===Object&&self,K1=y4||v4||Function("return this")(),_f=function(){return K1.Date.now()},S4=/\s/;function w4(e){for(var t=e.length;t--&&S4.test(e.charAt(t)););return t}var _4=/^\s+/;function E4(e){return e&&e.slice(0,w4(e)+1).replace(_4,"")}var zl=K1.Symbol,Q1=Object.prototype,x4=Q1.hasOwnProperty,k4=Q1.toString,Ii=zl?zl.toStringTag:void 0;function T4(e){var t=x4.call(e,Ii),n=e[Ii];try{e[Ii]=void 0;var s=!0}catch{}var i=k4.call(e);return s&&(t?e[Ii]=n:delete e[Ii]),i}var b4=Object.prototype,I4=b4.toString;function C4(e){return I4.call(e)}var R4="[object Null]",A4="[object Undefined]",X1=zl?zl.toStringTag:void 0;function O4(e){return e==null?e===void 0?A4:R4:X1&&X1 in Object(e)?T4(e):C4(e)}function P4(e){return e!=null&&typeof e=="object"}var N4="[object Symbol]";function M4(e){return typeof e=="symbol"||P4(e)&&O4(e)==N4}var J1=NaN,L4=/^[-+]0x[0-9a-f]+$/i,j4=/^0b[01]+$/i,D4=/^0o[0-7]+$/i,$4=parseInt;function Z1(e){if(typeof e=="number")return e;if(M4(e))return J1;if(Bl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Bl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=E4(e);var n=j4.test(e);return n||D4.test(e)?$4(e.slice(2),n?2:8):L4.test(e)?J1:+e}var F4="Expected a function",B4=Math.max,z4=Math.min;function Ul(e,t,n){var s,i,a,c,d,f,h=0,g=!1,y=!1,w=!0;if(typeof e!="function")throw new TypeError(F4);t=Z1(t)||0,Bl(n)&&(g=!!n.leading,y="maxWait"in n,a=y?B4(Z1(n.maxWait)||0,t):a,w="trailing"in n?!!n.trailing:w);function x(O){var C=s,W=i;return s=i=void 0,h=O,c=e.apply(W,C),c}function _(O){return h=O,d=setTimeout(A,t),g?x(O):c}function E(O){var C=O-f,W=O-h,F=t-C;return y?z4(F,a-W):F}function k(O){var C=O-f,W=O-h;return f===void 0||C>=t||C<0||y&&W>=a}function A(){var O=_f();if(k(O))return L(O);d=setTimeout(A,E(O))}function L(O){return d=void 0,w&&s?x(O):(s=i=void 0,c)}function j(){d!==void 0&&clearTimeout(d),h=0,s=f=i=d=void 0}function K(){return d===void 0?c:L(_f())}function H(){var O=_f(),C=k(O);if(s=arguments,i=this,f=O,C){if(d===void 0)return _(f);if(y)return clearTimeout(d),d=setTimeout(A,t),x(f)}return d===void 0&&(d=setTimeout(A,t)),c}return H.cancel=j,H.flush=K,H}var U4="Expected a function";function H4(e,t,n){var s=!0,i=!0;if(typeof e!="function")throw new TypeError(U4);return Bl(n)&&(s="leading"in n?!!n.leading:s,i="trailing"in n?!!n.trailing:i),Ul(e,t,{leading:s,maxWait:t,trailing:i})}var Eo=function(){return Eo=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Eo.apply(this,arguments)};function ev(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function tv(e){return!e||!e.ownerDocument?document:e.ownerDocument}var nv=function(e){var t={},n=Array.prototype.reduce.call(e,function(s,i){var a=i.name.match(/data-simplebar-(.+)/);if(a){var c=a[1].replace(/\W+(.)/g,function(d,f){return f.toUpperCase()});switch(i.value){case"true":s[c]=!0;break;case"false":s[c]=!1;break;case void 0:s[c]=!0;break;default:s[c]=i.value}}return s},t);return n};function rv(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function sv(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function ov(e){return".".concat(e.split(" ").join("."))}var Ef=!!(typeof window<"u"&&window.document&&window.document.createElement),W4=Object.freeze({__proto__:null,addClasses:rv,canUseDOM:Ef,classNamesToQuery:ov,getElementDocument:tv,getElementWindow:ev,getOptions:nv,removeClasses:sv}),xo=null,iv=null;Ef&&window.addEventListener("resize",function(){iv!==window.devicePixelRatio&&(iv=window.devicePixelRatio,xo=null)});function av(){if(xo===null){if(typeof document>"u")return xo=0,xo;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),xo=n}return xo}var Mr=ev,xf=tv,q4=nv,Lr=rv,jr=sv,Yt=ov,Ci=function(){function e(t,n){n===void 0&&(n={});var s=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=Mr(s.el);s.scrollXTicking||(i.requestAnimationFrame(s.scrollX),s.scrollXTicking=!0),s.scrollYTicking||(i.requestAnimationFrame(s.scrollY),s.scrollYTicking=!0),s.isScrolling||(s.isScrolling=!0,Lr(s.el,s.classNames.scrolling)),s.showScrollbar("x"),s.showScrollbar("y"),s.onStopScrolling()},this.scrollX=function(){s.axis.x.isOverflowing&&s.positionScrollbar("x"),s.scrollXTicking=!1},this.scrollY=function(){s.axis.y.isOverflowing&&s.positionScrollbar("y"),s.scrollYTicking=!1},this._onStopScrolling=function(){jr(s.el,s.classNames.scrolling),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isScrolling=!1},this.onMouseEnter=function(){s.isMouseEntering||(Lr(s.el,s.classNames.mouseEntered),s.showScrollbar("x"),s.showScrollbar("y"),s.isMouseEntering=!0),s.onMouseEntered()},this._onMouseEntered=function(){jr(s.el,s.classNames.mouseEntered),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isMouseEntering=!1},this._onMouseMove=function(i){s.mouseX=i.clientX,s.mouseY=i.clientY,(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseMoveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseMoveForAxis("y")},this.onMouseLeave=function(){s.onMouseMove.cancel(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseLeaveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseLeaveForAxis("y"),s.mouseX=-1,s.mouseY=-1},this._onWindowResize=function(){s.scrollbarWidth=s.getScrollbarWidth(),s.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!s.axis.x.track.el||!s.axis.y.track.el||!s.axis.x.scrollbar.el||!s.axis.y.scrollbar.el)){var a,c;s.axis.x.track.rect=s.axis.x.track.el.getBoundingClientRect(),s.axis.y.track.rect=s.axis.y.track.el.getBoundingClientRect(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&(a=s.isWithinBounds(s.axis.x.track.rect)),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&(c=s.isWithinBounds(s.axis.y.track.rect)),(a||c)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(a&&(s.axis.x.scrollbar.rect=s.axis.x.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.x.scrollbar.rect)?s.onDragStart(i,"x"):s.onTrackClick(i,"x")),c&&(s.axis.y.scrollbar.rect=s.axis.y.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.y.scrollbar.rect)?s.onDragStart(i,"y"):s.onTrackClick(i,"y"))))}},this.drag=function(i){var a,c,d,f,h,g,y,w,x,_,E;if(!(!s.draggedAxis||!s.contentWrapperEl)){var k,A=s.axis[s.draggedAxis].track,L=(c=(a=A.rect)===null||a===void 0?void 0:a[s.axis[s.draggedAxis].sizeAttr])!==null&&c!==void 0?c:0,j=s.axis[s.draggedAxis].scrollbar,K=(f=(d=s.contentWrapperEl)===null||d===void 0?void 0:d[s.axis[s.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,H=parseInt((g=(h=s.elStyles)===null||h===void 0?void 0:h[s.axis[s.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);i.preventDefault(),i.stopPropagation(),s.draggedAxis==="y"?k=i.pageY:k=i.pageX;var O=k-((w=(y=A.rect)===null||y===void 0?void 0:y[s.axis[s.draggedAxis].offsetAttr])!==null&&w!==void 0?w:0)-s.axis[s.draggedAxis].dragOffset;O=s.draggedAxis==="x"&&s.isRtl?((_=(x=A.rect)===null||x===void 0?void 0:x[s.axis[s.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-j.size-O:O;var C=O/(L-j.size),W=C*(K-H);s.draggedAxis==="x"&&s.isRtl&&(W=!((E=e.getRtlHelpers())===null||E===void 0)&&E.isScrollingToNegative?-W:W),s.contentWrapperEl[s.axis[s.draggedAxis].scrollOffsetAttr]=W}},this.onEndDrag=function(i){s.isDragging=!1;var a=xf(s.el),c=Mr(s.el);i.preventDefault(),i.stopPropagation(),jr(s.el,s.classNames.dragging),s.onStopScrolling(),a.removeEventListener("mousemove",s.drag,!0),a.removeEventListener("mouseup",s.onEndDrag,!0),s.removePreventClickId=c.setTimeout(function(){a.removeEventListener("click",s.preventClick,!0),a.removeEventListener("dblclick",s.preventClick,!0),s.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=Eo(Eo({},e.defaultOptions),n),this.classNames=Eo(Eo({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=H4(this._onMouseMove,64),this.onWindowResize=Ul(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ul(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ul(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,s=n==null?void 0:n.firstElementChild;if(!s)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),a=e.getOffset(s);n.scrollLeft=-999;var c=e.getOffset(s);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==a.left,isScrollingToNegative:a.left!==c.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:av()}catch{return av()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),s=xf(t),i=Mr(t);return{top:n.top+(i.pageYOffset||s.documentElement.scrollTop),left:n.left+(i.pageXOffset||s.documentElement.scrollLeft)}},e.prototype.init=function(){Ef&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Yt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Yt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Yt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Yt(this.classNames.offset)),this.maskEl=this.el.querySelector(Yt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Yt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Yt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Yt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Yt(this.classNames.track)).concat(Yt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Yt(this.classNames.track)).concat(Yt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Yt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Yt(this.classNames.scrollbar)))||null,this.options.autoHide||(Lr(this.axis.x.scrollbar.el,this.classNames.visible),Lr(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,s=Mr(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),s.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,a=s.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){i&&s.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),s.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new s.MutationObserver(function(){s.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Mr(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,s=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,a=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,h=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=s?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||h,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&h>n,this.axis.y.isOverflowing=f>g,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var y=this.axis.x.isOverflowing?this.scrollbarWidth:0,w=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&h>a-w,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>g-y,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,s;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],a=(s=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&s!==void 0?s:0,c=a/i,d;return d=Math.max(~~(c*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},e.prototype.positionScrollbar=function(t){var n,s,i;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var c=this.contentWrapperEl[this.axis[t].scrollSizeAttr],d=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[t].sizeAttr],10),h=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];h=t==="x"&&this.isRtl&&(!((s=e.getRtlHelpers())===null||s===void 0)&&s.isScrollOriginAtZero)?-h:h,t==="x"&&this.isRtl&&(h=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?h:-h);var g=h/(c-f),y=~~((d-a.size)*g);y=t==="x"&&this.isRtl?-y+(d-a.size):y,a.el.style.transform=t==="x"?"translate3d(".concat(y,"px, 0, 0)"):"translate3d(0, ".concat(y,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,s=this.axis[t].scrollbar.el;!n||!s||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?s.style.display="block":s.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Lr(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(jr(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Lr(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Lr(n.scrollbar.el,this.classNames.hover):jr(n.scrollbar.el,this.classNames.hover)):(jr(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),jr(this.axis[t].track.el,this.classNames.hover),jr(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var s;n===void 0&&(n="y"),this.isDragging=!0;var i=xf(this.el),a=Mr(this.el),c=this.axis[n].scrollbar,d=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=d-(((s=c.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Lr(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var s=this,i,a,c,d;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var h=Mr(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var g=this.axis[n].scrollbar,y=(a=(i=g.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&a!==void 0?a:0,w=parseInt((d=(c=this.elStyles)===null||c===void 0?void 0:c[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),x=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-y:this.mouseX-y,E=_<0?-1:1,k=E===-1?x-w:x+w,A=40,L=function(){s.contentWrapperEl&&(E===-1?x>k&&(x-=A,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=x,h.requestAnimationFrame(L)):x<k&&(x+=A,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=x,h.requestAnimationFrame(L)))};L()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Mr(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return s.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=q4,e.helpers=W4,e}(),on=function(){return on=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},on.apply(this,arguments)};function V4(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}var lv=R.forwardRef(function(e,t){var n=e.children,s=e.scrollableNodeProps,i=s===void 0?{}:s,a=V4(e,["children","scrollableNodeProps"]),c=R.useRef(),d=R.useRef(),f=R.useRef(),h={},g={};Object.keys(a).forEach(function(x){Object.prototype.hasOwnProperty.call(Ci.defaultOptions,x)?h[x]=a[x]:g[x]=a[x]});var y=on(on({},Ci.defaultOptions.classNames),h.classNames),w=on(on({},i),{className:"".concat(y.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:h.tabIndex||Ci.defaultOptions.tabIndex,role:"region","aria-label":h.ariaLabel||Ci.defaultOptions.ariaLabel});return R.useEffect(function(){var x;return d.current=w.ref?w.ref.current:d.current,c.current&&(x=new Ci(c.current,on(on(on({},h),d.current&&{scrollableNode:d.current}),f.current&&{contentNode:f.current})),typeof t=="function"?t(x):t&&(t.current=x)),function(){x==null||x.unMount(),x=null,typeof t=="function"&&t(null)}},[]),R.createElement("div",on({"data-simplebar":"init",ref:c},g),R.createElement("div",{className:y.wrapper},R.createElement("div",{className:y.heightAutoObserverWrapperEl},R.createElement("div",{className:y.heightAutoObserverEl})),R.createElement("div",{className:y.mask},R.createElement("div",{className:y.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:on(on({},w),{ref:d}),contentNodeRef:f,contentNodeProps:{className:y.contentEl,ref:f}}):R.createElement("div",on({},w),R.createElement("div",{className:y.contentEl},n)))),R.createElement("div",{className:y.placeholder})),R.createElement("div",{className:"".concat(y.track," ").concat(y.horizontal)},R.createElement("div",{className:y.scrollbar})),R.createElement("div",{className:"".concat(y.track," ").concat(y.vertical)},R.createElement("div",{className:y.scrollbar})))});lv.displayName="SimpleBar";const G4=se("button")({name:"Container",class:"edc1q8nrja",propsAsIs:!1}),Y4=se("span")({name:"Text",class:"edt1votrxj",propsAsIs:!1}),K4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M16 9a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zm2 10a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3z"}),R.createElement("path",{fill:"currentColor",d:"M19 2a3 3 0 0 1 3 3v10a3 3 0 0 1-2 2.825V5a1 1 0 0 0-1-1H6.174C6.586 2.835 7.694 2 9 2z"})),Q4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M20.414 7.01 9.88 17.405l-6.293-6.21L4.99 9.771l4.888 4.824 9.132-9.01z"})),X4=({textToCopy:e})=>{const[t,n]=R.useState(!1),s=R.useRef(null),i=()=>{if(clearTimeout(s.current),t){n(!1);return}navigator.clipboard.writeText(e),n(!0),s.current=setTimeout(()=>{n(!1)},2e3)};return v.jsxs(G4,{style:{background:t?"var(--code-block-copied-button-bg)":"var(--code-block-copy-button-bg)"},onClick:i,children:[t?v.jsx(Q4,{}):v.jsx(K4,{}),v.jsx(Y4,{children:t?"copied":"copy"})]})},J4=({data:e})=>{const{html:t,language:n,code:s}=e,a=s.split(/\r?\n/).length>1,c=a?{width:"100%",maxHeight:"456px"}:{width:"100%",height:"auto"};return v.jsxs(d4,{children:[v.jsxs(f4,{children:[v.jsx(g4,{children:n||"code"}),v.jsx(X4,{textToCopy:s})]}),v.jsx(p4,{style:c,children:v.jsx(lv,{autoHide:!1,style:c,children:v.jsx(h4,{children:v.jsx(m4,{style:{paddingRight:a?"20px":"10px"},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:t}})})})})})]})},Z4=/\[(.*?)\]/g,cv=(e,t)=>e.replace(Z4,(n,s)=>t[s]?`${t[s]}`:n),eM=e=>Object.keys(e).reduce((t,n)=>{const s=e[n],i=s.slice(1,s.length-1);return{...t,[i]:`[${n}]`}},{}),uv=e=>R.useMemo(()=>{const t=eM(e);return{convertStringToReplacement:c=>cv(c,e),convertStringToId:c=>cv(c,t),convertIdToReplacement:c=>{const d=e[c];return d||c},convertReplacementToId:c=>{const d=t[c];return d||c}}},[e]),tM={1:i4,2:a4,3:l4,4:c4,5:"h5",6:"h6"},nM=({data:e,isEdgeText:t,replacements:n})=>{const{text:s,level:i}=e,{convertStringToReplacement:a}=uv(n),c=tM[i];return v.jsx(c,{isEdgeText:t,children:a(s)})},rM=se("li")({name:"ListItem",class:"edl18kdprd",propsAsIs:!1}),sM=se("ol")({name:"OrderedList",class:"edoyxj7j5",propsAsIs:!1}),oM=se("div")({name:"Row",class:"edr7e6b3z",propsAsIs:!1}),iM=se("ul")({name:"UnorderedList",class:"eduyntbxa",propsAsIs:!1}),aM=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M18 12a6 6 0 1 1-12 0 6 6 0 0 1 12 0"})),lM=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a6 6 0 1 1 0 12 6 6 0 0 1 0-12m0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8",clipRule:"evenodd"})),cM=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"m19 12-7 7-7-7 7-7zM7.828 12 12 16.172 16.172 12 12 7.828z"})),uM=se("div")({name:"Container",class:"edc8c3d4h",propsAsIs:!1}),dM={0:v.jsx(aM,{}),1:v.jsx(lM,{}),2:v.jsx(cM,{})},fM=({style:e,text:t,level:n})=>{const i=e==="ordered"?t:dM[(n-1)%3];return v.jsx(uM,{children:i})},pM=({data:e})=>{const{meta:t,items:n,style:s}=e,i=(a,c,d)=>{if(!a||a.length===0)return null;const f=s==="unordered"?iM:sM;return v.jsx(f,{counterType:t==null?void 0:t.counterType,children:a.map((h,g)=>{const y=d+(g+1)+".";return v.jsx(kt.Fragment,{children:v.jsxs(rM,{style:{paddingLeft:c===1?"0px":"32px"},children:[v.jsxs(oM,{children:[v.jsx(fM,{style:s,level:c,text:y}),v.jsx("span",{children:h.content})]}),i(h.items,c+1,y)]})},g)})})};return v.jsx(v.Fragment,{children:i(n,1,"")})},hM=({data:e,replacements:t,isAnswer:n,isPrizeInfo:s,isPrizeDesc:i,isEdgeText:a,isJourneyWidgetText:c,isNodeDescription:d})=>{const{convertStringToReplacement:f}=uv(t),{text:h}=e,g=f(h),y=mM(g);let w;return n?w=Y3:s?w=X3:i?w=J3:a?w=Y1:c?w=K3:d?w=Q3:w=G3,v.jsx(w,{dangerouslySetInnerHTML:{__html:y}})},mM=e=>{const n=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html");return n.querySelectorAll("a").forEach(i=>{i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer")}),n.body.firstChild.innerHTML},gM=se("blockquote")({name:"Container",class:"edc1pmqebe",propsAsIs:!1}),yM=se("span")({name:"Content",class:"edcfeuydt",propsAsIs:!1}),vM=se("div")({name:"CaptionBlock",class:"edcqx7kpx",propsAsIs:!1}),SM=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,...e},R.createElement("path",{fill:"currentColor",d:"M19.866 12.887V19h-6.078v-4.563q0-2.959.565-5.212A14.2 14.2 0 0 1 16.182 5H20q-1.398 2-2.124 4.028-.726 2-.726 3.86zm-9.789 0V19H4v-4.563q0-2.959.565-5.212T6.42 5h3.792Q8.813 7 8.06 9.028q-.726 2.028-.726 3.86z"})),wM=({data:e})=>v.jsxs(gM,{children:[v.jsx(SM,{}),v.jsx(yM,{children:e.quote}),v.jsxs(vM,{children:[v.jsx("p",{children:e.authorName}),v.jsx("p",{children:e.profession})]})]}),_M=({data:e})=>{const{content:t,withHeadings:n}=e;if(!Array.isArray(t)||t.length===0)return;const s=n?t[0]:null,i=n?t.slice(1):t;return v.jsxs(e4,{children:[s&&v.jsx("thead",{children:v.jsx("tr",{children:s.map((a,c)=>v.jsx("th",{children:a},c))})}),v.jsx("tbody",{children:i.map((a,c)=>v.jsx("tr",{children:a.map((d,f)=>v.jsx("td",{dangerouslySetInnerHTML:{__html:d||"—"}},f))},c))})]})},EM=({data:e,isNodeDescription:t})=>{const{file:{url:n},stretched:s,withBackground:i,withBorder:a,caption:c}=e;let d;t?d=s4:d=n4;const f=s?"auto":"400px",h=s?"100%":"fit-content";return v.jsxs(r4,{style:{alignItems:s?"center":"flex-start"},children:[v.jsx(t4,{style:{width:h},children:v.jsx(d,{src:n,alt:c??"test image",style:{width:h,height:f},fetchpriority:"high"})}),c&&v.jsx(o4,{children:c})]})},xM=({data:e})=>v.jsx("div",{dangerouslySetInnerHTML:{__html:e==null?void 0:e.html}}),kM=({data:e,replacements:t,...n})=>{const s=Jv(e,t,n);return v.jsx(u4,{style:{gap:n.isJourneyWidgetText?"12px":"14px"},children:s})},TM=se("a")({name:"Border",class:"edb1n9nuyu",propsAsIs:!1}),bM=se("div")({name:"FaviconContainer",class:"edf33eea4",propsAsIs:!1}),IM=se("img")({name:"Favicon",class:"edf1siw68p",propsAsIs:!1}),CM=se("div")({name:"MetaBlock",class:"edm1u7odcx",propsAsIs:!1}),dv=se("span")({name:"Text",class:"edt4nkw3z",propsAsIs:!1}),RM=se(dv)({name:"BoldText",class:"edbz1s450",propsAsIs:!0}),AM=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"M20 19h-2V7.414L5.707 19.707l-1.414-1.414L16.586 6H5V4h15z"}));function fv(e,t){return function(){return e.apply(t,arguments)}}const{toString:OM}=Object.prototype,{getPrototypeOf:kf}=Object,{iterator:Hl,toStringTag:pv}=Symbol,Wl=(e=>t=>{const n=OM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bn=e=>(e=e.toLowerCase(),t=>Wl(t)===e),ql=e=>t=>typeof t===e,{isArray:ko}=Array,Ri=ql("undefined");function Ai(e){return e!==null&&!Ri(e)&&e.constructor!==null&&!Ri(e.constructor)&&Kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hv=bn("ArrayBuffer");function PM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hv(e.buffer),t}const NM=ql("string"),Kt=ql("function"),mv=ql("number"),Oi=e=>e!==null&&typeof e=="object",MM=e=>e===!0||e===!1,Vl=e=>{if(Wl(e)!=="object")return!1;const t=kf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pv in e)&&!(Hl in e)},LM=e=>{if(!Oi(e)||Ai(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},jM=bn("Date"),DM=bn("File"),$M=bn("Blob"),FM=bn("FileList"),BM=e=>Oi(e)&&Kt(e.pipe),zM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kt(e.append)&&((t=Wl(e))==="formdata"||t==="object"&&Kt(e.toString)&&e.toString()==="[object FormData]"))},UM=bn("URLSearchParams"),[HM,WM,qM,VM]=["ReadableStream","Request","Response","Headers"].map(bn),GM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),ko(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(Ai(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),c=a.length;let d;for(s=0;s<c;s++)d=a[s],t.call(null,e[d],d,e)}}function gv(e,t){if(Ai(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yv=e=>!Ri(e)&&e!==ks;function Tf(){const{caseless:e}=yv(this)&&this||{},t={},n=(s,i)=>{const a=e&&gv(t,i)||i;Vl(t[a])&&Vl(s)?t[a]=Tf(t[a],s):Vl(s)?t[a]=Tf({},s):ko(s)?t[a]=s.slice():t[a]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Pi(arguments[s],n);return t}const YM=(e,t,n,{allOwnKeys:s}={})=>(Pi(t,(i,a)=>{n&&Kt(i)?e[a]=fv(i,n):e[a]=i},{allOwnKeys:s}),e),KM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),QM=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},XM=(e,t,n,s)=>{let i,a,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)c=i[a],(!s||s(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&kf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},JM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},ZM=e=>{if(!e)return null;if(ko(e))return e;let t=e.length;if(!mv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},eL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kf(Uint8Array)),tL=(e,t)=>{const s=(e&&e[Hl]).call(e);let i;for(;(i=s.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},nL=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},rL=bn("HTMLFormElement"),sL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),vv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oL=bn("RegExp"),Sv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Pi(n,(i,a)=>{let c;(c=t(i,a,e))!==!1&&(s[a]=c||i)}),Object.defineProperties(e,s)},iL=e=>{Sv(e,(t,n)=>{if(Kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Kt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},aL=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return ko(e)?s(e):s(String(e).split(t)),n},lL=()=>{},cL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function uL(e){return!!(e&&Kt(e.append)&&e[pv]==="FormData"&&e[Hl])}const dL=e=>{const t=new Array(10),n=(s,i)=>{if(Oi(s)){if(t.indexOf(s)>=0)return;if(Ai(s))return s;if(!("toJSON"in s)){t[i]=s;const a=ko(s)?[]:{};return Pi(s,(c,d)=>{const f=n(c,i+1);!Ri(f)&&(a[d]=f)}),t[i]=void 0,a}}return s};return n(e,0)},fL=bn("AsyncFunction"),pL=e=>e&&(Oi(e)||Kt(e))&&Kt(e.then)&&Kt(e.catch),wv=((e,t)=>e?setImmediate:t?((n,s)=>(ks.addEventListener("message",({source:i,data:a})=>{i===ks&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),ks.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Kt(ks.postMessage)),hL=typeof queueMicrotask<"u"?queueMicrotask.bind(ks):typeof process<"u"&&process.nextTick||wv,B={isArray:ko,isArrayBuffer:hv,isBuffer:Ai,isFormData:zM,isArrayBufferView:PM,isString:NM,isNumber:mv,isBoolean:MM,isObject:Oi,isPlainObject:Vl,isEmptyObject:LM,isReadableStream:HM,isRequest:WM,isResponse:qM,isHeaders:VM,isUndefined:Ri,isDate:jM,isFile:DM,isBlob:$M,isRegExp:oL,isFunction:Kt,isStream:BM,isURLSearchParams:UM,isTypedArray:eL,isFileList:FM,forEach:Pi,merge:Tf,extend:YM,trim:GM,stripBOM:KM,inherits:QM,toFlatObject:XM,kindOf:Wl,kindOfTest:bn,endsWith:JM,toArray:ZM,forEachEntry:tL,matchAll:nL,isHTMLForm:rL,hasOwnProperty:vv,hasOwnProp:vv,reduceDescriptors:Sv,freezeMethods:iL,toObjectSet:aL,toCamelCase:sL,noop:lL,toFiniteNumber:cL,findKey:gv,global:ks,isContextDefined:yv,isSpecCompliantForm:uL,toJSONObject:dL,isAsyncFn:fL,isThenable:pL,setImmediate:wv,asap:hL,isIterable:e=>e!=null&&Kt(e[Hl])};function Te(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}B.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.status}}});const _v=Te.prototype,Ev={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ev[e]={value:e}}),Object.defineProperties(Te,Ev),Object.defineProperty(_v,"isAxiosError",{value:!0}),Te.from=(e,t,n,s,i,a)=>{const c=Object.create(_v);return B.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Te.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const mL=null;function bf(e){return B.isPlainObject(e)||B.isArray(e)}function xv(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function kv(e,t,n){return e?e.concat(t).map(function(i,a){return i=xv(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function gL(e){return B.isArray(e)&&!e.some(bf)}const yL=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function Gl(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,k){return!B.isUndefined(k[E])});const s=n.metaTokens,i=n.visitor||g,a=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(i))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(B.isDate(_))return _.toISOString();if(B.isBoolean(_))return _.toString();if(!f&&B.isBlob(_))throw new Te("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(_)||B.isTypedArray(_)?f&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function g(_,E,k){let A=_;if(_&&!k&&typeof _=="object"){if(B.endsWith(E,"{}"))E=s?E:E.slice(0,-2),_=JSON.stringify(_);else if(B.isArray(_)&&gL(_)||(B.isFileList(_)||B.endsWith(E,"[]"))&&(A=B.toArray(_)))return E=xv(E),A.forEach(function(j,K){!(B.isUndefined(j)||j===null)&&t.append(c===!0?kv([E],K,a):c===null?E:E+"[]",h(j))}),!1}return bf(_)?!0:(t.append(kv(k,E,a),h(_)),!1)}const y=[],w=Object.assign(yL,{defaultVisitor:g,convertValue:h,isVisitable:bf});function x(_,E){if(!B.isUndefined(_)){if(y.indexOf(_)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(_),B.forEach(_,function(A,L){(!(B.isUndefined(A)||A===null)&&i.call(t,A,B.isString(L)?L.trim():L,E,w))===!0&&x(A,E?E.concat(L):[L])}),y.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Tv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function If(e,t){this._pairs=[],e&&Gl(e,this,t)}const bv=If.prototype;bv.append=function(t,n){this._pairs.push([t,n])},bv.toString=function(t){const n=t?function(s){return t.call(this,s,Tv)}:Tv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function vL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Iv(e,t,n){if(!t)return e;const s=n&&n.encode||vL;B.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=B.isURLSearchParams(t)?t.toString():new If(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Cv{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){B.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Rv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SL={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:If,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Cf=typeof window<"u"&&typeof document<"u",Rf=typeof navigator=="object"&&navigator||void 0,wL=Cf&&(!Rf||["ReactNative","NativeScript","NS"].indexOf(Rf.product)<0),_L=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",EL=Cf&&window.location.href||"http://localhost",At={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cf,hasStandardBrowserEnv:wL,hasStandardBrowserWebWorkerEnv:_L,navigator:Rf,origin:EL},Symbol.toStringTag,{value:"Module"})),...SL};function xL(e,t){return Gl(e,new At.classes.URLSearchParams,{visitor:function(n,s,i,a){return At.isNode&&B.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function kL(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TL(e){const t={},n=Object.keys(e);let s;const i=n.length;let a;for(s=0;s<i;s++)a=n[s],t[a]=e[a];return t}function Av(e){function t(n,s,i,a){let c=n[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=a>=n.length;return c=!c&&B.isArray(i)?i.length:c,f?(B.hasOwnProp(i,c)?i[c]=[i[c],s]:i[c]=s,!d):((!i[c]||!B.isObject(i[c]))&&(i[c]=[]),t(n,s,i[c],a)&&B.isArray(i[c])&&(i[c]=TL(i[c])),!d)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(s,i)=>{t(kL(s),i,n,0)}),n}return null}function bL(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Ni={transitional:Rv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,a=B.isObject(t);if(a&&B.isHTMLForm(t)&&(t=new FormData(t)),B.isFormData(t))return i?JSON.stringify(Av(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t)||B.isReadableStream(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return xL(t,this.formSerializer).toString();if((d=B.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Gl(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),bL(t)):t}],transformResponse:[function(t){const n=this.transitional||Ni.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(B.isResponse(t)||B.isReadableStream(t))return t;if(t&&B.isString(t)&&(s&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:At.classes.FormData,Blob:At.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{Ni.headers[e]={}});const IL=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CL=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),s=c.substring(i+1).trim(),!(!n||t[n]&&IL[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Ov=Symbol("internals");function Mi(e){return e&&String(e).trim().toLowerCase()}function Yl(e){return e===!1||e==null?e:B.isArray(e)?e.map(Yl):String(e)}function RL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const AL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Af(e,t,n,s,i){if(B.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!B.isString(t)){if(B.isString(s))return t.indexOf(s)!==-1;if(B.isRegExp(s))return s.test(t)}}function OL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function PL(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,a,c){return this[s].call(this,t,i,a,c)},configurable:!0})})}class Qt{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function a(d,f,h){const g=Mi(f);if(!g)throw new Error("header name must be a non-empty string");const y=B.findKey(i,g);(!y||i[y]===void 0||h===!0||h===void 0&&i[y]!==!1)&&(i[y||f]=Yl(d))}const c=(d,f)=>B.forEach(d,(h,g)=>a(h,g,f));if(B.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(B.isString(t)&&(t=t.trim())&&!AL(t))c(CL(t),n);else if(B.isObject(t)&&B.isIterable(t)){let d={},f,h;for(const g of t){if(!B.isArray(g))throw TypeError("Object iterator must return a key-value pair");d[h=g[0]]=(f=d[h])?B.isArray(f)?[...f,g[1]]:[f,g[1]]:g[1]}c(d,n)}else t!=null&&a(n,t,s);return this}get(t,n){if(t=Mi(t),t){const s=B.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return RL(i);if(B.isFunction(n))return n.call(this,i,s);if(B.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mi(t),t){const s=B.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Af(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function a(c){if(c=Mi(c),c){const d=B.findKey(s,c);d&&(!n||Af(s,s[d],d,n))&&(delete s[d],i=!0)}}return B.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const a=n[s];(!t||Af(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,s={};return B.forEach(this,(i,a)=>{const c=B.findKey(s,a);if(c){n[c]=Yl(i),delete n[a];return}const d=t?OL(a):String(a).trim();d!==a&&delete n[a],n[d]=Yl(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return B.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&B.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[Ov]=this[Ov]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=Mi(c);s[d]||(PL(i,c),s[d]=!0)}return B.isArray(t)?t.forEach(a):a(t),this}}Qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(Qt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),B.freezeMethods(Qt);function Of(e,t){const n=this||Ni,s=t||n,i=Qt.from(s.headers);let a=s.data;return B.forEach(e,function(d){a=d.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Pv(e){return!!(e&&e.__CANCEL__)}function To(e,t,n){Te.call(this,e??"canceled",Te.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(To,Te,{__CANCEL__:!0});function Nv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Te("Request failed with status code "+n.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NL(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ML(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,a=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),g=s[a];c||(c=h),n[i]=f,s[i]=h;let y=a,w=0;for(;y!==i;)w+=n[y++],y=y%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-c<t)return;const x=g&&h-g;return x?Math.round(w*1e3/x):void 0}}function LL(e,t){let n=0,s=1e3/t,i,a;const c=(h,g=Date.now())=>{n=g,i=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const g=Date.now(),y=g-n;y>=s?c(h,g):(i=h,a||(a=setTimeout(()=>{a=null,c(i)},s-y)))},()=>i&&c(i)]}const Kl=(e,t,n=3)=>{let s=0;const i=ML(50,250);return LL(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,f=c-s,h=i(f),g=c<=d;s=c;const y={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&g?(d-c)/h:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(y)},n)},Mv=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Lv=e=>(...t)=>B.asap(()=>e(...t)),jL=At.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,At.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(At.origin),At.navigator&&/(msie|trident)/i.test(At.navigator.userAgent)):()=>!0,DL=At.hasStandardBrowserEnv?{write(e,t,n,s,i,a){const c=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),B.isString(s)&&c.push("path="+s),B.isString(i)&&c.push("domain="+i),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $L(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function FL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jv(e,t,n){let s=!$L(t);return e&&(s||n==!1)?FL(e,t):t}const Dv=e=>e instanceof Qt?{...e}:e;function Ts(e,t){t=t||{};const n={};function s(h,g,y,w){return B.isPlainObject(h)&&B.isPlainObject(g)?B.merge.call({caseless:w},h,g):B.isPlainObject(g)?B.merge({},g):B.isArray(g)?g.slice():g}function i(h,g,y,w){if(B.isUndefined(g)){if(!B.isUndefined(h))return s(void 0,h,y,w)}else return s(h,g,y,w)}function a(h,g){if(!B.isUndefined(g))return s(void 0,g)}function c(h,g){if(B.isUndefined(g)){if(!B.isUndefined(h))return s(void 0,h)}else return s(void 0,g)}function d(h,g,y){if(y in t)return s(h,g);if(y in e)return s(void 0,h)}const f={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,g,y)=>i(Dv(h),Dv(g),y,!0)};return B.forEach(Object.keys({...e,...t}),function(g){const y=f[g]||i,w=y(e[g],t[g],g);B.isUndefined(w)&&y!==d||(n[g]=w)}),n}const $v=e=>{const t=Ts({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=Qt.from(c),t.url=Iv(jv(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(B.isFormData(n)){if(At.hasStandardBrowserEnv||At.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[h,...g]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...g].join("; "))}}if(At.hasStandardBrowserEnv&&(s&&B.isFunction(s)&&(s=s(t)),s||s!==!1&&jL(t.url))){const h=i&&a&&DL.read(a);h&&c.set(i,h)}return t},BL=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=$v(e);let a=i.data;const c=Qt.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=i,g,y,w,x,_;function E(){x&&x(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function A(){if(!k)return;const j=Qt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:j,config:e,request:k};Nv(function(C){n(C),E()},function(C){s(C),E()},H),k=null}"onloadend"in k?k.onloadend=A:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(A)},k.onabort=function(){k&&(s(new Te("Request aborted",Te.ECONNABORTED,e,k)),k=null)},k.onerror=function(){s(new Te("Network Error",Te.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let K=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const H=i.transitional||Rv;i.timeoutErrorMessage&&(K=i.timeoutErrorMessage),s(new Te(K,H.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,k)),k=null},a===void 0&&c.setContentType(null),"setRequestHeader"in k&&B.forEach(c.toJSON(),function(K,H){k.setRequestHeader(H,K)}),B.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),d&&d!=="json"&&(k.responseType=i.responseType),h&&([w,_]=Kl(h,!0),k.addEventListener("progress",w)),f&&k.upload&&([y,x]=Kl(f),k.upload.addEventListener("progress",y),k.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(g=j=>{k&&(s(!j||j.type?new To(null,e,k):j),k.abort(),k=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const L=NL(i.url);if(L&&At.protocols.indexOf(L)===-1){s(new Te("Unsupported protocol "+L+":",Te.ERR_BAD_REQUEST,e));return}k.send(a||null)})},zL=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const a=function(h){if(!i){i=!0,d();const g=h instanceof Error?h:this.reason;s.abort(g instanceof Te?g:new To(g instanceof Error?g.message:g))}};let c=t&&setTimeout(()=>{c=null,a(new Te(`timeout ${t} of ms exceeded`,Te.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>B.asap(d),f}},UL=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},HL=async function*(e,t){for await(const n of WL(e))yield*UL(n,t)},WL=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Fv=(e,t,n,s)=>{const i=HL(e,t);let a=0,c,d=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:g}=await i.next();if(h){d(),f.close();return}let y=g.byteLength;if(n){let w=a+=y;n(w)}f.enqueue(new Uint8Array(g))}catch(h){throw d(h),h}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},Ql=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bv=Ql&&typeof ReadableStream=="function",qL=Ql&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},VL=Bv&&zv(()=>{let e=!1;const t=new Request(At.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Uv=64*1024,Pf=Bv&&zv(()=>B.isReadableStream(new Response("").body)),Xl={stream:Pf&&(e=>e.body)};Ql&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xl[t]&&(Xl[t]=B.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new Te(`Response type '${t}' is not supported`,Te.ERR_NOT_SUPPORT,s)})})})(new Response);const GL=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(At.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await qL(e)).byteLength},YL=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return n??GL(t)},Nf={http:mL,xhr:BL,fetch:Ql&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:g,withCredentials:y="same-origin",fetchOptions:w}=$v(e);h=h?(h+"").toLowerCase():"text";let x=zL([i,a&&a.toAbortSignal()],c),_;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let k;try{if(f&&VL&&n!=="get"&&n!=="head"&&(k=await YL(g,s))!==0){let H=new Request(t,{method:"POST",body:s,duplex:"half"}),O;if(B.isFormData(s)&&(O=H.headers.get("content-type"))&&g.setContentType(O),H.body){const[C,W]=Mv(k,Kl(Lv(f)));s=Fv(H.body,Uv,C,W)}}B.isString(y)||(y=y?"include":"omit");const A="credentials"in Request.prototype;_=new Request(t,{...w,signal:x,method:n.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:A?y:void 0});let L=await fetch(_,w);const j=Pf&&(h==="stream"||h==="response");if(Pf&&(d||j&&E)){const H={};["status","statusText","headers"].forEach(F=>{H[F]=L[F]});const O=B.toFiniteNumber(L.headers.get("content-length")),[C,W]=d&&Mv(O,Kl(Lv(d),!0))||[];L=new Response(Fv(L.body,Uv,C,()=>{W&&W(),E&&E()}),H)}h=h||"text";let K=await Xl[B.findKey(Xl,h)||"text"](L,e);return!j&&E&&E(),await new Promise((H,O)=>{Nv(H,O,{data:K,headers:Qt.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:_})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,_),{cause:A.cause||A}):Te.from(A,A&&A.code,e,_)}})};B.forEach(Nf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hv=e=>`- ${e}`,KL=e=>B.isFunction(e)||e===null||e===!1,Wv={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let a=0;a<t;a++){n=e[a];let c;if(s=n,!KL(n)&&(s=Nf[(c=String(n)).toLowerCase()],s===void 0))throw new Te(`Unknown adapter '${c}'`);if(s)break;i[c||"#"+a]=s}if(!s){const a=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=t?a.length>1?`since :
`+a.map(Hv).join(`
`):" "+Hv(a[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Nf};function Mf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new To(null,e)}function qv(e){return Mf(e),e.headers=Qt.from(e.headers),e.data=Of.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wv.getAdapter(e.adapter||Ni.adapter)(e).then(function(s){return Mf(e),s.data=Of.call(e,e.transformResponse,s),s.headers=Qt.from(s.headers),s},function(s){return Pv(s)||(Mf(e),s&&s.response&&(s.response.data=Of.call(e,e.transformResponse,s.response),s.response.headers=Qt.from(s.response.headers))),Promise.reject(s)})}const Vv="1.11.0",Jl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Jl[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Gv={};Jl.transitional=function(t,n,s){function i(a,c){return"[Axios v"+Vv+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new Te(i(c," has been removed"+(n?" in "+n:"")),Te.ERR_DEPRECATED);return n&&!Gv[c]&&(Gv[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}},Jl.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function QL(e,t,n){if(typeof e!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const a=s[i],c=t[a];if(c){const d=e[a],f=d===void 0||c(d,a,e);if(f!==!0)throw new Te("option "+a+" must be "+f,Te.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Te("Unknown option "+a,Te.ERR_BAD_OPTION)}}const Zl={assertOptions:QL,validators:Jl},Vn=Zl.validators;class bs{constructor(t){this.defaults=t||{},this.interceptors={request:new Cv,response:new Cv}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ts(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:a}=n;s!==void 0&&Zl.assertOptions(s,{silentJSONParsing:Vn.transitional(Vn.boolean),forcedJSONParsing:Vn.transitional(Vn.boolean),clarifyTimeoutError:Vn.transitional(Vn.boolean)},!1),i!=null&&(B.isFunction(i)?n.paramsSerializer={serialize:i}:Zl.assertOptions(i,{encode:Vn.function,serialize:Vn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Zl.assertOptions(n,{baseUrl:Vn.spelling("baseURL"),withXsrfToken:Vn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=a&&B.merge(a.common,a[n.method]);a&&B.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=Qt.concat(c,a);const d=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,d.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let g,y=0,w;if(!f){const _=[qv.bind(this),void 0];for(_.unshift(...d),_.push(...h),w=_.length,g=Promise.resolve(n);y<w;)g=g.then(_[y++],_[y++]);return g}w=d.length;let x=n;for(y=0;y<w;){const _=d[y++],E=d[y++];try{x=_(x)}catch(k){E.call(this,k);break}}try{g=qv.call(this,x)}catch(_){return Promise.reject(_)}for(y=0,w=h.length;y<w;)g=g.then(h[y++],h[y++]);return g}getUri(t){t=Ts(this.defaults,t);const n=jv(t.baseURL,t.url,t.allowAbsoluteUrls);return Iv(n,t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(t){bs.prototype[t]=function(n,s){return this.request(Ts(s||{},{method:t,url:n,data:(s||{}).data}))}}),B.forEach(["post","put","patch"],function(t){function n(s){return function(a,c,d){return this.request(Ts(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}bs.prototype[t]=n(),bs.prototype[t+"Form"]=n(!0)});class Lf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(i=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](i);s._listeners=null}),this.promise.then=i=>{let a;const c=new Promise(d=>{s.subscribe(d),a=d}).then(i);return c.cancel=function(){s.unsubscribe(a)},c},t(function(a,c,d){s.reason||(s.reason=new To(a,c,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Lf(function(i){t=i}),cancel:t}}}function XL(e){return function(n){return e.apply(null,n)}}function JL(e){return B.isObject(e)&&e.isAxiosError===!0}const jf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jf).forEach(([e,t])=>{jf[t]=e});function Yv(e){const t=new bs(e),n=fv(bs.prototype.request,t);return B.extend(n,bs.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Yv(Ts(e,i))},n}const at=Yv(Ni);at.Axios=bs,at.CanceledError=To,at.CancelToken=Lf,at.isCancel=Pv,at.VERSION=Vv,at.toFormData=Gl,at.AxiosError=Te,at.Cancel=at.CanceledError,at.all=function(t){return Promise.all(t)},at.spread=XL,at.isAxiosError=JL,at.mergeConfig=Ts,at.AxiosHeaders=Qt,at.formToJSON=e=>Av(B.isHTMLForm(e)?new FormData(e):e),at.getAdapter=Wv.getAdapter,at.HttpStatusCode=jf,at.default=at;const Kv="https://api.edmap.space",ec=at.create();ec.defaults.baseURL=Kv,ec.interceptors.request.use(async e=>{const t=localStorage.getItem("access");return e.headers.Accept="application/json",t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));const Li={};function Qv(e){return localStorage.removeItem("access"),localStorage.removeItem("refresh"),localStorage.removeItem("userId"),window.location.href="/sign-in",Promise.reject(e)}function Xv(e,t){const n=e.data.accessToken,s=e.data.refreshToken;return localStorage.setItem("access",n),localStorage.setItem("refresh",s),t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${n}`,ec(t)}ec.interceptors.response.use(e=>e,async e=>{const t=e.config;if(t.url.startsWith("/admin/login")||e.response.status!==401||t._retry)return Promise.reject(e);t._retry=!0;const n=localStorage.getItem("refresh");if(n)try{if(!Li.time||Date.now()-Li.time>1e3*3){const i=at.post(`${Kv}/auth/revalidate-token`,{refreshToken:n},{headers:{Authorization:`Bearer ${n}`}});Li.time=Date.now(),Li.request=i;const a=await i;return Xv(a,t)}const s=await Li.request;if(!s)throw new Error;return Xv(s,t)}catch(s){return Qv(s)}else return Qv(e)});const ZL=e=>{if(!e)return"";try{const n=e.startsWith("http://")||e.startsWith("https://")?e:`https://${e}`;let i=new URL(n).hostname;return i=i.replace(/^www\./i,""),i.includes(".")||(i+=".com"),i}catch{let n=e.replace(/^https?:\/\//i,"").replace(/^www\./i,"");return n=n.split(/[\/?#]/)[0],n&&!n.includes(".")&&(n+=".com"),n||""}},e6=({data:e})=>v.jsxs(TM,{href:e.url,target:"_blank",children:[v.jsx(bM,{children:v.jsx(IM,{src:`https://www.google.com/s2/favicons?sz=64&domain_url=${encodeURIComponent(e.url)}`,alt:"favicon"})}),v.jsxs(CM,{children:[v.jsx(dv,{children:ZL(e.url)}),v.jsx(RM,{children:e.title})]}),v.jsx(AM,{})]}),t6=se("div")({name:"Container",class:"edc85czkw",propsAsIs:!1}),n6=({data:e})=>v.jsxs(t6,{role:"alert",children:[v.jsx("p",{children:e.message}),v.jsx("p",{children:e.title})]}),r6=e=>{const t=[];for(let n=0;n<e.length;n++){if(e[n].type!=="header"){t.push(e[n]);continue}const s={id:e[n].id,data:[e[n]],type:"mergedHeaderAndParagraph"};let i=!1;for(let a=n+1;a<e.length&&!i;a++){if(e[a].type!=="paragraph"){i=!0;continue}s.data.push(e[a]),n++}t.push(s)}return t},s6=e=>{if(e==="paragraph")return hM;if(e==="list")return pM;if(e==="quote")return wM;if(e==="header")return nM;if(e==="mergedHeaderAndParagraph")return kM;if(e==="code")return J4;if(e==="table")return _M;if(e==="image")return EM;if(e==="linkBlock")return e6;if(e==="warning")return n6;if(e==="raw")return xM},Jv=(e,t,n)=>{const s=[];return e.forEach(({id:i,data:a,type:c})=>{const d=s6(c),f=d?v.jsx(d,{data:a,replacements:t,...n},i):null;s.push(f)}),s},bo=({blocksArray:e,replacements:t={},...n})=>{if(!e||!Array.isArray(e))return;const s=r6(e),i=Jv(s,t,n);return v.jsx(Z3,{...n,children:i})},Zv=({data:e,isInfoModalOpen:t,closeInfoModal:n,isPrizeModal:s})=>{var c,d;const i=R.useRef(null),a=f=>{i.current&&!i.current.contains(f.target)&&n()};if(R.useEffect(()=>(t?document.addEventListener("mousedown",a):document.removeEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}),[t]),!!t)return v.jsx(W3,{children:v.jsxs(q3,{ref:i,children:[v.jsx(V3,{onClick:n,children:"✕"}),s?v.jsx(bo,{blocksArray:(c=e==null?void 0:e.awardRichText)==null?void 0:c.blocks,isPrizeDesc:!0}):v.jsx(bo,{blocksArray:(d=e==null?void 0:e.descriptionRichText)==null?void 0:d.blocks,isPrizeInfo:!0})]})})},o6=$("div")({name:"Container",class:"edc1uixbmy",propsAsIs:!1}),i6=$("ul")({name:"List",class:"edl1h2mntg",propsAsIs:!1}),a6=$("div")({name:"Wrapper",class:"edwkqefnd",propsAsIs:!1}),l6=$("li")({name:"Participant",class:"edp1m90lkb",propsAsIs:!1}),c6=$("li")({name:"ParticipantPosition",class:"edplp9wkn",propsAsIs:!1}),u6=$("div")({name:"ParticipantWrapper",class:"edpi7ekwg",propsAsIs:!1}),d6=$("div")({name:"PointsWrapper",class:"edp8vzmbe",propsAsIs:!1}),f6=$("p")({name:"Points",class:"edpnrrx6w",propsAsIs:!1}),p6=$("div")({name:"LoaderWrapper",class:"edli7avpg",propsAsIs:!1}),h6=()=>v.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M8.85595 3.09539C9.2085 1.97699 10.7925 1.97699 11.1451 3.09539L12.2384 6.56383C12.3958 7.06308 12.8591 7.40262 13.383 7.40262L16.9987 7.40263C18.1521 7.40263 18.6413 8.86985 17.7184 9.56103L14.7296 11.7993C14.3221 12.1045 14.1517 12.6335 14.3048 13.1189L15.4311 16.692C15.7814 17.8032 14.4999 18.7103 13.5668 18.0116L10.7202 15.8798C10.2937 15.5604 9.70737 15.5604 9.28082 15.8798L6.43425 18.0116C5.5012 18.7103 4.21968 17.8032 4.56997 16.692L5.6963 13.1189C5.8493 12.6335 5.67898 12.1045 5.27143 11.7993L2.28267 9.56103C1.35974 8.86985 1.84897 7.40263 3.00238 7.40263L6.61804 7.40262C7.14191 7.40262 7.60524 7.06308 7.76262 6.56383L8.85595 3.09539Z"})}),m6=()=>v.jsxs("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("path",{d:"M17.4 18.6566C17.4 14.5697 14.0869 11.2566 9.99998 11.2566C5.91307 11.2566 2.59998 14.5697 2.59998 18.6566",stroke:"white",strokeLinecap:"round"}),v.jsx("path",{d:"M13.6 5.45669C13.6 7.44491 11.9882 9.05669 10 9.05669C8.0118 9.05669 6.40002 7.44491 6.40002 5.45669C6.40002 3.46846 8.0118 1.85669 10 1.85669C11.9882 1.85669 13.6 3.46846 13.6 5.45669Z",stroke:"white"})]}),g6=$("ul")({name:"Container",class:"edc65edga",propsAsIs:!1}),y6=()=>e=>e.active?"var(--accent)":"var(--popup-menu-tabs)",v6=()=>e=>(e.active,"var(--accent)"),S6=$("li")({name:"PaginationItem",class:"edp1cf5kvo",propsAsIs:!1,vars:{"p1cf5kvo-0":[y6()],"p1cf5kvo-1":[v6()]}}),w6=$("div")({name:"Dots",class:"eddw2ykav",propsAsIs:!1}),eS=$("button")({name:"ChevronButton",class:"edcjgljwh",propsAsIs:!1}),tS=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:v.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"})}),_6=({currentPage:e,handleSetCurrentPage:t,totalPages:n})=>{const s=(a,c)=>a<=7?Array.from({length:a},(d,f)=>f+1):c<=4?[1,2,3,4,5,"...",a]:c>=a-2?[1,"...",a-4,a-3,a-2,a-1,a]:[1,"...",c-1,c,c+1,"...",a];if(n<2)return;const i=s(n,e);return v.jsxs(g6,{children:[v.jsx(eS,{onClick:()=>t(e-1),disabled:e<2,children:v.jsx(tS,{})}),i.map((a,c)=>v.jsx(S6,{active:a===e,children:a==="..."?v.jsx(w6,{children:"..."}):v.jsx(P1,{title:a,onClick:()=>t(a)})},c)),v.jsx(eS,{onClick:()=>t(e+1),disabled:e>=n,children:v.jsx(tS,{})})]})},E6=$("div")({name:"Container",class:"edc1o85nbd",propsAsIs:!1}),x6=$("h1")({name:"Title",class:"edtueka45",propsAsIs:!1}),nS=({title:e})=>v.jsxs(E6,{children:[v.jsx("svg",{width:"60px",height:"60px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M22.8 12A10.8 10.8 0 1 1 10 1.393v1.014a9.8 9.8 0 1 0 4 0V1.393A10.812 10.812 0 0 1 22.8 12z"})}),e&&v.jsx(x6,{children:e})]}),k6=()=>{ut(_=>_.results);const e=be(_=>_.mapLeaderboard),t=be(_=>_.setMapLeaderboard),[n,s]=R.useState(1),[i,a]=R.useState(0),[c,d]=R.useState(!1),f=Je(_=>_.translations.user),h=10,g=(n-1)*h,y=Math.ceil(i/h),w=()=>{var E;const _=(E=window.__widgetEdmap)==null?void 0:E.mapId;_&&(d(!0),CP(_,h,g).then(k=>{a(k.data.totalCount),t(k.data.results)}).catch(k=>{console.error(k)}).finally(()=>d(!1)))},x=_=>{d(!0),s(_)};return R.useEffect(()=>{w()},[n]),c?v.jsx(p6,{children:v.jsx(nS,{})}):v.jsxs(o6,{children:[v.jsx(i6,{children:e==null?void 0:e.map((_,E)=>{var A;const k=g+E+1;return v.jsxs(a6,{children:[v.jsxs(u6,{children:[v.jsx(c6,{children:k}),v.jsx(m6,{}),v.jsx(l6,{children:((A=_==null?void 0:_.User)==null?void 0:A.username)??f.defaultName})]}),v.jsxs(d6,{children:[v.jsx(h6,{}),v.jsx(f6,{children:_==null?void 0:_.allPoints})]})]},_==null?void 0:_.id)})}),i&&v.jsx(_6,{currentPage:n,handleSetCurrentPage:x,totalPages:y})]})},T6=$("div")({name:"Background",class:"edb1d6ibuo",propsAsIs:!1}),b6=$("div")({name:"Container",class:"edc9edd3f",propsAsIs:!1}),I6=$("div")({name:"PrizeBlock",class:"edpzra8fb",propsAsIs:!1}),C6=$("div")({name:"ButtonBlock",class:"edb17wiemr",propsAsIs:!1}),R6=({selectedPrize:e,isOpen:t,closeModal:n,openRegistration:s})=>{const i=R.useRef(null),a=Je(f=>f.translations.settings.signInPopup),c=f=>{i.current&&!i.current.contains(f.target)&&n()};R.useEffect(()=>(t?document.addEventListener("mousedown",c):document.removeEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}),[t]);const d=()=>{s(),n()};return t?v.jsx(T6,{children:v.jsxs(b6,{ref:i,children:[v.jsxs(E1,{children:[v.jsx(x1,{children:a.title}),v.jsx(k1,{children:a.subtitle})]}),v.jsx(I6,{children:v.jsxs(b1,{children:[v.jsx(I1,{children:v.jsx(M1,{iconId:e==null?void 0:e.iconId})}),v.jsx(C1,{children:e==null?void 0:e.name})]})}),v.jsxs(C6,{children:[v.jsx(qn,{title:a.buttonTitle,onClick:n}),v.jsx(qn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:d})]})]})}):null},In=Gt(e=>({isPanelModalOpen:!1,isRegistrationOpen:!1,setIsPanelOpen:t=>e({isPanelModalOpen:t}),setIsRegistrationOpen:t=>e({isRegistrationOpen:t})})),A6=()=>{var De;const e=In(te=>te.isPanelModalOpen),t=In(te=>te.setIsPanelOpen),n=In(te=>te.isRegistrationOpen),s=In(te=>te.setIsRegistrationOpen),[i,a]=R.useState(0),[c,d]=R.useState(null),[f,h]=R.useState(!1),[g,y]=R.useState(!0),w=ut(te=>te.results),x=(De=w==null?void 0:w.prizes)==null?void 0:De[c],[_,E]=R.useState(x),{isOpen:k,closeModal:A,openModal:L}=Fl(),{isOpen:j,closeModal:K,openModal:H}=Fl(),O=(w==null?void 0:w.allPoints)||0,C=Je(te=>te.translations.popup),W=O<10?1:Math.floor(O/10),F=R.useRef(null),U=p1();function J(te,Se){d(te),Se==="prize"?(h(!0),L()):(h(!1),L())}const Z=te=>{E(te),H()},ue=[v.jsx(RN,{openSignInInvite:Z,openInfoModal:J}),v.jsx(Sf,{quests:w==null?void 0:w.quests}),v.jsx(k6,{}),v.jsx(m3,{openSignInModal:()=>s(!0),setIsSocialModalVisible:()=>{}})],me=te=>{var oe;!F.current||(((oe=te.composedPath)==null?void 0:oe.call(te))||[]).includes(F.current)||(a(0),t(!1))};if(R.useEffect(()=>(e?setTimeout(()=>document.addEventListener("click",me)):document.removeEventListener("click",me),()=>{document.removeEventListener("click",me)}),[e]),!!e)return v.jsx(WP,{ref:F,isSignInModalOpen:n,id:"edmap-widget__popup",children:v.jsxs(qP,{children:[v.jsx(ZN,{userLevel:W}),!U&&g&&v.jsx(VP,{children:v.jsx(wf,{setIsRegInfoVisible:y,openSignInModal:()=>s(!0),setIsSocialModalVisible:()=>{}})}),v.jsx(ZP,{data:C.menuItems,activeIndex:i,setActiveIndex:a}),v.jsx(GP,{children:ue[i]}),v.jsx(G1,{isOpen:n,closeModal:()=>s(!1),setIsSocialModalVisible:()=>{},isSocialModalVisible:!0}),v.jsx(R6,{selectedPrize:_,isOpen:j,closeModal:K,openRegistration:()=>s(!0)}),v.jsx(Zv,{data:x,isInfoModalOpen:k,closeInfoModal:A,isPrizeModal:f})]})})},O6=$("div")({name:"Container",class:"edc16l98jz",propsAsIs:!1}),P6=$("div")({name:"ImageWrapper",class:"edi13krnav",propsAsIs:!1}),N6=$("div")({name:"InfoWrapper",class:"edied2wr6",propsAsIs:!1}),M6=$("div")({name:"LevelWrapper",class:"edl11c2ni8",propsAsIs:!1}),L6=$("div")({name:"TextWrapper",class:"edt133co2j",propsAsIs:!1}),j6=$("img")({name:"Confetti",class:"edc1etko73",propsAsIs:!1}),D6=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",...e},R.createElement("path",{stroke:"#fff",strokeLinecap:"square",strokeWidth:2,d:"m2 2 14 14m0-14L2 16"})),$6=({...e})=>v.jsx(F6,{...e,children:v.jsx(D6,{})}),F6=se("button")({name:"Button",class:"edb1b1pm51",propsAsIs:!1}),B6="https://widget.edmap.space/assets/confetti-edmap-widget.gif",z6=({points:e,setPointsAreReceived:t})=>{const[n,s]=R.useState(0),i=ut(f=>f.pointsAreReceived),a=be(f=>f.isFinished),c=R.useRef(e),d=R.useRef(null);return R.useEffect(()=>(a&&c.current!==e&&(s(f=>f+1),t(!0),d.current=setTimeout(()=>{t(!1)},8e3)),c.current=e,()=>clearTimeout(d)),[e,a]),i&&v.jsx(j6,{src:B6,alt:"Confetti"})},U6=()=>{var f,h,g,y,w,x,_;const e=In(E=>E.isPanelModalOpen),t=In(E=>E.setIsPanelOpen),n=ut(E=>E.results),s=ut(E=>E.setPointsAreReceived),i=Je(E=>E.translations.popupBar),a=((h=(f=n==null?void 0:n.prizes)==null?void 0:f.filter(E=>E==null?void 0:E.awardRichText))==null?void 0:h.length)??0,c=(n==null?void 0:n.allPoints)||0,d=()=>{t(!0),s(!1)};return v.jsx(v.Fragment,{children:e?v.jsx($6,{onClick:()=>t(!1),id:"edmap-widget__popup-bar-btn"}):v.jsxs(O6,{onClick:d,id:"edmap-widget__popup-bar",children:[v.jsx(P6,{children:v.jsx(yf,{src:(y=(g=n==null?void 0:n.User)==null?void 0:g.avatar)==null?void 0:y.src})}),v.jsxs(N6,{children:[v.jsxs(M6,{children:[v.jsx(gf,{level:vf(c)}),v.jsxs(L6,{children:[v.jsx(xs,{text:i.prizesTitle,progressValue:a??0,overallValue:((w=n==null?void 0:n.prizes)==null?void 0:w.length)??0}),v.jsx(xs,{text:i.skillsTitle,progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((x=n==null?void 0:n.map)==null?void 0:x.points)??0})]})]}),v.jsx(Ml,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((_=n==null?void 0:n.map)==null?void 0:_.points)??0})]}),v.jsx(z6,{points:c,setPointsAreReceived:s})]})})};Gt((e,t)=>({isOpen:!1,toggle:()=>e(n=>({isOpen:!n.isOpen})),closeModal:()=>e({isOpen:!1}),openModal:()=>e({isOpen:!0})}));const tc=Gt(e=>({popupBarStyle:{},widgetContainerStyle:{},setPopupBarStyle:t=>e({popupBarStyle:t}),setWidgetContainerStyle:t=>e({widgetContainerStyle:t})})),H6=$("div")({name:"Container",class:"edc1vap6o9",propsAsIs:!1}),W6=()=>{const e=In(i=>i.isPanelModalOpen),t=tc(i=>i.popupBarStyle),n=be(i=>i.quest);return(n==null?void 0:n.isMiniPanelVisible)||e?v.jsxs(H6,{style:t,children:[v.jsx(A6,{}),(n==null?void 0:n.isMiniPanelVisible)&&v.jsx(U6,{})]}):null};var nc=Fh();const rS=e=>{if(!e)return{};if(e.startsWith("{"))try{e=e.slice(1,e.length-1)}catch(n){return xn(n),console.error("Parse Error: something wrong with custom style string"),{}}const t={};return e.split(";").forEach(n=>{const[s,i]=n.split(":").map(a=>a.trim());if(s&&i){const a=s.replace(/-([a-z])/g,c=>c[1].toUpperCase());t[a]=i}else console.warn(`Parse Warning: faild to parse custom property style for property: ${s||"not found"}`)}),t},q6=(e,t)=>{if(e==="admin"){const n=t.match(/quests\/([^/?]+)/);return(!n||!n[1])&&console.error("Parse Error: wrong url for quest search in admin panel"),n[1]}else return t},V6=$("div")({name:"Container",class:"edcsc8z9h",propsAsIs:!1}),G6=$("div")({name:"HidingContainer",class:"edhc15unp",propsAsIs:!1}),sS=$("div")({name:"QuestionBlock",class:"edq12kw8l3",propsAsIs:!1}),Y6=$("div")({name:"HeaderScrollableSpace",class:"edh1iwfgmu",propsAsIs:!1}),K6=$("div")({name:"SidePadding",class:"edsz53tfr",propsAsIs:!1}),Q6=$("div")({name:"Container",class:"edc8gkhop",propsAsIs:!1}),X6=$("div")({name:"TitleSection",class:"edtp3l3kp",propsAsIs:!1}),J6=$("div")({name:"Wrapper",class:"edw11bk3uj",propsAsIs:!1}),oS=$("div")({name:"Divider",class:"edd1nx5xv8",propsAsIs:!1}),Z6=$("h2")({name:"Title",class:"edt5m07eq",propsAsIs:!1}),ej=$("div")({name:"AvatarContainer",class:"eda1xyelki",propsAsIs:!1}),tj=$("button")({name:"AvatarButton",class:"eda1j00vs7",propsAsIs:!1}),nj=$("div")({name:"LevelContainer",class:"edlb6hzvg",propsAsIs:!1}),rj=$("div")({name:"ButtonContainer",class:"edb15jaq2l",propsAsIs:!1}),sj=({icon:e,...t})=>v.jsx(hf,{...t,children:e}),oj=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 18 18",...e},R.createElement("path",{stroke:"#fff",strokeLinecap:"square",strokeWidth:2,d:"m2 2 14 14m0-14L2 16"})),ij=$("div")({name:"Container",class:"edchp8usr",propsAsIs:!1}),aj=$("span")({name:"Text",class:"edt141dyxo",propsAsIs:!1}),iS=({minutes:e,seconds:t})=>(e=Math.max(0,e),t=Math.max(0,t),v.jsxs(aj,{children:[e.toString().padStart(2,"0"),":",t.toString().padStart(2,"0")]})),lj=e=>{const t=f1(e);if(!t)return Date.now();const[n,s]=t.split("@");return Number(s)},cj=e=>Date.now()-e,uj=(e,t)=>{const n=lj(t);return dj(e,n)},dj=(e,t)=>{const n=Math.floor(cj(t)/1e3),s=e-n,i=s%60,a=Math.floor(s/60);return{seconds:i,minutes:a}},rc=200,Dr=Gt((e,t)=>({isHidden:!1,contentRef:null,registerRef:n=>{e({contentRef:n})},startFadeTransition:()=>{const n=t().contentRef;if(!n||!n.current){const f=Promise.resolve();return[f,()=>f]}e({isHidden:!0});const i=(f=>{const h=f.current;if(!h)return()=>{};const g=h.getBoundingClientRect().height;return h.style.height=`${g}px`,()=>{setTimeout(()=>{h.style.height="auto";const y=h.getBoundingClientRect().height;h.style.height=`${g}px`,setTimeout(()=>{h.style.height=`${y}px`},25)},25)}})(n),a=new Promise(f=>{setTimeout(()=>{f()},rc)}),c=async()=>{await a,i(),e({isHidden:!1})};return[a,async(f=[])=>{const h=B1(f);return c(),h}]}})),fj=$("div")({name:"Container",class:"edc1qu2wft",propsAsIs:!1}),pj=$("div")({name:"TextBlock",class:"edtoc84xr",propsAsIs:!1}),hj=$("p")({name:"RestrictionText",class:"edr6awsvd",propsAsIs:!1}),Df=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M20 12a8 8 0 1 0-16 0 8 8 0 0 0 16 0m2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}),R.createElement("path",{fill:"currentColor",d:"m13 11.106 1.732-1.732 1.415 1.414-3.733 3.732L11 13.5V6h2z"})),mj=({timeValues:e})=>{const{remainingTitle:t}=Je(n=>n.translations.timer);return v.jsxs(fj,{children:[v.jsx(Df,{}),v.jsxs(pj,{children:[v.jsx(hj,{children:t}),v.jsx(iS,{...e})]})]})},gj=$("div")({name:"Container",class:"edc16uhwme",propsAsIs:!1}),yj=({timeValues:e})=>v.jsxs(gj,{children:[v.jsx(Df,{}),v.jsx(iS,{...e})]}),sc=Gt(e=>({isTimerOverlapped:!1,values:{minutes:0,seconds:0},setIsTimerOverlapped:t=>e({isTimerOverlapped:t}),setValues:t=>e({values:t})})),aS=({type:e})=>{const t=be(h=>h.quest),n=sc(h=>h.values),s=sc(h=>h.setValues),i=be(h=>h.setIsFinished),a=be(h=>h.isFinished),c=Dr(h=>h.startFadeTransition),d=()=>uj(t.timeLimitSeconds,t.id),f=()=>{const[h,g]=c();return g([]).then(y=>Promise.all([y,h])).then(()=>{i(!0),s(d())})};return R.useEffect(()=>{if(a)return;const h=()=>{const y=d();if(y.minutes<=0&&y.seconds<=0){f(),s({minutes:0,seconds:0});return}s(y)},g=setInterval(h,1e3);return h(),()=>{clearInterval(g)}},[t.id,a]),e==="horizontal"?v.jsx(mj,{timeValues:n}):v.jsx(yj,{timeValues:n})},vj=()=>{const e=be(n=>n.quest),t=sc(n=>n.isTimerOverlapped);return e.timeLimitSeconds===0||!t?null:v.jsxs(ij,{children:[v.jsx(oS,{}),v.jsx(aS,{type:"vertical"})]})},lS=Gt(e=>({height:0,width:null,setHeight:t=>e({height:t}),setWidth:t=>e({width:t}),headerShift:0,setHeaderShift:t=>e({headerShift:t})})),Cn=Gt(e=>({topOffset:0,marginRootTop:0,gapFromOffset:0,breakPoints:null,setGapFromOffset:t=>e({gapFromOffset:t}),setTopOffset:t=>e({topOffset:t}),setMarginRootTop:t=>e({marginRootTop:t}),setBreakPoints:t=>e({breakPoints:t})})),oc=Gt((e,t)=>({height:null,width:null,initialHeight:0,top:0,setTop:n=>e({top:n}),setHeight:n=>e({height:n}),setWidth:n=>e({width:n}),getHeight:()=>t().height,setInitialHeight:n=>e({initialHeight:n,height:n})})),Sj=({isSticky:e,style:t})=>{var A,L,j,K,H;const n=ut(O=>O.results),s=be(O=>O.quest),i=In(O=>O.isPanelModalOpen),a=In(O=>O.setIsPanelOpen),c=R.useRef(null),d=Je(O=>O.translations.header),f=lS(O=>O.setHeight),h=oc(O=>O.width),g=Cn(O=>O.topOffset),y=Cn(O=>O.marginRootTop),w=()=>{a(!i)};R.useEffect(()=>{if(!(c.current instanceof HTMLElement))return;const C=window.getComputedStyle(c.current),W=parseFloat(C.height),F=parseFloat(C.paddingBottom);f(W-F/2)},[]);const x=O=>{O.preventDefault(),O.stopPropagation()},_=i?oj:F1,E=e?-g+y:-g,k=v.jsxs(Q6,{id:"edmap-header",ref:c,style:{position:e?"fixed":"absolute",top:`${E}px`,...t,width:h??"100%"},children:[v.jsx(A3,{}),v.jsxs(X6,{children:[v.jsxs(J6,{children:[v.jsx(Z6,{children:s==null?void 0:s.name}),v.jsx(xs,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((A=n==null?void 0:n.map)==null?void 0:A.points)??0,text:d.progressText})]}),v.jsx(Ml,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((L=n==null?void 0:n.map)==null?void 0:L.points)??0})]}),v.jsx(rj,{children:v.jsx(sj,{onMouseDown:x,onClick:w,icon:v.jsx(_,{})})}),v.jsx(oS,{}),v.jsxs(ej,{children:[v.jsx(yf,{style:{cursor:"pointer"},onMouseDown:x,onClick:w,src:(K=(j=n==null?void 0:n.User)==null?void 0:j.avatar)==null?void 0:K.src,alt:(H=d.image)==null?void 0:H.alt}),v.jsx(tj,{onClick:w,"aria-label":"avatar-button"}),v.jsx(nj,{children:v.jsx(gf,{level:vf(n==null?void 0:n.allPoints)})})]}),v.jsx(vj,{})]});return e&&typeof document<"u"?nc.createPortal(k,document.body):k},cS=Gt(e=>({top:0,bottom:0,height:0,setTop:t=>e({top:t}),setBottom:t=>e({bottom:t}),setHeight:t=>e({height:t})})),wj=()=>{const e=be(E=>E.increaseStep),t=be(E=>E.currentStep),n=be(E=>E.overallSteps),s=wo(E=>E.resetAnswers),i=be(E=>E.setIsFinished),a=be(E=>E.isFinished),c=wo(E=>E.answers),d=be(E=>E.quest),f=R.useRef(null),h=cS(E=>E.setHeight),g=Je(E=>E.translations.footer),y=Dr(E=>E.startFadeTransition);R.useEffect(()=>{f.current&&h(f.current.clientHeight)},[f.current]);const w=async()=>{const E=d.test.questions[t-1],k=await bP(d.id,E.id);await TP(c!=null&&c.length?c:k);const[A,L]=y();if(t===n){await A,await i(!0),await L([]);return}await Promise.all([L(H1(d.test.questions,t)),A]),e(),s()};if(!(d!=null&&d.id))return;const{questType:x=""}=d,_=x==="Journey";return v.jsxs(S3,{ref:f,children:[v.jsx(g3,{children:v.jsx($1,{})}),!a&&!_&&v.jsxs(v3,{children:[v.jsx(y3,{children:v.jsx(xs,{progressValue:t,overallValue:n})}),v.jsx(W1,{children:v.jsx(qn,{id:"edmap-widget__accept-btn",title:g.accentButtonTitle,isAccent:!0,onClick:w})})]})]})},_j=(e,t=!1,n=0)=>{const s=R.useRef(null),i=R.useRef(null),a=R.useRef(null);return R.useEffect(()=>{const c=s.current;if(!c)return;const d=(h,g)=>{let y=null;if(t){const w=h.top,x=a.current!==null&&a.current<n,_=w-n>0;x&&_&&(y=!0),a.current=h.top}else g?y=!1:h.top<n&&(y=!0);y===null||i.current===y||e(y)},f=new IntersectionObserver(h=>{h.forEach(g=>{d(g.boundingClientRect,g.isIntersecting)})},{root:null,threshold:0});return f.observe(c),()=>{f.disconnect()}},[e,t,n,s]),s},uS=$("div")({name:"Container",class:"edc12456a3",propsAsIs:!1}),Ej=$(uS)({name:"BottomSensorContainer",class:"edbig50hz",propsAsIs:!0}),xj=kt.forwardRef(({setIsSensorTriggered:e,isBottomUpTriggered:t,rootOffset:n,topOffset:s,bottomOffset:i,className:a,color:c,isStickToBottom:d=!1,isPortal:f=!0},h)=>{const g=_j(e,t,n);R.useImperativeHandle(h,()=>g.current,[]);const y=R.useMemo(()=>({marginTop:s||"unset",marginBottom:i||"unset",backgroundColor:c??"red"}),[s,i,c]);let w=null;return d?w=v.jsx(Ej,{className:a??"edmap-sensor",ref:g,style:y}):w=v.jsx(uS,{className:a??"edmap-sensor",ref:g,style:y}),f?nc.createPortal(w,document.body):w}),Is=kt.memo(xj),kj=$("div")({name:"Background",class:"edb1tdpu9l",propsAsIs:!1}),Tj=$(O1)({name:"Button",class:"edb16l2gyb",propsAsIs:!0}),bj=$("p")({name:"Title",class:"edt15nnhmy",propsAsIs:!1}),Ij=$("p")({name:"Subtitle",class:"eds1a894cv",propsAsIs:!1}),Cj=$("div")({name:"Container",class:"edczp6bkd",propsAsIs:!1}),Rj=$("div")({name:"TextContainer",class:"edt1807jed",propsAsIs:!1}),Aj=({width:e=24,height:t=24,...n})=>v.jsx("svg",{width:e,height:t,viewBox:"0.5 -0.5 17 17",xmlns:"http://www.w3.org/2000/svg",fill:"none",...n,children:v.jsxs("g",{transform:"translate(1.000000, 2.000000)",fill:"currentColor",children:[v.jsx("path",{d:"M15.796,6.908 L14.234,5.21 C14.019,4.998 13.672,4.998 13.458,5.21 L11.894,6.908 C11.679,7.122 11.679,7.467 11.894,7.68 L13.188,7.68 C12.702,9.505 11.27,10.976 9.399,11.47 C7.231,12.042 4.913,11.191 3.632,9.351 L2.541,10.102 C3.807,11.921 5.884,12.966 8.039,12.966 C8.604,12.966 9.176,12.894 9.737,12.745 C12.188,12.099 14.04,10.112 14.55,7.68 L15.795,7.68 C16.01,7.467 16.01,7.122 15.796,6.908 Z"}),v.jsx("path",{d:"M4.475,6.021 C4.69,5.808 4.69,5.462 4.475,5.249 L3.018,5.249 C3.516,3.448 4.936,2.001 6.789,1.511 C8.959,0.938 11.275,1.791 12.555,3.632 L13.647,2.88 C12.049,0.585 9.161,-0.479 6.448,0.235 C4.016,0.878 2.175,2.84 1.648,5.249 L0.196,5.249 C-0.019,5.463 -0.019,5.809 0.196,6.021 L1.834,7.658 C2.048,7.87 2.396,7.87 2.61,7.658 L4.475,6.021 Z"})]})});class Oj extends kt.Component{constructor(t){super(t),this.state={isError:!1}}static getDerivedStateFromError(){return{isError:!0}}componentDidCatch(t,n){xn(t)}handleRefresh(){window.location.reload()}render(){return this.state.isError?v.jsx(kj,{children:v.jsxs(Cj,{children:[v.jsxs(Rj,{children:[v.jsx(bj,{children:this.props.translations.title}),v.jsx(Ij,{children:this.props.translations.subtitle})]}),v.jsx(Tj,{onClick:()=>this.handleRefresh(),children:v.jsx(Aj,{width:80,height:75})})]})}):this.props.children}}const dS=({children:e})=>{const t=Je(n=>n.translations.globalError);return v.jsx(Oj,{translations:t,children:e})},Pj=({children:e})=>{const t=be(n=>n.quest);return t!=null&&t.id?v.jsx(v.Fragment,{children:e}):v.jsx(nS,{})},Nj=$("div")({name:"Container",class:"edctzb4h8",propsAsIs:!1}),Mj=$("p")({name:"Title",class:"edtg41o65",propsAsIs:!1}),$f=e=>{if(!e)return 60;const n=new Date(e).getTime()-Date.now();return n<0?0:Math.round(n/1e3)},Lj=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=e%60,i=String(n).padStart(2,"0"),a=String(s).padStart(2,"0");return t<1?`${i}:${a}`:`${String(t).padStart(2,"0")}:${i}:${a}`},jj=$("div")({name:"Container",class:"edc11azq9p",propsAsIs:!1}),fS=({expiresAt:e,onTimeEnds:t})=>{const[n,s]=R.useState($f(e)),i=Je(a=>a.translations.user.ban);return R.useEffect(()=>{s($f(e))},[e]),R.useEffect(()=>{const a=setInterval(()=>{s($f(e))},1e3);return()=>{clearInterval(a)}},[e]),R.useEffect(()=>{n>0||t&&t()},[n]),v.jsxs(jj,{children:[v.jsx(Df,{}),v.jsxs("span",{children:[i.wait," ",Lj(n)]})]})},pS=async e=>{if(!bi())return!1;const{data:n}=await ot.get(`/banned-user/${bi()}/${e}`),{isBanned:s,expiresAt:i}=n;return{isBanned:s,expiresAt:i}},hS=()=>{const e=be(d=>d.quest),[t,n]=R.useState(!0),[s,i]=R.useState({isBanned:!1,expiresAt:null}),a=R.useCallback(()=>{n(!0)},[]),c=R.useCallback(()=>{pS(e.id).then(({isBanned:d,expiresAt:f})=>{i({isBanned:d,expiresAt:f}),n(!d)})},[e.id]);return{isBanExpired:t,expiresAt:s.expiresAt,onTimeEnds:a,refreshBanStatus:c}},Dj=({children:e})=>{const t=Je(d=>d.translations.user.ban),n=be(d=>d.quest),{isBanExpired:s,expiresAt:i,onTimeEnds:a,refreshBanStatus:c}=hS();return R.useEffect(()=>{c()},[n==null?void 0:n.id]),s?e:v.jsxs(Nj,{children:[v.jsx(Mj,{children:t.forbiddenQuest}),v.jsx(fS,{expiresAt:i,onTimeEnds:a})]})},$j=(e,t)=>{R.useEffect(()=>{if(!e.current)return;const n=()=>{t(e.current.clientWidth)};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e.current])},Fj=$("div")({name:"Container",class:"edcxrmrad",propsAsIs:!1}),Bj=$("div")({name:"HideableContent",class:"edh1kwe0th",propsAsIs:!1}),zj=$("div")({name:"Divider",class:"edd1ctwus6",propsAsIs:!1}),Uj=$("button")({name:"QuestAnswerCardWrapper",class:"edqfq64oi",propsAsIs:!1}),Hj=se("div")({name:"TooltipContainer",class:"edtlfbks8",propsAsIs:!1}),Wj=()=>({isStickLeft:e})=>e?"0":"102%",qj=()=>({isVisible:e})=>e?"visible":"hidden",Vj=()=>({isVisible:e,isFading:t})=>e&&!t?"1":"0",Gj=()=>({zIndex:e=100})=>e,Yj=se("div")({name:"TooltipContent",class:"edtlzs19l",propsAsIs:!1,vars:{"tlzs19l-0":[Wj()],"tlzs19l-1":[qj()],"tlzs19l-2":[Vj()],"tlzs19l-3":[Gj()]}}),mS=e=>{let t;const n=new Set,s=(h,g)=>{const y=typeof h=="function"?h(t):h;if(!Object.is(y,t)){const w=t;t=g??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(x=>x(t,w))}},i=()=>t,d={setState:s,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(s,i,d);return d},Kj=e=>e?mS(e):mS,Qj=e=>e;function Xj(e,t=Qj){const n=kt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return kt.useDebugValue(n),n}const gS=e=>{const t=Kj(e),n=s=>Xj(t,s);return Object.assign(n,t),n},yS=(e=>e?gS(e):gS)(e=>({activeTooltip:null,setActiveTooltip:t=>e({activeTooltip:t}),currentZIndex:101,getNextZIndex:()=>(e(t=>({currentZIndex:t.currentZIndex+1})),yS.getState().currentZIndex)})),vS=({tooltipContent:e,children:t,isStickLeft:n,...s})=>{const[i,a]=R.useState(!1),[c,d]=R.useState(!1),[f,h]=R.useState(null),[g,y]=R.useState(100),{setActiveTooltip:w,getNextZIndex:x}=yS(),_=R.useRef(null),E=()=>{d(!1),f&&(clearTimeout(f),h(null));const A=x();y(A),w(_.current),a(!0)},k=()=>{d(!0);const A=setTimeout(()=>{a(!1),h(null),d(!1)},300);h(A)};return v.jsxs(Hj,{...s,onMouseEnter:E,onMouseLeave:k,children:[t,v.jsx(Yj,{ref:_,className:"tooltip-content",isFading:c,isStickLeft:n,isVisible:i,onMouseEnter:E,onMouseLeave:k,style:{zIndex:g},children:e||""})]})},Jj=$("div")({name:"Container",class:"edcbf1r91",propsAsIs:!1}),Zj=se("div")({name:"Container",class:"edc6pydkm",propsAsIs:!1}),e5=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("💪🏃‍♂️🧠❤️🔥💰🪵⛏️🍖🔮👾⭐️😒😊🌈🐋🦄😎🤢🤮🤡👺💩🤥🐷👑⌛️🛢️🪙💎🗡️🧬🎁🎉🧸🪆🪩📊❗️💖❤️‍🔥💔")].map(e=>e.segment),t5=e=>[...e].map(t=>t.codePointAt(0)).join("-"),SS=Object.fromEntries(e5.map(e=>[t5(e),e])),wS=({iconId:e,text:t,...n})=>v.jsxs(Zj,{...n,children:[v.jsx("span",{children:SS[e]}),t?v.jsx("span",{children:t}):null]}),n5=({resourceIds:e})=>{const t=ur(n=>n.resources);return v.jsx(Jj,{children:e.map(n=>{const s=t.find(i=>i.id===n);return v.jsx(wS,{iconId:s.iconId},n)})})},r5=R.forwardRef(({blocksArray:e,handleClick:t,jourenyEdgeId:n,failedResources:s,replacements:i,...a},c)=>{const d=h=>{h.preventDefault(),h.stopPropagation(),t(n)},f=s.length===0;return v.jsx(vS,{isStickLeft:!0,style:{flex:"1 1 calc(50% - 6px)"},tooltipContent:f?null:v.jsx(n5,{resourceIds:s}),children:v.jsx(Uj,{ref:c,style:{opacity:f?1:.6},isActive:!1,disabled:!f,onClick:d,...a,children:v.jsx(bo,{blocksArray:e,isJourneyWidgetText:!0,replacements:i})})})}),Ff=(e=0)=>{setTimeout(()=>{const t=document.getElementById("edmap-widget__container");if(!t)return;const n=t.getBoundingClientRect();window.scrollTo({behavior:"smooth",top:n.top+window.scrollY-e})},rc)},s5=$("div")({name:"Background",class:"edbgw902r",propsAsIs:!1}),o5=$("div")({name:"Container",class:"edcv2zzw1",propsAsIs:!1}),i5=$("div")({name:"MessageBlock",class:"edm2b9k2r",propsAsIs:!1}),a5=$("div")({name:"Row",class:"edr4gsubj",propsAsIs:!1}),l5=$("div")({name:"Divider",class:"edd3sdabk",propsAsIs:!1}),c5=$("h1")({name:"Title",class:"edt1cvxfwm",propsAsIs:!1}),u5=$("div")({name:"QuestsContainer",class:"edq1tclzqz",propsAsIs:!1}),_S=$("div")({name:"Section",class:"eds1ce4iti",propsAsIs:!1}),ES=$("p")({name:"SectionTitle",class:"edsqdd2kx",propsAsIs:!1}),d5=$(a5)({name:"PrizesContainer",class:"edpiwm40a",propsAsIs:!0});class f5{constructor(){rs(this,"performPost",async(t,n)=>{try{return ot.post(`${this.endpointBase}${t}`,n)}catch{}});rs(this,"reportAction",async(t,n)=>{this.actions+=1,this.reportActiveUser(n.mapId,n.questId),this.performPost(t,n)});rs(this,"reportEdgeClick",async(t,n,s)=>{if(!this.isUserActive)return this.isUserActive=!0,this.reportAction("/journey-edge-click",{mapId:t,questId:n,userId:await Wn(),edgeId:s})});rs(this,"reportWidgetView",(t,n)=>this.performPost("/widget-view",{mapId:t,questId:n}));rs(this,"reportActiveUser",(t,n)=>this.performPost("/active-user",{mapId:t,questId:n}));rs(this,"reportQuestEnded",async(t,n)=>{this.actions!==0&&(this.performPost("/actions-agriggated",{mapId:t,questId:n,userId:await Wn(),actionCount:this.actions}),this.actions=0)});rs(this,"dropUserActivation",()=>{this.isUserActive=!1});this.actions=0,this.endpointBase="/analytics",this.isUserActive=!1}}const ic=new f5,p5=(e,t=5)=>{const n=e==null?void 0:e.quests;return n?n.filter(a=>a.url!==window.location.pathname).filter(a=>!("resultQuestAnswer"in a)).slice(0,t):[]},h5=e=>{const t=e==null?void 0:e.prizes,n=e==null?void 0:e.allPoints;return t?t.filter(i=>i.awardPoints>n):[]},m5=async e=>{if(ic.reportQuestEnded(e.mapId,e.id),e.questType==="Test")return IP(e);if(e.questType==="Journey")return u3(e)},g5=(e,t)=>{const n=y5(e,t),s=v5(n),i=S5(n);return[s,i]},y5=(e,t)=>{var n;return(n=t==null?void 0:t.quests)==null?void 0:n.find(s=>s.id===e)},v5=e=>{var t;return((t=e==null?void 0:e.resultQuestAnswer)==null?void 0:t.points)||0},S5=e=>(e==null?void 0:e.maxPoints)||0,w5=(e,t)=>e.replace(/{(\w+)}/g,(n,s)=>{var i;return((i=t[s])==null?void 0:i.toString())??`{${s}}`}),_5=(e,t,n,s)=>e<t?n:s,E5=(e,t,n,s,i)=>{const[a,c]=g5(e,t),d=_5(n,a,s,i);return w5(d,{points:n,bestPoints:a,maxPoints:c})},x5=$("p")({name:"HighlightingContainer",class:"edh1r5zzja",propsAsIs:!1}),k5=({worstScoreTemplate:e,bestScoreTemplate:t})=>{const n=ut(c=>c.results),s=be(c=>c.quest),i=be(c=>c.currentTryPoints),a=E5(s.id,n,i,e,t);return v.jsx(x5,{dangerouslySetInnerHTML:{__html:a}})},xS=({translations:e,buttonOnClick:t})=>{const[n,s]=R.useState(!0),{isBanExpired:i,expiresAt:a,onTimeEnds:c,refreshBanStatus:d}=hS(),f=ut(F=>F.results),h=ut(F=>F.refreshUserResults),g=be(F=>F.setCurrentTryPoints),y=p5(f),w=h5(f),x=Cn(F=>F.marginRootTop),_=be(F=>F.quest),E=e.successTitle,k=e.buttonTitle,A=e.prizesTitle,L=e.questsTitle,j=e.bestScoreTemplate,K=e.worstScoreTemplate,H=p1(),O=In(F=>F.setIsPanelOpen),C=In(F=>F.setIsRegistrationOpen),W=()=>{O(!0),C(!0)};return R.useEffect(()=>{m5(_).then(({data:F})=>{var U;return d(),g(F.points),h((U=window.__widgetEdmap)==null?void 0:U.mapId)}).finally(()=>{d1(_.id)})},[_,_==null?void 0:_.id]),R.useEffect(()=>{_!=null&&_.id&&pS(_.id).then()},[_==null?void 0:_.id]),R.useEffect(()=>{Ff(x)},[]),v.jsx(s5,{id:"edmap-widget__success",children:v.jsxs(o5,{children:[v.jsxs(i5,{children:[v.jsx(c5,{children:E}),_.isAwardPointsShowned&&v.jsx(k5,{worstScoreTemplate:K,bestScoreTemplate:j}),i?v.jsx(qn,{id:"edmap-widget__success-btn",title:k,isAccent:!0,onClick:t}):v.jsx(fS,{expiresAt:a,onTimeEnds:c})]}),!H&&n&&v.jsx(wf,{setIsRegInfoVisible:s,openSignInModal:W,setIsSocialModalVisible:()=>{}}),w.length>0&&y.length>0&&v.jsx(l5,{}),w.length>0?v.jsxs(_S,{children:[v.jsx(ES,{children:A}),v.jsx(d5,{children:w.map((F,U)=>v.jsx(mf,{index:U,prizeData:F,userPoints:f==null?void 0:f.allPoints,openSignInModal:()=>{},openInfoModal:()=>{}},F==null?void 0:F.id))})]}):null,y.length>0?v.jsxs(_S,{children:[v.jsx(ES,{children:L}),v.jsx(u5,{children:v.jsx(Sf,{quests:y})})]}):null]})})},T5=se("div")({name:"Gap",class:"edg5lnmft",propsAsIs:!1}),b5=se("div")({name:"ResourceWrapper",class:"edr1u056rp",propsAsIs:!1}),kS=se("p")({name:"Text",class:"edtjt97q3",propsAsIs:!1}),I5=se("div")({name:"TooltipConent",class:"edt3zaxx",propsAsIs:!1}),C5=(e,t)=>{const[n,s]=R.useState("right");return R.useLayoutEffect(()=>{if(!e.current||!t.current)return;const i=e.current.getBoundingClientRect(),a=t.current.getBoundingClientRect();return i.left-a.left+i.width>a.width?s("left"):s("right"),()=>{s("right")}},[e,t]),n},R5=({resource:e,animationClass:t,viewportRef:n})=>{const s=R.useRef(null),i=C5(s,n),a=i==="right"?"0":"unset",c=i==="right"?"unset":"-40px";return v.jsx(vS,{isStickLeft:!0,tooltipContent:v.jsx(I5,{ref:s,style:{left:a,right:c},children:v.jsx(kS,{children:e.name})}),children:v.jsxs(b5,{children:[v.jsx(wS,{style:{gap:"0"},iconId:e.iconId}),v.jsx(kS,{className:t,children:e.value})]})})},A5=({resources:e})=>{const[t,n]=R.useState(e),[s,i]=R.useState({}),a=R.useRef(null);R.useEffect(()=>{e.every(d=>t.find(f=>f.name===d.name))||(i({}),n(e))},[e]),R.useEffect(()=>{const d={};e.forEach((h,g)=>{const y=t[g],w=parseFloat(y==null?void 0:y.value.replace(/\s/g,""))||0,x=parseFloat(h==null?void 0:h.value.replace(/\s/g,""))||0;y?w<x?d[h.name]="increase":x<w?d[h.name]="decrease":d[h.name]="":d[h.name]="increase"}),i(d);const f=setTimeout(()=>{i({})},600);return n(e),()=>{clearTimeout(f),i({})}},[e]);const c=e.filter(({isVisible:d})=>d);return v.jsx(T5,{ref:a,children:c.map((d,f)=>v.jsx(R5,{viewportRef:a,resource:d,animationClass:s[d.name]||""},f))})},TS=$("div")({name:"AnswersBlock",class:"eda1nbdv32",propsAsIs:!1}),O5=$("span")({name:"SelectBelowText",class:"eds1wn0vwj",propsAsIs:!1}),P5=$("div")({name:"Container",class:"edc170a6p7",propsAsIs:!1}),N5=$("div")({name:"TimerPadding",class:"edt1jyjufh",propsAsIs:!1}),bS=()=>{const t=be(n=>n.quest).timeLimitSeconds===0;return v.jsx(P5,{children:t?null:v.jsx(N5,{children:v.jsx(aS,{type:"horizontal"})})})},M5=e=>e.reduce((t,n)=>({...t,[n.id]:`${SS[n.iconId]} ${n.name} ${n.value}`}),{}),IS=()=>{const e=ur(t=>t.resources);return R.useMemo(()=>M5(e),[e])},L5=e=>{const t=IS();return v.jsx(bo,{...e,replacements:t})},j5=e=>Array.from(new Set(e)),D5=(e,t)=>{const n=e.sourceEdges.filter(s=>!t.has(s.targetId));return j5(n.map(s=>s.targetId))},$5=(e,t)=>e.filter(n=>!t.has(n)),F5=()=>{const e=ur(i=>i.currentNode),t=R.useRef(new Set),n=R.useRef(new Set),s=R.useRef(0);R.useEffect(()=>{let i;return s.current=setTimeout(()=>{if(!e)return;const a=D5(e,t.current),c=$5(a,n.current);c.forEach(f=>n.current.add(f)),i=new AbortController;const d=c.map(async f=>{const h=await p3(f,i.signal);return await B1(h.imageUrls,"low"),t.current.add(f),n.current.delete(f),h});Promise.all(d)},2e3),()=>{clearTimeout(s.current),i&&i.abort()}},[e])},B5=({data:e})=>{const t=be(j=>j.quest),n=be(j=>j.isFinished),s=be(j=>j.setIsFinished),i=ur(j=>j.currentNode),[a,c]=R.useState(null),d=ur(j=>j.resources),f=ur(j=>j.restart),h=ur(j=>j.setCurrentNode),g=Je(j=>j.translations.journeyCard),y=Dr(j=>j.isHidden),w=Dr(j=>j.startFadeTransition),x=Dr(j=>j.registerRef),_=R.useRef(null),E=Cn(j=>j.marginRootTop),k=IS();F5(),R.useEffect(()=>{x(_)},[]),R.useEffect(()=>{!(a!=null&&a.id)||!(i!=null&&i.id)||(i==null?void 0:i.id)===(a==null?void 0:a.id)||Ff(E)},[i,a]),R.useEffect(()=>{a!=null&&a.id||c(i)},[i]),R.useEffect(()=>{!i.id||!(i.type==="present")||s(!0)},[t,e,i]);const A=(j,K)=>{ic.reportEdgeClick(t.mapId,t.id,K);const[H,O]=w();c3(j,K).then(W=>{if(!W)return Promise.resolve([]);const F=$l(W.node.data.blocks);return Promise.all([W,O(F)])}).then(([W,F])=>Promise.all([W,F,H])).then(([W,F])=>{h(W.node,W.currentResources)})},L=async()=>{const[j,K]=w(),{node:H,currentResources:O}=await z1(t.id),C=$l(H.data.blocks);return Promise.all([K(C)]).then(([W])=>Promise.all([W,j])).then(()=>{s(!1),f(H,O)})};return v.jsxs(Fj,{children:[v.jsx(bS,{}),v.jsxs(Bj,{ref:_,style:{opacity:y?0:1,transition:`all ${rc}ms ease-out `},children:[v.jsxs(sS,{children:[v.jsx(L5,{isNodeDescription:!0,blocksArray:i.data.blocks}),d.length>0&&v.jsx(A5,{resources:d})]}),n?v.jsx(xS,{translations:g,buttonOnClick:L}):v.jsxs(TS,{children:[v.jsx(zj,{}),i.sourceEdges.map((j,K)=>v.jsx(r5,{isAccessable:j.isAccessable,jourenyEdgeId:j.id,failedResources:j.failedResources,replacements:k,handleClick:H=>A(t==null?void 0:t.id,H),blocksArray:j.richText.blocks,index:K},j.id))]})]})]})},z5=$("div")({name:"Container",class:"edc5a0ote",propsAsIs:!1}),U5=$("div")({name:"HideableContent",class:"edh1k11f83",propsAsIs:!1}),H5=$("div")({name:"AnswersWrapper",class:"eda1vi3dgi",propsAsIs:!1}),W5=se("label")({name:"Label",class:"edlzct43p",propsAsIs:!1}),q5=se("input")({name:"HiddenInput",class:"edhtu66xn",propsAsIs:!1}),V5=()=>e=>e.isChecked?"var(--checkbox-bg-active)":"var(--checkbox-bg-default)",G5=se("div")({name:"CustomInput",class:"edchq6avi",propsAsIs:!1,vars:{"chq6avi-0":[V5()]}}),Y5=({label:e,id:t,name:n,index:s,onChange:i,isInsideChecked:a=null})=>{const c=d=>{const f=d.target.checked;i==null||i(f)};return v.jsxs(W5,{htmlFor:t,"data-testid":`edmap-widget__test-answer-${s+1}`,children:[v.jsx(q5,{id:t,name:n,type:"checkbox",checked:a,value:!a,onChange:c}),v.jsx(G5,{isChecked:a,children:a?v.jsx("svg",{width:"22",height:"16",viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M1.5 7.56812L8.12121 14.1893L20.5 1.81055",stroke:"white",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"round"})}):null}),v.jsx(bo,{isAnswer:!0,blocksArray:e})]})},K5=({label:e,name:t,id:n,index:s,onChange:i,isInsideChecked:a=null})=>{const[c,d]=R.useState(!1),f=h=>{d(h),i==null||i(h)};return v.jsx(Y5,{name:t,label:e,id:n,index:s,onChange:f,isInsideChecked:a||c})},Bf=e=>e===null,Q5=({test:e})=>{var j,K,H,O;const t=be(C=>C.resetSteps),n=be(C=>C.currentStep),s=be(C=>C.isFinished),i=be(C=>C.setIsFinished),a=wo(C=>C.addAnswer),c=Je(C=>C.translations.testCard),d=wo(C=>C.removeAnswer),f=wo(C=>C.resetAnswers),h=ut(C=>C.setPointsAreReceived),g=R.useRef(null),[y,w]=R.useState(null),x=Dr(C=>C.registerRef),_=Dr(C=>C.isHidden),E=Dr(C=>C.startFadeTransition),k=Cn(C=>C.marginRootTop),A=(C,W,F)=>{F?a(e.questId,C,W):d(C)},L=async()=>{const[C,W]=E();await Promise.all([W(H1(e.questions,n)),C]),f(),t(),i(!1),h(!1)};return R.useEffect(()=>{Bf(n)||w(n)},[n]),R.useEffect(()=>{const C=n===y,W=C&&n===1;Bf(y)||Bf(n)||C||W||Ff(k)},[n,y]),R.useEffect(()=>{x(g)},[x]),v.jsxs(z5,{children:[v.jsx(bS,{}),v.jsx(U5,{ref:g,style:{opacity:_?0:1,transition:`all ${rc}ms ease-out `},children:s?v.jsx(xS,{translations:c,buttonOnClick:L}):v.jsxs(v.Fragment,{children:[v.jsx(sS,{children:v.jsx(bo,{id:"edmap-widget__test-question",blocksArray:(K=(j=e.questions[n-1])==null?void 0:j.text)==null?void 0:K.blocks})}),v.jsxs(TS,{children:[v.jsx(O5,{children:c.chooseAnswer}),v.jsx(H5,{id:"edmap-widget__test-answers",children:(O=(H=e.questions[n-1])==null?void 0:H.answers)==null?void 0:O.map((C,W)=>{var F;return v.jsx(K5,{index:W,label:(F=C==null?void 0:C.text)==null?void 0:F.blocks,id:C==null?void 0:C.id,onChange:U=>{var J;return A(C==null?void 0:C.id,(J=e.questions[n-1])==null?void 0:J.id,U)}},C==null?void 0:C.id)})})]})]})})]})},X5=()=>{const e=be(t=>t.quest);if(e!=null&&e.id)return e.questType==="Test"&&v.jsx(Q5,{test:e.test})||e.questType==="Journey"&&v.jsx(B5,{data:e.journey})},J5=kt.memo(X5),Z5=({children:e})=>{const t=be(n=>n.quest);return t!=null&&t.id?v.jsx("div",{children:e}):null},zf=350,eD=1,tD=()=>{const e=be(c=>c.quest),[t,n]=R.useState(!1),[s,i]=R.useState(!1);R.useEffect(()=>{if(!t||s)return;const c=setTimeout(()=>{i(!0),ic.reportWidgetView(e==null?void 0:e.mapId,e==null?void 0:e.id)},eD*1e3);return()=>{clearTimeout(c)}},[t,s,e==null?void 0:e.id,e==null?void 0:e.mapId]),R.useEffect(()=>{i(!1),ic.dropUserActivation()},[e==null?void 0:e.id,e==null?void 0:e.mapId]);const a=R.useCallback(c=>{c&&n(!c)},[]);return v.jsxs(v.Fragment,{children:[v.jsx(Is,{topOffset:-zf,setIsSensorTriggered:a,isBottomUpTriggered:!0,color:"blue",className:"view-counter-out",isPortal:!1}),v.jsx(Is,{topOffset:-zf,setIsSensorTriggered:n,color:"green",className:"view-counter-enter",isPortal:!1}),v.jsx(Is,{bottomOffset:zf,setIsSensorTriggered:n,isBottomUpTriggered:!0,color:"yellow",className:"view-counter-enter",isPortal:!1,isStickToBottom:!0}),v.jsx(Is,{topOffset:0,setIsSensorTriggered:a,color:"green",className:"view-counter-out",isPortal:!1,isStickToBottom:!0})]})},CS=()=>{const e=R.useRef(),t=tc(L=>L.widgetContainerStyle),[n,s]=R.useState(!1),[i,a]=R.useState(!1),c=lS(L=>L.height),d=Cn(L=>L.marginRootTop),f=Cn(L=>L.setTopOffset),h=oc(L=>L.setWidth),g=oc(L=>L.top),y=cS(L=>L.height),w=oc(L=>L.setTop),x=sc(L=>L.setIsTimerOverlapped),_=R.useRef(),E=R.useRef(),k=30;$j(e,h),R.useEffect(()=>{e.current&&w(e.current.getBoundingClientRect().top+window.scrollY)},[e]),R.useEffect(()=>{if(!i)return;const L=()=>{const j=E.current;if(!j)return;const H=j.getBoundingClientRect().top;f(Math.max(0,-H))};return window.addEventListener("scroll",L),L(),()=>{f(0),window.removeEventListener("scroll",L)}},[i,c]);const A=g-d;return v.jsxs(G6,{className:"sensor root",children:[v.jsx(Is,{className:"widget-trigger-header-stick",setIsSensorTriggered:s,topOffset:`${-d}px`,ref:_,isPortal:!1}),v.jsx(Is,{setIsSensorTriggered:x,topOffset:`${A+c-k}px`}),v.jsx(tD,{}),v.jsx(V6,{ref:e,style:{...t},children:v.jsx(dS,{children:v.jsxs(Z5,{children:[v.jsxs(Y6,{children:[v.jsx(Sj,{isSticky:n}),v.jsx(K6,{children:v.jsx(Pj,{children:v.jsx(Dj,{children:v.jsx(J5,{})})})})]}),v.jsx(wj,{})]})})}),v.jsx(Is,{isPortal:!1,isStickToBottom:!0,color:"black",className:"bottom sensor",setIsSensorTriggered:a,bottomOffset:`${y+c+d}px`,isBottomUpTriggered:!1,ref:E})]})},nD=$("div")({name:"WrapperForStyles",class:"edw1ckr4k2",propsAsIs:!1}),rD=$("div")({name:"Container",class:"edc1moeqqj",propsAsIs:!1}),sD=$("div")({name:"Container",class:"edcrg0ist",propsAsIs:!1}),oD=$("p")({name:"EmptyQuestsMessage",class:"ede1tl4sfq",propsAsIs:!1}),iD=$("div")({name:"Container",class:"edcjx2ut5",propsAsIs:!1}),aD=$("p")({name:"Title",class:"edt75yszp",propsAsIs:!1}),RS=({title:e,children:t})=>v.jsxs(iD,{children:[v.jsx(aD,{children:e}),t]}),lD=({quests:e})=>{const t=Je(s=>s.translations.questList),n=!e||e.length===0;return v.jsx(RS,{title:t.title,children:v.jsx(sD,{children:n?v.jsx(oD,{children:t.emptyQuestsWarning}):v.jsx(Sf,{quests:e})})})},cD=$("div")({name:"PrizesContainer",class:"edp1163kd8",propsAsIs:!1}),uD=({prizes:e,openSignInModal:t,openInfoModal:n})=>{const s=ut(a=>a.results),i=Je(a=>a.translations.prizeList);return!e||e.length===0?null:v.jsx(RS,{title:i.title,children:v.jsx(cD,{children:e.map((a,c)=>v.jsx(mf,{prizeData:a,userPoints:(s==null?void 0:s.allPoints)||0,index:c,openSignInModal:t,openInfoModal:n},a.id))})})},dD=()=>{const[e,t]=R.useState(null),[n,s]=R.useState(!1),i=ut(E=>E.results),a=(i==null?void 0:i.quests)||[],c=(i==null?void 0:i.prizes)||[],d=tc(E=>E.widgetContainerStyle),{isOpen:f,closeModal:h,openModal:g}=Fl(),{isOpen:y,closeModal:w,openModal:x}=Fl(),_=(E,k)=>{t(c[E]),k==="prize"?(s(!0),x()):(s(!1),x())};return v.jsx(nD,{style:d,children:v.jsx(rD,{children:v.jsxs(dS,{children:[v.jsx(lD,{quests:a}),v.jsx(uD,{prizes:c,setClickedPrize:t,openInfoModal:_,openSignInModal:g}),v.jsx(G1,{isOpen:f,closeModal:h,setIsSocialModalVisible:()=>{},isSocialModalVisible:!0}),v.jsx(Zv,{data:e,isInfoModalOpen:y,closeInfoModal:w,isPrizeModal:n})]})})})},fD=[uf,df,S1],AS={color:{[y1]:["light"],[uf]:[],[PP]:["white","blue"]},rounded:{[v1]:["rounded"],[df]:[]},text:{[NP]:["bold","text"],[S1]:[]},wordWrap:{[MP]:[],[LP]:["nowrap"]}},pD=Object.keys(AS).map(e=>Object.entries(AS[e]).sort(([t,n],[s,i])=>i.length-n.length)),hD=e=>{if(!e)return fD;const t=e.split("-");return pD.map(s=>s.find(([i,a])=>a.every(c=>t.includes(c)))).map(s=>s[0])},mD={"--main-color":["--edmap-main-color"],"--main-shadow-color":["--edmap-main-color-shadow"],"--main-dark-color":["--edmap-main-color-dark"],"--text-on-main":["--edmap-text-on-main"]},gD=e=>{const t={};return Object.keys(e).forEach(n=>{mD[n].forEach(s=>{t[s]=e[n]})}),t},yD=()=>{var t;const e=gD(((t=window==null?void 0:window.__widgetEdmap)==null?void 0:t.cssVariablesOverride)??{});Object.keys(e).forEach(n=>{document.body.style.setProperty(n,e[n],"important")})},vD=()=>{var n;const e=((n=window.__widgetEdmap)==null?void 0:n.headerOffset)||0,t=e!==null&&typeof e=="object";return t?wD(t,e):[{width:0,value:ac(e)}]},SD=e=>Object.keys(e).sort((n,s)=>s-n).map(n=>({width:Number(n),value:e[n]})),wD=(e,t)=>{if(!e)return ac(t);const n=Object.keys(t).reduce((s,i)=>{const a=ac(i),c=ac(t[i]);return{...s,[a]:c}},{});return SD(n)},ac=e=>Number.parseFloat(e)||0,_D=()=>{const[e,t]=R.useState(window.innerWidth);ED(e),R.useEffect(()=>{const n=()=>t(window.innerWidth);n(),window.addEventListener("resize",n)},[])},ED=e=>{const t=Cn(i=>i.breakPoints),n=Cn(i=>i.setMarginRootTop),s=Cn(i=>i.marginRootTop);R.useEffect(()=>{if(!t)return;const i=t.find(a=>e>a.width);i&&i.value!==s&&n(i.value)},[t,e,e])},xD=[y1,uf,v1,df],kD=[{id:"edmap-widget__container",Component:CS},{id:"edmap-widget-quest-picker__container",Component:dD}];console.log("Вне app сбилжен");function TD({mode:e=null}){var W;console.log("App перезапущен");const t=be(F=>F.setQuest),n=be(F=>F.setCurrentStep),s=be(F=>F.setIsFinished),i=be(F=>F.setOverallSteps),a=ur(F=>F.initialize),c=ut(F=>F.setUserResults),d=ut(F=>F.setPointsAreReceived),f=Je(F=>F.setLocale),h=Cn(F=>F.setBreakPoints),{setPopupBarStyle:g,setWidgetContainerStyle:y}=tc(),[w,x]=R.useState([]);_D();const _=q6(e,window.location.pathname),k=new URLSearchParams(window.location.search).get("code"),A=async(F,U,J)=>{let Z=null;return U==="admin"?Z=await kP(J):Z=await xP(F,J),t(Z),Z},L=(F,U)=>{var me;const J=(U==null?void 0:U.length)-1,Z=(me=F.at(-1))==null?void 0:me.questionId,ue=U==null?void 0:U.findIndex(De=>De.id===Z);return ue===J&&s(!0),ue>=J?J+1:ue+2},j=(F,U)=>{var Z,ue,me;if((F==null?void 0:F.questType)!=="Test")return;if(i(((ue=(Z=F==null?void 0:F.test)==null?void 0:Z.questions)==null?void 0:ue.length)??0),n(1),!U||(U==null?void 0:U.length)===0){s(!1);return}const J=L(U,(me=F.test)==null?void 0:me.questions);n(J??1)},K=()=>{const F=kD.filter(({id:U})=>document.getElementById(U));x(F)},H=()=>{var F;document.body.classList.remove(...xD),document.body.classList.add(...hD((F=window==null?void 0:window.__widgetEdmap)==null?void 0:F.theme)),yD()},O=()=>{K(),H()};R.useEffect(()=>{O()},[]),R.useEffect(()=>{window.__widgetEdmap&&(window.__widgetEdmap.mode=e)},[e]);const C=R.useCallback(async()=>{var U;const F=(U=window==null?void 0:window.__widgetEdmap)==null?void 0:U.mapId;if(F){d(!1);try{if(!w.some(({id:ue})=>ue==="edmap-widget__container")&&e!=="admin")return;const Z=await A(F,e,_);if(!Z)return;if(Z.questType==="Journey"){a(Z.id);return}if(Z.questType==="Test"){const ue=await SP(Z.id);j(Z,ue);return}}catch(J){xn(J),console.error("Error during initialization:",J)}}},[e,_,w]);return R.useEffect(()=>{C()},[C]),R.useEffect(()=>{var U;const F=(U=window==null?void 0:window.__widgetEdmap)==null?void 0:U.mapId;F&&EP(F,k).then(J=>{f(J.map.widgetUILanguage),c(J)})},[k,_]),R.useEffect(()=>{w.forEach(({id:F})=>{const U=document.getElementById(F);U&&(U.dataset.popupBarStyle&&g(rS(U.dataset.popupBarStyle)),U.dataset.widgetContainerStyle&&y(rS(U.dataset.widgetContainerStyle)))})},[w]),R.useEffect(()=>{const F=vD();h(F)},[]),e==="admin"?(C(),v.jsx(CS,{})):w.length===0||!((W=window==null?void 0:window.__widgetEdmap)!=null&&W.mapId)?null:v.jsxs(v.Fragment,{children:[w.map(({id:F,Component:U})=>{const J=document.getElementById(F);return J?nc.createPortal(v.jsx(U,{},F+(window.location.pathname||"")),J):null}),e!=="admin"&&nc.createPortal(v.jsx(W6,{},window.location.pathname||""),document.body)]})}uP({dsn:"https://f54e3fc0fb41b6b943cd81aa16c927d3@o4508675319726080.ingest.de.sentry.io/4508676111138896",integrations:[iP(),GO()],tracesSampleRate:1,tracePropagationTargets:["localhost","https://api.edmap.space"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});const ji=()=>{if(typeof window>"u"){console.log("Widget loaded in node env");return}if(!document.body){console.warn("Body is not ready for widget"),typeof requestAnimationFrame<"u"?requestAnimationFrame(ji):setTimeout(ji,100);return}let e=document.querySelector("#invisible-edmap-container");const t=window.__edmapRoot;t&&t.unmount(),e&&e.remove(),e=document.createElement("div"),e.setAttribute("id","invisible-edmap-container"),e.style.display="none",e.style.pointerEvents="none",document.body.appendChild(e);const n=TE.createRoot(e);window.__edmapRoot=n,window.dispatchEvent(new CustomEvent("edmap-widget-ready")),n.render(v.jsx(R.StrictMode,{children:v.jsx(TD,{})}))};ji();function bD(e,t,n=!1){let s;function i(){const a=this,c=arguments,d=function(){s=null,n||e.apply(a,c)},f=n&&!s;clearTimeout(s),s=setTimeout(d,t),f&&e.apply(a,c)}return i.cancel=function(){clearTimeout(s),s=null},i}(function(){window.__widgetEdmap=window.__widgetEdmap||{};let e=null;async function t(){try{ji(),window.__widgetEdmap.renderWidget=ji}catch{}}const s=((c,d)=>{let f=null;const h=()=>{f&&clearTimeout(f),f=setTimeout(c,d),e=h};return h.cancel=()=>{f&&clearTimeout(f),e===h&&(e=null)},h})(t,700);t();let i=0;const a=bD(c=>{i=c},300);window.addEventListener("edmap-routing-triggered",c=>{var f,h,g,y;const d=c.detail.type;if(console.log("triggered navigation for",d),console.log("with args",(f=c.detail)==null?void 0:f.args),d==="pushState")e&&(e.cancel(),e=null),t(),i=0;else if(d==="popstate")s(),i=0;else if(d=="replaceState"){const w=(y=(g=(h=c.detail)==null?void 0:h.args)==null?void 0:g[0])==null?void 0:y.scrollY;if(typeof w!="number"||Number.isNaN(w))return;i===w?s():a(w)}})})()})();
