(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const s of u)if(s.type==="childList")for(const f of s.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function a(u){const s={};return u.integrity&&(s.integrity=u.integrity),u.referrerPolicy&&(s.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?s.credentials="include":u.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(u){if(u.ep)return;u.ep=!0;const s=a(u);fetch(u.href,s)}})();var Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Za(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ac={exports:{}},Gr={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gm;function rx(){if(gm)return Gr;gm=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(o,u,s){var f=null;if(s!==void 0&&(f=""+s),u.key!==void 0&&(f=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:n,type:o,key:f,ref:u!==void 0?u:null,props:s}}return Gr.Fragment=r,Gr.jsx=a,Gr.jsxs=a,Gr}var ym;function lx(){return ym||(ym=1,ac.exports=rx()),ac.exports}var k=lx(),rc={exports:{}},Oe={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var vm;function ox(){if(vm)return Oe;vm=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),x=Symbol.iterator;function y(j){return j===null||typeof j!="object"?null:(j=x&&j[x]||j["@@iterator"],typeof j=="function"?j:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function S(j,B,R){this.props=j,this.context=B,this.refs=C,this.updater=R||E}S.prototype.isReactComponent={},S.prototype.setState=function(j,B){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,B,"setState")},S.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function T(){}T.prototype=S.prototype;function D(j,B,R){this.props=j,this.context=B,this.refs=C,this.updater=R||E}var I=D.prototype=new T;I.constructor=D,w(I,S.prototype),I.isPureReactComponent=!0;var q=Array.isArray;function U(){}var P={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function K(j,B,R){var re=R.ref;return{$$typeof:n,type:j,key:B,ref:re!==void 0?re:null,props:R}}function ce(j,B){return K(j.type,B,j.props)}function me(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function O(j){var B={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(R){return B[R]})}var ee=/\/+/g;function z(j,B){return typeof j=="object"&&j!==null&&j.key!=null?O(""+j.key):B.toString(36)}function F(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(U,U):(j.status="pending",j.then(function(B){j.status==="pending"&&(j.status="fulfilled",j.value=B)},function(B){j.status==="pending"&&(j.status="rejected",j.reason=B)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function G(j,B,R,re,fe){var _e=typeof j;(_e==="undefined"||_e==="boolean")&&(j=null);var Ae=!1;if(j===null)Ae=!0;else switch(_e){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(j.$$typeof){case n:case r:Ae=!0;break;case g:return Ae=j._init,G(Ae(j._payload),B,R,re,fe)}}if(Ae)return fe=fe(j),Ae=re===""?"."+z(j,0):re,q(fe)?(R="",Ae!=null&&(R=Ae.replace(ee,"$&/")+"/"),G(fe,B,R,"",function(Pe){return Pe})):fe!=null&&(me(fe)&&(fe=ce(fe,R+(fe.key==null||j&&j.key===fe.key?"":(""+fe.key).replace(ee,"$&/")+"/")+Ae)),B.push(fe)),1;Ae=0;var Ee=re===""?".":re+":";if(q(j))for(var Ce=0;Ce<j.length;Ce++)re=j[Ce],_e=Ee+z(re,Ce),Ae+=G(re,B,R,_e,fe);else if(Ce=y(j),typeof Ce=="function")for(j=Ce.call(j),Ce=0;!(re=j.next()).done;)re=re.value,_e=Ee+z(re,Ce++),Ae+=G(re,B,R,_e,fe);else if(_e==="object"){if(typeof j.then=="function")return G(F(j),B,R,re,fe);throw B=String(j),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function X(j,B,R){if(j==null)return j;var re=[],fe=0;return G(j,re,"","",function(_e){return B.call(R,_e,fe++)}),re}function be(j){if(j._status===-1){var B=j._result;B=B(),B.then(function(R){(j._status===0||j._status===-1)&&(j._status=1,j._result=R)},function(R){(j._status===0||j._status===-1)&&(j._status=2,j._result=R)}),j._status===-1&&(j._status=0,j._result=B)}if(j._status===1)return j._result.default;throw j._result}var oe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},N={map:X,forEach:function(j,B,R){X(j,function(){B.apply(this,arguments)},R)},count:function(j){var B=0;return X(j,function(){B++}),B},toArray:function(j){return X(j,function(B){return B})||[]},only:function(j){if(!me(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Oe.Activity=v,Oe.Children=N,Oe.Component=S,Oe.Fragment=a,Oe.Profiler=u,Oe.PureComponent=D,Oe.StrictMode=o,Oe.Suspense=m,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(j){return P.H.useMemoCache(j)}},Oe.cache=function(j){return function(){return j.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(j,B,R){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var re=w({},j.props),fe=j.key;if(B!=null)for(_e in B.key!==void 0&&(fe=""+B.key),B)!ae.call(B,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&B.ref===void 0||(re[_e]=B[_e]);var _e=arguments.length-2;if(_e===1)re.children=R;else if(1<_e){for(var Ae=Array(_e),Ee=0;Ee<_e;Ee++)Ae[Ee]=arguments[Ee+2];re.children=Ae}return K(j.type,fe,re)},Oe.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},Oe.createElement=function(j,B,R){var re,fe={},_e=null;if(B!=null)for(re in B.key!==void 0&&(_e=""+B.key),B)ae.call(B,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(fe[re]=B[re]);var Ae=arguments.length-2;if(Ae===1)fe.children=R;else if(1<Ae){for(var Ee=Array(Ae),Ce=0;Ce<Ae;Ce++)Ee[Ce]=arguments[Ce+2];fe.children=Ee}if(j&&j.defaultProps)for(re in Ae=j.defaultProps,Ae)fe[re]===void 0&&(fe[re]=Ae[re]);return K(j,_e,fe)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(j){return{$$typeof:d,render:j}},Oe.isValidElement=me,Oe.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:be}},Oe.memo=function(j,B){return{$$typeof:p,type:j,compare:B===void 0?null:B}},Oe.startTransition=function(j){var B=P.T,R={};P.T=R;try{var re=j(),fe=P.S;fe!==null&&fe(R,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(U,oe)}catch(_e){oe(_e)}finally{B!==null&&R.types!==null&&(B.types=R.types),P.T=B}},Oe.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Oe.use=function(j){return P.H.use(j)},Oe.useActionState=function(j,B,R){return P.H.useActionState(j,B,R)},Oe.useCallback=function(j,B){return P.H.useCallback(j,B)},Oe.useContext=function(j){return P.H.useContext(j)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(j,B){return P.H.useDeferredValue(j,B)},Oe.useEffect=function(j,B){return P.H.useEffect(j,B)},Oe.useEffectEvent=function(j){return P.H.useEffectEvent(j)},Oe.useId=function(){return P.H.useId()},Oe.useImperativeHandle=function(j,B,R){return P.H.useImperativeHandle(j,B,R)},Oe.useInsertionEffect=function(j,B){return P.H.useInsertionEffect(j,B)},Oe.useLayoutEffect=function(j,B){return P.H.useLayoutEffect(j,B)},Oe.useMemo=function(j,B){return P.H.useMemo(j,B)},Oe.useOptimistic=function(j,B){return P.H.useOptimistic(j,B)},Oe.useReducer=function(j,B,R){return P.H.useReducer(j,B,R)},Oe.useRef=function(j){return P.H.useRef(j)},Oe.useState=function(j){return P.H.useState(j)},Oe.useSyncExternalStore=function(j,B,R){return P.H.useSyncExternalStore(j,B,R)},Oe.useTransition=function(){return P.H.useTransition()},Oe.version="19.2.0",Oe}var xm;function Qc(){return xm||(xm=1,rc.exports=ox()),rc.exports}var W=Qc();const Je=Za(W);var lc={exports:{}},Vr={},oc={exports:{}},sc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bm;function sx(){return bm||(bm=1,(function(n){function r(G,X){var be=G.length;G.push(X);e:for(;0<be;){var oe=be-1>>>1,N=G[oe];if(0<u(N,X))G[oe]=X,G[be]=N,be=oe;else break e}}function a(G){return G.length===0?null:G[0]}function o(G){if(G.length===0)return null;var X=G[0],be=G.pop();if(be!==X){G[0]=be;e:for(var oe=0,N=G.length,j=N>>>1;oe<j;){var B=2*(oe+1)-1,R=G[B],re=B+1,fe=G[re];if(0>u(R,be))re<N&&0>u(fe,R)?(G[oe]=fe,G[re]=be,oe=re):(G[oe]=R,G[B]=be,oe=B);else if(re<N&&0>u(fe,be))G[oe]=fe,G[re]=be,oe=re;else break e}}return X}function u(G,X){var be=G.sortIndex-X.sortIndex;return be!==0?be:G.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var f=Date,d=f.now();n.unstable_now=function(){return f.now()-d}}var m=[],p=[],g=1,v=null,x=3,y=!1,E=!1,w=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function I(G){for(var X=a(p);X!==null;){if(X.callback===null)o(p);else if(X.startTime<=G)o(p),X.sortIndex=X.expirationTime,r(m,X);else break;X=a(p)}}function q(G){if(w=!1,I(G),!E)if(a(m)!==null)E=!0,U||(U=!0,O());else{var X=a(p);X!==null&&F(q,X.startTime-G)}}var U=!1,P=-1,ae=5,K=-1;function ce(){return C?!0:!(n.unstable_now()-K<ae)}function me(){if(C=!1,U){var G=n.unstable_now();K=G;var X=!0;try{e:{E=!1,w&&(w=!1,T(P),P=-1),y=!0;var be=x;try{t:{for(I(G),v=a(m);v!==null&&!(v.expirationTime>G&&ce());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,x=v.priorityLevel;var N=oe(v.expirationTime<=G);if(G=n.unstable_now(),typeof N=="function"){v.callback=N,I(G),X=!0;break t}v===a(m)&&o(m),I(G)}else o(m);v=a(m)}if(v!==null)X=!0;else{var j=a(p);j!==null&&F(q,j.startTime-G),X=!1}}break e}finally{v=null,x=be,y=!1}X=void 0}}finally{X?O():U=!1}}}var O;if(typeof D=="function")O=function(){D(me)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,z=ee.port2;ee.port1.onmessage=me,O=function(){z.postMessage(null)}}else O=function(){S(me,0)};function F(G,X){P=S(function(){G(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(G){switch(x){case 1:case 2:case 3:var X=3;break;default:X=x}var be=x;x=X;try{return G()}finally{x=be}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(G,X){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var be=x;x=G;try{return X()}finally{x=be}},n.unstable_scheduleCallback=function(G,X,be){var oe=n.unstable_now();switch(typeof be=="object"&&be!==null?(be=be.delay,be=typeof be=="number"&&0<be?oe+be:oe):be=oe,G){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=be+N,G={id:g++,callback:X,priorityLevel:G,startTime:be,expirationTime:N,sortIndex:-1},be>oe?(G.sortIndex=be,r(p,G),a(m)===null&&G===a(p)&&(w?(T(P),P=-1):w=!0,F(q,be-oe))):(G.sortIndex=N,r(m,G),E||y||(E=!0,U||(U=!0,O()))),G},n.unstable_shouldYield=ce,n.unstable_wrapCallback=function(G){var X=x;return function(){var be=x;x=X;try{return G.apply(this,arguments)}finally{x=be}}}})(sc)),sc}var wm;function ux(){return wm||(wm=1,oc.exports=sx()),oc.exports}var uc={exports:{}},Ut={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Sm;function cx(){if(Sm)return Ut;Sm=1;var n=Qc();function r(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var o={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(m,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:m,containerInfo:p,implementation:g}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ut.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return s(m,p,null,g)},Ut.flushSync=function(m){var p=f.T,g=o.p;try{if(f.T=null,o.p=2,m)return m()}finally{f.T=p,o.p=g,o.d.f()}},Ut.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},Ut.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},Ut.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:y}):g==="script"&&o.d.X(m,{crossOrigin:v,integrity:x,fetchPriority:y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},Ut.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin);o.d.L(m,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=d(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},Ut.requestFormReset=function(m){o.d.r(m)},Ut.unstable_batchedUpdates=function(m,p){return m(p)},Ut.useFormState=function(m,p,g){return f.H.useFormState(m,p,g)},Ut.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ut.version="19.2.0",Ut}var km;function fx(){if(km)return uc.exports;km=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),uc.exports=cx(),uc.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var _m;function dx(){if(_m)return Vr;_m=1;var n=ux(),r=Qc(),a=fx();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}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."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(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 d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(s(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,l=t;;){var c=i.return;if(c===null)break;var h=c.alternate;if(h===null){if(l=c.return,l!==null){i=l;continue}break}if(c.child===h.child){for(h=c.child;h;){if(h===i)return m(c),e;if(h===l)return m(c),t;h=h.sibling}throw Error(o(188))}if(i.return!==l.return)i=c,l=h;else{for(var b=!1,A=c.child;A;){if(A===i){b=!0,i=c,l=h;break}if(A===l){b=!0,l=c,i=h;break}A=A.sibling}if(!b){for(A=h.child;A;){if(A===i){b=!0,i=h,l=c;break}if(A===l){b=!0,l=h,i=c;break}A=A.sibling}if(!b)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),D=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function O(e){return e===null||typeof e!="object"?null:(e=me&&e[me]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case S:return"Profiler";case C:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case D:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:z(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return z(e(t))}catch{}}return null}var F=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be={pending:!1,data:null,method:null,action:null},oe=[],N=-1;function j(e){return{current:e}}function B(e){0>N||(e.current=oe[N],oe[N]=null,N--)}function R(e,t){N++,oe[N]=e.current,e.current=t}var re=j(null),fe=j(null),_e=j(null),Ae=j(null);function Ee(e,t){switch(R(_e,t),R(fe,e),R(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hp(t),e=qp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(re),R(re,e)}function Ce(){B(re),B(fe),B(_e)}function Pe(e){e.memoizedState!==null&&R(Ae,e);var t=re.current,i=qp(t,e.type);t!==i&&(R(fe,e),R(re,i))}function Ye(e){fe.current===e&&(B(re),B(fe)),Ae.current===e&&(B(Ae),Ir._currentValue=be)}var pt,Ct;function _(e){if(pt===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);pt=t&&t[1]||"",Ct=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+pt+e+Ct}var pe=!1;function le(e,t){if(!e||pe)return"";pe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(se){var ie=se}Reflect.construct(e,[],ve)}else{try{ve.call()}catch(se){ie=se}e.call(ve.prototype)}}else{try{throw Error()}catch(se){ie=se}(ve=e())&&typeof ve.catch=="function"&&ve.catch(function(){})}}catch(se){if(se&&ie&&typeof se.stack=="string")return[se.stack,ie.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),b=h[0],A=h[1];if(b&&A){var H=b.split(`
`),$=A.split(`
`);for(c=l=0;l<H.length&&!H[l].includes("DetermineComponentFrameRoot");)l++;for(;c<$.length&&!$[c].includes("DetermineComponentFrameRoot");)c++;if(l===H.length||c===$.length)for(l=H.length-1,c=$.length-1;1<=l&&0<=c&&H[l]!==$[c];)c--;for(;1<=l&&0<=c;l--,c--)if(H[l]!==$[c]){if(l!==1||c!==1)do if(l--,c--,0>c||H[l]!==$[c]){var he=`
`+H[l].replace(" at new "," at ");return e.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",e.displayName)),he}while(1<=l&&0<=c);break}}}finally{pe=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?_(i):""}function L(e,t){switch(e.tag){case 26:case 27:case 5:return _(e.type);case 16:return _("Lazy");case 13:return e.child!==t&&t!==null?_("Suspense Fallback"):_("Suspense");case 19:return _("SuspenseList");case 0:case 15:return le(e.type,!1);case 11:return le(e.type.render,!1);case 1:return le(e.type,!0);case 31:return _("Activity");default:return""}}function M(e){try{var t="",i=null;do t+=L(e,i),i=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var Z=Object.prototype.hasOwnProperty,ye=n.unstable_scheduleCallback,xe=n.unstable_cancelCallback,te=n.unstable_shouldYield,Se=n.unstable_requestPaint,ne=n.unstable_now,ue=n.unstable_getCurrentPriorityLevel,V=n.unstable_ImmediatePriority,de=n.unstable_UserBlockingPriority,we=n.unstable_NormalPriority,je=n.unstable_LowPriority,Me=n.unstable_IdlePriority,nt=n.log,Tt=n.unstable_setDisableYieldValue,Le=null,$e=null;function yt(e){if(typeof nt=="function"&&Tt(e),$e&&typeof $e.setStrictMode=="function")try{$e.setStrictMode(Le,e)}catch{}}var Ue=Math.clz32?Math.clz32:$a,qt=Math.log,Dt=Math.LN2;function $a(e){return e>>>=0,e===0?32:31-(qt(e)/Dt|0)|0}var ta=256,Ni=262144,En=4194304;function un(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ul(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var c=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var A=l&134217727;return A!==0?(l=A&~h,l!==0?c=un(l):(b&=A,b!==0?c=un(b):i||(i=A&~e,i!==0&&(c=un(i))))):(A=l&~h,A!==0?c=un(A):b!==0?c=un(b):i||(i=l&~e,i!==0&&(c=un(i)))),c===0?0:t!==0&&t!==c&&(t&h)===0&&(h=c&-c,i=t&-t,h>=i||h===32&&(i&4194048)!==0)?t:c}function er(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function V0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bf(){var e=En;return En<<=1,(En&62914560)===0&&(En=4194304),e}function Vo(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function tr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function X0(e,t,i,l,c,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var A=e.entanglements,H=e.expirationTimes,$=e.hiddenUpdates;for(i=b&~i;0<i;){var he=31-Ue(i),ve=1<<he;A[he]=0,H[he]=-1;var ie=$[he];if(ie!==null)for($[he]=null,he=0;he<ie.length;he++){var se=ie[he];se!==null&&(se.lane&=-536870913)}i&=~ve}l!==0&&wf(e,l,0),h!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~t))}function wf(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ue(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&261930}function Sf(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-Ue(i),c=1<<l;c&t|e[l]&t&&(e[l]|=t),i&=~c}}function kf(e,t){var i=t&-t;return i=(i&42)!==0?1:Xo(i),(i&(e.suspendedLanes|t))!==0?0:i}function Xo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Zo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _f(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:um(e.type))}function zf(e,t){var i=X.p;try{return X.p=e,t()}finally{X.p=i}}var ai=Math.random().toString(36).slice(2),Nt="__reactFiber$"+ai,Pt="__reactProps$"+ai,na="__reactContainer$"+ai,Ko="__reactEvents$"+ai,Z0="__reactListeners$"+ai,K0="__reactHandles$"+ai,Ef="__reactResources$"+ai,nr="__reactMarker$"+ai;function Qo(e){delete e[Nt],delete e[Pt],delete e[Ko],delete e[Z0],delete e[K0]}function ia(e){var t=e[Nt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[na]||i[Nt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Xp(e);e!==null;){if(i=e[Nt])return i;e=Xp(e)}return t}e=i,i=e.parentNode}return null}function aa(e){if(e=e[Nt]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ir(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ra(e){var t=e[Ef];return t||(t=e[Ef]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function jt(e){e[nr]=!0}var Cf=new Set,Tf={};function Oi(e,t){la(e,t),la(e+"Capture",t)}function la(e,t){for(Tf[e]=t,e=0;e<t.length;e++)Cf.add(t[e])}var Q0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Af={},jf={};function W0(e){return Z.call(jf,e)?!0:Z.call(Af,e)?!1:Q0.test(e)?jf[e]=!0:(Af[e]=!0,!1)}function cl(e,t,i){if(W0(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function fl(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Ln(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}function cn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function J0(e,t,i){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,h=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wo(e){if(!e._valueTracker){var t=Rf(e)?"checked":"value";e._valueTracker=J0(e,t,""+e[t])}}function Df(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=Rf(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var $0=/[\n"\\]/g;function fn(e){return e.replace($0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jo(e,t,i,l,c,h,b,A){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+cn(t)):e.value!==""+cn(t)&&(e.value=""+cn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?$o(e,b,cn(t)):i!=null?$o(e,b,cn(i)):l!=null&&e.removeAttribute("value"),c==null&&h!=null&&(e.defaultChecked=!!h),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+cn(A):e.removeAttribute("name")}function Nf(e,t,i,l,c,h,b,A){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){Wo(e);return}i=i!=null?""+cn(i):"",t=t!=null?""+cn(t):i,A||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=A?e.checked:!!l,e.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Wo(e)}function $o(e,t,i){t==="number"&&dl(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function oa(e,t,i,l){if(e=e.options,t){t={};for(var c=0;c<i.length;c++)t["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=t.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&l&&(e[i].defaultSelected=!0)}else{for(i=""+cn(i),t=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Of(e,t,i){if(t!=null&&(t=""+cn(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+cn(i):""}function Mf(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(o(92));if(F(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=cn(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l),Wo(e)}function sa(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var ey=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Bf(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||ey.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function Lf(e,t,i){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&i[c]!==l&&Bf(e,c,l)}else for(var h in t)t.hasOwnProperty(h)&&Bf(e,h,t[h])}function es(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ty=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ny=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hl(e){return ny.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Un(){}var ts=null;function ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ua=null,ca=null;function Uf(e){var t=aa(e);if(t&&(e=t.stateNode)){var i=e[Pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jo(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+fn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var c=l[Pt]||null;if(!c)throw Error(o(90));Jo(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&Df(l)}break e;case"textarea":Of(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&oa(e,!!i.multiple,t,!1)}}}var is=!1;function Hf(e,t,i){if(is)return e(t,i);is=!0;try{var l=e(t);return l}finally{if(is=!1,(ua!==null||ca!==null)&&(eo(),ua&&(t=ua,e=ca,ca=ua=null,Uf(t),e)))for(t=0;t<e.length;t++)Uf(e[t])}}function ar(e,t){var i=e.stateNode;if(i===null)return null;var l=i[Pt]||null;if(l===null)return null;i=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),as=!1;if(Hn)try{var rr={};Object.defineProperty(rr,"passive",{get:function(){as=!0}}),window.addEventListener("test",rr,rr),window.removeEventListener("test",rr,rr)}catch{as=!1}var ri=null,rs=null,pl=null;function qf(){if(pl)return pl;var e,t=rs,i=t.length,l,c="value"in ri?ri.value:ri.textContent,h=c.length;for(e=0;e<i&&t[e]===c[e];e++);var b=i-e;for(l=1;l<=b&&t[i-l]===c[h-l];l++);return pl=c.slice(e,1<l?1-l:void 0)}function ml(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 gl(){return!0}function If(){return!1}function Yt(e){function t(i,l,c,h,b){this._reactName=i,this._targetInst=c,this.type=l,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(i=e[A],this[A]=i?i(h):h[A]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?gl:If,this.isPropagationStopped=If,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=gl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=gl)},persist:function(){},isPersistent:gl}),t}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yl=Yt(Mi),lr=v({},Mi,{view:0,detail:0}),iy=Yt(lr),ls,os,or,vl=v({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:us,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!==or&&(or&&e.type==="mousemove"?(ls=e.screenX-or.screenX,os=e.screenY-or.screenY):os=ls=0,or=e),ls)},movementY:function(e){return"movementY"in e?e.movementY:os}}),Ff=Yt(vl),ay=v({},vl,{dataTransfer:0}),ry=Yt(ay),ly=v({},lr,{relatedTarget:0}),ss=Yt(ly),oy=v({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),sy=Yt(oy),uy=v({},Mi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cy=Yt(uy),fy=v({},Mi,{data:0}),Pf=Yt(fy),dy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hy={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"},py={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function my(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=py[e])?!!t[e]:!1}function us(){return my}var gy=v({},lr,{key:function(e){if(e.key){var t=dy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ml(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:us,charCode:function(e){return e.type==="keypress"?ml(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ml(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yy=Yt(gy),vy=v({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yf=Yt(vy),xy=v({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:us}),by=Yt(xy),wy=v({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sy=Yt(wy),ky=v({},vl,{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}),_y=Yt(ky),zy=v({},Mi,{newState:0,oldState:0}),Ey=Yt(zy),Cy=[9,13,27,32],cs=Hn&&"CompositionEvent"in window,sr=null;Hn&&"documentMode"in document&&(sr=document.documentMode);var Ty=Hn&&"TextEvent"in window&&!sr,Gf=Hn&&(!cs||sr&&8<sr&&11>=sr),Vf=" ",Xf=!1;function Zf(e,t){switch(e){case"keyup":return Cy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fa=!1;function Ay(e,t){switch(e){case"compositionend":return Kf(t);case"keypress":return t.which!==32?null:(Xf=!0,Vf);case"textInput":return e=t.data,e===Vf&&Xf?null:e;default:return null}}function jy(e,t){if(fa)return e==="compositionend"||!cs&&Zf(e,t)?(e=qf(),pl=rs=ri=null,fa=!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 Gf&&t.locale!=="ko"?null:t.data;default:return null}}var Ry={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 Qf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ry[e.type]:t==="textarea"}function Wf(e,t,i,l){ua?ca?ca.push(l):ca=[l]:ua=l,t=oo(t,"onChange"),0<t.length&&(i=new yl("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var ur=null,cr=null;function Dy(e){Np(e,0)}function xl(e){var t=ir(e);if(Df(t))return e}function Jf(e,t){if(e==="change")return t}var $f=!1;if(Hn){var fs;if(Hn){var ds="oninput"in document;if(!ds){var ed=document.createElement("div");ed.setAttribute("oninput","return;"),ds=typeof ed.oninput=="function"}fs=ds}else fs=!1;$f=fs&&(!document.documentMode||9<document.documentMode)}function td(){ur&&(ur.detachEvent("onpropertychange",nd),cr=ur=null)}function nd(e){if(e.propertyName==="value"&&xl(cr)){var t=[];Wf(t,cr,e,ns(e)),Hf(Dy,t)}}function Ny(e,t,i){e==="focusin"?(td(),ur=t,cr=i,ur.attachEvent("onpropertychange",nd)):e==="focusout"&&td()}function Oy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xl(cr)}function My(e,t){if(e==="click")return xl(t)}function By(e,t){if(e==="input"||e==="change")return xl(t)}function Ly(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:Ly;function fr(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var c=i[l];if(!Z.call(t,c)||!$t(e[c],t[c]))return!1}return!0}function id(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ad(e,t){var i=id(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=id(i)}}function rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ld(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=dl(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=dl(e.document)}return t}function hs(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")}var Uy=Hn&&"documentMode"in document&&11>=document.documentMode,da=null,ps=null,dr=null,ms=!1;function od(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ms||da==null||da!==dl(l)||(l=da,"selectionStart"in l&&hs(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),dr&&fr(dr,l)||(dr=l,l=oo(ps,"onSelect"),0<l.length&&(t=new yl("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=da)))}function Bi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var ha={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionrun:Bi("Transition","TransitionRun"),transitionstart:Bi("Transition","TransitionStart"),transitioncancel:Bi("Transition","TransitionCancel"),transitionend:Bi("Transition","TransitionEnd")},gs={},sd={};Hn&&(sd=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Li(e){if(gs[e])return gs[e];if(!ha[e])return e;var t=ha[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in sd)return gs[e]=t[i];return e}var ud=Li("animationend"),cd=Li("animationiteration"),fd=Li("animationstart"),Hy=Li("transitionrun"),qy=Li("transitionstart"),Iy=Li("transitioncancel"),dd=Li("transitionend"),hd=new Map,ys="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ys.push("scrollEnd");function wn(e,t){hd.set(e,t),Oi(t,[e])}var bl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dn=[],pa=0,vs=0;function wl(){for(var e=pa,t=vs=pa=0;t<e;){var i=dn[t];dn[t++]=null;var l=dn[t];dn[t++]=null;var c=dn[t];dn[t++]=null;var h=dn[t];if(dn[t++]=null,l!==null&&c!==null){var b=l.pending;b===null?c.next=c:(c.next=b.next,b.next=c),l.pending=c}h!==0&&pd(i,c,h)}}function Sl(e,t,i,l){dn[pa++]=e,dn[pa++]=t,dn[pa++]=i,dn[pa++]=l,vs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function xs(e,t,i,l){return Sl(e,t,i,l),kl(e)}function Ui(e,t){return Sl(e,null,null,t),kl(e)}function pd(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var c=!1,h=e.return;h!==null;)h.childLanes|=i,l=h.alternate,l!==null&&(l.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(c=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,c&&t!==null&&(c=31-Ue(i),e=h.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=i|536870912),h):null}function kl(e){if(50<Or)throw Or=0,Tu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function Fy(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,i,l){return new Fy(e,t,i,l)}function bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qn(e,t){var i=e.alternate;return i===null?(i=en(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function md(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _l(e,t,i,l,c,h){var b=0;if(l=e,typeof e=="function")bs(e)&&(b=1);else if(typeof e=="string")b=Xv(e,i,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=en(31,i,t,c),e.elementType=K,e.lanes=h,e;case w:return Hi(i.children,c,h,t);case C:b=8,c|=24;break;case S:return e=en(12,i,t,c|2),e.elementType=S,e.lanes=h,e;case q:return e=en(13,i,t,c),e.elementType=q,e.lanes=h,e;case U:return e=en(19,i,t,c),e.elementType=U,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:b=10;break e;case T:b=9;break e;case I:b=11;break e;case P:b=14;break e;case ae:b=16,l=null;break e}b=29,i=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=en(b,i,t,c),t.elementType=e,t.type=l,t.lanes=h,t}function Hi(e,t,i,l){return e=en(7,e,l,t),e.lanes=i,e}function ws(e,t,i){return e=en(6,e,null,t),e.lanes=i,e}function gd(e){var t=en(18,null,null,0);return t.stateNode=e,t}function Ss(e,t,i){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yd=new WeakMap;function hn(e,t){if(typeof e=="object"&&e!==null){var i=yd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:M(t)},yd.set(e,t),t)}return{value:e,source:t,stack:M(t)}}var ga=[],ya=0,zl=null,hr=0,pn=[],mn=0,li=null,Cn=1,Tn="";function In(e,t){ga[ya++]=hr,ga[ya++]=zl,zl=e,hr=t}function vd(e,t,i){pn[mn++]=Cn,pn[mn++]=Tn,pn[mn++]=li,li=e;var l=Cn;e=Tn;var c=32-Ue(l)-1;l&=~(1<<c),i+=1;var h=32-Ue(t)+c;if(30<h){var b=c-c%5;h=(l&(1<<b)-1).toString(32),l>>=b,c-=b,Cn=1<<32-Ue(t)+c|i<<c|l,Tn=h+e}else Cn=1<<h|i<<c|l,Tn=e}function ks(e){e.return!==null&&(In(e,1),vd(e,1,0))}function _s(e){for(;e===zl;)zl=ga[--ya],ga[ya]=null,hr=ga[--ya],ga[ya]=null;for(;e===li;)li=pn[--mn],pn[mn]=null,Tn=pn[--mn],pn[mn]=null,Cn=pn[--mn],pn[mn]=null}function xd(e,t){pn[mn++]=Cn,pn[mn++]=Tn,pn[mn++]=li,Cn=t.id,Tn=t.overflow,li=e}var Ot=null,ct=null,Xe=!1,oi=null,gn=!1,zs=Error(o(519));function si(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pr(hn(t,e)),zs}function bd(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[Nt]=e,t[Pt]=l,i){case"dialog":Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":case"embed":Fe("load",t);break;case"video":case"audio":for(i=0;i<Br.length;i++)Fe(Br[i],t);break;case"source":Fe("error",t);break;case"img":case"image":case"link":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"input":Fe("invalid",t),Nf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Fe("invalid",t);break;case"textarea":Fe("invalid",t),Mf(t,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||Lp(t.textContent,i)?(l.popover!=null&&(Fe("beforetoggle",t),Fe("toggle",t)),l.onScroll!=null&&Fe("scroll",t),l.onScrollEnd!=null&&Fe("scrollend",t),l.onClick!=null&&(t.onclick=Un),t=!0):t=!1,t||si(e,!0)}function wd(e){for(Ot=e.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:gn=!1;return;case 27:case 3:gn=!0;return;default:Ot=Ot.return}}function va(e){if(e!==Ot)return!1;if(!Xe)return wd(e),Xe=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Pu(e.type,e.memoizedProps)),i=!i),i&&ct&&si(e),wd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ct=Vp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ct=Vp(e)}else t===27?(t=ct,Si(e.type)?(e=Zu,Zu=null,ct=e):ct=t):ct=Ot?vn(e.stateNode.nextSibling):null;return!0}function qi(){ct=Ot=null,Xe=!1}function Es(){var e=oi;return e!==null&&(Zt===null?Zt=e:Zt.push.apply(Zt,e),oi=null),e}function pr(e){oi===null?oi=[e]:oi.push(e)}var Cs=j(null),Ii=null,Fn=null;function ui(e,t,i){R(Cs,t._currentValue),t._currentValue=i}function Pn(e){e._currentValue=Cs.current,B(Cs)}function Ts(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function As(e,t,i,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var h=c.dependencies;if(h!==null){var b=c.child;h=h.firstContext;e:for(;h!==null;){var A=h;h=c;for(var H=0;H<t.length;H++)if(A.context===t[H]){h.lanes|=i,A=h.alternate,A!==null&&(A.lanes|=i),Ts(h.return,i,e),l||(b=null);break e}h=A.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(o(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),Ts(b,i,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function xa(e,t,i,l){e=null;for(var c=t,h=!1;c!==null;){if(!h){if((c.flags&524288)!==0)h=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(o(387));if(b=b.memoizedProps,b!==null){var A=c.type;$t(c.pendingProps.value,b.value)||(e!==null?e.push(A):e=[A])}}else if(c===Ae.current){if(b=c.alternate,b===null)throw Error(o(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ir):e=[Ir])}c=c.return}e!==null&&As(t,e,i,l),t.flags|=262144}function El(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fi(e){Ii=e,Fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Mt(e){return Sd(Ii,e)}function Cl(e,t){return Ii===null&&Fi(e),Sd(e,t)}function Sd(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Fn===null){if(e===null)throw Error(o(308));Fn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fn=Fn.next=t;return i}var Py=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Yy=n.unstable_scheduleCallback,Gy=n.unstable_NormalPriority,St={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function js(){return{controller:new Py,data:new Map,refCount:0}}function mr(e){e.refCount--,e.refCount===0&&Yy(Gy,function(){e.controller.abort()})}var gr=null,Rs=0,ba=0,wa=null;function Vy(e,t){if(gr===null){var i=gr=[];Rs=0,ba=Ou(),wa={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Rs++,t.then(kd,kd),t}function kd(){if(--Rs===0&&gr!==null){wa!==null&&(wa.status="fulfilled");var e=gr;gr=null,ba=0,wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Xy(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<i.length;c++)(0,i[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),l}var _d=G.S;G.S=function(e,t){op=ne(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Vy(e,t),_d!==null&&_d(e,t)};var Pi=j(null);function Ds(){var e=Pi.current;return e!==null?e:lt.pooledCache}function Tl(e,t){t===null?R(Pi,Pi.current):R(Pi,t.pool)}function zd(){var e=Ds();return e===null?null:{parent:St._currentValue,pool:e}}var Sa=Error(o(460)),Ns=Error(o(474)),Al=Error(o(542)),jl={then:function(){}};function Ed(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cd(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Un,Un),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ad(e),e;default:if(typeof t.status=="string")t.then(Un,Un);else{if(e=lt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ad(e),e}throw Gi=t,Sa}}function Yi(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Gi=i,Sa):i}}var Gi=null;function Td(){if(Gi===null)throw Error(o(459));var e=Gi;return Gi=null,e}function Ad(e){if(e===Sa||e===Al)throw Error(o(483))}var ka=null,yr=0;function Rl(e){var t=yr;return yr+=1,ka===null&&(ka=[]),Cd(ka,e,t)}function vr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Dl(e,t){throw t.$$typeof===x?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jd(e){function t(Q,Y){if(e){var J=Q.deletions;J===null?(Q.deletions=[Y],Q.flags|=16):J.push(Y)}}function i(Q,Y){if(!e)return null;for(;Y!==null;)t(Q,Y),Y=Y.sibling;return null}function l(Q){for(var Y=new Map;Q!==null;)Q.key!==null?Y.set(Q.key,Q):Y.set(Q.index,Q),Q=Q.sibling;return Y}function c(Q,Y){return Q=qn(Q,Y),Q.index=0,Q.sibling=null,Q}function h(Q,Y,J){return Q.index=J,e?(J=Q.alternate,J!==null?(J=J.index,J<Y?(Q.flags|=67108866,Y):J):(Q.flags|=67108866,Y)):(Q.flags|=1048576,Y)}function b(Q){return e&&Q.alternate===null&&(Q.flags|=67108866),Q}function A(Q,Y,J,ge){return Y===null||Y.tag!==6?(Y=ws(J,Q.mode,ge),Y.return=Q,Y):(Y=c(Y,J),Y.return=Q,Y)}function H(Q,Y,J,ge){var Re=J.type;return Re===w?he(Q,Y,J.props.children,ge,J.key):Y!==null&&(Y.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===ae&&Yi(Re)===Y.type)?(Y=c(Y,J.props),vr(Y,J),Y.return=Q,Y):(Y=_l(J.type,J.key,J.props,null,Q.mode,ge),vr(Y,J),Y.return=Q,Y)}function $(Q,Y,J,ge){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==J.containerInfo||Y.stateNode.implementation!==J.implementation?(Y=Ss(J,Q.mode,ge),Y.return=Q,Y):(Y=c(Y,J.children||[]),Y.return=Q,Y)}function he(Q,Y,J,ge,Re){return Y===null||Y.tag!==7?(Y=Hi(J,Q.mode,ge,Re),Y.return=Q,Y):(Y=c(Y,J),Y.return=Q,Y)}function ve(Q,Y,J){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=ws(""+Y,Q.mode,J),Y.return=Q,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:return J=_l(Y.type,Y.key,Y.props,null,Q.mode,J),vr(J,Y),J.return=Q,J;case E:return Y=Ss(Y,Q.mode,J),Y.return=Q,Y;case ae:return Y=Yi(Y),ve(Q,Y,J)}if(F(Y)||O(Y))return Y=Hi(Y,Q.mode,J,null),Y.return=Q,Y;if(typeof Y.then=="function")return ve(Q,Rl(Y),J);if(Y.$$typeof===D)return ve(Q,Cl(Q,Y),J);Dl(Q,Y)}return null}function ie(Q,Y,J,ge){var Re=Y!==null?Y.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Re!==null?null:A(Q,Y,""+J,ge);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case y:return J.key===Re?H(Q,Y,J,ge):null;case E:return J.key===Re?$(Q,Y,J,ge):null;case ae:return J=Yi(J),ie(Q,Y,J,ge)}if(F(J)||O(J))return Re!==null?null:he(Q,Y,J,ge,null);if(typeof J.then=="function")return ie(Q,Y,Rl(J),ge);if(J.$$typeof===D)return ie(Q,Y,Cl(Q,J),ge);Dl(Q,J)}return null}function se(Q,Y,J,ge,Re){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return Q=Q.get(J)||null,A(Y,Q,""+ge,Re);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case y:return Q=Q.get(ge.key===null?J:ge.key)||null,H(Y,Q,ge,Re);case E:return Q=Q.get(ge.key===null?J:ge.key)||null,$(Y,Q,ge,Re);case ae:return ge=Yi(ge),se(Q,Y,J,ge,Re)}if(F(ge)||O(ge))return Q=Q.get(J)||null,he(Y,Q,ge,Re,null);if(typeof ge.then=="function")return se(Q,Y,J,Rl(ge),Re);if(ge.$$typeof===D)return se(Q,Y,J,Cl(Y,ge),Re);Dl(Y,ge)}return null}function ze(Q,Y,J,ge){for(var Re=null,Ze=null,Te=Y,He=Y=0,Ve=null;Te!==null&&He<J.length;He++){Te.index>He?(Ve=Te,Te=null):Ve=Te.sibling;var Ke=ie(Q,Te,J[He],ge);if(Ke===null){Te===null&&(Te=Ve);break}e&&Te&&Ke.alternate===null&&t(Q,Te),Y=h(Ke,Y,He),Ze===null?Re=Ke:Ze.sibling=Ke,Ze=Ke,Te=Ve}if(He===J.length)return i(Q,Te),Xe&&In(Q,He),Re;if(Te===null){for(;He<J.length;He++)Te=ve(Q,J[He],ge),Te!==null&&(Y=h(Te,Y,He),Ze===null?Re=Te:Ze.sibling=Te,Ze=Te);return Xe&&In(Q,He),Re}for(Te=l(Te);He<J.length;He++)Ve=se(Te,Q,He,J[He],ge),Ve!==null&&(e&&Ve.alternate!==null&&Te.delete(Ve.key===null?He:Ve.key),Y=h(Ve,Y,He),Ze===null?Re=Ve:Ze.sibling=Ve,Ze=Ve);return e&&Te.forEach(function(Ci){return t(Q,Ci)}),Xe&&In(Q,He),Re}function De(Q,Y,J,ge){if(J==null)throw Error(o(151));for(var Re=null,Ze=null,Te=Y,He=Y=0,Ve=null,Ke=J.next();Te!==null&&!Ke.done;He++,Ke=J.next()){Te.index>He?(Ve=Te,Te=null):Ve=Te.sibling;var Ci=ie(Q,Te,Ke.value,ge);if(Ci===null){Te===null&&(Te=Ve);break}e&&Te&&Ci.alternate===null&&t(Q,Te),Y=h(Ci,Y,He),Ze===null?Re=Ci:Ze.sibling=Ci,Ze=Ci,Te=Ve}if(Ke.done)return i(Q,Te),Xe&&In(Q,He),Re;if(Te===null){for(;!Ke.done;He++,Ke=J.next())Ke=ve(Q,Ke.value,ge),Ke!==null&&(Y=h(Ke,Y,He),Ze===null?Re=Ke:Ze.sibling=Ke,Ze=Ke);return Xe&&In(Q,He),Re}for(Te=l(Te);!Ke.done;He++,Ke=J.next())Ke=se(Te,Q,He,Ke.value,ge),Ke!==null&&(e&&Ke.alternate!==null&&Te.delete(Ke.key===null?He:Ke.key),Y=h(Ke,Y,He),Ze===null?Re=Ke:Ze.sibling=Ke,Ze=Ke);return e&&Te.forEach(function(ax){return t(Q,ax)}),Xe&&In(Q,He),Re}function rt(Q,Y,J,ge){if(typeof J=="object"&&J!==null&&J.type===w&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case y:e:{for(var Re=J.key;Y!==null;){if(Y.key===Re){if(Re=J.type,Re===w){if(Y.tag===7){i(Q,Y.sibling),ge=c(Y,J.props.children),ge.return=Q,Q=ge;break e}}else if(Y.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===ae&&Yi(Re)===Y.type){i(Q,Y.sibling),ge=c(Y,J.props),vr(ge,J),ge.return=Q,Q=ge;break e}i(Q,Y);break}else t(Q,Y);Y=Y.sibling}J.type===w?(ge=Hi(J.props.children,Q.mode,ge,J.key),ge.return=Q,Q=ge):(ge=_l(J.type,J.key,J.props,null,Q.mode,ge),vr(ge,J),ge.return=Q,Q=ge)}return b(Q);case E:e:{for(Re=J.key;Y!==null;){if(Y.key===Re)if(Y.tag===4&&Y.stateNode.containerInfo===J.containerInfo&&Y.stateNode.implementation===J.implementation){i(Q,Y.sibling),ge=c(Y,J.children||[]),ge.return=Q,Q=ge;break e}else{i(Q,Y);break}else t(Q,Y);Y=Y.sibling}ge=Ss(J,Q.mode,ge),ge.return=Q,Q=ge}return b(Q);case ae:return J=Yi(J),rt(Q,Y,J,ge)}if(F(J))return ze(Q,Y,J,ge);if(O(J)){if(Re=O(J),typeof Re!="function")throw Error(o(150));return J=Re.call(J),De(Q,Y,J,ge)}if(typeof J.then=="function")return rt(Q,Y,Rl(J),ge);if(J.$$typeof===D)return rt(Q,Y,Cl(Q,J),ge);Dl(Q,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,Y!==null&&Y.tag===6?(i(Q,Y.sibling),ge=c(Y,J),ge.return=Q,Q=ge):(i(Q,Y),ge=ws(J,Q.mode,ge),ge.return=Q,Q=ge),b(Q)):i(Q,Y)}return function(Q,Y,J,ge){try{yr=0;var Re=rt(Q,Y,J,ge);return ka=null,Re}catch(Te){if(Te===Sa||Te===Al)throw Te;var Ze=en(29,Te,null,Q.mode);return Ze.lanes=ge,Ze.return=Q,Ze}finally{}}}var Vi=jd(!0),Rd=jd(!1),ci=!1;function Os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ms(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function di(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Qe&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=kl(e),pd(e,null,i),t}return Sl(e,l,t,i),kl(e)}function xr(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Sf(e,i)}}function Bs(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var c=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?c=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?c=h=t:h=h.next=t}else c=h=t;i={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Ls=!1;function br(){if(Ls){var e=wa;if(e!==null)throw e}}function wr(e,t,i,l){Ls=!1;var c=e.updateQueue;ci=!1;var h=c.firstBaseUpdate,b=c.lastBaseUpdate,A=c.shared.pending;if(A!==null){c.shared.pending=null;var H=A,$=H.next;H.next=null,b===null?h=$:b.next=$,b=H;var he=e.alternate;he!==null&&(he=he.updateQueue,A=he.lastBaseUpdate,A!==b&&(A===null?he.firstBaseUpdate=$:A.next=$,he.lastBaseUpdate=H))}if(h!==null){var ve=c.baseState;b=0,he=$=H=null,A=h;do{var ie=A.lane&-536870913,se=ie!==A.lane;if(se?(Ge&ie)===ie:(l&ie)===ie){ie!==0&&ie===ba&&(Ls=!0),he!==null&&(he=he.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var ze=e,De=A;ie=t;var rt=i;switch(De.tag){case 1:if(ze=De.payload,typeof ze=="function"){ve=ze.call(rt,ve,ie);break e}ve=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=De.payload,ie=typeof ze=="function"?ze.call(rt,ve,ie):ze,ie==null)break e;ve=v({},ve,ie);break e;case 2:ci=!0}}ie=A.callback,ie!==null&&(e.flags|=64,se&&(e.flags|=8192),se=c.callbacks,se===null?c.callbacks=[ie]:se.push(ie))}else se={lane:ie,tag:A.tag,payload:A.payload,callback:A.callback,next:null},he===null?($=he=se,H=ve):he=he.next=se,b|=ie;if(A=A.next,A===null){if(A=c.shared.pending,A===null)break;se=A,A=se.next,se.next=null,c.lastBaseUpdate=se,c.shared.pending=null}}while(!0);he===null&&(H=ve),c.baseState=H,c.firstBaseUpdate=$,c.lastBaseUpdate=he,h===null&&(c.shared.lanes=0),yi|=b,e.lanes=b,e.memoizedState=ve}}function Dd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Nd(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Dd(i[e],t)}var _a=j(null),Nl=j(0);function Od(e,t){e=Jn,R(Nl,e),R(_a,t),Jn=e|t.baseLanes}function Us(){R(Nl,Jn),R(_a,_a.current)}function Hs(){Jn=Nl.current,B(_a),B(Nl)}var tn=j(null),yn=null;function hi(e){var t=e.alternate;R(bt,bt.current&1),R(tn,e),yn===null&&(t===null||_a.current!==null||t.memoizedState!==null)&&(yn=e)}function qs(e){R(bt,bt.current),R(tn,e),yn===null&&(yn=e)}function Md(e){e.tag===22?(R(bt,bt.current),R(tn,e),yn===null&&(yn=e)):pi()}function pi(){R(bt,bt.current),R(tn,tn.current)}function nn(e){B(tn),yn===e&&(yn=null),B(bt)}var bt=j(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Vu(i)||Xu(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Yn=0,Be=null,it=null,kt=null,Ml=!1,za=!1,Xi=!1,Bl=0,Sr=0,Ea=null,Zy=0;function vt(){throw Error(o(321))}function Is(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!$t(e[i],t[i]))return!1;return!0}function Fs(e,t,i,l,c,h){return Yn=h,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?vh:iu,Xi=!1,h=i(l,c),Xi=!1,za&&(h=Ld(t,i,l,c)),Bd(e),h}function Bd(e){G.H=zr;var t=it!==null&&it.next!==null;if(Yn=0,kt=it=Be=null,Ml=!1,Sr=0,Ea=null,t)throw Error(o(300));e===null||_t||(e=e.dependencies,e!==null&&El(e)&&(_t=!0))}function Ld(e,t,i,l){Be=e;var c=0;do{if(za&&(Ea=null),Sr=0,za=!1,25<=c)throw Error(o(301));if(c+=1,kt=it=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}G.H=xh,h=t(i,l)}while(za);return h}function Ky(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?kr(t):t,e=e.useState()[0],(it!==null?it.memoizedState:null)!==e&&(Be.flags|=1024),t}function Ps(){var e=Bl!==0;return Bl=0,e}function Ys(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function Gs(e){if(Ml){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ml=!1}Yn=0,kt=it=Be=null,za=!1,Sr=Bl=0,Ea=null}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?Be.memoizedState=kt=e:kt=kt.next=e,kt}function wt(){if(it===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=it.next;var t=kt===null?Be.memoizedState:kt.next;if(t!==null)kt=t,it=e;else{if(e===null)throw Be.alternate===null?Error(o(467)):Error(o(310));it=e,e={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},kt===null?Be.memoizedState=kt=e:kt=kt.next=e}return kt}function Ll(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kr(e){var t=Sr;return Sr+=1,Ea===null&&(Ea=[]),e=Cd(Ea,e,t),t=Be,(kt===null?t.memoizedState:kt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?vh:iu),e}function Ul(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kr(e);if(e.$$typeof===D)return Mt(e)}throw Error(o(438,String(e)))}function Vs(e){var t=null,i=Be.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=Be.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Ll(),Be.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=ce;return t.index++,i}function Gn(e,t){return typeof t=="function"?t(e):t}function Hl(e){var t=wt();return Xs(t,it,e)}function Xs(e,t,i){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var c=e.baseQueue,h=l.pending;if(h!==null){if(c!==null){var b=c.next;c.next=h.next,h.next=b}t.baseQueue=c=h,l.pending=null}if(h=e.baseState,c===null)e.memoizedState=h;else{t=c.next;var A=b=null,H=null,$=t,he=!1;do{var ve=$.lane&-536870913;if(ve!==$.lane?(Ge&ve)===ve:(Yn&ve)===ve){var ie=$.revertLane;if(ie===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),ve===ba&&(he=!0);else if((Yn&ie)===ie){$=$.next,ie===ba&&(he=!0);continue}else ve={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},H===null?(A=H=ve,b=h):H=H.next=ve,Be.lanes|=ie,yi|=ie;ve=$.action,Xi&&i(h,ve),h=$.hasEagerState?$.eagerState:i(h,ve)}else ie={lane:ve,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},H===null?(A=H=ie,b=h):H=H.next=ie,Be.lanes|=ve,yi|=ve;$=$.next}while($!==null&&$!==t);if(H===null?b=h:H.next=A,!$t(h,e.memoizedState)&&(_t=!0,he&&(i=wa,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=H,l.lastRenderedState=h}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Zs(e){var t=wt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var l=i.dispatch,c=i.pending,h=t.memoizedState;if(c!==null){i.pending=null;var b=c=c.next;do h=e(h,b.action),b=b.next;while(b!==c);$t(h,t.memoizedState)||(_t=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),i.lastRenderedState=h}return[h,l]}function Ud(e,t,i){var l=Be,c=wt(),h=Xe;if(h){if(i===void 0)throw Error(o(407));i=i()}else i=t();var b=!$t((it||c).memoizedState,i);if(b&&(c.memoizedState=i,_t=!0),c=c.queue,Ws(Id.bind(null,l,c,e),[e]),c.getSnapshot!==t||b||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,Ca(9,{destroy:void 0},qd.bind(null,l,c,i,t),null),lt===null)throw Error(o(349));h||(Yn&127)!==0||Hd(l,t,i)}return i}function Hd(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Be.updateQueue,t===null?(t=Ll(),Be.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function qd(e,t,i,l){t.value=i,t.getSnapshot=l,Fd(t)&&Pd(e)}function Id(e,t,i){return i(function(){Fd(t)&&Pd(e)})}function Fd(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!$t(e,i)}catch{return!0}}function Pd(e){var t=Ui(e,2);t!==null&&Kt(t,e,2)}function Ks(e){var t=It();if(typeof e=="function"){var i=e;if(e=i(),Xi){yt(!0);try{i()}finally{yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function Yd(e,t,i,l){return e.baseState=i,Xs(e,it,typeof l=="function"?l:Gn)}function Qy(e,t,i,l,c){if(Fl(e))throw Error(o(485));if(e=t.action,e!==null){var h={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};G.T!==null?i(!0):h.isTransition=!1,l(h),i=t.pending,i===null?(h.next=t.pending=h,Gd(t,h)):(h.next=i.next,t.pending=i.next=h)}}function Gd(e,t){var i=t.action,l=t.payload,c=e.state;if(t.isTransition){var h=G.T,b={};G.T=b;try{var A=i(c,l),H=G.S;H!==null&&H(b,A),Vd(e,t,A)}catch($){Qs(e,t,$)}finally{h!==null&&b.types!==null&&(h.types=b.types),G.T=h}}else try{h=i(c,l),Vd(e,t,h)}catch($){Qs(e,t,$)}}function Vd(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Xd(e,t,l)},function(l){return Qs(e,t,l)}):Xd(e,t,i)}function Xd(e,t,i){t.status="fulfilled",t.value=i,Zd(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Gd(e,i)))}function Qs(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,Zd(t),t=t.next;while(t!==l)}e.action=null}function Zd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kd(e,t){return t}function Qd(e,t){if(Xe){var i=lt.formState;if(i!==null){e:{var l=Be;if(Xe){if(ct){t:{for(var c=ct,h=gn;c.nodeType!==8;){if(!h){c=null;break t}if(c=vn(c.nextSibling),c===null){c=null;break t}}h=c.data,c=h==="F!"||h==="F"?c:null}if(c){ct=vn(c.nextSibling),l=c.data==="F!";break e}}si(l)}l=!1}l&&(t=i[0])}}return i=It(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kd,lastRenderedState:t},i.queue=l,i=mh.bind(null,Be,l),l.dispatch=i,l=Ks(!1),h=nu.bind(null,Be,!1,l.queue),l=It(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,i=Qy.bind(null,Be,c,h,i),c.dispatch=i,l.memoizedState=e,[t,i,!1]}function Wd(e){var t=wt();return Jd(t,it,e)}function Jd(e,t,i){if(t=Xs(e,t,Kd)[0],e=Hl(Gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=kr(t)}catch(b){throw b===Sa?Al:b}else l=t;t=wt();var c=t.queue,h=c.dispatch;return i!==t.memoizedState&&(Be.flags|=2048,Ca(9,{destroy:void 0},Wy.bind(null,c,i),null)),[l,h,e]}function Wy(e,t){e.action=t}function $d(e){var t=wt(),i=it;if(i!==null)return Jd(t,i,e);wt(),t=t.memoizedState,i=wt();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function Ca(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=Be.updateQueue,t===null&&(t=Ll(),Be.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function eh(){return wt().memoizedState}function ql(e,t,i,l){var c=It();Be.flags|=e,c.memoizedState=Ca(1|t,{destroy:void 0},i,l===void 0?null:l)}function Il(e,t,i,l){var c=wt();l=l===void 0?null:l;var h=c.memoizedState.inst;it!==null&&l!==null&&Is(l,it.memoizedState.deps)?c.memoizedState=Ca(t,h,i,l):(Be.flags|=e,c.memoizedState=Ca(1|t,h,i,l))}function th(e,t){ql(8390656,8,e,t)}function Ws(e,t){Il(2048,8,e,t)}function Jy(e){Be.flags|=4;var t=Be.updateQueue;if(t===null)t=Ll(),Be.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function nh(e){var t=wt().memoizedState;return Jy({ref:t,nextImpl:e}),function(){if((Qe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ih(e,t){return Il(4,2,e,t)}function ah(e,t){return Il(4,4,e,t)}function rh(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lh(e,t,i){i=i!=null?i.concat([e]):null,Il(4,4,rh.bind(null,t,e),i)}function Js(){}function oh(e,t){var i=wt();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&Is(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function sh(e,t){var i=wt();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&Is(t,l[1]))return l[0];if(l=e(),Xi){yt(!0);try{e()}finally{yt(!1)}}return i.memoizedState=[l,t],l}function $s(e,t,i){return i===void 0||(Yn&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=up(),Be.lanes|=e,yi|=e,i)}function uh(e,t,i,l){return $t(i,t)?i:_a.current!==null?(e=$s(e,i,l),$t(e,t)||(_t=!0),e):(Yn&42)===0||(Yn&1073741824)!==0&&(Ge&261930)===0?(_t=!0,e.memoizedState=i):(e=up(),Be.lanes|=e,yi|=e,t)}function ch(e,t,i,l,c){var h=X.p;X.p=h!==0&&8>h?h:8;var b=G.T,A={};G.T=A,nu(e,!1,t,i);try{var H=c(),$=G.S;if($!==null&&$(A,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var he=Xy(H,l);_r(e,t,he,ln(e))}else _r(e,t,l,ln(e))}catch(ve){_r(e,t,{then:function(){},status:"rejected",reason:ve},ln())}finally{X.p=h,b!==null&&A.types!==null&&(b.types=A.types),G.T=b}}function $y(){}function eu(e,t,i,l){if(e.tag!==5)throw Error(o(476));var c=fh(e).queue;ch(e,c,t,be,i===null?$y:function(){return dh(e),i(l)})}function fh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:be,baseState:be,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:be},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dh(e){var t=fh(e);t.next===null&&(t=e.alternate.memoizedState),_r(e,t.next.queue,{},ln())}function tu(){return Mt(Ir)}function hh(){return wt().memoizedState}function ph(){return wt().memoizedState}function ev(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=ln();e=fi(i);var l=di(t,e,i);l!==null&&(Kt(l,t,i),xr(l,t,i)),t={cache:js()},e.payload=t;return}t=t.return}}function tv(e,t,i){var l=ln();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Fl(e)?gh(t,i):(i=xs(e,t,i,l),i!==null&&(Kt(i,e,l),yh(i,t,l)))}function mh(e,t,i){var l=ln();_r(e,t,i,l)}function _r(e,t,i,l){var c={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Fl(e))gh(t,c);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var b=t.lastRenderedState,A=h(b,i);if(c.hasEagerState=!0,c.eagerState=A,$t(A,b))return Sl(e,t,c,0),lt===null&&wl(),!1}catch{}finally{}if(i=xs(e,t,c,l),i!==null)return Kt(i,e,l),yh(i,t,l),!0}return!1}function nu(e,t,i,l){if(l={lane:2,revertLane:Ou(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Fl(e)){if(t)throw Error(o(479))}else t=xs(e,i,l,2),t!==null&&Kt(t,e,2)}function Fl(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function gh(e,t){za=Ml=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function yh(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Sf(e,i)}}var zr={readContext:Mt,use:Ul,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};zr.useEffectEvent=vt;var vh={readContext:Mt,use:Ul,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:th,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,ql(4194308,4,rh.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){ql(4,2,e,t)},useMemo:function(e,t){var i=It();t=t===void 0?null:t;var l=e();if(Xi){yt(!0);try{e()}finally{yt(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=It();if(i!==void 0){var c=i(t);if(Xi){yt(!0);try{i(t)}finally{yt(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=tv.bind(null,Be,e),[l.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:function(e){e=Ks(e);var t=e.queue,i=mh.bind(null,Be,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Js,useDeferredValue:function(e,t){var i=It();return $s(i,e,t)},useTransition:function(){var e=Ks(!1);return e=ch.bind(null,Be,e.queue,!0,!1),It().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=Be,c=It();if(Xe){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),lt===null)throw Error(o(349));(Ge&127)!==0||Hd(l,t,i)}c.memoizedState=i;var h={value:i,getSnapshot:t};return c.queue=h,th(Id.bind(null,l,h,e),[e]),l.flags|=2048,Ca(9,{destroy:void 0},qd.bind(null,l,h,i,t),null),i},useId:function(){var e=It(),t=lt.identifierPrefix;if(Xe){var i=Tn,l=Cn;i=(l&~(1<<32-Ue(l)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Bl++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=Zy++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tu,useFormState:Qd,useActionState:Qd,useOptimistic:function(e){var t=It();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=nu.bind(null,Be,!0,i),i.dispatch=t,[e,t]},useMemoCache:Vs,useCacheRefresh:function(){return It().memoizedState=ev.bind(null,Be)},useEffectEvent:function(e){var t=It(),i={impl:e};return t.memoizedState=i,function(){if((Qe&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},iu={readContext:Mt,use:Ul,useCallback:oh,useContext:Mt,useEffect:Ws,useImperativeHandle:lh,useInsertionEffect:ih,useLayoutEffect:ah,useMemo:sh,useReducer:Hl,useRef:eh,useState:function(){return Hl(Gn)},useDebugValue:Js,useDeferredValue:function(e,t){var i=wt();return uh(i,it.memoizedState,e,t)},useTransition:function(){var e=Hl(Gn)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:kr(e),t]},useSyncExternalStore:Ud,useId:hh,useHostTransitionStatus:tu,useFormState:Wd,useActionState:Wd,useOptimistic:function(e,t){var i=wt();return Yd(i,it,e,t)},useMemoCache:Vs,useCacheRefresh:ph};iu.useEffectEvent=nh;var xh={readContext:Mt,use:Ul,useCallback:oh,useContext:Mt,useEffect:Ws,useImperativeHandle:lh,useInsertionEffect:ih,useLayoutEffect:ah,useMemo:sh,useReducer:Zs,useRef:eh,useState:function(){return Zs(Gn)},useDebugValue:Js,useDeferredValue:function(e,t){var i=wt();return it===null?$s(i,e,t):uh(i,it.memoizedState,e,t)},useTransition:function(){var e=Zs(Gn)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:kr(e),t]},useSyncExternalStore:Ud,useId:hh,useHostTransitionStatus:tu,useFormState:$d,useActionState:$d,useOptimistic:function(e,t){var i=wt();return it!==null?Yd(i,it,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Vs,useCacheRefresh:ph};xh.useEffectEvent=nh;function au(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:v({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var ru={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=ln(),c=fi(l);c.payload=t,i!=null&&(c.callback=i),t=di(e,c,l),t!==null&&(Kt(t,e,l),xr(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=ln(),c=fi(l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=di(e,c,l),t!==null&&(Kt(t,e,l),xr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=ln(),l=fi(i);l.tag=2,t!=null&&(l.callback=t),t=di(e,l,i),t!==null&&(Kt(t,e,i),xr(t,e,i))}};function bh(e,t,i,l,c,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,b):t.prototype&&t.prototype.isPureReactComponent?!fr(i,l)||!fr(c,h):!0}function wh(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&ru.enqueueReplaceState(t,t.state,null)}function Zi(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=v({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}function Sh(e){bl(e)}function kh(e){console.error(e)}function _h(e){bl(e)}function Pl(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function zh(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function lu(e,t,i){return i=fi(i),i.tag=3,i.payload={element:null},i.callback=function(){Pl(e,t)},i}function Eh(e){return e=fi(e),e.tag=3,e}function Ch(e,t,i,l){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var h=l.value;e.payload=function(){return c(h)},e.callback=function(){zh(t,i,l)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){zh(t,i,l),typeof c!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var A=l.stack;this.componentDidCatch(l.value,{componentStack:A!==null?A:""})})}function nv(e,t,i,l,c){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&xa(t,i,c,!0),i=tn.current,i!==null){switch(i.tag){case 31:case 13:return yn===null?to():i.alternate===null&&xt===0&&(xt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,l===jl?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),Ru(e,l,c)),!1;case 22:return i.flags|=65536,l===jl?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),Ru(e,l,c)),!1}throw Error(o(435,i.tag))}return Ru(e,l,c),to(),!1}if(Xe)return t=tn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==zs&&(e=Error(o(422),{cause:l}),pr(hn(e,i)))):(l!==zs&&(t=Error(o(423),{cause:l}),pr(hn(t,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=hn(l,i),c=lu(e.stateNode,l,c),Bs(e,c),xt!==4&&(xt=2)),!1;var h=Error(o(520),{cause:l});if(h=hn(h,i),Nr===null?Nr=[h]:Nr.push(h),xt!==4&&(xt=2),t===null)return!0;l=hn(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=lu(i.stateNode,l,e),Bs(i,e),!1;case 1:if(t=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(vi===null||!vi.has(h))))return i.flags|=65536,c&=-c,i.lanes|=c,c=Eh(c),Ch(c,e,i,l),Bs(i,c),!1}i=i.return}while(i!==null);return!1}var ou=Error(o(461)),_t=!1;function Bt(e,t,i,l){t.child=e===null?Rd(t,null,i,l):Vi(t,e.child,i,l)}function Th(e,t,i,l,c){i=i.render;var h=t.ref;if("ref"in l){var b={};for(var A in l)A!=="ref"&&(b[A]=l[A])}else b=l;return Fi(t),l=Fs(e,t,i,b,h,c),A=Ps(),e!==null&&!_t?(Ys(e,t,c),Vn(e,t,c)):(Xe&&A&&ks(t),t.flags|=1,Bt(e,t,l,c),t.child)}function Ah(e,t,i,l,c){if(e===null){var h=i.type;return typeof h=="function"&&!bs(h)&&h.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=h,jh(e,t,h,l,c)):(e=_l(i.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!mu(e,c)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:fr,i(b,l)&&e.ref===t.ref)return Vn(e,t,c)}return t.flags|=1,e=qn(h,l),e.ref=t.ref,e.return=t,t.child=e}function jh(e,t,i,l,c){if(e!==null){var h=e.memoizedProps;if(fr(h,l)&&e.ref===t.ref)if(_t=!1,t.pendingProps=l=h,mu(e,c))(e.flags&131072)!==0&&(_t=!0);else return t.lanes=e.lanes,Vn(e,t,c)}return su(e,t,i,l,c)}function Rh(e,t,i,l){var c=l.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~h}else l=0,t.child=null;return Dh(e,t,h,i,l)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Tl(t,h!==null?h.cachePool:null),h!==null?Od(t,h):Us(),Md(t);else return l=t.lanes=536870912,Dh(e,t,h!==null?h.baseLanes|i:i,i,l)}else h!==null?(Tl(t,h.cachePool),Od(t,h),pi(),t.memoizedState=null):(e!==null&&Tl(t,null),Us(),pi());return Bt(e,t,c,i),t.child}function Er(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Dh(e,t,i,l,c){var h=Ds();return h=h===null?null:{parent:St._currentValue,pool:h},t.memoizedState={baseLanes:i,cachePool:h},e!==null&&Tl(t,null),Us(),Md(t),e!==null&&xa(e,t,l,!0),t.childLanes=c,null}function Yl(e,t){return t=Vl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Nh(e,t,i){return Vi(t,e.child,null,i),e=Yl(t,t.pendingProps),e.flags|=2,nn(t),t.memoizedState=null,e}function iv(e,t,i){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Xe){if(l.mode==="hidden")return e=Yl(t,l),t.lanes=536870912,Er(null,e);if(qs(t),(e=ct)?(e=Gp(e,gn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:li!==null?{id:Cn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},i=gd(e),i.return=t,t.child=i,Ot=t,ct=null)):e=null,e===null)throw si(t);return t.lanes=536870912,null}return Yl(t,l)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(qs(t),c)if(t.flags&256)t.flags&=-257,t=Nh(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(_t||xa(e,t,i,!1),c=(i&e.childLanes)!==0,_t||c){if(l=lt,l!==null&&(b=kf(l,i),b!==0&&b!==h.retryLane))throw h.retryLane=b,Ui(e,b),Kt(l,e,b),ou;to(),t=Nh(e,t,i)}else e=h.treeContext,ct=vn(b.nextSibling),Ot=t,Xe=!0,oi=null,gn=!1,e!==null&&xd(t,e),t=Yl(t,l),t.flags|=4096;return t}return e=qn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gl(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function su(e,t,i,l,c){return Fi(t),i=Fs(e,t,i,l,void 0,c),l=Ps(),e!==null&&!_t?(Ys(e,t,c),Vn(e,t,c)):(Xe&&l&&ks(t),t.flags|=1,Bt(e,t,i,c),t.child)}function Oh(e,t,i,l,c,h){return Fi(t),t.updateQueue=null,i=Ld(t,l,i,c),Bd(e),l=Ps(),e!==null&&!_t?(Ys(e,t,h),Vn(e,t,h)):(Xe&&l&&ks(t),t.flags|=1,Bt(e,t,i,h),t.child)}function Mh(e,t,i,l,c){if(Fi(t),t.stateNode===null){var h=ma,b=i.contextType;typeof b=="object"&&b!==null&&(h=Mt(b)),h=new i(l,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=ru,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=l,h.state=t.memoizedState,h.refs={},Os(t),b=i.contextType,h.context=typeof b=="object"&&b!==null?Mt(b):ma,h.state=t.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(au(t,i,b,l),h.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&ru.enqueueReplaceState(h,h.state,null),wr(t,l,h,c),br(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){h=t.stateNode;var A=t.memoizedProps,H=Zi(i,A);h.props=H;var $=h.context,he=i.contextType;b=ma,typeof he=="object"&&he!==null&&(b=Mt(he));var ve=i.getDerivedStateFromProps;he=typeof ve=="function"||typeof h.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,he||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(A||$!==b)&&wh(t,h,l,b),ci=!1;var ie=t.memoizedState;h.state=ie,wr(t,l,h,c),br(),$=t.memoizedState,A||ie!==$||ci?(typeof ve=="function"&&(au(t,i,ve,l),$=t.memoizedState),(H=ci||bh(t,i,H,l,ie,$,b))?(he||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=$),h.props=l,h.state=$,h.context=b,l=H):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{h=t.stateNode,Ms(e,t),b=t.memoizedProps,he=Zi(i,b),h.props=he,ve=t.pendingProps,ie=h.context,$=i.contextType,H=ma,typeof $=="object"&&$!==null&&(H=Mt($)),A=i.getDerivedStateFromProps,($=typeof A=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==ve||ie!==H)&&wh(t,h,l,H),ci=!1,ie=t.memoizedState,h.state=ie,wr(t,l,h,c),br();var se=t.memoizedState;b!==ve||ie!==se||ci||e!==null&&e.dependencies!==null&&El(e.dependencies)?(typeof A=="function"&&(au(t,i,A,l),se=t.memoizedState),(he=ci||bh(t,i,he,l,ie,se,H)||e!==null&&e.dependencies!==null&&El(e.dependencies))?($||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,se,H),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,se,H)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&ie===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&ie===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=se),h.props=l,h.state=se,h.context=H,l=he):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&ie===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&ie===e.memoizedState||(t.flags|=1024),l=!1)}return h=l,Gl(e,t),l=(t.flags&128)!==0,h||l?(h=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&l?(t.child=Vi(t,e.child,null,c),t.child=Vi(t,null,i,c)):Bt(e,t,i,c),t.memoizedState=h.state,e=t.child):e=Vn(e,t,c),e}function Bh(e,t,i,l){return qi(),t.flags|=256,Bt(e,t,i,l),t.child}var uu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cu(e){return{baseLanes:e,cachePool:zd()}}function fu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=rn),e}function Lh(e,t,i){var l=t.pendingProps,c=!1,h=(t.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),b&&(c=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Xe){if(c?hi(t):pi(),(e=ct)?(e=Gp(e,gn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:li!==null?{id:Cn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},i=gd(e),i.return=t,t.child=i,Ot=t,ct=null)):e=null,e===null)throw si(t);return Xu(e)?t.lanes=32:t.lanes=536870912,null}var A=l.children;return l=l.fallback,c?(pi(),c=t.mode,A=Vl({mode:"hidden",children:A},c),l=Hi(l,c,i,null),A.return=t,l.return=t,A.sibling=l,t.child=A,l=t.child,l.memoizedState=cu(i),l.childLanes=fu(e,b,i),t.memoizedState=uu,Er(null,l)):(hi(t),du(t,A))}var H=e.memoizedState;if(H!==null&&(A=H.dehydrated,A!==null)){if(h)t.flags&256?(hi(t),t.flags&=-257,t=hu(e,t,i)):t.memoizedState!==null?(pi(),t.child=e.child,t.flags|=128,t=null):(pi(),A=l.fallback,c=t.mode,l=Vl({mode:"visible",children:l.children},c),A=Hi(A,c,i,null),A.flags|=2,l.return=t,A.return=t,l.sibling=A,t.child=l,Vi(t,e.child,null,i),l=t.child,l.memoizedState=cu(i),l.childLanes=fu(e,b,i),t.memoizedState=uu,t=Er(null,l));else if(hi(t),Xu(A)){if(b=A.nextSibling&&A.nextSibling.dataset,b)var $=b.dgst;b=$,l=Error(o(419)),l.stack="",l.digest=b,pr({value:l,source:null,stack:null}),t=hu(e,t,i)}else if(_t||xa(e,t,i,!1),b=(i&e.childLanes)!==0,_t||b){if(b=lt,b!==null&&(l=kf(b,i),l!==0&&l!==H.retryLane))throw H.retryLane=l,Ui(e,l),Kt(b,e,l),ou;Vu(A)||to(),t=hu(e,t,i)}else Vu(A)?(t.flags|=192,t.child=e.child,t=null):(e=H.treeContext,ct=vn(A.nextSibling),Ot=t,Xe=!0,oi=null,gn=!1,e!==null&&xd(t,e),t=du(t,l.children),t.flags|=4096);return t}return c?(pi(),A=l.fallback,c=t.mode,H=e.child,$=H.sibling,l=qn(H,{mode:"hidden",children:l.children}),l.subtreeFlags=H.subtreeFlags&65011712,$!==null?A=qn($,A):(A=Hi(A,c,i,null),A.flags|=2),A.return=t,l.return=t,l.sibling=A,t.child=l,Er(null,l),l=t.child,A=e.child.memoizedState,A===null?A=cu(i):(c=A.cachePool,c!==null?(H=St._currentValue,c=c.parent!==H?{parent:H,pool:H}:c):c=zd(),A={baseLanes:A.baseLanes|i,cachePool:c}),l.memoizedState=A,l.childLanes=fu(e,b,i),t.memoizedState=uu,Er(e.child,l)):(hi(t),i=e.child,e=i.sibling,i=qn(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=i,t.memoizedState=null,i)}function du(e,t){return t=Vl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vl(e,t){return e=en(22,e,null,t),e.lanes=0,e}function hu(e,t,i){return Vi(t,e.child,null,i),e=du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uh(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ts(e.return,t,i)}function pu(e,t,i,l,c,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:c,treeForkCount:h}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=i,b.tailMode=c,b.treeForkCount=h)}function Hh(e,t,i){var l=t.pendingProps,c=l.revealOrder,h=l.tail;l=l.children;var b=bt.current,A=(b&2)!==0;if(A?(b=b&1|2,t.flags|=128):b&=1,R(bt,b),Bt(e,t,l,i),l=Xe?hr:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uh(e,i,t);else if(e.tag===19)Uh(e,i,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}switch(c){case"forwards":for(i=t.child,c=null;i!==null;)e=i.alternate,e!==null&&Ol(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=t.child,t.child=null):(c=i.sibling,i.sibling=null),pu(t,!1,c,i,h,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ol(e)===null){t.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}pu(t,!0,i,null,h,l);break;case"together":pu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Vn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),yi|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(xa(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=qn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=qn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function mu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&El(e)))}function av(e,t,i){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),ui(t,St,e.memoizedState.cache),qi();break;case 27:case 5:Pe(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qs(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(hi(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Lh(e,t,i):(hi(t),e=Vn(e,t,i),e!==null?e.sibling:null);hi(t);break;case 19:var c=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(xa(e,t,i,!1),l=(i&t.childLanes)!==0),c){if(l)return Hh(e,t,i);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),R(bt,bt.current),l)break;return null;case 22:return t.lanes=0,Rh(e,t,i,t.pendingProps);case 24:ui(t,St,e.memoizedState.cache)}return Vn(e,t,i)}function qh(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)_t=!0;else{if(!mu(e,i)&&(t.flags&128)===0)return _t=!1,av(e,t,i);_t=(e.flags&131072)!==0}else _t=!1,Xe&&(t.flags&1048576)!==0&&vd(t,hr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Yi(t.elementType),t.type=e,typeof e=="function")bs(e)?(l=Zi(e,l),t.tag=1,t=Mh(null,t,e,l,i)):(t.tag=0,t=su(null,t,e,l,i));else{if(e!=null){var c=e.$$typeof;if(c===I){t.tag=11,t=Th(null,t,e,l,i);break e}else if(c===P){t.tag=14,t=Ah(null,t,e,l,i);break e}}throw t=z(e)||e,Error(o(306,t,""))}}return t;case 0:return su(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,c=Zi(l,t.pendingProps),Mh(e,t,l,c,i);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var h=t.memoizedState;c=h.element,Ms(e,t),wr(t,l,null,i);var b=t.memoizedState;if(l=b.cache,ui(t,St,l),l!==h.cache&&As(t,[St],i,!0),br(),l=b.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Bh(e,t,l,i);break e}else if(l!==c){c=hn(Error(o(424)),t),pr(c),t=Bh(e,t,l,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ct=vn(e.firstChild),Ot=t,Xe=!0,oi=null,gn=!0,i=Rd(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(qi(),l===c){t=Vn(e,t,i);break e}Bt(e,t,l,i)}t=t.child}return t;case 26:return Gl(e,t),e===null?(i=Wp(t.type,null,t.pendingProps,null))?t.memoizedState=i:Xe||(i=t.type,e=t.pendingProps,l=so(_e.current).createElement(i),l[Nt]=t,l[Pt]=e,Lt(l,i,e),jt(l),t.stateNode=l):t.memoizedState=Wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pe(t),e===null&&Xe&&(l=t.stateNode=Zp(t.type,t.pendingProps,_e.current),Ot=t,gn=!0,c=ct,Si(t.type)?(Zu=c,ct=vn(l.firstChild)):ct=c),Bt(e,t,t.pendingProps.children,i),Gl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Xe&&((c=l=ct)&&(l=Ov(l,t.type,t.pendingProps,gn),l!==null?(t.stateNode=l,Ot=t,ct=vn(l.firstChild),gn=!1,c=!0):c=!1),c||si(t)),Pe(t),c=t.type,h=t.pendingProps,b=e!==null?e.memoizedProps:null,l=h.children,Pu(c,h)?l=null:b!==null&&Pu(c,b)&&(t.flags|=32),t.memoizedState!==null&&(c=Fs(e,t,Ky,null,null,i),Ir._currentValue=c),Gl(e,t),Bt(e,t,l,i),t.child;case 6:return e===null&&Xe&&((e=i=ct)&&(i=Mv(i,t.pendingProps,gn),i!==null?(t.stateNode=i,Ot=t,ct=null,e=!0):e=!1),e||si(t)),null;case 13:return Lh(e,t,i);case 4:return Ee(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Vi(t,null,l,i):Bt(e,t,l,i),t.child;case 11:return Th(e,t,t.type,t.pendingProps,i);case 7:return Bt(e,t,t.pendingProps,i),t.child;case 8:return Bt(e,t,t.pendingProps.children,i),t.child;case 12:return Bt(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,ui(t,t.type,l.value),Bt(e,t,l.children,i),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Fi(t),c=Mt(c),l=l(c),t.flags|=1,Bt(e,t,l,i),t.child;case 14:return Ah(e,t,t.type,t.pendingProps,i);case 15:return jh(e,t,t.type,t.pendingProps,i);case 19:return Hh(e,t,i);case 31:return iv(e,t,i);case 22:return Rh(e,t,i,t.pendingProps);case 24:return Fi(t),l=Mt(St),e===null?(c=Ds(),c===null&&(c=lt,h=js(),c.pooledCache=h,h.refCount++,h!==null&&(c.pooledCacheLanes|=i),c=h),t.memoizedState={parent:l,cache:c},Os(t),ui(t,St,c)):((e.lanes&i)!==0&&(Ms(e,t),wr(t,null,null,i),br()),c=e.memoizedState,h=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),ui(t,St,l)):(l=h.cache,ui(t,St,l),l!==c.cache&&As(t,[St],i,!0))),Bt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Xn(e){e.flags|=4}function gu(e,t,i,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(hp())e.flags|=8192;else throw Gi=jl,Ns}else e.flags&=-16777217}function Ih(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!nm(t))if(hp())e.flags|=8192;else throw Gi=jl,Ns}function Xl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bf():536870912,e.lanes|=t,Ra|=t)}function Cr(e,t){if(!Xe)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function rv(e,t,i){var l=t.pendingProps;switch(_s(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pn(St),Ce(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(va(t)?Xn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Es())),ft(t),null;case 26:var c=t.type,h=t.memoizedState;return e===null?(Xn(t),h!==null?(ft(t),Ih(t,h)):(ft(t),gu(t,c,null,l,i))):h?h!==e.memoizedState?(Xn(t),ft(t),Ih(t,h)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Xn(t),ft(t),gu(t,c,e,l,i)),null;case 27:if(Ye(t),i=_e.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ft(t),null}e=re.current,va(t)?bd(t):(e=Zp(c,l,i),t.stateNode=e,Xn(t))}return ft(t),null;case 5:if(Ye(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ft(t),null}if(h=re.current,va(t))bd(t);else{var b=so(_e.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?b.createElement(c,{is:l.is}):b.createElement(c)}}h[Nt]=t,h[Pt]=l;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=h;e:switch(Lt(h,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Xn(t)}}return ft(t),gu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Xn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=_e.current,va(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,c=Ot,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[Nt]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Lp(e.nodeValue,i)),e||si(t,!0)}else e=so(e).createTextNode(l),e[Nt]=t,t.stateNode=e}return ft(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(l=va(t),i!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Nt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else i=Es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(nn(t),t):(nn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ft(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=va(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[Nt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),c=!1}else c=Es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(nn(t),t):(nn(t),null)}return nn(t),(t.flags&128)!==0?(t.lanes=i,t):(i=l!==null,e=e!==null&&e.memoizedState!==null,i&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==c&&(l.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Xl(t,t.updateQueue),ft(t),null);case 4:return Ce(),e===null&&Uu(t.stateNode.containerInfo),ft(t),null;case 10:return Pn(t.type),ft(t),null;case 19:if(B(bt),l=t.memoizedState,l===null)return ft(t),null;if(c=(t.flags&128)!==0,h=l.rendering,h===null)if(c)Cr(l,!1);else{if(xt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=Ol(e),h!==null){for(t.flags|=128,Cr(l,!1),e=h.updateQueue,t.updateQueue=e,Xl(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)md(i,e),i=i.sibling;return R(bt,bt.current&1|2),Xe&&In(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ne()>Jl&&(t.flags|=128,c=!0,Cr(l,!1),t.lanes=4194304)}else{if(!c)if(e=Ol(h),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Xl(t,e),Cr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!Xe)return ft(t),null}else 2*ne()-l.renderingStartTime>Jl&&i!==536870912&&(t.flags|=128,c=!0,Cr(l,!1),t.lanes=4194304);l.isBackwards?(h.sibling=t.child,t.child=h):(e=l.last,e!==null?e.sibling=h:t.child=h,l.last=h)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ne(),e.sibling=null,i=bt.current,R(bt,c?i&1|2:i&1),Xe&&In(t,l.treeForkCount),e):(ft(t),null);case 22:case 23:return nn(t),Hs(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),i=t.updateQueue,i!==null&&Xl(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&B(Pi),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Pn(St),ft(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function lv(e,t){switch(_s(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(St),Ce(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ye(t),null;case 31:if(t.memoizedState!==null){if(nn(t),t.alternate===null)throw Error(o(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(bt),null;case 4:return Ce(),null;case 10:return Pn(t.type),null;case 22:case 23:return nn(t),Hs(),e!==null&&B(Pi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(St),null;case 25:return null;default:return null}}function Fh(e,t){switch(_s(t),t.tag){case 3:Pn(St),Ce();break;case 26:case 27:case 5:Ye(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&nn(t);break;case 13:nn(t);break;case 19:B(bt);break;case 10:Pn(t.type);break;case 22:case 23:nn(t),Hs(),e!==null&&B(Pi);break;case 24:Pn(St)}}function Tr(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var c=l.next;i=c;do{if((i.tag&e)===e){l=void 0;var h=i.create,b=i.inst;l=h(),b.destroy=l}i=i.next}while(i!==c)}}catch(A){tt(t,t.return,A)}}function mi(e,t,i){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var h=c.next;l=h;do{if((l.tag&e)===e){var b=l.inst,A=b.destroy;if(A!==void 0){b.destroy=void 0,c=t;var H=i,$=A;try{$()}catch(he){tt(c,H,he)}}}l=l.next}while(l!==h)}}catch(he){tt(t,t.return,he)}}function Ph(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{Nd(t,i)}catch(l){tt(e,e.return,l)}}}function Yh(e,t,i){i.props=Zi(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){tt(e,t,l)}}function Ar(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(c){tt(e,t,c)}}function An(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(c){tt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){tt(e,t,c)}else i.current=null}function Gh(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(c){tt(e,e.return,c)}}function yu(e,t,i){try{var l=e.stateNode;Tv(l,e.type,i,t),l[Pt]=t}catch(c){tt(e,e.return,c)}}function Vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Si(e.type)||e.tag===4}function vu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Si(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xu(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Un));else if(l!==4&&(l===27&&Si(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(xu(e,t,i),e=e.sibling;e!==null;)xu(e,t,i),e=e.sibling}function Zl(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&Si(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Zl(e,t,i),e=e.sibling;e!==null;)Zl(e,t,i),e=e.sibling}function Xh(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Lt(t,l,i),t[Nt]=e,t[Pt]=i}catch(h){tt(e,e.return,h)}}var Zn=!1,zt=!1,bu=!1,Zh=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function ov(e,t){if(e=e.containerInfo,Iu=go,e=ld(e),hs(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,A=-1,H=-1,$=0,he=0,ve=e,ie=null;t:for(;;){for(var se;ve!==i||c!==0&&ve.nodeType!==3||(A=b+c),ve!==h||l!==0&&ve.nodeType!==3||(H=b+l),ve.nodeType===3&&(b+=ve.nodeValue.length),(se=ve.firstChild)!==null;)ie=ve,ve=se;for(;;){if(ve===e)break t;if(ie===i&&++$===c&&(A=b),ie===h&&++he===l&&(H=b),(se=ve.nextSibling)!==null)break;ve=ie,ie=ve.parentNode}ve=se}i=A===-1||H===-1?null:{start:A,end:H}}else i=null}i=i||{start:0,end:0}}else i=null;for(Fu={focusedElem:e,selectionRange:i},go=!1,Rt=t;Rt!==null;)if(t=Rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Rt=e;else for(;Rt!==null;){switch(t=Rt,h=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)c=e[i],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,i=t,c=h.memoizedProps,h=h.memoizedState,l=i.stateNode;try{var ze=Zi(i.type,c);e=l.getSnapshotBeforeUpdate(ze,h),l.__reactInternalSnapshotBeforeUpdate=e}catch(De){tt(i,i.return,De)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Gu(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Rt=e;break}Rt=t.return}}function Kh(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Qn(e,i),l&4&&Tr(5,i);break;case 1:if(Qn(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(b){tt(i,i.return,b)}else{var c=Zi(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){tt(i,i.return,b)}}l&64&&Ph(i),l&512&&Ar(i,i.return);break;case 3:if(Qn(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{Nd(e,t)}catch(b){tt(i,i.return,b)}}break;case 27:t===null&&l&4&&Xh(i);case 26:case 5:Qn(e,i),t===null&&l&4&&Gh(i),l&512&&Ar(i,i.return);break;case 12:Qn(e,i);break;case 31:Qn(e,i),l&4&&Jh(e,i);break;case 13:Qn(e,i),l&4&&$h(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=gv.bind(null,i),Bv(e,i))));break;case 22:if(l=i.memoizedState!==null||Zn,!l){t=t!==null&&t.memoizedState!==null||zt,c=Zn;var h=zt;Zn=l,(zt=t)&&!h?Wn(e,i,(i.subtreeFlags&8772)!==0):Qn(e,i),Zn=c,zt=h}break;case 30:break;default:Qn(e,i)}}function Qh(e){var t=e.alternate;t!==null&&(e.alternate=null,Qh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var dt=null,Gt=!1;function Kn(e,t,i){for(i=i.child;i!==null;)Wh(e,t,i),i=i.sibling}function Wh(e,t,i){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(Le,i)}catch{}switch(i.tag){case 26:zt||An(i,t),Kn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:zt||An(i,t);var l=dt,c=Gt;Si(i.type)&&(dt=i.stateNode,Gt=!1),Kn(e,t,i),Ur(i.stateNode),dt=l,Gt=c;break;case 5:zt||An(i,t);case 6:if(l=dt,c=Gt,dt=null,Kn(e,t,i),dt=l,Gt=c,dt!==null)if(Gt)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(i.stateNode)}catch(h){tt(i,t,h)}else try{dt.removeChild(i.stateNode)}catch(h){tt(i,t,h)}break;case 18:dt!==null&&(Gt?(e=dt,Pp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Ha(e)):Pp(dt,i.stateNode));break;case 4:l=dt,c=Gt,dt=i.stateNode.containerInfo,Gt=!0,Kn(e,t,i),dt=l,Gt=c;break;case 0:case 11:case 14:case 15:mi(2,i,t),zt||mi(4,i,t),Kn(e,t,i);break;case 1:zt||(An(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Yh(i,t,l)),Kn(e,t,i);break;case 21:Kn(e,t,i);break;case 22:zt=(l=zt)||i.memoizedState!==null,Kn(e,t,i),zt=l;break;default:Kn(e,t,i)}}function Jh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ha(e)}catch(i){tt(t,t.return,i)}}}function $h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ha(e)}catch(i){tt(t,t.return,i)}}function sv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zh),t;default:throw Error(o(435,e.tag))}}function Kl(e,t){var i=sv(e);t.forEach(function(l){if(!i.has(l)){i.add(l);var c=yv.bind(null,e,l);l.then(c,c)}})}function Vt(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var c=i[l],h=e,b=t,A=b;e:for(;A!==null;){switch(A.tag){case 27:if(Si(A.type)){dt=A.stateNode,Gt=!1;break e}break;case 5:dt=A.stateNode,Gt=!1;break e;case 3:case 4:dt=A.stateNode.containerInfo,Gt=!0;break e}A=A.return}if(dt===null)throw Error(o(160));Wh(h,b,c),dt=null,Gt=!1,h=c.alternate,h!==null&&(h.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ep(t,e),t=t.sibling}var Sn=null;function ep(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(t,e),Xt(e),l&4&&(mi(3,e,e.return),Tr(3,e),mi(5,e,e.return));break;case 1:Vt(t,e),Xt(e),l&512&&(zt||i===null||An(i,i.return)),l&64&&Zn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var c=Sn;if(Vt(t,e),Xt(e),l&512&&(zt||i===null||An(i,i.return)),l&4){var h=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":h=c.getElementsByTagName("title")[0],(!h||h[nr]||h[Nt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=c.createElement(l),c.head.insertBefore(h,c.querySelector("head > title"))),Lt(h,l,i),h[Nt]=e,jt(h),l=h;break e;case"link":var b=em("link","href",c).get(l+(i.href||""));if(b){for(var A=0;A<b.length;A++)if(h=b[A],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(A,1);break t}}h=c.createElement(l),Lt(h,l,i),c.head.appendChild(h);break;case"meta":if(b=em("meta","content",c).get(l+(i.content||""))){for(A=0;A<b.length;A++)if(h=b[A],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(A,1);break t}}h=c.createElement(l),Lt(h,l,i),c.head.appendChild(h);break;default:throw Error(o(468,l))}h[Nt]=e,jt(h),l=h}e.stateNode=l}else tm(c,e.type,e.stateNode);else e.stateNode=$p(c,l,e.memoizedProps);else h!==l?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,l===null?tm(c,e.type,e.stateNode):$p(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&yu(e,e.memoizedProps,i.memoizedProps)}break;case 27:Vt(t,e),Xt(e),l&512&&(zt||i===null||An(i,i.return)),i!==null&&l&4&&yu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Vt(t,e),Xt(e),l&512&&(zt||i===null||An(i,i.return)),e.flags&32){c=e.stateNode;try{sa(c,"")}catch(ze){tt(e,e.return,ze)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,yu(e,c,i!==null?i.memoizedProps:c)),l&1024&&(bu=!0);break;case 6:if(Vt(t,e),Xt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(ze){tt(e,e.return,ze)}}break;case 3:if(fo=null,c=Sn,Sn=uo(t.containerInfo),Vt(t,e),Sn=c,Xt(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Ha(t.containerInfo)}catch(ze){tt(e,e.return,ze)}bu&&(bu=!1,tp(e));break;case 4:l=Sn,Sn=uo(e.stateNode.containerInfo),Vt(t,e),Xt(e),Sn=l;break;case 12:Vt(t,e),Xt(e);break;case 31:Vt(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Kl(e,l)));break;case 13:Vt(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Wl=ne()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Kl(e,l)));break;case 22:c=e.memoizedState!==null;var H=i!==null&&i.memoizedState!==null,$=Zn,he=zt;if(Zn=$||c,zt=he||H,Vt(t,e),zt=he,Zn=$,Xt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(i===null||H||Zn||zt||Ki(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){H=i=t;try{if(h=H.stateNode,c)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{A=H.stateNode;var ve=H.memoizedProps.style,ie=ve!=null&&ve.hasOwnProperty("display")?ve.display:null;A.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(ze){tt(H,H.return,ze)}}}else if(t.tag===6){if(i===null){H=t;try{H.stateNode.nodeValue=c?"":H.memoizedProps}catch(ze){tt(H,H.return,ze)}}}else if(t.tag===18){if(i===null){H=t;try{var se=H.stateNode;c?Yp(se,!0):Yp(H.stateNode,!1)}catch(ze){tt(H,H.return,ze)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Kl(e,i))));break;case 19:Vt(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Kl(e,l)));break;case 30:break;case 21:break;default:Vt(t,e),Xt(e)}}function Xt(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(Vh(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var c=i.stateNode,h=vu(e);Zl(e,h,c);break;case 5:var b=i.stateNode;i.flags&32&&(sa(b,""),i.flags&=-33);var A=vu(e);Zl(e,A,b);break;case 3:case 4:var H=i.stateNode.containerInfo,$=vu(e);xu(e,$,H);break;default:throw Error(o(161))}}catch(he){tt(e,e.return,he)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;tp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Kh(e,t.alternate,t),t=t.sibling}function Ki(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:mi(4,t,t.return),Ki(t);break;case 1:An(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Yh(t,t.return,i),Ki(t);break;case 27:Ur(t.stateNode);case 26:case 5:An(t,t.return),Ki(t);break;case 22:t.memoizedState===null&&Ki(t);break;case 30:Ki(t);break;default:Ki(t)}e=e.sibling}}function Wn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,h=t,b=h.flags;switch(h.tag){case 0:case 11:case 15:Wn(c,h,i),Tr(4,h);break;case 1:if(Wn(c,h,i),l=h,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch($){tt(l,l.return,$)}if(l=h,c=l.updateQueue,c!==null){var A=l.stateNode;try{var H=c.shared.hiddenCallbacks;if(H!==null)for(c.shared.hiddenCallbacks=null,c=0;c<H.length;c++)Dd(H[c],A)}catch($){tt(l,l.return,$)}}i&&b&64&&Ph(h),Ar(h,h.return);break;case 27:Xh(h);case 26:case 5:Wn(c,h,i),i&&l===null&&b&4&&Gh(h),Ar(h,h.return);break;case 12:Wn(c,h,i);break;case 31:Wn(c,h,i),i&&b&4&&Jh(c,h);break;case 13:Wn(c,h,i),i&&b&4&&$h(c,h);break;case 22:h.memoizedState===null&&Wn(c,h,i),Ar(h,h.return);break;case 30:break;default:Wn(c,h,i)}t=t.sibling}}function wu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&mr(i))}function Su(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mr(e))}function kn(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)np(e,t,i,l),t=t.sibling}function np(e,t,i,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:kn(e,t,i,l),c&2048&&Tr(9,t);break;case 1:kn(e,t,i,l);break;case 3:kn(e,t,i,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mr(e)));break;case 12:if(c&2048){kn(e,t,i,l),e=t.stateNode;try{var h=t.memoizedProps,b=h.id,A=h.onPostCommit;typeof A=="function"&&A(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(H){tt(t,t.return,H)}}else kn(e,t,i,l);break;case 31:kn(e,t,i,l);break;case 13:kn(e,t,i,l);break;case 23:break;case 22:h=t.stateNode,b=t.alternate,t.memoizedState!==null?h._visibility&2?kn(e,t,i,l):jr(e,t):h._visibility&2?kn(e,t,i,l):(h._visibility|=2,Ta(e,t,i,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&wu(b,t);break;case 24:kn(e,t,i,l),c&2048&&Su(t.alternate,t);break;default:kn(e,t,i,l)}}function Ta(e,t,i,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,b=t,A=i,H=l,$=b.flags;switch(b.tag){case 0:case 11:case 15:Ta(h,b,A,H,c),Tr(8,b);break;case 23:break;case 22:var he=b.stateNode;b.memoizedState!==null?he._visibility&2?Ta(h,b,A,H,c):jr(h,b):(he._visibility|=2,Ta(h,b,A,H,c)),c&&$&2048&&wu(b.alternate,b);break;case 24:Ta(h,b,A,H,c),c&&$&2048&&Su(b.alternate,b);break;default:Ta(h,b,A,H,c)}t=t.sibling}}function jr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,c=l.flags;switch(l.tag){case 22:jr(i,l),c&2048&&wu(l.alternate,l);break;case 24:jr(i,l),c&2048&&Su(l.alternate,l);break;default:jr(i,l)}t=t.sibling}}var Rr=8192;function Aa(e,t,i){if(e.subtreeFlags&Rr)for(e=e.child;e!==null;)ip(e,t,i),e=e.sibling}function ip(e,t,i){switch(e.tag){case 26:Aa(e,t,i),e.flags&Rr&&e.memoizedState!==null&&Zv(i,Sn,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,i);break;case 3:case 4:var l=Sn;Sn=uo(e.stateNode.containerInfo),Aa(e,t,i),Sn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Rr,Rr=16777216,Aa(e,t,i),Rr=l):Aa(e,t,i));break;default:Aa(e,t,i)}}function ap(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Dr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Rt=l,lp(l,e)}ap(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rp(e),e=e.sibling}function rp(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&mi(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ql(e)):Dr(e);break;default:Dr(e)}}function Ql(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Rt=l,lp(l,e)}ap(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:mi(8,t,t.return),Ql(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,Ql(t));break;default:Ql(t)}e=e.sibling}}function lp(e,t){for(;Rt!==null;){var i=Rt;switch(i.tag){case 0:case 11:case 15:mi(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:mr(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Rt=l;else e:for(i=e;Rt!==null;){l=Rt;var c=l.sibling,h=l.return;if(Qh(l),l===i){Rt=null;break e}if(c!==null){c.return=h,Rt=c;break e}Rt=h}}}var uv={getCacheForType:function(e){var t=Mt(St),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Mt(St).controller.signal}},cv=typeof WeakMap=="function"?WeakMap:Map,Qe=0,lt=null,Ie=null,Ge=0,et=0,an=null,gi=!1,ja=!1,ku=!1,Jn=0,xt=0,yi=0,Qi=0,_u=0,rn=0,Ra=0,Nr=null,Zt=null,zu=!1,Wl=0,op=0,Jl=1/0,$l=null,vi=null,At=0,xi=null,Da=null,$n=0,Eu=0,Cu=null,sp=null,Or=0,Tu=null;function ln(){return(Qe&2)!==0&&Ge!==0?Ge&-Ge:G.T!==null?Ou():_f()}function up(){if(rn===0)if((Ge&536870912)===0||Xe){var e=Ni;Ni<<=1,(Ni&3932160)===0&&(Ni=262144),rn=e}else rn=536870912;return e=tn.current,e!==null&&(e.flags|=32),rn}function Kt(e,t,i){(e===lt&&(et===2||et===9)||e.cancelPendingCommit!==null)&&(Na(e,0),bi(e,Ge,rn,!1)),tr(e,i),((Qe&2)===0||e!==lt)&&(e===lt&&((Qe&2)===0&&(Qi|=i),xt===4&&bi(e,Ge,rn,!1)),jn(e))}function cp(e,t,i){if((Qe&6)!==0)throw Error(o(327));var l=!i&&(t&127)===0&&(t&e.expiredLanes)===0||er(e,t),c=l?hv(e,t):ju(e,t,!0),h=l;do{if(c===0){ja&&!l&&bi(e,t,0,!1);break}else{if(i=e.current.alternate,h&&!fv(i)){c=ju(e,t,!1),h=!1;continue}if(c===2){if(h=t,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var A=e;c=Nr;var H=A.current.memoizedState.isDehydrated;if(H&&(Na(A,b).flags|=256),b=ju(A,b,!1),b!==2){if(ku&&!H){A.errorRecoveryDisabledLanes|=h,Qi|=h,c=4;break e}h=Zt,Zt=c,h!==null&&(Zt===null?Zt=h:Zt.push.apply(Zt,h))}c=b}if(h=!1,c!==2)continue}}if(c===1){Na(e,0),bi(e,t,0,!0);break}e:{switch(l=e,h=c,h){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:bi(l,t,rn,!gi);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=Wl+300-ne(),10<c)){if(bi(l,t,rn,!gi),ul(l,0,!0)!==0)break e;$n=t,l.timeoutHandle=Ip(fp.bind(null,l,i,Zt,$l,zu,t,rn,Qi,Ra,gi,h,"Throttled",-0,0),c);break e}fp(l,i,Zt,$l,zu,t,rn,Qi,Ra,gi,h,null,-0,0)}}break}while(!0);jn(e)}function fp(e,t,i,l,c,h,b,A,H,$,he,ve,ie,se){if(e.timeoutHandle=-1,ve=t.subtreeFlags,ve&8192||(ve&16785408)===16785408){ve={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},ip(t,h,ve);var ze=(h&62914560)===h?Wl-ne():(h&4194048)===h?op-ne():0;if(ze=Kv(ve,ze),ze!==null){$n=h,e.cancelPendingCommit=ze(xp.bind(null,e,t,h,i,l,c,b,A,H,he,ve,null,ie,se)),bi(e,h,b,!$);return}}xp(e,t,h,i,l,c,b,A,H)}function fv(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var c=i[l],h=c.getSnapshot;c=c.value;try{if(!$t(h(),c))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 bi(e,t,i,l){t&=~_u,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var h=31-Ue(c),b=1<<h;l[h]=-1,c&=~b}i!==0&&wf(e,i,t)}function eo(){return(Qe&6)===0?(Mr(0),!1):!0}function Au(){if(Ie!==null){if(et===0)var e=Ie.return;else e=Ie,Fn=Ii=null,Gs(e),ka=null,yr=0,e=Ie;for(;e!==null;)Fh(e.alternate,e),e=e.return;Ie=null}}function Na(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Rv(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),$n=0,Au(),lt=e,Ie=i=qn(e.current,null),Ge=t,et=0,an=null,gi=!1,ja=er(e,t),ku=!1,Ra=rn=_u=Qi=yi=xt=0,Zt=Nr=null,zu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-Ue(l),h=1<<c;t|=e[c],l&=~h}return Jn=t,wl(),i}function dp(e,t){Be=null,G.H=zr,t===Sa||t===Al?(t=Td(),et=3):t===Ns?(t=Td(),et=4):et=t===ou?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,an=t,Ie===null&&(xt=1,Pl(e,hn(t,e.current)))}function hp(){var e=tn.current;return e===null?!0:(Ge&4194048)===Ge?yn===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===yn:!1}function pp(){var e=G.H;return G.H=zr,e===null?zr:e}function mp(){var e=G.A;return G.A=uv,e}function to(){xt=4,gi||(Ge&4194048)!==Ge&&tn.current!==null||(ja=!0),(yi&134217727)===0&&(Qi&134217727)===0||lt===null||bi(lt,Ge,rn,!1)}function ju(e,t,i){var l=Qe;Qe|=2;var c=pp(),h=mp();(lt!==e||Ge!==t)&&($l=null,Na(e,t)),t=!1;var b=xt;e:do try{if(et!==0&&Ie!==null){var A=Ie,H=an;switch(et){case 8:Au(),b=6;break e;case 3:case 2:case 9:case 6:tn.current===null&&(t=!0);var $=et;if(et=0,an=null,Oa(e,A,H,$),i&&ja){b=0;break e}break;default:$=et,et=0,an=null,Oa(e,A,H,$)}}dv(),b=xt;break}catch(he){dp(e,he)}while(!0);return t&&e.shellSuspendCounter++,Fn=Ii=null,Qe=l,G.H=c,G.A=h,Ie===null&&(lt=null,Ge=0,wl()),b}function dv(){for(;Ie!==null;)gp(Ie)}function hv(e,t){var i=Qe;Qe|=2;var l=pp(),c=mp();lt!==e||Ge!==t?($l=null,Jl=ne()+500,Na(e,t)):ja=er(e,t);e:do try{if(et!==0&&Ie!==null){t=Ie;var h=an;t:switch(et){case 1:et=0,an=null,Oa(e,t,h,1);break;case 2:case 9:if(Ed(h)){et=0,an=null,yp(t);break}t=function(){et!==2&&et!==9||lt!==e||(et=7),jn(e)},h.then(t,t);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Ed(h)?(et=0,an=null,yp(t)):(et=0,an=null,Oa(e,t,h,7));break;case 5:var b=null;switch(Ie.tag){case 26:b=Ie.memoizedState;case 5:case 27:var A=Ie;if(b?nm(b):A.stateNode.complete){et=0,an=null;var H=A.sibling;if(H!==null)Ie=H;else{var $=A.return;$!==null?(Ie=$,no($)):Ie=null}break t}}et=0,an=null,Oa(e,t,h,5);break;case 6:et=0,an=null,Oa(e,t,h,6);break;case 8:Au(),xt=6;break e;default:throw Error(o(462))}}pv();break}catch(he){dp(e,he)}while(!0);return Fn=Ii=null,G.H=l,G.A=c,Qe=i,Ie!==null?0:(lt=null,Ge=0,wl(),xt)}function pv(){for(;Ie!==null&&!te();)gp(Ie)}function gp(e){var t=qh(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,t===null?no(e):Ie=t}function yp(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Oh(i,t,t.pendingProps,t.type,void 0,Ge);break;case 11:t=Oh(i,t,t.pendingProps,t.type.render,t.ref,Ge);break;case 5:Gs(t);default:Fh(i,t),t=Ie=md(t,Jn),t=qh(i,t,Jn)}e.memoizedProps=e.pendingProps,t===null?no(e):Ie=t}function Oa(e,t,i,l){Fn=Ii=null,Gs(t),ka=null,yr=0;var c=t.return;try{if(nv(e,c,t,i,Ge)){xt=1,Pl(e,hn(i,e.current)),Ie=null;return}}catch(h){if(c!==null)throw Ie=c,h;xt=1,Pl(e,hn(i,e.current)),Ie=null;return}t.flags&32768?(Xe||l===1?e=!0:ja||(Ge&536870912)!==0?e=!1:(gi=e=!0,(l===2||l===9||l===3||l===6)&&(l=tn.current,l!==null&&l.tag===13&&(l.flags|=16384))),vp(t,e)):no(t)}function no(e){var t=e;do{if((t.flags&32768)!==0){vp(t,gi);return}e=t.return;var i=rv(t.alternate,t,Jn);if(i!==null){Ie=i;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);xt===0&&(xt=5)}function vp(e,t){do{var i=lv(e.alternate,e);if(i!==null){i.flags&=32767,Ie=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ie=e;return}Ie=e=i}while(e!==null);xt=6,Ie=null}function xp(e,t,i,l,c,h,b,A,H){e.cancelPendingCommit=null;do io();while(At!==0);if((Qe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(h=t.lanes|t.childLanes,h|=vs,X0(e,i,h,b,A,H),e===lt&&(Ie=lt=null,Ge=0),Da=t,xi=e,$n=i,Eu=h,Cu=c,sp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,vv(we,function(){return _p(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,c=X.p,X.p=2,b=Qe,Qe|=4;try{ov(e,t,i)}finally{Qe=b,X.p=c,G.T=l}}At=1,bp(),wp(),Sp()}}function bp(){if(At===1){At=0;var e=xi,t=Da,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var l=X.p;X.p=2;var c=Qe;Qe|=4;try{ep(t,e);var h=Fu,b=ld(e.containerInfo),A=h.focusedElem,H=h.selectionRange;if(b!==A&&A&&A.ownerDocument&&rd(A.ownerDocument.documentElement,A)){if(H!==null&&hs(A)){var $=H.start,he=H.end;if(he===void 0&&(he=$),"selectionStart"in A)A.selectionStart=$,A.selectionEnd=Math.min(he,A.value.length);else{var ve=A.ownerDocument||document,ie=ve&&ve.defaultView||window;if(ie.getSelection){var se=ie.getSelection(),ze=A.textContent.length,De=Math.min(H.start,ze),rt=H.end===void 0?De:Math.min(H.end,ze);!se.extend&&De>rt&&(b=rt,rt=De,De=b);var Q=ad(A,De),Y=ad(A,rt);if(Q&&Y&&(se.rangeCount!==1||se.anchorNode!==Q.node||se.anchorOffset!==Q.offset||se.focusNode!==Y.node||se.focusOffset!==Y.offset)){var J=ve.createRange();J.setStart(Q.node,Q.offset),se.removeAllRanges(),De>rt?(se.addRange(J),se.extend(Y.node,Y.offset)):(J.setEnd(Y.node,Y.offset),se.addRange(J))}}}}for(ve=[],se=A;se=se.parentNode;)se.nodeType===1&&ve.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<ve.length;A++){var ge=ve[A];ge.element.scrollLeft=ge.left,ge.element.scrollTop=ge.top}}go=!!Iu,Fu=Iu=null}finally{Qe=c,X.p=l,G.T=i}}e.current=t,At=2}}function wp(){if(At===2){At=0;var e=xi,t=Da,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var l=X.p;X.p=2;var c=Qe;Qe|=4;try{Kh(e,t.alternate,t)}finally{Qe=c,X.p=l,G.T=i}}At=3}}function Sp(){if(At===4||At===3){At=0,Se();var e=xi,t=Da,i=$n,l=sp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?At=5:(At=0,Da=xi=null,kp(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(vi=null),Zo(i),t=t.stateNode,$e&&typeof $e.onCommitFiberRoot=="function")try{$e.onCommitFiberRoot(Le,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,c=X.p,X.p=2,G.T=null;try{for(var h=e.onRecoverableError,b=0;b<l.length;b++){var A=l[b];h(A.value,{componentStack:A.stack})}}finally{G.T=t,X.p=c}}($n&3)!==0&&io(),jn(e),c=e.pendingLanes,(i&261930)!==0&&(c&42)!==0?e===Tu?Or++:(Or=0,Tu=e):Or=0,Mr(0)}}function kp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,mr(t)))}function io(){return bp(),wp(),Sp(),_p()}function _p(){if(At!==5)return!1;var e=xi,t=Eu;Eu=0;var i=Zo($n),l=G.T,c=X.p;try{X.p=32>i?32:i,G.T=null,i=Cu,Cu=null;var h=xi,b=$n;if(At=0,Da=xi=null,$n=0,(Qe&6)!==0)throw Error(o(331));var A=Qe;if(Qe|=4,rp(h.current),np(h,h.current,b,i),Qe=A,Mr(0,!1),$e&&typeof $e.onPostCommitFiberRoot=="function")try{$e.onPostCommitFiberRoot(Le,h)}catch{}return!0}finally{X.p=c,G.T=l,kp(e,t)}}function zp(e,t,i){t=hn(i,t),t=lu(e.stateNode,t,2),e=di(e,t,2),e!==null&&(tr(e,2),jn(e))}function tt(e,t,i){if(e.tag===3)zp(e,e,i);else for(;t!==null;){if(t.tag===3){zp(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(vi===null||!vi.has(l))){e=hn(i,e),i=Eh(2),l=di(t,i,2),l!==null&&(Ch(i,l,t,e),tr(l,2),jn(l));break}}t=t.return}}function Ru(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new cv;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(i)||(ku=!0,c.add(i),e=mv.bind(null,e,t,i),t.then(e,e))}function mv(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,lt===e&&(Ge&i)===i&&(xt===4||xt===3&&(Ge&62914560)===Ge&&300>ne()-Wl?(Qe&2)===0&&Na(e,0):_u|=i,Ra===Ge&&(Ra=0)),jn(e)}function Ep(e,t){t===0&&(t=bf()),e=Ui(e,t),e!==null&&(tr(e,t),jn(e))}function gv(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Ep(e,i)}function yv(e,t){var i=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Ep(e,i)}function vv(e,t){return ye(e,t)}var ao=null,Ma=null,Du=!1,ro=!1,Nu=!1,wi=0;function jn(e){e!==Ma&&e.next===null&&(Ma===null?ao=Ma=e:Ma=Ma.next=e),ro=!0,Du||(Du=!0,bv())}function Mr(e,t){if(!Nu&&ro){Nu=!0;do for(var i=!1,l=ao;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var h=0;else{var b=l.suspendedLanes,A=l.pingedLanes;h=(1<<31-Ue(42|e)+1)-1,h&=c&~(b&~A),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,jp(l,h))}else h=Ge,h=ul(l,l===lt?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||er(l,h)||(i=!0,jp(l,h));l=l.next}while(i);Nu=!1}}function xv(){Cp()}function Cp(){ro=Du=!1;var e=0;wi!==0&&jv()&&(e=wi);for(var t=ne(),i=null,l=ao;l!==null;){var c=l.next,h=Tp(l,t);h===0?(l.next=null,i===null?ao=c:i.next=c,c===null&&(Ma=i)):(i=l,(e!==0||(h&3)!==0)&&(ro=!0)),l=c}At!==0&&At!==5||Mr(e),wi!==0&&(wi=0)}function Tp(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ue(h),A=1<<b,H=c[b];H===-1?((A&i)===0||(A&l)!==0)&&(c[b]=V0(A,t)):H<=t&&(e.expiredLanes|=A),h&=~A}if(t=lt,i=Ge,i=ul(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(et===2||et===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xe(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||er(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&xe(l),Zo(i)){case 2:case 8:i=de;break;case 32:i=we;break;case 268435456:i=Me;break;default:i=we}return l=Ap.bind(null,e),i=ye(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&xe(l),e.callbackPriority=2,e.callbackNode=null,2}function Ap(e,t){if(At!==0&&At!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(io()&&e.callbackNode!==i)return null;var l=Ge;return l=ul(e,e===lt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(cp(e,l,t),Tp(e,ne()),e.callbackNode!=null&&e.callbackNode===i?Ap.bind(null,e):null)}function jp(e,t){if(io())return null;cp(e,t,!0)}function bv(){Dv(function(){(Qe&6)!==0?ye(V,xv):Cp()})}function Ou(){if(wi===0){var e=ba;e===0&&(e=ta,ta<<=1,(ta&261888)===0&&(ta=256)),wi=e}return wi}function Rp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hl(""+e)}function Dp(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function wv(e,t,i,l,c){if(t==="submit"&&i&&i.stateNode===c){var h=Rp((c[Pt]||null).action),b=l.submitter;b&&(t=(t=b[Pt]||null)?Rp(t.formAction):b.getAttribute("formAction"),t!==null&&(h=t,b=null));var A=new yl("action","action",null,l,c);e.push({event:A,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(wi!==0){var H=b?Dp(c,b):new FormData(c);eu(i,{pending:!0,data:H,method:c.method,action:h},null,H)}}else typeof h=="function"&&(A.preventDefault(),H=b?Dp(c,b):new FormData(c),eu(i,{pending:!0,data:H,method:c.method,action:h},h,H))},currentTarget:c}]})}}for(var Mu=0;Mu<ys.length;Mu++){var Bu=ys[Mu],Sv=Bu.toLowerCase(),kv=Bu[0].toUpperCase()+Bu.slice(1);wn(Sv,"on"+kv)}wn(ud,"onAnimationEnd"),wn(cd,"onAnimationIteration"),wn(fd,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(Hy,"onTransitionRun"),wn(qy,"onTransitionStart"),wn(Iy,"onTransitionCancel"),wn(dd,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),Oi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_v=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Br));function Np(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],c=l.event;l=l.listeners;e:{var h=void 0;if(t)for(var b=l.length-1;0<=b;b--){var A=l[b],H=A.instance,$=A.currentTarget;if(A=A.listener,H!==h&&c.isPropagationStopped())break e;h=A,c.currentTarget=$;try{h(c)}catch(he){bl(he)}c.currentTarget=null,h=H}else for(b=0;b<l.length;b++){if(A=l[b],H=A.instance,$=A.currentTarget,A=A.listener,H!==h&&c.isPropagationStopped())break e;h=A,c.currentTarget=$;try{h(c)}catch(he){bl(he)}c.currentTarget=null,h=H}}}}function Fe(e,t){var i=t[Ko];i===void 0&&(i=t[Ko]=new Set);var l=e+"__bubble";i.has(l)||(Op(t,e,2,!1),i.add(l))}function Lu(e,t,i){var l=0;t&&(l|=4),Op(i,e,l,t)}var lo="_reactListening"+Math.random().toString(36).slice(2);function Uu(e){if(!e[lo]){e[lo]=!0,Cf.forEach(function(i){i!=="selectionchange"&&(_v.has(i)||Lu(i,!1,e),Lu(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lo]||(t[lo]=!0,Lu("selectionchange",!1,t))}}function Op(e,t,i,l){switch(um(t)){case 2:var c=Jv;break;case 8:c=$v;break;default:c=$u}i=c.bind(null,t,i,e),c=void 0,!as||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,i,{capture:!0,passive:c}):e.addEventListener(t,i,!0):c!==void 0?e.addEventListener(t,i,{passive:c}):e.addEventListener(t,i,!1)}function Hu(e,t,i,l,c){var h=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var A=l.stateNode.containerInfo;if(A===c)break;if(b===4)for(b=l.return;b!==null;){var H=b.tag;if((H===3||H===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;A!==null;){if(b=ia(A),b===null)return;if(H=b.tag,H===5||H===6||H===26||H===27){l=h=b;continue e}A=A.parentNode}}l=l.return}Hf(function(){var $=h,he=ns(i),ve=[];e:{var ie=hd.get(e);if(ie!==void 0){var se=yl,ze=e;switch(e){case"keypress":if(ml(i)===0)break e;case"keydown":case"keyup":se=yy;break;case"focusin":ze="focus",se=ss;break;case"focusout":ze="blur",se=ss;break;case"beforeblur":case"afterblur":se=ss;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=ry;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=by;break;case ud:case cd:case fd:se=sy;break;case dd:se=Sy;break;case"scroll":case"scrollend":se=iy;break;case"wheel":se=_y;break;case"copy":case"cut":case"paste":se=cy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=Yf;break;case"toggle":case"beforetoggle":se=Ey}var De=(t&4)!==0,rt=!De&&(e==="scroll"||e==="scrollend"),Q=De?ie!==null?ie+"Capture":null:ie;De=[];for(var Y=$,J;Y!==null;){var ge=Y;if(J=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||J===null||Q===null||(ge=ar(Y,Q),ge!=null&&De.push(Lr(Y,ge,J))),rt)break;Y=Y.return}0<De.length&&(ie=new se(ie,ze,null,i,he),ve.push({event:ie,listeners:De}))}}if((t&7)===0){e:{if(ie=e==="mouseover"||e==="pointerover",se=e==="mouseout"||e==="pointerout",ie&&i!==ts&&(ze=i.relatedTarget||i.fromElement)&&(ia(ze)||ze[na]))break e;if((se||ie)&&(ie=he.window===he?he:(ie=he.ownerDocument)?ie.defaultView||ie.parentWindow:window,se?(ze=i.relatedTarget||i.toElement,se=$,ze=ze?ia(ze):null,ze!==null&&(rt=s(ze),De=ze.tag,ze!==rt||De!==5&&De!==27&&De!==6)&&(ze=null)):(se=null,ze=$),se!==ze)){if(De=Ff,ge="onMouseLeave",Q="onMouseEnter",Y="mouse",(e==="pointerout"||e==="pointerover")&&(De=Yf,ge="onPointerLeave",Q="onPointerEnter",Y="pointer"),rt=se==null?ie:ir(se),J=ze==null?ie:ir(ze),ie=new De(ge,Y+"leave",se,i,he),ie.target=rt,ie.relatedTarget=J,ge=null,ia(he)===$&&(De=new De(Q,Y+"enter",ze,i,he),De.target=J,De.relatedTarget=rt,ge=De),rt=ge,se&&ze)t:{for(De=zv,Q=se,Y=ze,J=0,ge=Q;ge;ge=De(ge))J++;ge=0;for(var Re=Y;Re;Re=De(Re))ge++;for(;0<J-ge;)Q=De(Q),J--;for(;0<ge-J;)Y=De(Y),ge--;for(;J--;){if(Q===Y||Y!==null&&Q===Y.alternate){De=Q;break t}Q=De(Q),Y=De(Y)}De=null}else De=null;se!==null&&Mp(ve,ie,se,De,!1),ze!==null&&rt!==null&&Mp(ve,rt,ze,De,!0)}}e:{if(ie=$?ir($):window,se=ie.nodeName&&ie.nodeName.toLowerCase(),se==="select"||se==="input"&&ie.type==="file")var Ze=Jf;else if(Qf(ie))if($f)Ze=By;else{Ze=Oy;var Te=Ny}else se=ie.nodeName,!se||se.toLowerCase()!=="input"||ie.type!=="checkbox"&&ie.type!=="radio"?$&&es($.elementType)&&(Ze=Jf):Ze=My;if(Ze&&(Ze=Ze(e,$))){Wf(ve,Ze,i,he);break e}Te&&Te(e,ie,$),e==="focusout"&&$&&ie.type==="number"&&$.memoizedProps.value!=null&&$o(ie,"number",ie.value)}switch(Te=$?ir($):window,e){case"focusin":(Qf(Te)||Te.contentEditable==="true")&&(da=Te,ps=$,dr=null);break;case"focusout":dr=ps=da=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,od(ve,i,he);break;case"selectionchange":if(Uy)break;case"keydown":case"keyup":od(ve,i,he)}var He;if(cs)e:{switch(e){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else fa?Zf(e,i)&&(Ve="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ve="onCompositionStart");Ve&&(Gf&&i.locale!=="ko"&&(fa||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&fa&&(He=qf()):(ri=he,rs="value"in ri?ri.value:ri.textContent,fa=!0)),Te=oo($,Ve),0<Te.length&&(Ve=new Pf(Ve,e,null,i,he),ve.push({event:Ve,listeners:Te}),He?Ve.data=He:(He=Kf(i),He!==null&&(Ve.data=He)))),(He=Ty?Ay(e,i):jy(e,i))&&(Ve=oo($,"onBeforeInput"),0<Ve.length&&(Te=new Pf("onBeforeInput","beforeinput",null,i,he),ve.push({event:Te,listeners:Ve}),Te.data=He)),wv(ve,e,$,i,he)}Np(ve,t)})}function Lr(e,t,i){return{instance:e,listener:t,currentTarget:i}}function oo(e,t){for(var i=t+"Capture",l=[];e!==null;){var c=e,h=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||h===null||(c=ar(e,i),c!=null&&l.unshift(Lr(e,c,h)),c=ar(e,t),c!=null&&l.push(Lr(e,c,h))),e.tag===3)return l;e=e.return}return[]}function zv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mp(e,t,i,l,c){for(var h=t._reactName,b=[];i!==null&&i!==l;){var A=i,H=A.alternate,$=A.stateNode;if(A=A.tag,H!==null&&H===l)break;A!==5&&A!==26&&A!==27||$===null||(H=$,c?($=ar(i,h),$!=null&&b.unshift(Lr(i,$,H))):c||($=ar(i,h),$!=null&&b.push(Lr(i,$,H)))),i=i.return}b.length!==0&&e.push({event:t,listeners:b})}var Ev=/\r\n?/g,Cv=/\u0000|\uFFFD/g;function Bp(e){return(typeof e=="string"?e:""+e).replace(Ev,`
`).replace(Cv,"")}function Lp(e,t){return t=Bp(t),Bp(e)===t}function at(e,t,i,l,c,h){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||sa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&sa(e,""+l);break;case"className":fl(e,"class",l);break;case"tabIndex":fl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":fl(e,i,l);break;case"style":Lf(e,l,h);break;case"data":if(t!=="object"){fl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=hl(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(i==="formAction"?(t!=="input"&&at(e,t,"name",c.name,c,null),at(e,t,"formEncType",c.formEncType,c,null),at(e,t,"formMethod",c.formMethod,c,null),at(e,t,"formTarget",c.formTarget,c,null)):(at(e,t,"encType",c.encType,c,null),at(e,t,"method",c.method,c,null),at(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=hl(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=Un);break;case"onScroll":l!=null&&Fe("scroll",e);break;case"onScrollEnd":l!=null&&Fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=hl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":Fe("beforetoggle",e),Fe("toggle",e),cl(e,"popover",l);break;case"xlinkActuate":Ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ln(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ln(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ln(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ln(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":cl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=ty.get(i)||i,cl(e,i,l))}}function qu(e,t,i,l,c,h){switch(i){case"style":Lf(e,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof l=="string"?sa(e,l):(typeof l=="number"||typeof l=="bigint")&&sa(e,""+l);break;case"onScroll":l!=null&&Fe("scroll",e);break;case"onScrollEnd":l!=null&&Fe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tf.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),t=i.slice(2,c?i.length-7:void 0),h=e[Pt]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(t,h,c),typeof l=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,c);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):cl(e,i,l)}}}function Lt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",e),Fe("load",e);var l=!1,c=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:at(e,t,h,b,i,null)}}c&&at(e,t,"srcSet",i.srcSet,i,null),l&&at(e,t,"src",i.src,i,null);return;case"input":Fe("invalid",e);var A=h=b=c=null,H=null,$=null;for(l in i)if(i.hasOwnProperty(l)){var he=i[l];if(he!=null)switch(l){case"name":c=he;break;case"type":b=he;break;case"checked":H=he;break;case"defaultChecked":$=he;break;case"value":h=he;break;case"defaultValue":A=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(o(137,t));break;default:at(e,t,l,he,i,null)}}Nf(e,h,A,H,$,b,c,!1);return;case"select":Fe("invalid",e),l=b=h=null;for(c in i)if(i.hasOwnProperty(c)&&(A=i[c],A!=null))switch(c){case"value":h=A;break;case"defaultValue":b=A;break;case"multiple":l=A;default:at(e,t,c,A,i,null)}t=h,i=b,e.multiple=!!l,t!=null?oa(e,!!l,t,!1):i!=null&&oa(e,!!l,i,!0);return;case"textarea":Fe("invalid",e),h=c=l=null;for(b in i)if(i.hasOwnProperty(b)&&(A=i[b],A!=null))switch(b){case"value":l=A;break;case"defaultValue":c=A;break;case"children":h=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(91));break;default:at(e,t,b,A,i,null)}Mf(e,l,c,h);return;case"option":for(H in i)if(i.hasOwnProperty(H)&&(l=i[H],l!=null))switch(H){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:at(e,t,H,l,i,null)}return;case"dialog":Fe("beforetoggle",e),Fe("toggle",e),Fe("cancel",e),Fe("close",e);break;case"iframe":case"object":Fe("load",e);break;case"video":case"audio":for(l=0;l<Br.length;l++)Fe(Br[l],e);break;case"image":Fe("error",e),Fe("load",e);break;case"details":Fe("toggle",e);break;case"embed":case"source":case"link":Fe("error",e),Fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in i)if(i.hasOwnProperty($)&&(l=i[$],l!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:at(e,t,$,l,i,null)}return;default:if(es(t)){for(he in i)i.hasOwnProperty(he)&&(l=i[he],l!==void 0&&qu(e,t,he,l,i,void 0));return}}for(A in i)i.hasOwnProperty(A)&&(l=i[A],l!=null&&at(e,t,A,l,i,null))}function Tv(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,h=null,b=null,A=null,H=null,$=null,he=null;for(se in i){var ve=i[se];if(i.hasOwnProperty(se)&&ve!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":H=ve;default:l.hasOwnProperty(se)||at(e,t,se,null,l,ve)}}for(var ie in l){var se=l[ie];if(ve=i[ie],l.hasOwnProperty(ie)&&(se!=null||ve!=null))switch(ie){case"type":h=se;break;case"name":c=se;break;case"checked":$=se;break;case"defaultChecked":he=se;break;case"value":b=se;break;case"defaultValue":A=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(o(137,t));break;default:se!==ve&&at(e,t,ie,se,l,ve)}}Jo(e,b,A,H,$,he,h,c);return;case"select":se=b=A=ie=null;for(h in i)if(H=i[h],i.hasOwnProperty(h)&&H!=null)switch(h){case"value":break;case"multiple":se=H;default:l.hasOwnProperty(h)||at(e,t,h,null,l,H)}for(c in l)if(h=l[c],H=i[c],l.hasOwnProperty(c)&&(h!=null||H!=null))switch(c){case"value":ie=h;break;case"defaultValue":A=h;break;case"multiple":b=h;default:h!==H&&at(e,t,c,h,l,H)}t=A,i=b,l=se,ie!=null?oa(e,!!i,ie,!1):!!l!=!!i&&(t!=null?oa(e,!!i,t,!0):oa(e,!!i,i?[]:"",!1));return;case"textarea":se=ie=null;for(A in i)if(c=i[A],i.hasOwnProperty(A)&&c!=null&&!l.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:at(e,t,A,null,l,c)}for(b in l)if(c=l[b],h=i[b],l.hasOwnProperty(b)&&(c!=null||h!=null))switch(b){case"value":ie=c;break;case"defaultValue":se=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==h&&at(e,t,b,c,l,h)}Of(e,ie,se);return;case"option":for(var ze in i)if(ie=i[ze],i.hasOwnProperty(ze)&&ie!=null&&!l.hasOwnProperty(ze))switch(ze){case"selected":e.selected=!1;break;default:at(e,t,ze,null,l,ie)}for(H in l)if(ie=l[H],se=i[H],l.hasOwnProperty(H)&&ie!==se&&(ie!=null||se!=null))switch(H){case"selected":e.selected=ie&&typeof ie!="function"&&typeof ie!="symbol";break;default:at(e,t,H,ie,l,se)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in i)ie=i[De],i.hasOwnProperty(De)&&ie!=null&&!l.hasOwnProperty(De)&&at(e,t,De,null,l,ie);for($ in l)if(ie=l[$],se=i[$],l.hasOwnProperty($)&&ie!==se&&(ie!=null||se!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(o(137,t));break;default:at(e,t,$,ie,l,se)}return;default:if(es(t)){for(var rt in i)ie=i[rt],i.hasOwnProperty(rt)&&ie!==void 0&&!l.hasOwnProperty(rt)&&qu(e,t,rt,void 0,l,ie);for(he in l)ie=l[he],se=i[he],!l.hasOwnProperty(he)||ie===se||ie===void 0&&se===void 0||qu(e,t,he,ie,l,se);return}}for(var Q in i)ie=i[Q],i.hasOwnProperty(Q)&&ie!=null&&!l.hasOwnProperty(Q)&&at(e,t,Q,null,l,ie);for(ve in l)ie=l[ve],se=i[ve],!l.hasOwnProperty(ve)||ie===se||ie==null&&se==null||at(e,t,ve,ie,l,se)}function Up(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Av(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var c=i[l],h=c.transferSize,b=c.initiatorType,A=c.duration;if(h&&A&&Up(b)){for(b=0,A=c.responseEnd,l+=1;l<i.length;l++){var H=i[l],$=H.startTime;if($>A)break;var he=H.transferSize,ve=H.initiatorType;he&&Up(ve)&&(H=H.responseEnd,b+=he*(H<A?1:(A-$)/(H-$)))}if(--l,t+=8*(h+b)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Iu=null,Fu=null;function so(e){return e.nodeType===9?e:e.ownerDocument}function Hp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Pu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yu=null;function jv(){var e=window.event;return e&&e.type==="popstate"?e===Yu?!1:(Yu=e,!0):(Yu=null,!1)}var Ip=typeof setTimeout=="function"?setTimeout:void 0,Rv=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,Dv=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(Nv)}:Ip;function Nv(e){setTimeout(function(){throw e})}function Si(e){return e==="head"}function Pp(e,t){var i=t,l=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"||i==="/&"){if(l===0){e.removeChild(c),Ha(t);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Ur(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Ur(i);for(var h=i.firstChild;h;){var b=h.nextSibling,A=h.nodeName;h[nr]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=b}}else i==="body"&&Ur(e.ownerDocument.body);i=c}while(i);Ha(t)}function Yp(e,t){var i=e;e=0;do{var l=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=l}while(i)}function Gu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Gu(i),Qo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function Ov(e,t,i,l){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[nr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=vn(e.nextSibling),e===null)break}return null}function Mv(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=vn(e.nextSibling),e===null))return null;return e}function Gp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=vn(e.nextSibling),e===null))return null;return e}function Vu(e){return e.data==="$?"||e.data==="$~"}function Xu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Bv(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function vn(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zu=null;function Vp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return vn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Xp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Zp(e,t,i){switch(t=so(i),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ur(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qo(e)}var xn=new Map,Kp=new Set;function uo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ei=X.d;X.d={f:Lv,r:Uv,D:Hv,C:qv,L:Iv,m:Fv,X:Yv,S:Pv,M:Gv};function Lv(){var e=ei.f(),t=eo();return e||t}function Uv(e){var t=aa(e);t!==null&&t.tag===5&&t.type==="form"?dh(t):ei.r(e)}var Ba=typeof document>"u"?null:document;function Qp(e,t,i){var l=Ba;if(l&&typeof t=="string"&&t){var c=fn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Kp.has(c)||(Kp.add(c),e={rel:e,crossOrigin:i,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),Lt(t,"link",e),jt(t),l.head.appendChild(t)))}}function Hv(e){ei.D(e),Qp("dns-prefetch",e,null)}function qv(e,t){ei.C(e,t),Qp("preconnect",e,t)}function Iv(e,t,i){ei.L(e,t,i);var l=Ba;if(l&&e&&t){var c='link[rel="preload"][as="'+fn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+fn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+fn(i.imageSizes)+'"]')):c+='[href="'+fn(e)+'"]';var h=c;switch(t){case"style":h=La(e);break;case"script":h=Ua(e)}xn.has(h)||(e=v({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),xn.set(h,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Hr(h))||t==="script"&&l.querySelector(qr(h))||(t=l.createElement("link"),Lt(t,"link",e),jt(t),l.head.appendChild(t)))}}function Fv(e,t){ei.m(e,t);var i=Ba;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+fn(l)+'"][href="'+fn(e)+'"]',h=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ua(e)}if(!xn.has(h)&&(e=v({rel:"modulepreload",href:e},t),xn.set(h,e),i.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(qr(h)))return}l=i.createElement("link"),Lt(l,"link",e),jt(l),i.head.appendChild(l)}}}function Pv(e,t,i){ei.S(e,t,i);var l=Ba;if(l&&e){var c=ra(l).hoistableStyles,h=La(e);t=t||"default";var b=c.get(h);if(!b){var A={loading:0,preload:null};if(b=l.querySelector(Hr(h)))A.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},i),(i=xn.get(h))&&Ku(e,i);var H=b=l.createElement("link");jt(H),Lt(H,"link",e),H._p=new Promise(function($,he){H.onload=$,H.onerror=he}),H.addEventListener("load",function(){A.loading|=1}),H.addEventListener("error",function(){A.loading|=2}),A.loading|=4,co(b,t,l)}b={type:"stylesheet",instance:b,count:1,state:A},c.set(h,b)}}}function Yv(e,t){ei.X(e,t);var i=Ba;if(i&&e){var l=ra(i).hoistableScripts,c=Ua(e),h=l.get(c);h||(h=i.querySelector(qr(c)),h||(e=v({src:e,async:!0},t),(t=xn.get(c))&&Qu(e,t),h=i.createElement("script"),jt(h),Lt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function Gv(e,t){ei.M(e,t);var i=Ba;if(i&&e){var l=ra(i).hoistableScripts,c=Ua(e),h=l.get(c);h||(h=i.querySelector(qr(c)),h||(e=v({src:e,async:!0,type:"module"},t),(t=xn.get(c))&&Qu(e,t),h=i.createElement("script"),jt(h),Lt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function Wp(e,t,i,l){var c=(c=_e.current)?uo(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=La(i.href),i=ra(c).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=La(i.href);var h=ra(c).hoistableStyles,b=h.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=c.querySelector(Hr(e)))&&!h._p&&(b.instance=h,b.state.loading=5),xn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},xn.set(e,i),h||Vv(c,e,i,b.state))),t&&l===null)throw Error(o(528,""));return b}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ua(i),i=ra(c).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function La(e){return'href="'+fn(e)+'"'}function Hr(e){return'link[rel="stylesheet"]['+e+"]"}function Jp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Vv(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Lt(t,"link",i),jt(t),e.head.appendChild(t))}function Ua(e){return'[src="'+fn(e)+'"]'}function qr(e){return"script[async]"+e}function $p(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+fn(i.href)+'"]');if(l)return t.instance=l,jt(l),l;var c=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),jt(l),Lt(l,"style",c),co(l,i.precedence,e),t.instance=l;case"stylesheet":c=La(i.href);var h=e.querySelector(Hr(c));if(h)return t.state.loading|=4,t.instance=h,jt(h),h;l=Jp(i),(c=xn.get(c))&&Ku(l,c),h=(e.ownerDocument||e).createElement("link"),jt(h);var b=h;return b._p=new Promise(function(A,H){b.onload=A,b.onerror=H}),Lt(h,"link",l),t.state.loading|=4,co(h,i.precedence,e),t.instance=h;case"script":return h=Ua(i.src),(c=e.querySelector(qr(h)))?(t.instance=c,jt(c),c):(l=i,(c=xn.get(h))&&(l=v({},i),Qu(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),jt(c),Lt(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,co(l,i.precedence,e));return t.instance}function co(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,h=c,b=0;b<l.length;b++){var A=l[b];if(A.dataset.precedence===t)h=A;else if(h!==c)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Ku(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var fo=null;function em(e,t,i){if(fo===null){var l=new Map,c=fo=new Map;c.set(i,l)}else c=fo,l=c.get(i),l||(l=new Map,c.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var h=i[c];if(!(h[nr]||h[Nt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(t)||"";b=e+b;var A=l.get(b);A?A.push(h):l.set(b,[h])}}return l}function tm(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function Xv(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Zv(e,t,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var c=La(l.href),h=t.querySelector(Hr(c));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ho.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=h,jt(h);return}h=t.ownerDocument||t,l=Jp(l),(c=xn.get(c))&&Ku(l,c),h=h.createElement("link"),jt(h);var b=h;b._p=new Promise(function(A,H){b.onload=A,b.onerror=H}),Lt(h,"link",l),i.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=ho.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Wu=0;function Kv(e,t){return e.stylesheets&&e.count===0&&mo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var l=setTimeout(function(){if(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&Wu===0&&(Wu=62500*Av());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Wu?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ho(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var po=null;function mo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,po=new Map,t.forEach(Qv,e),po=null,ho.call(e))}function Qv(e,t){if(!(t.state.loading&4)){var i=po.get(e);if(i)var l=i.get(null);else{i=new Map,po.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<c.length;h++){var b=c[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),l=b)}l&&i.set(null,l)}c=t.instance,b=c.getAttribute("data-precedence"),h=i.get(b)||l,h===l&&i.set(null,c),i.set(b,c),this.count++,l=ho.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),h?h.parentNode.insertBefore(c,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ir={$$typeof:D,Provider:null,Consumer:null,_currentValue:be,_currentValue2:be,_threadCount:0};function Wv(e,t,i,l,c,h,b,A,H){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vo(0),this.hiddenUpdates=Vo(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function im(e,t,i,l,c,h,b,A,H,$,he,ve){return e=new Wv(e,t,i,b,H,$,he,ve,A),t=1,h===!0&&(t|=24),h=en(3,null,null,t),e.current=h,h.stateNode=e,t=js(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:l,isDehydrated:i,cache:t},Os(h),e}function am(e){return e?(e=ma,e):ma}function rm(e,t,i,l,c,h){c=am(c),l.context===null?l.context=c:l.pendingContext=c,l=fi(t),l.payload={element:i},h=h===void 0?null:h,h!==null&&(l.callback=h),i=di(e,l,t),i!==null&&(Kt(i,e,t),xr(i,e,t))}function lm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Ju(e,t){lm(e,t),(e=e.alternate)&&lm(e,t)}function om(e){if(e.tag===13||e.tag===31){var t=Ui(e,67108864);t!==null&&Kt(t,e,67108864),Ju(e,67108864)}}function sm(e){if(e.tag===13||e.tag===31){var t=ln();t=Xo(t);var i=Ui(e,t);i!==null&&Kt(i,e,t),Ju(e,t)}}var go=!0;function Jv(e,t,i,l){var c=G.T;G.T=null;var h=X.p;try{X.p=2,$u(e,t,i,l)}finally{X.p=h,G.T=c}}function $v(e,t,i,l){var c=G.T;G.T=null;var h=X.p;try{X.p=8,$u(e,t,i,l)}finally{X.p=h,G.T=c}}function $u(e,t,i,l){if(go){var c=ec(l);if(c===null)Hu(e,t,l,yo,i),cm(e,l);else if(tx(c,e,t,i,l))l.stopPropagation();else if(cm(e,l),t&4&&-1<ex.indexOf(e)){for(;c!==null;){var h=aa(c);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=un(h.pendingLanes);if(b!==0){var A=h;for(A.pendingLanes|=2,A.entangledLanes|=2;b;){var H=1<<31-Ue(b);A.entanglements[1]|=H,b&=~H}jn(h),(Qe&6)===0&&(Jl=ne()+500,Mr(0))}}break;case 31:case 13:A=Ui(h,2),A!==null&&Kt(A,h,2),eo(),Ju(h,2)}if(h=ec(l),h===null&&Hu(e,t,l,yo,i),h===c)break;c=h}c!==null&&l.stopPropagation()}else Hu(e,t,l,null,i)}}function ec(e){return e=ns(e),tc(e)}var yo=null;function tc(e){if(yo=null,e=ia(e),e!==null){var t=s(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===31){if(e=d(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yo=e,null}function um(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case V:return 2;case de:return 8;case we:case je:return 32;case Me:return 268435456;default:return 32}default:return 32}}var nc=!1,ki=null,_i=null,zi=null,Fr=new Map,Pr=new Map,Ei=[],ex="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function cm(e,t){switch(e){case"focusin":case"focusout":ki=null;break;case"dragenter":case"dragleave":_i=null;break;case"mouseover":case"mouseout":zi=null;break;case"pointerover":case"pointerout":Fr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pr.delete(t.pointerId)}}function Yr(e,t,i,l,c,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:h,targetContainers:[c]},t!==null&&(t=aa(t),t!==null&&om(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function tx(e,t,i,l,c){switch(t){case"focusin":return ki=Yr(ki,e,t,i,l,c),!0;case"dragenter":return _i=Yr(_i,e,t,i,l,c),!0;case"mouseover":return zi=Yr(zi,e,t,i,l,c),!0;case"pointerover":var h=c.pointerId;return Fr.set(h,Yr(Fr.get(h)||null,e,t,i,l,c)),!0;case"gotpointercapture":return h=c.pointerId,Pr.set(h,Yr(Pr.get(h)||null,e,t,i,l,c)),!0}return!1}function fm(e){var t=ia(e.target);if(t!==null){var i=s(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,zf(e.priority,function(){sm(i)});return}}else if(t===31){if(t=d(i),t!==null){e.blockedOn=t,zf(e.priority,function(){sm(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=ec(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);ts=l,i.target.dispatchEvent(l),ts=null}else return t=aa(i),t!==null&&om(t),e.blockedOn=i,!1;t.shift()}return!0}function dm(e,t,i){vo(e)&&i.delete(t)}function nx(){nc=!1,ki!==null&&vo(ki)&&(ki=null),_i!==null&&vo(_i)&&(_i=null),zi!==null&&vo(zi)&&(zi=null),Fr.forEach(dm),Pr.forEach(dm)}function xo(e,t){e.blockedOn===t&&(e.blockedOn=null,nc||(nc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,nx)))}var bo=null;function hm(e){bo!==e&&(bo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){bo===e&&(bo=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(tc(l||i)===null)continue;break}var h=aa(i);h!==null&&(e.splice(t,3),t-=3,eu(h,{pending:!0,data:c,method:i.method,action:l},l,c))}}))}function Ha(e){function t(H){return xo(H,e)}ki!==null&&xo(ki,e),_i!==null&&xo(_i,e),zi!==null&&xo(zi,e),Fr.forEach(t),Pr.forEach(t);for(var i=0;i<Ei.length;i++){var l=Ei[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ei.length&&(i=Ei[0],i.blockedOn===null);)fm(i),i.blockedOn===null&&Ei.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var c=i[l],h=i[l+1],b=c[Pt]||null;if(typeof h=="function")b||hm(i);else if(b){var A=null;if(h&&h.hasAttribute("formAction")){if(c=h,b=h[Pt]||null)A=b.formAction;else if(tc(c)!==null)continue}else A=b.action;typeof A=="function"?i[l+1]=A:(i.splice(l,3),l-=3),hm(i)}}}function pm(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return c=b})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function ic(e){this._internalRoot=e}wo.prototype.render=ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var i=t.current,l=ln();rm(i,l,e,t,null,null)},wo.prototype.unmount=ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rm(e.current,2,null,e,null,null),eo(),t[na]=null}};function wo(e){this._internalRoot=e}wo.prototype.unstable_scheduleHydration=function(e){if(e){var t=_f();e={blockedOn:null,target:e,priority:t};for(var i=0;i<Ei.length&&t!==0&&t<Ei[i].priority;i++);Ei.splice(i,0,e),i===0&&fm(e)}};var mm=r.version;if(mm!=="19.2.0")throw Error(o(527,mm,"19.2.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var ix={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{Le=So.inject(ix),$e=So}catch{}}return Vr.createRoot=function(e,t){if(!u(e))throw Error(o(299));var i=!1,l="",c=Sh,h=kh,b=_h;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=im(e,1,!1,null,null,i,l,null,c,h,b,pm),e[na]=t.current,Uu(e),new ic(t)},Vr.hydrateRoot=function(e,t,i){if(!u(e))throw Error(o(299));var l=!1,c="",h=Sh,b=kh,A=_h,H=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError),i.formState!==void 0&&(H=i.formState)),t=im(e,1,!0,t,i??null,l,c,H,h,b,A,pm),t.context=am(null),i=t.current,l=ln(),l=Xo(l),c=fi(l),c.callback=null,di(i,c,l),i=l,t.current.lanes=i,tr(t,i),jn(t),e[na]=t.current,Uu(e),new wo(t)},Vr.version="19.2.0",Vr}var zm;function hx(){if(zm)return lc.exports;zm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),lc.exports=dx(),lc.exports}var px=hx();/**
 * react-router v7.9.5
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Em="popstate";function mx(n={}){function r(o,u){let{pathname:s,search:f,hash:d}=o.location;return Rc("",{pathname:s,search:f,hash:d},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function a(o,u){return typeof u=="string"?u:tl(u)}return yx(r,a,null,n)}function gt(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function zn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function gx(){return Math.random().toString(36).substring(2,10)}function Cm(n,r){return{usr:n.state,key:n.key,idx:r}}function Rc(n,r,a=null,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Ka(r):r,state:a,key:r&&r.key||o||gx()}}function tl({pathname:n="/",search:r="",hash:a=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(n+=a.charAt(0)==="#"?a:"#"+a),n}function Ka(n){let r={};if(n){let a=n.indexOf("#");a>=0&&(r.hash=n.substring(a),n=n.substring(0,a));let o=n.indexOf("?");o>=0&&(r.search=n.substring(o),n=n.substring(0,o)),n&&(r.pathname=n)}return r}function yx(n,r,a,o={}){let{window:u=document.defaultView,v5Compat:s=!1}=o,f=u.history,d="POP",m=null,p=g();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function g(){return(f.state||{idx:null}).idx}function v(){d="POP";let C=g(),S=C==null?null:C-p;p=C,m&&m({action:d,location:w.location,delta:S})}function x(C,S){d="PUSH";let T=Rc(w.location,C,S);p=g()+1;let D=Cm(T,p),I=w.createHref(T);try{f.pushState(D,"",I)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;u.location.assign(I)}s&&m&&m({action:d,location:w.location,delta:1})}function y(C,S){d="REPLACE";let T=Rc(w.location,C,S);p=g();let D=Cm(T,p),I=w.createHref(T);f.replaceState(D,"",I),s&&m&&m({action:d,location:w.location,delta:0})}function E(C){return vx(C)}let w={get action(){return d},get location(){return n(u,f)},listen(C){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(Em,v),m=C,()=>{u.removeEventListener(Em,v),m=null}},createHref(C){return r(u,C)},createURL:E,encodeLocation(C){let S=E(C);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:x,replace:y,go(C){return f.go(C)}};return w}function vx(n,r=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),gt(a,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:tl(n);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=a+o),new URL(o,a)}function Ug(n,r,a="/"){return xx(n,r,a,!1)}function xx(n,r,a,o){let u=typeof r=="string"?Ka(r):r,s=ni(u.pathname||"/",a);if(s==null)return null;let f=Hg(n);bx(f);let d=null;for(let m=0;d==null&&m<f.length;++m){let p=Rx(s);d=Ax(f[m],p,o)}return d}function Hg(n,r=[],a=[],o="",u=!1){let s=(f,d,m=u,p)=>{let g={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(o)&&m)return;gt(g.relativePath.startsWith(o),`Absolute route path "${g.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(o.length)}let v=ti([o,g.relativePath]),x=a.concat(g);f.children&&f.children.length>0&&(gt(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Hg(f.children,r,x,v,m)),!(f.path==null&&!f.index)&&r.push({path:v,score:Cx(v,f.index),routesMeta:x})};return n.forEach((f,d)=>{if(f.path===""||!f.path?.includes("?"))s(f,d);else for(let m of qg(f.path))s(f,d,!0,m)}),r}function qg(n){let r=n.split("/");if(r.length===0)return[];let[a,...o]=r,u=a.endsWith("?"),s=a.replace(/\?$/,"");if(o.length===0)return u?[s,""]:[s];let f=qg(o.join("/")),d=[];return d.push(...f.map(m=>m===""?s:[s,m].join("/"))),u&&d.push(...f),d.map(m=>n.startsWith("/")&&m===""?"/":m)}function bx(n){n.sort((r,a)=>r.score!==a.score?a.score-r.score:Tx(r.routesMeta.map(o=>o.childrenIndex),a.routesMeta.map(o=>o.childrenIndex)))}var wx=/^:[\w-]+$/,Sx=3,kx=2,_x=1,zx=10,Ex=-2,Tm=n=>n==="*";function Cx(n,r){let a=n.split("/"),o=a.length;return a.some(Tm)&&(o+=Ex),r&&(o+=kx),a.filter(u=>!Tm(u)).reduce((u,s)=>u+(wx.test(s)?Sx:s===""?_x:zx),o)}function Tx(n,r){return n.length===r.length&&n.slice(0,-1).every((o,u)=>o===r[u])?n[n.length-1]-r[r.length-1]:0}function Ax(n,r,a=!1){let{routesMeta:o}=n,u={},s="/",f=[];for(let d=0;d<o.length;++d){let m=o[d],p=d===o.length-1,g=s==="/"?r:r.slice(s.length)||"/",v=Oo({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},g),x=m.route;if(!v&&p&&a&&!o[o.length-1].route.index&&(v=Oo({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},g)),!v)return null;Object.assign(u,v.params),f.push({params:u,pathname:ti([s,v.pathname]),pathnameBase:Mx(ti([s,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(s=ti([s,v.pathnameBase]))}return f}function Oo(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[a,o]=jx(n.path,n.caseSensitive,n.end),u=r.match(a);if(!u)return null;let s=u[0],f=s.replace(/(.)\/+$/,"$1"),d=u.slice(1);return{params:o.reduce((p,{paramName:g,isOptional:v},x)=>{if(g==="*"){let E=d[x]||"";f=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const y=d[x];return v&&!y?p[g]=void 0:p[g]=(y||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:f,pattern:n}}function jx(n,r=!1,a=!0){zn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let o=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,m)=>(o.push({paramName:d,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),o]}function Rx(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return zn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function ni(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let a=r.endsWith("/")?r.length-1:r.length,o=n.charAt(a);return o&&o!=="/"?null:n.slice(a)||"/"}function Dx(n,r="/"){let{pathname:a,search:o="",hash:u=""}=typeof n=="string"?Ka(n):n;return{pathname:a?a.startsWith("/")?a:Nx(a,r):r,search:Bx(o),hash:Lx(u)}}function Nx(n,r){let a=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?a.length>1&&a.pop():u!=="."&&a.push(u)}),a.length>1?a.join("/"):"/"}function cc(n,r,a,o){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}].  Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ox(n){return n.filter((r,a)=>a===0||r.route.path&&r.route.path.length>0)}function Ig(n){let r=Ox(n);return r.map((a,o)=>o===r.length-1?a.pathname:a.pathnameBase)}function Fg(n,r,a,o=!1){let u;typeof n=="string"?u=Ka(n):(u={...n},gt(!u.pathname||!u.pathname.includes("?"),cc("?","pathname","search",u)),gt(!u.pathname||!u.pathname.includes("#"),cc("#","pathname","hash",u)),gt(!u.search||!u.search.includes("#"),cc("#","search","hash",u)));let s=n===""||u.pathname==="",f=s?"/":u.pathname,d;if(f==null)d=a;else{let v=r.length-1;if(!o&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),v-=1;u.pathname=x.join("/")}d=v>=0?r[v]:"/"}let m=Dx(u,d),p=f&&f!=="/"&&f.endsWith("/"),g=(s||f===".")&&a.endsWith("/");return!m.pathname.endsWith("/")&&(p||g)&&(m.pathname+="/"),m}var ti=n=>n.join("/").replace(/\/\/+/g,"/"),Mx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Bx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Lx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Ux(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Pg=["POST","PUT","PATCH","DELETE"];new Set(Pg);var Hx=["GET",...Pg];new Set(Hx);var Qa=W.createContext(null);Qa.displayName="DataRouter";var Io=W.createContext(null);Io.displayName="DataRouterState";W.createContext(!1);var Yg=W.createContext({isTransitioning:!1});Yg.displayName="ViewTransition";var qx=W.createContext(new Map);qx.displayName="Fetchers";var Ix=W.createContext(null);Ix.displayName="Await";var Mn=W.createContext(null);Mn.displayName="Navigation";var al=W.createContext(null);al.displayName="Location";var Bn=W.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var Wc=W.createContext(null);Wc.displayName="RouteError";function Fx(n,{relative:r}={}){gt(rl(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:o}=W.useContext(Mn),{hash:u,pathname:s,search:f}=ll(n,{relative:r}),d=s;return a!=="/"&&(d=s==="/"?a:ti([a,s])),o.createHref({pathname:d,search:f,hash:u})}function rl(){return W.useContext(al)!=null}function ii(){return gt(rl(),"useLocation() may be used only in the context of a <Router> component."),W.useContext(al).location}var Gg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vg(n){W.useContext(Mn).static||W.useLayoutEffect(n)}function Jc(){let{isDataRoute:n}=W.useContext(Bn);return n?n1():Px()}function Px(){gt(rl(),"useNavigate() may be used only in the context of a <Router> component.");let n=W.useContext(Qa),{basename:r,navigator:a}=W.useContext(Mn),{matches:o}=W.useContext(Bn),{pathname:u}=ii(),s=JSON.stringify(Ig(o)),f=W.useRef(!1);return Vg(()=>{f.current=!0}),W.useCallback((m,p={})=>{if(zn(f.current,Gg),!f.current)return;if(typeof m=="number"){a.go(m);return}let g=Fg(m,JSON.parse(s),u,p.relative==="path");n==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:ti([r,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[r,a,s,u,n])}W.createContext(null);function Yx(){let{matches:n}=W.useContext(Bn),r=n[n.length-1];return r?r.params:{}}function ll(n,{relative:r}={}){let{matches:a}=W.useContext(Bn),{pathname:o}=ii(),u=JSON.stringify(Ig(a));return W.useMemo(()=>Fg(n,JSON.parse(u),o,r==="path"),[n,u,o,r])}function Gx(n,r){return Xg(n,r)}function Xg(n,r,a,o,u){gt(rl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=W.useContext(Mn),{matches:f}=W.useContext(Bn),d=f[f.length-1],m=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",v=d&&d.route;{let T=v&&v.path||"";Zg(p,!v||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=ii(),y;if(r){let T=typeof r=="string"?Ka(r):r;gt(g==="/"||T.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${T.pathname}" was given in the \`location\` prop.`),y=T}else y=x;let E=y.pathname||"/",w=E;if(g!=="/"){let T=g.replace(/^\//,"").split("/");w="/"+E.replace(/^\//,"").split("/").slice(T.length).join("/")}let C=Ug(n,{pathname:w});zn(v||C!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),zn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=Qx(C&&C.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:ti([g,s.encodeLocation?s.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:ti([g,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),f,a,o,u);return r&&S?W.createElement(al.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},S):S}function Vx(){let n=t1(),r=Ux(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),a=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},s={padding:"2px 4px",backgroundColor:o},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=W.createElement(W.Fragment,null,W.createElement("p",null,"💿 Hey developer 👋"),W.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",W.createElement("code",{style:s},"ErrorBoundary")," or"," ",W.createElement("code",{style:s},"errorElement")," prop on your route.")),W.createElement(W.Fragment,null,W.createElement("h2",null,"Unexpected Application Error!"),W.createElement("h3",{style:{fontStyle:"italic"}},r),a?W.createElement("pre",{style:u},a):null,f)}var Xx=W.createElement(Vx,null),Zx=class extends W.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.unstable_onError?this.props.unstable_onError(n,r):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?W.createElement(Bn.Provider,{value:this.props.routeContext},W.createElement(Wc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Kx({routeContext:n,match:r,children:a}){let o=W.useContext(Qa);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),W.createElement(Bn.Provider,{value:n},a)}function Qx(n,r=[],a=null,o=null,u=null){if(n==null){if(!a)return null;if(a.errors)n=a.matches;else if(r.length===0&&!a.initialized&&a.matches.length>0)n=a.matches;else return null}let s=n,f=a?.errors;if(f!=null){let p=s.findIndex(g=>g.route.id&&f?.[g.route.id]!==void 0);gt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let d=!1,m=-1;if(a)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:v,errors:x}=a,y=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||y){d=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,g,v)=>{let x,y=!1,E=null,w=null;a&&(x=f&&g.route.id?f[g.route.id]:void 0,E=g.route.errorElement||Xx,d&&(m<0&&v===0?(Zg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):m===v&&(y=!0,w=g.route.hydrateFallbackElement||null)));let C=r.concat(s.slice(0,v+1)),S=()=>{let T;return x?T=E:y?T=w:g.route.Component?T=W.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=p,W.createElement(Kx,{match:g,routeContext:{outlet:p,matches:C,isDataRoute:a!=null},children:T})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?W.createElement(Zx,{location:a.location,revalidation:a.revalidation,component:E,error:x,children:S(),routeContext:{outlet:null,matches:C,isDataRoute:!0},unstable_onError:o}):S()},null)}function $c(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wx(n){let r=W.useContext(Qa);return gt(r,$c(n)),r}function Jx(n){let r=W.useContext(Io);return gt(r,$c(n)),r}function $x(n){let r=W.useContext(Bn);return gt(r,$c(n)),r}function ef(n){let r=$x(n),a=r.matches[r.matches.length-1];return gt(a.route.id,`${n} can only be used on routes that contain a unique "id"`),a.route.id}function e1(){return ef("useRouteId")}function t1(){let n=W.useContext(Wc),r=Jx("useRouteError"),a=ef("useRouteError");return n!==void 0?n:r.errors?.[a]}function n1(){let{router:n}=Wx("useNavigate"),r=ef("useNavigate"),a=W.useRef(!1);return Vg(()=>{a.current=!0}),W.useCallback(async(u,s={})=>{zn(a.current,Gg),a.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:r,...s}))},[n,r])}var Am={};function Zg(n,r,a){!r&&!Am[n]&&(Am[n]=!0,zn(!1,a))}W.memo(i1);function i1({routes:n,future:r,state:a,unstable_onError:o}){return Xg(n,void 0,a,o,r)}function Wi(n){gt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function a1({basename:n="/",children:r=null,location:a,navigationType:o="POP",navigator:u,static:s=!1}){gt(!rl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),d=W.useMemo(()=>({basename:f,navigator:u,static:s,future:{}}),[f,u,s]);typeof a=="string"&&(a=Ka(a));let{pathname:m="/",search:p="",hash:g="",state:v=null,key:x="default"}=a,y=W.useMemo(()=>{let E=ni(m,f);return E==null?null:{location:{pathname:E,search:p,hash:g,state:v,key:x},navigationType:o}},[f,m,p,g,v,x,o]);return zn(y!=null,`<Router basename="${f}"> is not able to match the URL "${m}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:W.createElement(Mn.Provider,{value:d},W.createElement(al.Provider,{children:r,value:y}))}function r1({children:n,location:r}){return Gx(Dc(n),r)}function Dc(n,r=[]){let a=[];return W.Children.forEach(n,(o,u)=>{if(!W.isValidElement(o))return;let s=[...r,u];if(o.type===W.Fragment){a.push.apply(a,Dc(o.props.children,s));return}gt(o.type===Wi,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),gt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let f={id:o.props.id||s.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(f.children=Dc(o.props.children,s)),a.push(f)}),a}var jo="get",Ro="application/x-www-form-urlencoded";function Fo(n){return n!=null&&typeof n.tagName=="string"}function l1(n){return Fo(n)&&n.tagName.toLowerCase()==="button"}function o1(n){return Fo(n)&&n.tagName.toLowerCase()==="form"}function s1(n){return Fo(n)&&n.tagName.toLowerCase()==="input"}function u1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function c1(n,r){return n.button===0&&(!r||r==="_self")&&!u1(n)}function Nc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((r,a)=>{let o=n[a];return r.concat(Array.isArray(o)?o.map(u=>[a,u]):[[a,o]])},[]))}function f1(n,r){let a=Nc(n);return r&&r.forEach((o,u)=>{a.has(u)||r.getAll(u).forEach(s=>{a.append(u,s)})}),a}var ko=null;function d1(){if(ko===null)try{new FormData(document.createElement("form"),0),ko=!1}catch{ko=!0}return ko}var h1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fc(n){return n!=null&&!h1.has(n)?(zn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ro}"`),null):n}function p1(n,r){let a,o,u,s,f;if(o1(n)){let d=n.getAttribute("action");o=d?ni(d,r):null,a=n.getAttribute("method")||jo,u=fc(n.getAttribute("enctype"))||Ro,s=new FormData(n)}else if(l1(n)||s1(n)&&(n.type==="submit"||n.type==="image")){let d=n.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||d.getAttribute("action");if(o=m?ni(m,r):null,a=n.getAttribute("formmethod")||d.getAttribute("method")||jo,u=fc(n.getAttribute("formenctype"))||fc(d.getAttribute("enctype"))||Ro,s=new FormData(d,n),!d1()){let{name:p,type:g,value:v}=n;if(g==="image"){let x=p?`${p}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else p&&s.append(p,v)}}else{if(Fo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=jo,o=null,u=Ro,f=n}return s&&u==="text/plain"&&(f=s,s=void 0),{action:o,method:a.toLowerCase(),encType:u,formData:s,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function m1(n,r,a){let o=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o.pathname==="/"?o.pathname=`_root.${a}`:r&&ni(o.pathname,r)==="/"?o.pathname=`${r.replace(/\/$/,"")}/_root.${a}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${a}`,o}async function g1(n,r){if(n.id in r)return r[n.id];try{let a=await import(n.module);return r[n.id]=a,a}catch(a){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function y1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function v1(n,r,a){let o=await Promise.all(n.map(async u=>{let s=r.routes[u.route.id];if(s){let f=await g1(s,a);return f.links?f.links():[]}return[]}));return S1(o.flat(1).filter(y1).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function jm(n,r,a,o,u,s){let f=(m,p)=>a[p]?m.route.id!==a[p].route.id:!0,d=(m,p)=>a[p].pathname!==m.pathname||a[p].route.path?.endsWith("*")&&a[p].params["*"]!==m.params["*"];return s==="assets"?r.filter((m,p)=>f(m,p)||d(m,p)):s==="data"?r.filter((m,p)=>{let g=o.routes[m.route.id];if(!g||!g.hasLoader)return!1;if(f(m,p)||d(m,p))return!0;if(m.route.shouldRevalidate){let v=m.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function x1(n,r,{includeHydrateFallback:a}={}){return b1(n.map(o=>{let u=r.routes[o.route.id];if(!u)return[];let s=[u.module];return u.clientActionModule&&(s=s.concat(u.clientActionModule)),u.clientLoaderModule&&(s=s.concat(u.clientLoaderModule)),a&&u.hydrateFallbackModule&&(s=s.concat(u.hydrateFallbackModule)),u.imports&&(s=s.concat(u.imports)),s}).flat(1))}function b1(n){return[...new Set(n)]}function w1(n){let r={},a=Object.keys(n).sort();for(let o of a)r[o]=n[o];return r}function S1(n,r){let a=new Set;return new Set(r),n.reduce((o,u)=>{let s=JSON.stringify(w1(u));return a.has(s)||(a.add(s),o.push({key:s,link:u})),o},[])}function Kg(){let n=W.useContext(Qa);return tf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function k1(){let n=W.useContext(Io);return tf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var nf=W.createContext(void 0);nf.displayName="FrameworkContext";function Qg(){let n=W.useContext(nf);return tf(n,"You must render this element inside a <HydratedRouter> element"),n}function _1(n,r){let a=W.useContext(nf),[o,u]=W.useState(!1),[s,f]=W.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=r,x=W.useRef(null);W.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let w=S=>{S.forEach(T=>{f(T.isIntersecting)})},C=new IntersectionObserver(w,{threshold:.5});return x.current&&C.observe(x.current),()=>{C.disconnect()}}},[n]),W.useEffect(()=>{if(o){let w=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(w)}}},[o]);let y=()=>{u(!0)},E=()=>{u(!1),f(!1)};return a?n!=="intent"?[s,x,{}]:[s,x,{onFocus:Xr(d,y),onBlur:Xr(m,E),onMouseEnter:Xr(p,y),onMouseLeave:Xr(g,E),onTouchStart:Xr(v,y)}]:[!1,x,{}]}function Xr(n,r){return a=>{n&&n(a),a.defaultPrevented||r(a)}}function z1({page:n,...r}){let{router:a}=Kg(),o=W.useMemo(()=>Ug(a.routes,n,a.basename),[a.routes,n,a.basename]);return o?W.createElement(C1,{page:n,matches:o,...r}):null}function E1(n){let{manifest:r,routeModules:a}=Qg(),[o,u]=W.useState([]);return W.useEffect(()=>{let s=!1;return v1(n,r,a).then(f=>{s||u(f)}),()=>{s=!0}},[n,r,a]),o}function C1({page:n,matches:r,...a}){let o=ii(),{manifest:u,routeModules:s}=Qg(),{basename:f}=Kg(),{loaderData:d,matches:m}=k1(),p=W.useMemo(()=>jm(n,r,m,u,o,"data"),[n,r,m,u,o]),g=W.useMemo(()=>jm(n,r,m,u,o,"assets"),[n,r,m,u,o]),v=W.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let E=new Set,w=!1;if(r.forEach(S=>{let T=u.routes[S.route.id];!T||!T.hasLoader||(!p.some(D=>D.route.id===S.route.id)&&S.route.id in d&&s[S.route.id]?.shouldRevalidate||T.hasClientLoader?w=!0:E.add(S.route.id))}),E.size===0)return[];let C=m1(n,f,"data");return w&&E.size>0&&C.searchParams.set("_routes",r.filter(S=>E.has(S.route.id)).map(S=>S.route.id).join(",")),[C.pathname+C.search]},[f,d,o,u,p,r,n,s]),x=W.useMemo(()=>x1(g,u),[g,u]),y=E1(g);return W.createElement(W.Fragment,null,v.map(E=>W.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...a})),x.map(E=>W.createElement("link",{key:E,rel:"modulepreload",href:E,...a})),y.map(({key:E,link:w})=>W.createElement("link",{key:E,nonce:a.nonce,...w})))}function T1(...n){return r=>{n.forEach(a=>{typeof a=="function"?a(r):a!=null&&(a.current=r)})}}var Wg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Wg&&(window.__reactRouterVersion="7.9.5")}catch{}function A1({basename:n,children:r,window:a}){let o=W.useRef();o.current==null&&(o.current=mx({window:a,v5Compat:!0}));let u=o.current,[s,f]=W.useState({action:u.action,location:u.location}),d=W.useCallback(m=>{W.startTransition(()=>f(m))},[f]);return W.useLayoutEffect(()=>u.listen(d),[u,d]),W.createElement(a1,{basename:n,children:r,location:s.location,navigationType:s.action,navigator:u})}var Jg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=W.forwardRef(function({onClick:r,discover:a="render",prefetch:o="none",relative:u,reloadDocument:s,replace:f,state:d,target:m,to:p,preventScrollReset:g,viewTransition:v,...x},y){let{basename:E}=W.useContext(Mn),w=typeof p=="string"&&Jg.test(p),C,S=!1;if(typeof p=="string"&&w&&(C=p,Wg))try{let K=new URL(window.location.href),ce=p.startsWith("//")?new URL(K.protocol+p):new URL(p),me=ni(ce.pathname,E);ce.origin===K.origin&&me!=null?p=me+ce.search+ce.hash:S=!0}catch{zn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=Fx(p,{relative:u}),[D,I,q]=_1(o,x),U=N1(p,{replace:f,state:d,target:m,preventScrollReset:g,relative:u,viewTransition:v});function P(K){r&&r(K),K.defaultPrevented||U(K)}let ae=W.createElement("a",{...x,...q,href:C||T,onClick:S||s?r:P,ref:T1(y,I),target:m,"data-discover":!w&&a==="render"?"true":void 0});return D&&!w?W.createElement(W.Fragment,null,ae,W.createElement(z1,{page:T})):ae});Ft.displayName="Link";var j1=W.forwardRef(function({"aria-current":r="page",caseSensitive:a=!1,className:o="",end:u=!1,style:s,to:f,viewTransition:d,children:m,...p},g){let v=ll(f,{relative:p.relative}),x=ii(),y=W.useContext(Io),{navigator:E,basename:w}=W.useContext(Mn),C=y!=null&&H1(v)&&d===!0,S=E.encodeLocation?E.encodeLocation(v).pathname:v.pathname,T=x.pathname,D=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;a||(T=T.toLowerCase(),D=D?D.toLowerCase():null,S=S.toLowerCase()),D&&w&&(D=ni(D,w)||D);const I=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let q=T===S||!u&&T.startsWith(S)&&T.charAt(I)==="/",U=D!=null&&(D===S||!u&&D.startsWith(S)&&D.charAt(S.length)==="/"),P={isActive:q,isPending:U,isTransitioning:C},ae=q?r:void 0,K;typeof o=="function"?K=o(P):K=[o,q?"active":null,U?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ce=typeof s=="function"?s(P):s;return W.createElement(Ft,{...p,"aria-current":ae,className:K,ref:g,style:ce,to:f,viewTransition:d},typeof m=="function"?m(P):m)});j1.displayName="NavLink";var R1=W.forwardRef(({discover:n="render",fetcherKey:r,navigate:a,reloadDocument:o,replace:u,state:s,method:f=jo,action:d,onSubmit:m,relative:p,preventScrollReset:g,viewTransition:v,...x},y)=>{let E=L1(),w=U1(d,{relative:p}),C=f.toLowerCase()==="get"?"get":"post",S=typeof d=="string"&&Jg.test(d),T=D=>{if(m&&m(D),D.defaultPrevented)return;D.preventDefault();let I=D.nativeEvent.submitter,q=I?.getAttribute("formmethod")||f;E(I||D.currentTarget,{fetcherKey:r,method:q,navigate:a,replace:u,state:s,relative:p,preventScrollReset:g,viewTransition:v})};return W.createElement("form",{ref:y,method:C,action:w,onSubmit:o?m:T,...x,"data-discover":!S&&n==="render"?"true":void 0})});R1.displayName="Form";function D1(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function $g(n){let r=W.useContext(Qa);return gt(r,D1(n)),r}function N1(n,{target:r,replace:a,state:o,preventScrollReset:u,relative:s,viewTransition:f}={}){let d=Jc(),m=ii(),p=ll(n,{relative:s});return W.useCallback(g=>{if(c1(g,r)){g.preventDefault();let v=a!==void 0?a:tl(m)===tl(p);d(n,{replace:v,state:o,preventScrollReset:u,relative:s,viewTransition:f})}},[m,d,p,a,o,r,n,u,s,f])}function O1(n){zn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=W.useRef(Nc(n)),a=W.useRef(!1),o=ii(),u=W.useMemo(()=>f1(o.search,a.current?null:r.current),[o.search]),s=Jc(),f=W.useCallback((d,m)=>{const p=Nc(typeof d=="function"?d(new URLSearchParams(u)):d);a.current=!0,s("?"+p,m)},[s,u]);return[u,f]}var M1=0,B1=()=>`__${String(++M1)}__`;function L1(){let{router:n}=$g("useSubmit"),{basename:r}=W.useContext(Mn),a=e1();return W.useCallback(async(o,u={})=>{let{action:s,method:f,encType:d,formData:m,body:p}=p1(o,r);if(u.navigate===!1){let g=u.fetcherKey||B1();await n.fetch(g,a,u.action||s,{preventScrollReset:u.preventScrollReset,formData:m,body:p,formMethod:u.method||f,formEncType:u.encType||d,flushSync:u.flushSync})}else await n.navigate(u.action||s,{preventScrollReset:u.preventScrollReset,formData:m,body:p,formMethod:u.method||f,formEncType:u.encType||d,replace:u.replace,state:u.state,fromRouteId:a,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,r,a])}function U1(n,{relative:r}={}){let{basename:a}=W.useContext(Mn),o=W.useContext(Bn);gt(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),s={...ll(n||".",{relative:r})},f=ii();if(n==null){s.search=f.search;let d=new URLSearchParams(s.search),m=d.getAll("index");if(m.some(g=>g==="")){d.delete("index"),m.filter(v=>v).forEach(v=>d.append("index",v));let g=d.toString();s.search=g?`?${g}`:""}}return(!n||n===".")&&u.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(s.pathname=s.pathname==="/"?a:ti([a,s.pathname])),tl(s)}function H1(n,{relative:r}={}){let a=W.useContext(Yg);gt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=$g("useViewTransitionState"),u=ll(n,{relative:r});if(!a.isTransitioning)return!1;let s=ni(a.currentLocation.pathname,o)||a.currentLocation.pathname,f=ni(a.nextLocation.pathname,o)||a.nextLocation.pathname;return Oo(u.pathname,f)!=null||Oo(u.pathname,s)!=null}const Oc="/assets/coffee-DVa1ZYI3.png",q1=()=>{const n=ii(),[r,a]=W.useState(!1),o=u=>`text-gray-700 font-bold px-3 py-2 rounded-md transition-colors ${n.pathname===u?"bg-yellow-300":"hover:bg-gray-100"}`;return k.jsxs("nav",{className:"bg-[#f5ffe8] p-4",children:[k.jsxs("div",{className:"container mx-auto flex justify-between items-center max-w-screen-lg",children:[k.jsx(Ft,{to:"/",children:k.jsx("img",{src:"/logo.png",alt:"Resizeo Logo",className:"h-14 w-auto"})}),k.jsxs("div",{className:"hidden md:flex space-x-2",children:[k.jsx(Ft,{to:"/",className:o("/"),children:"Home"}),k.jsx(Ft,{to:"/presets",className:o("/presets"),children:"Resizer Presets"}),k.jsx(Ft,{to:"/blog",className:o("/blog"),children:"Blog"})]}),k.jsx("div",{className:"md:hidden",children:k.jsx("button",{onClick:()=>a(!r),className:"text-gray-700 focus:outline-none",children:k.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r?k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16m-7 6h7"})})})}),k.jsxs("a",{href:"https://www.paypal.com/ncp/payment/J3Q8UAHEPYP2N",target:"_blank",rel:"noopener noreferrer",className:"hidden md:flex items-center bg-yellow-400 text-white px-4 py-2 rounded-full font-bold hover:bg-yellow-500 transition-colors",children:[k.jsx("img",{src:Oc,alt:"Coffee icon",className:"h-5 w-5 mr-2"}),"Buy me a coffee"]})]}),r&&k.jsx("div",{className:"md:hidden mt-4",children:k.jsxs("div",{className:"flex flex-col space-y-2",children:[k.jsx(Ft,{to:"/",className:o("/"),children:"Home"}),k.jsx(Ft,{to:"/presets",className:o("/presets"),children:"Resizer Presets"}),k.jsx(Ft,{to:"/blog",className:o("/blog"),children:"Blog"}),k.jsxs("a",{href:"https://www.paypal.com/ncp/payment/J3Q8UAHEPYP2N",target:"_blank",rel:"noopener noreferrer",className:"flex items-center bg-yellow-400 text-white px-4 py-2 rounded-full font-bold hover:bg-yellow-500 transition-colors",children:[k.jsx("img",{src:Oc,alt:"Coffee icon",className:"h-5 w-5 mr-2"}),"Buy me a coffee"]})]})})]})},I1=()=>k.jsxs("footer",{className:"bg-gray-100 py-8",children:[k.jsxs("div",{className:"container mx-auto flex justify-between items-center max-w-screen-lg",children:[k.jsx("div",{children:k.jsx("img",{src:"/logo.png",alt:"Resizeo Logo",className:"h-10 w-auto mb-2"})}),k.jsxs("div",{className:"flex flex-col md:flex-row md:space-x-8 space-y-4 md:space-y-0",children:[k.jsxs("div",{className:"flex space-x-8",children:[k.jsxs("div",{children:[k.jsx("h4",{className:"font-bold mb-2",children:"RESOURCES"}),k.jsx(Ft,{to:"/presets",className:"text-gray-600 hover:underline",children:"Resizer Presets"})]}),k.jsxs("div",{children:[k.jsx("h4",{className:"font-bold mb-2",children:"LEGAL"}),k.jsx(Ft,{to:"/privacy-policy",className:"text-gray-600 hover:underline",children:"Privacy Policy"}),k.jsx("br",{}),k.jsx(Ft,{to:"/terms-of-service",className:"text-gray-600 hover:underline",children:"Terms & Conditions"})]})]}),k.jsxs("div",{children:[k.jsx("h4",{className:"font-bold mb-2",children:"SUPPORT & CONTACT"}),k.jsxs("a",{href:"https://www.paypal.com/ncp/payment/J3Q8UAHEPYP2N",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-gray-600 hover:underline",children:[k.jsx("img",{src:Oc,alt:"Coffee icon",className:"h-4 w-4 mr-1"}),"Buy me a coffee"]}),k.jsx("br",{}),k.jsx("a",{href:"mailto:support@resizeo.com",className:"text-gray-600 hover:underline",children:"Contact us"})]})]})]}),k.jsxs("div",{className:"text-sm text-gray-500 text-center mt-8",children:[k.jsx("p",{className:"mb-1",children:"©2025 Resizeo.com. All Rights Reserved."}),k.jsx("p",{children:"Made With ❤️ For Everyone"})]})]});var dc={exports:{}},hc,Rm;function F1(){if(Rm)return hc;Rm=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hc=n,hc}var pc,Dm;function P1(){if(Dm)return pc;Dm=1;var n=F1();function r(){}function a(){}return a.resetWarningCache=r,pc=function(){function o(f,d,m,p,g,v){if(v!==n){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function u(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:u,element:o,elementType:o,instanceOf:u,node:o,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:a,resetWarningCache:r};return s.PropTypes=s,s},pc}var Nm;function Y1(){return Nm||(Nm=1,dc.exports=P1()()),dc.exports}var G1=Y1();const ot=Za(G1);function $i(n,r,a,o){function u(s){return s instanceof a?s:new a(function(f){f(s)})}return new(a||(a=Promise))(function(s,f){function d(g){try{p(o.next(g))}catch(v){f(v)}}function m(g){try{p(o.throw(g))}catch(v){f(v)}}function p(g){g.done?s(g.value):u(g.value).then(d,m)}p((o=o.apply(n,r||[])).next())})}const V1=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Xa(n,r,a){const o=X1(n),{webkitRelativePath:u}=n,s=typeof r=="string"?r:typeof u=="string"&&u.length>0?u:`./${n.name}`;return typeof o.path!="string"&&Om(o,"path",s),Om(o,"relativePath",s),o}function X1(n){const{name:r}=n;if(r&&r.lastIndexOf(".")!==-1&&!n.type){const o=r.split(".").pop().toLowerCase(),u=V1.get(o);u&&Object.defineProperty(n,"type",{value:u,writable:!1,configurable:!1,enumerable:!0})}return n}function Om(n,r,a){Object.defineProperty(n,r,{value:a,writable:!1,configurable:!1,enumerable:!0})}const Z1=[".DS_Store","Thumbs.db"];function K1(n){return $i(this,void 0,void 0,function*(){return Mo(n)&&Q1(n.dataTransfer)?eb(n.dataTransfer,n.type):W1(n)?J1(n):Array.isArray(n)&&n.every(r=>"getFile"in r&&typeof r.getFile=="function")?$1(n):[]})}function Q1(n){return Mo(n)}function W1(n){return Mo(n)&&Mo(n.target)}function Mo(n){return typeof n=="object"&&n!==null}function J1(n){return Mc(n.target.files).map(r=>Xa(r))}function $1(n){return $i(this,void 0,void 0,function*(){return(yield Promise.all(n.map(a=>a.getFile()))).map(a=>Xa(a))})}function eb(n,r){return $i(this,void 0,void 0,function*(){if(n.items){const a=Mc(n.items).filter(u=>u.kind==="file");if(r!=="drop")return a;const o=yield Promise.all(a.map(tb));return Mm(e0(o))}return Mm(Mc(n.files).map(a=>Xa(a)))})}function Mm(n){return n.filter(r=>Z1.indexOf(r.name)===-1)}function Mc(n){if(n===null)return[];const r=[];for(let a=0;a<n.length;a++){const o=n[a];r.push(o)}return r}function tb(n){if(typeof n.webkitGetAsEntry!="function")return Bm(n);const r=n.webkitGetAsEntry();return r&&r.isDirectory?t0(r):Bm(n,r)}function e0(n){return n.reduce((r,a)=>[...r,...Array.isArray(a)?e0(a):[a]],[])}function Bm(n,r){return $i(this,void 0,void 0,function*(){var a;if(globalThis.isSecureContext&&typeof n.getAsFileSystemHandle=="function"){const s=yield n.getAsFileSystemHandle();if(s===null)throw new Error(`${n} is not a File`);if(s!==void 0){const f=yield s.getFile();return f.handle=s,Xa(f)}}const o=n.getAsFile();if(!o)throw new Error(`${n} is not a File`);return Xa(o,(a=r?.fullPath)!==null&&a!==void 0?a:void 0)})}function nb(n){return $i(this,void 0,void 0,function*(){return n.isDirectory?t0(n):ib(n)})}function t0(n){const r=n.createReader();return new Promise((a,o)=>{const u=[];function s(){r.readEntries(f=>$i(this,void 0,void 0,function*(){if(f.length){const d=Promise.all(f.map(nb));u.push(d),s()}else try{const d=yield Promise.all(u);a(d)}catch(d){o(d)}}),f=>{o(f)})}s()})}function ib(n){return $i(this,void 0,void 0,function*(){return new Promise((r,a)=>{n.file(o=>{const u=Xa(o,n.fullPath);r(u)},o=>{a(o)})})})}var _o={},Lm;function ab(){return Lm||(Lm=1,_o.__esModule=!0,_o.default=function(n,r){if(n&&r){var a=Array.isArray(r)?r:r.split(",");if(a.length===0)return!0;var o=n.name||"",u=(n.type||"").toLowerCase(),s=u.replace(/\/.*$/,"");return a.some(function(f){var d=f.trim().toLowerCase();return d.charAt(0)==="."?o.toLowerCase().endsWith(d):d.endsWith("/*")?s===d.replace(/\/.*$/,""):u===d})}return!0}),_o}var rb=ab();const mc=Za(rb);function Um(n){return sb(n)||ob(n)||i0(n)||lb()}function lb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ob(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function sb(n){if(Array.isArray(n))return Bc(n)}function Hm(n,r){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);r&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),a.push.apply(a,o)}return a}function qm(n){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?Hm(Object(a),!0).forEach(function(o){n0(n,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):Hm(Object(a)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(a,o))})}return n}function n0(n,r,a){return r in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n}function nl(n,r){return fb(n)||cb(n,r)||i0(n,r)||ub()}function ub(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i0(n,r){if(n){if(typeof n=="string")return Bc(n,r);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Bc(n,r)}}function Bc(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,o=new Array(r);a<r;a++)o[a]=n[a];return o}function cb(n,r){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var o=[],u=!0,s=!1,f,d;try{for(a=a.call(n);!(u=(f=a.next()).done)&&(o.push(f.value),!(r&&o.length===r));u=!0);}catch(m){s=!0,d=m}finally{try{!u&&a.return!=null&&a.return()}finally{if(s)throw d}}return o}}function fb(n){if(Array.isArray(n))return n}var db=typeof mc=="function"?mc:mc.default,hb="file-invalid-type",pb="file-too-large",mb="file-too-small",gb="too-many-files",yb=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=r.split(","),o=a.length>1?"one of ".concat(a.join(", ")):a[0];return{code:hb,message:"File type must be ".concat(o)}},Im=function(r){return{code:pb,message:"File is larger than ".concat(r," ").concat(r===1?"byte":"bytes")}},Fm=function(r){return{code:mb,message:"File is smaller than ".concat(r," ").concat(r===1?"byte":"bytes")}},vb={code:gb,message:"Too many files"};function a0(n,r){var a=n.type==="application/x-moz-file"||db(n,r);return[a,a?null:yb(r)]}function r0(n,r,a){if(Ji(n.size))if(Ji(r)&&Ji(a)){if(n.size>a)return[!1,Im(a)];if(n.size<r)return[!1,Fm(r)]}else{if(Ji(r)&&n.size<r)return[!1,Fm(r)];if(Ji(a)&&n.size>a)return[!1,Im(a)]}return[!0,null]}function Ji(n){return n!=null}function xb(n){var r=n.files,a=n.accept,o=n.minSize,u=n.maxSize,s=n.multiple,f=n.maxFiles,d=n.validator;return!s&&r.length>1||s&&f>=1&&r.length>f?!1:r.every(function(m){var p=a0(m,a),g=nl(p,1),v=g[0],x=r0(m,o,u),y=nl(x,1),E=y[0],w=d?d(m):null;return v&&E&&!w})}function Bo(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function zo(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(r){return r==="Files"||r==="application/x-moz-file"}):!!n.target&&!!n.target.files}function Pm(n){n.preventDefault()}function bb(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function wb(n){return n.indexOf("Edge/")!==-1}function Sb(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return bb(n)||wb(n)}function Rn(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return function(o){for(var u=arguments.length,s=new Array(u>1?u-1:0),f=1;f<u;f++)s[f-1]=arguments[f];return r.some(function(d){return!Bo(o)&&d&&d.apply(void 0,[o].concat(s)),Bo(o)})}}function kb(){return"showOpenFilePicker"in window}function _b(n){if(Ji(n)){var r=Object.entries(n).filter(function(a){var o=nl(a,2),u=o[0],s=o[1],f=!0;return l0(u)||(console.warn('Skipped "'.concat(u,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),f=!1),(!Array.isArray(s)||!s.every(o0))&&(console.warn('Skipped "'.concat(u,'" because an invalid file extension was provided.')),f=!1),f}).reduce(function(a,o){var u=nl(o,2),s=u[0],f=u[1];return qm(qm({},a),{},n0({},s,f))},{});return[{description:"Files",accept:r}]}return n}function zb(n){if(Ji(n))return Object.entries(n).reduce(function(r,a){var o=nl(a,2),u=o[0],s=o[1];return[].concat(Um(r),[u],Um(s))},[]).filter(function(r){return l0(r)||o0(r)}).join(",")}function Eb(n){return n instanceof DOMException&&(n.name==="AbortError"||n.code===n.ABORT_ERR)}function Cb(n){return n instanceof DOMException&&(n.name==="SecurityError"||n.code===n.SECURITY_ERR)}function l0(n){return n==="audio/*"||n==="video/*"||n==="image/*"||n==="text/*"||n==="application/*"||/\w+\/[-+.\w]+/g.test(n)}function o0(n){return/^.*\.[\w]+$/.test(n)}var Tb=["children"],Ab=["open"],jb=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Rb=["refKey","onChange","onClick"];function Db(n){return Mb(n)||Ob(n)||s0(n)||Nb()}function Nb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ob(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Mb(n){if(Array.isArray(n))return Lc(n)}function gc(n,r){return Ub(n)||Lb(n,r)||s0(n,r)||Bb()}function Bb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s0(n,r){if(n){if(typeof n=="string")return Lc(n,r);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Lc(n,r)}}function Lc(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,o=new Array(r);a<r;a++)o[a]=n[a];return o}function Lb(n,r){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var o=[],u=!0,s=!1,f,d;try{for(a=a.call(n);!(u=(f=a.next()).done)&&(o.push(f.value),!(r&&o.length===r));u=!0);}catch(m){s=!0,d=m}finally{try{!u&&a.return!=null&&a.return()}finally{if(s)throw d}}return o}}function Ub(n){if(Array.isArray(n))return n}function Ym(n,r){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);r&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),a.push.apply(a,o)}return a}function mt(n){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?Ym(Object(a),!0).forEach(function(o){Uc(n,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):Ym(Object(a)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(a,o))})}return n}function Uc(n,r,a){return r in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n}function Lo(n,r){if(n==null)return{};var a=Hb(n,r),o,u;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(u=0;u<s.length;u++)o=s[u],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(n,o)&&(a[o]=n[o])}return a}function Hb(n,r){if(n==null)return{};var a={},o=Object.keys(n),u,s;for(s=0;s<o.length;s++)u=o[s],!(r.indexOf(u)>=0)&&(a[u]=n[u]);return a}var af=W.forwardRef(function(n,r){var a=n.children,o=Lo(n,Tb),u=c0(o),s=u.open,f=Lo(u,Ab);return W.useImperativeHandle(r,function(){return{open:s}},[s]),Je.createElement(W.Fragment,null,a(mt(mt({},f),{},{open:s})))});af.displayName="Dropzone";var u0={disabled:!1,getFilesFromEvent:K1,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};af.defaultProps=u0;af.propTypes={children:ot.func,accept:ot.objectOf(ot.arrayOf(ot.string)),multiple:ot.bool,preventDropOnDocument:ot.bool,noClick:ot.bool,noKeyboard:ot.bool,noDrag:ot.bool,noDragEventsBubbling:ot.bool,minSize:ot.number,maxSize:ot.number,maxFiles:ot.number,disabled:ot.bool,getFilesFromEvent:ot.func,onFileDialogCancel:ot.func,onFileDialogOpen:ot.func,useFsAccessApi:ot.bool,autoFocus:ot.bool,onDragEnter:ot.func,onDragLeave:ot.func,onDragOver:ot.func,onDrop:ot.func,onDropAccepted:ot.func,onDropRejected:ot.func,onError:ot.func,validator:ot.func};var Hc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function c0(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=mt(mt({},u0),n),a=r.accept,o=r.disabled,u=r.getFilesFromEvent,s=r.maxSize,f=r.minSize,d=r.multiple,m=r.maxFiles,p=r.onDragEnter,g=r.onDragLeave,v=r.onDragOver,x=r.onDrop,y=r.onDropAccepted,E=r.onDropRejected,w=r.onFileDialogCancel,C=r.onFileDialogOpen,S=r.useFsAccessApi,T=r.autoFocus,D=r.preventDropOnDocument,I=r.noClick,q=r.noKeyboard,U=r.noDrag,P=r.noDragEventsBubbling,ae=r.onError,K=r.validator,ce=W.useMemo(function(){return zb(a)},[a]),me=W.useMemo(function(){return _b(a)},[a]),O=W.useMemo(function(){return typeof C=="function"?C:Gm},[C]),ee=W.useMemo(function(){return typeof w=="function"?w:Gm},[w]),z=W.useRef(null),F=W.useRef(null),G=W.useReducer(qb,Hc),X=gc(G,2),be=X[0],oe=X[1],N=be.isFocused,j=be.isFileDialogActive,B=W.useRef(typeof window<"u"&&window.isSecureContext&&S&&kb()),R=function(){!B.current&&j&&setTimeout(function(){if(F.current){var ue=F.current.files;ue.length||(oe({type:"closeDialog"}),ee())}},300)};W.useEffect(function(){return window.addEventListener("focus",R,!1),function(){window.removeEventListener("focus",R,!1)}},[F,j,ee,B]);var re=W.useRef([]),fe=function(ue){z.current&&z.current.contains(ue.target)||(ue.preventDefault(),re.current=[])};W.useEffect(function(){return D&&(document.addEventListener("dragover",Pm,!1),document.addEventListener("drop",fe,!1)),function(){D&&(document.removeEventListener("dragover",Pm),document.removeEventListener("drop",fe))}},[z,D]),W.useEffect(function(){return!o&&T&&z.current&&z.current.focus(),function(){}},[z,T,o]);var _e=W.useCallback(function(ne){ae?ae(ne):console.error(ne)},[ae]),Ae=W.useCallback(function(ne){ne.preventDefault(),ne.persist(),ye(ne),re.current=[].concat(Db(re.current),[ne.target]),zo(ne)&&Promise.resolve(u(ne)).then(function(ue){if(!(Bo(ne)&&!P)){var V=ue.length,de=V>0&&xb({files:ue,accept:ce,minSize:f,maxSize:s,multiple:d,maxFiles:m,validator:K}),we=V>0&&!de;oe({isDragAccept:de,isDragReject:we,isDragActive:!0,type:"setDraggedFiles"}),p&&p(ne)}}).catch(function(ue){return _e(ue)})},[u,p,_e,P,ce,f,s,d,m,K]),Ee=W.useCallback(function(ne){ne.preventDefault(),ne.persist(),ye(ne);var ue=zo(ne);if(ue&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return ue&&v&&v(ne),!1},[v,P]),Ce=W.useCallback(function(ne){ne.preventDefault(),ne.persist(),ye(ne);var ue=re.current.filter(function(de){return z.current&&z.current.contains(de)}),V=ue.indexOf(ne.target);V!==-1&&ue.splice(V,1),re.current=ue,!(ue.length>0)&&(oe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),zo(ne)&&g&&g(ne))},[z,g,P]),Pe=W.useCallback(function(ne,ue){var V=[],de=[];ne.forEach(function(we){var je=a0(we,ce),Me=gc(je,2),nt=Me[0],Tt=Me[1],Le=r0(we,f,s),$e=gc(Le,2),yt=$e[0],Ue=$e[1],qt=K?K(we):null;if(nt&&yt&&!qt)V.push(we);else{var Dt=[Tt,Ue];qt&&(Dt=Dt.concat(qt)),de.push({file:we,errors:Dt.filter(function($a){return $a})})}}),(!d&&V.length>1||d&&m>=1&&V.length>m)&&(V.forEach(function(we){de.push({file:we,errors:[vb]})}),V.splice(0)),oe({acceptedFiles:V,fileRejections:de,isDragReject:de.length>0,type:"setFiles"}),x&&x(V,de,ue),de.length>0&&E&&E(de,ue),V.length>0&&y&&y(V,ue)},[oe,d,ce,f,s,m,x,y,E,K]),Ye=W.useCallback(function(ne){ne.preventDefault(),ne.persist(),ye(ne),re.current=[],zo(ne)&&Promise.resolve(u(ne)).then(function(ue){Bo(ne)&&!P||Pe(ue,ne)}).catch(function(ue){return _e(ue)}),oe({type:"reset"})},[u,Pe,_e,P]),pt=W.useCallback(function(){if(B.current){oe({type:"openDialog"}),O();var ne={multiple:d,types:me};window.showOpenFilePicker(ne).then(function(ue){return u(ue)}).then(function(ue){Pe(ue,null),oe({type:"closeDialog"})}).catch(function(ue){Eb(ue)?(ee(ue),oe({type:"closeDialog"})):Cb(ue)?(B.current=!1,F.current?(F.current.value=null,F.current.click()):_e(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):_e(ue)});return}F.current&&(oe({type:"openDialog"}),O(),F.current.value=null,F.current.click())},[oe,O,ee,S,Pe,_e,me,d]),Ct=W.useCallback(function(ne){!z.current||!z.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),pt())},[z,pt]),_=W.useCallback(function(){oe({type:"focus"})},[]),pe=W.useCallback(function(){oe({type:"blur"})},[]),le=W.useCallback(function(){I||(Sb()?setTimeout(pt,0):pt())},[I,pt]),L=function(ue){return o?null:ue},M=function(ue){return q?null:L(ue)},Z=function(ue){return U?null:L(ue)},ye=function(ue){P&&ue.stopPropagation()},xe=W.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=ne.refKey,V=ue===void 0?"ref":ue,de=ne.role,we=ne.onKeyDown,je=ne.onFocus,Me=ne.onBlur,nt=ne.onClick,Tt=ne.onDragEnter,Le=ne.onDragOver,$e=ne.onDragLeave,yt=ne.onDrop,Ue=Lo(ne,jb);return mt(mt(Uc({onKeyDown:M(Rn(we,Ct)),onFocus:M(Rn(je,_)),onBlur:M(Rn(Me,pe)),onClick:L(Rn(nt,le)),onDragEnter:Z(Rn(Tt,Ae)),onDragOver:Z(Rn(Le,Ee)),onDragLeave:Z(Rn($e,Ce)),onDrop:Z(Rn(yt,Ye)),role:typeof de=="string"&&de!==""?de:"presentation"},V,z),!o&&!q?{tabIndex:0}:{}),Ue)}},[z,Ct,_,pe,le,Ae,Ee,Ce,Ye,q,U,o]),te=W.useCallback(function(ne){ne.stopPropagation()},[]),Se=W.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=ne.refKey,V=ue===void 0?"ref":ue,de=ne.onChange,we=ne.onClick,je=Lo(ne,Rb),Me=Uc({accept:ce,multiple:d,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:L(Rn(de,Ye)),onClick:L(Rn(we,te)),tabIndex:-1},V,F);return mt(mt({},Me),je)}},[F,a,d,Ye,o]);return mt(mt({},be),{},{isFocused:N&&!o,getRootProps:xe,getInputProps:Se,rootRef:z,inputRef:F,open:L(pt)})}function qb(n,r){switch(r.type){case"focus":return mt(mt({},n),{},{isFocused:!0});case"blur":return mt(mt({},n),{},{isFocused:!1});case"openDialog":return mt(mt({},Hc),{},{isFileDialogActive:!0});case"closeDialog":return mt(mt({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":return mt(mt({},n),{},{isDragActive:r.isDragActive,isDragAccept:r.isDragAccept,isDragReject:r.isDragReject});case"setFiles":return mt(mt({},n),{},{acceptedFiles:r.acceptedFiles,fileRejections:r.fileRejections,isDragReject:r.isDragReject});case"reset":return mt({},Hc);default:return n}}function Gm(){}const Ib=({onFiles:n,filesCount:r})=>{const a=W.useCallback(f=>{n(f)},[n]),{getRootProps:o,getInputProps:u,isDragActive:s}=c0({onDrop:a});return k.jsxs("div",{...o(),className:`border-2 border-dashed border-green-300 bg-green-50 rounded-lg p-4 text-center flex flex-col justify-center items-center h-32 cursor-pointer ${s?"bg-green-100":""}`,children:[k.jsx("input",{...u()}),k.jsxs("div",{className:"flex flex-col items-center",children:[k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-10 h-10 text-green-600",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-16.5-9L12 3m0 0l7.5 7.5M12 3v13.5"})}),k.jsxs("p",{className:"mt-1 text-base text-gray-700",children:["Drag & drop images here, or click to select (",r,"/10)"]}),k.jsx("p",{className:"text-xs text-gray-500",children:"Supported formats: JPG, JPEG, PNG, WEBP (Max 20MB per file)"})]})]})},Vm=[{name:"Instagram Post (Square)",width:1080,height:1080,unit:"px"},{name:"Instagram Story / Reel",width:1080,height:1920,unit:"px"},{name:"Facebook Post",width:1200,height:630,unit:"px"},{name:"YouTube Thumbnail",width:1280,height:720,unit:"px"},{name:"Full HD Screen (1920x1080)",width:1920,height:1080,unit:"px"},{name:"4K UHD Screen (3840x2160)",width:3840,height:2160,unit:"px"},{name:"Web Banner (Leaderboard)",width:728,height:90,unit:"px"},{name:"App Screenshot (iOS)",width:1242,height:2208,unit:"px"},{name:"Spotify Banner",width:2660,height:1140,unit:"px"},{name:"Email Header",width:600,height:200,unit:"px"},{name:"US Letter Paper",width:8.5,height:11,unit:"in"},{name:"4x6 Photo",width:6,height:4,unit:"in"},{name:"8x10 Photo",width:8,height:10,unit:"in"},{name:"US Business Card",width:3.5,height:2,unit:"in"},{name:"A4 Paper (21x29.7 cm)",width:21,height:29.7,unit:"cm"},{name:"A5 Paper (14.8x21 cm)",width:14.8,height:21,unit:"cm"},{name:"Business Card (EU)",width:8.5,height:5.5,unit:"cm"},{name:"Credit Card (85.6x53.98 mm)",width:85.6,height:53.98,unit:"mm"},{name:"Passport Photo (EU, 35x45 mm)",width:35,height:45,unit:"mm"},{name:"Full Size (100%)",width:100,height:100,unit:"%"},{name:"Half Size (50%)",width:50,height:50,unit:"%"},{name:"Scale to 75%",width:75,height:75,unit:"%"}],Fb=[{name:"PX",presets:[{name:"Instagram Post (Square)",width:1080,height:1080,unit:"px"},{name:"Instagram Post (Portrait)",width:1080,height:1350,unit:"px"},{name:"Instagram Story / Reel",width:1080,height:1920,unit:"px"},{name:"Facebook Post",width:1200,height:630,unit:"px"},{name:"Facebook Cover",width:851,height:315,unit:"px"},{name:"Facebook Story",width:1080,height:1920,unit:"px"},{name:"X / Twitter Header",width:1500,height:500,unit:"px"},{name:"X / Twitter Post",width:1600,height:900,unit:"px"},{name:"LinkedIn Post",width:1200,height:627,unit:"px"},{name:"LinkedIn Profile Banner",width:1584,height:396,unit:"px"},{name:"TikTok Video",width:1080,height:1920,unit:"px"},{name:"Pinterest Pin",width:1e3,height:1500,unit:"px"},{name:"YouTube Thumbnail",width:1280,height:720,unit:"px"},{name:"YouTube Channel Art",width:2560,height:1440,unit:"px"},{name:"Spotify Banner",width:2660,height:1140,unit:"px"},{name:"Podcast Cover",width:3e3,height:3e3,unit:"px"},{name:"Email Header",width:600,height:200,unit:"px"},{name:"Etsy Cover Photo",width:1200,height:300,unit:"px"},{name:"A4 Size (300 DPI)",width:2480,height:3508,unit:"px"},{name:"US Letter (300 DPI)",width:2550,height:3300,unit:"px"},{name:"Book Cover (Paperback 6x9in, 300 DPI)",width:1800,height:2700,unit:"px"},{name:"Business Card (US, 300 DPI)",width:1050,height:600,unit:"px"},{name:"CD Cover (4.7in, 300 DPI)",width:1416,height:1416,unit:"px"},{name:"DVD Cover (7.2x5.1in, 300 DPI)",width:2160,height:1530,unit:"px"},{name:"Ebook Cover (1.6:1 ratio)",width:1600,height:2560,unit:"px"},{name:"Flyer (A5, 300 DPI)",width:1748,height:2480,unit:"px"},{name:"Flyer (US Letter, 300 DPI)",width:2550,height:3300,unit:"px"},{name:"Poster (Large, 24x36in, 300 DPI)",width:7200,height:10800,unit:"px"},{name:"Poster (Small, 11x17in, 300 DPI)",width:3300,height:5100,unit:"px"},{name:"Presentation Slide (16:9)",width:1920,height:1080,unit:"px"},{name:"Presentation Slide (4:3)",width:1024,height:768,unit:"px"},{name:"Product Thumbnail",width:800,height:800,unit:"px"},{name:"Resume (A4, 300 DPI)",width:2480,height:3508,unit:"px"},{name:"Snapchat Geofilter",width:1080,height:2340,unit:"px"},{name:"Story Highlight Cover",width:1080,height:1080,unit:"px"},{name:"Tumblr Banner",width:3e3,height:1055,unit:"px"},{name:"Wallpaper (Desktop, Full HD)",width:1920,height:1080,unit:"px"},{name:"Wallpaper (Mobile, Standard)",width:1080,height:1920,unit:"px"},{name:"Web Icon (Small)",width:16,height:16,unit:"px"},{name:"Web Icon (Medium)",width:32,height:32,unit:"px"},{name:"Web Icon (Large)",width:48,height:48,unit:"px"}]},{name:"CM",presets:[{name:"2R Photo",width:6,height:9,unit:"cm"},{name:"3R Photo",width:8.9,height:12.7,unit:"cm"},{name:"4R Photo",width:10.2,height:15.2,unit:"cm"},{name:"5R Photo",width:12.7,height:17.8,unit:"cm"},{name:"6R Photo",width:15.2,height:20.3,unit:"cm"},{name:"8R Photo",width:20.3,height:25.4,unit:"cm"},{name:"10R Photo",width:25.4,height:30.5,unit:"cm"},{name:"A0 Paper",width:84.1,height:118.9,unit:"cm"},{name:"A1 Paper",width:59.4,height:84.1,unit:"cm"},{name:"A2 Paper",width:42,height:59.4,unit:"cm"},{name:"A3 Paper",width:29.7,height:42,unit:"cm"},{name:"A4 Paper",width:21,height:29.7,unit:"cm"},{name:"A5 Paper",width:14.8,height:21,unit:"cm"},{name:"A6 Paper",width:10.5,height:14.8,unit:"cm"},{name:"A7 Paper",width:7.4,height:10.5,unit:"cm"},{name:"A8 Paper",width:5.2,height:7.4,unit:"cm"},{name:"Book Cover (Paperback 15.2x22.9cm)",width:15.2,height:22.9,unit:"cm"},{name:"Business Card",width:8.5,height:5.5,unit:"cm"},{name:"CD Cover",width:12,height:12,unit:"cm"},{name:"DVD Cover",width:13,height:18.5,unit:"cm"},{name:"Ebook Cover (10.16x15.24cm)",width:10.16,height:15.24,unit:"cm"},{name:"Envelope (C4)",width:22.9,height:32.4,unit:"cm"},{name:"Envelope (C5)",width:16.2,height:22.9,unit:"cm"},{name:"Envelope (DL)",width:22,height:11,unit:"cm"},{name:"Flyer (A5)",width:14.8,height:21,unit:"cm"},{name:"Flyer (US Letter)",width:21.6,height:27.9,unit:"cm"},{name:"Poster (Large, 61x91cm)",width:61,height:91,unit:"cm"},{name:"Poster (Small, 28x43cm)",width:28,height:43,unit:"cm"},{name:"Resume (A4)",width:21,height:29.7,unit:"cm"}]},{name:"MM",presets:[{name:"A0 Paper",width:841,height:1189,unit:"mm"},{name:"A1 Paper",width:594,height:841,unit:"mm"},{name:"A2 Paper",width:420,height:594,unit:"mm"},{name:"A3 Paper",width:297,height:420,unit:"mm"},{name:"A4 Paper",width:210,height:297,unit:"mm"},{name:"A5 Paper",width:148,height:210,unit:"mm"},{name:"A6 Paper",width:105,height:148,unit:"mm"},{name:"B5 Paper",width:176,height:250,unit:"mm"},{name:"Business Card (EU)",width:85,height:55,unit:"mm"},{name:"Business Card (US)",width:89,height:51,unit:"mm"},{name:"Credit Card / ID Card",width:85.6,height:53.98,unit:"mm"},{name:"Passport Photo (EU)",width:35,height:45,unit:"mm"},{name:"Passport Photo (US)",width:51,height:51,unit:"mm"},{name:"Coaster (Square)",width:90,height:90,unit:"mm"},{name:"Coaster (Round)",width:100,height:100,unit:"mm"},{name:"Small Badge (Round)",width:25,height:25,unit:"mm"},{name:"Large Badge (Round)",width:75,height:75,unit:"mm"},{name:"Event Ticket",width:140,height:51,unit:"mm"},{name:"Rack Card",width:101,height:229,unit:"mm"},{name:"Roll-up Banner",width:850,height:2e3,unit:"mm"}]},{name:"INCH",presets:[{name:"2R Photo",width:2.5,height:3.5,unit:"in"},{name:"3R Photo",width:3.5,height:5,unit:"in"},{name:"4R Photo",width:4,height:6,unit:"in"},{name:"5R Photo",width:5,height:7,unit:"in"},{name:"6R Photo",width:6,height:8,unit:"in"},{name:"8R Photo",width:8,height:10,unit:"in"},{name:"10R Photo",width:10,height:12,unit:"in"},{name:"11x14 Photo",width:11,height:14,unit:"in"},{name:"12x18 Photo",width:12,height:18,unit:"in"},{name:"16x20 Poster",width:16,height:20,unit:"in"},{name:"24x36 Poster",width:24,height:36,unit:"in"},{name:"Business Card (US)",width:3.5,height:2,unit:"in"},{name:"CD Cover",width:4.7,height:4.7,unit:"in"},{name:"DVD Cover",width:5.1,height:7.2,unit:"in"},{name:"Half Letter Flyer",width:5.5,height:8.5,unit:"in"},{name:"Letter Flyer",width:8.5,height:11,unit:"in"},{name:"Greeting Card",width:5,height:7,unit:"in"},{name:"Invitation Card",width:5,height:7,unit:"in"},{name:"Letter Paper",width:8.5,height:11,unit:"in"},{name:"Legal Paper",width:8.5,height:14,unit:"in"},{name:"Ledger Paper",width:11,height:17,unit:"in"},{name:"Passport Photo (US)",width:2,height:2,unit:"in"},{name:"Rack Card",width:4,height:9,unit:"in"},{name:"Scrapbook Page",width:12,height:12,unit:"in"},{name:"Album Cover",width:12.375,height:12.375,unit:"in"}]},{name:"%",presets:[{name:"Full Size",width:100,height:100,unit:"%"},{name:"Half Size",width:50,height:50,unit:"%"},{name:"Quarter Size",width:25,height:25,unit:"%"},{name:"Three-Quarter Size",width:75,height:75,unit:"%"},{name:"Double Width",width:200,height:100,unit:"%"},{name:"Triple Width",width:300,height:100,unit:"%"},{name:"Double Height",width:100,height:200,unit:"%"},{name:"Triple Height",width:100,height:300,unit:"%"},{name:"Wide Stretch (150% W)",width:150,height:100,unit:"%"},{name:"Tall Stretch (100% H)",width:100,height:150,unit:"%"},{name:"Small Thumbnail (25%)",width:25,height:25,unit:"%"},{name:"Medium Thumbnail (50%)",width:50,height:50,unit:"%"},{name:"Large Thumbnail (75%)",width:75,height:75,unit:"%"},{name:"Banner Proportions (100% W)",width:100,height:30,unit:"%"},{name:"Poster Proportions (100% H)",width:70,height:100,unit:"%"},{name:"Panoramic View (200% W)",width:200,height:50,unit:"%"},{name:"Square Stretch (100% W)",width:100,height:100,unit:"%"},{name:"Compact Width (50% W)",width:50,height:100,unit:"%"},{name:"Compact Height (50% H)",width:100,height:50,unit:"%"},{name:"Extra Small Size (10%)",width:10,height:10,unit:"%"},{name:"Small Size (20%)",width:20,height:20,unit:"%"},{name:"Medium Size (40%)",width:40,height:40,unit:"%"},{name:"Large Size (60%)",width:60,height:60,unit:"%"},{name:"Extra Large Size (80%)",width:80,height:80,unit:"%"},{name:"Slim Horizontal (25% H)",width:100,height:25,unit:"%"},{name:"Slim Vertical (25% W)",width:25,height:100,unit:"%"},{name:"Proportional Scale - 10%",width:10,height:10,unit:"%"},{name:"Proportional Scale - 20%",width:20,height:20,unit:"%"},{name:"Proportional Scale - 30%",width:30,height:30,unit:"%"},{name:"Proportional Scale - 40%",width:40,height:40,unit:"%"},{name:"Proportional Scale - 60%",width:60,height:60,unit:"%"},{name:"Proportional Scale - 70%",width:70,height:70,unit:"%"},{name:"Proportional Scale - 80%",width:80,height:80,unit:"%"},{name:"Proportional Scale - 90%",width:90,height:90,unit:"%"},{name:"Proportional Scale - 120%",width:120,height:120,unit:"%"},{name:"Proportional Scale - 150%",width:150,height:150,unit:"%"},{name:"Proportional Scale - 200%",width:200,height:200,unit:"%"},{name:"Proportional Scale - 300%",width:300,height:300,unit:"%"},{name:"Proportional Scale - 400%",width:400,height:400,unit:"%"},{name:"Full Height Only (100% H)",width:100,height:100,unit:"%"},{name:"Full Width Only (100% W)",width:100,height:100,unit:"%"},{name:"Half Width, Full Height (50% W, 100% H)",width:50,height:100,unit:"%"},{name:"Double Width, Half Height (200% W, 50% H)",width:200,height:50,unit:"%"},{name:"Panoramic Horizontal (150% W, 50% H)",width:150,height:50,unit:"%"},{name:"Panoramic Vertical (50% W, 150% H)",width:50,height:150,unit:"%"},{name:"Square Scale - 25%",width:25,height:25,unit:"%"},{name:"Square Scale - 50%",width:50,height:50,unit:"%"},{name:"Square Scale - 75%",width:75,height:75,unit:"%"},{name:"Square Scale - 100%",width:100,height:100,unit:"%"}]}],Pb=({setSettings:n})=>{const r=a=>{const o=a.target.value;if(!o)return;const u=Vm.find(s=>s.name===o);u&&n(s=>({...s,width:u.width,height:u.height,unit:u.unit}))};return k.jsxs("div",{className:"relative flex items-center bg-white p-1 rounded-lg border border-gray-300",children:[k.jsxs("select",{id:"presets",name:"presets",onChange:r,className:"w-full bg-white text-gray-700 text-sm appearance-none focus:outline-none pl-2 pr-8 py-2",defaultValue:"",children:[k.jsx("option",{value:"",disabled:!0,children:"Custom Dimensions"}),Vm.map(a=>k.jsxs("option",{value:a.name,children:[a.name," (",a.width," x ",a.height," ",a.unit,")"]},a.name))]}),k.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",children:k.jsx("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:k.jsx("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})})]})},Yb=({settings:n,setSettings:r,onPreview:a,hasSelectedImages:o,aspectRatio:u})=>{const[s,f]=W.useState(!1),[d,m]=W.useState(!0),p=y=>{const{name:E,value:w}=y.target,C=w===""?void 0:Number(w);if(E==="width"&&d&&u&&C){const S=Math.round(C/u);r(T=>({...T,width:C,height:S}))}else if(E==="height"&&d&&u&&C){const S=Math.round(C*u);r(T=>({...T,height:C,width:S}))}else r(S=>({...S,[E]:C||w}))},g=y=>{r({...n,unit:y})},v=y=>{r({...n,mode:y})},x=(y,E,w,C)=>k.jsx("button",{onClick:C,className:`flex-1 py-2 px-3 text-sm rounded-md transition-colors ${w===E?"bg-blue-500 text-white shadow":"text-gray-600 hover:bg-gray-200"}`,children:y},y);return k.jsxs("div",{className:"bg-blue-50 p-4 sm:p-6 rounded-lg border border-blue-200",children:[k.jsxs("div",{className:"mb-5",children:[k.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"Dimension Unit"}),k.jsxs("div",{className:"flex items-center bg-white p-1 rounded-lg border border-gray-300",children:[x("PX","px",n.unit,()=>g("px")),x("CM","cm",n.unit,()=>g("cm")),x("MM","mm",n.unit,()=>g("mm")),x("INCH","inch",n.unit,()=>g("inch")),x("%","%",n.unit,()=>g("%"))]})]}),k.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-5",children:[k.jsxs("div",{children:[k.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"Adjust image"}),k.jsxs("div",{className:"flex items-center bg-white p-1 rounded-lg border border-gray-300",children:[x("Stretch","stretch",n.mode,()=>v("stretch")),x("Fill","fill",n.mode,()=>v("fill")),x("Fit","fit",n.mode,()=>v("fit")),x("None","none",n.mode,()=>v("none"))]})]}),k.jsxs("div",{children:[k.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"Presets for PX dimensions"}),k.jsx(Pb,{setSettings:r})]})]}),k.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2 items-end mb-5",children:[k.jsxs("div",{className:"sm:col-span-2",children:[k.jsx("label",{htmlFor:"width",className:"block text-sm font-bold text-gray-700 mb-2",children:"Width"}),k.jsxs("div",{className:"relative",children:[k.jsx("input",{type:"number",id:"width",name:"width",value:n.width||"",onChange:p,className:"w-full p-2 pr-10 border border-gray-300 rounded-md",placeholder:"Not set"}),k.jsx("span",{className:"absolute inset-y-0 right-0 pr-3 flex items-center text-sm text-gray-500",children:n.unit})]})]}),k.jsx("div",{className:"flex justify-center items-center pt-8",children:k.jsx("button",{onClick:()=>m(!d),className:"p-2 rounded-full hover:bg-blue-100 transition-colors",disabled:!o,children:d?k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`w-5 h-5 ${o?"text-pink-500":"text-gray-400"}`,viewBox:"0 0 20 20",fill:"currentColor",children:k.jsx("path",{fillRule:"evenodd",d:"M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z",clipRule:"evenodd"})}):k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`w-5 h-5 ${o?"text-gray-600":"text-gray-400"}`,viewBox:"0 0 20 20",fill:"currentColor",children:k.jsx("path",{d:"M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5a3 3 0 10-6 0V9h6a1 1 0 011 1v6a1 1 0 11-2 0v-6a1 1 0 01-1-1H7V5.5a3 3 0 015.91-1.013A.75.75 0 0013.5 4.5a4.5 4.5 0 00-3.5-3.5z"})})})}),k.jsxs("div",{className:"sm:col-span-2",children:[k.jsx("label",{htmlFor:"height",className:"block text-sm font-bold text-gray-700 mb-2",children:"Height"}),k.jsxs("div",{className:"relative",children:[k.jsx("input",{type:"number",id:"height",name:"height",value:n.height||"",onChange:p,className:"w-full p-2 pr-10 border border-gray-300 rounded-md",placeholder:"Not set"}),k.jsx("span",{className:"absolute inset-y-0 right-0 pr-3 flex items-center text-sm text-gray-500",children:n.unit})]})]})]}),k.jsxs("div",{className:"mb-4",children:[k.jsx("label",{htmlFor:"format",className:"block text-sm font-bold text-gray-700 mb-2",children:"Save image as"}),k.jsxs("select",{id:"format",name:"format",value:n.format,onChange:p,className:"w-full p-2 border border-gray-300 rounded-md bg-white",children:[k.jsx("option",{value:"jpg",children:"JPG"}),k.jsx("option",{value:"jpeg",children:"JPEG"}),k.jsx("option",{value:"png",children:"PNG"}),k.jsx("option",{value:"webp",children:"WEBP"}),k.jsx("option",{value:"heic",children:"HEIC"})]})]}),k.jsx("div",{className:"mt-6",children:k.jsxs("button",{onClick:()=>f(!s),className:"text-blue-600 text-sm hover:underline",children:[s?"Hide":"Show"," Advanced Options"]})}),s&&k.jsx("div",{className:"mt-4 border-t border-blue-200 pt-4",children:k.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[k.jsxs("div",{children:[k.jsx("label",{htmlFor:"targetSize",className:"block text-sm font-medium text-gray-700",children:"Target File Size"}),k.jsx("input",{type:"number",id:"targetSize",name:"targetSize",value:n.targetSize||"",onChange:p,className:"mt-1 block w-full p-2 border border-gray-300 rounded-md"})]}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"targetSizeUnit",className:"block text-sm font-medium text-gray-700",children:"Size Unit"}),k.jsxs("select",{id:"targetSizeUnit",name:"targetSizeUnit",value:n.targetSizeUnit,onChange:p,className:"mt-1 block w-full p-2 border border-gray-300 rounded-md bg-white",children:[k.jsx("option",{value:"Bytes",children:"Bytes"}),k.jsx("option",{value:"KB",children:"KB"}),k.jsx("option",{value:"MB",children:"MB"})]})]}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"dpi",className:"block text-sm font-medium text-gray-700",children:"DPI"}),k.jsx("input",{type:"number",id:"dpi",name:"dpi",value:n.dpi||"",onChange:p,className:"mt-1 block w-full p-2 border border-gray-300 rounded-md"})]})]})}),o&&k.jsx("div",{className:"mt-6",children:k.jsxs("button",{onClick:a,className:"w-full flex items-center justify-center px-4 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-green-500 hover:bg-green-600",children:[k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6 mr-2",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"})}),"Preview and Download"]})})]})},Gb=()=>{const n=[{title:"Bulk Resizing",description:"Resize 10 images with consistent settings in a single click",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-10 h-10 text-blue-500",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.181A1.5 1.5 0 005.648 21H21v-7.5m-9-6l2.25-2.25A1.5 1.5 0 0115.648 3H3v7.5"})})},{title:"Advanced Resizing",description:"Comes with custom units such as pixel (px), percentage (%), inches, cm, or mm with intelligent scaling",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-10 h-10 text-blue-500",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75v4.5m0-4.5h-4.5m4.5 0L15 9m5.25 11.25v-4.5m0 4.5h-4.5m4.5 0L15 15"})})},{title:"Quality Control",description:"Advanced algorithms to maintain image quality while optimizing size",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-10 h-10 text-blue-500",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.898 20.562L16.5 21.75l-.398-1.188a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.188-.398a2.25 2.25 0 001.423-1.423L16.5 15.75l.398 1.188a2.25 2.25 0 001.423 1.423L19.5 18.75l-1.188.398a2.25 2.25 0 00-1.423 1.423z"})})},{title:"Format Freedom",description:"Convert between JPG, PNG, WEBP, and HEIC with ease",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-10 h-10 text-blue-500",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})})},{title:"Pro Crop & Resize",description:"Professional-grade cropping and rotation functionality",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-10 h-10 text-blue-500",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})})},{title:"Print Ready",description:"Fine-tune DPI settings for perfect prints",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-10 h-10 text-blue-500",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.72 13.829c-.24.03-.48.062-.72.096m.72-.096a42.415 42.415 0 0110.56 0m-10.56 0L6 18.25m0 0h12M6 18.25a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 18.25M6 18.25V7.5a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 7.5v10.75m-12 0c0 0 .675-.338 1.5-.338s1.5.338 1.5.338m-3 0c0 0 .675-.338 1.5-.338s1.5.338 1.5.338m0 0c0 0 .675-.338 1.5-.338s1.5.338 1.5.338m-3 0c0 0 .675-.338 1.5-.338s1.5.338 1.5.338m-3 0c0 0 .675-.338 1.5-.338s1.5.338 1.5.338M9 6.75h6m-6 3h6m-6 3h6m-6 3h6"})})}];return k.jsxs("div",{className:"my-12",children:[k.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"Powerful Features"}),k.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:n.map((r,a)=>k.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md hover:scale-105 transition-transform",children:[k.jsx("div",{className:"mb-4",children:r.icon}),k.jsx("h3",{className:"text-xl font-bold mb-2",children:r.title}),k.jsx("p",{className:"text-gray-600",children:r.description})]},a))})]})},Vb=()=>{const n=[{title:"Upload Images",description:"Drag & drop up to 10 images at once or click to browse",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-12 h-12 text-blue-500 mx-auto",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l7.5 7.5M12 3v13.5"})})},{title:"Adjust Settings",description:"Choose dimensions, format, and quality with live preview",icon:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-12 h-12 text-blue-500 mx-auto",children:[k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-1.007 1.11-1.227l.126-.053c.546-.22 1.157-.14 1.642.23l.098.083c.477.477.703 1.14.596 1.783l-.03.182a5.25 5.25 0 005.223 5.223l.182-.03c.643-.107 1.306.12 1.783.596l.083.098c.37.486.45 1.096.23 1.642l-.053.126c-.22.55-.685 1.02-1.227 1.11l-.126.053c-.546.22-1.157.14-1.642-.23l-.098-.083a5.25 5.25 0 00-6.42 0l-.098.083c-.486.37-1.096.45-1.642.23l-.126-.053c-.55-.22-1.02-.685-1.11-1.227l-.053-.126a5.25 5.25 0 00-5.223-5.223l-.182.03c-.643.107-1.306-.12-1.783-.596l-.083-.098c-.37-.486-.45-1.096-.23-1.642l.053-.126c.22-.55.685-1.02 1.227-1.11l.126-.053c.546-.22 1.157-.14 1.642.23l.098.083a5.25 5.25 0 006.42 0z"}),k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})},{title:"Preview Results",description:"Click Preview & Download button to Resize and Review your changes before finalizing",icon:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-12 h-12 text-blue-500 mx-auto",children:[k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})},{title:"Download",description:"Get your optimized images individually or as a ZIP in a single click",icon:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-12 h-12 text-blue-500 mx-auto",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"})})}];return k.jsxs("div",{className:"my-12 bg-[#f5ffe8] py-12",children:[k.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"How It Works"}),k.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:n.map((r,a)=>k.jsxs("div",{className:"p-6",children:[k.jsx("div",{className:"text-5xl mb-4",children:r.icon}),k.jsxs("h3",{className:"text-xl font-bold mb-2",children:[a+1,". ",r.title]}),k.jsx("p",{className:"text-gray-600",children:r.description})]},a))})]})},Xb=()=>{const n={"Smart Dimension Units":["Pixels (px) for digital assets","Percentages (%) for responsive scaling","Physical units (cm, mm, inches) for print"],"Image Adjusting Modes":["Stretch - Exact dimensions","Fill - Smart cover with aspect ratio","Fit - Maintain proportions","None - Original size"],"Library of Presets":["Each Unit comes with 50 Presets.","Presets such as A4 document, business card, etc.","Auto dimension injects into width and height.","Create your own preset (coming soon...)"],"Format Optimization":["JPG/JPEG - Optimized for photos","PNG - Lossless with transparency","WEBP - Modern web standard","HEIC - High efficiency"]};return k.jsxs("div",{className:"my-12",children:[k.jsx("h2",{className:"text-3xl font-bold text-center mb-2",children:"Advanced Features"}),k.jsx("p",{className:"text-center text-gray-600 mb-8",children:"Professional tools for perfect results every time"}),k.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:Object.entries(n).map(([r,a])=>k.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[k.jsx("h3",{className:"text-xl font-bold mb-4",children:r}),k.jsx("ul",{className:"space-y-2",children:a.map((o,u)=>k.jsxs("li",{className:"flex items-center",children:[k.jsx("svg",{className:"w-5 h-5 text-green-500 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),o]},u))})]},r))})]})},Zb=()=>{const n=[{question:"What is the maximum file size limit for image uploads?",answer:"The maximum file size limit is 20MB per image."},{question:"How do I Resize image?",answer:"You can resize images by adjusting the width and height, or by using the presets."},{question:"Are my images and documents safe when resized using Resizeo.com?",answer:"Yes, all processing is done in your browser. No data is sent to our servers."},{question:"What upload formats are supported?",answer:"We support JPG, PNG, and WEBP formats."},{question:"Can I resize multiple images at once?",answer:"Yes, you can upload up to 10 images and resize them all at once."},{question:"Will I lose image quality after resizing?",answer:"Our advanced algorithms aim to maintain image quality while optimizing size."},{question:"Can I revert or undo image changes?",answer:"You can always re-upload the original image to start over."},{question:"Can I resize images with dimensions of more than 15000px?",answer:"Yes, but be aware that very large images may impact browser performance."},{question:"Why is the image not showing in full size while rotating?",answer:"This is a limitation of the browser's rendering engine."},{question:"Why is the DPI input disabled when the PNG, WEBP, or HEIC option is selected?",answer:"DPI is only relevant for JPG images."},{question:"How do I create custom resize links?",answer:"This feature is coming soon!"}],[r,a]=W.useState(null),o=u=>{a(r===u?null:u)};return k.jsxs("div",{className:"my-12",children:[k.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"Common Questions"}),k.jsx("div",{className:"max-w-3xl mx-auto",children:n.map((u,s)=>k.jsxs("div",{className:"border-b border-gray-200 py-4",children:[k.jsxs("button",{className:"w-full flex justify-between items-center text-left text-lg font-medium text-gray-800",onClick:()=>o(s),children:[k.jsx("span",{children:u.question}),k.jsx("span",{children:r===s?k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})}):k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]}),k.jsx("div",{className:`overflow-hidden transition-all duration-500 ease-in-out ${r===s?"max-h-screen mt-4":"max-h-0"}`,children:k.jsx("div",{className:"text-gray-600",children:u.answer})})]},s))})]})};var Kb=Object.defineProperty,Qb=(n,r,a)=>r in n?Kb(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,ht=(n,r,a)=>Qb(n,typeof r!="symbol"?r+"":r,a);const Uo={x:0,y:0,width:0,height:0,unit:"px"},qa=(n,r,a)=>Math.min(Math.max(n,r),a),Wb=(...n)=>n.filter(r=>r&&typeof r=="string").join(" "),Xm=(n,r)=>n===r||n.width===r.width&&n.height===r.height&&n.x===r.x&&n.y===r.y&&n.unit===r.unit;function Ia(n,r,a){return n.unit==="%"?{...Uo,...n,unit:"%"}:{unit:"%",x:n.x?n.x/r*100:0,y:n.y?n.y/a*100:0,width:n.width?n.width/r*100:0,height:n.height?n.height/a*100:0}}function Ti(n,r,a){return n.unit?n.unit==="px"?{...Uo,...n,unit:"px"}:{unit:"px",x:n.x?n.x*r/100:0,y:n.y?n.y*a/100:0,width:n.width?n.width*r/100:0,height:n.height?n.height*a/100:0}:{...Uo,...n,unit:"px"}}function Zm(n,r,a,o,u,s=0,f=0,d=o,m=u){const p={...n};let g=Math.min(s,o),v=Math.min(f,u),x=Math.min(d,o),y=Math.min(m,u);r&&(r>1?(g=f?f*r:g,v=g/r,x=d*r):(v=s?s/r:v,g=v*r,y=m/r)),p.y<0&&(p.height=Math.max(p.height+p.y,v),p.y=0),p.x<0&&(p.width=Math.max(p.width+p.x,g),p.x=0);const E=o-(p.x+p.width);E<0&&(p.x=Math.min(p.x,o-g),p.width+=E);const w=u-(p.y+p.height);if(w<0&&(p.y=Math.min(p.y,u-v),p.height+=w),p.width<g&&((a==="sw"||a=="nw")&&(p.x-=g-p.width),p.width=g),p.height<v&&((a==="nw"||a=="ne")&&(p.y-=v-p.height),p.height=v),p.width>x&&((a==="sw"||a=="nw")&&(p.x-=x-p.width),p.width=x),p.height>y&&((a==="nw"||a=="ne")&&(p.y-=y-p.height),p.height=y),r){const C=p.width/p.height;if(C<r){const S=Math.max(p.width/r,v);(a==="nw"||a=="ne")&&(p.y-=S-p.height),p.height=S}else if(C>r){const S=Math.max(p.height*r,g);(a==="sw"||a=="nw")&&(p.x-=S-p.width),p.width=S}}return p}function Jb(n,r,a,o){const u={...n};return r==="ArrowLeft"?o==="nw"?(u.x-=a,u.y-=a,u.width+=a,u.height+=a):o==="w"?(u.x-=a,u.width+=a):o==="sw"?(u.x-=a,u.width+=a,u.height+=a):o==="ne"?(u.y+=a,u.width-=a,u.height-=a):o==="e"?u.width-=a:o==="se"&&(u.width-=a,u.height-=a):r==="ArrowRight"&&(o==="nw"?(u.x+=a,u.y+=a,u.width-=a,u.height-=a):o==="w"?(u.x+=a,u.width-=a):o==="sw"?(u.x+=a,u.width-=a,u.height-=a):o==="ne"?(u.y-=a,u.width+=a,u.height+=a):o==="e"?u.width+=a:o==="se"&&(u.width+=a,u.height+=a)),r==="ArrowUp"?o==="nw"?(u.x-=a,u.y-=a,u.width+=a,u.height+=a):o==="n"?(u.y-=a,u.height+=a):o==="ne"?(u.y-=a,u.width+=a,u.height+=a):o==="sw"?(u.x+=a,u.width-=a,u.height-=a):o==="s"?u.height-=a:o==="se"&&(u.width-=a,u.height-=a):r==="ArrowDown"&&(o==="nw"?(u.x+=a,u.y+=a,u.width-=a,u.height-=a):o==="n"?(u.y+=a,u.height-=a):o==="ne"?(u.y+=a,u.width-=a,u.height-=a):o==="sw"?(u.x-=a,u.width+=a,u.height+=a):o==="s"?u.height+=a:o==="se"&&(u.width+=a,u.height+=a)),u}const Fa={capture:!0,passive:!1};let $b=0;const ji=class _n extends W.PureComponent{constructor(){super(...arguments),ht(this,"docMoveBound",!1),ht(this,"mouseDownOnCrop",!1),ht(this,"dragStarted",!1),ht(this,"evData",{startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0}),ht(this,"componentRef",W.createRef()),ht(this,"mediaRef",W.createRef()),ht(this,"resizeObserver"),ht(this,"initChangeCalled",!1),ht(this,"instanceId",`rc-${$b++}`),ht(this,"state",{cropIsActive:!1,newCropIsBeingDrawn:!1}),ht(this,"onCropPointerDown",r=>{const{crop:a,disabled:o}=this.props,u=this.getBox();if(!a)return;const s=Ti(a,u.width,u.height);if(o)return;r.cancelable&&r.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const f=r.target.dataset.ord,d=!!f;let m=r.clientX,p=r.clientY,g=s.x,v=s.y;if(f){const x=r.clientX-u.x,y=r.clientY-u.y;let E=0,w=0;f==="ne"||f=="e"?(E=x-(s.x+s.width),w=y-s.y,g=s.x,v=s.y+s.height):f==="se"||f==="s"?(E=x-(s.x+s.width),w=y-(s.y+s.height),g=s.x,v=s.y):f==="sw"||f=="w"?(E=x-s.x,w=y-(s.y+s.height),g=s.x+s.width,v=s.y):(f==="nw"||f=="n")&&(E=x-s.x,w=y-s.y,g=s.x+s.width,v=s.y+s.height),m=g+u.x+E,p=v+u.y+w}this.evData={startClientX:m,startClientY:p,startCropX:g,startCropY:v,clientX:r.clientX,clientY:r.clientY,isResize:d,ord:f},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})}),ht(this,"onComponentPointerDown",r=>{const{crop:a,disabled:o,locked:u,keepSelection:s,onChange:f}=this.props,d=this.getBox();if(o||u||s&&a)return;r.cancelable&&r.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const m=r.clientX-d.x,p=r.clientY-d.y,g={unit:"px",x:m,y:p,width:0,height:0};this.evData={startClientX:r.clientX,startClientY:r.clientY,startCropX:m,startCropY:p,clientX:r.clientX,clientY:r.clientY,isResize:!0},this.mouseDownOnCrop=!0,f(Ti(g,d.width,d.height),Ia(g,d.width,d.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}),ht(this,"onDocPointerMove",r=>{const{crop:a,disabled:o,onChange:u,onDragStart:s}=this.props,f=this.getBox();if(o||!a||!this.mouseDownOnCrop)return;r.cancelable&&r.preventDefault(),this.dragStarted||(this.dragStarted=!0,s&&s(r));const{evData:d}=this;d.clientX=r.clientX,d.clientY=r.clientY;let m;d.isResize?m=this.resizeCrop():m=this.dragCrop(),Xm(a,m)||u(Ti(m,f.width,f.height),Ia(m,f.width,f.height))}),ht(this,"onComponentKeyDown",r=>{const{crop:a,disabled:o,onChange:u,onComplete:s}=this.props;if(o)return;const f=r.key;let d=!1;if(!a)return;const m=this.getBox(),p=this.makePixelCrop(m),g=(navigator.platform.match("Mac")?r.metaKey:r.ctrlKey)?_n.nudgeStepLarge:r.shiftKey?_n.nudgeStepMedium:_n.nudgeStep;if(f==="ArrowLeft"?(p.x-=g,d=!0):f==="ArrowRight"?(p.x+=g,d=!0):f==="ArrowUp"?(p.y-=g,d=!0):f==="ArrowDown"&&(p.y+=g,d=!0),d){r.cancelable&&r.preventDefault(),p.x=qa(p.x,0,m.width-p.width),p.y=qa(p.y,0,m.height-p.height);const v=Ti(p,m.width,m.height),x=Ia(p,m.width,m.height);u(v,x),s&&s(v,x)}}),ht(this,"onHandlerKeyDown",(r,a)=>{const{aspect:o=0,crop:u,disabled:s,minWidth:f=0,minHeight:d=0,maxWidth:m,maxHeight:p,onChange:g,onComplete:v}=this.props,x=this.getBox();if(s||!u)return;if(r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="ArrowLeft"||r.key==="ArrowRight")r.stopPropagation(),r.preventDefault();else return;const y=(navigator.platform.match("Mac")?r.metaKey:r.ctrlKey)?_n.nudgeStepLarge:r.shiftKey?_n.nudgeStepMedium:_n.nudgeStep,E=Ti(u,x.width,x.height),w=Jb(E,r.key,y,a),C=Zm(w,o,a,x.width,x.height,f,d,m,p);if(!Xm(u,C)){const S=Ia(C,x.width,x.height);g(C,S),v&&v(C,S)}}),ht(this,"onDocPointerDone",r=>{const{crop:a,disabled:o,onComplete:u,onDragEnd:s}=this.props,f=this.getBox();this.unbindDocMove(),!(o||!a)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,s&&s(r),u&&u(Ti(a,f.width,f.height),Ia(a,f.width,f.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}),ht(this,"onDragFocus",()=>{var r;(r=this.componentRef.current)==null||r.scrollTo(0,0)})}get document(){return document}getBox(){const r=this.mediaRef.current;if(!r)return{x:0,y:0,width:0,height:0};const{x:a,y:o,width:u,height:s}=r.getBoundingClientRect();return{x:a,y:o,width:u,height:s}}componentDidUpdate(r){const{crop:a,onComplete:o}=this.props;if(o&&!r.crop&&a){const{width:u,height:s}=this.getBox();u&&s&&o(Ti(a,u,s),Ia(a,u,s))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,Fa),this.document.addEventListener("pointerup",this.onDocPointerDone,Fa),this.document.addEventListener("pointercancel",this.onDocPointerDone,Fa),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,Fa),this.document.removeEventListener("pointerup",this.onDocPointerDone,Fa),this.document.removeEventListener("pointercancel",this.onDocPointerDone,Fa),this.docMoveBound=!1)}getCropStyle(){const{crop:r}=this.props;if(r)return{top:`${r.y}${r.unit}`,left:`${r.x}${r.unit}`,width:`${r.width}${r.unit}`,height:`${r.height}${r.unit}`}}dragCrop(){const{evData:r}=this,a=this.getBox(),o=this.makePixelCrop(a),u=r.clientX-r.startClientX,s=r.clientY-r.startClientY;return o.x=qa(r.startCropX+u,0,a.width-o.width),o.y=qa(r.startCropY+s,0,a.height-o.height),o}getPointRegion(r,a,o,u){const{evData:s}=this,f=s.clientX-r.x,d=s.clientY-r.y;let m;u&&a?m=a==="nw"||a==="n"||a==="ne":m=d<s.startCropY;let p;return o&&a?p=a==="nw"||a==="w"||a==="sw":p=f<s.startCropX,p?m?"nw":"sw":m?"ne":"se"}resolveMinDimensions(r,a,o=0,u=0){const s=Math.min(o,r.width),f=Math.min(u,r.height);return!a||!s&&!f?[s,f]:a>1?s?[s,s/a]:[f*a,f]:f?[f*a,f]:[s,s/a]}resizeCrop(){const{evData:r}=this,{aspect:a=0,maxWidth:o,maxHeight:u}=this.props,s=this.getBox(),[f,d]=this.resolveMinDimensions(s,a,this.props.minWidth,this.props.minHeight);let m=this.makePixelCrop(s);const p=this.getPointRegion(s,r.ord,f,d),g=r.ord||p;let v=r.clientX-r.startClientX,x=r.clientY-r.startClientY;(f&&g==="nw"||g==="w"||g==="sw")&&(v=Math.min(v,-f)),(d&&g==="nw"||g==="n"||g==="ne")&&(x=Math.min(x,-d));const y={unit:"px",x:0,y:0,width:0,height:0};p==="ne"?(y.x=r.startCropX,y.width=v,a?(y.height=y.width/a,y.y=r.startCropY-y.height):(y.height=Math.abs(x),y.y=r.startCropY-y.height)):p==="se"?(y.x=r.startCropX,y.y=r.startCropY,y.width=v,a?y.height=y.width/a:y.height=x):p==="sw"?(y.x=r.startCropX+v,y.y=r.startCropY,y.width=Math.abs(v),a?y.height=y.width/a:y.height=x):p==="nw"&&(y.x=r.startCropX+v,y.width=Math.abs(v),a?(y.height=y.width/a,y.y=r.startCropY-y.height):(y.height=Math.abs(x),y.y=r.startCropY+x));const E=Zm(y,a,p,s.width,s.height,f,d,o,u);return a||_n.xyOrds.indexOf(g)>-1?m=E:_n.xOrds.indexOf(g)>-1?(m.x=E.x,m.width=E.width):_n.yOrds.indexOf(g)>-1&&(m.y=E.y,m.height=E.height),m.x=qa(m.x,0,s.width-m.width),m.y=qa(m.y,0,s.height-m.height),m}renderCropSelection(){const{ariaLabels:r=_n.defaultProps.ariaLabels,disabled:a,locked:o,renderSelectionAddon:u,ruleOfThirds:s,crop:f}=this.props,d=this.getCropStyle();if(f)return Je.createElement("div",{style:d,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":r.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!a&&!o&&Je.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},Je.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),Je.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),Je.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),Je.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":r.nwDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"nw"),role:"button"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":r.nDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"n"),role:"button"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":r.neDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"ne"),role:"button"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":r.eDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"e"),role:"button"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":r.seDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"se"),role:"button"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":r.sDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"s"),role:"button"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":r.swDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"sw"),role:"button"}),Je.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":r.wDragHandle,onKeyDown:m=>this.onHandlerKeyDown(m,"w"),role:"button"})),u&&Je.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:m=>m.stopPropagation()},u(this.state)),s&&Je.createElement(Je.Fragment,null,Je.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),Je.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(r){const a={...Uo,...this.props.crop||{}};return Ti(a,r.width,r.height)}render(){const{aspect:r,children:a,circularCrop:o,className:u,crop:s,disabled:f,locked:d,style:m,ruleOfThirds:p}=this.props,{cropIsActive:g,newCropIsBeingDrawn:v}=this.state,x=s?this.renderCropSelection():null,y=Wb("ReactCrop",u,g&&"ReactCrop--active",f&&"ReactCrop--disabled",d&&"ReactCrop--locked",v&&"ReactCrop--new-crop",s&&r&&"ReactCrop--fixed-aspect",s&&o&&"ReactCrop--circular-crop",s&&p&&"ReactCrop--rule-of-thirds",!this.dragStarted&&s&&!s.width&&!s.height&&"ReactCrop--invisible-crop",o&&"ReactCrop--no-animate");return Je.createElement("div",{ref:this.componentRef,className:y,style:m},Je.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},a),s?Je.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},Je.createElement("defs",null,Je.createElement("mask",{id:`hole-${this.instanceId}`},Je.createElement("rect",{width:"100%",height:"100%",fill:"white"}),o?Je.createElement("ellipse",{cx:`${s.x+s.width/2}${s.unit}`,cy:`${s.y+s.height/2}${s.unit}`,rx:`${s.width/2}${s.unit}`,ry:`${s.height/2}${s.unit}`,fill:"black"}):Je.createElement("rect",{x:`${s.x}${s.unit}`,y:`${s.y}${s.unit}`,width:`${s.width}${s.unit}`,height:`${s.height}${s.unit}`,fill:"black"}))),Je.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,x)}};ht(ji,"xOrds",["e","w"]),ht(ji,"yOrds",["n","s"]),ht(ji,"xyOrds",["nw","ne","se","sw"]),ht(ji,"nudgeStep",1),ht(ji,"nudgeStepMedium",10),ht(ji,"nudgeStepLarge",100),ht(ji,"defaultProps",{ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}});let e2=ji;const t2=[{name:"Freeform",value:void 0},{name:"Original",value:16/9},{name:"Square",value:1},{name:"9:16",value:9/16},{name:"4:5",value:4/5},{name:"5:4",value:5/4},{name:"4:3",value:4/3},{name:"3:2",value:3/2},{name:"5:7",value:5/7},{name:"7:5",value:7/5},{name:"1:2",value:1/2},{name:"2:1",value:2/1}],n2=({image:n,onClose:r,onCrop:a})=>{const[o,u]=W.useState(),[s,f]=W.useState(),[d,m]=W.useState(void 0),[p,g]=W.useState("rect"),v=Je.useRef(null),x=()=>{if(s&&v.current){const y=document.createElement("canvas"),E=v.current.naturalWidth/v.current.width,w=v.current.naturalHeight/v.current.height;y.width=s.width*E,y.height=s.height*w;const C=y.getContext("2d");C&&(C.drawImage(v.current,s.x*E,s.y*w,s.width*E,s.height*w,0,0,s.width*E,s.height*w),y.toBlob(S=>{if(S){const T=new File([S],"cropped.png",{type:"image/png"});a(T)}},"image/png"))}};return k.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:k.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-4xl w-full",children:[k.jsxs("div",{className:"flex justify-between items-center mb-4",children:[k.jsx("h2",{className:"text-2xl font-bold",children:"Crop Image"}),k.jsx("button",{onClick:r,className:"text-gray-500 hover:text-gray-800",children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),k.jsxs("div",{className:"flex justify-center mb-4",children:[k.jsx("button",{onClick:()=>g("rect"),className:`px-4 py-2 rounded-l-md ${p==="rect"?"bg-blue-500 text-white":"bg-gray-200"}`,children:"Rectangle"}),k.jsx("button",{onClick:()=>g("circle"),className:`px-4 py-2 rounded-r-md ${p==="circle"?"bg-blue-500 text-white":"bg-gray-200"}`,children:"Circle"})]}),k.jsx("div",{className:"flex justify-center",children:k.jsx(e2,{crop:o,onChange:y=>u(y),onComplete:y=>f(y),aspect:d,circularCrop:p==="circle",children:k.jsx("img",{ref:v,src:n,alt:"Crop preview"})})}),k.jsx("div",{className:"flex flex-wrap justify-center gap-2 my-4",children:t2.map(y=>k.jsx("button",{onClick:()=>{m(y.value),u(void 0)},className:`px-3 py-1 rounded-md text-sm ${d===y.value?"bg-blue-500 text-white":"bg-gray-200"}`,children:y.name},y.name))}),k.jsxs("div",{className:"flex justify-end gap-4 mt-4",children:[k.jsx("button",{onClick:r,className:"px-4 py-2 bg-gray-300 rounded-md",children:"Close"}),k.jsx("button",{onClick:x,className:"px-4 py-2 bg-green-500 text-white rounded-md",children:"Apply Cropping"})]})]})})},i2=({image:n,onClose:r,onRotate:a})=>{const[o,u]=W.useState(0),[s,f]=W.useState(1),[d,m]=W.useState(!1),[p,g]=W.useState(!1),v=W.useRef(null),x=()=>{if(v.current){const E=document.createElement("canvas"),w=E.getContext("2d"),C=v.current;if(w){const{naturalWidth:S,naturalHeight:T}=C;E.width=S,E.height=T,w.translate(S/2,T/2),w.rotate(o*Math.PI/180),w.scale(d?-s:s,p?-s:s),w.drawImage(C,-S/2,-T/2,S,T),E.toBlob(D=>{if(D){const I=new File([D],"rotated.png",{type:"image/png"});a(I)}},"image/png")}}},y=()=>{u(0),f(1),m(!1),g(!1)};return k.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:k.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-4xl w-full max-h-[90vh] flex flex-col",children:[" ",k.jsxs("div",{className:"flex justify-between items-center mb-4",children:[k.jsx("h2",{className:"text-2xl font-bold",children:"Rotate Image"}),k.jsx("button",{onClick:r,className:"text-gray-500 hover:text-gray-800",children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),k.jsxs("div",{className:"flex-grow overflow-y-auto pr-2 pb-4",children:[" ",k.jsx("div",{className:"relative w-full h-64 flex items-center justify-center mb-4 border border-gray-300 rounded-md overflow-hidden",children:k.jsx("img",{ref:v,src:n,alt:"Rotate preview",className:"absolute",style:{transform:`rotate(${o}deg) scale(${s}) scaleX(${d?-1:1}) scaleY(${p?-1:1})`,transition:"transform 0.2s",maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}})}),k.jsxs("div",{className:"grid grid-cols-4 gap-4 mb-4",children:[k.jsx("button",{onClick:()=>u(o+90),className:"p-2 bg-gray-200 rounded-md",children:"Rotate 90° CW"}),k.jsx("button",{onClick:()=>u(o-90),className:"p-2 bg-gray-200 rounded-md",children:"Rotate 90° CCW"}),k.jsx("button",{onClick:()=>m(!d),className:"p-2 bg-gray-200 rounded-md",children:"Flip H"}),k.jsx("button",{onClick:()=>g(!p),className:"p-2 bg-gray-200 rounded-md",children:"Flip V"}),k.jsx("button",{onClick:()=>f(s*1.1),className:"p-2 bg-gray-200 rounded-md",children:"Zoom In"}),k.jsx("button",{onClick:()=>f(s/1.1),className:"p-2 bg-gray-200 rounded-md",children:"Zoom Out"}),k.jsx("button",{onClick:y,className:"p-2 bg-red-500 text-white rounded-md col-span-2",children:"Reset"})]}),k.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[k.jsx("span",{children:"-180°"}),k.jsx("input",{type:"range",min:"-180",max:"180",value:o,onChange:E=>u(Number(E.target.value)),className:"w-full"}),k.jsx("span",{children:"180°"})]})]}),k.jsxs("div",{className:"flex justify-end gap-4 mt-4 pt-4 border-t border-gray-200",children:[" ",k.jsx("button",{onClick:r,className:"px-4 py-2 bg-gray-300 rounded-md",children:"Close"}),k.jsx("button",{onClick:x,className:"px-4 py-2 bg-green-500 text-white rounded-md",children:"Apply Rotation"})]})]})})},a2=({images:n,onRemove:r,onUpdate:a})=>{const[o,u]=W.useState(null),[s,f]=W.useState(null),d=v=>{const x=n.find(y=>y.id===v);x&&u(x)},m=v=>{const x=n.find(y=>y.id===v);x&&f(x)},p=v=>{if(o){const x=URL.createObjectURL(v);a(o.id,{file:v,preview:x}),u(null)}},g=v=>{if(s){const x=URL.createObjectURL(v);a(s.id,{file:v,preview:x}),f(null)}};return k.jsxs("div",{className:"mt-6",children:[k.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:n.map(v=>k.jsxs("div",{className:"relative bg-white rounded-lg shadow-md overflow-hidden",children:[k.jsx("img",{src:v.preview,alt:v.name,className:"w-full h-32 object-cover"}),k.jsx("button",{onClick:()=>r(v.id),className:"absolute top-2 right-2 bg-red-500 text-white rounded-full p-1 text-xs",children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-4 h-4",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),k.jsxs("div",{className:"p-2 text-sm",children:[k.jsx("p",{className:"font-medium truncate",children:v.name}),k.jsxs("p",{className:"text-gray-600",children:[v.dimensions.width," x ",v.dimensions.height," | ",(v.size/1024).toFixed(2)," KB"]})]}),k.jsxs("div",{className:"flex justify-around p-1 bg-gray-100",children:[k.jsx("button",{onClick:()=>d(v.id),className:"text-xs text-gray-600 hover:text-blue-500",children:"Crop"}),k.jsx("button",{onClick:()=>m(v.id),className:"text-xs text-gray-600 hover:text-blue-500",children:"Rotate"})]})]},v.id))}),o&&k.jsx(n2,{image:o.preview,onClose:()=>u(null),onCrop:p}),s&&k.jsx(i2,{image:s.preview,onClose:()=>f(null),onRotate:g})]})},r2=n=>new Promise((r,a)=>{const o=new FileReader;o.onload=u=>{const s=new Image;s.onload=()=>{r({id:URL.createObjectURL(n),originalFile:n,file:n,preview:u.target?.result,name:n.name,format:n.type.split("/")[1],dimensions:{width:s.width,height:s.height},size:n.size})},s.onerror=a,s.src=u.target?.result},o.onerror=a,o.readAsDataURL(n)}),l2=(n,r)=>new Promise((a,o)=>{const u=new Image,s=new FileReader;s.onload=f=>{u.src=f.target?.result},u.onload=()=>{const f=document.createElement("canvas"),d=f.getContext("2d");if(!d)return o(new Error("Could not get canvas context"));let{width:m,height:p,dpi:g}=r;const{mode:v,targetSize:x,targetSizeUnit:y}=r,E=u.width/u.height;if(r.unit==="%"?(m=u.width*(m/100),p=u.height*(p/100)):r.unit==="cm"?(m=m/2.54*(g||96),p=p/2.54*(g||96)):r.unit==="mm"?(m=m/25.4*(g||96),p=p/25.4*(g||96)):r.unit==="inch"&&(m=m*(g||96),p=p*(g||96)),v==="fit"?m/p>E?m=p*E:p=m/E:v==="fill"?m/p>E?p=m/E:m=p*E:v==="none"&&(m=u.width,p=u.height),f.width=m,f.height=p,v==="fill"){const T=(u.width-m*(u.height/p))/2,D=(u.height-p*(u.width/m))/2,I=u.width-T*2,q=u.height-D*2;d.drawImage(u,T,D,I,q,0,0,m,p)}else d.drawImage(u,0,0,m,p);const C=((T,D)=>{if(T)switch(D){case"Bytes":return T;case"KB":return T*1024;case"MB":return T*1024*1024;default:return T*1024}})(x,y),S=r.format==="jpg"||r.format==="jpeg"?"image/jpeg":`image/${r.format}`;if(C&&(S==="image/jpeg"||S==="image/webp")){let T=.9,D=0,I=1,q=10,U=null;const P=()=>{f.toBlob(ae=>{if(!ae)return o(new Error("Could not create blob"));if(ae.size<=C&&(!U||ae.size>U.size)&&(U=ae),q===0)return a(U||ae);const K=ae.size-C;if(Math.abs(K)<1024)return a(ae);K>0?I=T:D=T,T=(D+I)/2,q--,P()},S,T)};P()}else f.toBlob(T=>{T?a(T):o(new Error("Could not create blob"))},S,.9)},s.onerror=f=>{o(f)},s.readAsDataURL(n)});var Do={exports:{}},o2=Do.exports,Km;function s2(){return Km||(Km=1,(function(n,r){(function(a,o){o()})(o2,function(){function a(p,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(p.type)?new Blob(["\uFEFF",p],{type:p.type}):p}function o(p,g,v){var x=new XMLHttpRequest;x.open("GET",p),x.responseType="blob",x.onload=function(){m(x.response,g,v)},x.onerror=function(){console.error("could not download file")},x.send()}function u(p){var g=new XMLHttpRequest;g.open("HEAD",p,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function s(p){try{p.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),p.dispatchEvent(g)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ri=="object"&&Ri.global===Ri?Ri:void 0,d=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),m=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!d?function(p,g,v){var x=f.URL||f.webkitURL,y=document.createElement("a");g=g||p.name||"download",y.download=g,y.rel="noopener",typeof p=="string"?(y.href=p,y.origin===location.origin?s(y):u(y.href)?o(p,g,v):s(y,y.target="_blank")):(y.href=x.createObjectURL(p),setTimeout(function(){x.revokeObjectURL(y.href)},4e4),setTimeout(function(){s(y)},0))}:"msSaveOrOpenBlob"in navigator?function(p,g,v){if(g=g||p.name||"download",typeof p!="string")navigator.msSaveOrOpenBlob(a(p,v),g);else if(u(p))o(p,g,v);else{var x=document.createElement("a");x.href=p,x.target="_blank",setTimeout(function(){s(x)})}}:function(p,g,v,x){if(x=x||open("","_blank"),x&&(x.document.title=x.document.body.innerText="downloading..."),typeof p=="string")return o(p,g,v);var y=p.type==="application/octet-stream",E=/constructor/i.test(f.HTMLElement)||f.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||y&&E||d)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var D=C.result;D=w?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),x?x.location.href=D:location=D,x=null},C.readAsDataURL(p)}else{var S=f.URL||f.webkitURL,T=S.createObjectURL(p);x?x.location=T:location.href=T,x=null,setTimeout(function(){S.revokeObjectURL(T)},4e4)}});f.saveAs=m.saveAs=m,n.exports=m})})(Do)),Do.exports}var Qm=s2();function Eo(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yc={exports:{}};/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var Wm;function u2(){return Wm||(Wm=1,(function(n,r){(function(a){n.exports=a()})(function(){return(function a(o,u,s){function f(p,g){if(!u[p]){if(!o[p]){var v=typeof Eo=="function"&&Eo;if(!g&&v)return v(p,!0);if(d)return d(p,!0);var x=new Error("Cannot find module '"+p+"'");throw x.code="MODULE_NOT_FOUND",x}var y=u[p]={exports:{}};o[p][0].call(y.exports,function(E){var w=o[p][1][E];return f(w||E)},y,y.exports,a,o,u,s)}return u[p].exports}for(var d=typeof Eo=="function"&&Eo,m=0;m<s.length;m++)f(s[m]);return f})({1:[function(a,o,u){var s=a("./utils"),f=a("./support"),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";u.encode=function(m){for(var p,g,v,x,y,E,w,C=[],S=0,T=m.length,D=T,I=s.getTypeOf(m)!=="string";S<m.length;)D=T-S,v=I?(p=m[S++],g=S<T?m[S++]:0,S<T?m[S++]:0):(p=m.charCodeAt(S++),g=S<T?m.charCodeAt(S++):0,S<T?m.charCodeAt(S++):0),x=p>>2,y=(3&p)<<4|g>>4,E=1<D?(15&g)<<2|v>>6:64,w=2<D?63&v:64,C.push(d.charAt(x)+d.charAt(y)+d.charAt(E)+d.charAt(w));return C.join("")},u.decode=function(m){var p,g,v,x,y,E,w=0,C=0,S="data:";if(m.substr(0,S.length)===S)throw new Error("Invalid base64 input, it looks like a data url.");var T,D=3*(m=m.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(m.charAt(m.length-1)===d.charAt(64)&&D--,m.charAt(m.length-2)===d.charAt(64)&&D--,D%1!=0)throw new Error("Invalid base64 input, bad content length.");for(T=f.uint8array?new Uint8Array(0|D):new Array(0|D);w<m.length;)p=d.indexOf(m.charAt(w++))<<2|(x=d.indexOf(m.charAt(w++)))>>4,g=(15&x)<<4|(y=d.indexOf(m.charAt(w++)))>>2,v=(3&y)<<6|(E=d.indexOf(m.charAt(w++))),T[C++]=p,y!==64&&(T[C++]=g),E!==64&&(T[C++]=v);return T}},{"./support":30,"./utils":32}],2:[function(a,o,u){var s=a("./external"),f=a("./stream/DataWorker"),d=a("./stream/Crc32Probe"),m=a("./stream/DataLengthProbe");function p(g,v,x,y,E){this.compressedSize=g,this.uncompressedSize=v,this.crc32=x,this.compression=y,this.compressedContent=E}p.prototype={getContentWorker:function(){var g=new f(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new m("data_length")),v=this;return g.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new f(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(g,v,x){return g.pipe(new d).pipe(new m("uncompressedSize")).pipe(v.compressWorker(x)).pipe(new m("compressedSize")).withStreamInfo("compression",v)},o.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,o,u){var s=a("./stream/GenericWorker");u.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},u.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,o,u){var s=a("./utils"),f=(function(){for(var d,m=[],p=0;p<256;p++){d=p;for(var g=0;g<8;g++)d=1&d?3988292384^d>>>1:d>>>1;m[p]=d}return m})();o.exports=function(d,m){return d!==void 0&&d.length?s.getTypeOf(d)!=="string"?(function(p,g,v,x){var y=f,E=x+v;p^=-1;for(var w=x;w<E;w++)p=p>>>8^y[255&(p^g[w])];return-1^p})(0|m,d,d.length,0):(function(p,g,v,x){var y=f,E=x+v;p^=-1;for(var w=x;w<E;w++)p=p>>>8^y[255&(p^g.charCodeAt(w))];return-1^p})(0|m,d,d.length,0):0}},{"./utils":32}],5:[function(a,o,u){u.base64=!1,u.binary=!1,u.dir=!1,u.createFolders=!0,u.date=null,u.compression=null,u.compressionOptions=null,u.comment=null,u.unixPermissions=null,u.dosPermissions=null},{}],6:[function(a,o,u){var s=null;s=typeof Promise<"u"?Promise:a("lie"),o.exports={Promise:s}},{lie:37}],7:[function(a,o,u){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",f=a("pako"),d=a("./utils"),m=a("./stream/GenericWorker"),p=s?"uint8array":"array";function g(v,x){m.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=x,this.meta={}}u.magic="\b\0",d.inherits(g,m),g.prototype.processChunk=function(v){this.meta=v.meta,this._pako===null&&this._createPako(),this._pako.push(d.transformTo(p,v.data),!1)},g.prototype.flush=function(){m.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},g.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this._pako=null},g.prototype._createPako=function(){this._pako=new f[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(x){v.push({data:x,meta:v.meta})}},u.compressWorker=function(v){return new g("Deflate",v)},u.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,o,u){function s(y,E){var w,C="";for(w=0;w<E;w++)C+=String.fromCharCode(255&y),y>>>=8;return C}function f(y,E,w,C,S,T){var D,I,q=y.file,U=y.compression,P=T!==p.utf8encode,ae=d.transformTo("string",T(q.name)),K=d.transformTo("string",p.utf8encode(q.name)),ce=q.comment,me=d.transformTo("string",T(ce)),O=d.transformTo("string",p.utf8encode(ce)),ee=K.length!==q.name.length,z=O.length!==ce.length,F="",G="",X="",be=q.dir,oe=q.date,N={crc32:0,compressedSize:0,uncompressedSize:0};E&&!w||(N.crc32=y.crc32,N.compressedSize=y.compressedSize,N.uncompressedSize=y.uncompressedSize);var j=0;E&&(j|=8),P||!ee&&!z||(j|=2048);var B=0,R=0;be&&(B|=16),S==="UNIX"?(R=798,B|=(function(fe,_e){var Ae=fe;return fe||(Ae=_e?16893:33204),(65535&Ae)<<16})(q.unixPermissions,be)):(R=20,B|=(function(fe){return 63&(fe||0)})(q.dosPermissions)),D=oe.getUTCHours(),D<<=6,D|=oe.getUTCMinutes(),D<<=5,D|=oe.getUTCSeconds()/2,I=oe.getUTCFullYear()-1980,I<<=4,I|=oe.getUTCMonth()+1,I<<=5,I|=oe.getUTCDate(),ee&&(G=s(1,1)+s(g(ae),4)+K,F+="up"+s(G.length,2)+G),z&&(X=s(1,1)+s(g(me),4)+O,F+="uc"+s(X.length,2)+X);var re="";return re+=`
\0`,re+=s(j,2),re+=U.magic,re+=s(D,2),re+=s(I,2),re+=s(N.crc32,4),re+=s(N.compressedSize,4),re+=s(N.uncompressedSize,4),re+=s(ae.length,2),re+=s(F.length,2),{fileRecord:v.LOCAL_FILE_HEADER+re+ae+F,dirRecord:v.CENTRAL_FILE_HEADER+s(R,2)+re+s(me.length,2)+"\0\0\0\0"+s(B,4)+s(C,4)+ae+F+me}}var d=a("../utils"),m=a("../stream/GenericWorker"),p=a("../utf8"),g=a("../crc32"),v=a("../signature");function x(y,E,w,C){m.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=E,this.zipPlatform=w,this.encodeFileName=C,this.streamFiles=y,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}d.inherits(x,m),x.prototype.push=function(y){var E=y.meta.percent||0,w=this.entriesCount,C=this._sources.length;this.accumulate?this.contentBuffer.push(y):(this.bytesWritten+=y.data.length,m.prototype.push.call(this,{data:y.data,meta:{currentFile:this.currentFile,percent:w?(E+100*(w-C-1))/w:100}}))},x.prototype.openedSource=function(y){this.currentSourceOffset=this.bytesWritten,this.currentFile=y.file.name;var E=this.streamFiles&&!y.file.dir;if(E){var w=f(y,E,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:w.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(y){this.accumulate=!1;var E=this.streamFiles&&!y.file.dir,w=f(y,E,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(w.dirRecord),E)this.push({data:(function(C){return v.DATA_DESCRIPTOR+s(C.crc32,4)+s(C.compressedSize,4)+s(C.uncompressedSize,4)})(y),meta:{percent:100}});else for(this.push({data:w.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var y=this.bytesWritten,E=0;E<this.dirRecords.length;E++)this.push({data:this.dirRecords[E],meta:{percent:100}});var w=this.bytesWritten-y,C=(function(S,T,D,I,q){var U=d.transformTo("string",q(I));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(S,2)+s(S,2)+s(T,4)+s(D,4)+s(U.length,2)+U})(this.dirRecords.length,w,y,this.zipComment,this.encodeFileName);this.push({data:C,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(y){this._sources.push(y);var E=this;return y.on("data",function(w){E.processChunk(w)}),y.on("end",function(){E.closedSource(E.previous.streamInfo),E._sources.length?E.prepareNextSource():E.end()}),y.on("error",function(w){E.error(w)}),this},x.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(y){var E=this._sources;if(!m.prototype.error.call(this,y))return!1;for(var w=0;w<E.length;w++)try{E[w].error(y)}catch{}return!0},x.prototype.lock=function(){m.prototype.lock.call(this);for(var y=this._sources,E=0;E<y.length;E++)y[E].lock()},o.exports=x},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,o,u){var s=a("../compressions"),f=a("./ZipFileWorker");u.generateWorker=function(d,m,p){var g=new f(m.streamFiles,p,m.platform,m.encodeFileName),v=0;try{d.forEach(function(x,y){v++;var E=(function(T,D){var I=T||D,q=s[I];if(!q)throw new Error(I+" is not a valid compression method !");return q})(y.options.compression,m.compression),w=y.options.compressionOptions||m.compressionOptions||{},C=y.dir,S=y.date;y._compressWorker(E,w).withStreamInfo("file",{name:x,dir:C,date:S,comment:y.comment||"",unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions}).pipe(g)}),g.entriesCount=v}catch(x){g.error(x)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,o,u){function s(){if(!(this instanceof s))return new s;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 f=new s;for(var d in this)typeof this[d]!="function"&&(f[d]=this[d]);return f}}(s.prototype=a("./object")).loadAsync=a("./load"),s.support=a("./support"),s.defaults=a("./defaults"),s.version="3.10.1",s.loadAsync=function(f,d){return new s().loadAsync(f,d)},s.external=a("./external"),o.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,o,u){var s=a("./utils"),f=a("./external"),d=a("./utf8"),m=a("./zipEntries"),p=a("./stream/Crc32Probe"),g=a("./nodejsUtils");function v(x){return new f.Promise(function(y,E){var w=x.decompressed.getContentWorker().pipe(new p);w.on("error",function(C){E(C)}).on("end",function(){w.streamInfo.crc32!==x.decompressed.crc32?E(new Error("Corrupted zip : CRC32 mismatch")):y()}).resume()})}o.exports=function(x,y){var E=this;return y=s.extend(y||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:d.utf8decode}),g.isNode&&g.isStream(x)?f.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",x,!0,y.optimizedBinaryString,y.base64).then(function(w){var C=new m(y);return C.load(w),C}).then(function(w){var C=[f.Promise.resolve(w)],S=w.files;if(y.checkCRC32)for(var T=0;T<S.length;T++)C.push(v(S[T]));return f.Promise.all(C)}).then(function(w){for(var C=w.shift(),S=C.files,T=0;T<S.length;T++){var D=S[T],I=D.fileNameStr,q=s.resolve(D.fileNameStr);E.file(q,D.decompressed,{binary:!0,optimizedBinaryString:!0,date:D.date,dir:D.dir,comment:D.fileCommentStr.length?D.fileCommentStr:null,unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions,createFolders:y.createFolders}),D.dir||(E.file(q).unsafeOriginalName=I)}return C.zipComment.length&&(E.comment=C.zipComment),E})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,o,u){var s=a("../utils"),f=a("../stream/GenericWorker");function d(m,p){f.call(this,"Nodejs stream input adapter for "+m),this._upstreamEnded=!1,this._bindStream(p)}s.inherits(d,f),d.prototype._bindStream=function(m){var p=this;(this._stream=m).pause(),m.on("data",function(g){p.push({data:g,meta:{percent:0}})}).on("error",function(g){p.isPaused?this.generatedError=g:p.error(g)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},d.prototype.pause=function(){return!!f.prototype.pause.call(this)&&(this._stream.pause(),!0)},d.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},o.exports=d},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,o,u){var s=a("readable-stream").Readable;function f(d,m,p){s.call(this,m),this._helper=d;var g=this;d.on("data",function(v,x){g.push(v)||g._helper.pause(),p&&p(x)}).on("error",function(v){g.emit("error",v)}).on("end",function(){g.push(null)})}a("../utils").inherits(f,s),f.prototype._read=function(){this._helper.resume()},o.exports=f},{"../utils":32,"readable-stream":16}],14:[function(a,o,u){o.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,f){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,f);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,f)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var f=new Buffer(s);return f.fill(0),f},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(a,o,u){function s(q,U,P){var ae,K=d.getTypeOf(U),ce=d.extend(P||{},g);ce.date=ce.date||new Date,ce.compression!==null&&(ce.compression=ce.compression.toUpperCase()),typeof ce.unixPermissions=="string"&&(ce.unixPermissions=parseInt(ce.unixPermissions,8)),ce.unixPermissions&&16384&ce.unixPermissions&&(ce.dir=!0),ce.dosPermissions&&16&ce.dosPermissions&&(ce.dir=!0),ce.dir&&(q=S(q)),ce.createFolders&&(ae=C(q))&&T.call(this,ae,!0);var me=K==="string"&&ce.binary===!1&&ce.base64===!1;P&&P.binary!==void 0||(ce.binary=!me),(U instanceof v&&U.uncompressedSize===0||ce.dir||!U||U.length===0)&&(ce.base64=!1,ce.binary=!0,U="",ce.compression="STORE",K="string");var O=null;O=U instanceof v||U instanceof m?U:E.isNode&&E.isStream(U)?new w(q,U):d.prepareContent(q,U,ce.binary,ce.optimizedBinaryString,ce.base64);var ee=new x(q,O,ce);this.files[q]=ee}var f=a("./utf8"),d=a("./utils"),m=a("./stream/GenericWorker"),p=a("./stream/StreamHelper"),g=a("./defaults"),v=a("./compressedObject"),x=a("./zipObject"),y=a("./generate"),E=a("./nodejsUtils"),w=a("./nodejs/NodejsStreamInputAdapter"),C=function(q){q.slice(-1)==="/"&&(q=q.substring(0,q.length-1));var U=q.lastIndexOf("/");return 0<U?q.substring(0,U):""},S=function(q){return q.slice(-1)!=="/"&&(q+="/"),q},T=function(q,U){return U=U!==void 0?U:g.createFolders,q=S(q),this.files[q]||s.call(this,q,null,{dir:!0,createFolders:U}),this.files[q]};function D(q){return Object.prototype.toString.call(q)==="[object RegExp]"}var I={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(q){var U,P,ae;for(U in this.files)ae=this.files[U],(P=U.slice(this.root.length,U.length))&&U.slice(0,this.root.length)===this.root&&q(P,ae)},filter:function(q){var U=[];return this.forEach(function(P,ae){q(P,ae)&&U.push(ae)}),U},file:function(q,U,P){if(arguments.length!==1)return q=this.root+q,s.call(this,q,U,P),this;if(D(q)){var ae=q;return this.filter(function(ce,me){return!me.dir&&ae.test(ce)})}var K=this.files[this.root+q];return K&&!K.dir?K:null},folder:function(q){if(!q)return this;if(D(q))return this.filter(function(K,ce){return ce.dir&&q.test(K)});var U=this.root+q,P=T.call(this,U),ae=this.clone();return ae.root=P.name,ae},remove:function(q){q=this.root+q;var U=this.files[q];if(U||(q.slice(-1)!=="/"&&(q+="/"),U=this.files[q]),U&&!U.dir)delete this.files[q];else for(var P=this.filter(function(K,ce){return ce.name.slice(0,q.length)===q}),ae=0;ae<P.length;ae++)delete this.files[P[ae].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(q){var U,P={};try{if((P=d.extend(q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:f.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.");d.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 ae=P.comment||this.comment||"";U=y.generateWorker(this,P,ae)}catch(K){(U=new m("error")).error(K)}return new p(U,P.type||"string",P.mimeType)},generateAsync:function(q,U){return this.generateInternalStream(q).accumulate(U)},generateNodeStream:function(q,U){return(q=q||{}).type||(q.type="nodebuffer"),this.generateInternalStream(q).toNodejsStream(U)}};o.exports=I},{"./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(a,o,u){o.exports=a("stream")},{stream:void 0}],17:[function(a,o,u){var s=a("./DataReader");function f(d){s.call(this,d);for(var m=0;m<this.data.length;m++)d[m]=255&d[m]}a("../utils").inherits(f,s),f.prototype.byteAt=function(d){return this.data[this.zero+d]},f.prototype.lastIndexOfSignature=function(d){for(var m=d.charCodeAt(0),p=d.charCodeAt(1),g=d.charCodeAt(2),v=d.charCodeAt(3),x=this.length-4;0<=x;--x)if(this.data[x]===m&&this.data[x+1]===p&&this.data[x+2]===g&&this.data[x+3]===v)return x-this.zero;return-1},f.prototype.readAndCheckSignature=function(d){var m=d.charCodeAt(0),p=d.charCodeAt(1),g=d.charCodeAt(2),v=d.charCodeAt(3),x=this.readData(4);return m===x[0]&&p===x[1]&&g===x[2]&&v===x[3]},f.prototype.readData=function(d){if(this.checkOffset(d),d===0)return[];var m=this.data.slice(this.zero+this.index,this.zero+this.index+d);return this.index+=d,m},o.exports=f},{"../utils":32,"./DataReader":18}],18:[function(a,o,u){var s=a("../utils");function f(d){this.data=d,this.length=d.length,this.index=0,this.zero=0}f.prototype={checkOffset:function(d){this.checkIndex(this.index+d)},checkIndex:function(d){if(this.length<this.zero+d||d<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+d+"). Corrupted zip ?")},setIndex:function(d){this.checkIndex(d),this.index=d},skip:function(d){this.setIndex(this.index+d)},byteAt:function(){},readInt:function(d){var m,p=0;for(this.checkOffset(d),m=this.index+d-1;m>=this.index;m--)p=(p<<8)+this.byteAt(m);return this.index+=d,p},readString:function(d){return s.transformTo("string",this.readData(d))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var d=this.readInt(4);return new Date(Date.UTC(1980+(d>>25&127),(d>>21&15)-1,d>>16&31,d>>11&31,d>>5&63,(31&d)<<1))}},o.exports=f},{"../utils":32}],19:[function(a,o,u){var s=a("./Uint8ArrayReader");function f(d){s.call(this,d)}a("../utils").inherits(f,s),f.prototype.readData=function(d){this.checkOffset(d);var m=this.data.slice(this.zero+this.index,this.zero+this.index+d);return this.index+=d,m},o.exports=f},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,o,u){var s=a("./DataReader");function f(d){s.call(this,d)}a("../utils").inherits(f,s),f.prototype.byteAt=function(d){return this.data.charCodeAt(this.zero+d)},f.prototype.lastIndexOfSignature=function(d){return this.data.lastIndexOf(d)-this.zero},f.prototype.readAndCheckSignature=function(d){return d===this.readData(4)},f.prototype.readData=function(d){this.checkOffset(d);var m=this.data.slice(this.zero+this.index,this.zero+this.index+d);return this.index+=d,m},o.exports=f},{"../utils":32,"./DataReader":18}],21:[function(a,o,u){var s=a("./ArrayReader");function f(d){s.call(this,d)}a("../utils").inherits(f,s),f.prototype.readData=function(d){if(this.checkOffset(d),d===0)return new Uint8Array(0);var m=this.data.subarray(this.zero+this.index,this.zero+this.index+d);return this.index+=d,m},o.exports=f},{"../utils":32,"./ArrayReader":17}],22:[function(a,o,u){var s=a("../utils"),f=a("../support"),d=a("./ArrayReader"),m=a("./StringReader"),p=a("./NodeBufferReader"),g=a("./Uint8ArrayReader");o.exports=function(v){var x=s.getTypeOf(v);return s.checkSupport(x),x!=="string"||f.uint8array?x==="nodebuffer"?new p(v):f.uint8array?new g(s.transformTo("uint8array",v)):new d(s.transformTo("array",v)):new m(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,o,u){u.LOCAL_FILE_HEADER="PK",u.CENTRAL_FILE_HEADER="PK",u.CENTRAL_DIRECTORY_END="PK",u.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",u.ZIP64_CENTRAL_DIRECTORY_END="PK",u.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,o,u){var s=a("./GenericWorker"),f=a("../utils");function d(m){s.call(this,"ConvertWorker to "+m),this.destType=m}f.inherits(d,s),d.prototype.processChunk=function(m){this.push({data:f.transformTo(this.destType,m.data),meta:m.meta})},o.exports=d},{"../utils":32,"./GenericWorker":28}],25:[function(a,o,u){var s=a("./GenericWorker"),f=a("../crc32");function d(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(d,s),d.prototype.processChunk=function(m){this.streamInfo.crc32=f(m.data,this.streamInfo.crc32||0),this.push(m)},o.exports=d},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,o,u){var s=a("../utils"),f=a("./GenericWorker");function d(m){f.call(this,"DataLengthProbe for "+m),this.propName=m,this.withStreamInfo(m,0)}s.inherits(d,f),d.prototype.processChunk=function(m){if(m){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+m.data.length}f.prototype.processChunk.call(this,m)},o.exports=d},{"../utils":32,"./GenericWorker":28}],27:[function(a,o,u){var s=a("../utils"),f=a("./GenericWorker");function d(m){f.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,m.then(function(g){p.dataIsReady=!0,p.data=g,p.max=g&&g.length||0,p.type=s.getTypeOf(g),p.isPaused||p._tickAndRepeat()},function(g){p.error(g)})}s.inherits(d,f),d.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this.data=null},d.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},d.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},d.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var m=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":m=this.data.substring(this.index,p);break;case"uint8array":m=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":m=this.data.slice(this.index,p)}return this.index=p,this.push({data:m,meta:{percent:this.max?this.index/this.max*100:0}})},o.exports=d},{"../utils":32,"./GenericWorker":28}],28:[function(a,o,u){function s(f){this.name=f||"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}s.prototype={push:function(f){this.emit("data",f)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(f){this.emit("error",f)}return!0},error:function(f){return!this.isFinished&&(this.isPaused?this.generatedError=f:(this.isFinished=!0,this.emit("error",f),this.previous&&this.previous.error(f),this.cleanUp()),!0)},on:function(f,d){return this._listeners[f].push(d),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(f,d){if(this._listeners[f])for(var m=0;m<this._listeners[f].length;m++)this._listeners[f][m].call(this,d)},pipe:function(f){return f.registerPrevious(this)},registerPrevious:function(f){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=f.streamInfo,this.mergeStreamInfo(),this.previous=f;var d=this;return f.on("data",function(m){d.processChunk(m)}),f.on("end",function(){d.end()}),f.on("error",function(m){d.error(m)}),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 f=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),f=!0),this.previous&&this.previous.resume(),!f},flush:function(){},processChunk:function(f){this.push(f)},withStreamInfo:function(f,d){return this.extraStreamInfo[f]=d,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var f in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,f)&&(this.streamInfo[f]=this.extraStreamInfo[f])},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 f="Worker "+this.name;return this.previous?this.previous+" -> "+f:f}},o.exports=s},{}],29:[function(a,o,u){var s=a("../utils"),f=a("./ConvertWorker"),d=a("./GenericWorker"),m=a("../base64"),p=a("../support"),g=a("../external"),v=null;if(p.nodestream)try{v=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function x(E,w){return new g.Promise(function(C,S){var T=[],D=E._internalType,I=E._outputType,q=E._mimeType;E.on("data",function(U,P){T.push(U),w&&w(P)}).on("error",function(U){T=[],S(U)}).on("end",function(){try{var U=(function(P,ae,K){switch(P){case"blob":return s.newBlob(s.transformTo("arraybuffer",ae),K);case"base64":return m.encode(ae);default:return s.transformTo(P,ae)}})(I,(function(P,ae){var K,ce=0,me=null,O=0;for(K=0;K<ae.length;K++)O+=ae[K].length;switch(P){case"string":return ae.join("");case"array":return Array.prototype.concat.apply([],ae);case"uint8array":for(me=new Uint8Array(O),K=0;K<ae.length;K++)me.set(ae[K],ce),ce+=ae[K].length;return me;case"nodebuffer":return Buffer.concat(ae);default:throw new Error("concat : unsupported type '"+P+"'")}})(D,T),q);C(U)}catch(P){S(P)}T=[]}).resume()})}function y(E,w,C){var S=w;switch(w){case"blob":case"arraybuffer":S="uint8array";break;case"base64":S="string"}try{this._internalType=S,this._outputType=w,this._mimeType=C,s.checkSupport(S),this._worker=E.pipe(new f(S)),E.lock()}catch(T){this._worker=new d("error"),this._worker.error(T)}}y.prototype={accumulate:function(E){return x(this,E)},on:function(E,w){var C=this;return E==="data"?this._worker.on(E,function(S){w.call(C,S.data,S.meta)}):this._worker.on(E,function(){s.delay(w,arguments,C)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(E){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new v(this,{objectMode:this._outputType!=="nodebuffer"},E)}},o.exports=y},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,o,u){if(u.base64=!0,u.array=!0,u.string=!0,u.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u.nodebuffer=typeof Buffer<"u",u.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")u.blob=!1;else{var s=new ArrayBuffer(0);try{u.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);f.append(s),u.blob=f.getBlob("application/zip").size===0}catch{u.blob=!1}}}try{u.nodestream=!!a("readable-stream").Readable}catch{u.nodestream=!1}},{"readable-stream":16}],31:[function(a,o,u){for(var s=a("./utils"),f=a("./support"),d=a("./nodejsUtils"),m=a("./stream/GenericWorker"),p=new Array(256),g=0;g<256;g++)p[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;p[254]=p[254]=1;function v(){m.call(this,"utf-8 decode"),this.leftOver=null}function x(){m.call(this,"utf-8 encode")}u.utf8encode=function(y){return f.nodebuffer?d.newBufferFrom(y,"utf-8"):(function(E){var w,C,S,T,D,I=E.length,q=0;for(T=0;T<I;T++)(64512&(C=E.charCodeAt(T)))==55296&&T+1<I&&(64512&(S=E.charCodeAt(T+1)))==56320&&(C=65536+(C-55296<<10)+(S-56320),T++),q+=C<128?1:C<2048?2:C<65536?3:4;for(w=f.uint8array?new Uint8Array(q):new Array(q),T=D=0;D<q;T++)(64512&(C=E.charCodeAt(T)))==55296&&T+1<I&&(64512&(S=E.charCodeAt(T+1)))==56320&&(C=65536+(C-55296<<10)+(S-56320),T++),C<128?w[D++]=C:(C<2048?w[D++]=192|C>>>6:(C<65536?w[D++]=224|C>>>12:(w[D++]=240|C>>>18,w[D++]=128|C>>>12&63),w[D++]=128|C>>>6&63),w[D++]=128|63&C);return w})(y)},u.utf8decode=function(y){return f.nodebuffer?s.transformTo("nodebuffer",y).toString("utf-8"):(function(E){var w,C,S,T,D=E.length,I=new Array(2*D);for(w=C=0;w<D;)if((S=E[w++])<128)I[C++]=S;else if(4<(T=p[S]))I[C++]=65533,w+=T-1;else{for(S&=T===2?31:T===3?15:7;1<T&&w<D;)S=S<<6|63&E[w++],T--;1<T?I[C++]=65533:S<65536?I[C++]=S:(S-=65536,I[C++]=55296|S>>10&1023,I[C++]=56320|1023&S)}return I.length!==C&&(I.subarray?I=I.subarray(0,C):I.length=C),s.applyFromCharCode(I)})(y=s.transformTo(f.uint8array?"uint8array":"array",y))},s.inherits(v,m),v.prototype.processChunk=function(y){var E=s.transformTo(f.uint8array?"uint8array":"array",y.data);if(this.leftOver&&this.leftOver.length){if(f.uint8array){var w=E;(E=new Uint8Array(w.length+this.leftOver.length)).set(this.leftOver,0),E.set(w,this.leftOver.length)}else E=this.leftOver.concat(E);this.leftOver=null}var C=(function(T,D){var I;for((D=D||T.length)>T.length&&(D=T.length),I=D-1;0<=I&&(192&T[I])==128;)I--;return I<0||I===0?D:I+p[T[I]]>D?I:D})(E),S=E;C!==E.length&&(f.uint8array?(S=E.subarray(0,C),this.leftOver=E.subarray(C,E.length)):(S=E.slice(0,C),this.leftOver=E.slice(C,E.length))),this.push({data:u.utf8decode(S),meta:y.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:u.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},u.Utf8DecodeWorker=v,s.inherits(x,m),x.prototype.processChunk=function(y){this.push({data:u.utf8encode(y.data),meta:y.meta})},u.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,o,u){var s=a("./support"),f=a("./base64"),d=a("./nodejsUtils"),m=a("./external");function p(w){return w}function g(w,C){for(var S=0;S<w.length;++S)C[S]=255&w.charCodeAt(S);return C}a("setimmediate"),u.newBlob=function(w,C){u.checkSupport("blob");try{return new Blob([w],{type:C})}catch{try{var S=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return S.append(w),S.getBlob(C)}catch{throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(w,C,S){var T=[],D=0,I=w.length;if(I<=S)return String.fromCharCode.apply(null,w);for(;D<I;)C==="array"||C==="nodebuffer"?T.push(String.fromCharCode.apply(null,w.slice(D,Math.min(D+S,I)))):T.push(String.fromCharCode.apply(null,w.subarray(D,Math.min(D+S,I)))),D+=S;return T.join("")},stringifyByChar:function(w){for(var C="",S=0;S<w.length;S++)C+=String.fromCharCode(w[S]);return C},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,d.allocBuffer(1)).length===1}catch{return!1}})()}};function x(w){var C=65536,S=u.getTypeOf(w),T=!0;if(S==="uint8array"?T=v.applyCanBeUsed.uint8array:S==="nodebuffer"&&(T=v.applyCanBeUsed.nodebuffer),T)for(;1<C;)try{return v.stringifyByChunk(w,S,C)}catch{C=Math.floor(C/2)}return v.stringifyByChar(w)}function y(w,C){for(var S=0;S<w.length;S++)C[S]=w[S];return C}u.applyFromCharCode=x;var E={};E.string={string:p,array:function(w){return g(w,new Array(w.length))},arraybuffer:function(w){return E.string.uint8array(w).buffer},uint8array:function(w){return g(w,new Uint8Array(w.length))},nodebuffer:function(w){return g(w,d.allocBuffer(w.length))}},E.array={string:x,array:p,arraybuffer:function(w){return new Uint8Array(w).buffer},uint8array:function(w){return new Uint8Array(w)},nodebuffer:function(w){return d.newBufferFrom(w)}},E.arraybuffer={string:function(w){return x(new Uint8Array(w))},array:function(w){return y(new Uint8Array(w),new Array(w.byteLength))},arraybuffer:p,uint8array:function(w){return new Uint8Array(w)},nodebuffer:function(w){return d.newBufferFrom(new Uint8Array(w))}},E.uint8array={string:x,array:function(w){return y(w,new Array(w.length))},arraybuffer:function(w){return w.buffer},uint8array:p,nodebuffer:function(w){return d.newBufferFrom(w)}},E.nodebuffer={string:x,array:function(w){return y(w,new Array(w.length))},arraybuffer:function(w){return E.nodebuffer.uint8array(w).buffer},uint8array:function(w){return y(w,new Uint8Array(w.length))},nodebuffer:p},u.transformTo=function(w,C){if(C=C||"",!w)return C;u.checkSupport(w);var S=u.getTypeOf(C);return E[S][w](C)},u.resolve=function(w){for(var C=w.split("/"),S=[],T=0;T<C.length;T++){var D=C[T];D==="."||D===""&&T!==0&&T!==C.length-1||(D===".."?S.pop():S.push(D))}return S.join("/")},u.getTypeOf=function(w){return typeof w=="string"?"string":Object.prototype.toString.call(w)==="[object Array]"?"array":s.nodebuffer&&d.isBuffer(w)?"nodebuffer":s.uint8array&&w instanceof Uint8Array?"uint8array":s.arraybuffer&&w instanceof ArrayBuffer?"arraybuffer":void 0},u.checkSupport=function(w){if(!s[w.toLowerCase()])throw new Error(w+" is not supported by this platform")},u.MAX_VALUE_16BITS=65535,u.MAX_VALUE_32BITS=-1,u.pretty=function(w){var C,S,T="";for(S=0;S<(w||"").length;S++)T+="\\x"+((C=w.charCodeAt(S))<16?"0":"")+C.toString(16).toUpperCase();return T},u.delay=function(w,C,S){setImmediate(function(){w.apply(S||null,C||[])})},u.inherits=function(w,C){function S(){}S.prototype=C.prototype,w.prototype=new S},u.extend=function(){var w,C,S={};for(w=0;w<arguments.length;w++)for(C in arguments[w])Object.prototype.hasOwnProperty.call(arguments[w],C)&&S[C]===void 0&&(S[C]=arguments[w][C]);return S},u.prepareContent=function(w,C,S,T,D){return m.Promise.resolve(C).then(function(I){return s.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1)&&typeof FileReader<"u"?new m.Promise(function(q,U){var P=new FileReader;P.onload=function(ae){q(ae.target.result)},P.onerror=function(ae){U(ae.target.error)},P.readAsArrayBuffer(I)}):I}).then(function(I){var q=u.getTypeOf(I);return q?(q==="arraybuffer"?I=u.transformTo("uint8array",I):q==="string"&&(D?I=f.decode(I):S&&T!==!0&&(I=(function(U){return g(U,s.uint8array?new Uint8Array(U.length):new Array(U.length))})(I))),I):m.Promise.reject(new Error("Can't read the data of '"+w+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(a,o,u){var s=a("./reader/readerFor"),f=a("./utils"),d=a("./signature"),m=a("./zipEntry"),p=a("./support");function g(v){this.files=[],this.loadOptions=v}g.prototype={checkSignature:function(v){if(!this.reader.readAndCheckSignature(v)){this.reader.index-=4;var x=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+f.pretty(x)+", expected "+f.pretty(v)+")")}},isSignature:function(v,x){var y=this.reader.index;this.reader.setIndex(v);var E=this.reader.readString(4)===x;return this.reader.setIndex(y),E},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),x=p.uint8array?"uint8array":"array",y=f.transformTo(x,v);this.zipComment=this.loadOptions.decodeFileName(y)},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,x,y,E=this.zip64EndOfCentralSize-44;0<E;)v=this.reader.readInt(2),x=this.reader.readInt(4),y=this.reader.readData(x),this.zip64ExtensibleData[v]={id:v,length:x,value:y}},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,x;for(v=0;v<this.files.length;v++)x=this.files[v],this.reader.setIndex(x.localHeaderOffset),this.checkSignature(d.LOCAL_FILE_HEADER),x.readLocalPart(this.reader),x.handleUTF8(),x.processAttributes()},readCentralDir:function(){var v;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(d.CENTRAL_FILE_HEADER);)(v=new m({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(d.CENTRAL_DIRECTORY_END);if(v<0)throw this.isSignature(0,d.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 x=v;if(this.checkSignature(d.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===f.MAX_VALUE_16BITS||this.diskWithCentralDirStart===f.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===f.MAX_VALUE_16BITS||this.centralDirRecords===f.MAX_VALUE_16BITS||this.centralDirSize===f.MAX_VALUE_32BITS||this.centralDirOffset===f.MAX_VALUE_32BITS){if(this.zip64=!0,(v=this.reader.lastIndexOfSignature(d.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(d.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,d.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(d.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(d.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var y=this.centralDirOffset+this.centralDirSize;this.zip64&&(y+=20,y+=12+this.zip64EndOfCentralSize);var E=x-y;if(0<E)this.isSignature(x,d.CENTRAL_FILE_HEADER)||(this.reader.zero=E);else if(E<0)throw new Error("Corrupted zip: missing "+Math.abs(E)+" bytes.")},prepareReader:function(v){this.reader=s(v)},load:function(v){this.prepareReader(v),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(a,o,u){var s=a("./reader/readerFor"),f=a("./utils"),d=a("./compressedObject"),m=a("./crc32"),p=a("./utf8"),g=a("./compressions"),v=a("./support");function x(y,E){this.options=y,this.loadOptions=E}x.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(y){var E,w;if(y.skip(22),this.fileNameLength=y.readInt(2),w=y.readInt(2),this.fileName=y.readData(this.fileNameLength),y.skip(w),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((E=(function(C){for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)&&g[S].magic===C)return g[S];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+f.pretty(this.compressionMethod)+" unknown (inner file : "+f.transformTo("string",this.fileName)+")");this.decompressed=new d(this.compressedSize,this.uncompressedSize,this.crc32,E,y.readData(this.compressedSize))},readCentralPart:function(y){this.versionMadeBy=y.readInt(2),y.skip(2),this.bitFlag=y.readInt(2),this.compressionMethod=y.readString(2),this.date=y.readDate(),this.crc32=y.readInt(4),this.compressedSize=y.readInt(4),this.uncompressedSize=y.readInt(4);var E=y.readInt(2);if(this.extraFieldsLength=y.readInt(2),this.fileCommentLength=y.readInt(2),this.diskNumberStart=y.readInt(2),this.internalFileAttributes=y.readInt(2),this.externalFileAttributes=y.readInt(4),this.localHeaderOffset=y.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");y.skip(E),this.readExtraFields(y),this.parseZIP64ExtraField(y),this.fileComment=y.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var y=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),y==0&&(this.dosPermissions=63&this.externalFileAttributes),y==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var y=s(this.extraFields[1].value);this.uncompressedSize===f.MAX_VALUE_32BITS&&(this.uncompressedSize=y.readInt(8)),this.compressedSize===f.MAX_VALUE_32BITS&&(this.compressedSize=y.readInt(8)),this.localHeaderOffset===f.MAX_VALUE_32BITS&&(this.localHeaderOffset=y.readInt(8)),this.diskNumberStart===f.MAX_VALUE_32BITS&&(this.diskNumberStart=y.readInt(4))}},readExtraFields:function(y){var E,w,C,S=y.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});y.index+4<S;)E=y.readInt(2),w=y.readInt(2),C=y.readData(w),this.extraFields[E]={id:E,length:w,value:C};y.setIndex(S)},handleUTF8:function(){var y=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var E=this.findExtraFieldUnicodePath();if(E!==null)this.fileNameStr=E;else{var w=f.transformTo(y,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(w)}var C=this.findExtraFieldUnicodeComment();if(C!==null)this.fileCommentStr=C;else{var S=f.transformTo(y,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(S)}}},findExtraFieldUnicodePath:function(){var y=this.extraFields[28789];if(y){var E=s(y.value);return E.readInt(1)!==1||m(this.fileName)!==E.readInt(4)?null:p.utf8decode(E.readData(y.length-5))}return null},findExtraFieldUnicodeComment:function(){var y=this.extraFields[25461];if(y){var E=s(y.value);return E.readInt(1)!==1||m(this.fileComment)!==E.readInt(4)?null:p.utf8decode(E.readData(y.length-5))}return null}},o.exports=x},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,o,u){function s(E,w,C){this.name=E,this.dir=C.dir,this.date=C.date,this.comment=C.comment,this.unixPermissions=C.unixPermissions,this.dosPermissions=C.dosPermissions,this._data=w,this._dataBinary=C.binary,this.options={compression:C.compression,compressionOptions:C.compressionOptions}}var f=a("./stream/StreamHelper"),d=a("./stream/DataWorker"),m=a("./utf8"),p=a("./compressedObject"),g=a("./stream/GenericWorker");s.prototype={internalStream:function(E){var w=null,C="string";try{if(!E)throw new Error("No output type specified.");var S=(C=E.toLowerCase())==="string"||C==="text";C!=="binarystring"&&C!=="text"||(C="string"),w=this._decompressWorker();var T=!this._dataBinary;T&&!S&&(w=w.pipe(new m.Utf8EncodeWorker)),!T&&S&&(w=w.pipe(new m.Utf8DecodeWorker))}catch(D){(w=new g("error")).error(D)}return new f(w,C,"")},async:function(E,w){return this.internalStream(E).accumulate(w)},nodeStream:function(E,w){return this.internalStream(E||"nodebuffer").toNodejsStream(w)},_compressWorker:function(E,w){if(this._data instanceof p&&this._data.compression.magic===E.magic)return this._data.getCompressedWorker();var C=this._decompressWorker();return this._dataBinary||(C=C.pipe(new m.Utf8EncodeWorker)),p.createWorkerFrom(C,E,w)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof g?this._data:new d(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},y=0;y<v.length;y++)s.prototype[v[y]]=x;o.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,o,u){(function(s){var f,d,m=s.MutationObserver||s.WebKitMutationObserver;if(m){var p=0,g=new m(E),v=s.document.createTextNode("");g.observe(v,{characterData:!0}),f=function(){v.data=p=++p%2}}else if(s.setImmediate||s.MessageChannel===void 0)f="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var w=s.document.createElement("script");w.onreadystatechange=function(){E(),w.onreadystatechange=null,w.parentNode.removeChild(w),w=null},s.document.documentElement.appendChild(w)}:function(){setTimeout(E,0)};else{var x=new s.MessageChannel;x.port1.onmessage=E,f=function(){x.port2.postMessage(0)}}var y=[];function E(){var w,C;d=!0;for(var S=y.length;S;){for(C=y,y=[],w=-1;++w<S;)C[w]();S=y.length}d=!1}o.exports=function(w){y.push(w)!==1||d||f()}}).call(this,typeof Ri<"u"?Ri:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,o,u){var s=a("immediate");function f(){}var d={},m=["REJECTED"],p=["FULFILLED"],g=["PENDING"];function v(S){if(typeof S!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,S!==f&&w(this,S)}function x(S,T,D){this.promise=S,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof D=="function"&&(this.onRejected=D,this.callRejected=this.otherCallRejected)}function y(S,T,D){s(function(){var I;try{I=T(D)}catch(q){return d.reject(S,q)}I===S?d.reject(S,new TypeError("Cannot resolve promise with itself")):d.resolve(S,I)})}function E(S){var T=S&&S.then;if(S&&(typeof S=="object"||typeof S=="function")&&typeof T=="function")return function(){T.apply(S,arguments)}}function w(S,T){var D=!1;function I(P){D||(D=!0,d.reject(S,P))}function q(P){D||(D=!0,d.resolve(S,P))}var U=C(function(){T(q,I)});U.status==="error"&&I(U.value)}function C(S,T){var D={};try{D.value=S(T),D.status="success"}catch(I){D.status="error",D.value=I}return D}(o.exports=v).prototype.finally=function(S){if(typeof S!="function")return this;var T=this.constructor;return this.then(function(D){return T.resolve(S()).then(function(){return D})},function(D){return T.resolve(S()).then(function(){throw D})})},v.prototype.catch=function(S){return this.then(null,S)},v.prototype.then=function(S,T){if(typeof S!="function"&&this.state===p||typeof T!="function"&&this.state===m)return this;var D=new this.constructor(f);return this.state!==g?y(D,this.state===p?S:T,this.outcome):this.queue.push(new x(D,S,T)),D},x.prototype.callFulfilled=function(S){d.resolve(this.promise,S)},x.prototype.otherCallFulfilled=function(S){y(this.promise,this.onFulfilled,S)},x.prototype.callRejected=function(S){d.reject(this.promise,S)},x.prototype.otherCallRejected=function(S){y(this.promise,this.onRejected,S)},d.resolve=function(S,T){var D=C(E,T);if(D.status==="error")return d.reject(S,D.value);var I=D.value;if(I)w(S,I);else{S.state=p,S.outcome=T;for(var q=-1,U=S.queue.length;++q<U;)S.queue[q].callFulfilled(T)}return S},d.reject=function(S,T){S.state=m,S.outcome=T;for(var D=-1,I=S.queue.length;++D<I;)S.queue[D].callRejected(T);return S},v.resolve=function(S){return S instanceof this?S:d.resolve(new this(f),S)},v.reject=function(S){var T=new this(f);return d.reject(T,S)},v.all=function(S){var T=this;if(Object.prototype.toString.call(S)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=S.length,I=!1;if(!D)return this.resolve([]);for(var q=new Array(D),U=0,P=-1,ae=new this(f);++P<D;)K(S[P],P);return ae;function K(ce,me){T.resolve(ce).then(function(O){q[me]=O,++U!==D||I||(I=!0,d.resolve(ae,q))},function(O){I||(I=!0,d.reject(ae,O))})}},v.race=function(S){var T=this;if(Object.prototype.toString.call(S)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=S.length,I=!1;if(!D)return this.resolve([]);for(var q=-1,U=new this(f);++q<D;)P=S[q],T.resolve(P).then(function(ae){I||(I=!0,d.resolve(U,ae))},function(ae){I||(I=!0,d.reject(U,ae))});var P;return U}},{immediate:36}],38:[function(a,o,u){var s={};(0,a("./lib/utils/common").assign)(s,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),o.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,o,u){var s=a("./zlib/deflate"),f=a("./utils/common"),d=a("./utils/strings"),m=a("./zlib/messages"),p=a("./zlib/zstream"),g=Object.prototype.toString,v=0,x=-1,y=0,E=8;function w(S){if(!(this instanceof w))return new w(S);this.options=f.assign({level:x,method:E,chunkSize:16384,windowBits:15,memLevel:8,strategy:y,to:""},S||{});var T=this.options;T.raw&&0<T.windowBits?T.windowBits=-T.windowBits:T.gzip&&0<T.windowBits&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var D=s.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(D!==v)throw new Error(m[D]);if(T.header&&s.deflateSetHeader(this.strm,T.header),T.dictionary){var I;if(I=typeof T.dictionary=="string"?d.string2buf(T.dictionary):g.call(T.dictionary)==="[object ArrayBuffer]"?new Uint8Array(T.dictionary):T.dictionary,(D=s.deflateSetDictionary(this.strm,I))!==v)throw new Error(m[D]);this._dict_set=!0}}function C(S,T){var D=new w(T);if(D.push(S,!0),D.err)throw D.msg||m[D.err];return D.result}w.prototype.push=function(S,T){var D,I,q=this.strm,U=this.options.chunkSize;if(this.ended)return!1;I=T===~~T?T:T===!0?4:0,typeof S=="string"?q.input=d.string2buf(S):g.call(S)==="[object ArrayBuffer]"?q.input=new Uint8Array(S):q.input=S,q.next_in=0,q.avail_in=q.input.length;do{if(q.avail_out===0&&(q.output=new f.Buf8(U),q.next_out=0,q.avail_out=U),(D=s.deflate(q,I))!==1&&D!==v)return this.onEnd(D),!(this.ended=!0);q.avail_out!==0&&(q.avail_in!==0||I!==4&&I!==2)||(this.options.to==="string"?this.onData(d.buf2binstring(f.shrinkBuf(q.output,q.next_out))):this.onData(f.shrinkBuf(q.output,q.next_out)))}while((0<q.avail_in||q.avail_out===0)&&D!==1);return I===4?(D=s.deflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===v):I!==2||(this.onEnd(v),!(q.avail_out=0))},w.prototype.onData=function(S){this.chunks.push(S)},w.prototype.onEnd=function(S){S===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},u.Deflate=w,u.deflate=C,u.deflateRaw=function(S,T){return(T=T||{}).raw=!0,C(S,T)},u.gzip=function(S,T){return(T=T||{}).gzip=!0,C(S,T)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,o,u){var s=a("./zlib/inflate"),f=a("./utils/common"),d=a("./utils/strings"),m=a("./zlib/constants"),p=a("./zlib/messages"),g=a("./zlib/zstream"),v=a("./zlib/gzheader"),x=Object.prototype.toString;function y(w){if(!(this instanceof y))return new y(w);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},w||{});var C=this.options;C.raw&&0<=C.windowBits&&C.windowBits<16&&(C.windowBits=-C.windowBits,C.windowBits===0&&(C.windowBits=-15)),!(0<=C.windowBits&&C.windowBits<16)||w&&w.windowBits||(C.windowBits+=32),15<C.windowBits&&C.windowBits<48&&(15&C.windowBits)==0&&(C.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var S=s.inflateInit2(this.strm,C.windowBits);if(S!==m.Z_OK)throw new Error(p[S]);this.header=new v,s.inflateGetHeader(this.strm,this.header)}function E(w,C){var S=new y(C);if(S.push(w,!0),S.err)throw S.msg||p[S.err];return S.result}y.prototype.push=function(w,C){var S,T,D,I,q,U,P=this.strm,ae=this.options.chunkSize,K=this.options.dictionary,ce=!1;if(this.ended)return!1;T=C===~~C?C:C===!0?m.Z_FINISH:m.Z_NO_FLUSH,typeof w=="string"?P.input=d.binstring2buf(w):x.call(w)==="[object ArrayBuffer]"?P.input=new Uint8Array(w):P.input=w,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new f.Buf8(ae),P.next_out=0,P.avail_out=ae),(S=s.inflate(P,m.Z_NO_FLUSH))===m.Z_NEED_DICT&&K&&(U=typeof K=="string"?d.string2buf(K):x.call(K)==="[object ArrayBuffer]"?new Uint8Array(K):K,S=s.inflateSetDictionary(this.strm,U)),S===m.Z_BUF_ERROR&&ce===!0&&(S=m.Z_OK,ce=!1),S!==m.Z_STREAM_END&&S!==m.Z_OK)return this.onEnd(S),!(this.ended=!0);P.next_out&&(P.avail_out!==0&&S!==m.Z_STREAM_END&&(P.avail_in!==0||T!==m.Z_FINISH&&T!==m.Z_SYNC_FLUSH)||(this.options.to==="string"?(D=d.utf8border(P.output,P.next_out),I=P.next_out-D,q=d.buf2string(P.output,D),P.next_out=I,P.avail_out=ae-I,I&&f.arraySet(P.output,P.output,D,I,0),this.onData(q)):this.onData(f.shrinkBuf(P.output,P.next_out)))),P.avail_in===0&&P.avail_out===0&&(ce=!0)}while((0<P.avail_in||P.avail_out===0)&&S!==m.Z_STREAM_END);return S===m.Z_STREAM_END&&(T=m.Z_FINISH),T===m.Z_FINISH?(S=s.inflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===m.Z_OK):T!==m.Z_SYNC_FLUSH||(this.onEnd(m.Z_OK),!(P.avail_out=0))},y.prototype.onData=function(w){this.chunks.push(w)},y.prototype.onEnd=function(w){w===m.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},u.Inflate=y,u.inflate=E,u.inflateRaw=function(w,C){return(C=C||{}).raw=!0,E(w,C)},u.ungzip=E},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,o,u){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";u.assign=function(m){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var g=p.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var v in g)g.hasOwnProperty(v)&&(m[v]=g[v])}}return m},u.shrinkBuf=function(m,p){return m.length===p?m:m.subarray?m.subarray(0,p):(m.length=p,m)};var f={arraySet:function(m,p,g,v,x){if(p.subarray&&m.subarray)m.set(p.subarray(g,g+v),x);else for(var y=0;y<v;y++)m[x+y]=p[g+y]},flattenChunks:function(m){var p,g,v,x,y,E;for(p=v=0,g=m.length;p<g;p++)v+=m[p].length;for(E=new Uint8Array(v),p=x=0,g=m.length;p<g;p++)y=m[p],E.set(y,x),x+=y.length;return E}},d={arraySet:function(m,p,g,v,x){for(var y=0;y<v;y++)m[x+y]=p[g+y]},flattenChunks:function(m){return[].concat.apply([],m)}};u.setTyped=function(m){m?(u.Buf8=Uint8Array,u.Buf16=Uint16Array,u.Buf32=Int32Array,u.assign(u,f)):(u.Buf8=Array,u.Buf16=Array,u.Buf32=Array,u.assign(u,d))},u.setTyped(s)},{}],42:[function(a,o,u){var s=a("./common"),f=!0,d=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{d=!1}for(var m=new s.Buf8(256),p=0;p<256;p++)m[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function g(v,x){if(x<65537&&(v.subarray&&d||!v.subarray&&f))return String.fromCharCode.apply(null,s.shrinkBuf(v,x));for(var y="",E=0;E<x;E++)y+=String.fromCharCode(v[E]);return y}m[254]=m[254]=1,u.string2buf=function(v){var x,y,E,w,C,S=v.length,T=0;for(w=0;w<S;w++)(64512&(y=v.charCodeAt(w)))==55296&&w+1<S&&(64512&(E=v.charCodeAt(w+1)))==56320&&(y=65536+(y-55296<<10)+(E-56320),w++),T+=y<128?1:y<2048?2:y<65536?3:4;for(x=new s.Buf8(T),w=C=0;C<T;w++)(64512&(y=v.charCodeAt(w)))==55296&&w+1<S&&(64512&(E=v.charCodeAt(w+1)))==56320&&(y=65536+(y-55296<<10)+(E-56320),w++),y<128?x[C++]=y:(y<2048?x[C++]=192|y>>>6:(y<65536?x[C++]=224|y>>>12:(x[C++]=240|y>>>18,x[C++]=128|y>>>12&63),x[C++]=128|y>>>6&63),x[C++]=128|63&y);return x},u.buf2binstring=function(v){return g(v,v.length)},u.binstring2buf=function(v){for(var x=new s.Buf8(v.length),y=0,E=x.length;y<E;y++)x[y]=v.charCodeAt(y);return x},u.buf2string=function(v,x){var y,E,w,C,S=x||v.length,T=new Array(2*S);for(y=E=0;y<S;)if((w=v[y++])<128)T[E++]=w;else if(4<(C=m[w]))T[E++]=65533,y+=C-1;else{for(w&=C===2?31:C===3?15:7;1<C&&y<S;)w=w<<6|63&v[y++],C--;1<C?T[E++]=65533:w<65536?T[E++]=w:(w-=65536,T[E++]=55296|w>>10&1023,T[E++]=56320|1023&w)}return g(T,E)},u.utf8border=function(v,x){var y;for((x=x||v.length)>v.length&&(x=v.length),y=x-1;0<=y&&(192&v[y])==128;)y--;return y<0||y===0?x:y+m[v[y]]>x?y:x}},{"./common":41}],43:[function(a,o,u){o.exports=function(s,f,d,m){for(var p=65535&s|0,g=s>>>16&65535|0,v=0;d!==0;){for(d-=v=2e3<d?2e3:d;g=g+(p=p+f[m++]|0)|0,--v;);p%=65521,g%=65521}return p|g<<16|0}},{}],44:[function(a,o,u){o.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(a,o,u){var s=(function(){for(var f,d=[],m=0;m<256;m++){f=m;for(var p=0;p<8;p++)f=1&f?3988292384^f>>>1:f>>>1;d[m]=f}return d})();o.exports=function(f,d,m,p){var g=s,v=p+m;f^=-1;for(var x=p;x<v;x++)f=f>>>8^g[255&(f^d[x])];return-1^f}},{}],46:[function(a,o,u){var s,f=a("../utils/common"),d=a("./trees"),m=a("./adler32"),p=a("./crc32"),g=a("./messages"),v=0,x=4,y=0,E=-2,w=-1,C=4,S=2,T=8,D=9,I=286,q=30,U=19,P=2*I+1,ae=15,K=3,ce=258,me=ce+K+1,O=42,ee=113,z=1,F=2,G=3,X=4;function be(_,pe){return _.msg=g[pe],pe}function oe(_){return(_<<1)-(4<_?9:0)}function N(_){for(var pe=_.length;0<=--pe;)_[pe]=0}function j(_){var pe=_.state,le=pe.pending;le>_.avail_out&&(le=_.avail_out),le!==0&&(f.arraySet(_.output,pe.pending_buf,pe.pending_out,le,_.next_out),_.next_out+=le,pe.pending_out+=le,_.total_out+=le,_.avail_out-=le,pe.pending-=le,pe.pending===0&&(pe.pending_out=0))}function B(_,pe){d._tr_flush_block(_,0<=_.block_start?_.block_start:-1,_.strstart-_.block_start,pe),_.block_start=_.strstart,j(_.strm)}function R(_,pe){_.pending_buf[_.pending++]=pe}function re(_,pe){_.pending_buf[_.pending++]=pe>>>8&255,_.pending_buf[_.pending++]=255&pe}function fe(_,pe){var le,L,M=_.max_chain_length,Z=_.strstart,ye=_.prev_length,xe=_.nice_match,te=_.strstart>_.w_size-me?_.strstart-(_.w_size-me):0,Se=_.window,ne=_.w_mask,ue=_.prev,V=_.strstart+ce,de=Se[Z+ye-1],we=Se[Z+ye];_.prev_length>=_.good_match&&(M>>=2),xe>_.lookahead&&(xe=_.lookahead);do if(Se[(le=pe)+ye]===we&&Se[le+ye-1]===de&&Se[le]===Se[Z]&&Se[++le]===Se[Z+1]){Z+=2,le++;do;while(Se[++Z]===Se[++le]&&Se[++Z]===Se[++le]&&Se[++Z]===Se[++le]&&Se[++Z]===Se[++le]&&Se[++Z]===Se[++le]&&Se[++Z]===Se[++le]&&Se[++Z]===Se[++le]&&Se[++Z]===Se[++le]&&Z<V);if(L=ce-(V-Z),Z=V-ce,ye<L){if(_.match_start=pe,xe<=(ye=L))break;de=Se[Z+ye-1],we=Se[Z+ye]}}while((pe=ue[pe&ne])>te&&--M!=0);return ye<=_.lookahead?ye:_.lookahead}function _e(_){var pe,le,L,M,Z,ye,xe,te,Se,ne,ue=_.w_size;do{if(M=_.window_size-_.lookahead-_.strstart,_.strstart>=ue+(ue-me)){for(f.arraySet(_.window,_.window,ue,ue,0),_.match_start-=ue,_.strstart-=ue,_.block_start-=ue,pe=le=_.hash_size;L=_.head[--pe],_.head[pe]=ue<=L?L-ue:0,--le;);for(pe=le=ue;L=_.prev[--pe],_.prev[pe]=ue<=L?L-ue:0,--le;);M+=ue}if(_.strm.avail_in===0)break;if(ye=_.strm,xe=_.window,te=_.strstart+_.lookahead,Se=M,ne=void 0,ne=ye.avail_in,Se<ne&&(ne=Se),le=ne===0?0:(ye.avail_in-=ne,f.arraySet(xe,ye.input,ye.next_in,ne,te),ye.state.wrap===1?ye.adler=m(ye.adler,xe,ne,te):ye.state.wrap===2&&(ye.adler=p(ye.adler,xe,ne,te)),ye.next_in+=ne,ye.total_in+=ne,ne),_.lookahead+=le,_.lookahead+_.insert>=K)for(Z=_.strstart-_.insert,_.ins_h=_.window[Z],_.ins_h=(_.ins_h<<_.hash_shift^_.window[Z+1])&_.hash_mask;_.insert&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[Z+K-1])&_.hash_mask,_.prev[Z&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=Z,Z++,_.insert--,!(_.lookahead+_.insert<K)););}while(_.lookahead<me&&_.strm.avail_in!==0)}function Ae(_,pe){for(var le,L;;){if(_.lookahead<me){if(_e(_),_.lookahead<me&&pe===v)return z;if(_.lookahead===0)break}if(le=0,_.lookahead>=K&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+K-1])&_.hash_mask,le=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),le!==0&&_.strstart-le<=_.w_size-me&&(_.match_length=fe(_,le)),_.match_length>=K)if(L=d._tr_tally(_,_.strstart-_.match_start,_.match_length-K),_.lookahead-=_.match_length,_.match_length<=_.max_lazy_match&&_.lookahead>=K){for(_.match_length--;_.strstart++,_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+K-1])&_.hash_mask,le=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart,--_.match_length!=0;);_.strstart++}else _.strstart+=_.match_length,_.match_length=0,_.ins_h=_.window[_.strstart],_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+1])&_.hash_mask;else L=d._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++;if(L&&(B(_,!1),_.strm.avail_out===0))return z}return _.insert=_.strstart<K-1?_.strstart:K-1,pe===x?(B(_,!0),_.strm.avail_out===0?G:X):_.last_lit&&(B(_,!1),_.strm.avail_out===0)?z:F}function Ee(_,pe){for(var le,L,M;;){if(_.lookahead<me){if(_e(_),_.lookahead<me&&pe===v)return z;if(_.lookahead===0)break}if(le=0,_.lookahead>=K&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+K-1])&_.hash_mask,le=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),_.prev_length=_.match_length,_.prev_match=_.match_start,_.match_length=K-1,le!==0&&_.prev_length<_.max_lazy_match&&_.strstart-le<=_.w_size-me&&(_.match_length=fe(_,le),_.match_length<=5&&(_.strategy===1||_.match_length===K&&4096<_.strstart-_.match_start)&&(_.match_length=K-1)),_.prev_length>=K&&_.match_length<=_.prev_length){for(M=_.strstart+_.lookahead-K,L=d._tr_tally(_,_.strstart-1-_.prev_match,_.prev_length-K),_.lookahead-=_.prev_length-1,_.prev_length-=2;++_.strstart<=M&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+K-1])&_.hash_mask,le=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),--_.prev_length!=0;);if(_.match_available=0,_.match_length=K-1,_.strstart++,L&&(B(_,!1),_.strm.avail_out===0))return z}else if(_.match_available){if((L=d._tr_tally(_,0,_.window[_.strstart-1]))&&B(_,!1),_.strstart++,_.lookahead--,_.strm.avail_out===0)return z}else _.match_available=1,_.strstart++,_.lookahead--}return _.match_available&&(L=d._tr_tally(_,0,_.window[_.strstart-1]),_.match_available=0),_.insert=_.strstart<K-1?_.strstart:K-1,pe===x?(B(_,!0),_.strm.avail_out===0?G:X):_.last_lit&&(B(_,!1),_.strm.avail_out===0)?z:F}function Ce(_,pe,le,L,M){this.good_length=_,this.max_lazy=pe,this.nice_length=le,this.max_chain=L,this.func=M}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=T,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 f.Buf16(2*P),this.dyn_dtree=new f.Buf16(2*(2*q+1)),this.bl_tree=new f.Buf16(2*(2*U+1)),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(ae+1),this.heap=new f.Buf16(2*I+1),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*I+1),N(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 Ye(_){var pe;return _&&_.state?(_.total_in=_.total_out=0,_.data_type=S,(pe=_.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?O:ee,_.adler=pe.wrap===2?0:1,pe.last_flush=v,d._tr_init(pe),y):be(_,E)}function pt(_){var pe=Ye(_);return pe===y&&(function(le){le.window_size=2*le.w_size,N(le.head),le.max_lazy_match=s[le.level].max_lazy,le.good_match=s[le.level].good_length,le.nice_match=s[le.level].nice_length,le.max_chain_length=s[le.level].max_chain,le.strstart=0,le.block_start=0,le.lookahead=0,le.insert=0,le.match_length=le.prev_length=K-1,le.match_available=0,le.ins_h=0})(_.state),pe}function Ct(_,pe,le,L,M,Z){if(!_)return E;var ye=1;if(pe===w&&(pe=6),L<0?(ye=0,L=-L):15<L&&(ye=2,L-=16),M<1||D<M||le!==T||L<8||15<L||pe<0||9<pe||Z<0||C<Z)return be(_,E);L===8&&(L=9);var xe=new Pe;return(_.state=xe).strm=_,xe.wrap=ye,xe.gzhead=null,xe.w_bits=L,xe.w_size=1<<xe.w_bits,xe.w_mask=xe.w_size-1,xe.hash_bits=M+7,xe.hash_size=1<<xe.hash_bits,xe.hash_mask=xe.hash_size-1,xe.hash_shift=~~((xe.hash_bits+K-1)/K),xe.window=new f.Buf8(2*xe.w_size),xe.head=new f.Buf16(xe.hash_size),xe.prev=new f.Buf16(xe.w_size),xe.lit_bufsize=1<<M+6,xe.pending_buf_size=4*xe.lit_bufsize,xe.pending_buf=new f.Buf8(xe.pending_buf_size),xe.d_buf=1*xe.lit_bufsize,xe.l_buf=3*xe.lit_bufsize,xe.level=pe,xe.strategy=Z,xe.method=le,pt(_)}s=[new Ce(0,0,0,0,function(_,pe){var le=65535;for(le>_.pending_buf_size-5&&(le=_.pending_buf_size-5);;){if(_.lookahead<=1){if(_e(_),_.lookahead===0&&pe===v)return z;if(_.lookahead===0)break}_.strstart+=_.lookahead,_.lookahead=0;var L=_.block_start+le;if((_.strstart===0||_.strstart>=L)&&(_.lookahead=_.strstart-L,_.strstart=L,B(_,!1),_.strm.avail_out===0)||_.strstart-_.block_start>=_.w_size-me&&(B(_,!1),_.strm.avail_out===0))return z}return _.insert=0,pe===x?(B(_,!0),_.strm.avail_out===0?G:X):(_.strstart>_.block_start&&(B(_,!1),_.strm.avail_out),z)}),new Ce(4,4,8,4,Ae),new Ce(4,5,16,8,Ae),new Ce(4,6,32,32,Ae),new Ce(4,4,16,16,Ee),new Ce(8,16,32,32,Ee),new Ce(8,16,128,128,Ee),new Ce(8,32,128,256,Ee),new Ce(32,128,258,1024,Ee),new Ce(32,258,258,4096,Ee)],u.deflateInit=function(_,pe){return Ct(_,pe,T,15,8,0)},u.deflateInit2=Ct,u.deflateReset=pt,u.deflateResetKeep=Ye,u.deflateSetHeader=function(_,pe){return _&&_.state?_.state.wrap!==2?E:(_.state.gzhead=pe,y):E},u.deflate=function(_,pe){var le,L,M,Z;if(!_||!_.state||5<pe||pe<0)return _?be(_,E):E;if(L=_.state,!_.output||!_.input&&_.avail_in!==0||L.status===666&&pe!==x)return be(_,_.avail_out===0?-5:E);if(L.strm=_,le=L.last_flush,L.last_flush=pe,L.status===O)if(L.wrap===2)_.adler=0,R(L,31),R(L,139),R(L,8),L.gzhead?(R(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),R(L,255&L.gzhead.time),R(L,L.gzhead.time>>8&255),R(L,L.gzhead.time>>16&255),R(L,L.gzhead.time>>24&255),R(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),R(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(R(L,255&L.gzhead.extra.length),R(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(_.adler=p(_.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(R(L,0),R(L,0),R(L,0),R(L,0),R(L,0),R(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),R(L,3),L.status=ee);else{var ye=T+(L.w_bits-8<<4)<<8;ye|=(2<=L.strategy||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6,L.strstart!==0&&(ye|=32),ye+=31-ye%31,L.status=ee,re(L,ye),L.strstart!==0&&(re(L,_.adler>>>16),re(L,65535&_.adler)),_.adler=1}if(L.status===69)if(L.gzhead.extra){for(M=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>M&&(_.adler=p(_.adler,L.pending_buf,L.pending-M,M)),j(_),M=L.pending,L.pending!==L.pending_buf_size));)R(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>M&&(_.adler=p(_.adler,L.pending_buf,L.pending-M,M)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(L.status===73)if(L.gzhead.name){M=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>M&&(_.adler=p(_.adler,L.pending_buf,L.pending-M,M)),j(_),M=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindex<L.gzhead.name.length?255&L.gzhead.name.charCodeAt(L.gzindex++):0,R(L,Z)}while(Z!==0);L.gzhead.hcrc&&L.pending>M&&(_.adler=p(_.adler,L.pending_buf,L.pending-M,M)),Z===0&&(L.gzindex=0,L.status=91)}else L.status=91;if(L.status===91)if(L.gzhead.comment){M=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>M&&(_.adler=p(_.adler,L.pending_buf,L.pending-M,M)),j(_),M=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindex<L.gzhead.comment.length?255&L.gzhead.comment.charCodeAt(L.gzindex++):0,R(L,Z)}while(Z!==0);L.gzhead.hcrc&&L.pending>M&&(_.adler=p(_.adler,L.pending_buf,L.pending-M,M)),Z===0&&(L.status=103)}else L.status=103;if(L.status===103&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&j(_),L.pending+2<=L.pending_buf_size&&(R(L,255&_.adler),R(L,_.adler>>8&255),_.adler=0,L.status=ee)):L.status=ee),L.pending!==0){if(j(_),_.avail_out===0)return L.last_flush=-1,y}else if(_.avail_in===0&&oe(pe)<=oe(le)&&pe!==x)return be(_,-5);if(L.status===666&&_.avail_in!==0)return be(_,-5);if(_.avail_in!==0||L.lookahead!==0||pe!==v&&L.status!==666){var xe=L.strategy===2?(function(te,Se){for(var ne;;){if(te.lookahead===0&&(_e(te),te.lookahead===0)){if(Se===v)return z;break}if(te.match_length=0,ne=d._tr_tally(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++,ne&&(B(te,!1),te.strm.avail_out===0))return z}return te.insert=0,Se===x?(B(te,!0),te.strm.avail_out===0?G:X):te.last_lit&&(B(te,!1),te.strm.avail_out===0)?z:F})(L,pe):L.strategy===3?(function(te,Se){for(var ne,ue,V,de,we=te.window;;){if(te.lookahead<=ce){if(_e(te),te.lookahead<=ce&&Se===v)return z;if(te.lookahead===0)break}if(te.match_length=0,te.lookahead>=K&&0<te.strstart&&(ue=we[V=te.strstart-1])===we[++V]&&ue===we[++V]&&ue===we[++V]){de=te.strstart+ce;do;while(ue===we[++V]&&ue===we[++V]&&ue===we[++V]&&ue===we[++V]&&ue===we[++V]&&ue===we[++V]&&ue===we[++V]&&ue===we[++V]&&V<de);te.match_length=ce-(de-V),te.match_length>te.lookahead&&(te.match_length=te.lookahead)}if(te.match_length>=K?(ne=d._tr_tally(te,1,te.match_length-K),te.lookahead-=te.match_length,te.strstart+=te.match_length,te.match_length=0):(ne=d._tr_tally(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++),ne&&(B(te,!1),te.strm.avail_out===0))return z}return te.insert=0,Se===x?(B(te,!0),te.strm.avail_out===0?G:X):te.last_lit&&(B(te,!1),te.strm.avail_out===0)?z:F})(L,pe):s[L.level].func(L,pe);if(xe!==G&&xe!==X||(L.status=666),xe===z||xe===G)return _.avail_out===0&&(L.last_flush=-1),y;if(xe===F&&(pe===1?d._tr_align(L):pe!==5&&(d._tr_stored_block(L,0,0,!1),pe===3&&(N(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),j(_),_.avail_out===0))return L.last_flush=-1,y}return pe!==x?y:L.wrap<=0?1:(L.wrap===2?(R(L,255&_.adler),R(L,_.adler>>8&255),R(L,_.adler>>16&255),R(L,_.adler>>24&255),R(L,255&_.total_in),R(L,_.total_in>>8&255),R(L,_.total_in>>16&255),R(L,_.total_in>>24&255)):(re(L,_.adler>>>16),re(L,65535&_.adler)),j(_),0<L.wrap&&(L.wrap=-L.wrap),L.pending!==0?y:1)},u.deflateEnd=function(_){var pe;return _&&_.state?(pe=_.state.status)!==O&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==ee&&pe!==666?be(_,E):(_.state=null,pe===ee?be(_,-3):y):E},u.deflateSetDictionary=function(_,pe){var le,L,M,Z,ye,xe,te,Se,ne=pe.length;if(!_||!_.state||(Z=(le=_.state).wrap)===2||Z===1&&le.status!==O||le.lookahead)return E;for(Z===1&&(_.adler=m(_.adler,pe,ne,0)),le.wrap=0,ne>=le.w_size&&(Z===0&&(N(le.head),le.strstart=0,le.block_start=0,le.insert=0),Se=new f.Buf8(le.w_size),f.arraySet(Se,pe,ne-le.w_size,le.w_size,0),pe=Se,ne=le.w_size),ye=_.avail_in,xe=_.next_in,te=_.input,_.avail_in=ne,_.next_in=0,_.input=pe,_e(le);le.lookahead>=K;){for(L=le.strstart,M=le.lookahead-(K-1);le.ins_h=(le.ins_h<<le.hash_shift^le.window[L+K-1])&le.hash_mask,le.prev[L&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=L,L++,--M;);le.strstart=L,le.lookahead=K-1,_e(le)}return le.strstart+=le.lookahead,le.block_start=le.strstart,le.insert=le.lookahead,le.lookahead=0,le.match_length=le.prev_length=K-1,le.match_available=0,_.next_in=xe,_.input=te,_.avail_in=ye,le.wrap=Z,y},u.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,o,u){o.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(a,o,u){o.exports=function(s,f){var d,m,p,g,v,x,y,E,w,C,S,T,D,I,q,U,P,ae,K,ce,me,O,ee,z,F;d=s.state,m=s.next_in,z=s.input,p=m+(s.avail_in-5),g=s.next_out,F=s.output,v=g-(f-s.avail_out),x=g+(s.avail_out-257),y=d.dmax,E=d.wsize,w=d.whave,C=d.wnext,S=d.window,T=d.hold,D=d.bits,I=d.lencode,q=d.distcode,U=(1<<d.lenbits)-1,P=(1<<d.distbits)-1;e:do{D<15&&(T+=z[m++]<<D,D+=8,T+=z[m++]<<D,D+=8),ae=I[T&U];t:for(;;){if(T>>>=K=ae>>>24,D-=K,(K=ae>>>16&255)===0)F[g++]=65535&ae;else{if(!(16&K)){if((64&K)==0){ae=I[(65535&ae)+(T&(1<<K)-1)];continue t}if(32&K){d.mode=12;break e}s.msg="invalid literal/length code",d.mode=30;break e}ce=65535&ae,(K&=15)&&(D<K&&(T+=z[m++]<<D,D+=8),ce+=T&(1<<K)-1,T>>>=K,D-=K),D<15&&(T+=z[m++]<<D,D+=8,T+=z[m++]<<D,D+=8),ae=q[T&P];n:for(;;){if(T>>>=K=ae>>>24,D-=K,!(16&(K=ae>>>16&255))){if((64&K)==0){ae=q[(65535&ae)+(T&(1<<K)-1)];continue n}s.msg="invalid distance code",d.mode=30;break e}if(me=65535&ae,D<(K&=15)&&(T+=z[m++]<<D,(D+=8)<K&&(T+=z[m++]<<D,D+=8)),y<(me+=T&(1<<K)-1)){s.msg="invalid distance too far back",d.mode=30;break e}if(T>>>=K,D-=K,(K=g-v)<me){if(w<(K=me-K)&&d.sane){s.msg="invalid distance too far back",d.mode=30;break e}if(ee=S,(O=0)===C){if(O+=E-K,K<ce){for(ce-=K;F[g++]=S[O++],--K;);O=g-me,ee=F}}else if(C<K){if(O+=E+C-K,(K-=C)<ce){for(ce-=K;F[g++]=S[O++],--K;);if(O=0,C<ce){for(ce-=K=C;F[g++]=S[O++],--K;);O=g-me,ee=F}}}else if(O+=C-K,K<ce){for(ce-=K;F[g++]=S[O++],--K;);O=g-me,ee=F}for(;2<ce;)F[g++]=ee[O++],F[g++]=ee[O++],F[g++]=ee[O++],ce-=3;ce&&(F[g++]=ee[O++],1<ce&&(F[g++]=ee[O++]))}else{for(O=g-me;F[g++]=F[O++],F[g++]=F[O++],F[g++]=F[O++],2<(ce-=3););ce&&(F[g++]=F[O++],1<ce&&(F[g++]=F[O++]))}break}}break}}while(m<p&&g<x);m-=ce=D>>3,T&=(1<<(D-=ce<<3))-1,s.next_in=m,s.next_out=g,s.avail_in=m<p?p-m+5:5-(m-p),s.avail_out=g<x?x-g+257:257-(g-x),d.hold=T,d.bits=D}},{}],49:[function(a,o,u){var s=a("../utils/common"),f=a("./adler32"),d=a("./crc32"),m=a("./inffast"),p=a("./inftrees"),g=1,v=2,x=0,y=-2,E=1,w=852,C=592;function S(O){return(O>>>24&255)+(O>>>8&65280)+((65280&O)<<8)+((255&O)<<24)}function T(){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 s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function D(O){var ee;return O&&O.state?(ee=O.state,O.total_in=O.total_out=ee.total=0,O.msg="",ee.wrap&&(O.adler=1&ee.wrap),ee.mode=E,ee.last=0,ee.havedict=0,ee.dmax=32768,ee.head=null,ee.hold=0,ee.bits=0,ee.lencode=ee.lendyn=new s.Buf32(w),ee.distcode=ee.distdyn=new s.Buf32(C),ee.sane=1,ee.back=-1,x):y}function I(O){var ee;return O&&O.state?((ee=O.state).wsize=0,ee.whave=0,ee.wnext=0,D(O)):y}function q(O,ee){var z,F;return O&&O.state?(F=O.state,ee<0?(z=0,ee=-ee):(z=1+(ee>>4),ee<48&&(ee&=15)),ee&&(ee<8||15<ee)?y:(F.window!==null&&F.wbits!==ee&&(F.window=null),F.wrap=z,F.wbits=ee,I(O))):y}function U(O,ee){var z,F;return O?(F=new T,(O.state=F).window=null,(z=q(O,ee))!==x&&(O.state=null),z):y}var P,ae,K=!0;function ce(O){if(K){var ee;for(P=new s.Buf32(512),ae=new s.Buf32(32),ee=0;ee<144;)O.lens[ee++]=8;for(;ee<256;)O.lens[ee++]=9;for(;ee<280;)O.lens[ee++]=7;for(;ee<288;)O.lens[ee++]=8;for(p(g,O.lens,0,288,P,0,O.work,{bits:9}),ee=0;ee<32;)O.lens[ee++]=5;p(v,O.lens,0,32,ae,0,O.work,{bits:5}),K=!1}O.lencode=P,O.lenbits=9,O.distcode=ae,O.distbits=5}function me(O,ee,z,F){var G,X=O.state;return X.window===null&&(X.wsize=1<<X.wbits,X.wnext=0,X.whave=0,X.window=new s.Buf8(X.wsize)),F>=X.wsize?(s.arraySet(X.window,ee,z-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(F<(G=X.wsize-X.wnext)&&(G=F),s.arraySet(X.window,ee,z-F,G,X.wnext),(F-=G)?(s.arraySet(X.window,ee,z-F,F,0),X.wnext=F,X.whave=X.wsize):(X.wnext+=G,X.wnext===X.wsize&&(X.wnext=0),X.whave<X.wsize&&(X.whave+=G))),0}u.inflateReset=I,u.inflateReset2=q,u.inflateResetKeep=D,u.inflateInit=function(O){return U(O,15)},u.inflateInit2=U,u.inflate=function(O,ee){var z,F,G,X,be,oe,N,j,B,R,re,fe,_e,Ae,Ee,Ce,Pe,Ye,pt,Ct,_,pe,le,L,M=0,Z=new s.Buf8(4),ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!O||!O.state||!O.output||!O.input&&O.avail_in!==0)return y;(z=O.state).mode===12&&(z.mode=13),be=O.next_out,G=O.output,N=O.avail_out,X=O.next_in,F=O.input,oe=O.avail_in,j=z.hold,B=z.bits,R=oe,re=N,pe=x;e:for(;;)switch(z.mode){case E:if(z.wrap===0){z.mode=13;break}for(;B<16;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(2&z.wrap&&j===35615){Z[z.check=0]=255&j,Z[1]=j>>>8&255,z.check=d(z.check,Z,2,0),B=j=0,z.mode=2;break}if(z.flags=0,z.head&&(z.head.done=!1),!(1&z.wrap)||(((255&j)<<8)+(j>>8))%31){O.msg="incorrect header check",z.mode=30;break}if((15&j)!=8){O.msg="unknown compression method",z.mode=30;break}if(B-=4,_=8+(15&(j>>>=4)),z.wbits===0)z.wbits=_;else if(_>z.wbits){O.msg="invalid window size",z.mode=30;break}z.dmax=1<<_,O.adler=z.check=1,z.mode=512&j?10:12,B=j=0;break;case 2:for(;B<16;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(z.flags=j,(255&z.flags)!=8){O.msg="unknown compression method",z.mode=30;break}if(57344&z.flags){O.msg="unknown header flags set",z.mode=30;break}z.head&&(z.head.text=j>>8&1),512&z.flags&&(Z[0]=255&j,Z[1]=j>>>8&255,z.check=d(z.check,Z,2,0)),B=j=0,z.mode=3;case 3:for(;B<32;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}z.head&&(z.head.time=j),512&z.flags&&(Z[0]=255&j,Z[1]=j>>>8&255,Z[2]=j>>>16&255,Z[3]=j>>>24&255,z.check=d(z.check,Z,4,0)),B=j=0,z.mode=4;case 4:for(;B<16;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}z.head&&(z.head.xflags=255&j,z.head.os=j>>8),512&z.flags&&(Z[0]=255&j,Z[1]=j>>>8&255,z.check=d(z.check,Z,2,0)),B=j=0,z.mode=5;case 5:if(1024&z.flags){for(;B<16;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}z.length=j,z.head&&(z.head.extra_len=j),512&z.flags&&(Z[0]=255&j,Z[1]=j>>>8&255,z.check=d(z.check,Z,2,0)),B=j=0}else z.head&&(z.head.extra=null);z.mode=6;case 6:if(1024&z.flags&&(oe<(fe=z.length)&&(fe=oe),fe&&(z.head&&(_=z.head.extra_len-z.length,z.head.extra||(z.head.extra=new Array(z.head.extra_len)),s.arraySet(z.head.extra,F,X,fe,_)),512&z.flags&&(z.check=d(z.check,F,fe,X)),oe-=fe,X+=fe,z.length-=fe),z.length))break e;z.length=0,z.mode=7;case 7:if(2048&z.flags){if(oe===0)break e;for(fe=0;_=F[X+fe++],z.head&&_&&z.length<65536&&(z.head.name+=String.fromCharCode(_)),_&&fe<oe;);if(512&z.flags&&(z.check=d(z.check,F,fe,X)),oe-=fe,X+=fe,_)break e}else z.head&&(z.head.name=null);z.length=0,z.mode=8;case 8:if(4096&z.flags){if(oe===0)break e;for(fe=0;_=F[X+fe++],z.head&&_&&z.length<65536&&(z.head.comment+=String.fromCharCode(_)),_&&fe<oe;);if(512&z.flags&&(z.check=d(z.check,F,fe,X)),oe-=fe,X+=fe,_)break e}else z.head&&(z.head.comment=null);z.mode=9;case 9:if(512&z.flags){for(;B<16;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(j!==(65535&z.check)){O.msg="header crc mismatch",z.mode=30;break}B=j=0}z.head&&(z.head.hcrc=z.flags>>9&1,z.head.done=!0),O.adler=z.check=0,z.mode=12;break;case 10:for(;B<32;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}O.adler=z.check=S(j),B=j=0,z.mode=11;case 11:if(z.havedict===0)return O.next_out=be,O.avail_out=N,O.next_in=X,O.avail_in=oe,z.hold=j,z.bits=B,2;O.adler=z.check=1,z.mode=12;case 12:if(ee===5||ee===6)break e;case 13:if(z.last){j>>>=7&B,B-=7&B,z.mode=27;break}for(;B<3;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}switch(z.last=1&j,B-=1,3&(j>>>=1)){case 0:z.mode=14;break;case 1:if(ce(z),z.mode=20,ee!==6)break;j>>>=2,B-=2;break e;case 2:z.mode=17;break;case 3:O.msg="invalid block type",z.mode=30}j>>>=2,B-=2;break;case 14:for(j>>>=7&B,B-=7&B;B<32;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if((65535&j)!=(j>>>16^65535)){O.msg="invalid stored block lengths",z.mode=30;break}if(z.length=65535&j,B=j=0,z.mode=15,ee===6)break e;case 15:z.mode=16;case 16:if(fe=z.length){if(oe<fe&&(fe=oe),N<fe&&(fe=N),fe===0)break e;s.arraySet(G,F,X,fe,be),oe-=fe,X+=fe,N-=fe,be+=fe,z.length-=fe;break}z.mode=12;break;case 17:for(;B<14;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(z.nlen=257+(31&j),j>>>=5,B-=5,z.ndist=1+(31&j),j>>>=5,B-=5,z.ncode=4+(15&j),j>>>=4,B-=4,286<z.nlen||30<z.ndist){O.msg="too many length or distance symbols",z.mode=30;break}z.have=0,z.mode=18;case 18:for(;z.have<z.ncode;){for(;B<3;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}z.lens[ye[z.have++]]=7&j,j>>>=3,B-=3}for(;z.have<19;)z.lens[ye[z.have++]]=0;if(z.lencode=z.lendyn,z.lenbits=7,le={bits:z.lenbits},pe=p(0,z.lens,0,19,z.lencode,0,z.work,le),z.lenbits=le.bits,pe){O.msg="invalid code lengths set",z.mode=30;break}z.have=0,z.mode=19;case 19:for(;z.have<z.nlen+z.ndist;){for(;Ce=(M=z.lencode[j&(1<<z.lenbits)-1])>>>16&255,Pe=65535&M,!((Ee=M>>>24)<=B);){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(Pe<16)j>>>=Ee,B-=Ee,z.lens[z.have++]=Pe;else{if(Pe===16){for(L=Ee+2;B<L;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(j>>>=Ee,B-=Ee,z.have===0){O.msg="invalid bit length repeat",z.mode=30;break}_=z.lens[z.have-1],fe=3+(3&j),j>>>=2,B-=2}else if(Pe===17){for(L=Ee+3;B<L;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}B-=Ee,_=0,fe=3+(7&(j>>>=Ee)),j>>>=3,B-=3}else{for(L=Ee+7;B<L;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}B-=Ee,_=0,fe=11+(127&(j>>>=Ee)),j>>>=7,B-=7}if(z.have+fe>z.nlen+z.ndist){O.msg="invalid bit length repeat",z.mode=30;break}for(;fe--;)z.lens[z.have++]=_}}if(z.mode===30)break;if(z.lens[256]===0){O.msg="invalid code -- missing end-of-block",z.mode=30;break}if(z.lenbits=9,le={bits:z.lenbits},pe=p(g,z.lens,0,z.nlen,z.lencode,0,z.work,le),z.lenbits=le.bits,pe){O.msg="invalid literal/lengths set",z.mode=30;break}if(z.distbits=6,z.distcode=z.distdyn,le={bits:z.distbits},pe=p(v,z.lens,z.nlen,z.ndist,z.distcode,0,z.work,le),z.distbits=le.bits,pe){O.msg="invalid distances set",z.mode=30;break}if(z.mode=20,ee===6)break e;case 20:z.mode=21;case 21:if(6<=oe&&258<=N){O.next_out=be,O.avail_out=N,O.next_in=X,O.avail_in=oe,z.hold=j,z.bits=B,m(O,re),be=O.next_out,G=O.output,N=O.avail_out,X=O.next_in,F=O.input,oe=O.avail_in,j=z.hold,B=z.bits,z.mode===12&&(z.back=-1);break}for(z.back=0;Ce=(M=z.lencode[j&(1<<z.lenbits)-1])>>>16&255,Pe=65535&M,!((Ee=M>>>24)<=B);){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(Ce&&(240&Ce)==0){for(Ye=Ee,pt=Ce,Ct=Pe;Ce=(M=z.lencode[Ct+((j&(1<<Ye+pt)-1)>>Ye)])>>>16&255,Pe=65535&M,!(Ye+(Ee=M>>>24)<=B);){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}j>>>=Ye,B-=Ye,z.back+=Ye}if(j>>>=Ee,B-=Ee,z.back+=Ee,z.length=Pe,Ce===0){z.mode=26;break}if(32&Ce){z.back=-1,z.mode=12;break}if(64&Ce){O.msg="invalid literal/length code",z.mode=30;break}z.extra=15&Ce,z.mode=22;case 22:if(z.extra){for(L=z.extra;B<L;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}z.length+=j&(1<<z.extra)-1,j>>>=z.extra,B-=z.extra,z.back+=z.extra}z.was=z.length,z.mode=23;case 23:for(;Ce=(M=z.distcode[j&(1<<z.distbits)-1])>>>16&255,Pe=65535&M,!((Ee=M>>>24)<=B);){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if((240&Ce)==0){for(Ye=Ee,pt=Ce,Ct=Pe;Ce=(M=z.distcode[Ct+((j&(1<<Ye+pt)-1)>>Ye)])>>>16&255,Pe=65535&M,!(Ye+(Ee=M>>>24)<=B);){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}j>>>=Ye,B-=Ye,z.back+=Ye}if(j>>>=Ee,B-=Ee,z.back+=Ee,64&Ce){O.msg="invalid distance code",z.mode=30;break}z.offset=Pe,z.extra=15&Ce,z.mode=24;case 24:if(z.extra){for(L=z.extra;B<L;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}z.offset+=j&(1<<z.extra)-1,j>>>=z.extra,B-=z.extra,z.back+=z.extra}if(z.offset>z.dmax){O.msg="invalid distance too far back",z.mode=30;break}z.mode=25;case 25:if(N===0)break e;if(fe=re-N,z.offset>fe){if((fe=z.offset-fe)>z.whave&&z.sane){O.msg="invalid distance too far back",z.mode=30;break}_e=fe>z.wnext?(fe-=z.wnext,z.wsize-fe):z.wnext-fe,fe>z.length&&(fe=z.length),Ae=z.window}else Ae=G,_e=be-z.offset,fe=z.length;for(N<fe&&(fe=N),N-=fe,z.length-=fe;G[be++]=Ae[_e++],--fe;);z.length===0&&(z.mode=21);break;case 26:if(N===0)break e;G[be++]=z.length,N--,z.mode=21;break;case 27:if(z.wrap){for(;B<32;){if(oe===0)break e;oe--,j|=F[X++]<<B,B+=8}if(re-=N,O.total_out+=re,z.total+=re,re&&(O.adler=z.check=z.flags?d(z.check,G,re,be-re):f(z.check,G,re,be-re)),re=N,(z.flags?j:S(j))!==z.check){O.msg="incorrect data check",z.mode=30;break}B=j=0}z.mode=28;case 28:if(z.wrap&&z.flags){for(;B<32;){if(oe===0)break e;oe--,j+=F[X++]<<B,B+=8}if(j!==(4294967295&z.total)){O.msg="incorrect length check",z.mode=30;break}B=j=0}z.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return y}return O.next_out=be,O.avail_out=N,O.next_in=X,O.avail_in=oe,z.hold=j,z.bits=B,(z.wsize||re!==O.avail_out&&z.mode<30&&(z.mode<27||ee!==4))&&me(O,O.output,O.next_out,re-O.avail_out)?(z.mode=31,-4):(R-=O.avail_in,re-=O.avail_out,O.total_in+=R,O.total_out+=re,z.total+=re,z.wrap&&re&&(O.adler=z.check=z.flags?d(z.check,G,re,O.next_out-re):f(z.check,G,re,O.next_out-re)),O.data_type=z.bits+(z.last?64:0)+(z.mode===12?128:0)+(z.mode===20||z.mode===15?256:0),(R==0&&re===0||ee===4)&&pe===x&&(pe=-5),pe)},u.inflateEnd=function(O){if(!O||!O.state)return y;var ee=O.state;return ee.window&&(ee.window=null),O.state=null,x},u.inflateGetHeader=function(O,ee){var z;return O&&O.state?(2&(z=O.state).wrap)==0?y:((z.head=ee).done=!1,x):y},u.inflateSetDictionary=function(O,ee){var z,F=ee.length;return O&&O.state?(z=O.state).wrap!==0&&z.mode!==11?y:z.mode===11&&f(1,ee,F,0)!==z.check?-3:me(O,ee,F,F)?(z.mode=31,-4):(z.havedict=1,x):y},u.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,o,u){var s=a("../utils/common"),f=[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],d=[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],m=[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],p=[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];o.exports=function(g,v,x,y,E,w,C,S){var T,D,I,q,U,P,ae,K,ce,me=S.bits,O=0,ee=0,z=0,F=0,G=0,X=0,be=0,oe=0,N=0,j=0,B=null,R=0,re=new s.Buf16(16),fe=new s.Buf16(16),_e=null,Ae=0;for(O=0;O<=15;O++)re[O]=0;for(ee=0;ee<y;ee++)re[v[x+ee]]++;for(G=me,F=15;1<=F&&re[F]===0;F--);if(F<G&&(G=F),F===0)return E[w++]=20971520,E[w++]=20971520,S.bits=1,0;for(z=1;z<F&&re[z]===0;z++);for(G<z&&(G=z),O=oe=1;O<=15;O++)if(oe<<=1,(oe-=re[O])<0)return-1;if(0<oe&&(g===0||F!==1))return-1;for(fe[1]=0,O=1;O<15;O++)fe[O+1]=fe[O]+re[O];for(ee=0;ee<y;ee++)v[x+ee]!==0&&(C[fe[v[x+ee]]++]=ee);if(P=g===0?(B=_e=C,19):g===1?(B=f,R-=257,_e=d,Ae-=257,256):(B=m,_e=p,-1),O=z,U=w,be=ee=j=0,I=-1,q=(N=1<<(X=G))-1,g===1&&852<N||g===2&&592<N)return 1;for(;;){for(ae=O-be,ce=C[ee]<P?(K=0,C[ee]):C[ee]>P?(K=_e[Ae+C[ee]],B[R+C[ee]]):(K=96,0),T=1<<O-be,z=D=1<<X;E[U+(j>>be)+(D-=T)]=ae<<24|K<<16|ce|0,D!==0;);for(T=1<<O-1;j&T;)T>>=1;if(T!==0?(j&=T-1,j+=T):j=0,ee++,--re[O]==0){if(O===F)break;O=v[x+C[ee]]}if(G<O&&(j&q)!==I){for(be===0&&(be=G),U+=z,oe=1<<(X=O-be);X+be<F&&!((oe-=re[X+be])<=0);)X++,oe<<=1;if(N+=1<<X,g===1&&852<N||g===2&&592<N)return 1;E[I=j&q]=G<<24|X<<16|U-w|0}}return j!==0&&(E[U+j]=O-be<<24|64<<16|0),S.bits=G,0}},{"../utils/common":41}],51:[function(a,o,u){o.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(a,o,u){var s=a("../utils/common"),f=0,d=1;function m(M){for(var Z=M.length;0<=--Z;)M[Z]=0}var p=0,g=29,v=256,x=v+1+g,y=30,E=19,w=2*x+1,C=15,S=16,T=7,D=256,I=16,q=17,U=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],ae=[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],K=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],me=new Array(2*(x+2));m(me);var O=new Array(2*y);m(O);var ee=new Array(512);m(ee);var z=new Array(256);m(z);var F=new Array(g);m(F);var G,X,be,oe=new Array(y);function N(M,Z,ye,xe,te){this.static_tree=M,this.extra_bits=Z,this.extra_base=ye,this.elems=xe,this.max_length=te,this.has_stree=M&&M.length}function j(M,Z){this.dyn_tree=M,this.max_code=0,this.stat_desc=Z}function B(M){return M<256?ee[M]:ee[256+(M>>>7)]}function R(M,Z){M.pending_buf[M.pending++]=255&Z,M.pending_buf[M.pending++]=Z>>>8&255}function re(M,Z,ye){M.bi_valid>S-ye?(M.bi_buf|=Z<<M.bi_valid&65535,R(M,M.bi_buf),M.bi_buf=Z>>S-M.bi_valid,M.bi_valid+=ye-S):(M.bi_buf|=Z<<M.bi_valid&65535,M.bi_valid+=ye)}function fe(M,Z,ye){re(M,ye[2*Z],ye[2*Z+1])}function _e(M,Z){for(var ye=0;ye|=1&M,M>>>=1,ye<<=1,0<--Z;);return ye>>>1}function Ae(M,Z,ye){var xe,te,Se=new Array(C+1),ne=0;for(xe=1;xe<=C;xe++)Se[xe]=ne=ne+ye[xe-1]<<1;for(te=0;te<=Z;te++){var ue=M[2*te+1];ue!==0&&(M[2*te]=_e(Se[ue]++,ue))}}function Ee(M){var Z;for(Z=0;Z<x;Z++)M.dyn_ltree[2*Z]=0;for(Z=0;Z<y;Z++)M.dyn_dtree[2*Z]=0;for(Z=0;Z<E;Z++)M.bl_tree[2*Z]=0;M.dyn_ltree[2*D]=1,M.opt_len=M.static_len=0,M.last_lit=M.matches=0}function Ce(M){8<M.bi_valid?R(M,M.bi_buf):0<M.bi_valid&&(M.pending_buf[M.pending++]=M.bi_buf),M.bi_buf=0,M.bi_valid=0}function Pe(M,Z,ye,xe){var te=2*Z,Se=2*ye;return M[te]<M[Se]||M[te]===M[Se]&&xe[Z]<=xe[ye]}function Ye(M,Z,ye){for(var xe=M.heap[ye],te=ye<<1;te<=M.heap_len&&(te<M.heap_len&&Pe(Z,M.heap[te+1],M.heap[te],M.depth)&&te++,!Pe(Z,xe,M.heap[te],M.depth));)M.heap[ye]=M.heap[te],ye=te,te<<=1;M.heap[ye]=xe}function pt(M,Z,ye){var xe,te,Se,ne,ue=0;if(M.last_lit!==0)for(;xe=M.pending_buf[M.d_buf+2*ue]<<8|M.pending_buf[M.d_buf+2*ue+1],te=M.pending_buf[M.l_buf+ue],ue++,xe===0?fe(M,te,Z):(fe(M,(Se=z[te])+v+1,Z),(ne=P[Se])!==0&&re(M,te-=F[Se],ne),fe(M,Se=B(--xe),ye),(ne=ae[Se])!==0&&re(M,xe-=oe[Se],ne)),ue<M.last_lit;);fe(M,D,Z)}function Ct(M,Z){var ye,xe,te,Se=Z.dyn_tree,ne=Z.stat_desc.static_tree,ue=Z.stat_desc.has_stree,V=Z.stat_desc.elems,de=-1;for(M.heap_len=0,M.heap_max=w,ye=0;ye<V;ye++)Se[2*ye]!==0?(M.heap[++M.heap_len]=de=ye,M.depth[ye]=0):Se[2*ye+1]=0;for(;M.heap_len<2;)Se[2*(te=M.heap[++M.heap_len]=de<2?++de:0)]=1,M.depth[te]=0,M.opt_len--,ue&&(M.static_len-=ne[2*te+1]);for(Z.max_code=de,ye=M.heap_len>>1;1<=ye;ye--)Ye(M,Se,ye);for(te=V;ye=M.heap[1],M.heap[1]=M.heap[M.heap_len--],Ye(M,Se,1),xe=M.heap[1],M.heap[--M.heap_max]=ye,M.heap[--M.heap_max]=xe,Se[2*te]=Se[2*ye]+Se[2*xe],M.depth[te]=(M.depth[ye]>=M.depth[xe]?M.depth[ye]:M.depth[xe])+1,Se[2*ye+1]=Se[2*xe+1]=te,M.heap[1]=te++,Ye(M,Se,1),2<=M.heap_len;);M.heap[--M.heap_max]=M.heap[1],(function(we,je){var Me,nt,Tt,Le,$e,yt,Ue=je.dyn_tree,qt=je.max_code,Dt=je.stat_desc.static_tree,$a=je.stat_desc.has_stree,ta=je.stat_desc.extra_bits,Ni=je.stat_desc.extra_base,En=je.stat_desc.max_length,un=0;for(Le=0;Le<=C;Le++)we.bl_count[Le]=0;for(Ue[2*we.heap[we.heap_max]+1]=0,Me=we.heap_max+1;Me<w;Me++)En<(Le=Ue[2*Ue[2*(nt=we.heap[Me])+1]+1]+1)&&(Le=En,un++),Ue[2*nt+1]=Le,qt<nt||(we.bl_count[Le]++,$e=0,Ni<=nt&&($e=ta[nt-Ni]),yt=Ue[2*nt],we.opt_len+=yt*(Le+$e),$a&&(we.static_len+=yt*(Dt[2*nt+1]+$e)));if(un!==0){do{for(Le=En-1;we.bl_count[Le]===0;)Le--;we.bl_count[Le]--,we.bl_count[Le+1]+=2,we.bl_count[En]--,un-=2}while(0<un);for(Le=En;Le!==0;Le--)for(nt=we.bl_count[Le];nt!==0;)qt<(Tt=we.heap[--Me])||(Ue[2*Tt+1]!==Le&&(we.opt_len+=(Le-Ue[2*Tt+1])*Ue[2*Tt],Ue[2*Tt+1]=Le),nt--)}})(M,Z),Ae(Se,de,M.bl_count)}function _(M,Z,ye){var xe,te,Se=-1,ne=Z[1],ue=0,V=7,de=4;for(ne===0&&(V=138,de=3),Z[2*(ye+1)+1]=65535,xe=0;xe<=ye;xe++)te=ne,ne=Z[2*(xe+1)+1],++ue<V&&te===ne||(ue<de?M.bl_tree[2*te]+=ue:te!==0?(te!==Se&&M.bl_tree[2*te]++,M.bl_tree[2*I]++):ue<=10?M.bl_tree[2*q]++:M.bl_tree[2*U]++,Se=te,de=(ue=0)===ne?(V=138,3):te===ne?(V=6,3):(V=7,4))}function pe(M,Z,ye){var xe,te,Se=-1,ne=Z[1],ue=0,V=7,de=4;for(ne===0&&(V=138,de=3),xe=0;xe<=ye;xe++)if(te=ne,ne=Z[2*(xe+1)+1],!(++ue<V&&te===ne)){if(ue<de)for(;fe(M,te,M.bl_tree),--ue!=0;);else te!==0?(te!==Se&&(fe(M,te,M.bl_tree),ue--),fe(M,I,M.bl_tree),re(M,ue-3,2)):ue<=10?(fe(M,q,M.bl_tree),re(M,ue-3,3)):(fe(M,U,M.bl_tree),re(M,ue-11,7));Se=te,de=(ue=0)===ne?(V=138,3):te===ne?(V=6,3):(V=7,4)}}m(oe);var le=!1;function L(M,Z,ye,xe){re(M,(p<<1)+(xe?1:0),3),(function(te,Se,ne,ue){Ce(te),R(te,ne),R(te,~ne),s.arraySet(te.pending_buf,te.window,Se,ne,te.pending),te.pending+=ne})(M,Z,ye)}u._tr_init=function(M){le||((function(){var Z,ye,xe,te,Se,ne=new Array(C+1);for(te=xe=0;te<g-1;te++)for(F[te]=xe,Z=0;Z<1<<P[te];Z++)z[xe++]=te;for(z[xe-1]=te,te=Se=0;te<16;te++)for(oe[te]=Se,Z=0;Z<1<<ae[te];Z++)ee[Se++]=te;for(Se>>=7;te<y;te++)for(oe[te]=Se<<7,Z=0;Z<1<<ae[te]-7;Z++)ee[256+Se++]=te;for(ye=0;ye<=C;ye++)ne[ye]=0;for(Z=0;Z<=143;)me[2*Z+1]=8,Z++,ne[8]++;for(;Z<=255;)me[2*Z+1]=9,Z++,ne[9]++;for(;Z<=279;)me[2*Z+1]=7,Z++,ne[7]++;for(;Z<=287;)me[2*Z+1]=8,Z++,ne[8]++;for(Ae(me,x+1,ne),Z=0;Z<y;Z++)O[2*Z+1]=5,O[2*Z]=_e(Z,5);G=new N(me,P,v+1,x,C),X=new N(O,ae,0,y,C),be=new N(new Array(0),K,0,E,T)})(),le=!0),M.l_desc=new j(M.dyn_ltree,G),M.d_desc=new j(M.dyn_dtree,X),M.bl_desc=new j(M.bl_tree,be),M.bi_buf=0,M.bi_valid=0,Ee(M)},u._tr_stored_block=L,u._tr_flush_block=function(M,Z,ye,xe){var te,Se,ne=0;0<M.level?(M.strm.data_type===2&&(M.strm.data_type=(function(ue){var V,de=4093624447;for(V=0;V<=31;V++,de>>>=1)if(1&de&&ue.dyn_ltree[2*V]!==0)return f;if(ue.dyn_ltree[18]!==0||ue.dyn_ltree[20]!==0||ue.dyn_ltree[26]!==0)return d;for(V=32;V<v;V++)if(ue.dyn_ltree[2*V]!==0)return d;return f})(M)),Ct(M,M.l_desc),Ct(M,M.d_desc),ne=(function(ue){var V;for(_(ue,ue.dyn_ltree,ue.l_desc.max_code),_(ue,ue.dyn_dtree,ue.d_desc.max_code),Ct(ue,ue.bl_desc),V=E-1;3<=V&&ue.bl_tree[2*ce[V]+1]===0;V--);return ue.opt_len+=3*(V+1)+5+5+4,V})(M),te=M.opt_len+3+7>>>3,(Se=M.static_len+3+7>>>3)<=te&&(te=Se)):te=Se=ye+5,ye+4<=te&&Z!==-1?L(M,Z,ye,xe):M.strategy===4||Se===te?(re(M,2+(xe?1:0),3),pt(M,me,O)):(re(M,4+(xe?1:0),3),(function(ue,V,de,we){var je;for(re(ue,V-257,5),re(ue,de-1,5),re(ue,we-4,4),je=0;je<we;je++)re(ue,ue.bl_tree[2*ce[je]+1],3);pe(ue,ue.dyn_ltree,V-1),pe(ue,ue.dyn_dtree,de-1)})(M,M.l_desc.max_code+1,M.d_desc.max_code+1,ne+1),pt(M,M.dyn_ltree,M.dyn_dtree)),Ee(M),xe&&Ce(M)},u._tr_tally=function(M,Z,ye){return M.pending_buf[M.d_buf+2*M.last_lit]=Z>>>8&255,M.pending_buf[M.d_buf+2*M.last_lit+1]=255&Z,M.pending_buf[M.l_buf+M.last_lit]=255&ye,M.last_lit++,Z===0?M.dyn_ltree[2*ye]++:(M.matches++,Z--,M.dyn_ltree[2*(z[ye]+v+1)]++,M.dyn_dtree[2*B(Z)]++),M.last_lit===M.lit_bufsize-1},u._tr_align=function(M){re(M,2,3),fe(M,D,me),(function(Z){Z.bi_valid===16?(R(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)})(M)}},{"../utils/common":41}],53:[function(a,o,u){o.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(a,o,u){(function(s){(function(f,d){if(!f.setImmediate){var m,p,g,v,x=1,y={},E=!1,w=f.document,C=Object.getPrototypeOf&&Object.getPrototypeOf(f);C=C&&C.setTimeout?C:f,m={}.toString.call(f.process)==="[object process]"?function(I){process.nextTick(function(){T(I)})}:(function(){if(f.postMessage&&!f.importScripts){var I=!0,q=f.onmessage;return f.onmessage=function(){I=!1},f.postMessage("","*"),f.onmessage=q,I}})()?(v="setImmediate$"+Math.random()+"$",f.addEventListener?f.addEventListener("message",D,!1):f.attachEvent("onmessage",D),function(I){f.postMessage(v+I,"*")}):f.MessageChannel?((g=new MessageChannel).port1.onmessage=function(I){T(I.data)},function(I){g.port2.postMessage(I)}):w&&"onreadystatechange"in w.createElement("script")?(p=w.documentElement,function(I){var q=w.createElement("script");q.onreadystatechange=function(){T(I),q.onreadystatechange=null,p.removeChild(q),q=null},p.appendChild(q)}):function(I){setTimeout(T,0,I)},C.setImmediate=function(I){typeof I!="function"&&(I=new Function(""+I));for(var q=new Array(arguments.length-1),U=0;U<q.length;U++)q[U]=arguments[U+1];var P={callback:I,args:q};return y[x]=P,m(x),x++},C.clearImmediate=S}function S(I){delete y[I]}function T(I){if(E)setTimeout(T,0,I);else{var q=y[I];if(q){E=!0;try{(function(U){var P=U.callback,ae=U.args;switch(ae.length){case 0:P();break;case 1:P(ae[0]);break;case 2:P(ae[0],ae[1]);break;case 3:P(ae[0],ae[1],ae[2]);break;default:P.apply(d,ae)}})(q)}finally{S(I),E=!1}}}}function D(I){I.source===f&&typeof I.data=="string"&&I.data.indexOf(v)===0&&T(+I.data.slice(v.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Ri<"u"?Ri:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(yc)),yc.exports}var c2=u2();const f2=Za(c2),d2=({originalImages:n,resizedImages:r,resizeSettings:a,onClose:o})=>{const u=async()=>{if(r.length===1)Qm.saveAs(r[0],`resized_${n[0].name.split(".")[0]}.${a.format}`);else{const s=new f2;r.forEach((d,m)=>{s.file(`resized_${n[m].name.split(".")[0]}.${a.format}`,d)});const f=await s.generateAsync({type:"blob"});Qm.saveAs(f,"resized_images.zip")}};return k.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:k.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[k.jsxs("div",{className:"flex justify-between items-center mb-4",children:[k.jsx("h2",{className:"text-2xl font-bold",children:"Resized Image Preview"}),k.jsx("button",{onClick:o,className:"text-gray-500 hover:text-gray-800",children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),k.jsxs("div",{className:"bg-blue-100 border-l-4 border-blue-500 text-blue-700 p-4 mb-4",role:"alert",children:[k.jsx("p",{className:"font-bold",children:"Note"}),k.jsx("p",{children:"These preview images may appear pixelated and of low quality; always download for full quality."})]}),k.jsx("div",{children:n.map((s,f)=>k.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4 border-b pb-4",children:[k.jsxs("div",{children:[k.jsx("h3",{className:"text-lg font-semibold text-center mb-2",children:"Original"}),k.jsx("div",{className:"h-64 flex items-center justify-center bg-gray-100 rounded-lg",children:k.jsx("img",{src:URL.createObjectURL(s.originalFile),alt:s.name,className:"max-w-full max-h-full object-contain"})}),k.jsxs("div",{className:"text-center text-sm mt-2",children:[k.jsxs("p",{children:["Format: ",s.format.toUpperCase()]}),k.jsxs("p",{children:[s.dimensions.width," x ",s.dimensions.height," | ",(s.size/1024).toFixed(2)," KB"]})]})]}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-lg font-semibold text-center mb-2",children:"After Edit"}),k.jsx("div",{className:"h-64 flex items-center justify-center bg-gray-100 rounded-lg",children:k.jsx("img",{src:URL.createObjectURL(r[f]),alt:"Resized",className:"max-w-full max-h-full object-contain"})}),k.jsxs("div",{className:"text-center text-sm mt-2",children:[k.jsxs("p",{children:["Format: ",a.format.toUpperCase()]}),k.jsxs("p",{children:[a.width," x ",a.height," | ",(r[f].size/1024).toFixed(2)," KB"]})]})]})]},s.id))}),k.jsxs("div",{className:"bg-gray-100 p-4 rounded-lg mt-6",children:[k.jsxs("h4",{className:"font-bold text-lg mb-2 flex items-center",children:[k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6 mr-2",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.898 20.562L16.5 21.75l-.398-1.188a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.188-.398a2.25 2.25 0 001.423-1.423L16.5 15.75l.398 1.188a2.25 2.25 0 001.423 1.423L19.5 18.75l-1.188.398a2.25 2.25 0 00-1.423 1.423z"})}),"Tips for Better Resizing and Compression"]}),k.jsxs("ul",{className:"list-disc list-inside text-sm text-gray-700 space-y-2",children:[k.jsxs("li",{children:["Consider saving images in ",k.jsx("strong",{children:"JPG, JPEG, or WEBP"})," formats for optimized file sizes."]}),k.jsx("li",{children:"Use our prebuilt ratio presets to achieve consistent and professional aspect ratios."}),k.jsxs("li",{children:["If the resized image(s) ",k.jsx("strong",{children:"doesn't match your targeted file size"}),", then try these methods:",k.jsxs("ol",{className:"list-decimal list-inside ml-4",children:[k.jsx("li",{children:"Try changing the targeted file size by slightly increasing or decreasing it."}),k.jsx("li",{children:"Reduce image width and height dimensions."})]})]})]})]}),k.jsxs("div",{className:"flex justify-end gap-4 mt-4",children:[k.jsx("button",{onClick:o,className:"px-4 py-2 bg-gray-300 rounded-md",children:"Close"}),k.jsx("button",{onClick:u,className:"px-4 py-2 bg-green-500 text-white rounded-md",children:r.length>1?"Download ZIP":"Download"})]})]})})},Jm=()=>{const n=window.location.href,r="Check out Resizeo! It's a fast, free, and secure way to resize images right in your browser.",a={facebook:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(n)}&quote=${encodeURIComponent(r)}`,twitter:`https://twitter.com/intent/tweet?url=${encodeURIComponent(n)}&text=${encodeURIComponent(r)}`,linkedin:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(n)}`,whatsapp:`https://api.whatsapp.com/send?text=${encodeURIComponent(r+" "+n)}`,email:`mailto:?subject=Check out Resizeo&body=${encodeURIComponent(r+" "+n)}`};return k.jsxs("div",{className:"flex justify-center gap-2",children:[k.jsx("a",{href:a.facebook,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:k.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:k.jsx("path",{d:"M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3v9h4v-9z"})})}),k.jsx("a",{href:a.twitter,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:k.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:k.jsx("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.67.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.27 0 .34.04.67.11.98-3.54-.18-6.68-1.88-8.79-4.45-.37.63-.58 1.37-.58 2.15 0 1.48.75 2.79 1.9 3.55-.7-.02-1.37-.22-1.95-.5v.05c0 2.07 1.47 3.8 3.42 4.19-.36.1-.73.15-1.12.15-.27 0-.54-.03-.8-.08.54 1.7 2.1 2.93 3.96 2.96-1.46 1.14-3.3 1.82-5.3 1.82-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21c7.34 0 11.35-6.08 11.35-11.35 0-.17 0-.34-.01-.5.78-.57 1.45-1.28 1.98-2.08z"})})}),k.jsx("a",{href:a.linkedin,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:k.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:k.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14zm-8 15v-7H8v7h3zm-1.5-8.25a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM17 18v-4.66c0-1.95-1.23-2.82-2.5-2.82-1.16 0-1.84.7-2.16 1.38V11H10v7h3v-4.13c0-.79.39-1.56 1.18-1.56.78 0 1.32.77 1.32 1.72V18h3z"})})}),k.jsx("a",{href:a.whatsapp,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:k.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:k.jsx("path",{d:"M12.01 2.002c-5.523 0-10 4.477-10 10 0 1.75.45 3.4.125 4.9L2 22l5.3-1.38c1.5.8 3.18 1.25 4.9 1.25 5.523 0 10-4.477 10-10s-4.477-10-10-10zm0 18.2c-1.4 0-2.75-.38-3.95-1.03l-.28-.17-2.95.77.78-2.88-.18-.29c-.7-1.2-1.1-2.6-1.1-4.08 0-4.5 3.65-8.15 8.15-8.15 4.5 0 8.15 3.65 8.15 8.15s-3.65 8.15-8.15 8.15zm4.88-6.13c-.27-.13-1.6-.78-1.85-.88-.25-.09-.43-.13-.62.13-.18.27-.7.88-.85 1.05-.15.18-.3.2-.55.08-.25-.13-1.05-.38-2-1.23-.73-.65-1.22-1.45-1.37-1.7-.15-.25-.02-.38.12-.5.12-.1.27-.27.4-.4.13-.13.18-.22.27-.38.1-.15.05-.28-.02-.4-.08-.13-.62-1.5-.85-2.05-.23-.55-.45-.48-.62-.48-.15 0-.33-.02-.5-.02s-.43.05-.65.23c-.22.18-.85.83-.85 2.03 0 1.2.87 2.35 1 2.5.13.15 1.73 2.65 4.2 3.7.58.25 1.03.4 1.38.52.5.17.95.15 1.3.09.4-.07 1.25-.5 1.43-1.02.18-.5.18-1 .12-1.1-.05-.08-.18-.13-.43-.25z"})})}),k.jsx("a",{href:a.email,className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 20 20",fill:"currentColor",children:[k.jsx("path",{d:"M2.003 5.884L10 11.884l7.997-6A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}),k.jsx("path",{d:"M18 8.116l-8 5-8-5V14a2 2 0 002 2h12a2 2 0 002-2V8.116z"})]})})]})},$m=({variant:n})=>n==="initial"?k.jsxs("div",{className:"mt-8 p-6 bg-gray-50 border rounded-lg",children:[k.jsxs("div",{className:"text-center",children:[k.jsx("h3",{className:"text-xl font-bold mb-2",children:"Enjoyed using our app? Share the love! ❤️"}),k.jsx("p",{className:"text-gray-600 mb-4",children:"Tell your friends about us and help them discover it too."}),k.jsx(Jm,{})]}),k.jsxs("div",{className:"relative flex items-center justify-center my-6",children:[k.jsx("div",{className:"absolute inset-x-0 h-px bg-gray-300"}),k.jsx("span",{className:"bg-gray-50 px-4 text-gray-400 font-semibold relative z-10",children:"OR"})]}),k.jsxs("div",{className:"text-center",children:[k.jsx("h3",{className:"text-xl font-bold mb-2",children:"Help us improve 😊🙌"}),k.jsx("p",{className:"text-gray-600 mb-4",children:"Your honest feedback helps us grow. Don't be shy!"}),k.jsxs("div",{className:"flex justify-center gap-4",children:[k.jsx("a",{href:"mailto:feedback@resizeo.com",className:"px-4 py-2 bg-blue-100 text-blue-700 rounded-md border border-blue-200 hover:bg-blue-200",children:"Feedback"}),k.jsx("a",{href:"mailto:support@resizeo.com?subject=Issue%20Report",className:"px-4 py-2 bg-red-100 text-red-700 rounded-md border border-red-200 hover:bg-red-200",children:"Report issue"})]})]})]}):n==="compact"?k.jsx("div",{className:"my-8 p-4 bg-gray-50 border rounded-lg",children:k.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 items-center gap-4 text-center",children:[k.jsxs("div",{children:[k.jsx("h4",{className:"font-bold",children:"Share the love!"}),k.jsx(Jm,{})]}),k.jsxs("div",{children:[k.jsx("h4",{className:"font-bold",children:"Help us improve"}),k.jsxs("div",{className:"flex justify-center gap-4 mt-2",children:[k.jsx("a",{href:"mailto:feedback@resizeo.com",className:"px-3 py-1.5 text-sm bg-blue-100 text-blue-700 rounded-md border border-blue-200 hover:bg-blue-200",children:"Feedback"}),k.jsx("a",{href:"mailto:support@resizeo.com?subject=Issue%20Report",className:"px-3 py-1.5 text-sm bg-red-100 text-red-700 rounded-md border border-red-200 hover:bg-red-200",children:"Report issue"})]})]})]})}):null,h2=()=>{const[n,r]=W.useState([]),[a,o]=W.useState({width:100,height:100,unit:"px",mode:"stretch",format:"jpg",dpi:96,targetSize:void 0,targetSizeUnit:"KB"}),[u,s]=W.useState(!1),[f,d]=W.useState([]),[m]=O1();W.useEffect(()=>{const E=m.get("width"),w=m.get("height"),C=m.get("unit");E&&w&&C&&o(S=>({...S,width:Number(E),height:Number(w),unit:C}))},[m]);const p=async E=>{const w=[];for(const C of E)if(n.length+w.length<10)try{const S=await r2(C);w.push(S)}catch(S){console.error("Error processing file:",C.name,S)}else{alert("You can only upload up to 10 images.");break}r(C=>[...C,...w])},g=E=>{r(w=>w.filter(C=>C.id!==E))},v=(E,w)=>{r(C=>C.map(S=>S.id===E?{...S,...w}:S))},x=async()=>{if(n.length===0)return;const E=await Promise.all(n.map(w=>l2(w.file,a)));d(E),s(!0)},y=n.length>0?n[0].dimensions.width/n[0].dimensions.height:void 0;return k.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg",children:[k.jsx("h1",{className:"text-4xl font-bold text-center my-8",children:"Resizeo – Fast, Free & Secure"}),k.jsx("p",{className:"text-center text-gray-600 mb-8",children:"Resize, crop, and optimize your images with ease"}),k.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[k.jsxs("div",{children:[k.jsx(Ib,{onFiles:p,filesCount:n.length}),n.length>0?k.jsx(a2,{images:n,onRemove:g,onUpdate:v}):k.jsx($m,{variant:"initial"})]}),k.jsx(Yb,{settings:a,setSettings:o,onPreview:x,hasSelectedImages:n.length>0,aspectRatio:y})]}),n.length>0&&k.jsx($m,{variant:"compact"}),u&&k.jsx(d2,{originalImages:n,resizedImages:f,resizeSettings:a,onClose:()=>s(!1)}),k.jsx(Gb,{}),k.jsx(Vb,{}),k.jsx(Xb,{}),k.jsx(Zb,{})]})},p2=()=>{const n=Jc(),[r,a]=W.useState("PX"),o=s=>{n(`/?width=${s.width}&height=${s.height}&unit=${s.unit}`)},u=Fb.find(s=>s.name===r);return k.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg",children:[k.jsx("h1",{className:"text-4xl font-bold text-center my-8",children:"Resizer Presets"}),k.jsx("p",{className:"text-center text-gray-600 mb-8",children:"Select from our extensive library of popular image size presets for social media, ads, print, and more."}),k.jsx("div",{className:"flex justify-center mb-8 gap-2",children:["PX","CM","MM","INCH","%"].map(s=>k.jsx("button",{onClick:()=>a(s),className:`px-4 py-2 text-lg font-medium rounded-md transition-colors ${r===s?"bg-blue-500 text-white shadow":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:s},s))}),u&&k.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:u.presets.map(s=>k.jsxs("button",{onClick:()=>o(s),className:"text-left p-4 bg-white rounded-lg shadow-md hover:shadow-lg hover:scale-105 transition-transform",children:[k.jsx("p",{className:"font-semibold text-gray-800",children:s.name}),k.jsxs("p",{className:"text-sm text-blue-500",children:[s.width," x ",s.height," ",s.unit]})]},s.name))})]})},rf=[{slug:"lossy-vs-lossless-compression",title:"Lossy vs. Lossless Compression: What's the Difference and Which to Choose?",description:"Learn the difference between lossy and lossless compression, how each works, and when to use them. A simple, beginner-friendly guide to optimizing your images.",author:"Amelia",date:"June 18, 2025",readTime:6,tags:["Quick Guides","Image Optimization"],imageUrl:"https://images.unsplash.com/photo-1579621970795-87facc2f976d?q=80&w=2070&auto=format&fit=crop",content:[{type:"p",text:"When you save a digital image, you're often faced with a choice between 'lossy' and 'lossless' compression. The one you choose can have a significant impact on file size and image quality. Understanding the fundamental difference is key to making the right decision for your project."},{type:"h2",text:"What is Lossless Compression?"},{type:"p",text:"Lossless compression is like a perfect, reversible filing system; it reduces file size without discarding a single piece of information. It works by finding more efficient ways to represent the data without throwing any of it away. When you open the image, the software perfectly reconstructs the original data. This is ideal for images with sharp lines and solid colors, like logos, text-heavy graphics, or technical diagrams where precision is key. PNG is the most common lossless format for the web."},{type:"h2",text:"What is Lossy Compression?"},{type:"p",text:"Lossy compression, on the other hand, intelligently removes redundant or less noticeable data to make the file significantly smaller. It analyzes the image and discards bits of information that the human eye is unlikely to notice. Because this data can't be recovered, the process is 'lossy'. This method is perfect for photographs and complex images where millions of colors are present and slight data loss is imperceptible. JPEG is the king of lossy compression, offering a fantastic balance of quality and small file size that has made it the standard for photos on the web for decades."},{type:"h2",text:"Which One Should You Use?"},{type:"p",text:"The choice is simple: for logos, icons, illustrations, and anything with text or sharp geometric lines, use a lossless format like PNG. For all photographs and complex, multi-colored images, use a lossy format like JPEG or WebP to get the best balance of quality and fast loading times."},{type:"p",text:"Ready to optimize your images? Head over to [Resizeo.com](https://resizeo.com/) and get started for free. No downloads, no sign-ups, just fast and easy image resizing."}]},{slug:"choosing-the-right-image-format",title:"JPEG vs PNG vs WEBP: Choosing the Right Image Format for Your Website",description:"Learn the key differences between JPEG, PNG, and WebP formats. Understand which image format to use, when to use it, and why it matters for web performance.",author:"Nick",date:"May 18, 2025",readTime:9,tags:["Optimization","Web Performance"],imageUrl:"https://images.unsplash.com/photo-1587620962725-abab7fe55159?q=80&w=1931&auto=format&fit=crop",content:[{type:"p",text:"Choosing the right image format is crucial for a fast, beautiful website. Using the wrong one can lead to slow load times or poor image quality. The three main contenders for the web today are JPEG, PNG, and the modern WebP format."},{type:"h2",text:"JPEG: The Standard for Photos"},{type:"p",text:"JPEG (or JPG) has been the web's workhorse for decades. It uses lossy compression, making it perfect for photographs and complex images. It can drastically reduce file size with minimal perceived loss in quality. Its primary weakness, however, is that it does not support transparency."},{type:"h2",text:"PNG: The Choice for Graphics"},{type:"p",text:"PNG is the answer where transparency is needed. As a lossless format, it's perfect for logos, icons, and any graphic where sharp, clean lines and solid colors are important. This quality and flexibility come at the cost of a larger file size compared to JPEG, making it unsuitable for large photos."},{type:"h2",text:"WebP: The Modern All-in-One"},{type:"p",text:"Enter WebP, Google's modern format designed to solve this dilemma. WebP offers both lossy and lossless compression that is superior to both JPEG and PNG. This means it can create smaller files at the same quality level, and it fully supports transparency. With wide browser support, using WebP is often the best choice for both performance and quality in modern web development."},{type:"p",text:"Ready to optimize your images? Head over to [Resizeo.com](https://resizeo.com/) and get started for free. No downloads, no sign-ups, just fast and easy image resizing."}]},{slug:"image-resolution-vs-file-size",title:"Image Resolution vs File Size: Myths, Facts & What Actually Matters",description:"Does higher resolution mean a bigger image file? Will compressing your image ruin its quality? Let's break down these common myths and get to the facts.",author:"Nick",date:"April 24, 2025",readTime:7,tags:["Web Performance","Optimization","Technical"],imageUrl:"https://images.unsplash.com/photo-1555949963-ff9fe0c870eb?q=80&w=2070&auto=format&fit=crop",content:[{type:"p",text:"It's a common myth that higher resolution always means a bigger file size. While the two are related, they aren't the same thing. Understanding the difference is key to optimizing your images effectively."},{type:"h2",text:"Resolution: The Pixel Count"},{type:"p",text:"Resolution refers to the number of pixels in an image, typically expressed as width x height (e.g., 1920x1080 pixels). More pixels means more data is captured, which naturally leads to a larger base file size and greater detail. An uncompressed high-resolution image will be enormous."},{type:"h2",text:"File Size: The Role of Compression"},{type:"p",text:"The final file size you see on your disk is determined by compression. A highly compressed high-resolution image could actually be smaller than a lightly compressed low-resolution image. The key is finding the right balance. You need enough resolution for the image to be sharp where it's displayed, and enough compression to make it load quickly without visibly degrading the quality. Don't just chase high resolution; focus on smart compression."},{type:"p",text:"Ready to optimize your images? Head over to [Resizeo.com](https://resizeo.com/) and get started for free. No downloads, no sign-ups, just fast and easy image resizing."}]},{slug:"guide-to-social-media-image-sizes",title:"The Ultimate Guide to Social Media Image Sizes (2025 Update)",description:"Never upload a blurry or poorly cropped image again. Here are the most up-to-date image dimension requirements for all major social media platforms.",author:"Sarah",date:"March 15, 2025",readTime:12,tags:["Social Media","Quick Guide"],imageUrl:"https://images.unsplash.com/photo-1611162617213-7d7a39e9b1d7?q=80&w=1974&auto=format&fit=crop",content:[{type:"p",text:"Every social media platform is a unique ecosystem with its own rules for displaying images. Uploading a one-size-fits-all image can result in awkward cropping, ugly compression artifacts, or blurry pictures. To keep your brand looking professional, you must use the optimal size for each platform."},{type:"h2",text:"Why It Matters"},{type:"p",text:"Using the correct sizes ensures your content is displayed at the highest possible quality, avoids important details being cut off, and improves user engagement. For example, an Instagram story (1080x1920) is vastly different from a LinkedIn post image (1200x627). This guide provides a comprehensive and up-to-date list of the exact dimensions you need for profile pictures, headers, in-feed posts, and stories across all major platforms. Bookmark this page to ensure your content always looks its best."},{type:"p",text:"Ready to optimize your images? Head over to [Resizeo.com](https://resizeo.com/) and get started for free. No downloads, no sign-ups, just fast and easy image resizing."}]},{slug:"designing-for-the-web",title:"10 Principles of Modern Web Design",description:"Explore the fundamental principles that make a website beautiful, functional, and user-friendly. A must-read for aspiring designers and developers.",author:"David",date:"February 20, 2025",readTime:8,tags:["Design","Web Development"],imageUrl:"https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=2070&auto=format&fit=crop",content:[{type:"p",text:"What separates a great website from a mediocre one? It often comes down to a few core design principles that prioritize the user experience."},{type:"h2",text:"Key Principles for Success"},{type:"p",text:"First is a 'mobile-first' approach, ensuring the site works flawlessly on small screens where most users browse today. Visual hierarchy is another key: guiding the user's eye to the most important elements first through smart use of size, color, and placement. Simplicity in navigation is crucial; if users can't find what they're looking for, they'll leave. Generous use of whitespace prevents a cluttered look and improves readability. Of course, performance is paramount—a site that loads slowly is a site that loses visitors. Finally, every page should have a clear call-to-action (CTA) that tells the user what to do next. Mastering these principles creates an experience that is both beautiful and effective."},{type:"p",text:"Ready to optimize your images? Head over to [Resizeo.com](https://resizeo.com/) and get started for free. No downloads, no sign-ups, just fast and easy image resizing."}]},{slug:"introduction-to-marketing-assets",title:"Creating Effective Visuals for Your Marketing Campaigns",description:"Visuals are key to grabbing attention. This guide covers the basics of creating compelling images and graphics for your marketing efforts.",author:"Amelia",date:"January 30, 2025",readTime:7,tags:["Marketing","Design"],imageUrl:"https://images.unsplash.com/photo-1557862921-37829c790f19?q=80&w=2071&auto=format&fit=crop",content:[{type:"p",text:"In a crowded digital world, strong visuals are your best tool for capturing attention. But what makes a visual effective? It's a combination of brand consistency, quality, and audience understanding."},{type:"h2",text:"Building a Cohesive Brand Image"},{type:"p",text:"Consistency is the foundation; all your marketing graphics should share a cohesive style that reflects your brand's identity, using the same fonts, colors, and logo placement. Quality is non-negotiable—blurry or pixelated images signal a lack of professionalism. It's also vital to understand your target audience. Are they drawn to vibrant, energetic graphics or a more minimalist, professional aesthetic? Your visuals should speak their language."},{type:"h2",text:"Test and Optimize"},{type:"p",text:"Finally, don't be afraid to test. Create variations of your ad graphics or social media posts (a practice known as A/B testing) to see which images resonate most with your audience and lead to better engagement and conversion rates."},{type:"p",text:"Ready to optimize your images? Head over to [Resizeo.com](https://resizeo.com/) and get started for free. No downloads, no sign-ups, just fast and easy image resizing."}]},{slug:"resize-image-for-youtube-banner",title:"The Ultimate Guide to Resize Image for YouTube Banner in 2025",description:"Learn how to perfectly resize image for YouTube banner with our comprehensive 2025 guide. Get the exact dimensions, safe zone tips, and use our free tool.",author:"Resizeo Team",date:"November 30, 2025",readTime:10,tags:["YouTube","Social Media","Image Resizing"],imageUrl:"https://www.stockvault.net/data/2018/07/18/253236/preview16.jpg",content:[{type:"p",text:"Your YouTube banner is the first thing visitors see on your channel. It’s your digital billboard, and making a great first impression is crucial. But getting it right can be tricky. A banner that looks perfect on your desktop might be awkwardly cropped on a mobile phone or a TV. The secret to a professional-looking channel art is understanding and using the correct dimensions. This comprehensive guide will walk you through everything you need to know to **resize image for YouTube banner** perfectly."},{type:"h2",text:"Why Is Your YouTube Banner Size So Important?"},{type:"p",text:"YouTube is accessed on a wide variety of devices, from massive smart TVs to tiny smartphone screens. YouTube uses one single banner image and adapts it to fit all these different screen sizes. If your image isn’t optimized, key elements like your logo, text, or parts of the image could be cut off, leading to a confusing and unprofessional look. When you **resize image for YouTube banner** correctly, you ensure a consistent and high-quality brand presentation for every single visitor, no matter how they’re viewing your channel."},{type:"h2",text:"Official YouTube Banner Dimensions (2025)"},{type:"p",text:`To get started, let's look at YouTube's official recommendations:
- **Recommended Dimensions:** 2560 x 1440 pixels.
- **Minimum Dimensions:** 2048 x 1152 pixels.
- **Safe Zone for Text and Logos:** 1235 x 338 pixels. This is the central area that is guaranteed to be visible on all devices. Anything outside this 'safe zone' might be cropped.
- **Maximum File Size:** 6MB.`},{type:"p",text:"The most critical of these is the 'safe zone'. All your essential information—your channel name, logo, tagline, social media handles—must be placed within this central 1235 x 338 pixel area to guarantee visibility. The areas outside this zone will be visible on larger screens like desktops and TVs, so they should still contain visually appealing imagery that complements the central message but doesn't contain critical information."},{type:"h2",text:"Step-by-Step: How to Resize Image for YouTube Banner"},{type:"p",text:"Now for the practical part. How do you actually resize your image to these exact specifications? While complex software like Photoshop can do the job, the easiest and fastest method is to use a dedicated online tool. We highly recommend using [Resizeo.com](https://resizeo.com/), our free and powerful browser-based image resizer."},{type:"p",text:`Here’s how simple it is:
1. **Upload Your Image:** Go to [Resizeo.com](https://resizeo.com/) and upload the high-resolution image you want to use as your banner.
2. **Enter Dimensions:** In the width and height fields, enter **2560** and **1440** respectively. Make sure the unit is set to 'px' (pixels).
3. **Utilize the Safe Zone:** This is where a good tool helps. Before you finalize, visualize the 1235 x 338 pixel safe area in the center of your image. Ensure your main content fits comfortably within it. Our tool on Resizeo provides presets and guides to make this easy.
4. **Check the File Size:** The final image should be under 6MB. If your resized image is larger, you can use Resizeo's compression tools to reduce the file size without significant quality loss.
5. **Download and Upload:** Download your perfectly resized banner and upload it to the 'Customization' section of your YouTube Studio.`},{type:"h2",text:"Common Mistakes to Avoid"},{type:"p",text:`Many creators struggle to get their banner right. Here are some common pitfalls to avoid:
- **Ignoring the Safe Zone:** This is the most frequent mistake. Placing text or logos outside this area will result in them being cropped on mobile.
- **Using a Low-Resolution Image:** Starting with a small image and stretching it to 2560 x 1440 will result in a blurry, pixelated mess. Always start with the highest resolution image possible.
- **Cluttering the Banner:** A busy banner is hard to read. Keep your design clean, simple, and focused on your core message or brand identity.`},{type:"p",text:"Remember, the key to success is to **resize image for YouTube banner** with both the overall dimensions and the central safe zone in mind. Take a few extra minutes to get it right, and your channel will look polished and professional across all platforms."},{type:"p",text:"Ready to create the perfect banner? Head over to [Resizeo.com](https://resizeo.com/) and get started for free. No downloads, no sign-ups, just fast and easy image resizing."}]},{slug:"resize-image-to-100kb",title:"How to Resize Image to 100KB: The Definitive Guide",description:"Learn the best techniques to resize image to 100KB without losing quality. Perfect for web uploads, forms, and emails. Use our free tool for instant results.",author:"Resizeo Team",date:"November 30, 2025",readTime:9,tags:["Image Compression","File Size","Web Optimization"],imageUrl:"https://images.unsplash.com/photo-1555949963-ff9fe0c870eb?q=80&w=2070&auto=format&fit=crop",content:[{type:"p",text:"In the digital world, size matters. Whether you’re uploading a profile picture, submitting a document online, or sending images via email, you’ve likely encountered a file size limit. One of the most common requirements is to keep images under 100KB. But how do you **resize image to 100KB** without turning your beautiful, crisp photo into a pixelated mess? It’s a delicate balance between size and quality, but with the right techniques and tools, it's easier than you think."},{type:"h2",text:"Why 100KB? The Importance of a Small File Size"},{type:"p",text:"A 100KB file size is a sweet spot for several reasons. It's small enough to load almost instantly on most internet connections, making it ideal for web performance. Fast-loading websites rank better in search engines and provide a better user experience. For online forms (like government applications, job portals, or university admissions), a 100KB limit ensures that their servers aren't overloaded with massive files. It's a practical constraint that keeps the digital world running smoothly."},{type:"h2",text:"Understanding the Factors That Affect Image Size"},{type:"p",text:`Three main factors determine the size of an image file:
1. **Dimensions (Resolution):** The number of pixels in an image (width x height). A 3000x3000 pixel image has 9 million pixels, while a 300x300 pixel image has only 90,000. Fewer pixels mean less data and a smaller file.
2. **Image Format:** Formats like JPEG, PNG, and WebP use different compression methods. JPEG is 'lossy', meaning it discards some data to achieve smaller sizes, making it great for photos. PNG is 'lossless', preserving all data, which is better for graphics but results in larger files.
3. **Compression Level:** For lossy formats like JPEG, you can choose a quality level (e.g., from 1 to 100). A lower quality setting means more compression and a smaller file size, but at the cost of visual detail.`},{type:"h2",text:"The Best Way to Resize Image to 100KB Online"},{type:"p",text:"The most effective method to **resize image to 100KB** is by using a smart online tool that can handle all three factors simultaneously. We built [Resizeo.com](https://resizeo.com/) for this very purpose. It’s a free, browser-based tool that gives you full control over the resizing process."},{type:"p",text:`Here's a winning strategy using [Resizeo.com](https://resizeo.com/):
1. **Start with Dimensions:** Don't just jump to compression. First, reduce the image dimensions. If the image is for a small profile picture, it doesn't need to be 4000 pixels wide. Resize it to a more appropriate size, like 800x800 pixels.
2. **Choose the Right Format:** For photographs, always choose JPEG. It offers the best compression for photographic content.
3. **Target the File Size:** This is the magic step. On Resizeo, you can directly input your desired file size. Enter **100** and select **KB**. The tool’s smart algorithm will automatically adjust the compression level to get as close as possible to your target size while preserving the maximum possible quality.
4. **Preview and Download:** You’ll see a live preview of the output file size. If it looks good, just hit download. You now have an image that meets the 100KB requirement.`},{type:"h2",text:"Pro Tips for Quality Preservation"},{type:"p",text:`Getting under a file size limit is one thing; doing it without ruining the image is another. Here are some tips:
- **Resize, then Compress:** Always reduce the dimensions first. Compressing a massive 5MB image directly to 100KB will create more artifacts than resizing it to a reasonable dimension first and then applying compression.
- **Iterate if Necessary:** If the first result isn’t quite right, tweak the settings. Sometimes, reducing the dimensions by another 10% can allow for a higher quality compression setting, resulting in a better-looking image at the same file size.
- **Don't Over-Compress:** If you have to set the JPEG quality below 40, the image will likely look heavily distorted. In such cases, consider if you can reduce the dimensions further.`},{type:"p",text:"Mastering the art to **resize image to 100KB** is an essential skill for anyone who uses the internet. It ensures your images are accepted by online systems and load quickly for viewers. With a powerful tool like [Resizeo.com](https://resizeo.com/), you can achieve the perfect balance of size and quality every time, for free."}]},{slug:"resize-image-for-youtube-thumbnail",title:"Perfectly Resize Image for YouTube Thumbnail: A 2025 Guide",description:"Your guide to perfectly resize image for YouTube thumbnail. Learn the ideal 1280x720 dimensions, aspect ratio, and file size to get more clicks.",author:"Resizeo Team",date:"November 30, 2025",readTime:8,tags:["YouTube","Social Media","Image Resizing"],imageUrl:"https://images.unsplash.com/photo-1587620962725-abab7fe55159?q=80&w=1931&auto=format&fit=crop",content:[{type:"p",text:"The YouTube thumbnail is arguably the most important element for a video's success. It's the movie poster, the book cover, and the first impression all rolled into one. A compelling thumbnail can dramatically increase your click-through rate (CTR), while a poorly optimized one can leave your video unseen. A critical part of this is ensuring your image is the correct size. This guide will teach you exactly how to **resize image for YouTube thumbnail** to meet all of YouTube's specifications and attract more viewers."},{type:"h2",text:"YouTube's Official Thumbnail Requirements"},{type:"p",text:`YouTube is very specific about its thumbnail requirements to ensure they look great on every device. Here are the key numbers you need to know:
- **Resolution:** 1280 x 720 pixels (width x height).
- **Aspect Ratio:** 16:9.
- **File Formats:** JPG, GIF, or PNG.
- **File Size:** Under the 2MB limit.`},{type:"p",text:"While you can upload larger images, YouTube will resize them, which can sometimes lead to a loss of quality. It's always best to upload an image that is already the correct size. The 1280x720 resolution is the gold standard, as it ensures your thumbnail is high-definition and looks crisp even when viewed on a large screen."},{type:"h2",text:"How to Easily Resize Image for YouTube Thumbnail"},{type:"p",text:"You don't need to be a graphic designer or own expensive software to create the perfect thumbnail. With a free online tool like [Resizeo.com](https://resizeo.com/), you can **resize image for YouTube thumbnail** in just a few clicks. Our tool is designed to make this process as simple as possible."},{type:"p",text:`Follow these simple steps:
1. **Navigate to Resizeo.com:** Open our free image resizer in your browser.
2. **Upload Your Image:** Drag and drop your desired thumbnail image or select it from your computer.
3. **Set the Dimensions:** Enter **1280** for the width and **720** for the height. Our tool will automatically maintain the 16:9 aspect ratio if you choose the 'fit' or 'fill' mode, preventing any distortion.
4. **Check the File Size:** Ensure the output file size is under 2MB. With these dimensions, it's rare to exceed this limit, but if you do, you can use Resizeo's compression features to reduce it.
5. **Download and Upload:** Download your perfectly sized 1280x720 image and upload it as the custom thumbnail for your YouTube video.`},{type:"h2",text:"Best Practices for Creating High-CTR Thumbnails"},{type:"p",text:`Sizing is just one part of the equation. A great thumbnail is also about design. Here are some pro tips:
- **Use Bold, Contrasting Colors:** Make your thumbnail pop and stand out in a sea of other videos.
- **Include Expressive Faces:** Humans are naturally drawn to faces. A close-up showing emotion can be very effective.
- **Add Bold, Readable Text:** Use a few words in a large, clear font to add context and grab attention. Don't just repeat the video title.
- **Keep it Simple and Uncluttered:** A thumbnail is viewed as a small image. Too much detail will be lost. Focus on one key subject.`},{type:"p",text:"By following these tips and ensuring you correctly **resize image for YouTube thumbnail**, you're setting your videos up for success. A well-crafted thumbnail is a powerful tool in your creator arsenal. Get started now and create your perfect, high-definition thumbnail with [Resizeo.com](https://resizeo.com/)!"}]},{slug:"resize-image-512x512",title:"How to Resize Image 512x512 Pixels for Avatars and Logos",description:"A detailed guide on how to resize image 512x512 pixels. Learn why this square dimension is perfect for profile pictures, avatars, and logos, and how to do it for free.",author:"Resizeo Team",date:"November 30, 2025",readTime:7,tags:["Image Resizing","Profile Pictures","Avatars"],imageUrl:"https://images.unsplash.com/photo-1634926878768-2a5b3c42f139?q=80&w=1956&auto=format&fit=crop",content:[{type:"p",text:"In the world of social media, forums, and online platforms, your profile picture is your identity. It’s often the first visual element people associate with you or your brand. A common and highly versatile dimension for these images is 512x512 pixels. This square format is a standard for many platforms, from Discord avatars to professional software logos. This guide will explain everything you need to know to **resize image 512x512** pixels perfectly, ensuring your avatar is always sharp, clear, and professional."},{type:"h2",text:"Why is 512x512 a Golden Standard?"},{type:"p",text:"A 512x512 pixel image hits the sweet spot between quality and file size. It has enough resolution to look crisp and detailed on high-resolution displays, but it’s not so large that it results in a massive file size. Its 1:1 square aspect ratio makes it easy to frame a face or a logo without worrying about awkward cropping. Many platforms, including Discord, require a 512x512 image for server logos, and it's a recommended size for avatars across many other services."},{type:"h2",text:"The Simple Way to Resize Image 512x512"},{type:"p",text:"Resizing an image to a perfect square can be challenging. If your original image isn't square, you'll need to crop it, which can be tricky. However, a good online tool simplifies this process immensely. With [Resizeo.com](https://resizeo.com/), you can both crop and resize in one go."},{type:"p",text:`Here's the process:
1. **Upload Your Photo:** Go to [Resizeo.com](https://resizeo.com/) and upload your image.
2. **Choose Your Crop:** Since the target is a square, you'll likely need to crop your image first. Our tool lets you select a 1:1 aspect ratio for your crop. Drag the box to perfectly frame the subject of your image, whether it's your face or your company logo.
3. **Set the Dimensions:** After cropping, enter **512** for the width and **512** for the height.
4. **Download:** Instantly download your new, perfectly square 512x512 image.`},{type:"h2",text:"Tips for a Great 512x512 Profile Picture"},{type:"p",text:`When you **resize image 512x512**, keep these tips in mind for the best results:
- **Start with a High-Quality Source:** Garbage in, garbage out. Always start with a high-resolution photo. You can always downsize an image, but you can't add detail that isn't there.
- **Focus on the Subject:** For a profile picture, your face should be clearly visible. For a logo, ensure it's centered and has enough 'breathing room' around the edges.
- **Consider the 'Circle Crop':** Many platforms will display your square avatar inside a circle. When framing your image, imagine a circle inside the square to ensure no important details will be cut off.`},{type:"p",text:"Creating a clean, high-quality avatar is a small detail that has a big impact on your online presence. By using a tool like [Resizeo.com](https://resizeo.com/), you can easily **resize image 512x512** and create a professional-looking avatar for all your online profiles in just a few seconds."}]},{slug:"crop-image-circle-online",title:"How to Crop Image Circle Online: A Quick and Easy Guide",description:"Learn how to crop image circle online with our free tool. Create perfect circular profile pictures for social media and other platforms in seconds.",author:"Resizeo Team",date:"November 30, 2025",readTime:6,tags:["Image Editing","Cropping","Profile Pictures"],imageUrl:"https://images.unsplash.com/photo-1694792581262-ccf0546cd721?q=80&w=1374&auto=format&fit=crop",content:[{type:"p",text:"Circular profile pictures are everywhere, from Twitter to Discord to your favorite forums. A circular crop gives your avatar a clean, modern look. But how do you **crop image circle online** without wrestling with complicated software? The good news is that you can do it in seconds with the right tool. This guide will show you how."},{type:"h2",text:"Why a Circle Crop?"},{type:"p",text:"A circle crop automatically focuses attention on the center of the image, which is perfect for a profile picture where your face should be the main subject. It feels modern and fits seamlessly into the UI of many popular websites and apps. Knowing how to **crop image circle online** is a fundamental skill for personalizing your digital presence."},{type:"h2",text:"How to Crop Image Circle Online for Free"},{type:"p",text:`Using a dedicated online tool is the fastest way to get a perfect circular crop. At [Resizeo.com](https://resizeo.com/), we have a feature specifically for this.
1. **Upload Your Image:** Visit [Resizeo.com](https://resizeo.com/) and upload your picture.
2. **Select the Circle Crop Tool:** In our editor, you'll find an option to apply a circular mask or crop.
3. **Adjust the Selection:** Move and scale the circle to perfectly frame your face or the subject of the image.
4. **Download:** Save your new circular image. Our tool will often save it as a PNG with a transparent background, so it looks great on any color background.`},{type:"p",text:"And that's it! You've successfully created a professional-looking circular avatar, ready for any platform."}]},{slug:"resize-image-3000x3000",title:"Resize Image 3000x3000: High-Resolution for Print and Digital",description:"A guide on when and how to resize image 3000x3000 pixels. Learn about high-resolution images for large-format printing and digital art.",author:"Resizeo Team",date:"November 30, 2025",readTime:8,tags:["High-Resolution","Printing","Image Resizing"],imageUrl:"https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=2070&auto=format&fit=crop",content:[{type:"p",text:"When we talk about resizing images, we often focus on making them smaller for the web. But what about when you need to go big? A high-resolution 3000x3000 pixel image is perfect for a variety of applications, from high-quality prints to detailed digital art. This guide will cover why you might need to **resize image 3000x3000** and how to do it effectively."},{type:"h2",text:"When Do You Need a 3000x3000 Image?"},{type:"p",text:`A 3000x3000 image has 9 megapixels, which is a significant amount of detail. This resolution is ideal for:
- **High-Quality Printing:** If you want to create a 10x10 inch print at 300 DPI (the standard for high-quality printing), you need an image that is exactly 3000x3000 pixels.
- **Digital Art:** For artists creating work that will be viewed on high-resolution displays or may be printed later, working with a large canvas like 3000x3000 is crucial.
- **Cropping Flexibility:** Starting with a large image gives you the flexibility to crop in on a smaller portion of the photo without losing quality.`},{type:"h2",text:"How to Resize Image 3000x3000"},{type:"p",text:`Upscaling a small image to 3000x3000 is generally not recommended as it will result in a blurry, pixelated image. This process is best for downsizing a very high-resolution photo from a DSLR camera, or for setting up a canvas for digital art. You can easily **resize image 3000x3000** using [Resizeo.com](https://resizeo.com/).
1. **Upload your image or start fresh.**
2. **Enter 3000 for width and 3000 for height.**
3. **Download your high-resolution file.**`},{type:"p",text:"Whether for print or for digital, [Resizeo.com](https://resizeo.com/) is your free tool for all your resizing needs."}]},{slug:"resize-image-to-2mb",title:"How to Resize Image to 2MB: A Step-by-Step Guide",description:"Learn how to resize image to 2MB. This common file size limit for online applications and forms is easy to achieve without losing quality with the right method.",author:"Resizeo Team",date:"November 30, 2025",readTime:9,tags:["File Size","Image Compression","Online Forms"],imageUrl:"https://images.unsplash.com/photo-1617854818583-09e7f077a156?q=80&w=2070&auto=format&fit=crop",content:[{type:"p",text:"The 2MB file size limit is a common hurdle for anyone uploading photos or documents to online portals. It's the standard for many job applications, university admissions, and government forms. But how do you **resize image to 2MB** while keeping the image clear and readable? This guide will show you the best approach."},{type:"h2",text:"Balancing Dimensions and Compression"},{type:"p",text:"To get an image under 2MB, you have two levers to pull: dimensions (the width and height in pixels) and compression (the quality level of the image). A 2MB file size is quite generous, so you can often preserve a high resolution. For example, a 1920x1080 pixel image (Full HD) will almost always be under 2MB when saved as a JPEG."},{type:"h2",text:"Using a Target-Size Resizer"},{type:"p",text:`The easiest way to **resize image to 2MB** is to use an online tool that allows you to set a target file size. At [Resizeo.com](https://resizeo.com/), you can do just that.
1. **Upload your image.**
2. **Go to the 'Target Size' option.**
3. **Enter '2' and select 'MB'.**
4. **Let the tool work its magic.** Our smart algorithm will find the best balance of compression and quality to get your file to the desired size.
5. **Download your 2MB image.`},{type:"p",text:"It's a foolproof way to meet any file size requirement without guesswork. For all your resizing needs, from kilobytes to megabytes, give [Resizeo.com](https://resizeo.com/) a try."}]},{slug:"resize-image-500kb",title:"Resize Image to 500KB: The Ultimate Guide for Speed and Quality",description:"Need to resize image to 500KB? This guide provides the best methods to reduce your image file size for faster web loading and email attachments.",author:"Resizeo Team",date:"November 30, 2025",readTime:8,tags:["Image Compression","File Size","Web Performance"],imageUrl:"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=2070&auto=format&fit=crop",content:[{type:"p",text:"When you need an image that's small enough for an email attachment or for a fast-loading blog post, 500KB is a fantastic target. It’s a happy medium—offering good quality while still being lightweight. This guide will teach you how to **resize image to 500KB** effectively."},{type:"h2",text:"The 500KB Sweet Spot"},{type:"p",text:"An image around 500KB is perfect for websites. It will load quickly on most connections, which is great for user experience and SEO. It's also a reasonable size for emailing, as it won't clog up the recipient's inbox."},{type:"h2",text:"How to Reliably Resize Image to 500KB"},{type:"p",text:`The most reliable method is to use a tool with a target size feature. Instead of guessing with a quality slider, you can specify your exact need. Here’s how to do it on [Resizeo.com](https://resizeo.com/):
1. **Upload your image.**
2. **Find the 'Target File Size' input.**
3. **Type in '500' and choose 'KB'.**
4. **Preview and download.** Our tool automatically adjusts compression to hit your target.`},{type:"p",text:"Stop the frustrating cycle of saving, checking the file size, and repeating. Use a smart tool like [Resizeo.com](https://resizeo.com/) to **resize image to 500KB** on the first try."}]},{slug:"resize-image-to-1920x1080",title:"How to Resize Image to 1920x1080 (Full HD)",description:"Learn how to resize image to 1920x1080 pixels. This Full HD resolution is the standard for desktop wallpapers, presentations, and website heroes.",author:"Resizeo Team",date:"November 30, 2025",readTime:7,tags:["Image Resizing","Full HD","Wallpapers"],imageUrl:"https://freesvg.org/img/1533745935.png",content:[{type:"p",text:"The 1920x1080 pixel dimension, also known as Full HD or 1080p, is one of the most common screen resolutions in the world. If you need to create a desktop wallpaper, a presentation slide, or a hero image for a website, you'll often need to **resize image to 1920x1080**. This guide makes it easy."},{type:"h2",text:"Maintaining the 16:9 Aspect Ratio"},{type:"p",text:"1920x1080 is a 16:9 aspect ratio. If your original photo has a different ratio (like 4:3), you'll need to crop it to fit. Trying to force a 4:3 image into a 16:9 frame without cropping will result in stretching and distortion."},{type:"h2",text:"The Easiest Way to Resize to 1920x1080"},{type:"p",text:`Using an online resizer with presets is the simplest solution. At [Resizeo.com](https://resizeo.com/), we have presets for all common dimensions.
1. **Upload your photo.**
2. **Select the 'Crop' tool and choose the 16:9 aspect ratio.** Frame your image perfectly.
3. **Go to the resize tool and enter 1920 for width and 1080 for height.**
4. **Download your new Full HD image.`},{type:"p",text:"Creating a stunning, high-definition image is simple when you have the right tool. To **resize image to 1920x1080** in seconds, visit [Resizeo.com](https://resizeo.com/)."}]},{slug:"resize-image-1mb",title:"How to Resize Image to 1MB or Less",description:"Learn how to resize image to 1MB. A common requirement for high-quality web images and attachments. Our guide shows you the fastest way.",author:"Resizeo Team",date:"November 30, 2025",readTime:8,tags:["File Size","Image Compression","Web Optimization"],imageUrl:"https://freesvg.org/img/ftresizerow.png",content:[{type:"p",text:"A 1MB (megabyte) file size is a versatile target for images that need to retain high quality while still being reasonably sized for the web. If you want to **resize image to 1MB**, you're looking for that perfect balance. This guide will show you how."},{type:"h2",text:"When is 1MB a Good Target?"},{type:"p",text:"A 1MB image is great for portfolio sites, hero images on a homepage, or high-quality blog post images where detail is important. It's small enough to load reasonably fast but large enough to look stunning on a high-resolution display."},{type:"h2",text:"Targeting 1MB with Precision"},{type:"p",text:`Guessing compression levels to hit 1MB is a frustrating game. The best way to **resize image to 1MB** is to tell your tool exactly what you want. [Resizeo.com](https://resizeo.com/) offers this feature for free.
1. **Upload your high-resolution image.**
2. **Select the 'Target Size' option.**
3. **Enter '1' and select 'MB' from the dropdown.**
4. **Download the result.** The tool automatically finds the best settings for you.`},{type:"p",text:"For fast, precise, and free file size targeting, [Resizeo.com](https://resizeo.com/) is the perfect tool for the job."}]},{slug:"resize-image-to-200kb",title:"How to Resize Image to 200KB Without Losing Quality",description:"Learn how to resize image to 200KB. A perfect size for fast-loading websites and email attachments. Follow our simple steps for a great result.",author:"Resizeo Team",date:"November 30, 2025",readTime:9,tags:["Image Compression","File Size","Web Performance"],imageUrl:"https://images.unsplash.com/photo-1504297050568-910d24c426d3?q=80&w=1974&auto=format&fit=crop",content:[{type:"p",text:"Need to get an image under 200KB? You're in the right place. This file size is an excellent target for websites, ensuring your pages load quickly and rank well on Google. This guide will show you how to **resize image to 200KB** while keeping it looking great."},{type:"h2",text:"The Art of Compressing to 200KB"},{type:"p",text:"Getting an image this small requires a smart approach. You can't just take a huge photo and compress it aggressively—it will look terrible. The best method is to first reduce the image's dimensions to something reasonable (e.g., 1200 pixels wide) and then apply compression."},{type:"h2",text:"The One-Step Solution to Resize Image to 200KB"},{type:"p",text:`The fastest way to achieve this is with a tool that can target a specific file size. With [Resizeo.com](https://resizeo.com/), you can do this in seconds:
1. **Upload your picture.**
2. **Go to the 'Target File Size' option.**
3. **Enter '200' and make sure 'KB' is selected.**
4. **Download your optimized image.`},{type:"p",text:"Our tool does the hard work for you, finding the optimal settings to maintain quality while hitting your file size goal. To **resize image to 200KB** effortlessly, check out [Resizeo.com](https://resizeo.com/)."}]},{slug:"resize-image-for-linkedin",title:"Resize Image for LinkedIn: The Ultimate Guide for a Professional Profile",description:"Learn how to resize image for LinkedIn profile pictures, background banners, and post images. Get all the 2025 dimensions and create a standout profile.",author:"Resizeo Team",date:"November 30, 2025",readTime:11,tags:["LinkedIn","Social Media","Professional Branding"],imageUrl:"https://www.picpedia.org/chalkboard/images/linkedin.jpg",content:[{type:"p",text:"LinkedIn is the world's premier professional network, and your profile is your digital resume. A polished, professional appearance is non-negotiable. This starts with your images—your profile picture and background banner. Using incorrectly sized images can make your profile look sloppy and unprofessional. This guide will cover everything you need to know to **resize image for LinkedIn** and make the best possible impression."},{type:"h2",text:"Key LinkedIn Image Dimensions for 2025"},{type:"p",text:`- **Profile Picture:** 400 x 400 pixels (recommended). It will be displayed as a circle, so keep that in mind when positioning your headshot.
- **Background Banner (Cover Photo):** 1584 x 396 pixels. This is a wide and short space, so panoramic shots work well.
- **Post Image (Shared Link):** 1200 x 627 pixels. This is the ideal size for images that appear in the feed when you share a link.`},{type:"h2",text:"How to Resize Image for LinkedIn with Ease"},{type:"p",text:`You can easily meet all these different dimension requirements using the presets on [Resizeo.com](https://resizeo.com/). Our free tool has built-in presets for all major social media platforms, including LinkedIn.
1. **Go to [Resizeo.com](https://resizeo.com/):** Select the image you want to resize.
2. **Choose a Preset:** Find the 'LinkedIn' category in our presets menu and select whether you're creating a Profile Picture, Banner, or Post Image.
3. **Adjust and Download:** The dimensions will be set automatically. You can adjust the crop to your liking and then download the perfectly sized image.`},{type:"p",text:"Investing a few moments to **resize image for LinkedIn** correctly is a simple step that significantly enhances your professional brand. Don't let a poorly cropped photo be the first impression you make."}]},{slug:"resize-image-by-inches",title:"How to Resize Image by Inches for Printing",description:"Learn how to resize image by inches for high-quality printing. Understand DPI and how it affects print size with our simple guide and free online tool.",author:"Resizeo Team",date:"November 30, 2025",readTime:9,tags:["Printing","Image Resizing","DPI"],imageUrl:"https://cdn.mos.cms.futurecdn.net/QiSscPoX8667xwtVpy2tVJ.jpg",content:[{type:"p",text:"When you move from the digital screen to the physical world of print, pixels are no longer the only thing that matters. If you need to print a photograph, flyer, or poster, you'll need to think in physical units like inches. But how do you **resize image by inches** and ensure the final print is sharp and not pixelated? The key is understanding the relationship between inches, pixels, and DPI (Dots Per Inch)."},{type:"h2",text:"What is DPI and Why Does it Matter for Printing?"},{type:"p",text:`DPI, or Dots Per Inch, is a measure of print resolution. It describes how many dots of ink a printer will place in a one-inch line. For high-quality prints that look sharp up close, the standard is **300 DPI**. For larger prints that are viewed from a distance, like a poster, you might get away with 150 DPI.
To find out the print size of your digital image, you simply divide the pixel dimensions by the DPI. For example, a 3000-pixel wide image printed at 300 DPI will be 10 inches wide (3000 / 300 = 10).`},{type:"h2",text:"How to Resize Image by Inches Correctly"},{type:"p",text:`Using an online tool that understands print units makes this process simple. When you need to **resize image by inches**, head to [Resizeo.com](https://resizeo.com/).
1. **Upload your high-resolution image.**
2. **Switch units to 'inches'.**
3. **Enter your desired print dimensions**, for example, 10 inches for the width and 8 for the height.
4. **Set the DPI.** This is crucial. For a high-quality photo print, enter **300** in the DPI field. Our tool will automatically calculate the required pixel dimensions (e.g., 10 inches * 300 DPI = 3000 pixels).
5. **Download the print-ready file.`},{type:"p",text:"By using a tool that handles the pixel-to-inch conversion for you, you can be confident that the file you send to the printer will produce a beautiful, high-resolution print every time. Stop guessing and start resizing for print with precision at [Resizeo.com](https://resizeo.com/)."}]}],m2=Array.from(new Set(rf.flatMap(n=>n.tags))),g2=n=>k.jsxs(Ft,{to:`/blog/${n.slug}`,className:"block bg-white rounded-lg shadow-md overflow-hidden hover:shadow-xl transition-shadow duration-300",children:[k.jsx("img",{src:n.imageUrl,alt:n.title,className:"w-full h-48 object-cover"}),k.jsxs("div",{className:"p-6",children:[k.jsx("div",{className:"flex items-center gap-2 mb-3",children:n.tags.slice(0,2).map(r=>k.jsx("span",{className:"bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full",children:r},r))}),k.jsx("h3",{className:"text-xl font-bold mb-2 text-gray-900",children:n.title}),k.jsx("p",{className:"text-gray-600 text-sm mb-4",children:n.description}),k.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[k.jsxs("span",{children:[n.author," • ",n.date]}),k.jsxs("span",{children:[n.readTime," min read"]})]})]})]}),y2=()=>{const[n,r]=W.useState("All Topics"),[a,o]=W.useState(""),u=W.useMemo(()=>rf.filter(s=>{const f=n==="All Topics"||s.tags.includes(n),d=s.title.toLowerCase().includes(a.toLowerCase())||s.description.toLowerCase().includes(a.toLowerCase());return f&&d}),[n,a]);return k.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg",children:[k.jsxs("header",{className:"text-center my-8 sm:my-12",children:[k.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900",children:"Resizeo Blog"}),k.jsx("p",{className:"mt-4 text-lg text-gray-600 max-w-3xl mx-auto",children:"Expert tips, guides, and insights on image optimization, web performance, and digital design best practices."})]}),k.jsx("div",{className:"mb-8",children:k.jsxs("div",{className:"relative max-w-lg mx-auto",children:[k.jsx("span",{className:"absolute inset-y-0 left-0 pl-3 flex items-center",children:k.jsx("svg",{className:"h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:k.jsx("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),k.jsx("input",{type:"search",placeholder:"Search articles...",value:a,onChange:s=>o(s.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-full"})]})}),k.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mb-8",children:[k.jsx("button",{onClick:()=>r("All Topics"),className:`px-4 py-1.5 text-sm font-medium rounded-full transition-colors ${n==="All Topics"?"bg-green-500 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:"All Topics"}),m2.map(s=>k.jsx("button",{onClick:()=>r(s),className:`px-4 py-1.5 text-sm font-medium rounded-full transition-colors ${n===s?"bg-green-500 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:s},s))]}),k.jsxs("p",{className:"text-center text-sm text-gray-500 mb-8",children:["Showing all ",u.length," articles"]}),k.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:u.map(s=>k.jsx(g2,{...s},s.slug))})]})};function v2(n,r){const a={};return(n[n.length-1]===""?[...n,""]:n).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const x2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,b2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,w2={};function eg(n,r){return(w2.jsx?b2:x2).test(n)}const S2=/[ \t\n\f\r]/g;function k2(n){return typeof n=="object"?n.type==="text"?tg(n.value):!1:tg(n)}function tg(n){return n.replace(S2,"")===""}class ol{constructor(r,a,o){this.normal=a,this.property=r,o&&(this.space=o)}}ol.prototype.normal={};ol.prototype.property={};ol.prototype.space=void 0;function f0(n,r){const a={},o={};for(const u of n)Object.assign(a,u.property),Object.assign(o,u.normal);return new ol(a,o,r)}function qc(n){return n.toLowerCase()}class Jt{constructor(r,a){this.attribute=a,this.property=r}}Jt.prototype.attribute="";Jt.prototype.booleanish=!1;Jt.prototype.boolean=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.defined=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.number=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.property="";Jt.prototype.spaceSeparated=!1;Jt.prototype.space=void 0;let _2=0;const qe=ea(),Et=ea(),Ic=ea(),ke=ea(),st=ea(),Ga=ea(),on=ea();function ea(){return 2**++_2}const Fc=Object.freeze(Object.defineProperty({__proto__:null,boolean:qe,booleanish:Et,commaOrSpaceSeparated:on,commaSeparated:Ga,number:ke,overloadedBoolean:Ic,spaceSeparated:st},Symbol.toStringTag,{value:"Module"})),vc=Object.keys(Fc);class lf extends Jt{constructor(r,a,o,u){let s=-1;if(super(r,a),ng(this,"space",u),typeof o=="number")for(;++s<vc.length;){const f=vc[s];ng(this,vc[s],(o&Fc[f])===Fc[f])}}}lf.prototype.defined=!0;function ng(n,r,a){a&&(n[r]=a)}function Wa(n){const r={},a={};for(const[o,u]of Object.entries(n.properties)){const s=new lf(o,n.transform(n.attributes||{},o),u,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),r[o]=s,a[qc(o)]=o,a[qc(s.attribute)]=o}return new ol(r,a,n.space)}const d0=Wa({properties:{ariaActiveDescendant:null,ariaAtomic:Et,ariaAutoComplete:null,ariaBusy:Et,ariaChecked:Et,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:Et,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:Et,ariaFlowTo:st,ariaGrabbed:Et,ariaHasPopup:null,ariaHidden:Et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:ke,ariaLive:null,ariaModal:Et,ariaMultiLine:Et,ariaMultiSelectable:Et,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Et,ariaReadOnly:Et,ariaRelevant:null,ariaRequired:Et,ariaRoleDescription:st,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Et,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function h0(n,r){return r in n?n[r]:r}function p0(n,r){return h0(n,r.toLowerCase())}const z2=Wa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ga,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:qe,allowPaymentRequest:qe,allowUserMedia:qe,alt:null,as:null,async:qe,autoCapitalize:null,autoComplete:st,autoFocus:qe,autoPlay:qe,blocking:st,capture:null,charSet:null,checked:qe,cite:null,className:st,cols:ke,colSpan:null,content:null,contentEditable:Et,controls:qe,controlsList:st,coords:ke|Ga,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qe,defer:qe,dir:null,dirName:null,disabled:qe,download:Ic,draggable:Et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:qe,formTarget:null,headers:st,height:ke,hidden:Ic,high:ke,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:qe,inputMode:null,integrity:null,is:null,isMap:qe,itemId:null,itemProp:st,itemRef:st,itemScope:qe,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qe,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:qe,muted:qe,name:null,nonce:null,noModule:qe,noValidate:qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:qe,optimum:ke,pattern:null,ping:st,placeholder:null,playsInline:qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:qe,referrerPolicy:null,rel:st,required:qe,reversed:qe,rows:ke,rowSpan:ke,sandbox:st,scope:null,scoped:qe,seamless:qe,selected:qe,shadowRootClonable:qe,shadowRootDelegatesFocus:qe,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:Et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:qe,useMap:null,value:Et,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:qe,declare:qe,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:qe,noHref:qe,noShade:qe,noWrap:qe,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:Et,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:qe,disableRemotePlayback:qe,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:p0}),E2=Wa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:on,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:st,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ga,g2:Ga,glyphName:Ga,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:on,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:on,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:on,rev:on,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:on,requiredFeatures:on,requiredFonts:on,requiredFormats:on,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:on,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:on,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:on,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:h0}),m0=Wa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,r){return"xlink:"+r.slice(5).toLowerCase()}}),g0=Wa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:p0}),y0=Wa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,r){return"xml:"+r.slice(3).toLowerCase()}}),C2={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},T2=/[A-Z]/g,ig=/-[a-z]/g,A2=/^data[-\w.:]+$/i;function j2(n,r){const a=qc(r);let o=r,u=Jt;if(a in n.normal)return n.property[n.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&A2.test(r)){if(r.charAt(4)==="-"){const s=r.slice(5).replace(ig,D2);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=r.slice(4);if(!ig.test(s)){let f=s.replace(T2,R2);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}u=lf}return new u(o,r)}function R2(n){return"-"+n.toLowerCase()}function D2(n){return n.charAt(1).toUpperCase()}const N2=f0([d0,z2,m0,g0,y0],"html"),of=f0([d0,E2,m0,g0,y0],"svg");function O2(n){return n.join(" ").trim()}var Pa={},xc,ag;function M2(){if(ag)return xc;ag=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
`,p="/",g="*",v="",x="comment",y="declaration";function E(C,S){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];S=S||{};var T=1,D=1;function I(z){var F=z.match(r);F&&(T+=F.length);var G=z.lastIndexOf(m);D=~G?z.length-G:D+z.length}function q(){var z={line:T,column:D};return function(F){return F.position=new U(z),K(),F}}function U(z){this.start=z,this.end={line:T,column:D},this.source=S.source}U.prototype.content=C;function P(z){var F=new Error(S.source+":"+T+":"+D+": "+z);if(F.reason=z,F.filename=S.source,F.line=T,F.column=D,F.source=C,!S.silent)throw F}function ae(z){var F=z.exec(C);if(F){var G=F[0];return I(G),C=C.slice(G.length),F}}function K(){ae(a)}function ce(z){var F;for(z=z||[];F=me();)F!==!1&&z.push(F);return z}function me(){var z=q();if(!(p!=C.charAt(0)||g!=C.charAt(1))){for(var F=2;v!=C.charAt(F)&&(g!=C.charAt(F)||p!=C.charAt(F+1));)++F;if(F+=2,v===C.charAt(F-1))return P("End of comment missing");var G=C.slice(2,F-2);return D+=2,I(G),C=C.slice(F),D+=2,z({type:x,comment:G})}}function O(){var z=q(),F=ae(o);if(F){if(me(),!ae(u))return P("property missing ':'");var G=ae(s),X=z({type:y,property:w(F[0].replace(n,v)),value:G?w(G[0].replace(n,v)):v});return ae(f),X}}function ee(){var z=[];ce(z);for(var F;F=O();)F!==!1&&(z.push(F),ce(z));return z}return K(),ee()}function w(C){return C?C.replace(d,v):v}return xc=E,xc}var rg;function B2(){if(rg)return Pa;rg=1;var n=Pa&&Pa.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.default=a;const r=n(M2());function a(o,u){let s=null;if(!o||typeof o!="string")return s;const f=(0,r.default)(o),d=typeof u=="function";return f.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:g}=m;d?u(p,g,m):g&&(s=s||{},s[p]=g)}),s}return Pa}var Zr={},lg;function L2(){if(lg)return Zr;lg=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,s=function(p){return!p||a.test(p)||n.test(p)},f=function(p,g){return g.toUpperCase()},d=function(p,g){return"".concat(g,"-")},m=function(p,g){return g===void 0&&(g={}),s(p)?p:(p=p.toLowerCase(),g.reactCompat?p=p.replace(u,d):p=p.replace(o,d),p.replace(r,f))};return Zr.camelCase=m,Zr}var Kr,og;function U2(){if(og)return Kr;og=1;var n=Kr&&Kr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},r=n(B2()),a=L2();function o(u,s){var f={};return!u||typeof u!="string"||(0,r.default)(u,function(d,m){d&&m&&(f[(0,a.camelCase)(d,s)]=m)}),f}return o.default=o,Kr=o,Kr}var H2=U2();const q2=Za(H2),v0=x0("end"),sf=x0("start");function x0(n){return r;function r(a){const o=a&&a.position&&a.position[n]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function I2(n){const r=sf(n),a=v0(n);if(r&&a)return{start:r,end:a}}function Jr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?sg(n.position):"start"in n||"end"in n?sg(n):"line"in n||"column"in n?Pc(n):""}function Pc(n){return ug(n&&n.line)+":"+ug(n&&n.column)}function sg(n){return Pc(n&&n.start)+"-"+Pc(n&&n.end)}function ug(n){return n&&typeof n=="number"?n:1}class Ht extends Error{constructor(r,a,o){super(),typeof a=="string"&&(o=a,a=void 0);let u="",s={},f=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof r=="string"?u=r:!s.cause&&r&&(f=!0,u=r.message,s.cause=r),!s.ruleId&&!s.source&&typeof o=="string"){const m=o.indexOf(":");m===-1?s.ruleId=o:(s.source=o.slice(0,m),s.ruleId=o.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=d?d.line:void 0,this.name=Jr(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=f&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ht.prototype.file="";Ht.prototype.name="";Ht.prototype.reason="";Ht.prototype.message="";Ht.prototype.stack="";Ht.prototype.column=void 0;Ht.prototype.line=void 0;Ht.prototype.ancestors=void 0;Ht.prototype.cause=void 0;Ht.prototype.fatal=void 0;Ht.prototype.place=void 0;Ht.prototype.ruleId=void 0;Ht.prototype.source=void 0;const uf={}.hasOwnProperty,F2=new Map,P2=/[A-Z]/g,Y2=new Set(["table","tbody","thead","tfoot","tr"]),G2=new Set(["td","th"]),b0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function V2(n,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=ew(a,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=$2(a,r.jsx,r.jsxs)}const u={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?of:N2,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},s=w0(u,n,void 0);return s&&typeof s!="string"?s:u.create(n,u.Fragment,{children:s||void 0},void 0)}function w0(n,r,a){if(r.type==="element")return X2(n,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Z2(n,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Q2(n,r,a);if(r.type==="mdxjsEsm")return K2(n,r);if(r.type==="root")return W2(n,r,a);if(r.type==="text")return J2(n,r)}function X2(n,r,a){const o=n.schema;let u=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(u=of,n.schema=u),n.ancestors.push(r);const s=k0(n,r.tagName,!1),f=tw(n,r);let d=ff(n,r);return Y2.has(r.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!k2(m):!0})),S0(n,f,s,r),cf(f,d),n.ancestors.pop(),n.schema=o,n.create(r,s,f,a)}function Z2(n,r){if(r.data&&r.data.estree&&n.evaluater){const o=r.data.estree.body[0];return o.type,n.evaluater.evaluateExpression(o.expression)}il(n,r.position)}function K2(n,r){if(r.data&&r.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(r.data.estree);il(n,r.position)}function Q2(n,r,a){const o=n.schema;let u=o;r.name==="svg"&&o.space==="html"&&(u=of,n.schema=u),n.ancestors.push(r);const s=r.name===null?n.Fragment:k0(n,r.name,!0),f=nw(n,r),d=ff(n,r);return S0(n,f,s,r),cf(f,d),n.ancestors.pop(),n.schema=o,n.create(r,s,f,a)}function W2(n,r,a){const o={};return cf(o,ff(n,r)),n.create(r,n.Fragment,o,a)}function J2(n,r){return r.value}function S0(n,r,a,o){typeof a!="string"&&a!==n.Fragment&&n.passNode&&(r.node=o)}function cf(n,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(n.children=a)}}function $2(n,r,a){return o;function o(u,s,f,d){const p=Array.isArray(f.children)?a:r;return d?p(s,f,d):p(s,f)}}function ew(n,r){return a;function a(o,u,s,f){const d=Array.isArray(s.children),m=sf(o);return r(u,s,f,d,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function tw(n,r){const a={};let o,u;for(u in r.properties)if(u!=="children"&&uf.call(r.properties,u)){const s=iw(n,u,r.properties[u]);if(s){const[f,d]=s;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&G2.has(r.tagName)?o=d:a[f]=d}}if(o){const s=a.style||(a.style={});s[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return a}function nw(n,r){const a={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&n.evaluater){const s=o.data.estree.body[0];s.type;const f=s.expression;f.type;const d=f.properties[0];d.type,Object.assign(a,n.evaluater.evaluateExpression(d.argument))}else il(n,r.position);else{const u=o.name;let s;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&n.evaluater){const d=o.value.data.estree.body[0];d.type,s=n.evaluater.evaluateExpression(d.expression)}else il(n,r.position);else s=o.value===null?!0:o.value;a[u]=s}return a}function ff(n,r){const a=[];let o=-1;const u=n.passKeys?new Map:F2;for(;++o<r.children.length;){const s=r.children[o];let f;if(n.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const p=u.get(m)||0;f=m+"-"+p,u.set(m,p+1)}}const d=w0(n,s,f);d!==void 0&&a.push(d)}return a}function iw(n,r,a){const o=j2(n.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=o.commaSeparated?v2(a):O2(a)),o.property==="style"){let u=typeof a=="object"?a:aw(n,String(a));return n.stylePropertyNameCase==="css"&&(u=rw(u)),["style",u]}return[n.elementAttributeNameCase==="react"&&o.space?C2[o.property]||o.property:o.attribute,a]}}function aw(n,r){try{return q2(r,{reactCompat:!0})}catch(a){if(n.ignoreInvalidStyle)return{};const o=a,u=new Ht("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=n.filePath||void 0,u.url=b0+"#cannot-parse-style-attribute",u}}function k0(n,r,a){let o;if(!a)o={type:"Literal",value:r};else if(r.includes(".")){const u=r.split(".");let s=-1,f;for(;++s<u.length;){const d=eg(u[s])?{type:"Identifier",name:u[s]}:{type:"Literal",value:u[s]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}o=f}else o=eg(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const u=o.value;return uf.call(n.components,u)?n.components[u]:u}if(n.evaluater)return n.evaluater.evaluateExpression(o);il(n)}function il(n,r){const a=new Ht("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=n.filePath||void 0,a.url=b0+"#cannot-handle-mdx-estrees-without-createevaluater",a}function rw(n){const r={};let a;for(a in n)uf.call(n,a)&&(r[lw(a)]=n[a]);return r}function lw(n){let r=n.replace(P2,ow);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function ow(n){return"-"+n.toLowerCase()}const bc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},sw={};function uw(n,r){const a=sw,o=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,u=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return _0(n,o,u)}function _0(n,r,a){if(cw(n)){if("value"in n)return n.type==="html"&&!a?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return cg(n.children,r,a)}return Array.isArray(n)?cg(n,r,a):""}function cg(n,r,a){const o=[];let u=-1;for(;++u<n.length;)o[u]=_0(n[u],r,a);return o.join("")}function cw(n){return!!(n&&typeof n=="object")}const fg=document.createElement("i");function df(n){const r="&"+n+";";fg.innerHTML=r;const a=fg.textContent;return a.charCodeAt(a.length-1)===59&&n!=="semi"||a===r?!1:a}function On(n,r,a,o){const u=n.length;let s=0,f;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,a=a>0?a:0,o.length<1e4)f=Array.from(o),f.unshift(r,a),n.splice(...f);else for(a&&n.splice(r,a);s<o.length;)f=o.slice(s,s+1e4),f.unshift(r,0),n.splice(...f),s+=1e4,r+=1e4}function bn(n,r){return n.length>0?(On(n,n.length,0,r),n):r}const dg={}.hasOwnProperty;function fw(n){const r={};let a=-1;for(;++a<n.length;)dw(r,n[a]);return r}function dw(n,r){let a;for(a in r){const u=(dg.call(n,a)?n[a]:void 0)||(n[a]={}),s=r[a];let f;if(s)for(f in s){dg.call(u,f)||(u[f]=[]);const d=s[f];hw(u[f],Array.isArray(d)?d:d?[d]:[])}}}function hw(n,r){let a=-1;const o=[];for(;++a<r.length;)(r[a].add==="after"?n:o).push(r[a]);On(n,0,0,o)}function z0(n,r){const a=Number.parseInt(n,r);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Va(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Nn=Di(/[A-Za-z]/),sn=Di(/[\dA-Za-z]/),pw=Di(/[#-'*+\--9=?A-Z^-~]/);function Yc(n){return n!==null&&(n<32||n===127)}const Gc=Di(/\d/),mw=Di(/[\dA-Fa-f]/),gw=Di(/[!-/:-@[-`{-~]/);function Ne(n){return n!==null&&n<-2}function Wt(n){return n!==null&&(n<0||n===32)}function We(n){return n===-2||n===-1||n===32}const yw=Di(new RegExp("\\p{P}|\\p{S}","u")),vw=Di(/\s/);function Di(n){return r;function r(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function Ja(n){const r=[];let a=-1,o=0,u=0;for(;++a<n.length;){const s=n.charCodeAt(a);let f="";if(s===37&&sn(n.charCodeAt(a+1))&&sn(n.charCodeAt(a+2)))u=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(f=String.fromCharCode(s));else if(s>55295&&s<57344){const d=n.charCodeAt(a+1);s<56320&&d>56319&&d<57344?(f=String.fromCharCode(s,d),u=1):f="�"}else f=String.fromCharCode(s);f&&(r.push(n.slice(o,a),encodeURIComponent(f)),o=a+u+1,f=""),u&&(a+=u,u=0)}return r.join("")+n.slice(o)}function ut(n,r,a,o){const u=o?o-1:Number.POSITIVE_INFINITY;let s=0;return f;function f(m){return We(m)?(n.enter(a),d(m)):r(m)}function d(m){return We(m)&&s++<u?(n.consume(m),d):(n.exit(a),r(m))}}const xw={tokenize:bw};function bw(n){const r=n.attempt(this.parser.constructs.contentInitial,o,u);let a;return r;function o(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),ut(n,r,"linePrefix")}function u(d){return n.enter("paragraph"),s(d)}function s(d){const m=n.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=m),a=m,f(d)}function f(d){if(d===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(d);return}return Ne(d)?(n.consume(d),n.exit("chunkText"),s):(n.consume(d),f)}}const ww={tokenize:Sw},hg={tokenize:kw};function Sw(n){const r=this,a=[];let o=0,u,s,f;return d;function d(D){if(o<a.length){const I=a[o];return r.containerState=I[1],n.attempt(I[0].continuation,m,p)(D)}return p(D)}function m(D){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&T();const I=r.events.length;let q=I,U;for(;q--;)if(r.events[q][0]==="exit"&&r.events[q][1].type==="chunkFlow"){U=r.events[q][1].end;break}S(o);let P=I;for(;P<r.events.length;)r.events[P][1].end={...U},P++;return On(r.events,q+1,0,r.events.slice(I)),r.events.length=P,p(D)}return d(D)}function p(D){if(o===a.length){if(!u)return x(D);if(u.currentConstruct&&u.currentConstruct.concrete)return E(D);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(hg,g,v)(D)}function g(D){return u&&T(),S(o),x(D)}function v(D){return r.parser.lazy[r.now().line]=o!==a.length,f=r.now().offset,E(D)}function x(D){return r.containerState={},n.attempt(hg,y,E)(D)}function y(D){return o++,a.push([r.currentConstruct,r.containerState]),x(D)}function E(D){if(D===null){u&&T(),S(0),n.consume(D);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:s}),w(D)}function w(D){if(D===null){C(n.exit("chunkFlow"),!0),S(0),n.consume(D);return}return Ne(D)?(n.consume(D),C(n.exit("chunkFlow")),o=0,r.interrupt=void 0,d):(n.consume(D),w)}function C(D,I){const q=r.sliceStream(D);if(I&&q.push(null),D.previous=s,s&&(s.next=D),s=D,u.defineSkip(D.start),u.write(q),r.parser.lazy[D.start.line]){let U=u.events.length;for(;U--;)if(u.events[U][1].start.offset<f&&(!u.events[U][1].end||u.events[U][1].end.offset>f))return;const P=r.events.length;let ae=P,K,ce;for(;ae--;)if(r.events[ae][0]==="exit"&&r.events[ae][1].type==="chunkFlow"){if(K){ce=r.events[ae][1].end;break}K=!0}for(S(o),U=P;U<r.events.length;)r.events[U][1].end={...ce},U++;On(r.events,ae+1,0,r.events.slice(P)),r.events.length=U}}function S(D){let I=a.length;for(;I-- >D;){const q=a[I];r.containerState=q[1],q[0].exit.call(r,n)}a.length=D}function T(){u.write([null]),s=void 0,u=void 0,r.containerState._closeFlow=void 0}}function kw(n,r,a){return ut(n,n.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pg(n){if(n===null||Wt(n)||vw(n))return 1;if(yw(n))return 2}function hf(n,r,a){const o=[];let u=-1;for(;++u<n.length;){const s=n[u].resolveAll;s&&!o.includes(s)&&(r=s(r,a),o.push(s))}return r}const Vc={name:"attention",resolveAll:_w,tokenize:zw};function _w(n,r){let a=-1,o,u,s,f,d,m,p,g;for(;++a<n.length;)if(n[a][0]==="enter"&&n[a][1].type==="attentionSequence"&&n[a][1]._close){for(o=a;o--;)if(n[o][0]==="exit"&&n[o][1].type==="attentionSequence"&&n[o][1]._open&&r.sliceSerialize(n[o][1]).charCodeAt(0)===r.sliceSerialize(n[a][1]).charCodeAt(0)){if((n[o][1]._close||n[a][1]._open)&&(n[a][1].end.offset-n[a][1].start.offset)%3&&!((n[o][1].end.offset-n[o][1].start.offset+n[a][1].end.offset-n[a][1].start.offset)%3))continue;m=n[o][1].end.offset-n[o][1].start.offset>1&&n[a][1].end.offset-n[a][1].start.offset>1?2:1;const v={...n[o][1].end},x={...n[a][1].start};mg(v,-m),mg(x,m),f={type:m>1?"strongSequence":"emphasisSequence",start:v,end:{...n[o][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...n[a][1].start},end:x},s={type:m>1?"strongText":"emphasisText",start:{...n[o][1].end},end:{...n[a][1].start}},u={type:m>1?"strong":"emphasis",start:{...f.start},end:{...d.end}},n[o][1].end={...f.start},n[a][1].start={...d.end},p=[],n[o][1].end.offset-n[o][1].start.offset&&(p=bn(p,[["enter",n[o][1],r],["exit",n[o][1],r]])),p=bn(p,[["enter",u,r],["enter",f,r],["exit",f,r],["enter",s,r]]),p=bn(p,hf(r.parser.constructs.insideSpan.null,n.slice(o+1,a),r)),p=bn(p,[["exit",s,r],["enter",d,r],["exit",d,r],["exit",u,r]]),n[a][1].end.offset-n[a][1].start.offset?(g=2,p=bn(p,[["enter",n[a][1],r],["exit",n[a][1],r]])):g=0,On(n,o-1,a-o+3,p),a=o+p.length-g-2;break}}for(a=-1;++a<n.length;)n[a][1].type==="attentionSequence"&&(n[a][1].type="data");return n}function zw(n,r){const a=this.parser.constructs.attentionMarkers.null,o=this.previous,u=pg(o);let s;return f;function f(m){return s=m,n.enter("attentionSequence"),d(m)}function d(m){if(m===s)return n.consume(m),d;const p=n.exit("attentionSequence"),g=pg(m),v=!g||g===2&&u||a.includes(m),x=!u||u===2&&g||a.includes(o);return p._open=!!(s===42?v:v&&(u||!x)),p._close=!!(s===42?x:x&&(g||!v)),r(m)}}function mg(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Ew={name:"autolink",tokenize:Cw};function Cw(n,r,a){let o=0;return u;function u(y){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(y),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),s}function s(y){return Nn(y)?(n.consume(y),f):y===64?a(y):p(y)}function f(y){return y===43||y===45||y===46||sn(y)?(o=1,d(y)):p(y)}function d(y){return y===58?(n.consume(y),o=0,m):(y===43||y===45||y===46||sn(y))&&o++<32?(n.consume(y),d):(o=0,p(y))}function m(y){return y===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(y),n.exit("autolinkMarker"),n.exit("autolink"),r):y===null||y===32||y===60||Yc(y)?a(y):(n.consume(y),m)}function p(y){return y===64?(n.consume(y),g):pw(y)?(n.consume(y),p):a(y)}function g(y){return sn(y)?v(y):a(y)}function v(y){return y===46?(n.consume(y),o=0,g):y===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(y),n.exit("autolinkMarker"),n.exit("autolink"),r):x(y)}function x(y){if((y===45||sn(y))&&o++<63){const E=y===45?x:v;return n.consume(y),E}return a(y)}}const Po={partial:!0,tokenize:Tw};function Tw(n,r,a){return o;function o(s){return We(s)?ut(n,u,"linePrefix")(s):u(s)}function u(s){return s===null||Ne(s)?r(s):a(s)}}const E0={continuation:{tokenize:jw},exit:Rw,name:"blockQuote",tokenize:Aw};function Aw(n,r,a){const o=this;return u;function u(f){if(f===62){const d=o.containerState;return d.open||(n.enter("blockQuote",{_container:!0}),d.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),s}return a(f)}function s(f){return We(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(f))}}function jw(n,r,a){const o=this;return u;function u(f){return We(f)?ut(n,s,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):s(f)}function s(f){return n.attempt(E0,r,a)(f)}}function Rw(n){n.exit("blockQuote")}const C0={name:"characterEscape",tokenize:Dw};function Dw(n,r,a){return o;function o(s){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(s),n.exit("escapeMarker"),u}function u(s){return gw(s)?(n.enter("characterEscapeValue"),n.consume(s),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):a(s)}}const T0={name:"characterReference",tokenize:Nw};function Nw(n,r,a){const o=this;let u=0,s,f;return d;function d(v){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(v),n.exit("characterReferenceMarker"),m}function m(v){return v===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(v),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),s=31,f=sn,g(v))}function p(v){return v===88||v===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(v),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),s=6,f=mw,g):(n.enter("characterReferenceValue"),s=7,f=Gc,g(v))}function g(v){if(v===59&&u){const x=n.exit("characterReferenceValue");return f===sn&&!df(o.sliceSerialize(x))?a(v):(n.enter("characterReferenceMarker"),n.consume(v),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return f(v)&&u++<s?(n.consume(v),g):a(v)}}const gg={partial:!0,tokenize:Mw},yg={concrete:!0,name:"codeFenced",tokenize:Ow};function Ow(n,r,a){const o=this,u={partial:!0,tokenize:q};let s=0,f=0,d;return m;function m(U){return p(U)}function p(U){const P=o.events[o.events.length-1];return s=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,d=U,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),g(U)}function g(U){return U===d?(f++,n.consume(U),g):f<3?a(U):(n.exit("codeFencedFenceSequence"),We(U)?ut(n,v,"whitespace")(U):v(U))}function v(U){return U===null||Ne(U)?(n.exit("codeFencedFence"),o.interrupt?r(U):n.check(gg,w,I)(U)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(U))}function x(U){return U===null||Ne(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),v(U)):We(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),ut(n,y,"whitespace")(U)):U===96&&U===d?a(U):(n.consume(U),x)}function y(U){return U===null||Ne(U)?v(U):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),E(U))}function E(U){return U===null||Ne(U)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),v(U)):U===96&&U===d?a(U):(n.consume(U),E)}function w(U){return n.attempt(u,I,C)(U)}function C(U){return n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),S}function S(U){return s>0&&We(U)?ut(n,T,"linePrefix",s+1)(U):T(U)}function T(U){return U===null||Ne(U)?n.check(gg,w,I)(U):(n.enter("codeFlowValue"),D(U))}function D(U){return U===null||Ne(U)?(n.exit("codeFlowValue"),T(U)):(n.consume(U),D)}function I(U){return n.exit("codeFenced"),r(U)}function q(U,P,ae){let K=0;return ce;function ce(F){return U.enter("lineEnding"),U.consume(F),U.exit("lineEnding"),me}function me(F){return U.enter("codeFencedFence"),We(F)?ut(U,O,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):O(F)}function O(F){return F===d?(U.enter("codeFencedFenceSequence"),ee(F)):ae(F)}function ee(F){return F===d?(K++,U.consume(F),ee):K>=f?(U.exit("codeFencedFenceSequence"),We(F)?ut(U,z,"whitespace")(F):z(F)):ae(F)}function z(F){return F===null||Ne(F)?(U.exit("codeFencedFence"),P(F)):ae(F)}}}function Mw(n,r,a){const o=this;return u;function u(f){return f===null?a(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s)}function s(f){return o.parser.lazy[o.now().line]?a(f):r(f)}}const wc={name:"codeIndented",tokenize:Lw},Bw={partial:!0,tokenize:Uw};function Lw(n,r,a){const o=this;return u;function u(p){return n.enter("codeIndented"),ut(n,s,"linePrefix",5)(p)}function s(p){const g=o.events[o.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?f(p):a(p)}function f(p){return p===null?m(p):Ne(p)?n.attempt(Bw,f,m)(p):(n.enter("codeFlowValue"),d(p))}function d(p){return p===null||Ne(p)?(n.exit("codeFlowValue"),f(p)):(n.consume(p),d)}function m(p){return n.exit("codeIndented"),r(p)}}function Uw(n,r,a){const o=this;return u;function u(f){return o.parser.lazy[o.now().line]?a(f):Ne(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),u):ut(n,s,"linePrefix",5)(f)}function s(f){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):Ne(f)?u(f):a(f)}}const Hw={name:"codeText",previous:Iw,resolve:qw,tokenize:Fw};function qw(n){let r=n.length-4,a=3,o,u;if((n[a][1].type==="lineEnding"||n[a][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(o=a;++o<r;)if(n[o][1].type==="codeTextData"){n[a][1].type="codeTextPadding",n[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(o=a-1,r++;++o<=r;)u===void 0?o!==r&&n[o][1].type!=="lineEnding"&&(u=o):(o===r||n[o][1].type==="lineEnding")&&(n[u][1].type="codeTextData",o!==u+2&&(n[u][1].end=n[o-1][1].end,n.splice(u+2,o-u-2),r-=o-u-2,o=u+2),u=void 0);return n}function Iw(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Fw(n,r,a){let o=0,u,s;return f;function f(v){return n.enter("codeText"),n.enter("codeTextSequence"),d(v)}function d(v){return v===96?(n.consume(v),o++,d):(n.exit("codeTextSequence"),m(v))}function m(v){return v===null?a(v):v===32?(n.enter("space"),n.consume(v),n.exit("space"),m):v===96?(s=n.enter("codeTextSequence"),u=0,g(v)):Ne(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),m):(n.enter("codeTextData"),p(v))}function p(v){return v===null||v===32||v===96||Ne(v)?(n.exit("codeTextData"),m(v)):(n.consume(v),p)}function g(v){return v===96?(n.consume(v),u++,g):u===o?(n.exit("codeTextSequence"),n.exit("codeText"),r(v)):(s.type="codeTextData",p(v))}}class Pw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,a){const o=a??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,a,o){const u=a||0;this.setCursor(Math.trunc(r));const s=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return o&&Qr(this.left,o),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Qr(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Qr(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const a=this.left.splice(r,Number.POSITIVE_INFINITY);Qr(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Qr(this.left,a.reverse())}}}function Qr(n,r){let a=0;if(r.length<1e4)n.push(...r);else for(;a<r.length;)n.push(...r.slice(a,a+1e4)),a+=1e4}function A0(n){const r={};let a=-1,o,u,s,f,d,m,p;const g=new Pw(n);for(;++a<g.length;){for(;a in r;)a=r[a];if(o=g.get(a),a&&o[1].type==="chunkFlow"&&g.get(a-1)[1].type==="listItemPrefix"&&(m=o[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,Yw(g,a)),a=r[a],p=!0);else if(o[1]._container){for(s=a,u=void 0;s--;)if(f=g.get(s),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(u&&(g.get(u)[1].type="lineEndingBlank"),f[1].type="lineEnding",u=s);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;u&&(o[1].end={...g.get(u)[1].start},d=g.slice(u,a),d.unshift(o),g.splice(u,a-u+1,d))}}return On(n,0,Number.POSITIVE_INFINITY,g.slice(0)),!p}function Yw(n,r){const a=n.get(r)[1],o=n.get(r)[2];let u=r-1;const s=[];let f=a._tokenizer;f||(f=o.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const d=f.events,m=[],p={};let g,v,x=-1,y=a,E=0,w=0;const C=[w];for(;y;){for(;n.get(++u)[1]!==y;);s.push(u),y._tokenizer||(g=o.sliceStream(y),y.next||g.push(null),v&&f.defineSkip(y.start),y._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(g),y._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),v=y,y=y.next}for(y=a;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(w=x+1,C.push(w),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(f.events=[],y?(y._tokenizer=void 0,y.previous=void 0):C.pop(),x=C.length;x--;){const S=d.slice(C[x],C[x+1]),T=s.pop();m.push([T,T+S.length-1]),n.splice(T,2,S)}for(m.reverse(),x=-1;++x<m.length;)p[E+m[x][0]]=E+m[x][1],E+=m[x][1]-m[x][0]-1;return p}const Gw={resolve:Xw,tokenize:Zw},Vw={partial:!0,tokenize:Kw};function Xw(n){return A0(n),n}function Zw(n,r){let a;return o;function o(d){return n.enter("content"),a=n.enter("chunkContent",{contentType:"content"}),u(d)}function u(d){return d===null?s(d):Ne(d)?n.check(Vw,f,s)(d):(n.consume(d),u)}function s(d){return n.exit("chunkContent"),n.exit("content"),r(d)}function f(d){return n.consume(d),n.exit("chunkContent"),a.next=n.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,u}}function Kw(n,r,a){const o=this;return u;function u(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),ut(n,s,"linePrefix")}function s(f){if(f===null||Ne(f))return a(f);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):n.interrupt(o.parser.constructs.flow,a,r)(f)}}function j0(n,r,a,o,u,s,f,d,m){const p=m||Number.POSITIVE_INFINITY;let g=0;return v;function v(S){return S===60?(n.enter(o),n.enter(u),n.enter(s),n.consume(S),n.exit(s),x):S===null||S===32||S===41||Yc(S)?a(S):(n.enter(o),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),w(S))}function x(S){return S===62?(n.enter(s),n.consume(S),n.exit(s),n.exit(u),n.exit(o),r):(n.enter(d),n.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===62?(n.exit("chunkString"),n.exit(d),x(S)):S===null||S===60||Ne(S)?a(S):(n.consume(S),S===92?E:y)}function E(S){return S===60||S===62||S===92?(n.consume(S),y):y(S)}function w(S){return!g&&(S===null||S===41||Wt(S))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(o),r(S)):g<p&&S===40?(n.consume(S),g++,w):S===41?(n.consume(S),g--,w):S===null||S===32||S===40||Yc(S)?a(S):(n.consume(S),S===92?C:w)}function C(S){return S===40||S===41||S===92?(n.consume(S),w):w(S)}}function R0(n,r,a,o,u,s){const f=this;let d=0,m;return p;function p(y){return n.enter(o),n.enter(u),n.consume(y),n.exit(u),n.enter(s),g}function g(y){return d>999||y===null||y===91||y===93&&!m||y===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?a(y):y===93?(n.exit(s),n.enter(u),n.consume(y),n.exit(u),n.exit(o),r):Ne(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),g):(n.enter("chunkString",{contentType:"string"}),v(y))}function v(y){return y===null||y===91||y===93||Ne(y)||d++>999?(n.exit("chunkString"),g(y)):(n.consume(y),m||(m=!We(y)),y===92?x:v)}function x(y){return y===91||y===92||y===93?(n.consume(y),d++,v):v(y)}}function D0(n,r,a,o,u,s){let f;return d;function d(x){return x===34||x===39||x===40?(n.enter(o),n.enter(u),n.consume(x),n.exit(u),f=x===40?41:x,m):a(x)}function m(x){return x===f?(n.enter(u),n.consume(x),n.exit(u),n.exit(o),r):(n.enter(s),p(x))}function p(x){return x===f?(n.exit(s),m(f)):x===null?a(x):Ne(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),ut(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===f||x===null||Ne(x)?(n.exit("chunkString"),p(x)):(n.consume(x),x===92?v:g)}function v(x){return x===f||x===92?(n.consume(x),g):g(x)}}function $r(n,r){let a;return o;function o(u){return Ne(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),a=!0,o):We(u)?ut(n,o,a?"linePrefix":"lineSuffix")(u):r(u)}}const Qw={name:"definition",tokenize:Jw},Ww={partial:!0,tokenize:$w};function Jw(n,r,a){const o=this;let u;return s;function s(y){return n.enter("definition"),f(y)}function f(y){return R0.call(o,n,d,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return u=Va(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),y===58?(n.enter("definitionMarker"),n.consume(y),n.exit("definitionMarker"),m):a(y)}function m(y){return Wt(y)?$r(n,p)(y):p(y)}function p(y){return j0(n,g,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function g(y){return n.attempt(Ww,v,v)(y)}function v(y){return We(y)?ut(n,x,"whitespace")(y):x(y)}function x(y){return y===null||Ne(y)?(n.exit("definition"),o.parser.defined.push(u),r(y)):a(y)}}function $w(n,r,a){return o;function o(d){return Wt(d)?$r(n,u)(d):a(d)}function u(d){return D0(n,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return We(d)?ut(n,f,"whitespace")(d):f(d)}function f(d){return d===null||Ne(d)?r(d):a(d)}}const e5={name:"hardBreakEscape",tokenize:t5};function t5(n,r,a){return o;function o(s){return n.enter("hardBreakEscape"),n.consume(s),u}function u(s){return Ne(s)?(n.exit("hardBreakEscape"),r(s)):a(s)}}const n5={name:"headingAtx",resolve:i5,tokenize:a5};function i5(n,r){let a=n.length-2,o=3,u,s;return n[o][1].type==="whitespace"&&(o+=2),a-2>o&&n[a][1].type==="whitespace"&&(a-=2),n[a][1].type==="atxHeadingSequence"&&(o===a-1||a-4>o&&n[a-2][1].type==="whitespace")&&(a-=o+1===a?2:4),a>o&&(u={type:"atxHeadingText",start:n[o][1].start,end:n[a][1].end},s={type:"chunkText",start:n[o][1].start,end:n[a][1].end,contentType:"text"},On(n,o,a-o+1,[["enter",u,r],["enter",s,r],["exit",s,r],["exit",u,r]])),n}function a5(n,r,a){let o=0;return u;function u(g){return n.enter("atxHeading"),s(g)}function s(g){return n.enter("atxHeadingSequence"),f(g)}function f(g){return g===35&&o++<6?(n.consume(g),f):g===null||Wt(g)?(n.exit("atxHeadingSequence"),d(g)):a(g)}function d(g){return g===35?(n.enter("atxHeadingSequence"),m(g)):g===null||Ne(g)?(n.exit("atxHeading"),r(g)):We(g)?ut(n,d,"whitespace")(g):(n.enter("atxHeadingText"),p(g))}function m(g){return g===35?(n.consume(g),m):(n.exit("atxHeadingSequence"),d(g))}function p(g){return g===null||g===35||Wt(g)?(n.exit("atxHeadingText"),d(g)):(n.consume(g),p)}}const r5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vg=["pre","script","style","textarea"],l5={concrete:!0,name:"htmlFlow",resolveTo:u5,tokenize:c5},o5={partial:!0,tokenize:d5},s5={partial:!0,tokenize:f5};function u5(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function c5(n,r,a){const o=this;let u,s,f,d,m;return p;function p(R){return g(R)}function g(R){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(R),v}function v(R){return R===33?(n.consume(R),x):R===47?(n.consume(R),s=!0,w):R===63?(n.consume(R),u=3,o.interrupt?r:N):Nn(R)?(n.consume(R),f=String.fromCharCode(R),C):a(R)}function x(R){return R===45?(n.consume(R),u=2,y):R===91?(n.consume(R),u=5,d=0,E):Nn(R)?(n.consume(R),u=4,o.interrupt?r:N):a(R)}function y(R){return R===45?(n.consume(R),o.interrupt?r:N):a(R)}function E(R){const re="CDATA[";return R===re.charCodeAt(d++)?(n.consume(R),d===re.length?o.interrupt?r:O:E):a(R)}function w(R){return Nn(R)?(n.consume(R),f=String.fromCharCode(R),C):a(R)}function C(R){if(R===null||R===47||R===62||Wt(R)){const re=R===47,fe=f.toLowerCase();return!re&&!s&&vg.includes(fe)?(u=1,o.interrupt?r(R):O(R)):r5.includes(f.toLowerCase())?(u=6,re?(n.consume(R),S):o.interrupt?r(R):O(R)):(u=7,o.interrupt&&!o.parser.lazy[o.now().line]?a(R):s?T(R):D(R))}return R===45||sn(R)?(n.consume(R),f+=String.fromCharCode(R),C):a(R)}function S(R){return R===62?(n.consume(R),o.interrupt?r:O):a(R)}function T(R){return We(R)?(n.consume(R),T):ce(R)}function D(R){return R===47?(n.consume(R),ce):R===58||R===95||Nn(R)?(n.consume(R),I):We(R)?(n.consume(R),D):ce(R)}function I(R){return R===45||R===46||R===58||R===95||sn(R)?(n.consume(R),I):q(R)}function q(R){return R===61?(n.consume(R),U):We(R)?(n.consume(R),q):D(R)}function U(R){return R===null||R===60||R===61||R===62||R===96?a(R):R===34||R===39?(n.consume(R),m=R,P):We(R)?(n.consume(R),U):ae(R)}function P(R){return R===m?(n.consume(R),m=null,K):R===null||Ne(R)?a(R):(n.consume(R),P)}function ae(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Wt(R)?q(R):(n.consume(R),ae)}function K(R){return R===47||R===62||We(R)?D(R):a(R)}function ce(R){return R===62?(n.consume(R),me):a(R)}function me(R){return R===null||Ne(R)?O(R):We(R)?(n.consume(R),me):a(R)}function O(R){return R===45&&u===2?(n.consume(R),G):R===60&&u===1?(n.consume(R),X):R===62&&u===4?(n.consume(R),j):R===63&&u===3?(n.consume(R),N):R===93&&u===5?(n.consume(R),oe):Ne(R)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(o5,B,ee)(R)):R===null||Ne(R)?(n.exit("htmlFlowData"),ee(R)):(n.consume(R),O)}function ee(R){return n.check(s5,z,B)(R)}function z(R){return n.enter("lineEnding"),n.consume(R),n.exit("lineEnding"),F}function F(R){return R===null||Ne(R)?ee(R):(n.enter("htmlFlowData"),O(R))}function G(R){return R===45?(n.consume(R),N):O(R)}function X(R){return R===47?(n.consume(R),f="",be):O(R)}function be(R){if(R===62){const re=f.toLowerCase();return vg.includes(re)?(n.consume(R),j):O(R)}return Nn(R)&&f.length<8?(n.consume(R),f+=String.fromCharCode(R),be):O(R)}function oe(R){return R===93?(n.consume(R),N):O(R)}function N(R){return R===62?(n.consume(R),j):R===45&&u===2?(n.consume(R),N):O(R)}function j(R){return R===null||Ne(R)?(n.exit("htmlFlowData"),B(R)):(n.consume(R),j)}function B(R){return n.exit("htmlFlow"),r(R)}}function f5(n,r,a){const o=this;return u;function u(f){return Ne(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):a(f)}function s(f){return o.parser.lazy[o.now().line]?a(f):r(f)}}function d5(n,r,a){return o;function o(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Po,r,a)}}const h5={name:"htmlText",tokenize:p5};function p5(n,r,a){const o=this;let u,s,f;return d;function d(N){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(N),m}function m(N){return N===33?(n.consume(N),p):N===47?(n.consume(N),q):N===63?(n.consume(N),D):Nn(N)?(n.consume(N),ae):a(N)}function p(N){return N===45?(n.consume(N),g):N===91?(n.consume(N),s=0,E):Nn(N)?(n.consume(N),T):a(N)}function g(N){return N===45?(n.consume(N),y):a(N)}function v(N){return N===null?a(N):N===45?(n.consume(N),x):Ne(N)?(f=v,X(N)):(n.consume(N),v)}function x(N){return N===45?(n.consume(N),y):v(N)}function y(N){return N===62?G(N):N===45?x(N):v(N)}function E(N){const j="CDATA[";return N===j.charCodeAt(s++)?(n.consume(N),s===j.length?w:E):a(N)}function w(N){return N===null?a(N):N===93?(n.consume(N),C):Ne(N)?(f=w,X(N)):(n.consume(N),w)}function C(N){return N===93?(n.consume(N),S):w(N)}function S(N){return N===62?G(N):N===93?(n.consume(N),S):w(N)}function T(N){return N===null||N===62?G(N):Ne(N)?(f=T,X(N)):(n.consume(N),T)}function D(N){return N===null?a(N):N===63?(n.consume(N),I):Ne(N)?(f=D,X(N)):(n.consume(N),D)}function I(N){return N===62?G(N):D(N)}function q(N){return Nn(N)?(n.consume(N),U):a(N)}function U(N){return N===45||sn(N)?(n.consume(N),U):P(N)}function P(N){return Ne(N)?(f=P,X(N)):We(N)?(n.consume(N),P):G(N)}function ae(N){return N===45||sn(N)?(n.consume(N),ae):N===47||N===62||Wt(N)?K(N):a(N)}function K(N){return N===47?(n.consume(N),G):N===58||N===95||Nn(N)?(n.consume(N),ce):Ne(N)?(f=K,X(N)):We(N)?(n.consume(N),K):G(N)}function ce(N){return N===45||N===46||N===58||N===95||sn(N)?(n.consume(N),ce):me(N)}function me(N){return N===61?(n.consume(N),O):Ne(N)?(f=me,X(N)):We(N)?(n.consume(N),me):K(N)}function O(N){return N===null||N===60||N===61||N===62||N===96?a(N):N===34||N===39?(n.consume(N),u=N,ee):Ne(N)?(f=O,X(N)):We(N)?(n.consume(N),O):(n.consume(N),z)}function ee(N){return N===u?(n.consume(N),u=void 0,F):N===null?a(N):Ne(N)?(f=ee,X(N)):(n.consume(N),ee)}function z(N){return N===null||N===34||N===39||N===60||N===61||N===96?a(N):N===47||N===62||Wt(N)?K(N):(n.consume(N),z)}function F(N){return N===47||N===62||Wt(N)?K(N):a(N)}function G(N){return N===62?(n.consume(N),n.exit("htmlTextData"),n.exit("htmlText"),r):a(N)}function X(N){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(N),n.exit("lineEnding"),be}function be(N){return We(N)?ut(n,oe,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):oe(N)}function oe(N){return n.enter("htmlTextData"),f(N)}}const pf={name:"labelEnd",resolveAll:v5,resolveTo:x5,tokenize:b5},m5={tokenize:w5},g5={tokenize:S5},y5={tokenize:k5};function v5(n){let r=-1;const a=[];for(;++r<n.length;){const o=n[r][1];if(a.push(n[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const u=o.type==="labelImage"?4:2;o.type="data",r+=u}}return n.length!==a.length&&On(n,0,n.length,a),n}function x5(n,r){let a=n.length,o=0,u,s,f,d;for(;a--;)if(u=n[a][1],s){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[a][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(f){if(n[a][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(s=a,u.type!=="labelLink")){o=2;break}}else u.type==="labelEnd"&&(f=a);const m={type:n[s][1].type==="labelLink"?"link":"image",start:{...n[s][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[s][1].start},end:{...n[f][1].end}},g={type:"labelText",start:{...n[s+o+2][1].end},end:{...n[f-2][1].start}};return d=[["enter",m,r],["enter",p,r]],d=bn(d,n.slice(s+1,s+o+3)),d=bn(d,[["enter",g,r]]),d=bn(d,hf(r.parser.constructs.insideSpan.null,n.slice(s+o+4,f-3),r)),d=bn(d,[["exit",g,r],n[f-2],n[f-1],["exit",p,r]]),d=bn(d,n.slice(f+1)),d=bn(d,[["exit",m,r]]),On(n,s,n.length,d),n}function b5(n,r,a){const o=this;let u=o.events.length,s,f;for(;u--;)if((o.events[u][1].type==="labelImage"||o.events[u][1].type==="labelLink")&&!o.events[u][1]._balanced){s=o.events[u][1];break}return d;function d(x){return s?s._inactive?v(x):(f=o.parser.defined.includes(Va(o.sliceSerialize({start:s.end,end:o.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),m):a(x)}function m(x){return x===40?n.attempt(m5,g,f?g:v)(x):x===91?n.attempt(g5,g,f?p:v)(x):f?g(x):v(x)}function p(x){return n.attempt(y5,g,v)(x)}function g(x){return r(x)}function v(x){return s._balanced=!0,a(x)}}function w5(n,r,a){return o;function o(v){return n.enter("resource"),n.enter("resourceMarker"),n.consume(v),n.exit("resourceMarker"),u}function u(v){return Wt(v)?$r(n,s)(v):s(v)}function s(v){return v===41?g(v):j0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(v)}function f(v){return Wt(v)?$r(n,m)(v):g(v)}function d(v){return a(v)}function m(v){return v===34||v===39||v===40?D0(n,p,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(v):g(v)}function p(v){return Wt(v)?$r(n,g)(v):g(v)}function g(v){return v===41?(n.enter("resourceMarker"),n.consume(v),n.exit("resourceMarker"),n.exit("resource"),r):a(v)}}function S5(n,r,a){const o=this;return u;function u(d){return R0.call(o,n,s,f,"reference","referenceMarker","referenceString")(d)}function s(d){return o.parser.defined.includes(Va(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(d):a(d)}function f(d){return a(d)}}function k5(n,r,a){return o;function o(s){return n.enter("reference"),n.enter("referenceMarker"),n.consume(s),n.exit("referenceMarker"),u}function u(s){return s===93?(n.enter("referenceMarker"),n.consume(s),n.exit("referenceMarker"),n.exit("reference"),r):a(s)}}const _5={name:"labelStartImage",resolveAll:pf.resolveAll,tokenize:z5};function z5(n,r,a){const o=this;return u;function u(d){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(d),n.exit("labelImageMarker"),s}function s(d){return d===91?(n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelImage"),f):a(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?a(d):r(d)}}const E5={name:"labelStartLink",resolveAll:pf.resolveAll,tokenize:C5};function C5(n,r,a){const o=this;return u;function u(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),s}function s(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?a(f):r(f)}}const Sc={name:"lineEnding",tokenize:T5};function T5(n,r){return a;function a(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),ut(n,r,"linePrefix")}}const No={name:"thematicBreak",tokenize:A5};function A5(n,r,a){let o=0,u;return s;function s(p){return n.enter("thematicBreak"),f(p)}function f(p){return u=p,d(p)}function d(p){return p===u?(n.enter("thematicBreakSequence"),m(p)):o>=3&&(p===null||Ne(p))?(n.exit("thematicBreak"),r(p)):a(p)}function m(p){return p===u?(n.consume(p),o++,m):(n.exit("thematicBreakSequence"),We(p)?ut(n,d,"whitespace")(p):d(p))}}const Qt={continuation:{tokenize:N5},exit:M5,name:"list",tokenize:D5},j5={partial:!0,tokenize:B5},R5={partial:!0,tokenize:O5};function D5(n,r,a){const o=this,u=o.events[o.events.length-1];let s=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,f=0;return d;function d(y){const E=o.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!o.containerState.marker||y===o.containerState.marker:Gc(y)){if(o.containerState.type||(o.containerState.type=E,n.enter(E,{_container:!0})),E==="listUnordered")return n.enter("listItemPrefix"),y===42||y===45?n.check(No,a,p)(y):p(y);if(!o.interrupt||y===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(y)}return a(y)}function m(y){return Gc(y)&&++f<10?(n.consume(y),m):(!o.interrupt||f<2)&&(o.containerState.marker?y===o.containerState.marker:y===41||y===46)?(n.exit("listItemValue"),p(y)):a(y)}function p(y){return n.enter("listItemMarker"),n.consume(y),n.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||y,n.check(Po,o.interrupt?a:g,n.attempt(j5,x,v))}function g(y){return o.containerState.initialBlankLine=!0,s++,x(y)}function v(y){return We(y)?(n.enter("listItemPrefixWhitespace"),n.consume(y),n.exit("listItemPrefixWhitespace"),x):a(y)}function x(y){return o.containerState.size=s+o.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(y)}}function N5(n,r,a){const o=this;return o.containerState._closeFlow=void 0,n.check(Po,u,s);function u(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,ut(n,r,"listItemIndent",o.containerState.size+1)(d)}function s(d){return o.containerState.furtherBlankLines||!We(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,f(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,n.attempt(R5,r,f)(d))}function f(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,ut(n,n.attempt(Qt,r,a),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function O5(n,r,a){const o=this;return ut(n,u,"listItemIndent",o.containerState.size+1);function u(s){const f=o.events[o.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===o.containerState.size?r(s):a(s)}}function M5(n){n.exit(this.containerState.type)}function B5(n,r,a){const o=this;return ut(n,u,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(s){const f=o.events[o.events.length-1];return!We(s)&&f&&f[1].type==="listItemPrefixWhitespace"?r(s):a(s)}}const xg={name:"setextUnderline",resolveTo:L5,tokenize:U5};function L5(n,r){let a=n.length,o,u,s;for(;a--;)if(n[a][0]==="enter"){if(n[a][1].type==="content"){o=a;break}n[a][1].type==="paragraph"&&(u=a)}else n[a][1].type==="content"&&n.splice(a,1),!s&&n[a][1].type==="definition"&&(s=a);const f={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[u][1].type="setextHeadingText",s?(n.splice(u,0,["enter",f,r]),n.splice(s+1,0,["exit",n[o][1],r]),n[o][1].end={...n[s][1].end}):n[o][1]=f,n.push(["exit",f,r]),n}function U5(n,r,a){const o=this;let u;return s;function s(p){let g=o.events.length,v;for(;g--;)if(o.events[g][1].type!=="lineEnding"&&o.events[g][1].type!=="linePrefix"&&o.events[g][1].type!=="content"){v=o.events[g][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||v)?(n.enter("setextHeadingLine"),u=p,f(p)):a(p)}function f(p){return n.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===u?(n.consume(p),d):(n.exit("setextHeadingLineSequence"),We(p)?ut(n,m,"lineSuffix")(p):m(p))}function m(p){return p===null||Ne(p)?(n.exit("setextHeadingLine"),r(p)):a(p)}}const H5={tokenize:q5};function q5(n){const r=this,a=n.attempt(Po,o,n.attempt(this.parser.constructs.flowInitial,u,ut(n,n.attempt(this.parser.constructs.flow,u,n.attempt(Gw,u)),"linePrefix")));return a;function o(s){if(s===null){n.consume(s);return}return n.enter("lineEndingBlank"),n.consume(s),n.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function u(s){if(s===null){n.consume(s);return}return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r.currentConstruct=void 0,a}}const I5={resolveAll:O0()},F5=N0("string"),P5=N0("text");function N0(n){return{resolveAll:O0(n==="text"?Y5:void 0),tokenize:r};function r(a){const o=this,u=this.parser.constructs[n],s=a.attempt(u,f,d);return f;function f(g){return p(g)?s(g):d(g)}function d(g){if(g===null){a.consume(g);return}return a.enter("data"),a.consume(g),m}function m(g){return p(g)?(a.exit("data"),s(g)):(a.consume(g),m)}function p(g){if(g===null)return!0;const v=u[g];let x=-1;if(v)for(;++x<v.length;){const y=v[x];if(!y.previous||y.previous.call(o,o.previous))return!0}return!1}}}function O0(n){return r;function r(a,o){let u=-1,s;for(;++u<=a.length;)s===void 0?a[u]&&a[u][1].type==="data"&&(s=u,u++):(!a[u]||a[u][1].type!=="data")&&(u!==s+2&&(a[s][1].end=a[u-1][1].end,a.splice(s+2,u-s-2),u=s+2),s=void 0);return n?n(a,o):a}}function Y5(n,r){let a=0;for(;++a<=n.length;)if((a===n.length||n[a][1].type==="lineEnding")&&n[a-1][1].type==="data"){const o=n[a-1][1],u=r.sliceStream(o);let s=u.length,f=-1,d=0,m;for(;s--;){const p=u[s];if(typeof p=="string"){for(f=p.length;p.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-1}else if(p===-2)m=!0,d++;else if(p!==-1){s++;break}}if(r._contentTypeTextTrailing&&a===n.length&&(d=0),d){const p={type:a===n.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?f:o.start._bufferIndex+f,_index:o.start._index+s,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(n.splice(a,0,["enter",p,r],["exit",p,r]),a+=2)}a++}return n}const G5={42:Qt,43:Qt,45:Qt,48:Qt,49:Qt,50:Qt,51:Qt,52:Qt,53:Qt,54:Qt,55:Qt,56:Qt,57:Qt,62:E0},V5={91:Qw},X5={[-2]:wc,[-1]:wc,32:wc},Z5={35:n5,42:No,45:[xg,No],60:l5,61:xg,95:No,96:yg,126:yg},K5={38:T0,92:C0},Q5={[-5]:Sc,[-4]:Sc,[-3]:Sc,33:_5,38:T0,42:Vc,60:[Ew,h5],91:E5,92:[e5,C0],93:pf,95:Vc,96:Hw},W5={null:[Vc,I5]},J5={null:[42,95]},$5={null:[]},e3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:J5,contentInitial:V5,disable:$5,document:G5,flow:Z5,flowInitial:X5,insideSpan:W5,string:K5,text:Q5},Symbol.toStringTag,{value:"Module"}));function t3(n,r,a){let o={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const u={},s=[];let f=[],d=[];const m={attempt:P(q),check:P(U),consume:T,enter:D,exit:I,interrupt:P(U,{interrupt:!0})},p={code:null,containerState:{},defineSkip:w,events:[],now:E,parser:n,previous:null,sliceSerialize:x,sliceStream:y,write:v};let g=r.tokenize.call(p,m);return r.resolveAll&&s.push(r),p;function v(me){return f=bn(f,me),C(),f[f.length-1]!==null?[]:(ae(r,0),p.events=hf(s,p.events,p),p.events)}function x(me,O){return i3(y(me),O)}function y(me){return n3(f,me)}function E(){const{_bufferIndex:me,_index:O,line:ee,column:z,offset:F}=o;return{_bufferIndex:me,_index:O,line:ee,column:z,offset:F}}function w(me){u[me.line]=me.column,ce()}function C(){let me;for(;o._index<f.length;){const O=f[o._index];if(typeof O=="string")for(me=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===me&&o._bufferIndex<O.length;)S(O.charCodeAt(o._bufferIndex));else S(O)}}function S(me){g=g(me)}function T(me){Ne(me)?(o.line++,o.column=1,o.offset+=me===-3?2:1,ce()):me!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===f[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=me}function D(me,O){const ee=O||{};return ee.type=me,ee.start=E(),p.events.push(["enter",ee,p]),d.push(ee),ee}function I(me){const O=d.pop();return O.end=E(),p.events.push(["exit",O,p]),O}function q(me,O){ae(me,O.from)}function U(me,O){O.restore()}function P(me,O){return ee;function ee(z,F,G){let X,be,oe,N;return Array.isArray(z)?B(z):"tokenize"in z?B([z]):j(z);function j(_e){return Ae;function Ae(Ee){const Ce=Ee!==null&&_e[Ee],Pe=Ee!==null&&_e.null,Ye=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return B(Ye)(Ee)}}function B(_e){return X=_e,be=0,_e.length===0?G:R(_e[be])}function R(_e){return Ae;function Ae(Ee){return N=K(),oe=_e,_e.partial||(p.currentConstruct=_e),_e.name&&p.parser.constructs.disable.null.includes(_e.name)?fe():_e.tokenize.call(O?Object.assign(Object.create(p),O):p,m,re,fe)(Ee)}}function re(_e){return me(oe,N),F}function fe(_e){return N.restore(),++be<X.length?R(X[be]):G}}}function ae(me,O){me.resolveAll&&!s.includes(me)&&s.push(me),me.resolve&&On(p.events,O,p.events.length-O,me.resolve(p.events.slice(O),p)),me.resolveTo&&(p.events=me.resolveTo(p.events,p))}function K(){const me=E(),O=p.previous,ee=p.currentConstruct,z=p.events.length,F=Array.from(d);return{from:z,restore:G};function G(){o=me,p.previous=O,p.currentConstruct=ee,p.events.length=z,d=F,ce()}}function ce(){o.line in u&&o.column<2&&(o.column=u[o.line],o.offset+=u[o.line]-1)}}function n3(n,r){const a=r.start._index,o=r.start._bufferIndex,u=r.end._index,s=r.end._bufferIndex;let f;if(a===u)f=[n[a].slice(o,s)];else{if(f=n.slice(a,u),o>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(o):f.shift()}s>0&&f.push(n[u].slice(0,s))}return f}function i3(n,r){let a=-1;const o=[];let u;for(;++a<n.length;){const s=n[a];let f;if(typeof s=="string")f=s;else switch(s){case-5:{f="\r";break}case-4:{f=`
`;break}case-3:{f=`\r
`;break}case-2:{f=r?" ":"	";break}case-1:{if(!r&&u)continue;f=" ";break}default:f=String.fromCharCode(s)}u=s===-2,o.push(f)}return o.join("")}function a3(n){const o={constructs:fw([e3,...(n||{}).extensions||[]]),content:u(xw),defined:[],document:u(ww),flow:u(H5),lazy:{},string:u(F5),text:u(P5)};return o;function u(s){return f;function f(d){return t3(o,s,d)}}}function r3(n){for(;!A0(n););return n}const bg=/[\0\t\n\r]/g;function l3(){let n=1,r="",a=!0,o;return u;function u(s,f,d){const m=[];let p,g,v,x,y;for(s=r+(typeof s=="string"?s.toString():new TextDecoder(f||void 0).decode(s)),v=0,r="",a&&(s.charCodeAt(0)===65279&&v++,a=void 0);v<s.length;){if(bg.lastIndex=v,p=bg.exec(s),x=p&&p.index!==void 0?p.index:s.length,y=s.charCodeAt(x),!p){r=s.slice(v);break}if(y===10&&v===x&&o)m.push(-3),o=void 0;else switch(o&&(m.push(-5),o=void 0),v<x&&(m.push(s.slice(v,x)),n+=x-v),y){case 0:{m.push(65533),n++;break}case 9:{for(g=Math.ceil(n/4)*4,m.push(-2);n++<g;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:o=!0,n=1}v=x+1}return d&&(o&&m.push(-5),r&&m.push(r),m.push(null)),m}}const o3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function s3(n){return n.replace(o3,u3)}function u3(n,r,a){if(r)return r;if(a.charCodeAt(0)===35){const u=a.charCodeAt(1),s=u===120||u===88;return z0(a.slice(s?2:1),s?16:10)}return df(a)||n}const M0={}.hasOwnProperty;function c3(n,r,a){return typeof r!="string"&&(a=r,r=void 0),f3(a)(r3(a3(a).document().write(l3()(n,r,!0))))}function f3(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Z),autolinkProtocol:K,autolinkEmail:K,atxHeading:s(pe),blockQuote:s(Pe),characterEscape:K,characterReference:K,codeFenced:s(Ye),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:s(Ye,f),codeText:s(pt,f),codeTextData:K,data:K,codeFlowValue:K,definition:s(Ct),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:s(_),hardBreakEscape:s(le),hardBreakTrailing:s(le),htmlFlow:s(L,f),htmlFlowData:K,htmlText:s(L,f),htmlTextData:K,image:s(M),label:f,link:s(Z),listItem:s(xe),listItemValue:x,listOrdered:s(ye,v),listUnordered:s(ye),paragraph:s(te),reference:R,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:s(pe),strong:s(Se),thematicBreak:s(ue)},exit:{atxHeading:m(),atxHeadingSequence:q,autolink:m(),autolinkEmail:Ce,autolinkProtocol:Ee,blockQuote:m(),characterEscapeValue:ce,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:_e,characterReference:Ae,codeFenced:m(C),codeFencedFence:w,codeFencedFenceInfo:y,codeFencedFenceMeta:E,codeFlowValue:ce,codeIndented:m(S),codeText:m(F),codeTextData:ce,data:ce,definition:m(),definitionDestinationString:I,definitionLabelString:T,definitionTitleString:D,emphasis:m(),hardBreakEscape:m(O),hardBreakTrailing:m(O),htmlFlow:m(ee),htmlFlowData:ce,htmlText:m(z),htmlTextData:ce,image:m(X),label:oe,labelText:be,lineEnding:me,link:m(G),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:re,resourceDestinationString:N,resourceTitleString:j,resource:B,setextHeading:m(ae),setextHeadingLineSequence:P,setextHeadingText:U,strong:m(),thematicBreak:m()}};B0(r,(n||{}).mdastExtensions||[]);const a={};return o;function o(V){let de={type:"root",children:[]};const we={stack:[de],tokenStack:[],config:r,enter:d,exit:p,buffer:f,resume:g,data:a},je=[];let Me=-1;for(;++Me<V.length;)if(V[Me][1].type==="listOrdered"||V[Me][1].type==="listUnordered")if(V[Me][0]==="enter")je.push(Me);else{const nt=je.pop();Me=u(V,nt,Me)}for(Me=-1;++Me<V.length;){const nt=r[V[Me][0]];M0.call(nt,V[Me][1].type)&&nt[V[Me][1].type].call(Object.assign({sliceSerialize:V[Me][2].sliceSerialize},we),V[Me][1])}if(we.tokenStack.length>0){const nt=we.tokenStack[we.tokenStack.length-1];(nt[1]||wg).call(we,void 0,nt[0])}for(de.position={start:Ai(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:Ai(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<r.transforms.length;)de=r.transforms[Me](de)||de;return de}function u(V,de,we){let je=de-1,Me=-1,nt=!1,Tt,Le,$e,yt;for(;++je<=we;){const Ue=V[je];switch(Ue[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ue[0]==="enter"?Me++:Me--,yt=void 0;break}case"lineEndingBlank":{Ue[0]==="enter"&&(Tt&&!yt&&!Me&&!$e&&($e=je),yt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:yt=void 0}if(!Me&&Ue[0]==="enter"&&Ue[1].type==="listItemPrefix"||Me===-1&&Ue[0]==="exit"&&(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered")){if(Tt){let qt=je;for(Le=void 0;qt--;){const Dt=V[qt];if(Dt[1].type==="lineEnding"||Dt[1].type==="lineEndingBlank"){if(Dt[0]==="exit")continue;Le&&(V[Le][1].type="lineEndingBlank",nt=!0),Dt[1].type="lineEnding",Le=qt}else if(!(Dt[1].type==="linePrefix"||Dt[1].type==="blockQuotePrefix"||Dt[1].type==="blockQuotePrefixWhitespace"||Dt[1].type==="blockQuoteMarker"||Dt[1].type==="listItemIndent"))break}$e&&(!Le||$e<Le)&&(Tt._spread=!0),Tt.end=Object.assign({},Le?V[Le][1].start:Ue[1].end),V.splice(Le||je,0,["exit",Tt,Ue[2]]),je++,we++}if(Ue[1].type==="listItemPrefix"){const qt={type:"listItem",_spread:!1,start:Object.assign({},Ue[1].start),end:void 0};Tt=qt,V.splice(je,0,["enter",qt,Ue[2]]),je++,we++,$e=void 0,yt=!0}}}return V[de][1]._spread=nt,we}function s(V,de){return we;function we(je){d.call(this,V(je),je),de&&de.call(this,je)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(V,de,we){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([de,we||void 0]),V.position={start:Ai(de.start),end:void 0}}function m(V){return de;function de(we){V&&V.call(this,we),p.call(this,we)}}function p(V,de){const we=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==V.type&&(de?de.call(this,V,je[0]):(je[1]||wg).call(this,V,je[0]));else throw new Error("Cannot close `"+V.type+"` ("+Jr({start:V.start,end:V.end})+"): it’s not open");we.position.end=Ai(V.end)}function g(){return uw(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function x(V){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function y(){const V=this.resume(),de=this.stack[this.stack.length-1];de.lang=V}function E(){const V=this.resume(),de=this.stack[this.stack.length-1];de.meta=V}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const V=this.resume(),de=this.stack[this.stack.length-1];de.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const V=this.resume(),de=this.stack[this.stack.length-1];de.value=V.replace(/(\r?\n|\r)$/g,"")}function T(V){const de=this.resume(),we=this.stack[this.stack.length-1];we.label=de,we.identifier=Va(this.sliceSerialize(V)).toLowerCase()}function D(){const V=this.resume(),de=this.stack[this.stack.length-1];de.title=V}function I(){const V=this.resume(),de=this.stack[this.stack.length-1];de.url=V}function q(V){const de=this.stack[this.stack.length-1];if(!de.depth){const we=this.sliceSerialize(V).length;de.depth=we}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function P(V){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function K(V){const we=this.stack[this.stack.length-1].children;let je=we[we.length-1];(!je||je.type!=="text")&&(je=ne(),je.position={start:Ai(V.start),end:void 0},we.push(je)),this.stack.push(je)}function ce(V){const de=this.stack.pop();de.value+=this.sliceSerialize(V),de.position.end=Ai(V.end)}function me(V){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=de.children[de.children.length-1];we.position.end=Ai(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(de.type)&&(K.call(this,V),ce.call(this,V))}function O(){this.data.atHardBreak=!0}function ee(){const V=this.resume(),de=this.stack[this.stack.length-1];de.value=V}function z(){const V=this.resume(),de=this.stack[this.stack.length-1];de.value=V}function F(){const V=this.resume(),de=this.stack[this.stack.length-1];de.value=V}function G(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=de,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function X(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=de,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function be(V){const de=this.sliceSerialize(V),we=this.stack[this.stack.length-2];we.label=s3(de),we.identifier=Va(de).toLowerCase()}function oe(){const V=this.stack[this.stack.length-1],de=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const je=V.children;we.children=je}else we.alt=de}function N(){const V=this.resume(),de=this.stack[this.stack.length-1];de.url=V}function j(){const V=this.resume(),de=this.stack[this.stack.length-1];de.title=V}function B(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function re(V){const de=this.resume(),we=this.stack[this.stack.length-1];we.label=de,we.identifier=Va(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function fe(V){this.data.characterReferenceType=V.type}function _e(V){const de=this.sliceSerialize(V),we=this.data.characterReferenceType;let je;we?(je=z0(de,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=df(de);const Me=this.stack[this.stack.length-1];Me.value+=je}function Ae(V){const de=this.stack.pop();de.position.end=Ai(V.end)}function Ee(V){ce.call(this,V);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(V)}function Ce(V){ce.call(this,V);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(V)}function Pe(){return{type:"blockquote",children:[]}}function Ye(){return{type:"code",lang:null,meta:null,value:""}}function pt(){return{type:"inlineCode",value:""}}function Ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function le(){return{type:"break"}}function L(){return{type:"html",value:""}}function M(){return{type:"image",title:null,url:"",alt:null}}function Z(){return{type:"link",title:null,url:"",children:[]}}function ye(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function xe(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function te(){return{type:"paragraph",children:[]}}function Se(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function ue(){return{type:"thematicBreak"}}}function Ai(n){return{line:n.line,column:n.column,offset:n.offset}}function B0(n,r){let a=-1;for(;++a<r.length;){const o=r[a];Array.isArray(o)?B0(n,o):d3(n,o)}}function d3(n,r){let a;for(a in r)if(M0.call(r,a))switch(a){case"canContainEols":{const o=r[a];o&&n[a].push(...o);break}case"transforms":{const o=r[a];o&&n[a].push(...o);break}case"enter":case"exit":{const o=r[a];o&&Object.assign(n[a],o);break}}}function wg(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+Jr({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+Jr({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Jr({start:r.start,end:r.end})+") is still open")}function h3(n){const r=this;r.parser=a;function a(o){return c3(o,{...r.data("settings"),...n,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function p3(n,r){const a={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(r),!0)};return n.patch(r,a),n.applyData(r,a)}function m3(n,r){const a={type:"element",tagName:"br",properties:{},children:[]};return n.patch(r,a),[n.applyData(r,a),{type:"text",value:`
`}]}function g3(n,r){const a=r.value?r.value+`
`:"",o={},u=r.lang?r.lang.split(/\s+/):[];u.length>0&&(o.className=["language-"+u[0]]);let s={type:"element",tagName:"code",properties:o,children:[{type:"text",value:a}]};return r.meta&&(s.data={meta:r.meta}),n.patch(r,s),s=n.applyData(r,s),s={type:"element",tagName:"pre",properties:{},children:[s]},n.patch(r,s),s}function y3(n,r){const a={type:"element",tagName:"del",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function v3(n,r){const a={type:"element",tagName:"em",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function x3(n,r){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),u=Ja(o.toLowerCase()),s=n.footnoteOrder.indexOf(o);let f,d=n.footnoteCounts.get(o);d===void 0?(d=0,n.footnoteOrder.push(o),f=n.footnoteOrder.length):f=s+1,d+=1,n.footnoteCounts.set(o,d);const m={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+u,id:a+"fnref-"+u+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(r,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(r,p),n.applyData(r,p)}function b3(n,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function w3(n,r){if(n.options.allowDangerousHtml){const a={type:"raw",value:r.value};return n.patch(r,a),n.applyData(r,a)}}function L0(n,r){const a=r.referenceType;let o="]";if(a==="collapsed"?o+="[]":a==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const u=n.all(r),s=u[0];s&&s.type==="text"?s.value="["+s.value:u.unshift({type:"text",value:"["});const f=u[u.length-1];return f&&f.type==="text"?f.value+=o:u.push({type:"text",value:o}),u}function S3(n,r){const a=String(r.identifier).toUpperCase(),o=n.definitionById.get(a);if(!o)return L0(n,r);const u={src:Ja(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(u.title=o.title);const s={type:"element",tagName:"img",properties:u,children:[]};return n.patch(r,s),n.applyData(r,s)}function k3(n,r){const a={src:Ja(r.url)};r.alt!==null&&r.alt!==void 0&&(a.alt=r.alt),r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return n.patch(r,o),n.applyData(r,o)}function _3(n,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};n.patch(r,a);const o={type:"element",tagName:"code",properties:{},children:[a]};return n.patch(r,o),n.applyData(r,o)}function z3(n,r){const a=String(r.identifier).toUpperCase(),o=n.definitionById.get(a);if(!o)return L0(n,r);const u={href:Ja(o.url||"")};o.title!==null&&o.title!==void 0&&(u.title=o.title);const s={type:"element",tagName:"a",properties:u,children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function E3(n,r){const a={href:Ja(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:n.all(r)};return n.patch(r,o),n.applyData(r,o)}function C3(n,r,a){const o=n.all(r),u=a?T3(a):U0(r),s={},f=[];if(typeof r.checked=="boolean"){const g=o[0];let v;g&&g.type==="element"&&g.tagName==="p"?v=g:(v={type:"element",tagName:"p",properties:{},children:[]},o.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const g=o[d];(u||d!==0||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
`}),g.type==="element"&&g.tagName==="p"&&!u?f.push(...g.children):f.push(g)}const m=o[o.length-1];m&&(u||m.type!=="element"||m.tagName!=="p")&&f.push({type:"text",value:`
`});const p={type:"element",tagName:"li",properties:s,children:f};return n.patch(r,p),n.applyData(r,p)}function T3(n){let r=!1;if(n.type==="list"){r=n.spread||!1;const a=n.children;let o=-1;for(;!r&&++o<a.length;)r=U0(a[o])}return r}function U0(n){const r=n.spread;return r??n.children.length>1}function A3(n,r){const a={},o=n.all(r);let u=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++u<o.length;){const f=o[u];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const s={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:n.wrap(o,!0)};return n.patch(r,s),n.applyData(r,s)}function j3(n,r){const a={type:"element",tagName:"p",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function R3(n,r){const a={type:"root",children:n.wrap(n.all(r))};return n.patch(r,a),n.applyData(r,a)}function D3(n,r){const a={type:"element",tagName:"strong",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function N3(n,r){const a=n.all(r),o=a.shift(),u=[];if(o){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([o],!0)};n.patch(r.children[0],f),u.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(a,!0)},d=sf(r.children[1]),m=v0(r.children[r.children.length-1]);d&&m&&(f.position={start:d,end:m}),u.push(f)}const s={type:"element",tagName:"table",properties:{},children:n.wrap(u,!0)};return n.patch(r,s),n.applyData(r,s)}function O3(n,r,a){const o=a?a.children:void 0,s=(o?o.indexOf(r):1)===0?"th":"td",f=a&&a.type==="table"?a.align:void 0,d=f?f.length:r.children.length;let m=-1;const p=[];for(;++m<d;){const v=r.children[m],x={},y=f?f[m]:void 0;y&&(x.align=y);let E={type:"element",tagName:s,properties:x,children:[]};v&&(E.children=n.all(v),n.patch(v,E),E=n.applyData(v,E)),p.push(E)}const g={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(r,g),n.applyData(r,g)}function M3(n,r){const a={type:"element",tagName:"td",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}const Sg=9,kg=32;function B3(n){const r=String(n),a=/\r?\n|\r/g;let o=a.exec(r),u=0;const s=[];for(;o;)s.push(_g(r.slice(u,o.index),u>0,!0),o[0]),u=o.index+o[0].length,o=a.exec(r);return s.push(_g(r.slice(u),u>0,!1)),s.join("")}function _g(n,r,a){let o=0,u=n.length;if(r){let s=n.codePointAt(o);for(;s===Sg||s===kg;)o++,s=n.codePointAt(o)}if(a){let s=n.codePointAt(u-1);for(;s===Sg||s===kg;)u--,s=n.codePointAt(u-1)}return u>o?n.slice(o,u):""}function L3(n,r){const a={type:"text",value:B3(String(r.value))};return n.patch(r,a),n.applyData(r,a)}function U3(n,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(r,a),n.applyData(r,a)}const H3={blockquote:p3,break:m3,code:g3,delete:y3,emphasis:v3,footnoteReference:x3,heading:b3,html:w3,imageReference:S3,image:k3,inlineCode:_3,linkReference:z3,link:E3,listItem:C3,list:A3,paragraph:j3,root:R3,strong:D3,table:N3,tableCell:M3,tableRow:O3,text:L3,thematicBreak:U3,toml:Co,yaml:Co,definition:Co,footnoteDefinition:Co};function Co(){}const H0=-1,Yo=0,el=1,Ho=2,mf=3,gf=4,yf=5,vf=6,q0=7,I0=8,zg=typeof self=="object"?self:globalThis,q3=(n,r)=>{const a=(u,s)=>(n.set(s,u),u),o=u=>{if(n.has(u))return n.get(u);const[s,f]=r[u];switch(s){case Yo:case H0:return a(f,u);case el:{const d=a([],u);for(const m of f)d.push(o(m));return d}case Ho:{const d=a({},u);for(const[m,p]of f)d[o(m)]=o(p);return d}case mf:return a(new Date(f),u);case gf:{const{source:d,flags:m}=f;return a(new RegExp(d,m),u)}case yf:{const d=a(new Map,u);for(const[m,p]of f)d.set(o(m),o(p));return d}case vf:{const d=a(new Set,u);for(const m of f)d.add(o(m));return d}case q0:{const{name:d,message:m}=f;return a(new zg[d](m),u)}case I0:return a(BigInt(f),u);case"BigInt":return a(Object(BigInt(f)),u);case"ArrayBuffer":return a(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:d}=new Uint8Array(f);return a(new DataView(d),f)}}return a(new zg[s](f),u)};return o},Eg=n=>q3(new Map,n)(0),Ya="",{toString:I3}={},{keys:F3}=Object,Wr=n=>{const r=typeof n;if(r!=="object"||!n)return[Yo,r];const a=I3.call(n).slice(8,-1);switch(a){case"Array":return[el,Ya];case"Object":return[Ho,Ya];case"Date":return[mf,Ya];case"RegExp":return[gf,Ya];case"Map":return[yf,Ya];case"Set":return[vf,Ya];case"DataView":return[el,a]}return a.includes("Array")?[el,a]:a.includes("Error")?[q0,a]:[Ho,a]},To=([n,r])=>n===Yo&&(r==="function"||r==="symbol"),P3=(n,r,a,o)=>{const u=(f,d)=>{const m=o.push(f)-1;return a.set(d,m),m},s=f=>{if(a.has(f))return a.get(f);let[d,m]=Wr(f);switch(d){case Yo:{let g=f;switch(m){case"bigint":d=I0,g=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);g=null;break;case"undefined":return u([H0],f)}return u([d,g],f)}case el:{if(m){let x=f;return m==="DataView"?x=new Uint8Array(f.buffer):m==="ArrayBuffer"&&(x=new Uint8Array(f)),u([m,[...x]],f)}const g=[],v=u([d,g],f);for(const x of f)g.push(s(x));return v}case Ho:{if(m)switch(m){case"BigInt":return u([m,f.toString()],f);case"Boolean":case"Number":case"String":return u([m,f.valueOf()],f)}if(r&&"toJSON"in f)return s(f.toJSON());const g=[],v=u([d,g],f);for(const x of F3(f))(n||!To(Wr(f[x])))&&g.push([s(x),s(f[x])]);return v}case mf:return u([d,f.toISOString()],f);case gf:{const{source:g,flags:v}=f;return u([d,{source:g,flags:v}],f)}case yf:{const g=[],v=u([d,g],f);for(const[x,y]of f)(n||!(To(Wr(x))||To(Wr(y))))&&g.push([s(x),s(y)]);return v}case vf:{const g=[],v=u([d,g],f);for(const x of f)(n||!To(Wr(x)))&&g.push(s(x));return v}}const{message:p}=f;return u([d,{name:m,message:p}],f)};return s},Cg=(n,{json:r,lossy:a}={})=>{const o=[];return P3(!(r||a),!!r,new Map,o)(n),o},qo=typeof structuredClone=="function"?(n,r)=>r&&("json"in r||"lossy"in r)?Eg(Cg(n,r)):structuredClone(n):(n,r)=>Eg(Cg(n,r));function Y3(n,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function G3(n,r){return"Back to reference "+(n+1)+(r>1?"-"+r:"")}function V3(n){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",a=n.options.footnoteBackContent||Y3,o=n.options.footnoteBackLabel||G3,u=n.options.footnoteLabel||"Footnotes",s=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[m]);if(!p)continue;const g=n.all(p),v=String(p.identifier).toUpperCase(),x=Ja(v.toLowerCase());let y=0;const E=[],w=n.footnoteCounts.get(v);for(;w!==void 0&&++y<=w;){E.length>0&&E.push({type:"text",value:" "});let T=typeof a=="string"?a:a(m,y);typeof T=="string"&&(T={type:"text",value:T}),E.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+x+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(m,y),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const C=g[g.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const T=C.children[C.children.length-1];T&&T.type==="text"?T.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...E)}else g.push(...E);const S={type:"element",tagName:"li",properties:{id:r+"fn-"+x},children:n.wrap(g,!0)};n.patch(p,S),d.push(S)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...qo(f),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(d,!0)},{type:"text",value:`
`}]}}const F0=(function(n){if(n==null)return Q3;if(typeof n=="function")return Go(n);if(typeof n=="object")return Array.isArray(n)?X3(n):Z3(n);if(typeof n=="string")return K3(n);throw new Error("Expected function, string, or object as test")});function X3(n){const r=[];let a=-1;for(;++a<n.length;)r[a]=F0(n[a]);return Go(o);function o(...u){let s=-1;for(;++s<r.length;)if(r[s].apply(this,u))return!0;return!1}}function Z3(n){const r=n;return Go(a);function a(o){const u=o;let s;for(s in n)if(u[s]!==r[s])return!1;return!0}}function K3(n){return Go(r);function r(a){return a&&a.type===n}}function Go(n){return r;function r(a,o,u){return!!(W3(a)&&n.call(this,a,typeof o=="number"?o:void 0,u||void 0))}}function Q3(){return!0}function W3(n){return n!==null&&typeof n=="object"&&"type"in n}const P0=[],J3=!0,Tg=!1,$3="skip";function eS(n,r,a,o){let u;typeof r=="function"&&typeof a!="function"?(o=a,a=r):u=r;const s=F0(u),f=o?-1:1;d(n,void 0,[])();function d(m,p,g){const v=m&&typeof m=="object"?m:{};if(typeof v.type=="string"){const y=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(m.type+(y?"<"+y+">":""))+")"})}return x;function x(){let y=P0,E,w,C;if((!r||s(m,p,g[g.length-1]||void 0))&&(y=tS(a(m,g)),y[0]===Tg))return y;if("children"in m&&m.children){const S=m;if(S.children&&y[0]!==$3)for(w=(o?S.children.length:-1)+f,C=g.concat(S);w>-1&&w<S.children.length;){const T=S.children[w];if(E=d(T,w,C)(),E[0]===Tg)return E;w=typeof E[1]=="number"?E[1]:w+f}}return y}}}function tS(n){return Array.isArray(n)?n:typeof n=="number"?[J3,n]:n==null?P0:[n]}function Y0(n,r,a,o){let u,s,f;typeof r=="function"&&typeof a!="function"?(s=void 0,f=r,u=a):(s=r,f=a,u=o),eS(n,s,d,u);function d(m,p){const g=p[p.length-1],v=g?g.children.indexOf(m):void 0;return f(m,v,g)}}const Xc={}.hasOwnProperty,nS={};function iS(n,r){const a=r||nS,o=new Map,u=new Map,s=new Map,f={...H3,...a.handlers},d={all:p,applyData:rS,definitionById:o,footnoteById:u,footnoteCounts:s,footnoteOrder:[],handlers:f,one:m,options:a,patch:aS,wrap:oS};return Y0(n,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const v=g.type==="definition"?o:u,x=String(g.identifier).toUpperCase();v.has(x)||v.set(x,g)}}),d;function m(g,v){const x=g.type,y=d.handlers[x];if(Xc.call(d.handlers,x)&&y)return y(d,g,v);if(d.options.passThrough&&d.options.passThrough.includes(x)){if("children"in g){const{children:w,...C}=g,S=qo(C);return S.children=d.all(g),S}return qo(g)}return(d.options.unknownHandler||lS)(d,g,v)}function p(g){const v=[];if("children"in g){const x=g.children;let y=-1;for(;++y<x.length;){const E=d.one(x[y],g);if(E){if(y&&x[y-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Ag(E.value)),!Array.isArray(E)&&E.type==="element")){const w=E.children[0];w&&w.type==="text"&&(w.value=Ag(w.value))}Array.isArray(E)?v.push(...E):v.push(E)}}}return v}}function aS(n,r){n.position&&(r.position=I2(n))}function rS(n,r){let a=r;if(n&&n.data){const o=n.data.hName,u=n.data.hChildren,s=n.data.hProperties;if(typeof o=="string")if(a.type==="element")a.tagName=o;else{const f="children"in a?a.children:[a];a={type:"element",tagName:o,properties:{},children:f}}a.type==="element"&&s&&Object.assign(a.properties,qo(s)),"children"in a&&a.children&&u!==null&&u!==void 0&&(a.children=u)}return a}function lS(n,r){const a=r.data||{},o="value"in r&&!(Xc.call(a,"hProperties")||Xc.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:n.all(r)};return n.patch(r,o),n.applyData(r,o)}function oS(n,r){const a=[];let o=-1;for(r&&a.push({type:"text",value:`
`});++o<n.length;)o&&a.push({type:"text",value:`
`}),a.push(n[o]);return r&&n.length>0&&a.push({type:"text",value:`
`}),a}function Ag(n){let r=0,a=n.charCodeAt(r);for(;a===9||a===32;)r++,a=n.charCodeAt(r);return n.slice(r)}function jg(n,r){const a=iS(n,r),o=a.one(n,void 0),u=V3(a),s=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return u&&s.children.push({type:"text",value:`
`},u),s}function sS(n,r){return n&&"run"in n?async function(a,o){const u=jg(a,{file:o,...r});await n.run(u,o)}:function(a,o){return jg(a,{file:o,...n||r})}}function Rg(n){if(n)throw n}var kc,Dg;function uS(){if(Dg)return kc;Dg=1;var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},s=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var g=n.call(p,"constructor"),v=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!g&&!v)return!1;var x;for(x in p);return typeof x>"u"||n.call(p,x)},f=function(p,g){a&&g.name==="__proto__"?a(p,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):p[g.name]=g.newValue},d=function(p,g){if(g==="__proto__")if(n.call(p,g)){if(o)return o(p,g).value}else return;return p[g]};return kc=function m(){var p,g,v,x,y,E,w=arguments[0],C=1,S=arguments.length,T=!1;for(typeof w=="boolean"&&(T=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});C<S;++C)if(p=arguments[C],p!=null)for(g in p)v=d(w,g),x=d(p,g),w!==x&&(T&&x&&(s(x)||(y=u(x)))?(y?(y=!1,E=v&&u(v)?v:[]):E=v&&s(v)?v:{},f(w,{name:g,newValue:m(T,E,x)})):typeof x<"u"&&f(w,{name:g,newValue:x}));return w},kc}var cS=uS();const _c=Za(cS);function Zc(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function fS(){const n=[],r={run:a,use:o};return r;function a(...u){let s=-1;const f=u.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...u);function d(m,...p){const g=n[++s];let v=-1;if(m){f(m);return}for(;++v<u.length;)(p[v]===null||p[v]===void 0)&&(p[v]=u[v]);u=p,g?dS(g,d)(...p):f(null,...p)}}function o(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return n.push(u),r}}function dS(n,r){let a;return o;function o(...f){const d=n.length>f.length;let m;d&&f.push(u);try{m=n.apply(this,f)}catch(p){const g=p;if(d&&a)throw g;return u(g)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,u):m instanceof Error?u(m):s(m))}function u(f,...d){a||(a=!0,r(f,...d))}function s(f){u(null,f)}}const Dn={basename:hS,dirname:pS,extname:mS,join:gS,sep:"/"};function hS(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');sl(n);let a=0,o=-1,u=n.length,s;if(r===void 0||r.length===0||r.length>n.length){for(;u--;)if(n.codePointAt(u)===47){if(s){a=u+1;break}}else o<0&&(s=!0,o=u+1);return o<0?"":n.slice(a,o)}if(r===n)return"";let f=-1,d=r.length-1;for(;u--;)if(n.codePointAt(u)===47){if(s){a=u+1;break}}else f<0&&(s=!0,f=u+1),d>-1&&(n.codePointAt(u)===r.codePointAt(d--)?d<0&&(o=u):(d=-1,o=f));return a===o?o=f:o<0&&(o=n.length),n.slice(a,o)}function pS(n){if(sl(n),n.length===0)return".";let r=-1,a=n.length,o;for(;--a;)if(n.codePointAt(a)===47){if(o){r=a;break}}else o||(o=!0);return r<0?n.codePointAt(0)===47?"/":".":r===1&&n.codePointAt(0)===47?"//":n.slice(0,r)}function mS(n){sl(n);let r=n.length,a=-1,o=0,u=-1,s=0,f;for(;r--;){const d=n.codePointAt(r);if(d===47){if(f){o=r+1;break}continue}a<0&&(f=!0,a=r+1),d===46?u<0?u=r:s!==1&&(s=1):u>-1&&(s=-1)}return u<0||a<0||s===0||s===1&&u===a-1&&u===o+1?"":n.slice(u,a)}function gS(...n){let r=-1,a;for(;++r<n.length;)sl(n[r]),n[r]&&(a=a===void 0?n[r]:a+"/"+n[r]);return a===void 0?".":yS(a)}function yS(n){sl(n);const r=n.codePointAt(0)===47;let a=vS(n,!r);return a.length===0&&!r&&(a="."),a.length>0&&n.codePointAt(n.length-1)===47&&(a+="/"),r?"/"+a:a}function vS(n,r){let a="",o=0,u=-1,s=0,f=-1,d,m;for(;++f<=n.length;){if(f<n.length)d=n.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(u===f-1||s===1))if(u!==f-1&&s===2){if(a.length<2||o!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(m=a.lastIndexOf("/"),m!==a.length-1){m<0?(a="",o=0):(a=a.slice(0,m),o=a.length-1-a.lastIndexOf("/")),u=f,s=0;continue}}else if(a.length>0){a="",o=0,u=f,s=0;continue}}r&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+n.slice(u+1,f):a=n.slice(u+1,f),o=f-u-1;u=f,s=0}else d===46&&s>-1?s++:s=-1}return a}function sl(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const xS={cwd:bS};function bS(){return"/"}function Kc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function wS(n){if(typeof n=="string")n=new URL(n);else if(!Kc(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return SS(n)}function SS(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=n.pathname;let a=-1;for(;++a<r.length;)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){const o=r.codePointAt(a+2);if(o===70||o===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(r)}const zc=["history","path","basename","stem","extname","dirname"];class G0{constructor(r){let a;r?Kc(r)?a={path:r}:typeof r=="string"||kS(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":xS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<zc.length;){const s=zc[o];s in a&&a[s]!==void 0&&a[s]!==null&&(this[s]=s==="history"?[...a[s]]:a[s])}let u;for(u in a)zc.includes(u)||(this[u]=a[u])}get basename(){return typeof this.path=="string"?Dn.basename(this.path):void 0}set basename(r){Cc(r,"basename"),Ec(r,"basename"),this.path=Dn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Dn.dirname(this.path):void 0}set dirname(r){Ng(this.basename,"dirname"),this.path=Dn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Dn.extname(this.path):void 0}set extname(r){if(Ec(r,"extname"),Ng(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Kc(r)&&(r=wS(r)),Cc(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Dn.basename(this.path,this.extname):void 0}set stem(r){Cc(r,"stem"),Ec(r,"stem"),this.path=Dn.join(this.dirname||"",r+(this.extname||""))}fail(r,a,o){const u=this.message(r,a,o);throw u.fatal=!0,u}info(r,a,o){const u=this.message(r,a,o);return u.fatal=void 0,u}message(r,a,o){const u=new Ht(r,a,o);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Ec(n,r){if(n&&n.includes(Dn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Dn.sep+"`")}function Cc(n,r){if(!n)throw new Error("`"+r+"` cannot be empty")}function Ng(n,r){if(!n)throw new Error("Setting `"+r+"` requires `path` to be set too")}function kS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const _S=(function(n){const o=this.constructor.prototype,u=o[n],s=function(){return u.apply(s,arguments)};return Object.setPrototypeOf(s,o),s}),zS={}.hasOwnProperty;class xf extends _S{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=fS()}copy(){const r=new xf;let a=-1;for(;++a<this.attachers.length;){const o=this.attachers[a];r.use(...o)}return r.data(_c(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(jc("data",this.frozen),this.namespace[r]=a,this):zS.call(this.namespace,r)&&this.namespace[r]||void 0:r?(jc("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const u=a.call(r,...o);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const a=Ao(r),o=this.parser||this.Parser;return Tc("parse",o),o(String(a),a)}process(r,a){const o=this;return this.freeze(),Tc("process",this.parser||this.Parser),Ac("process",this.compiler||this.Compiler),a?u(void 0,a):new Promise(u);function u(s,f){const d=Ao(r),m=o.parse(d);o.run(m,d,function(g,v,x){if(g||!v||!x)return p(g);const y=v,E=o.stringify(y,x);TS(E)?x.value=E:x.result=E,p(g,x)});function p(g,v){g||!v?f(g):s?s(v):a(void 0,v)}}}processSync(r){let a=!1,o;return this.freeze(),Tc("processSync",this.parser||this.Parser),Ac("processSync",this.compiler||this.Compiler),this.process(r,u),Mg("processSync","process",a),o;function u(s,f){a=!0,Rg(s),o=f}}run(r,a,o){Og(r),this.freeze();const u=this.transformers;return!o&&typeof a=="function"&&(o=a,a=void 0),o?s(void 0,o):new Promise(s);function s(f,d){const m=Ao(a);u.run(r,m,p);function p(g,v,x){const y=v||r;g?d(g):f?f(y):o(void 0,y,x)}}}runSync(r,a){let o=!1,u;return this.run(r,a,s),Mg("runSync","run",o),u;function s(f,d){Rg(f),u=d,o=!0}}stringify(r,a){this.freeze();const o=Ao(a),u=this.compiler||this.Compiler;return Ac("stringify",u),Og(r),u(r,o)}use(r,...a){const o=this.attachers,u=this.namespace;if(jc("use",this.frozen),r!=null)if(typeof r=="function")m(r,a);else if(typeof r=="object")Array.isArray(r)?d(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function s(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[g,...v]=p;m(g,v)}else f(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function f(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(u.settings=_c(!0,u.settings,p.settings))}function d(p){let g=-1;if(p!=null)if(Array.isArray(p))for(;++g<p.length;){const v=p[g];s(v)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,g){let v=-1,x=-1;for(;++v<o.length;)if(o[v][0]===p){x=v;break}if(x===-1)o.push([p,...g]);else if(g.length>0){let[y,...E]=g;const w=o[x][1];Zc(w)&&Zc(y)&&(y=_c(!0,w,y)),o[x]=[p,y,...E]}}}}const ES=new xf().freeze();function Tc(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ac(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function jc(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Og(n){if(!Zc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Mg(n,r,a){if(!a)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function Ao(n){return CS(n)?n:new G0(n)}function CS(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function TS(n){return typeof n=="string"||AS(n)}function AS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const jS="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bg=[],Lg={allowDangerousHtml:!0},RS=/^(https?|ircs?|mailto|xmpp)$/i,DS=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function NS(n){const r=OS(n),a=MS(n);return BS(r.runSync(r.parse(a),a),n)}function OS(n){const r=n.rehypePlugins||Bg,a=n.remarkPlugins||Bg,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Lg}:Lg;return ES().use(h3).use(a).use(sS,o).use(r)}function MS(n){const r=n.children||"",a=new G0;return typeof r=="string"&&(a.value=r),a}function BS(n,r){const a=r.allowedElements,o=r.allowElement,u=r.components,s=r.disallowedElements,f=r.skipHtml,d=r.unwrapDisallowed,m=r.urlTransform||LS;for(const g of DS)Object.hasOwn(r,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+jS+g.id,void 0);return Y0(n,p),V2(n,{Fragment:k.Fragment,components:u,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function p(g,v,x){if(g.type==="raw"&&x&&typeof v=="number")return f?x.children.splice(v,1):x.children[v]={type:"text",value:g.value},v;if(g.type==="element"){let y;for(y in bc)if(Object.hasOwn(bc,y)&&Object.hasOwn(g.properties,y)){const E=g.properties[y],w=bc[y];(w===null||w.includes(g.tagName))&&(g.properties[y]=m(String(E||""),y,g))}}if(g.type==="element"){let y=a?!a.includes(g.tagName):s?s.includes(g.tagName):!1;if(!y&&o&&typeof v=="number"&&(y=!o(g,v,x)),y&&x&&typeof v=="number")return d&&g.children?x.children.splice(v,1,...g.children):x.children.splice(v,1),v}}}function LS(n){const r=n.indexOf(":"),a=n.indexOf("?"),o=n.indexOf("#"),u=n.indexOf("/");return r===-1||u!==-1&&r>u||a!==-1&&r>a||o!==-1&&r>o||RS.test(n.slice(0,r))?n:""}const US=()=>{const{slug:n}=Yx(),r=rf.find(a=>a.slug===n);return r?k.jsx("main",{className:"container mx-auto p-4 max-w-3xl",children:k.jsxs("article",{className:"my-8 sm:my-12",children:[k.jsxs("header",{className:"mb-8",children:[k.jsx("div",{className:"flex items-center gap-2 mb-4",children:r.tags.map(a=>k.jsx("span",{className:"bg-gray-200 text-gray-700 text-xs font-medium px-2.5 py-0.5 rounded-full",children:a},a))}),k.jsx("h1",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-3",children:r.title}),k.jsxs("div",{className:"flex items-center text-sm text-gray-500",children:[k.jsx("span",{children:r.author}),k.jsx("span",{className:"mx-2",children:"•"}),k.jsx("span",{children:r.date}),k.jsx("span",{className:"mx-2",children:"•"}),k.jsxs("span",{children:[r.readTime," min read"]})]})]}),k.jsx("img",{src:r.imageUrl,alt:r.title,className:"w-full h-auto rounded-lg mb-8"}),k.jsx("div",{className:"prose lg:prose-xl max-w-none text-gray-700",children:r.content.map((a,o)=>a.type==="h2"?k.jsx("h2",{children:a.text},o):k.jsx(NS,{children:a.text},o))}),k.jsx("div",{className:"mt-12 border-t pt-8",children:k.jsx(Ft,{to:"/blog",className:"text-blue-500 hover:underline",children:"← Back to All Articles"})})]})}):k.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg text-center",children:[k.jsx("h1",{className:"text-4xl font-bold my-8",children:"Post not found"}),k.jsx(Ft,{to:"/blog",className:"text-blue-500 hover:underline",children:"← Back to Blog"})]})},HS=()=>k.jsx("main",{className:"container mx-auto p-4 max-w-3xl",children:k.jsxs("article",{className:"my-8 sm:my-12 prose lg:prose-xl max-w-none",children:[k.jsx("h1",{children:"Privacy Policy for Resizeo"}),k.jsxs("p",{children:[k.jsx("strong",{children:"Last Updated:"})," November 11, 2025"]}),k.jsx("p",{children:"Welcome to Resizeo. Your privacy is critically important to us. This Privacy Policy outlines how your data is handled when you use our web application."}),k.jsx("h2",{children:"1. The Core Principle: Your Data is Your Data"}),k.jsx("p",{children:"Resizeo is a 100% client-side application. This means all the core functionality—including uploading, resizing, cropping, rotating, and converting your images—happens directly within your web browser on your own computer."}),k.jsx("h2",{children:"2. No Data Collection or Storage"}),k.jsx("p",{children:"We want to be unequivocally clear:"}),k.jsxs("ul",{children:[k.jsxs("li",{children:[k.jsx("strong",{children:"We do not collect, upload, or store your images."})," The images you select from your computer are never transmitted to our servers or any third-party service. They remain on your device at all times."]}),k.jsxs("li",{children:[k.jsx("strong",{children:"We do not collect personal information."})," We do not require you to create an account, log in, or provide any personal data like your name, email address, or IP address."]}),k.jsxs("li",{children:[k.jsx("strong",{children:"No Server-Side Processing."})," All image processing is performed by the JavaScript running in your browser."]})]}),k.jsx("h2",{children:"3. Cookies and Local Storage"}),k.jsx("p",{children:"Resizeo does not use cookies for tracking or analytics. We may use your browser's `localStorage` to save your preferred settings (like width, height, or format choices) to improve your experience on your next visit. This information is stored only on your computer and is not accessible by us."}),k.jsx("h2",{children:"4. Third-Party Links"}),k.jsx("p",{children:'Our website may contain links to other websites, such as the "Buy me a coffee" link which directs to PayPal. Please be aware that we are not responsible for the content or privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of any other site that collects personally identifiable information.'}),k.jsx("h2",{children:"5. Changes to This Privacy Policy"}),k.jsx("p",{children:"We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page. You are advised to review this Privacy Policy periodically for any changes."}),k.jsx("h2",{children:"6. Contact Us"}),k.jsxs("p",{children:["If you have any questions about this Privacy Policy, you can contact us at: ",k.jsx("a",{href:"mailto:support@resizeo.com",children:"support@resizeo.com"}),"."]})]})}),qS=()=>k.jsx("main",{className:"container mx-auto p-4 max-w-3xl",children:k.jsxs("article",{className:"my-8 sm:my-12 prose lg:prose-xl max-w-none",children:[k.jsx("h1",{children:"Terms of Service for Resizeo"}),k.jsxs("p",{children:[k.jsx("strong",{children:"Last Updated:"})," November 11, 2025"]}),k.jsx("p",{children:'Please read these Terms of Service ("Terms", "Terms of Service") carefully before using the Resizeo website (the "Service") operated by us.'}),k.jsx("p",{children:"Your access to and use of the Service is conditioned upon your acceptance of and compliance with these Terms. These Terms apply to all visitors, users, and others who wish to access or use the Service."}),k.jsx("h2",{children:"1. Description of Service"}),k.jsx("p",{children:"Resizeo is a client-side web application that provides users with tools to resize, crop, rotate, and convert digital images. All processing is done within the user's browser, and no images are sent to or stored on our servers."}),k.jsx("h2",{children:"2. User Responsibilities"}),k.jsx("p",{children:"You are solely responsible for the images and content you choose to process using our Service. You represent and warrant that you have all necessary rights, licenses, and permissions to use, modify, and download the content you process. You agree not to use the Service to process any content that is illegal, infringing, defamatory, or otherwise harmful."}),k.jsx("h2",{children:"3. Disclaimer of Warranty"}),k.jsx("p",{children:'The Service is provided on an "AS IS" and "AS AVAILABLE" basis. The Service is provided without warranties of any kind, whether express or implied, including, but not limited to, implied warranties of merchantability, fitness for a particular purpose, non-infringement, or course of performance.'}),k.jsx("p",{children:"We do not warrant that the service will function uninterrupted, secure, or available at any particular time or location; that any errors or defects will be corrected; or that the results of using the service will meet your requirements."}),k.jsx("h2",{children:"4. Limitation of Liability"}),k.jsx("p",{children:"In no event shall Resizeo, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your access to or use of or inability to access or use the Service."}),k.jsx("h2",{children:"5. Changes to Terms"}),k.jsx("p",{children:"We reserve the right, at our sole discretion, to modify or replace these Terms at any time. We will provide notice of any changes by posting the new Terms of Service on this page. By continuing to access or use our Service after any revisions become effective, you agree to be bound by the revised terms."}),k.jsx("h2",{children:"6. Contact Us"}),k.jsxs("p",{children:["If you have any questions about these Terms, please contact us at: ",k.jsx("a",{href:"mailto:support@resizeo.com",children:"support@resizeo.com"}),"."]})]})}),IS=()=>k.jsxs("div",{children:[k.jsx(q1,{}),k.jsxs(r1,{children:[k.jsx(Wi,{path:"/",element:k.jsx(h2,{})}),k.jsx(Wi,{path:"/presets",element:k.jsx(p2,{})}),k.jsx(Wi,{path:"/blog",element:k.jsx(y2,{})}),k.jsx(Wi,{path:"/blog/:slug",element:k.jsx(US,{})}),k.jsx(Wi,{path:"/privacy-policy",element:k.jsx(HS,{})}),k.jsx(Wi,{path:"/terms-of-service",element:k.jsx(qS,{})})]}),k.jsx(I1,{})]});console.log("main.tsx is being executed");px.createRoot(document.getElementById("root")).render(k.jsx(W.StrictMode,{children:k.jsx(A1,{children:k.jsx(IS,{})})}));
