PageSourceSearch

https://bridge.pubg.com/assets/index-DmZyhpNU.js

js pubg.com collected 2026-10-01 08:32:23 UTC 667,808 bytes, 22 lines download raw bytes

vendor: 1,445 bytes, line 1
1function Jv(t,a){for(var i=0;i<a.length;i++){const l=a[i];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(l,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function v0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nd={exports:{}},Wl={};var zm;function Wv(){if(zm)return Wl;zm=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(l,o,c){var h=null;if(c!==void 0&&(h=""+c),o.key!==void 0&&(h=""+o.key),"key"in o){c={};for(var f in o)f!=="key"&&(c[f]=o[f])}else c=o;
vendor: 5,410 bytes, line 1
1return o=c.ref,{$$typeof:t,type:l,key:h,ref:o!==void 0?o:null,props:c}}return Wl.Fragment=a,Wl.jsx=i,Wl.jsxs=i,Wl}var Lm;function e6(){return Lm||(Lm=1,nd.exports=Wv()),nd.exports}var v=e6(),id={exports:{}},Se={};var Im;function t6(){if(Im)return Se;Im=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),E=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=E&&k[E]||k["@@iterator"],typeof k=="function"?k:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,M={};function z(k,$,ee){this.props=k,this.context=$,this.refs=M,this.updater=ee||x}z.prototype.isReactComponent={},z.prototype.setState=function(k,$){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,$,"setState")},z.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function G(){}G.prototype=z.prototype;function U(k,$,ee){this.props=k,this.context=$,this.refs=M,this.updater=ee||x}var L=U.prototype=new G;L.constructor=U,A(L,z.prototype),L.isPureReactComponent=!0;var X=Array.isArray;function te(){}var V={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function Z(k,$,ee){var ne=ee.ref;return{$$typeof:t,type:k,key:$,ref:ne!==void 0?ne:null,props:ee}}function J(k,$){return Z(k.type,$,k.props)}function re(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function fe(k){var $={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return $[ee]})}var Be=/\/+/g;function Ce(k,$){return typeof k=="object"&&k!==null&&k.key!=null?fe(""+k.key):$.toString(36)}function pe(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(te,te):(k.status="pending",k.then(function($){k.status==="pending"&&(k.status="fulfilled",k.value=$)},function($){k.status==="pending"&&(k.status="rejected",k.reason=$)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function H(k,$,ee,ne,ye){var we=typeof k;(we==="undefined"||we==="boolean")&&(k=null);var Me=!1;if(k===null)Me=!0;else switch(we){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(k.$$typeof){case t:case a:Me=!0;break;case _:return Me=k._init,H(Me(k._payload),$,ee,ne,ye)}}if(Me)return ye=ye(k),Me=ne===""?"."+Ce(k,0):ne,X(ye)?(ee="",Me!=null&&(ee=Me.replace(Be,"$&/")+"/"),H(ye,$,ee,"",function(xi){return xi})):ye!=null&&(re(ye)&&(ye=J(ye,ee+(ye.key==null||k&&k.key===ye.key?"":(""+ye.key).replace(Be,"$&/")+"/")+Me)),$.push(ye)),1;Me=0;var _t=ne===""?".":ne+":";if(X(k))for(var Qe=0;Qe<k.length;Qe++)ne=k[Qe],we=_t+Ce(ne,Qe),Me+=H(ne,$,ee,we,ye);else if(Qe=w(k),typeof Qe=="function")for(k=Qe.call(k),Qe=0;!(ne=k.next()).done;)ne=ne.value,we=_t+Ce(ne,Qe++),Me+=H(ne,$,ee,we,ye);else if(we==="object"){if(typeof k.then=="function")return H(pe(k),$,ee,ne,ye);throw $=String(k),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return Me}function W(k,$,ee){if(k==null)return k;var ne=[],ye=0;return H(k,ne,"","",function(we){return $.call(ee,we,ye++)}),ne}function oe(k){if(k._status===-1){var $=k._result;$=$(),$.then(function(ee){(k._status===0||k._status===-1)&&(k._status=1,k._result=ee)},function(ee){(k._status===0||k._status===-1)&&(k._status=2,k._result=ee)}),k._status===-1&&(k._status=0,k._result=$)}if(k._status===1)return k._result.default;throw k._result}var ue=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}},Ee={map:W,forEach:function(k,$,ee){W(k,function(){$.apply(this,arguments)},ee)},count:function(k){var $=0;return W(k,function(){$++}),$},toArray:function(k){return W(k,function($){return $})||[]},only:function(k){if(!re(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Se.Activity=b,Se.Children=Ee,Se.Component=z,Se.Fragment=i,Se.Profiler=o,Se.PureComponent=U,Se.StrictMode=l,Se.Suspense=g,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Se.__COMPILER_RUNTIME={__proto__:null,c:function(k){return V.H.useMemoCache(k)}},Se.cache=function(k){return function(){return k.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(k,$,ee){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var ne=A({},k.props),ye=k.key;if($!=null)for(we in $.key!==void 0&&(ye=""+$.key),$)!R.call($,we)||we==="
1key"||we==="__self"||we==="__source"||we==="ref"&&$.ref===void 0||(ne[we]=$[we]);var we=arguments.length-2;if(we===1)ne.children=ee;else if(1<we){for(var Me=Array(we),_t=0;_t<we;_t++)Me[_t]=arguments[_t+2];ne.children=Me}return Z(k.type,ye,ne)},Se.createContext=function(k){return k={$$typeof:h,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:c,_context:k},k},Se.createElement=function(k,$,ee){var ne,ye={},we=null;if($!=null)for(ne in $.key!==void 0&&(we=""+$.key),$)R.call($,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ye[ne]=$[ne]);var Me=arguments.length-2;if(Me===1)ye.children=ee;else if(1<Me){for(var _t=Array(Me),Qe=0;Qe<Me;Qe++)_t[Qe]=arguments[Qe+2];ye.children=_t}if(k&&k.defaultProps)for(ne in Me=k.defaultProps,Me)ye[ne]===void 0&&(ye[ne]=Me[ne]);return Z(k,we,ye)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(k){return{$$typeof:f,render:k}},Se.isValidElement=re,Se.lazy=function(k){return{$$typeof:_,_payload:{_status:-1,_result:k},_init:oe}},Se.memo=function(k,$){return{$$typeof:m,type:k,compare:$===void 0?null:$}},Se.startTransition=function(k){var $=V.T,ee={};V.T=ee;try{var ne=k(),ye=V.S;ye!==null&&ye(ee,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(te,ue)}catch(we){ue(we)}finally{$!==null&&ee.types!==null&&($.types=ee.types),V.T=$}},Se.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Se.use=function(k){return V.H.use(k)},Se.useActionState=function(k,$,ee){return V.H.useActionState(k,$,ee)},Se.useCallback=function(k,$){return V.H.useCallback(k,$)},Se.useContext=function(k){return V.H.useContext(k)},Se.useDebugValue=function(){},Se.useDeferredValue=function(k,$){return V.H.useDeferredValue(k,$)},Se.useEffect=function(k,$){return V.H.useEffect(k,$)},Se.useEffectEvent=function(k){return V.H.useEffectEvent(k)},Se.useId=function(){return V.H.useId()},Se.useImperativeHandle=function(k,$,ee){return V.H.useImperativeHandle(k,$,ee)},Se.useInsertionEffect=function(k,$){return V.H.useInsertionEffect(k,$)},Se.useLayoutEffect=function(k,$){return V.H.useLayoutEffect(k,$)},Se.useMemo=function(k,$){return V.H.useMemo(k,$)},Se.useOptimistic=function(k,$){return V.H.useOptimistic(k,$)},Se.useReducer=function(k,$,ee){return V.H.useReducer(k,$,ee)},Se.useRef=function(k){return V.H.useRef(k)},Se.useState=function(k){return V.H.useState(k)},Se.useSyncExternalStore=function(k,$,ee){return V.H.useSyncExternalStore(k,$,ee)},Se.useTransition=function(){return V.H.useTransition()},Se.version="19.2.4",Se}var jm;function y0(){return jm||(jm=1,id.exports=t6()),id.exports}var y=y0();const or=v0(y),a6=Jv({__proto__:null,default:or},[y]);var sd={exports:{}},er={},ld={exports:{}},rd={};var Bm;function n6(){return Bm||(Bm=1,(function(t){function a(H,W){var oe=H.length;H.push(W);e:for(;0<oe;){var ue=oe-1>>>1,Ee=H[ue];if(0<o(Ee,W))H[ue]=W,H[oe]=Ee,oe=ue;else break e}}function i(H){return H.length===0?null:H[0]}
vendor: 11,938 bytes, lines 1-3
1function l(H){if(H.length===0)return null;var W=H[0],oe=H.pop();if(oe!==W){H[0]=oe;e:for(var ue=0,Ee=H.length,k=Ee>>>1;ue<k;){var $=2*(ue+1)-1,ee=H[$],ne=$+1,ye=H[ne];if(0>o(ee,oe))ne<Ee&&0>o(ye,ee)?(H[ue]=ye,H[ne]=oe,ue=ne):(H[ue]=ee,H[$]=oe,ue=$);else if(ne<Ee&&0>o(ye,oe))H[ue]=ye,H[ne]=oe,ue=ne;else break e}}return W}function o(H,W){var oe=H.sortIndex-W.sortIndex;return oe!==0?oe:H.id-W.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var h=Date,f=h.now();t.unstable_now=function(){return h.now()-f}}var g=[],m=[],_=1,b=null,E=3,w=!1,x=!1,A=!1,M=!1,z=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function L(H){for(var W=i(m);W!==null;){if(W.callback===null)l(m);else if(W.startTime<=H)l(m),W.sortIndex=W.expirationTime,a(g,W);else break;W=i(m)}}function X(H){if(A=!1,L(H),!x)if(i(g)!==null)x=!0,te||(te=!0,fe());else{var W=i(m);W!==null&&pe(X,W.startTime-H)}}var te=!1,V=-1,R=5,Z=-1;function J(){return M?!0:!(t.unstable_now()-Z<R)}function re(){if(M=!1,te){var H=t.unstable_now();Z=H;var W=!0;try{e:{x=!1,A&&(A=!1,G(V),V=-1),w=!0;var oe=E;try{t:{for(L(H),b=i(g);b!==null&&!(b.expirationTime>H&&J());){var ue=b.callback;if(typeof ue=="function"){b.callback=null,E=b.priorityLevel;var Ee=ue(b.expirationTime<=H);if(H=t.unstable_now(),typeof Ee=="function"){b.callback=Ee,L(H),W=!0;break t}b===i(g)&&l(g),L(H)}else l(g);b=i(g)}if(b!==null)W=!0;else{var k=i(m);k!==null&&pe(X,k.startTime-H),W=!1}}break e}finally{b=null,E=oe,w=!1}W=void 0}}finally{W?fe():te=!1}}}var fe;if(typeof U=="function")fe=function(){U(re)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,Ce=Be.port2;Be.port1.onmessage=re,fe=function(){Ce.postMessage(null)}}else fe=function(){z(re,0)};function pe(H,W){V=z(function(){H(t.unstable_now())},W)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H||(R=0<H?Math.floor(1e3/H):5)},t.unstable_getCurrentPriorityLevel=function(){return E},t.unstable_next=function(H){switch(E){case 1:case 2:case 3:var W=3;break;default:W=E}var oe=E;E=W;try{return H()}finally{E=oe}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(H,W){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var oe=E;E=H;try{return W()}finally{E=oe}},t.unstable_scheduleCallback=function(H,W,oe){var ue=t.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ue+oe:ue):oe=ue,H){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=oe+Ee,H={id:_++,callback:W,priorityLevel:H,startTime:oe,expirationTime:Ee,sortIndex:-1},oe>ue?(H.sortIndex=oe,a(m,H),i(g)===null&&H===i(m)&&(A?(G(V),V=-1):A=!0,pe(X,oe-ue))):(H.sortIndex=Ee,a(g,H),x||w||(x=!0,te||(te=!0,fe()))),H},t.unstable_shouldYield=J,t.unstable_wrapCallback=function(H){var W=E;return function(){var oe=E;E=W;try{return H.apply(this,arguments)}finally{E=oe}}}})(rd)),rd}var Pm;function i6(){return Pm||(Pm=1,ld.exports=n6()),ld.exports}var od={exports:{}},Pt={};var Hm;function s6(){if(Hm)return Pt;Hm=1;var t=y0();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)m+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(g,m,_){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:g,containerInfo:m,implementation:_}}var h=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Pt.createPortal=function(g,m){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(g,m,null,_)},Pt.flushSync=function(g){var m=h.T,_=l.p;try{if(h.T=null,l.p=2,g)return g()}finally{h.T=m,l.p=_,l.d.f()}},Pt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(g,m))},Pt.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},Pt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var _=m.as,b=f(_,m.crossOrigin),E=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;_==="style"?l.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:E,fetchPriority:w}):_==="script"&&l.d.X(g,{crossOrigin:b,integrity:E,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Pt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var _=f(m.as,m.crossOrigin);l.d.M(g,{crossOrigin:_,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(g)},Pt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var _=m.as,b=f(_,m.crossOrigin);l.d.L(g,_,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Pt.preloadModule=function(g,m){if(typeof g=="string")if(m){var _=f(m.as,m.crossOrigin);l.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:_,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(g)},Pt.requestFormReset=function(g){l.d.r(g)},Pt.unstable_batchedUpdates=function(g,m){return g(m)},Pt.useFormState=function(g,m,_){return h.H.useFormState(g,m,_)},Pt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Pt.version="19.2.4",Pt}var Gm;function l6(){if(Gm)return od.exports;Gm=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch{}}return t(),od.exports=s6(),od.exports}var qm;function r6(){if(qm)return er;qm=1;var t=i6(),a=y0(),i=l6();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function h(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function f(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(l(188))}function m(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(l(188));return n!==e?null:e}for(var s=e,r=n;;){var u=s.return;if(u===null)break;var d=u.alternate;if(d===null){if(r=u.return,r!==null){s=r;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===s)return g(u),e;if(d===r)return g(u),n;d=d.sibling}throw Error(l(188))}if(s.return!==r.return)s=u,r=d;else{for(var p=!1,S=u.child;S;){if(S===s){p=!0,s=u,r=d;break}if(S===r){p=!0,r=u,s=d;break}S=S.sibling}if(!p){for(S=d.child;S;){if(S===s){p=!0,s=d,r=u;break}if(S===r){p=!0,r=d,s=u;break}S=S.sibling}if(!p)throw Error(l(189))}}if(s.alternate!==r)throw Error(l(190))}if(s.tag!==3)throw Error(l(188));return s.stateNode.current===s?e:n}function _(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=_(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),U=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case z:return"Profiler";case M:return"StrictMode";case X:return"Suspense";case te:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case U:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case L:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return n=e.displayName||null,n!==null?n:Ce(e.type)||"Memo";case R:n=e._payload,e=e._init;try{return Ce(e(n))}catch{}}return null}var pe=Array.isArray,H=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ue=[],Ee=-1;function k(e){return{current:e}}function $(e){0>Ee||(e.current=ue[Ee],ue[Ee]=null,Ee--)}function ee(e,n){Ee++,ue[Ee]=e.current,e.current=n}var ne=k(null),ye=k(null),we=k(null),Me=k(null);function _t(e,n){switch(ee(we,n),ee(ye,e),ee(ne,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?im(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=im(n),e=sm(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ne),ee(ne,e)}function Qe(){$(ne),$(ye),$(we)}function xi(e){e.memoizedState!==null&&ee(Me,e);var n=ne.current,s=sm(n,e.type);n!==s&&(ee(ye,e),ee(ne,s))}function ss(e){ye.current===e&&($(ne),$(ye)),Me.current===e&&($(Me),Xl._currentValue=oe)}var ll,Ct;function Zt(e){if(ll===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ll=n&&n[1]||"",Ct=-1<s.stack.indexOf(`
2    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
3`+ll+e+Ct}var ls=!1;function rl(e,n){if(!e||ls)return"";ls=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(n){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(q){var P=q}Reflect.construct(e,[],F)}else{try{F.call()}catch(q){P=q}e.call(F.prototype)}}else{try{throw Error()}catch(q){P=q}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}
vendor: 9,906 bytes, lines 3-8
3catch(q){if(q&&P&&typeof q.stack=="string")return[q.stack,P.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),p=d[0],S=d[1];if(p&&S){var C=p.split(`
4`),j=S.split(`
5`);for(u=r=0;r<C.length&&!C[r].includes("DetermineComponentFrameRoot");)r++;for(;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;if(r===C.length||u===j.length)for(r=C.length-1,u=j.length-1;1<=r&&0<=u&&C[r]!==j[u];)u--;for(;1<=r&&0<=u;r--,u--)if(C[r]!==j[u]){if(r!==1||u!==1)do if(r--,u--,0>u||C[r]!==j[u]){var Y=`
6`+C[r].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=r&&0<=u);break}}}finally{ls=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?Zt(s):""}function on(e,n){switch(e.tag){case 26:case 27:case 5:return Zt(e.type);case 16:return Zt("Lazy");case 13:return e.child!==n&&n!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return rl(e.type,!1);case 11:return rl(e.type.render,!1);case 1:return rl(e.type,!0);case 31:return Zt("Activity");default:return""}}function Nr(e){try{var n="",s=null;do n+=on(e,s),s=e,e=e.return;while(e);return n}catch(r){return`
7Error generating stack: `+r.message+`
8`+r.stack}}var ol=Object.prototype.hasOwnProperty,rs=t.unstable_scheduleCallback,cl=t.unstable_cancelCallback,$c=t.unstable_shouldYield,Kc=t.unstable_requestPaint,qt=t.unstable_now,cn=t.unstable_getCurrentPriorityLevel,In=t.unstable_ImmediatePriority,ul=t.unstable_UserBlockingPriority,jn=t.unstable_NormalPriority,Oa=t.unstable_LowPriority,pa=t.unstable_IdlePriority,Ur=t.log,Fc=t.unstable_setDisableYieldValue,un=null,Vt=null;function Mt(e){if(typeof Ur=="function"&&Fc(e),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(un,e)}catch{}}var jt=Math.clz32?Math.clz32:Xc,zr=Math.log,Lr=Math.LN2;function Xc(e){return e>>>=0,e===0?32:31-(zr(e)/Lr|0)|0}var Ci=256,hn=262144,Ti=4194304;function Na(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function os(e,n,s){var r=e.pendingLanes;if(r===0)return 0;var u=0,d=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~d,r!==0?u=Na(r):(p&=S,p!==0?u=Na(p):s||(s=S&~e,s!==0&&(u=Na(s))))):(S=r&~d,S!==0?u=Na(S):p!==0?u=Na(p):s||(s=r&~e,s!==0&&(u=Na(s)))),u===0?0:n!==0&&n!==u&&(n&d)===0&&(d=u&-u,s=n&-n,d>=s||d===32&&(s&4194048)!==0)?n:u}function Bn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Qc(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hl(){var e=Ti;return Ti<<=1,(Ti&62914560)===0&&(Ti=4194304),e}function Pn(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function $a(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ir(e,n,s,r,u,d){var p=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,j=e.hiddenUpdates;for(s=p&~s;0<s;){var Y=31-jt(s),F=1<<Y;S[Y]=0,C[Y]=-1;var P=j[Y];if(P!==null)for(j[Y]=null,Y=0;Y<P.length;Y++){var q=P[Y];q!==null&&(q.lane&=-536870913)}s&=~F}r!==0&&jr(e,r,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(p&~n))}function jr(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-jt(n);e.entangledLanes|=n,e.entanglements[r]=e.entanglements[r]|1073741824|s&261930}function Br(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var r=31-jt(s),u=1<<r;u&n|e[r]&n&&(e[r]|=n),s&=~u}}function T(e,n){var s=n&-n;return s=(s&42)!==0?1:O(s),(s&(e.suspendedLanes|n))!==0?0:s}function O(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function B(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Q(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Mm(e.type))}function ae(e,n){var s=W.p;try{return W.p=e,n()}finally{W.p=s}}var he=Math.random().toString(36).slice(2),ie="__reactFiber$"+he,se="__reactProps$"+he,de="__reactContainer$"+he,le="__reactEvents$"+he,ve="__reactListeners$"+he,ge="__reactHandles$"+he,Pe="__reactResources$"+he,ke="__reactMarker$"+he;function Ze(e){delete e[ie],delete e[se],delete e[le],delete e[ve],delete e[ge]}function tt(e){var n=e[ie];if(n)return n;for(var s=e.parentNode;s;){if(n=s[de]||s[ie]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=dm(e);e!==null;){if(s=e[ie])return s;e=dm(e)}return n}e=s,s=e.parentNode}return null}function ct(e){if(e=e[ie]||e[de]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function je(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function vt(e){var n=e[Pe];return n||(n=e[Pe]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function We(e){e[ke]=!0}var Hn=new Set,Ua={};function kt(e,n){Ka(e,n),Ka(e+"Capture",n)}function Ka(e,n){for(Ua[e]=n,e=0;e<n.length;e++)Hn.add(n[e])}var Ri=RegExp("^[: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]*$"),Fa={},Mi={};function cs(e){return ol.call(Mi,e)?!0:ol.call(Fa,e)?!1:Ri.test(e)?Mi[e]=!0:(Fa[e]=!0,!1)}function De(e,n,s){if(cs(n))if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var r=n.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+s)}}function ft(e,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+s)}}function Bt(e,n,s,r){if(r===null)e.removeAttribute(s);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(n,s,""+r)}}function yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function at(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function us(e,n,s){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(p){s=""+p,d.call(this,p)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function hs(e){if(!e._valueTracker){var n=at(e)?"checked":"value";e._valueTracker=us(e,n,""+e[n])}}function Pr(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),r="";return e&&(r=at(e)?e.checked?"true":"false":e.value),e=r,e!==s?(n.setValue(e),!0):!1}function Hr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var $_=/[\n"\\]/g;function _a(e){return e.replace($_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Zc(e,n,s,r,u,d,p,S){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),n!=null?p==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+yt(n)):e.value!==""+yt(n)&&(e.value=""+yt(n)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),n!=null?Jc(e,p,yt(n)):s!=null?Jc(e,p,yt(s)):r!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+yt(S):e.removeAttribute("name")}function Z0(e,n,s,r,u,d,p,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){hs(e);return}s=s!=null?""+yt(s):"",n=n!=null?""+yt(n):s,S||n===e.value||(e.value=n),e.defaultValue=n}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),hs(e)}
vendor: 5,070 bytes, line 8
8function Jc(e,n,s){n==="number"&&Hr(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function ds(e,n,s,r){if(e=e.options,n){n={};for(var u=0;u<s.length;u++)n["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=n.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&r&&(e[s].defaultSelected=!0)}else{for(s=""+yt(s),n=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function J0(e,n,s){if(n!=null&&(n=""+yt(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+yt(s):""}function W0(e,n,s,r){if(n==null){if(r!=null){if(s!=null)throw Error(l(92));if(pe(r)){if(1<r.length)throw Error(l(93));r=r[0]}s=r}s==null&&(s=""),n=s}s=yt(n),e.defaultValue=s,r=e.textContent,r===s&&r!==""&&r!==null&&(e.value=r),hs(e)}function fs(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var K_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ef(e,n,s){var r=n.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?r?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":r?e.setProperty(n,s):typeof s!="number"||s===0||K_.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function tf(e,n,s){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,s!=null){for(var r in s)!s.hasOwnProperty(r)||n!=null&&n.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in n)r=n[u],n.hasOwnProperty(u)&&s[u]!==r&&ef(e,u,r)}else for(var d in n)n.hasOwnProperty(d)&&ef(e,d,n[d])}function Wc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var F_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
8-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),X_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Gr(e){return X_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dn(){}var eu=null;function tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ms=null,gs=null;function af(e){var n=ct(e);if(n&&(e=n.stateNode)){var s=e[se]||null;e:switch(e=n.stateNode,n.type){case"input":if(Zc(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+_a(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var r=s[n];if(r!==e&&r.form===e.form){var u=r[se]||null;if(!u)throw Error(l(90));Zc(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<s.length;n++)r=s[n],r.form===e.form&&Pr(r)}break e;case"textarea":J0(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&ds(e,!!s.multiple,n,!1)}}}var au=!1;function nf(e,n,s){if(au)return e(n,s);au=!0;try{var r=e(n);return r}finally{if(au=!1,(ms!==null||gs!==null)&&(Do(),ms&&(n=ms,e=gs,gs=ms=null,af(n),e)))for(n=0;n<e.length;n++)af(e[n])}}function dl(e,n){var s=e.stateNode;if(s===null)return null;var r=s[se]||null;if(r===null)return null;s=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(l(231,n,typeof s));return s}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=!1;if(fn)try{var fl={};Object.defineProperty(fl,"passive",{get:function(){nu=!0}}),window.addEventListener("test",fl,fl),window.removeEventListener("test",fl,fl)}catch{nu=!1}var Gn=null,iu=null,qr=null;function sf(){if(qr)return qr;var e,n=iu,s=n.length,r,u="value"in Gn?Gn.value:Gn.textContent,d=u.length;for(e=0;e<s&&n[e]===u[e];e++);var p=s-e;for(r=1;r<=p&&n[s-r]===u[d-r];r++);return qr=u.slice(e,1<r?1-r:void 0)}function Vr(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Yr(){return!0}function lf(){return!1}function Jt(e){function n(s,r,u,d,p){this._reactName=s,this._targetInst=u,this.type=r,this.nativeEvent=d,this.target=p,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(s=e[S],this[S]=s?s(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Yr:lf,this.isPropagationStopped=lf,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Yr)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Yr)},persist:function(){},isPersistent:Yr}),n}var ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$r=Jt(ki),ml=b({},ki,{view:0,detail:0}),Q_=Jt(ml),su,lu,gl,Kr=b({},ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ou,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gl&&(gl&&e.type==="mousemove"?(su=e.screenX-gl.screenX,lu=e.screenY-gl.screenY):lu=su=0,gl=e),su)},movementY:function(e){return"movementY"in e?e.movementY:lu}}),rf=Jt(Kr),Z_=b({},Kr,{dataTransfer:0}),J_=Jt(Z_),W_=b({},ml,{relatedTarget:0}),ru=Jt(W_),e4=b({},ki,{animationName:0,elapsedTime:0,pseudoElement:0}),t4=Jt(e4),a4=b({},ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n4=Jt(a4),i4=b({},ki,{data:0}),of=Jt(i4),s4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l4={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"},r4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o4(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=r4[e])?!!n[e]:!1}function ou(){return o4}var c4=b({},ml,{key:function(e){if(e.key){var n=s4[e.key]||e.key;if(n!=="Unidentified")return n}
vendor: 5,186 bytes, line 8
8return e.type==="keypress"?(e=Vr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ou,charCode:function(e){return e.type==="keypress"?Vr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),u4=Jt(c4),h4=b({},Kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=Jt(h4),d4=b({},ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ou}),f4=Jt(d4),m4=b({},ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),g4=Jt(m4),p4=b({},Kr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),_4=Jt(p4),v4=b({},ki,{newState:0,oldState:0}),y4=Jt(v4),b4=[9,13,27,32],cu=fn&&"CompositionEvent"in window,pl=null;fn&&"documentMode"in document&&(pl=document.documentMode);var w4=fn&&"TextEvent"in window&&!pl,uf=fn&&(!cu||pl&&8<pl&&11>=pl),hf=" ",df=!1;function ff(e,n){switch(e){case"keyup":return b4.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ps=!1;function S4(e,n){switch(e){case"compositionend":return mf(n);case"keypress":return n.which!==32?null:(df=!0,hf);case"textInput":return e=n.data,e===hf&&df?null:e;default:return null}}function E4(e,n){if(ps)return e==="compositionend"||!cu&&ff(e,n)?(e=sf(),qr=iu=Gn=null,ps=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return uf&&n.locale!=="ko"?null:n.data;default:return null}}var x4={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 gf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!x4[e.type]:n==="textarea"}function pf(e,n,s,r){ms?gs?gs.push(r):gs=[r]:ms=r,n=Io(n,"onChange"),0<n.length&&(s=new $r("onChange","change",null,s,r),e.push({event:s,listeners:n}))}var _l=null,vl=null;function C4(e){J2(e,0)}function Fr(e){var n=je(e);if(Pr(n))return e}function _f(e,n){if(e==="change")return n}var vf=!1;if(fn){var uu;if(fn){var hu="oninput"in document;if(!hu){var yf=document.createElement("div");yf.setAttribute("oninput","return;"),hu=typeof yf.oninput=="function"}uu=hu}else uu=!1;vf=uu&&(!document.documentMode||9<document.documentMode)}function bf(){_l&&(_l.detachEvent("onpropertychange",wf),vl=_l=null)}function wf(e){if(e.propertyName==="value"&&Fr(vl)){var n=[];pf(n,vl,e,tu(e)),nf(C4,n)}}function T4(e,n,s){e==="focusin"?(bf(),_l=n,vl=s,_l.attachEvent("onpropertychange",wf)):e==="focusout"&&bf()}function R4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fr(vl)}function M4(e,n){if(e==="click")return Fr(n)}function k4(e,n){if(e==="input"||e==="change")return Fr(n)}function D4(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var sa=typeof Object.is=="function"?Object.is:D4;function yl(e,n){if(sa(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),r=Object.keys(n);if(s.length!==r.length)return!1;for(r=0;r<s.length;r++){var u=s[r];if(!ol.call(n,u)||!sa(e[u],n[u]))return!1}return!0}function Sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ef(e,n){var s=Sf(e);e=0;for(var r;s;){if(s.nodeType===3){if(r=e+s.textContent.length,e<=n&&r>=n)return{node:s,offset:n-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Sf(s)}}function xf(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?xf(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Hr(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=Hr(e.document)}return n}function du(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var A4=fn&&"documentMode"in document&&11>=document.documentMode,_s=null,fu=null,bl=null,mu=!1;function Tf(e,n,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;mu||_s==null||_s!==Hr(r)||(r=_s,"selectionStart"in r&&du(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 18,989 bytes, line 8
8sNode:r.focusNode,focusOffset:r.focusOffset}),bl&&yl(bl,r)||(bl=r,r=Io(fu,"onSelect"),0<r.length&&(n=new $r("onSelect","select",null,n,s),e.push({event:n,listeners:r}),n.target=_s)))}function Di(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var vs={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionrun:Di("Transition","TransitionRun"),transitionstart:Di("Transition","TransitionStart"),transitioncancel:Di("Transition","TransitionCancel"),transitionend:Di("Transition","TransitionEnd")},gu={},Rf={};fn&&(Rf=document.createElement("div").style,"AnimationEvent"in window||(delete vs.animationend.animation,delete vs.animationiteration.animation,delete vs.animationstart.animation),"TransitionEvent"in window||delete vs.transitionend.transition);function Ai(e){if(gu[e])return gu[e];if(!vs[e])return e;var n=vs[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in Rf)return gu[e]=n[s];return e}var Mf=Ai("animationend"),kf=Ai("animationiteration"),Df=Ai("animationstart"),O4=Ai("transitionrun"),N4=Ai("transitionstart"),U4=Ai("transitioncancel"),Af=Ai("transitionend"),Of=new Map,pu="abort auxClick beforeToggle 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(" ");pu.push("scrollEnd");function za(e,n){Of.set(e,n),kt(n,[e])}var Xr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}},va=[],ys=0,_u=0;function Qr(){for(var e=ys,n=_u=ys=0;n<e;){var s=va[n];va[n++]=null;var r=va[n];va[n++]=null;var u=va[n];va[n++]=null;var d=va[n];if(va[n++]=null,r!==null&&u!==null){var p=r.pending;p===null?u.next=u:(u.next=p.next,p.next=u),r.pending=u}d!==0&&Nf(s,u,d)}}function Zr(e,n,s,r){va[ys++]=e,va[ys++]=n,va[ys++]=s,va[ys++]=r,_u|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function vu(e,n,s,r){return Zr(e,n,s,r),Jr(e)}function Oi(e,n){return Zr(e,null,null,n),Jr(e)}function Nf(e,n,s){e.lanes|=s;var r=e.alternate;r!==null&&(r.lanes|=s);for(var u=!1,d=e.return;d!==null;)d.childLanes|=s,r=d.alternate,r!==null&&(r.childLanes|=s),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&n!==null&&(u=31-jt(s),e=d.hiddenUpdates,r=e[u],r===null?e[u]=[n]:r.push(n),n.lane=s|536870912),d):null}function Jr(e){if(50<Gl)throw Gl=0,Rh=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var bs={};function z4(e,n,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function la(e,n,s,r){return new z4(e,n,s,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,n){var s=e.alternate;return s===null?(s=la(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Uf(e,n){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,n=s.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Wr(e,n,s,r,u,d){var p=0;if(r=e,typeof e=="function")yu(e)&&(p=1);else if(typeof e=="string")p=Pv(e,s,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=la(31,s,n,u),e.elementType=Z,e.lanes=d,e;case A:return Ni(s.children,u,d,n);case M:p=8,u|=24;break;case z:return e=la(12,s,n,u|2),e.elementType=z,e.lanes=d,e;case X:return e=la(13,s,n,u),e.elementType=X,e.lanes=d,e;case te:return e=la(19,s,n,u),e.elementType=te,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:p=10;break e;case G:p=9;break e;case L:p=11;break e;case V:p=14;break e;case R:p=16,r=null;break e}p=29,s=Error(l(130,e===null?"null":typeof e,"")),r=null}return n=la(p,s,n,u),n.elementType=e,n.type=r,n.lanes=d,n}function Ni(e,n,s,r){return e=la(7,e,r,n),e.lanes=s,e}function bu(e,n,s){return e=la(6,e,null,n),e.lanes=s,e}function zf(e){var n=la(18,null,null,0);return n.stateNode=e,n}function wu(e,n,s){return n=la(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Lf=new WeakMap;function ya(e,n){if(typeof e=="object"&&e!==null){var s=Lf.get(e);return s!==void 0?s:(n={value:e,source:n,stack:Nr(n)},Lf.set(e,n),n)}return{value:e,source:n,stack:Nr(n)}}var ws=[],Ss=0,eo=null,wl=0,ba=[],wa=0,qn=null,Xa=1,Qa="";function gn(e,n){ws[Ss++]=wl,ws[Ss++]=eo,eo=e,wl=n}function If(e,n,s){ba[wa++]=Xa,ba[wa++]=Qa,ba[wa++]=qn,qn=e;var r=Xa;e=Qa;var u=32-jt(r)-1;r&=~(1<<u),s+=1;var d=32-jt(n)+u;if(30<d){var p=u-u%5;d=(r&(1<<p)-1).toString(32),r>>=p,u-=p,Xa=1<<32-jt(n)+u|s<<u|r,Qa=d+e}else Xa=1<<d|s<<u|r,Qa=e}function Su(e){e.return!==null&&(gn(e,1),If(e,1,0))}function Eu(e){for(;e===eo;)eo=ws[--Ss],ws[Ss]=null,wl=ws[--Ss],ws[Ss]=null;for(;e===qn;)qn=ba[--wa],ba[wa]=null,Qa=ba[--wa],ba[wa]=null,Xa=ba[--wa],ba[wa]=null}function jf(e,n){ba[wa++]=Xa,ba[wa++]=Qa,ba[wa++]=qn,Xa=n.id,Qa=n.overflow,qn=e}var At=null,nt=null,Le=!1,Vn=null,Sa=!1,xu=Error(l(519));function Yn(e){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sl(ya(n,e)),xu}function Bf(e){var n=e.stateNode,s=e.type,r=e.memoizedProps;switch(n[ie]=e,n[se]=r,s){case"dialog":Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":case"embed":Ne("load",n);break;case"video":case"audio":for(s=0;s<Vl.length;s++)Ne(Vl[s],n);break;case"source":Ne("error",n);break;case"img":case"image":case"link":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"input":Ne("invalid",n),Z0(n,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ne("invalid",n);break;case"textarea":Ne("invalid",n),W0(n,r.value,r.defaultValue,r.children)}s=r.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||n.textContent===""+s||r.suppressHydrationWarning===!0||am(n.textContent,s)?(r.popover!=null&&(Ne("beforetoggle",n),Ne("toggle",n)),r.onScroll!=null&&Ne("scroll",n),r.onScrollEnd!=null&&Ne("scrollend",n),r.onClick!=null&&(n.onclick=dn),n=!0):n=!1,n||Yn(e,!0)}function Pf(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:Sa=!1;return;case 27:case 3:Sa=!0;return;default:At=At.return}}function Es(e){if(e!==At)return!1;if(!Le)return Pf(e),Le=!0,!1;var n=e.tag,s;if((s=n!==3&&n!==27)&&((s=n===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||Gh(e.type,e.memoizedProps)),s=!s),s&&nt&&Yn(e),Pf(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));nt=hm(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));nt=hm(e)}else n===27?(n=nt,si(e.type)?(e=Kh,Kh=null,nt=e):nt=n):nt=At?xa(e.stateNode.nextSibling):null;return!0}function Ui(){nt=At=null,Le=!1}function Cu(){var e=Vn;return e!==null&&(aa===null?aa=e:aa.push.apply(aa,e),Vn=null),e}function Sl(e){Vn===null?Vn=[e]:Vn.push(e)}var Tu=k(null),zi=null,pn=null;function $n(e,n,s){ee(Tu,n._currentValue),n._currentValue=s}function _n(e){e._currentValue=Tu.current,$(Tu)}function Ru(e,n,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===s)break;e=e.return}}function Mu(e,n,s,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var p=u.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=u;for(var C=0;C<n.length;C++)if(S.context===n[C]){d.lanes|=s,S=d.alternate,S!==null&&(S.lanes|=s),Ru(d.return,s,e),r||(p=null);break e}d=S.next}}else if(u.tag===18){if(p=u.return,p===null)throw Error(l(341));p.lanes|=s,d=p.alternate,d!==null&&(d.lanes|=s),Ru(p,s,e),p=null}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}if(u=p.sibling,u!==null){u.return=p.return,p=u;break}p=p.return}u=p}}function xs(e,n,s,r){e=null;for(var u=n,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var p=u.alternate;if(p===null)throw Error(l(387));if(p=p.memoizedProps,p!==null){var S=u.type;sa(u.pendingProps.value,p.value)||(e!==null?e.push(S):e=[S])}}else if(u===Me.current){if(p=u.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Xl):e=[Xl])}u=u.return}e!==null&&Mu(n,e,s,r),n.flags|=262144}function to(e){for(e=e.firstContext;e!==null;){if(!sa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Li(e){zi=e,pn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return Hf(zi,e)}function ao(e,n){return zi===null&&Li(e),Hf(e,n)}function Hf(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},pn===null){if(e===null)throw Error(l(308));pn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else pn=pn.next=n;return s}var L4=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(s,r){e.push(r)}};this.abort=function(){n.aborted=!0,e.forEach(function(s){return s()})}},I4=t.unstable_scheduleCallback,j4=t.unstable_NormalPriority,bt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ku(){return{controller:new L4,data:new Map,refCount:0}}function El(e){e.refCount--,e.refCount===0&&I4(j4,function(){e.controller.abort()})}var xl=null,Du=0,Cs=0,Ts=null;function B4(e,n){if(xl===null){var s=xl=[];Du=0,Cs=Nh(),Ts={status:"pending",value:void 0,then:function(r){s.push(r)}}}return Du++,n.then(Gf,Gf),n}function Gf(){if(--Du===0&&xl!==null){Ts!==null&&(Ts.status="fulfilled");var e=xl;xl=null,Cs=0,Ts=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function P4(e,n){var s=[],r={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){r.status="fulfilled",r.value=n;for(var u=0;u<s.length;u++)(0,s[u])(n)},function(u){for(r.status="rejected",r.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),r}var qf=H.S;H.S=function(e,n){T2=qt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&B4(e,n),qf!==null&&qf(e,n)};var Ii=k(null);function Au(){var e=Ii.current;return e!==null?e:Je.pooledCache}function no(e,n){n===null?ee(Ii,Ii.current):ee(Ii,n.pool)}function Vf(){var e=Au();return e===null?null:{parent:bt._currentValue,pool:e}}var Rs=Error(l(460)),Ou=Error(l(474)),io=Error(l(542)),so={then:function(){}};function Yf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(dn,dn),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ff(e),e;default:if(typeof n.status=="string")n.then(dn,dn);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(r){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=r}},function(r){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=r}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ff(e),e}throw Bi=n,Rs}}function ji(e){try{var n=e._init;return n(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Bi=s,Rs):s}}var Bi=null;function Kf(){if(Bi===null)throw Error(l(459));var e=Bi;return Bi=null,e}function Ff(e){if(e===Rs||e===io)throw Error(l(483))}var Ms=null,Cl=0;function lo(e){var n=Cl;return Cl+=1,Ms===null&&(Ms=[]),$f(Ms,e,n)}function Tl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ro(e,n){throw n.$$typeof===E?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Xf(e){function n(N,D){if(e){var I=N.deletions;I===null?(N.deletions=[D],N.flags|=16):I.push(D)}}function s(N,D){if(!e)return null;for(;D!==null;)n(N,D),D=D.sibling;return null}function r(N){for(var D=new Map;N!==null;)N.key!==null?D.set(N.key,N):D.set(N.index,N),N=N.sibling;return D}function u(N,D){return N=mn(N,D),N.index=0,N.sibling=null,N}function d(N,D,I){return N.index=I,e?(I=N.alternate,I!==null?(I=I.index,I<D?(N.flags|=67108866,D):I):(N.flags|=67108866,D)):(N.flags|=1048576,D)}function p(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function S(N,D,I,K){return D===null||D.tag!==6?(D=bu(I,N.mode,K),D.return=N,D):(D=u(D,I),D.return=N,D)}function C(N,D,I,K){var _e=I.type;return _e===A?Y(N,D,I.props.children,K,I.key):D!==null&&(D.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===R&&ji(_e)===D.type)?(D=u(D,I.props),Tl(D,I),D.return=N,D):(D=Wr(I.type,I.key,I.props,null,N.mode,K),Tl(D,I),D.return=N,D)}function j(N,D,I,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==I.containerInfo||D.stateNode.implementation!==I.implementation?(D=wu(I,N.mode,K),D.return=N,D):(D=u(D,I.children||[]),D.return=N,D)}function Y(N,D,I,K,_e){return D===null||D.tag!==7?(D=Ni(I,N.mode,K,_e),D.return=N,D):(D=u(D,I),D.return=N,D)}function F(N,D,I){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=bu(""+D,N.mode,I),D.return=N,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return I=Wr(D.type,D.key,D.props,null,N.mode,I),Tl(I,D),I.return=N,I;case x:return D=wu(D,N.mode,I),D.return=N,D;case R:return D=ji(D),F(N,D,I)}if(pe(D)||fe(D))return D=Ni(D,N.mode,I,null),D.return=N,D;if(typeof D.then=="function")return F(N,lo(D),I);if(D.$$typeof===U)return F(N,ao(N,D),I);ro(N,D)}return null}function P(N,D,I,K){var _e=D!==null?D.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return _e!==null?null:S(N,D,""+I,K);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case w:return I.key===_e?C(N,D,I,K):null;case x:return I.key===_e?j(N,D,I,K):null;case R:return I=ji(I),P(N,D,I,K)}if(pe(I)||fe(I))return _e!==null?null:Y(N,D,I,K,null);if(typeof I.then=="function")return P(N,D,lo(I),K);if(I.$$typeof===U)return P(N,D,ao(N,I),K);ro(N,I)}return null}function q(N,D,I,K,_e){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return N=N.get(I)||null,S(D,N,""+K,_e);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case w:return N=N.get(K.key===null?I:K.key)||null,C(D,N,K,_e);case x:return N=N.get(K.key===null?I:K.key)||null,j(D,N,K,_e);case R:return K=ji(K),q(N,D,I,K,_e)}if(pe(K)||fe(K))return N=N.get(I)||null,Y(D,N,K,_e,null);if(typeof K.then=="function")return q(N,D,I,lo(K),_e);if(K.$$typeof===U)return q(N,D,I,ao(D,K),_e);ro(D,K)}return null}function ce(N,D,I,K){for(var _e=null,He=null,me=D,Re=D=0,ze=null;me!==null&&Re<I.length;Re++){me.index>Re?(ze=me,me=null):ze=me.sibling;var Ge=P(N,me,I[Re],K);if(Ge===null){me===null&&(me=ze);break}e&&me&&Ge.alternate===null&&n(N,me),D=d(Ge,D,Re),He===null?_e=Ge:He.sibling=Ge,He=Ge,me=ze}if(Re===I.length)return s(N,me),Le&&gn(N,Re),_e;if(me===null){for(;Re<I.length;Re++)me=F(N,I[Re],K),me!==null&&(D=d(me,D,Re),He===null?_e=me:He.sibling=me,He=me);return Le&&gn(N,Re),_e}for(me=r(me);Re<I.length;Re++)ze=q(me,N,Re,I[Re],K),ze!==null&&(e&&ze.alternate!==null&&me.delete(ze.key===null?Re:ze.key),D=d(ze,D,Re),He===null?_e=ze:He.sibling=ze,He=ze);return e&&me.forEach(function(ui){return n(N,ui)}),Le&&gn(N,Re),_e}function be(N,D,I,K){if(I==null)throw Error(l(151));for(var _e=null,He=null,me=D,Re=D=0,ze=null,Ge=I.next();me!==null&&!Ge.done;Re++,Ge=I.next()){me.index>Re?(ze=me,me=null):ze=me.sibling;var ui=P(N,me,Ge.value,K);if(ui===null){me===null&&(me=ze);break}e&&me&&ui.alternate===null&&n(N,me),D=d(ui,D,Re),He===null?_e=ui:He.sibling=ui,He=ui,me=ze}if(Ge.done)return s(N,me),Le&&gn(N,Re),_e;if(me===null){for(;!Ge.done;Re++,Ge=I.next())Ge=F(N,Ge.value,K),Ge!==null&&(D=d(Ge,D,Re),He===null?_e=Ge:He.sibling=Ge,He=Ge);return Le&&gn(N,Re),_e}for(me=r(me);!Ge.done;Re++,Ge=I.next())Ge=q(me,N,Re,Ge.value,K),Ge!==null&&(e&&Ge.alternate!==null&&me.delete(Ge.key===null?Re:Ge.key),D=d(Ge,D,Re),He===null?_e=Ge:He.sibling=Ge,He=Ge);return e&&me.forEach(function(Zv){return n(N,Zv)}),Le&&gn(N,Re),_e}function Xe(N,D,I,K){if(typeof I=="object"&&I!==null&&I.type===A&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case w:e:{for(var _e=I.key;D!==null;){if(D.key===_e){if(_e=I.type,_e===A){if(D.tag===7){s(N,D.sibling),K=u(D,I.props.children),K.return=N,N=K;break e}}else if(D.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===R&&ji(_e)===D.type){s(N,D.sibling),K=u(D,I.props),Tl(K,I),K.return=N,N=K;break e}s(N,D);break}else n(N,D);D=D.sibling}I.type===A?(K=Ni(I.props.children,N.mode,K,I.key),K.return=N,N=K):(K=Wr(I.type,I.key,I.props,null,N.mode,K),Tl(K,I),K.return=N,N=K)}return p(N);case x:e:{for(_e=I.key;D!==null;){if(D.key===_e)if(D.tag===4&&D.stateNode.containerInfo===I.containerInfo&&D.stateNode.implementation===I.implementation){s(N,D.sibling),K=u(D,I.children||[]),K.return=N,N=K;break e}else{s(N,D);break}else n(N,D);D=D.sibling}K=wu(I,N.mode,K),K.return=N,N=K}return p(N);case R:return I=ji(I),Xe(N,D,I,K)}if(pe(I))return ce(N,D,I,K);if(fe(I)){if(_e=fe(I),typeof _e!="function")throw Error(l(150));return I=_e.call(I),be(N,D,I,K)}if(typeof I.then=="function")return Xe(N,D,lo(I),K);if(I.$$typeof===U)return Xe(N,D,ao(N,I),K);ro(N,I)}
vendor: 4,903 bytes, line 8
8return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,D!==null&&D.tag===6?(s(N,D.sibling),K=u(D,I),K.return=N,N=K):(s(N,D),K=bu(I,N.mode,K),K.return=N,N=K),p(N)):s(N,D)}return function(N,D,I,K){try{Cl=0;var _e=Xe(N,D,I,K);return Ms=null,_e}catch(me){if(me===Rs||me===io)throw me;var He=la(29,me,null,N.mode);return He.lanes=K,He.return=N,He}}}var Pi=Xf(!0),Qf=Xf(!1),Kn=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,n,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(qe&2)!==0){var u=r.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),r.pending=n,n=Jr(e),Nf(e,null,s),n}return Zr(e,r,n,s),Jr(e)}function Rl(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194048)!==0)){var r=n.lanes;r&=e.pendingLanes,s|=r,n.lanes=s,Br(e,s)}}function zu(e,n){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var u=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var p={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?u=d=p:d=d.next=p,s=s.next}while(s!==null);d===null?u=d=n:d=d.next=n}else u=d=n;s={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}var Lu=!1;function Ml(){if(Lu){var e=Ts;if(e!==null)throw e}}function kl(e,n,s,r){Lu=!1;var u=e.updateQueue;Kn=!1;var d=u.firstBaseUpdate,p=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var C=S,j=C.next;C.next=null,p===null?d=j:p.next=j,p=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,S=Y.lastBaseUpdate,S!==p&&(S===null?Y.firstBaseUpdate=j:S.next=j,Y.lastBaseUpdate=C))}if(d!==null){var F=u.baseState;p=0,Y=j=C=null,S=d;do{var P=S.lane&-536870913,q=P!==S.lane;if(q?(Ue&P)===P:(r&P)===P){P!==0&&P===Cs&&(Lu=!0),Y!==null&&(Y=Y.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ce=e,be=S;P=n;var Xe=s;switch(be.tag){case 1:if(ce=be.payload,typeof ce=="function"){F=ce.call(Xe,F,P);break e}F=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=be.payload,P=typeof ce=="function"?ce.call(Xe,F,P):ce,P==null)break e;F=b({},F,P);break e;case 2:Kn=!0}}P=S.callback,P!==null&&(e.flags|=64,q&&(e.flags|=8192),q=u.callbacks,q===null?u.callbacks=[P]:q.push(P))}else q={lane:P,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Y===null?(j=Y=q,C=F):Y=Y.next=q,p|=P;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;q=S,S=q.next,q.next=null,u.lastBaseUpdate=q,u.shared.pending=null}}while(!0);Y===null&&(C=F),u.baseState=C,u.firstBaseUpdate=j,u.lastBaseUpdate=Y,d===null&&(u.shared.lanes=0),ei|=p,e.lanes=p,e.memoizedState=F}}function Zf(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function Jf(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Zf(s[e],n)}var ks=k(null),oo=k(0);function Wf(e,n){e=Tn,ee(oo,e),ee(ks,n),Tn=e|n.baseLanes}function Iu(){ee(oo,Tn),ee(ks,ks.current)}function ju(){Tn=oo.current,$(ks),$(oo)}var ra=k(null),Ea=null;function Qn(e){var n=e.alternate;ee(mt,mt.current&1),ee(ra,e),Ea===null&&(n===null||ks.current!==null||n.memoizedState!==null)&&(Ea=e)}function Bu(e){ee(mt,mt.current),ee(ra,e),Ea===null&&(Ea=e)}function e1(e){e.tag===22?(ee(mt,mt.current),ee(ra,e),Ea===null&&(Ea=e)):Zn()}function Zn(){ee(mt,mt.current),ee(ra,ra.current)}function oa(e){$(ra),Ea===e&&(Ea=null),$(mt)}var mt=k(0);function co(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Yh(s)||$h(s)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var vn=0,Te=null,Ke=null,wt=null,uo=!1,Ds=!1,Hi=!1,ho=0,Dl=0,As=null,H4=0;function ut(){throw Error(l(321))}function Pu(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!sa(e[s],n[s]))return!1;return!0}function Hu(e,n,s,r,u,d){return vn=d,Te=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?I1:ah,Hi=!1,d=s(r,u),Hi=!1,Ds&&(d=a1(n,s,r,u)),t1(e),d}function t1(e){H.H=Nl;var n=Ke!==null&&Ke.next!==null;if(vn=0,wt=Ke=Te=null,uo=!1,Dl=0,As=null,n)throw Error(l(300));
vendor: 10,494 bytes, line 8
8e===null||St||(e=e.dependencies,e!==null&&to(e)&&(St=!0))}function a1(e,n,s,r){Te=e;var u=0;do{if(Ds&&(As=null),Dl=0,Ds=!1,25<=u)throw Error(l(301));if(u+=1,wt=Ke=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}H.H=j1,d=n(s,r)}while(Ds);return d}function G4(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?Al(n):n,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Te.flags|=1024),n}function Gu(){var e=ho!==0;return ho=0,e}function qu(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}function Vu(e){if(uo){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}uo=!1}vn=0,wt=Ke=Te=null,Ds=!1,Dl=ho=0,As=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Te.memoizedState=wt=e:wt=wt.next=e,wt}function gt(){if(Ke===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=wt===null?Te.memoizedState:wt.next;if(n!==null)wt=n,Ke=e;else{if(e===null)throw Te.alternate===null?Error(l(467)):Error(l(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},wt===null?Te.memoizedState=wt=e:wt=wt.next=e}return wt}function fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(e){var n=Dl;return Dl+=1,As===null&&(As=[]),e=$f(As,e,n),n=Te,(wt===null?n.memoizedState:wt.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?I1:ah),e}function mo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Al(e);if(e.$$typeof===U)return Ot(e)}throw Error(l(438,String(e)))}function Yu(e){var n=null,s=Te.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var r=Te.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(n={data:r.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=fo(),Te.updateQueue=s),s.memoCache=n,s=n.data[n.index],s===void 0)for(s=n.data[n.index]=Array(e),r=0;r<e;r++)s[r]=J;return n.index++,s}function yn(e,n){return typeof n=="function"?n(e):n}function go(e){var n=gt();return $u(n,Ke,e)}function $u(e,n,s){var r=e.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=s;var u=e.baseQueue,d=r.pending;if(d!==null){if(u!==null){var p=u.next;u.next=d.next,d.next=p}n.baseQueue=u=d,r.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{n=u.next;var S=p=null,C=null,j=n,Y=!1;do{var F=j.lane&-536870913;if(F!==j.lane?(Ue&F)===F:(vn&F)===F){var P=j.revertLane;if(P===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),F===Cs&&(Y=!0);else if((vn&P)===P){j=j.next,P===Cs&&(Y=!0);continue}else F={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},C===null?(S=C=F,p=d):C=C.next=F,Te.lanes|=P,ei|=P;F=j.action,Hi&&s(d,F),d=j.hasEagerState?j.eagerState:s(d,F)}else P={lane:F,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},C===null?(S=C=P,p=d):C=C.next=P,Te.lanes|=F,ei|=F;j=j.next}while(j!==null&&j!==n);if(C===null?p=d:C.next=S,!sa(d,e.memoizedState)&&(St=!0,Y&&(s=Ts,s!==null)))throw s;e.memoizedState=d,e.baseState=p,e.baseQueue=C,r.lastRenderedState=d}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ku(e){var n=gt(),s=n.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=e;var r=s.dispatch,u=s.pending,d=n.memoizedState;if(u!==null){s.pending=null;var p=u=u.next;do d=e(d,p.action),p=p.next;while(p!==u);sa(d,n.memoizedState)||(St=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),s.lastRenderedState=d}return[d,r]}function n1(e,n,s){var r=Te,u=gt(),d=Le;if(d){if(s===void 0)throw Error(l(407));s=s()}else s=n();var p=!sa((Ke||u).memoizedState,s);if(p&&(u.memoizedState=s,St=!0),u=u.queue,Qu(l1.bind(null,r,u,e),[e]),u.getSnapshot!==n||p||wt!==null&&wt.memoizedState.tag&1){if(r.flags|=2048,Os(9,{destroy:void 0},s1.bind(null,r,u,s,n),null),Je===null)throw Error(l(349));d||(vn&127)!==0||i1(r,n,s)}return s}function i1(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=Te.updateQueue,n===null?(n=fo(),Te.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function s1(e,n,s,r){n.value=s,n.getSnapshot=r,r1(n)&&o1(e)}function l1(e,n,s){return s(function(){r1(n)&&o1(e)})}function r1(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!sa(e,s)}catch{return!0}}function o1(e){var n=Oi(e,2);n!==null&&na(n,e,2)}function Fu(e){var n=Yt();if(typeof e=="function"){var s=e;if(e=s(),Hi){Mt(!0);try{s()}finally{Mt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:e},n}function c1(e,n,s,r){return e.baseState=s,$u(e,Ke,typeof r=="function"?r:yn)}function q4(e,n,s,r,u){if(vo(e))throw Error(l(485));if(e=n.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){d.listeners.push(p)}};H.T!==null?s(!0):d.isTransition=!1,r(d),s=n.pending,s===null?(d.next=n.pending=d,u1(n,d)):(d.next=s.next,n.pending=s.next=d)}}function u1(e,n){var s=n.action,r=n.payload,u=e.state;if(n.isTransition){var d=H.T,p={};H.T=p;try{var S=s(u,r),C=H.S;C!==null&&C(p,S),h1(e,n,S)}catch(j){Xu(e,n,j)}finally{d!==null&&p.types!==null&&(d.types=p.types),H.T=d}}else try{d=s(u,r),h1(e,n,d)}catch(j){Xu(e,n,j)}}function h1(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(r){d1(e,n,r)},function(r){return Xu(e,n,r)}):d1(e,n,s)}function d1(e,n,s){n.status="fulfilled",n.value=s,f1(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,u1(e,s)))}function Xu(e,n,s){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do n.status="rejected",n.reason=s,f1(n),n=n.next;while(n!==r)}e.action=null}function f1(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function m1(e,n){return n}function g1(e,n){if(Le){var s=Je.formState;if(s!==null){e:{var r=Te;if(Le){if(nt){t:{for(var u=nt,d=Sa;u.nodeType!==8;){if(!d){u=null;break t}if(u=xa(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){nt=xa(u.nextSibling),r=u.data==="F!";break e}}Yn(r)}r=!1}r&&(n=s[0])}}return s=Yt(),s.memoizedState=s.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m1,lastRenderedState:n},s.queue=r,s=U1.bind(null,Te,r),r.dispatch=s,r=Fu(!1),d=th.bind(null,Te,!1,r.queue),r=Yt(),u={state:n,dispatch:null,action:e,pending:null},r.queue=u,s=q4.bind(null,Te,u,d,s),u.dispatch=s,r.memoizedState=e,[n,s,!1]}function p1(e){var n=gt();return _1(n,Ke,e)}function _1(e,n,s){if(n=$u(e,n,m1)[0],e=go(yn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var r=Al(n)}catch(p){throw p===Rs?io:p}else r=n;n=gt();var u=n.queue,d=u.dispatch;return s!==n.memoizedState&&(Te.flags|=2048,Os(9,{destroy:void 0},V4.bind(null,u,s),null)),[r,d,e]}function V4(e,n){e.action=n}function v1(e){var n=gt(),s=Ke;if(s!==null)return _1(n,s,e);gt(),n=n.memoizedState,s=gt();var r=s.queue.dispatch;return s.memoizedState=e,[n,r,!1]}function Os(e,n,s,r){return e={tag:e,create:s,deps:r,inst:n,next:null},n=Te.updateQueue,n===null&&(n=fo(),Te.updateQueue=n),s=n.lastEffect,s===null?n.lastEffect=e.next=e:(r=s.next,s.next=e,e.next=r,n.lastEffect=e),e}function y1(){return gt().memoizedState}function po(e,n,s,r){var u=Yt();Te.flags|=e,u.memoizedState=Os(1|n,{destroy:void 0},s,r===void 0?null:r)}function _o(e,n,s,r){var u=gt();r=r===void 0?null:r;var d=u.memoizedState.inst;Ke!==null&&r!==null&&Pu(r,Ke.memoizedState.deps)?u.memoizedState=Os(n,d,s,r):(Te.flags|=e,u.memoizedState=Os(1|n,d,s,r))}function b1(e,n){po(8390656,8,e,n)}function Qu(e,n){_o(2048,8,e,n)}function Y4(e){Te.flags|=4;var n=Te.updateQueue;if(n===null)n=fo(),Te.updateQueue=n,n.events=[e];else{var s=n.events;s===null?n.events=[e]:s.push(e)}}function w1(e){var n=gt().memoizedState;return Y4({ref:n,nextImpl:e}),function(){if((qe&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function S1(e,n){return _o(4,2,e,n)}function E1(e,n){return _o(4,4,e,n)}function x1(e,n){if(typeof n=="function"){e=e();var s=n(e);return function(){typeof s=="function"?s():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function C1(e,n,s){s=s!=null?s.concat([e]):null,_o(4,4,x1.bind(null,n,e),s)}function Zu(){}function T1(e,n){var s=gt();n=n===void 0?null:n;var r=s.memoizedState;return n!==null&&Pu(n,r[1])?r[0]:(s.memoizedState=[e,n],e)}function R1(e,n){var s=gt();n=n===void 0?null:n;var r=s.memoizedState;if(n!==null&&Pu(n,r[1]))return r[0];if(r=e(),Hi){Mt(!0);try{e()}finally{Mt(!1)}}return s.memoizedState=[r,n],r}function Ju(e,n,s){return s===void 0||(vn&1073741824)!==0&&(Ue&261930)===0?e.memoizedState=n:(e.memoizedState=s,e=M2(),Te.lanes|=e,ei|=e,s)}function M1(e,n,s,r){return sa(s,n)?s:ks.current!==null?(e=Ju(e,s,r),sa(e,n)||(St=!0),e):(vn&42)===0||(vn&1073741824)!==0&&(Ue&261930)===0?(St=!0,e.memoizedState=s):(e=M2(),Te.lanes|=e,ei|=e,n)}function k1(e,n,s,r,u){var d=W.p;W.p=d!==0&&8>d?d:8;var p=H.T,S={};H.T=S,th(e,!1,n,s);try{var C=u(),j=H.S;if(j!==null&&j(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=P4(C,r);Ol(e,n,Y,ha(e))}else Ol(e,n,r,ha(e))}catch(F){Ol(e,n,{then:function(){},status:"rejected",reason:F},ha())}finally{W.p=d,p!==null&&S.types!==null&&(p.types=S.types),H.T=p}}function $4(){}function Wu(e,n,s,r){if(e.tag!==5)throw Error(l(476));var u=D1(e).queue;k1(e,u,n,oe,s===null?$4:function(){return A1(e),s(r)})}function D1(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:oe},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:s},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function A1(e){var n=D1(e);n.next===null&&(n=e.alternate.memoizedState),Ol(e,n.next.queue,{},ha())}function eh(){return Ot(Xl)}function O1(){return gt().memoizedState}function N1(){return gt().memoizedState}function K4(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=ha();e=Fn(s);var r=Xn(n,e,s);r!==null&&(na(r,n,s),Rl(r,n,s)),n={cache:ku()},e.payload=n;return}n=n.return}}
vendor: 6,074 bytes, line 8
8function F4(e,n,s){var r=ha();s={lane:r,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},vo(e)?z1(n,s):(s=vu(e,n,s,r),s!==null&&(na(s,e,r),L1(s,n,r)))}function U1(e,n,s){var r=ha();Ol(e,n,s,r)}function Ol(e,n,s,r){var u={lane:r,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(vo(e))z1(n,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var p=n.lastRenderedState,S=d(p,s);if(u.hasEagerState=!0,u.eagerState=S,sa(S,p))return Zr(e,n,u,0),Je===null&&Qr(),!1}catch{}if(s=vu(e,n,u,r),s!==null)return na(s,e,r),L1(s,n,r),!0}return!1}function th(e,n,s,r){if(r={lane:2,revertLane:Nh(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vo(e)){if(n)throw Error(l(479))}else n=vu(e,s,r,2),n!==null&&na(n,e,2)}function vo(e){var n=e.alternate;return e===Te||n!==null&&n===Te}function z1(e,n){Ds=uo=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function L1(e,n,s){if((s&4194048)!==0){var r=n.lanes;r&=e.pendingLanes,s|=r,n.lanes=s,Br(e,s)}}var Nl={readContext:Ot,use:mo,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};Nl.useEffectEvent=ut;var I1={readContext:Ot,use:mo,useCallback:function(e,n){return Yt().memoizedState=[e,n===void 0?null:n],e},useContext:Ot,useEffect:b1,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,po(4194308,4,x1.bind(null,n,e),s)},useLayoutEffect:function(e,n){return po(4194308,4,e,n)},useInsertionEffect:function(e,n){po(4,2,e,n)},useMemo:function(e,n){var s=Yt();n=n===void 0?null:n;var r=e();if(Hi){Mt(!0);try{e()}finally{Mt(!1)}}return s.memoizedState=[r,n],r},useReducer:function(e,n,s){var r=Yt();if(s!==void 0){var u=s(n);if(Hi){Mt(!0);try{s(n)}finally{Mt(!1)}}}else u=n;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=F4.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var n=Yt();return e={current:e},n.memoizedState=e},useState:function(e){e=Fu(e);var n=e.queue,s=U1.bind(null,Te,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:Zu,useDeferredValue:function(e,n){var s=Yt();return Ju(s,e,n)},useTransition:function(){var e=Fu(!1);return e=k1.bind(null,Te,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var r=Te,u=Yt();if(Le){if(s===void 0)throw Error(l(407));s=s()}else{if(s=n(),Je===null)throw Error(l(349));(Ue&127)!==0||i1(r,n,s)}u.memoizedState=s;var d={value:s,getSnapshot:n};return u.queue=d,b1(l1.bind(null,r,d,e),[e]),r.flags|=2048,Os(9,{destroy:void 0},s1.bind(null,r,d,s,n),null),s},useId:function(){var e=Yt(),n=Je.identifierPrefix;if(Le){var s=Qa,r=Xa;s=(r&~(1<<32-jt(r)-1)).toString(32)+s,n="_"+n+"R_"+s,s=ho++,0<s&&(n+="H"+s.toString(32)),n+="_"}else s=H4++,n="_"+n+"r_"+s.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:eh,useFormState:g1,useActionState:g1,useOptimistic:function(e){var n=Yt();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=th.bind(null,Te,!0,s),s.dispatch=n,[e,n]},useMemoCache:Yu,useCacheRefresh:function(){return Yt().memoizedState=K4.bind(null,Te)},useEffectEvent:function(e){var n=Yt(),s={impl:e};return n.memoizedState=s,function(){if((qe&2)!==0)throw Error(l(440));return s.impl.apply(void 0,arguments)}}},ah={readContext:Ot,use:mo,useCallback:T1,useContext:Ot,useEffect:Qu,useImperativeHandle:C1,useInsertionEffect:S1,useLayoutEffect:E1,useMemo:R1,useReducer:go,useRef:y1,useState:function(){return go(yn)},useDebugValue:Zu,useDeferredValue:function(e,n){var s=gt();return M1(s,Ke.memoizedState,e,n)},useTransition:function(){var e=go(yn)[0],n=gt().memoizedState;return[typeof e=="boolean"?e:Al(e),n]},useSyncExternalStore:n1,useId:O1,useHostTransitionStatus:eh,useFormState:p1,useActionState:p1,useOptimistic:function(e,n){var s=gt();return c1(s,Ke,e,n)},useMemoCache:Yu,useCacheRefresh:N1};ah.useEffectEvent=w1;var j1={readContext:Ot,use:mo,useCallback:T1,useContext:Ot,useEffect:Qu,useImperativeHandle:C1,useInsertionEffect:S1,useLayoutEffect:E1,useMemo:R1,useReducer:Ku,useRef:y1,useState:function(){return Ku(yn)},useDebugValue:Zu,useDeferredValue:function(e,n){var s=gt();return Ke===null?Ju(s,e,n):M1(s,Ke.memoizedState,e,n)},useTransition:function(){var e=Ku(yn)[0],n=gt().memoizedState;return[typeof e=="boolean"?e:Al(e),n]},useSyncExternalStore:n1,useId:O1,useHostTransitionStatus:eh,useFormState:v1,useActionState:v1,useOptimistic:function(e,n){var s=gt();return Ke!==null?c1(s,Ke,e,n):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Yu,useCacheRefresh:N1};j1.useEffectEvent=w1;function nh(e,n,s,r){n=e.memoizedState,s=s(r,n),s=s==null?n:b({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var ih={enqueueSetState:function(e,n,s){e=e._reactInternals;var r=ha(),u=Fn(r);u.payload=n,s!=null&&(u.callback=s),n=Xn(e,u,r),n!==null&&(na(n,e,r),Rl(n,e,r))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var r=ha(),u=Fn(r);u.tag=1,u.payload=n,s!=null&&(u.callback=s),n=Xn(e,u,r),n!==null&&(na(n,e,r),Rl(n,e,r))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=ha(),r=Fn(s);r.tag=2,n!=null&&(r.callback=n),n=Xn(e,r,s),n!==null&&(na(n,e,s),Rl(n,e,s))}};function B1(e,n,s,r,u,d,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,p):n.prototype&&n.prototype.isPureReactComponent?!yl(s,r)||!yl(u,d):!0}function P1(e,n,s,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,r),n.state!==e&&ih.enqueueReplaceState(n,n.state,null)}function Gi(e,n){var s=n;
vendor: 9,885 bytes, line 8
8if("ref"in n){s={};for(var r in n)r!=="ref"&&(s[r]=n[r])}if(e=e.defaultProps){s===n&&(s=b({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}function H1(e){Xr(e)}function G1(e){}function q1(e){Xr(e)}function yo(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(r){setTimeout(function(){throw r})}}function V1(e,n,s){try{var r=e.onCaughtError;r(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function sh(e,n,s){return s=Fn(s),s.tag=3,s.payload={element:null},s.callback=function(){yo(e,n)},s}function Y1(e){return e=Fn(e),e.tag=3,e}function $1(e,n,s,r){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var d=r.value;e.payload=function(){return u(d)},e.callback=function(){V1(n,s,r)}}var p=s.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){V1(n,s,r),typeof u!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function X4(e,n,s,r,u){if(s.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(n=s.alternate,n!==null&&xs(n,s,u,!0),s=ra.current,s!==null){switch(s.tag){case 31:case 13:return Ea===null?Ao():s.alternate===null&&ht===0&&(ht=3),s.flags&=-257,s.flags|=65536,s.lanes=u,r===so?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([r]):n.add(r),Dh(e,r,u)),!1;case 22:return s.flags|=65536,r===so?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([r])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([r]):s.add(r)),Dh(e,r,u)),!1}throw Error(l(435,s.tag))}return Dh(e,r,u),Ao(),!1}if(Le)return n=ra.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,r!==xu&&(e=Error(l(422),{cause:r}),Sl(ya(e,s)))):(r!==xu&&(n=Error(l(423),{cause:r}),Sl(ya(n,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=ya(r,s),u=sh(e.stateNode,r,u),zu(e,u),ht!==4&&(ht=2)),!1;var d=Error(l(520),{cause:r});if(d=ya(d,s),Hl===null?Hl=[d]:Hl.push(d),ht!==4&&(ht=2),n===null)return!0;r=ya(r,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=sh(s.stateNode,r,e),zu(s,e),!1;case 1:if(n=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ti===null||!ti.has(d))))return s.flags|=65536,u&=-u,s.lanes|=u,u=Y1(u),$1(u,e,s,r),zu(s,u),!1}s=s.return}while(s!==null);return!1}var lh=Error(l(461)),St=!1;function Nt(e,n,s,r){n.child=e===null?Qf(n,null,s,r):Pi(n,e.child,s,r)}function K1(e,n,s,r,u){s=s.render;var d=n.ref;if("ref"in r){var p={};for(var S in r)S!=="ref"&&(p[S]=r[S])}else p=r;return Li(n),r=Hu(e,n,s,p,d,u),S=Gu(),e!==null&&!St?(qu(e,n,u),bn(e,n,u)):(Le&&S&&Su(n),n.flags|=1,Nt(e,n,r,u),n.child)}function F1(e,n,s,r,u){if(e===null){var d=s.type;return typeof d=="function"&&!yu(d)&&d.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=d,X1(e,n,d,r,u)):(e=Wr(s.type,null,r,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!mh(e,u)){var p=d.memoizedProps;if(s=s.compare,s=s!==null?s:yl,s(p,r)&&e.ref===n.ref)return bn(e,n,u)}return n.flags|=1,e=mn(d,r),e.ref=n.ref,e.return=n,n.child=e}function X1(e,n,s,r,u){if(e!==null){var d=e.memoizedProps;if(yl(d,r)&&e.ref===n.ref)if(St=!1,n.pendingProps=r=d,mh(e,u))(e.flags&131072)!==0&&(St=!0);else return n.lanes=e.lanes,bn(e,n,u)}return rh(e,n,s,r,u)}function Q1(e,n,s,r){var u=r.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|s:s,e!==null){for(r=n.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~d}else r=0,n.child=null;return Z1(e,n,d,s,r)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&no(n,d!==null?d.cachePool:null),d!==null?Wf(n,d):Iu(),e1(n);else return r=n.lanes=536870912,Z1(e,n,d!==null?d.baseLanes|s:s,s,r)}else d!==null?(no(n,d.cachePool),Wf(n,d),Zn(),n.memoizedState=null):(e!==null&&no(n,null),Iu(),Zn());return Nt(e,n,u,s),n.child}function Ul(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Z1(e,n,s,r,u){var d=Au();return d=d===null?null:{parent:bt._currentValue,pool:d},n.memoizedState={baseLanes:s,cachePool:d},e!==null&&no(n,null),Iu(),e1(n),e!==null&&xs(e,n,r,!0),n.childLanes=u,null}function bo(e,n){return n=So({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function J1(e,n,s){return Pi(n,e.child,null,s),e=bo(n,n.pendingProps),e.flags|=2,oa(n),n.memoizedState=null,e}function Q4(e,n,s){var r=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Le){if(r.mode==="hidden")return e=bo(n,r),n.lanes=536870912,Ul(null,e);if(Bu(n),(e=nt)?(e=um(e,Sa),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:qn!==null?{id:Xa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},s=zf(e),s.return=n,n.child=s,At=n,nt=null)):e=null,e===null)throw Yn(n);return n.lanes=536870912,null}return bo(n,r)}var d=e.memoizedState;if(d!==null){var p=d.dehydrated;if(Bu(n),u)if(n.flags&256)n.flags&=-257,n=J1(e,n,s);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(l(558));else if(St||xs(e,n,s,!1),u=(s&e.childLanes)!==0,St||u){if(r=Je,r!==null&&(p=T(r,s),p!==0&&p!==d.retryLane))throw d.retryLane=p,Oi(e,p),na(r,e,p),lh;Ao(),n=J1(e,n,s)}else e=d.treeContext,nt=xa(p.nextSibling),At=n,Le=!0,Vn=null,Sa=!1,e!==null&&jf(n,e),n=bo(n,r),n.flags|=4096;return n}return e=mn(e.child,{mode:r.mode,children:r.children}),e.ref=n.ref,n.child=e,e.return=n,e}function wo(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(l(284));(e===null||e.ref!==s)&&(n.flags|=4194816)}}function rh(e,n,s,r,u){return Li(n),s=Hu(e,n,s,r,void 0,u),r=Gu(),e!==null&&!St?(qu(e,n,u),bn(e,n,u)):(Le&&r&&Su(n),n.flags|=1,Nt(e,n,s,u),n.child)}function W1(e,n,s,r,u,d){return Li(n),n.updateQueue=null,s=a1(n,r,s,u),t1(e),r=Gu(),e!==null&&!St?(qu(e,n,d),bn(e,n,d)):(Le&&r&&Su(n),n.flags|=1,Nt(e,n,s,d),n.child)}function e2(e,n,s,r,u){if(Li(n),n.stateNode===null){var d=bs,p=s.contextType;typeof p=="object"&&p!==null&&(d=Ot(p)),d=new s(r,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=ih,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=r,d.state=n.memoizedState,d.refs={},Nu(n),p=s.contextType,d.context=typeof p=="object"&&p!==null?Ot(p):bs,d.state=n.memoizedState,p=s.getDerivedStateFromProps,typeof p=="function"&&(nh(n,s,p,r),d.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(p=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),p!==d.state&&ih.enqueueReplaceState(d,d.state,null),kl(n,r,d,u),Ml(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),r=!0}else if(e===null){d=n.stateNode;var S=n.memoizedProps,C=Gi(s,S);d.props=C;var j=d.context,Y=s.contextType;p=bs,typeof Y=="object"&&Y!==null&&(p=Ot(Y));var F=s.getDerivedStateFromProps;Y=typeof F=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,Y||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||j!==p)&&P1(n,d,r,p),Kn=!1;var P=n.memoizedState;d.state=P,kl(n,r,d,u),Ml(),j=n.memoizedState,S||P!==j||Kn?(typeof F=="function"&&(nh(n,s,F,r),j=n.memoizedState),(C=Kn||B1(n,s,C,r,P,j,p))?(Y||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=j),d.props=r,d.state=j,d.context=p,r=C):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{d=n.stateNode,Uu(e,n),p=n.memoizedProps,Y=Gi(s,p),d.props=Y,F=n.pendingProps,P=d.context,j=s.contextType,C=bs,typeof j=="object"&&j!==null&&(C=Ot(j)),S=s.getDerivedStateFromProps,(j=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==F||P!==C)&&P1(n,d,r,C),Kn=!1,P=n.memoizedState,d.state=P,kl(n,r,d,u),Ml();var q=n.memoizedState;p!==F||P!==q||Kn||e!==null&&e.dependencies!==null&&to(e.dependencies)?(typeof S=="function"&&(nh(n,s,S,r),q=n.memoizedState),(Y=Kn||B1(n,s,Y,r,P,q,C)||e!==null&&e.dependencies!==null&&to(e.dependencies))?(j||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,q,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,q,C)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=q),d.props=r,d.state=q,d.context=C,r=Y):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),r=!1)}
vendor: 4,179 bytes, line 8
8return d=r,wo(e,n),r=(n.flags&128)!==0,d||r?(d=n.stateNode,s=r&&typeof s.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&r?(n.child=Pi(n,e.child,null,u),n.child=Pi(n,null,s,u)):Nt(e,n,s,u),n.memoizedState=d.state,e=n.child):e=bn(e,n,u),e}function t2(e,n,s,r){return Ui(),n.flags|=256,Nt(e,n,s,r),n.child}var oh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ch(e){return{baseLanes:e,cachePool:Vf()}}function uh(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=ua),e}function a2(e,n,s){var r=n.pendingProps,u=!1,d=(n.flags&128)!==0,p;if((p=d)||(p=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),p&&(u=!0,n.flags&=-129),p=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(u?Qn(n):Zn(),(e=nt)?(e=um(e,Sa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:qn!==null?{id:Xa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},s=zf(e),s.return=n,n.child=s,At=n,nt=null)):e=null,e===null)throw Yn(n);return $h(e)?n.lanes=32:n.lanes=536870912,null}var S=r.children;return r=r.fallback,u?(Zn(),u=n.mode,S=So({mode:"hidden",children:S},u),r=Ni(r,u,s,null),S.return=n,r.return=n,S.sibling=r,n.child=S,r=n.child,r.memoizedState=ch(s),r.childLanes=uh(e,p,s),n.memoizedState=oh,Ul(null,r)):(Qn(n),hh(n,S))}var C=e.memoizedState;if(C!==null&&(S=C.dehydrated,S!==null)){if(d)n.flags&256?(Qn(n),n.flags&=-257,n=dh(e,n,s)):n.memoizedState!==null?(Zn(),n.child=e.child,n.flags|=128,n=null):(Zn(),S=r.fallback,u=n.mode,r=So({mode:"visible",children:r.children},u),S=Ni(S,u,s,null),S.flags|=2,r.return=n,S.return=n,r.sibling=S,n.child=r,Pi(n,e.child,null,s),r=n.child,r.memoizedState=ch(s),r.childLanes=uh(e,p,s),n.memoizedState=oh,n=Ul(null,r));else if(Qn(n),$h(S)){if(p=S.nextSibling&&S.nextSibling.dataset,p)var j=p.dgst;p=j,r=Error(l(419)),r.stack="",r.digest=p,Sl({value:r,source:null,stack:null}),n=dh(e,n,s)}else if(St||xs(e,n,s,!1),p=(s&e.childLanes)!==0,St||p){if(p=Je,p!==null&&(r=T(p,s),r!==0&&r!==C.retryLane))throw C.retryLane=r,Oi(e,r),na(p,e,r),lh;Yh(S)||Ao(),n=dh(e,n,s)}else Yh(S)?(n.flags|=192,n.child=e.child,n=null):(e=C.treeContext,nt=xa(S.nextSibling),At=n,Le=!0,Vn=null,Sa=!1,e!==null&&jf(n,e),n=hh(n,r.children),n.flags|=4096);return n}return u?(Zn(),S=r.fallback,u=n.mode,C=e.child,j=C.sibling,r=mn(C,{mode:"hidden",children:r.children}),r.subtreeFlags=C.subtreeFlags&65011712,j!==null?S=mn(j,S):(S=Ni(S,u,s,null),S.flags|=2),S.return=n,r.return=n,r.sibling=S,n.child=r,Ul(null,r),r=n.child,S=e.child.memoizedState,S===null?S=ch(s):(u=S.cachePool,u!==null?(C=bt._currentValue,u=u.parent!==C?{parent:C,pool:C}:u):u=Vf(),S={baseLanes:S.baseLanes|s,cachePool:u}),r.memoizedState=S,r.childLanes=uh(e,p,s),n.memoizedState=oh,Ul(e.child,r)):(Qn(n),s=e.child,e=s.sibling,s=mn(s,{mode:"visible",children:r.children}),s.return=n,s.sibling=null,e!==null&&(p=n.deletions,p===null?(n.deletions=[e],n.flags|=16):p.push(e)),n.child=s,n.memoizedState=null,s)}function hh(e,n){return n=So({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function So(e,n){return e=la(22,e,null,n),e.lanes=0,e}function dh(e,n,s){return Pi(n,e.child,null,s),e=hh(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function n2(e,n,s){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Ru(e.return,n,s)}function fh(e,n,s,r,u,d){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:s,tailMode:u,treeForkCount:d}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=r,p.tail=s,p.tailMode=u,p.treeForkCount=d)}function i2(e,n,s){var r=n.pendingProps,u=r.revealOrder,d=r.tail;r=r.children;var p=mt.current,S=(p&2)!==0;if(S?(p=p&1|2,n.flags|=128):p&=1,ee(mt,p),Nt(e,n,r,s),r=Le?wl:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&n2(e,s,n);else if(e.tag===19)n2(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(s=n.child,u=null;s!==null;)e=s.alternate,e!==null&&co(e)===null&&(u=s),s=s.sibling;
vendor: 5,052 bytes, line 8
8s=u,s===null?(u=n.child,n.child=null):(u=s.sibling,s.sibling=null),fh(n,!1,u,s,d,r);break;case"backwards":case"unstable_legacy-backwards":for(s=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&co(e)===null){n.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}fh(n,!0,s,null,d,r);break;case"together":fh(n,!1,null,null,void 0,r);break;default:n.memoizedState=null}return n.child}function bn(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),ei|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(xs(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,s=mn(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=mn(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function mh(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&to(e)))}function Z4(e,n,s){switch(n.tag){case 3:_t(n,n.stateNode.containerInfo),$n(n,bt,e.memoizedState.cache),Ui();break;case 27:case 5:xi(n);break;case 4:_t(n,n.stateNode.containerInfo);break;case 10:$n(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Bu(n),null;break;case 13:var r=n.memoizedState;if(r!==null)return r.dehydrated!==null?(Qn(n),n.flags|=128,null):(s&n.child.childLanes)!==0?a2(e,n,s):(Qn(n),e=bn(e,n,s),e!==null?e.sibling:null);Qn(n);break;case 19:var u=(e.flags&128)!==0;if(r=(s&n.childLanes)!==0,r||(xs(e,n,s,!1),r=(s&n.childLanes)!==0),u){if(r)return i2(e,n,s);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(mt,mt.current),r)break;return null;case 22:return n.lanes=0,Q1(e,n,s,n.pendingProps);case 24:$n(n,bt,e.memoizedState.cache)}return bn(e,n,s)}function s2(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)St=!0;else{if(!mh(e,s)&&(n.flags&128)===0)return St=!1,Z4(e,n,s);St=(e.flags&131072)!==0}else St=!1,Le&&(n.flags&1048576)!==0&&If(n,wl,n.index);switch(n.lanes=0,n.tag){case 16:e:{var r=n.pendingProps;if(e=ji(n.elementType),n.type=e,typeof e=="function")yu(e)?(r=Gi(e,r),n.tag=1,n=e2(null,n,e,r,s)):(n.tag=0,n=rh(null,n,e,r,s));else{if(e!=null){var u=e.$$typeof;if(u===L){n.tag=11,n=K1(null,n,e,r,s);break e}else if(u===V){n.tag=14,n=F1(null,n,e,r,s);break e}}throw n=Ce(e)||e,Error(l(306,n,""))}}return n;case 0:return rh(e,n,n.type,n.pendingProps,s);case 1:return r=n.type,u=Gi(r,n.pendingProps),e2(e,n,r,u,s);case 3:e:{if(_t(n,n.stateNode.containerInfo),e===null)throw Error(l(387));r=n.pendingProps;var d=n.memoizedState;u=d.element,Uu(e,n),kl(n,r,null,s);var p=n.memoizedState;if(r=p.cache,$n(n,bt,r),r!==d.cache&&Mu(n,[bt],s,!0),Ml(),r=p.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:p.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=t2(e,n,r,s);break e}else if(r!==u){u=ya(Error(l(424)),n),Sl(u),n=t2(e,n,r,s);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,nt=xa(e.firstChild),At=n,Le=!0,Vn=null,Sa=!0,s=Qf(n,null,r,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ui(),r===u){n=bn(e,n,s);break e}Nt(e,n,r,s)}n=n.child}return n;case 26:return wo(e,n),e===null?(s=pm(n.type,null,n.pendingProps,null))?n.memoizedState=s:Le||(s=n.type,e=n.pendingProps,r=jo(we.current).createElement(s),r[ie]=n,r[se]=e,Ut(r,s,e),We(r),n.stateNode=r):n.memoizedState=pm(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return xi(n),e===null&&Le&&(r=n.stateNode=fm(n.type,n.pendingProps,we.current),At=n,Sa=!0,u=nt,si(n.type)?(Kh=u,nt=xa(r.firstChild)):nt=u),Nt(e,n,n.pendingProps.children,s),wo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((u=r=nt)&&(r=Rv(r,n.type,n.pendingProps,Sa),r!==null?(n.stateNode=r,At=n,nt=xa(r.firstChild),Sa=!1,u=!0):u=!1),u||Yn(n)),xi(n),u=n.type,d=n.pendingProps,p=e!==null?e.memoizedProps:null,r=d.children,Gh(u,d)?r=null:p!==null&&Gh(u,p)&&(n.flags|=32),n.memoizedState!==null&&(u=Hu(e,n,G4,null,null,s),Xl._currentValue=u),wo(e,n),Nt(e,n,r,s),n.child;case 6:return e===null&&Le&&((e=s=nt)&&(s=Mv(s,n.pendingProps,Sa),s!==null?(n.stateNode=s,At=n,nt=null,e=!0):e=!1),e||Yn(n)),null;case 13:return a2(e,n,s);case 4:return _t(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Pi(n,null,r,s):Nt(e,n,r,s),n.child;case 11:return K1(e,n,n.type,n.pendingProps,s);case 7:return Nt(e,n,n.pendingProps,s),n.child;case 8:return Nt(e,n,n.pendingProps.children,s),n.child;case 12:return Nt(e,n,n.pendingProps.children,s),n.child;case 10:return r=n.pendingProps,$n(n,n.type,r.value),Nt(e,n,r.children,s),n.child;case 9:return u=n.type._context,r=n.pendingProps.children,Li(n),u=Ot(u),r=r(u),n.flags|=1,Nt(e,n,r,s),n.child;case 14:return F1(e,n,n.type,n.pendingProps,s);case 15:return X1(e,n,n.type,n.pendingProps,s);case 19:return i2(e,n,s);case 31:return Q4(e,n,s);case 22:return Q1(e,n,s,n.pendingProps);case 24:return Li(n),r=Ot(bt),e===null?(u=Au(),u===null&&(u=Je,d=ku(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=s),u=d),n.memoizedState={parent:r,cache:u}
vendor: 6,295 bytes, line 8
8,Nu(n),$n(n,bt,u)):((e.lanes&s)!==0&&(Uu(e,n),kl(n,null,null,s),Ml()),u=e.memoizedState,d=n.memoizedState,u.parent!==r?(u={parent:r,cache:r},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),$n(n,bt,r)):(r=d.cache,$n(n,bt,r),r!==u.cache&&Mu(n,[bt],s,!0))),Nt(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function wn(e){e.flags|=4}function gh(e,n,s,r,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(O2())e.flags|=8192;else throw Bi=so,Ou}else e.flags&=-16777217}function l2(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wm(n))if(O2())e.flags|=8192;else throw Bi=so,Ou}function Eo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?hl():536870912,e.lanes|=n,Ls|=n)}function zl(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var r=null;s!==null;)s.alternate!==null&&(r=s),s=s.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function it(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,r=0;if(n)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=s,n}function J4(e,n,s){var r=n.pendingProps;switch(Eu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(n),null;case 1:return it(n),null;case 3:return s=n.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),_n(bt),Qe(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Es(n)?wn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Cu())),it(n),null;case 26:var u=n.type,d=n.memoizedState;return e===null?(wn(n),d!==null?(it(n),l2(n,d)):(it(n),gh(n,u,null,r,s))):d?d!==e.memoizedState?(wn(n),it(n),l2(n,d)):(it(n),n.flags&=-16777217):(e=e.memoizedProps,e!==r&&wn(n),it(n),gh(n,u,e,r,s)),null;case 27:if(ss(n),s=we.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==r&&wn(n);else{if(!r){if(n.stateNode===null)throw Error(l(166));return it(n),null}e=ne.current,Es(n)?Bf(n):(e=fm(u,r,s),n.stateNode=e,wn(n))}return it(n),null;case 5:if(ss(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==r&&wn(n);else{if(!r){if(n.stateNode===null)throw Error(l(166));return it(n),null}if(d=ne.current,Es(n))Bf(n);else{var p=jo(we.current);switch(d){case 1:d=p.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=p.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=p.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?p.createElement("select",{is:r.is}):p.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?p.createElement(u,{is:r.is}):p.createElement(u)}}d[ie]=n,d[se]=r;e:for(p=n.child;p!==null;){if(p.tag===5||p.tag===6)d.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===n)break e;for(;p.sibling===null;){if(p.return===null||p.return===n)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}n.stateNode=d;e:switch(Ut(d,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&wn(n)}}return it(n),gh(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,s),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==r&&wn(n);else{if(typeof r!="string"&&n.stateNode===null)throw Error(l(166));if(e=we.current,Es(n)){if(e=n.stateNode,s=n.memoizedProps,r=null,u=At,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[ie]=n,e=!!(e.nodeValue===s||r!==null&&r.suppressHydrationWarning===!0||am(e.nodeValue,s)),e||Yn(n,!0)}else e=jo(e).createTextNode(r),e[ie]=n,n.stateNode=e}return it(n),null;case 31:if(s=n.memoizedState,e===null||e.memoizedState!==null){if(r=Es(n),s!==null){if(e===null){if(!r)throw Error(l(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[ie]=n}else Ui(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),e=!1}else s=Cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return n.flags&256?(oa(n),n):(oa(n),null);if((n.flags&128)!==0)throw Error(l(558))}return it(n),null;case 13:if(r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Es(n),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(l(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(l(317));u[ie]=n}else Ui(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),u=!1}else u=Cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(oa(n),n):(oa(n),null)}return oa(n),(n.flags&128)!==0?(n.lanes=s,n):(s=r!==null,e=e!==null&&e.memoizedState!==null,s&&(r=n.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==u&&(r.flags|=2048)),s!==e&&s&&(n.child.flags|=8192),Eo(n,n.updateQueue),it(n),null);case 4:return Qe(),e===null&&Ih(n.stateNode.containerInfo),it(n),null;case 10:return _n(n.type),it(n),null;case 19:if($(mt),r=n.memoizedState,r===null)return it(n),null;if(u=(n.flags&128)!==0,d=r.rendering,d===null)if(u)zl(r,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=co(e),d!==null){for(n.flags|=128,zl(r,!1),e=d.updateQueue,n.updateQueue=e,Eo(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)Uf(s,e),s=s.sibling;return ee(mt,mt.current&1|2),Le&&gn(n,r.treeForkCount),n.child}e=e.sibling}r.tail!==null&&qt()>
vendor: 23,279 bytes, line 8
8Mo&&(n.flags|=128,u=!0,zl(r,!1),n.lanes=4194304)}else{if(!u)if(e=co(d),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Eo(n,e),zl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Le)return it(n),null}else 2*qt()-r.renderingStartTime>Mo&&s!==536870912&&(n.flags|=128,u=!0,zl(r,!1),n.lanes=4194304);r.isBackwards?(d.sibling=n.child,n.child=d):(e=r.last,e!==null?e.sibling=d:n.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=qt(),e.sibling=null,s=mt.current,ee(mt,u?s&1|2:s&1),Le&&gn(n,r.treeForkCount),e):(it(n),null);case 22:case 23:return oa(n),ju(),r=n.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?(s&536870912)!==0&&(n.flags&128)===0&&(it(n),n.subtreeFlags&6&&(n.flags|=8192)):it(n),s=n.updateQueue,s!==null&&Eo(n,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==s&&(n.flags|=2048),e!==null&&$(Ii),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),_n(bt),it(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function W4(e,n){switch(Eu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return _n(bt),Qe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ss(n),null;case 31:if(n.memoizedState!==null){if(oa(n),n.alternate===null)throw Error(l(340));Ui()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(oa(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));Ui()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(mt),null;case 4:return Qe(),null;case 10:return _n(n.type),null;case 22:case 23:return oa(n),ju(),e!==null&&$(Ii),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return _n(bt),null;case 25:return null;default:return null}}function r2(e,n){switch(Eu(n),n.tag){case 3:_n(bt),Qe();break;case 26:case 27:case 5:ss(n);break;case 4:Qe();break;case 31:n.memoizedState!==null&&oa(n);break;case 13:oa(n);break;case 19:$(mt);break;case 10:_n(n.type);break;case 22:case 23:oa(n),ju(),e!==null&&$(Ii);break;case 24:_n(bt)}}function Ll(e,n){try{var s=n.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var u=r.next;s=u;do{if((s.tag&e)===e){r=void 0;var d=s.create,p=s.inst;r=d(),p.destroy=r}s=s.next}while(s!==u)}}catch(S){$e(n,n.return,S)}}function Jn(e,n,s){try{var r=n.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var d=u.next;r=d;do{if((r.tag&e)===e){var p=r.inst,S=p.destroy;if(S!==void 0){p.destroy=void 0,u=n;var C=s,j=S;try{j()}catch(Y){$e(u,C,Y)}}}r=r.next}while(r!==d)}}catch(Y){$e(n,n.return,Y)}}function o2(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{Jf(n,s)}catch(r){$e(e,e.return,r)}}}function c2(e,n,s){s.props=Gi(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(r){$e(e,n,r)}}function Il(e,n){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof s=="function"?e.refCleanup=s(r):s.current=r}}catch(u){$e(e,n,u)}}function Za(e,n){var s=e.ref,r=e.refCleanup;if(s!==null)if(typeof r=="function")try{r()}catch(u){$e(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){$e(e,n,u)}else s.current=null}function u2(e){var n=e.type,s=e.memoizedProps,r=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break e;case"img":s.src?r.src=s.src:s.srcSet&&(r.srcset=s.srcSet)}}catch(u){$e(e,e.return,u)}}function ph(e,n,s){try{var r=e.stateNode;wv(r,e.type,s,n),r[se]=n}catch(u){$e(e,e.return,u)}}function h2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&si(e.type)||e.tag===4}function _h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||h2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&si(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vh(e,n,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,n):(n=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,n.appendChild(e),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=dn));else if(r!==4&&(r===27&&si(e.type)&&(s=e.stateNode,n=null),e=e.child,e!==null))for(vh(e,n,s),e=e.sibling;e!==null;)vh(e,n,s),e=e.sibling}function xo(e,n,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(r!==4&&(r===27&&si(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(xo(e,n,s),e=e.sibling;e!==null;)xo(e,n,s),e=e.sibling}function d2(e){var n=e.stateNode,s=e.memoizedProps;try{for(var r=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);Ut(n,r,s),n[ie]=e,n[se]=s}catch(d){$e(e,e.return,d)}}var Sn=!1,Et=!1,yh=!1,f2=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function ev(e,n){if(e=e.containerInfo,Ph=Yo,e=Cf(e),du(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var u=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var p=0,S=-1,C=-1,j=0,Y=0,F=e,P=null;t:for(;;){for(var q;F!==s||u!==0&&F.nodeType!==3||(S=p+u),F!==d||r!==0&&F.nodeType!==3||(C=p+r),F.nodeType===3&&(p+=F.nodeValue.length),(q=F.firstChild)!==null;)P=F,F=q;for(;;){if(F===e)break t;if(P===s&&++j===u&&(S=p),P===d&&++Y===r&&(C=p),(q=F.nextSibling)!==null)break;F=P,P=F.parentNode}F=q}s=S===-1||C===-1?null:{start:S,end:C}}else s=null}s=s||{start:0,end:0}}else s=null;for(Hh={focusedElem:e,selectionRange:s},Yo=!1,Dt=n;Dt!==null;)if(n=Dt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Dt=e;else for(;Dt!==null;){switch(n=Dt,d=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)u=e[s],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,s=n,u=d.memoizedProps,d=d.memoizedState,r=s.stateNode;try{var ce=Gi(s.type,u);e=r.getSnapshotBeforeUpdate(ce,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(be){$e(s,s.return,be)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,s=e.nodeType,s===9)Vh(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,Dt=e;break}Dt=n.return}}function m2(e,n,s){var r=s.flags;switch(s.tag){case 0:case 11:case 15:xn(e,s),r&4&&Ll(5,s);break;case 1:if(xn(e,s),r&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(p){$e(s,s.return,p)}else{var u=Gi(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(p){$e(s,s.return,p)}}r&64&&o2(s),r&512&&Il(s,s.return);break;case 3:if(xn(e,s),r&64&&(e=s.updateQueue,e!==null)){if(n=null,s.child!==null)switch(s.child.tag){case 27:case 5:n=s.child.stateNode;break;case 1:n=s.child.stateNode}try{Jf(e,n)}catch(p){$e(s,s.return,p)}}break;case 27:n===null&&r&4&&d2(s);case 26:case 5:xn(e,s),n===null&&r&4&&u2(s),r&512&&Il(s,s.return);break;case 12:xn(e,s);break;case 31:xn(e,s),r&4&&_2(e,s);break;case 13:xn(e,s),r&4&&v2(e,s),r&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=cv.bind(null,s),kv(e,s))));break;case 22:if(r=s.memoizedState!==null||Sn,!r){n=n!==null&&n.memoizedState!==null||Et,u=Sn;var d=Et;Sn=r,(Et=n)&&!d?Cn(e,s,(s.subtreeFlags&8772)!==0):xn(e,s),Sn=u,Et=d}break;case 30:break;default:xn(e,s)}}function g2(e){var n=e.alternate;n!==null&&(e.alternate=null,g2(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Ze(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rt=null,Wt=!1;function En(e,n,s){for(s=s.child;s!==null;)p2(e,n,s),s=s.sibling}function p2(e,n,s){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(un,s)}catch{}switch(s.tag){case 26:Et||Za(s,n),En(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Et||Za(s,n);var r=rt,u=Wt;si(s.type)&&(rt=s.stateNode,Wt=!1),En(e,n,s),$l(s.stateNode),rt=r,Wt=u;break;case 5:Et||Za(s,n);case 6:if(r=rt,u=Wt,rt=null,En(e,n,s),rt=r,Wt=u,rt!==null)if(Wt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(s.stateNode)}catch(d){$e(s,n,d)}else try{rt.removeChild(s.stateNode)}catch(d){$e(s,n,d)}break;case 18:rt!==null&&(Wt?(e=rt,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Vs(e)):om(rt,s.stateNode));break;case 4:r=rt,u=Wt,rt=s.stateNode.containerInfo,Wt=!0,En(e,n,s),rt=r,Wt=u;break;case 0:case 11:case 14:case 15:Jn(2,s,n),Et||Jn(4,s,n),En(e,n,s);break;case 1:Et||(Za(s,n),r=s.stateNode,typeof r.componentWillUnmount=="function"&&c2(s,n,r)),En(e,n,s);break;case 21:En(e,n,s);break;case 22:Et=(r=Et)||s.memoizedState!==null,En(e,n,s),Et=r;break;default:En(e,n,s)}}function _2(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vs(e)}catch(s){$e(n,n.return,s)}}}function v2(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vs(e)}catch(s){$e(n,n.return,s)}}function tv(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new f2),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new f2),n;default:throw Error(l(435,e.tag))}}function Co(e,n){var s=tv(e);n.forEach(function(r){if(!s.has(r)){s.add(r);var u=uv.bind(null,e,r);r.then(u,u)}})}function ea(e,n){var s=n.deletions;if(s!==null)for(var r=0;r<s.length;r++){var u=s[r],d=e,p=n,S=p;e:for(;S!==null;){switch(S.tag){case 27:if(si(S.type)){rt=S.stateNode,Wt=!1;break e}break;case 5:rt=S.stateNode,Wt=!1;break e;case 3:case 4:rt=S.stateNode.containerInfo,Wt=!0;break e}S=S.return}if(rt===null)throw Error(l(160));p2(d,p,u),rt=null,Wt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)y2(n,e),n=n.sibling}var La=null;function y2(e,n){var s=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ea(n,e),ta(e),r&4&&(Jn(3,e,e.return),Ll(3,e),Jn(5,e,e.return));break;case 1:ea(n,e),ta(e),r&512&&(Et||s===null||Za(s,s.return)),r&64&&Sn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?r:s.concat(r))));break;case 26:var u=La;if(ea(n,e),ta(e),r&512&&(Et||s===null||Za(s,s.return)),r&4){var d=s!==null?s.memoizedState:null;if(r=e.memoizedState,s===null)if(r===null)if(e.stateNode===null){e:{r=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":d=u.getElementsByTagName("title")[0],(!d||d[ke]||d[ie]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),Ut(d,r,s),d[ie]=e,We(d),r=d;break e;case"link":var p=ym("link","href",u).get(r+(s.href||""));if(p){for(var S=0;S<p.length;S++)if(d=p[S],d.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&d.getAttribute("rel")===(s.rel==null?null:s.rel)&&d.getAttribute("title")===(s.title==null?null:s.title)&&d.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){p.splice(S,1);break t}}d=u.createElement(r),Ut(d,r,s),u.head.appendChild(d);break;case"meta":if(p=ym("meta","content",u).get(r+(s.content||""))){for(S=0;S<p.length;S++)if(d=p[S],d.getAttribute("content")===(s.content==null?null:""+s.content)&&d.getAttribute("name")===(s.name==null?null:s.name)&&d.getAttribute("property")===(s.property==null?null:s.property)&&d.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&d.getAttribute("charset")===(s.charSet==null?null:s.charSet)){p.splice(S,1);break t}}d=u.createElement(r),Ut(d,r,s),u.head.appendChild(d);break;default:throw Error(l(468,r))}d[ie]=e,We(d),r=d}e.stateNode=r}else bm(u,e.type,e.stateNode);else e.stateNode=vm(u,r,e.memoizedProps);else d!==r?(d===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):d.count--,r===null?bm(u,e.type,e.stateNode):vm(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&ph(e,e.memoizedProps,s.memoizedProps)}break;case 27:ea(n,e),ta(e),r&512&&(Et||s===null||Za(s,s.return)),s!==null&&r&4&&ph(e,e.memoizedProps,s.memoizedProps);break;case 5:if(ea(n,e),ta(e),r&512&&(Et||s===null||Za(s,s.return)),e.flags&32){u=e.stateNode;try{fs(u,"")}catch(ce){$e(e,e.return,ce)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,ph(e,u,s!==null?s.memoizedProps:u)),r&1024&&(yh=!0);break;case 6:if(ea(n,e),ta(e),r&4){if(e.stateNode===null)throw Error(l(162));r=e.memoizedProps,s=e.stateNode;try{s.nodeValue=r}catch(ce){$e(e,e.return,ce)}}break;case 3:if(Ho=null,u=La,La=Bo(n.containerInfo),ea(n,e),La=u,ta(e),r&4&&s!==null&&s.memoizedState.isDehydrated)try{Vs(n.containerInfo)}catch(ce){$e(e,e.return,ce)}yh&&(yh=!1,b2(e));break;case 4:r=La,La=Bo(e.stateNode.containerInfo),ea(n,e),ta(e),La=r;break;case 12:ea(n,e),ta(e);break;case 31:ea(n,e),ta(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Co(e,r)));break;case 13:ea(n,e),ta(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Ro=qt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Co(e,r)));break;case 22:u=e.memoizedState!==null;var C=s!==null&&s.memoizedState!==null,j=Sn,Y=Et;if(Sn=j||u,Et=Y||C,ea(n,e),Et=Y,Sn=j,ta(e),r&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(s===null||C||Sn||Et||qi(e)),s=null,n=e;;){if(n.tag===5||n.tag===26){if(s===null){C=s=n;try{if(d=C.stateNode,u)p=d.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{S=C.stateNode;var F=C.memoizedProps.style,P=F!=null&&F.hasOwnProperty("display")?F.display:null;S.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ce){$e(C,C.return,ce)}}}else if(n.tag===6){if(s===null){C=n;try{C.stateNode.nodeValue=u?"":C.memoizedProps}catch(ce){$e(C,C.return,ce)}}}else if(n.tag===18){if(s===null){C=n;try{var q=C.stateNode;u?cm(q,!0):cm(C.stateNode,!1)}catch(ce){$e(C,C.return,ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}r&4&&(r=e.updateQueue,r!==null&&(s=r.retryQueue,s!==null&&(r.retryQueue=null,Co(e,s))));break;case 19:ea(n,e),ta(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Co(e,r)));break;case 30:break;case 21:break;default:ea(n,e),ta(e)}}function ta(e){var n=e.flags;if(n&2){try{for(var s,r=e.return;r!==null;){if(h2(r)){s=r;break}r=r.return}if(s==null)throw Error(l(160));switch(s.tag){case 27:var u=s.stateNode,d=_h(e);xo(e,d,u);break;case 5:var p=s.stateNode;s.flags&32&&(fs(p,""),s.flags&=-33);var S=_h(e);xo(e,S,p);break;case 3:case 4:var C=s.stateNode.containerInfo,j=_h(e);vh(e,j,C);break;default:throw Error(l(161))}}catch(Y){$e(e,e.return,Y)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function b2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;b2(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function xn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)m2(e,n.alternate,n),n=n.sibling}function qi(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Jn(4,n,n.return),qi(n);break;case 1:Za(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&c2(n,n.return,s),qi(n);break;case 27:$l(n.stateNode);case 26:case 5:Za(n,n.return),qi(n);break;case 22:n.memoizedState===null&&qi(n);break;case 30:qi(n);break;default:qi(n)}e=e.sibling}}function Cn(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var r=n.alternate,u=e,d=n,p=d.flags;switch(d.tag){case 0:case 11:case 15:Cn(u,d,s),Ll(4,d);break;case 1:if(Cn(u,d,s),r=d,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(j){$e(r,r.return,j)}if(r=d,u=r.updateQueue,u!==null){var S=r.stateNode;try{var C=u.shared.hiddenCallbacks;if(C!==null)for(u.shared.hiddenCallbacks=null,u=0;u<C.length;u++)Zf(C[u],S)}catch(j){$e(r,r.return,j)}}s&&p&64&&o2(d),Il(d,d.return);break;case 27:d2(d);case 26:case 5:Cn(u,d,s),s&&r===null&&p&4&&u2(d),Il(d,d.return);break;case 12:Cn(u,d,s);break;case 31:Cn(u,d,s),s&&p&4&&_2(u,d);break;case 13:Cn(u,d,s),s&&p&4&&v2(u,d);break;case 22:d.memoizedState===null&&Cn(u,d,s),Il(d,d.return);break;case 30:break;default:Cn(u,d,s)}n=n.sibling}}function bh(e,n){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&El(s))}function wh(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&El(e))}function Ia(e,n,s,r){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)w2(e,n,s,r),n=n.sibling}function w2(e,n,s,r){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Ia(e,n,s,r),u&2048&&Ll(9,n);break;case 1:Ia(e,n,s,r);break;case 3:Ia(e,n,s,r),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&El(e)));break;case 12:if(u&2048){Ia(e,n,s,r),e=n.stateNode;try{var d=n.memoizedProps,p=d.id,S=d.onPostCommit;typeof S=="function"&&S(p,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){$e(n,n.return,C)}}else Ia(e,n,s,r);break;case 31:Ia(e,n,s,r);break;case 13:Ia(e,n,s,r);break;case 23:break;case 22:d=n.stateNode,p=n.alternate,n.memoizedState!==null?d._visibility&2?Ia(e,n,s,r):jl(e,n):d._visibility&2?Ia(e,n,s,r):(d._visibility|=2,Ns(e,n,s,r,(n.subtreeFlags&10256)!==0||!1)),u&2048&&bh(p,n);break;case 24:Ia(e,n,s,r),u&2048&&wh(n.alternate,n);break;default:Ia(e,n,s,r)}}function Ns(e,n,s,r,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=e,p=n,S=s,C=r,j=p.flags;switch(p.tag){case 0:case 11:case 15:Ns(d,p,S,C,u),Ll(8,p);break;case 23:break;case 22:var Y=p.stateNode;p.memoizedState!==null?Y._visibility&2?Ns(d,p,S,C,u):jl(d,p):(Y._visibility|=2,Ns(d,p,S,C,u)),u&&j&2048&&bh(p.alternate,p);break;case 24:Ns(d,p,S,C,u),u&&j&2048&&wh(p.alternate,p);break;default:Ns(d,p,S,C,u)}n=n.sibling}}function jl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,r=n,u=r.flags;switch(r.tag){case 22:jl(s,r),u&2048&&bh(r.alternate,r);break;case 24:jl(s,r),u&2048&&wh(r.alternate,r);break;default:jl(s,r)}n=n.sibling}}var Bl=8192;function Us(e,n,s){if(e.subtreeFlags&Bl)for(e=e.child;e!==null;)S2(e,n,s),e=e.sibling}function S2(e,n,s){switch(e.tag){case 26:Us(e,n,s),e.flags&Bl&&e.memoizedState!==null&&Hv(s,La,e.memoizedState,e.memoizedProps);break;case 5:Us(e,n,s);break;case 3:case 4:var r=La;La=Bo(e.stateNode.containerInfo),Us(e,n,s),La=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Bl,Bl=16777216,Us(e,n,s),Bl=r):Us(e,n,s));break;default:Us(e,n,s)}}function E2(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Pl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var r=n[s];Dt=r,C2(r,e)}E2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)x2(e),e=e.sibling}function x2(e){switch(e.tag){case 0:case 11:case 15:Pl(e),e.flags&2048&&Jn(9,e,e.return);break;case 3:Pl(e);break;case 12:Pl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,To(e)):Pl(e);break;default:Pl(e)}}function To(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var r=n[s];Dt=r,C2(r,e)}E2(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Jn(8,n,n.return),To(n);break;case 22:s=n.stateNode,s._visibility&2&&(s._visibility&=-3,To(n));break;default:To(n)}e=e.sibling}}function C2(e,n){for(;Dt!==null;){var s=Dt;switch(s.tag){case 0:case 11:case 15:Jn(8,s,n);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var r=s.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:El(s.memoizedState.cache)}if(r=s.child,r!==null)r.return=s,Dt=r;else e:for(s=e;Dt!==null;){r=Dt;var u=r.sibling,d=r.return;if(g2(r),r===s){Dt=null;break e}if(u!==null){u.return=d,Dt=u;break e}Dt=d}}}var av={getCacheForType:function(e){var n=Ot(bt),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s},cacheSignal:function(){return Ot(bt).controller.signal}},nv=typeof WeakMap=="function"?WeakMap:Map,qe=0,Je=null,Oe=null,Ue=0,Ye=0,ca=null,Wn=!1,zs=!1,Sh=!1,Tn=0,ht=0,ei=0,Vi=0,Eh=0,ua=0,Ls=0,Hl=null,aa=null,xh=!1,Ro=0,T2=0,Mo=1/0,ko=null,ti=null,Tt=0,ai=null,Is=null,Rn=0,Ch=0,Th=null,R2=null,Gl=0,Rh=null;function ha(){return(qe&2)!==0&&Ue!==0?Ue&-Ue:H.T!==null?Nh():Q()}function M2(){if(ua===0)if((Ue&536870912)===0||Le){var e=hn;hn<<=1,(hn&3932160)===0&&(hn=262144),ua=e}else ua=536870912;return e=ra.current,e!==null&&(e.flags|=32),ua}function na(e,n,s){(e===Je&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(js(e,0),ni(e,Ue,ua,!1)),$a(e,s),((qe&2)===0||e!==Je)&&(e===Je&&((qe&2)===0&&(Vi|=s),ht===4&&ni(e,Ue,ua,!1)),Ja(e))}function k2(e,n,s){if((qe&6)!==0)throw Error(l(327));var r=!s&&(n&127)===0&&(n&e.expiredLanes)===0||Bn(e,n),u=r?lv(e,n):kh(e,n,!0),d=r;do{if(u===0){zs&&!r&&ni(e,n,0,!1);break}else{if(s=e.current.alternate,d&&!iv(s)){u=kh(e,n,!1),d=!1;continue}if(u===2){if(d=n,e.errorRecoveryDisabledLanes&d)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){n=p;e:{var S=e;u=Hl;var C=S.current.memoizedState.isDehydrated;if(C&&(js(S,p).flags|=256),p=kh(S,p,!1),p!==2){if(Sh&&!C){S.errorRecoveryDisabledLanes|=d,Vi|=d,u=4;break e}d=aa,aa=u,d!==null&&(aa===null?aa=d:aa.push.apply(aa,d))}u=p}if(d=!1,u!==2)continue}}if(u===1){js(e,0),ni(e,n,0,!0);break}e:{switch(r=e,d=u,d){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:ni(r,n,ua,!Wn);break e;case 2:aa=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(u=Ro+300-qt(),10<u)){if(ni(r,n,ua,!Wn),os(r,0,!0)!==0)break e;Rn=n,r.timeoutHandle=lm(D2.bind(null,r,s,aa,ko,xh,n,ua,Vi,Ls,Wn,d,"Throttled",-0,0),u);break e}D2(r,s,aa,ko,xh,n,ua,Vi,Ls,Wn,d,null,-0,0)}}break}while(!0);Ja(e)}function D2(e,n,s,r,u,d,p,S,C,j,Y,F,P,q){if(e.timeoutHandle=-1,F=n.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},S2(n,d,F);
vendor: 2,229 bytes, line 8
8var ce=(d&62914560)===d?Ro-qt():(d&4194048)===d?T2-qt():0;if(ce=Gv(F,ce),ce!==null){Rn=d,e.cancelPendingCommit=ce(j2.bind(null,e,n,d,s,r,u,p,S,C,Y,F,null,P,q)),ni(e,d,p,!j);return}}j2(e,n,d,s,r,u,p,S,C)}function iv(e){for(var n=e;;){var s=n.tag;if((s===0||s===11||s===15)&&n.flags&16384&&(s=n.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var r=0;r<s.length;r++){var u=s[r],d=u.getSnapshot;u=u.value;try{if(!sa(d(),u))return!1}catch{return!1}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ni(e,n,s,r){n&=~Eh,n&=~Vi,e.suspendedLanes|=n,e.pingedLanes&=~n,r&&(e.warmLanes|=n),r=e.expirationTimes;for(var u=n;0<u;){var d=31-jt(u),p=1<<d;r[d]=-1,u&=~p}s!==0&&jr(e,s,n)}function Do(){return(qe&6)===0?(ql(0),!1):!0}function Mh(){if(Oe!==null){if(Ye===0)var e=Oe.return;else e=Oe,pn=zi=null,Vu(e),Ms=null,Cl=0,e=Oe;for(;e!==null;)r2(e.alternate,e),e=e.return;Oe=null}}function js(e,n){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,xv(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Rn=0,Mh(),Je=e,Oe=s=mn(e.current,null),Ue=n,Ye=0,ca=null,Wn=!1,zs=Bn(e,n),Sh=!1,Ls=ua=Eh=Vi=ei=ht=0,aa=Hl=null,xh=!1,(n&8)!==0&&(n|=n&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=n;0<r;){var u=31-jt(r),d=1<<u;n|=e[u],r&=~d}return Tn=n,Qr(),s}function A2(e,n){Te=null,H.H=Nl,n===Rs||n===io?(n=Kf(),Ye=3):n===Ou?(n=Kf(),Ye=4):Ye=n===lh?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,ca=n,Oe===null&&(ht=1,yo(e,ya(n,e.current)))}function O2(){var e=ra.current;return e===null?!0:(Ue&4194048)===Ue?Ea===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?e===Ea:!1}function N2(){var e=H.H;return H.H=Nl,e===null?Nl:e}function U2(){var e=H.A;return H.A=av,e}function Ao(){ht=4,Wn||(Ue&4194048)!==Ue&&ra.current!==null||(zs=!0),(ei&134217727)===0&&(Vi&134217727)===0||Je===null||ni(Je,Ue,ua,!1)}function kh(e,n,s){var r=qe;qe|=2;var u=N2(),d=U2();(Je!==e||Ue!==n)&&(ko=null,js(e,n)),n=!1;var p=ht;e:do try{if(Ye!==0&&Oe!==null){var S=Oe,C=ca;switch(Ye){case 8:Mh(),p=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(n=!0);var j=Ye;
vendor: 4,594 bytes, line 8
8if(Ye=0,ca=null,Bs(e,S,C,j),s&&zs){p=0;break e}break;default:j=Ye,Ye=0,ca=null,Bs(e,S,C,j)}}sv(),p=ht;break}catch(Y){A2(e,Y)}while(!0);return n&&e.shellSuspendCounter++,pn=zi=null,qe=r,H.H=u,H.A=d,Oe===null&&(Je=null,Ue=0,Qr()),p}function sv(){for(;Oe!==null;)z2(Oe)}function lv(e,n){var s=qe;qe|=2;var r=N2(),u=U2();Je!==e||Ue!==n?(ko=null,Mo=qt()+500,js(e,n)):zs=Bn(e,n);e:do try{if(Ye!==0&&Oe!==null){n=Oe;var d=ca;t:switch(Ye){case 1:Ye=0,ca=null,Bs(e,n,d,1);break;case 2:case 9:if(Yf(d)){Ye=0,ca=null,L2(n);break}n=function(){Ye!==2&&Ye!==9||Je!==e||(Ye=7),Ja(e)},d.then(n,n);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:Yf(d)?(Ye=0,ca=null,L2(n)):(Ye=0,ca=null,Bs(e,n,d,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var S=Oe;if(p?wm(p):S.stateNode.complete){Ye=0,ca=null;var C=S.sibling;if(C!==null)Oe=C;else{var j=S.return;j!==null?(Oe=j,Oo(j)):Oe=null}break t}}Ye=0,ca=null,Bs(e,n,d,5);break;case 6:Ye=0,ca=null,Bs(e,n,d,6);break;case 8:Mh(),ht=6;break e;default:throw Error(l(462))}}rv();break}catch(Y){A2(e,Y)}while(!0);return pn=zi=null,H.H=r,H.A=u,qe=s,Oe!==null?0:(Je=null,Ue=0,Qr(),ht)}function rv(){for(;Oe!==null&&!$c();)z2(Oe)}function z2(e){var n=s2(e.alternate,e,Tn);e.memoizedProps=e.pendingProps,n===null?Oo(e):Oe=n}function L2(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=W1(s,n,n.pendingProps,n.type,void 0,Ue);break;case 11:n=W1(s,n,n.pendingProps,n.type.render,n.ref,Ue);break;case 5:Vu(n);default:r2(s,n),n=Oe=Uf(n,Tn),n=s2(s,n,Tn)}e.memoizedProps=e.pendingProps,n===null?Oo(e):Oe=n}function Bs(e,n,s,r){pn=zi=null,Vu(n),Ms=null,Cl=0;var u=n.return;try{if(X4(e,u,n,s,Ue)){ht=1,yo(e,ya(s,e.current)),Oe=null;return}}catch(d){if(u!==null)throw Oe=u,d;ht=1,yo(e,ya(s,e.current)),Oe=null;return}n.flags&32768?(Le||r===1?e=!0:zs||(Ue&536870912)!==0?e=!1:(Wn=e=!0,(r===2||r===9||r===3||r===6)&&(r=ra.current,r!==null&&r.tag===13&&(r.flags|=16384))),I2(n,e)):Oo(n)}function Oo(e){var n=e;do{if((n.flags&32768)!==0){I2(n,Wn);return}e=n.return;var s=J4(n.alternate,n,Tn);if(s!==null){Oe=s;return}if(n=n.sibling,n!==null){Oe=n;return}Oe=n=e}while(n!==null);ht===0&&(ht=5)}function I2(e,n){do{var s=W4(e.alternate,e);if(s!==null){s.flags&=32767,Oe=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=s}while(e!==null);ht=6,Oe=null}function j2(e,n,s,r,u,d,p,S,C){e.cancelPendingCommit=null;do No();while(Tt!==0);if((qe&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(d=n.lanes|n.childLanes,d|=_u,Ir(e,s,d,p,S,C),e===Je&&(Oe=Je=null,Ue=0),Is=n,ai=e,Rn=s,Ch=d,Th=u,R2=r,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hv(jn,function(){return q2(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||r){r=H.T,H.T=null,u=W.p,W.p=2,p=qe,qe|=4;try{ev(e,n,s)}finally{qe=p,W.p=u,H.T=r}}Tt=1,B2(),P2(),H2()}}function B2(){if(Tt===1){Tt=0;var e=ai,n=Is,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=H.T,H.T=null;var r=W.p;W.p=2;var u=qe;qe|=4;try{y2(n,e);var d=Hh,p=Cf(e.containerInfo),S=d.focusedElem,C=d.selectionRange;if(p!==S&&S&&S.ownerDocument&&xf(S.ownerDocument.documentElement,S)){if(C!==null&&du(S)){var j=C.start,Y=C.end;if(Y===void 0&&(Y=j),"selectionStart"in S)S.selectionStart=j,S.selectionEnd=Math.min(Y,S.value.length);else{var F=S.ownerDocument||document,P=F&&F.defaultView||window;if(P.getSelection){var q=P.getSelection(),ce=S.textContent.length,be=Math.min(C.start,ce),Xe=C.end===void 0?be:Math.min(C.end,ce);!q.extend&&be>Xe&&(p=Xe,Xe=be,be=p);var N=Ef(S,be),D=Ef(S,Xe);if(N&&D&&(q.rangeCount!==1||q.anchorNode!==N.node||q.anchorOffset!==N.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var I=F.createRange();I.setStart(N.node,N.offset),q.removeAllRanges(),be>Xe?(q.addRange(I),q.extend(D.node,D.offset)):(I.setEnd(D.node,D.offset),q.addRange(I))}}}}for(F=[],q=S;q=q.parentNode;)q.nodeType===1&&F.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<F.length;S++){var K=F[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Yo=!!Ph,Hh=Ph=null}finally{qe=u,W.p=r,H.T=s}}e.current=n,Tt=2}}function P2(){if(Tt===2){Tt=0;var e=ai,n=Is,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=H.T,H.T=null;var r=W.p;W.p=2;var u=qe;qe|=4;try{m2(e,n.alternate,n)}finally{qe=u,W.p=r,H.T=s}}Tt=3}}function H2(){if(Tt===4||Tt===3){Tt=0,Kc();var e=ai,n=Is,s=Rn,r=R2;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Tt=5:(Tt=0,Is=ai=null,G2(e,e.pen
vendor: 5,980 bytes, line 8
8dingLanes));var u=e.pendingLanes;if(u===0&&(ti=null),B(s),n=n.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(un,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=H.T,u=W.p,W.p=2,H.T=null;try{for(var d=e.onRecoverableError,p=0;p<r.length;p++){var S=r[p];d(S.value,{componentStack:S.stack})}}finally{H.T=n,W.p=u}}(Rn&3)!==0&&No(),Ja(e),u=e.pendingLanes,(s&261930)!==0&&(u&42)!==0?e===Rh?Gl++:(Gl=0,Rh=e):Gl=0,ql(0)}}function G2(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,El(n)))}function No(){return B2(),P2(),H2(),q2()}function q2(){if(Tt!==5)return!1;var e=ai,n=Ch;Ch=0;var s=B(Rn),r=H.T,u=W.p;try{W.p=32>s?32:s,H.T=null,s=Th,Th=null;var d=ai,p=Rn;if(Tt=0,Is=ai=null,Rn=0,(qe&6)!==0)throw Error(l(331));var S=qe;if(qe|=4,x2(d.current),w2(d,d.current,p,s),qe=S,ql(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(un,d)}catch{}return!0}finally{W.p=u,H.T=r,G2(e,n)}}function V2(e,n,s){n=ya(s,n),n=sh(e.stateNode,n,2),e=Xn(e,n,2),e!==null&&($a(e,2),Ja(e))}function $e(e,n,s){if(e.tag===3)V2(e,e,s);else for(;n!==null;){if(n.tag===3){V2(n,e,s);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ti===null||!ti.has(r))){e=ya(s,e),s=Y1(2),r=Xn(n,s,2),r!==null&&($1(s,r,n,e),$a(r,2),Ja(r));break}}n=n.return}}function Dh(e,n,s){var r=e.pingCache;if(r===null){r=e.pingCache=new nv;var u=new Set;r.set(n,u)}else u=r.get(n),u===void 0&&(u=new Set,r.set(n,u));u.has(s)||(Sh=!0,u.add(s),e=ov.bind(null,e,n,s),n.then(e,e))}function ov(e,n,s){var r=e.pingCache;r!==null&&r.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Je===e&&(Ue&s)===s&&(ht===4||ht===3&&(Ue&62914560)===Ue&&300>qt()-Ro?(qe&2)===0&&js(e,0):Eh|=s,Ls===Ue&&(Ls=0)),Ja(e)}function Y2(e,n){n===0&&(n=hl()),e=Oi(e,n),e!==null&&($a(e,n),Ja(e))}function cv(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),Y2(e,s)}function uv(e,n){var s=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(n),Y2(e,s)}function hv(e,n){return rs(e,n)}var Uo=null,Ps=null,Ah=!1,zo=!1,Oh=!1,ii=0;function Ja(e){e!==Ps&&e.next===null&&(Ps===null?Uo=Ps=e:Ps=Ps.next=e),zo=!0,Ah||(Ah=!0,fv())}function ql(e,n){if(!Oh&&zo){Oh=!0;do for(var s=!1,r=Uo;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var d=0;else{var p=r.suspendedLanes,S=r.pingedLanes;d=(1<<31-jt(42|e)+1)-1,d&=u&~(p&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,X2(r,d))}else d=Ue,d=os(r,r===Je?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||Bn(r,d)||(s=!0,X2(r,d));r=r.next}while(s);Oh=!1}}function dv(){$2()}function $2(){zo=Ah=!1;var e=0;ii!==0&&Ev()&&(e=ii);for(var n=qt(),s=null,r=Uo;r!==null;){var u=r.next,d=K2(r,n);d===0?(r.next=null,s===null?Uo=u:s.next=u,u===null&&(Ps=s)):(s=r,(e!==0||(d&3)!==0)&&(zo=!0)),r=u}Tt!==0&&Tt!==5||ql(e),ii!==0&&(ii=0)}function K2(e,n){for(var s=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var p=31-jt(d),S=1<<p,C=u[p];C===-1?((S&s)===0||(S&r)!==0)&&(u[p]=Qc(S,n)):C<=n&&(e.expiredLanes|=S),d&=~S}if(n=Je,s=Ue,s=os(e,e===n?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,s===0||e===n&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&cl(r),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Bn(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(r!==null&&cl(r),B(s)){case 2:case 8:s=ul;break;case 32:s=jn;break;case 268435456:s=pa;break;default:s=jn}return r=F2.bind(null,e),s=rs(s,r),e.callbackPriority=n,e.callbackNode=s,n}return r!==null&&r!==null&&cl(r),e.callbackPriority=2,e.callbackNode=null,2}function F2(e,n){if(Tt!==0&&Tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(No()&&e.callbackNode!==s)return null;var r=Ue;return r=os(e,e===Je?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(k2(e,r,n),K2(e,qt()),e.callbackNode!=null&&e.callbackNode===s?F2.bind(null,e):null)}function X2(e,n){if(No())return null;k2(e,n,!0)}function fv(){Cv(function(){(qe&6)!==0?rs(In,dv):$2()})}function Nh(){if(ii===0){var e=Cs;e===0&&(e=Ci,Ci<<=1,(Ci&261888)===0&&(Ci=256)),ii=e}return ii}function Q2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gr(""+e)}function Z2(e,n){var s=n.ownerDocument.createElement("input");return s.name=n.name,s.value=n.value,e.id&&s.setAttribute("form",e.id),n.parentNode.insertBefore(s,n),e=new FormData(e),s.parentNode.removeChild(s),e}function mv(e,n,s,r,u){if(n==="submit"&&s&&s.stateNode===u){var d=Q2((u[se]||null).action),p=r.submitter;p&&(n=(n=p[se]||null)?Q2(n.formAction):p.getAttribute("formAction"),n!==null&&(d=n,p=null));var S=new $r("action","action",null,r,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ii!==0){var C=p?Z2(u,p):new FormData(u);Wu(s,{pending:!0,data:C,method:u.method,action:d},null,C)}}else typeof d=="function"&&(S.preventDefault(),C=p?Z2(u,p):new FormData(u),Wu(s,{pending:!0,data:C,method:u.method,action:d},d,C))},currentTarget:u}]})}}for(var Uh=0;Uh<pu.length;Uh++){var zh=pu[Uh],gv=zh.toLowerCase(),pv=zh[0].toUpperCase()+zh.slice(1);za(gv,"on"+pv)}za(Mf,"onAnimationEnd"),za(kf,"onAnimationIteration"),za(Df,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(O4,"onTransitionRun"),za(N4,"onTransitionStart"),za(U4,"onTransitionCancel"),za(Af,"onTransitionEnd"),Ka("onMouseEnter",["mouseout","mouseover"]),Ka("onMouseLeave",["mouseout","mouseover"]),Ka("onPointerEnter",["pointerout","pointerover"]),Ka("onPointerLeave",["pointerout","pointerover"]),kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kt("onSelect","focusout contextmenu dragend focu
8sin keydown keyup mousedown mouseup selectionchange".split(" ")),kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="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(" "),_v=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function J2(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var r=e[s],u=r.event;r=r.listeners;e:{var d=void 0;if(n)for(var p=r.length-1;0<=p;p--){var S=r[p],C=S.instance,j=S.currentTarget;if(S=S.listener,C!==d&&u.isPropagationStopped())break e;d=S,u.currentTarget=j;try{d(u)}catch(Y){Xr(Y)}u.currentTarget=null,d=C}else for(p=0;p<r.length;p++){if(S=r[p],C=S.instance,j=S.currentTarget,S=S.listener,C!==d&&u.isPropagationStopped())break e;d=S,u.currentTarget=j;try{d(u)}catch(Y){Xr(Y)}u.currentTarget=null,d=C}}}}function Ne(e,n){var s=n[le];s===void 0&&(s=n[le]=new Set);var r=e+"__bubble";s.has(r)||(W2(n,e,2,!1),s.add(r))}function Lh(e,n,s){var r=0;n&&(r|=4),W2(s,e,r,n)}var Lo="_reactListening"+Math.random().toString(36).slice(2);function Ih(e){if(!e[Lo]){e[Lo]=!0,Hn.forEach(function(s){s!=="selectionchange"&&(_v.has(s)||Lh(s,!1,e),Lh(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Lo]||(n[Lo]=!0,Lh("selectionchange",!1,n))}}function W2(e,n,s,r){switch(Mm(n)){case 2:var u=Yv;break;case 8:u=$v;break;default:u=Jh}s=u.bind(null,n,s,e),u=void 0,!nu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(n,s,{capture:!0,passive:u}):e.addEventListener(n,s,!0):u!==void 0?e.addEventListener(n,s,{passive:u}):e.addEventListener(n,s,!1)}function jh(e,n,s,r,u){var d=r;if((n&1)===0&&(n&2)===0&&r!==null)e:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var S=r.stateNode.containerInfo;if(S===u)break;if(p===4)for(p=r.return;p!==null;){var C=p.tag;if((C===3||C===4)&&p.stateNode.containerInfo===u)return;p=p.return}for(;S!==null;){if(p=tt(S),p===null)return;if(C=p.tag,C===5||C===6||C===26||C===27){r=d=p;continue e}S=S.parentNode}}r=r.return}nf(function(){var j=d,Y=tu(s),F=[];e:{var P=Of.get(e);if(P!==void 0){var q=$r,ce=e;switch(e){case"keypress":if(Vr(s)===0)break e;case"keydown":case"keyup":q=u4;break;case"focusin":ce="focus",q=ru;break;case"focusout":ce="blur",q=ru;break;case"beforeblur":case"afterblur":q=ru;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=J_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=f4;break;case Mf:case kf:case Df:q=t4;break;case Af:q=g4;break;case"scroll":case"scrollend":q=Q_;break;case"wheel":q=_4;break;case"copy":case"cut":case"paste":q=n4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=cf;break;case"toggle":case"beforetoggle":q=y4}var be=(n&4)!==0,Xe=!be&&(e==="scroll"||e==="scrollend"),N=be?P!==null?P+"Capture":null:P;be=[];for(var D=j,I;D!==null;){var K=D;if(I=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||I===null||N===null||(K=dl(D,N),K!=null&&be.push(Yl(D,K,I))),Xe)break;D=D.return}0<be.length&&(P=new q(P,ce,null,s,Y),F.push({event:P,listeners:be}))}}if((n&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",P&&s!==eu&&(ce=s.relatedTarget||s.fromElement)&&(tt(ce)||ce[de]))break e;if((q||P)&&(P=Y.window===Y?Y:(P=Y.ownerDocument)?P.defaultView||P.parentWindow:window,q?(ce=s.relatedTarget||s.toElement,q=j,ce=ce?tt(ce):null,ce!==null&&(Xe=c(ce),be=ce.tag,ce!==Xe||be!==5&&be!==27&&be!==6)&&(ce=null)):(q=null,ce=j),q!==ce)){if(be=rf,K="onMouseLeave",N="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(be=cf,K="onPointerLeave",N="onPointerEnter",D="pointer"),Xe=q==null?P:je(q),I=ce==null?P:je(ce),P=new be(K,D+"leave",q,s,Y),P.target=Xe,P.relatedTarget=I,K=null,tt(Y)===j&&(be=new be(N,D+"enter",ce,s,Y),be.target=I,be.relatedTarget=Xe,K=be),Xe=K,q&&ce)t:{for(be=vv,N=q,D=ce,I=0,K=N;K;K=be(K))I++;K=0;for(var _e=D;_e;_e=be(_e))K++;for(;0<I-K;)N=be(N),I--;for(;0<K-I;)D=be(D),K--;for(;I--;){if(N===D||D!==null&&N===D.alternate){be=N;break t}N=be(N),D=be(D)}be=null}else be=null;q!==null&&em(F,P,q,be,!1),ce!==null&&Xe!==null&&em(F,Xe,ce,be,!0)}}
vendor: 5,189 bytes, lines 8-9
8e:{if(P=j?je(j):window,q=P.nodeName&&P.nodeName.toLowerCase(),q==="select"||q==="input"&&P.type==="file")var He=_f;else if(gf(P))if(vf)He=k4;else{He=R4;var me=T4}else q=P.nodeName,!q||q.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?j&&Wc(j.elementType)&&(He=_f):He=M4;if(He&&(He=He(e,j))){pf(F,He,s,Y);break e}me&&me(e,P,j),e==="focusout"&&j&&P.type==="number"&&j.memoizedProps.value!=null&&Jc(P,"number",P.value)}switch(me=j?je(j):window,e){case"focusin":(gf(me)||me.contentEditable==="true")&&(_s=me,fu=j,bl=null);break;case"focusout":bl=fu=_s=null;break;case"mousedown":mu=!0;break;case"contextmenu":case"mouseup":case"dragend":mu=!1,Tf(F,s,Y);break;case"selectionchange":if(A4)break;case"keydown":case"keyup":Tf(F,s,Y)}var Re;if(cu)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else ps?ff(e,s)&&(ze="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ze="onCompositionStart");ze&&(uf&&s.locale!=="ko"&&(ps||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&ps&&(Re=sf()):(Gn=Y,iu="value"in Gn?Gn.value:Gn.textContent,ps=!0)),me=Io(j,ze),0<me.length&&(ze=new of(ze,e,null,s,Y),F.push({event:ze,listeners:me}),Re?ze.data=Re:(Re=mf(s),Re!==null&&(ze.data=Re)))),(Re=w4?S4(e,s):E4(e,s))&&(ze=Io(j,"onBeforeInput"),0<ze.length&&(me=new of("onBeforeInput","beforeinput",null,s,Y),F.push({event:me,listeners:ze}),me.data=Re)),mv(F,e,j,s,Y)}J2(F,n)})}function Yl(e,n,s){return{instance:e,listener:n,currentTarget:s}}function Io(e,n){for(var s=n+"Capture",r=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=dl(e,s),u!=null&&r.unshift(Yl(e,u,d)),u=dl(e,n),u!=null&&r.push(Yl(e,u,d))),e.tag===3)return r;e=e.return}return[]}function vv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function em(e,n,s,r,u){for(var d=n._reactName,p=[];s!==null&&s!==r;){var S=s,C=S.alternate,j=S.stateNode;if(S=S.tag,C!==null&&C===r)break;S!==5&&S!==26&&S!==27||j===null||(C=j,u?(j=dl(s,d),j!=null&&p.unshift(Yl(s,j,C))):u||(j=dl(s,d),j!=null&&p.push(Yl(s,j,C)))),s=s.return}p.length!==0&&e.push({event:n,listeners:p})}var yv=/\r\n?/g,bv=/\u0000|\uFFFD/g;function tm(e){return(typeof e=="string"?e:""+e).replace(yv,`
9`).replace(bv,"")}function am(e,n){return n=tm(n),tm(e)===n}function Fe(e,n,s,r,u,d){switch(s){case"children":typeof r=="string"?n==="body"||n==="textarea"&&r===""||fs(e,r):(typeof r=="number"||typeof r=="bigint")&&n!=="body"&&fs(e,""+r);break;case"className":ft(e,"class",r);break;case"tabIndex":ft(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ft(e,s,r);break;case"style":tf(e,r,d);break;case"data":if(n!=="object"){ft(e,"data",r);break}case"src":case"href":if(r===""&&(n!=="a"||s!=="href")){e.removeAttribute(s);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(s);break}r=Gr(""+r),e.setAttribute(s,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(s==="formAction"?(n!=="input"&&Fe(e,n,"name",u.name,u,null),Fe(e,n,"formEncType",u.formEncType,u,null),Fe(e,n,"formMethod",u.formMethod,u,null),Fe(e,n,"formTarget",u.formTarget,u,null)):(Fe(e,n,"encType",u.encType,u,null),Fe(e,n,"method",u.method,u,null),Fe(e,n,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(s);break}r=Gr(""+r),e.setAttribute(s,r);break;case"onClick":r!=null&&(e.onclick=dn);break;case"onScroll":r!=null&&Ne("scroll",e);break;case"onScrollEnd":r!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(s=r.__html,s!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}s=Gr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(s,""+r):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":r===!0?e.setAttribute(s,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(s,r):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(s,r):e.removeAttribute(s);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(s):e.setAttribute(s,r);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),De(e,"popover",r);break;case"xlinkActuate":Bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Bt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Bt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Bt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Bt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":De(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=F_.get(s)||s,De(e,s,r))}}function Bh(e,n,s,r,u,d){switch(s){case"style":tf(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(s=r.__html,s!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"children":typeof r=="string"?fs(e,r):(typeof r=="number"||typeof r=="bigint")&&fs(e,""+r);break;case"onScroll":r!=null&&Ne("scroll",e);break;case"onScrollEnd":r!=null&&Ne("scrollend",e);break;case"onClick":r!=null&&(e.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ua.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),n=s.slice(2,u?s.length-7:void 0),d=e[se]||null,d=d!=null?d[s]:null,typeof d=="function"&&e.removeEventListener(n,d,u),typeof r=="function")){typeof d!="function"&&d!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,r,u);break e}s in e?e[s]=r:r===!0?e.setAttribute(s,""):De(e,s,r)}}}function Ut(e,n,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var r=!1,u=!1,d;for(d in s)if(s.hasOwnProperty(d)){var p=s[d];if(p!=null)switch(d){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Fe(e,n,d,p,s,null)}}u&&Fe(e,n,"srcSet",s.srcSet,s,null),r&&Fe(e,n,"src",s.src,s,null);return;case"input":Ne("invalid",e);var S=d=p=u=null,C=null,j=null;for(r in s)if(s.hasOwnProperty(r)){var Y=s[r];if(Y!=null)switch(r){case"name":u=Y;break;case"type":p=Y;break;case"checked":C=Y;break;case"defaultChecked":j=Y;break;case"value":d=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(l(137,n));break;default:Fe(e,n,r,Y,s,null)}}Z0(e,d,S,C,j,p,u,!1);return;case"select":Ne("invalid",e),r=p=d=null;for(u in s)if(s.hasOwnProperty(u)&&(S=s[u],S!=null))switch(u){case"value":d=S;break;case"defaultValue":p=S;break;case"multiple":r=S;default:Fe(e,n,u,S,s,null)}n=d,s=p,e.multiple=!!r,n!=null?ds(e,!!r,n,!1):s!=null&&ds(e,!!r,s,!0);return;case"textarea":Ne("invalid",e),d=u=r=null;for(p in s)if(s.hasOwnProperty(p)&&(S=s[p],S!=null))switch(p){case"value":r=S;break;case"defaultValue":u=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(l(91));break;default:Fe(e,n,p,S,s,null)}W0(e,r,u,d);return;case"option":for(C in s)s.hasOwnProperty(C)&&(r=s[C],r!=null)&&(C==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Fe(e,n,C,r,s,null));return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(r=0;r<Vl.length;r++)Ne(Vl[r],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in s)if(s.hasOwnProperty(j)&&(r=s[j],r!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Fe(e,n,j,r,s,null)}return;default:if(Wc(n)){for(Y in s)s.hasOwnProperty(Y)&&(r=s[Y],r!==void 0&&Bh(e,n,Y,r,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(r=s[S],r!=null&&Fe(e,n,S,r,s,null))}function wv(e,n,s,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,p=null,S=null,C=null,j=null,Y=null;for(q in s){var F=s[q];if(s.hasOwnProperty(q)&&F!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":C=F;default:r.hasOwnProperty(q)||Fe(e,n,q,null,r,F)}}for(var P in r){var q=r[P];if(F=s[P],r.hasOwnProperty(P)&&(q!=null||F!=null))switch(P){case"type":d=q;break;case"name":u=q;break;case"checked":j=q;break;case"defaultChecked":Y=q;break;case"value":p=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,n));break;default:q!==F&&Fe(e,n,P,q,r,F)}}Zc(e,p,S,C,j,Y,d,u);return;case"select":q=p=S=P=null;for(d in s)if(C=s[d],s.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":q=C;default:r.hasOwnProperty(d)||Fe(e,n,d,null,r,C)}for(u in r)if(d=r[u],C=s[u],r.hasOwnProperty(u)&&(d!=null||C!=null))switch(u){case"value":P=d;break;case"defaultValue":S=d;break;case"multiple":p=d;default:d!==C&&Fe(e,n,u,d,r,C)}n=S,s=p,r=q,P!=null?ds(e,!!s,P,!1):!!r!=!!s&&(n!=null?ds(e,!!s,n,!0):ds(e,!!s,s?[]:"",!1));return;case"textarea":q=P=null;for(S in s)if(u=s[S],s.hasOwnProperty(S)&&u!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Fe(e,n,S,null,r,u)}for(p in r)if(u=r[p],d=s[p],r.hasOwnProperty(p)&&(u!=null||d!=null))switch(p){case"value":P=u;break;case"defaultValue":q=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(l(91));break;default:u!==d&&Fe(e,n,p,u,r,d)}J0(e,P,q);return;case"option":for(var ce in s)P=s[ce],s.hasOwnProperty(ce)&&P!=null&&!r.hasOwnProperty(ce)&&(ce==="selected"?e.selected=!1:Fe(e,n,ce,null,r,P));for(C in r)P=r[C],q=s[C],r.hasOwnProperty(C)&&P!==q&&(P!=null||q!=null)&&(C==="selected"?e.selected=P&&typeof P!="function"&&typeof P!="symbol":Fe(e,n,C,P,r,q));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in s)P=s[be],s.hasOwnProperty(be)&&P!=null&&!r.hasOwnProperty(be)&&Fe(e,n,be,null,r,P);for(j in r)if(P=r[j],q=s[j],r.hasOwnProperty(j)&&P!==q&&(P!=null||q!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,n));break;default:Fe(e,n,j,P,r,q)}return;default:if(Wc(n)){for(var Xe in s)P=s[Xe],s.hasOwnProperty(Xe)&&P!==void 0&&!r.hasOwnProperty(Xe)&&Bh(e,n,Xe,void 0,r,P);for(Y in r)P=r[Y],q=s[Y],!r.hasOwnProperty(Y)||P===q||P===void 0&&q===void 0||Bh(e,n,Y,P,r,q);return}}for(var N in s)P=s[N],s.hasOwnProperty(N)&&P!=null&&!r.hasOwnProperty(N)&&Fe(e,n,N,null,r,P);for(F in r)P=r[F],q=s[F],!r.hasOwnProperty(F)||P===q||P==null&&q==null||Fe(e,n,F,P,r,q)}function nm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,s=performance.getEntriesByType("resource"),r=0;r<s.length;r++){var u=s[r],d=u.transferSize,p=u.initiatorType,S=u.duration;if(d&&S&&nm(p)){for(p=0,S=u.responseEnd,r+=1;r<s.length;r++){var C=s[r],j=C.startTime;if(j>S)break;var Y=C.transferSize,F=C.initiatorType;Y&&nm(F)&&(C=C.responseEnd,p+=Y*(C<S?1:(S-j)/(C-j)))}if(--r,n+=8*(d+p)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ph=null,Hh=null;
vendor: 9,411 bytes, line 9
9function jo(e){return e.nodeType===9?e:e.ownerDocument}function im(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sm(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Gh(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var qh=null;function Ev(){var e=window.event;return e&&e.type==="popstate"?e===qh?!1:(qh=e,!0):(qh=null,!1)}var lm=typeof setTimeout=="function"?setTimeout:void 0,xv=typeof clearTimeout=="function"?clearTimeout:void 0,rm=typeof Promise=="function"?Promise:void 0,Cv=typeof queueMicrotask=="function"?queueMicrotask:typeof rm<"u"?function(e){return rm.resolve(null).then(e).catch(Tv)}:lm;function Tv(e){setTimeout(function(){throw e})}function si(e){return e==="head"}function om(e,n){var s=n,r=0;do{var u=s.nextSibling;if(e.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"||s==="/&"){if(r===0){e.removeChild(u),Vs(n);return}r--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")r++;else if(s==="html")$l(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,$l(s);for(var d=s.firstChild;d;){var p=d.nextSibling,S=d.nodeName;d[ke]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||s.removeChild(d),d=p}}else s==="body"&&$l(e.ownerDocument.body);s=u}while(s);Vs(n)}function cm(e,n){var s=e;e=0;do{var r=s.nextSibling;if(s.nodeType===1?n?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(n?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),r&&r.nodeType===8)if(s=r.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=r}while(s)}function Vh(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var s=n;switch(n=n.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Vh(s),Ze(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function Rv(e,n,s,r){for(;e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ke])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=xa(e.nextSibling),e===null)break}return null}function Mv(e,n,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=xa(e.nextSibling),e===null))return null;return e}function um(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=xa(e.nextSibling),e===null))return null;return e}function Yh(e){return e.data==="$?"||e.data==="$~"}function $h(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function kv(e,n){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||s.readyState!=="loading")n();else{var r=function(){n(),s.removeEventListener("DOMContentLoaded",r)};s.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function xa(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Kh=null;function hm(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(n===0)return xa(e.nextSibling);n--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||n++}e=e.nextSibling}return null}function dm(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(n===0)return e;n--}else s!=="/$"&&s!=="/&"||n++}e=e.previousSibling}return null}function fm(e,n,s){switch(n=jo(s),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function $l(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ze(e)}var Ca=new Map,mm=new Set;function Bo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=W.d;W.d={f:Dv,r:Av,D:Ov,C:Nv,L:Uv,m:zv,X:Iv,S:Lv,M:jv};function Dv(){var e=Mn.f(),n=Do();return e||n}function Av(e){var n=ct(e);n!==null&&n.tag===5&&n.type==="form"?A1(n):Mn.r(e)}var Hs=typeof document>"u"?null:document;function gm(e,n,s){var r=Hs;if(r&&typeof n=="string"&&n){var u=_a(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),mm.has(u)||(mm.add(u),e={rel:e,crossOrigin:s,href:n},r.querySelector(u)===null&&(n=r.createElement("link"),Ut(n,"link",e),We(n),r.head.appendChild(n)))}}function Ov(e){Mn.D(e),gm("dns-prefetch",e,null)}function Nv(e,n){Mn.C(e,n),gm("preconnect",e,n)}function Uv(e,n,s){Mn.L(e,n,s);var r=Hs;if(r&&e&&n){var u='link[rel="preload"][as="'+_a(n)+'"]';n==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+_a(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+_a(s.imageSizes)+'"]')):u+='[href="'+_a(e)+'"]';var d=u;switch(n){case"style":d=Gs(e);break;case"script":d=qs(e)}Ca.has(d)||(e=b({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),Ca.set(d,e),r.querySelector(u)!==null||n==="style"&&r.querySelector(Kl(d))||n==="script"&&r.querySelector(Fl(d))||(n=r.createElement("link"),Ut(n,"link",e),We(n),r.head.appendChild(n)))}}function zv(e,n){Mn.m(e,n);var s=Hs;if(s&&e){var r=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+_a(r)+'"][href="'+_a(e)+'"]',d=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=qs(e)}if(!Ca.has(d)&&(e=b({rel:"modulepreload",href:e},n),Ca.set(d,e),s.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Fl(d)))return}r=s.createElement("link"),Ut(r,"link",e),We(r),s.head.appendChild(r)}}}function Lv(e,n,s){Mn.S(e,n,s);var r=Hs;if(r&&e){var u=vt(r).hoistableStyles,d=Gs(e);n=n||"default";var p=u.get(d);if(!p){var S={loading:0,preload:null};if(p=r.querySelector(Kl(d)))S.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},s),(s=Ca.get(d))&&Fh(e,s);var C=p=r.createElement("link");We(C),Ut(C,"link",e),C._p=new Promise(function(j,Y){C.onload=j,C.onerror=Y}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Po(p,n,r)}p={type:"stylesheet",instance:p,count:1,state:S},u.set(d,p)}}}function Iv(e,n){Mn.X(e,n);var s=Hs;if(s&&e){var r=vt(s).hoistableScripts,u=qs(e),d=r.get(u);d||(d=s.querySelector(Fl(u)),d||(e=b({src:e,async:!0},n),(n=Ca.get(u))&&Xh(e,n),d=s.createElement("script"),We(d),Ut(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function jv(e,n){Mn.M(e,n);var s=Hs;if(s&&e){var r=vt(s).hoistableScripts,u=qs(e),d=r.get(u);d||(d=s.querySelector(Fl(u)),d||(e=b({src:e,async:!0,type:"module"},n),(n=Ca.get(u))&&Xh(e,n),d=s.createElement("script"),We(d),Ut(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function pm(e,n,s,r){var u=(u=we.current)?Bo(u):null;if(!u)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=Gs(s.href),s=vt(u).hoistableStyles,r=s.get(n),r||(r={type:"style",instance:null,count:0,state:null},s.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Gs(s.href);var d=vt(u).hoistableStyles,p=d.get(e);if(p||(u=u.ownerDocument||u,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,p),(d=u.querySelector(Kl(e)))&&!d._p&&(p.instance=d,p.state.loading=5),Ca.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Ca.set(e,s),d||Bv(u,e,s,p.state))),n&&r===null)throw Error(l(528,""));return p}if(n&&r!==null)throw Error(l(529,""));return null;case"script":return n=s.async,s=s.src,typeof s=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?
vendor: 4,581 bytes, line 9
9(n=qs(s),s=vt(u).hoistableScripts,r=s.get(n),r||(r={type:"script",instance:null,count:0,state:null},s.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Gs(e){return'href="'+_a(e)+'"'}function Kl(e){return'link[rel="stylesheet"]['+e+"]"}function _m(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Bv(e,n,s,r){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?r.loading=1:(n=e.createElement("link"),r.preload=n,n.addEventListener("load",function(){return r.loading|=1}),n.addEventListener("error",function(){return r.loading|=2}),Ut(n,"link",s),We(n),e.head.appendChild(n))}function qs(e){return'[src="'+_a(e)+'"]'}function Fl(e){return"script[async]"+e}function vm(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var r=e.querySelector('style[data-href~="'+_a(s.href)+'"]');if(r)return n.instance=r,We(r),r;var u=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),We(r),Ut(r,"style",u),Po(r,s.precedence,e),n.instance=r;case"stylesheet":u=Gs(s.href);var d=e.querySelector(Kl(u));if(d)return n.state.loading|=4,n.instance=d,We(d),d;r=_m(s),(u=Ca.get(u))&&Fh(r,u),d=(e.ownerDocument||e).createElement("link"),We(d);var p=d;return p._p=new Promise(function(S,C){p.onload=S,p.onerror=C}),Ut(d,"link",r),n.state.loading|=4,Po(d,s.precedence,e),n.instance=d;case"script":return d=qs(s.src),(u=e.querySelector(Fl(d)))?(n.instance=u,We(u),u):(r=s,(u=Ca.get(d))&&(r=b({},s),Xh(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),We(u),Ut(u,"link",r),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(r=n.instance,n.state.loading|=4,Po(r,s.precedence,e));return n.instance}function Po(e,n,s){for(var r=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,d=u,p=0;p<r.length;p++){var S=r[p];if(S.dataset.precedence===n)d=S;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function Fh(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Xh(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ho=null;function ym(e,n,s){if(Ho===null){var r=new Map,u=Ho=new Map;u.set(s,r)}else u=Ho,r=u.get(s),r||(r=new Map,u.set(s,r));if(r.has(e))return r;for(r.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var d=s[u];if(!(d[ke]||d[ie]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var p=d.getAttribute(n)||"";p=e+p;var S=r.get(p);S?S.push(d):r.set(p,[d])}}return r}function bm(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function Pv(e,n,s){if(s===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function wm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Hv(e,n,s,r){if(s.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var u=Gs(r.href),d=n.querySelector(Kl(u));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Go.bind(e),n.then(e,e)),s.state.loading|=4,s.instance=d,We(d);return}d=n.ownerDocument||n,r=_m(r),(u=Ca.get(u))&&Fh(r,u),d=d.createElement("link"),We(d);var p=d;p._p=new Promise(function(S,C){p.onload=S,p.onerror=C}),Ut(d,"link",r),s.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Go.bind(e),n.addEventListener("load",s),n.addEventListener("error",s))}}var Qh=0;function Gv(e,n){return e.stylesheets&&e.count===0&&Vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var r=setTimeout(function(){if(e.stylesheets&&Vo(e,e.stylesheets),e.unsu
vendor: 10,524 bytes, line 9
9spend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+n);0<e.imgBytes&&Qh===0&&(Qh=62500*Sv());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Qh?50:800)+n);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Go(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qo=null;function Vo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qo=new Map,n.forEach(qv,e),qo=null,Go.call(e))}function qv(e,n){if(!(n.state.loading&4)){var s=qo.get(e);if(s)var r=s.get(null);else{s=new Map,qo.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var p=u[d];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(s.set(p.dataset.precedence,p),r=p)}r&&s.set(null,r)}u=n.instance,p=u.getAttribute("data-precedence"),d=s.get(p)||r,d===r&&s.set(null,u),s.set(p,u),this.count++,r=Go.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var Xl={$$typeof:U,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Vv(e,n,s,r,u,d,p,S,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0),this.hiddenUpdates=Pn(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Sm(e,n,s,r,u,d,p,S,C,j,Y,F){return e=new Vv(e,n,s,p,C,j,Y,F,S),n=1,d===!0&&(n|=24),d=la(3,null,null,n),e.current=d,d.stateNode=e,n=ku(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:r,isDehydrated:s,cache:n},Nu(d),e}function Em(e){return e?(e=bs,e):bs}function xm(e,n,s,r,u,d){u=Em(u),r.context===null?r.context=u:r.pendingContext=u,r=Fn(n),r.payload={element:s},d=d===void 0?null:d,d!==null&&(r.callback=d),s=Xn(e,r,n),s!==null&&(na(s,e,n),Rl(s,e,n))}function Cm(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function Zh(e,n){Cm(e,n),(e=e.alternate)&&Cm(e,n)}function Tm(e){if(e.tag===13||e.tag===31){var n=Oi(e,67108864);n!==null&&na(n,e,67108864),Zh(e,67108864)}}function Rm(e){if(e.tag===13||e.tag===31){var n=ha();n=O(n);var s=Oi(e,n);s!==null&&na(s,e,n),Zh(e,n)}}var Yo=!0;function Yv(e,n,s,r){var u=H.T;H.T=null;var d=W.p;try{W.p=2,Jh(e,n,s,r)}finally{W.p=d,H.T=u}}function $v(e,n,s,r){var u=H.T;H.T=null;var d=W.p;try{W.p=8,Jh(e,n,s,r)}finally{W.p=d,H.T=u}}function Jh(e,n,s,r){if(Yo){var u=Wh(r);if(u===null)jh(e,n,r,$o,s),km(e,r);else if(Fv(u,e,n,s,r))r.stopPropagation();else if(km(e,r),n&4&&-1<Kv.indexOf(e)){for(;u!==null;){var d=ct(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var p=Na(d.pendingLanes);if(p!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;p;){var C=1<<31-jt(p);S.entanglements[1]|=C,p&=~C}Ja(d),(qe&6)===0&&(Mo=qt()+500,ql(0))}}break;case 31:case 13:S=Oi(d,2),S!==null&&na(S,d,2),Do(),Zh(d,2)}if(d=Wh(r),d===null&&jh(e,n,r,$o,s),d===u)break;u=d}u!==null&&r.stopPropagation()}else jh(e,n,r,null,s)}}function Wh(e){return e=tu(e),ed(e)}var $o=null;function ed(e){if($o=null,e=tt(e),e!==null){var n=c(e);if(n===null)e=null;else{var s=n.tag;if(s===13){if(e=h(n),e!==null)return e;e=null}else if(s===31){if(e=f(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return $o=e,null}function Mm(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cn()){case In:return 2;case ul:return 8;case jn:case Oa:return 32;case pa:return 268435456;default:return 32}default:return 32}}var td=!1,li=null,ri=null,oi=null,Ql=new Map,Zl=new Map,ci=[],Kv="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".split(" ");function km(e,n){switch(e){case"focusin":case"focusout":li=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":oi=null;break;case"pointerover":case"pointerout":Ql.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(n.pointerId)}}function Jl(e,n,s,r,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:s,eventSystemFlags:r,nativeEvent:d,targetContainers:[u]},n!==null&&(n=ct(n),n!==null&&Tm(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function Fv(e,n,s,r,u){switch(n){case"focusin":return li=Jl(li,e,n,s,r,u),!0;case"dragenter":return ri=Jl(ri,e,n,s,r,u),!0;case"mouseover":return oi=Jl(oi,e,n,s,r,u),!0;case"pointerover":var d=u.pointerId;return Ql.set(d,Jl(Ql.get(d)||null,e,n,s,r,u)),!0;case"gotpointercapture":return d=u.pointerId,Zl.set(d,Jl(Zl.get(d)||null,e,n,s,r,u)),!0}return!1}function Dm(e){var n=tt(e.target);if(n!==null){var s=c(n);if(s!==null){if(n=s.tag,n===13){if(n=h(s),n!==null){e.blockedOn=n,ae(e.priority,function(){Rm(s)});return}}else if(n===31){if(n=f(s),n!==null){e.blockedOn=n,ae(e.priority,function(){Rm(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ko(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Wh(e.nativeEvent);if(s===null){s=e.nativeEvent;var r=new s.constructor(s.type,s);eu=r,s.target.dispatchEvent(r),eu=null}else return n=ct(s),n!==null&&Tm(n),e.blockedOn=s,!1;n.shift()}return!0}function Am(e,n,s){Ko(e)&&s.delete(n)}function Xv(){td=!1,li!==null&&Ko(li)&&(li=null),ri!==null&&Ko(ri)&&(ri=null),oi!==null&&Ko(oi)&&(oi=null),Ql.forEach(Am),Zl.forEach(Am)}function Fo(e,n){e.blockedOn===n&&(e.blockedOn=null,td||(td=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Xv)))}var Xo=null;function Om(e){Xo!==e&&(Xo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Xo===e&&(Xo=null);for(var n=0;n<e.length;n+=3){var s=e[n],r=e[n+1],u=e[n+2];if(typeof r!="function"){if(ed(r||s)===null)continue;break}var d=ct(s);d!==null&&(e.splice(n,3),n-=3,Wu(d,{pending:!0,data:u,method:s.method,action:r},r,u))}}))}function Vs(e){function n(C){return Fo(C,e)}li!==null&&Fo(li,e),ri!==null&&Fo(ri,e),oi!==null&&Fo(oi,e),Ql.forEach(n),Zl.forEach(n);for(var s=0;s<ci.length;s++){var r=ci[s];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ci.length&&(s=ci[0],s.blockedOn===null);)Dm(s),s.blockedOn===null&&ci.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(r=0;r<s.length;r+=3){var u=s[r],d=s[r+1],p=u[se]||null;if(typeof d=="function")p||Om(s);else if(p){var S=null;if(d&&d.hasAttribute("formAction")){if(u=d,p=d[se]||null)S=p.formAction;else if(ed(u)!==null)continue}else S=p.action;typeof S=="function"?s[r+1]=S:(s.splice(r,3),r-=3),Om(s)}}}function Nm(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(p){return u=p})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),r||setTimeout(s,20)}function s(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(s,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function ad(e){this._internalRoot=e}Qo.prototype.render=ad.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var s=n.current,r=ha();xm(s,r,e,n,null,null)},Qo.prototype.unmount=ad.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;xm(e.current,2,null,e,null,null),Do(),n[de]=null}};function Qo(e){this._internalRoot=e}Qo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Q();e={blockedOn:null,target:e,priority:n};for(var s=0;s<ci.length&&n!==0&&n<ci[s].priority;s++);ci.splice(s,0,e),s===0&&Dm(e)}};var Um=a.version;if(Um!=="19.2.4")throw Error(l(527,Um,"19.2.4"));W.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(n),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var Qv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};
vendor: 26,902 bytes, line 9
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{un=Zo.inject(Qv),Vt=Zo}catch{}}return er.createRoot=function(e,n){if(!o(e))throw Error(l(299));var s=!1,r="",u=H1,d=G1,p=q1;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError)),n=Sm(e,1,!1,null,null,s,r,null,u,d,p,Nm),e[de]=n.current,Ih(e),new ad(n)},er.hydrateRoot=function(e,n,s){if(!o(e))throw Error(l(299));var r=!1,u="",d=H1,p=G1,S=q1,C=null;return s!=null&&(s.unstable_strictMode===!0&&(r=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.formState!==void 0&&(C=s.formState)),n=Sm(e,1,!0,n,s??null,r,u,C,d,p,S,Nm),n.context=Em(null),s=n.current,r=ha(),r=O(r),u=Fn(r),u.callback=null,Xn(s,u,r),s=r,n.current.lanes=s,$a(n,s),Ja(n),e[de]=n.current,Ih(e),new Qo(n)},er.version="19.2.4",er}var Vm;function o6(){if(Vm)return sd.exports;Vm=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch{}}return t(),sd.exports=r6(),sd.exports}var c6=o6(),nl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},u6=class extends nl{#e;#t;#a;constructor(){super(),this.#a=t=>{if(typeof window<"u"&&window.addEventListener){const a=()=>t();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#a=t,this.#t?.(),this.#t=t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(a=>{a(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},b0=new u6,h6={setTimeout:(t,a)=>setTimeout(t,a),clearTimeout:t=>clearTimeout(t),setInterval:(t,a)=>setInterval(t,a),clearInterval:t=>clearInterval(t)},d6=class{#e=h6;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,a){return this.#e.setTimeout(t,a)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,a){return this.#e.setInterval(t,a)}clearInterval(t){this.#e.clearInterval(t)}},Xi=new d6;function f6(t){setTimeout(t,0)}var m6=typeof window>"u"||"Deno"in globalThis;function Ft(){}function g6(t,a){return typeof t=="function"?t(a):t}function Hd(t){return typeof t=="number"&&t>=0&&t!==1/0}function qg(t,a){return Math.max(t+(a||0)-Date.now(),0)}function yi(t,a){return typeof t=="function"?t(a):t}function Ma(t,a){return typeof t=="function"?t(a):t}function Ym(t,a){const{type:i="all",exact:l,fetchStatus:o,predicate:c,queryKey:h,stale:f}=t;if(h){if(l){if(a.queryHash!==w0(h,a.options))return!1}else if(!gr(a.queryKey,h))return!1}if(i!=="all"){const g=a.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof f=="boolean"&&a.isStale()!==f||o&&o!==a.state.fetchStatus||c&&!c(a))}function $m(t,a){const{exact:i,status:l,predicate:o,mutationKey:c}=t;if(c){if(!a.options.mutationKey)return!1;if(i){if(Zi(a.options.mutationKey)!==Zi(c))return!1}else if(!gr(a.options.mutationKey,c))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function w0(t,a){return(a?.queryKeyHashFn||Zi)(t)}function Zi(t){return JSON.stringify(t,(a,i)=>Gd(i)?Object.keys(i).sort().reduce((l,o)=>(l[o]=i[o],l),{}):i)}function gr(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(i=>gr(t[i],a[i])):!1}var p6=Object.prototype.hasOwnProperty;function Vg(t,a,i=0){if(t===a)return t;if(i>500)return a;const l=Km(t)&&Km(a);if(!l&&!(Gd(t)&&Gd(a)))return a;const c=(l?t:Object.keys(t)).length,h=l?a:Object.keys(a),f=h.length,g=l?new Array(f):{};let m=0;for(let _=0;_<f;_++){const b=l?_:h[_],E=t[b],w=a[b];if(E===w){g[b]=E,(l?_<c:p6.call(t,b))&&m++;continue}if(E===null||w===null||typeof E!="object"||typeof w!="object"){g[b]=w;continue}const x=Vg(E,w,i+1);g[b]=x,x===E&&m++}return c===f&&m===c?t:g}function vc(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const i in t)if(t[i]!==a[i])return!1;return!0}function Km(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Gd(t){if(!Fm(t))return!1;const a=t.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!Fm(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Fm(t){return Object.prototype.toString.call(t)==="[object Object]"}function _6(t){return new Promise(a=>{Xi.setTimeout(a,t)})}function qd(t,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,a):i.structuralSharing!==!1?Vg(t,a):a}function v6(t,a,i=0){const l=[...t,a];return i&&l.length>i?l.slice(1):l}function y6(t,a,i=0){const l=[a,...t];return i&&l.length>i?l.slice(0,-1):l}var S0=Symbol();function Yg(t,a){return!t.queryFn&&a?.initialPromise?()=>a.initialPromise:!t.queryFn||t.queryFn===S0?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function E0(t,a){return typeof t=="function"?t(...a):!!t}function b6(t,a,i){let l=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=a(),l||(l=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),t}var pr=(()=>{let t=()=>m6;return{isServer(){return t()},setIsServer(a){t=a}}})();function Vd(){let t,a;const i=new Promise((o,c)=>{t=o,a=c});i.status="pending",i.catch(()=>{});function l(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{l({status:"fulfilled",value:o}),t(o)},i.reject=o=>{l({status:"rejected",reason:o}),a(o)},i}var w6=f6;function S6(){let t=[],a=0,i=f=>{f()},l=f=>{f()},o=w6;const c=f=>{a?t.push(f):o(()=>{i(f)})},h=()=>{const f=t;t=[],f.length&&o(()=>{l(()=>{f.forEach(g=>{i(g)})})})};return{batch:f=>{let g;a++;try{g=f()}finally{a--,a||h()}return g},batchCalls:f=>(...g)=>{c(()=>{f(...g)})},schedule:c,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{l=f},setScheduler:f=>{o=f}}}var Rt=S6(),E6=class extends nl{#e=!0;#t;#a;constructor(){super(),this.#a=t=>{if(typeof window<"u"&&window.addEventListener){const a=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#a=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(i=>{i(t)}))}isOnline(){return this.#e}},yc=new E6;function x6(t){return Math.min(1e3*2**t,3e4)}function $g(t){return(t??"online")==="online"?yc.isOnline():!0}var Yd=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Kg(t){let a=!1,i=0,l;const o=Vd(),c=()=>o.status!=="pending",h=A=>{if(!c()){const M=new Yd(A);E(M),t.onCancel?.(M)}},f=()=>{a=!0},g=()=>{a=!1},m=()=>b0.isFocused()&&(t.networkMode==="always"||yc.isOnline())&&t.canRun(),_=()=>$g(t.networkMode)&&t.canRun(),b=A=>{c()||(l?.(),o.resolve(A))},E=A=>{c()||(l?.(),o.reject(A))},w=()=>new Promise(A=>{l=M=>{(c()||m())&&A(M)},t.onPause?.()}).then(()=>{l=void 0,c()||t.onContinue?.()}),x=()=>{if(c())return;let A;const M=i===0?t.initialPromise:void 0;try{A=M??t.fn()}catch(z){A=Promise.reject(z)}Promise.resolve(A).then(b).catch(z=>{if(c())return;const G=t.retry??(pr.isServer()?0:3),U=t.retryDelay??x6,L=typeof U=="function"?U(i,z):U,X=G===!0||typeof G=="number"&&i<G||typeof G=="function"&&G(i,z);if(a||!X){E(z);return}i++,t.onFail?.(i,z),_6(L).then(()=>m()?void 0:w()).then(()=>{a?E(z):x()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(l?.(),o),cancelRetry:f,continueRetry:g,canStart:_,start:()=>(_()?x():w().then(x),o)}}var Fg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hd(this.gcTime)&&(this.#e=Xi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(pr.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Xi.clearTimeout(this.#e),this.#e=void 0)}},C6=class extends Fg{#e;#t;#a;#i;#n;#s;#l;constructor(t){super(),this.#l=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#a=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Qm(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(t){if(this.options={...this.#s,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=Qm(this.options);a.data!==void 0&&(this.setState(Xm(a.data,a.dataUpdatedAt)),this.#e=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(t,a){const i=qd(this.state.data,t,this.options);return this.#o({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(t,a){this.#o({type:"setState",state:t,setStateOptions:a})}cancel(t){const a=this.#n?.promise;return this.#n?.cancel(t),a?a.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Ma(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===S0||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>yi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!qg(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(a=>a!==t),this.observers.length||(this.#n&&(this.#l||this.#r()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,a){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(g=>g.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,l=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,i.signal)})},o=()=>{const f=Yg(this.options,a),m=(()=>{const _={client:this.#i,queryKey:this.queryKey,meta:this.meta};return l(_),_})();return this.#l=!1,this.options.persister?this.options.persister(f,m,this):f(m)},h=(()=>{const f={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return l(f),f})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#o({type:"fetch",meta:h.fetchOptions?.meta}),this.#n=Kg({initialPromise:a?.initialPromise,fn:h.fetchFn,onCancel:f=>{f instanceof Yd&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(f,g)=>{this.#o({type:"failed",failureCount:f,error:g})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const f=await this.#n.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#a.config.onSuccess?.(f,this),this.#a.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Yd){if(f.silent)return this.#n.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#a.config.onError?.(f,this),this.#a.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(t){const a=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Xg(i.data,this.options),fetchMeta:t.meta??null};case"success":const l={...i,...Xm(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?l:void 0,l;case"error":const o=t.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=a(this.state),Rt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:t})})}};function Xg(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$g(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Xm(t,a){return{data:t,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Qm(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,i=a!==void 0,l=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var T6=class extends nl{constructor(t,a){super(),this.options=a,this.#e=t,this.#r=null,this.#l=Vd(),this.bindMethods(),this.setOptions(a)}#e;#t=void 0;#a=void 0;#i=void 0;#n;#s;#l;#r;#o;#f;#m;#u;#h;#c;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Zm(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $d(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $d(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(t){const a=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ma(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),a._defaulted&&!vc(this.options,a)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const l=this.hasListeners();l&&Jm(this.#t,i,this.options,a)&&this.#d(),this.updateResult(),l&&(this.#t!==i||Ma(this.options.enabled,this.#t)!==Ma(a.enabled,this.#t)||yi(this.options.staleTime,this.#t)!==yi(a.staleTime,this.#t))&&this.#p();const o=this.#_();l&&(this.#t!==i||Ma(this.options.enabled,this.#t)!==Ma(a.enabled,this.#t)||o!==this.#c)&&this.#v(o)}getOptimisticResult(t){const a=this.#e.getQueryCache().build(this.#e,t),i=this.createResult(a,t);return M6(this,i)&&(this.#i=i,this.#s=this.options,this.#n=this.#t.state),i}getCurrentResult(){return this.#i}trackResult(t,a){return new Proxy(t,{get:(i,l)=>(this.trackProp(l),a?.(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,l))})}trackProp(t){this.#g.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const a=this.#e.defaultQueryOptions(t),i=this.#e.getQueryCache().build(this.#e,a);return i.fetch().then(()=>this.createResult(i,a))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(t){this.#S();let a=this.#t.fetch(this.options,t);return t?.throwOnError||(a=a.catch(Ft)),a}#p(){this.#b();const t=yi(this.options.staleTime,this.#t);if(pr.isServer()||this.#i.isStale||!Hd(t))return;const i=qg(this.#i.dataUpdatedAt,t)+1;this.#u=Xi.setTimeout(()=>{this.#i.isStale||this.updateResult()},i)}#_(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(t){this.#w(),this.#c=t,!(pr.isServer()||Ma(this.options.enabled,this.#t)===!1||!Hd(this.#c)||this.#c===0)&&(this.#h=Xi.setInterval(()=>{(this.options.refetchIntervalInBackground||b0.isFocused())&&this.#d()},this.#c))}#y(){this.#p(),this.#v(this.#_())}#b(){this.#u&&(Xi.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#h&&(Xi.clearInterval(this.#h),this.#h=void 0)}createResult(t,a){const i=this.#t,l=this.options,o=this.#i,c=this.#n,h=this.#s,g=t!==i?t.state:this.#a,{state:m}=t;let _={...m},b=!1,E;if(a._optimisticResults){const R=this.hasListeners(),Z=!R&&Zm(t,a),J=R&&Jm(t,i,a,l);(Z||J)&&(_={..._,...Xg(m.data,t.options)}),a._optimisticResults==="isRestoring"&&(_.fetchStatus="idle")}let{error:w,errorUpdatedAt:x,status:A}=_;E=_.data;let M=!1;if(a.placeholderData!==void 0&&E===void 0&&A==="pending"){let R;o?.isPlaceholderData&&a.placeholderData===h?.placeholderData?(R=o.data,M=!0):R=typeof a.placeholderData=="function"?a.placeholderData(this.#m?.state.data,this.#m):a.placeholderData,R!==void 0&&(A="success",E=qd(o?.data,R,a),b=!0)}if(a.select&&E!==void 0&&!M)if(o&&E===c?.data&&a.select===this.#o)E=this.#f;else try{this.#o=a.select,E=a.select(E),E=qd(o?.data,E,a),this.#f=E,this.#r=null}catch(R){this.#r=R}this.#r&&(w=this.#r,E=this.#f,x=Date.now(),A="error");const z=_.fetchStatus==="fetching",G=A==="pending",U=A==="error",L=G&&z,X=E!==void 0,V={status:A,fetchStatus:_.fetchStatus,isPending:G,isSuccess:A==="success",isError:U,isInitialLoading:L,isLoading:L,data:E,dataUpdatedAt:_.dataUpdatedAt,error:w,errorUpdatedAt:x,failureCount:_.fetchFailureCount,failureReason:_.fetchFailureReason,errorUpdateCount:_.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:_.dataUpdateCount>g.dataUpdateCount||_.errorUpdateCount>g.errorUpdateCount,isFetching:z,isRefetching:z&&!G,isLoadingError:U&&!X,isPaused:_.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:U&&X,isStale:x0(t,a),refetch:this.refetch,promise:this.#l,isEnabled:Ma(a.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const R=V.data!==void 0,Z=V.status==="error"&&!R,J=Be=>{Z?Be.reject(V.error):R&&Be.resolve(V.data)},re=()=>{const Be=this.#l=V.promise=Vd();J(Be)},fe=this.#l;switch(fe.status){case"pending":t.queryHash===i.queryHash&&J(fe);break;case"fulfilled":(Z||V.data!==fe.value)&&re();break;case"rejected":(!Z||V.error!==fe.reason)&&re();break}}return V}updateResult(){const t=this.#i,a=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#s=this.options,this.#n.data!==void 0&&(this.#m=this.#t),vc(a,t))return;this.#i=a;const i=()=>{if(!t)return!0;const{notifyOnChangeProps:l}=this.options,o=typeof l=="function"?l():l;if(o==="all"||!o&&!this.#g.size)return!0;const c=new Set(o??this.#g);return this.options.throwOnError&&c.add("error"),Object.keys(this.#i).some(h=>{const f=h;return this.#i[f]!==t[f]&&c.has(f)})};this.#E({listeners:i()})}#S(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const a=this.#t;this.#t=t,this.#a=t.state,this.hasListeners()&&(a?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(t){Rt.batch(()=>{t.listeners&&this.listeners.forEach(a=>{a(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function R6(t,a){return Ma(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&a.retryOnMount===!1)}function Zm(t,a){return R6(t,a)||t.state.data!==void 0&&$d(t,a,a.refetchOnMount)}function $d(t,a,i){if(Ma(a.enabled,t)!==!1&&yi(a.staleTime,t)!=="static"){const l=typeof i=="function"?i(t):i;return l==="always"||l!==!1&&x0(t,a)}return!1}function Jm(t,a,i,l){return(t!==a||Ma(l.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&x0(t,i)}function x0(t,a){return Ma(a.enabled,t)!==!1&&t.isStaleByTime(yi(a.staleTime,t))}function M6(t,a){return!vc(t.getCurrentResult(),a)}function Wm(t){return{onFetch:(a,i)=>{const l=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],h=a.state.data?.pageParams||[];let f={pages:[],pageParams:[]},g=0;const m=async()=>{let _=!1;const b=x=>{b6(x,()=>a.signal,()=>_=!0)},E=Yg(a.options,a.fetchOptions),w=async(x,A,M)=>{if(_)return Promise.reject();if(A==null&&x.pages.length)return Promise.resolve(x);const G=(()=>{const te={client:a.client,queryKey:a.queryKey,pageParam:A,direction:M?"backward":"forward",meta:a.options.meta};return b(te),te})(),U=await E(G),{maxPages:L}=a.options,X=M?y6:v6;return{pages:X(x.pages,U,L),pageParams:X(x.pageParams,A,L)}};if(o&&c.length){const x=o==="backward",A=x?k6:e3,M={pages:c,pageParams:h},z=A(l,M);f=await w(M,z,x)}else{const x=t??c.length;do{const A=g===0?h[0]??l.initialPageParam:e3(l,f);if(g>0&&A==null)break;f=await w(f,A),g++}while(g<x)}return f};a.options.persister?a.fetchFn=()=>a.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=m}}}function e3(t,{pages:a,pageParams:i}){const l=a.length-1;return a.length>0?t.getNextPageParam(a[l],a,i[l],i):void 0}function k6(t,{pages:a,pageParams:i}){return a.length>0?t.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var D6=class extends Fg{#e;#t;#a;#i;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#a=t.mutationCache,this.#t=[],this.state=t.state||Qg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(a=>a!==t),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const a=()=>{this.#n({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Kg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(c,h)=>{this.#n({type:"failed",failureCount:c,error:h})},onPause:()=>{this.#n({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const l=this.state.status==="pending",o=!this.#i.canStart();try{if(l)a();else{this.#n({type:"pending",variables:t,isPaused:o}),this.#a.config.onMutate&&await this.#a.config.onMutate(t,this,i);const h=await this.options.onMutate?.(t,i);h!==this.state.context&&this.#n({type:"pending",context:h,variables:t,isPaused:o})}const c=await this.#i.start();return await this.#a.config.onSuccess?.(c,t,this.state.context,this,i),await this.options.onSuccess?.(c,t,this.state.context,i),await this.#a.config.onSettled?.(c,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(c,null,t,this.state.context,i),this.#n({type:"success",data:c}),c}catch(c){try{await this.#a.config.onError?.(c,t,this.state.context,this,i)}catch(h){Promise.reject(h)}try{await this.options.onError?.(c,t,this.state.context,i)}catch(h){Promise.reject(h)}try{await this.#a.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,i)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,c,t,this.state.context,i)}catch(h){Promise.reject(h)}throw this.#n({type:"error",error:c}),c}finally{this.#a.runNext(this)}}#n(t){const a=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Rt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(t)}),this.#a.notify({mutation:this,type:"updated",action:t})})}};function Qg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var A6=class extends nl{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(t,a,i){const l=new D6({client:t,mutationCache:this,mutationId:++this.#a,options:t.defaultMutationOptions(a),state:i});return this.add(l),l}add(t){this.#e.add(t);const a=Jo(t);if(typeof a=="string"){const i=this.#t.get(a);i?i.push(t):this.#t.set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const a=Jo(t);if(typeof a=="string"){const i=this.#t.get(a);if(i)if(i.length>1){const l=i.indexOf(t);l!==-1&&i.splice(l,1)}else i[0]===t&&this.#t.delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=Jo(t);
9if(typeof a=="string"){const l=this.#t.get(a)?.find(o=>o.state.status==="pending");return!l||l===t}else return!0}runNext(t){const a=Jo(t);return typeof a=="string"?this.#t.get(a)?.find(l=>l!==t&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Rt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const a={exact:!0,...t};return this.getAll().find(i=>$m(a,i))}findAll(t={}){return this.getAll().filter(a=>$m(t,a))}notify(t){Rt.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return Rt.batch(()=>Promise.all(t.map(a=>a.continue().catch(Ft))))}};function Jo(t){return t.options.scope?.id}var O6=class extends nl{#e;#t=void 0;#a;#i;constructor(a,i){super(),this.#e=a,this.setOptions(i),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const i=this.options;this.options=this.#e.defaultMutationOptions(a),vc(this.options,i)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),i?.mutationKey&&this.options.mutationKey&&Zi(i.mutationKey)!==Zi(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(a){this.#n(),this.#s(a)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#n(),this.#s()}mutate(a,i){return this.#i=i,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(a)}#n(){const a=this.#a?.state??Qg();this.#t={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#s(a){Rt.batch(()=>{if(this.#i&&this.hasListeners()){const i=this.#t.variables,l=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#i.onSuccess?.(a.data,i,l,o)}catch(c){Promise.reject(c)}try{this.#i.onSettled?.(a.data,null,i,l,o)}catch(c){Promise.reject(c)}}else if(a?.type==="error"){try{this.#i.onError?.(a.error,i,l,o)}catch(c){Promise.reject(c)}try{this.#i.onSettled?.(void 0,a.error,i,l,o)}catch(c){Promise.reject(c)}}}this.listeners.forEach(i=>{i(this.#t)})})}},N6=class extends nl{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,a,i){const l=a.queryKey,o=a.queryHash??w0(l,a);let c=this.get(o);return c||(c=new C6({client:t,queryKey:l,queryHash:o,options:t.defaultQueryOptions(a),state:i,defaultOptions:t.getQueryDefaults(l)}),this.add(c)),c}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=this.#e.get(t.queryHash);a&&(t.destroy(),a===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const a={exact:!0,...t};return this.getAll().find(i=>Ym(a,i))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(i=>Ym(t,i)):a}notify(t){Rt.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},U6=class{#e;#t;#a;#i;#n;#s;#l;#r;constructor(t={}){this.#e=t.queryCache||new N6,this.#t=t.mutationCache||new A6,this.#a=t.defaultOptions||{},this.#i=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=b0.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=yc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#r?.(),this.#r=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const a=this.defaultQueryOptions({queryKey:t});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),i=this.#e.build(this,a),l=i.state.data;return l===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(yi(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:a,state:i})=>{const l=i.data;return[a,l]})}setQueryData(t,a,i){const l=this.defaultQueryOptions({queryKey:t}),c=this.#e.get(l.queryHash)?.state.data,h=g6(a,c);if(h!==void 0)return this.#e.build(this,l).setData(h,{...i,manual:!0})}
vendor: 5,433 bytes, line 9
9setQueriesData(t,a,i){return Rt.batch(()=>this.#e.findAll(t).map(({queryKey:l})=>[l,this.setQueryData(l,a,i)]))}getQueryState(t){const a=this.defaultQueryOptions({queryKey:t});return this.#e.get(a.queryHash)?.state}removeQueries(t){const a=this.#e;Rt.batch(()=>{a.findAll(t).forEach(i=>{a.remove(i)})})}resetQueries(t,a){const i=this.#e;return Rt.batch(()=>(i.findAll(t).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const i={revert:!0,...a},l=Rt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(i)));return Promise.all(l).then(Ft).catch(Ft)}invalidateQueries(t,a={}){return Rt.batch(()=>(this.#e.findAll(t).forEach(i=>{i.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},a)))}refetchQueries(t,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},l=Rt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Ft)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(l).then(Ft)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const i=this.#e.build(this,a);return i.isStaleByTime(yi(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ft).catch(Ft)}fetchInfiniteQuery(t){return t.behavior=Wm(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ft).catch(Ft)}ensureInfiniteQueryData(t){return t.behavior=Wm(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return yc.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(t){this.#a=t}setQueryDefaults(t,a){this.#i.set(Zi(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...this.#i.values()],i={};return a.forEach(l=>{gr(t,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(t,a){this.#n.set(Zi(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...this.#n.values()],i={};return a.forEach(l=>{gr(t,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const a={...this.#a.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=w0(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===S0&&(a.enabled=!1),a}defaultMutationOptions(t){return t?._defaulted?t:{...this.#a.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Zg=y.createContext(void 0),Jg=t=>{const a=y.useContext(Zg);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},z6=({client:t,children:a})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(Zg.Provider,{value:t,children:a})),Wg=y.createContext(!1),L6=()=>y.useContext(Wg);Wg.Provider;function I6(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var j6=y.createContext(I6()),B6=()=>y.useContext(j6),P6=(t,a,i)=>{const l=i?.state.error&&typeof t.throwOnError=="function"?E0(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||l)&&(a.isReset()||(t.retryOnMount=!1))},H6=t=>{y.useEffect(()=>{t.clearReset()},[t])},G6=({result:t,errorResetBoundary:a,throwOnError:i,query:l,suspense:o})=>t.isError&&!a.isReset()&&!t.isFetching&&l&&(o&&t.data===void 0||E0(i,[t.error,l])),q6=t=>{if(t.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),l=t.staleTime;t.staleTime=typeof l=="function"?(...o)=>i(l(...o)):i(l),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},V6=(t,a)=>t.isLoading&&t.isFetching&&!a,Y6=(t,a)=>t?.suspense&&a.isPending,t3=(t,a,i)=>a.fetchOptimistic(t).catch(()=>{i.clearReset()});function $6(t,a,i){const l=L6(),o=B6(),c=Jg(),h=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(h);const f=c.getQueryCache().get(h.queryHash);h._optimisticResults=l?"isRestoring":"optimistic",q6(h),P6(h,o,f),H6(o);const g=!c.getQueryCache().get(h.queryHash),[m]=y.useState(()=>new a(c,h)),_=m.getOptimisticResult(h),b=!l&&t.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(E=>{const w=b?m.subscribe(Rt.batchCalls(E)):Ft;return m.updateResult(),w},[m,b]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),y.useEffect(()=>{m.setOptions(h)},[h,m]),Y6(h,_))throw t3(h,m,o);if(G6({result:_,errorResetBoundary:o,throwOnError:h.throwOnError,query:f,suspense:h.suspense}))throw _.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(h,_),h.experimental_prefetchInRender&&!pr.isServer()&&V6(_,l)&&(g?t3(h,m,o):f?.promise)?.catch(Ft).finally(()=>{m.updateResult()}),h.notifyOnChangeProps?_:m.trackResult(_)}function Si(t,a){return $6(t,T6)}function K6(t,a){const i=Jg(),[l]=y.useState(()=>new O6(i,t));y.useEffect(()=>{l.setOptions(t)},[l,t]);const o=y.useSyncExternalStore(y.useCallback(h=>l.subscribe(Rt.batchCalls(h)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=y.useCallback((h,f)=>{l.mutate(h,f).catch(Ft)},[l]);if(o.error&&E0(l.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}
9class cr extends Error{}cr.prototype.name="InvalidTokenError";function F6(t){return decodeURIComponent(atob(t).replace(/(.)/g,(a,i)=>{let l=i.charCodeAt(0).toString(16).toUpperCase();return l.length<2&&(l="0"+l),"%"+l}))}function X6(t){let a=t.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return F6(a)}catch{return atob(a)}}function Q6(t,a){if(typeof t!="string")throw new cr("Invalid token specified: must be a string");a||(a={});const i=a.header===!0?0:1,l=t.split(".")[i];if(typeof l!="string")throw new cr(`Invalid token specified: missing part #${i+1}`);let o;try{o=X6(l)}catch(c){throw new cr(`Invalid token specified: invalid base64 for part #${i+1} (${c.message})`)}try{return JSON.parse(o)}catch(c){throw new cr(`Invalid token specified: invalid json for part #${i+1} (${c.message})`)}}var Z6={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},an,nn,bc=(t=>(t[t.NONE=0]="NONE",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.DEBUG=4]="DEBUG",t))(bc||{});(t=>{function a(){an=3,nn=Z6}t.reset=a;function i(o){if(!(0<=o&&o<=4))throw new Error("Invalid log level");an=o}t.setLevel=i;function l(o){nn=o}t.setLogger=l})(bc||(bc={}));var Ie=class tn{constructor(a){this._name=a}debug(...a){an>=4&&nn.debug(tn._format(this._name,this._method),...a)}info(...a){an>=3&&nn.info(tn._format(this._name,this._method),...a)}warn(...a){an>=2&&nn.warn(tn._format(this._name,this._method),...a)}error(...a){an>=1&&nn.error(tn._format(this._name,this._method),...a)}throw(a){throw this.error(a),a}create(a){const i=Object.create(this);return i._method=a,i.debug("begin"),i}static createStatic(a,i){const l=new tn(`${a}.${i}`);return l.debug("begin"),l}static _format(a,i){const l=`[${a}]`;return i?`${l} ${i}:`:l}static debug(a,...i){an>=4&&nn.debug(tn._format(a),...i)}static info(a,...i){an>=3&&nn.info(tn._format(a),...i)}static warn(a,...i){an>=2&&nn.warn(tn._format(a),...i)}static error(a,...i){an>=1&&nn.error(tn._format(a),...i)}};bc.reset();var _r=class{static decode(t){try{return Q6(t)}catch(a){throw Ie.error("JwtUtils.decode",a),a}}static async generateSignedJwt(t,a,i){const l=xt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=xt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(a))),c=`${l}.${o}`,h=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},i,new TextEncoder().encode(c)),f=xt.encodeBase64Url(new Uint8Array(h));return`${c}.${f}`}static async generateSignedJwtWithHmac(t,a,i){const l=xt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=xt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(a))),c=`${l}.${o}`,h=await window.crypto.subtle.sign("HMAC",i,new TextEncoder().encode(c)),f=xt.encodeBase64Url(new Uint8Array(h));return`${c}.${f}`}},J6="10000000-1000-4000-8000-100000000000",Kd=t=>btoa([...new Uint8Array(t)].map(a=>String.fromCharCode(a)).join("")),ep=class Ba{static _randomWord(){const a=new Uint32Array(1);return crypto.getRandomValues(a),a[0]}static generateUUIDv4(){return J6.replace(/[018]/g,i=>(+i^Ba._randomWord()&15>>+i/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return Ba.generateUUIDv4()+Ba.generateUUIDv4()+Ba.generateUUIDv4()}static async generateCodeChallenge(a){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const l=new TextEncoder().encode(a),o=await crypto.subtle.digest("SHA-256",l);return Kd(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(i){throw Ie.error("CryptoUtils.generateCodeChallenge",i),i}}static generateBasicAuth(a,i){const o=new TextEncoder().encode([a,i].join(":"));return Kd(o)}static async hash(a,i){const l=new TextEncoder().encode(i),o=await crypto.subtle.digest(a,l);return new Uint8Array(o)}static async customCalculateJwkThumbprint(a){let i;switch(a.kty){case"RSA":i={e:a.e,kty:a.kty,n:a.n};break;case"EC":i={crv:a.crv,kty:a.kty,x:a.x,y:a.y};break;case"OKP":i={crv:a.crv,kty:a.kty,x:a.x};break;case"oct":i={crv:a.k,kty:a.kty};break;default:throw new Error("Unknown jwk type")}const l=await Ba.hash("SHA-256",JSON.stringify(i));return Ba.encodeBase64Url(l)}static async generateDPoPProof({url:a,accessToken:i,httpMethod:l,keyPair:o,nonce:c}){let h,f;const g={jti:window.crypto.randomUUID(),htm:l??"GET",htu:a,iat:Math.floor(Date.now()/1e3)};i&&(h=await Ba.hash("SHA-256",i),f=Ba.encodeBase64Url(h),g.ath=f),c&&(g.nonce=c);try{const m=await crypto.subtle.exportKey("jwk",o.publicKey),_={alg:"ES256",typ:"dpop+jwt",jwk:{crv:m.crv,kty:m.kty,x:m.x,y:m.
9y}};return await _r.generateSignedJwt(_,g,o.privateKey)}catch(m){throw m instanceof TypeError?new Error(`Error exporting dpop public key: ${m.message}`):m}}static async generateDPoPJkt(a){try{const i=await crypto.subtle.exportKey("jwk",a.publicKey);return await Ba.customCalculateJwkThumbprint(i)}catch(i){throw i instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${i.message}`):i}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}static async generateClientAssertionJwt(a,i,l,o="HS256"){const c=Math.floor(Date.now()/1e3),h={alg:o,typ:"JWT"},f={iss:a,sub:a,aud:l,jti:Ba.generateUUIDv4(),exp:c+300,iat:c},m={HS256:"SHA-256",HS384:"SHA-384",HS512:"SHA-512"}[o];if(!m)throw new Error(`Unsupported algorithm: ${o}. Supported algorithms are: HS256, HS384, HS512`);const _=new TextEncoder,b=await crypto.subtle.importKey("raw",_.encode(i),{name:"HMAC",hash:m},!1,["sign"]);return await _r.generateSignedJwtWithHmac(h,f,b)}};ep.encodeBase64Url=t=>Kd(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var xt=ep,mi=class{constructor(t){this._name=t,this._callbacks=[],this._logger=new Ie(`Event('${this._name}')`)}addHandler(t){return this._callbacks.push(t),()=>this.removeHandler(t)}removeHandler(t){const a=this._callbacks.lastIndexOf(t);a>=0&&this._callbacks.splice(a,1)}async raise(...t){this._logger.debug("raise:",...t);for(const a of this._callbacks)await a(...t)}},a3=class{static center({...t}){var a,i,l;return t.width==null&&(t.width=(a=[800,720,600,480].find(o=>o<=window.outerWidth/1.618))!=null?a:360),(i=t.left)!=null||(t.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-t.width)/2))),t.height!=null&&((l=t.top)!=null||(t.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-t.height)/2)))),t}static serialize(t){return Object.entries(t).filter(([,a])=>a!=null).map(([a,i])=>`${a}=${typeof i!="boolean"?i:i?"yes":"no"}`).join(",")}},Nn=class uc extends mi{constructor(){super(...arguments),this._logger=new Ie(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const a=this._expiration-uc.getEpochTime();this._logger.debug("timer completes in",a),this._expiration<=uc.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(a){const i=this._logger.create("init");a=Math.max(Math.floor(a),1);const l=uc.getEpochTime()+a;if(this.expiration===l&&this._timerHandle){i.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),i.debug("using duration",a),this._expiration=l;const o=Math.min(a,5);this._timerHandle=setInterval(this._callback,o*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},Fd=class{static readParams(t,a="query"){if(!t)throw new TypeError("Invalid URL");const l=new URL(t,"http://127.0.0.1")[a==="fragment"?"hash":"search"];return new URLSearchParams(l.slice(1))}},Ws=";",Ji=class extends Error{constructor(t,a){var i,l,o;if(super(t.error_description||t.error||""),this.form=a,this.name="ErrorResponse",!t.error)throw Ie.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=t.error,this.error_description=(i=t.error_description)!=null?i:null,this.error_uri=(l=t.error_uri)!=null?l:null,this.state=t.userState,this.session_state=(o=t.session_state)!=null?o:null,this.url_state=t.url_state}},C0=class extends Error{constructor(t){super(t),this.name="ErrorTimeout"}},W6=class{constructor(t){this._logger=new Ie("AccessTokenEvents"),this._expiringTimer=new Nn("Access token expiring"),this._expiredTimer=new Nn("Access token expired"),this._expiringNotificationTimeInSeconds=t.expiringNotificationTimeInSeconds}async load(t){const a=this._logger.create("load");if(t.access_token&&t.expires_in!==void 0){const i=t.expires_in;if(a.debug("access token present, remaining duration:",i),i>0){let o=i-this._expiringNotificationTimeInSeconds;o<=0&&(o=1),a.debug("registering expiring timer, raising in",o,"seconds"),this._expiringTimer.init(o)}else a.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const l=i+1;a.debug("registering expired timer, raising in",l,"seconds"),this._expiredTimer.init(l)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(t){return this._expiringTimer.addHandler(t)}removeAccessTokenExpiring(t){this._expiringTimer.removeHandler(t)}addAccessTokenExpired(t){return this._expiredTimer.addHandler(t)}removeAccessTokenExpired(t){this._expiredTimer.removeHandler(t)}},e5=class{constructor(t,a,i,l,o){this._callback=t,this._client_id=a,this._intervalInSeconds=l,this._stopOnError=o,this._logger=new Ie("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=h=>{h.origin===this._frame_origin&&h.source===this._frame.contentWindow&&(h.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):h.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(h.data+" message from check session op iframe"))};const c=new URL(i);this._frame_origin=c.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=c.href}load(){return new Promise(t=>{this._frame.onload=()=>{t()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(t){if(this._session_state===t)return;this._logger.create("start"),this.stop(),this._session_state=t;const a=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};a(),this._timer=setInterval(a,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},tp=class{constructor(){this._logger=new Ie("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(t){return this._logger.create(`getItem('${t}')`),this._data[t]}setItem(t,a){this._logger.create(`setItem('${t}')`),this._data[t]=a}removeItem(t){this._logger.create(`removeItem('${t}')`),delete this._data[t]}get length(){return Object.getOwnPropertyNames(this._data).length}key(t){return Object.getOwnPropertyNames(this._data)[t]}}
9,Xd=class extends Error{constructor(t,a){super(a),this.name="ErrorDPoPNonce",this.nonce=t}},T0=class{constructor(t=[],a=null,i={}){this._jwtHandler=a,this._extraHeaders=i,this._logger=new Ie("JsonService"),this._contentTypes=[],this._contentTypes.push(...t,"application/json"),a&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(t,a={}){const{timeoutInSeconds:i,...l}=a;if(!i)return await fetch(t,l);const o=new AbortController,c=setTimeout(()=>o.abort(),i*1e3);try{return await fetch(t,{...a,signal:o.signal})}catch(h){throw h instanceof DOMException&&h.name==="AbortError"?new C0("Network timed out"):h}finally{clearTimeout(c)}}async getJson(t,{token:a,credentials:i,timeoutInSeconds:l}={}){const o=this._logger.create("getJson"),c={Accept:this._contentTypes.join(", ")};a&&(o.debug("token passed, setting Authorization header"),c.Authorization="Bearer "+a),this._appendExtraHeaders(c);let h;try{o.debug("url:",t),h=await this.fetchWithTimeout(t,{method:"GET",headers:c,timeoutInSeconds:l,credentials:i})}catch(m){throw o.error("Network Error"),m}o.debug("HTTP response received, status",h.status);const f=h.headers.get("Content-Type");if(f&&!this._contentTypes.find(m=>f.startsWith(m))&&o.throw(new Error(`Invalid response Content-Type: ${f??"undefined"}, from URL: ${t}`)),h.ok&&this._jwtHandler&&f?.startsWith("application/jwt"))return await this._jwtHandler(await h.text());let g;try{g=await h.json()}catch(m){throw o.error("Error parsing JSON response",m),h.ok?m:new Error(`${h.statusText} (${h.status})`)}if(!h.ok)throw o.error("Error from server:",g),g.error?new Ji(g):new Error(`${h.statusText} (${h.status}): ${JSON.stringify(g)}`);return g}async postForm(t,{body:a,basicAuth:i,timeoutInSeconds:l,initCredentials:o,extraHeaders:c}){const h=this._logger.create("postForm"),f={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...c};i!==void 0&&(f.Authorization="Basic "+i),this._appendExtraHeaders(f);let g;try{h.debug("url:",t),g=await this.fetchWithTimeout(t,{method:"POST",headers:f,body:a,timeoutInSeconds:l,credentials:o})}catch(E){throw h.error("Network error"),E}h.debug("HTTP response received, status",g.status);const m=g.headers.get("Content-Type");if(m&&!this._contentTypes.find(E=>m.startsWith(E)))throw new Error(`Invalid response Content-Type: ${m??"undefined"}, from URL: ${t}`);const _=await g.text();let b={};if(_)try{b=JSON.parse(_)}catch(E){throw h.error("Error parsing JSON response",E),g.ok?E:new Error(`${g.statusText} (${g.status})`)}if(!g.ok){if(h.error("Error from server:",b),g.headers.has("dpop-nonce")){const E=g.headers.get("dpop-nonce");throw new Xd(E,`${JSON.stringify(b)}`)}throw b.error?new Ji(b,a):new Error(`${g.statusText} (${g.status}): ${JSON.stringify(b)}`)}return b}_appendExtraHeaders(t){const a=this._logger.create("appendExtraHeaders"),i=Object.keys(this._extraHeaders),l=["accept","content-type"],o=["authorization"];i.length!==0&&i.forEach(c=>{if(l.includes(c.toLocaleLowerCase())){a.warn("Protected header could not be set",c,l);return}if(o.includes(c.toLocaleLowerCase())&&Object.keys(t).includes(c)){a.warn("Header could not be overridden",c,o);return}const h=typeof this._extraHeaders[c]=="function"?this._extraHeaders[c]():this._extraHeaders[c];h&&h!==""&&(t[c]=h)})}},t5=class{constructor(t){this._settings=t,this._logger=new Ie("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new T0(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const t=this._logger.create("getMetadata");if(this._metadata)return t.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw t.throw(new Error("No authority or metadataUrl configured on settings")),null;t.debug("getting metadata from",this._metadataUrl);const a=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},a,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(t=!0){return this._getMetadataProperty("token_endpoint",t)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(t=!0){return this._getMetadataProperty("revocation_endpoint",t)}getKeysEndpoint(t=!0){return this._getMetadataProperty("jwks_uri",t)}async _getMetadataProperty(t,a=!1){const i=this._logger.create(`_getMetadataProperty('${t}')`),l=await this.getMetadata();if(i.debug("resolved"),l[t]===void 0){if(a===!0){i.warn("Metadata does not contain optional property");return}i.throw(new Error("Metadata does not contain property "+t))}return l[t]}async getSigningKeys(){const t=this._logger.create("getSigningKeys");if(this._signingKeys)return t.debug("returning signingKeys from cache"),this._signingKeys;const a=await this.getKeysEndpoint(!1);t.debug("got jwks_uri",a);const i=await this._jsonService.getJson(a,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(t.debug("got key set",i),!Array.isArray(i.keys))throw t.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=i.keys,this._signingKeys}},ap=class{constructor({prefix:t="oidc.",store:a=localStorage}={}){this._logger=new Ie("WebStorageStateStore"),this._store=a,this._prefix=t}async set(t,a){this._logger.create(`set('${t}')`),t=this._prefix+t,await this._store.setItem(t,a)}async get(t){return this._logger.create(`get('${t}')`),t=this._prefix+t,await this._store.getItem(t)}async remove(t){this._logger.create(`remove('${t}')`),t=this._prefix+t;const a=await this._store.getItem(t);return await this._store.removeItem(t),a}async getAllKeys(){this._logger.create("getAllKeys");const t=await this._store.length,a=[];for(let i=0;i<t;i++){const l=await this._store.key(i);l&&l.indexOf(this._prefix)===0&&a.push(l.substr(this._prefix.length))}return a}},a5="code",n5="openid",i5="client_secret_post",s5=900,Qd=class{constructor({authority:t,metadataUrl:a,metadata:i,signingKeys:l,metadataSeed:o,client_id:c,client_secret:h,response_type:f=a5,scope:g=n5,redirect_uri:m,post_logout_redirect_uri:_,client_authentication:b=i5,token_endpoint_auth_signing_alg:E="HS256",prompt:w,display:x,max_age:A,ui_locales:M,acr_values:z,resource:G,response_mode:U,filterProtocolClaims:L=!0,loadUserInfo:X=!1,requestTimeoutInSeconds:te,staleStateAgeInSeconds:V=s5,mergeClaimsStrategy:R={array:"replace"},disablePKCE:Z=!1,stateStore:J,revokeTokenAdditionalContentTypes:re,fetchRequestCredentials:fe,refreshTokenAllowedScope:Be,extraQueryParams:Ce={},extraTokenParams:pe={},extraHeaders:H={},dpop:W,omitScopeWhenRequesting:oe=!1}){var ue;if(this.authority=t,a?this.metadataUrl=a:(this.metadataUrl=t,t&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=i,this.metadataSeed=o,this.signingKeys=l,this.client_id=c,this.client_secret=h,this.response_type=f,this.scope=g,this.redirect_uri=m,this.post_logout_redirect_uri=_,this.client_authentication=b,this.token_endpoint_auth_signing_alg=E,this.prompt=w,this.display=x,this.max_age=A,this.ui_locales=M,this.acr_values=z,this.resource=G,this.response_mode=U,this.filterProtocolClaims=L??!0,this.loadUserInfo=!!X,this.staleStateAgeInSeconds=V,this.mergeClaimsStrategy=R,this.omitScopeWhenRequesting=oe,this.disablePKCE=!!Z,this.revokeTokenAdditionalContentTypes=re,this.fetchRequestCredentials=fe||"same-origin",this.requestTimeoutInSeconds=te,J)this.stateStore=J;else{const Ee=typeof window<"u"?window.localStorage:new tp;this.stateStore=new ap({store:Ee})}if(this.refreshTokenAllowedScope=Be,this.extraQueryParams=Ce,this.extraTokenParams=pe,this.extraHeaders=H,this.dpop=W,this.dpop&&!((ue=this.dpop)!=null&&ue.store))throw new Error("A DPoPStore is required when dpop is enabled")}},l5=class{constructor(t,a){this._settings=t,this._metadataService=a,this._logger=new Ie("UserInfoService"),this._getClaimsFromJwt=async i=>{const l=this._logger.create("_getClaimsFromJwt");try{const o=_r.decode(i);return l.debug("JWT decoding successful"),o}catch(o){throw l.error("Error parsing JWT response"),o}},this._jsonService=new T0(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(t){const a=this._logger.create("getClaims");t||this._logger.throw(new Error("No token passed"));const i=await this._metadataService.getUserInfoEndpoint();a.debug("got userinfo url",i);const l=await this._jsonService.getJson(i,{token:t,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return a.debug("got claims",l),l}},np=class{constructor(t,a){this._settings=t,this._metadataService=a,this._logger=new Ie("TokenClient"),this._jsonService=new T0(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:t="authorization_code",redirect_uri:a=this._settings.redirect_uri,client_id:i=this._settings.client_id,client_secret:l=this._settings.client_secret,extraHeaders:o,...c}){const h=this._logger.create("exchangeCode");i||h.throw(new Error("A client_id is required")),a||h.throw(new Error("A redirect_uri is required")),c.code||h.throw(new Error("A code is required"));const f=new URLSearchParams({grant_type:t,redirect_uri:a});for(const[b,E]of Object.entries(c))E!=null&&f.set(b,E);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&l==null)throw h.throw(new Error("A client_secret is required")),null;let g;const m=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":g=xt.generateBasicAuth(i,l);break;case"client_secret_post":f.append("client_id",i),l&&f.append("client_secret",l);break;case"client_secret_jwt":{const b=await xt.generateClientAssertionJwt(i,l,m,this._settings.token_endpoint_auth_signing_alg);f.append("client_id",i),f.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),f.append("client_assertion",b);break}}h.debug("got token endpoint");const _=await this._jsonService.postForm(m,{body:f,basicAuth:g,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:o});return h.debug("got response"),_}async exchangeCredentials({grant_type:t="password",client_id:a=this._settings.client_id,client_secret:i=this._settings.client_secret,scope:l=this._settings.scope,...o}){const c=this._logger.create("exchangeCredentials");a||c.throw(new Error("A client_id is required"));const h=new URLSearchParams({grant_type:t});this._settings.omitScopeWhenRequesting||h.set("scope",l);for(const[_,b]of Object.entries(o))b!=null&&h.set(_,b);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&i==null)throw c.throw(new Error("A client_secret is required")),null;let f;const g=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":f=xt.generateBasicAuth(a,i);break;case"client_secret_post":h.append("client_id",a),i&&h.append("client_secret",i);break;case"client_secret_jwt":{const _=await xt.generateClientAssertionJwt(a,i,g,this._settings.token_endpoint_auth_signing_alg);h.append("client_id",a),h.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),h.append("client_assertion",_);break}}c.debug("got token endpoint");const m=await this._jsonService.postForm(g,{body:h,basicAuth:f,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return c.debug("got response"),m}async exchangeRefreshToken({grant_type:t="refresh_token",client_id:a=this._settings.client_id,client_secret:i=this._settings.client_secret,timeoutInSeconds:l,extraHeaders:o,...c}){const h=this._logger.create("exchangeRefreshToken");a||h.throw(new Error("A client_id is required")),c.refresh_token||h.throw(new Error("A refresh_token is required"));const f=new URLSearchParams({grant_type:t});
9for(const[b,E]of Object.entries(c))Array.isArray(E)?E.forEach(w=>f.append(b,w)):E!=null&&f.set(b,E);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&i==null)throw h.throw(new Error("A client_secret is required")),null;let g;const m=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":g=xt.generateBasicAuth(a,i);break;case"client_secret_post":f.append("client_id",a),i&&f.append("client_secret",i);break;case"client_secret_jwt":{const b=await xt.generateClientAssertionJwt(a,i,m,this._settings.token_endpoint_auth_signing_alg);f.append("client_id",a),f.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),f.append("client_assertion",b);break}}h.debug("got token endpoint");const _=await this._jsonService.postForm(m,{body:f,basicAuth:g,timeoutInSeconds:l,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:o});return h.debug("got response"),_}async revoke(t){var a;const i=this._logger.create("revoke");t.token||i.throw(new Error("A token is required"));const l=await this._metadataService.getRevocationEndpoint(!1);i.debug(`got revocation endpoint, revoking ${(a=t.token_type_hint)!=null?a:"default token type"}`);const o=new URLSearchParams;for(const[c,h]of Object.entries(t))h!=null&&o.set(c,h);o.set("client_id",this._settings.client_id),this._settings.client_secret&&o.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(l,{body:o,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),i.debug("got response")}},r5=class{constructor(t,a,i){this._settings=t,this._metadataService=a,this._claimsService=i,this._logger=new Ie("ResponseValidator"),this._userInfoService=new l5(this._settings,this._metadataService),this._tokenClient=new np(this._settings,this._metadataService)}async validateSigninResponse(t,a,i){const l=this._logger.create("validateSigninResponse");this._processSigninState(t,a),l.debug("state processed"),await this._processCode(t,a,i),l.debug("code processed"),t.isOpenId&&this._validateIdTokenAttributes(t,"",a.nonce),l.debug("tokens validated"),await this._processClaims(t,a?.skipUserInfo,t.isOpenId),l.debug("claims processed")}async validateCredentialsResponse(t,a){const i=this._logger.create("validateCredentialsResponse"),l=t.isOpenId&&!!t.id_token;l&&this._validateIdTokenAttributes(t),i.debug("tokens validated"),await this._processClaims(t,a,l),i.debug("claims processed")}async validateRefreshResponse(t,a){var i,l;const o=this._logger.create("validateRefreshResponse");t.userState=a.data,(i=t.session_state)!=null||(t.session_state=a.session_state),(l=t.scope)!=null||(t.scope=a.scope),t.isOpenId&&t.id_token&&(this._validateIdTokenAttributes(t,a.id_token),o.debug("ID Token validated")),t.id_token||(t.id_token=a.id_token,t.profile=a.profile);const c=t.isOpenId&&!!t.id_token;await this._processClaims(t,!1,c),o.debug("claims processed")}validateSignoutResponse(t,a){const i=this._logger.create("validateSignoutResponse");if(a.id!==t.state&&i.throw(new Error("State does not match")),i.debug("state validated"),t.userState=a.data,t.error)throw i.warn("Response was error",t.error),new Ji(t)}_processSigninState(t,a){var i;const l=this._logger.create("_processSigninState");if(a.id!==t.state&&l.throw(new Error("State does not match")),a.client_id||l.throw(new Error("No client_id on state")),a.authority||l.throw(new Error("No authority on state")),this._settings.authority!==a.authority&&l.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==a.client_id&&l.throw(new Error("client_id mismatch on settings vs. signin state")),l.debug("state validated"),t.userState=a.data,t.url_state=a.url_state,(i=t.scope)!=null||(t.scope=a.scope),t.error)throw l.warn("Response was error",t.error),new Ji(t);a.code_verifier&&!t.code&&l.throw(new Error("Expected code in response"))}async _processClaims(t,a=!1,i=!0){const l=this._logger.create("_processClaims");if(t.profile=this._claimsService.filterProtocolClaims(t.profile),a||!this._settings.loadUserInfo||!t.access_token){l.debug("not loading user info");return}l.debug("loading user info");const o=await this._userInfoService.getClaims(t.access_token);l.debug("user info claims received from user info endpoint"),i&&o.sub!==t.profile.sub&&l.throw(new Error("subject from UserInfo response does not match subject in ID Token")),t.profile=this._claimsService.mergeClaims(t.profile,this._claimsService.filterProtocolClaims(o)),l.debug("user info claims received, updated profile:",t.profile)}async _processCode(t,a,i){const l=this._logger.create("_processCode");if(t.code){l.debug("Validating code");const o=await this._tokenClient.exchangeCode({client_id:a.client_id,client_secret:a.client_secret,code:t.code,redirect_uri:a.redirect_uri,code_verifier:a.code_verifier,extraHeaders:i,...a.extraTokenParams});Object.assign(t,o)}else l.debug("No code to process")}_validateIdTokenAttributes(t,a,i){var l;const o=this._logger.create("_validateIdTokenAttributes");o.debug("decoding ID Token JWT");const c=_r.decode((l=t.id_token)!=null?l:"");if(c.sub||o.throw(new Error("ID Token is missing a subject claim")),i&&c.nonce!==i&&o.throw(new Error("nonce in id_token does not match nonce in client storage")),a){const h=_r.decode(a);c.sub!==h.sub&&o.throw(new Error("sub in id_token does not match current sub")),c.auth_time&&c.auth_time!==h.auth_time&&o.throw(new Error("auth_time in id_token does not match original auth_time")),c.azp&&c.azp!==h.azp&&o.throw(new Error("azp in id_token does not match original azp")),!c.azp&&h.azp&&o.throw(new Error("azp not in id_token, but present in original id_token"))}t.profile=c}},wc=class Zd{constructor(a){this.id=a.id||xt.generateUUIDv4(),this.data=a.data,a.created&&a.created>0?this.created=a.created:this.created=Nn.getEpochTime(),this.request_type=a.request_type,this.url_state=a.url_state}toStorageString(){return new Ie("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(a){return Ie.createStatic("State","fromStorageString"),Promise.resolve(new Zd(JSON.parse(a)))}static async clearStaleState(a,i){const l=Ie.createStatic("State","clearStaleState"),o=Nn.getEpochTime()-i,c=await a.getAllKeys();l.debug("got keys",c);for(let h=0;h<c.length;h++){const f=c[h],g=await a.get(f);let m=!1;if(g)try{const _=await Zd.fromStorageString(g);l.debug("got item from key:",f,_.created),_.created<=o&&(m=!0)}catch(_){l.error("Error parsing state for key:",f,_),m=!0}else l.debug("no item in storage for key:",f),m=!0;m&&(l.debug("removed item for key:",f),a.remove(f))}}}
9,ip=class Jd extends wc{constructor(a){super(a),this.code_verifier=a.code_verifier,this.code_challenge=a.code_challenge,this.authority=a.authority,this.client_id=a.client_id,this.redirect_uri=a.redirect_uri,this.scope=a.scope,this.client_secret=a.client_secret,this.extraTokenParams=a.extraTokenParams,this.response_mode=a.response_mode,this.skipUserInfo=a.skipUserInfo,this.nonce=a.nonce}static async create(a){const i=a.code_verifier===!0?xt.generateCodeVerifier():a.code_verifier||void 0,l=i?await xt.generateCodeChallenge(i):void 0;return new Jd({...a,code_verifier:i,code_challenge:l})}toStorageString(){return new Ie("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo,nonce:this.nonce})}static fromStorageString(a){Ie.createStatic("SigninState","fromStorageString");const i=JSON.parse(a);return Jd.create(i)}},sp=class lp{constructor(a){this.url=a.url,this.state=a.state}static async create({url:a,authority:i,client_id:l,redirect_uri:o,response_type:c,scope:h,state_data:f,response_mode:g,request_type:m,client_secret:_,nonce:b,url_state:E,resource:w,skipUserInfo:x,extraQueryParams:A,extraTokenParams:M,disablePKCE:z,dpopJkt:G,omitScopeWhenRequesting:U,...L}){if(!a)throw this._logger.error("create: No url passed"),new Error("url");if(!l)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!o)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!h)throw this._logger.error("create: No scope passed"),new Error("scope");if(!i)throw this._logger.error("create: No authority passed"),new Error("authority");const X=await ip.create({data:f,request_type:m,url_state:E,code_verifier:!z,client_id:l,authority:i,redirect_uri:o,response_mode:g,client_secret:_,scope:h,extraTokenParams:M,skipUserInfo:x,nonce:b}),te=new URL(a);te.searchParams.append("client_id",l),te.searchParams.append("redirect_uri",o),te.searchParams.append("response_type",c),U||te.searchParams.append("scope",h),b&&te.searchParams.append("nonce",b),G&&te.searchParams.append("dpop_jkt",G);let V=X.id;E&&(V=`${V}${Ws}${E}`),te.searchParams.append("state",V),X.code_challenge&&(te.searchParams.append("code_challenge",X.code_challenge),te.searchParams.append("code_challenge_method","S256")),w&&(Array.isArray(w)?w:[w]).forEach(Z=>te.searchParams.append("resource",Z));for(const[R,Z]of Object.entries({response_mode:g,...L,...A}))Z!=null&&te.searchParams.append(R,Z.toString());return new lp({url:te.href,state:X})}};sp._logger=new Ie("SigninRequest");var o5=sp,c5="openid",cd=class{constructor(t){if(this.access_token="",this.token_type="",this.profile={},this.state=t.get("state"),this.session_state=t.get("session_state"),this.state){const a=decodeURIComponent(this.state).split(Ws);this.state=a[0],a.length>1&&(this.url_state=a.slice(1).join(Ws))}this.error=t.get("error"),this.error_description=t.get("error_description"),this.error_uri=t.get("error_uri"),this.code=t.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Nn.getEpochTime()}set expires_in(t){typeof t=="string"&&(t=Number(t)),t!==void 0&&t>=0&&(this.expires_at=Math.floor(t)+Nn.getEpochTime())}get isOpenId(){var t;return((t=this.scope)==null?void 0:t.split(" ").includes(c5))||!!this.id_token}},u5=class{constructor({url:t,state_data:a,id_token_hint:i,post_logout_redirect_uri:l,extraQueryParams:o,request_type:c,client_id:h,url_state:f}){if(this._logger=new Ie("SignoutRequest"),!t)throw this._logger.error("ctor: No url passed"),new Error("url");const g=new URL(t);if(i&&g.searchParams.append("id_token_hint",i),h&&g.searchParams.append("client_id",h),l&&(g.searchParams.append("post_logout_redirect_uri",l),a||f)){this.state=new wc({data:a,request_type:c,url_state:f});let m=this.state.id;f&&(m=`${m}${Ws}${f}`),g.searchParams.append("state",m)}for(const[m,_]of Object.entries({...o}))_!=null&&g.searchParams.append(m,_.toString());this.url=g.href}},h5=class{constructor(t){if(this.state=t.get("state"),this.state){const a=decodeURIComponent(this.state).split(Ws);this.state=a[0],a.length>1&&(this.url_state=a.slice(1).join(Ws))}this.error=t.get("error"),this.error_description=t.get("error_description"),this.error_uri=t.get("error_uri")}},d5=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],f5=["sub","iss","aud","exp","iat"],m5=class{constructor(t){this._settings=t,this._logger=new Ie("ClaimsService")}filterProtocolClaims(t){const a={...t};if(this._settings.filterProtocolClaims){let i;Array.isArray(this._settings.filterProtocolClaims)?i=this._settings.filterProtocolClaims:i=d5;for(const l of i)f5.includes(l)||delete a[l]}return a}mergeClaims(t,a){const i={...t};for(const[l,o]of Object.entries(a))if(i[l]!==o)if(Array.isArray(i[l])||Array.isArray(o))if(this._settings.mergeClaimsStrategy.array=="replace")i[l]=o;else{const c=Array.isArray(i[l])?i[l]:[i[l]];for(const h of Array.isArray(o)?o:[o])c.includes(h)||c.push(h);i[l]=c}else typeof i[l]=="object"&&typeof o=="object"?i[l]=this.mergeClaims(i[l],o):i[l]=o;return i}},rp=class{constructor(t,a){this.keys=t,this.nonce=a}},g5=class{constructor(t,a){this._logger=new Ie("OidcClient"),this.settings=t instanceof Qd?t:new Qd(t),this.metadataService=a??new t5(this.settings),this._claimsService=new m5(this.settings),this._val
9idator=new r5(this.settings,this.metadataService,this._claimsService),this._tokenClient=new np(this.settings,this.metadataService)}async createSigninRequest({state:t,request:a,request_uri:i,request_type:l,id_token_hint:o,login_hint:c,skipUserInfo:h,nonce:f,url_state:g,response_type:m=this.settings.response_type,scope:_=this.settings.scope,redirect_uri:b=this.settings.redirect_uri,prompt:E=this.settings.prompt,display:w=this.settings.display,max_age:x=this.settings.max_age,ui_locales:A=this.settings.ui_locales,acr_values:M=this.settings.acr_values,resource:z=this.settings.resource,response_mode:G=this.settings.response_mode,extraQueryParams:U=this.settings.extraQueryParams,extraTokenParams:L=this.settings.extraTokenParams,dpopJkt:X,omitScopeWhenRequesting:te=this.settings.omitScopeWhenRequesting}){const V=this._logger.create("createSigninRequest");if(m!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const R=await this.metadataService.getAuthorizationEndpoint();V.debug("Received authorization endpoint",R);const Z=await o5.create({url:R,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:b,response_type:m,scope:_,state_data:t,url_state:g,prompt:E,display:w,max_age:x,ui_locales:A,id_token_hint:o,login_hint:c,acr_values:M,dpopJkt:X,resource:z,request:a,request_uri:i,extraQueryParams:U,extraTokenParams:L,request_type:l,response_mode:G,client_secret:this.settings.client_secret,skipUserInfo:h,nonce:f,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:te});await this.clearStaleState();const J=Z.state;return await this.settings.stateStore.set(J.id,J.toStorageString()),Z}async readSigninResponseState(t,a=!1){const i=this._logger.create("readSigninResponseState"),l=new cd(Fd.readParams(t,this.settings.response_mode));if(!l.state)throw i.throw(new Error("No state in response")),null;const o=await this.settings.stateStore[a?"remove":"get"](l.state);if(!o)throw i.throw(new Error("No matching state found in storage")),null;return{state:await ip.fromStorageString(o),response:l}}async processSigninResponse(t,a,i=!0){const l=this._logger.create("processSigninResponse"),{state:o,response:c}=await this.readSigninResponseState(t,i);if(l.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const h=await this.getDpopProof(this.settings.dpop.store);a={...a,DPoP:h}}try{await this._validator.validateSigninResponse(c,o,a)}catch(h){if(h instanceof Xd&&this.settings.dpop){const f=await this.getDpopProof(this.settings.dpop.store,h.nonce);a.DPoP=f,await this._validator.validateSigninResponse(c,o,a)}else throw h}return c}async getDpopProof(t,a){let i,l;return(await t.getAllKeys()).includes(this.settings.client_id)?(l=await t.get(this.settings.client_id),l.nonce!==a&&a&&(l.nonce=a,await t.set(this.settings.client_id,l))):(i=await xt.generateDPoPKeys(),l=new rp(i,a),await t.set(this.settings.client_id,l)),await xt.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:l.keys,nonce:l.nonce})}async processResourceOwnerPasswordCredentials({username:t,password:a,skipUserInfo:i=!1,extraTokenParams:l={}}){const o=await this._tokenClient.exchangeCredentials({username:t,password:a,...l}),c=new cd(new URLSearchParams);return Object.assign(c,o),await this._validator.validateCredentialsResponse(c,i),c}async useRefreshToken({state:t,redirect_uri:a,resource:i,timeoutInSeconds:l,extraHeaders:o,extraTokenParams:c}){var h;const f=this._logger.create("useRefreshToken");let g;if(this.settings.refreshTokenAllowedScope===void 0)g=t.scope;else{const b=this.settings.refreshTokenAllowedScope.split(" ");g=(((h=t.scope)==null?void 0:h.split(" "))||[]).filter(w=>b.includes(w)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const b=await this.getDpopProof(this.settings.dpop.store);o={...o,DPoP:b}}let m;try{m=await this._tokenClient.exchangeRefreshToken({refresh_token:t.refresh_token,scope:g,redirect_uri:a,resource:i,timeoutInSeconds:l,extraHeaders:o,...c})}catch(b){if(b instanceof Xd&&this.settings.dpop)o.DPoP=await this.getDpopProof(this.settings.dpop.store,b.nonce),m=await this._tokenClient.exchangeRefreshToken({refresh_token:t.refresh_token,scope:g,redirect_uri:a,resource:i,timeoutInSeconds:l,extraHeaders:o,...c});else throw b}const _=new cd(new URLSearchParams);return Object.assign(_,m),f.debug("validating response",_),await this._val
9idator.validateRefreshResponse(_,{...t,scope:g}),_}async createSignoutRequest({state:t,id_token_hint:a,client_id:i,request_type:l,url_state:o,post_logout_redirect_uri:c=this.settings.post_logout_redirect_uri,extraQueryParams:h=this.settings.extraQueryParams}={}){const f=this._logger.create("createSignoutRequest"),g=await this.metadataService.getEndSessionEndpoint();if(!g)throw f.throw(new Error("No end session endpoint")),null;f.debug("Received end session endpoint",g),!i&&c&&!a&&(i=this.settings.client_id);const m=new u5({url:g,id_token_hint:a,client_id:i,post_logout_redirect_uri:c,state_data:t,extraQueryParams:h,request_type:l,url_state:o});await this.clearStaleState();const _=m.state;return _&&(f.debug("Signout request has state to persist"),await this.settings.stateStore.set(_.id,_.toStorageString())),m}async readSignoutResponseState(t,a=!1){const i=this._logger.create("readSignoutResponseState"),l=new h5(Fd.readParams(t,this.settings.response_mode));if(!l.state){if(i.debug("No state in response"),l.error)throw i.warn("Response was error:",l.error),new Ji(l);return{state:void 0,response:l}}const o=await this.settings.stateStore[a?"remove":"get"](l.state);if(!o)throw i.throw(new Error("No matching state found in storage")),null;return{state:await wc.fromStorageString(o),response:l}}async processSignoutResponse(t){const a=this._logger.create("processSignoutResponse"),{state:i,response:l}=await this.readSignoutResponseState(t,!0);return i?(a.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(l,i)):a.debug("No state from storage; skipping response validation"),l}clearStaleState(){return this._logger.create("clearStaleState"),wc.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(t,a){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:t,token_type_hint:a})}},p5=class{constructor(t){this._userManager=t,this._logger=new Ie("SessionMonitor"),this._start=async a=>{const i=a.session_state;if(!i)return;const l=this._logger.create("_start");if(a.profile?(this._sub=a.profile.sub,l.debug("session_state",i,", sub",this._sub)):(this._sub=void 0,l.debug("session_state",i,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(i);return}try{const o=await this._userManager.metadataService.getCheckSessionIframe();if(o){l.debug("initializing check session iframe");const c=this._userManager.settings.client_id,h=this._userManager.settings.checkSessionIntervalInSeconds,f=this._userManager.settings.stopCheckSessionOnError,g=new e5(this._callback,c,o,h,f);await g.load(),this._checkSessionIFrame=g,g.start(i)}else l.warn("no check session iframe found in the metadata")}catch(o){l.error("Error from getCheckSessionIframe:",o instanceof Error?o.message:o)}},this._stop=()=>{const a=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const i=setInterval(async()=>{clearInterval(i);try{const l=await this._userManager.querySessionStatus();if(l){const o={session_state:l.session_state,profile:l.sub?{sub:l.sub}:null};this._start(o)}}catch(l){a.error("error from querySessionStatus",l instanceof Error?l.message:l)}},1e3)}},this._callback=async()=>{const a=this._logger.create("_callback");try{const i=await this._userManager.querySessionStatus();let l=!0;i&&this._checkSessionIFrame?i.sub===this._sub?(l=!1,this._checkSessionIFrame.start(i.session_state),a.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",i.session_state),await this._userManager.events._raiseUserSessionChanged()):a.debug("different subject signed into OP",i.sub):a.debug("subject no longer signed into OP"),l?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():a.debug("no change in session detected, no event to raise")}catch(i){this._sub&&(a.debug("Error calling queryCurrentSigninSession; raising signed out event",i),await this._userManager.events._raiseUserSignedOut())}},t||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(a=>{this._logger.error(a)})}async _init(){this._logger.create("_init");const t=await this._userManager.getUser();if(t)this._start(t);else if(this._userManager.settings.monitorAnonymousSession){const a=await this._userManager.querySessionStatus();if(a){const i={session_state:a.session_state,profile:a.sub?{sub:a.sub}:null};this._start(i)}}}},ud=class op{constructor(a){var i;this.id_token=a.id_token,this.session_state=(i=a.session_state)!=null?i:null,this.access_token=a.access_token,this.refresh_token=a.refresh_token,this.token_type=a.token_type,this.scope=a.scope,this.profile=a.profile,this.expires_at=a.expires_at,this.state=a.userState,this.url_state=a.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Nn.getEpochTime()}set expires_in(a){a!==void 0&&(this.expires_at=Math.floor(a)+Nn.getEpochTime())}get expired(){const a=this.expires_in;if(a!==void 0)return a<=0}get scopes(){var a,i;return(i=(a=this.scope)==null?void 0:a.split(" "))!=null?i:[]}toStorageString(){return new Ie("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(a){return Ie.createStatic("User","fromStorageString"),new op(JSON.parse(a))}},n3="oidc-client",cp=class{constructor(){this._abort=new mi("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(t){const a=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");a.debug("setting URL in window"),this._window.location.replace(t.url);const{url:i,keepOpen:l}=await new Promise((o,c)=>{const h=g=>{var m;const _=g.data,b=(m=t.scriptOrigin)!=null?m:window.location.origin;if(!(g.origin!==b||_?.source!==n3)){try{const E=Fd.readParams(_.url,t.response_mode).get("state");if(E||a.warn("no state found in response url"),g.source!==this._window&&E!==t.state)return}catch{this._dispose(),c(new Error("Invalid response from window"))}o(_)}};window.addEventListener("message",h,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",h,!1));const f=new BroadcastChannel(`oidc-client-popup-${t.state}`);f.addEventListener("message",h,!1),this._disposeHandlers.add(()=>f.close()),this._disposeHandlers.add(this._abort.addHandler(g=>{this._dispose(),c(g)}))});return a.debug("got response from window"),this._dispose(),l||this.close(),{url:i}}_dispose(){this._logger.create("_dispose");for(const t of this._disposeHandlers)t();this._disposeHandlers.clear()}static _notifyParent(t,a,i=!1,l=window.location.origin){const o={source:n3,url:a,keepOpen:i},c=new Ie("_notifyParent");
9if(t)c.debug("With parent. Using parent.postMessage."),t.postMessage(o,l);else{c.debug("No parent. Using BroadcastChannel.");const h=new URL(a).searchParams.get("state");if(!h)throw new Error("No parent and no state in URL. Can't complete notification.");const f=new BroadcastChannel(`oidc-client-popup-${h}`);f.postMessage(o),f.close()}}},up={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},hp="_blank",_5=60,v5=2,dp=10,y5=class extends Qd{constructor(t){const{popup_redirect_uri:a=t.redirect_uri,popup_post_logout_redirect_uri:i=t.post_logout_redirect_uri,popupWindowFeatures:l=up,popupWindowTarget:o=hp,redirectMethod:c="assign",redirectTarget:h="self",iframeNotifyParentOrigin:f=t.iframeNotifyParentOrigin,iframeScriptOrigin:g=t.iframeScriptOrigin,requestTimeoutInSeconds:m,silent_redirect_uri:_=t.redirect_uri,silentRequestTimeoutInSeconds:b,automaticSilentRenew:E=!0,validateSubOnSilentRenew:w=!0,includeIdTokenInSilentRenew:x=!1,monitorSession:A=!1,monitorAnonymousSession:M=!1,checkSessionIntervalInSeconds:z=v5,query_status_response_type:G="code",stopCheckSessionOnError:U=!0,revokeTokenTypes:L=["access_token","refresh_token"],revokeTokensOnSignout:X=!1,includeIdTokenInSilentSignout:te=!1,accessTokenExpiringNotificationTimeInSeconds:V=_5,maxSilentRenewTimeoutRetries:R,userStore:Z}=t;if(super(t),this.popup_redirect_uri=a,this.popup_post_logout_redirect_uri=i,this.popupWindowFeatures=l,this.popupWindowTarget=
9o,this.redirectMethod=c,this.redirectTarget=h,this.iframeNotifyParentOrigin=f,this.iframeScriptOrigin=g,this.silent_redirect_uri=_,this.silentRequestTimeoutInSeconds=b||m||dp,this.automaticSilentRenew=E,this.validateSubOnSilentRenew=w,this.includeIdTokenInSilentRenew=x,this.monitorSession=A,this.monitorAnonymousSession=M,this.checkSessionIntervalInSeconds=z,this.stopCheckSessionOnError=U,this.query_status_response_type=G,this.revokeTokenTypes=L,this.revokeTokensOnSignout=X,this.includeIdTokenInSilentSignout=te,this.accessTokenExpiringNotificationTimeInSeconds=V,this.maxSilentRenewTimeoutRetries=R,Z)this.userStore=Z;else{const J=typeof window<"u"?window.sessionStorage:new tp;this.userStore=new ap({store:J})}}},i3=class fp extends cp{constructor({silentRequestTimeoutInSeconds:a=dp}){super(),this._logger=new Ie("IFrameWindow"),this._timeoutInSeconds=a,this._frame=fp.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const a=window.document.createElement("iframe");return a.style.visibility="hidden",a.style.position="fixed",a.style.left="-1000px",a.style.top="0",a.width="0",a.height="0",window.document.body.appendChild(a),a}async navigate(a){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const i=setTimeout(()=>{this._abort.raise(new C0("IFrame timed out without a response"))},this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(i)),await super.navigate(a)}close(){var a;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",i=>{var l;const o=i.target;(l=o.parentNode)==null||l.removeChild(o),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(a=this._frame.contentWindow)==null||a.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(a,i){return super._notifyParent(window.parent,a,!1,i)}},b5=class{constructor(t){this._settings=t,this._logger=new Ie("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:t=this._settings.silentRequestTimeoutInSeconds}){return new i3({silentRequestTimeoutInSeconds:t})}async callback(t){this._logger.create("callback"),i3.notifyParent(t,this._settings.iframeNotifyParentOrigin)}},w5=500,S5=1e3,s3=class extends cp{constructor({popupWindowTarget:t=hp,popupWindowFeatures:a={},popupSignal:i,popupAbortOnClose:l}){super(),this._logger=new Ie("PopupWindow");const o=a3.center({...up,...a});this._window=window.open(void 0,t,a3.serialize(o)),this.abortOnClose=!!l,i&&i.addEventListener("abort",()=>{var c;this._abort.raise(new Error((c=i.reason)!=null?c:"Popup aborted"))}),a.closePopupWindowAfterInSeconds&&a.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},a.closePopupWindowAfterInSeconds*S5)}async navigate(t){var a;(a=this._window)==null||a.focus();const i=setInterval(()=>{(!this._window||this._window.closed)&&(this._logger.debug("Popup closed by user or isolated by redirect"),l(),this._disposeHandlers.delete(l),this.abortOnClose&&this._abort.raise(new Error("Popup closed by user")))},w5),l=()=>clearInterval(i);return this._disposeHandlers.add(l),await super.navigate(t)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(t,a){super._notifyParent(window.opener,t,a),!a&&!window.opener&&window.close()}},E5=class{constructor(t){this._settings=t,this._logger=new Ie("PopupNavigator")}async prepare({popupWindowFeatures:t=this._settings.popupWindowFeatures,popupWindowTarget:a=this._settings.popupWindowTarget,popupSignal:i,popupAbortOnClose:l}){return new s3({popupWindowFeatures:t,popupWindowTarget:a,popupSignal:i,popupAbortOnClose:l})}async callback(t,{keepOpen:a=!1}){this._logger.create("callback"),s3.notifyOpener(t,a)}},x5=class{constructor(t){this._settings=t,this._logger=new Ie("RedirectNavigator")}async prepare({redirectMethod:t=this._settings.redirectMethod,redirectTarget:a=this._settings.redirectTarget}){var i;this._logger.create("prepare");let l=window.self;a==="top"&&(l=(i=window.top)!=null?i:window.self);const o=l.location[t].bind(l.location);let c;return{navigate:async h=>(this._logger.create("navigate"),await new Promise((g,m)=>{c=m,window.addEventListener("pageshow",()=>g(window.location.href)),o(h.url)})),close:()=>{this._logger.create("close"),c?.(new Error("Redirect aborted")),l.stop()}}}async callback(){}},C5=class extends W6{constructor(t){super({expiringNotificationTimeInSeconds:t.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new Ie("UserManagerEvents"),this._userLoaded=new mi("User loaded"),this._userUnloaded=new mi("User unloaded"),this._silentRenewError=ne
9w mi("Silent renew error"),this._userSignedIn=new mi("User signed in"),this._userSignedOut=new mi("User signed out"),this._userSessionChanged=new mi("User session changed")}async load(t,a=!0){await super.load(t),a&&await this._userLoaded.raise(t)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(t){return this._userLoaded.addHandler(t)}removeUserLoaded(t){return this._userLoaded.removeHandler(t)}addUserUnloaded(t){return this._userUnloaded.addHandler(t)}removeUserUnloaded(t){return this._userUnloaded.removeHandler(t)}addSilentRenewError(t){return this._silentRenewError.addHandler(t)}removeSilentRenewError(t){return this._silentRenewError.removeHandler(t)}async _raiseSilentRenewError(t){await this._silentRenewError.raise(t)}addUserSignedIn(t){return this._userSignedIn.addHandler(t)}removeUserSignedIn(t){this._userSignedIn.removeHandler(t)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(t){return this._userSignedOut.addHandler(t)}removeUserSignedOut(t){this._userSignedOut.removeHandler(t)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(t){return this._userSessionChanged.addHandler(t)}removeUserSessionChanged(t){this._userSessionChanged.removeHandler(t)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},T5=class{constructor(t){this._userManager=t,this._logger=new Ie("SilentRenewService"),this._isStarted=!1,this._retryTimer=new Nn("Retry Silent Renew"),this._timeoutRetryCount=0,this._tokenExpiring=async()=>{const a=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),this._timeoutRetryCount=0,a.debug("silent token renewal successful")}catch(i){if(i instanceof C0){this._timeoutRetryCount++;const l=this._userManager.settings.maxSilentRenewTimeoutRetries;if(l!==void 0&&this._timeoutRetryCount>l){a.error(`Timeout retry limit reached (${this._timeoutRetryCount} > ${l}), raising silentRenewError:`,i),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(i);return}a.warn(`ErrorTimeout from signinSilent (attempt ${this._timeoutRetryCount}), retry in 5s:`,i),this._retryTimer.init(5);return}a.error("Error from signinSilent:",i),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(i)}}}async start(){const t=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(a){t.error("getUser error",a)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},R5=class{constructor(t){this.refresh_token=t.refresh_token,this.id_token=t.id_token,this.session_state=t.session_state,this.scope=t.scope,this.profile=t.profile,this.data=t.state}},M5=class{constructor(t,a,i,l){this._logger=new Ie("UserManager"),this.settings=new y5(t),this._client=new g5(t),this._redirectNavigator=a??new x5(this.settings),this._popupNavigator=i??new E5(this.settings),this._iframeNavigator=l??new b5(this.settings),this._events=new C5(this.settings),this._silentRenewService=new T5(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new p5(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(t=!1){const a=this._logger.create("getUser"),i=await this._loadUser();return i?(a.info("user loaded"),await this._events.load(i,t),i):(a.info("user not found in storage"),null)}async removeUser(){const t=this._logger.create("removeUser");await this.storeUser(null),t.info("user removed from storage"),await this._events.unload()}async signinRedirect(t={}){var a;this._logger.create("signinRedirect");const{redirectMethod:i,...l}=t;let o;(a=this.settings.dpop)!=null&&a.bind_authorization_code&&(o=await this.generateDPoPJkt(this.settings.dpop));const c=await this._redirectNavigator.prepare({redirectMethod:i});await this._signinStart({request_type:"si:r",dpopJkt:o,...l},c)}async signinRedirectCallback(t=window.location.href){const a=this._logger.create("signinRedirectCallback"),i=await this._signinEnd(t);return i.profile&&i.profile.sub?a.info("success, signed in subject",i.profile.sub):a.info("no subject"),i}async signinResourceOwnerCredentials({username:t,password:a,skipUserInfo:i=!1}){const l=this._logger.create("signinResourceOwnerCredential"),o=await this._client.processResourceOwnerPasswordCredentials({username:t,password:a,skipUserInfo:i,extraTokenParams:this.settings.extraTokenParams});l.debug("got signin response");const c=await this._buildUser(o);return c.profile&&c.profile.sub?l.info("success, signed in subject",c.profile.sub):l.info("no subject"),c}async signinPopup(t={}){var a;const i=this._logger.create("signinPopup");let l;(a=this.settings.dpop)!=null&&a.bind_authorization_code&&(l=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:o,popupWindowTarget:c,popupSignal:h,popupAbortOnClose:f,...g}=t,m=this.settings.popup_redirect_uri;m||i.throw(new Error("No popup_redirect_uri configured"));const _=await this._popupNavigator.prepare({popupWindowFeatures:o,popupWindowTarget:c,popupSignal:h,popupAbortOnClose:f}),b=await this._signin({request_type:"si:p",redirect_uri:m,display:"popup",dpopJkt:l,...g},_);return b&&(b.profile&&b.profile.sub?i.info("success, signed in subject",b.profile.sub):i.info("no subject")),b}async signinPopupCallback(t=window.location.href,a=!1){const i=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(t,{keepOpen:a}),i.info("success")}async signinSilent(t={}){var a,i;const l=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:o,...c}=t;let h=await this._loadUser();if(!t.forceIframeAuth&&h?.refresh_token){l.debug("using refresh token");const b=new R5(h);return await this._useRefreshToken({state:b,redirect_uri:c.redirect_uri,resource:c.resource,extraTokenParams:c.extraTokenParams,timeoutInSeconds:o})}let f;(a=this.settings.dpop)!=null&&a.bind_authorization_code&&(f=await this.generateDPoPJkt(this.settings.dpop));const g=this.settings.silent_redirect_uri;g||l.throw(new Error("No silent_redirect_uri configured"));let m;
9h&&this.settings.validateSubOnSilentRenew&&(l.debug("subject prior to silent renew:",h.profile.sub),m=h.profile.sub);const _=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:o});return h=await this._signin({request_type:"si:s",redirect_uri:g,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?h?.id_token:void 0,dpopJkt:f,...c},_,m),h&&((i=h.profile)!=null&&i.sub?l.info("success, signed in subject",h.profile.sub):l.info("no subject")),h}async _useRefreshToken(t){const a=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...t}),i=new ud({...t.state,...a});return await this.storeUser(i),await this._events.load(i),i}async signinSilentCallback(t=window.location.href){const a=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(t),a.info("success")}async signinCallback(t=window.location.href){const{state:a}=await this._client.readSigninResponseState(t);switch(a.request_type){case"si:r":return await this.signinRedirectCallback(t);case"si:p":await this.signinPopupCallback(t);break;case"si:s":await this.signinSilentCallback(t);break;default:throw new Error("invalid request_type in state")}}async signoutCallback(t=window.location.href,a=!1){const{state:i}=await this._client.readSignoutResponseState(t);if(i)switch(i.request_type){case"so:r":return await this.signoutRedirectCallback(t);case"so:p":await this.signoutPopupCallback(t,a);break;case"so:s":await this.signoutSilentCallback(t);break;default:throw new Error("invalid request_type in state")}}async querySessionStatus(t={}){const a=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:i,...l}=t,o=this.settings.silent_redirect_uri;o||a.throw(new Error("No silent_redirect_uri configured"));const c=await this._loadUser(),h=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i}),f=await this._signinStart({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?c?.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...l},h);try{const g={},m=await this._client.processSigninResponse(f.url,g);return a.debug("got signin response"),m.session_state&&m.profile.sub?(a.info("success for subject",m.profile.sub),{session_state:m.session_state,sub:m.profile.sub}):(a.info("success, user not authenticated"),null)}catch(g){if(this.settings.monitorAnonymousSession&&g instanceof Ji)switch(g.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return a.info("success for anonymous user"),{session_state:g.session_state}}throw g}}async _signin(t,a,i){const l=await this._signinStart(t,a);return await this._signinEnd(l.url,i)}async _signinStart(t,a){const i=this._logger.create("_signinStart");try{const l=await this._client.createSigninRequest(t);return i.debug("got signin request"),await a.navigate({url:l.url,state:l.state.id,response_mode:l.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(l){throw i.debug("error after preparing navigator, closing navigator window"),a.close(),l}}async _signinEnd(t,a){const i=this._logger.create("_signinEnd"),l={},o=await this._client.processSigninResponse(t,l);return i.debug("got signin response"),await this._buildUser(o,a)}async _buildUser(t,a){const i=this._logger.create("_buildUser"),l=new ud(t);if(a){if(a!==l.profile.sub)throw i.debug("current user does not match user returned from signin. sub from signin:",l.profile.sub),new Ji({...t,error:"login_required"});i.debug("current user matches user returned from signin")}return await this.storeUser(l),i.debug("user stored"),await this._events.load(l),l}async signoutRedirect(t={}){const a=this._logger.create("signoutRedirect"),{redirectMethod:i,...l}=t,o=await this._redirectNavigator.prepare({redirectMethod:i});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...l},o),a.info("success")}async signoutRedirectCallback(t=window.location.href){const a=this._logger.create("signoutRedirectCallback"),i=await this._signoutEnd(t);return a.info("success"),i}async signoutPopup(t={}){const a=this._logger.create("signoutPopup"),{popupWindowFeatures:i,popupWindowTarget:l,popupSignal:o,...c}=t,h=this.settings.popup_post_logout_redirect_uri,f=await this._popupNavigator.prepare({popupWindowFeatures:i,popupWindowTarget:l,popupSignal:o});await this._signout({request_type:"so:p",post_logout_redirect_uri:h,state:h==null?void 0:{},...c},f),a.info("success")}async signoutPopupCallback(t=window.location.href,a=!1){const i=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(t,{keepOpen:a}),i.info("success")}async _signout(t,a){const i=await this._signoutStart(t,a);return await this._signoutEnd(i.url)}async _signoutStart(t={},a){var i;const l=this._logger.create("_signoutStart");try{const o=await this._loadUser();l.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(o);const c=t.id_token_hint||o&&o.id_token;c&&(l.debug("setting id_token_hint in signout request"),t.id_token_hint=c),await this.removeUser(),l.debug("user removed, creating signout request");
9const h=await this._client.createSignoutRequest(t);return l.debug("got signout request"),await a.navigate({url:h.url,state:(i=h.state)==null?void 0:i.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(o){throw l.debug("error after preparing navigator, closing navigator window"),a.close(),o}}async _signoutEnd(t){const a=this._logger.create("_signoutEnd"),i=await this._client.processSignoutResponse(t);return a.debug("got signout response"),i}async signoutSilent(t={}){var a;const i=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:l,...o}=t,c=this.settings.includeIdTokenInSilentSignout?(a=await this._loadUser())==null?void 0:a.id_token:void 0,h=this.settings.popup_post_logout_redirect_uri,f=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:l});await this._signout({request_type:"so:s",post_logout_redirect_uri:h,id_token_hint:c,...o},f),i.info("success")}async signoutSilentCallback(t=window.location.href){const a=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(t),a.info("success")}async revokeTokens(t){const a=await this._loadUser();await this._revokeInternal(a,t)}async _revokeInternal(t,a=this.settings.revokeTokenTypes){const i=this._logger.create("_revokeInternal");if(!t)return;const l=a.filter(o=>typeof t[o]=="string");if(!l.length){i.debug("no need to revoke due to no token(s)");return}for(const o of l)await this._client.revokeToken(t[o],o),i.info(`${o} revoked successfully`),o!=="access_token"&&(t[o]=null);await this.storeUser(t),i.debug("user stored"),await this._events.load(t)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const t=this._logger.create("_loadUser"),a=await this.settings.userStore.get(this._userStoreKey);return a?(t.debug("user storageString loaded"),ud.fromStorageString(a)):(t.debug("no user storageString"),null)}async storeUser(t){const a=this._logger.create("storeUser");if(t){a.debug("storing user");const i=t.toStorageString();await this.settings.userStore.set(this._userStoreKey,i)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(t,a,i,l){var o,c;const h=await((c=(o=this.settings.dpop)==null?void 0:o.store)==null?void 0:c.get(this.settings.client_id));if(h)return await xt.generateDPoPProof({url:t,accessToken:a?.access_token,httpMethod:i,keyPair:h.keys,nonce:l})}async generateDPoPJkt(t){let a=await t.store.get(this.settings.client_id);if(!a){const i=await xt.generateDPoPKeys();a=new rp(i),await t.store.set(this.settings.client_id,a)}return await xt.generateDPoPJkt(a.keys)}};const k5={authority:"https://accounts.krafton.com/oidc",client_id:"98cb0fd6-f888-432c-8de4-c44878124454",redirect_uri:`${window.location.origin}/login/callback`,response_type:"code",scope:"openid nickname gamelinks offline_access",loadUserInfo:!0,extraQueryParams:{prompt:"consent"}},Cr=new M5(k5),mp=()=>{Cr.signinRedirect({state:{returnPath:window.location.pathname}})},D5=async()=>{const t=await Cr.signinCallback();if(t===void 0)throw new Error("UserManager.signinCallback() returned undefined");return t},A5=()=>{Cr.removeUser()},O5=async()=>await Cr.getUser(),N5=t=>{window.open(`https://accounts.krafton.com/v2/${t}/web/settings`,"_blank")},R0=t=>{window.open(`https://accounts.krafton.com/v2/${t}/settings/connections-accounts`,"_blank")},M0=async()=>await Cr.signinSilent(),l3=t=>{let a;const i=new Set,l=(m,_)=>{const b=typeof m=="function"?m(a):m;if(!Object.is(b,a)){const E=a;a=_??(typeof b!="object"||b===null)?b:Object.assign({},a,b),i.forEach(w=>w(a,E))}},o=()=>a,f={setState:l,getState:o,getInitialState:()=>g,subscribe:m=>(i.add(m),()=>i.delete(m))},g=a=t(l,o,f);return f},U5=(t=>t?l3(t):l3),z5=t=>t;function L5(t,a=z5){const i=or.useSyncExternalStore(t.subscribe,or.useCallback(()=>a(t.getState()),[t,a]),or.useCallback(()=>a(t.getInitialState()),[t,a]));return or.useDebugValue(i),i}const r3=t=>{const a=U5(t),i=l=>L5(a,l);return Object.assign(i,a),i},ts=(t=>t?r3(t):r3),ln=ts(t=>({user:null,setUser:a=>t({user:a}),login:mp,logout:()=>{A5(),t({user:null,selectedGameLink:null})},selectedGameLink:null,setSelectedGameLink:a=>t({selectedGameLink:a})})),as=ts(t=>({content:null,setContent:a=>t({content:a})})),I5="_secondary__button_white_24rbj_1",j5="_primary__button_white_24rbj_1",B5="_small_24rbj_12",P5="_auth__modal_24rbj_109",H5="_auth__modal_content_24rbj_109",G5="_auth__modal_footer_24rbj_124",Wa={secondary__button_white:I5,primary__button_white:j5,small:B5,auth__modal:P5,auth__modal_content:H5,auth__modal_footer:G5};function q5(t){let a=t.length-1;for(;a>=0;){const i=t.charAt(a),l=i.charCodeAt(0);if(l>=48&&l<=57)return V5[i];if(l>=65&&l<=90||l>=97&&l<=122){const o=i.toUpperCase();return Y5[o]||!1}if(l>=44032&&l<=55203)return(l-44032)%28>0;a--}return!1}const V5={0:!0,1:!0,2:!1,3:!0,4:!1,5:!1,6:!0,7:!0,8:!0,9:!1},Y5={A:!1,B:!1,C:!1,D:!1,E:!1,F:!1,G:!1,H:!1,I:!1,J:!1,K:!1,L:!0,M:!0,N:!0,O:!1,P:!1,Q:!1,R:!0,S:!1,T:!1,U:!1,V:!1,W:!1,X:!1,Y:!1,Z:!1},hd={NUMBER_KEY:{NORMAL:/\{(\d+)\}/g,PLURAL:/\{(\d+)%Plural% ([^;]+);([^}]+)\}/g,HPP:/\{(\d+)%hpp% ([^;]+);([^}]+)\}/g}
9,OBJECT_KEY:{NORMAL:/\{(\w+)\}/g,PLURAL:/\{(\w+)%Plural% ([^;]+);([^}]+)\}/g,HPP:/\{(\w+)%hpp% ([^;]+);([^}]+)\}/g}};function $5(t,a){if(!t)throw new Error("targetString cannot be falsy value.");if(a.length===0)return t;let i=t;const l=o=>{const c=Number(o);return c<a.length?a[c]:void 0};try{i=K5(i,hd.NUMBER_KEY.NORMAL,l),i=F5(i,hd.NUMBER_KEY.PLURAL,l),i=X5(i,hd.NUMBER_KEY.HPP,l)}catch{return t}return i}function K5(t,a,i){return t.replace(a,(l,o)=>{const c=i(o);return c!==void 0?c:l})}function F5(t,a,i){return t.replace(a,(l,o,c,h)=>{const f=i(o);if(f===void 0)return l;const g=Number(f);return Number.isNaN(g)||g===1?c:h})}function X5(t,a,i){return t.replace(a,(l,o,c,h)=>{const f=i(o);return f?q5(f)?c:h:l})}function hc(t){const a=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)"));return a?decodeURIComponent(a[2]):null}function Ga(t,a,i=365){const l=new Date(Date.now()+i*864e5).toUTCString();document.cookie=`${t}=${encodeURIComponent(a)}; expires=${l}; path=/`}const ur="en",Ks="i18n_redirected",Q5=["ko","en","ja","zh-cn","zh-tw","fr","de","it","pl","pt-br","ru","es","es-mx","th","tr","vi","ar"];function Zs(t){return Q5.includes(t)}function Wd(){const t=hc(Ks);if(t)return Zs(t)?t:(Ga(Ks,ur),ur);const a=navigator.language.toLowerCase();if(Zs(a))return Ga(Ks,a),a;const i=a.split("-")[0];return Zs(i)?(Ga(Ks,i),i):(Ga(Ks,ur),ur)}function Z5(t){Ga(Ks,t)}function J5(t){const a=window.location.pathname.split("/").slice(2).join("/")+window.location.search;window.history.replaceState(null,"",`/${t}/${a}`)}const W5=t=>(a,i,l)=>{const o=l.subscribe;return l.subscribe=((h,f,g)=>{let m=h;if(f){const _=g?.equalityFn||Object.is;let b=h(l.getState());m=E=>{const w=h(E);if(!_(b,w)){const x=b;f(b=w,x)}},g?.fireImmediately&&f(b,b)}return o(m)}),t(a,i,l)},gp=W5;function ey(t,a){let i;try{i=t()}catch{return}return{getItem:o=>{var c;const h=g=>g===null?null:JSON.parse(g,void 0),f=(c=i.getItem(o))!=null?c:null;return f instanceof Promise?f.then(h):h(f)},setItem:(o,c)=>i.setItem(o,JSON.stringify(c,void 0)),removeItem:o=>i.removeItem(o)}}const e0=t=>a=>{try{const i=t(a);return i instanceof Promise?i:{then(l){return e0(l)(i)},catch(l){return this}}}catch(i){return{then(l){return this},catch(l){return e0(l)(i)}}}},ty=(t,a)=>(i,l,o)=>{let c={storage:ey(()=>window.localStorage),partialize:M=>M,version:0,merge:(M,z)=>({...z,...M}),...a},h=!1,f=0;const g=new Set,m=new Set;let _=c.storage;if(!_)return t((...M)=>{i(...M)},l,o);const b=()=>{const M=c.partialize({...l()});return _.setItem(c.name,{state:M,version:c.version})},E=o.setState;o.setState=(M,z)=>(E(M,z),b());const w=t((...M)=>(i(...M),b()),l,o);o.getInitialState=()=>w;let x;const A=()=>{var M,z;if(!_)return;const G=++f;h=!1,g.forEach(L=>{var X;return L((X=l())!=null?X:w)});const U=((z=c.onRehydrateStorage)==null?void 0:z.call(c,(M=l())!=null?M:w))||void 0;return e0(_.getItem.bind(_))(c.name).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==c.version){if(c.migrate){const X=c.migrate(L.state,L.version);return X instanceof Promise?X.then(te=>[!0,te]):[!0,X]}}else return[!1,L.state];return[!1,void 0]}).then(L=>{var X;if(G!==f)return;const[te,V]=L;if(x=c.merge(V,(X=l())!=null?X:w),i(x,!0),te)return b()}).then(()=>{G===f&&(U?.(l(),void 0),x=l(),h=!0,m.forEach(L=>L(x)))}).catch(L=>{G===f&&U?.(void 0,L)})};return o.persist={setOptions:M=>{c={...c,...M},M.storage&&(_=M.storage)},clearStorage:()=>{_?.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>A(),hasHydrated:()=>h,onHydrate:M=>(g.add(M),()=>{g.delete(M)}),onFinishHydration:M=>(m.add(M),()=>{m.delete(M)})},c.skipHydration||A(),x||w},pp=ty;var _p=Symbol.for("immer-nothing"),o3=Symbol.for("immer-draftable"),Qt=Symbol.for("immer-state");function Pa(t,...a){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var ga=Object,el=ga.getPrototypeOf,Sc="constructor",Nc="prototype",t0="configurable",Ec="enumerable",dc="writable",vr="value",bi=t=>!!t&&!!t[Qt];function Un(t){return t?vp(t)||zc(t)||!!t[o3]||!!t[Sc]?.[o3]||Lc(t)||Ic(t):!1}var ay=ga[Nc][Sc].toString(),c3=new WeakMap;function vp(t){if(!t||!k0(t))return!1;const a=el(t);if(a===null||a===ga[Nc])return!0;const i=ga.hasOwnProperty.call(a,Sc)&&a[Sc];if(i===Object)return!0;
9if(!Fs(i))return!1;let l=c3.get(i);return l===void 0&&(l=Function.toString.call(i),c3.set(i,l)),l===ay}function Uc(t,a,i=!0){Tr(t)===0?(i?Reflect.ownKeys(t):ga.keys(t)).forEach(o=>{a(o,t[o],t)}):t.forEach((l,o)=>a(o,l,t))}function Tr(t){const a=t[Qt];return a?a.type_:zc(t)?1:Lc(t)?2:Ic(t)?3:0}var u3=(t,a,i=Tr(t))=>i===2?t.has(a):ga[Nc].hasOwnProperty.call(t,a),a0=(t,a,i=Tr(t))=>i===2?t.get(a):t[a],xc=(t,a,i,l=Tr(t))=>{l===2?t.set(a,i):l===3?t.add(i):t[a]=i};function ny(t,a){return t===a?t!==0||1/t===1/a:t!==t&&a!==a}var zc=Array.isArray,Lc=t=>t instanceof Map,Ic=t=>t instanceof Set,k0=t=>typeof t=="object",Fs=t=>typeof t=="function",dd=t=>typeof t=="boolean";function iy(t){const a=+t;return Number.isInteger(a)&&String(a)===t}var An=t=>t.copy_||t.base_,D0=t=>t.modified_?t.copy_:t.base_;function n0(t,a){if(Lc(t))return new Map(t);if(Ic(t))return new Set(t);if(zc(t))return Array[Nc].slice.call(t);const i=vp(t);if(a===!0||a==="class_only"&&!i){const l=ga.getOwnPropertyDescriptors(t);delete l[Qt];let o=Reflect.ownKeys(l);for(let c=0;c<o.length;c++){const h=o[c],f=l[h];f[dc]===!1&&(f[dc]=!0,f[t0]=!0),(f.get||f.set)&&(l[h]={[t0]:!0,[dc]:!0,[Ec]:f[Ec],[vr]:t[h]})}return ga.create(el(t),l)}else{const l=el(t);if(l!==null&&i)return{...t};const o=ga.create(l);return ga.assign(o,t)}}function A0(t,a=!1){return jc(t)||bi(t)||!Un(t)||(Tr(t)>1&&ga.defineProperties(t,{set:Wo,add:Wo,clear:Wo,delete:Wo}),ga.freeze(t),a&&Uc(t,(i,l)=>{A0(l,!0)},!1)),t}function sy(){Pa(2)}var Wo={[vr]:sy};function jc(t){return t===null||!k0(t)?!0:ga.isFrozen(t)}var Cc="MapSet",i0="Patches",h3="ArrayMethods",yp={};function Wi(t){const a=yp[t];return a||Pa(0,t),a}var d3=t=>!!yp[t],yr,bp=()=>yr,ly=(t,a)=>({drafts_:[],parent_:t,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:d3(Cc)?Wi(Cc):void 0,arrayMethodsPlugin_:d3(h3)?Wi(h3):void 0});function f3(t,a){a&&(t.patchPlugin_=Wi(i0),t.patches_=[],t.inversePatches_=[],t.patchListener_=a)}function s0(t){l0(t),t.drafts_.forEach(ry),t.drafts_=null}function l0(t){t===yr&&(yr=t.parent_)}var m3=t=>yr=ly(yr,t);function ry(t){const a=t[Qt];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function g3(t,a){a.unfinalizedDrafts_=a.drafts_.length;const i=a.drafts_[0];if(t!==void 0&&t!==i){i[Qt].modified_&&(s0(a),Pa(4)),Un(t)&&(t=p3(a,t));const{patchPlugin_:o}=a;o&&o.generateReplacementPatches_(i[Qt].base_,t,a)}else t=p3(a,i);return oy(a,t,!0),s0(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),t!==_p?t:void 0}function p3(t,a){if(jc(a))return a;const i=a[Qt];if(!i)return Tc(a,t.handledSet_,t);if(!Bc(i,t))return a;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:l}=i;if(l)for(;l.length>0;)l.pop()(t);Ep(i,t)}return i.copy_}function oy(t,a,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&A0(a,i)}function wp(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Bc=(t,a)=>t.scope_===a,cy=[];function Sp(t,a,i,l){const o=An(t),c=t.type_;if(l!==void 0&&a0(o,l,c)===a){xc(o,l,i,c);return}if(!t.draftLocations_){const f=t.draftLocations_=new Map;Uc(o,(g,m)=>{if(bi(m)){const _=f.get(m)||[];_.push(g),f.set(m,_)}})}const h=t.draftLocations_.get(a)??cy;for(const f of h)xc(o,f,i,c)}function uy(t,a,i){t.callbacks_.push(function(o){const c=a;if(!c||!Bc(c,o))return;o.mapSetPlugin_?.fixSetContents(c);const h=D0(c);Sp(t,c.draft_??c,h,i),Ep(c,o)})}function Ep(t,a){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){const{patchPlugin_:l}=a;if(l){const o=l.getPath(t);o&&l.generatePatches_(t,o,a)}wp(t)}}function hy(t,a,i){const{scope_:l}=t;if(bi(i)){const o=i[Qt];Bc(o,l)&&o.callbacks_.push(function(){fc(t);const h=D0(o);Sp(t,i,h,a)})}else Un(i)&&t.callbacks_.push(function(){const c=An(t);t.type_===3?c.has(i)&&Tc(i,l.handledSet_,l):a0(c,a,t.type_)===i&&l.drafts_.length>1&&(t.assigned_.get(a)??!1)===!0&&t.copy_&&Tc(a0(t.copy_,a,t.type_),l.handledSet_,l)})}function Tc(t,a,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||bi(t)||a.has(t)||!Un(t)||jc(t)||(a.add(t),Uc(t,(l,o)=>{if(bi(o)){const c=o[Qt];if(Bc(c,i)){const h=D0(c);xc(t,l,h,t.type_),wp(c)}}else Un(o)&&Tc(o,a,i)})),t}function dy(t,a){const i=zc(t),l={type_:i?1:0,scope_:a?a.scope_:bp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:a,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=l,c=Rc;
9i&&(o=[l],c=br);const{revoke:h,proxy:f}=Proxy.revocable(o,c);return l.draft_=f,l.revoke_=h,[f,l]}var Rc={get(t,a){if(a===Qt)return t;let i=t.scope_.arrayMethodsPlugin_;const l=t.type_===1&&typeof a=="string";if(l&&i?.isArrayOperationMethod(a))return i.createMethodInterceptor(t,a);const o=An(t);if(!u3(o,a,t.type_))return fy(t,o,a);const c=o[a];if(t.finalized_||!Un(c)||l&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&iy(a))return c;if(c===fd(t.base_,a)){fc(t);const h=t.type_===1?+a:a,f=o0(t.scope_,c,t,h);return t.copy_[h]=f}return c},has(t,a){return a in An(t)},ownKeys(t){return Reflect.ownKeys(An(t))},set(t,a,i){const l=xp(An(t),a);if(l?.set)return l.set.call(t.draft_,i),!0;if(!t.modified_){const o=fd(An(t),a),c=o?.[Qt];if(c&&c.base_===i)return t.copy_[a]=i,t.assigned_.set(a,!1),!0;if(ny(i,o)&&(i!==void 0||u3(t.base_,a,t.type_)))return!0;fc(t),r0(t)}return t.copy_[a]===i&&(i!==void 0||a in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[a])||(t.copy_[a]=i,t.assigned_.set(a,!0),hy(t,a,i)),!0},deleteProperty(t,a){return fc(t),fd(t.base_,a)!==void 0||a in t.base_?(t.assigned_.set(a,!1),r0(t)):t.assigned_.delete(a),t.copy_&&delete t.copy_[a],!0},getOwnPropertyDescriptor(t,a){const i=An(t),l=Reflect.getOwnPropertyDescriptor(i,a);return l&&{[dc]:!0,[t0]:t.type_!==1||a!=="length",[Ec]:l[Ec],[vr]:i[a]}},defineProperty(){Pa(11)},getPrototypeOf(t){return el(t.base_)},setPrototypeOf(){Pa(12)}},br={};for(let t in Rc){let a=Rc[t];br[t]=function(){const i=arguments;return i[0]=i[0][0],a.apply(this,i)}}br.deleteProperty=function(t,a){return br.set.call(this,t,a,void 0)};br.set=function(t,a,i){return Rc.set.call(this,t[0],a,i,t[0])};function fd(t,a){const i=t[Qt];return(i?An(i):t)[a]}function fy(t,a,i){const l=xp(a,i);return l?vr in l?l[vr]:l.get?.call(t.draft_):void 0}function xp(t,a){if(!(a in t))return;let i=el(t);for(;i;){const l=Object.getOwnPropertyDescriptor(i,a);if(l)return l;i=el(i)}}function r0(t){t.modified_||(t.modified_=!0,t.parent_&&r0(t.parent_))}function fc(t){t.copy_||(t.assigned_=new Map,t.copy_=n0(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var my=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(a,i,l)=>{if(Fs(a)&&!Fs(i)){const c=i;i=a;const h=this;return function(g=c,...m){return h.produce(g,_=>i.call(this,_,...m))}}Fs(i)||Pa(6),l!==void 0&&!Fs(l)&&Pa(7);let o;if(Un(a)){const c=m3(this),h=o0(c,a,void 0);let f=!0;try{o=i(h),f=!1}finally{f?s0(c):l0(c)}return f3(c,l),g3(o,c)}else if(!a||!k0(a)){if(o=i(a),o===void 0&&(o=a),o===_p&&(o=void 0),this.autoFreeze_&&A0(o,!0),l){const c=[],h=[];Wi(i0).generateReplacementPatches_(a,o,{patches_:c,inversePatches_:h}),l(c,h)}return o}else Pa(1,a)},this.produceWithPatches=(a,i)=>{if(Fs(a))return(h,...f)=>this.produceWithPatches(h,g=>a(g,...f));let l,o;return[this.produce(a,i,(h,f)=>{l=h,o=f}),l,o]},dd(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),dd(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),dd(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Un(t)||Pa(8),bi(t)&&(t=gy(t));const a=m3(this),i=o0(a,t,void 0);return i[Qt].isManual_=!0,l0(a),i}finishDraft(t,a){const i=t&&t[Qt];(!i||!i.isManual_)&&Pa(9);const{scope_:l}=i;return f3(l,a),g3(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,a){let i;for(i=a.length-1;i>=0;i--){const o=a[i];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}i>-1&&(a=a.slice(i+1));const l=Wi(i0).applyPatches_;return bi(t)?l(t,a):this.produce(t,o=>l(o,a))}};function o0(t,a,i,l){const[o,c]=Lc(a)?Wi(Cc).proxyMap_(a,i):Ic(a)?Wi(Cc).proxySet_(a,i):dy(a,i);return(i?.scope_??bp()).drafts_.push(o),c.callbacks_=i?.callbacks_??[],c.key_=l,i&&l!==void 0?uy(i,c,l):c.callbacks_.push(function(g){g.mapSetPlugin_?.fixSetContents(c);const{patchPlugin_:m}=g;c.modified_&&m&&m.generatePatches_(c,[],g)}),o}function gy(t){return bi(t)||Pa(10,t),Cp(t)}function Cp(t){if(!Un(t)||jc(t))return t;const a=t[Qt];let i,l=!0;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,i=n0(t,a.scope_.immer_.useStrictShallowCopy_),l=a.scope_.immer_.shouldUseStrictIteration()}else i=n0(t,!0);return Uc(i,(o,c)=>{xc(i,o,Cp(c))},l),a&&(a.finalized_=!1),i}var py=new my,_y=py.produce;const vy=t=>(a,i,l)=>(l.setState=(o,c,...h)=>{const f=typeof o=="function"?_y(o):o;return a(f,c,...h)},t(l.setState,i,l)),yy=vy,et=ts()(gp(yy((t,a)=>({language:ur,l10n:{ui:{}},setLanguage:i=>{const{setL10N:l}=a();t({language:i}),l(i)},setL10N:async i=>{try{const{l10n:l}=a();if(l.ui[i])return;const o=i.indexOf("-")!==-1?`${i.split("-")[0]}-${i.split("-")[1].toUpperCase()}`:i,c=await fetch(`/l10n/ui/ui_${o}.json`);if(!c.ok)throw new Error(`Failed to fetch localization files for language: ${i}`);const h=await c.json();t(f=>{f.l10n.ui[i]=h})}catch{t(o=>{o.l10n.ui={}})}},tr:(i,...l)=>{const{l10n:o,language:c}=a(),h=o.ui[c];if(!h)return"";const f=h[i]??i;if(l.length===0||!f)return f;try{return $5(f,l)}catch{return f}}}))));function Tp({type:t}){const a=t==="session-expired",i=a?"BRIDGE:MAIN_TITLE_1":"BRIDGE:MAIN_TITLE_0",{logout:l}=ln(),{setContent:o}=as(),{tr:c}=et(),h=()=>{o(null),l()};return v.jsxs("div",{id:Wa.auth__modal,role:"dialog","aria-modal":"true",children:[v.jsx("div",{className:Wa.auth__modal_content,children:v.jsx("p",{dangerouslySetInnerHTML:{__html:c(i)}})}),a?v.jsx("div",{className:Wa.auth__modal_footer,children:v.jsx("button",{className:`${Wa.primary__button_white} ${Wa.small}`,onClick:()=>o(null),children:c("BRIDGE:MAIN_BUTTON_1")})}):v.jsxs("div",{className:Wa.auth__modal_footer,children:[v.jsx("button",{className:`${Wa.secondary__button_white} ${Wa.small}`,onClick:()=>o(null),children:c("BRIDGE:MAIN_BUTTON_0")}),v.jsx("button",{className:`${Wa.primary__button_white} ${Wa.small}`,onClick:h,children:c("BRIDGE:MAIN_BUTTON_1")})]})]})}function by({children:t}){const{user:a,setUser:i,logout:l}=ln(),o=y.useRef(null),{setContent:c}=as();return y.useEffect(()=>{(async()=>{try{const h=await O5();i(h)}catch{i(null)}})()},[i]),y.useEffect(()=>{if(!a)return;const h=1e3*60*60;return o.current=setTimeout(()=>{a&&(l(),c(v.jsx(Tp,{type:"session-expired"})))},h),()=>{o.current&&clearTimeout(o.current)}},[a,c,l]),v.jsx(v.Fragment,{children:t})}const O0=ts(t=>({cookieConsent:{essential:!1,functional:!1,analytics:!1},setCookieConsent:a=>t({cookieConsent:a})})),wy="_primary__button_1nstc_1",Sy="_small_1nstc_12",Ey="_cookies__modal_1nstc_103",xy="_cookies__description_1nstc_120",Cy="_cookies__footer_1nstc_127",tr={primary__button:wy,small:Sy,cookies__modal:Ey,cookies__description:xy,cookies__footer:Cy},Ty="_toggle__switch_h9t8j_1",Ry="_toggle__switch_thumb_h9t8j_6",My="_switch_on_h9t8j_23",md={toggle__switch:Ty,toggle__switch_thumb:Ry,switch_on:My};function gd({defaultChecked:t,disabled:a,onChange:i}){const[l,o]=y.useState(t??!1),c=()=>{o(!l),i?.(!l)};return v.jsx("div",{className:md.toggle__switch,children:v.jsx("button",{type:"button",className:`${md.toggle__switch_thumb} ${l?md.switch_on:""}`,onClick:c,disabled:a})})}function N0(){gtag("consent","update",{analytics_storage:"granted"})}function ky(){gtag("consent","update",{analytics_storage:"denied"})}const Dy="_cookies__item_kzydv_1",Ay="_summary_kzydv_8",Oy="_cookies__title_kzydv_18",Ny="_cookies__icon_kzydv_25",Uy="_cookies__text_content_kzydv_37",zy="_cookies__text_kzydv_37",Ly="_is_open_kzydv_49",Yi={co
9okies__item:Dy,summary:Ay,cookies__title:Oy,cookies__icon:Ny,cookies__text_content:Uy,cookies__text:zy,is_open:Ly},Iy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:".95em",height:"1em","aria-hidden":"true",viewBox:"0 0 16 17",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.001 11.5-4.5-6h9z",clipRule:"evenodd"})),jy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:26,fill:"none",viewBox:"0 0 24 26",...t},y.createElement("path",{fill:"currentColor",d:"M12.5 14.5C18.851 14.5 24 19.649 24 26H0c0-6.351 5.149-11.5 11.5-11.5zM12 0a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13"})),By=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M22.002 19.858 19.859 22l-7.857-7.857L4.145 22l-2.143-2.142L9.86 12 2.002 4.144 4.146 2l7.857 7.858L19.859 2l2.143 2.144L14.145 12z",clipRule:"evenodd"})),Py=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,"aria-hidden":"true",viewBox:"0 0 16 16",...t},y.createElement("path",{fill:"currentColor",d:"M1.778 16q-.734 0-1.256-.522A1.71 1.71 0 0 1 0 14.222V1.778Q0 1.044.522.522A1.71 1.71 0 0 1 1.778 0H8v1.778H1.778v12.444h12.444V8H16v6.222q0 .734-.522 1.256a1.71 1.71 0 0 1-1.256.522zm4.178-4.711L4.71 10.044l8.267-8.266h-3.2V0H16v6.222h-1.778v-3.2z"})),Hy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M8.553 2.508c0-.7.822-1.091 1.384-.66l9.736 7.495a.828.828 0 0 1 0 1.317l-9.736 7.494c-.562.432-1.384.04-1.384-.659v-4.86l-7.17 5.52c-.56.431-1.383.04-1.383-.66V2.508c0-.7.823-1.091 1.384-.66l7.169 5.52z"})),Gy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M23.553 8.739A12 12 0 0 0 22.9 6.97a12 12 0 0 0-2.413-3.457 12 12 0 0 0-3.814-2.57A11.9 11.9 0 0 0 12.002 0c-1.62 0-3.191.317-4.67.943a12 12 0 0 0-3.816 2.571 12 12 0 0 0-2.414 3.457q-.08.178-.157.357a11.9 11.9 0 0 0-.943 4.673 11.9 11.9 0 0 0 .943 4.67q.076.18.157.357a12 12 0 0 0 2.414 3.457A11.96 11.96 0 0 0 12.002 24a11.953 11.953 0 0 0 8.485-3.515A11.96 11.96 0 0 0 24.002 12c0-1.116-.15-2.208-.45-3.262M20.9 6.799a116 116 0 0 0-3.944-.224 17 17 0 0 0-.868-2.789 10.4 10.4 0 0 0-.801-1.557c2.374.8 4.364 2.442 5.613 4.57m-5.07 5.202c0 1.314-.097 2.589-.284 3.778-1.163.032-2.347.05-3.544.05q-1.8-.001-3.545-.05a25 25 0 0 1-.284-3.778c0-1.315.098-2.59.284-3.78q1.745-.05 3.545-.05 1.798 0 3.544.05a24.5 24.5 0 0 1 .284 3.78M12.02 1.69c.392.008.795.218 1.2.627.473.477.925 1.21 1.307 2.122.264.63.492 1.329.678 2.08a125 125 0 0 0-6.407 0c.187-.751.414-1.45.678-2.08.382-.911.835-1.645 1.308-2.122.405-.41.808-.619 1.2-.626h.036m-3.304.538q-.434.683-.8 1.557a16.7 16.7 0 0 0-.87 2.789c-1.348.054-2.667.13-3.943.225a10.36 10.36 0 0 1 5.613-4.571M1.693 12c0-1.205.209-2.363.59-3.438 1.429-.121 2.92-.215 4.454-.28A26.5 26.5 0 0 0 6.481 12c0 1.28.087 2.533.256 3.717-1.535-.066-3.025-.16-4.454-.282a10.3 10.3 0 0 1-.59-3.435m1.41 5.2c1.276.094 2.595.17 3.944.223.227 1.012.518 1.953.869 2.79q.366.874.8 1.557a10.36 10.36 0 0 1-5.613-4.57m8.881 5.106c-.392-.006-.795-.217-1.2-.625-.473-.477-.926-1.212-1.308-2.122-.264-.631-.491-1.329-.678-2.08q1.582.041 3.204.04 1.621.001 3.203-.04c-.186.751-.414 1.448-.678 2.08-.382.91-.834 1.645-1.307 2.122-.405.408-.809.619-1.2.625h-.036m3.303-.536q.434-.683.801-1.556c.35-.838.642-1.779.868-2.79 1.35-.055 2.668-.13 3.944-.225a10.36 10.36 0 0 1-5.613 4.571m1.979
9-6.053c.169-1.184.257-2.436.257-3.717a26.5 26.5 0 0 0-.257-3.719c1.535.066 3.025.16 4.455.28.38 1.076.589 2.234.589 3.439 0 1.204-.209 2.36-.59 3.435-1.429.122-2.92.216-4.454.282",clipRule:"evenodd"})),qy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...t},y.createElement("path",{fill:"currentColor",d:"M2.001 4h20v3h-20zM2.001 11h20v3h-20zM22.001 18h-20v3h20z"})),Vy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",viewBox:"0 0 40 40",...t},y.createElement("path",{fill:"currentColor",d:"m24.5 16.943-1.625 15.46h3.52v2.415L22.5 35.983v.005h-7.085l1.625-15.46H13.5v-2.415l3.91-1.17.005.02v-.02zm-3.993-12.97a4.53 4.53 0 1 1-.001 9.06 4.53 4.53 0 0 1 0-9.06"})),Yy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M12.856 10 5 1.667 6.571 0l7.856 8.333L16 9.998v.004l-1.572 1.667L6.571 20 5 18.333z"})),$y=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...t},y.createElement("path",{fill:"currentColor",d:"m5.626 3.06 1.956-1.959a3.76 3.76 0 0 1 5.318 0 3.776 3.776 0 0 1 0 5.327l-2.552 2.556a3.75 3.75 0 0 1-2.66 1.101c-.962 0-1.895-.4-2.658-1.1-.307-.282-.605-.829-.605-.829L5.686 6.91c.034.41.55.866.55.866a2.055 2.055 0 0 0 2.906 0l2.552-2.556a2.063 2.063 0 0 0 0-2.911 2.05 2.05 0 0 0-1.453-.602c-.524 0-1.052.2-1.453.602l-.916.918s-1.146-.372-2.241-.167z"}),y.createElement("path",{fill:"currentColor",d:"M8.373 10.94 6.417 12.9a3.76 3.76 0 0 1-5.318 0 3.776 3.776 0 0 1 0-5.327l2.553-2.557A3.75 3.75 0 0 1 6.31 3.915c.963 0 1.896.401 2.659 1.101.307.282.605.828.605.828L8.314 7.09c-.035-.41-.55-.866-.55-.866a2.055 2.055 0 0 0-2.906 0L2.305 8.781a2.063 2.063 0 0 0 0 2.91c.4.402.93.602 1.453.602.524 0 1.053-.2 1.453-.602l.917-.917s1.146.371 2.24.166z"})),Ky=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M18.571 8.57H1.43a1.429 1.429 0 0 0 0 2.858H18.57a1.429 1.429 0 1 0 0-2.858"})),Fy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M10 15.692a2 2 0 1 1 0 4.001 2 2 0 0 1 0-4M10 8a2 2 0 1 1 0 4 2 2 0 0 1 0-4m0-7.691a2 2 0 1 1 0 4 2 2 0 0 1 0-4"})),Xy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",viewBox:"0 0 40 40",...t},y.createElement("path",{fill:"currentColor",d:"M33.951 27.505h6.05l-8.05 9.84-8.045-9.84h6.05V7.5h3.995zM2.5 27a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5m20.513 4.496H7.508v-3.99h11.994zM2.5 17.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5m22.502 4.501H7.508v-3.995h17.494zM2.5 8a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5m22.008 4.5h-17v-4h17z"})),Qy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M5.833 1.667a1.667 1.667 0 1 0-3.333 0v16.666a1.667 1.667 0 1 0 3.333 0zM17.5 1.667a1.667 1.667 0 1 0-3.334 0v16.666a1.667 1.667 0 1 0 3.333 0z"})),Zy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M17.94 9.303a.814.814 0 0 1 0 1.394L2.932 19.876c-.553.338-1.266-.055-1.266-.697V.821c0-.642.713-1.035 1.266-.697z"})),Jy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{clipPath:"url(#a)"},y.createElement("path",{fill:"currentColor",d:"M4.883 16.447a8.16 8.16 0 0 0 4.146 1.722V20a9.97 9.97 0 0 1-5.437-2.259zM10.92 0C16.012.47
95 20 4.771 20 10s-3.988 9.524-9.081 10v-1.83A8.22 8.22 0 0 0 18.184 10a8.22 8.22 0 0 0-7.265-8.17zM1.825 10.943a8.2 8.2 0 0 0 1.712 4.154L2.246 16.39A10 10 0 0 1 0 10.944v-.001zm12.247-.947-6.116 4.518V5.477zM3.568 4.866A8.2 8.2 0 0 0 1.83 9.048H.002a10 10 0 0 1 2.275-5.474zm5.46-3.035V1.83a8.16 8.16 0 0 0-4.119 1.7L3.618 2.237A9.97 9.97 0 0 1 9.028 0z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),Wy=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{fill:"currentColor",clipPath:"url(#a)"},y.createElement("path",{d:"M18.571 8.57H1.43a1.429 1.429 0 0 0 0 2.858H18.57a1.429 1.429 0 1 0 0-2.858"}),y.createElement("path",{d:"M8.572 1.429V18.57a1.429 1.429 0 1 0 2.857 0V1.43a1.429 1.429 0 0 0-2.857 0"})),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),e7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M11.447 2.508c0-.7-.822-1.091-1.383-.66L.326 9.344a.828.828 0 0 0 0 1.317l9.737 7.494c.56.432 1.383.04 1.383-.659v-4.86l7.17 5.52c.56.431 1.383.04 1.383-.66V2.508c0-.7-.823-1.091-1.384-.66l-7.169 5.52z"})),t7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:16,fill:"none",viewBox:"0 0 20 16",...t},y.createElement("path",{fill:"currentColor",d:"M7.875 9.5H5.453V13h9.094v3H2.422V9.5H0L3.938 5zm9.703-3H20L16.063 11l-3.938-4.5h2.422V3H5.453V0h12.125z"})),a7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{clipPath:"url(#a)"},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m20 18.477-5.469-5.469a8.096 8.096 0 1 0-1.523 1.523L18.477 20zM8.095 14.119a6.022 6.022 0 1 1 0-12.045 6.022 6.022 0 0 1 0 12.045",clipRule:"evenodd"})),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),n7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:185,height:40,fill:"none",viewBox:"0 0 185 40",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M184.035 26.367c.669 0 .965.596.965.966V32c0 .37-.299.667-.965.667h-1.031V36c0 2.21-1.787 4-3.993 4H5.69c-1.907 0-3.993-1.79-3.993-4v-3.333H.665A.664.664 0 0 1 0 32v-4.667c0-.37.296-.966.665-.966h1.032V13.333H.665c-.369 0-.665-.3-.665-.966V7.7c0-.067.296-.667.665-.667h1.032V3.7C1.697 1.79 3.783 0 5.69 0H179.01c2.206 0 3.993 1.79 3.993 3.7v3.333h1.031c.669 0 .965.6.965.667v4.667c0 .67-.299.966-.965.966h-1.031v13.034zM23.328 9.86c0-.303-.136-.643-.343-.843l-1.367-1.35a1.28 1.28 0 0 0-.855-.337h-8.259c-.136 0-.273.133-.273.27v10.373h-.306c-.136 0-.273.134-.273.27v3.514c0 .136.137.27.273.27h.306V32.4c0 .133.137.27.273.27h3.89c.136 0 .273-.133.273-.27V22.027h4.096c.309 0 .648-.134.855-.337l1.367-1.35a1.25 1.25 0 0 0 .343-.843V9.86m15.565-2.263c0-.137-.136-.27-.273-.27h-3.89c-.136 0-.272.133-.272.27V28.34c0 .137-.136.27-.273.27h-1.677c-.136 0-.273-.133-.273-.27V7.597c0-.137-.136-.27-.273-.27h-3.89c-.136 0-.272.133-.272.27v22.536c0 .304.136.644.343.844l1.367 1.353c.206.203.55.337.855.337h5.966c.306 0 .649-.134.855-.337l1.368-1.353a1.25 1.25 0 0 0 .343-.844V7.597zM55.377 22.53c0-.303-.137-.61-.343-.843l-1.71-1.69 1.71-1.69a1.25 1.25 0 0 0 .343-.844V9.86c0-.303-.103-.607-.343-.843l-1.367-1.35c-.24-.204-.583-.337-.855-.337h-8.259c-.136 0-.273.133-.273.27v10.373h-.306c-.136 0-.273.134-.273.27v3.514c0 .136.137.27.273.27h.306V32.4c0 .133.137.27.273.27h8.259c.306 0 .615-.133.855-.337l1.367-1.353c.206-.237.343-.54.343-.843V22.53m15.495-4.29c0-.137-.136-.27-.272-.27h-5.018c-.137 0-.273.133-.273.27v3.513c0 .137.136.27.273.27h.855v6.317c0 .137-.136.27-.273.27h-1.677c-.136 0-.273-.133-.273-.27V11.65c0-.137.137-.27.273-.27h1.677c.136 0 .273.133.273.27v3.853c0 .134.136.27.273.27h3.89c.136 0 .272-.136.272-.27V9.86c0-.303-.136-.643-.342-.843l-1.368-1.35a1.28 1.28 0 0 0-.855-.337H62.34c-.31 0-.649.133-.855.337l-1.368 1.35a1.25 1.25 0 0 0-.342.843v20.273c0 .304.136.644.342.844l1.368 1.353c.206.203.549.337.855.337h5.966c.31 0 .649-.134.855-.337l1.368-1.353a1.25 1.25 0 0 0 .342-.844zm109.47-13.873c0-.804-.895-2-1.997-2H82.884c-.802 0-1.996 1.196-1.996 2v30.966c0 1.104 1.194 2 1.996 2h95.461a2 2 0 0 0 1.997-2zm-7.936 28.3h-7.826c-.14 0-.279-.134-.279-.27v-10.37h-.316c-.14 0-.28-.134
9-.28-.27v-3.514c0-.136.14-.27.28-.27h.316V7.607c0-.137.139-.27.279-.27h7.826c.14 0 .28.133.28.27v3.513c0 .133-.14.27-.28.27h-3.913v6.587h3.913c.14 0 .28.133.28.27v3.513c0 .133-.14.27-.28.27h-3.913v6.587h3.913c.14 0 .28.136.28.27V32.4c0 .133-.14.27-.28.27zm-15.715-.337a1.26 1.26 0 0 1-.845.337h-5.241c-.302 0-.642-.134-.845-.337l-1.354-1.35a1.26 1.26 0 0 1-.339-.843V9.87c0-.303.136-.64.339-.843l1.354-1.35c.203-.204.543-.337.845-.337h5.241c.303 0 .642.133.845.337l1.354 1.35c.203.203.34.54.34.843v5.64c0 .133-.137.27-.27.27h-3.517c-.136 0-.269-.137-.269-.27v-3.85c0-.133-.137-.27-.27-.27h-1.657c-.136 0-.269.137-.269.27v16.683c0 .137.136.27.269.27h1.657c.137 0 .27-.133.27-.27v-6.316h-.846a.29.29 0 0 1-.269-.27v-3.514a.29.29 0 0 1 .269-.27h4.632c.137 0 .27.134.27.27V30.13c0 .303-.137.643-.34.843l-1.354 1.35zm-15.975 0a1.26 1.26 0 0 1-.845.337h-7.506a.287.287 0 0 1-.27-.27V7.607c0-.137.137-.27.27-.27h7.506c.303 0 .642.133.845.336l1.355 1.35c.203.204.339.54.339.844V30.13c0 .303-.136.643-.339.843l-1.355 1.35zm-2.365-20.67c0-.133-.137-.27-.27-.27h-1.926v17.223h1.926c.137 0 .27-.133.27-.27zm-12.514 21.007h-3.461c-.133 0-.266-.134-.266-.27V7.607c0-.137.133-.27.266-.27h3.461c.133 0 .266.133.266.27v24.79c0 .133-.133.27-.266.27m-9.32 0h-3.547c-.137 0-.273-.134-.273-.27V22.3c0-.137-.136-.27-.273-.27h-1.943V32.4c0 .133-.136.27-.273.27h-3.547c-.136 0-.273-.133-.273-.27V22.03h-.306c-.136 0-.273-.133-.273-.27v-3.513c0-.137.137-.27.273-.27h.306V7.61c0-.137.137-.27.273-.27h7.57c.306 0 .649.133.852.337l1.364 1.35c.206.203.343.54.343.843v7.6c0 .303-.137.64-.343.843l-1.704 1.69 1.704 1.69c.206.204.343.54.343.844v9.86c0 .133-.137.27-.273.27m-3.82-21.007c0-.133-.136-.27-.273-.27h-1.943v6.587h1.943c.137 0 .273-.137.273-.27zM98.782 32.33a1.35 1.35 0 0 1-.852.337h-7.57c-.136 0-.272-.134-.272-.27v-10.37h-.306c-.137 0-.273-.134-.273-.27v-3.514c0-.136.136-.27.273-.27h.306V7.607c0-.137.136-.27.273-.27h7.57c.272 0 .611.133.851.336l1.364 1.35c.24.237.34.54.34.844v7.6c0 .303-.137.64-.34.843L98.443 20l1.703 1.69c.203.237.34.54.34.843v7.6c0 .304-.137.607-.34.844l-1.364 1.35zm-2.386-20.67c0-.133-.136-.27-.272-.27H94.18v6.587h1.944c.136 0 .272-.137.272-.27zm0 10.64c0-.137-.136-.27-.272-.27H94.18v6.587h1.944c.136 0 .272-.134.272-.27zM50.67 28.613h-1.95v-6.586h1.95c.136 0 .273.136.273.27v6.046c0 .137-.137.27-.273.27m0-10.643h-1.95v-6.587h1.95c.136 0 .273.134.273.27V17.7c0 .137-.137.27-.273.27m-32.05 0H16.67v-6.587h1.95c.136 0 .273.134.273.27V17.7c0 .137-.137.27-.273.27",clipRule:"evenodd"})),i7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:44,fill:"none",viewBox:"0 0 52 44",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M49.673 29.124h1.673c.654 0 .654.291.654.647v6.455c0 .359 0 .647-.654.647h-1.673v3.241c0 2.145-1.755 3.883-3.922 3.883H6.547c-2.167 0-3.922-1.738-3.922-3.883v-3.241H.654A.65.65 0 0 1 0 36.226V29.77a.65.65 0 0 1 .654-.647H2.62V14.873H.654A.65.65 0 0 1 0 14.226V7.77a.65.65 0 0 1 .654-.647H2.62V3.591C2.625 1.737 4.38 0 6.547 0H45.75c2.167 0 3.922 1.737 3.922 3.591v3.533h1.673c.654 0 .654.291.654.647v6.455c0 .355 0 .647-.654.647h-1.673zM34.35 25.235c0-.404.101-.67-.18-.983l-2.334-2.242 2.334-2.242c.281-.269.18-.599.18-1.294V8.412c0-.405.147-.67-.18-.984l-1.866-1.795c-.327-.269-.556-.748-1.223-.748H18.957c-.187 0-.948.757-.948.647v13.589l.023.197c-.187 0-.373.181-.373.36v4.664c0 .181.186.36.373.36l-.023-.114v13.588c0 .182.761.648.948.648h12.125c.716 0 .9-.172 1.223-.44l1.866-1.796c.281-.314.18-.599.18-1.294V25.232zm-6.537 8.12h-3.628v-8.767h3.628c.48 0 .948.466.948.647v7.474c0 .472-.468.647-.948.647m0-14.234h-3.628v-8.768h3.628c.48 0 .948.466.948.647v7.474c0 .472-.468.647-.948.647",clipRule:"evenodd"})),s7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:46,fill:"none",viewBox:"0 0 52 46",...t},y.createElement("path",{fill:"currentColor",d:"M52 39.03H23.716l-2.717-19.276h-.194L13.19 39.03H0l18.357-28.186 7.165-3.032-3.351 8.482h.182l10.45-11.776L44.923 0l-2.134 11.477-21.195 6.461-.076.193 11.947-1.462 16.623 10.97L52 39.032zM39.52 46c-1.394 0-2.445-1.033-2.445-2.404s1.05-2.403 2.445-2.403h2.637c1.394 0 2.445 1.034 2.445 2.404S43.5
952 46 42.157 46zm2.43-1.438c.556 0 .975-.411.975-.965 0-.555-.419-.966-.975-.966h-2.224c-.556 0-.976.411-.976.965 0 .555.42.966.976.966zm-29.582-.138 1.58 1.253V46h-1.945L10.19 44.56H8.892v1.438H7.223v-4.807h5.116c.896 0 1.62.724 1.62 1.615 0 .892-.71 1.6-1.592 1.616m-.083-1.54a.42.42 0 0 0-.42-.418H8.892v.836h2.973c.231 0 .42-.187.42-.419zm4.32 2.027L16.085 46h-1.683v-.322l2.146-4.484h3.359l2.146 4.484V46H20.37l-.521-1.089zm2.639-1.37-.463-.965h-1.11l-.461.965h2.034m13.064-.91h-2.781v-1.438h7.231v1.438h-2.781V46h-1.669zm12.7-1.438V46h1.608v-3.36L49.652 46H52v-4.807h-1.607v3.37l-3.043-3.37zM22.507 46h1.668v-1.178h3.907v-1.424h-3.907v-.767h4.945v-1.438h-6.613zM3.01 44.562 4.824 46H6.77v-.322l-2.624-2.081 2.624-2.083v-.32H4.824L1.67 43.696v-2.504H0V46h1.669v-1.438z"})),l7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:126,height:43,fill:"none",viewBox:"0 0 126 43",...t},y.createElement("g",{fill:"currentColor"},y.createElement("path",{d:"M94.148 21.521h-2.914a.246.246 0 0 0-.244.248v17.537c0 .137-.11.247-.244.247H89.37a.246.246 0 0 1-.244-.247V21.769a.246.246 0 0 0-.245-.248h-2.913a.246.246 0 0 0-.245.248v19.097a1 1 0 0 0 .286.7l1.129 1.143c.183.186.432.29.692.29h4.457c.26 0 .509-.104.692-.29l1.128-1.142a1 1 0 0 0 .287-.701V21.769a.246.246 0 0 0-.244-.248zM62.787 40.867c0 .262-.104.514-.286.7l-1.129 1.143a.97.97 0 0 1-.692.29h-4.458a.98.98 0 0 1-.692-.29l-1.128-1.142a1 1 0 0 1-.286-.701V23.655c0-.262.103-.515.286-.701l1.127-1.142a.97.97 0 0 1 .693-.29h4.456c.26 0 .509.104.692.29l1.128 1.142a1 1 0 0 1 .287.701v4.747c0 .137-.11.247-.244.247h-2.913a.246.246 0 0 1-.245-.247v-3.186a.246.246 0 0 0-.244-.248h-1.376a.246.246 0 0 0-.244.248v14.09c0 .138.11.248.245.248h1.375a.246.246 0 0 0 .244-.247v-5.322h-.688a.246.246 0 0 1-.244-.248v-2.95c0-.137.11-.248.244-.248h3.846c.135 0 .244.112.244.248v10.081zM7.72 21.81a.97.97 0 0 0-.693-.29H.71a.246.246 0 0 0-.244.248v8.769H.244a.246.246 0 0 0-.244.247v2.951c0 .137.11.248.244.248h.222v8.768c0 .137.11.247.244.247h6.32c.258 0 .508-.104.691-.29l1.128-1.143a1 1 0 0 0 .287-.701v-6.472a1 1 0 0 0-.287-.7L7.434 32.26l1.415-1.433a1 1 0 0 0 .287-.701v-6.473a1 1 0 0 0-.287-.7L7.721 21.81zM5.733 39.306c0 .137-.11.247-.245.247h-1.62v-5.57h1.62c.136 0 .245.111.245.247zm0-9.017c0 .137-.11.248-.245.248h-1.62v-5.57h1.62c.136 0 .245.11.245.247zm67.589-.162v-6.473a1 1 0 0 0-.287-.7l-1.128-1.144a.97.97 0 0 0-.692-.29h-6.319a.246.246 0 0 0-.244.248v8.769h-.222a.246.246 0 0 0-.244.247v2.951c0 .137.11.248.244.248h.222v8.768c0 .137.11.248.244.248h2.913a.246.246 0 0 0 .245-.248v-8.768h1.62c.135 0 .244.111.244.247v8.521c0 .137.11.248.245.248h2.913a.246.246 0 0 0 .244-.248v-8.358a1 1 0 0 0-.287-.7L71.62 32.26l1.414-1.433a1 1 0 0 0 .287-.701zm-3.647.41h-1.62v-5.57h1.62c.135 0 .244.112.244.248v5.074c0 .137-.11.248-.244.248m45.502-7.583-1.129-1.143a.97.97 0 0 0-.692-.29h-6.319a.246.246 0 0 0-.244.248v20.983c0 .137.11.247.244.247h6.319a.97.97 0 0 0 .692-.29l1.128-1.142a1 1 0 0 0 .286-.701V23.654a1 1 0 0 0-.286-.7zm-3.116 16.352c0 .137-.11.247-.244.247h-1.621V24.967h1.621c.135 0 .244.112.244.248zm-27.982-8.768h-.222v-6.883a1 1 0 0 0-.286-.701l-1.128-1.143a.97.97 0 0 0-.693-.29h-4.456a.98.98 0 0 0-.692.29l-1.128 1.143a1 1 0 0 0-.286.701v6.883h-.222a.246.246 0 0 0-.244.247v2.951c0 .137.11.248.244.248h.222v6.883a1 1 0 0 0 .286.7l1.128 1.143c.183.186.433.29.692.29h4.456c.26 0 .509-.105.693-.29l1.128-1.142a1 1 0 0 0 .286-.701v-6.883h.222a.246.246 0 0 0 .244-.248v-2.95a.246.246 0 0 0-.244-.248m-3.624 8.768c0 .137-.11.247-.245.247h-1.375a.246.246 0 0 1-.244-.247V25.215c0-.137.11-.248.244-.248h1.375c.136 0 .245.112.245.248zM45.69 21.52a.246.246 0 0 0-.245.248v8.769h-.221a.246.246 0 0 0-.245.247v2.951c0 .137.11.248.245.248h.221v8.768c0 .137.11.247.245.247h6.316a.246.246 0 0 0 .245-.247v-2.95a.246.246 0 0 0-.245-.248H48.85v-5.57h3.158a.246.246 0 0 0 .245-.248v-2.95a.246.246 0 0 0-.245-.248H48.85v-5.57h3.158a.246.246 0 0 0 .245-.248v-2.95a.246.246 0 0 0-.245-.248h-6.316m-8.67 0a.246.246 0 0 0-.245.248v20.983c0 .137.11.247.244.247h6.317a.246.246 0 0 0 .244-.247v-2.95a.246.246 0 0 0-.244-.248h-3.159V21.77a.246.246 0 0 0-.244-.248h-2.913m67.662 0h-2.913a.246.246 0 0 0-.245.248v9.542l-1.865-9.542a.246.246 0 0 0-.244-.248h-2.914a.246.246 0 0 0-.245.248v20.983c0 .137.11.247.245.247h2.914c.135 0 .244-.11.244-.247V33.21l1.865 9.54c0 .138.11.248.245.248h2.913c.136 0 .245-.11.245-.247V21.769a.246.246 0 0 0-.245-.248m18.158 7.128h2.913a.246.246 0 0 0 .244-.247v-4.747a1 1 0 0 0-.286-.701l-1.128-1.143a.97.97 0 0 0-.693-.29h-4.456a.97.97 0 0 0-.692.291l-1.128 1.142a1 1 0 0 0-.286.7v5.542c0 .212.067.418.191.59l5.
9024 6.455a.25.25 0 0 1 .053.153v2.911c0 .137-.11.248-.245.248h-1.375a.246.246 0 0 1-.245-.248v-3.186a.247.247 0 0 0-.245-.248h-2.913a.246.246 0 0 0-.244.247v4.746c0 .263.103.515.287.701l1.127 1.143c.184.186.433.29.693.29h4.456a.97.97 0 0 0 .692-.291l1.128-1.142a1 1 0 0 0 .286-.7v-5.542c0-.212-.067-.418-.191-.59l-5.024-6.455a.25.25 0 0 1-.052-.153v-2.911c0-.137.109-.247.244-.247h1.375c.136 0 .245.11.245.247V28.4c0 .137.11.248.245.248zm-88.174-7.128H19.68a.246.246 0 0 0-.245.248v2.95c0 .138.11.248.245.248h2.389v17.785c0 .137.11.247.244.247h2.914a.246.246 0 0 0 .244-.247V24.967h3.403v17.785c0 .137.11.247.244.247h2.914a.246.246 0 0 0 .245-.247V24.967h2.389a.246.246 0 0 0 .244-.247v-2.951a.246.246 0 0 0-.244-.248m-17.692 21.48h2.899c.15 0 .264-.135.242-.285l-3.092-20.983a.246.246 0 0 0-.242-.21h-2.98a.245.245 0 0 0-.242.212l-2.986 20.983a.247.247 0 0 0 .242.283h2.899c.125 0 .23-.096.243-.223l.534-5.347h1.662l.576 5.35c.014.125.119.22.244.22m-2.348-9.017.72-6.345.718 6.345zM67.143 10.2v3.203a.155.155 0 0 1-.154.156h-1.023v-3.516h1.023c.085 0 .154.07.154.156zm-.154-5.849h-1.023v3.517h1.023c.085 0 .154-.07.154-.156V4.507a.155.155 0 0 0-.154-.156m-13.297 0h-1.023v3.517h1.023c.085 0 .154-.07.154-.156V4.507a.155.155 0 0 0-.154-.156m25.18-.612v3.27a.155.155 0 0 1-.154.155h-.63v3.582h.63c.085 0 .154.07.154.157v3.269a.155.155 0 0 1-.154.156h-.63v3.426a.155.155 0 0 1-.154.156h-29.4a.155.155 0 0 1-.154-.156v-3.426h-.63a.155.155 0 0 1-.154-.156v-3.27c0-.086.069-.155.154-.155h.63v-3.55h-.63a.155.155 0 0 1-.154-.156V3.738c0-.086.069-.156.154-.156h.63V.156c0-.086.069-.156.154-.156h29.4c.085 0 .154.07.154.156v3.426h.63c.085 0 .154.07.154.156zm-22.878-.217a.63.63 0 0 0-.181-.442l-.712-.721a.62.62 0 0 0-.437-.184h-3.989a.155.155 0 0 0-.154.156v5.536h-.14a.155.155 0 0 0-.154.156v1.863c0 .086.07.156.155.156h.14v5.536c0 .086.068.156.153.156h1.839c.085 0 .154-.07.154-.156v-5.536h1.995c.164 0 .32-.065.437-.183l.712-.722a.63.63 0 0 0 .18-.443V3.521zm6.648-1.19a.155.155 0 0 0-.154-.156H60.65a.155.155 0 0 0-.155.156v11.072a.155.155 0 0 1-.154.156h-.868a.155.155 0 0 1-.154-.156V2.332a.155.155 0 0 0-.155-.156h-1.838a.155.155 0 0 0-.155.156V14.39c0 .166.065.325.182.443l.712.722a.62.62 0 0 0 .437.183h2.813c.164 0 .32-.065.437-.183l.712-.722a.63.63 0 0 0 .18-.443V2.332zm6.65 1.19a.63.63 0 0 0-.182-.442l-.712-.722a.62.62 0 0 0-.437-.184h-3.987a.155.155 0 0 0-.155.157v5.535h-.14a.155.155 0 0 0-.153.156v1.863c0 .087.069.156.154.156h.14v5.536c0 .086.068.156.154.156h3.988c.164 0 .32-.066.437-.184l.712-.72a.63.63 0 0 0 .181-.443V10.3a.63.63 0 0 0-.181-.443l-.893-.905.893-.904a.63.63 0 0 0 .181-.443V3.52zm6.648 0a.63.63 0 0 0-.181-.442l-.712-.721a.62.62 0 0 0-.436-.184h-2.814a.61.61 0 0 0-.437.184l-.712.72a.63.63 0 0 0-.18.443v10.866c0 .167.064.325.18.443l.712.722a.62.62 0 0 0 .437.183h2.813a.6.6 0 0 0 .436-.183l.712-.722a.63.63 0 0 0 .181-.443V8.024a.155.155 0 0 0-.154-.156h-2.427a.155.155 0 0 0-.154.156v1.863c0 .086.069.156.154.156h.434v3.36a.155.155 0 0 1-.154.156h-.869a.155.155 0 0 1-.154-.156V4.507c0-.086.069-.156.154-.156h.869c.085 0 .154.07.154.156V6.52c0 .086.069.156.154.156h1.839c.085 0 .154-.07.154-.156zM79.238.68V.472h.139q.153 0 .153.103c0 .053-.033.103-.137.103zm.498.43L79.65.958c-.075-.133-.096-.154-.16-.176V.777c.127-.015.202-.098.202-.21 0-.121-.075-.212-.235-.212h-.373v.755h.155V.8h.028c.065 0 .092.008.122.038a.6.6 0 0 1 .101.149l.06.123zM79.37.145c.32 0 .581.261.581.585s-.26.586-.581.586a.58.58 0 0 1-.576-.586.58.58 0 0 1 .576-.585m0-.145a.723.723 0 0 0-.719.73c0 .404.322.728.719.728.4 0 .72-.324.72-.728a.724.724 0 0 0-.72-.73"}))),r7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:61,height:44,fill:"none",viewBox:"0 0 61 44",...t},y.createElement("path",{fill:"currentColor",d:"M59.715 34.277c.198 0 .36.165.36.365v8.994c0 .2-.162.364-.36.364H1.124a.364.364 0 0 1-.36-.364v-8.994c0-.2.162-.365.36-.365zm-45.42 2.268c-.459 0-.766.317-.766.773v.546c0 .318.112.566.323.774l1.475 1.472c.015.023.03.04.03.068v.663c0 .013-.015.028-.03.028h-.853c-.02 0-.028-.013-.028-.028v-.692h-.912v.802c0 .464.308.781.768.781H15.5c.46 0 .774-.317.774-.78v-.692c0-.318-.116-.567-.322-.775l-1.475-1.472c-.02-.023-.029-.039-.029-.067v-.508c0-.022.006-.03.029-.03h.853c.015 0 .03.008.03.03v.685h.912l-.002-.003v-.802c0-.456-.315-.773-.775-.773zm10.187.015v4.391c0 .464.307.781.767.781h1.198c.46 0 .775-.317.775-.78h-.002V36.56h-.912v4.28c0 .014-.015.03-.03.03h-.854c-.023-.001-.03-.014-.03-.03v-4.28zm15.369-.015c-.452 0-.767.317-.767.773v3.633c0 .464.315.781.767.781h1.199c.46 0 .774-.317.774-.78v-3.634c0-.456-.315-.773-.774-.773zm5.477 0c-.46 0-.767.317-.767.773v.546c0 .318.112.566.323.774l1.475 1.472c.013.023.029.04.029.068v.663c0 .013-.013.028-.029.028h-.853c-.023 0-.03-.013-.03-.028v-.692h-.911v.802c0 .464.306.781.766.781h1.198c.46 0 .775-.317.775-.78v-.692c0-.318-.117-.567-.323-.775l-1.475-1.472c-.023-.023-.03-.039-.03-.067v-.508c0-.022.007-.03.03-.03h.853c.013 0 .029.008.029.03v.685h.91l.004-.003v-.802c0-.456-.315-.773-.775-.773zm-26.316.015v.848h.912v4.309h.911v-4.309h.915v-.848zm10.945 0v5.157h1.966c.46 0 .774-.318.774-.782v-3.601c0-.456-.315-.774-.774-.774zm5.48 0v5.157h.912V36.56zm-3.682.848c.015 0 .031.007.031.03v3.405c0 .013-.016.028-.031.028h-.884v-3.463zm9.128 0c.015 0 .03.008.03.03v3.405c0 .012-.015.028-.03.028h-.854c-.02 0-.028-.013-.028-.028v-3.405c0-.023.005-.03.028-.03zM10.429.003c.38 0 .75.154 1.018.426l1.661 1.675c.27.271.421.64.421 1.027v12.023c0 .385-.152.756-.42 1.028l-1.662 1.674c-.269.272-.635.426-1.018.426H5.774v12.863a.36.36 0 0 1-.36.364h-4.29a.363.363 0 0 1-.36-.364v-12.86H.438a.364.364 0 0 1-.36-.364v-4.327c0-.2.163-.363.36-.364h.326V.367c0-.2.162-.364.36-.364zM20.924 0c.198 0 .361.164.361.364V26.09c0 .2.162.364.36.364h2.027c.198 0 .36-.164.36-.364V.364c0-.2.163-.364.362-.364h4.289c.198 0 .36.165.36.364v28.017c0 .384-.153.756-.422 1.027l-1.66 1.675c-.27.272-.635.426-1.019.426H19.38c-.38 0-.749-.155-1.018-.426l-.006-.002-1.66-1.676a1.46 1.46 0 0 1-.422-1.027V.364c0-.2.163-.364.36-.364zm20.534.003c.38 0 .75.154 1.019.426l1.66 1.675c.27.271.422.64.422 1.027v9.5c0 .384-.152.756-.421 1.027l-2.083 2.1 2.083 2.101c.269.272.42.641.42 1.028v9.494c0 .384-.151.756-.42 1.027l-1.661 1.676c-.27.271-.636.425-1.019.425h-9.305a.363.363 0 0 1-.36-.364V18.283h-.325v.002a.363.363 0 0 1-.36-.363v-4.327c0-.2.162-.364.36-.364h.325V.367c0-.2.162-.364.36-.364zm15.517 0c.38 0 .749.154 1.018.426l1.661 1.675c.27.271.421.64.421 1.027v7.242c0 .2-.162.364-.36.364h-4.29l.004.003a.365.365 0 0 1-.362-.364V5.422c0-.2-.162-.364-.36-.364h-2.026a.364.364 0 0 0-.36.364V26.09c0 .2.162.363.36.363h2.026c.198 0 .36-.163.36-.363v-7.809h-1.012a.364.364 0 0 1-.36-.364v-4.327c0-.2.162-.364.36-.364h5.663c.198 0 .36.164.36.364v14.787c0 .384-.153.756-.422 1.027l-1.66 1.676c-.27.272-.638.426-1.019.426h-6.564c-.38 0-.75-.154-1.018-.426l-1.662-1.676a1.46 1.46 0 0 1-.42-1.027V3.13c0-.384.151-.756.42-1.027L49.395.429c.269-.272.635-.426 1.018-.426zM36.804 26.454h2.386c.198 0 .36-.163.36-.363v-7.446c0-.2-.162-.363-.36-.363h-2.386zM5.776 13.23h2.388c.198 0 .36-.164.36-.364V5.422c0-.2-.162-.364-.36-.364H5.776zm31.028 0h2.386c.199 0 .36-.164.36-.364V5.422c0-.2-.161-.364-.36-.364h-2.386z"})),o7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.964 2.718.557-.96c.344-.6 1.11-.802 1.711-.46.6.344.804 1.108.461 1.708l-5.364 9.259h3.88c1.256 0 1.962 1.473 1.415 2.495H1.252A1.246 1.246 0 0 1 0 13.512c0-.692.557-1.247 1.252-1.247H3.44l5.082-7.056-1.275-2.207a1.25 1.25 0 0 1 .46-1.706 1.255 1.255 0 0 1 1.711.459zM5.14 16.044l-1.202 2.081a1.255 1.255 0 0 1-1.711.46 1.247 1.247 0 0 1-.46-1.708l.893-1.542c1.01-.311 1.83-.072 2.48.71m10.356-3.772h3.254c.694 0 1.25.555 1.25 1.248 0 .692-.556 1.246-1.25 1.246h-1.807l1.22 2.111c.343.6 1.537 1.511.935 1.86-.6.343-2.757-.013-3.107-.612-2.054-3.554-3.598-6.213-4.62-7.985-1.049-1.802-.3-3.612.438-4.225.822 1.405 2.048 3.526 3.687 6.357",clipRule:"evenodd"})),c7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{fill:"currentColor",clipPath:"url(#a)"},y.createElement("path",{d:"M9.184 6.13V4.185c0-.31-.145-.455-.44-.455H8.26v2.854h.484c.295 0 .44-.145.44-.454"}),y.createElement("path",{d:"M17.096 0c1.15 0 1.57.425 1.57 1.567v13.794q0 .195-.018.363c-.026.25-.032.493-.264.767-.025.031-.265.206-.265.206-.125.063-.213.113-.357.17l-6.984 2.91c-.364.168-.515.23-.779.224-.264.006-.415-.062-.78-.225l-6.982-2.91c-.144-.062-.232-.106-.358-.169a9 9 0 0 1-.264-.206c-.232-.274-.238-.518-.263-.767a3 3 0 0 1-.02-.363V1.567C1.332.425 1.76 0 2.903 0zM6.656 17.247l3.293 1.124 3.425-1.124zm-1.622-5.19-.22.045-.03.011-.032.007-.032.013-.032.006-.062.025-.025.012-.032.02-.062.024-.095.056-.15.113-.026.024-.025.02-.05.05-.02.024-.025.025-.113.15-.012.025-.02.025-.018.032-.1.25-.006.03-.013.031-.02.094-.005.038v.269l.005.03v.032l.007.031v.032l.006.03.013.031.007.031.012.032.006.03.013.032.013.025.05.126.018.024.02.031.012.026.113.15.05.05.026.018.025.026.176.13.031.02.026.012.03.018.22.087.284.057.037.007.032.006h.1l.038-.006.031-.007.038-.006.031-.007.038-.006.158-.03.282-.113.031-.019.031-.012.095-.057.176-.13.02-.014-.002-1.036H5.071v.462h.465v.313l-.024.018-.026.013-.03.013-.026.012-.032.012-.157.031-.075.013h-.057l-.038-.006-.093-.018-.158-.063-.126-.094-.018-.025-.026-.024-.038-.051-.03-.05-.02-.031-.025-.063-.038.013-.012-.031-.02-.094v-.23l.008-.039.012-.062.05-.124.019-.026.012-.03.057-.076.025-.024.019-.026.151-.112.032-.013.025-.075.062-.024.126-.026h.07l.075.013.125.025.063.025.076.037.03.02.127.093.025.024.026.019.018-.024.026-.026.018-.024.026-.026.038-.05.024-.025.02-.025.024-.025.038-.05.025-.025.038-.05.025-.025.02-.024.024-.026.02-.025-.026-.019-.025-.025-.1-.074-.032-.019-.026-.02-.03-.018-.026-.019-.031-.012-.032-.019-.031-.013-.057-.024-.03-.013-.026-.012-.032-.006-.032-.013-.188-.038-.037-.006-.032-.006h-.032l-.075-.012zm10.063-.05-.251.05-.026.006-.126.05-.03.019-.032.013-.031.018-.101.075-.1.1-.039.05-.038.063-.037.093-.007.031-.011.031-.033.157v.075l.007.037.026.125.011.025.007.032.026.05.018.03.075.1.051.05.075.057.031.018.026.019.062.038.095.037.037.013.095.037.031.007.063.024.032.007.031.012.031.007.037.011.033.007.037.013.031.006.032.012.032.006.03.013.052.013.037.018.062.025.026.012.05.038.019.025.013.031.006.038v.006l-.006.031-.013.031-.013.026-.018.024-.026.019-.05.025-.094.019-.037.007h-.07l-.038-.007h-.031l-.031-.006-.038-.007-.063-.012-.031-.007-.252-.1-.024-.018-.033-.012-.024-.019-.032-.018-.025-.02-.032-.019-.024-.018-.032-.019-.025-.018-.02.024-.024.026-.02.025-.024.024-.038.05-.025.026-.019.025-.025.024-.019.026-.025.025-.038.05-.025.024-.02.026-.024.025-.02.025.026.025.176.13.032.02.025.019.032.018.313.124.032.007.032.013.188.037.037.007.063.012h.038l.031.007h.126l.031-.007.038-.006.126-.026.056-.011.031-.007.033-.013v.007l.093-.037.032-.02.03-.012.033-.019.024-.018.026-.013.05-.037.07-.069.094-.125.012-.03.013-.026.025-.063.006-.031.013-.031.006-.031.007-.038.006-.03.044.036v-.075l-.006-.037-.006-.031-.026-.125-.012-.032-.013-.025-.018-.031-.019-.025-.02-.03-.018-.026-.1-.1-.077-.056-.094-.056-.03-.013-.032-.018-.038-.013-.031-.007-.158-.061-.03-.007-.039-.013-.031-.012-.038-.007-.113-.037-.032-.006-.031-.012-.031-.007-.026-.012-.024-.007-.076-.024-.032-.013-.025-.018-.031-.02-.026-.024-.012-.019-.012-.038-.007-.043v-.007l.007-.03.012-.032.02-.031.03-.025.051-.025.063-.013.038-.006h.068l.126.026.019-.013.031.006.063.025.037.013.026.012.031.012.026.013.03.013.026.011.031.013.026.019.031.012.05.037.032.02.026.019.018-.026.063-.137.038-.05.018-.032.132-.174.02-.032.075-.1-.1-.074-.032-.019-.025-.019-.063-.038-.025-.012-.032-.019-.157-.062-.031-.006-.064-.026-.156-.03-.038-.007-.031-.007-.038-.005h-.032l-.075-.013zm-7.751.04-.013.031-.025.056-.1.25-.007.031-.125.312-.025.056-.402.998-.025.
9057-.138.344-.012.018-.038.094-.025.056-.025.062-.026.057h-.002l-.012.03h.628l.1-.249.026-.057.062-.156h.905l.189.469h.622l.062.024-.025-.055-.577-1.436-.025-.057-.376-.935zm1.817.136V14.5h.604v-1.361l.02.024.018.031.018.026.019.031.02.024.018.032.013.02.018.03.02.025.018.031.019.025.02.032.018.024.013.019.018.025.019.031.02.026.018.031.018.024.02.032-.032.03.02.032.018.026.018.03.013.025.02.031.018.026.019.031.018.024.02.032.018.025.019.031.02.026.018.031h.013l.018-.025.019-.032.038-.05.013-.03.037-.05.02-.032.018-.025.012-.025.019-.025.02-.031.036-.05.02-.031.019-.026.012-.025.019-.031.038-.05.018-.031.039-.05.018-.031.057-.076.018-.03.038-.05.019-.032.038-.05.019-.03.018-.026v1.368h.585l.145-.007v-2.316h-.654l-.02.025-.018.03-.018.026-.02.03-.018.026-.019.032-.018.024-.02.031-.019.026-.012.024-.019.031-.02.026-.018.03-.019.026-.018.032-.038.05-.019.03-.02.025-.018.031-.018.026-.02.03-.018.025-.019.032-.013.025-.018.025-.02.032-.018.024-.019.031-.02.026-.018.03-.019.025-.019.032-.018.025-.02-.025-.019-.032-.018-.024-.013-.031-.018-.025-.019-.031-.02-.025-.018-.032-.013-.025-.018-.024-.013-.032-.019-.025-.02-.031-.018-.025-.018-.031-.02-.025-.018-.032-.038-.05-.019-.03-.018-.026-.02-.031-.019-.025-.018-.031-.038-.05-.019-.031-.018-.025-.02-.032-.018-.025-.019-.03-.02-.026-.018-.031-.019-.025zm2.917.007v2.316h1.86v-.525h-1.25v-.393h1.106v-.493H12.69v-.381h1.23v-.524zm-4.425.797.037.093.051.125.037.094.051.125.037.094.013.03-.025.032h-.54l.025-.062.024-.063.064-.156.037-.094.05-.125.039-.093.012-.03.025-.063.012-.032zm6.443-10.395c-.956 0-1.427.468-1.427 1.423V8.96c0 .955.471 1.424 1.427 1.424h.578c.955 0 1.426-.469 1.426-1.424V7.175h-1.144V8.91c0 .306-.144.45-.44.45h-.22c-.308 0-.452-.144-.452-.45v-4.84c0-.305.144-.449.452-.449h.195c.296 0 .44.143.44.45V5.57h1.15V4.003c0-.95-.459-1.411-1.414-1.411zM3.89 2.66v7.662h2.632V9.261H5.065V6.95h1.383V5.888H5.065V3.722h1.44V2.66zm3.199 0-.001 7.662h1.176V7.543h.666c.955 0 1.426-.468 1.426-1.424V4.084c0-.955-.471-1.424-1.426-1.424zm3.796 0v7.662h1.175V2.66z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),u7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 20 20",...t},y.createElement("g",{fill:"currentColor"},y.createElement("path",{d:"M10 4.758a1.75 1.75 0 0 0-1.748 1.747v.584h3.495v-.584a1.75 1.75 0 0 0-1.748-1.747"}),y.createElement("path",{d:"M10 0C4.479 0 0 4.479 0 10s4.479 10 10 10 10-4.479 10-10S15.521 0 10 0m5.41 13.674a2.914 2.914 0 0 1-2.905 2.731h-5.01a2.91 2.91 0 0 1-2.906-2.731l-.373-5.969a.58.58 0 0 1 .579-.616h2.29v-.584c0-1.7 1.468-3.068 3.2-2.894 1.51.147 2.62 1.505 2.62 3.026v.452h2.29c.337 0 .6.285.579.616l-.374 5.969z"}),y.createElement("path",{d:"M10 4.758a1.75 1.75 0 0 0-1.748 1.747v.584h3.495v-.584a1.75 1.75 0 0 0-1.748-1.747"}),y.createElement("path",{d:"M10 0C4.479 0 0 4.479 0 10s4.479 10 10 10 10-4.479 10-10S15.521 0 10 0m5.41 13.674a2.914 2.914 0 0 1-2.905 2.731h-5.01a2.91 2.91 0 0 1-2.906-2.731l-.373-5.969a.58.58 0 0 1 .579-.616h2.29v-.584c0-1.7 1.468-3.068 3.2-2.894 1.51.147 2.62 1.505 2.62 3.026v.452h2.29c.337 0 .6.285.579.616l-.374 5.969z"}))),h7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.91.014a1.6 1.6 0 0 1 1.068.234l10.845 6.15-2.745 2.77zm-.834.833c-.05.175-.076.366-.076.557v17.192q0 .285.076.557L10.252 10zm10.011 9.986L1.91 19.986c.375.05.751-.034 1.068-.232l10.845-6.151zm7.108-1.948-3.288-1.864L11.904 10l2.995 2.987 3.287-1.863c1.085-.616 1.085-1.632 0-2.248h.009z",clipRule:"evenodd"})),d7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M16 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm-7.22 9.705 3.83 4.695 1.123-.873-3.242-3.901 2.802-3.52-1.143-.826zM6.8 3.917v12.26h1.456V3.6z"})),f7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{clipPath:"url(#a)"},y.createElement("path",{fill:"currentColor",d:"M11.74 19.98c.112.042 3.327.025 3.725-.016 1.681-.19 3.164-1.214 3.971-2.733a6 6 0 0 0 .311-.726c.261-.779.253-.572.253-6.524 0-4.75-.008-5.459-.066-5.761-.41-2.158-2.055-3.787-4.217-4.16C15.427.01 14.979 0 13.538 0c-.992 0-1.819.012-1.835.028-.016.013-.028 4.503-.028 9.979 0 9.018.003 9.947.065 9.974M7 19.992c2.32.017 2.56.012 2.622-.05.062-.063.066-.87.066-9.924 0-6.715-.013-9.88-.041-9.94-.042-.075-.112-.08-2.54-.076-1.971.004-2.564.017-2.825.062a5.17 5.17 0 0 0-4.1 3.77c-.183.7-.195 1.11-.174 6.54.012 4.986.017 5.103.1 5.488.46 2.075 1.934 3.555 4.03 4.043.273.062.621.075 2.862.087m-.654-1.615c-1.554-.017-1.72-.025-2.03-.104-1.334-.343-2.324-1.37-2.601-2.708-.091-.419-.092-10.717-.005-11.134a3.56 3.56 0 0 1 2.146-2.565c.547-.22.8-.244 2.573-.248l1.602-.005v16.784zM4.919 7.861c.327.013.443 0 .662-.074.899-.302 1.441-1.176 1.288-2.071-.178-1.065-1.188-1.777-2.232-1.57a2.2 2.2 0 0 0-.87.435c-.435.377-.65.912-.617 1.541.017.327.037.414.17.679.194.401.488.695.89.894.277.137.349.154.709.166m11.208 5.082c-1.035.27-2.137-.356-2.44-1.383a2.4 2.4 0 0 1 .017-1.168 2.01 2.01 0 0 1 2.423-1.342c.646.17 1.176.662 1.392 1.292.136.39.132.961-.004 1.317-.253.654-.75 1.115-1.388 1.284"})),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),m7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M12.031 6.17v4.687c2.03.955 3.628 0 3.628-2.52s-.937-3.72-3.693-4.643C10.878 3.343 8.863 2.75 7.475 2.5v13.996l3.26 1.004V5.765c0-.553.254-.92.66-.794.533.143.636.652.636 1.2M.38 13.414c-.72.52-.456 1.423 1.12 1.85a10.75 10.75 0 0 0 5.019.392c.105-.018.221-.035.325-.052V13.96l-1.614.565c-.596.214-1.461.257-1.949.098-.479-.152-.39-.443.205-.65l3.358-1.17v-1.842l-4.67 1.619s-1.13.358-1.794.834"}),y.createElement("path",{fill:"currentColor",d:"M18.502 12.334c-1.365-.5-3.103-.67-4.519-.52-1.419.15-2.428.498-2.428.498l-.2.064v1.906l3.48
96-1.195c.599-.209 1.468-.253 1.955-.098.48.152.389.442-.203.656l-5.238 1.811v1.834l7.116-2.485s.957-.345 1.352-.822c.389-.482.216-1.174-1.321-1.649M18.785 15.992a.754.754 0 0 0-.765.743c0 .198.078.382.221.523a.787.787 0 0 0 1.082 0 .73.73 0 0 0 0-1.048.76.76 0 0 0-.538-.218m0 1.356a.66.66 0 0 1-.453-.179.6.6 0 0 1-.184-.434c0-.17.065-.324.184-.439a.65.65 0 0 1 .899 0c.12.115.185.27.185.439a.623.623 0 0 1-.631.613"}),y.createElement("path",{fill:"currentColor",d:"M19.134 17.045a.4.4 0 0 1-.006-.063l-.004-.105q-.002-.075-.032-.11c-.011-.017-.03-.029-.047-.04a.5.5 0 0 0 .063-.066.24.24 0 0 0 .033-.124q0-.146-.126-.204a.4.4 0 0 0-.16-.028h-.396v.826h.15v-.336h.23q.063 0 .093.012c.029.017.044.044.046.09l.007.129.006.067.012.028.003.01h.165v-.047l-.01-.006q-.017-.004-.027-.034zm-.179-.406a.2.2 0 0 1-.112.028h-.234v-.233h.248q.051.002.082.014.052.026.052.099 0 .07-.036.092"})),g7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{clipPath:"url(#a)"},y.createElement("path",{fill:"currentColor",d:"M9.983 0C4.72 0 .409 4.095 0 9.298l5.37 2.24a2.8 2.8 0 0 1 1.753-.493L9.51 7.552v-.049c0-2.102 1.694-3.812 3.777-3.812s3.778 1.71 3.778 3.812-1.695 3.813-3.778 3.813l-.086-.001-3.405 2.45.003.136c0 1.579-1.272 2.863-2.835 2.863a2.846 2.846 0 0 1-2.78-2.298l-3.84-1.602c1.189 4.243 5.052 7.354 9.638 7.354C15.515 20.218 20 15.69 20 10.108S15.515 0 9.983 0M6.278 15.338l-1.23-.513c.217.459.595.842 1.096 1.053a2.123 2.123 0 0 0 2.782-1.156c.218-.526.22-1.117.003-1.644a2.13 2.13 0 0 0-1.149-1.165 2.1 2.1 0 0 0-1.569-.023l1.272.53a1.586 1.586 0 0 1 .843 2.067 1.56 1.56 0 0 1-2.048.851m9.527-7.835c0-1.4-1.129-2.54-2.516-2.54s-2.518 1.14-2.518 2.54 1.13 2.54 2.518 2.54 2.516-1.14 2.516-2.54M11.402 7.5a1.9 1.9 0 0 1 1.89-1.908A1.9 1.9 0 0 1 15.183 7.5a1.9 1.9 0 0 1-1.89 1.908 1.9 1.9 0 0 1-1.891-1.908"})),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),p7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{clipPath:"url(#a)"},y.createElement("path",{fill:"currentColor",d:"m2.984 2.875-.01.009A9.97 9.97 0 0 0 0 10a9.96 9.96 0 0 0 2.044 6.056c.014.017.035.027.054.017s.019-.032.011-.051c-.762-2.357 3.135-8.07 5.148-10.466.007-.008.015-.018.015-.03s-.01-.023-.019-.032c-3.387-3.37-4.291-2.6-4.278-2.61m14.042-.009.01.009A9.97 9.97 0 0 1 20 10a9.96 9.96 0 0 1-2.044 6.056c-.013.017-.035.027-.054.017-.017-.01-.018-.032-.011-.051.762-2.357-3.132-8.075-5.144-10.47q-.013-.014-.015-.03c0-.014.009-.025.019-.033 3.388-3.37 4.286-2.595 4.274-2.605M10 0c2.018 0 3.678.553 5.21 1.464.018.009.024.03.016.049-.007.018-.028.022-.048.017-1.936-.419-4.879 1.254-5.157 1.421q-.009.007-.02.009a.04.04 0 0 1-.023-.009c-.738-.424-3.458-1.85-5.17-1.41-.02.004-.04 0-.05-.019a.04.04 0 0 1 .018-.049C6.306.553 7.988 0 10 0m0 8.02c.012 0 .025.01.032.016 2.993 2.275 8.114 7.9 6.55 9.49l.003-.002-.001.002h-.003A9.96 9.96 0 0 1 10 20a9.97 9.97 0 0 1-6.583-2.474c-1.56-1.59 3.56-7.215 6.55-9.49.008-.007.022-.016.034-.016"})),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),_7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M43.642 31.65c-.21 0-.399 0-.567-.022-.357-.02-.713-.043-1.07-.043q-.232 0-.252-.237l-.335-3.913-.335-3.245-.231-2-.21-1.742-.376-2.708a46 46 0 0 0-.46-2.88c-.023-.15-.023-.17.147-.193.65-.129 1.322-.194 1.994-.194h.231c.106.022.168.085.19.214l.083 1.483.589 8.018.293 3.676.19 2.108.125 1.677zM17.909 14.476h.377c.19 0 .231.065.231.257l.168 2.602.377 5.396.231 2.816.168 2.171.335 3.74c0 .171-.022.194-.19.194l-1.511-.066c-.106.023-.168-.043-.168-.15l-.064-.752a54 54 0 0 1-.167-1.957l-.335-3.396-.357-3.074-.251-2.171-.274-1.977c-.125-.882-.273-1.785-.418-2.665l-.106-.603c-.02-.108 0-.15.106-.171.588-.109 1.154-.215 1.846-.194zm21.114 8.663c.525 0 .589.023.672.537q.157.963.252 1.935l.231 2.085.44 4.427c.02.109 0 .152-.105.152l-1.637.194c-.168.02-.21 0-.231-.172l-.946-4.944-.588-3.289-.084-.45c-.02-.087.022-.152.106-.172.65-.152 1.28-.258 1.888-.3zm-23.862 0c.567-.022.63.043.692.58.148.883.252 1.742.335 2.623l.274 2.58.167 1.741.148 1.397c0 .194-.022.237-.19.257l-1.553.152c-.168.02-.21 0-.232-.172l-1.28-6.75-.335-1.913q-.033-.162.12
96-.194c.65-.152 1.258-.258 1.846-.3zm8.017 6.664v2.751c.022.129-.042.194-.168.172h-.504c-.357 0-.714.02-1.071.043-.19.022-.21.022-.231-.215l-.335-3.868-.168-1.913-.251-2.923c-.022-.237.022-.28.21-.3a12 12 0 0 1 1.762-.043l.44.065c.168.066.19.086.19.257l.064 1.16.022 1.291c.022 1.183.042 2.343.042 3.525zM47 29.931v2.645c0 .108-.042.171-.148.15h-.755c-.294 0-.589.021-.862.044-.167.022-.19 0-.21-.194l-.44-5.03-.231-2.494-.084-1.268c-.022-.172.02-.215.19-.215a8.6 8.6 0 0 1 2.097-.022c.273.022.315.108.335.386l.064 2.859.042 3.139zm-8.585-11.372c.21 0 .399.023.547.043.105.023.147.066.167.172l.273 2.988c.064.257.022.3-.231.3l-.714.043c-.148.022-.21.043-.21-.194l-.292-2.428-.084-.689c-.022-.128.02-.194.147-.214l.4-.023zm-23.78 0c.167 0 .335.023.482.043.084.023.126.066.148.172l.084.751.21 2.343c.021.172.021.194-.148.194l-.818.043c-.168.022-.19 0-.21-.172l-.189-1.72-.167-1.44c-.022-.107.022-.17.125-.17.148-.023.315-.044.483-.044m8.375 2.15v1.484c.022.237-.022.237-.21.237-.272 0-.524-.02-.775-.043-.167-.023-.19-.023-.167-.194l-.064-1.828c0-.409 0-.817-.022-1.226-.02-.194 0-.214.19-.214q.44 0 .88.065c.168 0 .168.043.168.215zm23.842.021v1.483c0 .194-.02.214-.209.214l-.798-.042c-.125-.023-.19-.086-.167-.194l-.064-3.074c0-.172.02-.194.19-.194.273 0 .524.022.775.043.315.02.273.086.273.322v1.442m-32.867 1.16c.02.258 0 .3-.252.323l-.504.129c-.168.065-.19.02-.21-.129l-.524-3.03c-.064-.195-.022-.238.168-.258l.733-.129c.168-.02.21-.02.21.151.064.366.126.732.167 1.097l.21 1.72v.128zm22.332-2.943c.315-.065.65-.108.987-.15.106-.021.148.042.168.15l.167 1.183c.084.58.148 1.16.168 1.742v.172c.02.085-.022.15-.106.171l-.672.151c-.106.023-.147-.02-.167-.128l-.547-3.203v-.086zm-14.902 2.32c0 .344-.022.666-.042.968 0 .109-.042.152-.148.172l-.65.065c-.105.02-.147-.042-.147-.15a14 14 0 0 1-.084-.946 50 50 0 0 1-.106-1.785l-.041-.43c-.022-.085.021-.128.105-.128l.862-.065c.147 0 .19.02.19.194l.063 2.105zm23.8-.343c.022.409.022.84 0 1.246.022.194-.02.237-.21.237l-.587.065c-.106.02-.168-.042-.168-.15a45 45 0 0 0-.106-1.634l-.083-1.506c-.022-.108.022-.15.105-.15l.84-.066c.147 0 .167.02.167.194.042.58.064 1.182.042 1.762zm-32.048 7.33c.335.409.399.86.251 1.354a2.7 2.7 0 0 1-.692 1.226 7.1 7.1 0 0 1-1.868 1.42A12.5 12.5 0 0 1 7.1 33.586q-1.417.29-2.834.386c-.293.02-.588.02-.881.02h-.63c-.168 0-.21-.043-.232-.214l-.147-2.086-.4-4.105-.44-3.913-.251-2.085-.273-2a89 89 0 0 0-.525-3.287 58 58 0 0 0-.48-2.643c-.022-.108 0-.194.105-.215L3.031 12.2a2.8 2.8 0 0 1 .546-.194c.126-.023.19.022.168.15 0 .344 0 .689-.02 1.054l-.022.28c-.02 1.246-.02 2.494 0 3.762.022 1.097.084 2.214.147 3.31.106 1.72.274 3.44.441 5.137 0 .172.02.172.21.151a5.7 5.7 0 0 1 1.048-.085c1.113 0 2.226.128 3.295.408.945.237 1.846.56 2.75.968.44.215.84.472 1.216.774.148.108.251.215.357.343zm23.653-.194c.44.366.588.86.46 1.44a2.8 2.8 0 0 1-.63 1.246 6.5 6.5 0 0 1-1.743 1.397 12.9 12.9 0 0 1-4.03 1.462c-.775.151-1.553.28-2.329.343-.44.043-.923.066-1.406.043h-.566c-.126.023-.19-.043-.19-.171a50 50 0 0 0-.147-1.806l-.335-3.676-.357-3.202-.44-3.611a31 31 0 0 0-.252-1.891l-.377-2.408a64 64 0 0 0-.608-3.417l-.022-.151c-.042-.108 0-.194.105-.215 1.03-.428 2.037-.902 3.066-1.31.273-.11.608-.238.588.022-.084.794-.064 1.59-.084 2.365-.022.645-.022 1.288.022 1.913v.494c0 .775.02 1.549.084 2.3.042 1.011.105 2.043.19 3.053l.189 2.171c.022.409.064.795.125 1.203 0 .237.042.215.232.194a6.6 6.6 0 0 1 1.132-.085c1.322.022 2.603.236 3.863.602.861.237 1.679.56 2.477.989.357.194.672.428.987.708zM6.47 31.845c.316-.194.862-.58 1.616-1.183.756-.623 1.216-1.031 1.406-1.246a36 36 0 0 0-3.526-1.376zm26.804-2.322c.064-.066.042-.109-.022-.152l-.504-.214a31 31 0 0 0-2.666-1.031l-.126-.043c-.042-.023-.084 0-.148.022l.505 3.72c.064 0 .106-.023.126-.044a62 62 0 0 0 2.454-1.89l.377-.366z"})),v7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M40.634 9.033a39.6 39.6 0 0 0-9.77-3.03.15.15 0 0 0-.157.074c-.422.75-.89 1.73-1.217 2.499a36.5 36.5 0 0 0-10.973 0 25 25 0 0 0-1.236-2.5.15.15 0 0 0-.157-.074 39.5 39.5 0 0 0-9.77 3.03.14.14 0 0 0-.064.056C1.067 18.385-.638 27.453.198 36.408a.17.17 0 0 0 .063.113c4.105 3.015 8.082 4.846 11.986 6.059a.155.155 0 0 0 .168-.055 28.5 28.5 0 0 0 2.452-3.989.152.152 0 0 0-.083-.211 26 26 0 0 1-3.745-1.785.154.154 0 0 1-.015-.255c.252-.189.504-.385.744-.583a.15.15 0 0 1 .155-.02c7.856 3.586 16.36 3.586 24.123 0a.15.15 0 0 1 .157.018c.24.198.492.396.745.585.087.065.082.2-.013.255a24.6 24.6 0 0 1-3.746 1.783.153.153 0 0 0-.081.213 32 32 0 0 0 2.45 3.987.15.15 0 0 0 .168.057c3.922-1.213 7.9-3.044 12.005-6.059a.15.15 0 0 0 .062-.11c1.001-10.354-1.676-19.348-7.097-27.321a.12.12 0 0 0-.062-.057M16.04 30.956c-2.365 0-4.314-2.172-4.314-4.838s1.911-4.838 4.314-4.838c2.422 0 4.352 2.19 4.314 4.838 0 2.666-1.911 4.838-4.314 4.838m15.95 0c-2.365 0-4.314-2.172-4.314-4.838s1.91-4.838 4.314-4.838c2.421 0 4.351 2.19 4.313 4.838 0 2.666-1.892 4.838-4.313 4.838"})),y7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M48 24C48 10.745 37.255 0 24 0S0 10.745 0 24c0 11.979 8.776 21.908 20.25 23.708v-16.77h-6.094V24h6.094v-5.288c0-6.014 3.583-9.337 9.065-9.337 2.625 0 5.372.469 5.372.469v5.906
9h-3.026c-2.981 0-3.911 1.85-3.911 3.75V24h6.656l-1.064 6.938H27.75v16.77C39.224 45.908 48 35.978 48 24"})),b7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M20.6 2.239V19.93h6.823v-6.023l6.903 4.188v19.083l6.752-4.183V14.129z"}),y.createElement("path",{fill:"currentColor",d:"m20.655 33.217-6.903-4.187V9.947L7 14.13v18.865l20.478 11.89v-17.69h-6.823z"})),w7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m13.285 29.498 8.252-1.892-.343-3.956-3.956 1.03v-1.548l3.784-.859-.172-3.61-3.609.688v-1.377l5.158-1.03.172 3.609 3.094-.687.343-7.394-8.77 1.03V12.3l4.814-.343-.343-3.094-4.471.515V7.486l-3.61.343-.17 6.192-8.6 1.03c.023 1.402.624 5.336.62 5.346.344-.057.93-.13 1.273-.188C6.426 27.088 4.254 38.526 4 38.434c.42.169 3.199.938 3.784 1.03 1.797-6.13 2.512-14.796 2.579-14.615 1.03-.23 2.064-.458 3.094-.687l-.172 5.33zM34.951 12.818h.515l.515 1.893h1.549l-.938-1.893h.938V9.552l-3.956.344-.172 4.815h1.72zm-.073-2.035 1.749-.114v.906h-1.75v-.795zM32.37 10.068h-2.063v1.205h.687l-.172 2.233-1.72.012v1.364h3.094z",clipRule:"evenodd"}),y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m34.433 24.512-.343-3.438-2.236.343.344-5.845-3.266.172-.515 6.535-5.502 1.202.172 3.785 4.986-1.202-.515 5.158-5.673 2.407-.343-4.643-9.973 2.407s.023.026-.171.172l-.172 5.673c-.213.754-.515 2.751-.515 2.751l3.61.515.686-5.845 2.922-1.03.687 7.222 8.424-4.643-.344 3.784 4.3.344.171-6.535 3.266-1.892-.687-3.438-2.235.859.172-4.128 2.75-.687zM39.244 24.683V15.57h-3.095L35.12 39.3l4.128.172V29.326l2.235 2.236 2.519-2.528-4.754-4.35z",clipRule:"evenodd"})),S7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M24 0c6.516 0 7.332.029 9.9.15 2.55.113 4.294.525 5.822 1.116a11.7 11.7 0 0 1 4.247 2.765c1.34 1.332 2.156 2.672 2.747 4.266.59 1.519 1.003 3.272 1.115 5.822.112 2.56.14 3.375.14 9.89s-.027 7.332-.14 9.891c-.113 2.55-.525 4.294-1.115 5.822a11.7 11.7 0 0 1-2.766 4.247 11.7 11.7 0 0 1-4.247 2.765c-1.519.591-3.272 1.003-5.822 1.116-2.56.112-3.375.14-9.89.14s-7.332-.028-9.891-.14c-2.55-.113-4.294-.525-5.822-1.116a11.7 11.7 0 0 1-4.247-2.765c-1.34-1.331-2.156-2.672-2.775-4.256C.666 38.194.253 36.44.14 33.89.028 31.33 0 30.516 0 24s.028-7.332.14-9.9c.113-2.55.525-4.294 1.116-5.822.619-1.575 1.435-2.916 2.775-4.247 1.331-1.34 2.672-2.156 4.256-2.775C9.806.666 11.56.253 14.11.14 16.67.028 17.484 0 24 0m0 4.322c-6.412 0-7.172.028-9.693.14-2.334.104-3.61.497-4.453.825-1.116.431-1.914.947-2.757 1.791-.835.834-1.36 1.64-1.79 2.756-.328.844-.722 2.11-.826 4.453-.112 2.522-.14 3.282-.14 9.694 0 6.403.028 7.163.14 9.694.104 2.334.498 3.61.826 4.453.43 1.116.946 1.913 1.79 2.757.834.834 1.64 1.359 2.757 1.79.843.328 2.11.722 4.453.825 2.521.112 3.28.14 9.693.14 6.403 0 7.162-.028 9.693-.14 2.335-.103 3.61-.497 4.454-.825 1.115-.431 1.913-.947 2.756-1.79.835-.835 1.36-1.641 1.79-2.757.329-.844.722-2.11.826-4.453.112-2.522.14-3.281.14-9.694 0-6.403-.028-7.163-.14-9.694-.104-2.334-.497-3.61-.826-4.453-.43-1.115-.946-1.912-1.79-2.756-.834-.834-1.64-1.36-2.756-1.79-.844-.329-2.11-.722-4.454-.825-2.521-.113-3.28-.14-9.693-.14m0 7.35c6.806 0 12.328 5.522 12.328 12.328S30.806 36.328 24 36.328 11.672 30.806 11.672 24 17.194 11.672 24 11.672m0 4.33A8 8 0 0 0 16.003 24 8 8 0 0 0 24 31.997 8 8 0 0 0 31.997 24 8 8 0 0 0 24 16.003m12.815-7.695a2.884 2.884 0 0 1 2.878 2.878 2.879 2.879 0 1 1-2.878-2.878"})),E7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.727 32.518c-.16.226-.243.445-.243.671 0 .529.31.688 1.163.688h1.498c1.916 0 3.104.974 3.104 2.467 0 2.006-1.607 3.156-4.426 3.156-2.21 0-3.573-.948-3.573-2.434 0-.654.31-1.3.904-1.888q-.578-.425-.578-1.217c0-.721.335-1.376 1.013-1.972C.844 31.46.476 30.74.476 29.8c0-1.813 1.447-2.98 3.673-2.98.803 0 1.515.16 2.109.462l1.414-1.41L8.7 27.684l-1.607.42c.402.495.661 1.007.661 1.695 0 1.762-1.414 2.878-3.606 2.878-.519 0-.979-.05-1.414-.16zm-.21 3.105c-.192.319-.292.638-.292.948 0 .789.627 1.2 1.773 1.2 1.431 0 2.076-.386 2.076-1.233 0-.58-.52-.915-1.289-.915zm3.138-5.875c0-.88-.468-1.25-1.514-1.25s-1.515.37-1.515 1.25c0 .882.435 1.268 1.515 1.268s1.514-.42 1.514-1.268M13.002 30.47h1.272v-.294c0-.99-.519-1.451-1.422-1.451-.687 0-1.573.218-2.293.595l-.61-1.
961c.794-.597 2.016-1.008 3.103-1.008 2.142 0 3.305 1.217 3.305 3.542v5.715h-1.573l-.226-.756c-.903.705-1.732 1.007-2.476 1.007-1.64 0-2.56-1.057-2.56-2.828 0-1.896 1.221-2.895 3.489-2.895m1.271 3.18v-1.644h-1.029c-1.146 0-1.732.444-1.732 1.334 0 .671.318 1.007.98 1.007.61 0 1.388-.327 1.773-.688M18.766 26.962h1.615l.326.873c.703-.713 1.673-1.133 2.61-1.133 1.046 0 1.782.37 2.218 1.133a3.79 3.79 0 0 1 2.644-1.133c1.765 0 2.66 1.116 2.66 3.332v5.757h-2.317v-5.656c0-.982-.268-1.41-1.28-1.41-.419 0-.92.109-1.28.243v6.823h-2.318v-5.656c0-.982-.268-1.41-1.28-1.41-.419 0-.904.109-1.264.243v6.823h-2.334zM40.103 31.175c0 .394-.05.873-.092 1.066h-5.204c.109 1.452.845 2.04 2.334 2.04.594 0 1.665-.244 2.226-.513l.51 1.645c-.72.411-2.066.772-3.012.772-2.928 0-4.418-1.628-4.418-4.741 0-3.114 1.473-4.759 3.983-4.759 2.368 0 3.665 1.578 3.665 4.473m-5.313-.562h3.054c0-1.527-.419-2.123-1.506-2.123q-1.507-.002-1.557 2.123M45.356 30.621c1.757.646 2.393 1.418 2.393 2.72 0 1.829-1.12 2.86-3.313 2.86-.979 0-2.15-.243-3.13-.637l.436-1.83c.811.26 2.066.596 2.677.596.762 0 1.155-.26 1.155-.788 0-.462-.268-.722-1.615-1.25-1.807-.672-2.393-1.285-2.393-2.846 0-1.56 1.289-2.736 3.154-2.736.996 0 1.992.244 2.929.705l-.62 1.73c-.56-.311-1.489-.563-2.116-.563-.745 0-1.18.294-1.18.84 0 .511.402.754 1.632 1.2M4.71 21.482H3.272V8.827l1.44-.327zm3.841-9.18 1.121.847-2.77 3.634 3.205 4.028-1.112.898-3.782-4.85 3.33-4.566zM11.32 18.797c0-.89.294-1.57.871-2.031s1.422-.696 2.527-.696h1.665v-.563q0-2.04-1.757-2.04-.565-.002-1.18.16c-.41.11-.795.244-1.138.403l-.426-1.04a5.8 5.8 0 0 1 1.388-.571 5.5 5.5 0 0 1 1.448-.202q3.037 0 3.037 3.324v5.614h-1.062l-.176-.965a5.1 5.1 0 0 1-1.372.822 3.7 3.7 0 0 1-1.39.286c-.76 0-1.363-.218-1.79-.663q-.652-.668-.652-1.838m2.702 1.317c.2 0 .402-.025.62-.084.208-.05.426-.125.635-.21.21-.083.41-.192.603-.31
9a4 4 0 0 0 .502-.394V17.06h-1.498q-1.14 0-1.665.402c-.352.27-.519.689-.519 1.268 0 .923.444 1.376 1.33 1.376M22.013 21.482h-1.439V8.827l1.44-.327zm3.84-9.18 1.122.847-2.761 3.634 3.205 4.028-1.113.898-3.782-4.85 3.33-4.566zM28.631 18.797c0-.89.293-1.57.87-2.031q.867-.694 2.536-.696h1.657v-.563q0-2.04-1.758-2.04-.565-.002-1.18.16c-.41.11-.794.244-1.137.403l-.427-1.04a5.8 5.8 0 0 1 1.389-.571 5.5 5.5 0 0 1 1.448-.202q3.036 0 3.037 3.324v5.614h-1.063l-.176-.965a5.1 5.1 0 0 1-1.372.822 3.7 3.7 0 0 1-1.389.286c-.761 0-1.364-.218-1.79-.663q-.653-.668-.653-1.838m2.703 1.317c.2 0 .401-.025.619-.084.209-.05.426-.125.636-.21.209-.083.41-.192.602-.31.184-.126.352-.252.502-.394V17.06h-1.498c-.761 0-1.313.134-1.665.402-.351.27-.518.689-.518 1.268 0 .923.443 1.376 1.33 1.376M40.906 12.218q1.784 0 2.803 1.183c.677.789 1.02 1.922 1.02 3.39s-.334 2.568-1.012 3.34c-.67.78-1.615 1.167-2.811 1.167-1.197 0-2.125-.386-2.803-1.167-.678-.78-1.021-1.896-1.021-3.34s.343-2.601 1.03-3.39q1.026-1.184 2.794-1.184m0 1.183c-.753 0-1.33.285-1.732.864-.402.58-.603 1.418-.603 2.526s.201 1.93.603 2.484c.401.563.979.84 1.732.84s1.347-.277 1.749-.84c.401-.562.602-1.384.602-2.484s-.2-1.955-.602-2.526c-.402-.579-.988-.864-1.75-.864",clipRule:"evenodd"})),x7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M14.165 42.414c-.603-.027-2.118-.306-3.653-.73a13.5 13.5 0 0 1-2.563-.962 1.61 1.61 0 0 1-.862-1.266c.024 0-.195-1.54-.195-4.534a31 31 0 0 1 .172-3.878c.057-.41.252-.736.77-.713.97.024 1.937.127 2.89.317 1.162.196 2.306.48 3.424.85.512.16.886.595.963 1.122q.245 2.08.226 4.174c0 2.042-.142 4.051-.205 4.697-.061.613-.364.956-.967.926zm8.977-6.996c0-.363-.155-.713-.424-.96l-5.135-4.983a4 4 0 0 0-2.145-1.17s-1.936-.472-4.822-.952c-2.886-.476-3.636-.423-3.636-.423-2.556 0-2.65 2.698-2.684 2.971-.064.65-.205 2.38-.205 4.781a52 52 0 0 0 .269 6.003c.222 1.839 1.65 2.692 2.3 3.018 1.222.523 2.475.983 3.744 1.376 1.212.373 3.158.916 4.07 1.056.3.047 2.065.347 2.89-.746l5.458-7.003a1.3 1.3 0 0 0 .317-.952v-2.016zM35.07 25.211a15 15 0 0 0-2.33-.05l-12.274 1.136c-.498.09-.953.35-1.276.736-.205.257-.35.553-.434.866.161.16.229.223.316.307l4.849 4.9c.542.527.855 1.04.855 1.806v2.755c0 .49-.044.903-.316 1.273l-2.61 3.484 2.613 1.006c.993.323 1.916.313 2.95.16l11.26-2.558s2.03-.537 2.03-2.449v-6.786c0-.13-.078-.243-.206-.216l-7.188 1.409a.535.535 0 0 0-.435.536v3.281a.36.36 0 0 0 .4.313q.019.002.038-.006l2.253-.52c.117-.033.205.053.205.203v1.063a.485.485 0 0 1-.424.437l-2.56.536s-1.71.433-1.71-1.38V33.26c0-1.84 1.34-2.016 1.34-2.016l7.916-1.512a.45.45 0 0 0 .37-.41v-1.71c0-1.885-1.858-2.001-1.858-2.001l-3.778-.393zM20.357 7.405c2.947.123 5.176 2.891 5.024 6.256-.151 3.365-2.72 6.033-5.556 5.92-2.942-.123-5.077-2.918-4.922-6.283.154-3.365 2.616-6.01 5.458-5.893zm11.86 7.868c.12-2.295 1.774-4.107 3.727-4.034 1.859.083 3.34 2.032 3.24 4.251-.122 2.302-1.799 4.044-3.748 3.984-1.86-.096-3.317-1.972-3.22-4.2m9.869.3c0-4.527-3.408-8.165-7.6-8.165-2.444 0-4.667 1.283-6.101 3.181-1.105-4.833-5.179-8.395-10.061-8.381-5.826.016-10.51 4.997-10.49 11.14.021 6.206 4.728 11.247 10.49 11.23.333 0 16.206-1.06 16.162-1.06 4.576-.393 7.623-3.517 7.6-7.941z"})),C7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("path",{fill:"currentColor",d:"M8.446.418h4.72c.067 0 .13.025.18.071.046.046.07.113.07.18-.066 3.969-3.953 4.606-3.995 4.61H4.396a.243.243 0 0 1-.246-.268C4.483 1.034 8.404.426 8.446.418m8.608 12.747h-1.966c-.38 2.108-1.846 6.42-7.475 6.42C.154 19.585 0 12.029 0 12.029V7.491c0-.138.113-.247.246-.247h16.808A2.957 2.957 0 0 1 20 10.207a2.957 2.957 0 0 1-2.946 2.962zm-.07-4.417c-.792 0-1.43.646-1.43 1.438s.642 1.437 1.43 1.437 1.428-.645 1.428-1.437-.641-1.438-1.429-1.438"})),T7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M48 24.76c0-2.9-2.352-5.251-5.252-5.251a5.23 5.23 0 0 0-3.641 1.475c-3.59-2.592-8.539-4.266-14.047-4.455l2.394-11.257 7.818 1.66a3.744 3.744 0 0 0 3.734 3.574c2.01 0 3.75-1.681 3.75-3.75A3.76 3.76 0 0 0 39.003 3c-1.476 0-2.736.86-3.351 2.095L26.922 3.24a.92.92 0 0 0-.703.13.93.93 0 0 0-.405.59l-2.672 12.56c-5.593.156-10.616 1.83-14.254 4.451a5.22 5.22 0 0 0-3.633-1.462 5.25 5.25 0 0 0-5.251 5.25 5.25 5.25 0 0 0 3.102 4.789c-.08.522-.127 1.053-.127 1.589 0 8.079 9.407 14.633 21.01 14.633S45 39.22 45 31.137c0-.536-.042-1.058
9-.122-1.58A5.25 5.25 0 0 0 48 24.755zm-36.01 3.755a3.757 3.757 0 0 1 3.755-3.75 3.754 3.754 0 0 1 3.751 3.75c0 2.07-1.681 3.751-3.75 3.751a3.757 3.757 0 0 1-3.756-3.75m20.921 9.913c-2.562 2.558-7.468 2.756-8.91 2.756-1.44 0-6.35-.198-8.909-2.756a.972.972 0 0 1 1.374-1.374c1.614 1.614 5.066 2.187 7.532 2.187 2.465 0 5.921-.573 7.535-2.187a.972.972 0 0 1 1.374 1.374zm-.661-6.162a3.754 3.754 0 0 1-3.751-3.75 3.754 3.754 0 0 1 3.75-3.752c2.07 0 3.752 1.682 3.752 3.751s-1.682 3.751-3.751 3.751"})),R7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:49,fill:"none",viewBox:"0 0 48 49",...t},y.createElement("path",{fill:"currentColor",d:"M45 21.842c0-2.644-2.156-4.788-4.814-4.788a4.8 4.8 0 0 0-3.338 1.345c-3.292-2.364-7.828-3.89-12.878-4.063l2.194-10.265 7.168 1.515a3.424 3.424 0 0 0 3.423 3.259c1.843 0 3.438-1.534 3.438-3.42C40.194 3.536 38.653 2 36.752 2a3.43 3.43 0 0 0-3.072 1.91l-8.001-1.69a.85.85 0 0 0-.646.118.84.84 0 0 0-.37.538l-2.45 11.453c-5.127.142-9.733 1.668-13.067 4.058a4.8 4.8 0 0 0-3.33-1.334C3.154 17.054 1 19.199 1 21.843a4.79 4.79 0 0 0 2.844 4.366c-.074.476-.116.96-.116 1.449C3.728 35.024 12.352 41 22.988 41S42.25 35.028 42.25 27.657c0-.488-.039-.965-.112-1.442A4.78 4.78 0 0 0 45 21.839zm-33.012 3.424c0-1.887 1.546-3.42 3.443-3.42s3.439 1.533 3.439 3.42-1.542 3.42-3.439 3.42-3.443-1.533-3.443-3.42m19.18 9.04c-2.35 2.332-6.847 2.513-8.168 2.513s-5.823-.18-8.168-2.514a.883.883 0 0 1 0-1.253.894.894 0 0 1 1.26 0c1.48 1.472 4.644 1.995 6.904 1.995s5.429-.523 6.909-1.995a.894.894 0 0 1 1.259 0 .883.883 0 0 1 0 1.253zm-.607-5.62c-1.897 0-3.438-1.533-3.438-3.42s1.541-3.42 3.438-3.42S34 23.379 34 25.266s-1.542 3.42-3.439 3.42"}),y.createElement("circle",{cx:40,cy:41,r:6.5,stroke:"currentColor"}),y.createElement("path",{fill:"currentColor",d:"M44.695 41.135c-.472-1.815-.975-2.781-1.974-3.054-1-.273-1.318.246-2.72.246s-1.716-.522-2.718-.247c-1.001.275-1.501 1.24-1.976 3.055s-.384 2.515.173 2.76c.558.244 1.187.074 1.787-.618.488-.543.732-.577 2.734-.577s2.209.014 2.733.577c.6.692 1.23.861 1.787.618.558-.244.645-.942.174-2.76m-7.14.304a1 1 0 0 1-.34-.066.9.9 0 0 1-.286-.178.8.8 0 0 1-.188-.262.7.7 0 0 1-.062-.307.76.76 0 0 1 .25-.568.95.95 0 0 1 .627-.245.96.96 0 0 1 .627.246.77.77 0 0 1 .258.567.77.77 0 0 1-.258.568.96.96 0 0 1-.627.245m3.563-.413a.5.5 0 0 1-.25-.062.4.4 0 0 1-.17-.176.36.36 0 0 1-.03-.23.4.4 0 0 1 .118-.207.46.46 0 0 1 .228-.112.5.5 0 0 1 .259.02c.082.03.152.081.202.147a.37.37 0 0 1-.049.501.482.482 0 0 1-.309.119m.941.873a.5.5 0 0 1-.251-.062.4.4 0 0 1-.17-.176.36.36 0 0 1-.03-.231.4.4 0 0 1 .119-.207.46.46 0 0 1 .227-.113.5.5 0 0 1 .26.02.44.44 0 0 1 .202.148.37.37 0 0 1-.049.5.47.47 0 0 1-.308.12m0-1.745a.5.5 0 0 1-.251-.062.4.4 0 0 1-.17-.176.36.36 0 0 1-.03-.232.4.4 0 0 1 .119-.207.46.46 0 0 1 .227-.112.5.5 0 0 1 .26.02.44.44 0 0 1 .202.147.37.37 0 0 1-.048.503.484.484 0 0 1-.309.12zm.944.872a.5.5 0 0 1-.251-.06.4.4 0 0 1-.17-.177.36.36 0 0 1-.031-.23.4.4 0 0 1 .118-.208.46.46 0 0 1 .228-.112.5.5 0 0 1 .259.02.44.44 0 0 1 .202.147.37.37 0 0 1-.047.501.482.482 0 0 1-.308.12"})),M7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M36.044 27.607h-4.898l3.596-15.35c.438-1.862-.383-3.725-2.242-4.162-1.862-.437-3.061.721-3.499 2.58l-1.288 5.502h-4.315l.918-3.923c.437-1.862.043-3.722-1.816-4.159-1.862-.437-3.488.718-3.925 2.577l-1.289 5.502H9.884C8.291 16.174 7.5 17.408 7.5 19s.791 2.5 2.384 2.5H16l-1.39 6.104H9.885c-1.593 0-2.384.803-2.384 2.396s.907 2.5 2.5 2.5h3.5l-1.03 4.246c-.436 1.862.171 3.317 2.03 3.754 1.862.437 3.275-.313 3.712-2.172L19.5 32.5h4l-.603 4.246c-.437 1.862.278 3.317 2.137 3.754 1.862.437 3.167-.313 3.604-2.172L30 32.5h6c1.593 0 2.5-.907 2.5-2.5s-.861-2.396-2.454-2.396zm-15.324 0 1.326-5.661h4.314l-1.326 5.661z"}),y.createElement("path",{fill:"currentColor",d:"M38.441 22.163a3.101 3.101 0 1 0 0-6.203 3.101 3.101 0 0 0 0 6.203"})),k7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M24 0C10.75 0 0 10.75 0 24s10.75 24 24 24 24-10.75 24-24S37.25 0 24 0m11.12 16.32c-.36 3.79-1.92 13-2.72 17.25-.34 1.8-1 2.4-1.64 2.46-1.39.13-2.45-.92-3.8-1.81-2.11-1.38-3.31-2.25-5.36-3.6-2.37-1.56-.83-2.42.52-3.82.35-.37 6.49-5.95 6.61-6.46.01-.06.
903-.3-.11-.42s-.35-.08-.5-.05c-.21.05-3.59 2.28-10.12 6.69-.96.66-1.83.98-2.6.96-.86-.02-2.51-.48-3.73-.88-1.5-.49-2.7-.75-2.59-1.58.05-.43.65-.87 1.79-1.33 7-3.05 11.66-5.06 14-6.03 6.67-2.77 8.05-3.25 8.95-3.27.2 0 .64.05.93.28.24.2.31.46.34.65s.07.61.04.94z"})),D7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M38.488 9.62A11.48 11.48 0 0 1 33.286 0h-8.22v33.07c-.15 3.7-3.19 6.68-6.917 6.68a6.84 6.84 0 0 1-3.209-.8 6.94 6.94 0 0 1-3.707-6.14c0-3.83 3.1-6.94 6.916-6.94.708 0 1.395.12 2.043.32v-8.42c-.668-.09-1.345-.15-2.043-.15-8.36 0-15.147 6.82-15.147 15.19 0 5.14 2.561 9.69 6.457 12.44A15.03 15.03 0 0 0 18.13 48c8.351 0 15.138-6.81 15.138-15.19V16.04a19.54 19.54 0 0 0 11.44 3.69v-8.25a11.4 11.4 0 0 1-6.229-1.86z"})),A7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M12.001 0 3.43 8.571V39.43h10.285V48l8.572-8.571h6.857L44.573 24V0zm29.143 22.286-6.857 6.857H27.43l-6 6v-6h-7.715V3.429h27.429z"}),y.createElement("path",{fill:"currentColor",d:"M36 9.429h-3.428v10.285h3.429zM26.573 9.429h-3.428v10.285h3.428z"})),O7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.37 3.37C0 6.75 0 12.18 0 23.04v1.92c0 10.86 0 16.29 3.37 19.67C6.74 48 12.17 48 23.04 48h1.92c10.86 0 16.29 0 19.67-3.37C48 41.26 48 35.83 48 24.96v-1.92c0-10.86 0-16.29-3.37-19.67C41.25 0 35.82 0 24.96 0h-1.92C12.18 0 6.75 0 3.37 3.37M8.1 14.6c.26 12.48 6.5 19.98 17.44 19.98h.62v-7.14c4.02.4 7.06 3.34 8.28 7.14h5.68c-1.56-5.68-5.66-8.82-8.22-10.02 2.56-1.48 6.16-5.08 7.02-9.96h-5.16c-1.12 3.96-4.44 7.56-7.6 7.9v-7.9H21v13.84c-3.2-.8-7.24-4.68-7.42-13.84z",clipRule:"evenodd"})),N7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M7.168 17.83c6.048-6.08 13.094-8.844 15.754-6.175 1.166 1.166 1.279 3.196.532 5.631-.4 1.222 1.139.545 1.139.545 4.89-2.059 9.156-2.171 10.705.056.914 1.1.756 2.764-.019 4.71-.31.781.008.98.543 1.156l.26-.029c2.744.865 5.814 2.943 5.815 6.6C41.897 36.366 33.188 44 20.14 44 10.182 44 0 39.168 0 31.179c0-4.08 2.623-8.911 7.168-13.348m26.45 12.484c-.504-5.235-7.374-8.864-15.316-8.065S4.34 27.936 4.844 33.18c.504 5.235 7.363 8.854 15.315 8.065 7.942-.79 13.963-5.687 13.46-10.932m-22.483.198c1.582-3.242 5.651-5.117 9.34-4.334l.366.075c3.91 1.024 5.907 4.738 4.311 8.338-1.624 3.694-6.29 5.649-10.247 4.37-3.826-1.24-5.431-5.037-3.77-8.45m5.917 1.268c-1.232-.508-2.8.01-3.575 1.231-.766 1.222-.504 2.642.82 3.206 1.243.537 2.773.092 3.598-.98l.052-.252c.747-1.24.346-2.697-.895-3.205m3.154-1.24c-.476-.188-1.092.027-1.344.507s-.12.996.365 1.203c.454.185 1.024-.01 1.324-.422l.028-.085c.28-.489.103-1.015-.373-1.203M32.628 5.282c4.177-.883 8.67.342 11.797 3.607l.28.35c3.154 3.506 4.012 8.29 2.66 12.492a1.84 1.84 0 0 1-2.315 1.185c-.457-.16-.84-.47-1.064-.911a1.88 1.88 0 0 1-.112-1.42 9.12 9.12 0 0 0-1.876-8.893 8.97 8.97 0 0 0-8.596-2.8 1.853 1.853 0 0 1-2.183-1.42c-.224-.987.42-1.974 1.409-2.19m1.353 6.43a6.17 6.17 0 0 1 5.602 1.618l.203.374a6.25 6.25 0 0 1 1.297 6.092c-.262.751-1.24 1.212-1.987.94-.747-.264-1.223-1.063-.934-2.003a3.07 3.07 0 0 0-.635-2.98 3.03 3.03 0 0 0-2.883-.94 1.6 1.6 0 0 1-1.54-.47c-.392-.413-.616-1.033-.336-1.578.28-.536.654-.96 1.213-1.053"})),U7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",...t},y.createElement("g",{clipPath:"url(#a)"},y.createElement("mask",{id:"b",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},y.createElement("path",{fill:"currentColor",d:"M20 0H0v20h20z"})),y.createElement("g",{mask:"url(#b)"},y.createElement("path",{fill:"currentColor",d:"M11.66 8.478 18.953 0h-1.728l-6.333 7.361L5.834 0H0l7.649 11.132L0 20.022h1.728l6.688-7.773 5.342 7.773h5.834zM9.292 11.23l-.775-1.109-6.166-8.82h2.655L9.982 8.42l.775 1.109 6.469 9.252H14.57z"}))),y.createElement("defs",null,y.createElement("clipPath",{id:"a"},y.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))),z7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("g",{fill:"currentColor"},y.createElement("path",{d:"M8.977 28.815a.4.4 0 0 0 .113-.013.4.4 0 0 1-.111.011c-.448.026-.898.011-1.348.015v.002c.45 0 .9.011 1.348-.015zM11.962 17.147v-.004q-1.277-.008-2.556.
9002h2.556zM9.387 28.427q0 .016-.002.034.002-.011.004-.023v-.011zM16.95 26.83a4.2 4.2 0 0 1-.248-1.01c.034.347.11.69.234 1.019-.436.997-.875 1.993-1.336 2.983q.001.003.005.007c.463-.992.906-1.993 1.345-3M21.702 28.403q.256 0 .51.009c-.39.874-.79 1.744-1.19 2.612h.005q.603-1.301 1.19-2.612-.257-.011-.515-.01M23.265 25.236c-.58 0-1.164.04-1.734-.073.617-1.55 1.348-3.047 2.002-4.577-.8-.094-1.706.167-2.437-.145.356-1.2 1.005-2.3 1.462-3.468-.881-.004-1.759-.01-2.636.003.877-.013 1.755 0 2.625 0-.458 1.168-1.106 2.269-1.463 3.469.735.311 1.641.05 2.438.144-.654 1.53-1.386 3.029-2.003 4.577.563.115 1.155.073 1.735.073q-.48 1.091-.968 2.175h.01c.324-.725.65-1.449.969-2.178M24.297 20.574h.005q-.01-1.308-.005-2.61zM20.161 28.421c-.684 0-1.365-.037-2.032-.21.667.17 1.348.208 2.032.208zM30.239 17.957c-1.977.003-3.958 0-5.942.007h5.942zM31.109 28.418v-.008c-.833 0-1.667 0-2.5-.01v.008c.833.01 1.667 0 2.5.01M18.705 31.046c.6.002 1.204-.037 1.804-.035-.6 0-1.204.037-1.804.035M43.415 18.817c-.245-.806-1.335-1.157-1.991-.613.656-.544 1.745-.187 1.991.613M40.904 20.2q-.008-.212-.011-.432c.002.144.009.289.01.431M6.874 20.57c-.606.006-1.21-.003-1.811.002.603 0 1.207.006 1.81-.001M9.367 28.541a277424169469.08 277424169469.08 0 0 0 0 0M7.63 20.556c-.052 1.462-.215 2.923-.307 4.383-.109 1.72-.499 3.49-1.549 4.894-.469-.99-.908-1.991-1.346-2.998v.002c.438 1.003.877 2.006 1.346 3 1.05-1.404 1.44-3.174 1.549-4.894.092-1.462.255-2.923.307-4.387M33.547 22.85c-.857.017-1.715 0-2.572.014v.015c.856 0 1.715 0 2.572-.013zM37.913 22.87c0-.687.045-1.375-.026-2.063.071.684.019 1.372.026 2.062M33.546 17.962h-1.704v.015h1.704zM40.479 28.778a.42.42 0 0 0 .247-.1.4.4 0 0 1-.23.085c-.722.052-1.446 0-2.17.024l.006.015c.716-.019 1.432.028 2.147-.024M25.931 28.408v-7.826h-.006V28.4c-.778.013-1.558 0-2.336.009q-.603 1.3-1.189 2.606h.01q.584-1.302 1.185-2.599c.778 0 1.558 0 2.336-.009"}),y.createElement("path",{d:"M43.51 27.173c-.055-1.097.213-2.337-.468-3.297-.579-.813-1.623-1.035-2.565-1.052-.056-1.312.257-2.848-.708-3.915-.9-1.008-2.35-1.012-3.595-.963v-.975c-.88.01-1.747.011-2.611.015h2.594v.975c1.246-.049 2.695-.045 3.595.963.965 1.067.652 2.607.709 3.916.937.016 1.985.238 2.565 1.051.68.96.412 2.2.466 3.297-.035 1.044.224 2.306-.639 3.105l.017-.015c.863-.8.604-2.063.64-3.105M36.15 31.018h.017v-5.53h-.017z"}),y.createElement("path",{d:"M41.563 0H6.27C2.964.094.08 2.987 0 6.293v35.265A6.59 6.59 0 0 0 6.281 48h35.28A6.58 6.58 0 0 0 48 41.572V6.277C47.912 2.92 44.925 0 41.563 0m-.139 18.204c.657-.543 1.746-.193 1.992.613.058.137.086.282.086.426 0 .191-.047.38-.133.555-.191.39-.568.696-1.007.735h-.017c-.48.041-.962.017-1.442.017q.004-.074.004-.15v-.008q0-.094-.002-.193-.008-.211-.011-.43v-.16c0-.538.078-1.062.534-1.403zM5.774 29.837a116 116 0 0 1-1.347-3v-.002c.135-.366.22-.748.247-1.136.119-1.697.252-3.415.388-5.125.602-.005 1.206.004 1.812-.002q.378-.005.755-.018v.004c-.052 1.464-.215 2.925-.307 4.387-.109 1.72-.499 3.49-1.549 4.894zm6.205-1.333c.014.774-.187 1.635-.845 2.118-.724.563-1.688.375-2.539.407a51 51 0 0 1-.33-.729q-.163-.364-.323-.733c-.104-.246-.211-.49-.313-.737v-.002c.45-.004.9.011 1.348-.015a.4.4 0 0 0 .184-.037h.002a.3.3 0 0 0 .062-.038q.003-.002.006-.005a.4.4 0 0 0 .048-.046q.004-.004.008-.009l.037-.049.01-.015.024-.048.01-.025a.2.2 0 0 0 .01-.045q.005-.018.006-.035 0-.018.002-.034a.4.4 0 0 0-.01-.1v-.016c.02-3.724-.001-7.446.03-11.166q1.279-.01 2.557-.002v.004c.024 3.784.014 7.57.016 11.355zm3.614 1.335c-.972-1.296-1.382-2.916-1.52-4.5-.136-1.585-.241-3.18-.367-4.766H16.3c.132 1.704.267 3.408.39 5.113l.014.135c.039.345.12.684.247 1.008a127 127 0 0 1-1.344 3l-.006-.007zm5.433 1.185h-.005q-.255-.014-.512-.013c-.6 0-1.204.037-1.804.035-.602-.002-1.2-.047-1.781-.22q.594-1.313 1.2-2.615h.005c.668.17 1.348.208 2.033.21.512 0 1.027-.018 1.54-.018q.258 0 .515.009c-.39.874-.79 1.744-1.19 2.612m1.258-3.606c-.993-.017-1.989.041-2.98-.026-.548 0-1.049-.563-.848-1.11.361-1.11.926-2.14 1.355-3.223-.619-.042-1.36.135-1.863-.323-.394-.392-.166-.965.02-1.399q.995-2.175 1.954-4.36c.877-.014 1.755-.008 2.636-.005-.457 1.169-1.106 2.27-1.462 3.47.73.31 1.637.05 2.437.144-.654 1.53-1.386 3.028-2.002 4.577.57.114 1.155.073 1.734.073-.319.729-.645 1.453-.97 2.178h-.009v.004zm8.83 3.606h-8.708l.004-.008h-.01c.393-.87.786-1.74 1.19-2.606.777-.01 1.558.004 2.336-.01v-7.818h-1.624v-.008h-.006v-2.61c1.984-.007 3.966-.003 5.942-.007v.007h.006v2.612h-1.635v7.825c.832.009 1.667.009 2.5.009v.008h.005zm11.756-.747a2 2 0 0 1-.336.291l-.03.023c-.903.613-2.156.39-3.204.451-.362-.733-.671-1.488-.99-2.24h.023l-.006-.015c.724-.024 1.447.028 2.17-.024a.43.43 0 0 0 .23-.085c.1-.082.16-.21.15-.349q.051-1.039 0-2.077c.013-.49-.495-.8-.938-.763-1.258-.019-2.514 0-3.772 0v5.53h-.017v.014h-2.597v-5.548h-2.595v-2.606h.017v-.015c.857-.013 1.716.003 2.572-.013q.026-1.117 0-2.25a66 66 0 0 0-1.723-.012v-2.611h.01
97v-.016h1.705l.017-.976c.864-.004 1.73-.006 2.611-.015v.975c1.245-.05 2.695-.045 3.595.963.965 1.067.652 2.603.709 3.915.94.017 1.985.238 2.564 1.052.681.96.413 2.2.467 3.296-.035 1.043.224 2.307-.639 3.105"}),y.createElement("path",{d:"M37.886 20.807c-.242-.255-.585-.268-.939-.248l-.236.02-.235.014a2 2 0 0 1-.225 0 1 1 0 0 1-.106-.011q0 1.144.016 2.287h1.752c-.008-.69.045-1.378-.027-2.062M11.98 28.502c-.002-3.784.007-7.57-.017-11.355.017 3.784.017 7.57.017 11.355M11.134 30.62c-.723.555-1.69.38-2.538.407v.002c.85-.032 1.815.156 2.538-.407.659-.483.86-1.344.846-2.118.013.772-.195 1.633-.846 2.116M9.379 28.498l.006-.036q-.001.02-.006.036M9.377 28.326q.01.05.01.1c0-.033 0-.067-.01-.1M9.29 28.68l-.007.01zM9.36 28.566l.009-.025zM9.377 28.31c.019-3.721.006-7.445.03-11.165-.032 3.72-.011 7.442-.03 11.166M7.629 28.83c.101.248.208.491.313.737-.105-.244-.212-.488-.311-.737zM9.227 28.738l.005-.006q-.003.002-.005.006M9.326 28.63l.01-.016q-.004.008-.01.015M19.314 27.388c-.548-.005-1.049-.562-.848-1.11.362-1.11.926-2.14 1.356-3.223-.619-.041-1.36.135-1.864-.322-.394-.392-.167-.966.02-1.4q.99-2.168 1.943-4.357-.959 2.186-1.954 4.362c-.185.433-.414 1.006-.02 1.398.504.458 1.245.282 1.864.323-.43 1.084-.994 2.113-1.356 3.223-.2.547.3 1.11.847 1.11.992.067 1.988.01 2.982.026v-.004c-.99-.026-1.984.042-2.972-.026zM39.317 31.027c-.36-.735-.667-1.48-.984-2.225h-.023c.32.752.629 1.507.99 2.24 1.049-.062 2.301.163 3.205-.452-.902.604-2.147.383-3.188.437M40.893 28.314q.051-1.039 0-2.077c.015-.49-.493-.8-.938-.763-1.263-.02-2.525 0-3.789 0v.015c1.258 0 2.514-.02 3.773 0 .442-.038.95.273.937.763q.051 1.039 0 2.077a.43.43 0 0 1-.15.349.42.42 0 0 0 .167-.364M33.562 16.986l-.017.976h.017zM42.681 30.458a2 2 0 0 1-.146.11q.075-.053.146-.11M33.57 25.47c-.864 0-1.73.01-2.594 0q-.016-1.295 0-2.591h-.017v2.606h2.595v5.548h2.597v-.015h-2.58zM33.564 20.586c-.574-.012-1.147-.012-1.723-.012v-2.597h-.017v2.612c.576-.005 1.15.002 1.723.012q.026 1.132 0 2.25h.017q.023-1.14 0-2.265"}),y.createElement("path",{d:"M36.71 20.578q.12-.009.237-.019-.118.009-.236.02M28.604 20.569V28.4h.005v-7.825h1.635v-2.612h-.006v2.605zM31.108 31.016c-2.891 0-5.8.012-8.698 0l-.004.008h8.708v-2.607h-.006zM24.303 20.575v.007h1.624v-.008zM41.425 18.204c-.456.342-.532.867-.534 1.403.002-.536.078-1.06.534-1.403M40.906 20.393q0-.096-.002-.194zM40.906 20.4q.001.076-.004.15.004-.074.004-.15M7.629 20.552q-.379.014-.756.018.377 0 .756-.015zM5.063 20.572c-.137 1.71-.27 3.428-.388 5.125v.002c.124-1.71.257-3.418.388-5.128zM13.713 20.573h-.006c.126 1.586.23 3.181.367 4.766s.548 3.204 1.52 4.5q.003-.008.007-.017c-.968-1.288-1.376-2.906-1.513-4.493q-.188-2.377-.375-4.756"}),y.createElement("path",{d:"M16.297 20.574c.13 1.705.266 3.41.39 5.113q.006.068.015.134c-.004-.045-.012-.09-.014-.135-.123-1.705-.258-3.41-.39-5.114h-2.587q1.29-.005 2.586.002M16.924 30.827c.581.172 1.18.217 1.781.22-.6-.003-1.196-.05-1.775-.22zM18.124 28.211q-.605 1.302-1.2 2.616.593-1.311 1.206-2.614h-.006z"}))),L7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M39.027 17.416a8 8 0 0 0-2.898-2.95L18.922 4.323c-3.8-2.24-8.663-.913-10.856 2.97-2.194 3.88-.894 8.844 2.91 11.084l5.657 3.337.017-.018 2.31 1.389.45.264v.005l16.205 9.394L17.38 25.32l-6.4 3.773c-3.8 2.24-5.103 7.204-2.91 11.083 2.194 3.88 7.056 5.21 10.856 2.971l17.208-10.143a8 8 0 0 0 2.694-2.61A11.14 11.14 0 0 0 41 23.764c0-2.491-.73-4.546-1.969-6.34z"})),I7=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...t},y.createElement("path",{fill:"currentColor",d:"M47.522 14.4s-.469-3.31-1.913-4.762c-1.828-1.913-3.872-1.922-4.809-2.035-6.712-.487-16.79-.487-16.79-.487h-.02s-10.077 0-16.79.487c-.937.113-2.981.122-4.81 2.035C.948 11.09.489 14.4.489 14.4S0 18.29 0 22.172v3.637c0 3.882.478 7.772.478 7.772s.469 3.31 1.903 4.763c1.828 1.912 4.228 1.847 5.297 2.053 3.844.366 16.322.478 16.322.478s10.087-.019 16.8-.497c.938-.112 2.981-.122 4.81-2.034 1.443-1.453 1.912-4.763 1.912-4.763S48 29.701 48 25.81v-3.637c0-3.881-.478-7.772-.478-7.772M19.04 30.225v-13.49l12.965 6.768z"})),j7=Object.assign({"/src/assets/images/svg-icon/common/arrow_bottom.svg":Iy,"/src/assets/images/svg-icon/common/avatar.svg":jy,"/src/assets/images/svg-icon/common/close.svg":By,"/src/assets/images/svg-icon/common/external_link.svg":Py,"/src/assets/images/svg-icon/common/fast_foward.svg":Hy,"/src/assets/images/svg-icon/common/globe.svg":Gy,"/src/assets/images/svg-icon/common/hamburger_menu.svg":qy,"/src/assets/images/svg-icon/common/info.svg":Vy,"/src/assets/images/svg-icon/common/line_arrow.svg":Yy,"/src/assets/images/svg-icon/common/link.svg":$y,"/src/assets/images/svg-icon/common/minus.svg":Ky,"/src/assets/images/svg-icon/common/more_info.svg":Fy,"/src/assets/images/svg-icon/common/move_to_list.svg":Xy,"/src/assets/images/svg-icon/common/pause.svg":Qy,"/src/assets/images/svg-icon/common/play.svg":Zy,"/src/assets/images/svg-icon/common/play_speed.svg":Jy,"/src/assets/images/svg-icon/common/plus.svg":Wy,"/src/assets/images/svg-icon/common/rewind.svg":e7,"/src/assets/images/svg-icon/common/sync.svg":t7,"/src/assets/images/svg-icon/common/zoom.svg":a7,"/src/assets/images/svg-icon/logo/logo_bridge.svg":n7,"/src/assets/images/svg-icon/logo/logo_bridge_mobile.svg":i7,"/src/assets/images/svg-icon/logo/logo_krafton.svg":s7,"/src/assets/images/svg-icon/logo/logo_pubg.svg":l7,"/src/assets/images/svg-icon/logo/logo_pubg_studio.svg":r7,"/src/assets/images/svg-icon/platform/platform_app_store.svg":o7,"/src/assets/images/svg-icon/platform/platform_epic.svg":c7,"/src/assets/images/svg-icon/platform/platform_galaxy_store.svg":u7,"/src/assets/images/svg-icon/platform/platform_google_play.svg":h7,"/src/assets/images/svg-icon/platform/platform_kakao.svg":d7,"/src/assets/images/svg-icon/platform/platform_nintendo.svg":f7,"/src/assets/images/svg-icon/platform/platform_psn.svg":m7,"/src/assets/images/svg-icon/platform/platform_steam.svg":g7,"/src/assets/images/svg-icon/platform/platform_xbox.svg":p7,"/src/assets/images/svg-icon/social/social_bilibili.svg":_7,"/src/assets/images/svg-icon/social/social_discord.svg":v7,"/src/assets/images/svg-icon/social/social_facebook.svg":y7,"/src/assets/images/svg-icon/social/social_heybox.svg":b7,"/src/assets/images/svg-icon/social/social_hupu.svg":w7,"/src/assets/images/svg-icon/social/social_instagram.svg":S7,"/src/assets/images/svg-icon/social/social_kakaogames.svg":E7,"/src/assets/images/svg-icon/social/social_kwai.svg":x7,"/src/assets/images/svg-icon/social/social_naver.svg":C7,"/src/assets/images/svg-icon/social/social_reddit.svg":T7,"/src/assets/images/svg-icon/social/social_reddit_console.svg":R7,"/src/assets/images/svg-icon/social/social_shenjing.svg":M7,"/src/assets/images/svg-icon/social/social_telegram.svg":k7,"/src/assets/images/svg-icon/social/social_tiktok.svg":D7,"/src/assets/images/svg-icon/social/social_twitch.svg":A7,"/src/assets/images/svg-icon/social/social_vk.svg":O7,"/src/assets/images/svg-icon/social/social_weibo.svg":N7,"/src/assets/images/svg-icon/social/social_x.svg":U7,"/src/assets/images/svg-icon/social/social_xiaohongshu.svg":z7,"/src/assets/images/svg-icon/social/social_youku.svg":L7,"/src/assets/images/svg-icon/social/social_youtube.svg":I7}),B7={},P7=Object.fromEntries(Object.entries(j7).map(([t,a])=>{const l=(t.split("/").pop()??"").replace(/\.svg$/,"");return(B7[l]??=[]).push(t),[l,a]}
9));function xe({name:t,width:a="1em",height:i="1em",className:l,ariaLabel:o}){const c=P7[t];return c?v.jsx(c,{width:a,height:i,className:l,"aria-label":o,role:o?"img":void 0,"aria-hidden":o?void 0:!0}):null}function pd({title:t,description:a,isOpen:i=!1,children:l,onToggle:o}){const[c,h]=y.useState(i);y.useEffect(()=>{h(i)},[i]);const f=()=>{h(g=>{const m=!g;return o&&o(m),m})};return v.jsxs("div",{className:`${Yi.cookies__item} ${c?Yi.is_open:""}`,children:[v.jsxs("div",{className:Yi.summary,children:[v.jsxs("span",{className:Yi.cookies__title,role:"button",tabIndex:0,"aria-expanded":c,onClick:f,children:[v.jsx("i",{className:Yi.cookies__icon,children:v.jsx(xe,{name:"line_arrow"})}),t]}),l]}),v.jsx("div",{className:Yi.cookies__text_content,"aria-hidden":!c,children:v.jsx("div",{className:Yi.cookies__text,children:v.jsx("p",{dangerouslySetInnerHTML:{__html:a}})})})]})}function Rp(){const{setContent:t}=as(),{cookieConsent:a,setCookieConsent:i}=O0(),{tr:l}=et(),[o,c]=y.useState(a.functional),[h,f]=y.useState(a.analytics),g=()=>{Ga("essential","Y",30),Ga("functional",o?"Y":"N",30),Ga("analytics",h?"Y":"N",30),t(null),i({essential:!0,functional:o,analytics:h}),m()},m=()=>{h?N0():ky()};return v.jsxs("div",{className:tr.cookies__modal,role:"dialog","aria-modal":"true",children:[v.jsx("p",{className:tr.cookies__description,children:l("BRIDGE:MAIN_FLOAT_8")}),v.jsx(pd,{title:l("BRIDGE:MAIN_FLOAT_9"),isOpen:!0,description:l("BRIDGE:MAIN_FLOAT_12"),children:v.jsx(gd,{defaultChecked:!0,disabled:!0})}),v.jsx(pd,{title:l("BRIDGE:MAIN_FLOAT_10"),description:l("BRIDGE:MAIN_FLOAT_13"),children:v.jsx(gd,{defaultChecked:o,onChange:c})}),v.jsx(pd,{title:l("BRIDGE:MAIN_FLOAT_11"),description:l("BRIDGE:MAIN_FLOAT_14"),children:v.jsx(gd,{defaultChecked:h,onChange:f})}),v.jsx("div",{className:tr.cookies__footer,children:v.jsx("button",{className:`${tr.primary__button} ${tr.small}`,onClick:g,children:l("BRIDGE:MAIN_BUTTON_3")})})]})}const H7="_secondary__button_st9o2_1",G7="_primary__button_st9o2_1",q7="_small_st9o2_12",V7="_cookie__banner_st9o2_99",Y7="_cookie__banner_contents_st9o2_112",$7="_cookie__banner_text_st9o2_121",K7="_cookie__banner_buttons_st9o2_129",hi={secondary__button:H7,primary__button:G7,small:q7,cookie__banner:V7,cookie__banner_contents:Y7,cookie__banner_text:$7,cookie__banner_buttons:K7};function F7(){const{setContent:t}=as(),{setCookieConsent:a}=O0(),{tr:i}=et(),l=()=>{Ga("essential","Y",30),Ga("functional","Y",30),Ga("analytics","Y",30),a({essential:!0,functional:!0,analytics:!0}),N0()};return v.jsx("div",{className:hi.cookie__banner,children:v.jsxs("div",{className:hi.cookie__banner_contents,children:[v.jsx("p",{className:hi.cookie__banner_text,dangerouslySetInnerHTML:{__html:i("BRIDGE:MAIN_FLOAT_6")}}),v.jsxs("div",{className:hi.cookie__banner_buttons,children:[v.jsx("button",{className:`${hi.secondary__button} ${hi.small}`,onClick:()=>t(v.jsx(Rp,{})),children:i("BRIDGE:MAIN_FLOAT_7")}),v.jsx("button",{className:`${hi.primary__button} ${hi.small}`,onClick:l,children:i("BRIDGE:MAIN_BUTTON_2")})]})]})})}function X7({children:t}){const{cookieConsent:a,setCookieConsent:i}=O0();return y.useEffect(()=>{const l=hc("essential"),o=hc("functional"),c=hc("analytics");i({essential:l==="Y",functional:o==="Y",analytics:c==="Y"}),c==="Y"&&N0()},[i]),v.jsxs(v.Fragment,{children:[t,!a.essential&&v.jsx(F7,{})]})}const $i={en:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"en_US"},ko:{title:"PUBG BRIDGE | 배틀그라운드 공식 웹사이트",description:"PUBG : 배틀그라운드, 전적을 분석하고 나만의 플레이를 기록하세요. 앞으로 더 많은 즐길 거리가 추가될 PUBG 공식 웹사이트.",locale:"ko_KR"},ja:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"ja_JP"},"zh-cn":{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"zh_CN"},"zh-tw":{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"zh_TW"},fr:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"fr_FR"},de:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"de_DE"},it:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"it_IT"},pl:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"pl_PL"},ru:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"ru_RU"},tr:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"tr_TR"},"pt-br":{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"pt_BR"},vi:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"vi_VN"},th:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"th_TH"},"es-mx":{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"es_MX"},es:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"es_ES"},ar:{title:"PUBG BRIDGE | PUBG Official Website",description:"PUBG:BATTLEGROUNDS - Analyze your match stats and record your own gameplay. The official PUBG website with more exciting content to come.",locale:"ar_SA"}},Q7=t=>{const a=t==="ar";document.documentElement.dir=a?"rtl":"ltr",document.documentElement.lang=t,document.title=$i[t].title,document.querySelector('meta[name="description"]')?.setAttribute("content",$i[t].description),document.querySelector('meta[property="og:title"]')?.setAttribute("content",$i[t].title),document.querySelector('meta[property="og:description"]')?.setAttribute("content",$i[t].description),document.querySelector('meta[property="og:locale"]')?.setAttribute("content",$i[t].locale),document.querySelector('meta[name="twitter:title"]')?.setAttribute("content",$i[t].title),document.querySelector('meta[name="twitter:description"]')?.setAttribute("content",$i[t].description)};function Z7({children:t}){const{setLanguage:a}=et();return y.useEffect(()=>{et.subscribe(i=>i.language,i=>{Q7(i),Z5(i),J5(i)})},[]),y.useEffect(()=>{const i=window.location.pathname.split("/")[1];Zs(i)&&a(i)},[a]),v.jsx(v.Fragment,{children:t})}var Mp=t=>{throw TypeError(t)},J7=(t,a,i)=>
9a.has(t)||Mp("Cannot "+i),_d=(t,a,i)=>(J7(t,a,"read from private field"),i?i.call(t):a.get(t)),W7=(t,a,i)=>a.has(t)?Mp("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,i),_3="popstate";function v3(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function e8(t={}){function a(l,o){let c=o.state?.masked,{pathname:h,search:f,hash:g}=c||l.location;return wr("",{pathname:h,search:f,hash:g},o.state&&o.state.usr||null,o.state&&o.state.key||"default",c?{pathname:l.location.pathname,search:l.location.search,hash:l.location.hash}:void 0)}function i(l,o){return typeof o=="string"?o:sn(o)}return a8(a,i,null,t)}function Ae(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function pt(t,a){if(!t)try{throw new Error(a)}catch{}}function t8(){return Math.random().toString(36).substring(2,10)}function y3(t,a){return{usr:t.state,key:t.key,idx:a,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function wr(t,a,i=null,l,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof a=="string"?rn(a):a,state:i,key:a&&a.key||l||t8(),unstable_mask:o}}function sn({pathname:t="/",search:a="",hash:i=""}){return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function rn(t){let a={};if(t){let i=t.indexOf("#");i>=0&&(a.hash=t.substring(i),t=t.substring(0,i));let l=t.indexOf("?");l>=0&&(a.search=t.substring(l),t=t.substring(0,l)),t&&(a.pathname=t)}return a}function a8(t,a,i,l={}){let{window:o=document.defaultView,v5Compat:c=!1}=l,h=o.history,f="POP",g=null,m=_();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function _(){return(h.state||{idx:null}).idx}function b(){f="POP";let M=_(),z=M==null?null:M-m;m=M,g&&g({action:f,location:A.location,delta:z})}function E(M,z){f="PUSH";let G=v3(M)?M:wr(A.location,M,z);m=_()+1;let U=y3(G,m),L=A.createHref(G.unstable_mask||G);try{h.pushState(U,"",L)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;o.location.assign(L)}c&&g&&g({action:f,location:A.location,delta:1})}function w(M,z){f="REPLACE";let G=v3(M)?M:wr(A.location,M,z);m=_();let U=y3(G,m),L=A.createHref(G.unstable_mask||G);h.replaceState(U,"",L),c&&g&&g({action:f,location:A.location,delta:0})}function x(M){return kp(M)}let A={get action(){return f},get location(){return t(o,h)},listen(M){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(_3,b),g=M,()=>{o.removeEventListener(_3,b),g=null}},createHref(M){return a(o,M)},createURL:x,encodeLocation(M){let z=x(M);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:E,replace:w,go(M){return h.go(M)}};return A}function kp(t,a=!1){let i="http://localhost";
9typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(i,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:sn(t);return l=l.replace(/ $/,"%20"),!a&&l.startsWith("//")&&(l=i+l),new URL(l,i)}var hr,b3=class{constructor(t){if(W7(this,hr,new Map),t)for(let[a,i]of t)this.set(a,i)}get(t){if(_d(this,hr).has(t))return _d(this,hr).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,a){_d(this,hr).set(t,a)}};hr=new WeakMap;var n8=new Set(["lazy","caseSensitive","path","id","index","children"]);function i8(t){return n8.has(t)}var s8=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function l8(t){return s8.has(t)}function r8(t){return t.index===!0}function Sr(t,a,i=[],l={},o=!1){return t.map((c,h)=>{let f=[...i,String(h)],g=typeof c.id=="string"?c.id:f.join("-");if(Ae(c.index!==!0||!c.children,"Cannot specify children on an index route"),Ae(o||!l[g],`Found a route id collision on i
9d "${g}".  Route id's must be globally unique within Data Router usages`),r8(c)){let m={...c,id:g};return l[g]=w3(m,a(m)),m}else{let m={...c,id:g,children:void 0};return l[g]=w3(m,a(m)),c.children&&(m.children=Sr(c.children,a,f,l,o)),m}})}function w3(t,a){return Object.assign(t,{...a,...typeof a.lazy=="object"&&a.lazy!=null?{lazy:{...t.lazy,...a.lazy}}:{}})}function pi(t,a,i="/"){return dr(t,a,i,!1)}function dr(t,a,i,l){let o=typeof a=="string"?rn(a):a,c=ka(o.pathname||"/",i);if(c==null)return null;let h=Dp(t);c8(h);let f=null;for(let g=0;f==null&&g<h.length;++g){let m=b8(c);f=v8(h[g],m,l)}return f}function o8(t,a){let{route:i,pathname:l,params:o}=t;return{id:i.id,pathname:l,params:o,data:a[i.id],loaderData:a[i.id],handle:i.handle}}function Dp(t,a=[],i=[],l="",o=!1){let c=(h,f,g=o,m)=>{let _={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:f,route:h};if(_.relativePath.startsWith("/")){if(!_.relativePath.startsWith(l)&&g)return;Ae(_.relativePath.startsWith(l),`Absolute route path "${_.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_.relativePath=_.relativePath.slice(l.length)}let b=qa([l,_.relativePath]),E=i.concat(_);h.children&&h.children.length>0&&(Ae(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Dp(h.children,a,E,b,g)),!(h.path==null&&!h.index)&&a.push({path:b,score:p8(b,h.index),routesMeta:E})};return t.forEach((h,f)=>{if(h.path===""||!h.path?.includes("?"))c(h,f);else for(let g of Ap(h.path))c(h,f,!0,g)}),a}function Ap(t){let a=t.split("/");if(a.length===0)return[];let[i,...l]=a,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(l.length===0)return o?[c,""]:[c];let h=Ap(l.join("/")),f=[];return f.push(...h.map(g=>g===""?c:[c,g].join("/"))),o&&f.push(...h),f.map(g=>t.startsWith("/")&&g===""?"/":g)}function c8(t){t.sort((a,i)=>a.score!==i.score?i.score-a.score:_8(a.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var u8=/^:[\w-]+$/,h8=3,d8=2,f8=1,m8=10,g8=-2,S3=t=>t==="*";function p8(t,a){let i=t.split("/"),l=i.length;return i.some(S3)&&(l+=g8),a&&(l+=d8),i.filter(o=>!S3(o)).reduce((o,c)=>o+(u8.test(c)?h8:c===""?f8:m8),l)}function _8(t,a){return t.length===a.length&&t.slice(0,-1).every((l,o)=>l===a[o])?t[t.length-1]-a[a.length-1]:0}function v8(t,a,i=!1){let{routesMeta:l}=t,o={},c="/",h=[];for(let f=0;f<l.length;++f){let g=l[f],m=f===l.length-1,_=c==="/"?a:a.slice(c.length)||"/",b=Mc({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},_),E=g.route;if(!b&&m&&i&&!l[l.length-1].route.index&&(b=Mc({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},_)),!b)return null;
9Object.assign(o,b.params),h.push({params:o,pathname:qa([c,b.pathname]),pathnameBase:E8(qa([c,b.pathnameBase])),route:E}),b.pathnameBase!=="/"&&(c=qa([c,b.pathnameBase]))}return h}function Mc(t,a){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[i,l]=y8(t.path,t.caseSensitive,t.end),o=a.match(i);if(!o)return null;let c=o[0],h=c.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:l.reduce((m,{paramName:_,isOptional:b},E)=>{if(_==="*"){let x=f[E]||"";h=c.slice(0,c.length-x.length).replace(/(.)\/+$/,"$1")}const w=f[E];return b&&!w?m[_]=void 0:m[_]=(w||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:h,pattern:t}}function y8(t,a=!1,i=!0){pt(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let l=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,f,g,m,_)=>{if(l.push({paramName:f,isOptional:g!=null}),g){let b=_.charAt(m+h.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(l.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),l]}function b8(t){try{return t.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return pt(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),t}}function ka(t,a){if(a==="/")return t;if(!t.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,l=t.charAt(i);return l&&l!=="/"?null:t.slice(i)||"/"}function w8({basename:t,pathname:a}){return a==="/"?t:qa([t,a])}var Op=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U0=t=>Op.test(t);function S8(t,a="/"){let{pathname:i,search:l="",hash:o=""}=typeof t=="string"?rn(t):t,c;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?c=E3(i.substring(1),"/"):c=E3(i,a)):c=a,{pathname:c,search:x8(l),hash:C8(o)}}function E3(t,a){let i=a.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function vd(t,a,i,l){return`Cannot include a '${t}' character in a manually specified \`to.${a}\` field [${JSON.stringify(l)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Np(t){return t.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function z0(t){let a=Np(t);return a.map((i,l)=>l===a.length-1?i.pathname:i.pathnameBase)}function Pc(t,a,i,l=!1){let o;typeof t=="string"?o=rn(t):(o={...t},Ae(!o.pathname||!o.pathname.includes("?"),vd("?","pathname","search",o)),Ae(!o.pathname||!o.pathname.includes("#"),vd("#","pathname","hash",o)),Ae(!o.search||!o.search.includes("#"),vd("#","search","hash",o)));let c=t===""||o.pathname==="",h=c?"/":o.pathname,f;if(h==null)f=i;else{let b=a.length-1;if(!l&&h.startsWith("..")){let E=h.split("/");for(;E[0]==="..";)E.shift(),b-=1;o.pathname=E.join("/")}f=b>=0?a[b]:"/"}let g=S8(o,f),m=h&&h!=="/"&&h.endsWith("/"),_=(c||h===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(m||_)&&(g.pathname+="/"),g}var qa=t=>t.join("/").replace(/\/\/+/g,"/"),E8=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),x8=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,C8=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,x3=(t,a=302)=>{let i=a;typeof i=="number"?i={status:i}:typeof i.status>"u"&&(i.status=302);let l=new Headers(i.headers);return l.set("Location",t),new Response(null,{...i,headers:l})},Rr=class{constructor(t,a,i,l=!1){this.status=t,this.statusText=a||"",this.internal=l,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function tl(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function Mr(t){return t.map(a=>
9a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Up=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function zp(t,a){let i=t;if(typeof i!="string"||!Op.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let l=i,o=!1;if(Up)try{let c=new URL(window.location.href),h=i.startsWith("//")?new URL(c.protocol+i):new URL(i),f=ka(h.pathname,a);h.origin===c.origin&&f!=null?i=f+h.search+h.hash:o=!0}catch{pt(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:i}}var vi=Symbol("Uninstrumented");function T8(t,a){let i={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};t.forEach(o=>o({id:a.id,index:a.index,path:a.path,instrument(c){let h=Object.keys(i);for(let f of h)c[f]&&i[f].push(c[f])}}));let l={};if(typeof a.lazy=="function"&&i.lazy.length>0){let o=Qs(i.lazy,a.lazy,()=>{});o&&(l.lazy=o)}if(typeof a.lazy=="object"){let o=a.lazy;["middleware","loader","action"].forEach(c=>{let h=o[c],f=i[`lazy.${c}`];if(typeof h=="function"&&f.length>0){let g=Qs(f,h,()=>{});g&&(l.lazy=Object.assign(l.lazy||{},{[c]:g}))}})}return["loader","action"].forEach(o=>{let c=a[o];if(typeof c=="function"&&i[o].length>0){let h=c[vi]??c,f=Qs(i[o],h,(...g)=>C3(g[0]));f&&(o==="loader"&&h.hydrate===!0&&(f.hydrate=!0),f[vi]=h,l[o]=f)}}),a.middleware&&a.middleware.length>0&&i.middleware.length>0&&(l.middleware=a.middleware.map(o=>{let c=o[vi]??o,h=Qs(i.middleware,c,(...f)=>C3(f[0]));return h?(h[vi]=c,h):o})),l}function R8(t,a){let i={navigate:[],fetch:[]};if(a.forEach(l=>l({instrument(o){let c=Object.keys(o);for(let h of c)o[h]&&i[h].push(o[h])}})),i.navigate.length>0){let l=t.navigate[vi]??t.navigate,o=Qs(i.navigate,l,(...c)=>{let[h,f]=c;return{to:typeof h=="number"||typeof h=="string"?h:h?sn(h):".",...T3(t,f??{})}});o&&(o[vi]=l,t.navigate=o)}if(i.fetch.length>0){let l=t.fetch[vi]??t.fetch,o=Qs(i.fetch,l,(...c)=>{let[h,,f,g]=c;return{href:f??".",fetcherKey:h,...T3(t,g??{})}});o&&(o[vi]=l,t.fetch=o)}return t}function Qs(t,a,i){return t.length===0?null:async(...l)=>{let o=await Lp(t,i(...l),()=>a(...l),t.length-1);if(o.type==="error")throw o.value;return o.value}}async function Lp(t,a,i,l){let o=t[l],c;if(o){let h,f=async()=>(h||(h=Lp(t,a,i,l-1)),c=await h,Ae(c,"Expected a result"),c.type==="error"&&c.value instanceof Error?{status:"error",error:c.value}:{status:"success",error:void 0});try{await o(f,a)}catch{}h||await f(),await h}else try{c={type:"success",value:await i()}}catch(h){c={type:"error",value:h}}return c||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function C3(t){let{request:a,context:i,params:l,unstable_pattern:o}=t;return{request:M8(a),params:{...l},unstable_pattern:o,context:k8(i)}}function T3(t,a){return{currentUrl:sn(t.state.location),..."formMethod"in a?{formMethod:a.formMethod}:{},..."formEncType"in a?{formEncType:a.formEncType}:{},..."formData"in a?{formData:a.formData}:{},..."body"in a?{body:a.body}:{}}}function M8(t){return{method:t.method,url:t.url,headers:{get:(...a)=>t.headers.get(...a)}}}function k8(t){if(A8(t)){let a={...t};return Object.freeze(a),a}else return{get:a=>t.get(a)}}var D8=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function A8(t){if(t===null||typeof t!="object")return!1;const a=Object.getPrototypeOf(t);return a===Object.prototype||a===null||Object.getOwnPropertyNames(a).sort().join("\0")===D8}var Ip=["POST","PUT","PATCH","DELETE"],O8=new Set(Ip),N8=["GET",...Ip],U8=new Set(N8),jp=new Set([301,302,303,307,308]),z8=new Set([307,308]),yd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},L8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ar={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},I8=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),Bp="remix-router-transitions",Pp=Symbol("ResetLoaderData");function j8(t){const a=t.window?t.window:typeof window<"u"?window:void 0,i=typeof a<"u"&&typeof a.document<"u"&&typeof a.document.createElement<"u";Ae(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let l=t.hydrationRouteProperties||[],o=t.mapRouteProperties||I8,c=o;if(t.unstable_instrumentations){let T=t.unstable_instrumentations;c=O=>({...o(O),...T8(T.map(B=>
9B.route).filter(Boolean),O)})}let h={},f=Sr(t.routes,c,void 0,h),g,m=t.basename||"/";m.startsWith("/")||(m=`/${m}`);let _=t.dataStrategy||q8,b={unstable_passThroughRequests:!1,...t.future},E=null,w=new Set,x=null,A=null,M=null,z=t.hydrationData!=null,G=pi(f,t.history.location,m),U=!1,L=null,X,te;if(G==null&&!t.patchRoutesOnNavigation){let T=Ta(404,{pathname:t.history.location.pathname}),{matches:O,route:B}=ec(f);X=!0,te=!X,G=O,L={[B.id]:T}}else if(G&&!t.hydrationData&&Pn(G,f,t.history.location.pathname).active&&(G=null),G)if(G.some(T=>T.route.lazy))X=!1,te=!X;else if(!G.some(T=>L0(T.route)))X=!0,te=!X;else{let T=t.hydrationData?t.hydrationData.loaderData:null,O=t.hydrationData?t.hydrationData.errors:null,B=G;if(O){let Q=G.findIndex(ae=>O[ae.route.id]!==void 0);B=B.slice(0,Q+1)}te=!1,X=!0,B.forEach(Q=>{let ae=Hp(Q.route,T,O);te=te||ae.renderFallback,X=X&&!ae.shouldLoad})}else{X=!1,te=!X,G=[];let T=Pn(null,f,t.history.location.pathname);T.active&&T.matches&&(U=!0,G=T.matches)}let V,R={historyAction:t.history.action,location:t.history.location,matches:G,initialized:X,renderFallback:te,navigation:yd,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||L,fetchers:new Map,blockers:new Map},Z="POP",J=null,re=!1,fe,Be=!1,Ce=new Map,pe=null,H=!1,W=!1,oe=new Set,ue=new Map,Ee=0,k=-1,$=new Map,ee=new Set,ne=new Map,ye=new Map,we=new Set,Me=new Map,_t,Qe=null;function xi(){if(E=t.history.listen(({action:T,location:O,delta:B})=>{if(_t){_t(),_t=void 0;return}pt(Me.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Ti({currentLocation:R.location,nextLocation:O,historyAction:T});if(Q&&B!=null){let ae=new Promise(he=>{_t=he});t.history.go(B*-1),hn(Q,{state:"blocked",location:O,proceed(){hn(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),ae.then(()=>t.history.go(B))},reset(){let he=new Map(R.blockers);he.set(Q,ar),Ct({blockers:he})}}),J?.resolve(),J=null;return}return on(T,O)}),i){rb(a,Ce);let T=()=>ob(a,Ce);a.addEventListener("pagehide",T),pe=()=>a.removeEventListener("pagehide",T)}return R.initialized||on("POP",R.location,{initialHydration:!0}),V}function ss(){E&&E(),pe&&pe(),w.clear(),fe&&fe.abort(),R.fetchers.forEach((T,O)=>un(O)),R.blockers.forEach((T,O)=>Ci(O))}function ll(T){return w.add(T),()=>w.delete(T)}function Ct(T,O={}){T.matches&&(T.matches=T.matches.map(ae=>{let he=h[ae.route.id],ie=ae.route;return ie.element!==he.element||ie.errorElement!==he.errorElement||ie.hydrateFallbackElement!==he.hydrateFallbackElement?{...ae,route:he}:ae})),R={...R,...T};let B=[],Q=[];R.fetchers.forEach((ae,he)=>{ae.state==="idle"&&(we.has(he)?B.push(he):Q.push(he))}),we.forEach(ae=>{!R.fetchers.has(ae)&&!ue.has(ae)&&B.push(ae)}),[...w].forEach(ae=>ae(R,{deletedFetchers:B,newErrors:T.errors??null,viewTransitionOpts:O.viewTransitionOpts,flushSync:O.flushSync===!0})),B.forEach(ae=>un(ae)),Q.forEach(ae=>R.fetchers.delete(ae))}function Zt(T,O,{flushSync:B}={}){let Q=R.actionData!=null&&R.navigation.formMethod!=null&&Gt(R.navigation.formMethod)&&R.navigation.state==="loading"&&T.state?._isRedirect!==!0,ae;O.actionData?Object.keys(O.actionData).length>0?ae=O.actionData:ae=null:Q?ae=R.actionData:ae=null;let he=O.loaderData?I3(R.loaderData,O.loaderData,O.matches||[],O.errors):R.loaderData,ie=R.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((ve,ge)=>ie.set(ge,ar)));let se=H?!1:hl(T,O.matches||R.matches),de=re===!0||R.navigation.formMethod!=null&&Gt(R.navigation.formMethod)&&T.state?._isRedirect!==!0;g&&(f=g,g=void 0),H||Z==="POP"||(Z==="PUSH"?t.history.push(T,T.state):Z==="REPLACE"&&t.history.replace(T,T.state));let le;if(Z==="POP"){let ve=Ce.get(R.location.pathname);ve&&ve.has(T.pathname)?le={currentLocation:R.location,nextLocation:T}:Ce.has(T.pathname)&&(le={currentLocation:T,nextLocation:R.location})}else if(Be){let ve=Ce.get(R.location.pathname);
9ve?ve.add(T.pathname):(ve=new Set([T.pathname]),Ce.set(R.location.pathname,ve)),le={currentLocation:R.location,nextLocation:T}}Ct({...O,actionData:ae,loaderData:he,historyAction:Z,location:T,initialized:!0,renderFallback:!1,navigation:yd,revalidation:"idle",restoreScrollPosition:se,preventScrollReset:de,blockers:ie},{viewTransitionOpts:le,flushSync:B===!0}),Z="POP",re=!1,Be=!1,H=!1,W=!1,J?.resolve(),J=null,Qe?.resolve(),Qe=null}async function ls(T,O){if(J?.resolve(),J=null,typeof T=="number"){J||(J=H3());let Ze=J.promise;return t.history.go(T),Ze}let B=c0(R.location,R.matches,m,T,O?.fromRouteId,O?.relative),{path:Q,submission:ae,error:he}=R3(!1,B,O),ie;O?.unstable_mask&&(ie={pathname:"",search:"",hash:"",...typeof O.unstable_mask=="string"?rn(O.unstable_mask):{...R.location.unstable_mask,...O.unstable_mask}});let se=R.location,de=wr(se,Q,O&&O.state,void 0,ie);de={...de,...t.history.encodeLocation(de)};let le=O&&O.replace!=null?O.replace:void 0,ve="PUSH";le===!0?ve="REPLACE":le===!1||ae!=null&&Gt(ae.formMethod)&&ae.formAction===R.location.pathname+R.location.search&&(ve="REPLACE");let ge=O&&"preventScrollReset"in O?O.preventScrollReset===!0:void 0,Pe=(O&&O.flushSync)===!0,ke=Ti({currentLocation:se,nextLocation:de,historyAction:ve});if(ke){hn(ke,{state:"blocked",location:de,proceed(){hn(ke,{state:"proceeding",proceed:void 0,reset:void 0,location:de}),ls(T,O)},reset(){let Ze=new Map(R.blockers);Ze.set(ke,ar),Ct({blockers:Ze})}});return}await on(ve,de,{submission:ae,pendingError:he,preventScrollReset:ge,replace:O&&O.replace,enableViewTransition:O&&O.viewTransition,flushSync:Pe,callSiteDefaultShouldRevalidate:O&&O.unstable_defaultShouldRevalidate})}function rl(){Qe||(Qe=H3()),jn(),Ct({revalidation:"loading"});let T=Qe.promise;return R.navigation.state==="submitting"?T:R.navigation.state==="idle"?(on(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),T):(on(Z||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:Be===!0}),T)}async function on(T,O,B){fe&&fe.abort(),fe=null,Z=T,H=(B&&B.startUninterruptedRevalidation)===!0,Qc(R.location,R.matches),re=(B&&B.preventScrollReset)===!0,Be=(B&&B.enableViewTransition)===!0;let Q=g||f,ae=B&&B.overrideNavigation,he=B?.initialHydration&&R.matches&&R.matches.length>0&&!U?R.matches:pi(Q,O,m),ie=(B&&B.flushSync)===!0;if(he&&R.initialized&&!W&&Z8(R.location,O)&&!(B&&B.submission&&Gt(B.submission.formMethod))){Zt(O,{matches:he},{flushSync:ie});return}let se=Pn(he,Q,O.pathname);if(se.active&&se.matches&&(he=se.matches),!he){let{error:tt,notFoundMatches:ct,route:je}=Na(O.pathname);Zt(O,{matches:ct,loaderData:{},errors:{[je.id]:tt}},{flushSync:ie});return}fe=new AbortController;let de=Xs(t.history,O,fe.signal,B&&B.submission),le=t.getContext?await t.getContext():new b3,ve;if(B&&B.pendingError)ve=[_i(he).route.id,{type:"error",error:B.pendingError}];else if(B&&B.submission&&Gt(B.submission.formMethod)){let tt=await Nr(de,O,B.submission,he,le,se.active,B&&B.initialHydration===!0,{replace:B.replace,flushSync:ie});if(tt.shortCircuited)return;if(tt.pendingActionResult){let[ct,je]=tt.pendingActionResult;if(ma(je)&&tl(je.error)&&je.error.status===404){fe=null,Zt(O,{matches:tt.matches,loaderData:{},errors:{[ct]:je.error}});return}}he=tt.matches||he,ve=tt.pendingActionResult,ae=bd(O,B.submission),ie=!1,se.active=!1,de=Xs(t.history,de.url,de.signal)}let{shortCircuited:ge,matches:Pe,loaderData:ke,errors:Ze}=await ol(de,O,he,le,se.active,ae,B&&B.submission,B&&B.fetcherSubmission,B&&B.replace,B&&B.initialHydration===!0,ie,ve,B&&B.callSiteDefaultShouldRevalidate);ge||(fe=null,Zt(O,{matches:Pe||he,...j3(ve),loaderData:ke,errors:Ze}))}async function Nr(T,O,B,Q,ae,he,ie,se={}){jn();let de=sb(O,B);if(Ct({navigation:de},{flushSync:se.flushSync===!0}),he){let ge=await $a(Q,O.pathname,T.signal);if(ge.type==="aborted")return{shortCircuited:!0};if(ge.type==="error"){if(ge.partialMatches.length===0){let{matches:ke,route:Ze}=ec(f);return{matches:ke,pendingActionResult:[Ze.id,{type:"error",error:ge.error}]}}let Pe=_i(ge.partialMatches).route.id;return{matches:ge.partialMatches,pendingActionResult:[Pe,{type:"error",error:ge.error}]}}else if(ge.matches)Q=ge.matches;else{let{notFoundMatches:Pe,error:ke,route:Ze}=Na(O.pathname);return{matches:Pe,pendingActionResult:[Ze.id,{type:"error",error:ke}]}}}let le,ve=mc(Q,O);if(!ve.route.action&&!ve.route.lazy)le={type:"error",error:Ta(405,{method:T.method,pathname:O.pathname,routeId:ve.route.id})};else{let ge=Js(c,h,T,O,Q,ve,ie?[]:l,ae),Pe=await In(T,O,ge,ae,null);if(le=Pe[ve.route.id],!le){for(let ke of Q)if(Pe[ke.route.id]){le=Pe[ke.route.id];break}}if(T.signal.aborted)return{shortCircuited:!0}}if(Qi(le)){let ge;return se&&se.replace!=null?ge=se.replace:ge=U3(le.response.headers.get("Location"),new URL(T.url),m,t.history)===R.location.pathname+R.location.search,await cn(T,le,!0,{submission:B,replace:ge}),{shortCircuited:!0}}if(ma(le)){let ge=_i(Q,ve.route.id);
9return(se&&se.replace)!==!0&&(Z="PUSH"),{matches:Q,pendingActionResult:[ge.route.id,le,ve.route.id]}}return{matches:Q,pendingActionResult:[ve.route.id,le]}}async function ol(T,O,B,Q,ae,he,ie,se,de,le,ve,ge,Pe){let ke=he||bd(O,ie),Ze=ie||se||P3(ke),tt=!H&&!le;if(ae){if(tt){let ft=rs(ge);Ct({navigation:ke,...ft!==void 0?{actionData:ft}:{}},{flushSync:ve})}let De=await $a(B,O.pathname,T.signal);if(De.type==="aborted")return{shortCircuited:!0};if(De.type==="error"){if(De.partialMatches.length===0){let{matches:Bt,route:yt}=ec(f);return{matches:Bt,loaderData:{},errors:{[yt.id]:De.error}}}let ft=_i(De.partialMatches).route.id;return{matches:De.partialMatches,loaderData:{},errors:{[ft]:De.error}}}else if(De.matches)B=De.matches;else{let{error:ft,notFoundMatches:Bt,route:yt}=Na(O.pathname);return{matches:Bt,loaderData:{},errors:{[yt.id]:ft}}}}let ct=g||f,{dsMatches:je,revalidatingFetchers:vt}=M3(T,Q,c,h,t.history,R,B,Ze,O,le?[]:l,le===!0,W,oe,we,ne,ee,ct,m,t.patchRoutesOnNavigation!=null,ge,Pe);if(k=++Ee,!t.dataStrategy&&!je.some(De=>De.shouldLoad)&&!je.some(De=>De.route.middleware&&De.route.middleware.length>0)&&vt.length===0){let De=zr();return Zt(O,{matches:B,loaderData:{},errors:ge&&ma(ge[1])?{[ge[0]]:ge[1].error}:null,...j3(ge),...De?{fetchers:new Map(R.fetchers)}:{}},{flushSync:ve}),{shortCircuited:!0}}if(tt){let De={};if(!ae){De.navigation=ke;let ft=rs(ge);ft!==void 0&&(De.actionData=ft)}vt.length>0&&(De.fetchers=cl(vt)),Ct(De,{flushSync:ve})}vt.forEach(De=>{Mt(De.key),De.controller&&ue.set(De.key,De.controller)});let We=()=>vt.forEach(De=>Mt(De.key));fe&&fe.signal.addEventListener("abort",We);let{loaderResults:Hn,fetcherResults:Ua}=await ul(je,vt,T,O,Q);if(T.signal.aborted)return{shortCircuited:!0};fe&&fe.signal.removeEventListener("abort",We),vt.forEach(De=>ue.delete(De.key));let kt=tc(Hn);if(kt)return await cn(T,kt.result,!0,{replace:de}),{shortCircuited:!0};if(kt=tc(Ua),kt)return ee.add(kt.key),await cn(T,kt.result,!0,{replace:de}),{shortCircuited:!0};let{loaderData:Ka,errors:Ri}=L3(R,B,Hn,ge,vt,Ua);le&&R.errors&&(Ri={...R.errors,...Ri});let Fa=zr(),Mi=Lr(k),cs=Fa||Mi||vt.length>0;return{matches:B,loaderData:Ka,errors:Ri,...cs?{fetchers:new Map(R.fetchers)}:{}}}function rs(T){if(T&&!ma(T[1]))return{[T[0]]:T[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function cl(T){return T.forEach(O=>{let B=R.fetchers.get(O.key),Q=nr(void 0,B?B.data:void 0);R.fetchers.set(O.key,Q)}),new Map(R.fetchers)}async function $c(T,O,B,Q){Mt(T);let ae=(Q&&Q.flushSync)===!0,he=g||f,ie=c0(R.location,R.matches,m,B,O,Q?.relative),se=pi(he,ie,m),de=Pn(se,he,ie);if(de.active&&de.matches&&(se=de.matches),!se){pa(T,O,Ta(404,{pathname:ie}),{flushSync:ae});return}let{path:le,submission:ve,error:ge}=R3(!0,ie,Q);if(ge){pa(T,O,ge,{flushSync:ae});return}let Pe=t.getContext?await t.getContext():new b3,ke=(Q&&Q.preventScrollReset)===!0;if(ve&&Gt(ve.formMethod)){await Kc(T,O,le,se,Pe,de.active,ae,ke,ve,Q&&Q.unstable_defaultShouldRevalidate);return}ne.set(T,{routeId:O,path:le}),await qt(T,O,le,se,Pe,de.active,ae,ke,ve)}async function Kc(T,O,B,Q,ae,he,ie,se,de,le){jn(),ne.delete(T);let ve=R.fetchers.get(T);Oa(T,lb(de,ve),{flushSync:ie});let ge=new AbortController,Pe=Xs(t.history,B,ge.signal,de);if(he){let at=await $a(Q,new URL(Pe.url).pathname,Pe.signal,T);if(at.type==="aborted")return;if(at.type==="error"){pa(T,O,at.error,{flushSync:ie});return}else if(at.matches)Q=at.matches;else{pa(T,O,Ta(404,{pathname:B}),{flushSync:ie});return}}let ke=mc(Q,B);if(!ke.route.action&&!ke.route.lazy){let at=Ta(405,{method:de.formMethod,pathname:B,routeId:O});pa(T,O,at,{flushSync:ie});return}ue.set(T,ge);let Ze=Ee,tt=Js(c,h,Pe,B,Q,ke,l,ae),ct=await In(Pe,B,tt,ae,T),je=ct[ke.route.id];if(!je){for(let at of tt)if(ct[at.route.id]){je=ct[at.route.id];break}}if(Pe.signal.aborted){ue.get(T)===ge&&ue.delete(T);return}if(we.has(T)){if(Qi(je)||ma(je)){Oa(T,Dn(void 0));return}}else{if(Qi(je))if(ue.delete(T),k>Ze){Oa(T,Dn(void 0));return}else return ee.add(T),Oa(T,nr(de)),cn(Pe,je,!1,{fetcherSubmission:de,preventScrollReset:se});if(ma(je)){pa(T,O,je.error);return}}let vt=R.navigation.location||R.location,We=Xs(t.history,vt,ge.signal),Hn=g||f,Ua=R.navigation.state!=="idle"?pi(Hn,R.navigation.location,m):R.matches;Ae(Ua,"Didn't find any matches after fetcher action");let kt=++Ee;$.set(T,kt);let Ka=nr(de,je.data);R.fetchers.set(T,Ka);let{dsMatches:Ri,revalidatingFetchers:Fa}=M3(We,ae,c,h,t.history,R,Ua,de,vt,l,!1,W,oe,we,ne,ee,Hn,m,t.patchRoutesOnNavigation!=null,[ke.route.id,je],le);Fa.filter(at=>at.key!==T).forEach(at=>{let us=at.key,hs=R.fetchers.get(us),Pr=nr(void 0,hs?hs.data:void 0);R.fetchers.set(us,Pr),Mt(us),at.controller&&ue.set(us,at.controller)}),Ct({fetchers:new Map(R.fetchers)});let Mi=()=>
9Fa.forEach(at=>Mt(at.key));ge.signal.addEventListener("abort",Mi);let{loaderResults:cs,fetcherResults:De}=await ul(Ri,Fa,We,vt,ae);if(ge.signal.aborted)return;if(ge.signal.removeEventListener("abort",Mi),$.delete(T),ue.delete(T),Fa.forEach(at=>ue.delete(at.key)),R.fetchers.has(T)){let at=Dn(je.data);R.fetchers.set(T,at)}let ft=tc(cs);if(ft)return cn(We,ft.result,!1,{preventScrollReset:se});if(ft=tc(De),ft)return ee.add(ft.key),cn(We,ft.result,!1,{preventScrollReset:se});let{loaderData:Bt,errors:yt}=L3(R,Ua,cs,void 0,Fa,De);Lr(kt),R.navigation.state==="loading"&&kt>k?(Ae(Z,"Expected pending action"),fe&&fe.abort(),Zt(R.navigation.location,{matches:Ua,loaderData:Bt,errors:yt,fetchers:new Map(R.fetchers)})):(Ct({errors:yt,loaderData:I3(R.loaderData,Bt,Ua,yt),fetchers:new Map(R.fetchers)}),W=!1)}async function qt(T,O,B,Q,ae,he,ie,se,de){let le=R.fetchers.get(T);Oa(T,nr(de,le?le.data:void 0),{flushSync:ie});let ve=new AbortController,ge=Xs(t.history,B,ve.signal);if(he){let je=await $a(Q,new URL(ge.url).pathname,ge.signal,T);if(je.type==="aborted")return;if(je.type==="error"){pa(T,O,je.error,{flushSync:ie});return}else if(je.matches)Q=je.matches;else{pa(T,O,Ta(404,{pathname:B}),{flushSync:ie});return}}let Pe=mc(Q,B);ue.set(T,ve);let ke=Ee,Ze=Js(c,h,ge,B,Q,Pe,l,ae),ct=(await In(ge,B,Ze,ae,T))[Pe.route.id];if(ue.get(T)===ve&&ue.delete(T),!ge.signal.aborted){if(we.has(T)){Oa(T,Dn(void 0));return}if(Qi(ct))if(k>ke){Oa(T,Dn(void 0));return}else{ee.add(T),await cn(ge,ct,!1,{preventScrollReset:se});return}if(ma(ct)){pa(T,O,ct.error);return}Oa(T,Dn(ct.data))}}async function cn(T,O,B,{submission:Q,fetcherSubmission:ae,preventScrollReset:he,replace:ie}={}){B||(J?.resolve(),J=null),O.response.headers.has("X-Remix-Revalidate")&&(W=!0);let se=O.response.headers.get("Location");Ae(se,"Expected a Location header on the redirect Response"),se=U3(se,new URL(T.url),m,t.history);let de=wr(R.location,se,{_isRedirect:!0});if(i){let Ze=!1;if(O.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(U0(se)){const tt=kp(se,!0);Ze=tt.origin!==a.location.origin||ka(tt.pathname,m)==null}if(Ze){ie?a.location.replace(se):a.location.assign(se);return}}fe=null;let le=ie===!0||O.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ve,formAction:ge,formEncType:Pe}=R.navigation;!Q&&!ae&&ve&&ge&&Pe&&(Q=P3(R.navigation));let ke=Q||ae;if(z8.has(O.response.status)&&ke&&Gt(ke.formMethod))await on(le,de,{submission:{...ke,formAction:se},preventScrollReset:he||re,enableViewTransition:B?Be:void 0});else{let Ze=bd(de,Q);await on(le,de,{overrideNavigation:Ze,fetcherSubmission:ae,preventScrollReset:he||re,enableViewTransition:B?Be:void 0})}}async function In(T,O,B,Q,ae){let he,ie={};try{he=await Y8(_,T,O,B,ae,Q,!1)}catch(se){return B.filter(de=>de.shouldLoad).forEach(de=>{ie[de.route.id]={type:"error",error:se}}),ie}if(T.signal.aborted)return ie;if(!Gt(T.method))for(let se of B){if(he[se.route.id]?.type==="error")break;!he.hasOwnProperty(se.route.id)&&!R.loaderData.hasOwnProperty(se.route.id)&&(!R.errors||!R.errors.hasOwnProperty(se.route.id))&&se.shouldCallHandler()&&(he[se.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${se.route.id}`)})}for(let[se,de]of Object.entries(he))if(tb(de)){let le=de.result;ie[se]={type:"redirect",response:X8(le,T,se,B,m)}}else ie[se]=await F8(de);return ie}async function ul(T,O,B,Q,ae){let he=In(B,Q,T,ae,null),ie=Promise.all(O.map(async le=>{if(le.matches&&le.match&&le.request&&le.controller){let ge=(await In(le.request,le.path,le.matches,ae,le.key))[le.match.route.id];return{[le.key]:ge}}else return Promise.resolve({[le.key]:{type:"error",error:Ta(404,{pathname:le.path})}})})),se=await he,de=(await ie).reduce((le,ve)=>Object.assign(le,ve),{});return{loaderResults:se,fetcherResults:de}}function jn(){W=!0,ne.forEach((T,O)=>{ue.has(O)&&oe.add(O),Mt(O)})}function Oa(T,O,B={}){R.fetchers.set(T,O),Ct({fetchers:new Map(R.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function pa(T,O,B,Q={}){let ae=_i(R.matches,O);un(T),Ct({errors:{[ae.route.id]:B},fetchers:new Map(R.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function Ur(T){return ye.set(T,(ye.get(T)||0)+1),we.has(T)&&we.delete(T),R.fetchers.get(T)||L8}function Fc(T,O){Mt(T,O?.reason),Oa(T,Dn(null))}function un(T){let O=R.fetchers.get(T);ue.has(T)&&!(O&&O.state==="loading"&&$.has(T))&&Mt(T),ne.delete(T),$.delete(T),ee.delete(T),we.delete(T),oe.delete(T),R.fetchers.delete(T)}function Vt(T){let O=(ye.get(T)||0)-1;O<=0?(ye.delete(T),we.add(T)):ye.set(T,O),Ct({fetchers:new Map(R.fetchers)})}function Mt(T,O){let B=ue.get(T);B&&(B.abort(O),ue.delete(T))}function jt(T){for(let O of T){let B=Ur(O),Q=Dn(B.data);R.fetchers.set(O,Q)}}function zr(){let T=[],O=!1;for(let B of ee){let Q=R.fetchers.get(B);Ae(Q,`Expected fetcher: ${B}
9`),Q.state==="loading"&&(ee.delete(B),T.push(B),O=!0)}return jt(T),O}function Lr(T){let O=[];for(let[B,Q]of $)if(Q<T){let ae=R.fetchers.get(B);Ae(ae,`Expected fetcher: ${B}`),ae.state==="loading"&&(Mt(B),$.delete(B),O.push(B))}return jt(O),O.length>0}function Xc(T,O){let B=R.blockers.get(T)||ar;return Me.get(T)!==O&&Me.set(T,O),B}function Ci(T){R.blockers.delete(T),Me.delete(T)}function hn(T,O){let B=R.blockers.get(T)||ar;Ae(B.state==="unblocked"&&O.state==="blocked"||B.state==="blocked"&&O.state==="blocked"||B.state==="blocked"&&O.state==="proceeding"||B.state==="blocked"&&O.state==="unblocked"||B.state==="proceeding"&&O.state==="unblocked",`Invalid blocker state transition: ${B.state} -> ${O.state}`);let Q=new Map(R.blockers);Q.set(T,O),Ct({blockers:Q})}function Ti({currentLocation:T,nextLocation:O,historyAction:B}){if(Me.size===0)return;Me.size>1&&pt(!1,"A router only supports one blocker at a time");let Q=Array.from(Me.entries()),[ae,he]=Q[Q.length-1],ie=R.blockers.get(ae);if(!(ie&&ie.state==="proceeding")&&he({currentLocation:T,nextLocation:O,historyAction:B}))return ae}function Na(T){let O=Ta(404,{pathname:T}),B=g||f,{matches:Q,route:ae}=ec(B);return{notFoundMatches:Q,route:ae,error:O}}function os(T,O,B){if(x=T,M=O,A=B||null,!z&&R.navigation===yd){z=!0;let Q=hl(R.location,R.matches);Q!=null&&Ct({restoreScrollPosition:Q})}return()=>{x=null,M=null,A=null}}function Bn(T,O){return A&&A(T,O.map(Q=>o8(Q,R.loaderData)))||T.key}function Qc(T,O){if(x&&M){let B=Bn(T,O);x[B]=M()}}function hl(T,O){if(x){let B=Bn(T,O),Q=x[B];if(typeof Q=="number")return Q}return null}function Pn(T,O,B){if(t.patchRoutesOnNavigation)if(T){if(Object.keys(T[0].params).length>0)return{active:!0,matches:dr(O,B,m,!0)}}else return{active:!0,matches:dr(O,B,m,!0)||[]};return{active:!1,matches:null}}async function $a(T,O,B,Q){if(!t.patchRoutesOnNavigation)return{type:"success",matches:T};let ae=T;for(;;){let he=g==null,ie=g||f,se=h;try{await t.patchRoutesOnNavigation({signal:B,path:O,matches:ae,fetcherKey:Q,patch:(ve,ge)=>{B.aborted||k3(ve,ge,ie,se,c,!1)}})}catch(ve){return{type:"error",error:ve,partialMatches:ae}}finally{he&&!B.aborted&&(f=[...f])}if(B.aborted)return{type:"aborted"};let de=pi(ie,O,m),le=null;if(de){if(Object.keys(de[0].params).length===0)return{type:"success",matches:de};if(le=dr(ie,O,m,!0),!(le&&ae.length<le.length&&Ir(ae,le.slice(0,ae.length))))return{type:"success",matches:de}}if(le||(le=dr(ie,O,m,!0)),!le||Ir(ae,le))return{type:"success",matches:null};ae=le}}function Ir(T,O){return T.length===O.length&&T.every((B,Q)=>B.route.id===O[Q].route.id)}function jr(T){h={},g=Sr(T,c,void 0,h)}function Br(T,O,B=!1){let Q=g==null;k3(T,O,g||f,h,c,B),Q&&(f=[...f],Ct({}))}return V={get basename(){return m},get future(){return b},get state(){return R},get routes(){return f},get window(){return a},initialize:xi,subscribe:ll,enableScrollRestoration:os,navigate:ls,fetch:$c,revalidate:rl,createHref:T=>t.history.createHref(T),encodeLocation:T=>t.history.encodeLocation(T),getFetcher:Ur,resetFetcher:Fc,deleteFetcher:Vt,dispose:ss,getBlocker:Xc,deleteBlocker:Ci,patchRoutes:Br,_internalFetchControllers:ue,_internalSetRoutes:jr,_internalSetStateDoNotUseOrYouWillBreakYourApp(T){Ct(T)}},t.unstable_instrumentations&&(V=R8(V,t.unstable_instrumentations.map(T=>T.router).filter(Boolean))),V}function B8(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function c0(t,a,i,l,o,c){let h,f;if(o){h=[];for(let m of a)if(h.push(m),m.route.id===o){f=m;break}}else h=a,f=a[a.length-1];let g=Pc(l||".",z0(h),ka(t.pathname,i)||t.pathname,c==="path");if(l==null&&(g.search=t.search,g.hash=t.hash),(l==null||l===""||l===".")&&f){let m=j0(g.search);if(f.route.index&&!m)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!f.route.index&&m){let _=new URLSearchParams(g.search),b=_.getAll("index");_.delete("index"),b.filter(w=>w).forEach(w=>_.append("index",w));let E=_.toString();g.search=E?`?${E}`:""}}return i!=="/"&&(g.pathname=w8({basename:i,pathname:g.pathname})),sn(g)}function R3(t,a,i){if(!i||!B8(i))return{path:a};if(i.formMethod&&!ib(i.formMethod))return{path:a,error:Ta(405,{method:i.formMethod})};let l=()=>({path:a,error:Ta(400,{type:"invalid-body"})}),c=(i.formMethod||"get").toUpperCase(),h=Fp(a);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!Gt(c))return l();
9let b=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((E,[w,x])=>`${E}${w}=${x}
10`,""):String(i.body);return{path:a,submission:{formMethod:c,formAction:h,formEncType:i.formEncType,formData:void 0,json:void 0,text:b}}}else if(i.formEncType==="application/json"){if(!Gt(c))return l();try{let b=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:a,submission:{formMethod:c,formAction:h,formEncType:i.formEncType,formData:void 0,json:b,text:void 0}}}catch{return l()}}}Ae(typeof FormData=="function","FormData is not available in this environment");let f,g;if(i.formData)f=h0(i.formData),g=i.formData;else if(i.body instanceof FormData)f=h0(i.body),g=i.body;else if(i.body instanceof URLSearchParams)f=i.body,g=z3(f);else if(i.body==null)f=new URLSearchParams,g=new FormData;else try{f=new URLSearchParams(i.body),g=z3(f)}catch{return l()}let m={formMethod:c,formAction:h,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Gt(m.formMethod))return{path:a,submission:m};let _=rn(a);return t&&_.search&&j0(_.search)&&f.append("index",""),_.search=`?${f}`,{path:sn(_),submission:m}}function M3(t,a,i,l,o,c,h,f,g,m,_,b,E,w,x,A,M,z,G,U,L){let X=U?ma(U[1])?U[1].error:U[1].data:void 0,te=o.createURL(c.location),V=o.createURL(g),R;if(_&&c.errors){let pe=Object.keys(c.errors)[0];R=h.findIndex(H=>H.route.id===pe)}else if(U&&ma(U[1])){let pe=U[0];R=h.findIndex(H=>H.route.id===pe)-1}let Z=U?U[1].statusCode:void 0,J=Z&&Z>=400,re={currentUrl:te,currentParams:c.matches[0]?.params||{},nextUrl:V,nextParams:h[0].params,...f,actionResult:X,actionStatus:Z},fe=Mr(h),Be=h.map((pe,H)=>{let{route:W}=pe,oe=null;if(R!=null&&H>R)oe=!1;else if(W.lazy)oe=!0;else if(!L0(W))oe=!1;else if(_){let{shouldLoad:$}=Hp(W,c.loaderData,c.errors);oe=$}else P8(c.loaderData,c.matches[H],pe)&&(oe=!0);if(oe!==null)return u0(i,l,t,g,fe,pe,m,a,oe);let ue=!1;typeof L=="boolean"?ue=L:J?ue=!1:(b||te.pathname+te.search===V.pathname+V.search||te.search!==V.search||H8(c.matches[H],pe))&&(ue=!0);let Ee={...re,defaultShouldRevalidate:ue},k=fr(pe,Ee);return u0(i,l,t,g,fe,pe,m,a,k,Ee,L)}),Ce=[];return x.forEach((pe,H)=>{if(_||!h.some(ne=>ne.route.id===pe.routeId)||w.has(H))return;let W=c.fetchers.get(H),oe=W&&W.state!=="idle"&&W.data===void 0,ue=pi(M,pe.path,z);if(!ue){if(G&&oe)return;Ce.push({key:H,routeId:pe.routeId,path:pe.path,matches:null,match:null,request:null,controller:null});return}if(A.has(H))return;let Ee=mc(ue,pe.path),k=new AbortController,$=Xs(o,pe.path,k.signal),ee=null;if(E.has(H))E.delete(H),ee=Js(i,l,$,pe.path,ue,Ee,m,a);else if(oe)b&&(ee=Js(i,l,$,pe.path,ue,Ee,m,a));else{let ne;typeof L=="boolean"?ne=L:J?ne=!1:ne=b;let ye={...re,defaultShouldRevalidate:ne};fr(Ee,ye)&&(ee=Js(i,l,$,pe.path,ue,Ee,m,a,ye))}ee&&Ce.push({key:H,routeId:pe.routeId,path:pe.path,matches:ee,match:Ee,request:$,controller:k})}),{dsMatches:Be,revalidatingFetchers:Ce}}function L0(t){return t.loader!=null||t.middleware!=null&&t.middleware.length>0}function Hp(t,a,i){if(t.lazy)return{shouldLoad:!0,renderFallback:!0};if(!L0(t))return{shouldLoad:!1,renderFallback:!1};let l=a!=null&&t.id in a,o=i!=null&&i[t.id]!==void 0;if(!l&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof t.loader=="function"&&t.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!l};let c=!l&&!o;return{shouldLoad:c,renderFallback:c}}function P8(t,a,i){let l=!a||i.route.id!==a.route.id,o=!t.hasOwnProperty(i.route.id);return l||o}function H8(t,a){let i=t.route.path;return t.pathname!==a.pathname||i!=null&&i.endsWith("*")&&t.params["*"]!==a.params["*"]}function fr(t,a){if(t.route.shouldRevalidate){let i=t.route.shouldRevalidate(a);if(typeof i=="boolean")return i}return a.defaultShouldRevalidate}function k3(t,a,i,l,o,c){let h;if(t){let m=l[t];Ae(m,`No route found to patch children into: routeId = ${t}`),m.children||(m.children=[]),h=m.children}else h=i;let f=[],g=[];if(a.forEach(m=>{let _=h.find(b=>Gp(m,b));_?g.push({existingRoute:_,newRoute:m}):f.push(m)}),f.length>0){let m=Sr(f,o,[t||"_","patch",String(h?.length||"0")],l);h.push(...m)}if(c&&g.length>0)for(let m=0;m<g.length;m++){let{existingRoute:_,newRoute:b}=g[m],E=_,[w]=Sr([b],o,[],{},!0);Object.assign(E,{element:w.element?w.element:E.element,errorElement:w.errorElement?w.errorElement:E.errorElement,hydrateFallbackElement:w.hydrateFallbackElement?w.hydrateFallbackElement:E.hydrateFallbackElement})}}function Gp(t,a){return"id"in t&&"id"in a&&t.id===a.id?!0:t.index===a.index&&t.path===a.path&&t.caseSensitive===a.caseSensitive?(!t.children||t.children.length===0)&&(!a.children||a.children.length===0)?!0:t.children?.every((i,l)=>a.children?.some(o=>Gp(i,o)))??!1:!1}var D3=new WeakMap,qp=({key:t,route:a,manifest:i,mapRouteProperties:l})=>{let o=i[a.id];if(Ae(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let c=o.lazy[t];if(!c)return;let h=D3.get(o);h||(h={},D3.set(o,h));let f=h[t];if(f)return f;let g=(async()=>{let m=i8(t),b=o[t]!==void 0&&t!=="hasErrorBoundary";if(m)pt(!m,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),h[t]=Promise.resolve();else if(b)pt(!1,`Route "${o.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let E=await c();E!=null&&(Object.assign(o,{[t]:E}),Object.assign(o,l(o)))}typeof o.lazy=="object"&&(o.lazy[t]=void 0,Object.values(o.lazy).every(E=>
10E===void 0)&&(o.lazy=void 0))})();return h[t]=g,g},A3=new WeakMap;function G8(t,a,i,l,o){let c=i[t.id];if(Ae(c,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let _=A3.get(c);if(_)return{lazyRoutePromise:_,lazyHandlerPromise:_};let b=(async()=>{Ae(typeof t.lazy=="function","No lazy route function found");let E=await t.lazy(),w={};for(let x in E){let A=E[x];if(A===void 0)continue;let M=l8(x),G=c[x]!==void 0&&x!=="hasErrorBoundary";M?pt(!M,"Route property "+x+" is not a supported property to be returned from a lazy route function. This property will be ignored."):G?pt(!G,`Route "${c.id}" has a static property "${x}" defined but its lazy function is also returning a value for this property. The lazy route property "${x}" will be ignored.`):w[x]=A}Object.assign(c,w),Object.assign(c,{...l(c),lazy:void 0})})();return A3.set(c,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let h=Object.keys(t.lazy),f=[],g;for(let _ of h){if(o&&o.includes(_))continue;let b=qp({key:_,route:t,manifest:i,mapRouteProperties:l});b&&(f.push(b),_===a&&(g=b))}let m=f.length>0?Promise.all(f).then(()=>{}):void 0;return m?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:g}}async function O3(t){let a=t.matches.filter(o=>o.shouldLoad),i={};return(await Promise.all(a.map(o=>o.resolve()))).forEach((o,c)=>{i[a[c].route.id]=o}),i}async function q8(t){return t.matches.some(a=>a.route.middleware)?Vp(t,()=>O3(t)):O3(t)}function Vp(t,a){return V8(t,a,l=>{if(nb(l))throw l;return l},W8,i);function i(l,o,c){if(c)return Promise.resolve(Object.assign(c.value,{[o]:{type:"error",result:l}}));{let{matches:h}=t,f=Math.min(Math.max(h.findIndex(m=>m.route.id===o),0),Math.max(h.findIndex(m=>m.shouldCallHandler()),0)),g=_i(h,h[f].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:l}})}}}async function V8(t,a,i,l,o){let{matches:c,...h}=t,f=c.flatMap(m=>m.route.middleware?m.route.middleware.map(_=>[m.route.id,_]):[]);return await Yp(h,f,a,i,l,o)}async function Yp(t,a,i,l,o,c,h=0){let{request:f}=t;if(f.signal.aborted)throw f.signal.reason??new Error(`Request aborted: ${f.method} ${f.url}`);let g=a[h];if(!g)return await i();let[m,_]=g,b,E=async()=>{if(b)throw new Error("You may only call `next()` once per middleware");try{return b={value:await Yp(t,a,i,l,o,c,h+1)},b.value}catch(w){return b={value:await c(w,m,b)},b.value}};try{let w=await _(t,E),x=w!=null?l(w):void 0;return o(x)?x:b?x??b.value:(b={value:await E()},b.value)}catch(w){return await c(w,m,b)}}function $p(t,a,i,l,o){let c=qp({key:"middleware",route:l.route,manifest:a,mapRouteProperties:t}),h=G8(l.route,Gt(i.method)?"action":"loader",a,t,o);return{middleware:c,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function u0(t,a,i,l,o,c,h,f,g,m=null,_){let b=!1,E=$p(t,a,i,c,h);return{...c,_lazyPromises:E,shouldLoad:g,shouldRevalidateArgs:m,shouldCallHandler(w){return b=!0,m?typeof _=="boolean"?fr(c,{...m,defaultShouldRevalidate:_}):typeof w=="boolean"?fr(c,{...m,defaultShouldRevalidate:w}):fr(c,m):g},resolve(w){let{lazy:x,loader:A,middleware:M}=c.route,z=b||g||w&&!Gt(i.method)&&(x||A),G=M&&M.length>0&&!A&&!x;return z&&(Gt(i.method)||!G)?$8({request:i,path:l,unstable_pattern:o,match:c,lazyHandlerPromise:E?.handler,lazyRoutePromise:E?.route,handlerOverride:w,scopedContext:f}):Promise.resolve({type:"data",result:void 0})}}}function Js(t,a,i,l,o,c,h,f,g=null){return o.map(m=>m.route.id!==c.route.id?{...m,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:$p(t,a,i,m,h),resolve:()=>Promise.resolve({type:"data",result:void 0})}:u0(t,a,i,l,Mr(o),m,h,f,!0,g))}async function Y8(t,a,i,l,o,c,h){l.some(_=>_._lazyPromises?.middleware)&&await Promise.all(l.map(_=>_._lazyPromises?.middleware));let f={request:a,unstable_url:Kp(a,i),unstable_pattern:Mr(l),params:l[0].params,context:c,matches:l},m=await t({...f,fetcherKey:o,runClientMiddleware:_=>{let b=f;return Vp(b,()=>_({...b,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(_=>[_._lazyPromises?.handler,_._lazyPromises?.route]))}catch{}return m}async function $8({request:t,path:a,unstable_pattern:i,match:l,lazyHandlerPromise:o,lazyRoutePromise:c,handlerOverride:h,scopedContext:f}){let g,m,_=Gt(t.method),b=_?"action":"loader",E=w=>{let x,A=new Promise((G,U)=>x=U);m=()=>x(),t.signal.addEventListener("abort",m);let M=G=>typeof w!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${l.route.id}]`)):w({request:t,unstable_url:Kp(t,a),unstable_pattern:i,params:l.params,context:f},...G!==void 0?[G]:[]),z=(async()=>{try{return{type:"data",result:await(h?h(U=>M(U)):M())}}catch(G){return{type:"error",result:G}}})();return Promise.race([z,A])};try{let w=_?l.route.action:l.route.loader;if(o||c)if(w){let x,[A]=await Promise.all([E(w).catch(M=>{x=M}),o,c]);if(x!==void 0)throw x;g=A}else{await o;let x=_?l.route.action:l.route.loader;if(x)[g]=await Promise.all([E(x),c]);else if(b==="action"){let A=new URL(t.url),M=A.pathname+A.search;throw Ta(405,{method:t.method,pathname:M,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(w)g=await E(w);else{let x=new URL(t.url),A=x.pathname+x.search;throw Ta(404,{pathname:A})}}catch(w){return{type:"error",result:w}}finally{m&&t.signal.removeEventListener("abort",m)}return g}async function K8(t){let a=t.headers.get("Content-Type");return a&&/\bapplication\/json\b/.test(a)?t.body==null?null:t.json():t.text()}async function F8(t){let{result:a,type:i}=t;if(I0(a)){let l;try{l=await K8(a)}catch(o){return{type:"error",error:o}}return i==="error"?{type:"error",error:new Rr(a.status,a.statusText,l),statusCode:a.status,headers:a.headers}:{type:"data",data:l,statusCode:a.status,headers:a.headers}}return i==="error"?B3(a)?a.data instanceof Error?{type:"error",error:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:J8(a),statusCode:tl(a)?a.status:void 0,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:a,statusCode:tl(a)?a.status:void 0}:B3(a)?{type:"data",data:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"data",data:a}}function X8(t,a,i,l,o){let c=t.headers.get("Location");if(Ae(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!U0(c)){let h=l.slice(0,l.findIndex(f=>f.route.id===i)+1);c=c0(new URL(a.url),h,o,c),t.headers.set("Location",c)}return t}var N3=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function U3(t,a,i,l){if(U0(t)){let o=t,c=o.startsWith("//")?new URL(a.protocol+o):new URL(o);if(N3.includes(c.protocol))throw new Error("Invalid redirect location");let h=ka(c.pathname,i)!=null;if(c.origin===a.origin&&h)return c.pathname+c.search+c.hash}try{let o=l.createURL(t);
10if(N3.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return t}function Xs(t,a,i,l){let o=t.createURL(Fp(a)).toString(),c={signal:i};if(l&&Gt(l.formMethod)){let{formMethod:h,formEncType:f}=l;c.method=h.toUpperCase(),f==="application/json"?(c.headers=new Headers({"Content-Type":f}),c.body=JSON.stringify(l.json)):f==="text/plain"?c.body=l.text:f==="application/x-www-form-urlencoded"&&l.formData?c.body=h0(l.formData):c.body=l.formData}return new Request(o,c)}function Kp(t,a){let i=new URL(t.url),l=typeof a=="string"?rn(a):a;if(i.pathname=l.pathname||"/",l.search){let o=new URLSearchParams(l.search),c=o.getAll("index");o.delete("index");for(let h of c.filter(Boolean))o.append("index",h);i.search=o.size?`?${o.toString()}`:""}else i.search="";return i.hash=l.hash||"",i}function h0(t){let a=new URLSearchParams;for(let[i,l]of t.entries())a.append(i,typeof l=="string"?l:l.name);return a}function z3(t){let a=new FormData;for(let[i,l]of t.entries())a.append(i,l);return a}function Q8(t,a,i,l=!1,o=!1){let c={},h=null,f,g=!1,m={},_=i&&ma(i[1])?i[1].error:void 0;return t.forEach(b=>{if(!(b.route.id in a))return;let E=b.route.id,w=a[E];if(Ae(!Qi(w),"Cannot handle redirect results in processLoaderData"),ma(w)){let x=w.error;if(_!==void 0&&(x=_,_=void 0),h=h||{},o)h[E]=x;else{let A=_i(t,E);h[A.route.id]==null&&(h[A.route.id]=x)}l||(c[E]=Pp),g||(g=!0,f=tl(w.error)?w.error.status:500),w.headers&&(m[E]=w.headers)}else c[E]=w.data,w.statusCode&&w.statusCode!==200&&!g&&(f=w.statusCode),w.headers&&(m[E]=w.headers)}),_!==void 0&&i&&(h={[i[0]]:_},i[2]&&(c[i[2]]=void 0)),{loaderData:c,errors:h,statusCode:f||200,loaderHeaders:m}}function L3(t,a,i,l,o,c){let{loaderData:h,errors:f}=Q8(a,i,l);return o.filter(g=>!g.matches||g.matches.some(m=>m.shouldLoad)).forEach(g=>{let{key:m,match:_,controller:b}=g;if(b&&b.signal.aborted)return;let E=c[m];if(Ae(E,"Did not find corresponding fetcher result"),ma(E)){let w=_i(t.matches,_?.route.id);f&&f[w.route.id]||(f={...f,[w.route.id]:E.error}),t.fetchers.delete(m)}else if(Qi(E))Ae(!1,"Unhandled fetcher revalidation redirect");else{let w=Dn(E.data);t.fetchers.set(m,w)}}),{loaderData:h,errors:f}}function I3(t,a,i,l){let o=Object.entries(a).filter(([,c])=>c!==Pp).reduce((c,[h,f])=>(c[h]=f,c),{});for(let c of i){let h=c.route.id;if(!a.hasOwnProperty(h)&&t.hasOwnProperty(h)&&c.route.loader&&(o[h]=t[h]),l&&l.hasOwnProperty(h))break}return o}function j3(t){return t?ma(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function _i(t,a){return(a?t.slice(0,t.findIndex(l=>l.route.id===a)+1):[...t]).reverse().find(l=>l.route.hasErrorBoundary===!0)||t[0]}function ec(t){let a=t.length===1?t[0]:t.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:a}],route:a}}function Ta(t,{pathname:a,routeId:i,method:l,type:o,message:c}={}){let h="Unknown Server Error",f="Unknown @remix-run/router error";return t===400?(h="Bad Request",l&&a&&i?f=`You made a ${l} request to "${a}" but did not provide a \`loader\` for route "${i}", so there is no way to handle the request.`:o==="invalid-body"&&(f="Unable to encode submission body")):t===403?(h="Forbidden",f=`Route "${i}" does not match URL "${a}"`):t===404?(h="Not Found",f=`No route matches URL "${a}"`):t===405&&(h="Method Not Allowed",l&&a&&i?f=`You made a ${l.toUpperCase()} request to "${a}" but did not provide an \`action\` for route "${i}", so there is no way to handle the request.`:l&&(f=`Invalid request method "${l.toUpperCase()}"`)),new Rr(t||500,h,new Error(f),!0)}function tc(t){let a=Object.entries(t);for(let i=a.length-1;i>=0;i--){let[l,o]=a[i];if(Qi(o))return{key:l,result:o}}}function Fp(t){let a=typeof t=="string"?rn(t):t;return sn({...a,hash:""})}function Z8(t,a){return t.pathname!==a.pathname||t.search!==a.search?!1:t.hash===""?a.hash!=="":t.hash===a.hash?!0:a.hash!==""}function J8(t){return new Rr(t.init?.status??500,t.init?.statusText??"Internal Server Error",t.data)}function W8(t){return t!=null&&typeof t=="object"&&Object.entries(t).every(([a,i])=>typeof a=="string"&&eb(i))}function eb(t){return t!=null&&typeof t=="object"&&"type"in t&&"result"in t&&(t.type==="data"||t.type==="error")}function tb(t){return I0(t.result)&&jp.has(t.result.status)}function ma(t){return t.type==="error"}function Qi(t){return(t&&t.type)==="redirect"}function B3(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function I0(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function ab(t){return jp.has(t)}function nb(t){return I0(t)&&ab(t.status)&&t.headers.has("Location")}function ib(t){return U8.has(t.toUpperCase())}function Gt(t){return O8.has(t.toUpperCase())}function j0(t){return new URLSearchParams(t).getAll("index").some(a=>a==="")}
10function mc(t,a){let i=typeof a=="string"?rn(a).search:a.search;if(t[t.length-1].route.index&&j0(i||""))return t[t.length-1];let l=Np(t);return l[l.length-1]}function P3(t){let{formMethod:a,formAction:i,formEncType:l,text:o,formData:c,json:h}=t;if(!(!a||!i||!l)){if(o!=null)return{formMethod:a,formAction:i,formEncType:l,formData:void 0,json:void 0,text:o};if(c!=null)return{formMethod:a,formAction:i,formEncType:l,formData:c,json:void 0,text:void 0};if(h!==void 0)return{formMethod:a,formAction:i,formEncType:l,formData:void 0,json:h,text:void 0}}}function bd(t,a){return a?{state:"loading",location:t,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function sb(t,a){return{state:"submitting",location:t,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function nr(t,a){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:a}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function lb(t,a){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:a?a.data:void 0}}function Dn(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function rb(t,a){try{let i=t.sessionStorage.getItem(Bp);if(i){let l=JSON.parse(i);for(let[o,c]of Object.entries(l||{}))c&&Array.isArray(c)&&a.set(o,new Set(c||[]))}}catch{}}function ob(t,a){if(a.size>0){let i={};for(let[l,o]of a)i[l]=[...o];try{t.sessionStorage.setItem(Bp,JSON.stringify(i))}catch(l){pt(!1,`Failed to save applied view transitions in sessionStorage (${l}).`)}}}function H3(){let t,a,i=new Promise((l,o)=>{t=async c=>{l(c);try{await i}catch{}},a=async c=>{o(c);try{await i}catch{}}});return{promise:i,resolve:t,reject:a}}var ns=y.createContext(null);ns.displayName="DataRouter";var kr=y.createContext(null);kr.displayName="DataRouterState";var Xp=y.createContext(!1);function Qp(){return y.useContext(Xp)}var B0=y.createContext({isTransitioning:!1});B0.displayName="ViewTransition";var Zp=y.createContext(new Map);Zp.displayName="Fetchers";var cb=y.createContext(null);cb.displayName="Await";var Aa=y.createContext(null);Aa.displayName="Navigation";var Hc=y.createContext(null);Hc.displayName="Location";var Va=y.createContext({outlet:null,matches:[],isDataRoute:!1});Va.displayName="Route";var P0=y.createContext(null);P0.displayName="RouteError";var Jp="REACT_ROUTER_ERROR",ub="REDIRECT",hb="ROUTE_ERROR_RESPONSE";function db(t){if(t.startsWith(`${Jp}:${ub}:{`))try{let a=JSON.parse(t.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function fb(t){if(t.startsWith(`${Jp}:${hb}:{`))try{let a=JSON.parse(t.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new Rr(a.status,a.statusText,a.data)}catch{}}function mb(t,{relative:a}={}){Ae(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=y.useContext(Aa),{hash:o,pathname:c,search:h}=Ar(t,{relative:a}),f=c;return i!=="/"&&(f=c==="/"?i:qa([i,c])),l.createHref({pathname:f,search:h,hash:o})}function Dr(){return y.useContext(Hc)!=null}function Ya(){return Ae(Dr(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Hc).location}var Wp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function e_(t){y.useContext(Aa).static||y.useLayoutEffect(t)}function Gc(){let{isDataRoute:t}=y.useContext(Va);return t?Mb():gb()}function gb(){Ae(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let t=y.useContext(ns),{basename:a,navigator:i}=y.useContext(Aa),{matches:l}=y.useContext(Va),{pathname:o}=Ya(),c=JSON.stringify(z0(l)),h=y.useRef(!1);return e_(()=>{h.current=!0}),y.useCallback((g,m={})=>
10{if(pt(h.current,Wp),!h.current)return;if(typeof g=="number"){i.go(g);return}let _=Pc(g,JSON.parse(c),o,m.relative==="path");t==null&&a!=="/"&&(_.pathname=_.pathname==="/"?a:qa([a,_.pathname])),(m.replace?i.replace:i.push)(_,m.state,m)},[a,i,c,o,t])}var pb=y.createContext(null);function _b(t){let a=y.useContext(Va).outlet;return y.useMemo(()=>a&&y.createElement(pb.Provider,{value:t},a),[a,t])}function t_(){let{matches:t}=y.useContext(Va),a=t[t.length-1];return a?a.params:{}}function Ar(t,{relative:a}={}){let{matches:i}=y.useContext(Va),{pathname:l}=Ya(),o=JSON.stringify(z0(i));return y.useMemo(()=>Pc(t,JSON.parse(o),l,a==="path"),[t,o,l,a])}function vb(t,a,i){Ae(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=y.useContext(Aa),{matches:o}=y.useContext(Va),c=o[o.length-1],h=c?c.params:{},f=c?c.pathname:"/",g=c?c.pathnameBase:"/",m=c&&c.route;{let M=m&&m.path||"";i_(f,!m||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
12Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let _=Ya(),b;b=_;let E=b.pathname||"/",w=E;if(g!=="/"){let M=g.replace(/^\//,"").split("/");w="/"+E.replace(/^\//,"").split("/").slice(M.length).join("/")}let x=pi(t,{pathname:w});return pt(m||x!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),pt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Eb(x&&x.map(M=>Object.assign({},M,{params:Object.assign({},h,M.params),pathname:qa([g,l.encodeLocation?l.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?g:qa([g,l.encodeLocation?l.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),o,i)}function yb(){let t=n_(),a=tl(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},h=null;return h=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:c},"ErrorBoundary")," or"," ",y.createElement("code",{style:c},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},a),i?y.createElement("pre",{style:o},i):null,h)}var bb=y.createElement(yb,null),a_=class extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){this.props.onError&&this.props.onError(t,a)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const i=fb(t.digest);i&&(t=i)}let a=t!==void 0?y.createElement(Va.Provider,{value:this.props.routeContext},y.createElement(P0.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?y.createElement(wb,{error:t},a):a}};a_.contextType=Xp;var wd=new WeakMap;function wb({children:t,error:a}){let{basename:i}=y.useContext(Aa);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let l=db(a.digest);if(l){let o=wd.get(a);if(o)throw o;let c=zp(l.location,i);if(Up&&!wd.get(a))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||
12c.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw wd.set(a,h),h}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return t}function Sb({routeContext:t,match:a,children:i}){let l=y.useContext(ns);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),y.createElement(Va.Provider,{value:t},i)}function Eb(t,a=[],i){let l=i?.state;if(t==null){if(!l)return null;if(l.errors)t=l.matches;else if(a.length===0&&!l.initialized&&l.matches.length>0)t=l.matches;else return null}let o=t,c=l?.errors;if(c!=null){let _=o.findIndex(b=>b.route.id&&c?.[b.route.id]!==void 0);Ae(_>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,_+1))}let h=!1,f=-1;if(i&&l){h=l.renderFallback;for(let _=0;_<o.length;_++){let b=o[_];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(f=_),b.route.id){let{loaderData:E,errors:w}=l,x=b.route.loader&&!E.hasOwnProperty(b.route.id)&&(!w||w[b.route.id]===void 0);if(b.route.lazy||x){i.isStatic&&(h=!0),f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}}let g=i?.onError,m=l&&g?(_,b)=>{g(_,{location:l.location,params:l.matches?.[0]?.params??{},unstable_pattern:Mr(l.matches),errorInfo:b})}:void 0;return o.reduceRight((_,b,E)=>{let w,x=!1,A=null,M=null;l&&(w=c&&b.route.id?c[b.route.id]:void 0,A=b.route.errorElement||bb,h&&(f<0&&E===0?(i_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,M=null):f===E&&(x=!0,M=b.route.hydrateFallbackElement||null)));let z=a.concat(o.slice(0,E+1)),G=()=>{let U;return w?U=A:x?U=M:b.route.Component?U=y.createElement(b.route.Component,null):b.route.element?U=b.route.element:U=_,y.createElement(Sb,{match:b,routeContext:{outlet:_,matches:z,isDataRoute:l!=null},children:U})};return l&&(b.route.ErrorBoundary||b.route.errorElement||E===0)?y.createElement(a_,{location:l.location,revalidation:l.revalidation,component:A,error:w,children:G(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:m}):G()},null)}function H0(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function xb(t){let a=y.useContext(ns);return Ae(a,H0(t)),a}function Cb(t){let a=y.useContext(kr);return Ae(a,H0(t)),a}function Tb(t){let a=y.useContext(Va);return Ae(a,H0(t)),a}function G0(t){let a=Tb(t),i=a.matches[a.matches.length-1];return Ae(i.route.id,`${t} can only be used on routes that contain a unique "id"`),i.route.id}function Rb(){return G0("useRouteId")}function n_(){let t=y.useContext(P0),a=Cb("useRouteError"),i=G0("useRouteError");return t!==void 0?t:a.errors?.[i]}function Mb(){let{router:t}=xb("useNavigate"),a=G0("useNavigate"),i=y.useRef(!1);return e_(()=>{i.current=!0}),y.useCallback(async(o,c={})=>{pt(i.current,Wp),i.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:a,...c}))},[t,a])}var G3={};function i_(t,a,i){!a&&!G3[t]&&(G3[t]=!0,pt(!1,i))}var q3={};function V3(t,a){!t&&!q3[a]&&(q3[a]=!0)}var kb="useOptimistic",Y3=a6[kb],Db=()=>{};function Ab(t){return Y3?Y3(t):[t,Db]}function Ob(t){let a={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&pt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(a,{element:y.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&pt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(a,{hydrateFallbackElement:y.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&pt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(a,{errorElement:y.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),a}var Nb=["HydrateFallback","hydrateFallbackElement"],Ub=class{constructor(){this.status="pending",this.promise=new Promise((t,a)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",t(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",a(i))}})}};function zb({router:t,flushSync:a,onError:i,unstable_useTransitions:l}){l=Qp()||l;let[c,h]=y.useState(t.state),[f,g]=Ab(c),[m,_]=y.useState(),[b,E]=y.useState({isTransitioning:!1}),[w,x]=y.useState(),[A,M]=y.useState(),[z,G]=y.useState(),U=y.useRef(new Map),L=y.useCallback((R,{deletedFetchers:Z,newErrors:J,flushSync:re,viewTransitionOpts:fe})=>{J&&i&&Object.values(J).forEach(Ce=>i(Ce,{location:R.location,params:R.matches[0]?.params??{},unstable_pattern:Mr(R.matches)}
12)),R.fetchers.forEach((Ce,pe)=>{Ce.data!==void 0&&U.current.set(pe,Ce.data)}),Z.forEach(Ce=>U.current.delete(Ce)),V3(re===!1||a!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Be=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(V3(fe==null||Be,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!fe||!Be){a&&re?a(()=>h(R)):l===!1?h(R):y.startTransition(()=>{l===!0&&g(Ce=>$3(Ce,R)),h(R)});return}if(a&&re){a(()=>{A&&(w?.resolve(),A.skipTransition()),E({isTransitioning:!0,flushSync:!0,currentLocation:fe.currentLocation,nextLocation:fe.nextLocation})});let Ce=t.window.document.startViewTransition(()=>{a(()=>h(R))});Ce.finished.finally(()=>{a(()=>{x(void 0),M(void 0),_(void 0),E({isTransitioning:!1})})}),a(()=>M(Ce));return}A?(w?.resolve(),A.skipTransition(),G({state:R,currentLocation:fe.currentLocation,nextLocation:fe.nextLocation})):(_(R),E({isTransitioning:!0,flushSync:!1,currentLocation:fe.currentLocation,nextLocation:fe.nextLocation}))},[t.window,a,A,w,l,g,i]);y.useLayoutEffect(()=>t.subscribe(L),[t,L]),y.useEffect(()=>{b.isTransitioning&&!b.flushSync&&x(new Ub)},[b]),y.useEffect(()=>{if(w&&m&&t.window){let R=m,Z=w.promise,J=t.window.document.startViewTransition(async()=>{l===!1?h(R):y.startTransition(()=>{l===!0&&g(re=>$3(re,R)),h(R)}),await Z});J.finished.finally(()=>{x(void 0),M(void 0),_(void 0),E({isTransitioning:!1})}),M(J)}},[m,w,t.window,l,g]),y.useEffect(()=>{w&&m&&f.location.key===m.location.key&&w.resolve()},[w,A,f.location,m]),y.useEffect(()=>{!b.isTransitioning&&z&&(_(z.state),E({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}),G(void 0))},[b.isTransitioning,z]);let X=y.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:R=>t.navigate(R),push:(R,Z,J)=>t.navigate(R,{state:Z,preventScrollReset:J?.preventScrollReset}),replace:(R,Z,J)=>t.navigate(R,{replace:!0,state:Z,preventScrollReset:J?.preventScrollReset})}),[t]),te=t.basename||"/",V=y.useMemo(()=>({router:t,navigator:X,static:!1,basename:te,onError:i}),[t,X,te,i]);return y.createElement(y.Fragment,null,y.createElement(ns.Provider,{value:V},y.createElement(kr.Provider,{value:f},y.createElement(Zp.Provider,{value:U.current},y.createElement(B0.Provider,{value:b},y.createElement(Bb,{basename:te,location:f.location,navigationType:f.historyAction,navigator:X,unstable_useTransitions:l},y.createElement(Lb,{routes:t.routes,future:t.future,state:f,isStatic:!1,onError:i})))))),null)}function $3(t,a){return{...t,navigation:a.navigation.state!=="idle"?a.navigation:t.navigation,revalidation:a.revalidation!=="idle"?a.revalidation:t.revalidation,actionData:a.navigation.state!=="submitting"?a.actionData:t.actionData,fetchers:a.fetchers}}var Lb=y.memo(Ib);function Ib({routes:t,future:a,state:i,isStatic:l,onError:o}){return vb(t,void 0,{state:i,isStatic:l,onError:o})}function jb(t){return _b(t.context)}function Bb({basename:t="/",children:a=null,location:i,navigationType:l="POP",navigator:o,static:c=!1,unstable_useTransitions:h}){Ae(!Dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=t.replace(/^\/*/,"/"),g=y.useMemo(()=>({basename:f,navigator:o,static:c,unstable_useTransitions:h,future:{}}),[f,o,c,h]);typeof i=="string"&&(i=rn(i));let{pathname:m="/",search:_="",hash:b="",state:E=null,key:w="default",unstable_mask:x}=i,A=y.useMemo(()=>{let M=ka(m,f);return M==null?null:{location:{pathname:M,search:_,hash:b,state:E,key:w,unstable_mask:x},navigationType:l}},[f,m,_,b,E,w,l,x]);return pt(A!=null,`<Router basename="${f}"> is not able to match the URL "${m}${_}${b}
12" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:y.createElement(Aa.Provider,{value:g},y.createElement(Hc.Provider,{children:a,value:A}))}var gc="get",pc="application/x-www-form-urlencoded";function qc(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Pb(t){return qc(t)&&t.tagName.toLowerCase()==="button"}function Hb(t){return qc(t)&&t.tagName.toLowerCase()==="form"}function Gb(t){return qc(t)&&t.tagName.toLowerCase()==="input"}function qb(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Vb(t,a){return t.button===0&&(!a||a==="_self")&&!qb(t)}function d0(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((a,i)=>{let l=t[i];return a.concat(Array.isArray(l)?l.map(o=>[i,o]):[[i,l]])},[]))}function Yb(t,a){let i=d0(t);return a&&a.forEach((l,o)=>{i.has(o)||a.getAll(o).forEach(c=>{i.append(o,c)})}),i}var ac=null;function $b(){if(ac===null)try{new FormData(document.createElement("form"),0),ac=!1}catch{ac=!0}return ac}var Kb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sd(t){return t!=null&&!Kb.has(t)?(pt(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pc}"`),null):t}function Fb(t,a){let i,l,o,c,h;if(Hb(t)){let f=t.getAttribute("action");l=f?ka(f,a):null,i=t.getAttribute("method")||gc,o=Sd(t.getAttribute("enctype"))||pc,c=new FormData(t)}else if(Pb(t)||Gb(t)&&(t.type==="submit"||t.type==="image")){let f=t.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=t.getAttribute("formaction")||f.getAttribute("action");if(l=g?ka(g,a):null,i=t.getAttribute("formmethod")||f.getAttribute("method")||gc,o=Sd(t.getAttribute("formenctype"))||Sd(f.getAttribute("enctype"))||pc,c=new FormData(f,t),!$b()){let{name:m,type:_,value:b}=t;if(_==="image"){let E=m?`${m}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else m&&c.append(m,b)}}else{if(qc(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=gc,l=null,o=pc,h=t}return c&&o==="text/plain"&&(h=c,c=void 0),{action:l,method:i.toLowerCase(),encType:o,formData:c,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function q0(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function s_(t,a,i,l){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:a&&ka(o.pathname,a)==="/"?o.pathname=`${a.replace(/\/$/,"")}/_root.${l}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${l}`,o}async function Xb(t,a){if(t.id in a)return a[t.id];try{let i=await import(t.module);return a[t.id]=i,i}catch{return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Qb(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Zb(t,a,i){let l=await Promise.all(t.map(async o=>{let c=a.routes[o.route.id];if(c){let h=await Xb(c,i);return h.links?h.links():[]}return[]}));return tw(l.flat(1).filter(Qb).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function K3(t,a,i,l,o,c){let h=(g,m)=>i[m]?g.route.id!==i[m].route.id:!0,f=(g,m)=>i[m].pathname!==g.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==g.params["*"];return c==="assets"?a.filter((g,m)=>h(g,m)||f(g,m)):c==="data"?a.filter((g,m)=>{let _=l.routes[g.route.id];if(!_||!_.hasLoader)return!1;if(h(g,m)||f(g,m))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Jb(t,a,{includeHydrateFallback:i}={}){return Wb(t.map(l=>{let o=a.routes[l.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function Wb(t){return[...new Set(t)]}function ew(t){let a={},i=Object.keys(t).sort();for(let l of i)a[l]=t[l];return a}function tw(t,a){let i=new Set;
12return new Set(a),t.reduce((l,o)=>{let c=JSON.stringify(ew(o));return i.has(c)||(i.add(c),l.push({key:c,link:o})),l},[])}function V0(){let t=y.useContext(ns);return q0(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function aw(){let t=y.useContext(kr);return q0(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Y0=y.createContext(void 0);Y0.displayName="FrameworkContext";function $0(){let t=y.useContext(Y0);return q0(t,"You must render this element inside a <HydratedRouter> element"),t}function nw(t,a){let i=y.useContext(Y0),[l,o]=y.useState(!1),[c,h]=y.useState(!1),{onFocus:f,onBlur:g,onMouseEnter:m,onMouseLeave:_,onTouchStart:b}=a,E=y.useRef(null);y.useEffect(()=>{if(t==="render"&&h(!0),t==="viewport"){let A=z=>{z.forEach(G=>{h(G.isIntersecting)})},M=new IntersectionObserver(A,{threshold:.5});return E.current&&M.observe(E.current),()=>{M.disconnect()}}},[t]),y.useEffect(()=>{if(l){let A=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(A)}}},[l]);let w=()=>{o(!0)},x=()=>{o(!1),h(!1)};return i?t!=="intent"?[c,E,{}]:[c,E,{onFocus:ir(f,w),onBlur:ir(g,x),onMouseEnter:ir(m,w),onMouseLeave:ir(_,x),onTouchStart:ir(b,w)}]:[!1,E,{}]}function ir(t,a){return i=>{t&&t(i),i.defaultPrevented||a(i)}}function iw({page:t,...a}){let i=Qp(),{router:l}=V0(),o=y.useMemo(()=>pi(l.routes,t,l.basename),[l.routes,t,l.basename]);return o?i?y.createElement(lw,{page:t,matches:o,...a}):y.createElement(rw,{page:t,matches:o,...a}):null}function sw(t){let{manifest:a,routeModules:i}=$0(),[l,o]=y.useState([]);return y.useEffect(()=>{let c=!1;return Zb(t,a,i).then(h=>{c||o(h)}),()=>{c=!0}},[t,a,i]),l}function lw({page:t,matches:a,...i}){let l=Ya(),{future:o}=$0(),{basename:c}=V0(),h=y.useMemo(()=>{if(t===l.pathname+l.search+l.hash)return[];let f=s_(t,c,o.unstable_trailingSlashAwareDataRequests,"rsc"),g=!1,m=[];for(let _ of a)typeof _.route.shouldRevalidate=="function"?g=!0:m.push(_.route.id);return g&&m.length>0&&f.searchParams.set("_routes",m.join(",")),[f.pathname+f.search]},[c,o.unstable_trailingSlashAwareDataRequests,t,l,a]);return y.createElement(y.Fragment,null,h.map(f=>y.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...i})))}function rw({page:t,matches:a,...i}){let l=Ya(),{future:o,manifest:c,routeModules:h}=$0(),{basename:f}=V0(),{loaderData:g,matches:m}=aw(),_=y.useMemo(()=>K3(t,a,m,c,l,"data"),[t,a,m,c,l]),b=y.useMemo(()=>K3(t,a,m,c,l,"assets"),[t,a,m,c,l]),E=y.useMemo(()=>{if(t===l.pathname+l.search+l.hash)return[];let A=new Set,M=!1;if(a.forEach(G=>{let U=c.routes[G.route.id];!U||!U.hasLoader||(!_.some(L=>L.route.id===G.route.id)&&G.route.id in g&&h[G.route.id]?.shouldRevalidate||U.hasClientLoader?M=!0:A.add(G.route.id))}),A.size===0)return[];let z=s_(t,f,o.unstable_trailingSlashAwareDataRequests,"data");return M&&A.size>0&&z.searchParams.set("_routes",a.filter(G=>A.has(G.route.id)).map(G=>G.route.id).join(",")),[z.pathname+z.search]},[f,o.unstable_trailingSlashAwareDataRequests,g,l,c,_,a,t,h]),w=y.useMemo(()=>Jb(b,c),[b,c]),x=sw(b);return y.createElement(y.Fragment,null,E.map(A=>y.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...i})),w.map(A=>y.createElement("link",{key:A,rel:"modulepreload",href:A,...i})),x.map(({key:A,link:M})=>y.createElement("link",{key:A,nonce:i.nonce,...M,crossOrigin:M.crossOrigin??i.crossOrigin})))}function ow(...t){return a=>{t.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var cw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cw&&(window.__reactRouterVersion="7.14.0")}catch{}function uw(t,a){return j8({basename:a?.basename,getContext:a?.getContext,future:a?.future,history:e8({window:a?.window}),hydrationData:hw(),routes:t,mapRouteProperties:Ob,hydrationRouteProperties:Nb,dataStrategy:a?.dataStrategy,patchRoutesOnNavigation:a?.patchRoutesOnNavigation,window:a?.window,unstable_instrumentations:a?.unstable_instrumentations}).initialize()}function hw(){let t=window?.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:dw(t.errors)}),t}function dw(t){if(!t)return null;let a=Object.entries(t),i={};for(let[l,o]of a)if(o&&o.__type==="RouteErrorResponse")i[l]=new Rr(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let c=window[o.__subType];if(typeof c=="function")try{let h=new c(o.message);h.stack="",i[l]=h}catch{}}if(i[l]==null){let c=new Error(o.message);c.stack="",i[l]=c}}else i[l]=o;return i}var l_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,It=y.forwardRef(function({onClick:a,discover:i="render",prefetch:l="none",relative:o,reloadDocument:c,replace:h,unstable_mask:f,state:g,target:m,to:_,preventScrollReset:b,viewTransition:E,unstable_defaultShouldRevalidate:w,...x},A){let{basename:M,navigator:z,unstable_useTransitions:G}=y.useContext(Aa),U=typeof _=="string"&&l_.test(_),L=zp(_,M);_=L.to;let X=mb(_,{relative:o}),te=Ya(),V=null;if(f){let pe=Pc(f,[],te.unstable_mask?te.unstable_mask.pathname:"/",!0);M!=="/"&&(pe.pathname=pe.pathname==="/"?M:qa([M,pe.pathname])),V=z.createHref(pe)}let[R,Z,J]=nw(l,x),re=pw(_,{replace:h,unstable_mask:f,state:g,target:m,preventScrollReset:b,relative:o,viewTransition:E,unstable_defaultShouldRevalidate:w,unstable_useTransitions:G});function fe(pe){a&&a(pe),pe.defaultPrevented||re(pe)}let Be=!(L.isExternal||c),Ce=y.createElement("a",{...x,...J,href:(Be?V:void 0)||L.absoluteURL||X,onClick:Be?fe:a,ref:ow(A,Z),target:m,"data-discover":!U&&i==="render"?"true":void 0});return R&&!U?y.createElement(y.Fragment,null,Ce,y.createElement(iw,{page:X})):Ce});It.displayName="Link";var fw=y.forwardRef(function({"aria-current":a="page",caseSensitive:i=!1,className:l="",end:o=!1,style:c,to:h,viewTransition:f,children:g,...m},_){let b=Ar(h,{relative:m.relative}),E=Ya(),w=y.useContext(kr),{navigator:x,basename:A}=y.useContext(Aa),M=w!=null&&ww(b)&&f===!0,z=x.encodeLocation?x.encodeLocation(b).pathname:b.pathname,G=E.pathname,U=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(G=G.toLowerCase(),U=U?U.toLowerCase():null,z=z.toLowerCase()),U&&A&&(U=ka(U,A)||U);const L=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let X=G===z||!o&&G.startsWith(z)&&G.charAt(L)==="/",te=U!=null&&(U===z||!o&&U.startsWith(z)&&U.charAt(z.length)==="/"),V={isActive:X,isPending:te,isTransitioning:M},R=X?a:void 0,Z;typeof l=="function"?Z=l(V):Z=[l,X?"active":null,te?"pending":null,M?"transitioning":null].filter(
12Boolean).join(" ");let J=typeof c=="function"?c(V):c;return y.createElement(It,{...m,"aria-current":R,className:Z,ref:_,style:J,to:h,viewTransition:f},typeof g=="function"?g(V):g)});fw.displayName="NavLink";var mw=y.forwardRef(({discover:t="render",fetcherKey:a,navigate:i,reloadDocument:l,replace:o,state:c,method:h=gc,action:f,onSubmit:g,relative:m,preventScrollReset:_,viewTransition:b,unstable_defaultShouldRevalidate:E,...w},x)=>{let{unstable_useTransitions:A}=y.useContext(Aa),M=yw(),z=bw(f,{relative:m}),G=h.toLowerCase()==="get"?"get":"post",U=typeof f=="string"&&l_.test(f),L=X=>{if(g&&g(X),X.defaultPrevented)return;X.preventDefault();let te=X.nativeEvent.submitter,V=te?.getAttribute("formmethod")||h,R=()=>M(te||X.currentTarget,{fetcherKey:a,method:V,navigate:i,replace:o,state:c,relative:m,preventScrollReset:_,viewTransition:b,unstable_defaultShouldRevalidate:E});A&&i!==!1?y.startTransition(()=>R()):R()};return y.createElement("form",{ref:x,method:G,action:z,onSubmit:l?g:L,...w,"data-discover":!U&&t==="render"?"true":void 0})});mw.displayName="Form";function gw(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function r_(t){let a=y.useContext(ns);return Ae(a,gw(t)),a}function pw(t,{target:a,replace:i,unstable_mask:l,state:o,preventScrollReset:c,relative:h,viewTransition:f,unstable_defaultShouldRevalidate:g,unstable_useTransitions:m}={}){let _=Gc(),b=Ya(),E=Ar(t,{relative:h});return y.useCallback(w=>{if(Vb(w,a)){w.preventDefault();let x=i!==void 0?i:sn(b)===sn(E),A=()=>_(t,{replace:x,unstable_mask:l,state:o,preventScrollReset:c,relative:h,viewTransition:f,unstable_defaultShouldRevalidate:g});m?y.startTransition(()=>A()):A()}},[b,_,E,i,l,o,a,t,c,h,f,g,m])}function o_(t){pt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=y.useRef(d0(t)),i=y.useRef(!1),l=Ya(),o=y.useMemo(()=>Yb(l.search,i.current?null:a.current),[l.search]),c=Gc(),h=y.useCallback((f,g)=>{const m=d0(typeof f=="function"?f(new URLSearchParams(o)):f);i.current=!0,c("?"+m,g)},[c,o]);return[o,h]}var _w=0,vw=()=>`__${String(++_w)}__`;function yw(){let{router:t}=r_("useSubmit"),{basename:a}=y.useContext(Aa),i=Rb(),l=t.fetch,o=t.navigate;return y.useCallback(async(c,h={})=>{let{action:f,method:g,encType:m,formData:_,body:b}=Fb(c,a);if(h.navigate===!1){let E=h.fetcherKey||vw();await l(E,i,h.action||f,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:_,body:b,formMethod:h.method||g,formEncType:h.encType||m,flushSync:h.flushSync})}else await o(h.action||f,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:_,body:b,formMethod:h.method||g,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:i,flushSync:h.flushSync,viewTransition:h.viewTransition})},[l,o,a,i])}function bw(t,{relative:a}={}){let{basename:i}=y.useContext(Aa),l=y.useContext(Va);Ae(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),c={...Ar(t||".",{relative:a})},h=Ya();if(t==null){c.search=h.search;let f=new URLSearchParams(c.search),g=f.getAll("index");if(g.some(_=>_==="")){f.delete("index"),g.filter(b=>b).forEach(b=>f.append("index",b));let _=f.toString();c.search=_?`?${_}`:""}}return(!t||t===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:qa([i,c.pathname])),sn(c)}function ww(t,{relative:a}={}){let i=y.useContext(B0);Ae(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=r_("useViewTransitionState"),o=Ar(t,{relative:a});if(!i.isTransitioning)return!1;let c=ka(i.currentLocation.pathname,l)||i.currentLocation.pathname,h=ka(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Mc(o.pathname,h)!=null||Mc(o.pathname,c)!=null}function Sw(){const{language:t,tr:a}=et();return v.jsx("main",{id:"main__container",children:v.jsxs("div",{className:"main__contents",children:[v.jsx("section",{className:"section__visual",children:v.jsxs("div",{className:"section__inner_contents",children:[v.jsx("div",{className:"visual__movie",children:v.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInl
12ine:!0,preload:"auto",children:v.jsx("source",{src:"/images/main/keyart_movie.webm",type:"video/webm"})})}),v.jsxs("div",{className:"visual__header",children:[v.jsx("h1",{className:"visual__header_title",children:v.jsx("img",{src:"/images/main/bridge_logo_texture.webp",alt:"PUBG BRIDGE"})}),v.jsx("div",{className:"visual__description",children:v.jsx("p",{dangerouslySetInnerHTML:{__html:a("BRIDGE:MAIN_BODY_4")}})})]}),v.jsx("div",{className:"scroll_motion__box"})]})}),v.jsx("section",{className:"section__feature",children:v.jsxs("div",{className:"section__inner_contents",children:[v.jsx("h2",{children:a("BRIDGE:MAIN_BODY_1")}),v.jsx(It,{to:`/${t}/2d-replay/list`,rel:"noopener",children:v.jsx("figure",{className:"feature__image",children:v.jsx("img",{src:"/images/main/thumbnail_2dreplay_large.webp",alt:"Feature Image"})})})]})}),v.jsx("div",{className:"section__feature_replay",children:v.jsxs("div",{className:"section__inner_contents",children:[v.jsx("h3",{children:a("BRIDGE:MAIN_BODY_3")}),v.jsx("p",{className:"replay__description",children:a("BRIDGE:MAIN_BODY_2")}),v.jsx(It,{to:`/${t}/2d-replay/list`,rel:"noopener",className:"primary__button medium",children:a("BRIDGE:MAIN_BUTTON_4")})]})})]})})}const Ew="_replay__controller_container_1mmzl_1",xw="_progress_bar__wrapper_1mmzl_12",Cw="_time_stamp_1mmzl_18",Tw="_replay__controller_1mmzl_1",Rw="_player__control_block_1mmzl_47",Mw="_player__speed_block_1mmzl_51",kw="_player__zoom_block_1mmzl_52",Dw="_vertical_divider_1mmzl_67",Aw="_speed_value_1mmzl_74",Ow="_zoom_buttons_1mmzl_83",Ht={replay__controller_container:Ew,progress_bar__wrapper:xw,time_stamp:Cw,replay__controller:Tw,player__control_block:Rw,player__speed_block:Mw,player__zoom_block:kw,vertical_divider:Dw,speed_value:Aw,zoom_buttons:Ow},Nw="_progress__wrapper_1n0g5_1",Uw="_progress__buffering_bar_1n0g5_9",zw="_progress__played_bar_1n0g5_16",Lw="_progress__played_circle_1n0g5_23",nc={progress__wrapper:Nw,progress__buffering_bar:Uw,progress__played_bar:zw,progress__played_circle:Lw},F3="rgba(175, 175, 175, 0.4)";function Iw(t,a){const i=jw(t),l=a+1,o=[];let c=0;return i.forEach(({start:h,end:f})=>{const g=Math.floor(h/l*100),m=Math.floor((f+1)/l*100);g>c&&(o.push(`transparent ${c}%`),o.push(`transparent ${g}%`)),o.push(`${F3} ${g}%`),o.push(`${F3} ${m}%`),c=m}),c<100&&(o.push(`transparent ${c}%`),o.push("transparent 100%")),`linear-gradient(to right, ${o.join(", ")})`}function jw(t){const a=Array.from(t).sort((o,c)=>o-c),i=[];let l=null;return a.forEach(o=>{l===null?l={start:o,end:o}:o===l.end+1?l.end=o:(i.push(l),l={start:o,end:o})}),l!==null&&i.push(l),i}function Bw(t,a){return`${t/a*100}%`}function Pw({replayController:t,progressBar:a,totalTime:i,setCurrentTime:l,currentTime:o,isPlaying:c}){const[h,f]=y.useState(!1),g=y.useCallback(E=>{const w=(()=>{const{left:A,right:M}=a.current?.getBoundingClientRect()??{left:0,right:0},z=M-A;return(("touches"in E?E.touches[0].clientX:E.clientX)-A)/z*100})(),x=Math.min(Math.floor(i*w/100),i);return l(x),x},[i,l,a]),m=y.useCallback(E=>{f(!0),t.pause();const w=g(E);t.isReplayDataPerMSCreated(w)?t.goToTime(w):t.showLoader(!0)},[t,g]),_=y.useCallback(E=>{if(!h)return;const w=g(E);t.isReplayDataPerMSCreated(w)?t.goToTime(w):t.showLoader(!0)},[t,g,h]),b=y.useCallback(()=>{h&&(f(!1),c&&t.play(),t.showLoader(!1),t.isReplayDataPerMSCreated(o)||t.goToTime(o))},[t,h,c,o]);return{handleMouseDown:m,handleMouseMove:_,handleMouseUp:b}}function Hw({replayController:t,isReplayDataProcessed:a,isPlaying:i,currentTime:l,totalTime:o,setCurrentTime:c,setTotalTime:h}){const f=y.useRef(null),{handleMouseDown:g,handleMouseMove:m,handleMouseUp:_}=Pw({replayController:t,progressBar:f,totalTime:o,setCurrentTime:c,currentTime:l,isPlaying:i});return y.useEffect(()=>{a&&(h(t.totalTime),t.addTimeChangeCallback(()=>c(t.currentTime)))},[t,a,h,c]),v.jsxs("div",{className:nc.progress__wrapper,ref:f,onMouseDown:g,onMouseMove:m,onMouseUp:_,onTouchStart:g,onTouchMove:m,onTouchEnd:_,children:[v.jsx("div",{className:nc.progress__buffering_bar,style:{background:Iw(t.processedChunkSet,t.maxChunkIndex)}}),v.jsx("div",{className:nc.progress__played_bar,style:{width:Bw(l,o)},children:v.jsx("span",{className:nc.progress__played_circle})})]})}const _c=[1,2,5,10,20];function Gw({replayController:t,setIsPlaying:a,playSpeedIndex:i,setPlaySpeedIndex:l}){const o=y.useCallback(()=>{t.play(),a(!0)},[t,a]),c=y.useCallback(()=>{t.pause(),a(!1)},[t,a]),h=y.useCallback(()=>
12{if(i===_c.length-1)return;const g=i+1;l(g),t.setPlaySpeed(_c[g])},[t,i,l]),f=y.useCallback(()=>{if(i===0)return;const g=i-1;l(g),t.setPlaySpeed(_c[g])},[t,i,l]);return{playReplay:o,stopReplay:c,increaseSpeed:h,decreaseSpeed:f}}const c_=t=>{const a=Math.floor(t/1e3),i=Math.floor(a/60);return`${String(i).padStart(2,"0")}:${String(a%60).padStart(2,"0")}`},qw=t=>c_(t),kc=t=>c_(t),sr={MINUTE_AGO:"BRIDGE:MATCH_BODY_5",HOUR_AGO:"BRIDGE:MATCH_BODY_6",DAY_AGO:"BRIDGE:MATCH_BODY_7",MONTH_AGO:"BRIDGE:MATCH_BODY_8"},Vw=(t,a=new Date)=>t?Math.floor(a.getTime()-new Date(t).getTime()):0,Yw=t=>{const a={SECOND:1e3,MINUTE:6e4,HOUR:36e5,DAY:864e5,MONTH:26784e5,YEAR:31536e6},i=+t/a.SECOND,l=+t/a.MINUTE,o=+t/a.HOUR,c=+t/a.DAY,h=+t/a.MONTH,f=+t/a.YEAR;return{seconds:Math.floor(i),minutes:Math.floor(l),hours:Math.floor(o),days:Math.floor(c),months:Math.floor(h),years:Math.floor(f)}};function $w(t){const a=new Date(t.endTime);if(!t.endTime||isNaN(a.getTime()))return{timeSinceNumber:null,timeSinceMatchLoc:null};const i=Vw(a),l=Yw(i),o=l.seconds,c=3600,h=c*24,f=h*31;return o<0?{timeSinceNumber:0,timeSinceMatchLoc:sr.MINUTE_AGO}:o<c?{timeSinceNumber:l.minutes,timeSinceMatchLoc:sr.MINUTE_AGO}:o>=c&&o<h?{timeSinceNumber:l.hours,timeSinceMatchLoc:sr.HOUR_AGO}:o>=h&&o<f?{timeSinceNumber:l.days,timeSinceMatchLoc:sr.DAY_AGO}:{timeSinceNumber:l.months,timeSinceMatchLoc:sr.MONTH_AGO}}const Kw=2;function Fw({replayController:t,isReplayDataProcessed:a}){const[l,o]=y.useState(!0),[c,h]=y.useState(Kw),[f,g]=y.useState(0),[m,_]=y.useState(0),{playReplay:b,stopReplay:E,increaseSpeed:w,decreaseSpeed:x}=Gw({replayController:t,setIsPlaying:o,playSpeedIndex:c,setPlaySpeedIndex:h});return y.useEffect(()=>{a&&(_(t.totalTime),t.addTimeChangeCallback(()=>g(t.currentTime)))},[t,a]),v.jsxs("div",{className:Ht.replay__controller_container,children:[v.jsxs("div",{className:Ht.progress_bar__wrapper,children:[v.jsx(Hw,{replayController:t,isReplayDataProcessed:a,isPlaying:l,currentTime:f,setCurrentTime:g,totalTime:m,setTotalTime:_}),v.jsxs("span",{className:Ht.time_stamp,children:[qw(f)," / ",kc(m)]})]}),v.jsxs("div",{className:Ht.replay__controller,children:[v.jsxs("div",{className:Ht.player__control_block,children:[v.jsx("button",{className:Ht.speed_down_button,onClick:x,children:v.jsx(xe,{name:"rewind"})}),v.jsx("button",{className:Ht.play_button,onClick:l?E:b,children:l?v.jsx(xe,{name:"pause"}):v.jsx(xe,{name:"play"})}),v.jsx("button",{className:Ht.speed_up_button,onClick:w,children:v.jsx(xe,{name:"fast_foward"})})]}),v.jsxs("div",{className:Ht.player__speed_block,children:[v.jsx(xe,{name:"play_speed"}),v.jsx("hr",{className:Ht.vertical_divider}),v.jsxs("span",{className:Ht.speed_value,children:["x",_c[c]]})]}),v.jsxs("div",{className:Ht.player__zoom_block,children:[v.jsx(xe,{name:"zoom"}),v.jsx("hr",{className:Ht.vertical_divider}),v.jsxs("span",{className:Ht.zoom_buttons,children:[v.jsx("button",{className:Ht.zoom_in_button,onClick:()=>t.zoom(1.3),children:v.jsx(xe,{name:"plus"})}),v.jsx("button",{className:Ht.zoom_out_button,onClick:()=>t.zoom(1/1.3),children:v.jsx(xe,{name:"minus"})})]})]})]})]})}const Xw="_match__info_block_u78mr_2",Qw="_match__info_item_u78mr_9",Zw="_match__info_value_u78mr_16",Jw="_match__info_placement_u78mr_19",Ww="_match__info_list_u78mr_20",e9="_match__t
12ype_u78mr_50",t9="_match__info_u78mr_2",a9="_is_mobile_u78mr_62",$t={match__info_block:Xw,match__info_item:Qw,match__info_value:Zw,match__info_placement:Jw,match__info_list:Ww,match__type:e9,match__info:t9,is_mobile:a9};var ic={},X3;function n9(){if(X3)return ic;X3=1,ic.match=c,ic.parse=h;var t=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,a=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,l=/(em|rem|px|cm|mm|in|pt|pc)?$/,o=/(dpi|dpcm|dppx)?$/;function c(_,b){return h(_).some(function(E){var w=E.inverse,x=E.type==="all"||b.type===E.type;if(x&&w||!(x||w))return!1;var A=E.expressions.every(function(M){var z=M.feature,G=M.modifier,U=M.value,L=b[z];if(!L)return!1;switch(z){case"orientation":case"scan":return L.toLowerCase()===U.toLowerCase();case"width":case"height":case"device-width":case"device-height":U=m(U),L=m(L);break;case"resolution":U=g(U),L=g(L);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":U=f(U),L=f(L);break;case"grid":case"color":case"color-index":case"monochrome":U=parseInt(U,10)||1,L=parseInt(L,10)||0;break}switch(G){case"min":return L>=U;case"max":return L<=U;default:return L===U}});return A&&!w||!A&&w})}function h(_){return _.split(",").map(function(b){b=b.trim();var E=b.match(t),w=E[1],x=E[2],A=E[3]||"",M={};return M.inverse=!!w&&w.toLowerCase()==="not",M.type=x?x.toLowerCase():"all",A=A.match(/\([^\)]+\)/g)||[],M.expressions=A.map(function(z){var G=z.match(a),U=G[1].toLowerCase().match(i);return{modifier:U[1],feature:U[2],value:G[2]}}),M})}function f(_){var b=Number(_),E;return b||(E=_.match(/^(\d+)\s*\/\s*(\d+)$/),b=E[1]/E[2]),b}function g(_){var b=parseFloat(_),E=String(_).match(o)[1];switch(E){case"dpcm":return b/2.54;case"dppx":return b*96;default:return b}}function m(_){var b=parseFloat(_),E=String(_).match(l)[1];switch(E){case"em":return b*16;case"rem":return b*16;case"cm":return b*96/2.54;case"mm":return b*96/2.54/10;case"in":return b*96;case"pt":return b*72;case"pc":return b*72/12;default:return b}}return ic}var Ed,Q3;function i9(){if(Q3)return Ed;Q3=1;var t=n9().match,a=typeof window<"u"?window.matchMedia:null;function i(o,c,h){var f=this,g;a&&!h&&(g=a.call(window,o)),g?(this.matches=g.matches,this.media=g.media,g.addListener(b)):(this.matches=t(o,c),this.media=o),this.addListener=m,this.removeListener=_,this.dispose=E;function m(w){g&&g.addListener(w)}function _(w){g&&g.removeListener(w)}function b(w){f.matches=w.matches,f.media=w.media}function E(){g&&g.removeListener(b)}}function l(o,c,h){return new i(o,c,h)}return Ed=l,Ed}var s9=i9();const l9=v0(s9);var r9=/[A-Z]/g,o9=/^ms-/,xd={};function c9(t){return"-"+t.toLowerCase()}function u_(t){if(xd.hasOwnProperty(t))return xd[t];var a=t.replace(r9,c9);return xd[t]=o9.test(a)?"-"+a:a}function u9(t,a){if(t===a)return!0;if(!t||!a)return!1;const i=Object.keys(t),l=Object.keys(a),o=i.length;if(l.length!==o)return!1;for(let c=0;c<o;c++){const h=i[c];if(t[h]!==a[h]||!Object.prototype.hasOwnProperty.call(a,h))return!1}return!0}var Cd={exports:{}},Td,Z3;function h9(){if(Z3)return Td;Z3=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Td=t,Td}var Rd,J3;function d9(){if(J3)return Rd;J3=1;var t=h9();function a(){}function i(){}return i.resetWarningCache=a,Rd=function(){function l(h,f,g,m,_,b){if(b!==t){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}l.isRequired=l;function o(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:o,element:l,elementType:l,instanceOf:o,node:l,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:i,resetWarningCache:a};return c.PropTypes=c,c},Rd}var W3;function f9(){return W3||(W3=1,Cd.exports=d9()()),Cd.exports}var m9=f9();const Ve=v0(m9),Kt=Ve.oneOfType([Ve.string,Ve.number]),h_={all:Ve.bool,grid:Ve.bool,aural:Ve.bool,braille:Ve.bool,handheld:Ve.bool,print:Ve.bool,projection:Ve.bool,screen:Ve.bool,tty:Ve.bool,tv:Ve.bool,embossed:Ve.bool},g9={orientation:Ve.oneOf(["portrait","landscape"]),scan:Ve.oneOf(["progressive","interlace"]),aspectRatio:Ve.string,deviceAspectRatio:Ve.string,height:Kt,deviceHeight:Kt,width:Kt,deviceWidth:Kt,color:Ve.bool,colorIndex:Ve.bool,monochrome:Ve.bool,resolution:Kt,type:Object.keys(h_)},{type:BR,...p9}=g9,_9={minAspectRatio:Ve.string,maxAspectRatio:Ve.string,minDeviceAspectRatio:Ve.string,maxDeviceAspectRatio:Ve.string,minHeight:Kt,maxHeight:Kt,minDeviceHeight:Kt,maxDeviceHeight:Kt,minWidth:Kt,maxWidth:Kt,minDeviceWidth:Kt,maxDeviceWidth:Kt,minColor:Ve.number,maxColor:Ve.number,minColorIndex:Ve.number,maxColorIndex:Ve.number,minMonochrome:Ve.number,maxMonochrome:Ve.number,minResolution:Kt,maxResolution:Kt,...p9},v9={...h_,..._9};var y9={all:v9};const b9=t=>`not ${t}`,w9=(t,a)=>{const i=u_(t);return typeof a=="number"&&(a=`${a}px`),a===!0?i:a===!1?b9(i):`(${i}: ${a})`},S9=t=>t.join(" and "),E9=t=>{const a=[];return Object.keys(y9.all).forEach(i=>
12{const l=t[i];l!=null&&a.push(w9(i,l))}),S9(a)},x9=y.createContext(void 0),C9=t=>t.query||E9(t),eg=t=>t?Object.keys(t).reduce((i,l)=>(i[u_(l)]=t[l],i),{}):void 0,d_=()=>{const t=y.useRef(!1);return y.useEffect(()=>{t.current=!0},[]),t.current},T9=t=>{const a=y.useContext(x9),i=()=>eg(t)||eg(a),[l,o]=y.useState(i);return y.useEffect(()=>{const c=i();u9(l,c)||o(c)},[t,a]),l},R9=t=>{const a=()=>C9(t),[i,l]=y.useState(a);return y.useEffect(()=>{const o=a();i!==o&&l(o)},[t]),i},M9=(t,a)=>{const i=()=>l9(t,a||{},!!a),[l,o]=y.useState(i),c=d_();return y.useEffect(()=>{if(c){const h=i();return o(h),()=>{h&&h.dispose()}}},[t,a]),l},k9=t=>{const[a,i]=y.useState(t.matches);return y.useEffect(()=>{const l=o=>{i(o.matches)};return t.addListener(l),i(t.matches),()=>{t.removeListener(l)}},[t]),a},Md=(t,a,i)=>{const l=T9(a),o=R9(t);if(!o)throw new Error("Invalid or missing MediaQuery!");const c=M9(o,l),h=k9(c);return d_(),y.useEffect(()=>{},[h]),y.useEffect(()=>()=>{c&&c.dispose()},[]),h};function zn(){const t=Md({minWidth:1280}),a=Md({maxWidth:1279,minWidth:768}),i=Md({maxWidth:767});return{isDesktop:t,isTablet:a,isMobile:i}}const D9={solo:"BRIDGE:MATCH_BODY_11",duo:"BRIDGE:MATCH_BODY_13",squad:"BRIDGE:MATCH_BODY_15","solo-fpp":"BRIDGE:MATCH_BODY_10","duo-fpp":"BRIDGE:MATCH_BODY_12","squad-fpp":"BRIDGE:MATCH_BODY_14"},A9={ERANGEL_MAIN:"BRIDGE:MATCH_BODY_16",BALTIC_MAIN:"BRIDGE:MATCH_BODY_17",DESERT_MAIN:"BRIDGE:MATCH_BODY_18",SAVAGE_MAIN:"BRIDGE:MATCH_BODY_19",DIHOROTOK_MAIN:"BRIDGE:MATCH_BODY_20",SUMMERLAND_MAIN:"BRIDGE:MATCH_BODY_21",CHIMERA_MAIN:"BRIDGE:MATCH_BODY_22",HEAVEN_MAIN:"BRIDGE:MATCH_BODY_23",TIGER_MAIN:"BRIDGE:MATCH_BODY_24",KIKI_MAIN:"BRIDGE:MATCH_BODY_25",NEON_MAIN:"BRIDGE:MATCH_BODY_26"},sc=t=>!t.rankPointsAfterMatch||!t.rankPointsBeforeMatch?0:t.rankPointsAfterMatch-t.rankPointsBeforeMatch,kd=t=>t.split(".")[2]==="competitive",f_=t=>{const a=t.split(".")[2];return{official:"BRIDGE:MATCH_BODY_3",competitive:"BRIDGE:MATCH_BODY_4",seasonal:"BRIDGE:MATCH_BODY_29",airoyale:"BRIDGE:MATCH_BODY_30"}[a]??""},m_=t=>{const a=t.split(".")[5];return D9[a]||""},O9=(t,a="webp")=>{const i=t.wasRankPointPlacementMatch&&!t.wasRankPointFinalPlacementMatch,l=["Master","Survivor"];return i?`/images/tier-icon/T_RankIcon_Unranked.${a}`:l.includes(t.rankAfterMatch.tier)?`/images/tier-icon/T_RankIcon_${t.rankAfterMatch.tier}.${a}`:`/images/tier-icon/T_RankIcon_${t.rankAfterMatch.tier}_${t.rankAfterMatch.subTier}.${a}`},g_=t=>A9[t.toUpperCase().trim()]||t.toUpperCase().trim();function tg({squadPlacement:t,mapName:a,totalSquads:i,timePlayed:l}){const{isMobile:o}=zn(),{tr:c}=et(),{matchId:h}=t_();return v.jsxs("div",{className:`${$t.match__info_block}${o?` ${$t.is_mobile}`:""}`,children:[v.jsxs("div",{className:$t.match__info_placement,children:[v.jsx("span",{className:$t.match__info_item,children:c("BRIDGE:MATCH_BODY_27")}),v.jsxs("div",{className:$t.match__info_value,children:[v.jsxs("strong",{className:t===1?"highlight":"",children:["#",t]}),v.jsxs("i",{children:["/",i]})]})]}),v.jsxs("ul",{className:$t.match__info_list,children:[v.jsxs("li",{className:$t.match__type,children:[v.jsx("span",{className:$t.match__info_item,children:c("BRIDGE:MATCH_BODY_31")}),v.jsxs("div",{className:$t.match__info_value,children:[v.jsx("span",{className:$t.match__info,children:c(f_(h??""))}),v.jsx("span",{className:$t.match__info,children:c(m_(h??""))})]})]}),v.jsxs("li",{children:[v.jsx("span",{className:$t.match__info_item,children:c("BRIDGE:MATCH_BODY_32")}),v.jsx("div",{className:$t.match__info_value,children:c(g_(a))})]}),v.jsxs("li",{children:[v.jsx("span",{className:$t.match__info_item,children:c("BRIDGE:MATCH_TITLE_3")}),v.jsx("div",{className:$t.match__info_value,children:l})]})]})]})}class N9{teamMap=new Map;isSolo=!1;constructor(a,i){this.isSolo=i===1,a.forEach((l,o)=>{const c={...l,replayDataPlayerIndex:o};if(!this.teamMap.has(l.teamId)){this.teamMap.set(l.teamId,[c]);return}this.teamMap.set(l.teamId,[...this.teamMap.get(l.teamId)??[],c])})}}const p_=1,__=15,v_=5,al=30;var Fi=(t=>(t[t.None=0]="None",t[t.Groggy=1]="Groggy",t[t.Died=2]="Died",t[t.Revive=3]="Revive",t[t.Redeploy=4]="Redeploy",t))(Fi||{}),K0=(t=>(t[t.Ride=0]="Ride",t[t.Leave=1]="Leave",t))(K0||{}),fa=(t=>(t[t.Unknown=0]="Unknown",t[t.Bro=1]="Bro",t[t.PcSteam=2]="PcSteam",t[t.PcDmm=3]="PcDmm",t[t.PcMailRu=4]="PcMailRu",t[t.PcKakao=5]="PcKakao",t[t.PcTencent=6]="PcTencent",t[t.ConsoleXbox=7]="ConsoleXbox",t[t.ConsolePsn=8]="ConsolePsn",t[t.PcLiteGarena=9]="PcLiteGarena",t[t.PcLiteGlobalAccount=10]="PcLiteGlobalAccount",t[t.UnusedConsoleStadia=12]="UnusedConsoleStadia",t[t.PcEpic=13]="PcEpic",t[t.AI=14]="AI",t))(fa||{}),F0=(t=>(t[t.Unknown=0]="Unknown",t[t.Weapon=1]="Weapon",t[t.Vehicle=2]="Vehicle",t))(F0||{});function Dc(t,a){return t===fa.ConsoleXbox||t===fa.ConsolePsn||t===fa.Unknown&&a}function f0(t){switch(t){case Fi.Died:return Xt.DEAD;case Fi.Groggy:return Xt.DBNO;case Fi.None:case Fi.Redeploy:case Fi.Revive:return Xt.ALIVE}}function m0(t){return t===K0.Ride}var Xt=(t=>
12(t[t.ALIVE=0]="ALIVE",t[t.DBNO=1]="DBNO",t[t.DEAD=2]="DEAD",t))(Xt||{}),Ac=(t=>(t[t.SPAWNED=0]="SPAWNED",t[t.LANDED=1]="LANDED",t))(Ac||{});class U9{constructor(){}getPreProcessedData(a){return a.map(i=>{const l=this.makeChunks(i.positions),o=this.makeChunks(i.healths),c=this.makeChunks(i.lifeEvents),h=this.makeChunks(i.vehicleEvents),f=this.makeChunks(i.weapons),g=this.makeChunks(i.killAssists),m=Math.max(l.length,o.length,c.length,h.length,f.length,g.length);return{basicInfo:i.basicInfo,positions:this.preprocessPlayerPosition(l,m),healths:this.fillEmptyChunk(o,m,{time:0,health:100}),lifeEvents:this.fillEmptyChunk(c,m,{time:0,eventType:Fi.None}),vehicleEvents:this.fillEmptyChunk(h,m,{time:0,eventType:K0.Leave}),weapons:this.fillEmptyChunk(f,m,{time:0,weapon:""}),killAssists:this.fillEmptyChunk(g,m,{time:0,kill:0,assist:0})}})}makeChunks(a){const i=a.reduce((c,h)=>{const f=Math.floor(h.time/al);return c[f]||(c[f]=[]),c[f].push(h),c},{}),l=[];let o=-1;for(const c in i){const h=Number(c),f=h-o-1;for(let g=0;g<f;g++)l.push([]);l.push(i[h]),o=h}return l}fillEmptyChunk(a,i,l){const o=this.copy2ndDepthArray(a);o.length<i&&(o.length=i),l&&this.addZeroTimeData(o,l);for(let c=1;c<o.length;c++){const h=o[c-1];o[c]||(o[c]=[]),h&&o[c].unshift({...h[h.length-1],time:al*c})}return o}copy2ndDepthArray(a){return a.map(i=>i.slice())}addZeroTimeData(a,i){var l,o;((o=(l=a[0])==null?void 0:l[0])==null?void 0:o.time)!==0&&(!a[0]||a[0].length===0?a[0]=[i]:a[0]=[i,...a[0]])}preprocessPlayerPosition(a,i){const l=this.copy2ndDepthArray(a);l.length<i&&(l.length=i);for(let o=1;o<l.length;o++){const c=l[o-1];l[o]||(l[o]=[]),c&&l[o].unshift({...c[c.length-1]})}return this.addNearestNeighborData(l)}addNearestNeighborData(a){return a.map((i,l)=>{const o=a[l-1]??[],c=a[l+1]??[],h=o[o.length-1],f=c[0];return[h,...i,f].filter(m=>m!==void 0)})}}class z9{constructor(a,i){this.replayRootData=a,this.fps=i,this.dataInterval=Math.floor(1/this.fps*1e3),this.CHUNK_INTERVAL_IN_MILLI=al*1e3,this.playerDataList=[],this.processedChunkSet=new Set,this.playerDataList=new U9().getPreProcessedData(a.players)}async setPlayerStatusData(a,i){return this.playerDataList.forEach((l,o)=>{this.setPlayerHealth(a,l,o,i),this.setPlayerLifeState(a,l,o,i),this.setVehicleRideData(a,l,o,i),this.setPlayerWeaponPartDescId(a,l,o,i),this.setKillAssistCountData(a,l,o,i),this.setPlayerLocation(a,l,o,i)}),this.processedChunkSet.add(i),new Promise(l=>setTimeout(l,0))}setPlayerHealth(a,i,l,o){var c;(c=i.healths[o])==null||c.forEach(h=>{const f=Math.floor(h.time*1e3/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].health=h.health});for(let h=o*this.CHUNK_INTERVAL_IN_MILLI;h<=Math.min((o+1)*this.CHUNK_INTERVAL_IN_MILLI,this.replayRootData.matchInfo.lastTime*1e3);h+=this.dataInterval){const f=Math.floor(h/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].health===void 0&&(a[f-1].playerStatusList[l]?a[f].playerStatusList[l].health=a[f-1].playerStatusList[l].health:a[f].playerStatusList[l].health=0)}}setPlayerLifeState(a,i,l,o){var c;(c=i.lifeEvents[o])==null||c.forEach(h=>{const f=Math.floor(h.time*1e3/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].lifeState=f0(h.eventType)});for(let h=o*this.CHUNK_INTERVAL_IN_MILLI;h<=Math.min((o+1)*this.CHUNK_INTERVAL_IN_MILLI,this.replayRootData.matchInfo.lastTime*1e3);h+=this.dataInterval){const f=Math.floor(h/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].lifeState===void 0&&(a[f-1].playerStatusList[l]?a[f].playerStatusList[l].lifeState=a[f-1].playerStatusList[l].lifeState:a[f].playerStatusList[l].lifeState=Xt.DEAD)}}setVehicleRideData(a,i,l,o){var c;(c=i.vehicleEvents[o])==null||c.forEach(h=>{const f=Math.floor(h.time*1e3/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].isVehicleRide=m0(h.eventType)});for(let h=o*this.CHUNK_INTERVAL_IN_MILLI;h<=Math.min((o+1)*this.CHUNK_INTERVAL_IN_MILLI,this.replayRootData.matchInfo.lastTime*1e3);h+=this.dataInterval){const f=Math.floor(h/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].isVehicleRide===void 0&&(a[f-1].playerStatusList[l]?a[f].playerStatusList[l].isVehicleRide=a[f-1].playerStatusList[l].isVehicleRide:a[f].playerStatusList[l].isVehicleRide=!1)}}setPlayerWeaponPartDescId(a,i,l,o){var c;
12(c=i.weapons[o])==null||c.forEach(h=>{const f=Math.floor(h.time*1e3/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].weaponPartDescId=h.weapon});for(let h=o*this.CHUNK_INTERVAL_IN_MILLI;h<=Math.min((o+1)*this.CHUNK_INTERVAL_IN_MILLI,this.replayRootData.matchInfo.lastTime*1e3);h+=this.dataInterval){const f=Math.floor(h/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].weaponPartDescId===void 0&&(a[f-1].playerStatusList[l]?a[f].playerStatusList[l].weaponPartDescId=a[f-1].playerStatusList[l].weaponPartDescId:a[f].playerStatusList[l].weaponPartDescId="")}}setKillAssistCountData(a,i,l,o){var c;(c=i.killAssists[o])==null||c.forEach(h=>{const f=Math.floor(h.time*1e3/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].killCount=h.kill,a[f].playerStatusList[l].assistCount=h.assist});for(let h=o*this.CHUNK_INTERVAL_IN_MILLI;h<=Math.min((o+1)*this.CHUNK_INTERVAL_IN_MILLI,this.replayRootData.matchInfo.lastTime*1e3);h+=this.dataInterval){const f=Math.floor(h/this.dataInterval);this.initPlayerStatus(a,f,l),a[f].playerStatusList[l].killCount===void 0&&(a[f-1].playerStatusList[l]?(a[f].playerStatusList[l].killCount=a[f-1].playerStatusList[l].killCount,a[f].playerStatusList[l].assistCount=a[f-1].playerStatusList[l].assistCount):(a[f].playerStatusList[l].killCount=-1,a[f].playerStatusList[l].assistCount=-1))}}setPlayerLocation(a,i,l,o){this.makePair(i.positions[o]??[]).forEach(h=>{const{left:f,right:g}=h;for(let m=f.time;m<=g.time;m+=this.dataInterval){const _=(m-f.time)/(g.time-f.time),b=f.x+(g.x-f.x)*_,E=f.y+(g.y-f.y)*_,w=Math.floor(m/this.dataInterval);this.initPlayerStatus(a,w,l),a[w].playerStatusList[l].location={x:b,y:E}}})}makePair(a){if(!a)return[];const i=[];for(let l=0;l<a.length-1;l++)i.push({left:{...a[l],time:Math.floor(a[l].time*1e3)},right:{...a[l+1],time:Math.floor(a[l+1].time*1e3)}});return i}initPlayerStatus(a,i,l){a[i].playerStatusList[l]||(a[i].playerStatusList[l]={location:void 0,health:void 0,lifeState:void 0,isVehicleRide:void 0,weaponPartDescId:void 0,killCount:void 0,assistCount:void 0})}}class L9{constructor(a,i){this.replayRootData=a,this.fps=i,this.dataInterval=Math.floor(1/this.fps*1e3),this.playerDataList=[],this.isDataAllGenerated=!1,this.playerDataList=a.players}get matchLastTime(){return this.replayRootData.matchInfo.lastTime}setPlayerStatusData(a){this.playerDataList.forEach((i,l)=>{this.setPlayerHealth(a,i,l),this.setPlayerLifeState(a,i,l),this.setVehicleRideData(a,i,l),this.setPlayerWeaponPartDescId(a,i,l),this.setKillAssistCountData(a,i,l),this.setPlayerLocation(a,i,l)}),this.isDataAllGenerated=!0}setPlayerHealth(a,i,l){if(i.healths.forEach((o,c)=>{if(o.time<=this.matchLastTime&&c<i.healths.length-1){const h=o,f=i.healths[c+1];for(let g=Math.floor(h.time*1e3);g<=Math.floor(f.time*1e3);g+=this.dataInterval){const m=Math.floor(g/this.dataInterval);this.initPlayerStatus(a,m,l),a[m].playerStatusList[l].health=h.health}}}),i.healths.length>0&&i.healths[i.healths.length-1].time<this.matchLastTime){const o=i.healths[i.healths.length-1];for(let c=Math.floor(o.time*1e3);c<=Math.floor(this.matchLastTime*1e3);c+=this.dataInterval){const h=Math.floor(c/this.dataInterval);this.initPlayerStatus(a,h,l),a[h].playerStatusList[l].health=o.health}}}setPlayerLifeState(a,i,l){if(i.lifeEvents.forEach((o,c)=>{if(o.time<=this.matchLastTime&&c<i.lifeEvents.length-1){const h=o,f=i.lifeEvents[c+1];for(let g=Math.floor(h.time*1e3);g<=Math.floor(f.time*1e3);g+=this.dataInterval){const m=Math.floor(g/this.dataInterval);this.initPlayerStatus(a,m,l),a[m].playerStatusList[l].lifeState=f0(h.eventType)}}}),i.lifeEvents.length>0&&i.lifeEvents[i.lifeEvents.length-1].time<this.matchLastTime){const o=i.lifeEvents[i.lifeEvents.length-1];for(let c=Math.floor(o.time*1e3);c<=Math.floor(this.matchLastTime*1e3);c+=this.dataInterval){const h=Math.floor(c/this.dataInterval);this.initPlayerStatus(a,h,l),a[h].playerStatusList[l].lifeState=f0(o.eventType)}}}setVehicleRideData(a,i,l){if(i.vehicleEvents.forEach((o,c)=>{if(o.time<=this.matchLastTime&&c<i.vehicleEvents.length-1){const h=o,f=i.vehicleEvents[c+1];for(let g=Math.floor(h.time*1e3);g<=Math.floor(f.time*1e3);g+=this.dataInterval){const m=Math.floor(g/this.dataInterval);this.initPlayerStatus(a,m,l),a[m].playerStatusList[l].isVehicleRide=m0(h.eventType)}}}),i.vehicleEvents.length>0&&i.vehicleEvents[i.vehicleEvents.length-1].time<this.matchLastTime){const o=i.vehicleEvents[i.vehicleEvents.length-1];for(let c=Math.floor(o.time*1e3);c<=Math.floor(this.matchLastTime*1e3);c+=this.dataInterval){const h=Math.floor(c/this.dataInterval);this.initPlayerStatus(a,h,l),a[h].playerStatusList[l].isVehicleRide=m0(o.eventType)}}}setPlayerWeaponPartDescId(a,i,l){if(i.weapons.forEach((o,c)=>{if(o.time<=this.matchLastTime&&c<i.weapons.length-1){const h=o,f=i.weapons[c+1];for(let g=Math.floor(h.time*1e3);g<=Math.floor(f.time*1e3);g+=this.dataInterval){const m=Math.floor(g/this.dataInterval);this.initPlayerStatus(a,m,l),a[m].playerStatusList[l].weaponPartDescId=h.weapon}
12}}),i.weapons.length>0&&i.weapons[i.weapons.length-1].time<this.matchLastTime){const o=i.weapons[i.weapons.length-1];for(let c=Math.floor(o.time*1e3);c<=Math.floor(this.matchLastTime*1e3);c+=this.dataInterval){const h=Math.floor(c/this.dataInterval);this.initPlayerStatus(a,h,l),a[h].playerStatusList[l].weaponPartDescId=o.weapon}}}setKillAssistCountData(a,i,l){if(i.killAssists.forEach((o,c)=>{if(o.time<=this.matchLastTime&&c<i.killAssists.length-1){const h=o,f=i.killAssists[c+1];for(let g=Math.floor(h.time*1e3);g<=Math.floor(f.time*1e3);g+=this.dataInterval){const m=Math.floor(g/this.dataInterval);this.initPlayerStatus(a,m,l),a[m].playerStatusList[l].killCount=h.kill,a[m].playerStatusList[l].assistCount=h.assist}}}),i.killAssists.length>0&&i.killAssists[i.killAssists.length-1].time<this.matchLastTime){const o=i.killAssists[i.killAssists.length-1];for(let c=Math.floor(o.time*1e3);c<=Math.floor(this.matchLastTime*1e3);c+=this.dataInterval){const h=Math.floor(c/this.dataInterval);this.initPlayerStatus(a,h,l),a[h].playerStatusList[l].killCount=o.kill,a[h].playerStatusList[l].assistCount=o.assist}}}setPlayerLocation(a,i,l){i.positions.forEach((o,c)=>{if(o.time<=this.matchLastTime&&c<i.positions.length-1){const h=o,f=i.positions[c+1],g=Math.floor(h.time*1e3),m=Math.floor(f.time*1e3);for(let _=g;_<=m;_+=this.dataInterval){const b=(_-g)/(m-g),E=h.x+(f.x-h.x)*b,w=h.y+(f.y-h.y)*b,x=Math.floor(_/this.dataInterval);this.initPlayerStatus(a,x,l),a[x].playerStatusList[l].location={x:E,y:w}}}})}initPlayerStatus(a,i,l){a[i].playerStatusList[l]||(a[i].playerStatusList[l]={location:void 0,health:void 0,lifeState:void 0,isVehicleRide:void 0,weaponPartDescId:void 0,killCount:void 0,assistCount:void 0})}}class I9{get isDataAllGenerated(){var a;return((a=this.playerDataSetter)==null?void 0:a.isDataAllGenerated)??!1}get processedChunkSet(){var a;return((a=this.playerChunkDataSetter)==null?void 0:a.processedChunkSet)??new Set}constructor(a,i,l){l?this.playerChunkDataSetter=new z9(a,i):this.playerDataSetter=new L9(a,i)}setPlayerStatusData(a){this.playerDataSetter&&this.playerDataSetter.setPlayerStatusData(a)}async setPlayerStatusDataByChunk(a,i){this.playerChunkDataSetter&&await this.playerChunkDataSetter.setPlayerStatusData(a,i)}}class j9{constructor(a,i,l){this.x=a,this.y=i,this.radius=l}render(a,i){const l=i.translateX(this.x),o=i.translateY(this.y),c=i.scale(this.radius);a.fillStyle="rgba(0, 44, 156, 0.5)",a.fillRect(0,0,a.canvas.width,a.canvas.height),a.globalCompositeOperation="destination-out",a.beginPath(),a.fillStyle="white",a.arc(l,o,c,0,Math.PI*2,!1),a.fill(),a.closePath(),a.globalCompositeOperation="source-over"}}class B9{constructor(a,i,l){this.x=a,this.y=i,this.radius=l}render(a,i){const l=i.translateX(this.x),o=i.translateY(this.y),c=i.scale(this.radius);a.beginPath(),a.strokeStyle="rgba(238, 238, 238, 0.8)",a.arc(l,o,c,0,Math.PI*2,!1),a.stroke(),a.closePath()}}class P9{constructor(a,i,l){this.x=a,this.y=i,this.radius=l}render(a,i){const l=i.translateX(this.x),o=i.translateY(this.y),c=i.scale(this.radius);a.beginPath(),a.fillStyle="rgba(153, 25, 33, 0.5)",a.arc(l,o,c,0,Math.PI*2,!1),a.fill(),a.closePath()}}class H9{constructor(a,i,l){this.x=a,this.y=i,this.radius=l}render(a,i){const l=i.translateX(this.x),o=i.translateY(this.y),c=i.scale(this.radius);a.beginPath(),a.fillStyle="rgba(99, 23, 112, 0.5)",a.arc(l,o,c,0,Math.PI*2,!1),a.fill(),a.closePath()}}class G9{constructor(a,i){this.replayRootData=a,this.fps=i,this.dataInterval=Math.floor(1/this.fps*1e3),this.specialZoneMap=new Map,this.groupBySpecialZoneUniqueId()}groupBySpecialZoneUniqueId(){Object.values(this.replayRootData.specialZone).forEach(a=>{a.forEach(i=>{var l;const o=i.uniqueId;this.specialZoneMap.has(o)||this.specialZoneMap.set(o,[]),(l=this.specialZoneMap.get(o))==null||l.push(i)})})}setZoneFrameData(a){return Object.keys(this.replayRootData.zone).forEach(i=>this.makeNormalZone(i,a)),Object.keys(this.replayRootData.specialZone).forEach(i=>this.makeSpecialZone(i,a)),new Promise(i=>setTimeout(i,0))}makeNormalZone(a,i){this.replayRootData.zone[a].forEach(l=>{const o=Math.floor(l.begin.time*1e3),c=Math.min(Math.floor(l.end.time*1e3),this.replayRootData.matchInfo.lastTime*1e3);for(let h=o;h<=c;h+=this.dataInterval){const f=(h-o)/(c-o),g=l.begin.x+(l.end.x-l.begin.x)*f,m=l.begin.y+(l.end.y-l.begin.y)*f,_=l.begin.radius+(l.end.radius-l.begin.radius)*f,b=Math.floor(h/this.dataInterval),E=this.createZoneRenderer(a,{x:g,y:m,radiu
12s:_});i[b].zoneData.push(E)}})}makeSpecialZone(a,i){for(const l of this.specialZoneMap.values())for(let o=0;o<l.length-1;o++){const[c,h]=[l[o],l[o+1]],f=Math.floor(c.time*1e3),g=Math.min(Math.floor(h.time*1e3),this.replayRootData.matchInfo.lastTime*1e3);for(let m=f;m<=g;m+=this.dataInterval){const _=(m-f)/(g-f),b=c.x+(h.x-c.x)*_,E=c.y+(h.y-c.y)*_,w=c.horizontalRadius+(h.horizontalRadius-c.horizontalRadius)*_,x=Math.floor(m/this.dataInterval),A=this.createZoneRenderer(a,{x:b,y:E,radius:w});i[x].zoneData.push(A)}}}createZoneRenderer(a,i){switch(a){case"bluezone":return new j9(i.x,i.y,i.radius);case"safezone":return new B9(i.x,i.y,i.radius);case"redzone":return new P9(i.x,i.y,i.radius);case"blackzone":return new H9(i.x,i.y,i.radius)}}}const ag={pubgBody:"PUBG Body",pubgHeadline:"PUBG Headline"},lr={fontSize:12,positionYMargin:3,backgroundHeight:16,backgroundSidePadding:4,textColor:"#EDEDF2E6"},ng={iconSize:13,iconMargin:3},Ra={radius:9,borderWidth:1,highlightedBorderWidth:2,borderColor:"rgba(0, 0, 0, 0.5)",highlightedBorderColor:"#ffffff"},Dd={fontSize:13,fontColor:"#EDEDF2E6",yAxisCorrection:1.5},ig="B3";class y_{constructor(a){this.combatData=a}drawAnimation(a,i,l,o){const c=l.playerStatusList[this.combatData.attackerIndex],h=l.playerStatusList[this.combatData.victimIndex];if(!c.location||!h.location)return;const f={x:i.translateX(c.location.x),y:i.translateY(c.location.y)},g={x:i.translateX(h.location.x),y:i.translateY(h.location.y)};this.drawCombatLine(a,f,g),this.drawAttacker(a,f,g,i,o)}drawCombatLine(a,i,l){a.globalAlpha=.7;let o=l.x-i.x,c=l.y-i.y;const h=Math.sqrt(o*o+c*c);o/=h,c/=h;const f=i.x+o*Ra.radius,g=i.y+c*Ra.radius,m=l.x-o*Ra.radius,_=l.y-c*Ra.radius;a.beginPath(),a.strokeStyle="white",a.moveTo(f,g),a.lineTo(m,_),a.closePath(),a.stroke(),a.globalAlpha=1}drawAttacker(a,i,l,o,c){const h=o.calculatePixel(52);a.save(),a.translate(i.x,i.y);const f=Math.atan2(l.y-i.y,l.x-i.x);a.rotate(f),c.isLoaded()&&a.drawImage(c.image,-h/2,-h/2,h,h),a.restore()}}const sg=55;class b_{constructor(a,i){this.percent=0,this.victimIndex=0,this.percent=i,this.victimIndex=a}drawAnimation(a,i,l,o){const c=l.playerStatusList[this.victimIndex];if(!c.location)return;const h={x:i.translateX(c.location.x),y:i.translateY(c.location.y)},f=(()=>{const m=this.percent*.015;return i===void 0?sg*m:i.calculatePixel(sg)*m})(),g=this.percent<50?this.percent/100:1-this.percent/100;a.globalAlpha=g,o.isLoaded()&&a.drawImage(o.image,h.x-f,h.y-f,f*2,f*2),a.globalAlpha=1}}class q9{constructor(a,i){this.replayRootData=a,this.fps=i,this.dataInterval=Math.floor(1/this.fps*1e3)}setCombatData(a){return this.replayRootData.combats.combats.forEach(i=>{this.addCombatAnimation(i,a),this.addDamageAnimation(i,a)}),new Promise(i=>setTimeout(i,0))}addCombatAnimation(a,i){if(!this.isValidCombatData(a))return;const l=1e3;for(let o=a.time*1e3;o<=this.getEffectDelayTime(a.time,l);o+=this.dataInterval){const c=Math.floor(o/this.dataInterval);i[c].animationList.push(new y_({attackerIndex:a.attackerIndex,victimIndex:a.victimIndex,attackPartDescId:a.damageCauserPartDescId}))}}addDamageAnimation(a,i){if(a.victimIndex===-1)return;const l=2e3;let o=0;for(let c=a.time*1e3;c<=this.getEffectDelayTime(a.time,l);c+=this.dataInterval){const h=Math.floor(c/this.dataInterval);if(!i[h])break;i[h].animationList.push(new b_(a.victimIndex,o/l*100)),o+=this.dataInterval}}isValidCombatData(a){return this.isWeaponPartDesc(a.damageCauserPartDescId)&&a.attackerIndex!==-1&&a.attackerIndex!==a.victimIndex}getEffectDelayTime(a,i){return Math.min(a*1e3+i,this.replayRootData.matchInfo.lastTime*1e3)}isWeaponPartDesc(a){return this.replayRootData.partDescIdMap[a]===F0.Weapon}}class V9{constructor(a,i){this.replayRootData=a,this.fps=i,this.dataInterval=Math.floor(1/this.fps*1e3)}setCarePackageData(a){const i=this.replayRootData.matchInfo.lastTime*1e3;return this.replayRootData.carePackages.filter(l=>l.spawnTime!==-1).forEach(l=>{const o=this.getValidLandingTime(l);for(let h=l.spawnTime*1e3;h<=Math.min(o*1e3,i);h+=this.dataInterval){const f=Math.floor(h/this.dataInterval);a[f].carePackage.push({packageId:l.packageId,x:l.x,y:l.y,packageState:Ac.SPAWNED})}const c=1e3*60*5;for(let h=o*1e3;h<=Math.min(o*1e3+c,i);h+=this.dataInterval){const f=Math.floor(h/this.dataInterval);a[f].carePackage.push({packageId:l.packageId,x:l.x,y:l.y,packageState:Ac.LANDED})}}),new Promise(l=>setTimeout(l,0))}
12getValidLandingTime(a){return a.landingTime===-1?a.spawnTime+60:a.landingTime}}class Y9{constructor(a){this.replayRootData=a}makeReplayStaticData(){const a=this.getPlayerBasicInfo();return{mapName:this.replayRootData.matchInfo.mapName,teamSize:this.replayRootData.matchInfo.teamSize,mapMetadata:this.replayRootData.mapMetadata,playerBasicInfo:a,carePackageInfo:this.replayRootData.carePackages.map(i=>({packageId:i.packageId,itemIds:i.itemIds})),replayRootDataVersion:this.replayRootData.version}}getPlayerBasicInfo(){const a=new $9(this.replayRootData);return this.replayRootData.players.map(i=>({...i.basicInfo,teamColor:a.getColor(i.basicInfo.teamId)}))}}class $9{constructor(a){this.SOLO_MODE_COLOR="#343434",this.TEAM_COLORS=["#1D3C82","#00928B","#B7300B","#04628D","#4B227D","#8E3524","#425B0E","#B12E5C","#8D6430","#720F43","#BEA22C","#56A6A3","#687880","#D68F1D","#3A464C","#D17393","#0D6560","#7A4713","#6E9125","#815597","#489775","#7892B5","#D59174","#332F64","#877F1A"],this.colors={},this.teamSize=4,[...new Set(a.players.map(l=>l.basicInfo.teamId))].sort((l,o)=>l-o).forEach((l,o)=>{this.colors[l]=this.TEAM_COLORS[o%25]}),this.teamSize=a.matchInfo.teamSize}getColor(a){return this.teamSize===1?this.SOLO_MODE_COLOR:this.colors[a]}}class K9{constructor(a){this.replayRootData=a}makeKillFeedData(a){return this.replayRootData.killFeeds.map((i,l)=>{const o=i.attackerIndex!==-1?{nickname:a[i.attackerIndex].nickname,platform:i.attackerPlatform,clanTag:a[i.attackerIndex].clanTag,teamId:a[i.attackerIndex].teamId,teamColor:a[i.attackerIndex].teamColor}:null,c=i.victimIndex!==-1?{nickname:a[i.victimIndex].nickname,platform:i.victimPlatform,clanTag:a[i.victimIndex].clanTag,teamId:a[i.victimIndex].teamId,teamColor:a[i.victimIndex].teamColor}:null;return{id:l,time:i.time,attacker:o,attackPartDescId:i.damageCauserPartDescId,victim:c,isHeadShot:i.isHeadShot,killType:i.killType}})}}class F9{constructor(a,i){this.customDrawingData=a,this.fps=i,this.dataInterval=Math.floor(1/this.fps*1e3)}setCustomDrawingData(a){return this.customDrawingData.forEach(i=>{const l=Math.floor(i.beginTime/this.dataInterval),o=i.endTime===1/0?a.length-1:Math.floor(i.endTime/this.dataInterval);for(let c=l;c<=o;c++)a[c].customDrawing.push(i)}),new Promise(i=>setTimeout(i,0))}}class X9{constructor(a,i,l,o){this.replayRootData=a,this.fps=i,this.isChunkPlayerDataEnabled=l,this.customDrawingData=o,this._replayDataPerMS=[],this._intervalId=0,this.playerDataGenerator=new I9(this.replayRootData,i,l)}get processedChunkSet(){var a;return((a=this.playerDataGenerator)==null?void 0:a.processedChunkSet)??new Set}get replayDataPerMS(){return this._replayDataPerMS}getReplayStaticData(){return new Y9(this.replayRootData).makeReplayStaticData()}getKillFeedData(a){return new K9(this.replayRootData).makeKillFeedData(a)}async setReplayDataPerMS(){this._replayDataPerMS=this.initReplayDataPerMS(),await new G9(this.replayRootData,this.fps).setZoneFrameData(this._replayDataPerMS),await new q9(this.replayRootData,this.fps).setCombatData(this._replayDataPerMS),await new V9(this.replayRootData,this.fps).setCarePackageData(this._replayDataPerMS),await new F9(this.customDrawingData,this.fps).setCustomDrawingData(this._replayDataPerMS),this.isChunkPlayerDataEnabled?await this.processPlayerChunk(0):this.playerDataGenerator.setPlayerStatusData(this._replayDataPerMS)}async processPlayerChunk(a){const i=Math.ceil(this.replayRootData.matchInfo.lastTime/al);let l=a;await this.playerDataGenerator.setPlayerStatusDataByChunk(this._replayDataPerMS,l),window.clearInterval(this._intervalId),this._intervalId=window.setInterval(async()=>{for(l>=i&&window.clearInterval(this._intervalId);this.processedChunkSet.has(l);)l++;await this.playerDataGenerator.setPlayerStatusDataByChunk(this._replayDataPerMS,l)},500)}clearInterval(){window.clearInterval(this._intervalId)}isPlayerDataGenerated(a){var i;if(!this.isChunkPlayerDataEnabled)return(i=this.playerDataGenerator)==null?void 0:i.isDataAllGenerated;const l=Math.floor(1/this.fps*1e3),o=Math.floor((a??0)/l);return this.replayDataPerMS[o].playerStatusList.length===this.replayRootData.players.length}initReplayDataPerMS(){const a=[],i=Math.floor(1/this.fps*1e3),l=this.replayRootData.matchInfo.lastTime*1e3;for(let o=0;o*i<=l;o++)a[o]={time:o*i,playerStatusList:[],animationList:[],carePackage:[],zoneData:[],customDrawing:[]};return a}}class Q9{constructor(a,i,l){this.playerBasicInfo=a,this.imageRenderer=i,this.isConsoleCrossPlayOn=l,this.userDetailContainerUI=document.getElementById("web-replay-user-
12detail-container"),this.elementReferences={userInfo:document.getElementById("web-replay-user-info"),teamInfo:document.getElementById("web-replay-user-state-team-info"),platformIcon:document.getElementById("web-replay-user-state-platform-icon"),nickname:document.getElementById("web-replay-user-state-nickname"),userState:document.getElementById("web-replay-user-state"),equippedWeapon:document.getElementById("web-replay-user-equipped-weapon"),killCount:document.getElementById("web-replay-user-kill-count"),assistCount:document.getElementById("web-replay-user-assist-count"),health:document.getElementById("web-replay-user-state-health"),healthValue:document.getElementById("web-replay-user-state-health-value")}}update(a,i){i>=0&&this.updateUserDetailUI(a,i)}updateUserDetailUI(a,i){if(a.playerStatusList[i].lifeState===Xt.DEAD&&i>=0){this.userDetailContainerUI.classList.add("hidden"),this.resetUserDetailUI();return}this.userDetailContainerUI.classList.remove("hidden"),this.updateUserInfoUI(i),this.updateUserStateUI(a,i),this.updateHealthBarUI(a,i)}updateUserInfoUI(a){const{nickname:i,teamId:l,teamColor:o,clanTag:c,origin:h}=this.playerBasicInfo[a];this.updateTeamInfoUI(l,o),this.updatePlatformIconUI(h),this.elementReferences.nickname.textContent=c?`[${c}] ${i}`:i}updateTeamInfoUI(a,i){this.elementReferences.teamInfo.textContent=a.toString(),this.elementReferences.teamInfo.style.background=i}updatePlatformIconUI(a){if(Dc(a,this.isConsoleCrossPlayOn())){const i=parseInt(this.elementReferences.platformIcon.dataset.lastOriginType??"-1");a!==i&&(this.elementReferences.platformIcon.src=this.imageRenderer.getUserOriginIcon(a),this.elementReferences.platformIcon.dataset.lastOriginType=a.toString())}else this.elementReferences.platformIcon.style.display="none"}updateUserStateUI(a,i){const l=a.playerStatusList[i],{killCount:o,assistCount:c,weaponPartDescId:h}=l;this.updateWeaponUI(h),this.elementReferences.killCount.textContent=`${o}`,this.elementReferences.assistCount.textContent=`${c}`}updateWeaponUI(a){const i=this.elementReferences.equippedWeapon.getElementsByTagName("span")[0],l=this.elementReferences.equippedWeapon.getElementsByTagName("img")[0];if(!a||a==="null"){i.style.display="block",l.src="",l.onerror=null,l.dataset.lastPartDescId="";return}if(i.style.display="none",l.dataset.lastPartDescId!==a){const o=this.getWeaponSilhouetteIcon(a);l.src=o,l.onerror=c=>{typeof c!="string"&&(c.target.src=this.imageRenderer.getKillFeedIcon("unknown"),l.onerror=null)},l.dataset.lastPartDescId=a}}updateHealthBarUI(a,i){const o=a.playerStatusList[i].health;o!==void 0&&(this.elementReferences.health.style.width=`${Math.min(o,100)}%`,this.elementReferences.healthValue.textContent=`${o}/100`)}getWeaponSilhouetteIcon(a){return a==="unknown"||!a?this.imageRenderer.getKillFeedIcon("unknown"):this.imageRenderer.getWeaponSilhouetteIcon(a,!1)}resetUserDetailUI(){this.elementReferences.teamInfo.textContent="",this.elementReferences.teamInfo.style.background="",this.elementReferences.nickname.textContent="",this.elementReferences.health.style.width="",this.elementReferences.healthValue.textContent="",this.elementReferences.killCount.textContent="",this.elementReferences.assistCount.textContent=""}}const Ln="time-based-canvas",X0="map-view-based-canvas",w_="map-image-container",S_="teams",E_="alive",x_="replay-loader",Z9="web-replay-style",J9="kill-feed-list-container",W9="web-replay-user-detail-container";class Ha{constructor(){this.state="idle",this.image=new Image,this.image.onload=()=>{this.state="loaded"},this.image.onerror=()=>{this.state="error"}}load(a){this.image.src=a}isLoaded(){return this.state==="loaded"}isError(){return this.state==="error"}}class eS{constructor(a,i){this.mapViewer=a,this.attackerImage=new Ha,this.damageImage=new Ha,this.context=document.getElementById(Ln).getContext("2d"),this.attackerImage.load(i.getObserverImage("MuzzleFlash")),this.damageImage.load(i.getObserverImage("PlayerHitEffect"))}update(a){a.animationList.filter(i=>i instanceof b_).forEach(i=>{i.drawAnimation(this.context,this.mapViewer,a,this.damageImage)})}}class tS{constructor(a,i){this.mapViewer=a,this.mapMetadata=i,this.blackGridPosition={yCoords:[],xCoords:[]},this.whiteGridPosition={yCoords:[],xCoords:[]},this.mapWidth=0,this.mapHeight=0,this.context=document.getElementById(X0).getContext("2d"),this.setGridAbsolutePosition()}update(a){this.drawWhiteGrid(a),this.drawBlackGrid()}drawWhiteGrid(a){this.context.strokeStyle="white",this.context.lineWidth=1,this.context.globalAlpha=this.getWhiteLinesOpacityValue(a);const i=this.mapViewer.translateY(this.mapWidth),l=this.mapViewer.translateX(this.mapHeight);this.whiteGridPosition.yCoords.forEach(o=>{const c=this.mapViewer.translateY(o);this.context.beginPath(),this.context.moveTo(0,c),this.context.lineTo(l,c),this.context.stroke()}),this.whiteGridPosition.xCoords.forEach(o=>{const c=this.mapViewer.translateX(o);this.context.beginPath(),this.context.moveTo(c,0),this.context.lineTo(c,i),this.context.stroke()}),this.context.globalAlpha=1}drawBlackGrid(){this.context.strokeStyle="black",this.context.lineWidth=1;const a=this.mapViewer.translateY(this.mapWidth),i=this.mapViewer.translateX(this.mapHeight);this.blackGridPosition.yCoords.forEach(l=>{const o=this.mapViewer.translateY(l);this.context.beginPath(),this.context.moveTo(0,o),this.context.lineTo(i,o),this.context.stroke()}),this.blackGridPosition.xCoords.forEach(l=>{const o=this.mapViewer.translateX(l);this.context.beginPath(),this.context.moveTo(o,0),this.context.lineTo(o,a),this.context.stroke()})}setGridAbsolutePosition(){const{width:a,height:i,row:l,column:o}=this.mapMetadata;this.mapWidth=a,this.mapHeight=i;const c=Math.floor(a/o),h=Math.floor(i/l);for(let m=1;m*c<a;m++)this.blackGridPosition.xCoords.push(m*c);for(let m=1;m*h<i;m++)this.blackGridPosition.yCoords.push(m*h);const f=Math.floor(a/o/10),g=Math.floor(i/l/10);for(let m=1;m*f<a;m++)this.whiteGridPosition.xCoords.push(m*f);for(let m=1;m*g<i;m++)this.whiteGridPosition.yCoords.push(m*g)}getWhiteLinesOpacityValue(a){return 1<=a&&a<3?0:3<=a&&a<6?.08:6<=a&&a<9?.12:9<=a&&a<12?.16:12<=a&&a<=15?.2:0}}class aS{constructor(){this.mapImageContainerElem=null,this.mapImageContainerElem=document.getElementById(w_)}update(a,i){this.mapImageContainerElem&&(this.mapImageContainerElem.style.transform=`translate(${i.x}px, ${i.y}px) scale(${a})`)}}class nS{constructor(a){this.mapViewer=a,this.context=document.getElementById(Ln).getContext("2d")}update(a){a.zoneData.forEach(l=>l.render(this.context,this.mapViewer))}}class iS{constructor(a,i){this.mapViewer=a,this.carePackageSpawn=new Ha,this.carePackageLand=new Ha,this.context=document.getElementById(Ln).getContext("2d"),this.carePackageSpawn.load(i.getObserverImage("CarePackageSpawn")),this.carePackageLand.load(i.getObserverImage("CarePackageLand"))}update(a){a.carePackage.forEach(i=>
12{this.drawCarePackage(i)})}drawCarePackage(a){const i=this.mapViewer.translateX(a.x),l=this.mapViewer.translateY(a.y),o=a.packageState===Ac.SPAWNED?this.carePackageSpawn:this.carePackageLand,c=this.mapViewer.calculatePixel(35),h=this.mapViewer.calculatePixel(45);this.context&&o.isLoaded()&&this.context.drawImage(o.image,i-Math.floor(c*.5),l-Math.floor(h*.75),c,h)}}class sS{constructor(a,i){this.mapViewer=a,this.attackerImage=new Ha,this.damageImage=new Ha,this.context=document.getElementById(Ln).getContext("2d"),this.attackerImage.load(i.getObserverImage("MuzzleFlash")),this.damageImage.load(i.getObserverImage("PlayerHitEffect"))}update(a){a.animationList.filter(i=>i instanceof y_).forEach(i=>{i.drawAnimation(this.context,this.mapViewer,a,this.attackerImage)})}}class lS{constructor(a){this.playerBasicInfo=a,this.teamsElem=document.getElementById(S_),this.aliveElem=document.getElementById(E_)}update(a){this.updateAliveText(a),this.updateTeamsText(a)}updateAliveText(a){this.aliveElem&&(this.aliveElem.textContent=`${a.playerStatusList.filter(i=>i.lifeState!==Xt.DEAD).length}`)}updateTeamsText(a){if(!this.teamsElem)return;const i=new Set;a.playerStatusList.forEach((l,o)=>{l.lifeState!==Xt.DEAD&&i.add(this.playerBasicInfo[o].teamId)}),this.teamsElem.textContent=`${i.size}`}}class rS{constructor(a,i,l,o){this.mapViewer=a,this.playerBasicInfo=i,this.isConsoleCrossPlayOn=o,this.vehicleImage=new Ha,this.dbnoImage=new Ha,this.platformIconImages={[fa.ConsoleXbox]:new Ha,[fa.ConsolePsn]:new Ha,[fa.Unknown]:new Ha},this.context=document.getElementById(Ln).getContext("2d"),this.vehicleImage.load(l.getObserverImage("VehicleRide")),this.dbnoImage.load(l.getObserverImage("Dbno")),this.platformIconImages[fa.ConsoleXbox].load(l.getUserOriginIcon(fa.ConsoleXbox)),this.platformIconImages[fa.ConsolePsn].load(l.getUserOriginIcon(fa.ConsolePsn)),this.platformIconImages[fa.Unknown].load(l.getUserOriginIcon(fa.Unknown))}update(a,i){this.playerBasicInfo.forEach((l,o)=>{this.drawPlayer(a.playerStatusList[o],l,i)})}drawPlayer(a,i,l){if(!a||!a.location||a.lifeState===Xt.DEAD)return;const o={x:this.mapViewer.translateX(a.location.x),y:this.mapViewer.translateY(a.location.y),radius:this.mapViewer.calculatePixel(Ra.radius)};this.drawPlayerNickname(o,i),this.drawPlayerCircle(o,i,a,l)}drawPlayerNickname(a,i){const l=this.mapViewer.calculatePixel(lr.fontSize),o=this.mapViewer.calculatePixel(lr.positionYMargin),c=this.mapViewer.calculatePixel(lr.backgroundHeight),h=this.mapViewer.calculatePixel(lr.backgroundSidePadding),f=this.mapViewer.calculatePixel(ng.iconSize),g=this.mapViewer.calculatePixel(ng.iconMargin);this.context.font=`${l}px ${ag.pubgBody}`;const m=i.clanTag!==""?`[${i.clanTag}] ${i.nickname}`:i.nickname,_=this.context.measureText(m),b=Dc(i.origin,this.isConsoleCrossPlayOn())?f+g:0,E=a.x-Math.floor(_.width/2)-h-b/2,w=a.y+a.radius+o,x=_.width+h*2+b,A=c;if(this.context.fillStyle=i.teamColor+ig,this.context.fillRect(E,w,x,A),Dc(i.origin,this.isConsoleCrossPlayOn())){const G=a.x-Math.floor(_.width/2)-b/2,U=a.y+a.radius+o+(A-f)/2;this.platformIconImages[i.origin].isLoaded()&&this.context.drawImage(this.platformIconImages[i.origin].image,G,U,f,f)}const M=a.x-Math.floor(_.width/2)+b/2,z=a.y+a.radius+o+l;this.context.fillStyle=lr.textColor,this.context.fillText(m,M,z)}drawPlayerCircle(a,i,l,o){this.context.beginPath(),this.context.fillStyle=i.teamColor+ig,this.context.arc(a.x,a.y,a.radius,0,Math.PI*2,!1),this.context.fill(),this.context.closePath(),this.drawPlayerCircleBorder(a,i,o),this.drawPlayerCircleStatus(a,l,i.teamId.toString())}drawPlayerCircleBorder(a,i,l){const o=this.mapViewer.calculatePixel(Ra.borderWidth),c=this.mapViewer.calculatePixel(Ra.highlightedBorderWidth),h=this.playerBasicInfo[l];if(i.accountId===h?.accountId){const f=a.radius+this.mapViewer.calculatePixel(2);this.drawCircleLine({...a,radius:f},c,Ra.highlightedBorderColor),this.drawCircleLine({...a,radius:f+c},o,Ra.borderColor)}else i.teamId===h?.teamId?(this.drawCircleLine(a,o,Ra.highlightedBorderColor),this.drawCircleLine({x:a.x,y:a.y,radius:a.radius+o},o,Ra.borderColor)):this.drawCircleLine(a,o,Ra.borderColor)}drawCircleLine(a,i,l){this.context.beginPath(),this.context.strokeStyle=l,this.context.lineWidth=i,this.context.arc(a.x,a.y,a.radius,0,Math.PI*2,!1),this.context.stroke(),this.context.closePath()}drawPlayerCircleStatus(a,i,l){const o=this.mapViewer.calculatePixel(Dd.fontSize);if(i.lifeState===Xt.DBNO)this.dbnoImage.isLoaded()&&this.context.drawImage(this.dbnoImage.image,a.x-a.radius,a.y-a.radius,a.radius*2,a.radius*2);else if(i.isVehicleRide)this.vehicleImage.isLoaded()&&this.context.drawImage(this.vehicleImage.image,a.x-a.radius,a.y-a.radius,a.radius*2,a.radius*2);else{this.context.font=`${o}px ${ag.pubgHeadline}`;const c=this.context.measureText(l);this.context.fillStyle=Dd.fontColor,this.context.fillText(l,Math.floor(a.x-c.width/2),Math.floor(a.y+o/2-this.mapViewer.calculatePixel(Dd.yAxisCorrection)))}}}class oS{constructor(a,i){this.mapViewer=a,this.staticData=i,this.context=document.getElementById(Ln).getContext("2d")}update(a){a.customDrawing.forEach(i=>
12{i.draw(this.context,{translateX:l=>this.mapViewer.translateX(l),translateY:l=>this.mapViewer.translateY(l),scale:l=>this.mapViewer.scale(l),calculatePixel:l=>this.mapViewer.calculatePixel(l)},{staticData:this.staticData})})}}class cS{constructor(a,i,l){this.mapViewer=a,this.staticData=i,this.dataPerMS=l,this.timeBasedUpdators=[],this.mapViewBasedUpdators=[],this.cssCanvasSize=0}initialize(a,i){this.initElementsReferences(),this.initTimeBasedUpdators(a,i),this.initMapViewBasedUpdators()}initElementsReferences(){const a=document.getElementById(Ln),i=document.getElementById(X0);if(this.timeBasedContext=a.getContext("2d"),this.mapViewBasedContext=i.getContext("2d"),a.style.width)this.cssCanvasSize=parseInt(a.style.width,10);else{const l=window.devicePixelRatio||1;this.cssCanvasSize=a.width/l}}initTimeBasedUpdators(a,i){this.timeBasedUpdators=[new nS(this.mapViewer),new rS(this.mapViewer,this.staticData.playerBasicInfo,a,i),new sS(this.mapViewer,a),new eS(this.mapViewer,a),new iS(this.mapViewer,a),new lS(this.staticData.playerBasicInfo),new Q9(this.staticData.playerBasicInfo,a,i),new oS(this.mapViewer,this.staticData)]}initMapViewBasedUpdators(){this.mapViewBasedUpdators=[new tS(this.mapViewer,this.staticData.mapMetadata),new aS],this.updateUIBasedOnMapView(1,{x:0,y:0})}updateUIBasedOnTime(a,i){this.timeBasedContext.clearRect(0,0,this.cssCanvasSize,this.cssCanvasSize);for(const l of this.timeBasedUpdators)l.update(this.dataPerMS[a],i)}updateUIBasedOnMapView(a,i){this.mapViewBasedContext.clearRect(0,0,this.cssCanvasSize,this.cssCanvasSize),this.mapViewBasedUpdators.forEach(l=>l.update(a,i))}updateCanvasSize(a){this.cssCanvasSize=a,this.setupCanvasForHighDPI(this.mapViewBasedContext.canvas,this.mapViewBasedContext,a),this.setupCanvasForHighDPI(this.timeBasedContext.canvas,this.timeBasedContext,a)}setupCanvasForHighDPI(a,i,l){const o=window.devicePixelRatio||1;a.style.width=`${l}px`,a.style.height=`${l}px`,a.width=l*o,a.height=l*o,i.scale(o,o)}}class uS{constructor(){}makeKillFeedListElement(){const a=document.createElement("div");a.id=J9;const i=document.createElement("ul");return i.className="kill-feed-list",a.appendChild(i),a}}class hS{constructor(a,i){this.killUrl=a,this.assistUrl=i}makeUserDetailElement(){const a=document.createElement("div");return a.id=W9,a.classList.add("hidden"),a.appendChild(this.createUserInfoUI()),a.appendChild(this.createUserStateElement()),a.appendChild(this.createHealthBarUI()),a}createUserInfoUI(){const a=document.createElement("section");return a.id="web-replay-user-info",a.appendChild(this.createTeamInfoUI()),a.appendChild(this.createPlatformIconUI()),a.appendChild(this.createNicknameUI()),a}createTeamInfoUI(){const a=document.createElement("div");return a.id="web-replay-user-state-team-info",a}createPlatformIconUI(){const a=document.createElement("img");return a.id="web-replay-user-state-platform-icon",a.src="",a}createNicknameUI(){const a=document.createElement("div");return a.id="web-replay-user-state-nickname",a}createUserStateElement(){const a=document.createElement("section");a.id="web-replay-user-state";const i=this.createWeaponUI(),l=this.createKillAssistContainer();return a.appendChild(i),a.appendChild(l),a}createWeaponUI(){const a=document.createElement("div");a.id="web-replay-user-equipped-weapon";const i=document.createElement("span");i.className="not-carry-weapon",i.innerText="-";const l=document.createElement("img");return l.src="",a.appendChild(i),a.appendChild(l),a}createKillAssistContainer(){const a=document.createElement("div");a.className="kill-assist";const i=document.createElement("div");return i.className="divider",a.appendChild(this.createKillsUIElement()),a.appendChild(i),a.appendChild(this.createAssistsUIElement()),a}createKillsUIElement(){const a=document.createElement("div");a.className="kills";const i=document.createElement("img");i.src=this.killUrl;const l=document.createElement("span");return l.id="web-replay-user-kill-count",a.appendChild(i),a.appendChild(l),a}createAssistsUIElement(){const a=document.createElement("div");a.className="assists";const i=document.createElement("img");i.src=this.assistUrl;const l=document.createElement("span");return l.id="web-replay-user-assist-count",a.appendChild(i),a.appendChild(l),a}createHealthBarUI(){const a=document.createElement("div");a.className="health-bar";const i=document.createElement("div");i.id="web-replay-user-state-health";const l=document.createElement("span");return l.id="web-replay-user-state-health-value",a.appendChild(i),a.appendChild(l),a}}class dS{constructor(a,i){this.imageRenderer=a,this.rootDOMId=i}makeMapImageElement(a){const i=document.createElement("div");i.id=w_;const l=this.getMapTargetVersion(a),o=document.createElement("img"),c=this.getLowResolutionMapSizePercent(),h=this.imageRenderer.getMapImageInfo(a.mapName,l);o.src=h?.lowResolutionMapImage||"",o.style.width=`${c}%`,o.style.height=`${c}%`,o.onerror=f=>{typeof f=="object"&&(f.target.src=h?.defaultLowResolutionMapImage||"",o.onerror=null)},o.className="low-res-img",i.appendChild(o);for(let f=0;f<16;f++){const g=document.createElement("img");g.className="tiled-img",g.src=h?.dividedMapImages[f]||"",g.onerror=m=>{typeof m=="object"&&(m.target.src=h?.defaultDividedMapImages[f]||"",g.onerror=null)},i.appendChild(g)}return i}getMapTargetVersion(a){const{mapMetadata:i,replayRootDataVersion:l}=a,{targetVersion:o,season:c}=i;if(l==="v1"){const h=c.split("-");return h[0]==="pc"?h[2]:h[1]}return o}getLowResolutionMapSizePercent(){const a=document.getElementById(this.rootDOMId);if(!a)return 100;const i=a.clientWidth;return Math.floor(i/4)*4/i*100}}class fS{constructor(){}makeCanvasElement(a){const i=document.createElement("div");
12return i.className="canvas-container",i.appendChild(this.makeGridCanvas(a)),i.appendChild(this.makeReplayCanvasElement(a)),i}makeReplayCanvasElement(a){const i=document.createElement("canvas");return i.id=Ln,this.setupCanvasForHighDPI(i,a),i}makeGridCanvas(a){const i=document.createElement("canvas");return i.id=X0,this.setupCanvasForHighDPI(i,a),i}setupCanvasForHighDPI(a,i){const l=window.devicePixelRatio||1;a.style.width=`${i}px`,a.style.height=`${i}px`,a.width=i*l,a.height=i*l;const o=a.getContext("2d");o&&o.scale(l,l)}}class mS{constructor(){}makeCanvasElement(a){const i=document.createElement("ul");if(i.className="remaining-player-container pubg-font",a>1){const o=this.makeRemainingPlayerItemElement(S_);i.appendChild(o)}const l=this.makeRemainingPlayerItemElement(E_);return i.appendChild(l),i}makeRemainingPlayerItemElement(a){const i=document.createElement("li"),l=document.createElement("span");l.innerText=a.toUpperCase(),l.className="title",i.appendChild(l);const o=document.createElement("span");return o.innerText="0",o.id=a,o.className="value",i.appendChild(o),i}}class gS{constructor(a){this.loaderAssetUrl=a}makeLoaderElement(){const a=document.createElement("div");a.id=x_;const i=document.createElement("div");return i.className="loader-animation",i.style.backgroundImage=`url(${this.loaderAssetUrl})`,a.appendChild(i),a}}const pS='.remaining-player-container{position:absolute;top:1.6666666667vh;right:1.3888888889vh;display:flex;z-index:3;font-family:PUBG Headline;font-size:1.9444444444vh;line-height:2.2222222222vh;height:2.4074074074vh}.remaining-player-container li{margin-left:1.4814814815vh}.remaining-player-container li .title,.remaining-player-container li .value{display:inline-block;text-align:center}.remaining-player-container li .title{color:#9ea0a6;padding:0 .5555555556vh;background-color:#111c}.remaining-player-container li .value{color:#ededf2;min-width:2.7777777778vh;background-color:#1b1b1b99}#map-image-container{width:100%;height:100%;display:flex;flex-wrap:wrap}#map-image-container .low-res-img{position:absolute;top:0;left:0}#map-image-container .tiled-img{position:relative;width:25%;height:25%}.canvas-container #time-based-canvas,.canvas-container #map-view-based-canvas{position:absolute;top:0;left:0}.canvas-container #time-based-canvas{touch-action:none}.canvas-container #map-view-based-canvas{pointer-events:none}#kill-feed-list-container{position:absolute;right:1.3888888889vh;top:5.0925925926vh;z-index:3;height:37.037037037vh;pointer-events:none}#kill-feed-list-container .kill-feed-list{display:flex;flex-direction:column;align-items:flex-end}#kill-feed-list-container .kill-feed-list .kill-feed{display:flex;justify-content:flex-end;align-items:center;height:2.037037037vh;padding:0 .1851851852vh;background:#0009;color:#fff;margin-bottom:.8333333333vh}#kill-feed-list-container .kill-feed-list .kill-feed .attacker,#kill-feed-list-container .kill-feed-list .kill-feed .victim{display:flex;align-items:center}#kill-feed-list-container .kill-feed-list .kill-feed .attacker .team-id,#kill-feed-list-container .kill-feed-list .kill-feed .victim .team-id{display:flex;justify-content:center;align-items:center;width:2.037037037vh;height:1.6666666667vh;margin-right:.462962963vh;font-size:1.2962962963vh;font-family:PUBG Headline;text-align:center;white-space:nowrap;text-shadow:1px 0 1px rgba(0,0,0,.5),0 1px 1px rgba(0,0,0,.5),-1px 0 1px rgba(0,0,0,.5),0 -1px 1px rgba(0,0,0,.5)}#kill-feed-list-container .kill-feed-list .kill-feed .attacker .nickname,#kill-feed-list-container .kill-feed-list .kill-feed .victim .nickname{font-size:1.2962962963vh;line-height:2.2222222222vh;text-overflow:ellipsis;white-space:nowrap;color:#fff;margin-right:.462962963vh;margin-bottom:1px}#kill-feed-list-container .kill-feed-list .kill-feed .attacker .platform-icon,#kill-feed-list-container .kill-feed-list .kill-feed .victim .platform-icon{width:1.3888888889vh;height:1.3888888889vh;object-fit:contain;margin-right:.2777777778vh}#kill-feed-list-container .kill-feed-list .kill-feed .victim .team-id{margin-right:0}#kill-feed-list-container .kill-feed-list .kill-feed.kill .victim .nickname{color:#ff3e3e}#kill-feed-list-container .kill-feed-list .kill-feed .feed-info{display:flex;align-items:center}#kill-feed-list-container .kill-feed-list .kill-feed .feed-info>*{margin-right:.462962963vh}#kill-feed-list-container .kill-feed-list .kill-feed .feed-info .weapon-silhouette{height:1.4814814815vh;object-fit:contain;
12transform:scaleX(-1)}#kill-feed-list-container .kill-feed-list .kill-feed .feed-info .weapon-silhouette.unknown{height:1.6666666667vh}#kill-feed-list-container .kill-feed-list .kill-feed .feed-info .head-shot-icon{height:1.4814814815vh;object-fit:contain}#kill-feed-list-container .kill-feed-list .kill-feed .feed-info .dbno-icon{width:2.962962963vh;height:1.4814814815vh;object-fit:contain}#web-replay-user-detail-container{width:28.3333333333vh;height:7.1296296296vh;position:absolute;display:flex;flex-direction:column;justify-content:center;background:#00000080;bottom:1.3888888889vh;left:50%;transform:translate(-50%);pointer-events:none;z-index:2}#web-replay-user-detail-container.hidden{visibility:hidden}#web-replay-user-detail-container #web-replay-user-info{width:100%;height:2.037037037vh;display:flex;align-items:center;background:#000000b3;font-size:1.4814814815vh}#web-replay-user-detail-container #web-replay-user-info #web-replay-user-state-team-info{display:flex;justify-content:center;align-items:center;font-family:PUBG Headline;width:2.4074074074vh;height:100%;line-height:1.8518518519vh;margin-right:.462962963vh;text-shadow:1px 0 1px rgba(0,0,0,.5),0 1px 1px rgba(0,0,0,.5),-1px 0 1px rgba(0,0,0,.5),0 -1px 1px rgba(0,0,0,.5)}#web-replay-user-detail-container #web-replay-user-info #web-replay-user-state-platform-icon{width:1.6666666667vh;height:1.6666666667vh;margin-right:.2777777778vh}#web-replay-user-detail-container #web-replay-user-info #web-replay-user-state-nickname{line-height:2.2222222222vh;margin-bottom:1px}#web-replay-user-detail-container #web-replay-user-state{width:100%;height:3.6111111111vh;display:flex;align-items:center;background:#151515cc}#web-replay-user-detail-container #web-replay-user-state #web-replay-user-equipped-weapon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:13.8888888889vh;height:100%}#web-replay-user-detail-container #web-replay-user-state #web-replay-user-equipped-weapon .not-carry-weapon{display:block;height:100%;margin-top:.2777777778vh;font-size:2.5925925926vh;line-height:2.5925925926vh}#web-replay-user-detail-container #web-replay-user-state #web-replay-user-equipped-weapon img{height:2.4074074074vh;object-fit:contain}#web-replay-user-detail-container #web-replay-user-state #web-replay-user-equipped-weapon img[src=""]{display:none}#web-replay-user-detail-container #web-replay-user-state .kill-assist{display:flex;justify-content:center;align-items:center;flex:1;margin-right:2.5vh;font-family:PUBG Headline}#web-replay-user-detail-container #web-replay-user-state .kill-assist .kills{display:flex}#web-replay-user-detail-container #web-replay-user-state .kill-assist .kills img{width:2.2222222222vh;height:2.2222222222vh;margin-right:.9259259259vh}#web-replay-user-detail-container #web-replay-user-state .kill-assist .kills #web-replay-user-kill-count{font-size:1.6666666667vh;line-height:2.037037037vh;margin-right:.9259259259vh}#web-replay-user-detail-container #web-replay-user-state .kill-assist .divider{width:1px;height:1.2962962963vh;background:#d9d9d94d;margin-right:.9259259259vh}#web-replay-user-detail-container #web-replay-user-state .kill-assist .assists{display:flex}#web-replay-user-detail-container #web-replay-user-state .kill-assist .assists img{width:2.2222222222vh;height:2.2222222222vh;margin-right:.9259259259vh}#web-replay-user-detail-container #web-replay-user-state .kill-assist .assists #web-replay-user-assist-count{font-size:1.6666666667vh;line-height:2.037037037vh}#web-replay-user-detail-container .health-bar{width:100%;height:1.4814814815vh;position:relative;background:#000000b3}#web-replay-user-detail-container .health-bar #web-replay-user-state-health{background:#e2e2e2;height:100%}#web-replay-user-detail-container .health-bar #web-replay-user-state-health-value{position:absolute;left:50%;top:-.3703703704vh;transform:translate(-50%);font-size:1.2962962963vh;line-height:2.037037037vh;color:#fff;text-shadow:1px 1px 1px rgba(0,0,0,.75)}#replay-loader{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:none;align-items:center;justify-content:center;z-index:3;background:#0a0a0a80}#replay-loader.show{display:flex;pointer-events:auto}#replay-loader.show .loader-animation{width:7.5vh;height:7.5vh;animation:.3s steps(10) infinite web-replay-loader-animationX,6.6s steps(22) infinite web-replay-loader-animationY;background-size:1000% 2200%}@keyframes web-replay-loader-animationX{0%{background-position-x:0%}to{background-position-x:-1000%}}@keyframes web-replay-loader-animationY{0%{background-position-y:0%}to{background-position-y:-2200%}}';class _S{constructor(a){this.rootDOMId=a}initializeDomElements(a,i){document.getElementById("web-replay-style")||document.getElementsByTagName("head")[0].appendChild(this.makeWebReplayStyleSheet());const l=document.getElementById(this.rootDOMId);if(l){l.style.cssText=`
13                position: absolute;
14                top: 0;
15                left: 0;
16                overflow: hidden;
17            `;const o=this.createWebReplayUIComponents(a,l.clientWidth,i);l.appendChild(o)}}createWebReplayUIComponents(a,i,l){const o=document.createDocumentFragment();return o.appendChild(new dS(l,this.rootDOMId).makeMapImageElement(a)),o.appendChild(new fS().makeCanvasElement(i)),o.appendChild(new mS().makeCanvasElement(a.teamSize)),o.appendChild(new uS().makeKillFeedListElement()),o.appendChild(new hS(l.getObserverImage("Kill"),l.getObserverImage("Assist")).makeUserDetailElement()),o.appendChild(new gS(l.getLoadingIcon()).makeLoaderElement()),o}makeWebReplayStyleSheet(){const a=document.createElement("style");return a.id=Z9,a.innerHTML=pS,a}}class vS{constructor(a){this.endTime=a,this._elapsedTime=0,this._playSpeed=v_,this.prevTime=-1,this.timeChangeCallbackList=[],this.animationId=0}set elapsedTime(a){this._elapsedTime=a,this.timeChangeCallbackList.length>0&&this.timeChangeCallbackList.forEach(i=>
17{i()})}get elapsedTime(){return this._elapsedTime}get playSpeed(){return this._playSpeed}setPlaySpeed(a){this._playSpeed=a}play(){this.animationId=window.requestAnimationFrame(a=>this.loop(a))}pause(){this.prevTime=-1,window.cancelAnimationFrame(this.animationId)}goToTime(a){this.elapsedTime=a,this.prevTime=-1}addTimeChangeCallback(a){this.timeChangeCallbackList.push(a)}loop(a){this.prevTime===-1&&(this.prevTime=a);const i=this.elapsedTime+Math.floor((a-this.prevTime)*this._playSpeed);if(this.prevTime=a,this.endTime<i){this.elapsedTime=this.endTime,this.pause();return}this.elapsedTime=i,this.animationId=window.requestAnimationFrame(l=>this.loop(l))}}class yS{constructor(a){this.loaderElem=a}show(){this.loaderElem&&this.loaderElem.classList.add("show")}hide(){this.loaderElem&&this.loaderElem.classList.remove("show")}}class bS{constructor(a,i,l,o){this.zooming=a,this.canvasSize=i,this.mapSize=l,this.isVHRendering=o}translateX(a){const i=Math.floor(this.canvasSize/2),o=this.toScale(a)-i;return Math.floor(o*this.zooming.scaleLevel+i+this.zooming.translateCoord.x)}translateY(a){const i=Math.floor(this.canvasSize/2),o=this.toScale(a)-i;return Math.floor(o*this.zooming.scaleLevel+i+this.zooming.translateCoord.y)}scale(a){return this.toScale(a)*this.zooming.scaleLevel}toScale(a){return a/this.mapSize*this.canvasSize}calculatePixel(a){if(this.isVHRendering){const i=Math.floor(a/1080*window.innerHeight);return window.innerWidth<768?i*1.25:i}return a}changeCanvasSize(a){this.canvasSize=a}}class wS{constructor(a){this.canvasSize=a,this._scaleLevel=1,this._translateCoord={x:0,y:0}}get scaleLevel(){return this._scaleLevel}get translateCoord(){return{...this._translateCoord}}zoom(a){const i=this.clampScale(this._scaleLevel*a);i!==this._scaleLevel&&(this.zoomingOffset(i/this._scaleLevel),this._scaleLevel=i,this.correctOffset())}clampScale(a){return Math.max(p_,Math.min(__,a))}drag(a,i){const l=this.getOffsetThreshold();l*-1<=this.translateCoord.x+a&&this.translateCoord.x+a<=l&&(this._translateCoord.x+=Math.floor(a)),l*-1<=this._translateCoord.y+i&&this._translateCoord.y+i<=l&&(this._translateCoord.y+=Math.floor(i))}correctOffset(){const a=this.getOffsetThreshold();this.translateCoord.x>a?this._translateCoord.x=a:this.translateCoord.x<a*-1&&(this._translateCoord.x=a*-1),this.translateCoord.y>a?this._translateCoord.y=a:this.translateCoord.y<a*-1&&(this._translateCoord.y=a*-1)}zoomingOffset(a){this._scaleLevel!==this.clampScale(a)&&(this._translateCoord={x:Math.floor(this.translateCoord.x*a),y:Math.floor(this.translateCoord.y*a)})}getOffsetThreshold(){return Math.floor((this.canvasSize*this.scaleLevel-this.canvasSize)/2)}changeCanvasSize(a){this.canvasSize=a}}class SS{constructor(a,i,l){this.mapSize=i,this.isVHRendering=l,this.zooming=new wS(a),this.scaler=new bS(this.zooming,a,this.mapSize,this.isVHRendering)}get scaleLevel(){return this.zooming.scaleLevel}get translateCoord(){return this.zooming.translateCoord}changeCanvasSize(a){this.zooming.changeCanvasSize(a),this.scaler.changeCanvasSize(a)}zoom(a){this.zooming.zoom(a)}drag(a,i){this.zooming.drag(a,i)}translateX(a){return this.scaler.translateX(a)}translateY(a){return this.scaler.translateY(a)}scale(a){return this.scaler.scale(a)}calculatePixel(a){return this.scaler.calculatePixel(a)}}class ES{constructor(a){this.staticKillFeedData=a,this._killFeedStaticMap={},this._alreadyRenderedTime={},this._currentKillFeedList=[]}initKillFeedTracker(){this._killFeedStaticMap=this.staticKillFeedData.reduce((a,i)=>{const l=i.time;return a[l]===void 0?a[l]=[{...i}]:a[l].push({...i}),a},{})}getKillFeedData(a,i){const l=Math.floor(a/1e3),o=this._killFeedStaticMap[l];if(!this._alreadyRenderedTime[l])this._alreadyRenderedTime[l]=!0;else return this._currentKillFeedList;const c=4*i,h=5;for(this._currentKillFeedList=this._currentKillFeedList.filter(f=>f.time+c>=l),o&&(this._currentKillFeedList=[...o,...this._currentKillFeedList]);this._currentKillFeedList.length>h;)this._currentKillFeedList.pop();return this._currentKillFeedList}resetKillFeedTracker(){this._alreadyRenderedTime={},this._currentKillFeedList=[]}}class xS{constructor(a,i,l,o){var c;this.killFeedData=a,this.imageRenderer=i,this.partDescIdMap=l,this.isConsoleCrossPlayOn=o,this.currentKillFeeds=[],this.killFeedTracker=new ES(this.killFeedData),this.killFeedTracker.initKillFeedTracker(),this.killFeedListElement=(c=document.getElementsByClassName("kill-feed-list"))==null?void 0:c[0]}update(a,i){const l=this.killFeedTracker.getKillFeedData(a,i),o=this.currentKillFeeds.filter(h=>!l.some(f=>h.id===f.id));this.removeKillFeedUI(o);const c=l.filter(h=>!this.currentKillFeeds.some(f=>f.id===h.id));this.addKillFeedUI(c),this.currentKillFeeds=l}resetKillFeed(){for(this.killFeedTracker.resetKillFeedTracker(),this.currentKillFeeds=[];this.killFeedListElement.firstChild;)this.killFeedListElement.removeChild(this.killFeedListElement.firstChild)}removeKillFeedUI(a){const i=[];a.forEach(l=>{const o=this.currentKillFeeds.findIndex(h=>h.id===l.id),c=this.killFeedListElement.childNodes[o];c&&i.push(c)}
17),i.forEach(l=>{this.killFeedListElement.removeChild(l)})}addKillFeedUI(a){const i=document.createDocumentFragment();a.forEach(l=>{const o=document.createElement("li");o.className="kill-feed",this.addKillFeedInnerContents(o,l),i.appendChild(o)}),this.killFeedListElement.insertBefore(i,this.killFeedListElement.childNodes[0])}addKillFeedInnerContents(a,i){i.attacker&&this.addUserInfoUI(a,i.attacker,"attacker"),this.addFeedInfoUI(a,i),i.victim&&this.addUserInfoUI(a,i.victim,"victim")}addUserInfoUI(a,i,l){const o=document.createElement("div");o.className=l;const c=this.createTeamIdUI(i.teamId,i.teamColor),h=this.createNicknameUIElement(i);switch(l){case"attacker":o.appendChild(c),o.appendChild(h);break;case"victim":o.appendChild(h),o.appendChild(c);break}a.appendChild(o)}createTeamIdUI(a,i){const l=document.createElement("div");return l.className="team-id",l.style.background=i,l.innerText=a.toString(),l}createNicknameUIElement(a){const i=document.createDocumentFragment();if(Dc(a.platform,this.isConsoleCrossPlayOn())){const o=document.createElement("img");o.className="platform-icon",o.src=this.imageRenderer.getUserOriginIcon(a.platform),i.appendChild(o)}const l=document.createElement("span");return l.className="nickname",l.innerText=a.clanTag?`[${a.clanTag}] ${a.nickname}`:a.nickname,i.appendChild(l),i}addFeedInfoUI(a,i){const l=document.createElement("div");if(l.className="feed-info",this.needToShowWeaponSilhouette(i.killType)){const o=document.createElement("img");o.className="weapon-silhouette",o.src=this.getWeaponSilhouetteIcon(i.attackPartDescId),o.onerror=c=>{typeof c!="string"&&(c.target.src=this.imageRenderer.getKillFeedIcon("unknown"),o.onerror=null)},l.appendChild(o)}if(i.isHeadShot){const o=document.createElement("img");o.className="head-shot-icon",o.src=this.imageRenderer.getKillFeedIcon("headshot"),l.appendChild(o)}if(this.needToShowDBNOIcon(i.killType)){const o=document.createElement("img");o.className="dbno-icon",o.src=this.imageRenderer.getKillFeedIcon("dbno"),l.appendChild(o)}i.killType==="Kill"&&a.classList.add("kill"),a.appendChild(l)}needToShowWeaponSilhouette(a){return a==="DBNO"||a==="Kill"}needToShowDBNOIcon(a){return a==="DBNO"||a==="GroggyDamageKill"}getWeaponSilhouetteIcon(a){return a==="unknown"||a==="null"||!a?this.imageRenderer.getKillFeedIcon("unknown"):a==="partdesc.bluezone"?this.imageRenderer.getKillFeedIcon("bluezone"):a==="partdesc.meleeprojectile"?this.imageRenderer.getKillFeedIcon("meleeprojectile"):this.partDescIdMap[a]===F0.Vehicle?this.imageRenderer.getKillFeedIcon("vehiclehit"):this.imageRenderer.getWeaponSilhouetteIcon(a,!0)}}class CS{constructor(a){this.dataPerMS=[],this.timeInterval=0,this._selectedPlayerIndex=-1,this.selectedPlayerChangedCallbacks=[],this._isPlaying=!1,this.staticData=a.staticData,this.killFeedData=a.killFeedData,this.imageRenderer=a.imageRenderer,this.partDescIdMap=a.partDescIdMap,this.isVHRendering=a.isVHRendering,this.rootDOMId=a.rootDOMId,this.isConsoleCrossPlayOn=a.isConsoleCrossPlayOn;const i=this.getCanvasSize();new _S(this.rootDOMId).initializeDomElements(this.staticData,this.imageRenderer),this.loader=new yS(document.getElementById(x_)),this.mapViewer=new SS(i,this.staticData.mapMetadata.width,this.isVHRendering),this.killFeedUpdator=new xS(this.killFeedData,this.imageRenderer,this.partDescIdMap,this.isConsoleCrossPlayOn)}get translateCoord(){return this.mapViewer.translateCoord}get scaleLevel(){return this.mapViewer.scaleLevel}get elapsedTime(){var a;return((a=this.timer)==null?void 0:a.elapsedTime)??0}get playSpeed(){var a;return((a=this.timer)==null?void 0:a.playSpeed)??v_}get selectedPlayerIndex(){return this._selectedPlayerIndex}get timeIndex(){return Math.floor(this.elapsedTime/this.timeInterval)}get isPlaying(){return this._isPlaying}initializeDataPerMS(a,i){this.dataPerMS=a,this.timeInterval=Math.floor(1/i*1e3),this.uiUpdator=new cS(this.mapViewer,this.staticData,this.dataPerMS),this.uiUpdator.initialize(this.imageRenderer,this.isConsoleCrossPlayOn),this.initializeTimer(),this.addSelectedPlayerChangedCallback(()=>{var l;return(l=this.uiUpdator)==null?void 0:l.updateUIBasedOnTime(this.timeIndex,this.selectedPlayerIndex)})}initializeTimer(){this.timer=new vS(this.dataPerMS[this.dataPerMS.length-1].time),this.timer.addTimeChangeCallback(()=>{var a;return(a=this.uiUpdator)==null?void 0:a.updateUIBasedOnTime(this.timeIndex,this.selectedPlayerIndex)}),this.timer.addTimeChangeCallback(()=>this.killFeedUpdator.update(this.elapsedTime,this.playSpeed)),this.timer.addTimeChangeCallback(()=>{var a;if(((a=this.dataPerMS[this.timeIndex].playerStatusList[this.selectedPlayerIndex])==null?void 0:a.lifeState)===Xt.DEAD&&this.selectedPlayerIndex>=0){this.resetSelectedPlayer();return}})}setPlaySpeed(a){var i;(i=this.timer)==null||i.setPlaySpeed(a)}updateCanvasSize(){var a,i,l;const o=this.getCanvasSize();this.mapViewer.changeCanvasSize(o),(a=this.uiUpdator)==null||a.updateCanvasSize(o),(i=this.uiUpdator)==null||i.updateUIBasedOnMapView(this.scaleLevel,this.translateCoord),(l=this.uiUpdator)==null||l.updateUIBasedOnTime(this.timeIndex,this.selectedPlayerIndex)}getCanvasSize(){const a=document.getElementById(this.rootDOMId);return a?a.clientHeight:0}zoom(a){var i,l;this.mapViewer.zoom(a),(i=this.uiUpdator)==null||i.updateUIBasedOnMapView(this.scaleLevel,this.translateCoord),(l=this.uiUpdator)==null||l.updateUIBasedOnTime(this.timeIndex,this.selectedPlayerIndex)}drag(a,i){var l,o;this.mapViewer.drag(a,i),(l=this.uiUpdator)==null||l.updateUIBasedOnMapView(this.scaleLevel,this.translateCoord),(o=this.uiUpdator)==null||o.updateUIBasedOnTime(this.timeIndex,this.selectedPlayerIndex)}isMinScale(){return this.mapViewer.scaleLevel===p_}isMaxScale(){return this.mapViewer.scaleLevel===__}dispose(){this.dataPerMS=[],this.pause()}goToTime(a){var i;this.killFeedUpdator.resetKillFeed(),(i=this.timer)==null||i.goToTime(a)}play(){var a;this.isPlaying||((a=this.timer)==null||a.play(),this._isPlaying=!0)}pause(){var a;this.isPlaying&&((a=this.timer)==null||a.pause(),this._isPlaying=!1)}addTimeChangeCallback(a){var i;(i=this.timer)==null||i.addTimeChangeCallback(a)}addSelectedPlayerChangedCallback(a){this.selectedPlayerChangedCallbacks.push(a)}selectPlayer(a){this._selectedPlayerIndex=a,this.selectedPlayerChangedCallbacks.forEach(i=>
17i())}resetSelectedPlayer(){this.selectPlayer(-1)}showLoader(a){a?this.loader.show():this.loader.hide()}getTranslatedPosition(a){return{x:this.mapViewer.translateX(a.x),y:this.mapViewer.translateY(a.y)}}}class TS{constructor(a){this.engine=a}onPlayerCanvasClick(a,i){const l=this.findClickedPlayerIndex(i,a);l>=0&&this.engine.selectPlayer(l)}findClickedPlayerIndex(a,i){for(let l=0;l<a.length;l++){const o=a[l];if(o.lifeState!==Xt.DEAD&&o.location){const{x:c,y:h}=this.engine.getTranslatedPosition(o.location);if(Math.pow(i.x-c,2)+Math.pow(i.y-h,2)<Math.pow(8,2))return l}}return-1}}class RS{constructor(a){this.engine=a,this.isMouseDragging=!1,this.startMouseX=0,this.startMouseY=0,this.isTouchDragging=!1,this.startTouchX=0,this.startTouchY=0,this.touchId=null}resetDragState(){this.isTouchDragging=!1,this.touchId=null}handleMouseDown(a){this.isMouseDragging=!0,this.startMouseX=a.clientX,this.startMouseY=a.clientY}handleMouseMove(a){if(this.isMouseDragging){const i=a.clientX-this.startMouseX,l=a.clientY-this.startMouseY;this.startMouseX=a.clientX,this.startMouseY=a.clientY,this.engine.drag(i,l)}}handleMouseUp(){this.isMouseDragging=!1}handleTouchStart(a){if(a.touches.length!==1){this.resetDragState();return}a.preventDefault();const i=a.touches[0];this.isTouchDragging=!0,this.startTouchX=i.clientX,this.startTouchY=i.clientY,this.touchId=i.identifier}handleTouchMove(a){if(!this.isTouchDragging||this.touchId===null)return;const i=Array.from(a.touches).find(c=>c.identifier===this.touchId);if(!i||a.touches.length>1){this.resetDragState();return}a.preventDefault();const l=i.clientX-this.startTouchX,o=i.clientY-this.startTouchY;this.startTouchX=i.clientX,this.startTouchY=i.clientY,this.engine.drag(l,o)}handleTouchEnd(a){if(!this.isTouchDragging||this.touchId===null)return;!Array.from(a.touches).some(l=>l.identifier===this.touchId)&&this.resetDragState()}getIsTouchDragging(){return this.isTouchDragging}}const lg=1.1;class MS{constructor(a){this.engine=a,this.mouseX=0,this.mouseY=0}handleMouseMove(a){this.mouseX=a.offsetX,this.mouseY=a.offsetY}handleWheel(a){const i=(this.mouseX-a.currentTarget.clientWidth/2)*-1,l=(this.mouseY-a.currentTarget.clientHeight/2)*-1;a.deltaY>0&&!this.engine.isMinScale()?this.engine.zoom(1/lg):a.deltaY<0&&!this.engine.isMaxScale()&&(this.engine.zoom(lg),this.engine.drag(i/10,l/10))}}class kS{constructor(a){this.engine=a,this.previousDistance=0,this.dragHandler=null,this.startTouches=[]}setDragHandler(a){this.dragHandler=a}handleTouchStart(a){var i;a.touches.length===2&&(a.preventDefault(),(i=this.dragHandler)!=null&&i.getIsTouchDragging()&&this.dragHandler.resetDragState(),this.previousDistance=this.getDistance(a.touches[0],a.touches[1]),this.startTouches=[a.touches[0],a.touches[1]])}handleTouchMove(a){if(a.touches.length===2){a.preventDefault();const i=this.getDistance(a.touches[0],a.touches[1]),l=i/this.previousDistance;if(this.previousDistance=i,l>1){const c=a.currentTarget.getBoundingClientRect(),h=(this.startTouches[0].clientX+this.startTouches[1].clientX)/2-c.left,f=(this.startTouches[0].clientY+this.startTouches[1].clientY)/2-c.top,g=(h-c.width/2)*-1,m=(f-c.height/2)*-1,_=25;this.engine.drag(g/_,m/_)}this.engine.zoom(l)}}handleTouchEnd(a){a.touches.length<2&&(this.previousDistance=0,this.startTouches=[])}getDistance(a,i){const l=a.clientX-i.clientX,o=a.clientY-i.clientY;return Math.sqrt(l*l+o*o)}}class DS{constructor(a,i){this.engine=a,this.dataPerMS=i,this.clickHandler=new TS(this.engine),this.dragNdropHandler=new RS(this.engine),this.wheelHandler=new MS(this.engine),this.pinchZoomHandler=new kS(this.engine),this.canvas=document.getElementById(Ln),this.userClickEvent=l=>this.handleUserClickEvent({clientX:l.clientX,clientY:l.clientY}),this.userTouchEvent=l=>this.handleUserClickEvent({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY}),this.dragNdropMouseDownEvent=l=>this.dragNdropHandler.handleMouseDown(l),this.dragNdropMouseMoveEvent=l=>this.dragNdropHandler.handleMouseMove(l),this.dragNdropMouseUpEvent=()=>this.dragNdropHandler.handleMouseUp(),this.wheelEvent=l=>{l.preventDefault(),this.wheelHandler.handleWheel(l)},this.wheelMouseMoveEvent=l=>this.wheelHandler.handleMouseMove(l),this.touchStartEvent=l=>{this.dragNdropHandler.handleTouchStart(l),this.pinchZoomHandler.handleTouchStart(l)},this.touchMoveEvent=l=>{this.dragNdropHandler.handleTouchMove(l),this.pinchZoomHandler.handleTouchMove(l)},this.touchEndEvent=l=>{this.dragNdropHandler.handleTouchEnd(l),this.pinchZoomHandler.handleTouchEnd(l)},this.pinchZoomHandler.setDragHandler(this.dragNdropHandler)}listenToUserClickEvent(){this.canvas.addEventListener("click",this.userClickEvent)}listenToUserTouchEvent(){this.canvas.addEventListener("touchend",this.userTouchEvent)}handleUserClickEvent({clientX:a,clientY:i}){const{left:l,top:o}=this.canvas.getBoundingClientRect();this.clickHandler.onPlayerCanvasClick({x:a-l,y:i-o},this.dataPerMS[this.engine.timeIndex].playerStatusList)}listenZoomDragEvent(){this.listenDragAndDropEvent(),this.listenWheelEvent(),this.listenTouchEvent()}listenDragAndDropEvent(){this.canvas.addEventListener("mousedown",this.dragNdropMouseDownEvent),document.addEventListener("mousemove",this.dragNdropMouseMoveEvent),document.addEventListener("mouseup",this.dragNdropMouseUpEvent)}listenWheelEvent(){this.canvas.addEventListener("wheel",this.wheelEvent),this.canvas.addEventListener("mousemove",this.wheelMouseMoveEvent)}listenTouchEvent(){this.canvas.addEventListener("touchstart",this.touchStartEvent),this.canvas.addEventListener("touchmove",this.touchMoveEvent),this.canvas.addEventListener("touchend",this.touchEndEvent)}removeEventListeners(){this.canvas.removeEventListener("click",this.userClickEvent),this.canvas.removeEventListener("touchend",this.userTouchEvent),this.canvas.removeEventListener("mousedown",this.dragNdropMouseDownEvent),document.removeEventListener("mousemove",this.dragNdropMouseMoveEvent),document.removeEventListener("mouseup",this.dragNdropMouseUpEvent),this.canvas.removeEventListener("wheel",this.wheelEvent),this.canvas.removeEventListener("mousemove",this.wheelMouseMoveEvent),this.canvas.removeEventListener("touchstart",this.touchStartEvent),this.canvas.removeEventListener("touchmove",this.touchMoveEvent),this.canvas.removeEventListener("touchend",this.touchEndEvent)}}class AS{constructor(a){this.isPlayProhibited=!1,this.intervalId=0,this.fps=0,this.isChunkPlayerDataEnabled=!1,this.totalTime=0,this.engineOptions={staticData:{},killFeedData:[],imageRenderer:a.imageRenderer,partDescIdMap:a.replayRootData.partDescIdMap,isVHRendering:a.enableVHRendering,rootDOMId:a.rootDOMId,isConsoleCrossPlayOn:a.isConsoleCrossPlayOn},this.fps=a.fps,this.userInteractionOption=a.userInteractionOption,this.totalTime=a.replayRootData.matchInfo.lastTime*1e3,this.dataGenerator=new X9(a.replayRootData,a.fps,a.isChunkPlayerDataEnabled,a.customDrawingData),this.isChunkPlayerDataEnabled=a.isChunkPlayerDataEnabled}get currentTime(){var a;return((a=this.engine)==null?void 0:a.elapsedTime)??0}get processedChunkSet(){return this.dataGenerator.processedChunkSet}get maxChunkIndex(){return Math.ceil(this.totalTime/1e3/al)}get translateCoord(){var a;return((a=this.engine)==null?void 0:a.translateCoord)??{x:0,y:0}}get scaleLevel(){var a;return((a=this.engine)==null?void 0:a.scaleLevel)??1}get playSpeed(){var a;return((a=this.engine)==null?void 0:a.playSpeed)??1}get selectedPlayerIndex(){var a;return((a=this.engine)==null?void 0:a.selectedPlayerIndex)??-1}get replayStaticData(){return this._replayStaticData}get isPlaying(){var a;return((a=this.engine)==null?void 0:a.isPlaying)??!1}async processReplayData(){this._replayStaticData=this.dataGenerator.getReplayStaticData();const a=this.dataGenerator.getKillFeedData(this._replayStaticData.playerBasicInfo);if(this.engine=new CS({...this.engineOptions,staticData:this._replayStaticData,killFeedData:a}),await this.dataGenerator.setReplayDataPerMS(),!document.getElementById(this.engineOptions.rootDOMId)){this.destroy();return}this.engine.initializeDataPerMS(this.dataGenerator.replayDataPerMS,this.fps),this.listenEventHandler(this.dataGenerator.replayDataPerMS)}destroy(){var a,i;window.clearInterval(this.intervalId),(a=this.engine)==null||a.dispose(),this.engine=void 0,this.dataGenerator.clearInterval(),(i=this.eventHandler)==null||i.removeEventListeners()}setPlaySpeed(a){var i;(i=this.engine)==null||i.setPlaySpeed(a)}play(){var a;if(!this.isPlayProhibited)return(a=this.engine)==null?void 0:a.play()}pause(){var a;return(a=this.engine)==null?void 0:a.pause()}goToTime(a){var i,l;if(!this.isChunkPlayerDataEnabled){(i=this.engine)==null||i.goToTime(a);return}const o=Math.floor(a/1e3/al);if(!this.isReplayDataPerMSCreated(a)){this.dataGenerator.processPlayerChunk(o),this.pauseUntilDataGeneration(a);return}this.dataGenerator.processPlayerChunk(o),(l=this.engine)==null||l.goToTime(a)}drag(a,i){var l;(l=this.engine)==null||l.drag(a,i)}zoom(a){var i;(i=this.engine)==null||i.zoom(a)}addTimeChangeCallback(a){var i;(i=this.engine)==null||i.addTimeChangeCallback(a)}addSelectedPlayerChangedCallback(a){var i;(i=this.engine)==null||i.addSelectedPlayerChangedCallback(a)}getCurrentReplayData(){var a;const i=Math.floor(((a=this.engine)==null?void 0:a.timeIndex)??0);return this.dataGenerator.replayDataPerMS[i]}selectPlayer(a){var i;(i=this.engine)==null||i.selectPlayer(a)}updateCanvasSize(){var a;return(a=this.engine)==null?void 0:a.updateCanvasSize()}showLoader(a){var i;(i=this.engine)==null||i.showLoader(a)}isReplayDataPerMSCreated(a){return this.dataGenerator.isPlayerDataGenerated(a)}pauseUntilDataGeneration(a){var i;this.pause(),this.isPlayProhibited=!0,(i=this.engine)==null||i.showLoader(!0),window.clearInterval(this.intervalId),this.intervalId=window.setInterval(()=>{var l;this.isReplayDataPerMSCreated(a)&&(window.clearInterval(this.intervalId),this.isPlayProhibited=!1,this.showLoader(!1),this.play(),(l=this.engine)==null||l.goToTime(a))},1e3)}listenEventHandler(a){this.engine&&(this.eventHandler=new DS(this.engine,a),this.userInteractionOption.allowClickEvent&&this.eventHandler.listenToUserClickEvent(),this.userInteractionOption.allowTouchEvent&&this.eventHandler.listenToUserTouchEvent(),this.userInteractionOption.allowZoomDragEvent&&this.eventHandler.listenZoomDragEvent())}}const OS=(t,a)=>t.replayDataPlayerIndex===a,NS=(t,a)=>t.some(i=>i.accountId===a),US=(t,a)=>t?a[t.replayDataPlayerIndex]===Xt.DEAD:!1,zS=(t,a)=>t?a[t.replayDataPlayerIndex]===Xt.DBNO:!1,LS=(t,a)=>{if(a?.isSolo)return"linear-gradient(0deg, rgba(23, 57, 130, 0.10) 0%, rgba(23, 57, 130, 0.10) 100%), #212222";const i=parseInt(t.substring(0,2),16),l=parseInt(t.substring(2,4),16),o=parseInt(t.substring(4,6),16);return`linear-gradient(0deg, rgba(${i}, ${l}, ${o}, 0.1) 0%, rgba(${i}, ${l}, ${o}, 0.1) 100%), #212222`},IS=(t,a,i)=>{const l=[];
17if(NS(t,a)){const o=t[0].teamColor.replace(/^#/,"");l.push(LS(o,i))}return l.join(",")},jS=({player:t,selectedPlayerIndex:a,playerLifeState:i})=>zS(t,i)?"dbno":US(t,i)?"dead":OS(t,a)?"team-player-selected":"",BS="_team__list_container_1k356_1",PS="_team__list_1k356_1",HS="_team_id_1k356_50",GS="_current_team_border_1k356_70",qS="_team__player_list_1k356_83",VS="_team_player_1k356_45",YS="_nickname_1k356_111",di={team__list_container:BS,team__list:PS,team_id:HS,current_team_border:GS,team__player_list:qS,team_player:VS,"clan-tag":"_clan-tag_1k356_107",nickname:YS};function $S({replayController:t,isReplayDataProcessed:a,replayScreenHeight:i,myAccountId:l}){const[o,c]=y.useState(0),[h,f]=y.useState([]),g=y.useMemo(()=>{if(!(!t.replayStaticData||!a))return new N9(t.replayStaticData?.playerBasicInfo??[],t.replayStaticData?.teamSize??0)},[t.replayStaticData,a]),m=y.useCallback(E=>E.some(w=>w.accountId===l),[l]),_=y.useCallback(E=>{c(E.replayDataPlayerIndex),t?.selectPlayer(E.replayDataPlayerIndex)},[c,t]),b=y.useCallback(()=>{t&&t.addTimeChangeCallback(()=>f(t.getCurrentReplayData()?.playerStatusList.map(E=>E.lifeState??Xt.ALIVE)??[]))},[t]);return y.useEffect(()=>{a&&b()},[a,b]),v.jsx("div",{id:"team__list_container",className:di.team__list_container,style:{height:i??void 0},children:v.jsx("ol",{className:di.team__list,children:g&&Array.from(g.teamMap.entries()).map(([E,w])=>v.jsxs("li",{style:{background:IS(w,l,g)},children:[v.jsx("i",{className:di.team_id,style:{background:g.isSolo?"#242424":w[0].teamColor},children:E}),v.jsx("ul",{className:di.team__player_list,children:w.map(x=>v.jsxs("li",{className:`${di.team_player} ${jS({player:x,selectedPlayerIndex:o,playerLifeState:h})}`,onClick:()=>_(x),children:[x.clanTag&&v.jsxs("span",{className:di["clan-tag"],children:["[",x.clanTag,"]"]}),v.jsx("span",{className:di.nickname,children:x.nickname})]},x.accountId))}),m(w)&&v.jsx("div",{className:di.current_team_border,style:{borderColor:g.isSolo?"#646464":w[0].teamColor}})]},E))})})}function Or({fallback:t=v.jsx("div",{className:"loader"}),children:a,loading:i=!1}){return i?t:v.jsx(y.Suspense,{fallback:t,children:a})}const KS="_guide__message_1ogn4_1",FS="_description__block_1ogn4_14",rg={guide__message:KS,description__block:FS};function wi({contentTrs:t,buttonTr:a,buttonOnClick:i}){const{tr:l}=et();return v.jsxs("div",{className:rg.guide__message,children:[v.jsx("div",{className:rg.description__block,children:v.jsx("p",{children:t.map(({key:o,args:c=[]})=>l(o,...c)).join(`
18`)})}),a&&v.jsx("button",{onClick:i,className:"secondary__button medium",children:l(a.key,...a.args??[])})]})}function C_(){const t=Gc(),{language:a}=et();return v.jsx("main",{id:"sub__container",className:"error__page",children:v.jsx("div",{className:"sub__contents",children:v.jsx(wi,{contentTrs:[{key:"BRIDGE:ERROR_TITLE_0"},{key:"BRIDGE:ERROR_BODY_0"}],buttonTr:{key:"BRIDGE:ERROR_BUTTON_0"},buttonOnClick:()=>t(`/${a}`)})})})}function il(t){let a=t.length;for(;--a>=0;)t[a]=0}const XS=3,QS=258,T_=29,ZS=256,JS=ZS+1+T_,R_=30,WS=512,eE=new Array((JS+2)*2);il(eE);const tE=new Array(R_*2);il(tE);const aE=new Array(WS);il(aE);const nE=new Array(QS-XS+1);il(nE);const iE=new Array(T_);il(iE);const sE=new Array(R_);il(sE);const lE=(t,a,i,l)=>{let o=t&65535|0,c=t>>>16&65535|0,h=0;for(;i!==0;){h=i>2e3?2e3:i,i-=h;do o=o+a[l++]|0,c=c+o|0;while(--h);o%=65521,c%=65521}return o|c<<16|0};var g0=lE;const rE=()=>{let t,a=[];for(var i=0;i<256;i++){t=i;for(var l=0;l<8;l++)t=t&1?3988292384^t>>>1:t>>>1;a[i]=t}return a},oE=new Uint32Array(rE()),cE=(t,a,i,l)=>{const o=oE,c=l+i;t^=-1;for(let h=l;h<c;h++)t=t>>>8^o[(t^a[h])&255];return t^-1};var en=cE,p0={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},M_={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const uE=(t,a)=>Object.prototype.hasOwnProperty.call(t,a);var hE=function(t){const a=Array.prototype.slice.call(arguments,1
vendor: 10,992 bytes, line 18
18);for(;a.length;){const i=a.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const l in i)uE(i,l)&&(t[l]=i[l])}}return t},dE=t=>{let a=0;for(let l=0,o=t.length;l<o;l++)a+=t[l].length;const i=new Uint8Array(a);for(let l=0,o=0,c=t.length;l<c;l++){let h=t[l];i.set(h,o),o+=h.length}return i},k_={assign:hE,flattenChunks:dE};let D_=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{D_=!1}const Er=new Uint8Array(256);for(let t=0;t<256;t++)Er[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Er[254]=Er[254]=1;var fE=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let a,i,l,o,c,h=t.length,f=0;for(o=0;o<h;o++)i=t.charCodeAt(o),(i&64512)===55296&&o+1<h&&(l=t.charCodeAt(o+1),(l&64512)===56320&&(i=65536+(i-55296<<10)+(l-56320),o++)),f+=i<128?1:i<2048?2:i<65536?3:4;for(a=new Uint8Array(f),c=0,o=0;c<f;o++)i=t.charCodeAt(o),(i&64512)===55296&&o+1<h&&(l=t.charCodeAt(o+1),(l&64512)===56320&&(i=65536+(i-55296<<10)+(l-56320),o++)),i<128?a[c++]=i:i<2048?(a[c++]=192|i>>>6,a[c++]=128|i&63):i<65536?(a[c++]=224|i>>>12,a[c++]=128|i>>>6&63,a[c++]=128|i&63):(a[c++]=240|i>>>18,a[c++]=128|i>>>12&63,a[c++]=128|i>>>6&63,a[c++]=128|i&63);return a};const mE=(t,a)=>{if(a<65534&&t.subarray&&D_)return String.fromCharCode.apply(null,t.length===a?t:t.subarray(0,a));let i="";for(let l=0;l<a;l++)i+=String.fromCharCode(t[l]);return i};var gE=(t,a)=>{const i=a||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,a));let l,o;const c=new Array(i*2);for(o=0,l=0;l<i;){let h=t[l++];if(h<128){c[o++]=h;continue}let f=Er[h];if(f>4){c[o++]=65533,l+=f-1;continue}for(h&=f===2?31:f===3?15:7;f>1&&l<i;)h=h<<6|t[l++]&63,f--;if(f>1){c[o++]=65533;continue}h<65536?c[o++]=h:(h-=65536,c[o++]=55296|h>>10&1023,c[o++]=56320|h&1023)}return mE(c,o)},pE=(t,a)=>{a=a||t.length,a>t.length&&(a=t.length);let i=a-1;for(;i>=0&&(t[i]&192)===128;)i--;return i<0||i===0?a:i+Er[t[i]]>a?i:a},_0={string2buf:fE,buf2string:gE,utf8border:pE};function _E(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var vE=_E;const lc=16209,yE=16191;var bE=function(a,i){let l,o,c,h,f,g,m,_,b,E,w,x,A,M,z,G,U,L,X,te,V,R,Z,J;const re=a.state;l=a.next_in,Z=a.input,o=l+(a.avail_in-5),c=a.next_out,J=a.output,h=c-(i-a.avail_out),f=c+(a.avail_out-257),g=re.dmax,m=re.wsize,_=re.whave,b=re.wnext,E=re.window,w=re.hold,x=re.bits,A=re.lencode,M=re.distcode,z=(1<<re.lenbits)-1,G=(1<<re.distbits)-1;e:do{x<15&&(w+=Z[l++]<<x,x+=8,w+=Z[l++]<<x,x+=8),U=A[w&z];t:for(;;){if(L=U>>>24,w>>>=L,x-=L,L=U>>>16&255,L===0)J[c++]=U&65535;else if(L&16){X=U&65535,L&=15,L&&(x<L&&(w+=Z[l++]<<x,x+=8),X+=w&(1<<L)-1,w>>>=L,x-=L),x<15&&(w+=Z[l++]<<x,x+=8,w+=Z[l++]<<x,x+=8),U=M[w&G];a:for(;;){if(L=U>>>24,w>>>=L,x-=L,L=U>>>16&255,L&16){if(te=U&65535,L&=15,x<L&&(w+=Z[l++]<<x,x+=8,x<L&&(w+=Z[l++]<<x,x+=8)),te+=w&(1<<L)-1,te>g){a.msg="invalid distance too far back",re.mode=lc;break e}if(w>>>=L,x-=L,L=c-h,te>L){if(L=te-L,L>_&&re.sane){a.msg="invalid distance too far back",re.mode=lc;break e}if(V=0,R=E,b===0){if(V+=m-L,L<X){X-=L;do J[c++]=E[V++];while(--L);V=c-te,R=J}}else if(b<L){if(V+=m+b-L,L-=b,L<X){X-=L;do J[c++]=E[V++];while(--L);if(V=0,b<X){L=b,X-=L;do J[c++]=E[V++];while(--L);V=c-te,R=J}}}else if(V+=b-L,L<X){X-=L;do J[c++]=E[V++];while(--L);V=c-te,R=J}for(;X>2;)J[c++]=R[V++],J[c++]=R[V++],J[c++]=R[V++],X-=3;X&&(J[c++]=R[V++],X>1&&(J[c++]=R[V++]))}else{V=c-te;do J[c++]=J[V++],J[c++]=J[V++],J[c++]=J[V++],X-=3;while(X>2);X&&(J[c++]=J[V++],X>1&&(J[c++]=J[V++]))}}else if((L&64)===0){U=M[(U&65535)+(w&(1<<L)-1)];continue a}else{a.msg="invalid distance code",re.mode=lc;break e}break}}else if((L&64)===0){U=A[(U&65535)+(w&(1<<L)-1)];continue t}else if(L&32){re.mode=yE;break e}else{a.msg="invalid literal/length code",re.mode=lc;break e}break}}while(l<o&&c<f);X=x>>3,l-=X,x-=X<<3,w&=(1<<x)-1,a.next_in=l,a.next_out=c,a.avail_in=l<o?5+(o-l):5-(l-o),a.avail_out=c<f?257+(f-c):257-(c-f),re.hold=w,re.bits=x};const Ys=15,og=852,cg=592,ug=0,Ad=1,hg=2,wE=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),SE=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),EE=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),xE=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),CE=(t,a,i,l,o,c,h,f)=>{const g=f.bits;let m=0,_=0,b=0,E=0,w=0,x=0,A=0,M=0,z=0,G=0,U,L,X,te,V,R=null,Z;const J=new Uint16Array(Ys+1),re=new Uint16Array(Ys+1);let fe=null,Be,Ce,pe;for(m=0;m<=Ys;m++)J[m]=0;for(_=0;_<l;_++)J[a[i+_]]++;for(w=g,E=Ys;E>=1&&J[E]===0;E--);if(w>E&&(w=E),E===0)return o[c++]=1<<24|64<<16|0,o[c++]=1<<24|64<<16|0,f.bits=1,0;for(b=1;b<E&&J[b]===0;b++);for(w<b&&(w=b),M=1,m=1;m<=Ys;m++)if(M<<=1,M-=J[m],M<0)return-1;if(M>0&&(t===ug||E!==1))return-1;for(re[1]=0,m=1;m<Ys;m++)re[m+1]=re[m]+J[m];for(_=0;_<l;_++)a[i+_]!==0&&(h[re[a[i+_]]++]=_);if(t===ug?(R=fe=h,Z=20):t===Ad?(R=wE,fe=SE,Z=257):(R=EE,fe=xE,Z=0),G=0,_=0,m=b,V=c,x=w,A=0,X=-1,z=1<<w,te=z-1,t===Ad&&z>og||t===hg&&z>cg)return 1;for(;;){Be=m-A,h[_]+1<Z?(Ce=0,pe=h[_]):h[_]>=Z?(Ce=fe[h[_]-Z],pe=R[h[_]-Z]):(Ce=96,pe=0),U=1<<m-A,L=1<<x,b=L;do L-=U,o[V+(G>>A)+L]=Be<<24|Ce<<16|pe|0;while(L!==0);for(U=1<<m-1;G&U;)U>>=1;if(U!==0?(G&=U-1,G+=U):G=0,_++,--J[m]===0){if(m===E)break;m=a[i+h[_]]}if(m>w&&(G&te)!==X){for(A===0&&(A=w),V+=b,x=m-A,M=1<<x;x+A<E&&(M-=J[x+A],!(M<=0));)x++,M<<=1;if(z+=1<<x,t===Ad&&z>og||t===hg&&z>cg)return 1;X=G&te,o[X]=w<<24|x<<16|V-c|0}}return G!==0&&(o[V+G]=m-A<<24|64<<16|0),f.bits=w,0};var mr=CE;const TE=0,A_=1,O_=2,{Z_FINISH:dg,Z_BLOCK:RE,Z_TREES:rc,Z_OK:es,Z_STREAM_END:ME,Z_NEED_DICT:kE,Z_STREAM_ERROR:Da,Z_DATA_ERROR:N_,Z_MEM_ERROR:U_,Z_BUF_ERROR:DE,Z_DEFLATED:fg}=M_,Vc=16180,mg=16181,gg=16182,pg=16183,_g=16184,vg=16185,yg=16186,bg=16187,wg=16188,Sg=16189,Oc=16190,kn=16191,Od=16192,Eg=16193,Nd=16194,xg=16195,Cg=16196,Tg=16197,Rg=16198,oc=16199,cc=16200,Mg=16201,kg=16202,Dg=16203,Ag=16204,Og=16205,Ud=16206,Ng=16207,Ug=16208,ot=16209,z_=16210,L_=16211,AE=852,OE=592,NE=15,UE=NE,zg=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function zE(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const is=t=>{if(!t)return 1;const a=t.state;return!a||a.strm!==t||a.mode<Vc||a.mode>L_?1:0},I_=t=>{if(is(t))return Da;const a=t.state;return t.total_in=t.total_out=a.total=0,t.msg="",a.wrap&&(t.adler=a.wrap&1),a.mode=Vc,a.last=0,a.havedict=0,a.flags=-1,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=a.lendyn=new Int32Array(AE),a.distcode=a.distdyn=new Int32Array(OE),a.sane=1,a.back=-1,es},j_=t=>{if(is(t))return Da;const a=t.state;return a.wsize=0,a.whave=0,a.wnext=0,I_(t)},B_=(t,a)=>{let i;if(is(t))return Da;const l=t.state;return a<0?(i=0,a=-a):(i=(a>>4)+5,a<48&&(a&=15)),a&&(a<8||a>15)?Da:(l.window!==null&&l.wbits!==a&&(l.window=null),l.wrap=i,l.wbits=a,j_(t))},P_=(t,a)=>{if(!t)return Da;const i=new zE;t.state=i,i.strm=t,i.window=null,i.mode=Vc;const l=B_(t,a);return l!==es&&(t.state=null),l},LE=t=>P_(t,UE);let Lg=!0,zd,Ld;const IE=t=>{if(Lg){zd=new Int32Array(512),Ld=new Int32Array(32);let a=0;for(;a<144;)t.lens[a++]=8;for(;a<256;)t.lens[a++]=9;for(;a<280;)t.lens[a++]=7;for(;a<288;)t.lens[a++]=8;for(mr(A_,t.lens,0,288,zd,0,t.work,{bits:9}),a=0;a<32;)t.lens[a++]=5;mr(O_,t.lens,0,32,Ld,0,t.work,{bits:5}),Lg=!1}t.lencode=zd,t.lenbits=9,t.distcode=Ld,t.distbits=5},H_=(t,a,i,l)=>{let o;const c=t.state;return c.window===null&&(c.wsize=1<<c.wbits,c.wnext=0,c.whave=0,c.window=new Uint8Array(c.wsize)),l>=c.wsize?(c.window.set(a.subarray(i-c.wsize,i),0),c.wnext=0,c.whave=c.wsize):(o=c.wsize-c.wnext,o>l&&(o=l),c.window.set(a.subarray(i-l,i-l+o),c.wnext),l-=o,l?(c.window.set(a.subarray(i-l,i),0),c.wnext=l,c.whave=c.wsize):(c.wnext+=o,c.wnext===c.wsize&&(c.wnext=0),c.whave<c.wsize&&(c.whave+=o))),0},jE=(t,a)=>{let i,l,o,c,h,f,g,m,_,b,E,w,x,A,M=0,z,G,U,L,X,te,V,R;const Z=new Uint8Array(4);let J,re;const fe=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(is(t)||!t.output||!t.input&&t.avail_in!==0)return Da;i=t.state,i.mode===kn&&(i.mode=Od),h=t.next_out,o=t.output,g=t.avail_out,c=t.next_in,l=t.input,f=t.avail_in,m=i.hold,_=i.bits,b=f,E=g,R=es;e:for(;;)switch(i.mode){case Vc:if(i.wrap===0){i.mode=Od;break}for(;_<16;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(i.wrap&2&&m===35615){i.wbits===0&&(i.wbits=15),i.check=0,Z[0]=m&255,Z[1]=m>>>8&255,i.check=en(i.check,Z,2,0),m=0,_=0,i.mode=mg;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((m&255)<<8)+(m>>8))%31){t.msg="incorrect header check",i.mode=ot;break}if((m&15)!==fg){t.msg="unknown compression method",i.mode=ot;break}if(m>>>=4,_-=4,V=(m&15)+8,i.wbits===0&&(i.wbits=V),V>15||V>i.wbits){t.msg="invalid window size",i.mode=ot;break}i.dmax=1<<i.wbits,i.flags=0,t.adler=i.check=1,i.mode=m&512?Sg:kn,m=0,_=0;break;case mg:for(;_<16;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(i.flags=m,(i.flags&255)!==fg){t.msg="unknown compression method",i.mode=ot;break}if(i.flags&57344){t.msg="unknown header flags set",i.mode=ot;break}i.head&&(i.head.text=m>>8&1),i.flags&512&&i.wrap&4&&(Z[0]=m&255,Z[1]=m>>>8&255,i.check=en(i.check,Z,2,0)),m=0,_=0,i.mode=gg;case gg:for(;_<32;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}i.head&&(i.head.time=m),i.flags&512&&i.wrap&4&&(Z[0]=m&255,Z[1]=m>>>8&255,Z[2]=m>>>16&255,Z[3]=m>>>24&255,i.check=en(i.check,Z,4,0)),m=0,_=0,i.mode=pg;case pg:for(;_<16;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}i.head&&(i.head.xflags=m&255,i.head.os=m>>8),i.flags&512&&i.wrap&4&&(Z[0]=m&255,Z[1]=m>>>8&255,i.check=en(i.check,Z,2,0)),m=0,_=0,i.mode=_g;case _g:if(i.flags&1024){for(;_<16;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}i.length=m,i.head&&(i.head.extra_len=m),i.flags&512&&i.wrap&4&&(Z[0]=m&255,Z[1]=m>>>8&255,i.check=en(i.check,Z,2,0)),m=0,_=0}else i.head&&(i.head.extra=null);i.mode=vg;case vg:if(i.flags&1024&&(w=i.length,w>f&&(w=f),w&&(i.head&&(V=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(l.subarray(c,c+w),V)),i.flags&512&&i.wrap&4&&(i.check=en(i.check,l,w,c)),f-=w,c+=w,i.length-=w),i.length))break e;i.length=0,i.mode=yg;case yg:if(i.flags&2048){if(f===0)break e;w=0;do V=l[c+w++],i.head&&V&&i.length<65536&&(i.head.name+=String.fromCharCode(V));while(V&&w<f);
vendor: 5,811 bytes, line 18
18if(i.flags&512&&i.wrap&4&&(i.check=en(i.check,l,w,c)),f-=w,c+=w,V)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=bg;case bg:if(i.flags&4096){if(f===0)break e;w=0;do V=l[c+w++],i.head&&V&&i.length<65536&&(i.head.comment+=String.fromCharCode(V));while(V&&w<f);if(i.flags&512&&i.wrap&4&&(i.check=en(i.check,l,w,c)),f-=w,c+=w,V)break e}else i.head&&(i.head.comment=null);i.mode=wg;case wg:if(i.flags&512){for(;_<16;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(i.wrap&4&&m!==(i.check&65535)){t.msg="header crc mismatch",i.mode=ot;break}m=0,_=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=kn;break;case Sg:for(;_<32;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}t.adler=i.check=zg(m),m=0,_=0,i.mode=Oc;case Oc:if(i.havedict===0)return t.next_out=h,t.avail_out=g,t.next_in=c,t.avail_in=f,i.hold=m,i.bits=_,kE;t.adler=i.check=1,i.mode=kn;case kn:if(a===RE||a===rc)break e;case Od:if(i.last){m>>>=_&7,_-=_&7,i.mode=Ud;break}for(;_<3;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}switch(i.last=m&1,m>>>=1,_-=1,m&3){case 0:i.mode=Eg;break;case 1:if(IE(i),i.mode=oc,a===rc){m>>>=2,_-=2;break e}break;case 2:i.mode=Cg;break;case 3:t.msg="invalid block type",i.mode=ot}m>>>=2,_-=2;break;case Eg:for(m>>>=_&7,_-=_&7;_<32;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if((m&65535)!==(m>>>16^65535)){t.msg="invalid stored block lengths",i.mode=ot;break}if(i.length=m&65535,m=0,_=0,i.mode=Nd,a===rc)break e;case Nd:i.mode=xg;case xg:if(w=i.length,w){if(w>f&&(w=f),w>g&&(w=g),w===0)break e;o.set(l.subarray(c,c+w),h),f-=w,c+=w,g-=w,h+=w,i.length-=w;break}i.mode=kn;break;case Cg:for(;_<14;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(i.nlen=(m&31)+257,m>>>=5,_-=5,i.ndist=(m&31)+1,m>>>=5,_-=5,i.ncode=(m&15)+4,m>>>=4,_-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=ot;break}i.have=0,i.mode=Tg;case Tg:for(;i.have<i.ncode;){for(;_<3;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}i.lens[fe[i.have++]]=m&7,m>>>=3,_-=3}for(;i.have<19;)i.lens[fe[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,J={bits:i.lenbits},R=mr(TE,i.lens,0,19,i.lencode,0,i.work,J),i.lenbits=J.bits,R){t.msg="invalid code lengths set",i.mode=ot;break}i.have=0,i.mode=Rg;case Rg:for(;i.have<i.nlen+i.ndist;){for(;M=i.lencode[m&(1<<i.lenbits)-1],z=M>>>24,G=M>>>16&255,U=M&65535,!(z<=_);){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(U<16)m>>>=z,_-=z,i.lens[i.have++]=U;else{if(U===16){for(re=z+2;_<re;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(m>>>=z,_-=z,i.have===0){t.msg="invalid bit length repeat",i.mode=ot;break}V=i.lens[i.have-1],w=3+(m&3),m>>>=2,_-=2}else if(U===17){for(re=z+3;_<re;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}m>>>=z,_-=z,V=0,w=3+(m&7),m>>>=3,_-=3}else{for(re=z+7;_<re;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}m>>>=z,_-=z,V=0,w=11+(m&127),m>>>=7,_-=7}if(i.have+w>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=ot;break}for(;w--;)i.lens[i.have++]=V}}if(i.mode===ot)break;if(i.lens[256]===0){t.msg="invalid code -- missing end-of-block",i.mode=ot;break}if(i.lenbits=9,J={bits:i.lenbits},R=mr(A_,i.lens,0,i.nlen,i.lencode,0,i.work,J),i.lenbits=J.bits,R){t.msg="invalid literal/lengths set",i.mode=ot;break}if(i.distbits=6,i.distcode=i.distdyn,J={bits:i.distbits},R=mr(O_,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,J),i.distbits=J.bits,R){t.msg="invalid distances set",i.mode=ot;break}if(i.mode=oc,a===rc)break e;case oc:i.mode=cc;case cc:if(f>=6&&g>=258){t.next_out=h,t.avail_out=g,t.next_in=c,t.avail_in=f,i.hold=m,i.bits=_,bE(t,E),h=t.next_out,o=t.output,g=t.avail_out,c=t.next_in,l=t.input,f=t.avail_in,m=i.hold,_=i.bits,i.mode===kn&&(i.back=-1);break}for(i.back=0;M=i.lencode[m&(1<<i.lenbits)-1],z=M>>>24,G=M>>>16&255,U=M&65535,!(z<=_);){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(G&&(G&240)===0){for(L=z,X=G,te=U;M=i.lencode[te+((m&(1<<L+X)-1)>>L)],z=M>>>24,G=M>>>16&255,U=M&65535,!(L+z<=_);){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}m>>>=L,_-=L,i.back+=L}if(m>>>=z,_-=z,i.back+=z,i.length=U,G===0){i.mode=Og;break}if(G&32){i.back=-1,i.mode=kn;break}if(G&64){t.msg="invalid literal/length code",i.mode=ot;break}i.extra=G&15,i.mode=Mg;case Mg:if(i.extra){for(re=i.extra;_<re;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}i.length+=m&(1<<i.extra)-1,m>>>=i.extra,_-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=kg;case kg:for(;M=i.distcode[m&(1<<i.distbits)-1],z=M>>>24,G=M>>>16&255,U=M&65535,!(z<=_);){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if((G&240)===0){for(L=z,X=G,te=U;M=i.distcode[te+((m&(1<<L+X)-1)>>L)],z=M>>>24,G=M>>>16&255,U=M&65535,!(L+z<=_);){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}m>>>=L,_-=L,i.back+=L}if(m>>>=z,_-=z,i.back+=z,G&64){t.msg="invalid distance code",i.mode=ot;break}i.offset=U,i.extra=G&15,i.mode=Dg;case Dg:if(i.extra){for(re=i.extra;_<re;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}i.offset+=m&(1<<i.extra)-1,m>>>=i.extra,_-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=ot;break}i.mode=Ag;case Ag:if(g===0)break e;if(w=E-g,i.offset>w){if(w=i.offset-w,w>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=ot;break}w>i.wnext?(w-=i.wnext,x=i.wsize-w):x=i.wnext-w,w>i.length&&(w=i.length),A=i.window}else A=o,x=h-i.offset,w=i.length;w>g&&(w=g),g-=w,i.length-=w;do o[h++]=A[x++];while(--w);i.length===0&&(i.mode=cc);break;case Og:if(g===0)break e;o[h++]=i.length,g--,i.mode=cc;break;case Ud:if(i.wrap){for(;_<32;){if(f===0)break e;f--,m|=l[c++]<<_,_+=8}if(E-=g,t.total_out+=E,i.total+=E,i.wrap&4&&E&&(t.adler=i.check=i.flags?en(i.check,o,E,h-E):g0(i.check,o,E,h-E)),E=g,i.wrap&4&&(i.flags?m:zg(m))!==i.check){t.msg="incorrect data check",i.mode=ot;break}m=0,_=0}i.mode=Ng;case Ng:if(i.wrap&&i.flags){for(;_<32;){if(f===0)break e;f--,m+=l[c++]<<_,_+=8}if(i.wrap&4&&m!==(i.total&4294967295)){t.msg="incorrect length check",i.mode=ot;break}m=0,_=0}i.mode=Ug;case Ug:R=ME;break e;case ot:R=N_;break e;case z_:return U_;
18case L_:default:return Da}return t.next_out=h,t.avail_out=g,t.next_in=c,t.avail_in=f,i.hold=m,i.bits=_,(i.wsize||E!==t.avail_out&&i.mode<ot&&(i.mode<Ud||a!==dg))&&H_(t,t.output,t.next_out,E-t.avail_out),b-=t.avail_in,E-=t.avail_out,t.total_in+=b,t.total_out+=E,i.total+=E,i.wrap&4&&E&&(t.adler=i.check=i.flags?en(i.check,o,E,t.next_out-E):g0(i.check,o,E,t.next_out-E)),t.data_type=i.bits+(i.last?64:0)+(i.mode===kn?128:0)+(i.mode===oc||i.mode===Nd?256:0),(b===0&&E===0||a===dg)&&R===es&&(R=DE),R},BE=t=>{if(is(t))return Da;let a=t.state;return a.window&&(a.window=null),t.state=null,es},PE=(t,a)=>{if(is(t))return Da;const i=t.state;return(i.wrap&2)===0?Da:(i.head=a,a.done=!1,es)},HE=(t,a)=>{const i=a.length;let l,o,c;return is(t)||(l=t.state,l.wrap!==0&&l.mode!==Oc)?Da:l.mode===Oc&&(o=1,o=g0(o,a,i,0),o!==l.check)?N_:(c=H_(t,a,i,i),c?(l.mode=z_,U_):(l.havedict=1,es))};var GE=j_,qE=B_,VE=I_,YE=LE,$E=P_,KE=jE,FE=BE,XE=PE,QE=HE,ZE="pako inflate (from Nodeca project)",On={inflateReset:GE,inflateReset2:qE,inflateResetKeep:VE,inflateInit:YE,inflateInit2:$E,inflate:KE,inflateEnd:FE,inflateGetHeader:XE,inflateSetDictionary:QE,inflateInfo:ZE};function JE(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var WE=JE;const G_=Object.prototype.toString,{Z_NO_FLUSH:ex,Z_FINISH:tx,Z_OK:xr,Z_STREAM_END:Id,Z_NEED_DICT:jd,Z_STREAM_ERROR:ax,Z_DATA_ERROR:Ig,Z_MEM_ERROR:nx}=M_;function Yc(t){this.options=k_.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const a=this.options;a.raw&&a.windowBits>=0&&a.windowBits<16&&(a.windowBits=-a.windowBits,a.windowBits===0&&(a.windowBits=-15)),a.windowBits>=0&&a.windowBits<16&&!(t&&t.windowBits)&&(a.windowBits+=32),a.windowBits>15&&a.windowBits<48&&(a.windowBits&15)===0&&(a.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vE,this.strm.avail_out=0;let i=On.inflateInit2(this.strm,a.windowBits);if(i!==xr)throw new Error(p0[i]);if(this.header=new WE,On.inflateGetHeader(this.strm,this.header),a.dictionary&&(typeof a.dictionary=="string"?a.dictionary=_0.string2buf(a.dictionary):G_.call(a.dictionary)==="[object ArrayBuffer]"&&(a.dictionary=new Uint8Array(a.dictionary)),a.raw&&(i=On.inflateSetDictionary(this.strm,a.dictionary),i!==xr)))throw new Error(p0[i])}Yc.prototype.push=function(t,a){const i=this.strm,l=this.options.chunkSize,o=this.options.dictionary;let c,h,f;if(this.ended)return!1;for(a===~~a?h=a:h=a===!0?tx:ex,G_.call(t)==="[object ArrayBuffer]"?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(l),i.next_out=0,i.avail_out=l),c=On.inflate(i,h),c===jd&&o&&(c=On.inflateSetDictionary(i,o),c===xr?c=On.inflate(i,h):c===Ig&&(c=jd));i.avail_in>0&&c===Id&&i.state.wrap>0&&t[i.next_in]!==0;)On.inflateReset(i),c=On.inflate(i,h);switch(c){case ax:case Ig:case jd:case nx:return this.onEnd(c),this.ended=!0,!1}if(f=i.avail_out,i.next_out&&(i.avail_out===0||c===Id))if(this.options.to==="string"){let g=_0.utf8border(i.output,i.next_out),m=i.next_out-g,_=_0.buf2string(i.output,g);i.next_out=m,i.avail_out=l-m,m&&i.output.set(i.output.subarray(g,g+m),0),this.onData(_)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(c===xr&&f===0)){if(c===Id)return c=On.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Yc.prototype.onData=function(t){this.chunks.push(t)};Yc.prototype.onEnd=function(t){t===xr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=k_.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function ix(t,a){const i=new Yc(a);if(i.push(t),i.err)throw i.msg||p0[i.err];return i.result}var sx=ix,lx={inflate:sx};const{inflate:rx}=lx;var ox=rx;function cx(t){const a=t.o,i=t.p.map(l=>dx(t,l,a));return{matchInfo:ux(t.m),mapMetadata:hx(t.t),players:i,combats:yx(t,t.c),zone:bx(a,t.z),specialZone:wx(a,t.s),carePackages:t.k.map(l=>Sx(a,t.x,l)),bluechip:Ex(i,t.b),redeploy:xx(i,t.r),killFeeds:t.f.map(l=>Cx(l,t.x)),partDescIdMap:t.i,version:a.v}}function ux(t){return{mapName:t?.n,ended:t?.e,weatherId:t?.w,teamSize:t?.t,isCustomGame:t?.c,isEventMode:t?.v,isAIMode:t?.a,lastTime:t?.l}}function hx(t){return{mapId:t.m,season:t.n,targetVersion:t.t,row:t.r,column:t.c,width:t.w,height:t.h}}function dx(t,a,i){return{basicInfo:{accountId:a.i.a,nickname:a.i.n,clanTag:a.i.c,teamId:a.i.t,origin:a.i.o},positions:fx(i,a.p),healths:mx(a.h),lifeEvents:gx(a.l),vehicleEvents:px(a.v),weapons:_x(t,a.w),killAssists:vx(a.k)}}function fx(t,a){return a.t.map((i,l)=>
18({time:i,x:a.x[l]*t.s,y:a.y[l]*t.s})).filter(i=>i.x>1)}function mx(t){return t.t.map((a,i)=>({time:a,health:t.h[i]}))}function gx(t){return t.t.map((a,i)=>({time:a,eventType:t.e[i]}))}function px(t){return t.t.map((a,i)=>({time:a,eventType:t.e[i]}))}function _x(t,a){return a.t.map((i,l)=>({time:i,weapon:t.x[a.w[l]]}))}function vx(t){return t.t.map((a,i)=>({time:a,kill:t.k[i],assist:t.a[i]}))}function yx(t,a){const i=t.x,l=a.a;return{combats:l?.t.map((o,c)=>{const h=l.a[c],f=l.v[c],g=l.c[c],m=l.d[c];return{time:o,attackerIndex:h,victimIndex:f,damageCauserPartDescId:i[g],damage:m}})}}function bx(t,a){return{bluezone:a.b.map(i=>({begin:{time:i.b.t,x:i.b.x*t.s,y:i.b.y*t.s,radius:i.b.r*t.s},end:{time:i.e.t,x:i.e.x*t.s,y:i.e.y*t.s,radius:i.e.r*t.s}})),safezone:a.s.map(i=>({begin:{time:i.b.t,x:i.b.x*t.s,y:i.b.y*t.s,radius:i.b.r*t.s},end:{time:i.e.t,x:i.e.x*t.s,y:i.e.y*t.s,radius:i.e.r*t.s}}))}}function wx(t,a){return{redzone:a.r.map(i=>({time:i.t,x:i.x*t.s,y:i.y*t.s,horizontalRadius:i.h*t.s,verticalRadius:i.v*t.s,zoneState:i.s,zoneType:i.p,uniqueId:i.i})),blackzone:a.b.map(i=>({time:i.t,x:i.x*t.s,y:i.y*t.s,horizontalRadius:i.h*t.s,verticalRadius:i.v*t.s,zoneState:i.s,zoneType:i.p,uniqueId:i.i}))}}function Sx(t,a,i){return{packageId:i.i,spawnTime:i.s,landingTime:i.t,x:i.x*t.s,y:i.y*t.s,itemIds:i.l.map(l=>a[l])}}function Ex(t,a){return{lootEvents:a.l.map(i=>({time:i.t,user:i.a===-1?null:t[i.a],owner:i.b===-1?null:t[i.b]})),useEvents:a.u.map(i=>({time:i.t,user:i.a===-1?null:t[i.a],owner:i.b===-1?null:t[i.b]})),revivalTowers:a.w.map(i=>({time:i.t,x:i.x,y:i.y}))}}function xx(t,a){return{time:a.t,characters:a.c.map(i=>t[i])}}function Cx(t,a){const i=l=>{switch(l){case 0:return"Kill";case 1:return"DBNO";case 2:return"GroggyDamageKill";default:return null}};return{time:t.t,attackerIndex:t.a,attackerPlatform:t.p,victimIndex:t.b,victimPlatform:t.q,isHeadShot:t.h,killType:i(t.y),damageCauserPartDescId:t.w===-1?null:a[t.w]}}function Tx(t){const i=(o=>{const h=atob(o).split("").map(_=>_.charCodeAt(0)),f=new Uint8Array(h),g=ox(f),m=[];for(let _=0;_<g.length;_+=1e4)m.push(String.fromCharCode.apply(null,g.slice(_,_+1e4)));return m.join("")})(t);return JSON.parse(i)}function Rx(t){const a=Tx(t);return cx(a)}const Mx=()=>({pc:"".trim()||null,console:"".trim()||null}),kx=Mx(),Ei=ts()(pp((t,a)=>({_settings:kx,getSettings:()=>({pc:null,console:null}),getEnvironmentForProvider:i=>null,getEnvironmentForMatchId:i=>null,setEnvironment:(i,l)=>{},resetEnvironment:i=>{},resetAllEnvironments:()=>{}}),{name:"external-api-environment"}));function Dx(t){const{getEnvironmentForMatchId:a}=Ei(),{data:i,isLoading:l,error:o}=Si({queryKey:["replayData",t],queryFn:async()=>{const c={},h=a(t);h!=null&&(c["X-External-Api-Environment"]=h);const f=await fetch(`/api/v1/web-replay/replays/${t}`,{headers:c});if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);const g=await f.json();return Rx(g.replayData)},enabled:!!t,staleTime:1/0});return{data:i,isLoading:l,error:o}}function Ax(t,a,i){const{getEnvironmentForMatchId:l}=Ei(),{data:o,isLoading:c,error:h}=Si({queryKey:["playerMatchStatistics",t,a,i],queryFn:async()=>{const f={},g=l(a);g!=null&&(f["X-External-Api-Environment"]=g);const m=await fetch(`/api/v1/web-replay/statistics/${t}/${a}/${i}`,{headers:f});if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);return await m.json()},enabled:!!t&&!!a&&!!i,staleTime:1/0});return{data:o,isLoading:c,error:h}}const Ox=()=>({steam:null,epic:null,kakao:null,psn:null,xbox:null}),Nx=Ox(),sl=ts()(pp((t,a)=>({_overrides:Nx,getOverrides:()=>({steam:null,epic:null,kakao:null,psn:null,xbox:null}),getOverrideForProvider:i=>null,setOverride:(i,l)=>{},resetOverride:i=>{},resetAllOverrides:()=>{}}),{name:"account-id-override"})),$s={Bro:1,PcSteam:2,PcKakao:5,ConsoleXbox:7,ConsolePsn:8,PcEpic:13},Ux=t=>{switch(t){case $s.Bro:return"steam";case $s.PcSteam:return"steam";case $s.ConsoleXbox:return"xbox";case $s.ConsolePsn:return"psn";case $s.PcEpic:return"epic";case $s.PcKakao:return"kakao";default:throw new Error(`Unsupported origin: ${t}`)}};function zx(t,a,i){const{selectedGameLink:l}=ln(),{getOverrideForProvider:o}=sl(),c=o_()[1],h=y.useMemo(()=>
18{if(i)return t.findIndex(g=>g.basicInfo.accountId===i);if(a!==void 0)return a;if(!l)return-1;const f=o(l.provider)??l.platform_id;return t.findIndex(g=>g.basicInfo.accountId===f)},[i,a,o,l,t]);return y.useEffect(()=>{h===-1||i||c({index:h.toString()},{replace:!0})},[h,i,c]),h===-1||!t[h]?null:{accountId:t[h].basicInfo.accountId,nickname:t[h].basicInfo.nickname,provider:Ux(t[h].basicInfo.origin)}}function Lx(t){const{data:a,isLoading:i,error:l}=Si({queryKey:["uidToAccountId",t],queryFn:async()=>{const o=await fetch(`/api/v1/account/uid-to-accountid/${t}`);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);const c=await o.json();if(!c.success)throw new Error("Failed to resolve uid to accountId");return c.accountId},enabled:!!t,staleTime:1/0});return{data:a,isLoading:!!t&&i,error:l}}function Ix(t,a,i){const{data:l,isLoading:o,error:c}=Dx(t),{data:h,isLoading:f,error:g}=Lx(i),m=zx(l?.players??[],a,h),{data:_,isLoading:b,error:E}=Ax(m?.provider??"steam",t,m?.accountId??"");return{data:y.useMemo(()=>l?{replayData:l,playerInfo:m??null,playerMatchStatistics:_??null}:null,[l,_,m]),isLoading:o||b||f,error:c||E||g}}const jx=async()=>{try{const t=await fetch("https://prod-live-images.playbattlegrounds.com/index.json"),{version:a}=await t.json();return`https://prod-live-images.playbattlegrounds.com/${a}`}catch{return"https://prod-live-images.playbattlegrounds.com"}return"https://prod-live-images.playbattlegrounds.com"},Bx=async()=>{const t=await jx();return{getWeaponSilhouetteIcon:(a,i)=>{const l=a.split(".")[1];return i?`${t}/webreplay/icons/weapon/${l}.png`:`${t}/images/weapon-mastery/silhouette/${l}.png`},getKillFeedIcon:a=>`${t}/webreplay/icons/killfeed/${a}.png`,getUserOriginIcon:()=>`${t}/webreplay/icons/observer/platformai.png`,getLoadingIcon:()=>"/images/loading/replay_loading.png",getMapImageInfo:(a,i)=>{const l=Px(a);return{lowResolutionMapImage:`${t}/webreplay/map-images/${i}/${l}/${l}_low_res.jpg`,dividedMapImages:jg(i,l,t),defaultLowResolutionMapImage:`${t}/webreplay/map-images/default/${l}/${l}_low_res.jpg`,defaultDividedMapImages:jg("default",l,t)}},getObserverImage:a=>`${t}/webreplay/icons/observer/${a.toLowerCase()}.png`}};function Px(t){switch(t){case"Baltic_Main":return"erangel";case"Desert_Main":return"miramar";case"Savage_Main":return"sanhok";case"DihorOtok_Main":return"vikendi";
18case"Summerland_Main":return"karakin";case"Chimera_Main":return"paramo";case"Heaven_Main":return"haven";case"Kiki_Main":return"deston";case"Tiger_Main":return"taego";case"Neon_Main":return"rondo";default:return"erangel"}}function jg(t,a,i){return[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16].map(l=>String(l).padStart(2,"0")).map(l=>`${i}/webreplay/map-images/${t}/${a}/${a}_${l}.jpg`)}function Hx({replayData:t,isLoading:a}){const[i,l]=y.useState(),[o,c]=y.useState(!1);return y.useEffect(()=>{a||!t||(async()=>{const h=await Bx();l(new AS({replayRootData:t,fps:60,rootDOMId:"replay-container",userInteractionOption:{allowClickEvent:!0,allowZoomDragEvent:!0,allowTouchEvent:!0},enableVHRendering:!0,imageRenderer:h,isConsoleCrossPlayOn:()=>!1,isChunkPlayerDataEnabled:!0,customDrawingData:[]}))})()},[t,a]),y.useEffect(()=>i?((async()=>(await i.processReplayData(),c(!0),i.play()))(),()=>i.destroy()):void 0,[i]),y.useEffect(()=>{if(!i)return;const h=()=>setTimeout(()=>i.updateCanvasSize(),200);return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[i]),{replayController:i,isReplayDataProcessed:o}}function Gx({replayController:t}){const{isDesktop:a}=zn(),[i,l]=y.useState(void 0),o=y.useCallback(()=>{const c=document.querySelector(".replay__screen");if(!c)return;const{height:h}=c.getBoundingClientRect();l(h)},[]);return y.useEffect(()=>{if(!a){l(void 0);return}return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[a,o]),y.useEffect(()=>{if(!t||!a)return;const c=requestAnimationFrame(()=>o());return()=>cancelAnimationFrame(c)},[t,o,a]),i}function qx(){const{matchId:t}=t_(),[a]=o_(),i=a.get("index"),l=i?parseInt(i,10):void 0,o=a.get("uid")??void 0;return t?v.jsx(Vx,{matchId:t,playerIndex:l,uid:o}):v.jsx(C_,{})}function Vx({matchId:t,playerIndex:a,uid:i}){const{data:l,isLoading:o,error:c}=Ix(t,a,i),[h,f]=y.useState(!1),{isMobile:g}=zn(),{tr:m}=et(),_=y.useMemo(()=>!!l?.playerInfo&&!!l?.playerMatchStatistics,[l]),{replayController:b,isReplayDataProcessed:E}=Hx({replayData:l?.replayData,isLoading:o}),w=Gx({replayController:b}),x=y.useCallback(()=>{const A=window.location.href;navigator.clipboard.writeText(A),window.alert(m("BRIDGE:MATCH_BODY_34").replace("<br/>",`
19`))},[m]);return v.jsx("main",{id:"sub__container",className:"replay_view__page",children:v.jsx("div",{className:"sub__contents",children:v.jsx(Or,{loading:o,children:c||!l?v.jsx(wi,{contentTrs:[{key:"BRIDGE:ERROR_TITLE_1"},{key:"BRIDGE:ERROR_BODY_1"}]}):v.jsxs(v.Fragment,{children:[_&&v.jsxs("div",{className:"player__info_header",children:[v.jsx("div",{className:"player__info_header_inner",children:v.jsxs("div",{className:"player__nickname",children:[v.jsx(xe,{name:`platform_${l.playerInfo?.provider}`}),v.jsx("span",{className:"player__nickname_text",children:l.playerInfo?.nickname})]})}),v.jsxs("button",{className:"copy_link_button",onClick:x,children:[v.jsx(xe,{name:"link"}),v.jsx("span",{className:"copy_link_text",children:m("BRIDGE:MATCH_BODY_33")})]})]}),v.jsxs("div",{className:"replay__controller_wrapper",children:[!g&&_&&v.jsx(tg,{squadPlacement:l.playerMatchStatistics?.squadPlacement??-1,totalSquads:l.playerMatchStatistics?.totalSquads??-1,mapName:l.replayData.matchInfo.mapName,timePlayed:kc(l.playerMatchStatistics?.timePlayedMilliseconds??0)}),v.jsxs("div",{className:"replay__screen_wrapper",children:[v.jsxs("div",{className:"replay__screen",children:[v.jsxs("div",{className:"canvas-wrapper",children:[v.jsx("div",{id:"replay-container"}),g&&v.jsxs(v.Fragment,{children:[h&&v.jsx(tg,{squadPlacement:l.playerMatchStatistics?.squadPlacement??-1,totalSquads:l.playerMatchStatistics?.totalSquads??-1,mapName:l.replayData.matchInfo.mapName,timePlayed:kc(l.playerMatchStatistics?.timePlayedMilliseconds??0)}),v.jsxs("div",{className:"replay_button_wrapper",children:[_&&v.jsx("button",{className:"replay_square_button match__info_open",onClick:()=>f(A=>!A),"aria-pressed":h,"aria-label":h?"close":"open",children:h?v.jsx(xe,{name:"close"}):v.jsx(xe,{name:"info"})}),v.jsx("a",{href:"#team__list_container",className:"replay_square_button target__scroll_list",children:v.jsx(xe,{name:"move_to_list"})})]})]})]}
19),b&&v.jsx(Fw,{replayController:b,isReplayDataProcessed:E})]}),b&&v.jsx($S,{replayController:b,isReplayDataProcessed:E,replayScreenHeight:w,myAccountId:l.playerInfo?.accountId??""})]})]})]})})})})}function Yx(){const{setUser:t}=ln(),a=Gc(),{setLanguage:i}=et();return{handleLoginSuccess:c=>{t(c);const h=c.state,f=h.returnPath.split("/")[1];Zs(f)&&i(f),a(h.returnPath||"/")},handleLoginError:()=>{const c=Wd();i(c),a(`/${c}`)}}}function $x(){const{handleLoginSuccess:t,handleLoginError:a}=Yx(),{mutate:i,isPending:l}=K6({mutationFn:D5,onSuccess:o=>t(o),onError:a});return y.useEffect(()=>{i()},[i]),v.jsx("div",{children:l&&v.jsx(Or,{loading:l,children:v.jsx(v.Fragment,{})})})}const Kx="_layout__header_112u8_1",Fx="_gnb__nav_112u8_25",Xx="_gnb__container_112u8_37",Qx="_link__logo_pubg_112u8_46",Zx="_logo_pubg_112u8_54",Jx="_external_link_112u8_59",Wx="_gnb__logo_112u8_64",eC="_logo_bridge_112u8_77",tC="_logo_bridge_mobile_112u8_81",aC="_gnb__mobile_button_112u8_112",ja={layout__header:Kx,gnb__nav:Fx,gnb__container:Xx,link__logo_pubg:Qx,logo_pubg:Zx,external_link:Jx,gnb__logo:Wx,logo_bridge:eC,logo_bridge_mobile:tC,gnb__mobile_button:aC},nC="_local__dropdown_iknvp_1",iC="_local__dropdown_button_iknvp_17",sC="_local_dropdown_label_iknvp_27",lC="_globe_iknvp_37",rC="_arrow_bottom_iknvp_40",oC="_local__list_iknvp_56",cC="_selected_iknvp_100",uC="_is_local_open_iknvp_103",fi={local__dropdown:nC,local__dropdown_button:iC,local_dropdown_label:sC,globe:lC,arrow_bottom:rC,local__list:oC,selected:cC,is_local_open:uC},Bg={en:"ENGLISH",es:"Español(EU)","es-mx":"Español(LATAM)",ar:"العربية",fr:"Français",de:"Deutsch",it:"Italiano",pl:"Polski",ru:"Русский",tr:"Türkçe","pt-br":"Português(Brasil)",ko:"한국어",ja:"日本語",vi:"Tiếng Việt",th:"ไทย","zh-tw":"繁體中文","zh-cn":"简体中文"};function hC(){const[t,a]=y.useState(!1),{setLanguage:i,language:l}=et(),o=y.useRef(null),c=h=>{a(!1),i(h)};return y.useEffect(()=>{const h=f=>{o.current&&!o.current.contains(f.target)&&a(!1)};return t&&document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[t]),v.jsxs("div",{ref:o,className:`${fi.local__dropdown} ${t?fi.is_local_open:""}`,children:[v.jsxs("button",{type:"button",className:fi.local__dropdown_button,onClick:()=>a(h=>!h),children:[v.jsx(xe,{name:"globe",className:fi.globe}),v.jsx("span",{className:fi.local_dropdown_label,children:Bg[l]}),v.jsx(xe,{name:"arrow_bottom",className:fi.arrow_bottom})]}),v.jsx("ul",{className:fi.local__list,children:Object.entries(Bg).map(([h,f])=>v.jsx("li",{className:h===l?fi.selected:"",onClick:()=>c(h),children:f},h))})]})}const dC="_login__dropdown_1t0qd_2",fC="_login__dropdown_button_1t0qd_17",mC="_settings__status_1t0qd_26",gC="_login_avatar_1t0qd_30",pC="_loading_1t0qd_40",_C="_login_dropdown_label_1t
190qd_53",vC="_arrow_bottom_1t0qd_61",yC="_login__settings_list_1t0qd_65",bC="_external_link_1t0qd_85",wC="_is_login_open_1t0qd_99",SC="_is_nav_mobile_1t0qd_110",EC="_login__status_1t0qd_114",zt={login__dropdown:dC,login__dropdown_button:fC,settings__status:mC,login_avatar:gC,loading:pC,login_dropdown_label:_C,arrow_bottom:vC,login__settings_list:yC,external_link:bC,is_login_open:wC,is_nav_mobile:SC,login__status:EC};function q_(){const{user:t,login:a}=ln(),{tr:i,language:l}=et(),{setContent:o}=as(),[c]=y.useState(!1),[h,f]=y.useState(!1),{isDesktop:g}=zn();return v.jsx("div",{className:`${zt.login__dropdown} ${h?zt.is_login_open:""} ${g?"":zt.is_nav_mobile}`,children:t?v.jsxs(v.Fragment,{children:[v.jsxs("button",{type:"button",className:`${zt.login__dropdown_button} ${zt.settings__status}`,onClick:()=>f(m=>!m),children:[v.jsx("span",{className:`${zt.login_avatar} ${c?zt.loading:""}`,children:v.jsx(xe,{name:"avatar",className:zt.avatar})}),v.jsx("span",{className:zt.login_dropdown_label,children:t.profile.nickname}),v.jsx(xe,{name:"arrow_bottom",className:zt.arrow_bottom})]}),v.jsxs("ul",{className:zt.login__settings_list,children:[v.jsx("li",{children:v.jsxs("button",{type:"button",onClick:()=>{f(!1),N5(l)},children:[v.jsx("span",{className:zt.login_dropdown_label,children:i("BRIDGE:MAIN_GNB_3")}),v.jsx(xe,{name:"external_link",className:zt.external_link})]})}),v.jsx("li",{children:v.jsx("button",{type:"button",onClick:()=>{f(!1),o(v.jsx(Tp,{type:"logout"}))},children:v.jsx("span",{className:zt.login_dropdown_label,children:i("BRIDGE:MAIN_GNB_4")})})})]})]}):v.jsx("button",{type:"button",className:`${zt.login__dropdown_button} ${zt.login__status}`,onClick:a,children:v.jsx("span",{className:zt.login_dropdown_label,children:i("BRIDGE:MAIN_GNB_1")})})})}const Q0=ts(gp(t=>({blockedComponents:[],blockScroll:a=>t(i=>i.blockedComponents.includes(a)?i:{blockedComponents:[...i.blockedComponents,a]}),unblockScroll:a=>t(i=>i.blockedComponents.includes(a)?{blockedComponents:i.blockedComponents.filter(l=>l!==a)}:i)})));Q0.subscribe(t=>t.blockedComponents.length>0,t=>{t?document.body.classList.add("no_scroll"):document.body.classList.remove("no_scroll")});const xC="_nav__mobile_pzp4a_1",CC="_gnb__nav_mobile_pzp4a_40",TC="_link__logo_pubg_pzp4a_52",RC="_logo_pubg_pzp4a_59",MC="_external_link_pzp4a_64",rr={nav__mobile:xC,gnb__nav_mobile:CC,link__logo_pubg:TC,logo_pubg:RC,external_link:MC},kC="_leaderboard__dropdown_h8oju_1",DC="_leaderboard__dropdown_button_h8oju_15",AC="_leaderboard_dropdown_label_h8oju_26",OC="_arrow_bottom_h8oju_33",NC="_leaderboard__list_h8oju_37",UC="_is_leaderboard_open_h8oju_61",zC="_is_nav_mobile_h8oju_70",Ki={leaderboard__dropdown:kC,leaderboard__dropdown_button:DC,leaderboard_dropdown_label:AC,arrow_bottom:OC,leaderboard__list:NC,is_leaderboard_open:UC,is_nav_mobile:zC},LC={payday:"BRIDGE:ARCADE_TITLE_1",xenopoint:"BRIDGE:ARCADE_TITLE_0"};function V_({onMobileMenuClose:t}){const[a,i]=y.useState(!1),{language:l,tr:o}=et(),c=y.useRef(null),{isDesktop:h}=zn(),f=()=>{h||i(g=>!g)};return v.jsxs("div",{ref:c,className:`${Ki.leaderboard__dropdown} ${a?Ki.is_leaderboard_open:""} ${h?"":Ki.is_nav_mobile}`,onMouseEnter:()=>{h&&i(!0)},onMouseLeave:()=>{h&&i(!1)},children:[v.jsxs("button",{type:"button",className:Ki.leaderboard__dropdown_button,onClick:f,children:[v.jsx("span",{className:Ki.leaderboard_dropdown_label,children:o("BRIDGE:MAIN_GNB_6")}),v.jsx(xe,{name:"arrow_bottom",className:Ki.arrow_bottom})]}),v.jsx("ul",{className:Ki.leaderboard__list,children:Object.entries(LC).map(([g,m])=>v.jsx("li",{children:v.jsx(It,{to:`/${l}/ranking/arcade/${g}`,onClick:()=>{i(!1),t?.()},children:o(m)})},g))})]})}function IC({onMobileMenuClose:t}){const{language:a,tr:i}=et(),l=y.useRef(null);return y.useEffect(()=>{const o=c=>{l.current&&!l.current.contains(c.target)&&t()};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[t]),v.jsxs("section",{ref:l,className:`${rr.nav__mobile} `,children:[v.jsx(q_,{}),v.jsxs("nav",{className:rr.gnb__nav_mobile,children:[v.jsx(It,{to:`/${a}/2d-replay/list`,onClick:t,children:i("BRIDGE:MAIN_GNB_0")}),v.jsx(V_,{onMobileMenuClose:t})]}),v.jsxs(It,{to:`https://pubg.com/${a}`,target:"_blank",className:rr.link__logo_pubg,children:[v.jsx(xe,{name:"logo_pubg",className:rr.logo_pubg,ariaLabel:"PUBG BATTLEGROUNDS"}),v.jsx(xe,{name:"external_link",className:rr.external_link})]})]})}const jC=()=>{const[t,a]=y.useState(!1),{language:i,tr:l}=et(),{blockScroll:o,unblockScroll:c}
19=Q0(),{isDesktop:h,isMobile:f}=zn(),g=()=>{a(m=>!m)};return y.useEffect(()=>{h&&a(!1)},[h]),y.useEffect(()=>{t?o("header"):c("header")},[t,o,c]),v.jsxs("header",{className:`
20        ${ja.layout__header}
21        ${t?ja.is_mobile_menu_open:""}
22      `,children:[v.jsxs("div",{className:ja.gnb__container,children:[v.jsx("h1",{className:ja.gnb__logo,children:v.jsx(It,{to:"/",children:f?v.jsx(xe,{name:"logo_bridge_mobile",className:ja.logo_bridge_mobile,ariaLabel:"PUBG BRIDGE"}):v.jsx(xe,{name:"logo_bridge",className:ja.logo_bridge,ariaLabel:"PUBG BRIDGE"})})}),v.jsxs("nav",{className:ja.gnb__nav,children:[v.jsx(It,{to:`/${i}/2d-replay/list`,children:l("BRIDGE:MAIN_GNB_0")}),v.jsx(V_,{})]}),!1,v.jsx(hC,{}),h&&v.jsxs(v.Fragment,{children:[v.jsx(q_,{}),v.jsxs(It,{to:`https://pubg.com/${i}`,target:"_blank",className:ja.link__logo_pubg,children:[v.jsx(xe,{name:"logo_pubg",className:ja.logo_pubg,ariaLabel:"PUBG BATTLEGROUNDS"}),v.jsx(xe,{name:"external_link",className:ja.external_link})]})]}),v.jsx("button",{type:"button",className:ja.gnb__mobile_button,onClick:g,children:t?v.jsx(xe,{name:"close"}):v.jsx(xe,{name:"hamburger_menu"})})]}),!h&&t&&v.jsx(IC,{onMobileMenuClose:()=>a(!1)})]})},BC="_footer_z1vb6_7",PC="_footer__inner_z1vb6_7",HC="_footer__divider_z1vb6_11",GC="_footer__sns_z1vb6_17",qC="_footer__logo_z1vb6_33",VC="_footer__logo_group_z1vb6_40",YC="_logo_pubg_studio_z1vb6_46",$C="_logo_krafton_z1vb6_50",KC="_footer__logo_divider_z1vb6_54",FC="_esrb_img_z1vb6_60",XC="_footer__links_z1vb6_63",QC="_footer__copyright_z1vb6_74",da={footer:BC,footer__inner:PC,footer__divider:HC,footer__sns:GC,footer__logo:qC,footer__logo_group:VC,logo_pubg_studio:YC,logo_krafton:$C,footer__logo_divider:KC,esrb_img:FC,footer__links:XC,footer__copyright:QC},ZC={en:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.global"},{label:"X",icon:"social_x",href:"https://twitter.com/PUBG"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCnXDQbqIdp-HQuDyM4p12ng"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_global/"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/battlegrounds"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg"},{label:"reddit",icon:"social_reddit",href:"https://www.reddit.com/r/pubg"},{label:"reddit-console",icon:"social_reddit_console",href:"https://www.reddit.com/r/PUBGConsole"}],es:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.global"},{label:"X",icon:"social_x",href:"https://twitter.com/PUBG"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCnXDQbqIdp-HQuDyM4p12ng"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_global/"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/battlegrounds"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg"},{label:"reddit",icon:"social_reddit",href:"https://www.reddit.com/r/pubg"},{label:"reddit-console",icon:"social_reddit_console",href:"https://www.reddit.com/r/PUBGConsole"}],"es-mx":[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/PUBG.battlegrounds.latam/"},{label:"X",icon:"social_x",href:"https://twitter.com/pubg_latam"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/pubgbattlegroundslatam"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/latampubg/"},{label:"Discord",icon:"social_discord",href:"https://discord.gg/pubglatam"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@latampubg"},{label:"Twitch",icon:"social_twitch",href:"https://www.twitch.tv/pubglatam"}],ar:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.mena"},{label:"X",icon:"social_x",href:"https://twitter.com/Arabi_PUBG"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/@PUBG_AR"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_mena/"},{label:"Discord",icon:"social_discord",href:"https://discord.gg/pubgmena"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg_battlegrounds_mena"}],fr:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.global"},{label:"X",icon:"social_x",href:"https://twitter.com/PUBG"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCnXDQbqIdp-HQuDyM4p12ng"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_global/"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/battlegrounds"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg"},{label:"reddit",icon:"social_reddit",href:"https://www.reddit.com/r/pubg"},{label:"reddit-console",icon:"social_reddit_console",href:"https://www.reddit.com/r/PUBGConsole"}],de:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.global"},{label:"X",icon:"social_x",href:"https://twitter.com/PUBG"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCnXDQbqIdp-HQuDyM4p12ng"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_global/"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/battlegrounds"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg"},{label:"reddit",icon:"social_reddit",href:"https://www.reddit.com/r/pubg"},{label:"reddit-console",icon:"social_reddit_console",href:"https://www.reddit.com/r/PUBGConsole"}],it:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.global"},{label:"X",icon:"social_x",href:"https://twitter.com/PUBG"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCnXDQbqIdp-HQuDyM4p12ng"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_global/"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/battlegrounds"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg"},{label:"reddit",icon:"social_reddit",href:"https://www.reddit.com/r/pubg"},{label:"reddit-console",icon:"social_reddit_console",href:"https://www.reddit.com/r/PUBGConsole"}],pl:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.global"},{label:"X",icon:"social_x",href:"https://twitter.com/PUBG"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCnXDQbqIdp-HQuDyM4p12ng"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_global/"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/battlegrounds"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg"},{label:"reddit",icon:"social_reddit",href:"https://www.reddit.com/r/pubg"},{label:"reddit-console",icon:"social_reddit_console",href:"https://www.reddit.com/r/PUBGConsole"}],ru:[{label:"X",icon:"social_x",href:"https://twitter.com/PUBG_RU"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/c/PUBGRU"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/pubgru"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg_cis"},{label:"Twitch",icon:"social_twitch",href:"https://www.twitch.tv/pubg_cis"}
22,{label:"vk",icon:"social_vk",href:"https://vk.com/pubg"},{label:"telegram",icon:"social_telegram",href:"https://t.me/pubg_battlegrounds_cis"}],tr:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/gaming/pubg.battlegrounds.tr"},{label:"X",icon:"social_x",href:"https://twitter.com/pubg_tur"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCGPAJi7OKo817Veu-y6NIFQ"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_tur/"},{label:"Discord",icon:"social_discord",href:"https://discord.gg/pubgturkiye"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg_battlegrounds_tr"},{label:"Twitch",icon:"social_twitch",href:"https://www.twitch.tv/pubg_battlegroundstr"}],"pt-br":[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/PUBG.battlegrounds.br"},{label:"X",icon:"social_x",href:"https://twitter.com/pubg_BR"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/pubg_br"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_br/"},{label:"Discord",icon:"social_discord",href:"https://discord.com/invite/pubg-brasil"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg_br"},{label:"Twitch",icon:"social_twitch",href:"https://www.twitch.tv/pubg_br"}],ko:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/PUBGBATTLEGROUNDSKR"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCms8Ge7H1ZGgw6nV94fUhUQ"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_kr/"},{label:"Discord",icon:"social_discord",href:"https://discord.gg/pubgkorea"},{label:"Naver",icon:"social_naver",href:"https://cafe.naver.com/playbattlegrounds"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg.kr.official"}],ja:[{label:"X",icon:"social_x",href:"https://twitter.com/PUBG_JAPAN"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/c/PUBGBATTLEGROUNDSJAPAN"},{label:"Discord",icon:"social_discord",href:"https://discord.gg/VcjqdjU"},{label:"Twitch",icon:"social_twitch",href:"https://www.twitch.tv/pubgjapan"}],vi:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.vietnam/"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/PUBGBATTLEGROUNDSVIETNAM"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_vn/"},{label:"Discord",icon:"social_discord",href:"https://discord.gg/pubgbattlegroundsvietnam"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubg_battlegrounds_vn"}],th:[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.th"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UCkIfBfDe9YeSp6ZZVyhjC5Q"},{label:"TikTok",icon:"social_tiktok",href:"https://www.tiktok.com/@pubgthailandofficial"},{label:"Twitch",icon:"social_twitch",href:"https://www.twitch.tv/pubgthailandofficial"}],"zh-tw":[{label:"Facebook",icon:"social_facebook",href:"https://www.facebook.com/pubg.battlegrounds.tw/"},{label:"YouTube",icon:"social_youtube",href:"https://www.youtube.com/channel/UC0-d4kobKAe8of5TXKOEUZg"},{label:"Instagram",icon:"social_instagram",href:"https://www.instagram.com/pubg_battlegrounds_tw/"},{label:"Discord",icon:"social_discord",href:"https://kraftontw.info/Discord"},{label:"Twitch",icon:"social_twitch",href:"https://www.twitch.tv/pubg_taiwan"}],"zh-cn":[{label:"Weibo",icon:"social_weibo",href:"https://weibo.com/PUBATTLEGROUNDS"},{label:"bilibili",icon:"social_bilibili",href:"https://space.bilibili.com/353153459"},{label:"kwai",icon:"social_kwai",href:"https://www.kuaishou.com/profile/3xgr7k62b64uzti"},{label:"Heybox",icon:"social_heybox",href:"https://www.xiaoheihe.cn/community/user/19020062/post_list"},{label:"Douyin",icon:"social_tiktok",href:"https://v.douyin.com/dHqu7f5/"},{label:"Hupu",icon:"social_hupu",href:"https://bbs.hupu.com/pubg"},{label:"Shenjing",icon:"social_shenjing",href:"https://m.sowellwell.com/s/KL5j8baa"},{label:"Youku",icon:"social_youku",href:"https://www.youku.com/profile/index?uid=UNDMxMjM2MTY4MA=="}]},JC={en:"/images/user-level/en.webp",es:"/images/user-level/eu.webp","es-mx":"/images/user-level/en.webp",ar:"/images/user-level/en.webp",fr:"/images/user-level/eu.webp",de:"/images/user-level/de.webp",it:"/images/user-level/eu.webp",pl:"/images/user-level/eu.webp",ru:"/images/user-level/ru.webp",tr:"/images/user-level/eu.webp","pt-br":"/images/user-level/pt-br.webp",ko:"/images/user-level/ko.webp",ja:"/images/user-level/ja.webp",vi:"/images/user-level/en.webp",th:"/images/user-level/en.webp","zh-tw":"/images/user-level/zh-tw.webp","zh-cn":"/images/user-level/en.webp"};function WC(){const{language:t,tr:a}=et(),{setContent:i}=as();return v.jsx(v.Fragment,{children:v.jsx("footer",{id:da.footer,children:v.jsxs("div",{className:da.footer__inner,children:[v.jsx("div",{className:da.footer__sns,children:ZC[t].map(({icon:l,href:o,label:c})=>v.jsx(It,{to:o,"aria-label":c,target:"_blank",children:v.jsx(xe,{name:l})},c))}),v.jsx("hr",{className:da.footer__divider}),v.jsxs("div",{className:da.footer__logo,children:[v.jsxs("div",{className:da.footer__logo_group,children:[v.jsx(It,{to:"https://www.krafton.com",target:"_blank",children:v.jsx(xe,{name:"logo_krafton",className:da.logo_krafton,ariaLabel:"KRAFTON"})}),v.jsx("hr",{className:da.footer__logo_divider}),v.jsx(xe,{name:"logo_pubg_studio",className:da.logo_pubg_studio,ariaLabel:"PUBG STUDIO"})]}),v.jsx("img",{className:da.esrb_img,src:JC[t],alt:"TEEN ESRB, Violence Blood"})]}),v.jsx("hr",{className:da.footer__divider}),v.jsxs("ul",{className:da.footer__links,children:[v.jsx("li",{children:v.jsx(It,{to:`https://pubg.com/${t}/clause/privacy_policy`,target:"_blank",children:a("BRIDGE:MAIN_FLOAT_0")})}),v.jsx("li",{children:v.jsx(It,{to:`https://pubg.com/${t}/clause/term_of_service`,target:"_blank",children:a("BRIDGE:MAIN_FLOAT_1")})}),v.jsx("li",{children:v.jsx(It,{to:`https://pubg.com/${t}/clause/rules_of_conduct`,target:"_blank",children:a("BRIDGE:MAIN_FLOAT_2")})}),t==="ja"&&v.jsx("li",{children:v.jsx(It,{to:"https://pubg.com/ja/clause/legal_notice_ja",target:"_blank",children:a("BRIDGE:MAIN_FLOAT_4")})}),v.jsx("li",{children:v.jsx("button",{type:"button",onClick:()=>i(v.jsx(Rp,{})),children:a("BRIDGE:MAIN_FLOAT_5")})})]}
22),v.jsx("p",{className:da.footer__copyright,children:"© 2017 PUBG Corp. All rights reserved."})]})})})}function gi({error:t}={}){const a=n_(),i=y.useMemo(()=>t||(tl(a)?new Error(a.statusText):a),[t,a]);return y.useEffect(()=>{},[i]),v.jsx("div",{className:"server__error",children:v.jsx(wi,{contentTrs:[{key:"BRIDGE:ERROR_TITLE_1"},{key:"BRIDGE:ERROR_BODY_1"}]})})}class Pg extends y.Component{lastErrorKey=null;constructor(a){super(a),this.state={error:null}}static getDerivedStateFromError(a){return{error:a}}componentDidCatch(a,i){const l=`${a.name}:${a.message}:${i.componentStack}`;this.lastErrorKey!==l&&(this.lastErrorKey=l)}render(){const a=this.state.error;return a?this.props.fallback({error:a}):this.props.children}}const eT="_modal_wrapper_3c6xi_1",tT={modal_wrapper:eT};function aT(){const{content:t}=as(),{blockScroll:a,unblockScroll:i}=Q0();return y.useEffect(()=>{t?a("global-modal"):i("global-modal")},[t,a,i]),t?v.jsx("div",{id:tT.modal_wrapper,role:"dialog","aria-modal":"true",children:t}):v.jsx(v.Fragment,{})}function nT(){const{pathname:t}=Ya();return y.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[t]),v.jsxs(Pg,{fallback:({error:a})=>v.jsx(gi,{error:a}),children:[v.jsxs("div",{id:"wrapper",children:[v.jsx(jC,{}),v.jsx(Pg,{fallback:({error:a})=>v.jsx(gi,{error:a}),children:v.jsx(jb,{})}),v.jsx(WC,{})]}),v.jsx(aT,{})]})}function iT(t,a,i){const{getEnvironmentForProvider:l}=Ei(),{getOverrideForProvider:o}=sl(),h=o(t)??a,{data:f,isLoading:g,error:m}=Si({queryKey:["replay-list",i,t,h],queryFn:async()=>{const _={Authorization:`Bearer ${i}`},b=l(t);b!=null&&(_["X-External-Api-Environment"]=b);const E=await fetch(`/api/v1/web-replay/matches/${t}/${h}`,{headers:_});if(!E.ok)throw new Error(`HTTP error! status: ${E.status}`);return(await E.json()).sort((x,A)=>new Date(A.startTime).getTime()-new Date(x.startTime).getTime())},enabled:!!h&&!!t&&!!i});return{data:f,isLoading:g,error:m}}const sT="_replay__item_przbv_2",lT="_replay__item_divider_przbv_9",rT="_replay__item_link_przbv_13",oT="_replay__item_top_przbv_35",cT="_last_match_cell_przbv_39",uT="_match_type_przbv_43",hT="_last_match_przbv_39",dT="_placement_cell_przbv_55",fT="_match_info_cell_przbv_71",mT="_emblem_image_przbv_79",gT="_match__info_group_przbv_86",pT="_match__info_przbv_86",_T="_plus_rp_przbv_94",vT="_minus_rp_przbv_97",yT="_replay__item_bottom_przbv_108",bT="_match__info_item_przbv_116",wT="_match__info_value_przbv_124",ST="_replay__item_more_przbv_133",st={replay__item:sT,replay__item_divider:lT,replay__item_link:rT,replay__item_top:oT,last_match_cell:cT,match_type:uT,last_match:hT,placement_cell:dT,match_info_cell:fT,emblem_image:mT,match__info_group:gT,match__info:pT,plus_rp:_T,minus_rp:vT,replay__item_bottom:yT,match__info_item:bT,match__info_value:wT,replay__item_more:ST};function ET({match:t}){const{language:a,tr:i}=et(),l=h=>sc(h)>0?"plus_rp":sc(h)<0?"minus_rp":"",{timeSinceNumber:o,timeSinceMatchLoc:c}=$w(t);return v.jsx("li",{className:st.replay__item,children:v.jsxs(It,{to:`/${a}/2d-replay/${t.matchId}`,className:st.replay__item_link,children:[v.jsxs("ul",{className:st.replay__item_top,children:[v.jsxs("li",{className:st.last_match_cell,children:[v.jsx("strong",{className:`${st.match_type} ${kd(t.matchId)?"highlight":""}`,children:i(f_(t.matchId))}),v.jsx("p",{className:st.last_match,children:i(c??"",`${o}`)})]}),v.jsxs("li",{className:st.placement_cell,children:[v.jsxs("strong",{className:`${t.individualPlacement===1?"highlight":""}`,children:["#",t.individualPlacement]}),v.jsxs("i",{children:["/",t.totalSquads]})]}),v.jsxs("li",{className:st.match_info_cell,children:[t.rankAfterMatch.tier&&t.rankAfterMatch.subTier&&kd(t.matchId)&&v.jsx("img",{src:O9(t),className:st.emblem_image}),v.jsxs("div",{className:st.match__info_group,children:[kd(t.matchId)&&!t.wasRankPointPlacementMatch&&!t.wasRankPointFinalPlacementMatch&&v.jsx("span",{className:`${st.match__info} ${st[l(t)]}`,children:i("BRIDGE:MATCH_BODY_9",`${Math.sign(sc(t))===1?"+":""}${sc(t)}`)}),v.jsx("span",{className:st.match__info,children:i(m_(t.matchId))}),v.jsx("span",{className:st.match__info,children:i(g_(t.map))})]})]})]}),v.jsx("hr",{className:st.replay__item_divider}),v.jsxs("ul",{className:st.replay__item_bottom,children:[v.jsxs("li",{children:[v.jsx("span",{className:st.match__info_
22item,children:i("BRIDGE:MATCH_TITLE_0")}),v.jsx("i",{className:st.match__info_value,children:t.kills})]}),v.jsxs("li",{children:[v.jsx("span",{className:st.match__info_item,children:i("BRIDGE:MATCH_TITLE_1")}),v.jsx("i",{className:st.match__info_value,children:t.assists})]}),v.jsxs("li",{children:[v.jsx("span",{className:st.match__info_item,children:i("BRIDGE:MATCH_TITLE_2")}),v.jsx("i",{className:st.match__info_value,children:t.damage.toFixed(0)})]}),v.jsxs("li",{children:[v.jsx("span",{className:st.match__info_item,children:i("BRIDGE:MATCH_TITLE_3")}),v.jsx("i",{className:st.match__info_value,children:kc(t.timePlayedMilliseconds)})]})]}),v.jsx("i",{className:st.replay__item_more,children:v.jsx(xe,{name:"line_arrow"})})]},t.matchId)},t.matchId)}const xT=600;function CT({user:t,gameLinks:a}){const{isDesktop:i}=zn(),{tr:l}=et(),{selectedGameLink:o,setSelectedGameLink:c}=ln(),{getOverrideForProvider:h}=sl(),[f,g]=y.useState(!1),{data:m,isLoading:_}=iT(o?.provider,o?.platform_id,t.access_token),b=o?.provider?h(o.provider):null,E=b?`Override: ${b}`:o?.display_name?o.display_name:"";return y.useEffect(()=>{if(o)return;const w=Object.values(a).find(A=>A!==null);if(w){c(w);return}const x=Object.keys(a).find(A=>h(A)!==null);if(x){c({provider:x,platform_id:"",display_name:""});return}c(null)},[o,a,c,h]),y.useEffect(()=>{if(i){g(!1);return}const w=()=>{g(window.scrollY>=xT)};return w(),window.addEventListener("scroll",w,{passive:!0}),()=>{window.removeEventListener("scroll",w)}},[i]),v.jsx("main",{id:"sub__container",className:"replay__list_page",children:v.jsxs("div",{className:"sub__contents replay__list_container",children:[v.jsx("div",{className:"player__info_header",children:v.jsxs("div",{className:"player__info_header_inner",children:[v.jsxs("div",{className:"player__nickname",children:[!b&&v.jsx(xe,{name:`platform_${o?.provider}`}),v.jsx("span",{className:"player__nickname_text",children:E})]}),v.jsx("ul",{className:"tab__list",children:Object.entries(a).map(([w,x])=>{const A={steam:"BRIDGE:MAIN_ALL_0",epic:"BRIDGE:MAIN_ALL_1",kakao:"BRIDGE:MAIN_ALL_4",psn:"BRIDGE:MAIN_ALL_2",xbox:"BRIDGE:MAIN_ALL_3"},M=h(w)!==null,z=x!==null||M;return v.jsx("li",{children:v.jsxs("button",{className:`tab__item ${o?.provider===w&&"selected"}`,disabled:!z,onClick:()=>{c(x===null?{provider:w,platform_id:"",display_name:""}:x)},children:[v.jsx(xe,{name:`platform_${w}`}),v.jsx("span",{className:"tab__item_text",children:l(A[w])})]})},w)})})]})}),(_||(m?.length??0)>0)&&v.jsx("div",{className:"replay__list",children:v.jsx("ul",{children:v.jsx(Or,{loading:_,children:m?.map(w=>v.jsx(ET,{match:w},w.matchId))})})}),(m?.length??0)>0&&v.jsx("p",{className:"replay__list_message",children:l("BRIDGE:MATCH_FLOAT_0")}),m?.length===0&&v.jsx("div",{className:"replay__list_empty",children:v.jsx(wi,{contentTrs:[{key:"BRIDGE:MATCH_BODY_2"}]})}),(m?.length??0)>=10&&v.jsx("a",{href:"#wrapper",className:`scroll_top ${f?"is_visible":""}`,children:v.jsx(xe,{name:"line_arrow"})})]})})}const Hg=["steam","epic","kakao","psn","xbox"];function Gg(){const{user:t,setUser:a}=ln(),{language:i}=et(),l=y.useMemo(()=>t?Hg.reduce((c,h)=>{const f=t.profile.gamelinks.filter(g=>g.gamename==="pubg").find(g=>g.provider===h);return c[h]=f??null,c},{}):{steam:null,epic:null,kakao:null,psn:null,xbox:null},[t]),o=async()=>{const c=await M0();a(c),c?.profile.gamelinks.filter(f=>f.gamename==="pubg").some(f=>Hg.includes(f.provider))||R0(i)};return t?Object.values(l).every(c=>c===null)?v.jsx("main",{id:"sub__container",className:"replay__list_page",children:v.jsx("div",{className:"sub__contents replay__list_container",children:v.jsx(wi,{contentTrs:[{key:"BRIDGE:MATCH_BODY_1"}],buttonTr:{key:"BRIDGE:MATCH_BUTTON_1"},buttonOnClick:o})})}):v.jsx(CT,{user:t,gameLinks:l}):v.jsx("main",{id:"sub__container",className:"replay__list_page",children:v.jsx("div",{className:"sub__contents replay__list_container",children:v.jsx(wi,{contentTrs:[{key:"BRIDGE:MATCH_BODY_0"}],buttonTr:{key:"BRIDGE:MATCH_BUTTON_0"},buttonOnClick:mp})})})}const TT="_rank__table_v7pc4_1",RT="_col_nickname_v7pc4_50",MT="_col_total_v7pc4_56",kT="_col_skill_v7pc4_59",DT="_col_fragment_v7pc4_59",AT="_col_points_v7pc4_62",OT="_col_points_value_v7pc4_62",NT="_col_rank_v7pc4_68",UT="_rank__table_empty_v7pc4_93",zT="_rank_table_row_empty_v7pc4_96",ia={rank__table:TT,col_nickname:RT,col_total:MT,col_skill:kT,col_fragment:DT,col_points:AT,col_points_value:OT,col_rank:NT,rank__table_empty:UT,rank_table_row_empty:zT},LT="_primary__button_zez19_1",IT="_small_zez19_12",jT="_medium_zez19_28",BT="_sticky_rank_row_zez19_99",PT="_col_nickname_zez19_121",HT="_c
22ol_total_zez19_127",GT="_col_skill_zez19_130",qT="_col_fragment_zez19_130",VT="_col_points_zez19_133",YT="_col_points_value_zez19_133",$T="_nickname_avatar_zez19_139",KT="_current_rank_cell_zez19_142",FT="_col_rank_zez19_163",dt={primary__button:LT,small:IT,medium:jT,sticky_rank_row:BT,col_nickname:PT,col_total:HT,col_skill:GT,col_fragment:qT,col_points:VT,col_points_value:YT,nickname_avatar:$T,current_rank_cell:KT,col_rank:FT};function Y_(t){const{user:a}=ln();return{...y.useMemo(()=>a?.profile.gamelinks.filter(l=>l.gamename==="pubg").find(l=>l.provider===t)??null,[a,t])}}function XT({selectedProvider:t}){const{user:a,login:i,setUser:l}=ln(),{language:o,tr:c}=et(),{isMobile:h}=zn(),{platform_id:f,display_name:g}=Y_(t),{getSettings:m}=Ei(),{getOverrideForProvider:_}=sl(),E=_(t)??f,{data:w,isError:x,isLoading:A}=Si({queryKey:["userRank",t,E,a?.access_token],queryFn:async()=>{const z={Authorization:`Bearer ${a?.access_token??""}`},G=m();G!=null&&(z["X-External-Api-Environment"]=G.pc??"");const U=await fetch(`/api/v1/xeno/my/${t}/${E}`,{headers:z});if(!U.ok){if(U.status===404)return{playerName:g,rank:null,skillPoint:null,fragments:null,total:null};throw new Error(`HTTP error! status: ${U.status}`)}return await U.json()},enabled:!!E&&!!a?.access_token,staleTime:1/0,retry:!1}),M=async()=>{const z=await M0();l(z),z?.profile.gamelinks.filter(U=>U.gamename==="pubg").some(U=>U.provider===t)||R0(o)};return!a&&!E?v.jsx("tr",{className:dt.sticky_rank_row,children:v.jsx("td",{colSpan:5,children:v.jsxs("button",{type:"button",className:`${dt.primary__button} ${h?dt.small:dt.medium}`,onClick:i,children:[v.jsx(xe,{name:"avatar"}),c("BRIDGE:RANKING_BUTTON_0")]})})}):E?A||x?null:v.jsxs("tr",{className:`${dt.sticky_rank_row} ${dt.current_rank_cell}`,children:[v.jsx("td",{className:`${dt.col_rank}`,children:w?.rank?`#${w.rank}`:"-"}),v.jsxs("td",{className:`${dt.col_nickname}`,children:[v.jsx(xe,{name:"avatar",className:dt.nickname_avatar}),w?.playerName]}),v.jsxs("td",{className:`${dt.col_points} ${dt.col_total}`,children:[v.jsx("span",{className:dt.col_points_value,children:"Total"}),w?.total?.toLocaleString()??"-"]}),v.jsxs("td",{className:`${dt.col_points} ${dt.col_fragment}`,children:[v.jsx("span",{className:dt.col_points_value,children:"Fragment"}),w?.fragments?.toLocaleString()??"-"]}),v.jsxs("td",{className:`${dt.col_points} ${dt.col_skill}`,children:[v.jsx("span",{className:dt.col_points_value,children:"Skill"}),w?.skillPoint?.toLocaleString()??"-"]})]}):v.jsx("tr",{className:dt.sticky_rank_row,children:v.jsx("td",{colSpan:5,children:v.jsxs("button",{type:"button",className:`${dt.primary__button} ${h?dt.small:dt.medium}`,onClick:M,children:[v.jsx(xe,{name:"sync"}),c("BRIDGE:RANKING_BUTTON_1")]})})})}function QT({data:t,selectedProvider:a}){const{tr:i}=et(),l=(t?.length??0)===0;return v.jsxs("table",{className:`${ia.rank__table} ${l?ia.rank__table_empty:""}`,children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{children:i("BRIDGE:RANKING_BODY_0")}),v.jsx("th",{children:i("BRIDGE:RANKING_BODY_1")}),v.jsx("th",{children:i("BRIDGE:ARCADE_BODY_0")}),v.jsx("th",{children:i("BRIDGE:ARCADE_BODY_1")}),v.jsx("th",{children:i("BRIDGE:ARCADE_BODY_2")})]})}),v.jsxs("tbody",{children:[l?v.jsx("tr",{className:ia.rank_table_row_empty,children:v.jsx("td",{colSpan:5,children:i("BRIDGE:RANKING_BODY_2")})}):t?.map(o=>v.jsxs("tr",{"data-rank":o.rank<=3?o.rank:void 0,children:[v.jsxs("td",{className:ia.col_rank,children:["#",o.rank]}),v.jsx("td",{className:ia.col_nickname,children:o.playerName}),v.jsxs("td",{className:`${ia.col_points} ${ia.col_total}`,children:[v.jsx("span",{className:ia.col_points_value,children:"Total"}),o.total.toLocaleString()]}),v.jsxs("td",{className:`${ia.col_points} ${ia.col_fragment}`,children:[v.jsx("span",{className:ia.col_points_value,children:"Fragment"}),o.fragments.toLocaleString()]}),v.jsxs("td",{className:`${ia.col_points} ${ia.col_skill}`,children:[v.jsx("span",{className:ia.col_points_value,children:"Skill"}),o.skillPoint.toLocaleString()]})]},o.rank)),v.jsx(XT,{selectedProvider:a})]})]})}const Bd=100,ZT=5,JT=["steam","epic","kakao"],WT={steam:"BRIDGE:MAIN_ALL_0",epic:"BRIDGE:MAIN_ALL_1",kakao:"BRIDGE:MAIN_ALL_4"};function eR(){const[t,a]=y.useState(1),[i,l]=y.useState("steam"),{tr:o}=et(),{getSettings:c}=Ei(),{data:h,isLoading:f,isError:g}=Si({queryKey:["rankData",t,i],queryFn:async()=>{const b={},E=c();E!=null&&(b["X-External-Api-Environment"]=E.pc??"");const w=await fetch(`/api/v1/xeno/leaderboard/${i}/${t}`,{headers:b});if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);return w.json()},enabled:!!t,staleTime:1/0}),m=y.useMemo(()=>
22h?Math.ceil(h.count/Bd):0,[h]),_=b=>{l(b),a(1)};return v.jsx("main",{id:"sub__container",className:"rank_page",children:v.jsx("div",{className:"sub__contents rank__list_container",children:g?v.jsx(wi,{contentTrs:[{key:"BRIDGE:ERROR_TITLE_1"},{key:"BRIDGE:ERROR_BODY_1"}]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"rank__info_header",children:[v.jsx("h1",{className:"rank__page_title",children:o("BRIDGE:MAIN_GNB_6")}),v.jsxs("ul",{className:"rank__status",children:[v.jsx("li",{children:o("BRIDGE:ARCADE_TITLE_0")}),v.jsxs("li",{children:[o("BRIDGE:RANKING_TITLE_0")," 500"]}),v.jsx("li",{children:o("BRIDGE:RANKING_TITLE_1")})]}),v.jsx("ul",{className:"tab__list",children:JT.map(b=>v.jsx("li",{children:v.jsxs("button",{className:`tab__item ${i===b?"selected":""}`,onClick:()=>_(b),children:[v.jsx(xe,{name:`platform_${b}`}),v.jsx("span",{className:"tab__item_text",children:o(WT[b])})]})},b))})]}),v.jsxs(Or,{loading:f,children:[v.jsx("div",{className:"rank__table_wrapper",children:v.jsx(QT,{data:h?.entries,selectedProvider:i})}),v.jsx("div",{className:"list_pagination",children:Array.from({length:ZT},(b,E)=>{const w=E+1,x=(w-1)*Bd+1,A=w*Bd;return v.jsxs("button",{className:`list_pagination__btn${t===w?" is_current":""}`,onClick:()=>{a(w),window.scrollTo({top:0,behavior:"instant"})},disabled:w>m,children:[x,v.jsx("span",{className:"pagination_hyphen",children:"-"}),A]},w)})})]})]})})})}const tR="_payday__table_1h9x7_1",aR="_col_nickname_1h9x7_50",nR="_col_total_1h9x7_56",iR="_col_money_1h9x7_59",sR="_col_special_kills_1h9x7_59",lR="_col_kills_1h9x7_59",rR="_col_points_1h9x7_62",oR="_col_points_value_1h9x7_62",cR="_col_rank_1h9x7_68",uR="_payday__table_empty_1h9x7_93",hR="_payday_table_row_empty_1h9x7_96",Lt={payday__table:tR,col_nickname:aR,col_total:nR,col_money:iR,col_special_kills:sR,col_kills:lR,col_points:rR,col_points_value:oR,col_rank:cR,payday__table_empty:uR,payday_table_row_empty:hR},dR="_primary__button_1rs7j_1",fR="_small_1rs7j_12",mR="_medium_1rs7j_28",gR="_sticky_rank_row_1rs7j_99",pR="_col_nickname_1rs7j_121",_R="_col_total_1rs7j_127",vR="_col_money_1rs7j_130",yR="_col_special_kills_1rs7j_130",bR="_col_kills_1rs7j_130",wR="_col_points_1rs7j_133",SR="_col_points_value_1rs7j_133",ER="_nickname_avatar_1rs7j_139",xR="_current_rank_cell_1rs7j_142",CR="_col_rank_1rs7j_163",lt={primary__button:dR,small:fR,medium:mR,sticky_rank_row:gR,col_nickname:pR,col_total:_R,col_money:vR,col_special_kills:yR,col_kills:bR,col_points:wR,col_points_value:SR,nickname_avatar:ER,current_rank_cell:xR,col_rank:CR};function TR({selectedProvider:t}){const{user:a,login:i,setUser:l}=ln(),{language:o,tr:c}=et(),{isMobile:h}=zn(),{platform_id:f,display_name:g}=Y_(t),{getSettings:m}=Ei(),{getOverrideForProvider:_}=sl(),E=_(t)??f,{data:w,isError:x,isLoading:A}=Si({queryKey:["paydayUserRank",t,E,a?.access_token],queryFn:async()=>{const z={Authorization:`Bearer ${a?.access_token??""}`},G=m();G!=null&&(z["X-External-Api-Environment"]=G.pc??"");const U=await fetch(`/api/v1/heistroyale/my/${t}/${E}`,{headers:z});if(!U.ok){if(U.status===404)return{playerName:g,rank:null,totalPoint:null,total:null,money:null,totalSpecialKills:null,totalAiKills:null};throw new Error(`HTTP error! status: ${U.status}`)}return await U.json()},enabled:!!E&&!!a?.access_token,staleTime:1/0,retry:!1}),M=async()=>{const z=await M0();l(z),z?.profile.gamelinks.filter(U=>U.gamename==="pubg").some(U=>U.provider===t)||R0(o)};return!a&&!E?v.jsx("tr",{className:lt.sticky_rank_row,children:v.jsx("td",{colSpan:6,children:v.jsxs("button",{type:"button",className:`${lt.primary__button} ${h?lt.small:lt.medium}`,onClick:i,children:[v.jsx(xe,{name:"avatar"}),c("BRIDGE:RANKING_BUTTON_0")]})})}):E?A||x?null:v.jsxs("tr",{className:`${lt.sticky_rank_row} ${lt.current_rank_cell}`,children:[v.jsx("td",{className:`${lt.col_rank}`,children:w?.rank?`#${w.rank}`:"-"}),v.jsxs("td",{className:`${lt.col_nickname}`,children:[v.jsx(xe,{name:"avatar",className:lt.nickname_avatar}),w?.playerName]}),v.jsxs("td",{className:`${lt.col_points} ${lt.col_total}`,children:[v.jsx("span",{className:lt.col_points_value,children:c("BRIDGE:ARCADE_BODY_0")}
22),w?.totalPoint?.toLocaleString()??"-"]}),v.jsxs("td",{className:`${lt.col_points} ${lt.col_money}`,children:[v.jsx("span",{className:lt.col_points_value,children:c("BRIDGE:ARCADE_BODY_3")}),w?.total?.toLocaleString()??"-"]}),v.jsxs("td",{className:`${lt.col_points} ${lt.col_special_kills}`,children:[v.jsx("span",{className:lt.col_points_value,children:c("BRIDGE:ARCADE_BODY_4")}),w?.totalSpecialKills?.toLocaleString()??"-"]}),v.jsxs("td",{className:`${lt.col_points} ${lt.col_kills}`,children:[v.jsx("span",{className:lt.col_points_value,children:c("BRIDGE:ARCADE_BODY_5")}),w?.totalAiKills?.toLocaleString()??"-"]})]}):v.jsx("tr",{className:lt.sticky_rank_row,children:v.jsx("td",{colSpan:5,children:v.jsxs("button",{type:"button",className:`${lt.primary__button} ${h?lt.small:lt.medium}`,onClick:M,children:[v.jsx(xe,{name:"sync"}),c("BRIDGE:RANKING_BUTTON_1")]})})})}function RR({data:t,selectedProvider:a}){const{tr:i}=et(),l=(t?.length??0)===0;return v.jsxs("table",{className:`${Lt.payday__table} ${l?Lt.payday__table_empty:""}`,children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{children:i("BRIDGE:RANKING_BODY_0")}),v.jsx("th",{children:i("BRIDGE:RANKING_BODY_1")}),v.jsx("th",{children:i("BRIDGE:ARCADE_BODY_0")}),v.jsx("th",{children:i("BRIDGE:ARCADE_BODY_3")}),v.jsx("th",{children:i("BRIDGE:ARCADE_BODY_4")}),v.jsx("th",{children:i("BRIDGE:ARCADE_BODY_5")})]})}),v.jsxs("tbody",{children:[l?v.jsx("tr",{className:Lt.payday_table_row_empty,children:v.jsx("td",{colSpan:6,children:i("BRIDGE:RANKING_BODY_2")})}):t?.map(o=>v.jsxs("tr",{"data-rank":o.rank<=3?o.rank:void 0,children:[v.jsxs("td",{className:Lt.col_rank,children:["#",o.rank]}),v.jsx("td",{className:Lt.col_nickname,children:o.playerName}),v.jsxs("td",{className:`${Lt.col_points} ${Lt.col_total}`,children:[v.jsx("span",{className:Lt.col_points_value,children:i("BRIDGE:ARCADE_BODY_0")}),o.totalPoint.toLocaleString()]}),v.jsxs("td",{className:`${Lt.col_points} ${Lt.col_money}`,children:[v.jsx("span",{className:Lt.col_points_value,children:i("BRIDGE:ARCADE_BODY_3")}),o.total.toLocaleString()]}),v.jsxs("td",{className:`${Lt.col_points} ${Lt.col_special_kills}`,children:[v.jsx("span",{className:Lt.col_points_value,children:i("BRIDGE:ARCADE_BODY_4")}),o.totalSpecialKills.toLocaleString()]}),v.jsxs("td",{className:`${Lt.col_points} ${Lt.col_kills}`,children:[v.jsx("span",{className:Lt.col_points_value,children:i("BRIDGE:ARCADE_BODY_5")}),o.totalAiKills.toLocaleString()]})]},o.rank)),v.jsx(TR,{selectedProvider:a})]})]})}const Pd=100,MR=5,kR=["steam","epic","kakao"],DR={steam:"BRIDGE:MAIN_ALL_0",epic:"BRIDGE:MAIN_ALL_1",kakao:"BRIDGE:MAIN_ALL_4"};function AR(){const[t,a]=y.useState(1),[i,l]=y.useState("steam"),{tr:o}=et(),{getSettings:c}=Ei(),{data:h,isLoading:f,isError:g}=Si({queryKey:["paydayRankData",t,i],queryFn:async()=>{const b={},E=c();E!=null&&(b["X-External-Api-Environment"]=E.pc??"");const w=await fetch(`/api/v1/heistroyale/leaderboard/${i}/${t}`,{headers:b});if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);return w.json()},enabled:!!t,staleTime:1/0}),m=y.useMemo(()=>
22h?Math.ceil(h.count/Pd):0,[h]),_=b=>{l(b),a(1)};return v.jsx("main",{id:"sub__container",className:"payday_page",children:v.jsx("div",{className:"sub__contents payday__list_container",children:g?v.jsx(wi,{contentTrs:[{key:"BRIDGE:ERROR_TITLE_1"},{key:"BRIDGE:ERROR_BODY_1"}]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"payday__info_header",children:[v.jsx("h1",{className:"payday__page_title",children:o("BRIDGE:MAIN_GNB_6")}),v.jsxs("ul",{className:"payday__status",children:[v.jsx("li",{children:o("BRIDGE:ARCADE_TITLE_1")}),v.jsxs("li",{children:[o("BRIDGE:RANKING_TITLE_0")," 500"]}),v.jsx("li",{children:o("BRIDGE:RANKING_TITLE_1")})]}),v.jsx("ul",{className:"tab__list",children:kR.map(b=>v.jsx("li",{children:v.jsxs("button",{className:`tab__item ${i===b?"selected":""}`,onClick:()=>_(b),children:[v.jsx(xe,{name:`platform_${b}`}),v.jsx("span",{className:"tab__item_text",children:o(DR[b])})]})},b))})]}),v.jsxs(Or,{loading:f,children:[v.jsx("div",{className:"payday__table_wrapper",children:v.jsx(RR,{data:h?.entries,selectedProvider:i})}),v.jsx("div",{className:"list_pagination",children:Array.from({length:MR},(b,E)=>{const w=E+1,x=(w-1)*Pd+1,A=w*Pd;return v.jsxs("button",{className:`list_pagination__btn${t===w?" is_current":""}`,onClick:()=>{a(w),window.scrollTo({top:0,behavior:"instant"})},disabled:w>m,children:[x,v.jsx("span",{className:"pagination_hyphen",children:"-"}),A]},w)})})]})]})})})}const OR=uw([{path:"/",loader:()=>{const t=Wd();return x3(`/${t}`)},ErrorBoundary:gi},{path:"/login/callback",Component:$x,ErrorBoundary:gi},{path:"/:lang",loader:({params:t,request:a})=>{const{lang:i}=t;if(!Zs(i??"")){const l=Wd(),o=window.location.pathname,c=new URL(a.url).search;return x3(`/${l}${o}${c}`)}},Component:nT,children:[{index:!0,ErrorBoundary:gi,Component:Sw},{path:"2d-replay",ErrorBoundary:gi,children:[{index:!0,Component:Gg},{path:"list",Component:Gg},{path:":matchId",Component:qx}]},{path:"ranking",ErrorBoundary:gi,children:[{path:"arcade/xenopoint",Component:eR},{path:"arcade/payday",Component:AR}]},{path:"*",Component:C_}],ErrorBoundary:gi}]);function NR(){const{getSettings:t,setEnvironment:a,resetEnvironment:i,resetAllEnvironments:l}=Ei(),{getOverrides:o,setOverride:c,resetOverride:h,resetAllOverrides:f}=sl(),[g,m]=y.useState(!1),[_,b]=y.useState("steam"),[E,w]=y.useState(""),[x,A]=y.useState("");return null}var UR=function(){return null};const zR=new U6;function LR(){return v.jsx(z6,{client:zR,children:v.jsx(by,{children:v.jsx(X7,{children:v.jsxs(Z7,{children:[v.jsx(zb,{router:OR}),v.jsx(NR,{}),v.jsx(UR,{initialIsOpen:!0})]})})})})}async function IR(){}IR().then(()=>{c6.createRoot(document.getElementById("root")).render(v.jsx(y.StrictMode,{children:v.jsx(LR,{})}))});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.