ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto

crying in oauth

+114
dist/assets/index-CCJHyQxj.js
··· 1 + var Ud=Object.defineProperty;var _a=e=>{throw TypeError(e)};var Md=(e,t,n)=>t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var de=(e,t,n)=>Md(e,typeof t!="symbol"?t+"":t,n),ka=(e,t,n)=>t.has(e)||_a("Cannot "+n);var fn=(e,t,n)=>(ka(e,t,"read from private field"),n?n.call(e):t.get(e)),dn=(e,t,n)=>t.has(e)?_a("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),hn=(e,t,n,r)=>(ka(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bu={exports:{}},Eo={},Fu={exports:{}},ae={};/** 2 + * @license React 3 + * react.production.min.js 4 + * 5 + * Copyright (c) Facebook, Inc. and its affiliates. 6 + * 7 + * This source code is licensed under the MIT license found in the 8 + * LICENSE file in the root directory of this source tree. 9 + */var fi=Symbol.for("react.element"),Bd=Symbol.for("react.portal"),$d=Symbol.for("react.fragment"),Wd=Symbol.for("react.strict_mode"),Hd=Symbol.for("react.profiler"),Vd=Symbol.for("react.provider"),Zd=Symbol.for("react.context"),Gd=Symbol.for("react.forward_ref"),Kd=Symbol.for("react.suspense"),Qd=Symbol.for("react.memo"),Yd=Symbol.for("react.lazy"),xa=Symbol.iterator;function Xd(e){return e===null||typeof e!="object"?null:(e=xa&&e[xa]||e["@@iterator"],typeof e=="function"?e:null)}var Uu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mu=Object.assign,Bu={};function ar(e,t,n){this.props=e,this.context=t,this.refs=Bu,this.updater=n||Uu}ar.prototype.isReactComponent={};ar.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $u(){}$u.prototype=ar.prototype;function wl(e,t,n){this.props=e,this.context=t,this.refs=Bu,this.updater=n||Uu}var _l=wl.prototype=new $u;_l.constructor=wl;Mu(_l,ar.prototype);_l.isPureReactComponent=!0;var Sa=Array.isArray,Wu=Object.prototype.hasOwnProperty,kl={current:null},Hu={key:!0,ref:!0,__self:!0,__source:!0};function Vu(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Wu.call(t,r)&&!Hu.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),f=0;f<l;f++)a[f]=arguments[f+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:fi,type:e,key:o,ref:s,props:i,_owner:kl.current}}function Jd(e,t){return{$$typeof:fi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xl(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi}function qd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ea=/\/+/g;function Go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qd(""+e.key):t.toString(36)}function Fi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fi:case Bd:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Go(s,0):r,Sa(i)?(n="",e!=null&&(n=e.replace(Ea,"$&/")+"/"),Fi(i,t,n,"",function(f){return f})):i!=null&&(xl(i)&&(i=Jd(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Ea,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Sa(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Go(o,l);s+=Fi(o,t,n,a,i)}else if(a=Xd(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Go(o,l++),s+=Fi(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function wi(e,t,n){if(e==null)return e;var r=[],i=0;return Fi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function eh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $e={current:null},Ui={transition:null},th={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:Ui,ReactCurrentOwner:kl};function Zu(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:wi,forEach:function(e,t,n){wi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wi(e,function(){t++}),t},toArray:function(e){return wi(e,function(t){return t})||[]},only:function(e){if(!xl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=ar;ae.Fragment=$d;ae.Profiler=Hd;ae.PureComponent=wl;ae.StrictMode=Wd;ae.Suspense=Kd;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=th;ae.act=Zu;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Mu({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=kl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Wu.call(t,a)&&!Hu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var f=0;f<a;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:fi,type:e.type,key:i,ref:o,props:r,_owner:s}};ae.createContext=function(e){return e={$$typeof:Zd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vd,_context:e},e.Consumer=e};ae.createElement=Vu;ae.createFactory=function(e){var t=Vu.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:Gd,render:e}};ae.isValidElement=xl;ae.lazy=function(e){return{$$typeof:Yd,_payload:{_status:-1,_result:e},_init:eh}};ae.memo=function(e,t){return{$$typeof:Qd,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Ui.transition;Ui.transition={};try{e()}finally{Ui.transition=t}};ae.unstable_act=Zu;ae.useCallback=function(e,t){return $e.current.useCallback(e,t)};ae.useContext=function(e){return $e.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return $e.current.useDeferredValue(e)};ae.useEffect=function(e,t){return $e.current.useEffect(e,t)};ae.useId=function(){return $e.current.useId()};ae.useImperativeHandle=function(e,t,n){return $e.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return $e.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return $e.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return $e.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return $e.current.useReducer(e,t,n)};ae.useRef=function(e){return $e.current.useRef(e)};ae.useState=function(e){return $e.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return $e.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return $e.current.useTransition()};ae.version="18.3.1";Fu.exports=ae;var Te=Fu.exports;const nh=Du(Te);/** 10 + * @license React 11 + * react-jsx-runtime.production.min.js 12 + * 13 + * Copyright (c) Facebook, Inc. and its affiliates. 14 + * 15 + * This source code is licensed under the MIT license found in the 16 + * LICENSE file in the root directory of this source tree. 17 + */var rh=Te,ih=Symbol.for("react.element"),oh=Symbol.for("react.fragment"),sh=Object.prototype.hasOwnProperty,lh=rh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ah={key:!0,ref:!0,__self:!0,__source:!0};function Gu(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)sh.call(t,r)&&!ah.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ih,type:e,key:o,ref:s,props:i,_owner:lh.current}}Eo.Fragment=oh;Eo.jsx=Gu;Eo.jsxs=Gu;bu.exports=Eo;var M=bu.exports,xs={},Ku={exports:{}},tt={},Qu={exports:{}},Yu={};/** 18 + * @license React 19 + * scheduler.production.min.js 20 + * 21 + * Copyright (c) Facebook, Inc. and its affiliates. 22 + * 23 + * This source code is licensed under the MIT license found in the 24 + * LICENSE file in the root directory of this source tree. 25 + */(function(e){function t(j,P){var U=j.length;j.push(P);e:for(;0<U;){var T=U-1>>>1,z=j[T];if(0<i(z,P))j[T]=P,j[U]=z,U=T;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var P=j[0],U=j.pop();if(U!==P){j[0]=U;e:for(var T=0,z=j.length,J=z>>>1;T<J;){var K=2*(T+1)-1,Q=j[K],se=K+1,oe=j[se];if(0>i(Q,U))se<z&&0>i(oe,Q)?(j[T]=oe,j[se]=U,T=se):(j[T]=Q,j[K]=U,T=K);else if(se<z&&0>i(oe,U))j[T]=oe,j[se]=U,T=se;else break e}}return P}function i(j,P){var U=j.sortIndex-P.sortIndex;return U!==0?U:j.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],f=[],_=1,v=null,m=3,p=!1,w=!1,h=!1,k=typeof setTimeout=="function"?setTimeout:null,u=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(j){for(var P=n(f);P!==null;){if(P.callback===null)r(f);else if(P.startTime<=j)r(f),P.sortIndex=P.expirationTime,t(a,P);else break;P=n(f)}}function S(j){if(h=!1,g(j),!w)if(n(a)!==null)w=!0,re(C);else{var P=n(f);P!==null&&b(S,P.startTime-j)}}function C(j,P){w=!1,h&&(h=!1,u(L),L=-1),p=!0;var U=m;try{for(g(P),v=n(a);v!==null&&(!(v.expirationTime>P)||j&&!te());){var T=v.callback;if(typeof T=="function"){v.callback=null,m=v.priorityLevel;var z=T(v.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?v.callback=z:v===n(a)&&r(a),g(P)}else r(a);v=n(a)}if(v!==null)var J=!0;else{var K=n(f);K!==null&&b(S,K.startTime-P),J=!1}return J}finally{v=null,m=U,p=!1}}var A=!1,I=null,L=-1,D=5,$=-1;function te(){return!(e.unstable_now()-$<D)}function N(){if(I!==null){var j=e.unstable_now();$=j;var P=!0;try{P=I(!0,j)}finally{P?B():(A=!1,I=null)}}else A=!1}var B;if(typeof c=="function")B=function(){c(N)};else if(typeof MessageChannel<"u"){var y=new MessageChannel,W=y.port2;y.port1.onmessage=N,B=function(){W.postMessage(null)}}else B=function(){k(N,0)};function re(j){I=j,A||(A=!0,B())}function b(j,P){L=k(function(){j(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,re(C))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(j){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var U=m;m=P;try{return j()}finally{m=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,P){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var U=m;m=j;try{return P()}finally{m=U}},e.unstable_scheduleCallback=function(j,P,U){var T=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?T+U:T):U=T,j){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=U+z,j={id:_++,callback:P,priorityLevel:j,startTime:U,expirationTime:z,sortIndex:-1},U>T?(j.sortIndex=U,t(f,j),n(a)===null&&j===n(f)&&(h?(u(L),L=-1):h=!0,b(S,U-T))):(j.sortIndex=z,t(a,j),w||p||(w=!0,re(C))),j},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(j){var P=m;return function(){var U=m;m=P;try{return j.apply(this,arguments)}finally{m=U}}}})(Yu);Qu.exports=Yu;var uh=Qu.exports;/** 26 + * @license React 27 + * react-dom.production.min.js 28 + * 29 + * Copyright (c) Facebook, Inc. and its affiliates. 30 + * 31 + * This source code is licensed under the MIT license found in the 32 + * LICENSE file in the root directory of this source tree. 33 + */var ch=Te,qe=uh;function G(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xu=new Set,Br={};function Tn(e,t){tr(e,t),tr(e+"Capture",t)}function tr(e,t){for(Br[e]=t,e=0;e<t.length;e++)Xu.add(t[e])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ss=Object.prototype.hasOwnProperty,fh=/^[: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]*$/,Ca={},Na={};function dh(e){return Ss.call(Na,e)?!0:Ss.call(Ca,e)?!1:fh.test(e)?Na[e]=!0:(Ca[e]=!0,!1)}function hh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ph(e,t,n,r){if(t===null||typeof t>"u"||hh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function We(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new We(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sl=/[\-:]([a-z])/g;function El(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Sl,El);Le[t]=new We(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Sl,El);Le[t]=new We(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Sl,El);Le[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cl(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ph(t,n,i,r)&&(n=null),r||i===null?dh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Bt=ch.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_i=Symbol.for("react.element"),jn=Symbol.for("react.portal"),On=Symbol.for("react.fragment"),Nl=Symbol.for("react.strict_mode"),Es=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),qu=Symbol.for("react.context"),zl=Symbol.for("react.forward_ref"),Cs=Symbol.for("react.suspense"),Ns=Symbol.for("react.suspense_list"),Tl=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),ec=Symbol.for("react.offscreen"),za=Symbol.iterator;function mr(e){return e===null||typeof e!="object"?null:(e=za&&e[za]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,Ko;function Nr(e){if(Ko===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ko=t&&t[1]||""}return` 34 + `+Ko+e}var Qo=!1;function Yo(e,t){if(!e||Qo)return"";Qo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(` 35 + `),o=r.stack.split(` 36 + `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=` 37 + `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function mh(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=Yo(e.type,!1),e;case 11:return e=Yo(e.type.render,!1),e;case 1:return e=Yo(e.type,!0),e;default:return""}}function zs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case On:return"Fragment";case jn:return"Portal";case Es:return"Profiler";case Nl:return"StrictMode";case Cs:return"Suspense";case Ns:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qu:return(e.displayName||"Context")+".Consumer";case Ju:return(e._context.displayName||"Context")+".Provider";case zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tl:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function gh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zs(t);case 8:return t===Nl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vh(e){var t=tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ki(e){e._valueTracker||(e._valueTracker=vh(e))}function nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ts(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ta(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&Cl(e,"checked",t,!1)}function Ps(e,t){rc(e,t);var n=on(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Is(e,t.type,n):t.hasOwnProperty("defaultValue")&&Is(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Is(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function Gn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+on(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Rs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(G(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ia(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(G(92));if(zr(n)){if(1<n.length)throw Error(G(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function ic(e,t){var n=on(t.value),r=on(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ra(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function oc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function As(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?oc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xi,sc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yh=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){yh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function lc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var wh=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function js(e,t){if(t){if(wh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(G(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(G(61))}if(t.style!=null&&typeof t.style!="object")throw Error(G(62))}}function Os(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ls=null;function Pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ds=null,Kn=null,Qn=null;function Aa(e){if(e=pi(e)){if(typeof Ds!="function")throw Error(G(280));var t=e.stateNode;t&&(t=Po(t),Ds(e.stateNode,e.type,t))}}function uc(e){Kn?Qn?Qn.push(e):Qn=[e]:Kn=e}function cc(){if(Kn){var e=Kn,t=Qn;if(Qn=Kn=null,Aa(e),t)for(e=0;e<t.length;e++)Aa(t[e])}}function fc(e,t){return e(t)}function dc(){}var Xo=!1;function hc(e,t,n){if(Xo)return e(t,n);Xo=!0;try{return fc(e,t,n)}finally{Xo=!1,(Kn!==null||Qn!==null)&&(dc(),cc())}}function Wr(e,t){var n=e.stateNode;if(n===null)return null;var r=Po(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(G(231,t,typeof n));return n}var bs=!1;if(Lt)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){bs=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{bs=!1}function _h(e,t,n,r,i,o,s,l,a){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(_){this.onError(_)}}var Rr=!1,Ji=null,qi=!1,Fs=null,kh={onError:function(e){Rr=!0,Ji=e}};function xh(e,t,n,r,i,o,s,l,a){Rr=!1,Ji=null,_h.apply(kh,arguments)}function Sh(e,t,n,r,i,o,s,l,a){if(xh.apply(this,arguments),Rr){if(Rr){var f=Ji;Rr=!1,Ji=null}else throw Error(G(198));qi||(qi=!0,Fs=f)}}function Pn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ja(e){if(Pn(e)!==e)throw Error(G(188))}function Eh(e){var t=e.alternate;if(!t){if(t=Pn(e),t===null)throw Error(G(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ja(i),e;if(o===r)return ja(i),t;o=o.sibling}throw Error(G(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(G(189))}}if(n.alternate!==r)throw Error(G(190))}if(n.tag!==3)throw Error(G(188));return n.stateNode.current===n?e:t}function mc(e){return e=Eh(e),e!==null?gc(e):null}function gc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gc(e);if(t!==null)return t;e=e.sibling}return null}var vc=qe.unstable_scheduleCallback,Oa=qe.unstable_cancelCallback,Ch=qe.unstable_shouldYield,Nh=qe.unstable_requestPaint,Ne=qe.unstable_now,zh=qe.unstable_getCurrentPriorityLevel,Il=qe.unstable_ImmediatePriority,yc=qe.unstable_UserBlockingPriority,eo=qe.unstable_NormalPriority,Th=qe.unstable_LowPriority,wc=qe.unstable_IdlePriority,Co=null,Nt=null;function Ph(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Co,e,void 0,(e.current.flags&128)===128)}catch{}}var gt=Math.clz32?Math.clz32:Ah,Ih=Math.log,Rh=Math.LN2;function Ah(e){return e>>>=0,e===0?32:31-(Ih(e)/Rh|0)|0}var Si=64,Ei=4194304;function Tr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function to(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Tr(l):(o&=s,o!==0&&(r=Tr(o)))}else s=n&~i,s!==0?r=Tr(s):o!==0&&(r=Tr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-gt(t),i=1<<n,r|=e[n],t&=~i;return r}function jh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Oh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-gt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=jh(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Us(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _c(){var e=Si;return Si<<=1,!(Si&4194240)&&(Si=64),e}function Jo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gt(t),e[t]=n}function Lh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-gt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Rl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function kc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xc,Al,Sc,Ec,Cc,Ms=!1,Ci=[],Yt=null,Xt=null,Jt=null,Hr=new Map,Vr=new Map,Zt=[],Dh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function La(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Jt=null;break;case"pointerover":case"pointerout":Hr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vr.delete(t.pointerId)}}function vr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=pi(t),t!==null&&Al(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bh(e,t,n,r,i){switch(t){case"focusin":return Yt=vr(Yt,e,t,n,r,i),!0;case"dragenter":return Xt=vr(Xt,e,t,n,r,i),!0;case"mouseover":return Jt=vr(Jt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Hr.set(o,vr(Hr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Vr.set(o,vr(Vr.get(o)||null,e,t,n,r,i)),!0}return!1}function Nc(e){var t=gn(e.target);if(t!==null){var n=Pn(t);if(n!==null){if(t=n.tag,t===13){if(t=pc(n),t!==null){e.blockedOn=t,Cc(e.priority,function(){Sc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ls=r,n.target.dispatchEvent(r),Ls=null}else return t=pi(n),t!==null&&Al(t),e.blockedOn=n,!1;t.shift()}return!0}function Da(e,t,n){Mi(e)&&n.delete(t)}function Fh(){Ms=!1,Yt!==null&&Mi(Yt)&&(Yt=null),Xt!==null&&Mi(Xt)&&(Xt=null),Jt!==null&&Mi(Jt)&&(Jt=null),Hr.forEach(Da),Vr.forEach(Da)}function yr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ms||(Ms=!0,qe.unstable_scheduleCallback(qe.unstable_NormalPriority,Fh)))}function Zr(e){function t(i){return yr(i,e)}if(0<Ci.length){yr(Ci[0],e);for(var n=1;n<Ci.length;n++){var r=Ci[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&yr(Yt,e),Xt!==null&&yr(Xt,e),Jt!==null&&yr(Jt,e),Hr.forEach(t),Vr.forEach(t),n=0;n<Zt.length;n++)r=Zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zt.length&&(n=Zt[0],n.blockedOn===null);)Nc(n),n.blockedOn===null&&Zt.shift()}var Yn=Bt.ReactCurrentBatchConfig,no=!0;function Uh(e,t,n,r){var i=pe,o=Yn.transition;Yn.transition=null;try{pe=1,jl(e,t,n,r)}finally{pe=i,Yn.transition=o}}function Mh(e,t,n,r){var i=pe,o=Yn.transition;Yn.transition=null;try{pe=4,jl(e,t,n,r)}finally{pe=i,Yn.transition=o}}function jl(e,t,n,r){if(no){var i=Bs(e,t,n,r);if(i===null)as(e,t,r,ro,n),La(e,r);else if(bh(i,e,t,n,r))r.stopPropagation();else if(La(e,r),t&4&&-1<Dh.indexOf(e)){for(;i!==null;){var o=pi(i);if(o!==null&&xc(o),o=Bs(e,t,n,r),o===null&&as(e,t,r,ro,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else as(e,t,r,null,n)}}var ro=null;function Bs(e,t,n,r){if(ro=null,e=Pl(r),e=gn(e),e!==null)if(t=Pn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ro=e,null}function zc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(zh()){case Il:return 1;case yc:return 4;case eo:case Th:return 16;case wc:return 536870912;default:return 16}default:return 16}}var Kt=null,Ol=null,Bi=null;function Tc(){if(Bi)return Bi;var e,t=Ol,n=t.length,r,i="value"in Kt?Kt.value:Kt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Bi=i.slice(e,1<r?1-r:void 0)}function $i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ni(){return!0}function ba(){return!1}function nt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ni:ba,this.isPropagationStopped=ba,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ll=nt(ur),hi=Se({},ur,{view:0,detail:0}),Bh=nt(hi),qo,es,wr,No=Se({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dl,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!==wr&&(wr&&e.type==="mousemove"?(qo=e.screenX-wr.screenX,es=e.screenY-wr.screenY):es=qo=0,wr=e),qo)},movementY:function(e){return"movementY"in e?e.movementY:es}}),Fa=nt(No),$h=Se({},No,{dataTransfer:0}),Wh=nt($h),Hh=Se({},hi,{relatedTarget:0}),ts=nt(Hh),Vh=Se({},ur,{animationName:0,elapsedTime:0,pseudoElement:0}),Zh=nt(Vh),Gh=Se({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kh=nt(Gh),Qh=Se({},ur,{data:0}),Ua=nt(Qh),Yh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xh={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"},Jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jh[e])?!!t[e]:!1}function Dl(){return qh}var ep=Se({},hi,{key:function(e){if(e.key){var t=Yh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dl,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tp=nt(ep),np=Se({},No,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ma=nt(np),rp=Se({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dl}),ip=nt(rp),op=Se({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),sp=nt(op),lp=Se({},No,{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}),ap=nt(lp),up=[9,13,27,32],bl=Lt&&"CompositionEvent"in window,Ar=null;Lt&&"documentMode"in document&&(Ar=document.documentMode);var cp=Lt&&"TextEvent"in window&&!Ar,Pc=Lt&&(!bl||Ar&&8<Ar&&11>=Ar),Ba=" ",$a=!1;function Ic(e,t){switch(e){case"keyup":return up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function fp(e,t){switch(e){case"compositionend":return Rc(t);case"keypress":return t.which!==32?null:($a=!0,Ba);case"textInput":return e=t.data,e===Ba&&$a?null:e;default:return null}}function dp(e,t){if(Ln)return e==="compositionend"||!bl&&Ic(e,t)?(e=Tc(),Bi=Ol=Kt=null,Ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pc&&t.locale!=="ko"?null:t.data;default:return null}}var hp={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 Wa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hp[e.type]:t==="textarea"}function Ac(e,t,n,r){uc(r),t=io(t,"onChange"),0<t.length&&(n=new Ll("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jr=null,Gr=null;function pp(e){Wc(e,0)}function zo(e){var t=Fn(e);if(nc(t))return e}function mp(e,t){if(e==="change")return t}var jc=!1;if(Lt){var ns;if(Lt){var rs="oninput"in document;if(!rs){var Ha=document.createElement("div");Ha.setAttribute("oninput","return;"),rs=typeof Ha.oninput=="function"}ns=rs}else ns=!1;jc=ns&&(!document.documentMode||9<document.documentMode)}function Va(){jr&&(jr.detachEvent("onpropertychange",Oc),Gr=jr=null)}function Oc(e){if(e.propertyName==="value"&&zo(Gr)){var t=[];Ac(t,Gr,e,Pl(e)),hc(pp,t)}}function gp(e,t,n){e==="focusin"?(Va(),jr=t,Gr=n,jr.attachEvent("onpropertychange",Oc)):e==="focusout"&&Va()}function vp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zo(Gr)}function yp(e,t){if(e==="click")return zo(t)}function wp(e,t){if(e==="input"||e==="change")return zo(t)}function _p(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:_p;function Kr(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ss.call(t,i)||!yt(e[i],t[i]))return!1}return!0}function Za(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ga(e,t){var n=Za(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Za(n)}}function Lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dc(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function Fl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kp(e){var t=Dc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lc(n.ownerDocument.documentElement,n)){if(r!==null&&Fl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ga(n,o);var s=Ga(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xp=Lt&&"documentMode"in document&&11>=document.documentMode,Dn=null,$s=null,Or=null,Ws=!1;function Ka(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ws||Dn==null||Dn!==Xi(r)||(r=Dn,"selectionStart"in r&&Fl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&Kr(Or,r)||(Or=r,r=io($s,"onSelect"),0<r.length&&(t=new Ll("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dn)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bn={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionend:zi("Transition","TransitionEnd")},is={},bc={};Lt&&(bc=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function To(e){if(is[e])return is[e];if(!bn[e])return e;var t=bn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bc)return is[e]=t[n];return e}var Fc=To("animationend"),Uc=To("animationiteration"),Mc=To("animationstart"),Bc=To("transitionend"),$c=new Map,Qa="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ln(e,t){$c.set(e,t),Tn(t,[e])}for(var os=0;os<Qa.length;os++){var ss=Qa[os],Sp=ss.toLowerCase(),Ep=ss[0].toUpperCase()+ss.slice(1);ln(Sp,"on"+Ep)}ln(Fc,"onAnimationEnd");ln(Uc,"onAnimationIteration");ln(Mc,"onAnimationStart");ln("dblclick","onDoubleClick");ln("focusin","onFocus");ln("focusout","onBlur");ln(Bc,"onTransitionEnd");tr("onMouseEnter",["mouseout","mouseover"]);tr("onMouseLeave",["mouseout","mouseover"]);tr("onPointerEnter",["pointerout","pointerover"]);tr("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="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(" "),Cp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Ya(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Sh(r,t,void 0,e),e.currentTarget=null}function Wc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,f=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;Ya(i,l,f),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,f=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;Ya(i,l,f),o=a}}}if(qi)throw e=Fs,qi=!1,Fs=null,e}function ye(e,t){var n=t[Ks];n===void 0&&(n=t[Ks]=new Set);var r=e+"__bubble";n.has(r)||(Hc(t,e,2,!1),n.add(r))}function ls(e,t,n){var r=0;t&&(r|=4),Hc(n,e,r,t)}var Ti="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Ti]){e[Ti]=!0,Xu.forEach(function(n){n!=="selectionchange"&&(Cp.has(n)||ls(n,!1,e),ls(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ti]||(t[Ti]=!0,ls("selectionchange",!1,t))}}function Hc(e,t,n,r){switch(zc(t)){case 1:var i=Uh;break;case 4:i=Mh;break;default:i=jl}n=i.bind(null,t,n,e),i=void 0,!bs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function as(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=gn(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}hc(function(){var f=o,_=Pl(n),v=[];e:{var m=$c.get(e);if(m!==void 0){var p=Ll,w=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":p=tp;break;case"focusin":w="focus",p=ts;break;case"focusout":w="blur",p=ts;break;case"beforeblur":case"afterblur":p=ts;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Fa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=ip;break;case Fc:case Uc:case Mc:p=Zh;break;case Bc:p=sp;break;case"scroll":p=Bh;break;case"wheel":p=ap;break;case"copy":case"cut":case"paste":p=Kh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ma}var h=(t&4)!==0,k=!h&&e==="scroll",u=h?m!==null?m+"Capture":null:m;h=[];for(var c=f,g;c!==null;){g=c;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,u!==null&&(S=Wr(c,u),S!=null&&h.push(Yr(c,S,g)))),k)break;c=c.return}0<h.length&&(m=new p(m,w,null,n,_),v.push({event:m,listeners:h}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==Ls&&(w=n.relatedTarget||n.fromElement)&&(gn(w)||w[Dt]))break e;if((p||m)&&(m=_.window===_?_:(m=_.ownerDocument)?m.defaultView||m.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=f,w=w?gn(w):null,w!==null&&(k=Pn(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=f),p!==w)){if(h=Fa,S="onMouseLeave",u="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(h=Ma,S="onPointerLeave",u="onPointerEnter",c="pointer"),k=p==null?m:Fn(p),g=w==null?m:Fn(w),m=new h(S,c+"leave",p,n,_),m.target=k,m.relatedTarget=g,S=null,gn(_)===f&&(h=new h(u,c+"enter",w,n,_),h.target=g,h.relatedTarget=k,S=h),k=S,p&&w)t:{for(h=p,u=w,c=0,g=h;g;g=An(g))c++;for(g=0,S=u;S;S=An(S))g++;for(;0<c-g;)h=An(h),c--;for(;0<g-c;)u=An(u),g--;for(;c--;){if(h===u||u!==null&&h===u.alternate)break t;h=An(h),u=An(u)}h=null}else h=null;p!==null&&Xa(v,m,p,h,!1),w!==null&&k!==null&&Xa(v,k,w,h,!0)}}e:{if(m=f?Fn(f):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var C=mp;else if(Wa(m))if(jc)C=wp;else{C=vp;var A=gp}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=yp);if(C&&(C=C(e,f))){Ac(v,C,n,_);break e}A&&A(e,m,f),e==="focusout"&&(A=m._wrapperState)&&A.controlled&&m.type==="number"&&Is(m,"number",m.value)}switch(A=f?Fn(f):window,e){case"focusin":(Wa(A)||A.contentEditable==="true")&&(Dn=A,$s=f,Or=null);break;case"focusout":Or=$s=Dn=null;break;case"mousedown":Ws=!0;break;case"contextmenu":case"mouseup":case"dragend":Ws=!1,Ka(v,n,_);break;case"selectionchange":if(xp)break;case"keydown":case"keyup":Ka(v,n,_)}var I;if(bl)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Ln?Ic(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Pc&&n.locale!=="ko"&&(Ln||L!=="onCompositionStart"?L==="onCompositionEnd"&&Ln&&(I=Tc()):(Kt=_,Ol="value"in Kt?Kt.value:Kt.textContent,Ln=!0)),A=io(f,L),0<A.length&&(L=new Ua(L,e,null,n,_),v.push({event:L,listeners:A}),I?L.data=I:(I=Rc(n),I!==null&&(L.data=I)))),(I=cp?fp(e,n):dp(e,n))&&(f=io(f,"onBeforeInput"),0<f.length&&(_=new Ua("onBeforeInput","beforeinput",null,n,_),v.push({event:_,listeners:f}),_.data=I))}Wc(v,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function io(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Wr(e,n),o!=null&&r.unshift(Yr(e,o,i)),o=Wr(e,t),o!=null&&r.push(Yr(e,o,i))),e=e.return}return r}function An(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xa(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,f=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&f!==null&&(l=f,i?(a=Wr(n,o),a!=null&&s.unshift(Yr(n,a,l))):i||(a=Wr(n,o),a!=null&&s.push(Yr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Np=/\r\n?/g,zp=/\u0000|\uFFFD/g;function Ja(e){return(typeof e=="string"?e:""+e).replace(Np,` 38 + `).replace(zp,"")}function Pi(e,t,n){if(t=Ja(t),Ja(e)!==t&&n)throw Error(G(425))}function oo(){}var Hs=null,Vs=null;function Zs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gs=typeof setTimeout=="function"?setTimeout:void 0,Tp=typeof clearTimeout=="function"?clearTimeout:void 0,qa=typeof Promise=="function"?Promise:void 0,Pp=typeof queueMicrotask=="function"?queueMicrotask:typeof qa<"u"?function(e){return qa.resolve(null).then(e).catch(Ip)}:Gs;function Ip(e){setTimeout(function(){throw e})}function us(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Zr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Zr(t)}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function eu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var cr=Math.random().toString(36).slice(2),Et="__reactFiber$"+cr,Xr="__reactProps$"+cr,Dt="__reactContainer$"+cr,Ks="__reactEvents$"+cr,Rp="__reactListeners$"+cr,Ap="__reactHandles$"+cr;function gn(e){var t=e[Et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dt]||n[Et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=eu(e);e!==null;){if(n=e[Et])return n;e=eu(e)}return t}e=n,n=e.parentNode}return null}function pi(e){return e=e[Et]||e[Dt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(G(33))}function Po(e){return e[Xr]||null}var Qs=[],Un=-1;function an(e){return{current:e}}function we(e){0>Un||(e.current=Qs[Un],Qs[Un]=null,Un--)}function ve(e,t){Un++,Qs[Un]=e.current,e.current=t}var sn={},Ue=an(sn),Ze=an(!1),Sn=sn;function nr(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ge(e){return e=e.childContextTypes,e!=null}function so(){we(Ze),we(Ue)}function tu(e,t,n){if(Ue.current!==sn)throw Error(G(168));ve(Ue,t),ve(Ze,n)}function Vc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(G(108,gh(e)||"Unknown",i));return Se({},n,r)}function lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Sn=Ue.current,ve(Ue,e),ve(Ze,Ze.current),!0}function nu(e,t,n){var r=e.stateNode;if(!r)throw Error(G(169));n?(e=Vc(e,t,Sn),r.__reactInternalMemoizedMergedChildContext=e,we(Ze),we(Ue),ve(Ue,e)):we(Ze),ve(Ze,n)}var It=null,Io=!1,cs=!1;function Zc(e){It===null?It=[e]:It.push(e)}function jp(e){Io=!0,Zc(e)}function un(){if(!cs&&It!==null){cs=!0;var e=0,t=pe;try{var n=It;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}It=null,Io=!1}catch(i){throw It!==null&&(It=It.slice(e+1)),vc(Il,un),i}finally{pe=t,cs=!1}}return null}var Mn=[],Bn=0,ao=null,uo=0,ot=[],st=0,En=null,At=1,jt="";function pn(e,t){Mn[Bn++]=uo,Mn[Bn++]=ao,ao=e,uo=t}function Gc(e,t,n){ot[st++]=At,ot[st++]=jt,ot[st++]=En,En=e;var r=At;e=jt;var i=32-gt(r)-1;r&=~(1<<i),n+=1;var o=32-gt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,At=1<<32-gt(t)+i|n<<i|r,jt=o+e}else At=1<<o|n<<i|r,jt=e}function Ul(e){e.return!==null&&(pn(e,1),Gc(e,1,0))}function Ml(e){for(;e===ao;)ao=Mn[--Bn],Mn[Bn]=null,uo=Mn[--Bn],Mn[Bn]=null;for(;e===En;)En=ot[--st],ot[st]=null,jt=ot[--st],ot[st]=null,At=ot[--st],ot[st]=null}var Xe=null,Ye=null,_e=!1,mt=null;function Kc(e,t){var n=lt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ru(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xe=e,Ye=qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=En!==null?{id:At,overflow:jt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,Ye=null,!0):!1;default:return!1}}function Ys(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xs(e){if(_e){var t=Ye;if(t){var n=t;if(!ru(e,t)){if(Ys(e))throw Error(G(418));t=qt(n.nextSibling);var r=Xe;t&&ru(e,t)?Kc(r,n):(e.flags=e.flags&-4097|2,_e=!1,Xe=e)}}else{if(Ys(e))throw Error(G(418));e.flags=e.flags&-4097|2,_e=!1,Xe=e}}}function iu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function Ii(e){if(e!==Xe)return!1;if(!_e)return iu(e),_e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zs(e.type,e.memoizedProps)),t&&(t=Ye)){if(Ys(e))throw Qc(),Error(G(418));for(;t;)Kc(e,t),t=qt(t.nextSibling)}if(iu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(G(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Xe?qt(e.stateNode.nextSibling):null;return!0}function Qc(){for(var e=Ye;e;)e=qt(e.nextSibling)}function rr(){Ye=Xe=null,_e=!1}function Bl(e){mt===null?mt=[e]:mt.push(e)}var Op=Bt.ReactCurrentBatchConfig;function _r(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(G(309));var r=n.stateNode}if(!r)throw Error(G(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(G(284));if(!n._owner)throw Error(G(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(G(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ou(e){var t=e._init;return t(e._payload)}function Yc(e){function t(u,c){if(e){var g=u.deletions;g===null?(u.deletions=[c],u.flags|=16):g.push(c)}}function n(u,c){if(!e)return null;for(;c!==null;)t(u,c),c=c.sibling;return null}function r(u,c){for(u=new Map;c!==null;)c.key!==null?u.set(c.key,c):u.set(c.index,c),c=c.sibling;return u}function i(u,c){return u=rn(u,c),u.index=0,u.sibling=null,u}function o(u,c,g){return u.index=g,e?(g=u.alternate,g!==null?(g=g.index,g<c?(u.flags|=2,c):g):(u.flags|=2,c)):(u.flags|=1048576,c)}function s(u){return e&&u.alternate===null&&(u.flags|=2),u}function l(u,c,g,S){return c===null||c.tag!==6?(c=vs(g,u.mode,S),c.return=u,c):(c=i(c,g),c.return=u,c)}function a(u,c,g,S){var C=g.type;return C===On?_(u,c,g.props.children,S,g.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ht&&ou(C)===c.type)?(S=i(c,g.props),S.ref=_r(u,c,g),S.return=u,S):(S=Qi(g.type,g.key,g.props,null,u.mode,S),S.ref=_r(u,c,g),S.return=u,S)}function f(u,c,g,S){return c===null||c.tag!==4||c.stateNode.containerInfo!==g.containerInfo||c.stateNode.implementation!==g.implementation?(c=ys(g,u.mode,S),c.return=u,c):(c=i(c,g.children||[]),c.return=u,c)}function _(u,c,g,S,C){return c===null||c.tag!==7?(c=kn(g,u.mode,S,C),c.return=u,c):(c=i(c,g),c.return=u,c)}function v(u,c,g){if(typeof c=="string"&&c!==""||typeof c=="number")return c=vs(""+c,u.mode,g),c.return=u,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case _i:return g=Qi(c.type,c.key,c.props,null,u.mode,g),g.ref=_r(u,null,c),g.return=u,g;case jn:return c=ys(c,u.mode,g),c.return=u,c;case Ht:var S=c._init;return v(u,S(c._payload),g)}if(zr(c)||mr(c))return c=kn(c,u.mode,g,null),c.return=u,c;Ri(u,c)}return null}function m(u,c,g,S){var C=c!==null?c.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return C!==null?null:l(u,c,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _i:return g.key===C?a(u,c,g,S):null;case jn:return g.key===C?f(u,c,g,S):null;case Ht:return C=g._init,m(u,c,C(g._payload),S)}if(zr(g)||mr(g))return C!==null?null:_(u,c,g,S,null);Ri(u,g)}return null}function p(u,c,g,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return u=u.get(g)||null,l(c,u,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _i:return u=u.get(S.key===null?g:S.key)||null,a(c,u,S,C);case jn:return u=u.get(S.key===null?g:S.key)||null,f(c,u,S,C);case Ht:var A=S._init;return p(u,c,g,A(S._payload),C)}if(zr(S)||mr(S))return u=u.get(g)||null,_(c,u,S,C,null);Ri(c,S)}return null}function w(u,c,g,S){for(var C=null,A=null,I=c,L=c=0,D=null;I!==null&&L<g.length;L++){I.index>L?(D=I,I=null):D=I.sibling;var $=m(u,I,g[L],S);if($===null){I===null&&(I=D);break}e&&I&&$.alternate===null&&t(u,I),c=o($,c,L),A===null?C=$:A.sibling=$,A=$,I=D}if(L===g.length)return n(u,I),_e&&pn(u,L),C;if(I===null){for(;L<g.length;L++)I=v(u,g[L],S),I!==null&&(c=o(I,c,L),A===null?C=I:A.sibling=I,A=I);return _e&&pn(u,L),C}for(I=r(u,I);L<g.length;L++)D=p(I,u,L,g[L],S),D!==null&&(e&&D.alternate!==null&&I.delete(D.key===null?L:D.key),c=o(D,c,L),A===null?C=D:A.sibling=D,A=D);return e&&I.forEach(function(te){return t(u,te)}),_e&&pn(u,L),C}function h(u,c,g,S){var C=mr(g);if(typeof C!="function")throw Error(G(150));if(g=C.call(g),g==null)throw Error(G(151));for(var A=C=null,I=c,L=c=0,D=null,$=g.next();I!==null&&!$.done;L++,$=g.next()){I.index>L?(D=I,I=null):D=I.sibling;var te=m(u,I,$.value,S);if(te===null){I===null&&(I=D);break}e&&I&&te.alternate===null&&t(u,I),c=o(te,c,L),A===null?C=te:A.sibling=te,A=te,I=D}if($.done)return n(u,I),_e&&pn(u,L),C;if(I===null){for(;!$.done;L++,$=g.next())$=v(u,$.value,S),$!==null&&(c=o($,c,L),A===null?C=$:A.sibling=$,A=$);return _e&&pn(u,L),C}for(I=r(u,I);!$.done;L++,$=g.next())$=p(I,u,L,$.value,S),$!==null&&(e&&$.alternate!==null&&I.delete($.key===null?L:$.key),c=o($,c,L),A===null?C=$:A.sibling=$,A=$);return e&&I.forEach(function(N){return t(u,N)}),_e&&pn(u,L),C}function k(u,c,g,S){if(typeof g=="object"&&g!==null&&g.type===On&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case _i:e:{for(var C=g.key,A=c;A!==null;){if(A.key===C){if(C=g.type,C===On){if(A.tag===7){n(u,A.sibling),c=i(A,g.props.children),c.return=u,u=c;break e}}else if(A.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ht&&ou(C)===A.type){n(u,A.sibling),c=i(A,g.props),c.ref=_r(u,A,g),c.return=u,u=c;break e}n(u,A);break}else t(u,A);A=A.sibling}g.type===On?(c=kn(g.props.children,u.mode,S,g.key),c.return=u,u=c):(S=Qi(g.type,g.key,g.props,null,u.mode,S),S.ref=_r(u,c,g),S.return=u,u=S)}return s(u);case jn:e:{for(A=g.key;c!==null;){if(c.key===A)if(c.tag===4&&c.stateNode.containerInfo===g.containerInfo&&c.stateNode.implementation===g.implementation){n(u,c.sibling),c=i(c,g.children||[]),c.return=u,u=c;break e}else{n(u,c);break}else t(u,c);c=c.sibling}c=ys(g,u.mode,S),c.return=u,u=c}return s(u);case Ht:return A=g._init,k(u,c,A(g._payload),S)}if(zr(g))return w(u,c,g,S);if(mr(g))return h(u,c,g,S);Ri(u,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,c!==null&&c.tag===6?(n(u,c.sibling),c=i(c,g),c.return=u,u=c):(n(u,c),c=vs(g,u.mode,S),c.return=u,u=c),s(u)):n(u,c)}return k}var ir=Yc(!0),Xc=Yc(!1),co=an(null),fo=null,$n=null,$l=null;function Wl(){$l=$n=fo=null}function Hl(e){var t=co.current;we(co),e._currentValue=t}function Js(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Xn(e,t){fo=e,$l=$n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function ut(e){var t=e._currentValue;if($l!==e)if(e={context:e,memoizedValue:t,next:null},$n===null){if(fo===null)throw Error(G(308));$n=e,fo.dependencies={lanes:0,firstContext:e}}else $n=$n.next=e;return t}var vn=null;function Vl(e){vn===null?vn=[e]:vn.push(e)}function Jc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Vl(t)):(n.next=i.next,i.next=n),t.interleaved=n,bt(e,r)}function bt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vt=!1;function Zl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function en(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,bt(e,n)}return i=r.interleaved,i===null?(t.next=t,Vl(r)):(t.next=i.next,i.next=t),r.interleaved=t,bt(e,n)}function Wi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}function su(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var i=e.updateQueue;Vt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,f=a.next;a.next=null,s===null?o=f:s.next=f,s=a;var _=e.alternate;_!==null&&(_=_.updateQueue,l=_.lastBaseUpdate,l!==s&&(l===null?_.firstBaseUpdate=f:l.next=f,_.lastBaseUpdate=a))}if(o!==null){var v=i.baseState;s=0,_=f=a=null,l=o;do{var m=l.lane,p=l.eventTime;if((r&m)===m){_!==null&&(_=_.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,h=l;switch(m=t,p=n,h.tag){case 1:if(w=h.payload,typeof w=="function"){v=w.call(p,v,m);break e}v=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=h.payload,m=typeof w=="function"?w.call(p,v,m):w,m==null)break e;v=Se({},v,m);break e;case 2:Vt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else p={eventTime:p,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},_===null?(f=_=p,a=v):_=_.next=p,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(_===null&&(a=v),i.baseState=a,i.firstBaseUpdate=f,i.lastBaseUpdate=_,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Nn|=s,e.lanes=s,e.memoizedState=v}}function lu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(G(191,i));i.call(r)}}}var mi={},zt=an(mi),Jr=an(mi),qr=an(mi);function yn(e){if(e===mi)throw Error(G(174));return e}function Gl(e,t){switch(ve(qr,t),ve(Jr,e),ve(zt,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:As(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=As(t,e)}we(zt),ve(zt,t)}function or(){we(zt),we(Jr),we(qr)}function ef(e){yn(qr.current);var t=yn(zt.current),n=As(t,e.type);t!==n&&(ve(Jr,e),ve(zt,n))}function Kl(e){Jr.current===e&&(we(zt),we(Jr))}var ke=an(0);function po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fs=[];function Ql(){for(var e=0;e<fs.length;e++)fs[e]._workInProgressVersionPrimary=null;fs.length=0}var Hi=Bt.ReactCurrentDispatcher,ds=Bt.ReactCurrentBatchConfig,Cn=0,xe=null,Pe=null,Re=null,mo=!1,Lr=!1,ei=0,Lp=0;function De(){throw Error(G(321))}function Yl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yt(e[n],t[n]))return!1;return!0}function Xl(e,t,n,r,i,o){if(Cn=o,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hi.current=e===null||e.memoizedState===null?Up:Mp,e=n(r,i),Lr){o=0;do{if(Lr=!1,ei=0,25<=o)throw Error(G(301));o+=1,Re=Pe=null,t.updateQueue=null,Hi.current=Bp,e=n(r,i)}while(Lr)}if(Hi.current=go,t=Pe!==null&&Pe.next!==null,Cn=0,Re=Pe=xe=null,mo=!1,t)throw Error(G(300));return e}function Jl(){var e=ei!==0;return ei=0,e}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?xe.memoizedState=Re=e:Re=Re.next=e,Re}function ct(){if(Pe===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Re===null?xe.memoizedState:Re.next;if(t!==null)Re=t,Pe=e;else{if(e===null)throw Error(G(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Re===null?xe.memoizedState=Re=e:Re=Re.next=e}return Re}function ti(e,t){return typeof t=="function"?t(e):t}function hs(e){var t=ct(),n=t.queue;if(n===null)throw Error(G(311));n.lastRenderedReducer=e;var r=Pe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,f=o;do{var _=f.lane;if((Cn&_)===_)a!==null&&(a=a.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var v={lane:_,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};a===null?(l=a=v,s=r):a=a.next=v,xe.lanes|=_,Nn|=_}f=f.next}while(f!==null&&f!==o);a===null?s=r:a.next=l,yt(r,t.memoizedState)||(Ve=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,xe.lanes|=o,Nn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ps(e){var t=ct(),n=t.queue;if(n===null)throw Error(G(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);yt(o,t.memoizedState)||(Ve=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function tf(){}function nf(e,t){var n=xe,r=ct(),i=t(),o=!yt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ve=!0),r=r.queue,ql(sf.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,ni(9,of.bind(null,n,r,i,t),void 0,null),Ae===null)throw Error(G(349));Cn&30||rf(n,t,i)}return i}function rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function of(e,t,n,r){t.value=n,t.getSnapshot=r,lf(t)&&af(e)}function sf(e,t,n){return n(function(){lf(t)&&af(e)})}function lf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yt(e,n)}catch{return!0}}function af(e){var t=bt(e,1);t!==null&&vt(t,e,1,-1)}function au(e){var t=xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e},t.queue=e,e=e.dispatch=Fp.bind(null,xe,e),[t.memoizedState,e]}function ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function uf(){return ct().memoizedState}function Vi(e,t,n,r){var i=xt();xe.flags|=e,i.memoizedState=ni(1|t,n,void 0,r===void 0?null:r)}function Ro(e,t,n,r){var i=ct();r=r===void 0?null:r;var o=void 0;if(Pe!==null){var s=Pe.memoizedState;if(o=s.destroy,r!==null&&Yl(r,s.deps)){i.memoizedState=ni(t,n,o,r);return}}xe.flags|=e,i.memoizedState=ni(1|t,n,o,r)}function uu(e,t){return Vi(8390656,8,e,t)}function ql(e,t){return Ro(2048,8,e,t)}function cf(e,t){return Ro(4,2,e,t)}function ff(e,t){return Ro(4,4,e,t)}function df(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hf(e,t,n){return n=n!=null?n.concat([e]):null,Ro(4,4,df.bind(null,t,e),n)}function ea(){}function pf(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mf(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gf(e,t,n){return Cn&21?(yt(n,t)||(n=_c(),xe.lanes|=n,Nn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ve=!0),e.memoizedState=n)}function Dp(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{pe=n,ds.transition=r}}function vf(){return ct().memoizedState}function bp(e,t,n){var r=nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yf(e))wf(t,n);else if(n=Jc(e,t,n,r),n!==null){var i=Be();vt(n,e,r,i),_f(n,t,r)}}function Fp(e,t,n){var r=nn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yf(e))wf(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,yt(l,s)){var a=t.interleaved;a===null?(i.next=i,Vl(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Jc(e,t,i,r),n!==null&&(i=Be(),vt(n,e,r,i),_f(n,t,r))}}function yf(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function wf(e,t){Lr=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _f(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}var go={readContext:ut,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Up={readContext:ut,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vi(4194308,4,df.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bp.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:au,useDebugValue:ea,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=au(!1),t=e[0];return e=Dp.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,i=xt();if(_e){if(n===void 0)throw Error(G(407));n=n()}else{if(n=t(),Ae===null)throw Error(G(349));Cn&30||rf(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,uu(sf.bind(null,r,o,e),[e]),r.flags|=2048,ni(9,of.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=xt(),t=Ae.identifierPrefix;if(_e){var n=jt,r=At;n=(r&~(1<<32-gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ei++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Lp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mp={readContext:ut,useCallback:pf,useContext:ut,useEffect:ql,useImperativeHandle:hf,useInsertionEffect:cf,useLayoutEffect:ff,useMemo:mf,useReducer:hs,useRef:uf,useState:function(){return hs(ti)},useDebugValue:ea,useDeferredValue:function(e){var t=ct();return gf(t,Pe.memoizedState,e)},useTransition:function(){var e=hs(ti)[0],t=ct().memoizedState;return[e,t]},useMutableSource:tf,useSyncExternalStore:nf,useId:vf,unstable_isNewReconciler:!1},Bp={readContext:ut,useCallback:pf,useContext:ut,useEffect:ql,useImperativeHandle:hf,useInsertionEffect:cf,useLayoutEffect:ff,useMemo:mf,useReducer:ps,useRef:uf,useState:function(){return ps(ti)},useDebugValue:ea,useDeferredValue:function(e){var t=ct();return Pe===null?t.memoizedState=e:gf(t,Pe.memoizedState,e)},useTransition:function(){var e=ps(ti)[0],t=ct().memoizedState;return[e,t]},useMutableSource:tf,useSyncExternalStore:nf,useId:vf,unstable_isNewReconciler:!1};function ht(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function qs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ao={isMounted:function(e){return(e=e._reactInternals)?Pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Be(),i=nn(e),o=Ot(r,i);o.payload=t,n!=null&&(o.callback=n),t=en(e,o,i),t!==null&&(vt(t,e,i,r),Wi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Be(),i=nn(e),o=Ot(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=en(e,o,i),t!==null&&(vt(t,e,i,r),Wi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Be(),r=nn(e),i=Ot(n,r);i.tag=2,t!=null&&(i.callback=t),t=en(e,i,r),t!==null&&(vt(t,e,r,n),Wi(t,e,r))}};function cu(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Kr(n,r)||!Kr(i,o):!0}function kf(e,t,n){var r=!1,i=sn,o=t.contextType;return typeof o=="object"&&o!==null?o=ut(o):(i=Ge(t)?Sn:Ue.current,r=t.contextTypes,o=(r=r!=null)?nr(e,i):sn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ao,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function fu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ao.enqueueReplaceState(t,t.state,null)}function el(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Zl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ut(o):(o=Ge(t)?Sn:Ue.current,i.context=nr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(qs(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ao.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function sr(e,t){try{var n="",r=t;do n+=mh(r),r=r.return;while(r);var i=n}catch(o){i=` 39 + Error generating stack: `+o.message+` 40 + `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function tl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $p=typeof WeakMap=="function"?WeakMap:Map;function xf(e,t,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yo||(yo=!0,fl=r),tl(e,t)},n}function Sf(e,t,n){n=Ot(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){tl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){tl(e,t),typeof r!="function"&&(tn===null?tn=new Set([this]):tn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function du(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $p;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=nm.bind(null,e,t,n),t.then(e,e))}function hu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pu(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ot(-1,1),t.tag=2,en(n,t,1))),n.lanes|=1),e)}var Wp=Bt.ReactCurrentOwner,Ve=!1;function Me(e,t,n,r){t.child=e===null?Xc(t,null,n,r):ir(t,e.child,n,r)}function mu(e,t,n,r,i){n=n.render;var o=t.ref;return Xn(t,i),r=Xl(e,t,n,r,o,i),n=Jl(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ft(e,t,i)):(_e&&n&&Ul(t),t.flags|=1,Me(e,t,r,i),t.child)}function gu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!aa(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ef(e,t,o,r,i)):(e=Qi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Kr,n(s,r)&&e.ref===t.ref)return Ft(e,t,i)}return t.flags|=1,e=rn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ef(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Kr(o,r)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ve=!0);else return t.lanes=e.lanes,Ft(e,t,i)}return nl(e,t,n,r,i)}function Cf(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Hn,Qe),Qe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(Hn,Qe),Qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ve(Hn,Qe),Qe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ve(Hn,Qe),Qe|=r;return Me(e,t,i,n),t.child}function Nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function nl(e,t,n,r,i){var o=Ge(n)?Sn:Ue.current;return o=nr(t,o),Xn(t,i),n=Xl(e,t,n,r,o,i),r=Jl(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ft(e,t,i)):(_e&&r&&Ul(t),t.flags|=1,Me(e,t,n,i),t.child)}function vu(e,t,n,r,i){if(Ge(n)){var o=!0;lo(t)}else o=!1;if(Xn(t,i),t.stateNode===null)Zi(e,t),kf(t,n,r),el(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=ut(f):(f=Ge(n)?Sn:Ue.current,f=nr(t,f));var _=n.getDerivedStateFromProps,v=typeof _=="function"||typeof s.getSnapshotBeforeUpdate=="function";v||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==f)&&fu(t,s,r,f),Vt=!1;var m=t.memoizedState;s.state=m,ho(t,r,s,i),a=t.memoizedState,l!==r||m!==a||Ze.current||Vt?(typeof _=="function"&&(qs(t,n,_,r),a=t.memoizedState),(l=Vt||cu(t,n,l,r,m,a,f))?(v||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=f,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,qc(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:ht(t.type,l),s.props=f,v=t.pendingProps,m=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=ut(a):(a=Ge(n)?Sn:Ue.current,a=nr(t,a));var p=n.getDerivedStateFromProps;(_=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==v||m!==a)&&fu(t,s,r,a),Vt=!1,m=t.memoizedState,s.state=m,ho(t,r,s,i);var w=t.memoizedState;l!==v||m!==w||Ze.current||Vt?(typeof p=="function"&&(qs(t,n,p,r),w=t.memoizedState),(f=Vt||cu(t,n,f,r,m,w,a)||!1)?(_||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=a,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return rl(e,t,n,r,o,i)}function rl(e,t,n,r,i,o){Nf(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&nu(t,n,!1),Ft(e,t,o);r=t.stateNode,Wp.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ir(t,e.child,null,o),t.child=ir(t,null,l,o)):Me(e,t,l,o),t.memoizedState=r.state,i&&nu(t,n,!0),t.child}function zf(e){var t=e.stateNode;t.pendingContext?tu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tu(e,t.context,!1),Gl(e,t.containerInfo)}function yu(e,t,n,r,i){return rr(),Bl(i),t.flags|=256,Me(e,t,n,r),t.child}var il={dehydrated:null,treeContext:null,retryLane:0};function ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tf(e,t,n){var r=t.pendingProps,i=ke.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ve(ke,i&1),e===null)return Xs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Lo(s,r,0,null),e=kn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ol(n),t.memoizedState=il,e):ta(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Hp(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=rn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=rn(l,o):(o=kn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?ol(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=il,r}return o=e.child,e=o.sibling,r=rn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ta(e,t){return t=Lo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ai(e,t,n,r){return r!==null&&Bl(r),ir(t,e.child,null,n),e=ta(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hp(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ms(Error(G(422))),Ai(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Lo({mode:"visible",children:r.children},i,0,null),o=kn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ir(t,e.child,null,s),t.child.memoizedState=ol(s),t.memoizedState=il,o);if(!(t.mode&1))return Ai(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(G(419)),r=ms(o,r,void 0),Ai(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ve||l){if(r=Ae,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,bt(e,i),vt(r,e,i,-1))}return la(),r=ms(Error(G(421))),Ai(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=rm.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ye=qt(i.nextSibling),Xe=t,_e=!0,mt=null,e!==null&&(ot[st++]=At,ot[st++]=jt,ot[st++]=En,At=e.id,jt=e.overflow,En=t),t=ta(t,r.children),t.flags|=4096,t)}function wu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Js(e.return,t,n)}function gs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Pf(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Me(e,t,r.children,n),r=ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wu(e,n,t);else if(e.tag===19)wu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ve(ke,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&po(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),gs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}gs(t,!0,n,null,o);break;case"together":gs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(G(153));if(t.child!==null){for(e=t.child,n=rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vp(e,t,n){switch(t.tag){case 3:zf(t),rr();break;case 5:ef(t);break;case 1:Ge(t.type)&&lo(t);break;case 4:Gl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ve(co,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?Tf(e,t,n):(ve(ke,ke.current&1),e=Ft(e,t,n),e!==null?e.sibling:null);ve(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ve(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,Cf(e,t,n)}return Ft(e,t,n)}var If,sl,Rf,Af;If=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sl=function(){};Rf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yn(zt.current);var o=null;switch(n){case"input":i=Ts(e,i),r=Ts(e,r),o=[];break;case"select":i=Se({},i,{value:void 0}),r=Se({},r,{value:void 0}),o=[];break;case"textarea":i=Rs(e,i),r=Rs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=oo)}js(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Br.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var a=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&a!==l&&(a!=null||l!=null))if(f==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(f,n)),n=a;else f==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(f,a)):f==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(f,""+a):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Br.hasOwnProperty(f)?(a!=null&&f==="onScroll"&&ye("scroll",e),o||l===a||(o=[])):(o=o||[]).push(f,a))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};Af=function(e,t,n,r){n!==r&&(t.flags|=4)};function kr(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zp(e,t,n){var r=t.pendingProps;switch(Ml(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return Ge(t.type)&&so(),be(t),null;case 3:return r=t.stateNode,or(),we(Ze),we(Ue),Ql(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mt!==null&&(pl(mt),mt=null))),sl(e,t),be(t),null;case 5:Kl(t);var i=yn(qr.current);if(n=t.type,e!==null&&t.stateNode!=null)Rf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(G(166));return be(t),null}if(e=yn(zt.current),Ii(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Et]=t,r[Xr]=o,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(i=0;i<Pr.length;i++)ye(Pr[i],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":Ta(r,o),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ye("invalid",r);break;case"textarea":Ia(r,o),ye("invalid",r)}js(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Pi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Pi(r.textContent,l,e),i=["children",""+l]):Br.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&ye("scroll",r)}switch(n){case"input":ki(r),Pa(r,o,!0);break;case"textarea":ki(r),Ra(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=oo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=oc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Et]=t,e[Xr]=r,If(e,t,!1,!1),t.stateNode=e;e:{switch(s=Os(n,r),n){case"dialog":ye("cancel",e),ye("close",e),i=r;break;case"iframe":case"object":case"embed":ye("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pr.length;i++)ye(Pr[i],e);i=r;break;case"source":ye("error",e),i=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),i=r;break;case"details":ye("toggle",e),i=r;break;case"input":Ta(e,r),i=Ts(e,r),ye("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Se({},r,{value:void 0}),ye("invalid",e);break;case"textarea":Ia(e,r),i=Rs(e,r),ye("invalid",e);break;default:i=r}js(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?ac(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&sc(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&$r(e,a):typeof a=="number"&&$r(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Br.hasOwnProperty(o)?a!=null&&o==="onScroll"&&ye("scroll",e):a!=null&&Cl(e,o,a,s))}switch(n){case"input":ki(e),Pa(e,r,!1);break;case"textarea":ki(e),Ra(e);break;case"option":r.value!=null&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Gn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=oo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return be(t),null;case 6:if(e&&t.stateNode!=null)Af(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(G(166));if(n=yn(qr.current),yn(zt.current),Ii(t)){if(r=t.stateNode,n=t.memoizedProps,r[Et]=t,(o=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:Pi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Et]=t,t.stateNode=r}return be(t),null;case 13:if(we(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(_e&&Ye!==null&&t.mode&1&&!(t.flags&128))Qc(),rr(),t.flags|=98560,o=!1;else if(o=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(G(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(G(317));o[Et]=t}else rr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;be(t),o=!1}else mt!==null&&(pl(mt),mt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ke.current&1?Ie===0&&(Ie=3):la())),t.updateQueue!==null&&(t.flags|=4),be(t),null);case 4:return or(),sl(e,t),e===null&&Qr(t.stateNode.containerInfo),be(t),null;case 10:return Hl(t.type._context),be(t),null;case 17:return Ge(t.type)&&so(),be(t),null;case 19:if(we(ke),o=t.memoizedState,o===null)return be(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)kr(o,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=po(e),s!==null){for(t.flags|=128,kr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ve(ke,ke.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ne()>lr&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304)}else{if(!r)if(e=po(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!_e)return be(t),null}else 2*Ne()-o.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ne(),t.sibling=null,n=ke.current,ve(ke,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return sa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(G(156,t.tag))}function Gp(e,t){switch(Ml(t),t.tag){case 1:return Ge(t.type)&&so(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),we(Ze),we(Ue),Ql(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kl(t),null;case 13:if(we(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(G(340));rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(ke),null;case 4:return or(),null;case 10:return Hl(t.type._context),null;case 22:case 23:return sa(),null;case 24:return null;default:return null}}var ji=!1,Fe=!1,Kp=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function ll(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var _u=!1;function Qp(e,t){if(Hs=no,e=Dc(),Fl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,f=0,_=0,v=e,m=null;t:for(;;){for(var p;v!==n||i!==0&&v.nodeType!==3||(l=s+i),v!==o||r!==0&&v.nodeType!==3||(a=s+r),v.nodeType===3&&(s+=v.nodeValue.length),(p=v.firstChild)!==null;)m=v,v=p;for(;;){if(v===e)break t;if(m===n&&++f===i&&(l=s),m===o&&++_===r&&(a=s),(p=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vs={focusedElem:e,selectionRange:n},no=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var h=w.memoizedProps,k=w.memoizedState,u=t.stateNode,c=u.getSnapshotBeforeUpdate(t.elementType===t.type?h:ht(t.type,h),k);u.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(S){Ee(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return w=_u,_u=!1,w}function Dr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ll(t,n,o)}i=i.next}while(i!==r)}}function jo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Et],delete t[Xr],delete t[Ks],delete t[Rp],delete t[Ap])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Of(e){return e.tag===5||e.tag===3||e.tag===4}function ku(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Of(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=oo));else if(r!==4&&(e=e.child,e!==null))for(ul(e,t,n),e=e.sibling;e!==null;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}var je=null,pt=!1;function Wt(e,t,n){for(n=n.child;n!==null;)Lf(e,t,n),n=n.sibling}function Lf(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Co,n)}catch{}switch(n.tag){case 5:Fe||Wn(n,t);case 6:var r=je,i=pt;je=null,Wt(e,t,n),je=r,pt=i,je!==null&&(pt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(pt?(e=je,n=n.stateNode,e.nodeType===8?us(e.parentNode,n):e.nodeType===1&&us(e,n),Zr(e)):us(je,n.stateNode));break;case 4:r=je,i=pt,je=n.stateNode.containerInfo,pt=!0,Wt(e,t,n),je=r,pt=i;break;case 0:case 11:case 14:case 15:if(!Fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ll(n,t,s),i=i.next}while(i!==r)}Wt(e,t,n);break;case 1:if(!Fe&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ee(n,t,l)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,Wt(e,t,n),Fe=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function xu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kp),t.forEach(function(r){var i=im.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:je=l.stateNode,pt=!1;break e;case 3:je=l.stateNode.containerInfo,pt=!0;break e;case 4:je=l.stateNode.containerInfo,pt=!0;break e}l=l.return}if(je===null)throw Error(G(160));Lf(o,s,i),je=null,pt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(f){Ee(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Df(t,e),t=t.sibling}function Df(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dt(t,e),kt(e),r&4){try{Dr(3,e,e.return),jo(3,e)}catch(h){Ee(e,e.return,h)}try{Dr(5,e,e.return)}catch(h){Ee(e,e.return,h)}}break;case 1:dt(t,e),kt(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(dt(t,e),kt(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var i=e.stateNode;try{$r(i,"")}catch(h){Ee(e,e.return,h)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&rc(i,o),Os(l,s);var f=Os(l,o);for(s=0;s<a.length;s+=2){var _=a[s],v=a[s+1];_==="style"?ac(i,v):_==="dangerouslySetInnerHTML"?sc(i,v):_==="children"?$r(i,v):Cl(i,_,v,f)}switch(l){case"input":Ps(i,o);break;case"textarea":ic(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Gn(i,!!o.multiple,p,!1):m!==!!o.multiple&&(o.defaultValue!=null?Gn(i,!!o.multiple,o.defaultValue,!0):Gn(i,!!o.multiple,o.multiple?[]:"",!1))}i[Xr]=o}catch(h){Ee(e,e.return,h)}}break;case 6:if(dt(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(G(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(h){Ee(e,e.return,h)}}break;case 3:if(dt(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zr(t.containerInfo)}catch(h){Ee(e,e.return,h)}break;case 4:dt(t,e),kt(e);break;case 13:dt(t,e),kt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ia=Ne())),r&4&&xu(e);break;case 22:if(_=n!==null&&n.memoizedState!==null,e.mode&1?(Fe=(f=Fe)||_,dt(t,e),Fe=f):dt(t,e),kt(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!_&&e.mode&1)for(ee=e,_=e.child;_!==null;){for(v=ee=_;ee!==null;){switch(m=ee,p=m.child,m.tag){case 0:case 11:case 14:case 15:Dr(4,m,m.return);break;case 1:Wn(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(h){Ee(r,n,h)}}break;case 5:Wn(m,m.return);break;case 22:if(m.memoizedState!==null){Eu(v);continue}}p!==null?(p.return=m,ee=p):Eu(v)}_=_.sibling}e:for(_=null,v=e;;){if(v.tag===5){if(_===null){_=v;try{i=v.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=v.stateNode,a=v.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=lc("display",s))}catch(h){Ee(e,e.return,h)}}}else if(v.tag===6){if(_===null)try{v.stateNode.nodeValue=f?"":v.memoizedProps}catch(h){Ee(e,e.return,h)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;_===v&&(_=null),v=v.return}_===v&&(_=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:dt(t,e),kt(e),r&4&&xu(e);break;case 21:break;default:dt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Of(n)){var r=n;break e}n=n.return}throw Error(G(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&($r(i,""),r.flags&=-33);var o=ku(e);cl(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=ku(e);ul(e,l,s);break;default:throw Error(G(161))}}catch(a){Ee(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yp(e,t,n){ee=e,bf(e)}function bf(e,t,n){for(var r=(e.mode&1)!==0;ee!==null;){var i=ee,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ji;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Fe;l=ji;var f=Fe;if(ji=s,(Fe=a)&&!f)for(ee=i;ee!==null;)s=ee,a=s.child,s.tag===22&&s.memoizedState!==null?Cu(i):a!==null?(a.return=s,ee=a):Cu(i);for(;o!==null;)ee=o,bf(o),o=o.sibling;ee=i,ji=l,Fe=f}Su(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ee=o):Su(e)}}function Su(e){for(;ee!==null;){var t=ee;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fe||jo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Fe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ht(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&lu(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}lu(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var _=f.memoizedState;if(_!==null){var v=_.dehydrated;v!==null&&Zr(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(G(163))}Fe||t.flags&512&&al(t)}catch(m){Ee(t,t.return,m)}}if(t===e){ee=null;break}if(n=t.sibling,n!==null){n.return=t.return,ee=n;break}ee=t.return}}function Eu(e){for(;ee!==null;){var t=ee;if(t===e){ee=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ee=n;break}ee=t.return}}function Cu(e){for(;ee!==null;){var t=ee;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jo(4,t)}catch(a){Ee(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){Ee(t,i,a)}}var o=t.return;try{al(t)}catch(a){Ee(t,o,a)}break;case 5:var s=t.return;try{al(t)}catch(a){Ee(t,s,a)}}}catch(a){Ee(t,t.return,a)}if(t===e){ee=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ee=l;break}ee=t.return}}var Xp=Math.ceil,vo=Bt.ReactCurrentDispatcher,na=Bt.ReactCurrentOwner,at=Bt.ReactCurrentBatchConfig,ce=0,Ae=null,ze=null,Oe=0,Qe=0,Hn=an(0),Ie=0,ri=null,Nn=0,Oo=0,ra=0,br=null,He=null,ia=0,lr=1/0,Pt=null,yo=!1,fl=null,tn=null,Oi=!1,Qt=null,wo=0,Fr=0,dl=null,Gi=-1,Ki=0;function Be(){return ce&6?Ne():Gi!==-1?Gi:Gi=Ne()}function nn(e){return e.mode&1?ce&2&&Oe!==0?Oe&-Oe:Op.transition!==null?(Ki===0&&(Ki=_c()),Ki):(e=pe,e!==0||(e=window.event,e=e===void 0?16:zc(e.type)),e):1}function vt(e,t,n,r){if(50<Fr)throw Fr=0,dl=null,Error(G(185));di(e,n,r),(!(ce&2)||e!==Ae)&&(e===Ae&&(!(ce&2)&&(Oo|=n),Ie===4&&Gt(e,Oe)),Ke(e,r),n===1&&ce===0&&!(t.mode&1)&&(lr=Ne()+500,Io&&un()))}function Ke(e,t){var n=e.callbackNode;Oh(e,t);var r=to(e,e===Ae?Oe:0);if(r===0)n!==null&&Oa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Oa(n),t===1)e.tag===0?jp(Nu.bind(null,e)):Zc(Nu.bind(null,e)),Pp(function(){!(ce&6)&&un()}),n=null;else{switch(kc(r)){case 1:n=Il;break;case 4:n=yc;break;case 16:n=eo;break;case 536870912:n=wc;break;default:n=eo}n=Vf(n,Ff.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ff(e,t){if(Gi=-1,Ki=0,ce&6)throw Error(G(327));var n=e.callbackNode;if(Jn()&&e.callbackNode!==n)return null;var r=to(e,e===Ae?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_o(e,r);else{t=r;var i=ce;ce|=2;var o=Mf();(Ae!==e||Oe!==t)&&(Pt=null,lr=Ne()+500,_n(e,t));do try{em();break}catch(l){Uf(e,l)}while(!0);Wl(),vo.current=o,ce=i,ze!==null?t=0:(Ae=null,Oe=0,t=Ie)}if(t!==0){if(t===2&&(i=Us(e),i!==0&&(r=i,t=hl(e,i))),t===1)throw n=ri,_n(e,0),Gt(e,r),Ke(e,Ne()),n;if(t===6)Gt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Jp(i)&&(t=_o(e,r),t===2&&(o=Us(e),o!==0&&(r=o,t=hl(e,o))),t===1))throw n=ri,_n(e,0),Gt(e,r),Ke(e,Ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(G(345));case 2:mn(e,He,Pt);break;case 3:if(Gt(e,r),(r&130023424)===r&&(t=ia+500-Ne(),10<t)){if(to(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Be(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gs(mn.bind(null,e,He,Pt),t);break}mn(e,He,Pt);break;case 4:if(Gt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-gt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xp(r/1960))-r,10<r){e.timeoutHandle=Gs(mn.bind(null,e,He,Pt),r);break}mn(e,He,Pt);break;case 5:mn(e,He,Pt);break;default:throw Error(G(329))}}}return Ke(e,Ne()),e.callbackNode===n?Ff.bind(null,e):null}function hl(e,t){var n=br;return e.current.memoizedState.isDehydrated&&(_n(e,t).flags|=256),e=_o(e,t),e!==2&&(t=He,He=n,t!==null&&pl(t)),e}function pl(e){He===null?He=e:He.push.apply(He,e)}function Jp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!yt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gt(e,t){for(t&=~ra,t&=~Oo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gt(t),r=1<<n;e[n]=-1,t&=~r}}function Nu(e){if(ce&6)throw Error(G(327));Jn();var t=to(e,0);if(!(t&1))return Ke(e,Ne()),null;var n=_o(e,t);if(e.tag!==0&&n===2){var r=Us(e);r!==0&&(t=r,n=hl(e,r))}if(n===1)throw n=ri,_n(e,0),Gt(e,t),Ke(e,Ne()),n;if(n===6)throw Error(G(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mn(e,He,Pt),Ke(e,Ne()),null}function oa(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(lr=Ne()+500,Io&&un())}}function zn(e){Qt!==null&&Qt.tag===0&&!(ce&6)&&Jn();var t=ce;ce|=1;var n=at.transition,r=pe;try{if(at.transition=null,pe=1,e)return e()}finally{pe=r,at.transition=n,ce=t,!(ce&6)&&un()}}function sa(){Qe=Hn.current,we(Hn)}function _n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Tp(n)),ze!==null)for(n=ze.return;n!==null;){var r=n;switch(Ml(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&so();break;case 3:or(),we(Ze),we(Ue),Ql();break;case 5:Kl(r);break;case 4:or();break;case 13:we(ke);break;case 19:we(ke);break;case 10:Hl(r.type._context);break;case 22:case 23:sa()}n=n.return}if(Ae=e,ze=e=rn(e.current,null),Oe=Qe=t,Ie=0,ri=null,ra=Oo=Nn=0,He=br=null,vn!==null){for(t=0;t<vn.length;t++)if(n=vn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}vn=null}return e}function Uf(e,t){do{var n=ze;try{if(Wl(),Hi.current=go,mo){for(var r=xe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mo=!1}if(Cn=0,Re=Pe=xe=null,Lr=!1,ei=0,na.current=null,n===null||n.return===null){Ie=1,ri=t,ze=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Oe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a,_=l,v=_.tag;if(!(_.mode&1)&&(v===0||v===11||v===15)){var m=_.alternate;m?(_.updateQueue=m.updateQueue,_.memoizedState=m.memoizedState,_.lanes=m.lanes):(_.updateQueue=null,_.memoizedState=null)}var p=hu(s);if(p!==null){p.flags&=-257,pu(p,s,l,o,t),p.mode&1&&du(o,f,t),t=p,a=f;var w=t.updateQueue;if(w===null){var h=new Set;h.add(a),t.updateQueue=h}else w.add(a);break e}else{if(!(t&1)){du(o,f,t),la();break e}a=Error(G(426))}}else if(_e&&l.mode&1){var k=hu(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),pu(k,s,l,o,t),Bl(sr(a,l));break e}}o=a=sr(a,l),Ie!==4&&(Ie=2),br===null?br=[o]:br.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var u=xf(o,a,t);su(o,u);break e;case 1:l=a;var c=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(tn===null||!tn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Sf(o,l,t);su(o,S);break e}}o=o.return}while(o!==null)}$f(n)}catch(C){t=C,ze===n&&n!==null&&(ze=n=n.return);continue}break}while(!0)}function Mf(){var e=vo.current;return vo.current=go,e===null?go:e}function la(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Ae===null||!(Nn&268435455)&&!(Oo&268435455)||Gt(Ae,Oe)}function _o(e,t){var n=ce;ce|=2;var r=Mf();(Ae!==e||Oe!==t)&&(Pt=null,_n(e,t));do try{qp();break}catch(i){Uf(e,i)}while(!0);if(Wl(),ce=n,vo.current=r,ze!==null)throw Error(G(261));return Ae=null,Oe=0,Ie}function qp(){for(;ze!==null;)Bf(ze)}function em(){for(;ze!==null&&!Ch();)Bf(ze)}function Bf(e){var t=Hf(e.alternate,e,Qe);e.memoizedProps=e.pendingProps,t===null?$f(e):ze=t,na.current=null}function $f(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Gp(n,t),n!==null){n.flags&=32767,ze=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,ze=null;return}}else if(n=Zp(n,t,Qe),n!==null){ze=n;return}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);Ie===0&&(Ie=5)}function mn(e,t,n){var r=pe,i=at.transition;try{at.transition=null,pe=1,tm(e,t,n,r)}finally{at.transition=i,pe=r}return null}function tm(e,t,n,r){do Jn();while(Qt!==null);if(ce&6)throw Error(G(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(G(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Lh(e,o),e===Ae&&(ze=Ae=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Oi||(Oi=!0,Vf(eo,function(){return Jn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=at.transition,at.transition=null;var s=pe;pe=1;var l=ce;ce|=4,na.current=null,Qp(e,n),Df(n,e),kp(Vs),no=!!Hs,Vs=Hs=null,e.current=n,Yp(n),Nh(),ce=l,pe=s,at.transition=o}else e.current=n;if(Oi&&(Oi=!1,Qt=e,wo=i),o=e.pendingLanes,o===0&&(tn=null),Ph(n.stateNode),Ke(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(yo)throw yo=!1,e=fl,fl=null,e;return wo&1&&e.tag!==0&&Jn(),o=e.pendingLanes,o&1?e===dl?Fr++:(Fr=0,dl=e):Fr=0,un(),null}function Jn(){if(Qt!==null){var e=kc(wo),t=at.transition,n=pe;try{if(at.transition=null,pe=16>e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,wo=0,ce&6)throw Error(G(331));var i=ce;for(ce|=4,ee=e.current;ee!==null;){var o=ee,s=o.child;if(ee.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var f=l[a];for(ee=f;ee!==null;){var _=ee;switch(_.tag){case 0:case 11:case 15:Dr(8,_,o)}var v=_.child;if(v!==null)v.return=_,ee=v;else for(;ee!==null;){_=ee;var m=_.sibling,p=_.return;if(jf(_),_===f){ee=null;break}if(m!==null){m.return=p,ee=m;break}ee=p}}}var w=o.alternate;if(w!==null){var h=w.child;if(h!==null){w.child=null;do{var k=h.sibling;h.sibling=null,h=k}while(h!==null)}}ee=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,ee=s;else e:for(;ee!==null;){if(o=ee,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Dr(9,o,o.return)}var u=o.sibling;if(u!==null){u.return=o.return,ee=u;break e}ee=o.return}}var c=e.current;for(ee=c;ee!==null;){s=ee;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,ee=g;else e:for(s=c;ee!==null;){if(l=ee,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:jo(9,l)}}catch(C){Ee(l,l.return,C)}if(l===s){ee=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,ee=S;break e}ee=l.return}}if(ce=i,un(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Co,e)}catch{}r=!0}return r}finally{pe=n,at.transition=t}}return!1}function zu(e,t,n){t=sr(n,t),t=xf(e,t,1),e=en(e,t,1),t=Be(),e!==null&&(di(e,1,t),Ke(e,t))}function Ee(e,t,n){if(e.tag===3)zu(e,e,n);else for(;t!==null;){if(t.tag===3){zu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(tn===null||!tn.has(r))){e=sr(n,e),e=Sf(t,e,1),t=en(t,e,1),e=Be(),t!==null&&(di(t,1,e),Ke(t,e));break}}t=t.return}}function nm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Be(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Oe&n)===n&&(Ie===4||Ie===3&&(Oe&130023424)===Oe&&500>Ne()-ia?_n(e,0):ra|=n),Ke(e,t)}function Wf(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Be();e=bt(e,t),e!==null&&(di(e,t,n),Ke(e,n))}function rm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wf(e,n)}function im(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(G(314))}r!==null&&r.delete(t),Wf(e,n)}var Hf;Hf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,Vp(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,_e&&t.flags&1048576&&Gc(t,uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var i=nr(t,Ue.current);Xn(t,n),i=Xl(null,t,r,e,i,n);var o=Jl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(o=!0,lo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zl(t),i.updater=Ao,t.stateNode=i,i._reactInternals=t,el(t,r,e,n),t=rl(null,t,r,!0,o,n)):(t.tag=0,_e&&o&&Ul(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=sm(r),e=ht(r,e),i){case 0:t=nl(null,t,r,e,n);break e;case 1:t=vu(null,t,r,e,n);break e;case 11:t=mu(null,t,r,e,n);break e;case 14:t=gu(null,t,r,ht(r.type,e),n);break e}throw Error(G(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),nl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),vu(e,t,r,i,n);case 3:e:{if(zf(t),e===null)throw Error(G(387));r=t.pendingProps,o=t.memoizedState,i=o.element,qc(e,t),ho(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=sr(Error(G(423)),t),t=yu(e,t,r,n,i);break e}else if(r!==i){i=sr(Error(G(424)),t),t=yu(e,t,r,n,i);break e}else for(Ye=qt(t.stateNode.containerInfo.firstChild),Xe=t,_e=!0,mt=null,n=Xc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rr(),r===i){t=Ft(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return ef(t),e===null&&Xs(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Zs(r,i)?s=null:o!==null&&Zs(r,o)&&(t.flags|=32),Nf(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&Xs(t),null;case 13:return Tf(e,t,n);case 4:return Gl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),mu(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ve(co,r._currentValue),r._currentValue=s,o!==null)if(yt(o.value,s)){if(o.children===i.children&&!Ze.current){t=Ft(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ot(-1,n&-n),a.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var _=f.pending;_===null?a.next=a:(a.next=_.next,_.next=a),f.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Js(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(G(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Js(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xn(t,n),i=ut(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=ht(r,t.pendingProps),i=ht(r.type,i),gu(e,t,r,i,n);case 15:return Ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Zi(e,t),t.tag=1,Ge(r)?(e=!0,lo(t)):e=!1,Xn(t,n),kf(t,r,i),el(t,r,i,n),rl(null,t,r,!0,e,n);case 19:return Pf(e,t,n);case 22:return Cf(e,t,n)}throw Error(G(156,t.tag))};function Vf(e,t){return vc(e,t)}function om(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lt(e,t,n,r){return new om(e,t,n,r)}function aa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sm(e){if(typeof e=="function")return aa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zl)return 11;if(e===Tl)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")aa(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case On:return kn(n.children,i,o,t);case Nl:s=8,i|=8;break;case Es:return e=lt(12,n,t,i|2),e.elementType=Es,e.lanes=o,e;case Cs:return e=lt(13,n,t,i),e.elementType=Cs,e.lanes=o,e;case Ns:return e=lt(19,n,t,i),e.elementType=Ns,e.lanes=o,e;case ec:return Lo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ju:s=10;break e;case qu:s=9;break e;case zl:s=11;break e;case Tl:s=14;break e;case Ht:s=16,r=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return t=lt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function kn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Lo(e,t,n,r){return e=lt(22,e,r,t),e.elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function vs(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function ys(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lm(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jo(0),this.expirationTimes=Jo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ua(e,t,n,r,i,o,s,l,a){return e=new lm(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zl(o),e}function am(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zf(e){if(!e)return sn;e=e._reactInternals;e:{if(Pn(e)!==e||e.tag!==1)throw Error(G(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(G(171))}if(e.tag===1){var n=e.type;if(Ge(n))return Vc(e,n,t)}return t}function Gf(e,t,n,r,i,o,s,l,a){return e=ua(n,r,!0,e,i,o,s,l,a),e.context=Zf(null),n=e.current,r=Be(),i=nn(n),o=Ot(r,i),o.callback=t??null,en(n,o,i),e.current.lanes=i,di(e,i,r),Ke(e,r),e}function Do(e,t,n,r){var i=t.current,o=Be(),s=nn(i);return n=Zf(n),t.context===null?t.context=n:t.pendingContext=n,t=Ot(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=en(i,t,s),e!==null&&(vt(e,i,s,o),Wi(e,i,s)),s}function ko(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Tu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ca(e,t){Tu(e,t),(e=e.alternate)&&Tu(e,t)}function um(){return null}var Kf=typeof reportError=="function"?reportError:function(e){console.error(e)};function fa(e){this._internalRoot=e}bo.prototype.render=fa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(G(409));Do(e,t,null,null)};bo.prototype.unmount=fa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){Do(null,e,null,null)}),t[Dt]=null}};function bo(e){this._internalRoot=e}bo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ec();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zt.length&&t!==0&&t<Zt[n].priority;n++);Zt.splice(n,0,e),n===0&&Nc(e)}};function da(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pu(){}function cm(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=ko(s);o.call(f)}}var s=Gf(t,r,e,0,null,!1,!1,"",Pu);return e._reactRootContainer=s,e[Dt]=s.current,Qr(e.nodeType===8?e.parentNode:e),zn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=ko(a);l.call(f)}}var a=ua(e,0,!1,null,null,!1,!1,"",Pu);return e._reactRootContainer=a,e[Dt]=a.current,Qr(e.nodeType===8?e.parentNode:e),zn(function(){Do(t,a,n,r)}),a}function Uo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=ko(s);l.call(a)}}Do(t,s,e,i)}else s=cm(n,t,e,i,r);return ko(s)}xc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tr(t.pendingLanes);n!==0&&(Rl(t,n|1),Ke(t,Ne()),!(ce&6)&&(lr=Ne()+500,un()))}break;case 13:zn(function(){var r=bt(e,1);if(r!==null){var i=Be();vt(r,e,1,i)}}),ca(e,1)}};Al=function(e){if(e.tag===13){var t=bt(e,134217728);if(t!==null){var n=Be();vt(t,e,134217728,n)}ca(e,134217728)}};Sc=function(e){if(e.tag===13){var t=nn(e),n=bt(e,t);if(n!==null){var r=Be();vt(n,e,t,r)}ca(e,t)}};Ec=function(){return pe};Cc=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};Ds=function(e,t,n){switch(t){case"input":if(Ps(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Po(r);if(!i)throw Error(G(90));nc(r),Ps(r,i)}}}break;case"textarea":ic(e,n);break;case"select":t=n.value,t!=null&&Gn(e,!!n.multiple,t,!1)}};fc=oa;dc=zn;var fm={usingClientEntryPoint:!1,Events:[pi,Fn,Po,uc,cc,oa]},xr={findFiberByHostInstance:gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dm={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mc(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||um,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Li=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Li.isDisabled&&Li.supportsFiber)try{Co=Li.inject(dm),Nt=Li}catch{}}tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!da(t))throw Error(G(200));return am(e,t,null,n)};tt.createRoot=function(e,t){if(!da(e))throw Error(G(299));var n=!1,r="",i=Kf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ua(e,1,!1,null,null,n,!1,r,i),e[Dt]=t.current,Qr(e.nodeType===8?e.parentNode:e),new fa(t)};tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(G(188)):(e=Object.keys(e).join(","),Error(G(268,e)));return e=mc(t),e=e===null?null:e.stateNode,e};tt.flushSync=function(e){return zn(e)};tt.hydrate=function(e,t,n){if(!Fo(t))throw Error(G(200));return Uo(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!da(e))throw Error(G(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Kf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Gf(t,null,e,1,n??null,i,!1,o,s),e[Dt]=t.current,Qr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new bo(t)};tt.render=function(e,t,n){if(!Fo(t))throw Error(G(200));return Uo(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!Fo(e))throw Error(G(40));return e._reactRootContainer?(zn(function(){Uo(null,null,e,!1,function(){e._reactRootContainer=null,e[Dt]=null})}),!0):!1};tt.unstable_batchedUpdates=oa;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fo(n))throw Error(G(200));if(e==null||e._reactInternals===void 0)throw Error(G(38));return Uo(e,t,n,!1,r)};tt.version="18.3.1-next-f1338f8080-20240426";function Qf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qf)}catch(e){console.error(e)}}Qf(),Ku.exports=tt;var hm=Ku.exports,Iu=hm;xs.createRoot=Iu.createRoot,xs.hydrateRoot=Iu.hydrateRoot;/** 41 + * @license lucide-react v0.544.0 - ISC 42 + * 43 + * This source code is licensed under the ISC license. 44 + * See the LICENSE file in the root directory of this source tree. 45 + */const pm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ru=e=>{const t=mm(e);return t.charAt(0).toUpperCase()+t.slice(1)},Yf=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),gm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 46 + * @license lucide-react v0.544.0 - ISC 47 + * 48 + * This source code is licensed under the ISC license. 49 + * See the LICENSE file in the root directory of this source tree. 50 + */var vm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 + * @license lucide-react v0.544.0 - ISC 52 + * 53 + * This source code is licensed under the ISC license. 54 + * See the LICENSE file in the root directory of this source tree. 55 + */const ym=Te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>Te.createElement("svg",{ref:a,...vm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yf("lucide",i),...!o&&!gm(l)&&{"aria-hidden":"true"},...l},[...s.map(([f,_])=>Te.createElement(f,_)),...Array.isArray(o)?o:[o]]));/** 56 + * @license lucide-react v0.544.0 - ISC 57 + * 58 + * This source code is licensed under the ISC license. 59 + * See the LICENSE file in the root directory of this source tree. 60 + */const cn=(e,t)=>{const n=Te.forwardRef(({className:r,...i},o)=>Te.createElement(ym,{ref:o,iconNode:t,className:Yf(`lucide-${pm(Ru(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Ru(e),n};/** 61 + * @license lucide-react v0.544.0 - ISC 62 + * 63 + * This source code is licensed under the ISC license. 64 + * See the LICENSE file in the root directory of this source tree. 65 + */const wm=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],_m=cn("arrow-right",wm);/** 66 + * @license lucide-react v0.544.0 - ISC 67 + * 68 + * This source code is licensed under the ISC license. 69 + * See the LICENSE file in the root directory of this source tree. 70 + */const km=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xm=cn("check",km);/** 71 + * @license lucide-react v0.544.0 - ISC 72 + * 73 + * This source code is licensed under the ISC license. 74 + * See the LICENSE file in the root directory of this source tree. 75 + */const Sm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Au=cn("chevron-right",Sm);/** 76 + * @license lucide-react v0.544.0 - ISC 77 + * 78 + * This source code is licensed under the ISC license. 79 + * See the LICENSE file in the root directory of this source tree. 80 + */const Em=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Cm=cn("file-text",Em);/** 81 + * @license lucide-react v0.544.0 - ISC 82 + * 83 + * This source code is licensed under the ISC license. 84 + * See the LICENSE file in the root directory of this source tree. 85 + */const Nm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zm=cn("search",Nm);/** 86 + * @license lucide-react v0.544.0 - ISC 87 + * 88 + * This source code is licensed under the ISC license. 89 + * See the LICENSE file in the root directory of this source tree. 90 + */const Tm=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Pm=cn("upload",Tm);/** 91 + * @license lucide-react v0.544.0 - ISC 92 + * 93 + * This source code is licensed under the ISC license. 94 + * See the LICENSE file in the root directory of this source tree. 95 + */const Im=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Rm=cn("user",Im);/** 96 + * @license lucide-react v0.544.0 - ISC 97 + * 98 + * This source code is licensed under the ISC license. 99 + * See the LICENSE file in the root directory of this source tree. 100 + */const Am=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],jm=cn("users",Am);function Di(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xf={exports:{}};/*! 101 + 102 + JSZip v3.10.1 - A JavaScript class for generating and reading zip files 103 + <http://stuartk.com/jszip> 104 + 105 + (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> 106 + Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. 107 + 108 + JSZip uses the library pako released under the MIT license : 109 + https://github.com/nodeca/pako/blob/main/LICENSE 110 + */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,i,o){function s(f,_){if(!i[f]){if(!r[f]){var v=typeof Di=="function"&&Di;if(!_&&v)return v(f,!0);if(l)return l(f,!0);var m=new Error("Cannot find module '"+f+"'");throw m.code="MODULE_NOT_FOUND",m}var p=i[f]={exports:{}};r[f][0].call(p.exports,function(w){var h=r[f][1][w];return s(h||w)},p,p.exports,n,r,i,o)}return i[f].exports}for(var l=typeof Di=="function"&&Di,a=0;a<o.length;a++)s(o[a]);return s}({1:[function(n,r,i){var o=n("./utils"),s=n("./support"),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(a){for(var f,_,v,m,p,w,h,k=[],u=0,c=a.length,g=c,S=o.getTypeOf(a)!=="string";u<a.length;)g=c-u,v=S?(f=a[u++],_=u<c?a[u++]:0,u<c?a[u++]:0):(f=a.charCodeAt(u++),_=u<c?a.charCodeAt(u++):0,u<c?a.charCodeAt(u++):0),m=f>>2,p=(3&f)<<4|_>>4,w=1<g?(15&_)<<2|v>>6:64,h=2<g?63&v:64,k.push(l.charAt(m)+l.charAt(p)+l.charAt(w)+l.charAt(h));return k.join("")},i.decode=function(a){var f,_,v,m,p,w,h=0,k=0,u="data:";if(a.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var c,g=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===l.charAt(64)&&g--,a.charAt(a.length-2)===l.charAt(64)&&g--,g%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=s.uint8array?new Uint8Array(0|g):new Array(0|g);h<a.length;)f=l.indexOf(a.charAt(h++))<<2|(m=l.indexOf(a.charAt(h++)))>>4,_=(15&m)<<4|(p=l.indexOf(a.charAt(h++)))>>2,v=(3&p)<<6|(w=l.indexOf(a.charAt(h++))),c[k++]=f,p!==64&&(c[k++]=_),w!==64&&(c[k++]=v);return c}},{"./support":30,"./utils":32}],2:[function(n,r,i){var o=n("./external"),s=n("./stream/DataWorker"),l=n("./stream/Crc32Probe"),a=n("./stream/DataLengthProbe");function f(_,v,m,p,w){this.compressedSize=_,this.uncompressedSize=v,this.crc32=m,this.compression=p,this.compressedContent=w}f.prototype={getContentWorker:function(){var _=new s(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),v=this;return _.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),_},getCompressedWorker:function(){return new s(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},f.createWorkerFrom=function(_,v,m){return _.pipe(new l).pipe(new a("uncompressedSize")).pipe(v.compressWorker(m)).pipe(new a("compressedSize")).withStreamInfo("compression",v)},r.exports=f},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var o=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var o=n("./utils"),s=function(){for(var l,a=[],f=0;f<256;f++){l=f;for(var _=0;_<8;_++)l=1&l?3988292384^l>>>1:l>>>1;a[f]=l}return a}();r.exports=function(l,a){return l!==void 0&&l.length?o.getTypeOf(l)!=="string"?function(f,_,v,m){var p=s,w=m+v;f^=-1;for(var h=m;h<w;h++)f=f>>>8^p[255&(f^_[h])];return-1^f}(0|a,l,l.length,0):function(f,_,v,m){var p=s,w=m+v;f^=-1;for(var h=m;h<w;h++)f=f>>>8^p[255&(f^_.charCodeAt(h))];return-1^f}(0|a,l,l.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var o=null;o=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=n("pako"),l=n("./utils"),a=n("./stream/GenericWorker"),f=o?"uint8array":"array";function _(v,m){a.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=m,this.meta={}}i.magic="\b\0",l.inherits(_,a),_.prototype.processChunk=function(v){this.meta=v.meta,this._pako===null&&this._createPako(),this._pako.push(l.transformTo(f,v.data),!1)},_.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},_.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},_.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(m){v.push({data:m,meta:v.meta})}},i.compressWorker=function(v){return new _("Deflate",v)},i.uncompressWorker=function(){return new _("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function o(p,w){var h,k="";for(h=0;h<w;h++)k+=String.fromCharCode(255&p),p>>>=8;return k}function s(p,w,h,k,u,c){var g,S,C=p.file,A=p.compression,I=c!==f.utf8encode,L=l.transformTo("string",c(C.name)),D=l.transformTo("string",f.utf8encode(C.name)),$=C.comment,te=l.transformTo("string",c($)),N=l.transformTo("string",f.utf8encode($)),B=D.length!==C.name.length,y=N.length!==$.length,W="",re="",b="",j=C.dir,P=C.date,U={crc32:0,compressedSize:0,uncompressedSize:0};w&&!h||(U.crc32=p.crc32,U.compressedSize=p.compressedSize,U.uncompressedSize=p.uncompressedSize);var T=0;w&&(T|=8),I||!B&&!y||(T|=2048);var z=0,J=0;j&&(z|=16),u==="UNIX"?(J=798,z|=function(Q,se){var oe=Q;return Q||(oe=se?16893:33204),(65535&oe)<<16}(C.unixPermissions,j)):(J=20,z|=function(Q){return 63&(Q||0)}(C.dosPermissions)),g=P.getUTCHours(),g<<=6,g|=P.getUTCMinutes(),g<<=5,g|=P.getUTCSeconds()/2,S=P.getUTCFullYear()-1980,S<<=4,S|=P.getUTCMonth()+1,S<<=5,S|=P.getUTCDate(),B&&(re=o(1,1)+o(_(L),4)+D,W+="up"+o(re.length,2)+re),y&&(b=o(1,1)+o(_(te),4)+N,W+="uc"+o(b.length,2)+b);var K="";return K+=` 111 + \0`,K+=o(T,2),K+=A.magic,K+=o(g,2),K+=o(S,2),K+=o(U.crc32,4),K+=o(U.compressedSize,4),K+=o(U.uncompressedSize,4),K+=o(L.length,2),K+=o(W.length,2),{fileRecord:v.LOCAL_FILE_HEADER+K+L+W,dirRecord:v.CENTRAL_FILE_HEADER+o(J,2)+K+o(te.length,2)+"\0\0\0\0"+o(z,4)+o(k,4)+L+W+te}}var l=n("../utils"),a=n("../stream/GenericWorker"),f=n("../utf8"),_=n("../crc32"),v=n("../signature");function m(p,w,h,k){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=w,this.zipPlatform=h,this.encodeFileName=k,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(m,a),m.prototype.push=function(p){var w=p.meta.percent||0,h=this.entriesCount,k=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,a.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:h?(w+100*(h-k-1))/h:100}}))},m.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var w=this.streamFiles&&!p.file.dir;if(w){var h=s(p,w,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(p){this.accumulate=!1;var w=this.streamFiles&&!p.file.dir,h=s(p,w,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),w)this.push({data:function(k){return v.DATA_DESCRIPTOR+o(k.crc32,4)+o(k.compressedSize,4)+o(k.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var p=this.bytesWritten,w=0;w<this.dirRecords.length;w++)this.push({data:this.dirRecords[w],meta:{percent:100}});var h=this.bytesWritten-p,k=function(u,c,g,S,C){var A=l.transformTo("string",C(S));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(u,2)+o(u,2)+o(c,4)+o(g,4)+o(A.length,2)+A}(this.dirRecords.length,h,p,this.zipComment,this.encodeFileName);this.push({data:k,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(p){this._sources.push(p);var w=this;return p.on("data",function(h){w.processChunk(h)}),p.on("end",function(){w.closedSource(w.previous.streamInfo),w._sources.length?w.prepareNextSource():w.end()}),p.on("error",function(h){w.error(h)}),this},m.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(p){var w=this._sources;if(!a.prototype.error.call(this,p))return!1;for(var h=0;h<w.length;h++)try{w[h].error(p)}catch{}return!0},m.prototype.lock=function(){a.prototype.lock.call(this);for(var p=this._sources,w=0;w<p.length;w++)p[w].lock()},r.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var o=n("../compressions"),s=n("./ZipFileWorker");i.generateWorker=function(l,a,f){var _=new s(a.streamFiles,f,a.platform,a.encodeFileName),v=0;try{l.forEach(function(m,p){v++;var w=function(c,g){var S=c||g,C=o[S];if(!C)throw new Error(S+" is not a valid compression method !");return C}(p.options.compression,a.compression),h=p.options.compressionOptions||a.compressionOptions||{},k=p.dir,u=p.date;p._compressWorker(w,h).withStreamInfo("file",{name:m,dir:k,date:u,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(_)}),_.entriesCount=v}catch(m){_.error(m)}return _}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new o;for(var l in this)typeof this[l]!="function"&&(s[l]=this[l]);return s}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(s,l){return new o().loadAsync(s,l)},o.external=n("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var o=n("./utils"),s=n("./external"),l=n("./utf8"),a=n("./zipEntries"),f=n("./stream/Crc32Probe"),_=n("./nodejsUtils");function v(m){return new s.Promise(function(p,w){var h=m.decompressed.getContentWorker().pipe(new f);h.on("error",function(k){w(k)}).on("end",function(){h.streamInfo.crc32!==m.decompressed.crc32?w(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(m,p){var w=this;return p=o.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:l.utf8decode}),_.isNode&&_.isStream(m)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",m,!0,p.optimizedBinaryString,p.base64).then(function(h){var k=new a(p);return k.load(h),k}).then(function(h){var k=[s.Promise.resolve(h)],u=h.files;if(p.checkCRC32)for(var c=0;c<u.length;c++)k.push(v(u[c]));return s.Promise.all(k)}).then(function(h){for(var k=h.shift(),u=k.files,c=0;c<u.length;c++){var g=u[c],S=g.fileNameStr,C=o.resolve(g.fileNameStr);w.file(C,g.decompressed,{binary:!0,optimizedBinaryString:!0,date:g.date,dir:g.dir,comment:g.fileCommentStr.length?g.fileCommentStr:null,unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions,createFolders:p.createFolders}),g.dir||(w.file(C).unsafeOriginalName=S)}return k.zipComment.length&&(w.comment=k.zipComment),w})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var o=n("../utils"),s=n("../stream/GenericWorker");function l(a,f){s.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(f)}o.inherits(l,s),l.prototype._bindStream=function(a){var f=this;(this._stream=a).pause(),a.on("data",function(_){f.push({data:_,meta:{percent:0}})}).on("error",function(_){f.isPaused?this.generatedError=_:f.error(_)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},l.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=l},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var o=n("readable-stream").Readable;function s(l,a,f){o.call(this,a),this._helper=l;var _=this;l.on("data",function(v,m){_.push(v)||_._helper.pause(),f&&f(m)}).on("error",function(v){_.emit("error",v)}).on("end",function(){_.push(null)})}n("../utils").inherits(s,o),s.prototype._read=function(){this._helper.resume()},r.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,s);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,s)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var s=new Buffer(o);return s.fill(0),s},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,r,i){function o(C,A,I){var L,D=l.getTypeOf(A),$=l.extend(I||{},_);$.date=$.date||new Date,$.compression!==null&&($.compression=$.compression.toUpperCase()),typeof $.unixPermissions=="string"&&($.unixPermissions=parseInt($.unixPermissions,8)),$.unixPermissions&&16384&$.unixPermissions&&($.dir=!0),$.dosPermissions&&16&$.dosPermissions&&($.dir=!0),$.dir&&(C=u(C)),$.createFolders&&(L=k(C))&&c.call(this,L,!0);var te=D==="string"&&$.binary===!1&&$.base64===!1;I&&I.binary!==void 0||($.binary=!te),(A instanceof v&&A.uncompressedSize===0||$.dir||!A||A.length===0)&&($.base64=!1,$.binary=!0,A="",$.compression="STORE",D="string");var N=null;N=A instanceof v||A instanceof a?A:w.isNode&&w.isStream(A)?new h(C,A):l.prepareContent(C,A,$.binary,$.optimizedBinaryString,$.base64);var B=new m(C,N,$);this.files[C]=B}var s=n("./utf8"),l=n("./utils"),a=n("./stream/GenericWorker"),f=n("./stream/StreamHelper"),_=n("./defaults"),v=n("./compressedObject"),m=n("./zipObject"),p=n("./generate"),w=n("./nodejsUtils"),h=n("./nodejs/NodejsStreamInputAdapter"),k=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var A=C.lastIndexOf("/");return 0<A?C.substring(0,A):""},u=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},c=function(C,A){return A=A!==void 0?A:_.createFolders,C=u(C),this.files[C]||o.call(this,C,null,{dir:!0,createFolders:A}),this.files[C]};function g(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var A,I,L;for(A in this.files)L=this.files[A],(I=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&C(I,L)},filter:function(C){var A=[];return this.forEach(function(I,L){C(I,L)&&A.push(L)}),A},file:function(C,A,I){if(arguments.length!==1)return C=this.root+C,o.call(this,C,A,I),this;if(g(C)){var L=C;return this.filter(function($,te){return!te.dir&&L.test($)})}var D=this.files[this.root+C];return D&&!D.dir?D:null},folder:function(C){if(!C)return this;if(g(C))return this.filter(function(D,$){return $.dir&&C.test(D)});var A=this.root+C,I=c.call(this,A),L=this.clone();return L.root=I.name,L},remove:function(C){C=this.root+C;var A=this.files[C];if(A||(C.slice(-1)!=="/"&&(C+="/"),A=this.files[C]),A&&!A.dir)delete this.files[C];else for(var I=this.filter(function(D,$){return $.name.slice(0,C.length)===C}),L=0;L<I.length;L++)delete this.files[I[L].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var A,I={};try{if((I=l.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=I.type.toLowerCase(),I.compression=I.compression.toUpperCase(),I.type==="binarystring"&&(I.type="string"),!I.type)throw new Error("No output type specified.");l.checkSupport(I.type),I.platform!=="darwin"&&I.platform!=="freebsd"&&I.platform!=="linux"&&I.platform!=="sunos"||(I.platform="UNIX"),I.platform==="win32"&&(I.platform="DOS");var L=I.comment||this.comment||"";A=p.generateWorker(this,I,L)}catch(D){(A=new a("error")).error(D)}return new f(A,I.type||"string",I.mimeType)},generateAsync:function(C,A){return this.generateInternalStream(C).accumulate(A)},generateNodeStream:function(C,A){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(A)}};r.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var o=n("./DataReader");function s(l){o.call(this,l);for(var a=0;a<this.data.length;a++)l[a]=255&l[a]}n("../utils").inherits(s,o),s.prototype.byteAt=function(l){return this.data[this.zero+l]},s.prototype.lastIndexOfSignature=function(l){for(var a=l.charCodeAt(0),f=l.charCodeAt(1),_=l.charCodeAt(2),v=l.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===a&&this.data[m+1]===f&&this.data[m+2]===_&&this.data[m+3]===v)return m-this.zero;return-1},s.prototype.readAndCheckSignature=function(l){var a=l.charCodeAt(0),f=l.charCodeAt(1),_=l.charCodeAt(2),v=l.charCodeAt(3),m=this.readData(4);return a===m[0]&&f===m[1]&&_===m[2]&&v===m[3]},s.prototype.readData=function(l){if(this.checkOffset(l),l===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var o=n("../utils");function s(l){this.data=l,this.length=l.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(l){this.checkIndex(this.index+l)},checkIndex:function(l){if(this.length<this.zero+l||l<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+l+"). Corrupted zip ?")},setIndex:function(l){this.checkIndex(l),this.index=l},skip:function(l){this.setIndex(this.index+l)},byteAt:function(){},readInt:function(l){var a,f=0;for(this.checkOffset(l),a=this.index+l-1;a>=this.index;a--)f=(f<<8)+this.byteAt(a);return this.index+=l,f},readString:function(l){return o.transformTo("string",this.readData(l))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var l=this.readInt(4);return new Date(Date.UTC(1980+(l>>25&127),(l>>21&15)-1,l>>16&31,l>>11&31,l>>5&63,(31&l)<<1))}},r.exports=s},{"../utils":32}],19:[function(n,r,i){var o=n("./Uint8ArrayReader");function s(l){o.call(this,l)}n("../utils").inherits(s,o),s.prototype.readData=function(l){this.checkOffset(l);var a=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var o=n("./DataReader");function s(l){o.call(this,l)}n("../utils").inherits(s,o),s.prototype.byteAt=function(l){return this.data.charCodeAt(this.zero+l)},s.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)-this.zero},s.prototype.readAndCheckSignature=function(l){return l===this.readData(4)},s.prototype.readData=function(l){this.checkOffset(l);var a=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var o=n("./ArrayReader");function s(l){o.call(this,l)}n("../utils").inherits(s,o),s.prototype.readData=function(l){if(this.checkOffset(l),l===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var o=n("../utils"),s=n("../support"),l=n("./ArrayReader"),a=n("./StringReader"),f=n("./NodeBufferReader"),_=n("./Uint8ArrayReader");r.exports=function(v){var m=o.getTypeOf(v);return o.checkSupport(m),m!=="string"||s.uint8array?m==="nodebuffer"?new f(v):s.uint8array?new _(o.transformTo("uint8array",v)):new l(o.transformTo("array",v)):new a(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var o=n("./GenericWorker"),s=n("../utils");function l(a){o.call(this,"ConvertWorker to "+a),this.destType=a}s.inherits(l,o),l.prototype.processChunk=function(a){this.push({data:s.transformTo(this.destType,a.data),meta:a.meta})},r.exports=l},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var o=n("./GenericWorker"),s=n("../crc32");function l(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(l,o),l.prototype.processChunk=function(a){this.streamInfo.crc32=s(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=l},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var o=n("../utils"),s=n("./GenericWorker");function l(a){s.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}o.inherits(l,s),l.prototype.processChunk=function(a){if(a){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+a.data.length}s.prototype.processChunk.call(this,a)},r.exports=l},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var o=n("../utils"),s=n("./GenericWorker");function l(a){s.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(_){f.dataIsReady=!0,f.data=_,f.max=_&&_.length||0,f.type=o.getTypeOf(_),f.isPaused||f._tickAndRepeat()},function(_){f.error(_)})}o.inherits(l,s),l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},l.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},l.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,f=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,f);break;case"uint8array":a=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":a=this.data.slice(this.index,f)}return this.index=f,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=l},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function o(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,l){return this._listeners[s].push(l),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,l){if(this._listeners[s])for(var a=0;a<this._listeners[s].length;a++)this._listeners[s][a].call(this,l)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var l=this;return s.on("data",function(a){l.processChunk(a)}),s.on("end",function(){l.end()}),s.on("error",function(a){l.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,l){return this.extraStreamInfo[s]=l,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},r.exports=o},{}],29:[function(n,r,i){var o=n("../utils"),s=n("./ConvertWorker"),l=n("./GenericWorker"),a=n("../base64"),f=n("../support"),_=n("../external"),v=null;if(f.nodestream)try{v=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(w,h){return new _.Promise(function(k,u){var c=[],g=w._internalType,S=w._outputType,C=w._mimeType;w.on("data",function(A,I){c.push(A),h&&h(I)}).on("error",function(A){c=[],u(A)}).on("end",function(){try{var A=function(I,L,D){switch(I){case"blob":return o.newBlob(o.transformTo("arraybuffer",L),D);case"base64":return a.encode(L);default:return o.transformTo(I,L)}}(S,function(I,L){var D,$=0,te=null,N=0;for(D=0;D<L.length;D++)N+=L[D].length;switch(I){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(te=new Uint8Array(N),D=0;D<L.length;D++)te.set(L[D],$),$+=L[D].length;return te;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+I+"'")}}(g,c),C);k(A)}catch(I){u(I)}c=[]}).resume()})}function p(w,h,k){var u=h;switch(h){case"blob":case"arraybuffer":u="uint8array";break;case"base64":u="string"}try{this._internalType=u,this._outputType=h,this._mimeType=k,o.checkSupport(u),this._worker=w.pipe(new s(u)),w.lock()}catch(c){this._worker=new l("error"),this._worker.error(c)}}p.prototype={accumulate:function(w){return m(this,w)},on:function(w,h){var k=this;return w==="data"?this._worker.on(w,function(u){h.call(k,u.data,u.meta)}):this._worker.on(w,function(){o.delay(h,arguments,k)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(w){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new v(this,{objectMode:this._outputType!=="nodebuffer"},w)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),i.blob=s.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var o=n("./utils"),s=n("./support"),l=n("./nodejsUtils"),a=n("./stream/GenericWorker"),f=new Array(256),_=0;_<256;_++)f[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;f[254]=f[254]=1;function v(){a.call(this,"utf-8 decode"),this.leftOver=null}function m(){a.call(this,"utf-8 encode")}i.utf8encode=function(p){return s.nodebuffer?l.newBufferFrom(p,"utf-8"):function(w){var h,k,u,c,g,S=w.length,C=0;for(c=0;c<S;c++)(64512&(k=w.charCodeAt(c)))==55296&&c+1<S&&(64512&(u=w.charCodeAt(c+1)))==56320&&(k=65536+(k-55296<<10)+(u-56320),c++),C+=k<128?1:k<2048?2:k<65536?3:4;for(h=s.uint8array?new Uint8Array(C):new Array(C),c=g=0;g<C;c++)(64512&(k=w.charCodeAt(c)))==55296&&c+1<S&&(64512&(u=w.charCodeAt(c+1)))==56320&&(k=65536+(k-55296<<10)+(u-56320),c++),k<128?h[g++]=k:(k<2048?h[g++]=192|k>>>6:(k<65536?h[g++]=224|k>>>12:(h[g++]=240|k>>>18,h[g++]=128|k>>>12&63),h[g++]=128|k>>>6&63),h[g++]=128|63&k);return h}(p)},i.utf8decode=function(p){return s.nodebuffer?o.transformTo("nodebuffer",p).toString("utf-8"):function(w){var h,k,u,c,g=w.length,S=new Array(2*g);for(h=k=0;h<g;)if((u=w[h++])<128)S[k++]=u;else if(4<(c=f[u]))S[k++]=65533,h+=c-1;else{for(u&=c===2?31:c===3?15:7;1<c&&h<g;)u=u<<6|63&w[h++],c--;1<c?S[k++]=65533:u<65536?S[k++]=u:(u-=65536,S[k++]=55296|u>>10&1023,S[k++]=56320|1023&u)}return S.length!==k&&(S.subarray?S=S.subarray(0,k):S.length=k),o.applyFromCharCode(S)}(p=o.transformTo(s.uint8array?"uint8array":"array",p))},o.inherits(v,a),v.prototype.processChunk=function(p){var w=o.transformTo(s.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var h=w;(w=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),w.set(h,this.leftOver.length)}else w=this.leftOver.concat(w);this.leftOver=null}var k=function(c,g){var S;for((g=g||c.length)>c.length&&(g=c.length),S=g-1;0<=S&&(192&c[S])==128;)S--;return S<0||S===0?g:S+f[c[S]]>g?S:g}(w),u=w;k!==w.length&&(s.uint8array?(u=w.subarray(0,k),this.leftOver=w.subarray(k,w.length)):(u=w.slice(0,k),this.leftOver=w.slice(k,w.length))),this.push({data:i.utf8decode(u),meta:p.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=v,o.inherits(m,a),m.prototype.processChunk=function(p){this.push({data:i.utf8encode(p.data),meta:p.meta})},i.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var o=n("./support"),s=n("./base64"),l=n("./nodejsUtils"),a=n("./external");function f(h){return h}function _(h,k){for(var u=0;u<h.length;++u)k[u]=255&h.charCodeAt(u);return k}n("setimmediate"),i.newBlob=function(h,k){i.checkSupport("blob");try{return new Blob([h],{type:k})}catch{try{var u=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return u.append(h),u.getBlob(k)}catch{throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(h,k,u){var c=[],g=0,S=h.length;if(S<=u)return String.fromCharCode.apply(null,h);for(;g<S;)k==="array"||k==="nodebuffer"?c.push(String.fromCharCode.apply(null,h.slice(g,Math.min(g+u,S)))):c.push(String.fromCharCode.apply(null,h.subarray(g,Math.min(g+u,S)))),g+=u;return c.join("")},stringifyByChar:function(h){for(var k="",u=0;u<h.length;u++)k+=String.fromCharCode(h[u]);return k},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,l.allocBuffer(1)).length===1}catch{return!1}}()}};function m(h){var k=65536,u=i.getTypeOf(h),c=!0;if(u==="uint8array"?c=v.applyCanBeUsed.uint8array:u==="nodebuffer"&&(c=v.applyCanBeUsed.nodebuffer),c)for(;1<k;)try{return v.stringifyByChunk(h,u,k)}catch{k=Math.floor(k/2)}return v.stringifyByChar(h)}function p(h,k){for(var u=0;u<h.length;u++)k[u]=h[u];return k}i.applyFromCharCode=m;var w={};w.string={string:f,array:function(h){return _(h,new Array(h.length))},arraybuffer:function(h){return w.string.uint8array(h).buffer},uint8array:function(h){return _(h,new Uint8Array(h.length))},nodebuffer:function(h){return _(h,l.allocBuffer(h.length))}},w.array={string:m,array:f,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return l.newBufferFrom(h)}},w.arraybuffer={string:function(h){return m(new Uint8Array(h))},array:function(h){return p(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:f,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return l.newBufferFrom(new Uint8Array(h))}},w.uint8array={string:m,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:f,nodebuffer:function(h){return l.newBufferFrom(h)}},w.nodebuffer={string:m,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return w.nodebuffer.uint8array(h).buffer},uint8array:function(h){return p(h,new Uint8Array(h.length))},nodebuffer:f},i.transformTo=function(h,k){if(k=k||"",!h)return k;i.checkSupport(h);var u=i.getTypeOf(k);return w[u][h](k)},i.resolve=function(h){for(var k=h.split("/"),u=[],c=0;c<k.length;c++){var g=k[c];g==="."||g===""&&c!==0&&c!==k.length-1||(g===".."?u.pop():u.push(g))}return u.join("/")},i.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":o.nodebuffer&&l.isBuffer(h)?"nodebuffer":o.uint8array&&h instanceof Uint8Array?"uint8array":o.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(h){if(!o[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(h){var k,u,c="";for(u=0;u<(h||"").length;u++)c+="\\x"+((k=h.charCodeAt(u))<16?"0":"")+k.toString(16).toUpperCase();return c},i.delay=function(h,k,u){setImmediate(function(){h.apply(u||null,k||[])})},i.inherits=function(h,k){function u(){}u.prototype=k.prototype,h.prototype=new u},i.extend=function(){var h,k,u={};for(h=0;h<arguments.length;h++)for(k in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],k)&&u[k]===void 0&&(u[k]=arguments[h][k]);return u},i.prepareContent=function(h,k,u,c,g){return a.Promise.resolve(k).then(function(S){return o.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new a.Promise(function(C,A){var I=new FileReader;I.onload=function(L){C(L.target.result)},I.onerror=function(L){A(L.target.error)},I.readAsArrayBuffer(S)}):S}).then(function(S){var C=i.getTypeOf(S);return C?(C==="arraybuffer"?S=i.transformTo("uint8array",S):C==="string"&&(g?S=s.decode(S):u&&c!==!0&&(S=function(A){return _(A,o.uint8array?new Uint8Array(A.length):new Array(A.length))}(S))),S):a.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var o=n("./reader/readerFor"),s=n("./utils"),l=n("./signature"),a=n("./zipEntry"),f=n("./support");function _(v){this.files=[],this.loadOptions=v}_.prototype={checkSignature:function(v){if(!this.reader.readAndCheckSignature(v)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(m)+", expected "+s.pretty(v)+")")}},isSignature:function(v,m){var p=this.reader.index;this.reader.setIndex(v);var w=this.reader.readString(4)===m;return this.reader.setIndex(p),w},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var v=this.reader.readData(this.zipCommentLength),m=f.uint8array?"uint8array":"array",p=s.transformTo(m,v);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var v,m,p,w=this.zip64EndOfCentralSize-44;0<w;)v=this.reader.readInt(2),m=this.reader.readInt(4),p=this.reader.readData(m),this.zip64ExtensibleData[v]={id:v,length:m,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var v,m;for(v=0;v<this.files.length;v++)m=this.files[v],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(l.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var v;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(l.CENTRAL_FILE_HEADER);)(v=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(v);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var v=this.reader.lastIndexOfSignature(l.CENTRAL_DIRECTORY_END);if(v<0)throw this.isSignature(0,l.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(v);var m=v;if(this.checkSignature(l.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(v=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(v),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,l.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var w=m-p;if(0<w)this.isSignature(m,l.CENTRAL_FILE_HEADER)||(this.reader.zero=w);else if(w<0)throw new Error("Corrupted zip: missing "+Math.abs(w)+" bytes.")},prepareReader:function(v){this.reader=o(v)},load:function(v){this.prepareReader(v),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=_},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var o=n("./reader/readerFor"),s=n("./utils"),l=n("./compressedObject"),a=n("./crc32"),f=n("./utf8"),_=n("./compressions"),v=n("./support");function m(p,w){this.options=p,this.loadOptions=w}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var w,h;if(p.skip(22),this.fileNameLength=p.readInt(2),h=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((w=function(k){for(var u in _)if(Object.prototype.hasOwnProperty.call(_,u)&&_[u].magic===k)return _[u];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new l(this.compressedSize,this.uncompressedSize,this.crc32,w,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var w=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(w),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var w,h,k,u=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<u;)w=p.readInt(2),h=p.readInt(2),k=p.readData(h),this.extraFields[w]={id:w,length:h,value:k};p.setIndex(u)},handleUTF8:function(){var p=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var w=this.findExtraFieldUnicodePath();if(w!==null)this.fileNameStr=w;else{var h=s.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var k=this.findExtraFieldUnicodeComment();if(k!==null)this.fileCommentStr=k;else{var u=s.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(u)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var w=o(p.value);return w.readInt(1)!==1||a(this.fileName)!==w.readInt(4)?null:f.utf8decode(w.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var w=o(p.value);return w.readInt(1)!==1||a(this.fileComment)!==w.readInt(4)?null:f.utf8decode(w.readData(p.length-5))}return null}},r.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function o(w,h,k){this.name=w,this.dir=k.dir,this.date=k.date,this.comment=k.comment,this.unixPermissions=k.unixPermissions,this.dosPermissions=k.dosPermissions,this._data=h,this._dataBinary=k.binary,this.options={compression:k.compression,compressionOptions:k.compressionOptions}}var s=n("./stream/StreamHelper"),l=n("./stream/DataWorker"),a=n("./utf8"),f=n("./compressedObject"),_=n("./stream/GenericWorker");o.prototype={internalStream:function(w){var h=null,k="string";try{if(!w)throw new Error("No output type specified.");var u=(k=w.toLowerCase())==="string"||k==="text";k!=="binarystring"&&k!=="text"||(k="string"),h=this._decompressWorker();var c=!this._dataBinary;c&&!u&&(h=h.pipe(new a.Utf8EncodeWorker)),!c&&u&&(h=h.pipe(new a.Utf8DecodeWorker))}catch(g){(h=new _("error")).error(g)}return new s(h,k,"")},async:function(w,h){return this.internalStream(w).accumulate(h)},nodeStream:function(w,h){return this.internalStream(w||"nodebuffer").toNodejsStream(h)},_compressWorker:function(w,h){if(this._data instanceof f&&this._data.compression.magic===w.magic)return this._data.getCompressedWorker();var k=this._decompressWorker();return this._dataBinary||(k=k.pipe(new a.Utf8EncodeWorker)),f.createWorkerFrom(k,w,h)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof _?this._data:new l(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<v.length;p++)o.prototype[v[p]]=m;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(o){var s,l,a=o.MutationObserver||o.WebKitMutationObserver;if(a){var f=0,_=new a(w),v=o.document.createTextNode("");_.observe(v,{characterData:!0}),s=function(){v.data=f=++f%2}}else if(o.setImmediate||o.MessageChannel===void 0)s="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var h=o.document.createElement("script");h.onreadystatechange=function(){w(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},o.document.documentElement.appendChild(h)}:function(){setTimeout(w,0)};else{var m=new o.MessageChannel;m.port1.onmessage=w,s=function(){m.port2.postMessage(0)}}var p=[];function w(){var h,k;l=!0;for(var u=p.length;u;){for(k=p,p=[],h=-1;++h<u;)k[h]();u=p.length}l=!1}r.exports=function(h){p.push(h)!==1||l||s()}}).call(this,typeof yi<"u"?yi:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var o=n("immediate");function s(){}var l={},a=["REJECTED"],f=["FULFILLED"],_=["PENDING"];function v(u){if(typeof u!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,u!==s&&h(this,u)}function m(u,c,g){this.promise=u,typeof c=="function"&&(this.onFulfilled=c,this.callFulfilled=this.otherCallFulfilled),typeof g=="function"&&(this.onRejected=g,this.callRejected=this.otherCallRejected)}function p(u,c,g){o(function(){var S;try{S=c(g)}catch(C){return l.reject(u,C)}S===u?l.reject(u,new TypeError("Cannot resolve promise with itself")):l.resolve(u,S)})}function w(u){var c=u&&u.then;if(u&&(typeof u=="object"||typeof u=="function")&&typeof c=="function")return function(){c.apply(u,arguments)}}function h(u,c){var g=!1;function S(I){g||(g=!0,l.reject(u,I))}function C(I){g||(g=!0,l.resolve(u,I))}var A=k(function(){c(C,S)});A.status==="error"&&S(A.value)}function k(u,c){var g={};try{g.value=u(c),g.status="success"}catch(S){g.status="error",g.value=S}return g}(r.exports=v).prototype.finally=function(u){if(typeof u!="function")return this;var c=this.constructor;return this.then(function(g){return c.resolve(u()).then(function(){return g})},function(g){return c.resolve(u()).then(function(){throw g})})},v.prototype.catch=function(u){return this.then(null,u)},v.prototype.then=function(u,c){if(typeof u!="function"&&this.state===f||typeof c!="function"&&this.state===a)return this;var g=new this.constructor(s);return this.state!==_?p(g,this.state===f?u:c,this.outcome):this.queue.push(new m(g,u,c)),g},m.prototype.callFulfilled=function(u){l.resolve(this.promise,u)},m.prototype.otherCallFulfilled=function(u){p(this.promise,this.onFulfilled,u)},m.prototype.callRejected=function(u){l.reject(this.promise,u)},m.prototype.otherCallRejected=function(u){p(this.promise,this.onRejected,u)},l.resolve=function(u,c){var g=k(w,c);if(g.status==="error")return l.reject(u,g.value);var S=g.value;if(S)h(u,S);else{u.state=f,u.outcome=c;for(var C=-1,A=u.queue.length;++C<A;)u.queue[C].callFulfilled(c)}return u},l.reject=function(u,c){u.state=a,u.outcome=c;for(var g=-1,S=u.queue.length;++g<S;)u.queue[g].callRejected(c);return u},v.resolve=function(u){return u instanceof this?u:l.resolve(new this(s),u)},v.reject=function(u){var c=new this(s);return l.reject(c,u)},v.all=function(u){var c=this;if(Object.prototype.toString.call(u)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=u.length,S=!1;if(!g)return this.resolve([]);for(var C=new Array(g),A=0,I=-1,L=new this(s);++I<g;)D(u[I],I);return L;function D($,te){c.resolve($).then(function(N){C[te]=N,++A!==g||S||(S=!0,l.resolve(L,C))},function(N){S||(S=!0,l.reject(L,N))})}},v.race=function(u){var c=this;if(Object.prototype.toString.call(u)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=u.length,S=!1;if(!g)return this.resolve([]);for(var C=-1,A=new this(s);++C<g;)I=u[C],c.resolve(I).then(function(L){S||(S=!0,l.resolve(A,L))},function(L){S||(S=!0,l.reject(A,L))});var I;return A}},{immediate:36}],38:[function(n,r,i){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var o=n("./zlib/deflate"),s=n("./utils/common"),l=n("./utils/strings"),a=n("./zlib/messages"),f=n("./zlib/zstream"),_=Object.prototype.toString,v=0,m=-1,p=0,w=8;function h(u){if(!(this instanceof h))return new h(u);this.options=s.assign({level:m,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},u||{});var c=this.options;c.raw&&0<c.windowBits?c.windowBits=-c.windowBits:c.gzip&&0<c.windowBits&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var g=o.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(g!==v)throw new Error(a[g]);if(c.header&&o.deflateSetHeader(this.strm,c.header),c.dictionary){var S;if(S=typeof c.dictionary=="string"?l.string2buf(c.dictionary):_.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary,(g=o.deflateSetDictionary(this.strm,S))!==v)throw new Error(a[g]);this._dict_set=!0}}function k(u,c){var g=new h(c);if(g.push(u,!0),g.err)throw g.msg||a[g.err];return g.result}h.prototype.push=function(u,c){var g,S,C=this.strm,A=this.options.chunkSize;if(this.ended)return!1;S=c===~~c?c:c===!0?4:0,typeof u=="string"?C.input=l.string2buf(u):_.call(u)==="[object ArrayBuffer]"?C.input=new Uint8Array(u):C.input=u,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new s.Buf8(A),C.next_out=0,C.avail_out=A),(g=o.deflate(C,S))!==1&&g!==v)return this.onEnd(g),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(l.buf2binstring(s.shrinkBuf(C.output,C.next_out))):this.onData(s.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&g!==1);return S===4?(g=o.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===v):S!==2||(this.onEnd(v),!(C.avail_out=0))},h.prototype.onData=function(u){this.chunks.push(u)},h.prototype.onEnd=function(u){u===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},i.Deflate=h,i.deflate=k,i.deflateRaw=function(u,c){return(c=c||{}).raw=!0,k(u,c)},i.gzip=function(u,c){return(c=c||{}).gzip=!0,k(u,c)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var o=n("./zlib/inflate"),s=n("./utils/common"),l=n("./utils/strings"),a=n("./zlib/constants"),f=n("./zlib/messages"),_=n("./zlib/zstream"),v=n("./zlib/gzheader"),m=Object.prototype.toString;function p(h){if(!(this instanceof p))return new p(h);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},h||{});var k=this.options;k.raw&&0<=k.windowBits&&k.windowBits<16&&(k.windowBits=-k.windowBits,k.windowBits===0&&(k.windowBits=-15)),!(0<=k.windowBits&&k.windowBits<16)||h&&h.windowBits||(k.windowBits+=32),15<k.windowBits&&k.windowBits<48&&!(15&k.windowBits)&&(k.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var u=o.inflateInit2(this.strm,k.windowBits);if(u!==a.Z_OK)throw new Error(f[u]);this.header=new v,o.inflateGetHeader(this.strm,this.header)}function w(h,k){var u=new p(k);if(u.push(h,!0),u.err)throw u.msg||f[u.err];return u.result}p.prototype.push=function(h,k){var u,c,g,S,C,A,I=this.strm,L=this.options.chunkSize,D=this.options.dictionary,$=!1;if(this.ended)return!1;c=k===~~k?k:k===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof h=="string"?I.input=l.binstring2buf(h):m.call(h)==="[object ArrayBuffer]"?I.input=new Uint8Array(h):I.input=h,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new s.Buf8(L),I.next_out=0,I.avail_out=L),(u=o.inflate(I,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&D&&(A=typeof D=="string"?l.string2buf(D):m.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,u=o.inflateSetDictionary(this.strm,A)),u===a.Z_BUF_ERROR&&$===!0&&(u=a.Z_OK,$=!1),u!==a.Z_STREAM_END&&u!==a.Z_OK)return this.onEnd(u),!(this.ended=!0);I.next_out&&(I.avail_out!==0&&u!==a.Z_STREAM_END&&(I.avail_in!==0||c!==a.Z_FINISH&&c!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(g=l.utf8border(I.output,I.next_out),S=I.next_out-g,C=l.buf2string(I.output,g),I.next_out=S,I.avail_out=L-S,S&&s.arraySet(I.output,I.output,g,S,0),this.onData(C)):this.onData(s.shrinkBuf(I.output,I.next_out)))),I.avail_in===0&&I.avail_out===0&&($=!0)}while((0<I.avail_in||I.avail_out===0)&&u!==a.Z_STREAM_END);return u===a.Z_STREAM_END&&(c=a.Z_FINISH),c===a.Z_FINISH?(u=o.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===a.Z_OK):c!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(I.avail_out=0))},p.prototype.onData=function(h){this.chunks.push(h)},p.prototype.onEnd=function(h){h===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},i.Inflate=p,i.inflate=w,i.inflateRaw=function(h,k){return(k=k||{}).raw=!0,w(h,k)},i.ungzip=w},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(a){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var _=f.shift();if(_){if(typeof _!="object")throw new TypeError(_+"must be non-object");for(var v in _)_.hasOwnProperty(v)&&(a[v]=_[v])}}return a},i.shrinkBuf=function(a,f){return a.length===f?a:a.subarray?a.subarray(0,f):(a.length=f,a)};var s={arraySet:function(a,f,_,v,m){if(f.subarray&&a.subarray)a.set(f.subarray(_,_+v),m);else for(var p=0;p<v;p++)a[m+p]=f[_+p]},flattenChunks:function(a){var f,_,v,m,p,w;for(f=v=0,_=a.length;f<_;f++)v+=a[f].length;for(w=new Uint8Array(v),f=m=0,_=a.length;f<_;f++)p=a[f],w.set(p,m),m+=p.length;return w}},l={arraySet:function(a,f,_,v,m){for(var p=0;p<v;p++)a[m+p]=f[_+p]},flattenChunks:function(a){return[].concat.apply([],a)}};i.setTyped=function(a){a?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,s)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,l))},i.setTyped(o)},{}],42:[function(n,r,i){var o=n("./common"),s=!0,l=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{l=!1}for(var a=new o.Buf8(256),f=0;f<256;f++)a[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;function _(v,m){if(m<65537&&(v.subarray&&l||!v.subarray&&s))return String.fromCharCode.apply(null,o.shrinkBuf(v,m));for(var p="",w=0;w<m;w++)p+=String.fromCharCode(v[w]);return p}a[254]=a[254]=1,i.string2buf=function(v){var m,p,w,h,k,u=v.length,c=0;for(h=0;h<u;h++)(64512&(p=v.charCodeAt(h)))==55296&&h+1<u&&(64512&(w=v.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(w-56320),h++),c+=p<128?1:p<2048?2:p<65536?3:4;for(m=new o.Buf8(c),h=k=0;k<c;h++)(64512&(p=v.charCodeAt(h)))==55296&&h+1<u&&(64512&(w=v.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(w-56320),h++),p<128?m[k++]=p:(p<2048?m[k++]=192|p>>>6:(p<65536?m[k++]=224|p>>>12:(m[k++]=240|p>>>18,m[k++]=128|p>>>12&63),m[k++]=128|p>>>6&63),m[k++]=128|63&p);return m},i.buf2binstring=function(v){return _(v,v.length)},i.binstring2buf=function(v){for(var m=new o.Buf8(v.length),p=0,w=m.length;p<w;p++)m[p]=v.charCodeAt(p);return m},i.buf2string=function(v,m){var p,w,h,k,u=m||v.length,c=new Array(2*u);for(p=w=0;p<u;)if((h=v[p++])<128)c[w++]=h;else if(4<(k=a[h]))c[w++]=65533,p+=k-1;else{for(h&=k===2?31:k===3?15:7;1<k&&p<u;)h=h<<6|63&v[p++],k--;1<k?c[w++]=65533:h<65536?c[w++]=h:(h-=65536,c[w++]=55296|h>>10&1023,c[w++]=56320|1023&h)}return _(c,w)},i.utf8border=function(v,m){var p;for((m=m||v.length)>v.length&&(m=v.length),p=m-1;0<=p&&(192&v[p])==128;)p--;return p<0||p===0?m:p+a[v[p]]>m?p:m}},{"./common":41}],43:[function(n,r,i){r.exports=function(o,s,l,a){for(var f=65535&o|0,_=o>>>16&65535|0,v=0;l!==0;){for(l-=v=2e3<l?2e3:l;_=_+(f=f+s[a++]|0)|0,--v;);f%=65521,_%=65521}return f|_<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var o=function(){for(var s,l=[],a=0;a<256;a++){s=a;for(var f=0;f<8;f++)s=1&s?3988292384^s>>>1:s>>>1;l[a]=s}return l}();r.exports=function(s,l,a,f){var _=o,v=f+a;s^=-1;for(var m=f;m<v;m++)s=s>>>8^_[255&(s^l[m])];return-1^s}},{}],46:[function(n,r,i){var o,s=n("../utils/common"),l=n("./trees"),a=n("./adler32"),f=n("./crc32"),_=n("./messages"),v=0,m=4,p=0,w=-2,h=-1,k=4,u=2,c=8,g=9,S=286,C=30,A=19,I=2*S+1,L=15,D=3,$=258,te=$+D+1,N=42,B=113,y=1,W=2,re=3,b=4;function j(d,H){return d.msg=_[H],H}function P(d){return(d<<1)-(4<d?9:0)}function U(d){for(var H=d.length;0<=--H;)d[H]=0}function T(d){var H=d.state,F=H.pending;F>d.avail_out&&(F=d.avail_out),F!==0&&(s.arraySet(d.output,H.pending_buf,H.pending_out,F,d.next_out),d.next_out+=F,H.pending_out+=F,d.total_out+=F,d.avail_out-=F,H.pending-=F,H.pending===0&&(H.pending_out=0))}function z(d,H){l._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,H),d.block_start=d.strstart,T(d.strm)}function J(d,H){d.pending_buf[d.pending++]=H}function K(d,H){d.pending_buf[d.pending++]=H>>>8&255,d.pending_buf[d.pending++]=255&H}function Q(d,H){var F,E,x=d.max_chain_length,R=d.strstart,V=d.prev_length,Z=d.nice_match,O=d.strstart>d.w_size-te?d.strstart-(d.w_size-te):0,Y=d.window,q=d.w_mask,X=d.prev,ne=d.strstart+$,ge=Y[R+V-1],ue=Y[R+V];d.prev_length>=d.good_match&&(x>>=2),Z>d.lookahead&&(Z=d.lookahead);do if(Y[(F=H)+V]===ue&&Y[F+V-1]===ge&&Y[F]===Y[R]&&Y[++F]===Y[R+1]){R+=2,F++;do;while(Y[++R]===Y[++F]&&Y[++R]===Y[++F]&&Y[++R]===Y[++F]&&Y[++R]===Y[++F]&&Y[++R]===Y[++F]&&Y[++R]===Y[++F]&&Y[++R]===Y[++F]&&Y[++R]===Y[++F]&&R<ne);if(E=$-(ne-R),R=ne-$,V<E){if(d.match_start=H,Z<=(V=E))break;ge=Y[R+V-1],ue=Y[R+V]}}while((H=X[H&q])>O&&--x!=0);return V<=d.lookahead?V:d.lookahead}function se(d){var H,F,E,x,R,V,Z,O,Y,q,X=d.w_size;do{if(x=d.window_size-d.lookahead-d.strstart,d.strstart>=X+(X-te)){for(s.arraySet(d.window,d.window,X,X,0),d.match_start-=X,d.strstart-=X,d.block_start-=X,H=F=d.hash_size;E=d.head[--H],d.head[H]=X<=E?E-X:0,--F;);for(H=F=X;E=d.prev[--H],d.prev[H]=X<=E?E-X:0,--F;);x+=X}if(d.strm.avail_in===0)break;if(V=d.strm,Z=d.window,O=d.strstart+d.lookahead,Y=x,q=void 0,q=V.avail_in,Y<q&&(q=Y),F=q===0?0:(V.avail_in-=q,s.arraySet(Z,V.input,V.next_in,q,O),V.state.wrap===1?V.adler=a(V.adler,Z,q,O):V.state.wrap===2&&(V.adler=f(V.adler,Z,q,O)),V.next_in+=q,V.total_in+=q,q),d.lookahead+=F,d.lookahead+d.insert>=D)for(R=d.strstart-d.insert,d.ins_h=d.window[R],d.ins_h=(d.ins_h<<d.hash_shift^d.window[R+1])&d.hash_mask;d.insert&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[R+D-1])&d.hash_mask,d.prev[R&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=R,R++,d.insert--,!(d.lookahead+d.insert<D)););}while(d.lookahead<te&&d.strm.avail_in!==0)}function oe(d,H){for(var F,E;;){if(d.lookahead<te){if(se(d),d.lookahead<te&&H===v)return y;if(d.lookahead===0)break}if(F=0,d.lookahead>=D&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),F!==0&&d.strstart-F<=d.w_size-te&&(d.match_length=Q(d,F)),d.match_length>=D)if(E=l._tr_tally(d,d.strstart-d.match_start,d.match_length-D),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=D){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart,--d.match_length!=0;);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else E=l._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(E&&(z(d,!1),d.strm.avail_out===0))return y}return d.insert=d.strstart<D-1?d.strstart:D-1,H===m?(z(d,!0),d.strm.avail_out===0?re:b):d.last_lit&&(z(d,!1),d.strm.avail_out===0)?y:W}function ie(d,H){for(var F,E,x;;){if(d.lookahead<te){if(se(d),d.lookahead<te&&H===v)return y;if(d.lookahead===0)break}if(F=0,d.lookahead>=D&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=D-1,F!==0&&d.prev_length<d.max_lazy_match&&d.strstart-F<=d.w_size-te&&(d.match_length=Q(d,F),d.match_length<=5&&(d.strategy===1||d.match_length===D&&4096<d.strstart-d.match_start)&&(d.match_length=D-1)),d.prev_length>=D&&d.match_length<=d.prev_length){for(x=d.strstart+d.lookahead-D,E=l._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-D),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=x&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),--d.prev_length!=0;);if(d.match_available=0,d.match_length=D-1,d.strstart++,E&&(z(d,!1),d.strm.avail_out===0))return y}else if(d.match_available){if((E=l._tr_tally(d,0,d.window[d.strstart-1]))&&z(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return y}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(E=l._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<D-1?d.strstart:D-1,H===m?(z(d,!0),d.strm.avail_out===0?re:b):d.last_lit&&(z(d,!1),d.strm.avail_out===0)?y:W}function le(d,H,F,E,x){this.good_length=d,this.max_lazy=H,this.nice_length=F,this.max_chain=E,this.func=x}function he(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*I),this.dyn_dtree=new s.Buf16(2*(2*C+1)),this.bl_tree=new s.Buf16(2*(2*A+1)),U(this.dyn_ltree),U(this.dyn_dtree),U(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(L+1),this.heap=new s.Buf16(2*S+1),U(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*S+1),U(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function me(d){var H;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=u,(H=d.state).pending=0,H.pending_out=0,H.wrap<0&&(H.wrap=-H.wrap),H.status=H.wrap?N:B,d.adler=H.wrap===2?0:1,H.last_flush=v,l._tr_init(H),p):j(d,w)}function wt(d){var H=me(d);return H===p&&function(F){F.window_size=2*F.w_size,U(F.head),F.max_lazy_match=o[F.level].max_lazy,F.good_match=o[F.level].good_length,F.nice_match=o[F.level].nice_length,F.max_chain_length=o[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=D-1,F.match_available=0,F.ins_h=0}(d.state),H}function ft(d,H,F,E,x,R){if(!d)return w;var V=1;if(H===h&&(H=6),E<0?(V=0,E=-E):15<E&&(V=2,E-=16),x<1||g<x||F!==c||E<8||15<E||H<0||9<H||R<0||k<R)return j(d,w);E===8&&(E=9);var Z=new he;return(d.state=Z).strm=d,Z.wrap=V,Z.gzhead=null,Z.w_bits=E,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=x+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+D-1)/D),Z.window=new s.Buf8(2*Z.w_size),Z.head=new s.Buf16(Z.hash_size),Z.prev=new s.Buf16(Z.w_size),Z.lit_bufsize=1<<x+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new s.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=H,Z.strategy=R,Z.method=F,wt(d)}o=[new le(0,0,0,0,function(d,H){var F=65535;for(F>d.pending_buf_size-5&&(F=d.pending_buf_size-5);;){if(d.lookahead<=1){if(se(d),d.lookahead===0&&H===v)return y;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var E=d.block_start+F;if((d.strstart===0||d.strstart>=E)&&(d.lookahead=d.strstart-E,d.strstart=E,z(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-te&&(z(d,!1),d.strm.avail_out===0))return y}return d.insert=0,H===m?(z(d,!0),d.strm.avail_out===0?re:b):(d.strstart>d.block_start&&(z(d,!1),d.strm.avail_out),y)}),new le(4,4,8,4,oe),new le(4,5,16,8,oe),new le(4,6,32,32,oe),new le(4,4,16,16,ie),new le(8,16,32,32,ie),new le(8,16,128,128,ie),new le(8,32,128,256,ie),new le(32,128,258,1024,ie),new le(32,258,258,4096,ie)],i.deflateInit=function(d,H){return ft(d,H,c,15,8,0)},i.deflateInit2=ft,i.deflateReset=wt,i.deflateResetKeep=me,i.deflateSetHeader=function(d,H){return d&&d.state?d.state.wrap!==2?w:(d.state.gzhead=H,p):w},i.deflate=function(d,H){var F,E,x,R;if(!d||!d.state||5<H||H<0)return d?j(d,w):w;if(E=d.state,!d.output||!d.input&&d.avail_in!==0||E.status===666&&H!==m)return j(d,d.avail_out===0?-5:w);if(E.strm=d,F=E.last_flush,E.last_flush=H,E.status===N)if(E.wrap===2)d.adler=0,J(E,31),J(E,139),J(E,8),E.gzhead?(J(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),J(E,255&E.gzhead.time),J(E,E.gzhead.time>>8&255),J(E,E.gzhead.time>>16&255),J(E,E.gzhead.time>>24&255),J(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),J(E,255&E.gzhead.os),E.gzhead.extra&&E.gzhead.extra.length&&(J(E,255&E.gzhead.extra.length),J(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(d.adler=f(d.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=69):(J(E,0),J(E,0),J(E,0),J(E,0),J(E,0),J(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),J(E,3),E.status=B);else{var V=c+(E.w_bits-8<<4)<<8;V|=(2<=E.strategy||E.level<2?0:E.level<6?1:E.level===6?2:3)<<6,E.strstart!==0&&(V|=32),V+=31-V%31,E.status=B,K(E,V),E.strstart!==0&&(K(E,d.adler>>>16),K(E,65535&d.adler)),d.adler=1}if(E.status===69)if(E.gzhead.extra){for(x=E.pending;E.gzindex<(65535&E.gzhead.extra.length)&&(E.pending!==E.pending_buf_size||(E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),T(d),x=E.pending,E.pending!==E.pending_buf_size));)J(E,255&E.gzhead.extra[E.gzindex]),E.gzindex++;E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),E.gzindex===E.gzhead.extra.length&&(E.gzindex=0,E.status=73)}else E.status=73;if(E.status===73)if(E.gzhead.name){x=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),T(d),x=E.pending,E.pending===E.pending_buf_size)){R=1;break}R=E.gzindex<E.gzhead.name.length?255&E.gzhead.name.charCodeAt(E.gzindex++):0,J(E,R)}while(R!==0);E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),R===0&&(E.gzindex=0,E.status=91)}else E.status=91;if(E.status===91)if(E.gzhead.comment){x=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),T(d),x=E.pending,E.pending===E.pending_buf_size)){R=1;break}R=E.gzindex<E.gzhead.comment.length?255&E.gzhead.comment.charCodeAt(E.gzindex++):0,J(E,R)}while(R!==0);E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),R===0&&(E.status=103)}else E.status=103;if(E.status===103&&(E.gzhead.hcrc?(E.pending+2>E.pending_buf_size&&T(d),E.pending+2<=E.pending_buf_size&&(J(E,255&d.adler),J(E,d.adler>>8&255),d.adler=0,E.status=B)):E.status=B),E.pending!==0){if(T(d),d.avail_out===0)return E.last_flush=-1,p}else if(d.avail_in===0&&P(H)<=P(F)&&H!==m)return j(d,-5);if(E.status===666&&d.avail_in!==0)return j(d,-5);if(d.avail_in!==0||E.lookahead!==0||H!==v&&E.status!==666){var Z=E.strategy===2?function(O,Y){for(var q;;){if(O.lookahead===0&&(se(O),O.lookahead===0)){if(Y===v)return y;break}if(O.match_length=0,q=l._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++,q&&(z(O,!1),O.strm.avail_out===0))return y}return O.insert=0,Y===m?(z(O,!0),O.strm.avail_out===0?re:b):O.last_lit&&(z(O,!1),O.strm.avail_out===0)?y:W}(E,H):E.strategy===3?function(O,Y){for(var q,X,ne,ge,ue=O.window;;){if(O.lookahead<=$){if(se(O),O.lookahead<=$&&Y===v)return y;if(O.lookahead===0)break}if(O.match_length=0,O.lookahead>=D&&0<O.strstart&&(X=ue[ne=O.strstart-1])===ue[++ne]&&X===ue[++ne]&&X===ue[++ne]){ge=O.strstart+$;do;while(X===ue[++ne]&&X===ue[++ne]&&X===ue[++ne]&&X===ue[++ne]&&X===ue[++ne]&&X===ue[++ne]&&X===ue[++ne]&&X===ue[++ne]&&ne<ge);O.match_length=$-(ge-ne),O.match_length>O.lookahead&&(O.match_length=O.lookahead)}if(O.match_length>=D?(q=l._tr_tally(O,1,O.match_length-D),O.lookahead-=O.match_length,O.strstart+=O.match_length,O.match_length=0):(q=l._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++),q&&(z(O,!1),O.strm.avail_out===0))return y}return O.insert=0,Y===m?(z(O,!0),O.strm.avail_out===0?re:b):O.last_lit&&(z(O,!1),O.strm.avail_out===0)?y:W}(E,H):o[E.level].func(E,H);if(Z!==re&&Z!==b||(E.status=666),Z===y||Z===re)return d.avail_out===0&&(E.last_flush=-1),p;if(Z===W&&(H===1?l._tr_align(E):H!==5&&(l._tr_stored_block(E,0,0,!1),H===3&&(U(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),T(d),d.avail_out===0))return E.last_flush=-1,p}return H!==m?p:E.wrap<=0?1:(E.wrap===2?(J(E,255&d.adler),J(E,d.adler>>8&255),J(E,d.adler>>16&255),J(E,d.adler>>24&255),J(E,255&d.total_in),J(E,d.total_in>>8&255),J(E,d.total_in>>16&255),J(E,d.total_in>>24&255)):(K(E,d.adler>>>16),K(E,65535&d.adler)),T(d),0<E.wrap&&(E.wrap=-E.wrap),E.pending!==0?p:1)},i.deflateEnd=function(d){var H;return d&&d.state?(H=d.state.status)!==N&&H!==69&&H!==73&&H!==91&&H!==103&&H!==B&&H!==666?j(d,w):(d.state=null,H===B?j(d,-3):p):w},i.deflateSetDictionary=function(d,H){var F,E,x,R,V,Z,O,Y,q=H.length;if(!d||!d.state||(R=(F=d.state).wrap)===2||R===1&&F.status!==N||F.lookahead)return w;for(R===1&&(d.adler=a(d.adler,H,q,0)),F.wrap=0,q>=F.w_size&&(R===0&&(U(F.head),F.strstart=0,F.block_start=0,F.insert=0),Y=new s.Buf8(F.w_size),s.arraySet(Y,H,q-F.w_size,F.w_size,0),H=Y,q=F.w_size),V=d.avail_in,Z=d.next_in,O=d.input,d.avail_in=q,d.next_in=0,d.input=H,se(F);F.lookahead>=D;){for(E=F.strstart,x=F.lookahead-(D-1);F.ins_h=(F.ins_h<<F.hash_shift^F.window[E+D-1])&F.hash_mask,F.prev[E&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=E,E++,--x;);F.strstart=E,F.lookahead=D-1,se(F)}return F.strstart+=F.lookahead,F.block_start=F.strstart,F.insert=F.lookahead,F.lookahead=0,F.match_length=F.prev_length=D-1,F.match_available=0,d.next_in=Z,d.input=O,d.avail_in=V,F.wrap=R,p},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){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}},{}],48:[function(n,r,i){r.exports=function(o,s){var l,a,f,_,v,m,p,w,h,k,u,c,g,S,C,A,I,L,D,$,te,N,B,y,W;l=o.state,a=o.next_in,y=o.input,f=a+(o.avail_in-5),_=o.next_out,W=o.output,v=_-(s-o.avail_out),m=_+(o.avail_out-257),p=l.dmax,w=l.wsize,h=l.whave,k=l.wnext,u=l.window,c=l.hold,g=l.bits,S=l.lencode,C=l.distcode,A=(1<<l.lenbits)-1,I=(1<<l.distbits)-1;e:do{g<15&&(c+=y[a++]<<g,g+=8,c+=y[a++]<<g,g+=8),L=S[c&A];t:for(;;){if(c>>>=D=L>>>24,g-=D,(D=L>>>16&255)===0)W[_++]=65535&L;else{if(!(16&D)){if(!(64&D)){L=S[(65535&L)+(c&(1<<D)-1)];continue t}if(32&D){l.mode=12;break e}o.msg="invalid literal/length code",l.mode=30;break e}$=65535&L,(D&=15)&&(g<D&&(c+=y[a++]<<g,g+=8),$+=c&(1<<D)-1,c>>>=D,g-=D),g<15&&(c+=y[a++]<<g,g+=8,c+=y[a++]<<g,g+=8),L=C[c&I];n:for(;;){if(c>>>=D=L>>>24,g-=D,!(16&(D=L>>>16&255))){if(!(64&D)){L=C[(65535&L)+(c&(1<<D)-1)];continue n}o.msg="invalid distance code",l.mode=30;break e}if(te=65535&L,g<(D&=15)&&(c+=y[a++]<<g,(g+=8)<D&&(c+=y[a++]<<g,g+=8)),p<(te+=c&(1<<D)-1)){o.msg="invalid distance too far back",l.mode=30;break e}if(c>>>=D,g-=D,(D=_-v)<te){if(h<(D=te-D)&&l.sane){o.msg="invalid distance too far back",l.mode=30;break e}if(B=u,(N=0)===k){if(N+=w-D,D<$){for($-=D;W[_++]=u[N++],--D;);N=_-te,B=W}}else if(k<D){if(N+=w+k-D,(D-=k)<$){for($-=D;W[_++]=u[N++],--D;);if(N=0,k<$){for($-=D=k;W[_++]=u[N++],--D;);N=_-te,B=W}}}else if(N+=k-D,D<$){for($-=D;W[_++]=u[N++],--D;);N=_-te,B=W}for(;2<$;)W[_++]=B[N++],W[_++]=B[N++],W[_++]=B[N++],$-=3;$&&(W[_++]=B[N++],1<$&&(W[_++]=B[N++]))}else{for(N=_-te;W[_++]=W[N++],W[_++]=W[N++],W[_++]=W[N++],2<($-=3););$&&(W[_++]=W[N++],1<$&&(W[_++]=W[N++]))}break}}break}}while(a<f&&_<m);a-=$=g>>3,c&=(1<<(g-=$<<3))-1,o.next_in=a,o.next_out=_,o.avail_in=a<f?f-a+5:5-(a-f),o.avail_out=_<m?m-_+257:257-(_-m),l.hold=c,l.bits=g}},{}],49:[function(n,r,i){var o=n("../utils/common"),s=n("./adler32"),l=n("./crc32"),a=n("./inffast"),f=n("./inftrees"),_=1,v=2,m=0,p=-2,w=1,h=852,k=592;function u(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function c(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(N){var B;return N&&N.state?(B=N.state,N.total_in=N.total_out=B.total=0,N.msg="",B.wrap&&(N.adler=1&B.wrap),B.mode=w,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new o.Buf32(h),B.distcode=B.distdyn=new o.Buf32(k),B.sane=1,B.back=-1,m):p}function S(N){var B;return N&&N.state?((B=N.state).wsize=0,B.whave=0,B.wnext=0,g(N)):p}function C(N,B){var y,W;return N&&N.state?(W=N.state,B<0?(y=0,B=-B):(y=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?p:(W.window!==null&&W.wbits!==B&&(W.window=null),W.wrap=y,W.wbits=B,S(N))):p}function A(N,B){var y,W;return N?(W=new c,(N.state=W).window=null,(y=C(N,B))!==m&&(N.state=null),y):p}var I,L,D=!0;function $(N){if(D){var B;for(I=new o.Buf32(512),L=new o.Buf32(32),B=0;B<144;)N.lens[B++]=8;for(;B<256;)N.lens[B++]=9;for(;B<280;)N.lens[B++]=7;for(;B<288;)N.lens[B++]=8;for(f(_,N.lens,0,288,I,0,N.work,{bits:9}),B=0;B<32;)N.lens[B++]=5;f(v,N.lens,0,32,L,0,N.work,{bits:5}),D=!1}N.lencode=I,N.lenbits=9,N.distcode=L,N.distbits=5}function te(N,B,y,W){var re,b=N.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new o.Buf8(b.wsize)),W>=b.wsize?(o.arraySet(b.window,B,y-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(W<(re=b.wsize-b.wnext)&&(re=W),o.arraySet(b.window,B,y-W,re,b.wnext),(W-=re)?(o.arraySet(b.window,B,y-W,W,0),b.wnext=W,b.whave=b.wsize):(b.wnext+=re,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=re))),0}i.inflateReset=S,i.inflateReset2=C,i.inflateResetKeep=g,i.inflateInit=function(N){return A(N,15)},i.inflateInit2=A,i.inflate=function(N,B){var y,W,re,b,j,P,U,T,z,J,K,Q,se,oe,ie,le,he,me,wt,ft,d,H,F,E,x=0,R=new o.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return p;(y=N.state).mode===12&&(y.mode=13),j=N.next_out,re=N.output,U=N.avail_out,b=N.next_in,W=N.input,P=N.avail_in,T=y.hold,z=y.bits,J=P,K=U,H=m;e:for(;;)switch(y.mode){case w:if(y.wrap===0){y.mode=13;break}for(;z<16;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(2&y.wrap&&T===35615){R[y.check=0]=255&T,R[1]=T>>>8&255,y.check=l(y.check,R,2,0),z=T=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&T)<<8)+(T>>8))%31){N.msg="incorrect header check",y.mode=30;break}if((15&T)!=8){N.msg="unknown compression method",y.mode=30;break}if(z-=4,d=8+(15&(T>>>=4)),y.wbits===0)y.wbits=d;else if(d>y.wbits){N.msg="invalid window size",y.mode=30;break}y.dmax=1<<d,N.adler=y.check=1,y.mode=512&T?10:12,z=T=0;break;case 2:for(;z<16;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(y.flags=T,(255&y.flags)!=8){N.msg="unknown compression method",y.mode=30;break}if(57344&y.flags){N.msg="unknown header flags set",y.mode=30;break}y.head&&(y.head.text=T>>8&1),512&y.flags&&(R[0]=255&T,R[1]=T>>>8&255,y.check=l(y.check,R,2,0)),z=T=0,y.mode=3;case 3:for(;z<32;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}y.head&&(y.head.time=T),512&y.flags&&(R[0]=255&T,R[1]=T>>>8&255,R[2]=T>>>16&255,R[3]=T>>>24&255,y.check=l(y.check,R,4,0)),z=T=0,y.mode=4;case 4:for(;z<16;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}y.head&&(y.head.xflags=255&T,y.head.os=T>>8),512&y.flags&&(R[0]=255&T,R[1]=T>>>8&255,y.check=l(y.check,R,2,0)),z=T=0,y.mode=5;case 5:if(1024&y.flags){for(;z<16;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}y.length=T,y.head&&(y.head.extra_len=T),512&y.flags&&(R[0]=255&T,R[1]=T>>>8&255,y.check=l(y.check,R,2,0)),z=T=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(P<(Q=y.length)&&(Q=P),Q&&(y.head&&(d=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),o.arraySet(y.head.extra,W,b,Q,d)),512&y.flags&&(y.check=l(y.check,W,Q,b)),P-=Q,b+=Q,y.length-=Q),y.length))break e;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(P===0)break e;for(Q=0;d=W[b+Q++],y.head&&d&&y.length<65536&&(y.head.name+=String.fromCharCode(d)),d&&Q<P;);if(512&y.flags&&(y.check=l(y.check,W,Q,b)),P-=Q,b+=Q,d)break e}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(P===0)break e;for(Q=0;d=W[b+Q++],y.head&&d&&y.length<65536&&(y.head.comment+=String.fromCharCode(d)),d&&Q<P;);if(512&y.flags&&(y.check=l(y.check,W,Q,b)),P-=Q,b+=Q,d)break e}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;z<16;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(T!==(65535&y.check)){N.msg="header crc mismatch",y.mode=30;break}z=T=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),N.adler=y.check=0,y.mode=12;break;case 10:for(;z<32;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}N.adler=y.check=u(T),z=T=0,y.mode=11;case 11:if(y.havedict===0)return N.next_out=j,N.avail_out=U,N.next_in=b,N.avail_in=P,y.hold=T,y.bits=z,2;N.adler=y.check=1,y.mode=12;case 12:if(B===5||B===6)break e;case 13:if(y.last){T>>>=7&z,z-=7&z,y.mode=27;break}for(;z<3;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}switch(y.last=1&T,z-=1,3&(T>>>=1)){case 0:y.mode=14;break;case 1:if($(y),y.mode=20,B!==6)break;T>>>=2,z-=2;break e;case 2:y.mode=17;break;case 3:N.msg="invalid block type",y.mode=30}T>>>=2,z-=2;break;case 14:for(T>>>=7&z,z-=7&z;z<32;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if((65535&T)!=(T>>>16^65535)){N.msg="invalid stored block lengths",y.mode=30;break}if(y.length=65535&T,z=T=0,y.mode=15,B===6)break e;case 15:y.mode=16;case 16:if(Q=y.length){if(P<Q&&(Q=P),U<Q&&(Q=U),Q===0)break e;o.arraySet(re,W,b,Q,j),P-=Q,b+=Q,U-=Q,j+=Q,y.length-=Q;break}y.mode=12;break;case 17:for(;z<14;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(y.nlen=257+(31&T),T>>>=5,z-=5,y.ndist=1+(31&T),T>>>=5,z-=5,y.ncode=4+(15&T),T>>>=4,z-=4,286<y.nlen||30<y.ndist){N.msg="too many length or distance symbols",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;z<3;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}y.lens[V[y.have++]]=7&T,T>>>=3,z-=3}for(;y.have<19;)y.lens[V[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,F={bits:y.lenbits},H=f(0,y.lens,0,19,y.lencode,0,y.work,F),y.lenbits=F.bits,H){N.msg="invalid code lengths set",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;le=(x=y.lencode[T&(1<<y.lenbits)-1])>>>16&255,he=65535&x,!((ie=x>>>24)<=z);){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(he<16)T>>>=ie,z-=ie,y.lens[y.have++]=he;else{if(he===16){for(E=ie+2;z<E;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(T>>>=ie,z-=ie,y.have===0){N.msg="invalid bit length repeat",y.mode=30;break}d=y.lens[y.have-1],Q=3+(3&T),T>>>=2,z-=2}else if(he===17){for(E=ie+3;z<E;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}z-=ie,d=0,Q=3+(7&(T>>>=ie)),T>>>=3,z-=3}else{for(E=ie+7;z<E;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}z-=ie,d=0,Q=11+(127&(T>>>=ie)),T>>>=7,z-=7}if(y.have+Q>y.nlen+y.ndist){N.msg="invalid bit length repeat",y.mode=30;break}for(;Q--;)y.lens[y.have++]=d}}if(y.mode===30)break;if(y.lens[256]===0){N.msg="invalid code -- missing end-of-block",y.mode=30;break}if(y.lenbits=9,F={bits:y.lenbits},H=f(_,y.lens,0,y.nlen,y.lencode,0,y.work,F),y.lenbits=F.bits,H){N.msg="invalid literal/lengths set",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,F={bits:y.distbits},H=f(v,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,F),y.distbits=F.bits,H){N.msg="invalid distances set",y.mode=30;break}if(y.mode=20,B===6)break e;case 20:y.mode=21;case 21:if(6<=P&&258<=U){N.next_out=j,N.avail_out=U,N.next_in=b,N.avail_in=P,y.hold=T,y.bits=z,a(N,K),j=N.next_out,re=N.output,U=N.avail_out,b=N.next_in,W=N.input,P=N.avail_in,T=y.hold,z=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;le=(x=y.lencode[T&(1<<y.lenbits)-1])>>>16&255,he=65535&x,!((ie=x>>>24)<=z);){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(le&&!(240&le)){for(me=ie,wt=le,ft=he;le=(x=y.lencode[ft+((T&(1<<me+wt)-1)>>me)])>>>16&255,he=65535&x,!(me+(ie=x>>>24)<=z);){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}T>>>=me,z-=me,y.back+=me}if(T>>>=ie,z-=ie,y.back+=ie,y.length=he,le===0){y.mode=26;break}if(32&le){y.back=-1,y.mode=12;break}if(64&le){N.msg="invalid literal/length code",y.mode=30;break}y.extra=15&le,y.mode=22;case 22:if(y.extra){for(E=y.extra;z<E;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}y.length+=T&(1<<y.extra)-1,T>>>=y.extra,z-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;le=(x=y.distcode[T&(1<<y.distbits)-1])>>>16&255,he=65535&x,!((ie=x>>>24)<=z);){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(!(240&le)){for(me=ie,wt=le,ft=he;le=(x=y.distcode[ft+((T&(1<<me+wt)-1)>>me)])>>>16&255,he=65535&x,!(me+(ie=x>>>24)<=z);){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}T>>>=me,z-=me,y.back+=me}if(T>>>=ie,z-=ie,y.back+=ie,64&le){N.msg="invalid distance code",y.mode=30;break}y.offset=he,y.extra=15&le,y.mode=24;case 24:if(y.extra){for(E=y.extra;z<E;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}y.offset+=T&(1<<y.extra)-1,T>>>=y.extra,z-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){N.msg="invalid distance too far back",y.mode=30;break}y.mode=25;case 25:if(U===0)break e;if(Q=K-U,y.offset>Q){if((Q=y.offset-Q)>y.whave&&y.sane){N.msg="invalid distance too far back",y.mode=30;break}se=Q>y.wnext?(Q-=y.wnext,y.wsize-Q):y.wnext-Q,Q>y.length&&(Q=y.length),oe=y.window}else oe=re,se=j-y.offset,Q=y.length;for(U<Q&&(Q=U),U-=Q,y.length-=Q;re[j++]=oe[se++],--Q;);y.length===0&&(y.mode=21);break;case 26:if(U===0)break e;re[j++]=y.length,U--,y.mode=21;break;case 27:if(y.wrap){for(;z<32;){if(P===0)break e;P--,T|=W[b++]<<z,z+=8}if(K-=U,N.total_out+=K,y.total+=K,K&&(N.adler=y.check=y.flags?l(y.check,re,K,j-K):s(y.check,re,K,j-K)),K=U,(y.flags?T:u(T))!==y.check){N.msg="incorrect data check",y.mode=30;break}z=T=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;z<32;){if(P===0)break e;P--,T+=W[b++]<<z,z+=8}if(T!==(4294967295&y.total)){N.msg="incorrect length check",y.mode=30;break}z=T=0}y.mode=29;case 29:H=1;break e;case 30:H=-3;break e;case 31:return-4;case 32:default:return p}return N.next_out=j,N.avail_out=U,N.next_in=b,N.avail_in=P,y.hold=T,y.bits=z,(y.wsize||K!==N.avail_out&&y.mode<30&&(y.mode<27||B!==4))&&te(N,N.output,N.next_out,K-N.avail_out)?(y.mode=31,-4):(J-=N.avail_in,K-=N.avail_out,N.total_in+=J,N.total_out+=K,y.total+=K,y.wrap&&K&&(N.adler=y.check=y.flags?l(y.check,re,K,N.next_out-K):s(y.check,re,K,N.next_out-K)),N.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(J==0&&K===0||B===4)&&H===m&&(H=-5),H)},i.inflateEnd=function(N){if(!N||!N.state)return p;var B=N.state;return B.window&&(B.window=null),N.state=null,m},i.inflateGetHeader=function(N,B){var y;return N&&N.state&&2&(y=N.state).wrap?((y.head=B).done=!1,m):p},i.inflateSetDictionary=function(N,B){var y,W=B.length;return N&&N.state?(y=N.state).wrap!==0&&y.mode!==11?p:y.mode===11&&s(1,B,W,0)!==y.check?-3:te(N,B,W,W)?(y.mode=31,-4):(y.havedict=1,m):p},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var o=n("../utils/common"),s=[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],l=[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],a=[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],f=[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];r.exports=function(_,v,m,p,w,h,k,u){var c,g,S,C,A,I,L,D,$,te=u.bits,N=0,B=0,y=0,W=0,re=0,b=0,j=0,P=0,U=0,T=0,z=null,J=0,K=new o.Buf16(16),Q=new o.Buf16(16),se=null,oe=0;for(N=0;N<=15;N++)K[N]=0;for(B=0;B<p;B++)K[v[m+B]]++;for(re=te,W=15;1<=W&&K[W]===0;W--);if(W<re&&(re=W),W===0)return w[h++]=20971520,w[h++]=20971520,u.bits=1,0;for(y=1;y<W&&K[y]===0;y++);for(re<y&&(re=y),N=P=1;N<=15;N++)if(P<<=1,(P-=K[N])<0)return-1;if(0<P&&(_===0||W!==1))return-1;for(Q[1]=0,N=1;N<15;N++)Q[N+1]=Q[N]+K[N];for(B=0;B<p;B++)v[m+B]!==0&&(k[Q[v[m+B]]++]=B);if(I=_===0?(z=se=k,19):_===1?(z=s,J-=257,se=l,oe-=257,256):(z=a,se=f,-1),N=y,A=h,j=B=T=0,S=-1,C=(U=1<<(b=re))-1,_===1&&852<U||_===2&&592<U)return 1;for(;;){for(L=N-j,$=k[B]<I?(D=0,k[B]):k[B]>I?(D=se[oe+k[B]],z[J+k[B]]):(D=96,0),c=1<<N-j,y=g=1<<b;w[A+(T>>j)+(g-=c)]=L<<24|D<<16|$|0,g!==0;);for(c=1<<N-1;T&c;)c>>=1;if(c!==0?(T&=c-1,T+=c):T=0,B++,--K[N]==0){if(N===W)break;N=v[m+k[B]]}if(re<N&&(T&C)!==S){for(j===0&&(j=re),A+=y,P=1<<(b=N-j);b+j<W&&!((P-=K[b+j])<=0);)b++,P<<=1;if(U+=1<<b,_===1&&852<U||_===2&&592<U)return 1;w[S=T&C]=re<<24|b<<16|A-h|0}}return T!==0&&(w[A+T]=N-j<<24|64<<16|0),u.bits=re,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={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"}},{}],52:[function(n,r,i){var o=n("../utils/common"),s=0,l=1;function a(x){for(var R=x.length;0<=--R;)x[R]=0}var f=0,_=29,v=256,m=v+1+_,p=30,w=19,h=2*m+1,k=15,u=16,c=7,g=256,S=16,C=17,A=18,I=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=new Array(2*(m+2));a(te);var N=new Array(2*p);a(N);var B=new Array(512);a(B);var y=new Array(256);a(y);var W=new Array(_);a(W);var re,b,j,P=new Array(p);function U(x,R,V,Z,O){this.static_tree=x,this.extra_bits=R,this.extra_base=V,this.elems=Z,this.max_length=O,this.has_stree=x&&x.length}function T(x,R){this.dyn_tree=x,this.max_code=0,this.stat_desc=R}function z(x){return x<256?B[x]:B[256+(x>>>7)]}function J(x,R){x.pending_buf[x.pending++]=255&R,x.pending_buf[x.pending++]=R>>>8&255}function K(x,R,V){x.bi_valid>u-V?(x.bi_buf|=R<<x.bi_valid&65535,J(x,x.bi_buf),x.bi_buf=R>>u-x.bi_valid,x.bi_valid+=V-u):(x.bi_buf|=R<<x.bi_valid&65535,x.bi_valid+=V)}function Q(x,R,V){K(x,V[2*R],V[2*R+1])}function se(x,R){for(var V=0;V|=1&x,x>>>=1,V<<=1,0<--R;);return V>>>1}function oe(x,R,V){var Z,O,Y=new Array(k+1),q=0;for(Z=1;Z<=k;Z++)Y[Z]=q=q+V[Z-1]<<1;for(O=0;O<=R;O++){var X=x[2*O+1];X!==0&&(x[2*O]=se(Y[X]++,X))}}function ie(x){var R;for(R=0;R<m;R++)x.dyn_ltree[2*R]=0;for(R=0;R<p;R++)x.dyn_dtree[2*R]=0;for(R=0;R<w;R++)x.bl_tree[2*R]=0;x.dyn_ltree[2*g]=1,x.opt_len=x.static_len=0,x.last_lit=x.matches=0}function le(x){8<x.bi_valid?J(x,x.bi_buf):0<x.bi_valid&&(x.pending_buf[x.pending++]=x.bi_buf),x.bi_buf=0,x.bi_valid=0}function he(x,R,V,Z){var O=2*R,Y=2*V;return x[O]<x[Y]||x[O]===x[Y]&&Z[R]<=Z[V]}function me(x,R,V){for(var Z=x.heap[V],O=V<<1;O<=x.heap_len&&(O<x.heap_len&&he(R,x.heap[O+1],x.heap[O],x.depth)&&O++,!he(R,Z,x.heap[O],x.depth));)x.heap[V]=x.heap[O],V=O,O<<=1;x.heap[V]=Z}function wt(x,R,V){var Z,O,Y,q,X=0;if(x.last_lit!==0)for(;Z=x.pending_buf[x.d_buf+2*X]<<8|x.pending_buf[x.d_buf+2*X+1],O=x.pending_buf[x.l_buf+X],X++,Z===0?Q(x,O,R):(Q(x,(Y=y[O])+v+1,R),(q=I[Y])!==0&&K(x,O-=W[Y],q),Q(x,Y=z(--Z),V),(q=L[Y])!==0&&K(x,Z-=P[Y],q)),X<x.last_lit;);Q(x,g,R)}function ft(x,R){var V,Z,O,Y=R.dyn_tree,q=R.stat_desc.static_tree,X=R.stat_desc.has_stree,ne=R.stat_desc.elems,ge=-1;for(x.heap_len=0,x.heap_max=h,V=0;V<ne;V++)Y[2*V]!==0?(x.heap[++x.heap_len]=ge=V,x.depth[V]=0):Y[2*V+1]=0;for(;x.heap_len<2;)Y[2*(O=x.heap[++x.heap_len]=ge<2?++ge:0)]=1,x.depth[O]=0,x.opt_len--,X&&(x.static_len-=q[2*O+1]);for(R.max_code=ge,V=x.heap_len>>1;1<=V;V--)me(x,Y,V);for(O=ne;V=x.heap[1],x.heap[1]=x.heap[x.heap_len--],me(x,Y,1),Z=x.heap[1],x.heap[--x.heap_max]=V,x.heap[--x.heap_max]=Z,Y[2*O]=Y[2*V]+Y[2*Z],x.depth[O]=(x.depth[V]>=x.depth[Z]?x.depth[V]:x.depth[Z])+1,Y[2*V+1]=Y[2*Z+1]=O,x.heap[1]=O++,me(x,Y,1),2<=x.heap_len;);x.heap[--x.heap_max]=x.heap[1],function(ue,rt){var dr,_t,hr,Ce,gi,Zo,Tt=rt.dyn_tree,ya=rt.max_code,Dd=rt.stat_desc.static_tree,bd=rt.stat_desc.has_stree,Fd=rt.stat_desc.extra_bits,wa=rt.stat_desc.extra_base,pr=rt.stat_desc.max_length,vi=0;for(Ce=0;Ce<=k;Ce++)ue.bl_count[Ce]=0;for(Tt[2*ue.heap[ue.heap_max]+1]=0,dr=ue.heap_max+1;dr<h;dr++)pr<(Ce=Tt[2*Tt[2*(_t=ue.heap[dr])+1]+1]+1)&&(Ce=pr,vi++),Tt[2*_t+1]=Ce,ya<_t||(ue.bl_count[Ce]++,gi=0,wa<=_t&&(gi=Fd[_t-wa]),Zo=Tt[2*_t],ue.opt_len+=Zo*(Ce+gi),bd&&(ue.static_len+=Zo*(Dd[2*_t+1]+gi)));if(vi!==0){do{for(Ce=pr-1;ue.bl_count[Ce]===0;)Ce--;ue.bl_count[Ce]--,ue.bl_count[Ce+1]+=2,ue.bl_count[pr]--,vi-=2}while(0<vi);for(Ce=pr;Ce!==0;Ce--)for(_t=ue.bl_count[Ce];_t!==0;)ya<(hr=ue.heap[--dr])||(Tt[2*hr+1]!==Ce&&(ue.opt_len+=(Ce-Tt[2*hr+1])*Tt[2*hr],Tt[2*hr+1]=Ce),_t--)}}(x,R),oe(Y,ge,x.bl_count)}function d(x,R,V){var Z,O,Y=-1,q=R[1],X=0,ne=7,ge=4;for(q===0&&(ne=138,ge=3),R[2*(V+1)+1]=65535,Z=0;Z<=V;Z++)O=q,q=R[2*(Z+1)+1],++X<ne&&O===q||(X<ge?x.bl_tree[2*O]+=X:O!==0?(O!==Y&&x.bl_tree[2*O]++,x.bl_tree[2*S]++):X<=10?x.bl_tree[2*C]++:x.bl_tree[2*A]++,Y=O,ge=(X=0)===q?(ne=138,3):O===q?(ne=6,3):(ne=7,4))}function H(x,R,V){var Z,O,Y=-1,q=R[1],X=0,ne=7,ge=4;for(q===0&&(ne=138,ge=3),Z=0;Z<=V;Z++)if(O=q,q=R[2*(Z+1)+1],!(++X<ne&&O===q)){if(X<ge)for(;Q(x,O,x.bl_tree),--X!=0;);else O!==0?(O!==Y&&(Q(x,O,x.bl_tree),X--),Q(x,S,x.bl_tree),K(x,X-3,2)):X<=10?(Q(x,C,x.bl_tree),K(x,X-3,3)):(Q(x,A,x.bl_tree),K(x,X-11,7));Y=O,ge=(X=0)===q?(ne=138,3):O===q?(ne=6,3):(ne=7,4)}}a(P);var F=!1;function E(x,R,V,Z){K(x,(f<<1)+(Z?1:0),3),function(O,Y,q,X){le(O),J(O,q),J(O,~q),o.arraySet(O.pending_buf,O.window,Y,q,O.pending),O.pending+=q}(x,R,V)}i._tr_init=function(x){F||(function(){var R,V,Z,O,Y,q=new Array(k+1);for(O=Z=0;O<_-1;O++)for(W[O]=Z,R=0;R<1<<I[O];R++)y[Z++]=O;for(y[Z-1]=O,O=Y=0;O<16;O++)for(P[O]=Y,R=0;R<1<<L[O];R++)B[Y++]=O;for(Y>>=7;O<p;O++)for(P[O]=Y<<7,R=0;R<1<<L[O]-7;R++)B[256+Y++]=O;for(V=0;V<=k;V++)q[V]=0;for(R=0;R<=143;)te[2*R+1]=8,R++,q[8]++;for(;R<=255;)te[2*R+1]=9,R++,q[9]++;for(;R<=279;)te[2*R+1]=7,R++,q[7]++;for(;R<=287;)te[2*R+1]=8,R++,q[8]++;for(oe(te,m+1,q),R=0;R<p;R++)N[2*R+1]=5,N[2*R]=se(R,5);re=new U(te,I,v+1,m,k),b=new U(N,L,0,p,k),j=new U(new Array(0),D,0,w,c)}(),F=!0),x.l_desc=new T(x.dyn_ltree,re),x.d_desc=new T(x.dyn_dtree,b),x.bl_desc=new T(x.bl_tree,j),x.bi_buf=0,x.bi_valid=0,ie(x)},i._tr_stored_block=E,i._tr_flush_block=function(x,R,V,Z){var O,Y,q=0;0<x.level?(x.strm.data_type===2&&(x.strm.data_type=function(X){var ne,ge=4093624447;for(ne=0;ne<=31;ne++,ge>>>=1)if(1&ge&&X.dyn_ltree[2*ne]!==0)return s;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return l;for(ne=32;ne<v;ne++)if(X.dyn_ltree[2*ne]!==0)return l;return s}(x)),ft(x,x.l_desc),ft(x,x.d_desc),q=function(X){var ne;for(d(X,X.dyn_ltree,X.l_desc.max_code),d(X,X.dyn_dtree,X.d_desc.max_code),ft(X,X.bl_desc),ne=w-1;3<=ne&&X.bl_tree[2*$[ne]+1]===0;ne--);return X.opt_len+=3*(ne+1)+5+5+4,ne}(x),O=x.opt_len+3+7>>>3,(Y=x.static_len+3+7>>>3)<=O&&(O=Y)):O=Y=V+5,V+4<=O&&R!==-1?E(x,R,V,Z):x.strategy===4||Y===O?(K(x,2+(Z?1:0),3),wt(x,te,N)):(K(x,4+(Z?1:0),3),function(X,ne,ge,ue){var rt;for(K(X,ne-257,5),K(X,ge-1,5),K(X,ue-4,4),rt=0;rt<ue;rt++)K(X,X.bl_tree[2*$[rt]+1],3);H(X,X.dyn_ltree,ne-1),H(X,X.dyn_dtree,ge-1)}(x,x.l_desc.max_code+1,x.d_desc.max_code+1,q+1),wt(x,x.dyn_ltree,x.dyn_dtree)),ie(x),Z&&le(x)},i._tr_tally=function(x,R,V){return x.pending_buf[x.d_buf+2*x.last_lit]=R>>>8&255,x.pending_buf[x.d_buf+2*x.last_lit+1]=255&R,x.pending_buf[x.l_buf+x.last_lit]=255&V,x.last_lit++,R===0?x.dyn_ltree[2*V]++:(x.matches++,R--,x.dyn_ltree[2*(y[V]+v+1)]++,x.dyn_dtree[2*z(R)]++),x.last_lit===x.lit_bufsize-1},i._tr_align=function(x){K(x,2,3),Q(x,g,te),function(R){R.bi_valid===16?(J(R,R.bi_buf),R.bi_buf=0,R.bi_valid=0):8<=R.bi_valid&&(R.pending_buf[R.pending++]=255&R.bi_buf,R.bi_buf>>=8,R.bi_valid-=8)}(x)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){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}},{}],54:[function(n,r,i){(function(o){(function(s,l){if(!s.setImmediate){var a,f,_,v,m=1,p={},w=!1,h=s.document,k=Object.getPrototypeOf&&Object.getPrototypeOf(s);k=k&&k.setTimeout?k:s,a={}.toString.call(s.process)==="[object process]"?function(S){process.nextTick(function(){c(S)})}:function(){if(s.postMessage&&!s.importScripts){var S=!0,C=s.onmessage;return s.onmessage=function(){S=!1},s.postMessage("","*"),s.onmessage=C,S}}()?(v="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",g,!1):s.attachEvent("onmessage",g),function(S){s.postMessage(v+S,"*")}):s.MessageChannel?((_=new MessageChannel).port1.onmessage=function(S){c(S.data)},function(S){_.port2.postMessage(S)}):h&&"onreadystatechange"in h.createElement("script")?(f=h.documentElement,function(S){var C=h.createElement("script");C.onreadystatechange=function(){c(S),C.onreadystatechange=null,f.removeChild(C),C=null},f.appendChild(C)}):function(S){setTimeout(c,0,S)},k.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var C=new Array(arguments.length-1),A=0;A<C.length;A++)C[A]=arguments[A+1];var I={callback:S,args:C};return p[m]=I,a(m),m++},k.clearImmediate=u}function u(S){delete p[S]}function c(S){if(w)setTimeout(c,0,S);else{var C=p[S];if(C){w=!0;try{(function(A){var I=A.callback,L=A.args;switch(L.length){case 0:I();break;case 1:I(L[0]);break;case 2:I(L[0],L[1]);break;case 3:I(L[0],L[1],L[2]);break;default:I.apply(l,L)}})(C)}finally{u(S),w=!1}}}}function g(S){S.source===s&&typeof S.data=="string"&&S.data.indexOf(v)===0&&c(+S.data.slice(v.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof yi<"u"?yi:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Xf);var Om=Xf.exports;const Lm=Du(Om);function $t(e){return{ok:!1,code:"invalid_type",expected:e}}const Jf=$t([]),qf=$t(["string"]),ed=$t(["number"]),Dm=$t(["bigint"]),td=$t(["boolean"]),nd=$t(["undefined"]),rd=$t(["null"]),bm=$t(["object"]),Fm=$t(["array"]),ha={ok:!1,code:"missing_value"};function Vn(e,t){return e?{ok:!1,code:"join",left:e,right:t}:t}function qn(e,t){return{ok:!1,code:"prepend",key:e,tree:t}}function Um(e,t){var n;const r=e.code;switch(r){case"invalid_type":return{code:r,path:t,expected:e.expected};case"invalid_literal":return{code:r,path:t,expected:e.expected};case"missing_value":return{code:r,path:t};case"invalid_length":return{code:r,path:t,minLength:e.minLength,maxLength:e.maxLength};case"unrecognized_keys":return{code:r,path:t,keys:e.keys};case"invalid_union":return{code:r,path:t,tree:e.tree,issues:Mo(e.tree)};case"custom_error":return typeof e.error=="object"&&e.error.path!==void 0&&t.push(...e.error.path),{code:r,path:t,message:typeof e.error=="string"?e.error:(n=e.error)===null||n===void 0?void 0:n.message,error:e.error}}}function Mo(e,t=[],n=[]){for(;;)if(e.code==="join")Mo(e.left,t.slice(),n),e=e.right;else if(e.code==="prepend")t.push(e.key),e=e.tree;else return n.push(Um(e,t)),n}function ws(e,t){return e.length===0?"nothing":e.length===1?e[0]:`${e.slice(0,-1).join(", ")} ${t} ${e[e.length-1]}`}function ju(e){return typeof e=="bigint"?`${e}n`:JSON.stringify(e)}function id(e){let t=0;for(;;)if(e.code==="join")t+=id(e.left),e=e.right;else if(e.code==="prepend")e=e.tree;else return t+1}function od(e){let t="",n=0;for(;;)if(e.code==="join")n+=id(e.right),e=e.left;else if(e.code==="prepend")t+=`.${e.key}`,e=e.tree;else break;let r="validation failed";if(e.code==="invalid_type")r=`expected ${ws(e.expected,"or")}`;else if(e.code==="invalid_literal")r=`expected ${ws(e.expected.map(ju),"or")}`;else if(e.code==="missing_value")r="missing value";else if(e.code==="unrecognized_keys"){const o=e.keys;r=`unrecognized ${o.length===1?"key":"keys"} ${ws(o.map(ju),"and")}`}else if(e.code==="invalid_length"){const o=e.minLength,s=e.maxLength;r="expected an array with ",o>0?s===o?r+=`${o}`:s!==void 0?r+=`between ${o} and ${s}`:r+=`at least ${o}`:r+=`at most ${s??"∞"}`,r+=" item(s)"}else if(e.code==="custom_error"){const o=e.error;typeof o=="string"?r=o:o!==void 0&&(o.message!==void 0&&(r=o.message),o.path!==void 0&&(t+="."+o.path.join(".")))}let i=`${e.code} at .${t.slice(1)} (${r})`;return n===1?i+=" (+ 1 other issue)":n>1&&(i+=` (+ ${n} other issues)`),i}function Ut(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:r,writable:!1}),n}class sd extends Error{constructor(t){super(od(t)),Object.setPrototypeOf(this,new.target.prototype),this.name=new.target.name,this._issueTree=t}get issues(){return Ut(this,"issues",Mo(this._issueTree),!0)}}class ld{constructor(t){this.ok=!1,this._issueTree=t}get issues(){return Ut(this,"issues",Mo(this._issueTree),!0)}get message(){return Ut(this,"message",od(this._issueTree),!0)}throw(){throw new sd(this._issueTree)}}function xn(e){return{ok:!0,value:e}}function Ur(e){return new ld({ok:!1,code:"custom_error",error:e})}function ad(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const wn=1,ii=2,Bo=4,ud=0,Mm=1,cd=2,fd=3,Bm=4,dd=5,hd=6,pd=7,md=8,gd=9,vd=10,yd=11,wd=12,_d=13,kd=14,Mt=(e,t)=>({tag:e,match:t});function Je(e,t,n){switch(e.tag){case ud:return;case Mm:return Jf;case cd:return typeof t=="string"?void 0:qf;case fd:return typeof t=="number"?void 0:ed;case Bm:return typeof t=="bigint"?void 0:Dm;case dd:return typeof t=="boolean"?void 0:td;case hd:return t===null?void 0:rd;case pd:return t===void 0?void 0:nd;case md:return e.match(t,n);case gd:return e.match(t,n);case vd:return e.match(t,n);case yd:return e.match(t,n);case wd:return e.match(t,n);case _d:return e.match(t,n);case kd:return e.match(t,n);default:return e.match(t,n)}}const fe=Symbol.for("@valita/internal");class xd{default(t){const n=xn(t);return new Ct(this.optional(),r=>r===void 0?n:void 0)}assert(t,n){const r={ok:!1,code:"custom_error",error:n};return new Ct(this,(i,o)=>t(i,_s(o))?void 0:r)}map(t){return new Ct(this,(n,r)=>({ok:!0,value:t(n,_s(r))}))}chain(t){return typeof t=="function"?new Ct(this,(n,r)=>{const i=t(n,_s(r));return i.ok?i:i._issueTree}):new Ct(this,(n,r)=>Je(t[fe],n,r))}}class In extends xd{optional(t){const n=new Wm(this);return t?new Ct(n,r=>r===void 0?{ok:!0,value:t()}:void 0):n}nullable(t){const n=new $m([qm(),this]);return t?new Ct(n,r=>r===null?{ok:!0,value:t()}:void 0):n}_toTerminals(t){t(this)}try(t,n){const r=Je(this[fe],t,n===void 0?wn:n.mode==="strip"?ii:n.mode==="passthrough"?0:wn);return r===void 0||r.ok?{ok:!0,value:r===void 0?t:r.value}:new ld(r)}parse(t,n){const r=Je(this[fe],t,n===void 0?wn:n.mode==="strip"?ii:n.mode==="passthrough"?0:wn);if(r===void 0||r.ok)return r===void 0?t:r.value;throw new sd(r)}}class $m extends In{constructor(t){super(),this.name="union",this.options=t}get[fe](){const t=this.options.map(n=>n[fe]);return Ut(this,fe,Mt(_d,(n,r)=>{let i=Jf;for(const o of t){const s=Je(o,n,r);if(s===void 0||s.ok)return s;i=s}return i}),!1)}_toTerminals(t){for(const n of this.options)n._toTerminals(t)}}class Wm extends xd{constructor(t){super(),this.name="optional",this.type=t}optional(t){return t?new Ct(this,n=>n===void 0?{ok:!0,value:t()}:void 0):this}get[fe](){const t=this.type[fe];return Ut(this,fe,Mt(gd,(n,r)=>n===void 0||r&Bo?void 0:Je(t,n,r)),!1)}_toTerminals(t){t(this),t(e0()),this.type._toTerminals(t)}}function Sd(e,t){if(typeof e!="number"){const n=t>>5;for(let r=e.length;r<=n;r++)e.push(0);return e[n]|=1<<t%32,e}else return t<32?e|1<<t:Sd([e,0],t)}function Sr(e,t){return typeof e=="number"?t<32?e>>>t&1:0:e[t>>5]>>>t%32&1}class Rt extends In{constructor(t,n,r){super(),this.name="object",this.shape=t,this._restType=n,this._checks=r}get[fe](){const t=Hm(this.shape,this._restType,this._checks);return Ut(this,fe,Mt(vd,(n,r)=>ad(n)?t(n,r):bm),!1)}check(t,n){var r;const i={ok:!1,code:"custom_error",error:n};return new Rt(this.shape,this._restType,[...(r=this._checks)!==null&&r!==void 0?r:[],{func:t,issue:i}])}rest(t){return new Rt(this.shape,t)}extend(t){return new Rt(Object.assign(Object.assign({},this.shape),t),this._restType)}pick(...t){const n={};for(const r of t)it(n,r,this.shape[r]);return new Rt(n,void 0)}omit(...t){const n=Object.assign({},this.shape);for(const r of t)delete n[r];return new Rt(n,this._restType)}partial(){var t;const n={};for(const i of Object.keys(this.shape))it(n,i,this.shape[i].optional());const r=(t=this._restType)===null||t===void 0?void 0:t.optional();return new Rt(n,r)}}function it(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function Hm(e,t,n){const r=Object.keys(e).map((l,a)=>{const f=e[l];let _=!1;return f._toTerminals(v=>{_||(_=v.name==="optional")}),{key:l,index:a,matcher:f[fe],optional:_,missing:qn(l,ha)}}),i=Object.create(null);for(const l of r)i[l.key]=l;const o=t==null?void 0:t[fe],s=r.length===0&&(t==null?void 0:t.name)==="unknown"&&n===void 0;return(l,a)=>{if(s)return;let f,_,v,m=0,p=0;if(a&(wn|ii)||o!==void 0)for(const w in l){const h=l[w],k=i[w];if(k===void 0&&o===void 0){if(a&wn)v===void 0?(v=[w],_=Vn(_,{ok:!1,code:"unrecognized_keys",keys:v})):v.push(w);else if(a&ii&&_===void 0&&f===void 0){f={};for(let c=0;c<r.length;c++)if(Sr(m,c)){const g=r[c].key;it(f,g,l[g])}}continue}const u=Je(k===void 0?o:k.matcher,h,a);if(u===void 0)f!==void 0&&_===void 0&&it(f,w,h);else if(!u.ok)_=Vn(_,qn(w,u));else if(_===void 0){if(f===void 0)if(f={},o===void 0){for(let c=0;c<r.length;c++)if(Sr(m,c)){const g=r[c].key;it(f,g,l[g])}}else for(const c in l)it(f,c,l[c]);it(f,w,u.value)}k!==void 0&&(p++,m=Sd(m,k.index))}if(p<r.length)for(let w=0;w<r.length;w++){if(Sr(m,w))continue;const h=r[w],k=l[h.key];let u=0;if(k===void 0&&!(h.key in l)){if(!h.optional){_=Vn(_,h.missing);continue}u=Bo}const c=Je(h.matcher,k,a|u);if(c===void 0)f!==void 0&&_===void 0&&!u&&it(f,h.key,k);else if(!c.ok)_=Vn(_,qn(h.key,c));else if(_===void 0){if(f===void 0)if(f={},o===void 0){for(let g=0;g<r.length;g++)if(g<w||Sr(m,g)){const S=r[g].key;it(f,S,l[S])}}else{for(const g in l)it(f,g,l[g]);for(let g=0;g<w;g++)if(!Sr(m,g)){const S=r[g].key;it(f,S,l[S])}}it(f,h.key,c.value)}}if(_!==void 0)return _;if(n!==void 0){for(const{func:w,issue:h}of n)if(!w(f??l))return h}return f&&{ok:!0,value:f}}}class er extends In{constructor(t,n,r){super(),this.name="array",this._prefix=t,this._rest=n,this._suffix=r}get[fe](){var t,n;const r=this._prefix.map(f=>f[fe]),i=this._suffix.map(f=>f[fe]),o=(n=(t=this._rest)===null||t===void 0?void 0:t[fe])!==null&&n!==void 0?n:Mt(1,()=>ha),s=r.length+i.length,l=this._rest?1/0:s,a={ok:!1,code:"invalid_length",minLength:s,maxLength:l===1/0?void 0:l};return Ut(this,fe,Mt(yd,(f,_)=>{if(!Array.isArray(f))return Fm;const v=f.length;if(v<s||v>l)return a;const m=r.length,p=f.length-i.length;let w,h=f;for(let k=0;k<f.length;k++){const u=k<m?r[k]:k>=p?i[k-p]:o,c=Je(u,f[k],_);c!==void 0&&(c.ok?(h===f&&(h=f.slice()),h[k]=c.value):w=Vn(w,qn(k,c)))}return w||(f===h?void 0:{ok:!0,value:h})}),!1)}concat(t){if(this._rest){if(t._rest)throw new TypeError("can not concatenate two variadic types");return new er(this._prefix,this._rest,[...this._suffix,...t._prefix,...t._suffix])}else return t._rest?new er([...this._prefix,...this._suffix,...t._prefix],t._rest,t._suffix):new er([...this._prefix,...this._suffix,...t._prefix,...t._suffix],t._rest,t._suffix)}}function xo(e){const t=typeof e;return t!=="object"?t:e===null?"null":Array.isArray(e)?"array":t}function Er(e){return[...new Set(e)]}function Ed(e){var t,n,r;const i=new Map,o=new Map,s=new Map,l=[],a=[],f=[];for(const{root:v,terminal:m}of e)if(i.set(v,(t=i.get(v))!==null&&t!==void 0?t:i.size),m.name!=="never")if(m.name==="optional")a.push(v);else if(m.name==="unknown")l.push(v);else if(m.name==="literal"){const p=(n=o.get(m.value))!==null&&n!==void 0?n:[];p.push(v),o.set(m.value,p),f.push(xo(m.value))}else{const p=(r=s.get(m.name))!==null&&r!==void 0?r:[];p.push(v),s.set(m.name,p),f.push(m.name)}const _=(v,m)=>{var p,w;return((p=i.get(v))!==null&&p!==void 0?p:0)-((w=i.get(m))!==null&&w!==void 0?w:0)};for(const[v,m]of o){const p=s.get(xo(v));p?(p.push(...m),o.delete(v)):o.set(v,Er(m.concat(l)).sort(_))}for(const[v,m]of s)s.set(v,Er(m.concat(l)).sort(_));return{types:s,literals:o,unknowns:Er(l).sort(_),optionals:Er(a).sort(_),expectedTypes:Er(f)}}function Vm(e,t){var n;const r=[];for(const{root:w,terminal:h}of e)h.shape[t]._toTerminals(k=>r.push({root:w,terminal:k}));const{types:i,literals:o,optionals:s,unknowns:l,expectedTypes:a}=Ed(r);if(l.length>0||s.length>1)return;for(const w of o.values())if(w.length>1)return;for(const w of i.values())if(w.length>1)return;const f=qn(t,ha),_=qn(t,i.size===0?{ok:!1,code:"invalid_literal",expected:[...o.keys()]}:{ok:!1,code:"invalid_type",expected:a}),v=o.size>0?new Map:void 0;if(v)for(const[w,h]of o)v.set(w,h[0][fe]);const m=i.size>0?{}:void 0;if(m)for(const[w,h]of i)m[w]=h[0][fe];const p=(n=s[0])===null||n===void 0?void 0:n[fe];return(w,h)=>{var k;const u=w[t];if(u===void 0&&!(t in w))return p===void 0?f:Je(p,w,h);const c=(k=m==null?void 0:m[xo(u)])!==null&&k!==void 0?k:v==null?void 0:v.get(u);return c?Je(c,w,h):_}}function Zm(e){var t;const n=[],r=new Map;for(const{root:i,terminal:o}of e){if(o.name==="unknown")return;if(o.name==="object"){for(const s in o.shape)r.set(s,((t=r.get(s))!==null&&t!==void 0?t:0)+1);n.push({root:i,terminal:o})}}if(!(n.length<2)){for(const[i,o]of r)if(o===n.length){const s=Vm(n,i);if(s)return s}}}function Gm(e){const{expectedTypes:t,literals:n,types:r,unknowns:i,optionals:o}=Ed(e),s=r.size===0&&i.length===0?{ok:!1,code:"invalid_literal",expected:[...n.keys()]}:{ok:!1,code:"invalid_type",expected:t},l=n.size>0?new Map:void 0;if(l)for(const[v,m]of n)l.set(v,m.map(p=>p[fe]));const a=r.size>0?{}:void 0;if(a)for(const[v,m]of r)a[v]=m.map(p=>p[fe]);const f=o.map(v=>v[fe]),_=i.map(v=>v[fe]);return(v,m)=>{var p,w;const h=m&Bo?f:(w=(p=a==null?void 0:a[xo(v)])!==null&&p!==void 0?p:l==null?void 0:l.get(v))!==null&&w!==void 0?w:_;let k=0,u=s;for(let c=0;c<h.length;c++){const g=Je(h[c],v,m);if(g===void 0||g.ok)return g;u=k>0?Vn(u,g):g,k++}return k>1?{ok:!1,code:"invalid_union",tree:u}:u}}class Km extends In{constructor(t){super(),this.name="union",this.options=t}_toTerminals(t){for(const n of this.options)n._toTerminals(t)}get[fe](){const t=[];for(const i of this.options)i._toTerminals(o=>{t.push({root:i,terminal:o})});const n=Gm(t),r=Zm(t);return Ut(this,fe,Mt(wd,(i,o)=>r!==void 0&&ad(i)?r(i,o):n(i,o)),!1)}}const Qm=Object.freeze({mode:"strict"}),Ym=Object.freeze({mode:"strip"}),Xm=Object.freeze({mode:"passthrough"});function _s(e){return e&wn?Qm:e&ii?Ym:Xm}class Ct extends In{constructor(t,n){super(),this.name="transform",this._transformed=t,this._transform=n}get[fe](){const t=[];let n=this;for(;n instanceof Ct;)t.push(n._transform),n=n._transformed;t.reverse();const r=n[fe],i=xn(void 0);return Ut(this,fe,Mt(kd,(o,s)=>{let l=Je(r,o,s);if(l!==void 0&&!l.ok)return l;let a;l!==void 0?a=l.value:s&Bo?(a=void 0,l=i):a=o;for(let f=0;f<t.length;f++){const _=t[f](a,s);if(_!==void 0){if(!_.ok)return _;a=_.value,l=_}}return l}),!1)}_toTerminals(t){this._transformed._toTerminals(t)}}function fr(e,t,n){const r=Mt(t,n);class i extends In{constructor(){super(),this.name=e,this[fe]=r}}const o=new i;return()=>o}const Cd=fr("unknown",ud,()=>{}),et=fr("string",cd,e=>typeof e=="string"?void 0:qf),Jm=fr("number",fd,e=>typeof e=="number"?void 0:ed),Cr=fr("boolean",dd,e=>typeof e=="boolean"?void 0:td),qm=fr("null",hd,e=>e===null?void 0:rd),e0=fr("undefined",pd,e=>e===void 0?void 0:nd);class t0 extends In{constructor(t){super(),this.name="literal";const n={ok:!1,code:"invalid_literal",expected:[t]};this[fe]=Mt(md,r=>r===t?void 0:n),this.value=t}}const Nd=e=>new t0(e),Rn=e=>new Rt(e,void 0),ml=e=>new Rt({},e??Cd()),St=e=>new er([],e??Cd(),[]),n0=e=>new er(e,void 0,[]),Mr=(...e)=>new Km(e),r0=/^did:([a-z]+):([a-zA-Z0-9._:%\-]*[a-zA-Z0-9._\-])$/,i0=e=>typeof e=="string"&&e.length>=7&&e.length<=2048&&r0.test(e),o0=/^#[^#]+$/,s0=/^z[a-km-zA-HJ-NP-Z1-9]+$/,Zn=et().assert(e=>URL.canParse(e),"must be a url"),pa=et().assert(e=>o0.test(e)||URL.canParse(e),"must be a did relative uri"),l0=et().assert(e=>s0.test(e),"must be a base58 multibase"),Yi=et().assert(i0,"must be a did"),Ou=Rn({id:pa,type:et(),controller:Yi,publicKeyMultibase:l0.optional(),publicKeyJwk:ml().optional()}).chain(e=>{switch(e.type){case"Multikey":{if(e.publicKeyMultibase===void 0)return Ur({message:"missing multikey",path:["publicKeyMultibase"]});break}case"EcdsaSecp256k1VerificationKey2019":case"EcdsaSecp256r1VerificationKey2019":{if(e.publicKeyMultibase===void 0)return Ur({message:"missing multibase key",path:["publicKeyMultibase"]});break}}return xn(e)}),a0=Rn({id:pa,type:Mr(et(),St(et())),serviceEndpoint:Mr(Zn,ml(Zn),St(Mr(Zn,ml(Zn))))}),u0=Rn({"@context":St(Zn),id:Yi,alsoKnownAs:St(Zn).chain(e=>{for(let t=0,n=e.length;t<n;t++){const r=e[t];for(let i=0;i<t;i++)if(r===e[i])return Ur({message:`duplicate "${r}" aka entry`,path:[t]})}return xn(e)}).optional(),verificationMethod:St(Ou).chain(e=>{for(let t=0,n=e.length;t<n;t++){const i=e[t].id;for(let o=0;o<t;o++)if(i===e[o].id)return Ur({message:`duplicate "${i}" verification method`,path:[t,"id"]})}return xn(e)}).optional(),service:St(a0).optional(),controller:Mr(Yi,St(Yi)).optional(),authentication:St(Mr(pa,Ou)).optional()}).chain(e=>{const{id:t,service:n}=e;if(n!=null&&n.length){const r=n.length,i=new Array(r);for(let o=0;o<r;o++){let l=n[o].id;l[0]==="#"&&(l=t+l),i[o]=l}for(let o=0;o<r;o++){const s=i[o];for(let l=0;l<o;l++)if(s===i[l])return Ur({message:`duplicate "${s}" service`,path:["service",o,"id"]})}}return xn(e)}),c0=/^did:plc:([a-z2-7]{24})$/,f0=e=>e.length===32&&c0.test(e),d0=/^did:web:([a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*(?:\.[a-zA-Z]{2,})|localhost(?:%3[aA]\d+)?)$/,h0=e=>e.length>=12&&d0.test(e),zd=e=>f0(e)||h0(e),p0=e=>{const t=e.indexOf(":",4);return e.slice(4,t)};class $o extends Error{constructor(){super(...arguments);de(this,"name","DidResolutionError")}}class ma extends $o{constructor(n){super(`unsupported did method; did=${n}`);de(this,"did");de(this,"name","UnsupportedDidMethodError");this.did=n}}class m0 extends $o{constructor(n){super(`improper did; did=${n}`);de(this,"did");de(this,"name","ImproperDidError");this.did=n}}class Td extends $o{constructor(n){super(`did document not found; did=${n}`);de(this,"did");de(this,"name","DocumentNotFoundError");this.did=n}}class Pd extends $o{constructor(n,r){super(`failed to resolve did document; did=${n}`,r);de(this,"did");de(this,"name","FailedDocumentResolutionError");this.did=n}}class Wo extends Error{constructor(){super(...arguments);de(this,"name","HandleResolutionError")}}class gl extends Wo{constructor(n){super(`handle returned no did; handle=${n}`);de(this,"handle");de(this,"name","DidNotFoundError");this.handle=n}}class vl extends Wo{constructor(n,r){super(`failed to resolve handle; handle=${n}`,r);de(this,"handle");de(this,"name","FailedHandleResolutionError");this.handle=n}}class Id extends Wo{constructor(n,r){super(`handle returned invalid did; handle=${n}; did=${r}`);de(this,"handle");de(this,"did");de(this,"name","InvalidResolvedHandleError");this.handle=n,this.did=r}}class Rd extends Wo{constructor(n){super(`handle returned multiple did values; handle=${n}`);de(this,"name","AmbiguousHandleError")}}var oi;class g0{constructor({methods:t}){dn(this,oi);hn(this,oi,new Map(Object.entries(t)))}async resolve(t,n){const r=p0(t),i=fn(this,oi).get(r);if(i===void 0)throw new ma(t);return await i.resolve(t,n)}}oi=new WeakMap;class Ho extends Error{constructor(){super(...arguments);de(this,"name","FetchResponseError")}}class Vo extends Ho{constructor(n,r){super(r);de(this,"status");de(this,"name","FailedResponseError");this.status=n}}class Lu extends Ho{constructor(n,r){super(r);de(this,"contentType");de(this,"name","ImproperContentTypeError");this.contentType=n}}class yl extends Ho{constructor(n,r,i){super(i);de(this,"expectedSize");de(this,"actualSize");de(this,"name","ImproperContentLengthError");this.expectedSize=n,this.actualSize=r}}class v0 extends Ho{constructor(n,r){super(n,r);de(this,"name","ImproperResponseError")}}function ga(...e){return e.reduce(y0)}const y0=(e,t)=>n=>e(n).then(t);class w0 extends TransformStream{constructor(t){let n=0;super({transform(r,i){if(n+=r.length,n>t){i.error(new yl(t,n,"response content-length too large"));return}i.enqueue(r)}})}}const va=async e=>{if(e.ok)return e;throw e.body&&await e.body.cancel(),new Vo(e.status,`got http ${e.status}`)},_0=e=>async t=>{const n=await Od(t,e);return{response:t,text:n}},Ad=(e,t)=>async n=>{await k0(n,e);const r=await Od(n,t);try{const i=JSON.parse(r);return{response:n,json:i}}catch(i){throw new v0("unexpected json data",{cause:i})}},jd=(e,t)=>async n=>{const r=e.parse(n.json,t);return{response:n.response,json:r}},k0=async(e,t)=>{var r;const n=(r=e.headers.get("content-type"))==null?void 0:r.split(";",1)[0].trim();if(n===void 0)throw e.body&&await e.body.cancel(),new Lu(null,"missing response content-type");if(!t.test(n))throw e.body&&await e.body.cancel(),new Lu(n,"unexpected response content-type")},Od=async(e,t)=>{var o,s;const n=e.headers.get("content-length");if(n!==null){const l=Number(n);if(!Number.isSafeInteger(l)||l<=0)throw(o=e.body)==null||o.cancel(),new yl(t,null,"invalid response content-length");if(l>t)throw(s=e.body)==null||s.cancel(),new yl(t,l,"response content-length too large")}const r=e.body.pipeThrough(new w0(t)).pipeThrough(new TextDecoderStream);let i="";for await(const l of x0(r))i+=l;return i},x0=Symbol.asyncIterator in ReadableStream.prototype?e=>e[Symbol.asyncIterator]():e=>{const t=e.getReader();return{[Symbol.asyncIterator](){return this},next(){return t.read()},async return(){return await t.cancel(),{done:!0,value:void 0}},async throw(n){return await t.cancel(n),{done:!0,value:void 0}}}},Ld=ga(va,Ad(/^application\/(did\+ld\+)?json$/,20*1024),jd(u0,{mode:"passthrough"}));var si;class S0{constructor({apiUrl:t="https://plc.directory",fetch:n=fetch}={}){de(this,"apiUrl");dn(this,si);this.apiUrl=t,hn(this,si,n)}async resolve(t,n){if(!t.startsWith("did:plc:"))throw new ma(t);let r;try{const i=new URL(`/${encodeURIComponent(t)}`,this.apiUrl),o=await fn(this,si)(i,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,redirect:"manual",headers:{accept:"application/did+ld+json,application/json"}});if(o.status>=300&&o.status<400)throw new TypeError("unexpected redirect");r=(await Ld(o)).json}catch(i){throw i instanceof Vo&&i.status===404?new Td(t):new Pd(t,{cause:i})}return r}}si=new WeakMap;var li;class E0{constructor({fetch:t=fetch}={}){dn(this,li);hn(this,li,t)}async resolve(t,n){if(!t.startsWith("did:web:"))throw new ma(t);const[r,...i]=t.slice(8).split(":").map(decodeURIComponent),o=new URL(`https://${r}/.well-known/did.json`);if(i.length>0)throw new m0(t);let s;try{const l=await fn(this,li)(o,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,redirect:"manual",headers:{accept:"application/did+ld+json,application/json"}});if(l.status>=300&&l.status<400)throw new TypeError("unexpected redirect");s=(await Ld(l)).json}catch(l){throw l instanceof Vo&&l.status===404?new Td(t):new Pd(t,{cause:l})}return s}}li=new WeakMap;var ai;class C0{constructor({methods:t,strategy:n="race"}){dn(this,ai);de(this,"strategy");hn(this,ai,t),this.strategy=n}async resolve(t,n){const{http:r,dns:i}=fn(this,ai),o=n==null?void 0:n.signal,s=new AbortController;o&&o.addEventListener("abort",()=>s.abort(),{signal:s.signal});const l=i.resolve(t,{...n,signal:s.signal}),a=r.resolve(t,{...n,signal:s.signal});switch(this.strategy){case"race":return new Promise(f=>{l.then(_=>{s.abort(),f(_)},()=>f(a)),a.then(_=>{s.abort(),f(_)},()=>f(l))});case"dns-first":{a.catch(bi);const f=await l.catch(bi);return f?(s.abort(),f):a}case"http-first":{l.catch(bi);const f=await a.catch(bi);return f?(s.abort(),f):l}case"both":{const[f,_]=await Promise.allSettled([l,a]),v=f.status==="fulfilled"?f.value:void 0,m=_.status==="fulfilled"?_.value:void 0;if(v&&m&&v!==m)throw new Rd(t);return v||m||l}}}}ai=new WeakMap;const bi=()=>{},So=Jm().assert(e=>Number.isInteger(e)&&e>=0&&e<=2**32-1),N0=Rn({name:et(),type:Nd(16)}),z0=Rn({name:et(),type:Nd(16),TTL:So,data:et().chain(e=>xn(e.replace(/^"|"$/g,"").replace(/\\"/g,'"')))}),T0=Rn({name:et(),type:So,TTL:So,data:et()}),P0=Rn({Status:So,TC:Cr(),RD:Cr(),RA:Cr(),AD:Cr(),CD:Cr(),Question:n0([N0]),Answer:St(z0).optional(()=>[]),Authority:St(T0).optional(),Comment:et().optional()}),I0="_atproto",ks="did=",R0=ga(va,Ad(/^application\/(dns-)?json$/,16*1024),jd(P0,{mode:"passthrough"}));var ui;class A0{constructor({dohUrl:t,fetch:n=fetch}){de(this,"dohUrl");dn(this,ui);this.dohUrl=t,hn(this,ui,n)}async resolve(t,n){let r;try{const s=new URL(this.dohUrl);s.searchParams.set("name",`${I0}.${t}`),s.searchParams.set("type","TXT");const l=await fn(this,ui)(s,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,headers:{accept:"application/dns-json"}});r=(await R0(l)).json}catch(s){throw new vl(t,{cause:s})}const i=r.Status,o=r.Answer;if(i!==0)throw i===3?new gl(t):new vl(t,{cause:new TypeError(`dns returned ${i}`)});for(let s=0,l=o.length;s<l;s++){const f=o[s].data;if(!f.startsWith(ks))continue;for(let v=s+1;v<l;v++)if(o[v].data.startsWith(ks))throw new Rd(t);const _=f.slice(ks.length);if(!zd(_))throw new Id(t,_);return _}throw new gl(t)}}ui=new WeakMap;const j0=ga(va,_0(2064));var ci;class O0{constructor({fetch:t=fetch}={}){dn(this,ci);hn(this,ci,t)}async resolve(t,n){let r;try{const o=new URL("/.well-known/atproto-did",`https://${t}`),s=await fn(this,ci)(o,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,redirect:"manual"});if(s.status>=300&&s.status<400)throw new TypeError("unexpected redirect");r=(await j0(s)).text}catch(o){throw o instanceof Vo&&o.status===404?new gl(t):new vl(t,{cause:o})}const i=r.split(` 112 + `)[0].trim();if(!zd(i))throw new Id(t,i);return i}}ci=new WeakMap;function L0({matches:e,selectedDids:t,onToggleSelection:n}){const[r,i]=Te.useState(0),o=e[r],s=e.length>1,l=r>0,a=r<e.length-1,f=()=>{a&&i(r+1)},_=()=>{l&&i(r-1)};return M.jsxs("div",{className:"relative",children:[M.jsxs("div",{className:`flex items-center space-x-3 p-3 rounded-lg border transition-all ${t.has(o.did)?"bg-blue-50 border-blue-200":"bg-gray-50 border-gray-200"} ${o.followed?"opacity-60":""}`,children:[M.jsx("input",{type:"checkbox",checked:t.has(o.did),onChange:()=>n(o.did),disabled:o.followed,className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 flex-shrink-0"}),o.avatar?M.jsx("img",{src:o.avatar,alt:o.handle,className:"w-12 h-12 rounded-full object-cover flex-shrink-0"}):M.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center flex-shrink-0",children:M.jsx("span",{className:"text-white font-bold text-sm",children:o.handle.charAt(0).toUpperCase()})}),M.jsxs("div",{className:"flex-1 min-w-0",children:[o.displayName&&M.jsx("div",{className:"font-medium text-gray-900 truncate",children:o.displayName}),M.jsxs("div",{className:"flex items-center space-x-2",children:[M.jsxs("div",{className:"text-sm text-gray-600 truncate",children:["@",o.handle]}),M.jsxs("span",{className:"text-xs bg-green-100 text-green-800 px-2 py-0.5 rounded flex-shrink-0",children:[o.matchScore,"%"]})]})]}),o.followed&&M.jsx("div",{className:"flex-shrink-0",children:M.jsxs("div",{className:"flex items-center space-x-1 bg-green-100 text-green-800 px-2 py-1 rounded-full text-xs",children:[M.jsx(xm,{className:"w-3 h-3"}),M.jsx("span",{children:"Followed"})]})}),M.jsxs("div",{className:"flex items-center space-x-1 flex-shrink-0",children:[l&&M.jsx("button",{onClick:_,className:"p-2 hover:bg-gray-200 rounded-full transition-colors",children:M.jsx(Au,{className:"w-5 h-5 text-gray-600 rotate-180"})}),a&&M.jsx("button",{onClick:f,className:"p-2 hover:bg-gray-200 rounded-full transition-colors",children:M.jsx(Au,{className:"w-5 h-5 text-gray-600"})})]})]}),s&&M.jsx("div",{className:"flex items-center justify-center space-x-1 mt-2",children:e.map((v,m)=>M.jsx("button",{onClick:()=>i(m),className:`h-1.5 rounded-full transition-all ${m===r?"w-6 bg-blue-500":"w-1.5 bg-gray-300"}`},m))})]})}function D0(){const[e,t]=Te.useState(""),[n,r]=Te.useState(""),[i,o]=Te.useState(null),[s,l]=Te.useState(!1),[a,f]=Te.useState([]),[_,v]=Te.useState(!1),[m,p]=Te.useState("login"),[w,h]=Te.useState({searched:0,found:0,total:0}),[k,u]=Te.useState(""),c=new g0({methods:{plc:new S0({apiUrl:"https://plc.directory"}),web:new E0}}),g=new C0({strategy:"dns-first",methods:{dns:new A0({dohUrl:"https://dns.google/resolve?"}),http:new O0}});Te.useEffect(()=>{const b=new URLSearchParams(window.location.search),j=b.get("session"),P=b.get("error");if(P){alert(`Login failed: ${P}`),window.history.replaceState({},"","/");return}j&&fetch(`/.netlify/functions/session?session=${j}`).then(U=>{if(!U.ok)throw new Error("Failed to load session");return U.json()}).then(U=>{o({did:U.did,handle:U.handle,accessJwt:U.accessToken,serviceEndpoint:U.serviceEndpoint}),window.history.replaceState({},"","/")}).catch(U=>{console.error("Session error:",U),alert("Failed to load session"),window.history.replaceState({},"","/")})},[]);const S=async()=>{try{if(!e){alert("Please enter your handle");return}const b=await fetch("/.netlify/functions/oauth-start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({login_hint:e})});if(!b.ok){const P=await b.json();throw new Error(P.error||"Failed to start OAuth flow")}const{url:j}=await b.json();window.location.href=j}catch(b){console.error("OAuth error:",b),alert(`Error starting OAuth: ${b instanceof Error?b.message:"Unknown error"}`)}};async function C(){var b,j;try{if(!e||!n){alert("Enter handle and app password");return}const P=await g.resolve(e);if(!P){alert("Failed to resolve handle to DID");return}const U=await c.resolve(P);if(!((j=(b=U==null?void 0:U.service)==null?void 0:b[0])!=null&&j.serviceEndpoint)){alert("Could not determine PDS endpoint from DID Document");return}const T=U.service[0].serviceEndpoint,z=await fetch(`${T}/xrpc/com.atproto.server.createSession`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:e,password:n})});if(!z.ok){const K=await z.text();console.error("Login failed:",K),alert("Login failed, check handle and app password");return}const J=await z.json();o({...J,serviceEndpoint:T}),p("upload"),console.log("Logged in successfully!",J,T)}catch(P){console.error("Login error:",P),alert("Error during login. See console for details.")}}async function A(b){var T,z;const j=[],P=JSON.parse(b),U=(z=(T=P==null?void 0:P["Your Activity"])==null?void 0:T.Following)==null?void 0:z.Following;if(!U||!Array.isArray(U))return alert("Could not find following data in JSON. Expected path: Your Activity > Following > Following"),[];for(const J of U)j.push({username:J.UserName,date:J.Date||""});return j}function I(b){const j=[],P=b.split(` 113 + 114 + `).map(U=>U.trim()).filter(Boolean);for(const U of P){const T=U.match(/Username:\s*(.+)/);T&&j.push({username:T[1].trim(),date:""})}return j}async function L(b){var T;const j=(T=b.target.files)==null?void 0:T[0];if(!j)return;let P=[];try{if(j.name.endsWith(".json"))P=await A(await j.text()),console.log(`Loaded ${P.length} TikTok users from JSON file`);else if(j.name.endsWith(".txt"))P=I(await j.text()),console.log(`Loaded ${P.length} TikTok users from TXT file`);else if(j.name.endsWith(".zip")){const z=await Lm.loadAsync(j),J=z.file("TikTok/Profile and Settings/Following.txt")||z.file("Profile and Settings/Following.txt")||z.files[Object.keys(z.files).find(K=>K.endsWith("Following.txt")&&K.includes("Profile"))||""];if(J){const K=await J.async("string");P=I(K),console.log(`Loaded ${P.length} TikTok users from .ZIP file`)}else{const K=Object.values(z.files).find(se=>se.name.endsWith(".json")&&!se.dir);if(!K){alert("Could not find Following.txt or a JSON file in the ZIP archive.");return}const Q=await K.async("string");P=await A(Q),console.log(`Loaded ${P.length} TikTok users from .ZIP file`)}}else{alert("Please upload a .txt, .json, or .zip file");return}}catch(z){console.error("Error processing file:",z),alert("There was a problem processing the file. Please check that it's a valid TikTok data export.");return}if(P.length===0){alert("No users found in the file.");return}const U=P.map(z=>({tiktokUser:z,bskyMatches:[],isSearching:!1,selectedMatches:new Set}));f(U),p("results"),setTimeout(()=>$(U),100)}async function D(b){if(!i)return[];try{const j=await fetch(`${i.serviceEndpoint}/xrpc/app.bsky.actor.searchActors?q=${encodeURIComponent(b)}&limit=20`,{headers:{Authorization:`Bearer ${i.accessJwt}`}});if(!j.ok)throw new Error(`Search failed: ${j.status}`);const P=await j.json(),U=z=>z.toLowerCase().replace(/[._-]/g,""),T=U(b);return P.actors.map(z=>{const J=z.handle.split(".")[0],K=U(J),Q=U(z.handle),se=U(z.displayName||"");let oe=0;return K===T?oe=100:Q===T?oe=90:se===T?oe=80:K.includes(T)?oe=60:Q.includes(T)?oe=50:se.includes(T)?oe=40:T.includes(K)&&(oe=30),{...z,matchScore:oe}}).filter(z=>z.matchScore>0).sort((z,J)=>J.matchScore-z.matchScore).slice(0,5)}catch(j){return console.error(`Search error for ${b}:`,j),[]}}async function $(b){const j=b||a;if(!i||j.length===0)return;v(!0),p("loading"),h({searched:0,found:0,total:j.length});const P=3;let U=0,T=0;const z=1e3;for(let J=0;J<j.length;J+=P){if(T>=z){console.log(`Reached limit of ${z} matches. Stopping search.`);break}const K=j.slice(J,J+P);f(oe=>oe.map((ie,le)=>J<=le&&le<J+P?{...ie,isSearching:!0}:ie));const Q=K.map(async(oe,ie)=>{const le=J+ie;try{const he=await D(oe.tiktokUser.username);return{globalIndex:le,matches:he,error:void 0}}catch(he){return{globalIndex:le,matches:[],error:he instanceof Error?he.message:"Search failed"}}}),se=await Promise.all(Q);if(se.forEach(oe=>{U++,oe.matches.length>0&&T++}),h({searched:U,found:T,total:j.length}),f(oe=>oe.map((ie,le)=>{const he=se.find(me=>me.globalIndex===le);if(he){const me=new Set;return he.matches.length>0&&me.add(he.matches[0].did),{...ie,bskyMatches:he.matches,isSearching:!1,error:he.error,selectedMatches:me}}return ie})),T>=z)break;J+P<j.length&&await new Promise(oe=>setTimeout(oe,1e3))}v(!1),p("results")}function te(b,j){f(P=>P.map((U,T)=>{if(T===b){const z=new Set(U.selectedMatches);return z.has(j)?z.delete(j):z.add(j),{...U,selectedMatches:z}}return U}))}function N(){f(b=>b.map(j=>{const P=new Set;return j.bskyMatches.length>0&&P.add(j.bskyMatches[0].did),{...j,selectedMatches:P}}))}function B(){f(b=>b.map(j=>({...j,selectedMatches:new Set})))}async function y(){if(!i)return;const b=a.flatMap((j,P)=>j.bskyMatches.filter(U=>{var T;return(T=j.selectedMatches)==null?void 0:T.has(U.did)}).map(U=>({...U,resultIndex:P})));if(b.length===0){alert("No users selected to follow");return}for(const j of b){try{(await fetch(`${i.serviceEndpoint}/xrpc/com.atproto.repo.createRecord`,{method:"POST",headers:{Authorization:`Bearer ${i.accessJwt}`,"Content-Type":"application/json"},body:JSON.stringify({repo:i.did,collection:"app.bsky.graph.follow",record:{$type:"app.bsky.graph.follow",subject:j.did,createdAt:new Date().toISOString()}})})).ok&&f(U=>U.map((T,z)=>z===j.resultIndex?{...T,bskyMatches:T.bskyMatches.map(J=>J.did===j.did?{...J,followed:!0}:J)}:T))}catch(P){console.error(`Follow error for ${j.handle}:`,P)}await new Promise(P=>setTimeout(P,500))}}const W=a.reduce((b,j)=>{var P;return b+(((P=j.selectedMatches)==null?void 0:P.size)||0)},0),re=a.filter(b=>b.bskyMatches.length>0).length;return a.filter(b=>!b.isSearching).length,M.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-purple-50",children:[M.jsx("div",{className:"bg-white shadow-sm border-b",children:M.jsx("div",{className:"px-4 py-4",children:M.jsxs("div",{className:"flex items-center justify-between",children:[M.jsxs("div",{className:"flex items-center space-x-2",children:[M.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center",children:M.jsx(_m,{className:"w-4 h-4 text-white"})}),M.jsx("h1",{className:"text-lg font-bold text-gray-900",children:"ATlast"})]}),i&&M.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[M.jsx(Rm,{className:"w-4 h-4"}),M.jsxs("span",{className:"hidden sm:inline",children:["@",i.handle]})]})]})})}),m==="login"&&M.jsx("div",{className:"p-6 max-w-md mx-auto mt-8",children:M.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-6 space-y-6",children:[M.jsxs("div",{className:"text-center",children:[M.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-purple-600 rounded-2xl mx-auto mb-4 flex items-center justify-center",children:M.jsx(jm,{className:"w-8 h-8 text-white"})}),M.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Welcome!"}),M.jsx("p",{className:"text-gray-600",children:"Connect your ATmosphere account to sync your TikTok follows"})]}),M.jsxs("div",{className:"space-y-4",children:[M.jsxs("div",{children:[M.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"User Handle"}),M.jsx("input",{className:"w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"yourhandle.bsky.social",value:e,onChange:b=>t(b.target.value)})]}),s?M.jsxs(M.Fragment,{children:[M.jsxs("div",{children:[M.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"App Password"}),M.jsx("input",{className:"w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent",type:"password",placeholder:"Not your regular password!",value:n,onChange:b=>r(b.target.value)}),M.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Generate this in your Bluesky settings"})]}),M.jsx("button",{className:"w-full bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white py-3 rounded-xl font-medium transition-all duration-200 shadow-lg hover:shadow-xl",onClick:C,children:"Connect with App Password"}),M.jsx("button",{onClick:()=>l(!1),className:"w-full text-sm text-gray-600 hover:text-gray-900 underline",children:"Use OAuth instead (recommended)"})]}):M.jsxs(M.Fragment,{children:[M.jsx("button",{className:"w-full bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white py-3 rounded-xl font-medium transition-all duration-200 shadow-lg hover:shadow-xl",onClick:S,children:"Connect to the ATmosphere"}),M.jsx("button",{onClick:()=>l(!0),className:"w-full text-sm text-gray-600 hover:text-gray-900 underline",children:"Use App Password instead"})]})]})]})}),m==="upload"&&M.jsx("div",{className:"p-6 max-w-md mx-auto mt-8",children:M.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-6 space-y-6",children:[M.jsxs("div",{className:"text-center",children:[M.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-purple-600 rounded-2xl mx-auto mb-4 flex items-center justify-center",children:M.jsx(Cm,{className:"w-8 h-8 text-white"})}),M.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Upload Your Data"}),M.jsx("p",{className:"text-gray-600",children:"Upload your TikTok following data to find matches"})]}),M.jsxs("div",{className:"space-y-4",children:[M.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-xl p-6 text-center hover:border-blue-400 transition-colors",children:[M.jsx(Pm,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),M.jsxs("label",{className:"cursor-pointer",children:[M.jsx("span",{className:"text-lg font-medium text-gray-700 block mb-1",children:"Choose File"}),M.jsx("span",{className:"text-sm text-gray-500 block mb-3",children:"Following.txt or TikTok data ZIP"}),M.jsx("input",{type:"file",accept:".txt,.json,.zip",onChange:L,className:"hidden"}),M.jsx("div",{className:"inline-block bg-blue-500 hover:bg-blue-600 text-white px-6 py-2 rounded-lg font-medium transition-colors",children:"Browse Files"})]})]}),M.jsxs("div",{className:"bg-blue-50 rounded-xl p-4",children:[M.jsx("h4",{className:"font-medium text-blue-900 mb-2",children:"How to get your data:"}),M.jsxs("ol",{className:"text-sm text-blue-800 space-y-1 list-decimal list-inside",children:[M.jsx("li",{children:"Open TikTok app → Profile → Settings and privacy → Account → Download your data"}),M.jsx("li",{children:'Request data → Select "Request data"'}),M.jsx("li",{children:"Wait for notification your download is ready"}),M.jsx("li",{children:"Navigate back to Download your data"}),M.jsx("li",{children:"Download data → Select"}),M.jsx("li",{children:"Upload the Following.txt file here"})]})]})]})]})}),m==="loading"&&M.jsx("div",{className:"p-6 max-w-2xl mx-auto mt-8",children:M.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-8 space-y-6",children:[M.jsxs("div",{className:"text-center",children:[M.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-purple-600 rounded-2xl mx-auto mb-4 flex items-center justify-center",children:M.jsx(zm,{className:"w-8 h-8 text-white animate-pulse"})}),M.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Finding Your People"}),M.jsx("p",{className:"text-gray-600",children:"Searching the ATmosphere for your TikTok follows..."})]}),M.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-purple-50 rounded-xl p-6",children:[M.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center mb-4",children:[M.jsxs("div",{children:[M.jsx("div",{className:"text-3xl font-bold text-gray-900",children:w.searched}),M.jsx("div",{className:"text-sm text-gray-600",children:"Searched"})]}),M.jsxs("div",{children:[M.jsx("div",{className:"text-3xl font-bold text-blue-600",children:w.found}),M.jsx("div",{className:"text-sm text-gray-600",children:"Found"})]}),M.jsxs("div",{children:[M.jsx("div",{className:"text-3xl font-bold text-gray-400",children:w.total}),M.jsx("div",{className:"text-sm text-gray-600",children:"Total"})]})]}),M.jsx("div",{className:"w-full bg-gray-200 rounded-full h-3 overflow-hidden",children:M.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-purple-600 h-full rounded-full transition-all duration-500 ease-out",style:{width:`${w.total>0?w.searched/w.total*100:0}%`}})}),M.jsxs("div",{className:"text-center mt-2 text-sm text-gray-600",children:[w.total>0?Math.round(w.searched/w.total*100):0,"% complete"]})]})]})}),m==="results"&&M.jsxs("div",{className:"pb-20",children:[M.jsx("div",{className:"bg-white border-b",children:M.jsxs("div",{className:"px-4 py-4",children:[M.jsxs("div",{className:"flex items-center justify-between mb-3",children:[M.jsxs("div",{children:[M.jsx("h2",{className:"text-lg font-bold text-gray-900",children:"Results"}),M.jsxs("p",{className:"text-sm text-gray-600",children:[re," of ",a.length," users found"]})]}),M.jsxs("div",{className:"text-right",children:[M.jsx("div",{className:"text-lg font-bold text-blue-600",children:W}),M.jsx("div",{className:"text-xs text-gray-500",children:"selected"})]})]}),M.jsxs("div",{className:"flex space-x-2",children:[M.jsx("button",{onClick:N,className:"flex-1 bg-blue-500 hover:bg-blue-600 text-white py-2 rounded-lg text-sm font-medium transition-colors",children:"Select All"}),M.jsx("button",{onClick:B,className:"flex-1 bg-gray-500 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors",children:"Clear"})]})]})}),M.jsx("div",{className:"space-y-2 p-4",children:a.map((b,j)=>M.jsx("div",{className:"bg-white rounded-xl shadow-sm border",children:M.jsxs("div",{className:"p-4",children:[M.jsxs("div",{className:"mb-3",children:[M.jsx("div",{className:"text-xs text-gray-500 uppercase tracking-wide mb-1",children:"TikTok"}),M.jsxs("div",{className:"font-semibold text-gray-900 text-lg",children:["@",b.tiktokUser.username]})]}),b.bskyMatches.length>0?M.jsx("div",{className:"space-y-2",children:M.jsx(L0,{matches:b.bskyMatches,selectedDids:b.selectedMatches||new Set,onToggleSelection:P=>te(j,P)})}):M.jsx("div",{className:"text-center py-2 text-gray-400",children:M.jsx("div",{className:"text-sm",children:"No matches found"})})]})},j))})]}),m==="results"&&W>0&&M.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t shadow-lg",children:M.jsx("div",{className:"p-4",children:M.jsxs("button",{onClick:y,className:"w-full bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white py-4 rounded-xl font-medium text-lg transition-all duration-200 shadow-lg hover:shadow-xl",children:["Follow ",W," Selected Users"]})})})]})}xs.createRoot(document.getElementById("root")).render(M.jsx(nh.StrictMode,{children:M.jsx(D0,{})}));
-114
dist/assets/index-Dg_eGtnR.js
··· 1 - var Ud=Object.defineProperty;var _a=e=>{throw TypeError(e)};var Md=(e,t,n)=>t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>Md(e,typeof t!="symbol"?t+"":t,n),ka=(e,t,n)=>t.has(e)||_a("Cannot "+n);var fn=(e,t,n)=>(ka(e,t,"read from private field"),n?n.call(e):t.get(e)),dn=(e,t,n)=>t.has(e)?_a("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),hn=(e,t,n,r)=>(ka(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bu={exports:{}},Eo={},Fu={exports:{}},se={};/** 2 - * @license React 3 - * react.production.min.js 4 - * 5 - * Copyright (c) Facebook, Inc. and its affiliates. 6 - * 7 - * This source code is licensed under the MIT license found in the 8 - * LICENSE file in the root directory of this source tree. 9 - */var fi=Symbol.for("react.element"),Bd=Symbol.for("react.portal"),$d=Symbol.for("react.fragment"),Wd=Symbol.for("react.strict_mode"),Hd=Symbol.for("react.profiler"),Vd=Symbol.for("react.provider"),Zd=Symbol.for("react.context"),Gd=Symbol.for("react.forward_ref"),Kd=Symbol.for("react.suspense"),Qd=Symbol.for("react.memo"),Yd=Symbol.for("react.lazy"),xa=Symbol.iterator;function Xd(e){return e===null||typeof e!="object"?null:(e=xa&&e[xa]||e["@@iterator"],typeof e=="function"?e:null)}var Uu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mu=Object.assign,Bu={};function ar(e,t,n){this.props=e,this.context=t,this.refs=Bu,this.updater=n||Uu}ar.prototype.isReactComponent={};ar.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $u(){}$u.prototype=ar.prototype;function wl(e,t,n){this.props=e,this.context=t,this.refs=Bu,this.updater=n||Uu}var _l=wl.prototype=new $u;_l.constructor=wl;Mu(_l,ar.prototype);_l.isPureReactComponent=!0;var Sa=Array.isArray,Wu=Object.prototype.hasOwnProperty,kl={current:null},Hu={key:!0,ref:!0,__self:!0,__source:!0};function Vu(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Wu.call(t,r)&&!Hu.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),f=0;f<l;f++)a[f]=arguments[f+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:fi,type:e,key:o,ref:s,props:i,_owner:kl.current}}function Jd(e,t){return{$$typeof:fi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xl(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi}function qd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ea=/\/+/g;function Go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qd(""+e.key):t.toString(36)}function Fi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fi:case Bd:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Go(s,0):r,Sa(i)?(n="",e!=null&&(n=e.replace(Ea,"$&/")+"/"),Fi(i,t,n,"",function(f){return f})):i!=null&&(xl(i)&&(i=Jd(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Ea,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Sa(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Go(o,l);s+=Fi(o,t,n,a,i)}else if(a=Xd(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Go(o,l++),s+=Fi(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function wi(e,t,n){if(e==null)return e;var r=[],i=0;return Fi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function eh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $e={current:null},Ui={transition:null},th={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:Ui,ReactCurrentOwner:kl};function Zu(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:wi,forEach:function(e,t,n){wi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wi(e,function(){t++}),t},toArray:function(e){return wi(e,function(t){return t})||[]},only:function(e){if(!xl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=ar;se.Fragment=$d;se.Profiler=Hd;se.PureComponent=wl;se.StrictMode=Wd;se.Suspense=Kd;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=th;se.act=Zu;se.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Mu({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=kl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Wu.call(t,a)&&!Hu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var f=0;f<a;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:fi,type:e.type,key:i,ref:o,props:r,_owner:s}};se.createContext=function(e){return e={$$typeof:Zd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vd,_context:e},e.Consumer=e};se.createElement=Vu;se.createFactory=function(e){var t=Vu.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:Gd,render:e}};se.isValidElement=xl;se.lazy=function(e){return{$$typeof:Yd,_payload:{_status:-1,_result:e},_init:eh}};se.memo=function(e,t){return{$$typeof:Qd,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Ui.transition;Ui.transition={};try{e()}finally{Ui.transition=t}};se.unstable_act=Zu;se.useCallback=function(e,t){return $e.current.useCallback(e,t)};se.useContext=function(e){return $e.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return $e.current.useDeferredValue(e)};se.useEffect=function(e,t){return $e.current.useEffect(e,t)};se.useId=function(){return $e.current.useId()};se.useImperativeHandle=function(e,t,n){return $e.current.useImperativeHandle(e,t,n)};se.useInsertionEffect=function(e,t){return $e.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return $e.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return $e.current.useMemo(e,t)};se.useReducer=function(e,t,n){return $e.current.useReducer(e,t,n)};se.useRef=function(e){return $e.current.useRef(e)};se.useState=function(e){return $e.current.useState(e)};se.useSyncExternalStore=function(e,t,n){return $e.current.useSyncExternalStore(e,t,n)};se.useTransition=function(){return $e.current.useTransition()};se.version="18.3.1";Fu.exports=se;var Ie=Fu.exports;const nh=Du(Ie);/** 10 - * @license React 11 - * react-jsx-runtime.production.min.js 12 - * 13 - * Copyright (c) Facebook, Inc. and its affiliates. 14 - * 15 - * This source code is licensed under the MIT license found in the 16 - * LICENSE file in the root directory of this source tree. 17 - */var rh=Ie,ih=Symbol.for("react.element"),oh=Symbol.for("react.fragment"),sh=Object.prototype.hasOwnProperty,lh=rh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ah={key:!0,ref:!0,__self:!0,__source:!0};function Gu(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)sh.call(t,r)&&!ah.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ih,type:e,key:o,ref:s,props:i,_owner:lh.current}}Eo.Fragment=oh;Eo.jsx=Gu;Eo.jsxs=Gu;bu.exports=Eo;var M=bu.exports,xs={},Ku={exports:{}},tt={},Qu={exports:{}},Yu={};/** 18 - * @license React 19 - * scheduler.production.min.js 20 - * 21 - * Copyright (c) Facebook, Inc. and its affiliates. 22 - * 23 - * This source code is licensed under the MIT license found in the 24 - * LICENSE file in the root directory of this source tree. 25 - */(function(e){function t(D,A){var $=D.length;D.push(A);e:for(;0<$;){var z=$-1>>>1,T=D[z];if(0<i(T,A))D[z]=A,D[$]=T,$=z;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var A=D[0],$=D.pop();if($!==A){D[0]=$;e:for(var z=0,T=D.length,ne=T>>>1;z<ne;){var X=2*(z+1)-1,G=D[X],oe=X+1,de=D[oe];if(0>i(G,$))oe<T&&0>i(de,G)?(D[z]=de,D[oe]=$,z=oe):(D[z]=G,D[X]=$,z=X);else if(oe<T&&0>i(de,$))D[z]=de,D[oe]=$,z=oe;else break e}}return A}function i(D,A){var $=D.sortIndex-A.sortIndex;return $!==0?$:D.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],f=[],_=1,v=null,m=3,p=!1,w=!1,h=!1,k=typeof setTimeout=="function"?setTimeout:null,u=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(D){for(var A=n(f);A!==null;){if(A.callback===null)r(f);else if(A.startTime<=D)r(f),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(f)}}function S(D){if(h=!1,g(D),!w)if(n(a)!==null)w=!0,V(C);else{var A=n(f);A!==null&&L(S,A.startTime-D)}}function C(D,A){w=!1,h&&(h=!1,u(b),b=-1),p=!0;var $=m;try{for(g(A),v=n(a);v!==null&&(!(v.expirationTime>A)||D&&!te());){var z=v.callback;if(typeof z=="function"){v.callback=null,m=v.priorityLevel;var T=z(v.expirationTime<=A);A=e.unstable_now(),typeof T=="function"?v.callback=T:v===n(a)&&r(a),g(A)}else r(a);v=n(a)}if(v!==null)var ne=!0;else{var X=n(f);X!==null&&L(S,X.startTime-A),ne=!1}return ne}finally{v=null,m=$,p=!1}}var R=!1,P=null,b=-1,F=5,W=-1;function te(){return!(e.unstable_now()-W<F)}function N(){if(P!==null){var D=e.unstable_now();W=D;var A=!0;try{A=P(!0,D)}finally{A?B():(R=!1,P=null)}}else R=!1}var B;if(typeof c=="function")B=function(){c(N)};else if(typeof MessageChannel<"u"){var y=new MessageChannel,j=y.port2;y.port1.onmessage=N,B=function(){j.postMessage(null)}}else B=function(){k(N,0)};function V(D){P=D,R||(R=!0,B())}function L(D,A){b=k(function(){D(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,V(C))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var A=3;break;default:A=m}var $=m;m=A;try{return D()}finally{m=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,A){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var $=m;m=D;try{return A()}finally{m=$}},e.unstable_scheduleCallback=function(D,A,$){var z=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?z+$:z):$=z,D){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=$+T,D={id:_++,callback:A,priorityLevel:D,startTime:$,expirationTime:T,sortIndex:-1},$>z?(D.sortIndex=$,t(f,D),n(a)===null&&D===n(f)&&(h?(u(b),b=-1):h=!0,L(S,$-z))):(D.sortIndex=T,t(a,D),w||p||(w=!0,V(C))),D},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(D){var A=m;return function(){var $=m;m=A;try{return D.apply(this,arguments)}finally{m=$}}}})(Yu);Qu.exports=Yu;var uh=Qu.exports;/** 26 - * @license React 27 - * react-dom.production.min.js 28 - * 29 - * Copyright (c) Facebook, Inc. and its affiliates. 30 - * 31 - * This source code is licensed under the MIT license found in the 32 - * LICENSE file in the root directory of this source tree. 33 - */var ch=Ie,qe=uh;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xu=new Set,Br={};function Tn(e,t){tr(e,t),tr(e+"Capture",t)}function tr(e,t){for(Br[e]=t,e=0;e<t.length;e++)Xu.add(t[e])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ss=Object.prototype.hasOwnProperty,fh=/^[: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]*$/,Ca={},Na={};function dh(e){return Ss.call(Na,e)?!0:Ss.call(Ca,e)?!1:fh.test(e)?Na[e]=!0:(Ca[e]=!0,!1)}function hh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ph(e,t,n,r){if(t===null||typeof t>"u"||hh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function We(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new We(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sl=/[\-:]([a-z])/g;function El(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Sl,El);Le[t]=new We(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Sl,El);Le[t]=new We(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Sl,El);Le[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cl(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ph(t,n,i,r)&&(n=null),r||i===null?dh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Bt=ch.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_i=Symbol.for("react.element"),jn=Symbol.for("react.portal"),On=Symbol.for("react.fragment"),Nl=Symbol.for("react.strict_mode"),Es=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),qu=Symbol.for("react.context"),zl=Symbol.for("react.forward_ref"),Cs=Symbol.for("react.suspense"),Ns=Symbol.for("react.suspense_list"),Tl=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),ec=Symbol.for("react.offscreen"),za=Symbol.iterator;function mr(e){return e===null||typeof e!="object"?null:(e=za&&e[za]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,Ko;function Nr(e){if(Ko===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ko=t&&t[1]||""}return` 34 - `+Ko+e}var Qo=!1;function Yo(e,t){if(!e||Qo)return"";Qo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(` 35 - `),o=r.stack.split(` 36 - `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=` 37 - `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function mh(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=Yo(e.type,!1),e;case 11:return e=Yo(e.type.render,!1),e;case 1:return e=Yo(e.type,!0),e;default:return""}}function zs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case On:return"Fragment";case jn:return"Portal";case Es:return"Profiler";case Nl:return"StrictMode";case Cs:return"Suspense";case Ns:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qu:return(e.displayName||"Context")+".Consumer";case Ju:return(e._context.displayName||"Context")+".Provider";case zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tl:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function gh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zs(t);case 8:return t===Nl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vh(e){var t=tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ki(e){e._valueTracker||(e._valueTracker=vh(e))}function nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ts(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ta(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&Cl(e,"checked",t,!1)}function Ps(e,t){rc(e,t);var n=on(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Is(e,t.type,n):t.hasOwnProperty("defaultValue")&&Is(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Is(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function Gn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+on(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Rs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ia(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Q(92));if(zr(n)){if(1<n.length)throw Error(Q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function ic(e,t){var n=on(t.value),r=on(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ra(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function oc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function As(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?oc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xi,sc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yh=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){yh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function lc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var wh=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function js(e,t){if(t){if(wh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Os(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ls=null;function Pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ds=null,Kn=null,Qn=null;function Aa(e){if(e=pi(e)){if(typeof Ds!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=Po(t),Ds(e.stateNode,e.type,t))}}function uc(e){Kn?Qn?Qn.push(e):Qn=[e]:Kn=e}function cc(){if(Kn){var e=Kn,t=Qn;if(Qn=Kn=null,Aa(e),t)for(e=0;e<t.length;e++)Aa(t[e])}}function fc(e,t){return e(t)}function dc(){}var Xo=!1;function hc(e,t,n){if(Xo)return e(t,n);Xo=!0;try{return fc(e,t,n)}finally{Xo=!1,(Kn!==null||Qn!==null)&&(dc(),cc())}}function Wr(e,t){var n=e.stateNode;if(n===null)return null;var r=Po(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Q(231,t,typeof n));return n}var bs=!1;if(Lt)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){bs=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{bs=!1}function _h(e,t,n,r,i,o,s,l,a){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(_){this.onError(_)}}var Rr=!1,Ji=null,qi=!1,Fs=null,kh={onError:function(e){Rr=!0,Ji=e}};function xh(e,t,n,r,i,o,s,l,a){Rr=!1,Ji=null,_h.apply(kh,arguments)}function Sh(e,t,n,r,i,o,s,l,a){if(xh.apply(this,arguments),Rr){if(Rr){var f=Ji;Rr=!1,Ji=null}else throw Error(Q(198));qi||(qi=!0,Fs=f)}}function Pn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ja(e){if(Pn(e)!==e)throw Error(Q(188))}function Eh(e){var t=e.alternate;if(!t){if(t=Pn(e),t===null)throw Error(Q(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ja(i),e;if(o===r)return ja(i),t;o=o.sibling}throw Error(Q(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(Q(189))}}if(n.alternate!==r)throw Error(Q(190))}if(n.tag!==3)throw Error(Q(188));return n.stateNode.current===n?e:t}function mc(e){return e=Eh(e),e!==null?gc(e):null}function gc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gc(e);if(t!==null)return t;e=e.sibling}return null}var vc=qe.unstable_scheduleCallback,Oa=qe.unstable_cancelCallback,Ch=qe.unstable_shouldYield,Nh=qe.unstable_requestPaint,Ce=qe.unstable_now,zh=qe.unstable_getCurrentPriorityLevel,Il=qe.unstable_ImmediatePriority,yc=qe.unstable_UserBlockingPriority,eo=qe.unstable_NormalPriority,Th=qe.unstable_LowPriority,wc=qe.unstable_IdlePriority,Co=null,Nt=null;function Ph(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Co,e,void 0,(e.current.flags&128)===128)}catch{}}var gt=Math.clz32?Math.clz32:Ah,Ih=Math.log,Rh=Math.LN2;function Ah(e){return e>>>=0,e===0?32:31-(Ih(e)/Rh|0)|0}var Si=64,Ei=4194304;function Tr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function to(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Tr(l):(o&=s,o!==0&&(r=Tr(o)))}else s=n&~i,s!==0?r=Tr(s):o!==0&&(r=Tr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-gt(t),i=1<<n,r|=e[n],t&=~i;return r}function jh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Oh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-gt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=jh(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Us(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _c(){var e=Si;return Si<<=1,!(Si&4194240)&&(Si=64),e}function Jo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gt(t),e[t]=n}function Lh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-gt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Rl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var he=0;function kc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xc,Al,Sc,Ec,Cc,Ms=!1,Ci=[],Yt=null,Xt=null,Jt=null,Hr=new Map,Vr=new Map,Zt=[],Dh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function La(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Jt=null;break;case"pointerover":case"pointerout":Hr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vr.delete(t.pointerId)}}function vr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=pi(t),t!==null&&Al(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bh(e,t,n,r,i){switch(t){case"focusin":return Yt=vr(Yt,e,t,n,r,i),!0;case"dragenter":return Xt=vr(Xt,e,t,n,r,i),!0;case"mouseover":return Jt=vr(Jt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Hr.set(o,vr(Hr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Vr.set(o,vr(Vr.get(o)||null,e,t,n,r,i)),!0}return!1}function Nc(e){var t=gn(e.target);if(t!==null){var n=Pn(t);if(n!==null){if(t=n.tag,t===13){if(t=pc(n),t!==null){e.blockedOn=t,Cc(e.priority,function(){Sc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ls=r,n.target.dispatchEvent(r),Ls=null}else return t=pi(n),t!==null&&Al(t),e.blockedOn=n,!1;t.shift()}return!0}function Da(e,t,n){Mi(e)&&n.delete(t)}function Fh(){Ms=!1,Yt!==null&&Mi(Yt)&&(Yt=null),Xt!==null&&Mi(Xt)&&(Xt=null),Jt!==null&&Mi(Jt)&&(Jt=null),Hr.forEach(Da),Vr.forEach(Da)}function yr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ms||(Ms=!0,qe.unstable_scheduleCallback(qe.unstable_NormalPriority,Fh)))}function Zr(e){function t(i){return yr(i,e)}if(0<Ci.length){yr(Ci[0],e);for(var n=1;n<Ci.length;n++){var r=Ci[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&yr(Yt,e),Xt!==null&&yr(Xt,e),Jt!==null&&yr(Jt,e),Hr.forEach(t),Vr.forEach(t),n=0;n<Zt.length;n++)r=Zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zt.length&&(n=Zt[0],n.blockedOn===null);)Nc(n),n.blockedOn===null&&Zt.shift()}var Yn=Bt.ReactCurrentBatchConfig,no=!0;function Uh(e,t,n,r){var i=he,o=Yn.transition;Yn.transition=null;try{he=1,jl(e,t,n,r)}finally{he=i,Yn.transition=o}}function Mh(e,t,n,r){var i=he,o=Yn.transition;Yn.transition=null;try{he=4,jl(e,t,n,r)}finally{he=i,Yn.transition=o}}function jl(e,t,n,r){if(no){var i=Bs(e,t,n,r);if(i===null)as(e,t,r,ro,n),La(e,r);else if(bh(i,e,t,n,r))r.stopPropagation();else if(La(e,r),t&4&&-1<Dh.indexOf(e)){for(;i!==null;){var o=pi(i);if(o!==null&&xc(o),o=Bs(e,t,n,r),o===null&&as(e,t,r,ro,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else as(e,t,r,null,n)}}var ro=null;function Bs(e,t,n,r){if(ro=null,e=Pl(r),e=gn(e),e!==null)if(t=Pn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ro=e,null}function zc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(zh()){case Il:return 1;case yc:return 4;case eo:case Th:return 16;case wc:return 536870912;default:return 16}default:return 16}}var Kt=null,Ol=null,Bi=null;function Tc(){if(Bi)return Bi;var e,t=Ol,n=t.length,r,i="value"in Kt?Kt.value:Kt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Bi=i.slice(e,1<r?1-r:void 0)}function $i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ni(){return!0}function ba(){return!1}function nt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ni:ba,this.isPropagationStopped=ba,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ll=nt(ur),hi=ke({},ur,{view:0,detail:0}),Bh=nt(hi),qo,es,wr,No=ke({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dl,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!==wr&&(wr&&e.type==="mousemove"?(qo=e.screenX-wr.screenX,es=e.screenY-wr.screenY):es=qo=0,wr=e),qo)},movementY:function(e){return"movementY"in e?e.movementY:es}}),Fa=nt(No),$h=ke({},No,{dataTransfer:0}),Wh=nt($h),Hh=ke({},hi,{relatedTarget:0}),ts=nt(Hh),Vh=ke({},ur,{animationName:0,elapsedTime:0,pseudoElement:0}),Zh=nt(Vh),Gh=ke({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kh=nt(Gh),Qh=ke({},ur,{data:0}),Ua=nt(Qh),Yh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xh={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"},Jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jh[e])?!!t[e]:!1}function Dl(){return qh}var ep=ke({},hi,{key:function(e){if(e.key){var t=Yh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dl,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tp=nt(ep),np=ke({},No,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ma=nt(np),rp=ke({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dl}),ip=nt(rp),op=ke({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),sp=nt(op),lp=ke({},No,{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}),ap=nt(lp),up=[9,13,27,32],bl=Lt&&"CompositionEvent"in window,Ar=null;Lt&&"documentMode"in document&&(Ar=document.documentMode);var cp=Lt&&"TextEvent"in window&&!Ar,Pc=Lt&&(!bl||Ar&&8<Ar&&11>=Ar),Ba=" ",$a=!1;function Ic(e,t){switch(e){case"keyup":return up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function fp(e,t){switch(e){case"compositionend":return Rc(t);case"keypress":return t.which!==32?null:($a=!0,Ba);case"textInput":return e=t.data,e===Ba&&$a?null:e;default:return null}}function dp(e,t){if(Ln)return e==="compositionend"||!bl&&Ic(e,t)?(e=Tc(),Bi=Ol=Kt=null,Ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pc&&t.locale!=="ko"?null:t.data;default:return null}}var hp={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 Wa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hp[e.type]:t==="textarea"}function Ac(e,t,n,r){uc(r),t=io(t,"onChange"),0<t.length&&(n=new Ll("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jr=null,Gr=null;function pp(e){Wc(e,0)}function zo(e){var t=Fn(e);if(nc(t))return e}function mp(e,t){if(e==="change")return t}var jc=!1;if(Lt){var ns;if(Lt){var rs="oninput"in document;if(!rs){var Ha=document.createElement("div");Ha.setAttribute("oninput","return;"),rs=typeof Ha.oninput=="function"}ns=rs}else ns=!1;jc=ns&&(!document.documentMode||9<document.documentMode)}function Va(){jr&&(jr.detachEvent("onpropertychange",Oc),Gr=jr=null)}function Oc(e){if(e.propertyName==="value"&&zo(Gr)){var t=[];Ac(t,Gr,e,Pl(e)),hc(pp,t)}}function gp(e,t,n){e==="focusin"?(Va(),jr=t,Gr=n,jr.attachEvent("onpropertychange",Oc)):e==="focusout"&&Va()}function vp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zo(Gr)}function yp(e,t){if(e==="click")return zo(t)}function wp(e,t){if(e==="input"||e==="change")return zo(t)}function _p(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:_p;function Kr(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ss.call(t,i)||!yt(e[i],t[i]))return!1}return!0}function Za(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ga(e,t){var n=Za(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Za(n)}}function Lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dc(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function Fl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kp(e){var t=Dc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lc(n.ownerDocument.documentElement,n)){if(r!==null&&Fl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ga(n,o);var s=Ga(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xp=Lt&&"documentMode"in document&&11>=document.documentMode,Dn=null,$s=null,Or=null,Ws=!1;function Ka(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ws||Dn==null||Dn!==Xi(r)||(r=Dn,"selectionStart"in r&&Fl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&Kr(Or,r)||(Or=r,r=io($s,"onSelect"),0<r.length&&(t=new Ll("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dn)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bn={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionend:zi("Transition","TransitionEnd")},is={},bc={};Lt&&(bc=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function To(e){if(is[e])return is[e];if(!bn[e])return e;var t=bn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bc)return is[e]=t[n];return e}var Fc=To("animationend"),Uc=To("animationiteration"),Mc=To("animationstart"),Bc=To("transitionend"),$c=new Map,Qa="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ln(e,t){$c.set(e,t),Tn(t,[e])}for(var os=0;os<Qa.length;os++){var ss=Qa[os],Sp=ss.toLowerCase(),Ep=ss[0].toUpperCase()+ss.slice(1);ln(Sp,"on"+Ep)}ln(Fc,"onAnimationEnd");ln(Uc,"onAnimationIteration");ln(Mc,"onAnimationStart");ln("dblclick","onDoubleClick");ln("focusin","onFocus");ln("focusout","onBlur");ln(Bc,"onTransitionEnd");tr("onMouseEnter",["mouseout","mouseover"]);tr("onMouseLeave",["mouseout","mouseover"]);tr("onPointerEnter",["pointerout","pointerover"]);tr("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="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(" "),Cp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Ya(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Sh(r,t,void 0,e),e.currentTarget=null}function Wc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,f=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;Ya(i,l,f),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,f=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;Ya(i,l,f),o=a}}}if(qi)throw e=Fs,qi=!1,Fs=null,e}function ge(e,t){var n=t[Ks];n===void 0&&(n=t[Ks]=new Set);var r=e+"__bubble";n.has(r)||(Hc(t,e,2,!1),n.add(r))}function ls(e,t,n){var r=0;t&&(r|=4),Hc(n,e,r,t)}var Ti="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Ti]){e[Ti]=!0,Xu.forEach(function(n){n!=="selectionchange"&&(Cp.has(n)||ls(n,!1,e),ls(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ti]||(t[Ti]=!0,ls("selectionchange",!1,t))}}function Hc(e,t,n,r){switch(zc(t)){case 1:var i=Uh;break;case 4:i=Mh;break;default:i=jl}n=i.bind(null,t,n,e),i=void 0,!bs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function as(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=gn(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}hc(function(){var f=o,_=Pl(n),v=[];e:{var m=$c.get(e);if(m!==void 0){var p=Ll,w=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":p=tp;break;case"focusin":w="focus",p=ts;break;case"focusout":w="blur",p=ts;break;case"beforeblur":case"afterblur":p=ts;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Fa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=ip;break;case Fc:case Uc:case Mc:p=Zh;break;case Bc:p=sp;break;case"scroll":p=Bh;break;case"wheel":p=ap;break;case"copy":case"cut":case"paste":p=Kh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ma}var h=(t&4)!==0,k=!h&&e==="scroll",u=h?m!==null?m+"Capture":null:m;h=[];for(var c=f,g;c!==null;){g=c;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,u!==null&&(S=Wr(c,u),S!=null&&h.push(Yr(c,S,g)))),k)break;c=c.return}0<h.length&&(m=new p(m,w,null,n,_),v.push({event:m,listeners:h}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==Ls&&(w=n.relatedTarget||n.fromElement)&&(gn(w)||w[Dt]))break e;if((p||m)&&(m=_.window===_?_:(m=_.ownerDocument)?m.defaultView||m.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=f,w=w?gn(w):null,w!==null&&(k=Pn(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=f),p!==w)){if(h=Fa,S="onMouseLeave",u="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(h=Ma,S="onPointerLeave",u="onPointerEnter",c="pointer"),k=p==null?m:Fn(p),g=w==null?m:Fn(w),m=new h(S,c+"leave",p,n,_),m.target=k,m.relatedTarget=g,S=null,gn(_)===f&&(h=new h(u,c+"enter",w,n,_),h.target=g,h.relatedTarget=k,S=h),k=S,p&&w)t:{for(h=p,u=w,c=0,g=h;g;g=An(g))c++;for(g=0,S=u;S;S=An(S))g++;for(;0<c-g;)h=An(h),c--;for(;0<g-c;)u=An(u),g--;for(;c--;){if(h===u||u!==null&&h===u.alternate)break t;h=An(h),u=An(u)}h=null}else h=null;p!==null&&Xa(v,m,p,h,!1),w!==null&&k!==null&&Xa(v,k,w,h,!0)}}e:{if(m=f?Fn(f):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var C=mp;else if(Wa(m))if(jc)C=wp;else{C=vp;var R=gp}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=yp);if(C&&(C=C(e,f))){Ac(v,C,n,_);break e}R&&R(e,m,f),e==="focusout"&&(R=m._wrapperState)&&R.controlled&&m.type==="number"&&Is(m,"number",m.value)}switch(R=f?Fn(f):window,e){case"focusin":(Wa(R)||R.contentEditable==="true")&&(Dn=R,$s=f,Or=null);break;case"focusout":Or=$s=Dn=null;break;case"mousedown":Ws=!0;break;case"contextmenu":case"mouseup":case"dragend":Ws=!1,Ka(v,n,_);break;case"selectionchange":if(xp)break;case"keydown":case"keyup":Ka(v,n,_)}var P;if(bl)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Ln?Ic(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(Pc&&n.locale!=="ko"&&(Ln||b!=="onCompositionStart"?b==="onCompositionEnd"&&Ln&&(P=Tc()):(Kt=_,Ol="value"in Kt?Kt.value:Kt.textContent,Ln=!0)),R=io(f,b),0<R.length&&(b=new Ua(b,e,null,n,_),v.push({event:b,listeners:R}),P?b.data=P:(P=Rc(n),P!==null&&(b.data=P)))),(P=cp?fp(e,n):dp(e,n))&&(f=io(f,"onBeforeInput"),0<f.length&&(_=new Ua("onBeforeInput","beforeinput",null,n,_),v.push({event:_,listeners:f}),_.data=P))}Wc(v,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function io(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Wr(e,n),o!=null&&r.unshift(Yr(e,o,i)),o=Wr(e,t),o!=null&&r.push(Yr(e,o,i))),e=e.return}return r}function An(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xa(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,f=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&f!==null&&(l=f,i?(a=Wr(n,o),a!=null&&s.unshift(Yr(n,a,l))):i||(a=Wr(n,o),a!=null&&s.push(Yr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Np=/\r\n?/g,zp=/\u0000|\uFFFD/g;function Ja(e){return(typeof e=="string"?e:""+e).replace(Np,` 38 - `).replace(zp,"")}function Pi(e,t,n){if(t=Ja(t),Ja(e)!==t&&n)throw Error(Q(425))}function oo(){}var Hs=null,Vs=null;function Zs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gs=typeof setTimeout=="function"?setTimeout:void 0,Tp=typeof clearTimeout=="function"?clearTimeout:void 0,qa=typeof Promise=="function"?Promise:void 0,Pp=typeof queueMicrotask=="function"?queueMicrotask:typeof qa<"u"?function(e){return qa.resolve(null).then(e).catch(Ip)}:Gs;function Ip(e){setTimeout(function(){throw e})}function us(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Zr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Zr(t)}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function eu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var cr=Math.random().toString(36).slice(2),Et="__reactFiber$"+cr,Xr="__reactProps$"+cr,Dt="__reactContainer$"+cr,Ks="__reactEvents$"+cr,Rp="__reactListeners$"+cr,Ap="__reactHandles$"+cr;function gn(e){var t=e[Et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dt]||n[Et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=eu(e);e!==null;){if(n=e[Et])return n;e=eu(e)}return t}e=n,n=e.parentNode}return null}function pi(e){return e=e[Et]||e[Dt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function Po(e){return e[Xr]||null}var Qs=[],Un=-1;function an(e){return{current:e}}function ve(e){0>Un||(e.current=Qs[Un],Qs[Un]=null,Un--)}function me(e,t){Un++,Qs[Un]=e.current,e.current=t}var sn={},Ue=an(sn),Ze=an(!1),Sn=sn;function nr(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ge(e){return e=e.childContextTypes,e!=null}function so(){ve(Ze),ve(Ue)}function tu(e,t,n){if(Ue.current!==sn)throw Error(Q(168));me(Ue,t),me(Ze,n)}function Vc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Q(108,gh(e)||"Unknown",i));return ke({},n,r)}function lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Sn=Ue.current,me(Ue,e),me(Ze,Ze.current),!0}function nu(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=Vc(e,t,Sn),r.__reactInternalMemoizedMergedChildContext=e,ve(Ze),ve(Ue),me(Ue,e)):ve(Ze),me(Ze,n)}var It=null,Io=!1,cs=!1;function Zc(e){It===null?It=[e]:It.push(e)}function jp(e){Io=!0,Zc(e)}function un(){if(!cs&&It!==null){cs=!0;var e=0,t=he;try{var n=It;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}It=null,Io=!1}catch(i){throw It!==null&&(It=It.slice(e+1)),vc(Il,un),i}finally{he=t,cs=!1}}return null}var Mn=[],Bn=0,ao=null,uo=0,ot=[],st=0,En=null,At=1,jt="";function pn(e,t){Mn[Bn++]=uo,Mn[Bn++]=ao,ao=e,uo=t}function Gc(e,t,n){ot[st++]=At,ot[st++]=jt,ot[st++]=En,En=e;var r=At;e=jt;var i=32-gt(r)-1;r&=~(1<<i),n+=1;var o=32-gt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,At=1<<32-gt(t)+i|n<<i|r,jt=o+e}else At=1<<o|n<<i|r,jt=e}function Ul(e){e.return!==null&&(pn(e,1),Gc(e,1,0))}function Ml(e){for(;e===ao;)ao=Mn[--Bn],Mn[Bn]=null,uo=Mn[--Bn],Mn[Bn]=null;for(;e===En;)En=ot[--st],ot[st]=null,jt=ot[--st],ot[st]=null,At=ot[--st],ot[st]=null}var Xe=null,Ye=null,ye=!1,mt=null;function Kc(e,t){var n=lt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ru(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xe=e,Ye=qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=En!==null?{id:At,overflow:jt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,Ye=null,!0):!1;default:return!1}}function Ys(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xs(e){if(ye){var t=Ye;if(t){var n=t;if(!ru(e,t)){if(Ys(e))throw Error(Q(418));t=qt(n.nextSibling);var r=Xe;t&&ru(e,t)?Kc(r,n):(e.flags=e.flags&-4097|2,ye=!1,Xe=e)}}else{if(Ys(e))throw Error(Q(418));e.flags=e.flags&-4097|2,ye=!1,Xe=e}}}function iu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function Ii(e){if(e!==Xe)return!1;if(!ye)return iu(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zs(e.type,e.memoizedProps)),t&&(t=Ye)){if(Ys(e))throw Qc(),Error(Q(418));for(;t;)Kc(e,t),t=qt(t.nextSibling)}if(iu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Xe?qt(e.stateNode.nextSibling):null;return!0}function Qc(){for(var e=Ye;e;)e=qt(e.nextSibling)}function rr(){Ye=Xe=null,ye=!1}function Bl(e){mt===null?mt=[e]:mt.push(e)}var Op=Bt.ReactCurrentBatchConfig;function _r(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Q(309));var r=n.stateNode}if(!r)throw Error(Q(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(Q(284));if(!n._owner)throw Error(Q(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ou(e){var t=e._init;return t(e._payload)}function Yc(e){function t(u,c){if(e){var g=u.deletions;g===null?(u.deletions=[c],u.flags|=16):g.push(c)}}function n(u,c){if(!e)return null;for(;c!==null;)t(u,c),c=c.sibling;return null}function r(u,c){for(u=new Map;c!==null;)c.key!==null?u.set(c.key,c):u.set(c.index,c),c=c.sibling;return u}function i(u,c){return u=rn(u,c),u.index=0,u.sibling=null,u}function o(u,c,g){return u.index=g,e?(g=u.alternate,g!==null?(g=g.index,g<c?(u.flags|=2,c):g):(u.flags|=2,c)):(u.flags|=1048576,c)}function s(u){return e&&u.alternate===null&&(u.flags|=2),u}function l(u,c,g,S){return c===null||c.tag!==6?(c=vs(g,u.mode,S),c.return=u,c):(c=i(c,g),c.return=u,c)}function a(u,c,g,S){var C=g.type;return C===On?_(u,c,g.props.children,S,g.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ht&&ou(C)===c.type)?(S=i(c,g.props),S.ref=_r(u,c,g),S.return=u,S):(S=Qi(g.type,g.key,g.props,null,u.mode,S),S.ref=_r(u,c,g),S.return=u,S)}function f(u,c,g,S){return c===null||c.tag!==4||c.stateNode.containerInfo!==g.containerInfo||c.stateNode.implementation!==g.implementation?(c=ys(g,u.mode,S),c.return=u,c):(c=i(c,g.children||[]),c.return=u,c)}function _(u,c,g,S,C){return c===null||c.tag!==7?(c=kn(g,u.mode,S,C),c.return=u,c):(c=i(c,g),c.return=u,c)}function v(u,c,g){if(typeof c=="string"&&c!==""||typeof c=="number")return c=vs(""+c,u.mode,g),c.return=u,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case _i:return g=Qi(c.type,c.key,c.props,null,u.mode,g),g.ref=_r(u,null,c),g.return=u,g;case jn:return c=ys(c,u.mode,g),c.return=u,c;case Ht:var S=c._init;return v(u,S(c._payload),g)}if(zr(c)||mr(c))return c=kn(c,u.mode,g,null),c.return=u,c;Ri(u,c)}return null}function m(u,c,g,S){var C=c!==null?c.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return C!==null?null:l(u,c,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _i:return g.key===C?a(u,c,g,S):null;case jn:return g.key===C?f(u,c,g,S):null;case Ht:return C=g._init,m(u,c,C(g._payload),S)}if(zr(g)||mr(g))return C!==null?null:_(u,c,g,S,null);Ri(u,g)}return null}function p(u,c,g,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return u=u.get(g)||null,l(c,u,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _i:return u=u.get(S.key===null?g:S.key)||null,a(c,u,S,C);case jn:return u=u.get(S.key===null?g:S.key)||null,f(c,u,S,C);case Ht:var R=S._init;return p(u,c,g,R(S._payload),C)}if(zr(S)||mr(S))return u=u.get(g)||null,_(c,u,S,C,null);Ri(c,S)}return null}function w(u,c,g,S){for(var C=null,R=null,P=c,b=c=0,F=null;P!==null&&b<g.length;b++){P.index>b?(F=P,P=null):F=P.sibling;var W=m(u,P,g[b],S);if(W===null){P===null&&(P=F);break}e&&P&&W.alternate===null&&t(u,P),c=o(W,c,b),R===null?C=W:R.sibling=W,R=W,P=F}if(b===g.length)return n(u,P),ye&&pn(u,b),C;if(P===null){for(;b<g.length;b++)P=v(u,g[b],S),P!==null&&(c=o(P,c,b),R===null?C=P:R.sibling=P,R=P);return ye&&pn(u,b),C}for(P=r(u,P);b<g.length;b++)F=p(P,u,b,g[b],S),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?b:F.key),c=o(F,c,b),R===null?C=F:R.sibling=F,R=F);return e&&P.forEach(function(te){return t(u,te)}),ye&&pn(u,b),C}function h(u,c,g,S){var C=mr(g);if(typeof C!="function")throw Error(Q(150));if(g=C.call(g),g==null)throw Error(Q(151));for(var R=C=null,P=c,b=c=0,F=null,W=g.next();P!==null&&!W.done;b++,W=g.next()){P.index>b?(F=P,P=null):F=P.sibling;var te=m(u,P,W.value,S);if(te===null){P===null&&(P=F);break}e&&P&&te.alternate===null&&t(u,P),c=o(te,c,b),R===null?C=te:R.sibling=te,R=te,P=F}if(W.done)return n(u,P),ye&&pn(u,b),C;if(P===null){for(;!W.done;b++,W=g.next())W=v(u,W.value,S),W!==null&&(c=o(W,c,b),R===null?C=W:R.sibling=W,R=W);return ye&&pn(u,b),C}for(P=r(u,P);!W.done;b++,W=g.next())W=p(P,u,b,W.value,S),W!==null&&(e&&W.alternate!==null&&P.delete(W.key===null?b:W.key),c=o(W,c,b),R===null?C=W:R.sibling=W,R=W);return e&&P.forEach(function(N){return t(u,N)}),ye&&pn(u,b),C}function k(u,c,g,S){if(typeof g=="object"&&g!==null&&g.type===On&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case _i:e:{for(var C=g.key,R=c;R!==null;){if(R.key===C){if(C=g.type,C===On){if(R.tag===7){n(u,R.sibling),c=i(R,g.props.children),c.return=u,u=c;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ht&&ou(C)===R.type){n(u,R.sibling),c=i(R,g.props),c.ref=_r(u,R,g),c.return=u,u=c;break e}n(u,R);break}else t(u,R);R=R.sibling}g.type===On?(c=kn(g.props.children,u.mode,S,g.key),c.return=u,u=c):(S=Qi(g.type,g.key,g.props,null,u.mode,S),S.ref=_r(u,c,g),S.return=u,u=S)}return s(u);case jn:e:{for(R=g.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===g.containerInfo&&c.stateNode.implementation===g.implementation){n(u,c.sibling),c=i(c,g.children||[]),c.return=u,u=c;break e}else{n(u,c);break}else t(u,c);c=c.sibling}c=ys(g,u.mode,S),c.return=u,u=c}return s(u);case Ht:return R=g._init,k(u,c,R(g._payload),S)}if(zr(g))return w(u,c,g,S);if(mr(g))return h(u,c,g,S);Ri(u,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,c!==null&&c.tag===6?(n(u,c.sibling),c=i(c,g),c.return=u,u=c):(n(u,c),c=vs(g,u.mode,S),c.return=u,u=c),s(u)):n(u,c)}return k}var ir=Yc(!0),Xc=Yc(!1),co=an(null),fo=null,$n=null,$l=null;function Wl(){$l=$n=fo=null}function Hl(e){var t=co.current;ve(co),e._currentValue=t}function Js(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Xn(e,t){fo=e,$l=$n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function ut(e){var t=e._currentValue;if($l!==e)if(e={context:e,memoizedValue:t,next:null},$n===null){if(fo===null)throw Error(Q(308));$n=e,fo.dependencies={lanes:0,firstContext:e}}else $n=$n.next=e;return t}var vn=null;function Vl(e){vn===null?vn=[e]:vn.push(e)}function Jc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Vl(t)):(n.next=i.next,i.next=n),t.interleaved=n,bt(e,r)}function bt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vt=!1;function Zl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function en(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,bt(e,n)}return i=r.interleaved,i===null?(t.next=t,Vl(r)):(t.next=i.next,i.next=t),r.interleaved=t,bt(e,n)}function Wi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}function su(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var i=e.updateQueue;Vt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,f=a.next;a.next=null,s===null?o=f:s.next=f,s=a;var _=e.alternate;_!==null&&(_=_.updateQueue,l=_.lastBaseUpdate,l!==s&&(l===null?_.firstBaseUpdate=f:l.next=f,_.lastBaseUpdate=a))}if(o!==null){var v=i.baseState;s=0,_=f=a=null,l=o;do{var m=l.lane,p=l.eventTime;if((r&m)===m){_!==null&&(_=_.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,h=l;switch(m=t,p=n,h.tag){case 1:if(w=h.payload,typeof w=="function"){v=w.call(p,v,m);break e}v=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=h.payload,m=typeof w=="function"?w.call(p,v,m):w,m==null)break e;v=ke({},v,m);break e;case 2:Vt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else p={eventTime:p,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},_===null?(f=_=p,a=v):_=_.next=p,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(_===null&&(a=v),i.baseState=a,i.firstBaseUpdate=f,i.lastBaseUpdate=_,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Nn|=s,e.lanes=s,e.memoizedState=v}}function lu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Q(191,i));i.call(r)}}}var mi={},zt=an(mi),Jr=an(mi),qr=an(mi);function yn(e){if(e===mi)throw Error(Q(174));return e}function Gl(e,t){switch(me(qr,t),me(Jr,e),me(zt,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:As(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=As(t,e)}ve(zt),me(zt,t)}function or(){ve(zt),ve(Jr),ve(qr)}function ef(e){yn(qr.current);var t=yn(zt.current),n=As(t,e.type);t!==n&&(me(Jr,e),me(zt,n))}function Kl(e){Jr.current===e&&(ve(zt),ve(Jr))}var we=an(0);function po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fs=[];function Ql(){for(var e=0;e<fs.length;e++)fs[e]._workInProgressVersionPrimary=null;fs.length=0}var Hi=Bt.ReactCurrentDispatcher,ds=Bt.ReactCurrentBatchConfig,Cn=0,_e=null,ze=null,Re=null,mo=!1,Lr=!1,ei=0,Lp=0;function De(){throw Error(Q(321))}function Yl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yt(e[n],t[n]))return!1;return!0}function Xl(e,t,n,r,i,o){if(Cn=o,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hi.current=e===null||e.memoizedState===null?Up:Mp,e=n(r,i),Lr){o=0;do{if(Lr=!1,ei=0,25<=o)throw Error(Q(301));o+=1,Re=ze=null,t.updateQueue=null,Hi.current=Bp,e=n(r,i)}while(Lr)}if(Hi.current=go,t=ze!==null&&ze.next!==null,Cn=0,Re=ze=_e=null,mo=!1,t)throw Error(Q(300));return e}function Jl(){var e=ei!==0;return ei=0,e}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?_e.memoizedState=Re=e:Re=Re.next=e,Re}function ct(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Re===null?_e.memoizedState:Re.next;if(t!==null)Re=t,ze=e;else{if(e===null)throw Error(Q(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Re===null?_e.memoizedState=Re=e:Re=Re.next=e}return Re}function ti(e,t){return typeof t=="function"?t(e):t}function hs(e){var t=ct(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var r=ze,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,f=o;do{var _=f.lane;if((Cn&_)===_)a!==null&&(a=a.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var v={lane:_,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};a===null?(l=a=v,s=r):a=a.next=v,_e.lanes|=_,Nn|=_}f=f.next}while(f!==null&&f!==o);a===null?s=r:a.next=l,yt(r,t.memoizedState)||(Ve=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,_e.lanes|=o,Nn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ps(e){var t=ct(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);yt(o,t.memoizedState)||(Ve=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function tf(){}function nf(e,t){var n=_e,r=ct(),i=t(),o=!yt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ve=!0),r=r.queue,ql(sf.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,ni(9,of.bind(null,n,r,i,t),void 0,null),Ae===null)throw Error(Q(349));Cn&30||rf(n,t,i)}return i}function rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function of(e,t,n,r){t.value=n,t.getSnapshot=r,lf(t)&&af(e)}function sf(e,t,n){return n(function(){lf(t)&&af(e)})}function lf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yt(e,n)}catch{return!0}}function af(e){var t=bt(e,1);t!==null&&vt(t,e,1,-1)}function au(e){var t=xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e},t.queue=e,e=e.dispatch=Fp.bind(null,_e,e),[t.memoizedState,e]}function ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function uf(){return ct().memoizedState}function Vi(e,t,n,r){var i=xt();_e.flags|=e,i.memoizedState=ni(1|t,n,void 0,r===void 0?null:r)}function Ro(e,t,n,r){var i=ct();r=r===void 0?null:r;var o=void 0;if(ze!==null){var s=ze.memoizedState;if(o=s.destroy,r!==null&&Yl(r,s.deps)){i.memoizedState=ni(t,n,o,r);return}}_e.flags|=e,i.memoizedState=ni(1|t,n,o,r)}function uu(e,t){return Vi(8390656,8,e,t)}function ql(e,t){return Ro(2048,8,e,t)}function cf(e,t){return Ro(4,2,e,t)}function ff(e,t){return Ro(4,4,e,t)}function df(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hf(e,t,n){return n=n!=null?n.concat([e]):null,Ro(4,4,df.bind(null,t,e),n)}function ea(){}function pf(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mf(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gf(e,t,n){return Cn&21?(yt(n,t)||(n=_c(),_e.lanes|=n,Nn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ve=!0),e.memoizedState=n)}function Dp(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{he=n,ds.transition=r}}function vf(){return ct().memoizedState}function bp(e,t,n){var r=nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yf(e))wf(t,n);else if(n=Jc(e,t,n,r),n!==null){var i=Be();vt(n,e,r,i),_f(n,t,r)}}function Fp(e,t,n){var r=nn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yf(e))wf(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,yt(l,s)){var a=t.interleaved;a===null?(i.next=i,Vl(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Jc(e,t,i,r),n!==null&&(i=Be(),vt(n,e,r,i),_f(n,t,r))}}function yf(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function wf(e,t){Lr=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _f(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}var go={readContext:ut,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Up={readContext:ut,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vi(4194308,4,df.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bp.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:au,useDebugValue:ea,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=au(!1),t=e[0];return e=Dp.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,i=xt();if(ye){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),Ae===null)throw Error(Q(349));Cn&30||rf(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,uu(sf.bind(null,r,o,e),[e]),r.flags|=2048,ni(9,of.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=xt(),t=Ae.identifierPrefix;if(ye){var n=jt,r=At;n=(r&~(1<<32-gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ei++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Lp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mp={readContext:ut,useCallback:pf,useContext:ut,useEffect:ql,useImperativeHandle:hf,useInsertionEffect:cf,useLayoutEffect:ff,useMemo:mf,useReducer:hs,useRef:uf,useState:function(){return hs(ti)},useDebugValue:ea,useDeferredValue:function(e){var t=ct();return gf(t,ze.memoizedState,e)},useTransition:function(){var e=hs(ti)[0],t=ct().memoizedState;return[e,t]},useMutableSource:tf,useSyncExternalStore:nf,useId:vf,unstable_isNewReconciler:!1},Bp={readContext:ut,useCallback:pf,useContext:ut,useEffect:ql,useImperativeHandle:hf,useInsertionEffect:cf,useLayoutEffect:ff,useMemo:mf,useReducer:ps,useRef:uf,useState:function(){return ps(ti)},useDebugValue:ea,useDeferredValue:function(e){var t=ct();return ze===null?t.memoizedState=e:gf(t,ze.memoizedState,e)},useTransition:function(){var e=ps(ti)[0],t=ct().memoizedState;return[e,t]},useMutableSource:tf,useSyncExternalStore:nf,useId:vf,unstable_isNewReconciler:!1};function ht(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function qs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ao={isMounted:function(e){return(e=e._reactInternals)?Pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Be(),i=nn(e),o=Ot(r,i);o.payload=t,n!=null&&(o.callback=n),t=en(e,o,i),t!==null&&(vt(t,e,i,r),Wi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Be(),i=nn(e),o=Ot(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=en(e,o,i),t!==null&&(vt(t,e,i,r),Wi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Be(),r=nn(e),i=Ot(n,r);i.tag=2,t!=null&&(i.callback=t),t=en(e,i,r),t!==null&&(vt(t,e,r,n),Wi(t,e,r))}};function cu(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Kr(n,r)||!Kr(i,o):!0}function kf(e,t,n){var r=!1,i=sn,o=t.contextType;return typeof o=="object"&&o!==null?o=ut(o):(i=Ge(t)?Sn:Ue.current,r=t.contextTypes,o=(r=r!=null)?nr(e,i):sn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ao,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function fu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ao.enqueueReplaceState(t,t.state,null)}function el(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Zl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ut(o):(o=Ge(t)?Sn:Ue.current,i.context=nr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(qs(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ao.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function sr(e,t){try{var n="",r=t;do n+=mh(r),r=r.return;while(r);var i=n}catch(o){i=` 39 - Error generating stack: `+o.message+` 40 - `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function tl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $p=typeof WeakMap=="function"?WeakMap:Map;function xf(e,t,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yo||(yo=!0,fl=r),tl(e,t)},n}function Sf(e,t,n){n=Ot(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){tl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){tl(e,t),typeof r!="function"&&(tn===null?tn=new Set([this]):tn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function du(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $p;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=nm.bind(null,e,t,n),t.then(e,e))}function hu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pu(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ot(-1,1),t.tag=2,en(n,t,1))),n.lanes|=1),e)}var Wp=Bt.ReactCurrentOwner,Ve=!1;function Me(e,t,n,r){t.child=e===null?Xc(t,null,n,r):ir(t,e.child,n,r)}function mu(e,t,n,r,i){n=n.render;var o=t.ref;return Xn(t,i),r=Xl(e,t,n,r,o,i),n=Jl(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ft(e,t,i)):(ye&&n&&Ul(t),t.flags|=1,Me(e,t,r,i),t.child)}function gu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!aa(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ef(e,t,o,r,i)):(e=Qi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Kr,n(s,r)&&e.ref===t.ref)return Ft(e,t,i)}return t.flags|=1,e=rn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ef(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Kr(o,r)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ve=!0);else return t.lanes=e.lanes,Ft(e,t,i)}return nl(e,t,n,r,i)}function Cf(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(Hn,Qe),Qe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(Hn,Qe),Qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,me(Hn,Qe),Qe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,me(Hn,Qe),Qe|=r;return Me(e,t,i,n),t.child}function Nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function nl(e,t,n,r,i){var o=Ge(n)?Sn:Ue.current;return o=nr(t,o),Xn(t,i),n=Xl(e,t,n,r,o,i),r=Jl(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ft(e,t,i)):(ye&&r&&Ul(t),t.flags|=1,Me(e,t,n,i),t.child)}function vu(e,t,n,r,i){if(Ge(n)){var o=!0;lo(t)}else o=!1;if(Xn(t,i),t.stateNode===null)Zi(e,t),kf(t,n,r),el(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=ut(f):(f=Ge(n)?Sn:Ue.current,f=nr(t,f));var _=n.getDerivedStateFromProps,v=typeof _=="function"||typeof s.getSnapshotBeforeUpdate=="function";v||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==f)&&fu(t,s,r,f),Vt=!1;var m=t.memoizedState;s.state=m,ho(t,r,s,i),a=t.memoizedState,l!==r||m!==a||Ze.current||Vt?(typeof _=="function"&&(qs(t,n,_,r),a=t.memoizedState),(l=Vt||cu(t,n,l,r,m,a,f))?(v||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=f,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,qc(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:ht(t.type,l),s.props=f,v=t.pendingProps,m=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=ut(a):(a=Ge(n)?Sn:Ue.current,a=nr(t,a));var p=n.getDerivedStateFromProps;(_=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==v||m!==a)&&fu(t,s,r,a),Vt=!1,m=t.memoizedState,s.state=m,ho(t,r,s,i);var w=t.memoizedState;l!==v||m!==w||Ze.current||Vt?(typeof p=="function"&&(qs(t,n,p,r),w=t.memoizedState),(f=Vt||cu(t,n,f,r,m,w,a)||!1)?(_||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=a,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return rl(e,t,n,r,o,i)}function rl(e,t,n,r,i,o){Nf(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&nu(t,n,!1),Ft(e,t,o);r=t.stateNode,Wp.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ir(t,e.child,null,o),t.child=ir(t,null,l,o)):Me(e,t,l,o),t.memoizedState=r.state,i&&nu(t,n,!0),t.child}function zf(e){var t=e.stateNode;t.pendingContext?tu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tu(e,t.context,!1),Gl(e,t.containerInfo)}function yu(e,t,n,r,i){return rr(),Bl(i),t.flags|=256,Me(e,t,n,r),t.child}var il={dehydrated:null,treeContext:null,retryLane:0};function ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tf(e,t,n){var r=t.pendingProps,i=we.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),me(we,i&1),e===null)return Xs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Lo(s,r,0,null),e=kn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ol(n),t.memoizedState=il,e):ta(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Hp(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=rn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=rn(l,o):(o=kn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?ol(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=il,r}return o=e.child,e=o.sibling,r=rn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ta(e,t){return t=Lo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ai(e,t,n,r){return r!==null&&Bl(r),ir(t,e.child,null,n),e=ta(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hp(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ms(Error(Q(422))),Ai(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Lo({mode:"visible",children:r.children},i,0,null),o=kn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ir(t,e.child,null,s),t.child.memoizedState=ol(s),t.memoizedState=il,o);if(!(t.mode&1))return Ai(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(Q(419)),r=ms(o,r,void 0),Ai(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ve||l){if(r=Ae,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,bt(e,i),vt(r,e,i,-1))}return la(),r=ms(Error(Q(421))),Ai(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=rm.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ye=qt(i.nextSibling),Xe=t,ye=!0,mt=null,e!==null&&(ot[st++]=At,ot[st++]=jt,ot[st++]=En,At=e.id,jt=e.overflow,En=t),t=ta(t,r.children),t.flags|=4096,t)}function wu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Js(e.return,t,n)}function gs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Pf(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Me(e,t,r.children,n),r=we.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wu(e,n,t);else if(e.tag===19)wu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(me(we,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&po(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),gs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}gs(t,!0,n,null,o);break;case"together":gs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vp(e,t,n){switch(t.tag){case 3:zf(t),rr();break;case 5:ef(t);break;case 1:Ge(t.type)&&lo(t);break;case 4:Gl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;me(co,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?Tf(e,t,n):(me(we,we.current&1),e=Ft(e,t,n),e!==null?e.sibling:null);me(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),me(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,Cf(e,t,n)}return Ft(e,t,n)}var If,sl,Rf,Af;If=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sl=function(){};Rf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yn(zt.current);var o=null;switch(n){case"input":i=Ts(e,i),r=Ts(e,r),o=[];break;case"select":i=ke({},i,{value:void 0}),r=ke({},r,{value:void 0}),o=[];break;case"textarea":i=Rs(e,i),r=Rs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=oo)}js(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Br.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var a=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&a!==l&&(a!=null||l!=null))if(f==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(f,n)),n=a;else f==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(f,a)):f==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(f,""+a):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Br.hasOwnProperty(f)?(a!=null&&f==="onScroll"&&ge("scroll",e),o||l===a||(o=[])):(o=o||[]).push(f,a))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};Af=function(e,t,n,r){n!==r&&(t.flags|=4)};function kr(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zp(e,t,n){var r=t.pendingProps;switch(Ml(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return Ge(t.type)&&so(),be(t),null;case 3:return r=t.stateNode,or(),ve(Ze),ve(Ue),Ql(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mt!==null&&(pl(mt),mt=null))),sl(e,t),be(t),null;case 5:Kl(t);var i=yn(qr.current);if(n=t.type,e!==null&&t.stateNode!=null)Rf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Q(166));return be(t),null}if(e=yn(zt.current),Ii(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Et]=t,r[Xr]=o,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(i=0;i<Pr.length;i++)ge(Pr[i],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Ta(r,o),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ge("invalid",r);break;case"textarea":Ia(r,o),ge("invalid",r)}js(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Pi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Pi(r.textContent,l,e),i=["children",""+l]):Br.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&ge("scroll",r)}switch(n){case"input":ki(r),Pa(r,o,!0);break;case"textarea":ki(r),Ra(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=oo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=oc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Et]=t,e[Xr]=r,If(e,t,!1,!1),t.stateNode=e;e:{switch(s=Os(n,r),n){case"dialog":ge("cancel",e),ge("close",e),i=r;break;case"iframe":case"object":case"embed":ge("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pr.length;i++)ge(Pr[i],e);i=r;break;case"source":ge("error",e),i=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),i=r;break;case"details":ge("toggle",e),i=r;break;case"input":Ta(e,r),i=Ts(e,r),ge("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ke({},r,{value:void 0}),ge("invalid",e);break;case"textarea":Ia(e,r),i=Rs(e,r),ge("invalid",e);break;default:i=r}js(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?ac(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&sc(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&$r(e,a):typeof a=="number"&&$r(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Br.hasOwnProperty(o)?a!=null&&o==="onScroll"&&ge("scroll",e):a!=null&&Cl(e,o,a,s))}switch(n){case"input":ki(e),Pa(e,r,!1);break;case"textarea":ki(e),Ra(e);break;case"option":r.value!=null&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Gn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=oo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return be(t),null;case 6:if(e&&t.stateNode!=null)Af(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Q(166));if(n=yn(qr.current),yn(zt.current),Ii(t)){if(r=t.stateNode,n=t.memoizedProps,r[Et]=t,(o=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:Pi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Et]=t,t.stateNode=r}return be(t),null;case 13:if(ve(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&&Ye!==null&&t.mode&1&&!(t.flags&128))Qc(),rr(),t.flags|=98560,o=!1;else if(o=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Q(317));o[Et]=t}else rr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;be(t),o=!1}else mt!==null&&(pl(mt),mt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?Te===0&&(Te=3):la())),t.updateQueue!==null&&(t.flags|=4),be(t),null);case 4:return or(),sl(e,t),e===null&&Qr(t.stateNode.containerInfo),be(t),null;case 10:return Hl(t.type._context),be(t),null;case 17:return Ge(t.type)&&so(),be(t),null;case 19:if(ve(we),o=t.memoizedState,o===null)return be(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)kr(o,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=po(e),s!==null){for(t.flags|=128,kr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(we,we.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ce()>lr&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304)}else{if(!r)if(e=po(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ye)return be(t),null}else 2*Ce()-o.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ce(),t.sibling=null,n=we.current,me(we,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return sa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function Gp(e,t){switch(Ml(t),t.tag){case 1:return Ge(t.type)&&so(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),ve(Ze),ve(Ue),Ql(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kl(t),null;case 13:if(ve(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(we),null;case 4:return or(),null;case 10:return Hl(t.type._context),null;case 22:case 23:return sa(),null;case 24:return null;default:return null}}var ji=!1,Fe=!1,Kp=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function ll(e,t,n){try{n()}catch(r){xe(e,t,r)}}var _u=!1;function Qp(e,t){if(Hs=no,e=Dc(),Fl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,f=0,_=0,v=e,m=null;t:for(;;){for(var p;v!==n||i!==0&&v.nodeType!==3||(l=s+i),v!==o||r!==0&&v.nodeType!==3||(a=s+r),v.nodeType===3&&(s+=v.nodeValue.length),(p=v.firstChild)!==null;)m=v,v=p;for(;;){if(v===e)break t;if(m===n&&++f===i&&(l=s),m===o&&++_===r&&(a=s),(p=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vs={focusedElem:e,selectionRange:n},no=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var h=w.memoizedProps,k=w.memoizedState,u=t.stateNode,c=u.getSnapshotBeforeUpdate(t.elementType===t.type?h:ht(t.type,h),k);u.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(S){xe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return w=_u,_u=!1,w}function Dr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ll(t,n,o)}i=i.next}while(i!==r)}}function jo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Et],delete t[Xr],delete t[Ks],delete t[Rp],delete t[Ap])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Of(e){return e.tag===5||e.tag===3||e.tag===4}function ku(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Of(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=oo));else if(r!==4&&(e=e.child,e!==null))for(ul(e,t,n),e=e.sibling;e!==null;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}var je=null,pt=!1;function Wt(e,t,n){for(n=n.child;n!==null;)Lf(e,t,n),n=n.sibling}function Lf(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Co,n)}catch{}switch(n.tag){case 5:Fe||Wn(n,t);case 6:var r=je,i=pt;je=null,Wt(e,t,n),je=r,pt=i,je!==null&&(pt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(pt?(e=je,n=n.stateNode,e.nodeType===8?us(e.parentNode,n):e.nodeType===1&&us(e,n),Zr(e)):us(je,n.stateNode));break;case 4:r=je,i=pt,je=n.stateNode.containerInfo,pt=!0,Wt(e,t,n),je=r,pt=i;break;case 0:case 11:case 14:case 15:if(!Fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ll(n,t,s),i=i.next}while(i!==r)}Wt(e,t,n);break;case 1:if(!Fe&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){xe(n,t,l)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,Wt(e,t,n),Fe=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function xu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kp),t.forEach(function(r){var i=im.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:je=l.stateNode,pt=!1;break e;case 3:je=l.stateNode.containerInfo,pt=!0;break e;case 4:je=l.stateNode.containerInfo,pt=!0;break e}l=l.return}if(je===null)throw Error(Q(160));Lf(o,s,i),je=null,pt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(f){xe(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Df(t,e),t=t.sibling}function Df(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dt(t,e),kt(e),r&4){try{Dr(3,e,e.return),jo(3,e)}catch(h){xe(e,e.return,h)}try{Dr(5,e,e.return)}catch(h){xe(e,e.return,h)}}break;case 1:dt(t,e),kt(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(dt(t,e),kt(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var i=e.stateNode;try{$r(i,"")}catch(h){xe(e,e.return,h)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&rc(i,o),Os(l,s);var f=Os(l,o);for(s=0;s<a.length;s+=2){var _=a[s],v=a[s+1];_==="style"?ac(i,v):_==="dangerouslySetInnerHTML"?sc(i,v):_==="children"?$r(i,v):Cl(i,_,v,f)}switch(l){case"input":Ps(i,o);break;case"textarea":ic(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Gn(i,!!o.multiple,p,!1):m!==!!o.multiple&&(o.defaultValue!=null?Gn(i,!!o.multiple,o.defaultValue,!0):Gn(i,!!o.multiple,o.multiple?[]:"",!1))}i[Xr]=o}catch(h){xe(e,e.return,h)}}break;case 6:if(dt(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(Q(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(h){xe(e,e.return,h)}}break;case 3:if(dt(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zr(t.containerInfo)}catch(h){xe(e,e.return,h)}break;case 4:dt(t,e),kt(e);break;case 13:dt(t,e),kt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ia=Ce())),r&4&&xu(e);break;case 22:if(_=n!==null&&n.memoizedState!==null,e.mode&1?(Fe=(f=Fe)||_,dt(t,e),Fe=f):dt(t,e),kt(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!_&&e.mode&1)for(ee=e,_=e.child;_!==null;){for(v=ee=_;ee!==null;){switch(m=ee,p=m.child,m.tag){case 0:case 11:case 14:case 15:Dr(4,m,m.return);break;case 1:Wn(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(h){xe(r,n,h)}}break;case 5:Wn(m,m.return);break;case 22:if(m.memoizedState!==null){Eu(v);continue}}p!==null?(p.return=m,ee=p):Eu(v)}_=_.sibling}e:for(_=null,v=e;;){if(v.tag===5){if(_===null){_=v;try{i=v.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=v.stateNode,a=v.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=lc("display",s))}catch(h){xe(e,e.return,h)}}}else if(v.tag===6){if(_===null)try{v.stateNode.nodeValue=f?"":v.memoizedProps}catch(h){xe(e,e.return,h)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;_===v&&(_=null),v=v.return}_===v&&(_=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:dt(t,e),kt(e),r&4&&xu(e);break;case 21:break;default:dt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Of(n)){var r=n;break e}n=n.return}throw Error(Q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&($r(i,""),r.flags&=-33);var o=ku(e);cl(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=ku(e);ul(e,l,s);break;default:throw Error(Q(161))}}catch(a){xe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yp(e,t,n){ee=e,bf(e)}function bf(e,t,n){for(var r=(e.mode&1)!==0;ee!==null;){var i=ee,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ji;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Fe;l=ji;var f=Fe;if(ji=s,(Fe=a)&&!f)for(ee=i;ee!==null;)s=ee,a=s.child,s.tag===22&&s.memoizedState!==null?Cu(i):a!==null?(a.return=s,ee=a):Cu(i);for(;o!==null;)ee=o,bf(o),o=o.sibling;ee=i,ji=l,Fe=f}Su(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ee=o):Su(e)}}function Su(e){for(;ee!==null;){var t=ee;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fe||jo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Fe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ht(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&lu(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}lu(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var _=f.memoizedState;if(_!==null){var v=_.dehydrated;v!==null&&Zr(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}Fe||t.flags&512&&al(t)}catch(m){xe(t,t.return,m)}}if(t===e){ee=null;break}if(n=t.sibling,n!==null){n.return=t.return,ee=n;break}ee=t.return}}function Eu(e){for(;ee!==null;){var t=ee;if(t===e){ee=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ee=n;break}ee=t.return}}function Cu(e){for(;ee!==null;){var t=ee;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jo(4,t)}catch(a){xe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){xe(t,i,a)}}var o=t.return;try{al(t)}catch(a){xe(t,o,a)}break;case 5:var s=t.return;try{al(t)}catch(a){xe(t,s,a)}}}catch(a){xe(t,t.return,a)}if(t===e){ee=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ee=l;break}ee=t.return}}var Xp=Math.ceil,vo=Bt.ReactCurrentDispatcher,na=Bt.ReactCurrentOwner,at=Bt.ReactCurrentBatchConfig,ue=0,Ae=null,Ne=null,Oe=0,Qe=0,Hn=an(0),Te=0,ri=null,Nn=0,Oo=0,ra=0,br=null,He=null,ia=0,lr=1/0,Pt=null,yo=!1,fl=null,tn=null,Oi=!1,Qt=null,wo=0,Fr=0,dl=null,Gi=-1,Ki=0;function Be(){return ue&6?Ce():Gi!==-1?Gi:Gi=Ce()}function nn(e){return e.mode&1?ue&2&&Oe!==0?Oe&-Oe:Op.transition!==null?(Ki===0&&(Ki=_c()),Ki):(e=he,e!==0||(e=window.event,e=e===void 0?16:zc(e.type)),e):1}function vt(e,t,n,r){if(50<Fr)throw Fr=0,dl=null,Error(Q(185));di(e,n,r),(!(ue&2)||e!==Ae)&&(e===Ae&&(!(ue&2)&&(Oo|=n),Te===4&&Gt(e,Oe)),Ke(e,r),n===1&&ue===0&&!(t.mode&1)&&(lr=Ce()+500,Io&&un()))}function Ke(e,t){var n=e.callbackNode;Oh(e,t);var r=to(e,e===Ae?Oe:0);if(r===0)n!==null&&Oa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Oa(n),t===1)e.tag===0?jp(Nu.bind(null,e)):Zc(Nu.bind(null,e)),Pp(function(){!(ue&6)&&un()}),n=null;else{switch(kc(r)){case 1:n=Il;break;case 4:n=yc;break;case 16:n=eo;break;case 536870912:n=wc;break;default:n=eo}n=Vf(n,Ff.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ff(e,t){if(Gi=-1,Ki=0,ue&6)throw Error(Q(327));var n=e.callbackNode;if(Jn()&&e.callbackNode!==n)return null;var r=to(e,e===Ae?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_o(e,r);else{t=r;var i=ue;ue|=2;var o=Mf();(Ae!==e||Oe!==t)&&(Pt=null,lr=Ce()+500,_n(e,t));do try{em();break}catch(l){Uf(e,l)}while(!0);Wl(),vo.current=o,ue=i,Ne!==null?t=0:(Ae=null,Oe=0,t=Te)}if(t!==0){if(t===2&&(i=Us(e),i!==0&&(r=i,t=hl(e,i))),t===1)throw n=ri,_n(e,0),Gt(e,r),Ke(e,Ce()),n;if(t===6)Gt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Jp(i)&&(t=_o(e,r),t===2&&(o=Us(e),o!==0&&(r=o,t=hl(e,o))),t===1))throw n=ri,_n(e,0),Gt(e,r),Ke(e,Ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Q(345));case 2:mn(e,He,Pt);break;case 3:if(Gt(e,r),(r&130023424)===r&&(t=ia+500-Ce(),10<t)){if(to(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Be(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gs(mn.bind(null,e,He,Pt),t);break}mn(e,He,Pt);break;case 4:if(Gt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-gt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xp(r/1960))-r,10<r){e.timeoutHandle=Gs(mn.bind(null,e,He,Pt),r);break}mn(e,He,Pt);break;case 5:mn(e,He,Pt);break;default:throw Error(Q(329))}}}return Ke(e,Ce()),e.callbackNode===n?Ff.bind(null,e):null}function hl(e,t){var n=br;return e.current.memoizedState.isDehydrated&&(_n(e,t).flags|=256),e=_o(e,t),e!==2&&(t=He,He=n,t!==null&&pl(t)),e}function pl(e){He===null?He=e:He.push.apply(He,e)}function Jp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!yt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gt(e,t){for(t&=~ra,t&=~Oo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gt(t),r=1<<n;e[n]=-1,t&=~r}}function Nu(e){if(ue&6)throw Error(Q(327));Jn();var t=to(e,0);if(!(t&1))return Ke(e,Ce()),null;var n=_o(e,t);if(e.tag!==0&&n===2){var r=Us(e);r!==0&&(t=r,n=hl(e,r))}if(n===1)throw n=ri,_n(e,0),Gt(e,t),Ke(e,Ce()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mn(e,He,Pt),Ke(e,Ce()),null}function oa(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(lr=Ce()+500,Io&&un())}}function zn(e){Qt!==null&&Qt.tag===0&&!(ue&6)&&Jn();var t=ue;ue|=1;var n=at.transition,r=he;try{if(at.transition=null,he=1,e)return e()}finally{he=r,at.transition=n,ue=t,!(ue&6)&&un()}}function sa(){Qe=Hn.current,ve(Hn)}function _n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Tp(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Ml(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&so();break;case 3:or(),ve(Ze),ve(Ue),Ql();break;case 5:Kl(r);break;case 4:or();break;case 13:ve(we);break;case 19:ve(we);break;case 10:Hl(r.type._context);break;case 22:case 23:sa()}n=n.return}if(Ae=e,Ne=e=rn(e.current,null),Oe=Qe=t,Te=0,ri=null,ra=Oo=Nn=0,He=br=null,vn!==null){for(t=0;t<vn.length;t++)if(n=vn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}vn=null}return e}function Uf(e,t){do{var n=Ne;try{if(Wl(),Hi.current=go,mo){for(var r=_e.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mo=!1}if(Cn=0,Re=ze=_e=null,Lr=!1,ei=0,na.current=null,n===null||n.return===null){Te=1,ri=t,Ne=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Oe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a,_=l,v=_.tag;if(!(_.mode&1)&&(v===0||v===11||v===15)){var m=_.alternate;m?(_.updateQueue=m.updateQueue,_.memoizedState=m.memoizedState,_.lanes=m.lanes):(_.updateQueue=null,_.memoizedState=null)}var p=hu(s);if(p!==null){p.flags&=-257,pu(p,s,l,o,t),p.mode&1&&du(o,f,t),t=p,a=f;var w=t.updateQueue;if(w===null){var h=new Set;h.add(a),t.updateQueue=h}else w.add(a);break e}else{if(!(t&1)){du(o,f,t),la();break e}a=Error(Q(426))}}else if(ye&&l.mode&1){var k=hu(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),pu(k,s,l,o,t),Bl(sr(a,l));break e}}o=a=sr(a,l),Te!==4&&(Te=2),br===null?br=[o]:br.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var u=xf(o,a,t);su(o,u);break e;case 1:l=a;var c=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(tn===null||!tn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Sf(o,l,t);su(o,S);break e}}o=o.return}while(o!==null)}$f(n)}catch(C){t=C,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function Mf(){var e=vo.current;return vo.current=go,e===null?go:e}function la(){(Te===0||Te===3||Te===2)&&(Te=4),Ae===null||!(Nn&268435455)&&!(Oo&268435455)||Gt(Ae,Oe)}function _o(e,t){var n=ue;ue|=2;var r=Mf();(Ae!==e||Oe!==t)&&(Pt=null,_n(e,t));do try{qp();break}catch(i){Uf(e,i)}while(!0);if(Wl(),ue=n,vo.current=r,Ne!==null)throw Error(Q(261));return Ae=null,Oe=0,Te}function qp(){for(;Ne!==null;)Bf(Ne)}function em(){for(;Ne!==null&&!Ch();)Bf(Ne)}function Bf(e){var t=Hf(e.alternate,e,Qe);e.memoizedProps=e.pendingProps,t===null?$f(e):Ne=t,na.current=null}function $f(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Gp(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Te=6,Ne=null;return}}else if(n=Zp(n,t,Qe),n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Te===0&&(Te=5)}function mn(e,t,n){var r=he,i=at.transition;try{at.transition=null,he=1,tm(e,t,n,r)}finally{at.transition=i,he=r}return null}function tm(e,t,n,r){do Jn();while(Qt!==null);if(ue&6)throw Error(Q(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Lh(e,o),e===Ae&&(Ne=Ae=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Oi||(Oi=!0,Vf(eo,function(){return Jn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=at.transition,at.transition=null;var s=he;he=1;var l=ue;ue|=4,na.current=null,Qp(e,n),Df(n,e),kp(Vs),no=!!Hs,Vs=Hs=null,e.current=n,Yp(n),Nh(),ue=l,he=s,at.transition=o}else e.current=n;if(Oi&&(Oi=!1,Qt=e,wo=i),o=e.pendingLanes,o===0&&(tn=null),Ph(n.stateNode),Ke(e,Ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(yo)throw yo=!1,e=fl,fl=null,e;return wo&1&&e.tag!==0&&Jn(),o=e.pendingLanes,o&1?e===dl?Fr++:(Fr=0,dl=e):Fr=0,un(),null}function Jn(){if(Qt!==null){var e=kc(wo),t=at.transition,n=he;try{if(at.transition=null,he=16>e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,wo=0,ue&6)throw Error(Q(331));var i=ue;for(ue|=4,ee=e.current;ee!==null;){var o=ee,s=o.child;if(ee.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var f=l[a];for(ee=f;ee!==null;){var _=ee;switch(_.tag){case 0:case 11:case 15:Dr(8,_,o)}var v=_.child;if(v!==null)v.return=_,ee=v;else for(;ee!==null;){_=ee;var m=_.sibling,p=_.return;if(jf(_),_===f){ee=null;break}if(m!==null){m.return=p,ee=m;break}ee=p}}}var w=o.alternate;if(w!==null){var h=w.child;if(h!==null){w.child=null;do{var k=h.sibling;h.sibling=null,h=k}while(h!==null)}}ee=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,ee=s;else e:for(;ee!==null;){if(o=ee,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Dr(9,o,o.return)}var u=o.sibling;if(u!==null){u.return=o.return,ee=u;break e}ee=o.return}}var c=e.current;for(ee=c;ee!==null;){s=ee;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,ee=g;else e:for(s=c;ee!==null;){if(l=ee,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:jo(9,l)}}catch(C){xe(l,l.return,C)}if(l===s){ee=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,ee=S;break e}ee=l.return}}if(ue=i,un(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Co,e)}catch{}r=!0}return r}finally{he=n,at.transition=t}}return!1}function zu(e,t,n){t=sr(n,t),t=xf(e,t,1),e=en(e,t,1),t=Be(),e!==null&&(di(e,1,t),Ke(e,t))}function xe(e,t,n){if(e.tag===3)zu(e,e,n);else for(;t!==null;){if(t.tag===3){zu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(tn===null||!tn.has(r))){e=sr(n,e),e=Sf(t,e,1),t=en(t,e,1),e=Be(),t!==null&&(di(t,1,e),Ke(t,e));break}}t=t.return}}function nm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Be(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Oe&n)===n&&(Te===4||Te===3&&(Oe&130023424)===Oe&&500>Ce()-ia?_n(e,0):ra|=n),Ke(e,t)}function Wf(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Be();e=bt(e,t),e!==null&&(di(e,t,n),Ke(e,n))}function rm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wf(e,n)}function im(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Q(314))}r!==null&&r.delete(t),Wf(e,n)}var Hf;Hf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,Vp(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,ye&&t.flags&1048576&&Gc(t,uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var i=nr(t,Ue.current);Xn(t,n),i=Xl(null,t,r,e,i,n);var o=Jl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(o=!0,lo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zl(t),i.updater=Ao,t.stateNode=i,i._reactInternals=t,el(t,r,e,n),t=rl(null,t,r,!0,o,n)):(t.tag=0,ye&&o&&Ul(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=sm(r),e=ht(r,e),i){case 0:t=nl(null,t,r,e,n);break e;case 1:t=vu(null,t,r,e,n);break e;case 11:t=mu(null,t,r,e,n);break e;case 14:t=gu(null,t,r,ht(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),nl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),vu(e,t,r,i,n);case 3:e:{if(zf(t),e===null)throw Error(Q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,qc(e,t),ho(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=sr(Error(Q(423)),t),t=yu(e,t,r,n,i);break e}else if(r!==i){i=sr(Error(Q(424)),t),t=yu(e,t,r,n,i);break e}else for(Ye=qt(t.stateNode.containerInfo.firstChild),Xe=t,ye=!0,mt=null,n=Xc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rr(),r===i){t=Ft(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return ef(t),e===null&&Xs(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Zs(r,i)?s=null:o!==null&&Zs(r,o)&&(t.flags|=32),Nf(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&Xs(t),null;case 13:return Tf(e,t,n);case 4:return Gl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),mu(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,me(co,r._currentValue),r._currentValue=s,o!==null)if(yt(o.value,s)){if(o.children===i.children&&!Ze.current){t=Ft(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ot(-1,n&-n),a.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var _=f.pending;_===null?a.next=a:(a.next=_.next,_.next=a),f.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Js(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Q(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Js(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xn(t,n),i=ut(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=ht(r,t.pendingProps),i=ht(r.type,i),gu(e,t,r,i,n);case 15:return Ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Zi(e,t),t.tag=1,Ge(r)?(e=!0,lo(t)):e=!1,Xn(t,n),kf(t,r,i),el(t,r,i,n),rl(null,t,r,!0,e,n);case 19:return Pf(e,t,n);case 22:return Cf(e,t,n)}throw Error(Q(156,t.tag))};function Vf(e,t){return vc(e,t)}function om(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lt(e,t,n,r){return new om(e,t,n,r)}function aa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sm(e){if(typeof e=="function")return aa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zl)return 11;if(e===Tl)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")aa(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case On:return kn(n.children,i,o,t);case Nl:s=8,i|=8;break;case Es:return e=lt(12,n,t,i|2),e.elementType=Es,e.lanes=o,e;case Cs:return e=lt(13,n,t,i),e.elementType=Cs,e.lanes=o,e;case Ns:return e=lt(19,n,t,i),e.elementType=Ns,e.lanes=o,e;case ec:return Lo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ju:s=10;break e;case qu:s=9;break e;case zl:s=11;break e;case Tl:s=14;break e;case Ht:s=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=lt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function kn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Lo(e,t,n,r){return e=lt(22,e,r,t),e.elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function vs(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function ys(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lm(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jo(0),this.expirationTimes=Jo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ua(e,t,n,r,i,o,s,l,a){return e=new lm(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zl(o),e}function am(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zf(e){if(!e)return sn;e=e._reactInternals;e:{if(Pn(e)!==e||e.tag!==1)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Q(171))}if(e.tag===1){var n=e.type;if(Ge(n))return Vc(e,n,t)}return t}function Gf(e,t,n,r,i,o,s,l,a){return e=ua(n,r,!0,e,i,o,s,l,a),e.context=Zf(null),n=e.current,r=Be(),i=nn(n),o=Ot(r,i),o.callback=t??null,en(n,o,i),e.current.lanes=i,di(e,i,r),Ke(e,r),e}function Do(e,t,n,r){var i=t.current,o=Be(),s=nn(i);return n=Zf(n),t.context===null?t.context=n:t.pendingContext=n,t=Ot(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=en(i,t,s),e!==null&&(vt(e,i,s,o),Wi(e,i,s)),s}function ko(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Tu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ca(e,t){Tu(e,t),(e=e.alternate)&&Tu(e,t)}function um(){return null}var Kf=typeof reportError=="function"?reportError:function(e){console.error(e)};function fa(e){this._internalRoot=e}bo.prototype.render=fa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));Do(e,t,null,null)};bo.prototype.unmount=fa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){Do(null,e,null,null)}),t[Dt]=null}};function bo(e){this._internalRoot=e}bo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ec();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zt.length&&t!==0&&t<Zt[n].priority;n++);Zt.splice(n,0,e),n===0&&Nc(e)}};function da(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pu(){}function cm(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=ko(s);o.call(f)}}var s=Gf(t,r,e,0,null,!1,!1,"",Pu);return e._reactRootContainer=s,e[Dt]=s.current,Qr(e.nodeType===8?e.parentNode:e),zn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=ko(a);l.call(f)}}var a=ua(e,0,!1,null,null,!1,!1,"",Pu);return e._reactRootContainer=a,e[Dt]=a.current,Qr(e.nodeType===8?e.parentNode:e),zn(function(){Do(t,a,n,r)}),a}function Uo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=ko(s);l.call(a)}}Do(t,s,e,i)}else s=cm(n,t,e,i,r);return ko(s)}xc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tr(t.pendingLanes);n!==0&&(Rl(t,n|1),Ke(t,Ce()),!(ue&6)&&(lr=Ce()+500,un()))}break;case 13:zn(function(){var r=bt(e,1);if(r!==null){var i=Be();vt(r,e,1,i)}}),ca(e,1)}};Al=function(e){if(e.tag===13){var t=bt(e,134217728);if(t!==null){var n=Be();vt(t,e,134217728,n)}ca(e,134217728)}};Sc=function(e){if(e.tag===13){var t=nn(e),n=bt(e,t);if(n!==null){var r=Be();vt(n,e,t,r)}ca(e,t)}};Ec=function(){return he};Cc=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};Ds=function(e,t,n){switch(t){case"input":if(Ps(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Po(r);if(!i)throw Error(Q(90));nc(r),Ps(r,i)}}}break;case"textarea":ic(e,n);break;case"select":t=n.value,t!=null&&Gn(e,!!n.multiple,t,!1)}};fc=oa;dc=zn;var fm={usingClientEntryPoint:!1,Events:[pi,Fn,Po,uc,cc,oa]},xr={findFiberByHostInstance:gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dm={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mc(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||um,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Li=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Li.isDisabled&&Li.supportsFiber)try{Co=Li.inject(dm),Nt=Li}catch{}}tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!da(t))throw Error(Q(200));return am(e,t,null,n)};tt.createRoot=function(e,t){if(!da(e))throw Error(Q(299));var n=!1,r="",i=Kf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ua(e,1,!1,null,null,n,!1,r,i),e[Dt]=t.current,Qr(e.nodeType===8?e.parentNode:e),new fa(t)};tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=mc(t),e=e===null?null:e.stateNode,e};tt.flushSync=function(e){return zn(e)};tt.hydrate=function(e,t,n){if(!Fo(t))throw Error(Q(200));return Uo(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!da(e))throw Error(Q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Kf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Gf(t,null,e,1,n??null,i,!1,o,s),e[Dt]=t.current,Qr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new bo(t)};tt.render=function(e,t,n){if(!Fo(t))throw Error(Q(200));return Uo(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!Fo(e))throw Error(Q(40));return e._reactRootContainer?(zn(function(){Uo(null,null,e,!1,function(){e._reactRootContainer=null,e[Dt]=null})}),!0):!1};tt.unstable_batchedUpdates=oa;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fo(n))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return Uo(e,t,n,!1,r)};tt.version="18.3.1-next-f1338f8080-20240426";function Qf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qf)}catch(e){console.error(e)}}Qf(),Ku.exports=tt;var hm=Ku.exports,Iu=hm;xs.createRoot=Iu.createRoot,xs.hydrateRoot=Iu.hydrateRoot;/** 41 - * @license lucide-react v0.544.0 - ISC 42 - * 43 - * This source code is licensed under the ISC license. 44 - * See the LICENSE file in the root directory of this source tree. 45 - */const pm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ru=e=>{const t=mm(e);return t.charAt(0).toUpperCase()+t.slice(1)},Yf=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),gm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 46 - * @license lucide-react v0.544.0 - ISC 47 - * 48 - * This source code is licensed under the ISC license. 49 - * See the LICENSE file in the root directory of this source tree. 50 - */var vm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 - * @license lucide-react v0.544.0 - ISC 52 - * 53 - * This source code is licensed under the ISC license. 54 - * See the LICENSE file in the root directory of this source tree. 55 - */const ym=Ie.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>Ie.createElement("svg",{ref:a,...vm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yf("lucide",i),...!o&&!gm(l)&&{"aria-hidden":"true"},...l},[...s.map(([f,_])=>Ie.createElement(f,_)),...Array.isArray(o)?o:[o]]));/** 56 - * @license lucide-react v0.544.0 - ISC 57 - * 58 - * This source code is licensed under the ISC license. 59 - * See the LICENSE file in the root directory of this source tree. 60 - */const cn=(e,t)=>{const n=Ie.forwardRef(({className:r,...i},o)=>Ie.createElement(ym,{ref:o,iconNode:t,className:Yf(`lucide-${pm(Ru(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Ru(e),n};/** 61 - * @license lucide-react v0.544.0 - ISC 62 - * 63 - * This source code is licensed under the ISC license. 64 - * See the LICENSE file in the root directory of this source tree. 65 - */const wm=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],_m=cn("arrow-right",wm);/** 66 - * @license lucide-react v0.544.0 - ISC 67 - * 68 - * This source code is licensed under the ISC license. 69 - * See the LICENSE file in the root directory of this source tree. 70 - */const km=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xm=cn("check",km);/** 71 - * @license lucide-react v0.544.0 - ISC 72 - * 73 - * This source code is licensed under the ISC license. 74 - * See the LICENSE file in the root directory of this source tree. 75 - */const Sm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Au=cn("chevron-right",Sm);/** 76 - * @license lucide-react v0.544.0 - ISC 77 - * 78 - * This source code is licensed under the ISC license. 79 - * See the LICENSE file in the root directory of this source tree. 80 - */const Em=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Cm=cn("file-text",Em);/** 81 - * @license lucide-react v0.544.0 - ISC 82 - * 83 - * This source code is licensed under the ISC license. 84 - * See the LICENSE file in the root directory of this source tree. 85 - */const Nm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zm=cn("search",Nm);/** 86 - * @license lucide-react v0.544.0 - ISC 87 - * 88 - * This source code is licensed under the ISC license. 89 - * See the LICENSE file in the root directory of this source tree. 90 - */const Tm=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Pm=cn("upload",Tm);/** 91 - * @license lucide-react v0.544.0 - ISC 92 - * 93 - * This source code is licensed under the ISC license. 94 - * See the LICENSE file in the root directory of this source tree. 95 - */const Im=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Rm=cn("user",Im);/** 96 - * @license lucide-react v0.544.0 - ISC 97 - * 98 - * This source code is licensed under the ISC license. 99 - * See the LICENSE file in the root directory of this source tree. 100 - */const Am=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],jm=cn("users",Am);function Di(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xf={exports:{}};/*! 101 - 102 - JSZip v3.10.1 - A JavaScript class for generating and reading zip files 103 - <http://stuartk.com/jszip> 104 - 105 - (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> 106 - Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. 107 - 108 - JSZip uses the library pako released under the MIT license : 109 - https://github.com/nodeca/pako/blob/main/LICENSE 110 - */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,i,o){function s(f,_){if(!i[f]){if(!r[f]){var v=typeof Di=="function"&&Di;if(!_&&v)return v(f,!0);if(l)return l(f,!0);var m=new Error("Cannot find module '"+f+"'");throw m.code="MODULE_NOT_FOUND",m}var p=i[f]={exports:{}};r[f][0].call(p.exports,function(w){var h=r[f][1][w];return s(h||w)},p,p.exports,n,r,i,o)}return i[f].exports}for(var l=typeof Di=="function"&&Di,a=0;a<o.length;a++)s(o[a]);return s}({1:[function(n,r,i){var o=n("./utils"),s=n("./support"),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(a){for(var f,_,v,m,p,w,h,k=[],u=0,c=a.length,g=c,S=o.getTypeOf(a)!=="string";u<a.length;)g=c-u,v=S?(f=a[u++],_=u<c?a[u++]:0,u<c?a[u++]:0):(f=a.charCodeAt(u++),_=u<c?a.charCodeAt(u++):0,u<c?a.charCodeAt(u++):0),m=f>>2,p=(3&f)<<4|_>>4,w=1<g?(15&_)<<2|v>>6:64,h=2<g?63&v:64,k.push(l.charAt(m)+l.charAt(p)+l.charAt(w)+l.charAt(h));return k.join("")},i.decode=function(a){var f,_,v,m,p,w,h=0,k=0,u="data:";if(a.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var c,g=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===l.charAt(64)&&g--,a.charAt(a.length-2)===l.charAt(64)&&g--,g%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=s.uint8array?new Uint8Array(0|g):new Array(0|g);h<a.length;)f=l.indexOf(a.charAt(h++))<<2|(m=l.indexOf(a.charAt(h++)))>>4,_=(15&m)<<4|(p=l.indexOf(a.charAt(h++)))>>2,v=(3&p)<<6|(w=l.indexOf(a.charAt(h++))),c[k++]=f,p!==64&&(c[k++]=_),w!==64&&(c[k++]=v);return c}},{"./support":30,"./utils":32}],2:[function(n,r,i){var o=n("./external"),s=n("./stream/DataWorker"),l=n("./stream/Crc32Probe"),a=n("./stream/DataLengthProbe");function f(_,v,m,p,w){this.compressedSize=_,this.uncompressedSize=v,this.crc32=m,this.compression=p,this.compressedContent=w}f.prototype={getContentWorker:function(){var _=new s(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),v=this;return _.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),_},getCompressedWorker:function(){return new s(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},f.createWorkerFrom=function(_,v,m){return _.pipe(new l).pipe(new a("uncompressedSize")).pipe(v.compressWorker(m)).pipe(new a("compressedSize")).withStreamInfo("compression",v)},r.exports=f},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var o=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var o=n("./utils"),s=function(){for(var l,a=[],f=0;f<256;f++){l=f;for(var _=0;_<8;_++)l=1&l?3988292384^l>>>1:l>>>1;a[f]=l}return a}();r.exports=function(l,a){return l!==void 0&&l.length?o.getTypeOf(l)!=="string"?function(f,_,v,m){var p=s,w=m+v;f^=-1;for(var h=m;h<w;h++)f=f>>>8^p[255&(f^_[h])];return-1^f}(0|a,l,l.length,0):function(f,_,v,m){var p=s,w=m+v;f^=-1;for(var h=m;h<w;h++)f=f>>>8^p[255&(f^_.charCodeAt(h))];return-1^f}(0|a,l,l.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var o=null;o=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=n("pako"),l=n("./utils"),a=n("./stream/GenericWorker"),f=o?"uint8array":"array";function _(v,m){a.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=m,this.meta={}}i.magic="\b\0",l.inherits(_,a),_.prototype.processChunk=function(v){this.meta=v.meta,this._pako===null&&this._createPako(),this._pako.push(l.transformTo(f,v.data),!1)},_.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},_.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},_.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(m){v.push({data:m,meta:v.meta})}},i.compressWorker=function(v){return new _("Deflate",v)},i.uncompressWorker=function(){return new _("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function o(p,w){var h,k="";for(h=0;h<w;h++)k+=String.fromCharCode(255&p),p>>>=8;return k}function s(p,w,h,k,u,c){var g,S,C=p.file,R=p.compression,P=c!==f.utf8encode,b=l.transformTo("string",c(C.name)),F=l.transformTo("string",f.utf8encode(C.name)),W=C.comment,te=l.transformTo("string",c(W)),N=l.transformTo("string",f.utf8encode(W)),B=F.length!==C.name.length,y=N.length!==W.length,j="",V="",L="",D=C.dir,A=C.date,$={crc32:0,compressedSize:0,uncompressedSize:0};w&&!h||($.crc32=p.crc32,$.compressedSize=p.compressedSize,$.uncompressedSize=p.uncompressedSize);var z=0;w&&(z|=8),P||!B&&!y||(z|=2048);var T=0,ne=0;D&&(T|=16),u==="UNIX"?(ne=798,T|=function(G,oe){var de=G;return G||(de=oe?16893:33204),(65535&de)<<16}(C.unixPermissions,D)):(ne=20,T|=function(G){return 63&(G||0)}(C.dosPermissions)),g=A.getUTCHours(),g<<=6,g|=A.getUTCMinutes(),g<<=5,g|=A.getUTCSeconds()/2,S=A.getUTCFullYear()-1980,S<<=4,S|=A.getUTCMonth()+1,S<<=5,S|=A.getUTCDate(),B&&(V=o(1,1)+o(_(b),4)+F,j+="up"+o(V.length,2)+V),y&&(L=o(1,1)+o(_(te),4)+N,j+="uc"+o(L.length,2)+L);var X="";return X+=` 111 - \0`,X+=o(z,2),X+=R.magic,X+=o(g,2),X+=o(S,2),X+=o($.crc32,4),X+=o($.compressedSize,4),X+=o($.uncompressedSize,4),X+=o(b.length,2),X+=o(j.length,2),{fileRecord:v.LOCAL_FILE_HEADER+X+b+j,dirRecord:v.CENTRAL_FILE_HEADER+o(ne,2)+X+o(te.length,2)+"\0\0\0\0"+o(T,4)+o(k,4)+b+j+te}}var l=n("../utils"),a=n("../stream/GenericWorker"),f=n("../utf8"),_=n("../crc32"),v=n("../signature");function m(p,w,h,k){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=w,this.zipPlatform=h,this.encodeFileName=k,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(m,a),m.prototype.push=function(p){var w=p.meta.percent||0,h=this.entriesCount,k=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,a.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:h?(w+100*(h-k-1))/h:100}}))},m.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var w=this.streamFiles&&!p.file.dir;if(w){var h=s(p,w,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(p){this.accumulate=!1;var w=this.streamFiles&&!p.file.dir,h=s(p,w,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),w)this.push({data:function(k){return v.DATA_DESCRIPTOR+o(k.crc32,4)+o(k.compressedSize,4)+o(k.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var p=this.bytesWritten,w=0;w<this.dirRecords.length;w++)this.push({data:this.dirRecords[w],meta:{percent:100}});var h=this.bytesWritten-p,k=function(u,c,g,S,C){var R=l.transformTo("string",C(S));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(u,2)+o(u,2)+o(c,4)+o(g,4)+o(R.length,2)+R}(this.dirRecords.length,h,p,this.zipComment,this.encodeFileName);this.push({data:k,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(p){this._sources.push(p);var w=this;return p.on("data",function(h){w.processChunk(h)}),p.on("end",function(){w.closedSource(w.previous.streamInfo),w._sources.length?w.prepareNextSource():w.end()}),p.on("error",function(h){w.error(h)}),this},m.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(p){var w=this._sources;if(!a.prototype.error.call(this,p))return!1;for(var h=0;h<w.length;h++)try{w[h].error(p)}catch{}return!0},m.prototype.lock=function(){a.prototype.lock.call(this);for(var p=this._sources,w=0;w<p.length;w++)p[w].lock()},r.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var o=n("../compressions"),s=n("./ZipFileWorker");i.generateWorker=function(l,a,f){var _=new s(a.streamFiles,f,a.platform,a.encodeFileName),v=0;try{l.forEach(function(m,p){v++;var w=function(c,g){var S=c||g,C=o[S];if(!C)throw new Error(S+" is not a valid compression method !");return C}(p.options.compression,a.compression),h=p.options.compressionOptions||a.compressionOptions||{},k=p.dir,u=p.date;p._compressWorker(w,h).withStreamInfo("file",{name:m,dir:k,date:u,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(_)}),_.entriesCount=v}catch(m){_.error(m)}return _}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new o;for(var l in this)typeof this[l]!="function"&&(s[l]=this[l]);return s}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(s,l){return new o().loadAsync(s,l)},o.external=n("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var o=n("./utils"),s=n("./external"),l=n("./utf8"),a=n("./zipEntries"),f=n("./stream/Crc32Probe"),_=n("./nodejsUtils");function v(m){return new s.Promise(function(p,w){var h=m.decompressed.getContentWorker().pipe(new f);h.on("error",function(k){w(k)}).on("end",function(){h.streamInfo.crc32!==m.decompressed.crc32?w(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(m,p){var w=this;return p=o.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:l.utf8decode}),_.isNode&&_.isStream(m)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",m,!0,p.optimizedBinaryString,p.base64).then(function(h){var k=new a(p);return k.load(h),k}).then(function(h){var k=[s.Promise.resolve(h)],u=h.files;if(p.checkCRC32)for(var c=0;c<u.length;c++)k.push(v(u[c]));return s.Promise.all(k)}).then(function(h){for(var k=h.shift(),u=k.files,c=0;c<u.length;c++){var g=u[c],S=g.fileNameStr,C=o.resolve(g.fileNameStr);w.file(C,g.decompressed,{binary:!0,optimizedBinaryString:!0,date:g.date,dir:g.dir,comment:g.fileCommentStr.length?g.fileCommentStr:null,unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions,createFolders:p.createFolders}),g.dir||(w.file(C).unsafeOriginalName=S)}return k.zipComment.length&&(w.comment=k.zipComment),w})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var o=n("../utils"),s=n("../stream/GenericWorker");function l(a,f){s.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(f)}o.inherits(l,s),l.prototype._bindStream=function(a){var f=this;(this._stream=a).pause(),a.on("data",function(_){f.push({data:_,meta:{percent:0}})}).on("error",function(_){f.isPaused?this.generatedError=_:f.error(_)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},l.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=l},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var o=n("readable-stream").Readable;function s(l,a,f){o.call(this,a),this._helper=l;var _=this;l.on("data",function(v,m){_.push(v)||_._helper.pause(),f&&f(m)}).on("error",function(v){_.emit("error",v)}).on("end",function(){_.push(null)})}n("../utils").inherits(s,o),s.prototype._read=function(){this._helper.resume()},r.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,s);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,s)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var s=new Buffer(o);return s.fill(0),s},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,r,i){function o(C,R,P){var b,F=l.getTypeOf(R),W=l.extend(P||{},_);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions=="string"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(C=u(C)),W.createFolders&&(b=k(C))&&c.call(this,b,!0);var te=F==="string"&&W.binary===!1&&W.base64===!1;P&&P.binary!==void 0||(W.binary=!te),(R instanceof v&&R.uncompressedSize===0||W.dir||!R||R.length===0)&&(W.base64=!1,W.binary=!0,R="",W.compression="STORE",F="string");var N=null;N=R instanceof v||R instanceof a?R:w.isNode&&w.isStream(R)?new h(C,R):l.prepareContent(C,R,W.binary,W.optimizedBinaryString,W.base64);var B=new m(C,N,W);this.files[C]=B}var s=n("./utf8"),l=n("./utils"),a=n("./stream/GenericWorker"),f=n("./stream/StreamHelper"),_=n("./defaults"),v=n("./compressedObject"),m=n("./zipObject"),p=n("./generate"),w=n("./nodejsUtils"),h=n("./nodejs/NodejsStreamInputAdapter"),k=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var R=C.lastIndexOf("/");return 0<R?C.substring(0,R):""},u=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},c=function(C,R){return R=R!==void 0?R:_.createFolders,C=u(C),this.files[C]||o.call(this,C,null,{dir:!0,createFolders:R}),this.files[C]};function g(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var R,P,b;for(R in this.files)b=this.files[R],(P=R.slice(this.root.length,R.length))&&R.slice(0,this.root.length)===this.root&&C(P,b)},filter:function(C){var R=[];return this.forEach(function(P,b){C(P,b)&&R.push(b)}),R},file:function(C,R,P){if(arguments.length!==1)return C=this.root+C,o.call(this,C,R,P),this;if(g(C)){var b=C;return this.filter(function(W,te){return!te.dir&&b.test(W)})}var F=this.files[this.root+C];return F&&!F.dir?F:null},folder:function(C){if(!C)return this;if(g(C))return this.filter(function(F,W){return W.dir&&C.test(F)});var R=this.root+C,P=c.call(this,R),b=this.clone();return b.root=P.name,b},remove:function(C){C=this.root+C;var R=this.files[C];if(R||(C.slice(-1)!=="/"&&(C+="/"),R=this.files[C]),R&&!R.dir)delete this.files[C];else for(var P=this.filter(function(F,W){return W.name.slice(0,C.length)===C}),b=0;b<P.length;b++)delete this.files[P[b].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var R,P={};try{if((P=l.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=P.type.toLowerCase(),P.compression=P.compression.toUpperCase(),P.type==="binarystring"&&(P.type="string"),!P.type)throw new Error("No output type specified.");l.checkSupport(P.type),P.platform!=="darwin"&&P.platform!=="freebsd"&&P.platform!=="linux"&&P.platform!=="sunos"||(P.platform="UNIX"),P.platform==="win32"&&(P.platform="DOS");var b=P.comment||this.comment||"";R=p.generateWorker(this,P,b)}catch(F){(R=new a("error")).error(F)}return new f(R,P.type||"string",P.mimeType)},generateAsync:function(C,R){return this.generateInternalStream(C).accumulate(R)},generateNodeStream:function(C,R){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(R)}};r.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var o=n("./DataReader");function s(l){o.call(this,l);for(var a=0;a<this.data.length;a++)l[a]=255&l[a]}n("../utils").inherits(s,o),s.prototype.byteAt=function(l){return this.data[this.zero+l]},s.prototype.lastIndexOfSignature=function(l){for(var a=l.charCodeAt(0),f=l.charCodeAt(1),_=l.charCodeAt(2),v=l.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===a&&this.data[m+1]===f&&this.data[m+2]===_&&this.data[m+3]===v)return m-this.zero;return-1},s.prototype.readAndCheckSignature=function(l){var a=l.charCodeAt(0),f=l.charCodeAt(1),_=l.charCodeAt(2),v=l.charCodeAt(3),m=this.readData(4);return a===m[0]&&f===m[1]&&_===m[2]&&v===m[3]},s.prototype.readData=function(l){if(this.checkOffset(l),l===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var o=n("../utils");function s(l){this.data=l,this.length=l.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(l){this.checkIndex(this.index+l)},checkIndex:function(l){if(this.length<this.zero+l||l<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+l+"). Corrupted zip ?")},setIndex:function(l){this.checkIndex(l),this.index=l},skip:function(l){this.setIndex(this.index+l)},byteAt:function(){},readInt:function(l){var a,f=0;for(this.checkOffset(l),a=this.index+l-1;a>=this.index;a--)f=(f<<8)+this.byteAt(a);return this.index+=l,f},readString:function(l){return o.transformTo("string",this.readData(l))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var l=this.readInt(4);return new Date(Date.UTC(1980+(l>>25&127),(l>>21&15)-1,l>>16&31,l>>11&31,l>>5&63,(31&l)<<1))}},r.exports=s},{"../utils":32}],19:[function(n,r,i){var o=n("./Uint8ArrayReader");function s(l){o.call(this,l)}n("../utils").inherits(s,o),s.prototype.readData=function(l){this.checkOffset(l);var a=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var o=n("./DataReader");function s(l){o.call(this,l)}n("../utils").inherits(s,o),s.prototype.byteAt=function(l){return this.data.charCodeAt(this.zero+l)},s.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)-this.zero},s.prototype.readAndCheckSignature=function(l){return l===this.readData(4)},s.prototype.readData=function(l){this.checkOffset(l);var a=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var o=n("./ArrayReader");function s(l){o.call(this,l)}n("../utils").inherits(s,o),s.prototype.readData=function(l){if(this.checkOffset(l),l===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+l);return this.index+=l,a},r.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var o=n("../utils"),s=n("../support"),l=n("./ArrayReader"),a=n("./StringReader"),f=n("./NodeBufferReader"),_=n("./Uint8ArrayReader");r.exports=function(v){var m=o.getTypeOf(v);return o.checkSupport(m),m!=="string"||s.uint8array?m==="nodebuffer"?new f(v):s.uint8array?new _(o.transformTo("uint8array",v)):new l(o.transformTo("array",v)):new a(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var o=n("./GenericWorker"),s=n("../utils");function l(a){o.call(this,"ConvertWorker to "+a),this.destType=a}s.inherits(l,o),l.prototype.processChunk=function(a){this.push({data:s.transformTo(this.destType,a.data),meta:a.meta})},r.exports=l},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var o=n("./GenericWorker"),s=n("../crc32");function l(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(l,o),l.prototype.processChunk=function(a){this.streamInfo.crc32=s(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=l},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var o=n("../utils"),s=n("./GenericWorker");function l(a){s.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}o.inherits(l,s),l.prototype.processChunk=function(a){if(a){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+a.data.length}s.prototype.processChunk.call(this,a)},r.exports=l},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var o=n("../utils"),s=n("./GenericWorker");function l(a){s.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(_){f.dataIsReady=!0,f.data=_,f.max=_&&_.length||0,f.type=o.getTypeOf(_),f.isPaused||f._tickAndRepeat()},function(_){f.error(_)})}o.inherits(l,s),l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},l.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},l.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,f=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,f);break;case"uint8array":a=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":a=this.data.slice(this.index,f)}return this.index=f,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=l},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function o(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,l){return this._listeners[s].push(l),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,l){if(this._listeners[s])for(var a=0;a<this._listeners[s].length;a++)this._listeners[s][a].call(this,l)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var l=this;return s.on("data",function(a){l.processChunk(a)}),s.on("end",function(){l.end()}),s.on("error",function(a){l.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,l){return this.extraStreamInfo[s]=l,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},r.exports=o},{}],29:[function(n,r,i){var o=n("../utils"),s=n("./ConvertWorker"),l=n("./GenericWorker"),a=n("../base64"),f=n("../support"),_=n("../external"),v=null;if(f.nodestream)try{v=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(w,h){return new _.Promise(function(k,u){var c=[],g=w._internalType,S=w._outputType,C=w._mimeType;w.on("data",function(R,P){c.push(R),h&&h(P)}).on("error",function(R){c=[],u(R)}).on("end",function(){try{var R=function(P,b,F){switch(P){case"blob":return o.newBlob(o.transformTo("arraybuffer",b),F);case"base64":return a.encode(b);default:return o.transformTo(P,b)}}(S,function(P,b){var F,W=0,te=null,N=0;for(F=0;F<b.length;F++)N+=b[F].length;switch(P){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(te=new Uint8Array(N),F=0;F<b.length;F++)te.set(b[F],W),W+=b[F].length;return te;case"nodebuffer":return Buffer.concat(b);default:throw new Error("concat : unsupported type '"+P+"'")}}(g,c),C);k(R)}catch(P){u(P)}c=[]}).resume()})}function p(w,h,k){var u=h;switch(h){case"blob":case"arraybuffer":u="uint8array";break;case"base64":u="string"}try{this._internalType=u,this._outputType=h,this._mimeType=k,o.checkSupport(u),this._worker=w.pipe(new s(u)),w.lock()}catch(c){this._worker=new l("error"),this._worker.error(c)}}p.prototype={accumulate:function(w){return m(this,w)},on:function(w,h){var k=this;return w==="data"?this._worker.on(w,function(u){h.call(k,u.data,u.meta)}):this._worker.on(w,function(){o.delay(h,arguments,k)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(w){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new v(this,{objectMode:this._outputType!=="nodebuffer"},w)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),i.blob=s.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var o=n("./utils"),s=n("./support"),l=n("./nodejsUtils"),a=n("./stream/GenericWorker"),f=new Array(256),_=0;_<256;_++)f[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;f[254]=f[254]=1;function v(){a.call(this,"utf-8 decode"),this.leftOver=null}function m(){a.call(this,"utf-8 encode")}i.utf8encode=function(p){return s.nodebuffer?l.newBufferFrom(p,"utf-8"):function(w){var h,k,u,c,g,S=w.length,C=0;for(c=0;c<S;c++)(64512&(k=w.charCodeAt(c)))==55296&&c+1<S&&(64512&(u=w.charCodeAt(c+1)))==56320&&(k=65536+(k-55296<<10)+(u-56320),c++),C+=k<128?1:k<2048?2:k<65536?3:4;for(h=s.uint8array?new Uint8Array(C):new Array(C),c=g=0;g<C;c++)(64512&(k=w.charCodeAt(c)))==55296&&c+1<S&&(64512&(u=w.charCodeAt(c+1)))==56320&&(k=65536+(k-55296<<10)+(u-56320),c++),k<128?h[g++]=k:(k<2048?h[g++]=192|k>>>6:(k<65536?h[g++]=224|k>>>12:(h[g++]=240|k>>>18,h[g++]=128|k>>>12&63),h[g++]=128|k>>>6&63),h[g++]=128|63&k);return h}(p)},i.utf8decode=function(p){return s.nodebuffer?o.transformTo("nodebuffer",p).toString("utf-8"):function(w){var h,k,u,c,g=w.length,S=new Array(2*g);for(h=k=0;h<g;)if((u=w[h++])<128)S[k++]=u;else if(4<(c=f[u]))S[k++]=65533,h+=c-1;else{for(u&=c===2?31:c===3?15:7;1<c&&h<g;)u=u<<6|63&w[h++],c--;1<c?S[k++]=65533:u<65536?S[k++]=u:(u-=65536,S[k++]=55296|u>>10&1023,S[k++]=56320|1023&u)}return S.length!==k&&(S.subarray?S=S.subarray(0,k):S.length=k),o.applyFromCharCode(S)}(p=o.transformTo(s.uint8array?"uint8array":"array",p))},o.inherits(v,a),v.prototype.processChunk=function(p){var w=o.transformTo(s.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var h=w;(w=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),w.set(h,this.leftOver.length)}else w=this.leftOver.concat(w);this.leftOver=null}var k=function(c,g){var S;for((g=g||c.length)>c.length&&(g=c.length),S=g-1;0<=S&&(192&c[S])==128;)S--;return S<0||S===0?g:S+f[c[S]]>g?S:g}(w),u=w;k!==w.length&&(s.uint8array?(u=w.subarray(0,k),this.leftOver=w.subarray(k,w.length)):(u=w.slice(0,k),this.leftOver=w.slice(k,w.length))),this.push({data:i.utf8decode(u),meta:p.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=v,o.inherits(m,a),m.prototype.processChunk=function(p){this.push({data:i.utf8encode(p.data),meta:p.meta})},i.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var o=n("./support"),s=n("./base64"),l=n("./nodejsUtils"),a=n("./external");function f(h){return h}function _(h,k){for(var u=0;u<h.length;++u)k[u]=255&h.charCodeAt(u);return k}n("setimmediate"),i.newBlob=function(h,k){i.checkSupport("blob");try{return new Blob([h],{type:k})}catch{try{var u=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return u.append(h),u.getBlob(k)}catch{throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(h,k,u){var c=[],g=0,S=h.length;if(S<=u)return String.fromCharCode.apply(null,h);for(;g<S;)k==="array"||k==="nodebuffer"?c.push(String.fromCharCode.apply(null,h.slice(g,Math.min(g+u,S)))):c.push(String.fromCharCode.apply(null,h.subarray(g,Math.min(g+u,S)))),g+=u;return c.join("")},stringifyByChar:function(h){for(var k="",u=0;u<h.length;u++)k+=String.fromCharCode(h[u]);return k},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,l.allocBuffer(1)).length===1}catch{return!1}}()}};function m(h){var k=65536,u=i.getTypeOf(h),c=!0;if(u==="uint8array"?c=v.applyCanBeUsed.uint8array:u==="nodebuffer"&&(c=v.applyCanBeUsed.nodebuffer),c)for(;1<k;)try{return v.stringifyByChunk(h,u,k)}catch{k=Math.floor(k/2)}return v.stringifyByChar(h)}function p(h,k){for(var u=0;u<h.length;u++)k[u]=h[u];return k}i.applyFromCharCode=m;var w={};w.string={string:f,array:function(h){return _(h,new Array(h.length))},arraybuffer:function(h){return w.string.uint8array(h).buffer},uint8array:function(h){return _(h,new Uint8Array(h.length))},nodebuffer:function(h){return _(h,l.allocBuffer(h.length))}},w.array={string:m,array:f,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return l.newBufferFrom(h)}},w.arraybuffer={string:function(h){return m(new Uint8Array(h))},array:function(h){return p(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:f,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return l.newBufferFrom(new Uint8Array(h))}},w.uint8array={string:m,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:f,nodebuffer:function(h){return l.newBufferFrom(h)}},w.nodebuffer={string:m,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return w.nodebuffer.uint8array(h).buffer},uint8array:function(h){return p(h,new Uint8Array(h.length))},nodebuffer:f},i.transformTo=function(h,k){if(k=k||"",!h)return k;i.checkSupport(h);var u=i.getTypeOf(k);return w[u][h](k)},i.resolve=function(h){for(var k=h.split("/"),u=[],c=0;c<k.length;c++){var g=k[c];g==="."||g===""&&c!==0&&c!==k.length-1||(g===".."?u.pop():u.push(g))}return u.join("/")},i.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":o.nodebuffer&&l.isBuffer(h)?"nodebuffer":o.uint8array&&h instanceof Uint8Array?"uint8array":o.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(h){if(!o[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(h){var k,u,c="";for(u=0;u<(h||"").length;u++)c+="\\x"+((k=h.charCodeAt(u))<16?"0":"")+k.toString(16).toUpperCase();return c},i.delay=function(h,k,u){setImmediate(function(){h.apply(u||null,k||[])})},i.inherits=function(h,k){function u(){}u.prototype=k.prototype,h.prototype=new u},i.extend=function(){var h,k,u={};for(h=0;h<arguments.length;h++)for(k in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],k)&&u[k]===void 0&&(u[k]=arguments[h][k]);return u},i.prepareContent=function(h,k,u,c,g){return a.Promise.resolve(k).then(function(S){return o.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new a.Promise(function(C,R){var P=new FileReader;P.onload=function(b){C(b.target.result)},P.onerror=function(b){R(b.target.error)},P.readAsArrayBuffer(S)}):S}).then(function(S){var C=i.getTypeOf(S);return C?(C==="arraybuffer"?S=i.transformTo("uint8array",S):C==="string"&&(g?S=s.decode(S):u&&c!==!0&&(S=function(R){return _(R,o.uint8array?new Uint8Array(R.length):new Array(R.length))}(S))),S):a.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var o=n("./reader/readerFor"),s=n("./utils"),l=n("./signature"),a=n("./zipEntry"),f=n("./support");function _(v){this.files=[],this.loadOptions=v}_.prototype={checkSignature:function(v){if(!this.reader.readAndCheckSignature(v)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(m)+", expected "+s.pretty(v)+")")}},isSignature:function(v,m){var p=this.reader.index;this.reader.setIndex(v);var w=this.reader.readString(4)===m;return this.reader.setIndex(p),w},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var v=this.reader.readData(this.zipCommentLength),m=f.uint8array?"uint8array":"array",p=s.transformTo(m,v);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var v,m,p,w=this.zip64EndOfCentralSize-44;0<w;)v=this.reader.readInt(2),m=this.reader.readInt(4),p=this.reader.readData(m),this.zip64ExtensibleData[v]={id:v,length:m,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var v,m;for(v=0;v<this.files.length;v++)m=this.files[v],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(l.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var v;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(l.CENTRAL_FILE_HEADER);)(v=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(v);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var v=this.reader.lastIndexOfSignature(l.CENTRAL_DIRECTORY_END);if(v<0)throw this.isSignature(0,l.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(v);var m=v;if(this.checkSignature(l.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(v=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(v),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,l.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var w=m-p;if(0<w)this.isSignature(m,l.CENTRAL_FILE_HEADER)||(this.reader.zero=w);else if(w<0)throw new Error("Corrupted zip: missing "+Math.abs(w)+" bytes.")},prepareReader:function(v){this.reader=o(v)},load:function(v){this.prepareReader(v),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=_},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var o=n("./reader/readerFor"),s=n("./utils"),l=n("./compressedObject"),a=n("./crc32"),f=n("./utf8"),_=n("./compressions"),v=n("./support");function m(p,w){this.options=p,this.loadOptions=w}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var w,h;if(p.skip(22),this.fileNameLength=p.readInt(2),h=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((w=function(k){for(var u in _)if(Object.prototype.hasOwnProperty.call(_,u)&&_[u].magic===k)return _[u];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new l(this.compressedSize,this.uncompressedSize,this.crc32,w,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var w=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(w),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var w,h,k,u=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<u;)w=p.readInt(2),h=p.readInt(2),k=p.readData(h),this.extraFields[w]={id:w,length:h,value:k};p.setIndex(u)},handleUTF8:function(){var p=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var w=this.findExtraFieldUnicodePath();if(w!==null)this.fileNameStr=w;else{var h=s.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var k=this.findExtraFieldUnicodeComment();if(k!==null)this.fileCommentStr=k;else{var u=s.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(u)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var w=o(p.value);return w.readInt(1)!==1||a(this.fileName)!==w.readInt(4)?null:f.utf8decode(w.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var w=o(p.value);return w.readInt(1)!==1||a(this.fileComment)!==w.readInt(4)?null:f.utf8decode(w.readData(p.length-5))}return null}},r.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function o(w,h,k){this.name=w,this.dir=k.dir,this.date=k.date,this.comment=k.comment,this.unixPermissions=k.unixPermissions,this.dosPermissions=k.dosPermissions,this._data=h,this._dataBinary=k.binary,this.options={compression:k.compression,compressionOptions:k.compressionOptions}}var s=n("./stream/StreamHelper"),l=n("./stream/DataWorker"),a=n("./utf8"),f=n("./compressedObject"),_=n("./stream/GenericWorker");o.prototype={internalStream:function(w){var h=null,k="string";try{if(!w)throw new Error("No output type specified.");var u=(k=w.toLowerCase())==="string"||k==="text";k!=="binarystring"&&k!=="text"||(k="string"),h=this._decompressWorker();var c=!this._dataBinary;c&&!u&&(h=h.pipe(new a.Utf8EncodeWorker)),!c&&u&&(h=h.pipe(new a.Utf8DecodeWorker))}catch(g){(h=new _("error")).error(g)}return new s(h,k,"")},async:function(w,h){return this.internalStream(w).accumulate(h)},nodeStream:function(w,h){return this.internalStream(w||"nodebuffer").toNodejsStream(h)},_compressWorker:function(w,h){if(this._data instanceof f&&this._data.compression.magic===w.magic)return this._data.getCompressedWorker();var k=this._decompressWorker();return this._dataBinary||(k=k.pipe(new a.Utf8EncodeWorker)),f.createWorkerFrom(k,w,h)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof _?this._data:new l(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<v.length;p++)o.prototype[v[p]]=m;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(o){var s,l,a=o.MutationObserver||o.WebKitMutationObserver;if(a){var f=0,_=new a(w),v=o.document.createTextNode("");_.observe(v,{characterData:!0}),s=function(){v.data=f=++f%2}}else if(o.setImmediate||o.MessageChannel===void 0)s="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var h=o.document.createElement("script");h.onreadystatechange=function(){w(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},o.document.documentElement.appendChild(h)}:function(){setTimeout(w,0)};else{var m=new o.MessageChannel;m.port1.onmessage=w,s=function(){m.port2.postMessage(0)}}var p=[];function w(){var h,k;l=!0;for(var u=p.length;u;){for(k=p,p=[],h=-1;++h<u;)k[h]();u=p.length}l=!1}r.exports=function(h){p.push(h)!==1||l||s()}}).call(this,typeof yi<"u"?yi:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var o=n("immediate");function s(){}var l={},a=["REJECTED"],f=["FULFILLED"],_=["PENDING"];function v(u){if(typeof u!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,u!==s&&h(this,u)}function m(u,c,g){this.promise=u,typeof c=="function"&&(this.onFulfilled=c,this.callFulfilled=this.otherCallFulfilled),typeof g=="function"&&(this.onRejected=g,this.callRejected=this.otherCallRejected)}function p(u,c,g){o(function(){var S;try{S=c(g)}catch(C){return l.reject(u,C)}S===u?l.reject(u,new TypeError("Cannot resolve promise with itself")):l.resolve(u,S)})}function w(u){var c=u&&u.then;if(u&&(typeof u=="object"||typeof u=="function")&&typeof c=="function")return function(){c.apply(u,arguments)}}function h(u,c){var g=!1;function S(P){g||(g=!0,l.reject(u,P))}function C(P){g||(g=!0,l.resolve(u,P))}var R=k(function(){c(C,S)});R.status==="error"&&S(R.value)}function k(u,c){var g={};try{g.value=u(c),g.status="success"}catch(S){g.status="error",g.value=S}return g}(r.exports=v).prototype.finally=function(u){if(typeof u!="function")return this;var c=this.constructor;return this.then(function(g){return c.resolve(u()).then(function(){return g})},function(g){return c.resolve(u()).then(function(){throw g})})},v.prototype.catch=function(u){return this.then(null,u)},v.prototype.then=function(u,c){if(typeof u!="function"&&this.state===f||typeof c!="function"&&this.state===a)return this;var g=new this.constructor(s);return this.state!==_?p(g,this.state===f?u:c,this.outcome):this.queue.push(new m(g,u,c)),g},m.prototype.callFulfilled=function(u){l.resolve(this.promise,u)},m.prototype.otherCallFulfilled=function(u){p(this.promise,this.onFulfilled,u)},m.prototype.callRejected=function(u){l.reject(this.promise,u)},m.prototype.otherCallRejected=function(u){p(this.promise,this.onRejected,u)},l.resolve=function(u,c){var g=k(w,c);if(g.status==="error")return l.reject(u,g.value);var S=g.value;if(S)h(u,S);else{u.state=f,u.outcome=c;for(var C=-1,R=u.queue.length;++C<R;)u.queue[C].callFulfilled(c)}return u},l.reject=function(u,c){u.state=a,u.outcome=c;for(var g=-1,S=u.queue.length;++g<S;)u.queue[g].callRejected(c);return u},v.resolve=function(u){return u instanceof this?u:l.resolve(new this(s),u)},v.reject=function(u){var c=new this(s);return l.reject(c,u)},v.all=function(u){var c=this;if(Object.prototype.toString.call(u)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=u.length,S=!1;if(!g)return this.resolve([]);for(var C=new Array(g),R=0,P=-1,b=new this(s);++P<g;)F(u[P],P);return b;function F(W,te){c.resolve(W).then(function(N){C[te]=N,++R!==g||S||(S=!0,l.resolve(b,C))},function(N){S||(S=!0,l.reject(b,N))})}},v.race=function(u){var c=this;if(Object.prototype.toString.call(u)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=u.length,S=!1;if(!g)return this.resolve([]);for(var C=-1,R=new this(s);++C<g;)P=u[C],c.resolve(P).then(function(b){S||(S=!0,l.resolve(R,b))},function(b){S||(S=!0,l.reject(R,b))});var P;return R}},{immediate:36}],38:[function(n,r,i){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var o=n("./zlib/deflate"),s=n("./utils/common"),l=n("./utils/strings"),a=n("./zlib/messages"),f=n("./zlib/zstream"),_=Object.prototype.toString,v=0,m=-1,p=0,w=8;function h(u){if(!(this instanceof h))return new h(u);this.options=s.assign({level:m,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},u||{});var c=this.options;c.raw&&0<c.windowBits?c.windowBits=-c.windowBits:c.gzip&&0<c.windowBits&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var g=o.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(g!==v)throw new Error(a[g]);if(c.header&&o.deflateSetHeader(this.strm,c.header),c.dictionary){var S;if(S=typeof c.dictionary=="string"?l.string2buf(c.dictionary):_.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary,(g=o.deflateSetDictionary(this.strm,S))!==v)throw new Error(a[g]);this._dict_set=!0}}function k(u,c){var g=new h(c);if(g.push(u,!0),g.err)throw g.msg||a[g.err];return g.result}h.prototype.push=function(u,c){var g,S,C=this.strm,R=this.options.chunkSize;if(this.ended)return!1;S=c===~~c?c:c===!0?4:0,typeof u=="string"?C.input=l.string2buf(u):_.call(u)==="[object ArrayBuffer]"?C.input=new Uint8Array(u):C.input=u,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new s.Buf8(R),C.next_out=0,C.avail_out=R),(g=o.deflate(C,S))!==1&&g!==v)return this.onEnd(g),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(l.buf2binstring(s.shrinkBuf(C.output,C.next_out))):this.onData(s.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&g!==1);return S===4?(g=o.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===v):S!==2||(this.onEnd(v),!(C.avail_out=0))},h.prototype.onData=function(u){this.chunks.push(u)},h.prototype.onEnd=function(u){u===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},i.Deflate=h,i.deflate=k,i.deflateRaw=function(u,c){return(c=c||{}).raw=!0,k(u,c)},i.gzip=function(u,c){return(c=c||{}).gzip=!0,k(u,c)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var o=n("./zlib/inflate"),s=n("./utils/common"),l=n("./utils/strings"),a=n("./zlib/constants"),f=n("./zlib/messages"),_=n("./zlib/zstream"),v=n("./zlib/gzheader"),m=Object.prototype.toString;function p(h){if(!(this instanceof p))return new p(h);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},h||{});var k=this.options;k.raw&&0<=k.windowBits&&k.windowBits<16&&(k.windowBits=-k.windowBits,k.windowBits===0&&(k.windowBits=-15)),!(0<=k.windowBits&&k.windowBits<16)||h&&h.windowBits||(k.windowBits+=32),15<k.windowBits&&k.windowBits<48&&!(15&k.windowBits)&&(k.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var u=o.inflateInit2(this.strm,k.windowBits);if(u!==a.Z_OK)throw new Error(f[u]);this.header=new v,o.inflateGetHeader(this.strm,this.header)}function w(h,k){var u=new p(k);if(u.push(h,!0),u.err)throw u.msg||f[u.err];return u.result}p.prototype.push=function(h,k){var u,c,g,S,C,R,P=this.strm,b=this.options.chunkSize,F=this.options.dictionary,W=!1;if(this.ended)return!1;c=k===~~k?k:k===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof h=="string"?P.input=l.binstring2buf(h):m.call(h)==="[object ArrayBuffer]"?P.input=new Uint8Array(h):P.input=h,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new s.Buf8(b),P.next_out=0,P.avail_out=b),(u=o.inflate(P,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&F&&(R=typeof F=="string"?l.string2buf(F):m.call(F)==="[object ArrayBuffer]"?new Uint8Array(F):F,u=o.inflateSetDictionary(this.strm,R)),u===a.Z_BUF_ERROR&&W===!0&&(u=a.Z_OK,W=!1),u!==a.Z_STREAM_END&&u!==a.Z_OK)return this.onEnd(u),!(this.ended=!0);P.next_out&&(P.avail_out!==0&&u!==a.Z_STREAM_END&&(P.avail_in!==0||c!==a.Z_FINISH&&c!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(g=l.utf8border(P.output,P.next_out),S=P.next_out-g,C=l.buf2string(P.output,g),P.next_out=S,P.avail_out=b-S,S&&s.arraySet(P.output,P.output,g,S,0),this.onData(C)):this.onData(s.shrinkBuf(P.output,P.next_out)))),P.avail_in===0&&P.avail_out===0&&(W=!0)}while((0<P.avail_in||P.avail_out===0)&&u!==a.Z_STREAM_END);return u===a.Z_STREAM_END&&(c=a.Z_FINISH),c===a.Z_FINISH?(u=o.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===a.Z_OK):c!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(P.avail_out=0))},p.prototype.onData=function(h){this.chunks.push(h)},p.prototype.onEnd=function(h){h===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},i.Inflate=p,i.inflate=w,i.inflateRaw=function(h,k){return(k=k||{}).raw=!0,w(h,k)},i.ungzip=w},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(a){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var _=f.shift();if(_){if(typeof _!="object")throw new TypeError(_+"must be non-object");for(var v in _)_.hasOwnProperty(v)&&(a[v]=_[v])}}return a},i.shrinkBuf=function(a,f){return a.length===f?a:a.subarray?a.subarray(0,f):(a.length=f,a)};var s={arraySet:function(a,f,_,v,m){if(f.subarray&&a.subarray)a.set(f.subarray(_,_+v),m);else for(var p=0;p<v;p++)a[m+p]=f[_+p]},flattenChunks:function(a){var f,_,v,m,p,w;for(f=v=0,_=a.length;f<_;f++)v+=a[f].length;for(w=new Uint8Array(v),f=m=0,_=a.length;f<_;f++)p=a[f],w.set(p,m),m+=p.length;return w}},l={arraySet:function(a,f,_,v,m){for(var p=0;p<v;p++)a[m+p]=f[_+p]},flattenChunks:function(a){return[].concat.apply([],a)}};i.setTyped=function(a){a?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,s)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,l))},i.setTyped(o)},{}],42:[function(n,r,i){var o=n("./common"),s=!0,l=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{l=!1}for(var a=new o.Buf8(256),f=0;f<256;f++)a[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;function _(v,m){if(m<65537&&(v.subarray&&l||!v.subarray&&s))return String.fromCharCode.apply(null,o.shrinkBuf(v,m));for(var p="",w=0;w<m;w++)p+=String.fromCharCode(v[w]);return p}a[254]=a[254]=1,i.string2buf=function(v){var m,p,w,h,k,u=v.length,c=0;for(h=0;h<u;h++)(64512&(p=v.charCodeAt(h)))==55296&&h+1<u&&(64512&(w=v.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(w-56320),h++),c+=p<128?1:p<2048?2:p<65536?3:4;for(m=new o.Buf8(c),h=k=0;k<c;h++)(64512&(p=v.charCodeAt(h)))==55296&&h+1<u&&(64512&(w=v.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(w-56320),h++),p<128?m[k++]=p:(p<2048?m[k++]=192|p>>>6:(p<65536?m[k++]=224|p>>>12:(m[k++]=240|p>>>18,m[k++]=128|p>>>12&63),m[k++]=128|p>>>6&63),m[k++]=128|63&p);return m},i.buf2binstring=function(v){return _(v,v.length)},i.binstring2buf=function(v){for(var m=new o.Buf8(v.length),p=0,w=m.length;p<w;p++)m[p]=v.charCodeAt(p);return m},i.buf2string=function(v,m){var p,w,h,k,u=m||v.length,c=new Array(2*u);for(p=w=0;p<u;)if((h=v[p++])<128)c[w++]=h;else if(4<(k=a[h]))c[w++]=65533,p+=k-1;else{for(h&=k===2?31:k===3?15:7;1<k&&p<u;)h=h<<6|63&v[p++],k--;1<k?c[w++]=65533:h<65536?c[w++]=h:(h-=65536,c[w++]=55296|h>>10&1023,c[w++]=56320|1023&h)}return _(c,w)},i.utf8border=function(v,m){var p;for((m=m||v.length)>v.length&&(m=v.length),p=m-1;0<=p&&(192&v[p])==128;)p--;return p<0||p===0?m:p+a[v[p]]>m?p:m}},{"./common":41}],43:[function(n,r,i){r.exports=function(o,s,l,a){for(var f=65535&o|0,_=o>>>16&65535|0,v=0;l!==0;){for(l-=v=2e3<l?2e3:l;_=_+(f=f+s[a++]|0)|0,--v;);f%=65521,_%=65521}return f|_<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var o=function(){for(var s,l=[],a=0;a<256;a++){s=a;for(var f=0;f<8;f++)s=1&s?3988292384^s>>>1:s>>>1;l[a]=s}return l}();r.exports=function(s,l,a,f){var _=o,v=f+a;s^=-1;for(var m=f;m<v;m++)s=s>>>8^_[255&(s^l[m])];return-1^s}},{}],46:[function(n,r,i){var o,s=n("../utils/common"),l=n("./trees"),a=n("./adler32"),f=n("./crc32"),_=n("./messages"),v=0,m=4,p=0,w=-2,h=-1,k=4,u=2,c=8,g=9,S=286,C=30,R=19,P=2*S+1,b=15,F=3,W=258,te=W+F+1,N=42,B=113,y=1,j=2,V=3,L=4;function D(d,H){return d.msg=_[H],H}function A(d){return(d<<1)-(4<d?9:0)}function $(d){for(var H=d.length;0<=--H;)d[H]=0}function z(d){var H=d.state,U=H.pending;U>d.avail_out&&(U=d.avail_out),U!==0&&(s.arraySet(d.output,H.pending_buf,H.pending_out,U,d.next_out),d.next_out+=U,H.pending_out+=U,d.total_out+=U,d.avail_out-=U,H.pending-=U,H.pending===0&&(H.pending_out=0))}function T(d,H){l._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,H),d.block_start=d.strstart,z(d.strm)}function ne(d,H){d.pending_buf[d.pending++]=H}function X(d,H){d.pending_buf[d.pending++]=H>>>8&255,d.pending_buf[d.pending++]=255&H}function G(d,H){var U,E,x=d.max_chain_length,I=d.strstart,Z=d.prev_length,K=d.nice_match,O=d.strstart>d.w_size-te?d.strstart-(d.w_size-te):0,Y=d.window,q=d.w_mask,J=d.prev,re=d.strstart+W,pe=Y[I+Z-1],ae=Y[I+Z];d.prev_length>=d.good_match&&(x>>=2),K>d.lookahead&&(K=d.lookahead);do if(Y[(U=H)+Z]===ae&&Y[U+Z-1]===pe&&Y[U]===Y[I]&&Y[++U]===Y[I+1]){I+=2,U++;do;while(Y[++I]===Y[++U]&&Y[++I]===Y[++U]&&Y[++I]===Y[++U]&&Y[++I]===Y[++U]&&Y[++I]===Y[++U]&&Y[++I]===Y[++U]&&Y[++I]===Y[++U]&&Y[++I]===Y[++U]&&I<re);if(E=W-(re-I),I=re-W,Z<E){if(d.match_start=H,K<=(Z=E))break;pe=Y[I+Z-1],ae=Y[I+Z]}}while((H=J[H&q])>O&&--x!=0);return Z<=d.lookahead?Z:d.lookahead}function oe(d){var H,U,E,x,I,Z,K,O,Y,q,J=d.w_size;do{if(x=d.window_size-d.lookahead-d.strstart,d.strstart>=J+(J-te)){for(s.arraySet(d.window,d.window,J,J,0),d.match_start-=J,d.strstart-=J,d.block_start-=J,H=U=d.hash_size;E=d.head[--H],d.head[H]=J<=E?E-J:0,--U;);for(H=U=J;E=d.prev[--H],d.prev[H]=J<=E?E-J:0,--U;);x+=J}if(d.strm.avail_in===0)break;if(Z=d.strm,K=d.window,O=d.strstart+d.lookahead,Y=x,q=void 0,q=Z.avail_in,Y<q&&(q=Y),U=q===0?0:(Z.avail_in-=q,s.arraySet(K,Z.input,Z.next_in,q,O),Z.state.wrap===1?Z.adler=a(Z.adler,K,q,O):Z.state.wrap===2&&(Z.adler=f(Z.adler,K,q,O)),Z.next_in+=q,Z.total_in+=q,q),d.lookahead+=U,d.lookahead+d.insert>=F)for(I=d.strstart-d.insert,d.ins_h=d.window[I],d.ins_h=(d.ins_h<<d.hash_shift^d.window[I+1])&d.hash_mask;d.insert&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[I+F-1])&d.hash_mask,d.prev[I&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=I,I++,d.insert--,!(d.lookahead+d.insert<F)););}while(d.lookahead<te&&d.strm.avail_in!==0)}function de(d,H){for(var U,E;;){if(d.lookahead<te){if(oe(d),d.lookahead<te&&H===v)return y;if(d.lookahead===0)break}if(U=0,d.lookahead>=F&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+F-1])&d.hash_mask,U=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),U!==0&&d.strstart-U<=d.w_size-te&&(d.match_length=G(d,U)),d.match_length>=F)if(E=l._tr_tally(d,d.strstart-d.match_start,d.match_length-F),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=F){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+F-1])&d.hash_mask,U=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart,--d.match_length!=0;);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else E=l._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(E&&(T(d,!1),d.strm.avail_out===0))return y}return d.insert=d.strstart<F-1?d.strstart:F-1,H===m?(T(d,!0),d.strm.avail_out===0?V:L):d.last_lit&&(T(d,!1),d.strm.avail_out===0)?y:j}function ie(d,H){for(var U,E,x;;){if(d.lookahead<te){if(oe(d),d.lookahead<te&&H===v)return y;if(d.lookahead===0)break}if(U=0,d.lookahead>=F&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+F-1])&d.hash_mask,U=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=F-1,U!==0&&d.prev_length<d.max_lazy_match&&d.strstart-U<=d.w_size-te&&(d.match_length=G(d,U),d.match_length<=5&&(d.strategy===1||d.match_length===F&&4096<d.strstart-d.match_start)&&(d.match_length=F-1)),d.prev_length>=F&&d.match_length<=d.prev_length){for(x=d.strstart+d.lookahead-F,E=l._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-F),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=x&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+F-1])&d.hash_mask,U=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),--d.prev_length!=0;);if(d.match_available=0,d.match_length=F-1,d.strstart++,E&&(T(d,!1),d.strm.avail_out===0))return y}else if(d.match_available){if((E=l._tr_tally(d,0,d.window[d.strstart-1]))&&T(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return y}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(E=l._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<F-1?d.strstart:F-1,H===m?(T(d,!0),d.strm.avail_out===0?V:L):d.last_lit&&(T(d,!1),d.strm.avail_out===0)?y:j}function le(d,H,U,E,x){this.good_length=d,this.max_lazy=H,this.nice_length=U,this.max_chain=E,this.func=x}function Pe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*P),this.dyn_dtree=new s.Buf16(2*(2*C+1)),this.bl_tree=new s.Buf16(2*(2*R+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(b+1),this.heap=new s.Buf16(2*S+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*S+1),$(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Se(d){var H;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=u,(H=d.state).pending=0,H.pending_out=0,H.wrap<0&&(H.wrap=-H.wrap),H.status=H.wrap?N:B,d.adler=H.wrap===2?0:1,H.last_flush=v,l._tr_init(H),p):D(d,w)}function wt(d){var H=Se(d);return H===p&&function(U){U.window_size=2*U.w_size,$(U.head),U.max_lazy_match=o[U.level].max_lazy,U.good_match=o[U.level].good_length,U.nice_match=o[U.level].nice_length,U.max_chain_length=o[U.level].max_chain,U.strstart=0,U.block_start=0,U.lookahead=0,U.insert=0,U.match_length=U.prev_length=F-1,U.match_available=0,U.ins_h=0}(d.state),H}function ft(d,H,U,E,x,I){if(!d)return w;var Z=1;if(H===h&&(H=6),E<0?(Z=0,E=-E):15<E&&(Z=2,E-=16),x<1||g<x||U!==c||E<8||15<E||H<0||9<H||I<0||k<I)return D(d,w);E===8&&(E=9);var K=new Pe;return(d.state=K).strm=d,K.wrap=Z,K.gzhead=null,K.w_bits=E,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=x+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+F-1)/F),K.window=new s.Buf8(2*K.w_size),K.head=new s.Buf16(K.hash_size),K.prev=new s.Buf16(K.w_size),K.lit_bufsize=1<<x+6,K.pending_buf_size=4*K.lit_bufsize,K.pending_buf=new s.Buf8(K.pending_buf_size),K.d_buf=1*K.lit_bufsize,K.l_buf=3*K.lit_bufsize,K.level=H,K.strategy=I,K.method=U,wt(d)}o=[new le(0,0,0,0,function(d,H){var U=65535;for(U>d.pending_buf_size-5&&(U=d.pending_buf_size-5);;){if(d.lookahead<=1){if(oe(d),d.lookahead===0&&H===v)return y;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var E=d.block_start+U;if((d.strstart===0||d.strstart>=E)&&(d.lookahead=d.strstart-E,d.strstart=E,T(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-te&&(T(d,!1),d.strm.avail_out===0))return y}return d.insert=0,H===m?(T(d,!0),d.strm.avail_out===0?V:L):(d.strstart>d.block_start&&(T(d,!1),d.strm.avail_out),y)}),new le(4,4,8,4,de),new le(4,5,16,8,de),new le(4,6,32,32,de),new le(4,4,16,16,ie),new le(8,16,32,32,ie),new le(8,16,128,128,ie),new le(8,32,128,256,ie),new le(32,128,258,1024,ie),new le(32,258,258,4096,ie)],i.deflateInit=function(d,H){return ft(d,H,c,15,8,0)},i.deflateInit2=ft,i.deflateReset=wt,i.deflateResetKeep=Se,i.deflateSetHeader=function(d,H){return d&&d.state?d.state.wrap!==2?w:(d.state.gzhead=H,p):w},i.deflate=function(d,H){var U,E,x,I;if(!d||!d.state||5<H||H<0)return d?D(d,w):w;if(E=d.state,!d.output||!d.input&&d.avail_in!==0||E.status===666&&H!==m)return D(d,d.avail_out===0?-5:w);if(E.strm=d,U=E.last_flush,E.last_flush=H,E.status===N)if(E.wrap===2)d.adler=0,ne(E,31),ne(E,139),ne(E,8),E.gzhead?(ne(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),ne(E,255&E.gzhead.time),ne(E,E.gzhead.time>>8&255),ne(E,E.gzhead.time>>16&255),ne(E,E.gzhead.time>>24&255),ne(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),ne(E,255&E.gzhead.os),E.gzhead.extra&&E.gzhead.extra.length&&(ne(E,255&E.gzhead.extra.length),ne(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(d.adler=f(d.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=69):(ne(E,0),ne(E,0),ne(E,0),ne(E,0),ne(E,0),ne(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),ne(E,3),E.status=B);else{var Z=c+(E.w_bits-8<<4)<<8;Z|=(2<=E.strategy||E.level<2?0:E.level<6?1:E.level===6?2:3)<<6,E.strstart!==0&&(Z|=32),Z+=31-Z%31,E.status=B,X(E,Z),E.strstart!==0&&(X(E,d.adler>>>16),X(E,65535&d.adler)),d.adler=1}if(E.status===69)if(E.gzhead.extra){for(x=E.pending;E.gzindex<(65535&E.gzhead.extra.length)&&(E.pending!==E.pending_buf_size||(E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),z(d),x=E.pending,E.pending!==E.pending_buf_size));)ne(E,255&E.gzhead.extra[E.gzindex]),E.gzindex++;E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),E.gzindex===E.gzhead.extra.length&&(E.gzindex=0,E.status=73)}else E.status=73;if(E.status===73)if(E.gzhead.name){x=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),z(d),x=E.pending,E.pending===E.pending_buf_size)){I=1;break}I=E.gzindex<E.gzhead.name.length?255&E.gzhead.name.charCodeAt(E.gzindex++):0,ne(E,I)}while(I!==0);E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),I===0&&(E.gzindex=0,E.status=91)}else E.status=91;if(E.status===91)if(E.gzhead.comment){x=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),z(d),x=E.pending,E.pending===E.pending_buf_size)){I=1;break}I=E.gzindex<E.gzhead.comment.length?255&E.gzhead.comment.charCodeAt(E.gzindex++):0,ne(E,I)}while(I!==0);E.gzhead.hcrc&&E.pending>x&&(d.adler=f(d.adler,E.pending_buf,E.pending-x,x)),I===0&&(E.status=103)}else E.status=103;if(E.status===103&&(E.gzhead.hcrc?(E.pending+2>E.pending_buf_size&&z(d),E.pending+2<=E.pending_buf_size&&(ne(E,255&d.adler),ne(E,d.adler>>8&255),d.adler=0,E.status=B)):E.status=B),E.pending!==0){if(z(d),d.avail_out===0)return E.last_flush=-1,p}else if(d.avail_in===0&&A(H)<=A(U)&&H!==m)return D(d,-5);if(E.status===666&&d.avail_in!==0)return D(d,-5);if(d.avail_in!==0||E.lookahead!==0||H!==v&&E.status!==666){var K=E.strategy===2?function(O,Y){for(var q;;){if(O.lookahead===0&&(oe(O),O.lookahead===0)){if(Y===v)return y;break}if(O.match_length=0,q=l._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++,q&&(T(O,!1),O.strm.avail_out===0))return y}return O.insert=0,Y===m?(T(O,!0),O.strm.avail_out===0?V:L):O.last_lit&&(T(O,!1),O.strm.avail_out===0)?y:j}(E,H):E.strategy===3?function(O,Y){for(var q,J,re,pe,ae=O.window;;){if(O.lookahead<=W){if(oe(O),O.lookahead<=W&&Y===v)return y;if(O.lookahead===0)break}if(O.match_length=0,O.lookahead>=F&&0<O.strstart&&(J=ae[re=O.strstart-1])===ae[++re]&&J===ae[++re]&&J===ae[++re]){pe=O.strstart+W;do;while(J===ae[++re]&&J===ae[++re]&&J===ae[++re]&&J===ae[++re]&&J===ae[++re]&&J===ae[++re]&&J===ae[++re]&&J===ae[++re]&&re<pe);O.match_length=W-(pe-re),O.match_length>O.lookahead&&(O.match_length=O.lookahead)}if(O.match_length>=F?(q=l._tr_tally(O,1,O.match_length-F),O.lookahead-=O.match_length,O.strstart+=O.match_length,O.match_length=0):(q=l._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++),q&&(T(O,!1),O.strm.avail_out===0))return y}return O.insert=0,Y===m?(T(O,!0),O.strm.avail_out===0?V:L):O.last_lit&&(T(O,!1),O.strm.avail_out===0)?y:j}(E,H):o[E.level].func(E,H);if(K!==V&&K!==L||(E.status=666),K===y||K===V)return d.avail_out===0&&(E.last_flush=-1),p;if(K===j&&(H===1?l._tr_align(E):H!==5&&(l._tr_stored_block(E,0,0,!1),H===3&&($(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),z(d),d.avail_out===0))return E.last_flush=-1,p}return H!==m?p:E.wrap<=0?1:(E.wrap===2?(ne(E,255&d.adler),ne(E,d.adler>>8&255),ne(E,d.adler>>16&255),ne(E,d.adler>>24&255),ne(E,255&d.total_in),ne(E,d.total_in>>8&255),ne(E,d.total_in>>16&255),ne(E,d.total_in>>24&255)):(X(E,d.adler>>>16),X(E,65535&d.adler)),z(d),0<E.wrap&&(E.wrap=-E.wrap),E.pending!==0?p:1)},i.deflateEnd=function(d){var H;return d&&d.state?(H=d.state.status)!==N&&H!==69&&H!==73&&H!==91&&H!==103&&H!==B&&H!==666?D(d,w):(d.state=null,H===B?D(d,-3):p):w},i.deflateSetDictionary=function(d,H){var U,E,x,I,Z,K,O,Y,q=H.length;if(!d||!d.state||(I=(U=d.state).wrap)===2||I===1&&U.status!==N||U.lookahead)return w;for(I===1&&(d.adler=a(d.adler,H,q,0)),U.wrap=0,q>=U.w_size&&(I===0&&($(U.head),U.strstart=0,U.block_start=0,U.insert=0),Y=new s.Buf8(U.w_size),s.arraySet(Y,H,q-U.w_size,U.w_size,0),H=Y,q=U.w_size),Z=d.avail_in,K=d.next_in,O=d.input,d.avail_in=q,d.next_in=0,d.input=H,oe(U);U.lookahead>=F;){for(E=U.strstart,x=U.lookahead-(F-1);U.ins_h=(U.ins_h<<U.hash_shift^U.window[E+F-1])&U.hash_mask,U.prev[E&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=E,E++,--x;);U.strstart=E,U.lookahead=F-1,oe(U)}return U.strstart+=U.lookahead,U.block_start=U.strstart,U.insert=U.lookahead,U.lookahead=0,U.match_length=U.prev_length=F-1,U.match_available=0,d.next_in=K,d.input=O,d.avail_in=Z,U.wrap=I,p},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){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}},{}],48:[function(n,r,i){r.exports=function(o,s){var l,a,f,_,v,m,p,w,h,k,u,c,g,S,C,R,P,b,F,W,te,N,B,y,j;l=o.state,a=o.next_in,y=o.input,f=a+(o.avail_in-5),_=o.next_out,j=o.output,v=_-(s-o.avail_out),m=_+(o.avail_out-257),p=l.dmax,w=l.wsize,h=l.whave,k=l.wnext,u=l.window,c=l.hold,g=l.bits,S=l.lencode,C=l.distcode,R=(1<<l.lenbits)-1,P=(1<<l.distbits)-1;e:do{g<15&&(c+=y[a++]<<g,g+=8,c+=y[a++]<<g,g+=8),b=S[c&R];t:for(;;){if(c>>>=F=b>>>24,g-=F,(F=b>>>16&255)===0)j[_++]=65535&b;else{if(!(16&F)){if(!(64&F)){b=S[(65535&b)+(c&(1<<F)-1)];continue t}if(32&F){l.mode=12;break e}o.msg="invalid literal/length code",l.mode=30;break e}W=65535&b,(F&=15)&&(g<F&&(c+=y[a++]<<g,g+=8),W+=c&(1<<F)-1,c>>>=F,g-=F),g<15&&(c+=y[a++]<<g,g+=8,c+=y[a++]<<g,g+=8),b=C[c&P];n:for(;;){if(c>>>=F=b>>>24,g-=F,!(16&(F=b>>>16&255))){if(!(64&F)){b=C[(65535&b)+(c&(1<<F)-1)];continue n}o.msg="invalid distance code",l.mode=30;break e}if(te=65535&b,g<(F&=15)&&(c+=y[a++]<<g,(g+=8)<F&&(c+=y[a++]<<g,g+=8)),p<(te+=c&(1<<F)-1)){o.msg="invalid distance too far back",l.mode=30;break e}if(c>>>=F,g-=F,(F=_-v)<te){if(h<(F=te-F)&&l.sane){o.msg="invalid distance too far back",l.mode=30;break e}if(B=u,(N=0)===k){if(N+=w-F,F<W){for(W-=F;j[_++]=u[N++],--F;);N=_-te,B=j}}else if(k<F){if(N+=w+k-F,(F-=k)<W){for(W-=F;j[_++]=u[N++],--F;);if(N=0,k<W){for(W-=F=k;j[_++]=u[N++],--F;);N=_-te,B=j}}}else if(N+=k-F,F<W){for(W-=F;j[_++]=u[N++],--F;);N=_-te,B=j}for(;2<W;)j[_++]=B[N++],j[_++]=B[N++],j[_++]=B[N++],W-=3;W&&(j[_++]=B[N++],1<W&&(j[_++]=B[N++]))}else{for(N=_-te;j[_++]=j[N++],j[_++]=j[N++],j[_++]=j[N++],2<(W-=3););W&&(j[_++]=j[N++],1<W&&(j[_++]=j[N++]))}break}}break}}while(a<f&&_<m);a-=W=g>>3,c&=(1<<(g-=W<<3))-1,o.next_in=a,o.next_out=_,o.avail_in=a<f?f-a+5:5-(a-f),o.avail_out=_<m?m-_+257:257-(_-m),l.hold=c,l.bits=g}},{}],49:[function(n,r,i){var o=n("../utils/common"),s=n("./adler32"),l=n("./crc32"),a=n("./inffast"),f=n("./inftrees"),_=1,v=2,m=0,p=-2,w=1,h=852,k=592;function u(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function c(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(N){var B;return N&&N.state?(B=N.state,N.total_in=N.total_out=B.total=0,N.msg="",B.wrap&&(N.adler=1&B.wrap),B.mode=w,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new o.Buf32(h),B.distcode=B.distdyn=new o.Buf32(k),B.sane=1,B.back=-1,m):p}function S(N){var B;return N&&N.state?((B=N.state).wsize=0,B.whave=0,B.wnext=0,g(N)):p}function C(N,B){var y,j;return N&&N.state?(j=N.state,B<0?(y=0,B=-B):(y=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?p:(j.window!==null&&j.wbits!==B&&(j.window=null),j.wrap=y,j.wbits=B,S(N))):p}function R(N,B){var y,j;return N?(j=new c,(N.state=j).window=null,(y=C(N,B))!==m&&(N.state=null),y):p}var P,b,F=!0;function W(N){if(F){var B;for(P=new o.Buf32(512),b=new o.Buf32(32),B=0;B<144;)N.lens[B++]=8;for(;B<256;)N.lens[B++]=9;for(;B<280;)N.lens[B++]=7;for(;B<288;)N.lens[B++]=8;for(f(_,N.lens,0,288,P,0,N.work,{bits:9}),B=0;B<32;)N.lens[B++]=5;f(v,N.lens,0,32,b,0,N.work,{bits:5}),F=!1}N.lencode=P,N.lenbits=9,N.distcode=b,N.distbits=5}function te(N,B,y,j){var V,L=N.state;return L.window===null&&(L.wsize=1<<L.wbits,L.wnext=0,L.whave=0,L.window=new o.Buf8(L.wsize)),j>=L.wsize?(o.arraySet(L.window,B,y-L.wsize,L.wsize,0),L.wnext=0,L.whave=L.wsize):(j<(V=L.wsize-L.wnext)&&(V=j),o.arraySet(L.window,B,y-j,V,L.wnext),(j-=V)?(o.arraySet(L.window,B,y-j,j,0),L.wnext=j,L.whave=L.wsize):(L.wnext+=V,L.wnext===L.wsize&&(L.wnext=0),L.whave<L.wsize&&(L.whave+=V))),0}i.inflateReset=S,i.inflateReset2=C,i.inflateResetKeep=g,i.inflateInit=function(N){return R(N,15)},i.inflateInit2=R,i.inflate=function(N,B){var y,j,V,L,D,A,$,z,T,ne,X,G,oe,de,ie,le,Pe,Se,wt,ft,d,H,U,E,x=0,I=new o.Buf8(4),Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return p;(y=N.state).mode===12&&(y.mode=13),D=N.next_out,V=N.output,$=N.avail_out,L=N.next_in,j=N.input,A=N.avail_in,z=y.hold,T=y.bits,ne=A,X=$,H=m;e:for(;;)switch(y.mode){case w:if(y.wrap===0){y.mode=13;break}for(;T<16;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(2&y.wrap&&z===35615){I[y.check=0]=255&z,I[1]=z>>>8&255,y.check=l(y.check,I,2,0),T=z=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&z)<<8)+(z>>8))%31){N.msg="incorrect header check",y.mode=30;break}if((15&z)!=8){N.msg="unknown compression method",y.mode=30;break}if(T-=4,d=8+(15&(z>>>=4)),y.wbits===0)y.wbits=d;else if(d>y.wbits){N.msg="invalid window size",y.mode=30;break}y.dmax=1<<d,N.adler=y.check=1,y.mode=512&z?10:12,T=z=0;break;case 2:for(;T<16;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(y.flags=z,(255&y.flags)!=8){N.msg="unknown compression method",y.mode=30;break}if(57344&y.flags){N.msg="unknown header flags set",y.mode=30;break}y.head&&(y.head.text=z>>8&1),512&y.flags&&(I[0]=255&z,I[1]=z>>>8&255,y.check=l(y.check,I,2,0)),T=z=0,y.mode=3;case 3:for(;T<32;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}y.head&&(y.head.time=z),512&y.flags&&(I[0]=255&z,I[1]=z>>>8&255,I[2]=z>>>16&255,I[3]=z>>>24&255,y.check=l(y.check,I,4,0)),T=z=0,y.mode=4;case 4:for(;T<16;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}y.head&&(y.head.xflags=255&z,y.head.os=z>>8),512&y.flags&&(I[0]=255&z,I[1]=z>>>8&255,y.check=l(y.check,I,2,0)),T=z=0,y.mode=5;case 5:if(1024&y.flags){for(;T<16;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}y.length=z,y.head&&(y.head.extra_len=z),512&y.flags&&(I[0]=255&z,I[1]=z>>>8&255,y.check=l(y.check,I,2,0)),T=z=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(A<(G=y.length)&&(G=A),G&&(y.head&&(d=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),o.arraySet(y.head.extra,j,L,G,d)),512&y.flags&&(y.check=l(y.check,j,G,L)),A-=G,L+=G,y.length-=G),y.length))break e;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(A===0)break e;for(G=0;d=j[L+G++],y.head&&d&&y.length<65536&&(y.head.name+=String.fromCharCode(d)),d&&G<A;);if(512&y.flags&&(y.check=l(y.check,j,G,L)),A-=G,L+=G,d)break e}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(A===0)break e;for(G=0;d=j[L+G++],y.head&&d&&y.length<65536&&(y.head.comment+=String.fromCharCode(d)),d&&G<A;);if(512&y.flags&&(y.check=l(y.check,j,G,L)),A-=G,L+=G,d)break e}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;T<16;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(z!==(65535&y.check)){N.msg="header crc mismatch",y.mode=30;break}T=z=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),N.adler=y.check=0,y.mode=12;break;case 10:for(;T<32;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}N.adler=y.check=u(z),T=z=0,y.mode=11;case 11:if(y.havedict===0)return N.next_out=D,N.avail_out=$,N.next_in=L,N.avail_in=A,y.hold=z,y.bits=T,2;N.adler=y.check=1,y.mode=12;case 12:if(B===5||B===6)break e;case 13:if(y.last){z>>>=7&T,T-=7&T,y.mode=27;break}for(;T<3;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}switch(y.last=1&z,T-=1,3&(z>>>=1)){case 0:y.mode=14;break;case 1:if(W(y),y.mode=20,B!==6)break;z>>>=2,T-=2;break e;case 2:y.mode=17;break;case 3:N.msg="invalid block type",y.mode=30}z>>>=2,T-=2;break;case 14:for(z>>>=7&T,T-=7&T;T<32;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if((65535&z)!=(z>>>16^65535)){N.msg="invalid stored block lengths",y.mode=30;break}if(y.length=65535&z,T=z=0,y.mode=15,B===6)break e;case 15:y.mode=16;case 16:if(G=y.length){if(A<G&&(G=A),$<G&&(G=$),G===0)break e;o.arraySet(V,j,L,G,D),A-=G,L+=G,$-=G,D+=G,y.length-=G;break}y.mode=12;break;case 17:for(;T<14;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(y.nlen=257+(31&z),z>>>=5,T-=5,y.ndist=1+(31&z),z>>>=5,T-=5,y.ncode=4+(15&z),z>>>=4,T-=4,286<y.nlen||30<y.ndist){N.msg="too many length or distance symbols",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;T<3;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}y.lens[Z[y.have++]]=7&z,z>>>=3,T-=3}for(;y.have<19;)y.lens[Z[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,U={bits:y.lenbits},H=f(0,y.lens,0,19,y.lencode,0,y.work,U),y.lenbits=U.bits,H){N.msg="invalid code lengths set",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;le=(x=y.lencode[z&(1<<y.lenbits)-1])>>>16&255,Pe=65535&x,!((ie=x>>>24)<=T);){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(Pe<16)z>>>=ie,T-=ie,y.lens[y.have++]=Pe;else{if(Pe===16){for(E=ie+2;T<E;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(z>>>=ie,T-=ie,y.have===0){N.msg="invalid bit length repeat",y.mode=30;break}d=y.lens[y.have-1],G=3+(3&z),z>>>=2,T-=2}else if(Pe===17){for(E=ie+3;T<E;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}T-=ie,d=0,G=3+(7&(z>>>=ie)),z>>>=3,T-=3}else{for(E=ie+7;T<E;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}T-=ie,d=0,G=11+(127&(z>>>=ie)),z>>>=7,T-=7}if(y.have+G>y.nlen+y.ndist){N.msg="invalid bit length repeat",y.mode=30;break}for(;G--;)y.lens[y.have++]=d}}if(y.mode===30)break;if(y.lens[256]===0){N.msg="invalid code -- missing end-of-block",y.mode=30;break}if(y.lenbits=9,U={bits:y.lenbits},H=f(_,y.lens,0,y.nlen,y.lencode,0,y.work,U),y.lenbits=U.bits,H){N.msg="invalid literal/lengths set",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,U={bits:y.distbits},H=f(v,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,U),y.distbits=U.bits,H){N.msg="invalid distances set",y.mode=30;break}if(y.mode=20,B===6)break e;case 20:y.mode=21;case 21:if(6<=A&&258<=$){N.next_out=D,N.avail_out=$,N.next_in=L,N.avail_in=A,y.hold=z,y.bits=T,a(N,X),D=N.next_out,V=N.output,$=N.avail_out,L=N.next_in,j=N.input,A=N.avail_in,z=y.hold,T=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;le=(x=y.lencode[z&(1<<y.lenbits)-1])>>>16&255,Pe=65535&x,!((ie=x>>>24)<=T);){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(le&&!(240&le)){for(Se=ie,wt=le,ft=Pe;le=(x=y.lencode[ft+((z&(1<<Se+wt)-1)>>Se)])>>>16&255,Pe=65535&x,!(Se+(ie=x>>>24)<=T);){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}z>>>=Se,T-=Se,y.back+=Se}if(z>>>=ie,T-=ie,y.back+=ie,y.length=Pe,le===0){y.mode=26;break}if(32&le){y.back=-1,y.mode=12;break}if(64&le){N.msg="invalid literal/length code",y.mode=30;break}y.extra=15&le,y.mode=22;case 22:if(y.extra){for(E=y.extra;T<E;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}y.length+=z&(1<<y.extra)-1,z>>>=y.extra,T-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;le=(x=y.distcode[z&(1<<y.distbits)-1])>>>16&255,Pe=65535&x,!((ie=x>>>24)<=T);){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(!(240&le)){for(Se=ie,wt=le,ft=Pe;le=(x=y.distcode[ft+((z&(1<<Se+wt)-1)>>Se)])>>>16&255,Pe=65535&x,!(Se+(ie=x>>>24)<=T);){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}z>>>=Se,T-=Se,y.back+=Se}if(z>>>=ie,T-=ie,y.back+=ie,64&le){N.msg="invalid distance code",y.mode=30;break}y.offset=Pe,y.extra=15&le,y.mode=24;case 24:if(y.extra){for(E=y.extra;T<E;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}y.offset+=z&(1<<y.extra)-1,z>>>=y.extra,T-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){N.msg="invalid distance too far back",y.mode=30;break}y.mode=25;case 25:if($===0)break e;if(G=X-$,y.offset>G){if((G=y.offset-G)>y.whave&&y.sane){N.msg="invalid distance too far back",y.mode=30;break}oe=G>y.wnext?(G-=y.wnext,y.wsize-G):y.wnext-G,G>y.length&&(G=y.length),de=y.window}else de=V,oe=D-y.offset,G=y.length;for($<G&&(G=$),$-=G,y.length-=G;V[D++]=de[oe++],--G;);y.length===0&&(y.mode=21);break;case 26:if($===0)break e;V[D++]=y.length,$--,y.mode=21;break;case 27:if(y.wrap){for(;T<32;){if(A===0)break e;A--,z|=j[L++]<<T,T+=8}if(X-=$,N.total_out+=X,y.total+=X,X&&(N.adler=y.check=y.flags?l(y.check,V,X,D-X):s(y.check,V,X,D-X)),X=$,(y.flags?z:u(z))!==y.check){N.msg="incorrect data check",y.mode=30;break}T=z=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;T<32;){if(A===0)break e;A--,z+=j[L++]<<T,T+=8}if(z!==(4294967295&y.total)){N.msg="incorrect length check",y.mode=30;break}T=z=0}y.mode=29;case 29:H=1;break e;case 30:H=-3;break e;case 31:return-4;case 32:default:return p}return N.next_out=D,N.avail_out=$,N.next_in=L,N.avail_in=A,y.hold=z,y.bits=T,(y.wsize||X!==N.avail_out&&y.mode<30&&(y.mode<27||B!==4))&&te(N,N.output,N.next_out,X-N.avail_out)?(y.mode=31,-4):(ne-=N.avail_in,X-=N.avail_out,N.total_in+=ne,N.total_out+=X,y.total+=X,y.wrap&&X&&(N.adler=y.check=y.flags?l(y.check,V,X,N.next_out-X):s(y.check,V,X,N.next_out-X)),N.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(ne==0&&X===0||B===4)&&H===m&&(H=-5),H)},i.inflateEnd=function(N){if(!N||!N.state)return p;var B=N.state;return B.window&&(B.window=null),N.state=null,m},i.inflateGetHeader=function(N,B){var y;return N&&N.state&&2&(y=N.state).wrap?((y.head=B).done=!1,m):p},i.inflateSetDictionary=function(N,B){var y,j=B.length;return N&&N.state?(y=N.state).wrap!==0&&y.mode!==11?p:y.mode===11&&s(1,B,j,0)!==y.check?-3:te(N,B,j,j)?(y.mode=31,-4):(y.havedict=1,m):p},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var o=n("../utils/common"),s=[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],l=[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],a=[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],f=[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];r.exports=function(_,v,m,p,w,h,k,u){var c,g,S,C,R,P,b,F,W,te=u.bits,N=0,B=0,y=0,j=0,V=0,L=0,D=0,A=0,$=0,z=0,T=null,ne=0,X=new o.Buf16(16),G=new o.Buf16(16),oe=null,de=0;for(N=0;N<=15;N++)X[N]=0;for(B=0;B<p;B++)X[v[m+B]]++;for(V=te,j=15;1<=j&&X[j]===0;j--);if(j<V&&(V=j),j===0)return w[h++]=20971520,w[h++]=20971520,u.bits=1,0;for(y=1;y<j&&X[y]===0;y++);for(V<y&&(V=y),N=A=1;N<=15;N++)if(A<<=1,(A-=X[N])<0)return-1;if(0<A&&(_===0||j!==1))return-1;for(G[1]=0,N=1;N<15;N++)G[N+1]=G[N]+X[N];for(B=0;B<p;B++)v[m+B]!==0&&(k[G[v[m+B]]++]=B);if(P=_===0?(T=oe=k,19):_===1?(T=s,ne-=257,oe=l,de-=257,256):(T=a,oe=f,-1),N=y,R=h,D=B=z=0,S=-1,C=($=1<<(L=V))-1,_===1&&852<$||_===2&&592<$)return 1;for(;;){for(b=N-D,W=k[B]<P?(F=0,k[B]):k[B]>P?(F=oe[de+k[B]],T[ne+k[B]]):(F=96,0),c=1<<N-D,y=g=1<<L;w[R+(z>>D)+(g-=c)]=b<<24|F<<16|W|0,g!==0;);for(c=1<<N-1;z&c;)c>>=1;if(c!==0?(z&=c-1,z+=c):z=0,B++,--X[N]==0){if(N===j)break;N=v[m+k[B]]}if(V<N&&(z&C)!==S){for(D===0&&(D=V),R+=y,A=1<<(L=N-D);L+D<j&&!((A-=X[L+D])<=0);)L++,A<<=1;if($+=1<<L,_===1&&852<$||_===2&&592<$)return 1;w[S=z&C]=V<<24|L<<16|R-h|0}}return z!==0&&(w[R+z]=N-D<<24|64<<16|0),u.bits=V,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={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"}},{}],52:[function(n,r,i){var o=n("../utils/common"),s=0,l=1;function a(x){for(var I=x.length;0<=--I;)x[I]=0}var f=0,_=29,v=256,m=v+1+_,p=30,w=19,h=2*m+1,k=15,u=16,c=7,g=256,S=16,C=17,R=18,P=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],b=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=new Array(2*(m+2));a(te);var N=new Array(2*p);a(N);var B=new Array(512);a(B);var y=new Array(256);a(y);var j=new Array(_);a(j);var V,L,D,A=new Array(p);function $(x,I,Z,K,O){this.static_tree=x,this.extra_bits=I,this.extra_base=Z,this.elems=K,this.max_length=O,this.has_stree=x&&x.length}function z(x,I){this.dyn_tree=x,this.max_code=0,this.stat_desc=I}function T(x){return x<256?B[x]:B[256+(x>>>7)]}function ne(x,I){x.pending_buf[x.pending++]=255&I,x.pending_buf[x.pending++]=I>>>8&255}function X(x,I,Z){x.bi_valid>u-Z?(x.bi_buf|=I<<x.bi_valid&65535,ne(x,x.bi_buf),x.bi_buf=I>>u-x.bi_valid,x.bi_valid+=Z-u):(x.bi_buf|=I<<x.bi_valid&65535,x.bi_valid+=Z)}function G(x,I,Z){X(x,Z[2*I],Z[2*I+1])}function oe(x,I){for(var Z=0;Z|=1&x,x>>>=1,Z<<=1,0<--I;);return Z>>>1}function de(x,I,Z){var K,O,Y=new Array(k+1),q=0;for(K=1;K<=k;K++)Y[K]=q=q+Z[K-1]<<1;for(O=0;O<=I;O++){var J=x[2*O+1];J!==0&&(x[2*O]=oe(Y[J]++,J))}}function ie(x){var I;for(I=0;I<m;I++)x.dyn_ltree[2*I]=0;for(I=0;I<p;I++)x.dyn_dtree[2*I]=0;for(I=0;I<w;I++)x.bl_tree[2*I]=0;x.dyn_ltree[2*g]=1,x.opt_len=x.static_len=0,x.last_lit=x.matches=0}function le(x){8<x.bi_valid?ne(x,x.bi_buf):0<x.bi_valid&&(x.pending_buf[x.pending++]=x.bi_buf),x.bi_buf=0,x.bi_valid=0}function Pe(x,I,Z,K){var O=2*I,Y=2*Z;return x[O]<x[Y]||x[O]===x[Y]&&K[I]<=K[Z]}function Se(x,I,Z){for(var K=x.heap[Z],O=Z<<1;O<=x.heap_len&&(O<x.heap_len&&Pe(I,x.heap[O+1],x.heap[O],x.depth)&&O++,!Pe(I,K,x.heap[O],x.depth));)x.heap[Z]=x.heap[O],Z=O,O<<=1;x.heap[Z]=K}function wt(x,I,Z){var K,O,Y,q,J=0;if(x.last_lit!==0)for(;K=x.pending_buf[x.d_buf+2*J]<<8|x.pending_buf[x.d_buf+2*J+1],O=x.pending_buf[x.l_buf+J],J++,K===0?G(x,O,I):(G(x,(Y=y[O])+v+1,I),(q=P[Y])!==0&&X(x,O-=j[Y],q),G(x,Y=T(--K),Z),(q=b[Y])!==0&&X(x,K-=A[Y],q)),J<x.last_lit;);G(x,g,I)}function ft(x,I){var Z,K,O,Y=I.dyn_tree,q=I.stat_desc.static_tree,J=I.stat_desc.has_stree,re=I.stat_desc.elems,pe=-1;for(x.heap_len=0,x.heap_max=h,Z=0;Z<re;Z++)Y[2*Z]!==0?(x.heap[++x.heap_len]=pe=Z,x.depth[Z]=0):Y[2*Z+1]=0;for(;x.heap_len<2;)Y[2*(O=x.heap[++x.heap_len]=pe<2?++pe:0)]=1,x.depth[O]=0,x.opt_len--,J&&(x.static_len-=q[2*O+1]);for(I.max_code=pe,Z=x.heap_len>>1;1<=Z;Z--)Se(x,Y,Z);for(O=re;Z=x.heap[1],x.heap[1]=x.heap[x.heap_len--],Se(x,Y,1),K=x.heap[1],x.heap[--x.heap_max]=Z,x.heap[--x.heap_max]=K,Y[2*O]=Y[2*Z]+Y[2*K],x.depth[O]=(x.depth[Z]>=x.depth[K]?x.depth[Z]:x.depth[K])+1,Y[2*Z+1]=Y[2*K+1]=O,x.heap[1]=O++,Se(x,Y,1),2<=x.heap_len;);x.heap[--x.heap_max]=x.heap[1],function(ae,rt){var dr,_t,hr,Ee,gi,Zo,Tt=rt.dyn_tree,ya=rt.max_code,Dd=rt.stat_desc.static_tree,bd=rt.stat_desc.has_stree,Fd=rt.stat_desc.extra_bits,wa=rt.stat_desc.extra_base,pr=rt.stat_desc.max_length,vi=0;for(Ee=0;Ee<=k;Ee++)ae.bl_count[Ee]=0;for(Tt[2*ae.heap[ae.heap_max]+1]=0,dr=ae.heap_max+1;dr<h;dr++)pr<(Ee=Tt[2*Tt[2*(_t=ae.heap[dr])+1]+1]+1)&&(Ee=pr,vi++),Tt[2*_t+1]=Ee,ya<_t||(ae.bl_count[Ee]++,gi=0,wa<=_t&&(gi=Fd[_t-wa]),Zo=Tt[2*_t],ae.opt_len+=Zo*(Ee+gi),bd&&(ae.static_len+=Zo*(Dd[2*_t+1]+gi)));if(vi!==0){do{for(Ee=pr-1;ae.bl_count[Ee]===0;)Ee--;ae.bl_count[Ee]--,ae.bl_count[Ee+1]+=2,ae.bl_count[pr]--,vi-=2}while(0<vi);for(Ee=pr;Ee!==0;Ee--)for(_t=ae.bl_count[Ee];_t!==0;)ya<(hr=ae.heap[--dr])||(Tt[2*hr+1]!==Ee&&(ae.opt_len+=(Ee-Tt[2*hr+1])*Tt[2*hr],Tt[2*hr+1]=Ee),_t--)}}(x,I),de(Y,pe,x.bl_count)}function d(x,I,Z){var K,O,Y=-1,q=I[1],J=0,re=7,pe=4;for(q===0&&(re=138,pe=3),I[2*(Z+1)+1]=65535,K=0;K<=Z;K++)O=q,q=I[2*(K+1)+1],++J<re&&O===q||(J<pe?x.bl_tree[2*O]+=J:O!==0?(O!==Y&&x.bl_tree[2*O]++,x.bl_tree[2*S]++):J<=10?x.bl_tree[2*C]++:x.bl_tree[2*R]++,Y=O,pe=(J=0)===q?(re=138,3):O===q?(re=6,3):(re=7,4))}function H(x,I,Z){var K,O,Y=-1,q=I[1],J=0,re=7,pe=4;for(q===0&&(re=138,pe=3),K=0;K<=Z;K++)if(O=q,q=I[2*(K+1)+1],!(++J<re&&O===q)){if(J<pe)for(;G(x,O,x.bl_tree),--J!=0;);else O!==0?(O!==Y&&(G(x,O,x.bl_tree),J--),G(x,S,x.bl_tree),X(x,J-3,2)):J<=10?(G(x,C,x.bl_tree),X(x,J-3,3)):(G(x,R,x.bl_tree),X(x,J-11,7));Y=O,pe=(J=0)===q?(re=138,3):O===q?(re=6,3):(re=7,4)}}a(A);var U=!1;function E(x,I,Z,K){X(x,(f<<1)+(K?1:0),3),function(O,Y,q,J){le(O),ne(O,q),ne(O,~q),o.arraySet(O.pending_buf,O.window,Y,q,O.pending),O.pending+=q}(x,I,Z)}i._tr_init=function(x){U||(function(){var I,Z,K,O,Y,q=new Array(k+1);for(O=K=0;O<_-1;O++)for(j[O]=K,I=0;I<1<<P[O];I++)y[K++]=O;for(y[K-1]=O,O=Y=0;O<16;O++)for(A[O]=Y,I=0;I<1<<b[O];I++)B[Y++]=O;for(Y>>=7;O<p;O++)for(A[O]=Y<<7,I=0;I<1<<b[O]-7;I++)B[256+Y++]=O;for(Z=0;Z<=k;Z++)q[Z]=0;for(I=0;I<=143;)te[2*I+1]=8,I++,q[8]++;for(;I<=255;)te[2*I+1]=9,I++,q[9]++;for(;I<=279;)te[2*I+1]=7,I++,q[7]++;for(;I<=287;)te[2*I+1]=8,I++,q[8]++;for(de(te,m+1,q),I=0;I<p;I++)N[2*I+1]=5,N[2*I]=oe(I,5);V=new $(te,P,v+1,m,k),L=new $(N,b,0,p,k),D=new $(new Array(0),F,0,w,c)}(),U=!0),x.l_desc=new z(x.dyn_ltree,V),x.d_desc=new z(x.dyn_dtree,L),x.bl_desc=new z(x.bl_tree,D),x.bi_buf=0,x.bi_valid=0,ie(x)},i._tr_stored_block=E,i._tr_flush_block=function(x,I,Z,K){var O,Y,q=0;0<x.level?(x.strm.data_type===2&&(x.strm.data_type=function(J){var re,pe=4093624447;for(re=0;re<=31;re++,pe>>>=1)if(1&pe&&J.dyn_ltree[2*re]!==0)return s;if(J.dyn_ltree[18]!==0||J.dyn_ltree[20]!==0||J.dyn_ltree[26]!==0)return l;for(re=32;re<v;re++)if(J.dyn_ltree[2*re]!==0)return l;return s}(x)),ft(x,x.l_desc),ft(x,x.d_desc),q=function(J){var re;for(d(J,J.dyn_ltree,J.l_desc.max_code),d(J,J.dyn_dtree,J.d_desc.max_code),ft(J,J.bl_desc),re=w-1;3<=re&&J.bl_tree[2*W[re]+1]===0;re--);return J.opt_len+=3*(re+1)+5+5+4,re}(x),O=x.opt_len+3+7>>>3,(Y=x.static_len+3+7>>>3)<=O&&(O=Y)):O=Y=Z+5,Z+4<=O&&I!==-1?E(x,I,Z,K):x.strategy===4||Y===O?(X(x,2+(K?1:0),3),wt(x,te,N)):(X(x,4+(K?1:0),3),function(J,re,pe,ae){var rt;for(X(J,re-257,5),X(J,pe-1,5),X(J,ae-4,4),rt=0;rt<ae;rt++)X(J,J.bl_tree[2*W[rt]+1],3);H(J,J.dyn_ltree,re-1),H(J,J.dyn_dtree,pe-1)}(x,x.l_desc.max_code+1,x.d_desc.max_code+1,q+1),wt(x,x.dyn_ltree,x.dyn_dtree)),ie(x),K&&le(x)},i._tr_tally=function(x,I,Z){return x.pending_buf[x.d_buf+2*x.last_lit]=I>>>8&255,x.pending_buf[x.d_buf+2*x.last_lit+1]=255&I,x.pending_buf[x.l_buf+x.last_lit]=255&Z,x.last_lit++,I===0?x.dyn_ltree[2*Z]++:(x.matches++,I--,x.dyn_ltree[2*(y[Z]+v+1)]++,x.dyn_dtree[2*T(I)]++),x.last_lit===x.lit_bufsize-1},i._tr_align=function(x){X(x,2,3),G(x,g,te),function(I){I.bi_valid===16?(ne(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):8<=I.bi_valid&&(I.pending_buf[I.pending++]=255&I.bi_buf,I.bi_buf>>=8,I.bi_valid-=8)}(x)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){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}},{}],54:[function(n,r,i){(function(o){(function(s,l){if(!s.setImmediate){var a,f,_,v,m=1,p={},w=!1,h=s.document,k=Object.getPrototypeOf&&Object.getPrototypeOf(s);k=k&&k.setTimeout?k:s,a={}.toString.call(s.process)==="[object process]"?function(S){process.nextTick(function(){c(S)})}:function(){if(s.postMessage&&!s.importScripts){var S=!0,C=s.onmessage;return s.onmessage=function(){S=!1},s.postMessage("","*"),s.onmessage=C,S}}()?(v="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",g,!1):s.attachEvent("onmessage",g),function(S){s.postMessage(v+S,"*")}):s.MessageChannel?((_=new MessageChannel).port1.onmessage=function(S){c(S.data)},function(S){_.port2.postMessage(S)}):h&&"onreadystatechange"in h.createElement("script")?(f=h.documentElement,function(S){var C=h.createElement("script");C.onreadystatechange=function(){c(S),C.onreadystatechange=null,f.removeChild(C),C=null},f.appendChild(C)}):function(S){setTimeout(c,0,S)},k.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var C=new Array(arguments.length-1),R=0;R<C.length;R++)C[R]=arguments[R+1];var P={callback:S,args:C};return p[m]=P,a(m),m++},k.clearImmediate=u}function u(S){delete p[S]}function c(S){if(w)setTimeout(c,0,S);else{var C=p[S];if(C){w=!0;try{(function(R){var P=R.callback,b=R.args;switch(b.length){case 0:P();break;case 1:P(b[0]);break;case 2:P(b[0],b[1]);break;case 3:P(b[0],b[1],b[2]);break;default:P.apply(l,b)}})(C)}finally{u(S),w=!1}}}}function g(S){S.source===s&&typeof S.data=="string"&&S.data.indexOf(v)===0&&c(+S.data.slice(v.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof yi<"u"?yi:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Xf);var Om=Xf.exports;const Lm=Du(Om);function $t(e){return{ok:!1,code:"invalid_type",expected:e}}const Jf=$t([]),qf=$t(["string"]),ed=$t(["number"]),Dm=$t(["bigint"]),td=$t(["boolean"]),nd=$t(["undefined"]),rd=$t(["null"]),bm=$t(["object"]),Fm=$t(["array"]),ha={ok:!1,code:"missing_value"};function Vn(e,t){return e?{ok:!1,code:"join",left:e,right:t}:t}function qn(e,t){return{ok:!1,code:"prepend",key:e,tree:t}}function Um(e,t){var n;const r=e.code;switch(r){case"invalid_type":return{code:r,path:t,expected:e.expected};case"invalid_literal":return{code:r,path:t,expected:e.expected};case"missing_value":return{code:r,path:t};case"invalid_length":return{code:r,path:t,minLength:e.minLength,maxLength:e.maxLength};case"unrecognized_keys":return{code:r,path:t,keys:e.keys};case"invalid_union":return{code:r,path:t,tree:e.tree,issues:Mo(e.tree)};case"custom_error":return typeof e.error=="object"&&e.error.path!==void 0&&t.push(...e.error.path),{code:r,path:t,message:typeof e.error=="string"?e.error:(n=e.error)===null||n===void 0?void 0:n.message,error:e.error}}}function Mo(e,t=[],n=[]){for(;;)if(e.code==="join")Mo(e.left,t.slice(),n),e=e.right;else if(e.code==="prepend")t.push(e.key),e=e.tree;else return n.push(Um(e,t)),n}function ws(e,t){return e.length===0?"nothing":e.length===1?e[0]:`${e.slice(0,-1).join(", ")} ${t} ${e[e.length-1]}`}function ju(e){return typeof e=="bigint"?`${e}n`:JSON.stringify(e)}function id(e){let t=0;for(;;)if(e.code==="join")t+=id(e.left),e=e.right;else if(e.code==="prepend")e=e.tree;else return t+1}function od(e){let t="",n=0;for(;;)if(e.code==="join")n+=id(e.right),e=e.left;else if(e.code==="prepend")t+=`.${e.key}`,e=e.tree;else break;let r="validation failed";if(e.code==="invalid_type")r=`expected ${ws(e.expected,"or")}`;else if(e.code==="invalid_literal")r=`expected ${ws(e.expected.map(ju),"or")}`;else if(e.code==="missing_value")r="missing value";else if(e.code==="unrecognized_keys"){const o=e.keys;r=`unrecognized ${o.length===1?"key":"keys"} ${ws(o.map(ju),"and")}`}else if(e.code==="invalid_length"){const o=e.minLength,s=e.maxLength;r="expected an array with ",o>0?s===o?r+=`${o}`:s!==void 0?r+=`between ${o} and ${s}`:r+=`at least ${o}`:r+=`at most ${s??"∞"}`,r+=" item(s)"}else if(e.code==="custom_error"){const o=e.error;typeof o=="string"?r=o:o!==void 0&&(o.message!==void 0&&(r=o.message),o.path!==void 0&&(t+="."+o.path.join(".")))}let i=`${e.code} at .${t.slice(1)} (${r})`;return n===1?i+=" (+ 1 other issue)":n>1&&(i+=` (+ ${n} other issues)`),i}function Ut(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:r,writable:!1}),n}class sd extends Error{constructor(t){super(od(t)),Object.setPrototypeOf(this,new.target.prototype),this.name=new.target.name,this._issueTree=t}get issues(){return Ut(this,"issues",Mo(this._issueTree),!0)}}class ld{constructor(t){this.ok=!1,this._issueTree=t}get issues(){return Ut(this,"issues",Mo(this._issueTree),!0)}get message(){return Ut(this,"message",od(this._issueTree),!0)}throw(){throw new sd(this._issueTree)}}function xn(e){return{ok:!0,value:e}}function Ur(e){return new ld({ok:!1,code:"custom_error",error:e})}function ad(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const wn=1,ii=2,Bo=4,ud=0,Mm=1,cd=2,fd=3,Bm=4,dd=5,hd=6,pd=7,md=8,gd=9,vd=10,yd=11,wd=12,_d=13,kd=14,Mt=(e,t)=>({tag:e,match:t});function Je(e,t,n){switch(e.tag){case ud:return;case Mm:return Jf;case cd:return typeof t=="string"?void 0:qf;case fd:return typeof t=="number"?void 0:ed;case Bm:return typeof t=="bigint"?void 0:Dm;case dd:return typeof t=="boolean"?void 0:td;case hd:return t===null?void 0:rd;case pd:return t===void 0?void 0:nd;case md:return e.match(t,n);case gd:return e.match(t,n);case vd:return e.match(t,n);case yd:return e.match(t,n);case wd:return e.match(t,n);case _d:return e.match(t,n);case kd:return e.match(t,n);default:return e.match(t,n)}}const ce=Symbol.for("@valita/internal");class xd{default(t){const n=xn(t);return new Ct(this.optional(),r=>r===void 0?n:void 0)}assert(t,n){const r={ok:!1,code:"custom_error",error:n};return new Ct(this,(i,o)=>t(i,_s(o))?void 0:r)}map(t){return new Ct(this,(n,r)=>({ok:!0,value:t(n,_s(r))}))}chain(t){return typeof t=="function"?new Ct(this,(n,r)=>{const i=t(n,_s(r));return i.ok?i:i._issueTree}):new Ct(this,(n,r)=>Je(t[ce],n,r))}}class In extends xd{optional(t){const n=new Wm(this);return t?new Ct(n,r=>r===void 0?{ok:!0,value:t()}:void 0):n}nullable(t){const n=new $m([qm(),this]);return t?new Ct(n,r=>r===null?{ok:!0,value:t()}:void 0):n}_toTerminals(t){t(this)}try(t,n){const r=Je(this[ce],t,n===void 0?wn:n.mode==="strip"?ii:n.mode==="passthrough"?0:wn);return r===void 0||r.ok?{ok:!0,value:r===void 0?t:r.value}:new ld(r)}parse(t,n){const r=Je(this[ce],t,n===void 0?wn:n.mode==="strip"?ii:n.mode==="passthrough"?0:wn);if(r===void 0||r.ok)return r===void 0?t:r.value;throw new sd(r)}}class $m extends In{constructor(t){super(),this.name="union",this.options=t}get[ce](){const t=this.options.map(n=>n[ce]);return Ut(this,ce,Mt(_d,(n,r)=>{let i=Jf;for(const o of t){const s=Je(o,n,r);if(s===void 0||s.ok)return s;i=s}return i}),!1)}_toTerminals(t){for(const n of this.options)n._toTerminals(t)}}class Wm extends xd{constructor(t){super(),this.name="optional",this.type=t}optional(t){return t?new Ct(this,n=>n===void 0?{ok:!0,value:t()}:void 0):this}get[ce](){const t=this.type[ce];return Ut(this,ce,Mt(gd,(n,r)=>n===void 0||r&Bo?void 0:Je(t,n,r)),!1)}_toTerminals(t){t(this),t(e0()),this.type._toTerminals(t)}}function Sd(e,t){if(typeof e!="number"){const n=t>>5;for(let r=e.length;r<=n;r++)e.push(0);return e[n]|=1<<t%32,e}else return t<32?e|1<<t:Sd([e,0],t)}function Sr(e,t){return typeof e=="number"?t<32?e>>>t&1:0:e[t>>5]>>>t%32&1}class Rt extends In{constructor(t,n,r){super(),this.name="object",this.shape=t,this._restType=n,this._checks=r}get[ce](){const t=Hm(this.shape,this._restType,this._checks);return Ut(this,ce,Mt(vd,(n,r)=>ad(n)?t(n,r):bm),!1)}check(t,n){var r;const i={ok:!1,code:"custom_error",error:n};return new Rt(this.shape,this._restType,[...(r=this._checks)!==null&&r!==void 0?r:[],{func:t,issue:i}])}rest(t){return new Rt(this.shape,t)}extend(t){return new Rt(Object.assign(Object.assign({},this.shape),t),this._restType)}pick(...t){const n={};for(const r of t)it(n,r,this.shape[r]);return new Rt(n,void 0)}omit(...t){const n=Object.assign({},this.shape);for(const r of t)delete n[r];return new Rt(n,this._restType)}partial(){var t;const n={};for(const i of Object.keys(this.shape))it(n,i,this.shape[i].optional());const r=(t=this._restType)===null||t===void 0?void 0:t.optional();return new Rt(n,r)}}function it(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function Hm(e,t,n){const r=Object.keys(e).map((l,a)=>{const f=e[l];let _=!1;return f._toTerminals(v=>{_||(_=v.name==="optional")}),{key:l,index:a,matcher:f[ce],optional:_,missing:qn(l,ha)}}),i=Object.create(null);for(const l of r)i[l.key]=l;const o=t==null?void 0:t[ce],s=r.length===0&&(t==null?void 0:t.name)==="unknown"&&n===void 0;return(l,a)=>{if(s)return;let f,_,v,m=0,p=0;if(a&(wn|ii)||o!==void 0)for(const w in l){const h=l[w],k=i[w];if(k===void 0&&o===void 0){if(a&wn)v===void 0?(v=[w],_=Vn(_,{ok:!1,code:"unrecognized_keys",keys:v})):v.push(w);else if(a&ii&&_===void 0&&f===void 0){f={};for(let c=0;c<r.length;c++)if(Sr(m,c)){const g=r[c].key;it(f,g,l[g])}}continue}const u=Je(k===void 0?o:k.matcher,h,a);if(u===void 0)f!==void 0&&_===void 0&&it(f,w,h);else if(!u.ok)_=Vn(_,qn(w,u));else if(_===void 0){if(f===void 0)if(f={},o===void 0){for(let c=0;c<r.length;c++)if(Sr(m,c)){const g=r[c].key;it(f,g,l[g])}}else for(const c in l)it(f,c,l[c]);it(f,w,u.value)}k!==void 0&&(p++,m=Sd(m,k.index))}if(p<r.length)for(let w=0;w<r.length;w++){if(Sr(m,w))continue;const h=r[w],k=l[h.key];let u=0;if(k===void 0&&!(h.key in l)){if(!h.optional){_=Vn(_,h.missing);continue}u=Bo}const c=Je(h.matcher,k,a|u);if(c===void 0)f!==void 0&&_===void 0&&!u&&it(f,h.key,k);else if(!c.ok)_=Vn(_,qn(h.key,c));else if(_===void 0){if(f===void 0)if(f={},o===void 0){for(let g=0;g<r.length;g++)if(g<w||Sr(m,g)){const S=r[g].key;it(f,S,l[S])}}else{for(const g in l)it(f,g,l[g]);for(let g=0;g<w;g++)if(!Sr(m,g)){const S=r[g].key;it(f,S,l[S])}}it(f,h.key,c.value)}}if(_!==void 0)return _;if(n!==void 0){for(const{func:w,issue:h}of n)if(!w(f??l))return h}return f&&{ok:!0,value:f}}}class er extends In{constructor(t,n,r){super(),this.name="array",this._prefix=t,this._rest=n,this._suffix=r}get[ce](){var t,n;const r=this._prefix.map(f=>f[ce]),i=this._suffix.map(f=>f[ce]),o=(n=(t=this._rest)===null||t===void 0?void 0:t[ce])!==null&&n!==void 0?n:Mt(1,()=>ha),s=r.length+i.length,l=this._rest?1/0:s,a={ok:!1,code:"invalid_length",minLength:s,maxLength:l===1/0?void 0:l};return Ut(this,ce,Mt(yd,(f,_)=>{if(!Array.isArray(f))return Fm;const v=f.length;if(v<s||v>l)return a;const m=r.length,p=f.length-i.length;let w,h=f;for(let k=0;k<f.length;k++){const u=k<m?r[k]:k>=p?i[k-p]:o,c=Je(u,f[k],_);c!==void 0&&(c.ok?(h===f&&(h=f.slice()),h[k]=c.value):w=Vn(w,qn(k,c)))}return w||(f===h?void 0:{ok:!0,value:h})}),!1)}concat(t){if(this._rest){if(t._rest)throw new TypeError("can not concatenate two variadic types");return new er(this._prefix,this._rest,[...this._suffix,...t._prefix,...t._suffix])}else return t._rest?new er([...this._prefix,...this._suffix,...t._prefix],t._rest,t._suffix):new er([...this._prefix,...this._suffix,...t._prefix,...t._suffix],t._rest,t._suffix)}}function xo(e){const t=typeof e;return t!=="object"?t:e===null?"null":Array.isArray(e)?"array":t}function Er(e){return[...new Set(e)]}function Ed(e){var t,n,r;const i=new Map,o=new Map,s=new Map,l=[],a=[],f=[];for(const{root:v,terminal:m}of e)if(i.set(v,(t=i.get(v))!==null&&t!==void 0?t:i.size),m.name!=="never")if(m.name==="optional")a.push(v);else if(m.name==="unknown")l.push(v);else if(m.name==="literal"){const p=(n=o.get(m.value))!==null&&n!==void 0?n:[];p.push(v),o.set(m.value,p),f.push(xo(m.value))}else{const p=(r=s.get(m.name))!==null&&r!==void 0?r:[];p.push(v),s.set(m.name,p),f.push(m.name)}const _=(v,m)=>{var p,w;return((p=i.get(v))!==null&&p!==void 0?p:0)-((w=i.get(m))!==null&&w!==void 0?w:0)};for(const[v,m]of o){const p=s.get(xo(v));p?(p.push(...m),o.delete(v)):o.set(v,Er(m.concat(l)).sort(_))}for(const[v,m]of s)s.set(v,Er(m.concat(l)).sort(_));return{types:s,literals:o,unknowns:Er(l).sort(_),optionals:Er(a).sort(_),expectedTypes:Er(f)}}function Vm(e,t){var n;const r=[];for(const{root:w,terminal:h}of e)h.shape[t]._toTerminals(k=>r.push({root:w,terminal:k}));const{types:i,literals:o,optionals:s,unknowns:l,expectedTypes:a}=Ed(r);if(l.length>0||s.length>1)return;for(const w of o.values())if(w.length>1)return;for(const w of i.values())if(w.length>1)return;const f=qn(t,ha),_=qn(t,i.size===0?{ok:!1,code:"invalid_literal",expected:[...o.keys()]}:{ok:!1,code:"invalid_type",expected:a}),v=o.size>0?new Map:void 0;if(v)for(const[w,h]of o)v.set(w,h[0][ce]);const m=i.size>0?{}:void 0;if(m)for(const[w,h]of i)m[w]=h[0][ce];const p=(n=s[0])===null||n===void 0?void 0:n[ce];return(w,h)=>{var k;const u=w[t];if(u===void 0&&!(t in w))return p===void 0?f:Je(p,w,h);const c=(k=m==null?void 0:m[xo(u)])!==null&&k!==void 0?k:v==null?void 0:v.get(u);return c?Je(c,w,h):_}}function Zm(e){var t;const n=[],r=new Map;for(const{root:i,terminal:o}of e){if(o.name==="unknown")return;if(o.name==="object"){for(const s in o.shape)r.set(s,((t=r.get(s))!==null&&t!==void 0?t:0)+1);n.push({root:i,terminal:o})}}if(!(n.length<2)){for(const[i,o]of r)if(o===n.length){const s=Vm(n,i);if(s)return s}}}function Gm(e){const{expectedTypes:t,literals:n,types:r,unknowns:i,optionals:o}=Ed(e),s=r.size===0&&i.length===0?{ok:!1,code:"invalid_literal",expected:[...n.keys()]}:{ok:!1,code:"invalid_type",expected:t},l=n.size>0?new Map:void 0;if(l)for(const[v,m]of n)l.set(v,m.map(p=>p[ce]));const a=r.size>0?{}:void 0;if(a)for(const[v,m]of r)a[v]=m.map(p=>p[ce]);const f=o.map(v=>v[ce]),_=i.map(v=>v[ce]);return(v,m)=>{var p,w;const h=m&Bo?f:(w=(p=a==null?void 0:a[xo(v)])!==null&&p!==void 0?p:l==null?void 0:l.get(v))!==null&&w!==void 0?w:_;let k=0,u=s;for(let c=0;c<h.length;c++){const g=Je(h[c],v,m);if(g===void 0||g.ok)return g;u=k>0?Vn(u,g):g,k++}return k>1?{ok:!1,code:"invalid_union",tree:u}:u}}class Km extends In{constructor(t){super(),this.name="union",this.options=t}_toTerminals(t){for(const n of this.options)n._toTerminals(t)}get[ce](){const t=[];for(const i of this.options)i._toTerminals(o=>{t.push({root:i,terminal:o})});const n=Gm(t),r=Zm(t);return Ut(this,ce,Mt(wd,(i,o)=>r!==void 0&&ad(i)?r(i,o):n(i,o)),!1)}}const Qm=Object.freeze({mode:"strict"}),Ym=Object.freeze({mode:"strip"}),Xm=Object.freeze({mode:"passthrough"});function _s(e){return e&wn?Qm:e&ii?Ym:Xm}class Ct extends In{constructor(t,n){super(),this.name="transform",this._transformed=t,this._transform=n}get[ce](){const t=[];let n=this;for(;n instanceof Ct;)t.push(n._transform),n=n._transformed;t.reverse();const r=n[ce],i=xn(void 0);return Ut(this,ce,Mt(kd,(o,s)=>{let l=Je(r,o,s);if(l!==void 0&&!l.ok)return l;let a;l!==void 0?a=l.value:s&Bo?(a=void 0,l=i):a=o;for(let f=0;f<t.length;f++){const _=t[f](a,s);if(_!==void 0){if(!_.ok)return _;a=_.value,l=_}}return l}),!1)}_toTerminals(t){this._transformed._toTerminals(t)}}function fr(e,t,n){const r=Mt(t,n);class i extends In{constructor(){super(),this.name=e,this[ce]=r}}const o=new i;return()=>o}const Cd=fr("unknown",ud,()=>{}),et=fr("string",cd,e=>typeof e=="string"?void 0:qf),Jm=fr("number",fd,e=>typeof e=="number"?void 0:ed),Cr=fr("boolean",dd,e=>typeof e=="boolean"?void 0:td),qm=fr("null",hd,e=>e===null?void 0:rd),e0=fr("undefined",pd,e=>e===void 0?void 0:nd);class t0 extends In{constructor(t){super(),this.name="literal";const n={ok:!1,code:"invalid_literal",expected:[t]};this[ce]=Mt(md,r=>r===t?void 0:n),this.value=t}}const Nd=e=>new t0(e),Rn=e=>new Rt(e,void 0),ml=e=>new Rt({},e??Cd()),St=e=>new er([],e??Cd(),[]),n0=e=>new er(e,void 0,[]),Mr=(...e)=>new Km(e),r0=/^did:([a-z]+):([a-zA-Z0-9._:%\-]*[a-zA-Z0-9._\-])$/,i0=e=>typeof e=="string"&&e.length>=7&&e.length<=2048&&r0.test(e),o0=/^#[^#]+$/,s0=/^z[a-km-zA-HJ-NP-Z1-9]+$/,Zn=et().assert(e=>URL.canParse(e),"must be a url"),pa=et().assert(e=>o0.test(e)||URL.canParse(e),"must be a did relative uri"),l0=et().assert(e=>s0.test(e),"must be a base58 multibase"),Yi=et().assert(i0,"must be a did"),Ou=Rn({id:pa,type:et(),controller:Yi,publicKeyMultibase:l0.optional(),publicKeyJwk:ml().optional()}).chain(e=>{switch(e.type){case"Multikey":{if(e.publicKeyMultibase===void 0)return Ur({message:"missing multikey",path:["publicKeyMultibase"]});break}case"EcdsaSecp256k1VerificationKey2019":case"EcdsaSecp256r1VerificationKey2019":{if(e.publicKeyMultibase===void 0)return Ur({message:"missing multibase key",path:["publicKeyMultibase"]});break}}return xn(e)}),a0=Rn({id:pa,type:Mr(et(),St(et())),serviceEndpoint:Mr(Zn,ml(Zn),St(Mr(Zn,ml(Zn))))}),u0=Rn({"@context":St(Zn),id:Yi,alsoKnownAs:St(Zn).chain(e=>{for(let t=0,n=e.length;t<n;t++){const r=e[t];for(let i=0;i<t;i++)if(r===e[i])return Ur({message:`duplicate "${r}" aka entry`,path:[t]})}return xn(e)}).optional(),verificationMethod:St(Ou).chain(e=>{for(let t=0,n=e.length;t<n;t++){const i=e[t].id;for(let o=0;o<t;o++)if(i===e[o].id)return Ur({message:`duplicate "${i}" verification method`,path:[t,"id"]})}return xn(e)}).optional(),service:St(a0).optional(),controller:Mr(Yi,St(Yi)).optional(),authentication:St(Mr(pa,Ou)).optional()}).chain(e=>{const{id:t,service:n}=e;if(n!=null&&n.length){const r=n.length,i=new Array(r);for(let o=0;o<r;o++){let l=n[o].id;l[0]==="#"&&(l=t+l),i[o]=l}for(let o=0;o<r;o++){const s=i[o];for(let l=0;l<o;l++)if(s===i[l])return Ur({message:`duplicate "${s}" service`,path:["service",o,"id"]})}}return xn(e)}),c0=/^did:plc:([a-z2-7]{24})$/,f0=e=>e.length===32&&c0.test(e),d0=/^did:web:([a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*(?:\.[a-zA-Z]{2,})|localhost(?:%3[aA]\d+)?)$/,h0=e=>e.length>=12&&d0.test(e),zd=e=>f0(e)||h0(e),p0=e=>{const t=e.indexOf(":",4);return e.slice(4,t)};class $o extends Error{constructor(){super(...arguments);fe(this,"name","DidResolutionError")}}class ma extends $o{constructor(n){super(`unsupported did method; did=${n}`);fe(this,"did");fe(this,"name","UnsupportedDidMethodError");this.did=n}}class m0 extends $o{constructor(n){super(`improper did; did=${n}`);fe(this,"did");fe(this,"name","ImproperDidError");this.did=n}}class Td extends $o{constructor(n){super(`did document not found; did=${n}`);fe(this,"did");fe(this,"name","DocumentNotFoundError");this.did=n}}class Pd extends $o{constructor(n,r){super(`failed to resolve did document; did=${n}`,r);fe(this,"did");fe(this,"name","FailedDocumentResolutionError");this.did=n}}class Wo extends Error{constructor(){super(...arguments);fe(this,"name","HandleResolutionError")}}class gl extends Wo{constructor(n){super(`handle returned no did; handle=${n}`);fe(this,"handle");fe(this,"name","DidNotFoundError");this.handle=n}}class vl extends Wo{constructor(n,r){super(`failed to resolve handle; handle=${n}`,r);fe(this,"handle");fe(this,"name","FailedHandleResolutionError");this.handle=n}}class Id extends Wo{constructor(n,r){super(`handle returned invalid did; handle=${n}; did=${r}`);fe(this,"handle");fe(this,"did");fe(this,"name","InvalidResolvedHandleError");this.handle=n,this.did=r}}class Rd extends Wo{constructor(n){super(`handle returned multiple did values; handle=${n}`);fe(this,"name","AmbiguousHandleError")}}var oi;class g0{constructor({methods:t}){dn(this,oi);hn(this,oi,new Map(Object.entries(t)))}async resolve(t,n){const r=p0(t),i=fn(this,oi).get(r);if(i===void 0)throw new ma(t);return await i.resolve(t,n)}}oi=new WeakMap;class Ho extends Error{constructor(){super(...arguments);fe(this,"name","FetchResponseError")}}class Vo extends Ho{constructor(n,r){super(r);fe(this,"status");fe(this,"name","FailedResponseError");this.status=n}}class Lu extends Ho{constructor(n,r){super(r);fe(this,"contentType");fe(this,"name","ImproperContentTypeError");this.contentType=n}}class yl extends Ho{constructor(n,r,i){super(i);fe(this,"expectedSize");fe(this,"actualSize");fe(this,"name","ImproperContentLengthError");this.expectedSize=n,this.actualSize=r}}class v0 extends Ho{constructor(n,r){super(n,r);fe(this,"name","ImproperResponseError")}}function ga(...e){return e.reduce(y0)}const y0=(e,t)=>n=>e(n).then(t);class w0 extends TransformStream{constructor(t){let n=0;super({transform(r,i){if(n+=r.length,n>t){i.error(new yl(t,n,"response content-length too large"));return}i.enqueue(r)}})}}const va=async e=>{if(e.ok)return e;throw e.body&&await e.body.cancel(),new Vo(e.status,`got http ${e.status}`)},_0=e=>async t=>{const n=await Od(t,e);return{response:t,text:n}},Ad=(e,t)=>async n=>{await k0(n,e);const r=await Od(n,t);try{const i=JSON.parse(r);return{response:n,json:i}}catch(i){throw new v0("unexpected json data",{cause:i})}},jd=(e,t)=>async n=>{const r=e.parse(n.json,t);return{response:n.response,json:r}},k0=async(e,t)=>{var r;const n=(r=e.headers.get("content-type"))==null?void 0:r.split(";",1)[0].trim();if(n===void 0)throw e.body&&await e.body.cancel(),new Lu(null,"missing response content-type");if(!t.test(n))throw e.body&&await e.body.cancel(),new Lu(n,"unexpected response content-type")},Od=async(e,t)=>{var o,s;const n=e.headers.get("content-length");if(n!==null){const l=Number(n);if(!Number.isSafeInteger(l)||l<=0)throw(o=e.body)==null||o.cancel(),new yl(t,null,"invalid response content-length");if(l>t)throw(s=e.body)==null||s.cancel(),new yl(t,l,"response content-length too large")}const r=e.body.pipeThrough(new w0(t)).pipeThrough(new TextDecoderStream);let i="";for await(const l of x0(r))i+=l;return i},x0=Symbol.asyncIterator in ReadableStream.prototype?e=>e[Symbol.asyncIterator]():e=>{const t=e.getReader();return{[Symbol.asyncIterator](){return this},next(){return t.read()},async return(){return await t.cancel(),{done:!0,value:void 0}},async throw(n){return await t.cancel(n),{done:!0,value:void 0}}}},Ld=ga(va,Ad(/^application\/(did\+ld\+)?json$/,20*1024),jd(u0,{mode:"passthrough"}));var si;class S0{constructor({apiUrl:t="https://plc.directory",fetch:n=fetch}={}){fe(this,"apiUrl");dn(this,si);this.apiUrl=t,hn(this,si,n)}async resolve(t,n){if(!t.startsWith("did:plc:"))throw new ma(t);let r;try{const i=new URL(`/${encodeURIComponent(t)}`,this.apiUrl),o=await fn(this,si)(i,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,redirect:"manual",headers:{accept:"application/did+ld+json,application/json"}});if(o.status>=300&&o.status<400)throw new TypeError("unexpected redirect");r=(await Ld(o)).json}catch(i){throw i instanceof Vo&&i.status===404?new Td(t):new Pd(t,{cause:i})}return r}}si=new WeakMap;var li;class E0{constructor({fetch:t=fetch}={}){dn(this,li);hn(this,li,t)}async resolve(t,n){if(!t.startsWith("did:web:"))throw new ma(t);const[r,...i]=t.slice(8).split(":").map(decodeURIComponent),o=new URL(`https://${r}/.well-known/did.json`);if(i.length>0)throw new m0(t);let s;try{const l=await fn(this,li)(o,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,redirect:"manual",headers:{accept:"application/did+ld+json,application/json"}});if(l.status>=300&&l.status<400)throw new TypeError("unexpected redirect");s=(await Ld(l)).json}catch(l){throw l instanceof Vo&&l.status===404?new Td(t):new Pd(t,{cause:l})}return s}}li=new WeakMap;var ai;class C0{constructor({methods:t,strategy:n="race"}){dn(this,ai);fe(this,"strategy");hn(this,ai,t),this.strategy=n}async resolve(t,n){const{http:r,dns:i}=fn(this,ai),o=n==null?void 0:n.signal,s=new AbortController;o&&o.addEventListener("abort",()=>s.abort(),{signal:s.signal});const l=i.resolve(t,{...n,signal:s.signal}),a=r.resolve(t,{...n,signal:s.signal});switch(this.strategy){case"race":return new Promise(f=>{l.then(_=>{s.abort(),f(_)},()=>f(a)),a.then(_=>{s.abort(),f(_)},()=>f(l))});case"dns-first":{a.catch(bi);const f=await l.catch(bi);return f?(s.abort(),f):a}case"http-first":{l.catch(bi);const f=await a.catch(bi);return f?(s.abort(),f):l}case"both":{const[f,_]=await Promise.allSettled([l,a]),v=f.status==="fulfilled"?f.value:void 0,m=_.status==="fulfilled"?_.value:void 0;if(v&&m&&v!==m)throw new Rd(t);return v||m||l}}}}ai=new WeakMap;const bi=()=>{},So=Jm().assert(e=>Number.isInteger(e)&&e>=0&&e<=2**32-1),N0=Rn({name:et(),type:Nd(16)}),z0=Rn({name:et(),type:Nd(16),TTL:So,data:et().chain(e=>xn(e.replace(/^"|"$/g,"").replace(/\\"/g,'"')))}),T0=Rn({name:et(),type:So,TTL:So,data:et()}),P0=Rn({Status:So,TC:Cr(),RD:Cr(),RA:Cr(),AD:Cr(),CD:Cr(),Question:n0([N0]),Answer:St(z0).optional(()=>[]),Authority:St(T0).optional(),Comment:et().optional()}),I0="_atproto",ks="did=",R0=ga(va,Ad(/^application\/(dns-)?json$/,16*1024),jd(P0,{mode:"passthrough"}));var ui;class A0{constructor({dohUrl:t,fetch:n=fetch}){fe(this,"dohUrl");dn(this,ui);this.dohUrl=t,hn(this,ui,n)}async resolve(t,n){let r;try{const s=new URL(this.dohUrl);s.searchParams.set("name",`${I0}.${t}`),s.searchParams.set("type","TXT");const l=await fn(this,ui)(s,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,headers:{accept:"application/dns-json"}});r=(await R0(l)).json}catch(s){throw new vl(t,{cause:s})}const i=r.Status,o=r.Answer;if(i!==0)throw i===3?new gl(t):new vl(t,{cause:new TypeError(`dns returned ${i}`)});for(let s=0,l=o.length;s<l;s++){const f=o[s].data;if(!f.startsWith(ks))continue;for(let v=s+1;v<l;v++)if(o[v].data.startsWith(ks))throw new Rd(t);const _=f.slice(ks.length);if(!zd(_))throw new Id(t,_);return _}throw new gl(t)}}ui=new WeakMap;const j0=ga(va,_0(2064));var ci;class O0{constructor({fetch:t=fetch}={}){dn(this,ci);hn(this,ci,t)}async resolve(t,n){let r;try{const o=new URL("/.well-known/atproto-did",`https://${t}`),s=await fn(this,ci)(o,{signal:n==null?void 0:n.signal,cache:n!=null&&n.noCache?"no-cache":void 0,redirect:"manual"});if(s.status>=300&&s.status<400)throw new TypeError("unexpected redirect");r=(await j0(s)).text}catch(o){throw o instanceof Vo&&o.status===404?new gl(t):new vl(t,{cause:o})}const i=r.split(` 112 - `)[0].trim();if(!zd(i))throw new Id(t,i);return i}}ci=new WeakMap;function L0({matches:e,selectedDids:t,onToggleSelection:n}){const[r,i]=Ie.useState(0),o=e[r],s=e.length>1,l=r>0,a=r<e.length-1,f=()=>{a&&i(r+1)},_=()=>{l&&i(r-1)};return M.jsxs("div",{className:"relative",children:[M.jsxs("div",{className:`flex items-center space-x-3 p-3 rounded-lg border transition-all ${t.has(o.did)?"bg-blue-50 border-blue-200":"bg-gray-50 border-gray-200"} ${o.followed?"opacity-60":""}`,children:[M.jsx("input",{type:"checkbox",checked:t.has(o.did),onChange:()=>n(o.did),disabled:o.followed,className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 flex-shrink-0"}),o.avatar?M.jsx("img",{src:o.avatar,alt:o.handle,className:"w-12 h-12 rounded-full object-cover flex-shrink-0"}):M.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center flex-shrink-0",children:M.jsx("span",{className:"text-white font-bold text-sm",children:o.handle.charAt(0).toUpperCase()})}),M.jsxs("div",{className:"flex-1 min-w-0",children:[o.displayName&&M.jsx("div",{className:"font-medium text-gray-900 truncate",children:o.displayName}),M.jsxs("div",{className:"flex items-center space-x-2",children:[M.jsxs("div",{className:"text-sm text-gray-600 truncate",children:["@",o.handle]}),M.jsxs("span",{className:"text-xs bg-green-100 text-green-800 px-2 py-0.5 rounded flex-shrink-0",children:[o.matchScore,"%"]})]})]}),o.followed&&M.jsx("div",{className:"flex-shrink-0",children:M.jsxs("div",{className:"flex items-center space-x-1 bg-green-100 text-green-800 px-2 py-1 rounded-full text-xs",children:[M.jsx(xm,{className:"w-3 h-3"}),M.jsx("span",{children:"Followed"})]})}),M.jsxs("div",{className:"flex items-center space-x-1 flex-shrink-0",children:[l&&M.jsx("button",{onClick:_,className:"p-2 hover:bg-gray-200 rounded-full transition-colors",children:M.jsx(Au,{className:"w-5 h-5 text-gray-600 rotate-180"})}),a&&M.jsx("button",{onClick:f,className:"p-2 hover:bg-gray-200 rounded-full transition-colors",children:M.jsx(Au,{className:"w-5 h-5 text-gray-600"})})]})]}),s&&M.jsx("div",{className:"flex items-center justify-center space-x-1 mt-2",children:e.map((v,m)=>M.jsx("button",{onClick:()=>i(m),className:`h-1.5 rounded-full transition-all ${m===r?"w-6 bg-blue-500":"w-1.5 bg-gray-300"}`},m))})]})}function D0(){const[e,t]=Ie.useState(""),[n,r]=Ie.useState(""),[i,o]=Ie.useState(null),[s,l]=Ie.useState(!1),[a,f]=Ie.useState([]),[_,v]=Ie.useState(!1),[m,p]=Ie.useState("login"),[w,h]=Ie.useState({searched:0,found:0,total:0}),k=new g0({methods:{plc:new S0({apiUrl:"https://plc.directory"}),web:new E0}}),u=new C0({strategy:"dns-first",methods:{dns:new A0({dohUrl:"https://dns.google/resolve?"}),http:new O0}});Ie.useEffect(()=>{const j=new URLSearchParams(window.location.search),V=j.get("session"),L=j.get("error");if(L){alert(`Login failed: ${L}`),window.history.replaceState({},"","/");return}V&&fetch(`/.netlify/functions/session?session=${V}`).then(D=>{if(!D.ok)throw new Error("Failed to load session");return D.json()}).then(D=>{o({did:D.did,handle:D.handle,accessJwt:D.accessToken,serviceEndpoint:D.serviceEndpoint}),p("upload"),window.history.replaceState({},"","/")}).catch(D=>{console.error("Session error:",D),alert("Failed to load session"),window.history.replaceState({},"","/")})},[]);async function c(){try{if(!e){alert("Enter your handle");return}const j=await fetch("/.netlify/functions/oauth-start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:e})});if(!j.ok){const L=await j.json();throw new Error(L.error||"Failed to start OAuth flow")}const{url:V}=await j.json();window.location.href=V}catch(j){console.error("OAuth error:",j),alert(`Error starting OAuth: ${j instanceof Error?j.message:"Unknown error"}`)}}async function g(){var j,V;try{if(!e||!n){alert("Enter handle and app password");return}const L=await u.resolve(e);if(!L){alert("Failed to resolve handle to DID");return}const D=await k.resolve(L);if(!((V=(j=D==null?void 0:D.service)==null?void 0:j[0])!=null&&V.serviceEndpoint)){alert("Could not determine PDS endpoint from DID Document");return}const A=D.service[0].serviceEndpoint,$=await fetch(`${A}/xrpc/com.atproto.server.createSession`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:e,password:n})});if(!$.ok){const T=await $.text();console.error("Login failed:",T),alert("Login failed, check handle and app password");return}const z=await $.json();o({...z,serviceEndpoint:A}),p("upload"),console.log("Logged in successfully!",z,A)}catch(L){console.error("Login error:",L),alert("Error during login. See console for details.")}}async function S(j){var A,$;const V=[],L=JSON.parse(j),D=($=(A=L==null?void 0:L["Your Activity"])==null?void 0:A.Following)==null?void 0:$.Following;if(!D||!Array.isArray(D))return alert("Could not find following data in JSON. Expected path: Your Activity > Following > Following"),[];for(const z of D)V.push({username:z.UserName,date:z.Date||""});return V}function C(j){const V=[],L=j.split(` 113 - 114 - `).map(D=>D.trim()).filter(Boolean);for(const D of L){const A=D.match(/Username:\s*(.+)/);A&&V.push({username:A[1].trim(),date:""})}return V}async function R(j){var A;const V=(A=j.target.files)==null?void 0:A[0];if(!V)return;let L=[];try{if(V.name.endsWith(".json"))L=await S(await V.text()),console.log(`Loaded ${L.length} TikTok users from JSON file`);else if(V.name.endsWith(".txt"))L=C(await V.text()),console.log(`Loaded ${L.length} TikTok users from TXT file`);else if(V.name.endsWith(".zip")){const $=await Lm.loadAsync(V),z=$.file("TikTok/Profile and Settings/Following.txt")||$.file("Profile and Settings/Following.txt")||$.files[Object.keys($.files).find(T=>T.endsWith("Following.txt")&&T.includes("Profile"))||""];if(z){const T=await z.async("string");L=C(T),console.log(`Loaded ${L.length} TikTok users from .ZIP file`)}else{const T=Object.values($.files).find(X=>X.name.endsWith(".json")&&!X.dir);if(!T){alert("Could not find Following.txt or a JSON file in the ZIP archive.");return}const ne=await T.async("string");L=await S(ne),console.log(`Loaded ${L.length} TikTok users from .ZIP file`)}}else{alert("Please upload a .txt, .json, or .zip file");return}}catch($){console.error("Error processing file:",$),alert("There was a problem processing the file. Please check that it's a valid TikTok data export.");return}if(L.length===0){alert("No users found in the file.");return}const D=L.map($=>({tiktokUser:$,bskyMatches:[],isSearching:!1,selectedMatches:new Set}));f(D),p("results"),setTimeout(()=>b(D),100)}async function P(j){if(!i)return[];try{const V=await fetch(`${i.serviceEndpoint}/xrpc/app.bsky.actor.searchActors?q=${encodeURIComponent(j)}&limit=20`,{headers:{Authorization:`Bearer ${i.accessJwt}`}});if(!V.ok)throw new Error(`Search failed: ${V.status}`);const L=await V.json(),D=$=>$.toLowerCase().replace(/[._-]/g,""),A=D(j);return L.actors.map($=>{const z=$.handle.split(".")[0],T=D(z),ne=D($.handle),X=D($.displayName||"");let G=0;return T===A?G=100:ne===A?G=90:X===A?G=80:T.includes(A)?G=60:ne.includes(A)?G=50:X.includes(A)?G=40:A.includes(T)&&(G=30),{...$,matchScore:G}}).filter($=>$.matchScore>0).sort(($,z)=>z.matchScore-$.matchScore).slice(0,5)}catch(V){return console.error(`Search error for ${j}:`,V),[]}}async function b(j){const V=j||a;if(!i||V.length===0)return;v(!0),p("loading"),h({searched:0,found:0,total:V.length});const L=3;let D=0,A=0;const $=1e3;for(let z=0;z<V.length;z+=L){if(A>=$){console.log(`Reached limit of ${$} matches. Stopping search.`);break}const T=V.slice(z,z+L);f(G=>G.map((oe,de)=>z<=de&&de<z+L?{...oe,isSearching:!0}:oe));const ne=T.map(async(G,oe)=>{const de=z+oe;try{const ie=await P(G.tiktokUser.username);return{globalIndex:de,matches:ie,error:void 0}}catch(ie){return{globalIndex:de,matches:[],error:ie instanceof Error?ie.message:"Search failed"}}}),X=await Promise.all(ne);if(X.forEach(G=>{D++,G.matches.length>0&&A++}),h({searched:D,found:A,total:V.length}),f(G=>G.map((oe,de)=>{const ie=X.find(le=>le.globalIndex===de);if(ie){const le=new Set;return ie.matches.length>0&&le.add(ie.matches[0].did),{...oe,bskyMatches:ie.matches,isSearching:!1,error:ie.error,selectedMatches:le}}return oe})),A>=$)break;z+L<V.length&&await new Promise(G=>setTimeout(G,1e3))}v(!1),p("results")}function F(j,V){f(L=>L.map((D,A)=>{if(A===j){const $=new Set(D.selectedMatches);return $.has(V)?$.delete(V):$.add(V),{...D,selectedMatches:$}}return D}))}function W(){f(j=>j.map(V=>{const L=new Set;return V.bskyMatches.length>0&&L.add(V.bskyMatches[0].did),{...V,selectedMatches:L}}))}function te(){f(j=>j.map(V=>({...V,selectedMatches:new Set})))}async function N(){if(!i)return;const j=a.flatMap((V,L)=>V.bskyMatches.filter(D=>{var A;return(A=V.selectedMatches)==null?void 0:A.has(D.did)}).map(D=>({...D,resultIndex:L})));if(j.length===0){alert("No users selected to follow");return}for(const V of j){try{(await fetch(`${i.serviceEndpoint}/xrpc/com.atproto.repo.createRecord`,{method:"POST",headers:{Authorization:`Bearer ${i.accessJwt}`,"Content-Type":"application/json"},body:JSON.stringify({repo:i.did,collection:"app.bsky.graph.follow",record:{$type:"app.bsky.graph.follow",subject:V.did,createdAt:new Date().toISOString()}})})).ok&&f(D=>D.map((A,$)=>$===V.resultIndex?{...A,bskyMatches:A.bskyMatches.map(z=>z.did===V.did?{...z,followed:!0}:z)}:A))}catch(L){console.error(`Follow error for ${V.handle}:`,L)}await new Promise(L=>setTimeout(L,500))}}const B=a.reduce((j,V)=>{var L;return j+(((L=V.selectedMatches)==null?void 0:L.size)||0)},0),y=a.filter(j=>j.bskyMatches.length>0).length;return a.filter(j=>!j.isSearching).length,M.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-purple-50",children:[M.jsx("div",{className:"bg-white shadow-sm border-b",children:M.jsx("div",{className:"px-4 py-4",children:M.jsxs("div",{className:"flex items-center justify-between",children:[M.jsxs("div",{className:"flex items-center space-x-2",children:[M.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center",children:M.jsx(_m,{className:"w-4 h-4 text-white"})}),M.jsx("h1",{className:"text-lg font-bold text-gray-900",children:"ATlast"})]}),i&&M.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[M.jsx(Rm,{className:"w-4 h-4"}),M.jsxs("span",{className:"hidden sm:inline",children:["@",i.handle]})]})]})})}),m==="login"&&M.jsx("div",{className:"p-6 max-w-md mx-auto mt-8",children:M.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-6 space-y-6",children:[M.jsxs("div",{className:"text-center",children:[M.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-purple-600 rounded-2xl mx-auto mb-4 flex items-center justify-center",children:M.jsx(jm,{className:"w-8 h-8 text-white"})}),M.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Welcome!"}),M.jsx("p",{className:"text-gray-600",children:"Connect your ATmosphere account to sync your TikTok follows"})]}),M.jsxs("div",{className:"space-y-4",children:[M.jsxs("div",{children:[M.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"User Handle"}),M.jsx("input",{className:"w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"yourhandle.bsky.social",value:e,onChange:j=>t(j.target.value)})]}),s?M.jsxs(M.Fragment,{children:[M.jsxs("div",{children:[M.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"App Password"}),M.jsx("input",{className:"w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent",type:"password",placeholder:"Not your regular password!",value:n,onChange:j=>r(j.target.value)}),M.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Generate this in your Bluesky settings"})]}),M.jsx("button",{className:"w-full bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white py-3 rounded-xl font-medium transition-all duration-200 shadow-lg hover:shadow-xl",onClick:g,children:"Connect with App Password"}),M.jsx("button",{onClick:()=>l(!1),className:"w-full text-sm text-gray-600 hover:text-gray-900 underline",children:"Use OAuth instead (recommended)"})]}):M.jsxs(M.Fragment,{children:[M.jsx("button",{className:"w-full bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white py-3 rounded-xl font-medium transition-all duration-200 shadow-lg hover:shadow-xl",onClick:c,children:"Connect to the ATmosphere"}),M.jsx("button",{onClick:()=>l(!0),className:"w-full text-sm text-gray-600 hover:text-gray-900 underline",children:"Use App Password instead"})]})]})]})}),m==="upload"&&M.jsx("div",{className:"p-6 max-w-md mx-auto mt-8",children:M.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-6 space-y-6",children:[M.jsxs("div",{className:"text-center",children:[M.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-purple-600 rounded-2xl mx-auto mb-4 flex items-center justify-center",children:M.jsx(Cm,{className:"w-8 h-8 text-white"})}),M.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Upload Your Data"}),M.jsx("p",{className:"text-gray-600",children:"Upload your TikTok following data to find matches"})]}),M.jsxs("div",{className:"space-y-4",children:[M.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-xl p-6 text-center hover:border-blue-400 transition-colors",children:[M.jsx(Pm,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),M.jsxs("label",{className:"cursor-pointer",children:[M.jsx("span",{className:"text-lg font-medium text-gray-700 block mb-1",children:"Choose File"}),M.jsx("span",{className:"text-sm text-gray-500 block mb-3",children:"Following.txt or TikTok data ZIP"}),M.jsx("input",{type:"file",accept:".txt,.json,.zip",onChange:R,className:"hidden"}),M.jsx("div",{className:"inline-block bg-blue-500 hover:bg-blue-600 text-white px-6 py-2 rounded-lg font-medium transition-colors",children:"Browse Files"})]})]}),M.jsxs("div",{className:"bg-blue-50 rounded-xl p-4",children:[M.jsx("h4",{className:"font-medium text-blue-900 mb-2",children:"How to get your data:"}),M.jsxs("ol",{className:"text-sm text-blue-800 space-y-1 list-decimal list-inside",children:[M.jsx("li",{children:"Open TikTok app → Profile → Settings and privacy → Account → Download your data"}),M.jsx("li",{children:'Request data → Select "Request data"'}),M.jsx("li",{children:"Wait for notification your download is ready"}),M.jsx("li",{children:"Navigate back to Download your data"}),M.jsx("li",{children:"Download data → Select"}),M.jsx("li",{children:"Upload the Following.txt file here"})]})]})]})]})}),m==="loading"&&M.jsx("div",{className:"p-6 max-w-2xl mx-auto mt-8",children:M.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-8 space-y-6",children:[M.jsxs("div",{className:"text-center",children:[M.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-purple-600 rounded-2xl mx-auto mb-4 flex items-center justify-center",children:M.jsx(zm,{className:"w-8 h-8 text-white animate-pulse"})}),M.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Finding Your People"}),M.jsx("p",{className:"text-gray-600",children:"Searching the ATmosphere for your TikTok follows..."})]}),M.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-purple-50 rounded-xl p-6",children:[M.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center mb-4",children:[M.jsxs("div",{children:[M.jsx("div",{className:"text-3xl font-bold text-gray-900",children:w.searched}),M.jsx("div",{className:"text-sm text-gray-600",children:"Searched"})]}),M.jsxs("div",{children:[M.jsx("div",{className:"text-3xl font-bold text-blue-600",children:w.found}),M.jsx("div",{className:"text-sm text-gray-600",children:"Found"})]}),M.jsxs("div",{children:[M.jsx("div",{className:"text-3xl font-bold text-gray-400",children:w.total}),M.jsx("div",{className:"text-sm text-gray-600",children:"Total"})]})]}),M.jsx("div",{className:"w-full bg-gray-200 rounded-full h-3 overflow-hidden",children:M.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-purple-600 h-full rounded-full transition-all duration-500 ease-out",style:{width:`${w.total>0?w.searched/w.total*100:0}%`}})}),M.jsxs("div",{className:"text-center mt-2 text-sm text-gray-600",children:[w.total>0?Math.round(w.searched/w.total*100):0,"% complete"]})]})]})}),m==="results"&&M.jsxs("div",{className:"pb-20",children:[M.jsx("div",{className:"bg-white border-b",children:M.jsxs("div",{className:"px-4 py-4",children:[M.jsxs("div",{className:"flex items-center justify-between mb-3",children:[M.jsxs("div",{children:[M.jsx("h2",{className:"text-lg font-bold text-gray-900",children:"Results"}),M.jsxs("p",{className:"text-sm text-gray-600",children:[y," of ",a.length," users found"]})]}),M.jsxs("div",{className:"text-right",children:[M.jsx("div",{className:"text-lg font-bold text-blue-600",children:B}),M.jsx("div",{className:"text-xs text-gray-500",children:"selected"})]})]}),M.jsxs("div",{className:"flex space-x-2",children:[M.jsx("button",{onClick:W,className:"flex-1 bg-blue-500 hover:bg-blue-600 text-white py-2 rounded-lg text-sm font-medium transition-colors",children:"Select All"}),M.jsx("button",{onClick:te,className:"flex-1 bg-gray-500 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors",children:"Clear"})]})]})}),M.jsx("div",{className:"space-y-2 p-4",children:a.map((j,V)=>M.jsx("div",{className:"bg-white rounded-xl shadow-sm border",children:M.jsxs("div",{className:"p-4",children:[M.jsxs("div",{className:"mb-3",children:[M.jsx("div",{className:"text-xs text-gray-500 uppercase tracking-wide mb-1",children:"TikTok"}),M.jsxs("div",{className:"font-semibold text-gray-900 text-lg",children:["@",j.tiktokUser.username]})]}),j.bskyMatches.length>0?M.jsx("div",{className:"space-y-2",children:M.jsx(L0,{matches:j.bskyMatches,selectedDids:j.selectedMatches||new Set,onToggleSelection:L=>F(V,L)})}):M.jsx("div",{className:"text-center py-2 text-gray-400",children:M.jsx("div",{className:"text-sm",children:"No matches found"})})]})},V))})]}),m==="results"&&B>0&&M.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t shadow-lg",children:M.jsx("div",{className:"p-4",children:M.jsxs("button",{onClick:N,className:"w-full bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white py-4 rounded-xl font-medium text-lg transition-all duration-200 shadow-lg hover:shadow-xl",children:["Follow ",B," Selected Users"]})})})]})}xs.createRoot(document.getElementById("root")).render(M.jsx(nh.StrictMode,{children:M.jsx(D0,{})}));
+5 -16
dist/client-metadata.json
··· 1 1 { 2 2 "client_id": "https://atlast.byarielm.fyi/client-metadata.json", 3 - "client_name": "ATlast - TikTok to Bluesky Sync", 3 + "client_name": "ATlast", 4 4 "client_uri": "https://atlast.byarielm.fyi", 5 5 "redirect_uris": [ 6 - "https://atlast.byarielm.fyi/oauth/callback" 6 + "https://atlast.byarielm.fyi/oauth/callback", 7 + "https://*.netlify.app/oauth/callback" 7 8 ], 8 9 "scope": "atproto transition:generic", 9 10 "grant_types": ["authorization_code", "refresh_token"], 10 11 "response_types": ["code"], 11 12 "application_type": "web", 12 13 "token_endpoint_auth_method": "private_key_jwt", 14 + "token_endpoint_auth_signing_alg": "ES256", 13 15 "dpop_bound_access_tokens": true, 14 - "jwks_uri": "https://atlast.byarielm.fyi/.netlify/functions/jwks", 15 - "jwks": { 16 - "keys": [ 17 - { 18 - "kty": "EC", 19 - "x": "3sVbr4xwN7UtmG1L19vL0x9iN-FRcl7p-Wja_xPbhhk", 20 - "y": "Y1XKDaAyDwijp8aEIGHmO46huKjajSQH2cbfpWaWpQ4", 21 - "crv": "P-256", 22 - "kid": "main-key", 23 - "use": "sig", 24 - "alg": "ES256" 25 - } 26 - ] 27 - } 16 + "jwks_uri": "https://atlast.byarielm.fyi/.netlify/functions/jwks" 28 17 }
+1 -1
dist/index.html
··· 5 5 <link rel="icon" type="image/svg+xml" href="/vite.svg" /> 6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 7 <title>ATLast: Sync Your TikTok Follows → ATmosphere (Skylight, Bluesky, etc.)</title> 8 - <script type="module" crossorigin src="/assets/index-Dg_eGtnR.js"></script> 8 + <script type="module" crossorigin src="/assets/index-CCJHyQxj.js"></script> 9 9 <link rel="stylesheet" crossorigin href="/assets/index-CkXKpM6s.css"> 10 10 </head> 11 11 <body>